nfets 0.0.100 → 0.0.102

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.
@@ -97,7 +97,7 @@ Minimum version required to store current data is: `+s+`.
97
97
  `}return u+=c+`
98
98
  `,typeof t=="function"&&t(null,u),u}});var rne=H(tne=>{"use strict";var KAe="\x1B[47m",GAe="\x1B[40m",xj="\x1B[37m",bj="\x1B[30m",Hg="\x1B[0m",XAe=KAe+bj,WAe=GAe+xj,JAe=o(function(r,e,t){return{"00":Hg+" "+r,"01":Hg+e+"\u2584"+r,"02":Hg+t+"\u2584"+r,10:Hg+e+"\u2580"+r,11:" ",12:"\u2584",20:Hg+t+"\u2580"+r,21:"\u2580",22:"\u2588"}},"createPalette"),Zre=o(function(r,e,t,n){let i=e+1;if(t>=i||n>=i||n<-1||t<-1)return"0";if(t>=e||n>=e||n<0||t<0)return"1";let s=n*e+t;return r[s]?"2":"1"},"mkCodePixel"),ene=o(function(r,e,t,n){return Zre(r,e,t,n)+Zre(r,e,t,n+1)},"mkCode");tne.render=function(r,e,t){let n=r.modules.size,i=r.modules.data,s=!!(e&&e.inverse),a=e&&e.inverse?WAe:XAe,l=JAe(a,s?bj:xj,s?xj:bj),f=Hg+`
99
99
  `+a,p=a;for(let d=-1;d<n+1;d+=2){for(let g=-1;g<n;g++)p+=l[ene(i,n,g,d)];p+=l[ene(i,n,n,d)]+f}return p+=Hg,typeof t=="function"&&t(null,p),p}});var ine=H(nne=>{"use strict";var YAe=$re(),QAe=rne();nne.render=function(r,e,t){return e&&e.small?QAe.render(r,e,t):YAe.render(r,e,t)}});var wj=H(ane=>{"use strict";var $Ae=sN();function sne(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}o(sne,"getColorAttrib");function Ej(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}o(Ej,"svgCmd");function ZAe(r,e,t){let n="",i=0,s=!1,a=0;for(let u=0;u<r.length;u++){let c=Math.floor(u%e),l=Math.floor(u/e);!c&&!s&&(s=!0),r[u]?(a++,u>0&&c>0&&r[u-1]||(n+=s?Ej("M",c+t,.5+l+t):Ej("m",i,0),i=0,s=!1),c+1<e&&r[u+1]||(n+=Ej("h",a),a=0)):i++}return n}o(ZAe,"qrToPath");ane.render=o(function(e,t,n){let i=$Ae.getOptions(t),s=e.modules.size,a=e.modules.data,u=s+i.margin*2,c=i.color.light.a?"<path "+sne(i.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+sne(i.color.dark,"stroke")+' d="'+ZAe(a,s,i.margin)+'"/>',f='viewBox="0 0 '+u+" "+u+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+f+' shape-rendering="crispEdges">'+c+l+`</svg>
100
- `;return typeof n=="function"&&n(null,d),d},"render")});var one=H(LP=>{"use strict";var eNe=wj();LP.render=eNe.render;LP.renderToFile=o(function(e,t,n,i){typeof i>"u"&&(i=n,n=void 0);let s=require("fs"),u='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+LP.render(t,n);s.writeFile(e,u,i)},"renderToFile")});var une=H(kP=>{"use strict";var Cj=sN();function tNe(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}o(tNe,"clearCanvas");function rNe(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}o(rNe,"getCanvasElement");kP.render=o(function(e,t,n){let i=n,s=t;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),t||(s=rNe()),i=Cj.getOptions(i);let a=Cj.getImageWidth(e.modules.size,i),u=s.getContext("2d"),c=u.createImageData(a,a);return Cj.qrToImageData(c.data,e,i),tNe(u,s,a),u.putImageData(c,0,0),s},"render");kP.renderToDataURL=o(function(e,t,n){let i=n;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),i||(i={});let s=kP.render(e,t,i),a=i.type||"image/png",u=i.rendererOpts||{};return s.toDataURL(a,u.quality)},"renderToDataURL")});var lne=H(aN=>{"use strict";var nNe=VV(),Aj=nj(),cne=une(),iNe=wj();function Nj(r,e,t,n,i){let s=[].slice.call(arguments,1),a=s.length,u=typeof s[a-1]=="function";if(!u&&!nNe())throw new Error("Callback required as last argument");if(u){if(a<2)throw new Error("Too few arguments provided");a===2?(i=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,l){try{let f=Aj.create(t,n);c(r(f,e,n))}catch(f){l(f)}})}try{let c=Aj.create(t,n);i(null,r(c,e,n))}catch(c){i(c)}}o(Nj,"renderCanvas");aN.create=Aj.create;aN.toCanvas=Nj.bind(null,cne.render);aN.toDataURL=Nj.bind(null,cne.renderToDataURL);aN.toString=Nj.bind(null,function(r,e,t){return iNe.render(r,t)})});var dne=H($d=>{"use strict";var fne=VV(),Tj=nj(),sNe=Jre(),pne=Yre(),aNe=ine(),hne=one();function oN(r,e,t){if(typeof r>"u")throw new Error("String required as first argument");if(typeof t>"u"&&(t=e,e={}),typeof t!="function")if(fne())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}o(oN,"checkParams");function oNe(r){return r.slice((r.lastIndexOf(".")-1>>>0)+2).toLowerCase()}o(oNe,"getTypeFromFilename");function VP(r){switch(r){case"svg":return hne;case"txt":case"utf8":return pne;case"png":case"image/png":default:return sNe}}o(VP,"getRendererFromType");function uNe(r){switch(r){case"svg":return hne;case"terminal":return aNe;case"utf8":default:return pne}}o(uNe,"getStringRendererFromType");function uN(r,e,t){if(!t.cb)return new Promise(function(n,i){try{let s=Tj.create(e,t.opts);return r(s,t.opts,function(a,u){return a?i(a):n(u)})}catch(s){i(s)}});try{let n=Tj.create(e,t.opts);return r(n,t.opts,t.cb)}catch(n){t.cb(n)}}o(uN,"render");$d.create=Tj.create;$d.toCanvas=lne().toCanvas;$d.toString=o(function(e,t,n){let i=oN(e,t,n),s=i.opts?i.opts.type:void 0,a=uNe(s);return uN(a.render,e,i)},"toString");$d.toDataURL=o(function(e,t,n){let i=oN(e,t,n),s=VP(i.opts.type);return uN(s.renderToDataURL,e,i)},"toDataURL");$d.toBuffer=o(function(e,t,n){let i=oN(e,t,n),s=VP(i.opts.type);return uN(s.renderToBuffer,e,i)},"toBuffer");$d.toFile=o(function(e,t,n,i){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!fne())throw new Error("Too few arguments provided");let s=oN(t,n,i),a=s.opts.type||oNe(e),c=VP(a).renderToFile.bind(null,e);return uN(c,t,s)},"toFile");$d.toFileStream=o(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let i=oN(t,n,e.emit.bind(e,"error")),a=VP("png").renderToFileStream.bind(null,e);uN(a,t,i)},"toFileStream")});var gne=H((sit,mne)=>{"use strict";mne.exports=dne()});var lNe={};cN(lNe,{AccessKeyBuilder:()=>rb,DanfceDefaultPdfDocument:()=>Dj,DanfceReducedPdfDocument:()=>Rj,DefaultDetBuilderAggregator:()=>cA,DefaultTotalBuilderAggregator:()=>lA,NFCeDto:()=>Cl,NFeDto:()=>dp,NfceAuthorizerPipeline:()=>tV,NfceCancelPipeline:()=>eV,NfceConsultProtocoloPipeline:()=>iV,NfceConsultStatusPipeline:()=>nV,NfceQrcode:()=>ra,NfceRemoteTransmitter:()=>Ls,NfceVoidRangePipeline:()=>rV,NfceXmlBuilder:()=>YA,NfceXmlBuilderPipeline:()=>kV,NfeAuthorizationResponsePipeline:()=>Q5,NfeAuthorizerPipeline:()=>gA,NfeCancelPipeline:()=>mA,NfeConsultProtocoloPipeline:()=>yA,NfeConsultStatusPipeline:()=>vA,NfeDetXmlBuilder:()=>rs,NfeRemoteTransmitter:()=>ka,NfeVoidRangePipeline:()=>ex,NfeXmlBuilder:()=>hn,NfeXmlBuilderPipeline:()=>JA,TpEmis:()=>Ts,TpEvent:()=>Il,schemas:()=>tb});module.exports=Bne(lNe);var Ts=(function(r){return r.Normal="1",r.EPEC="4",r.SVCAN="6",r.SVCRS="7",r.OFFLINE="9",r})({});var Il=(function(r){return r.Cancelamento="110111",r})({});var Xa=require("path"),Zd=require("fs");var GP=require("path"),KP=require("module"),lN=require("url");var Pne=typeof jest<"u"||process.env.JEST_WORKER_ID!==void 0,Gg,Fj=o(()=>{if(Gg!==void 0)return Gg;if(Pne){Gg=void 0;return}try{Gg=new Function("try { return import.meta.url; } catch { return undefined; }")()}catch{Gg=void 0}return Gg},"getImportMetaUrl"),Lj=o(()=>{if(typeof require<"u")return require;let r=Fj();if(r)return(0,KP.createRequire)(r);let e=(0,lN.pathToFileURL)((0,GP.resolve)(process.cwd(),"package.json")).href;return(0,KP.createRequire)(e)},"getRequireFn"),kj=o(()=>{if(typeof __filename<"u")return __filename;let r=Fj();return r?(0,lN.fileURLToPath)(r):(0,GP.resolve)(process.cwd())},"getCurrentFile");var Vj=o(()=>typeof process<"u"&&typeof process.versions<"u"&&"electron"in process.versions,"isElectron"),_ne=o(()=>{if(!Vj())return null;try{let e=require("electron").app;if(e?.getAppPath&&typeof e.getAppPath=="function")return{getAppPath:e.getAppPath}}catch{}return null},"getElectronApp"),Fne=o(()=>{if(!Vj())return null;let r=process;if(r.resourcesPath)return r.resourcesPath;let e=_ne();if(e)try{let t=e.getAppPath();if(typeof t=="string")return(0,Xa.dirname)(t.replace(/\.asar$/,""))}catch{}return null},"getElectronResourcesPath"),Xg=o((r,{onFound:e,onNotFound:t})=>{let n=Fne();if(n){let l=(0,Xa.resolve)(n,"node_modules","nfets",r);if((0,Zd.existsSync)(l))return e(l);let f=(0,Xa.resolve)(n,"app.asar.unpacked","node_modules","nfets",r);if((0,Zd.existsSync)(f))return e(f)}let i=kj(),s=i.includes(".asar")?process.cwd():i,a=(0,Xa.resolve)(s,"../../../../"),u=(0,Xa.resolve)(a,r);if((0,Zd.existsSync)(u))return e(u);let c=s;for(let l=0;l<5;l++){let f=(0,Xa.resolve)(c,r);if((0,Zd.existsSync)(f))return e(f);let p=(0,Xa.dirname)(c);if(p===c)break;c=p}c=s;for(let l=0;l<5;l++){let f=(0,Xa.resolve)(c,"node_modules","nfets",r);if((0,Zd.existsSync)(f))return e(f);let p=(0,Xa.dirname)(c);if(p===c)break;c=p}c=s;for(let l=0;l<5;l++){let f=(0,Xa.resolve)(c,r.replace(/^build\//,"Release/"));if((0,Zd.existsSync)(f))return e(f);let p=(0,Xa.dirname)(c);if(p===c)break;c=p}return t()},"search");var Lne={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21",PL_010_V1_30:"PL_010_V1.30"},tb=o(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Xg("packages/nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Xg("nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),Dl=Lne;var rb=class{static{o(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),i=e.month.toString().padStart(2,"0"),s=(e.identification??"").padStart(14,"0"),a=e.mod.toString().padStart(2,"0"),u=e.serie.toString().padStart(3,"0"),c=e.nNF.toString().padStart(9,"0"),l=e.tpEmis.toString().padStart(1,"0"),f=(e.cNF??this.code()).toString().padStart(8,"0"),p=`${t}${n}${i}${s}${a}${u}${c}${l}${f}`;return`${p}${this.verifyingDigit(p)}`}decompile(e){if(e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!n)return;let[i,s,a,u,c,l,f,p,d,g,m]=n;return{cUF:s,year:a,month:u,identification:c,mod:l,serie:f,nNF:p,tpEmis:d,cNF:g,vd:m}}code(){let e=Math.floor(Math.random()*1e8).toString().padStart(8,"0");return this.isCodeValid(e)?e:this.code()}isCodeValid(e){return!~["00000000","11111111","22222222","33333333","44444444","55555555","66666666","77777777","88888888","99999999","12345678","23456789","34567890","45678901","56789012","67890123","78901234","89012345","90123456","01234567"].indexOf(e)}verifyingDigit(e){let t=[2,3,4,5,6,7,8,9],n=42,i=0;for(;n>=0;)for(let a=0;a<8&&n>=0;a++){let u=parseInt(e[n]);i+=u*t[a],n--}let s=11-i%11;return s>9?0:s}};var Wg=9e15,Ep=1e9,XP="0123456789abcdef",hN="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",dN="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",WP={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Wg,maxE:Wg,crypto:!1},qj,Rl,Rt=!0,gN="[DecimalError] ",bp=gN+"Invalid argument: ",Hj=gN+"Precision limit exceeded",zj=gN+"crypto unavailable",Kj="[object Decimal]",Is=Math.floor,yi=Math.pow,kne=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Vne=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,jne=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Gj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pu=1e7,vt=7,Mne=9007199254740991,Une=hN.length-1,JP=dN.length-1,Pe={toStringTag:Kj};Pe.absoluteValue=Pe.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),lt(r)};Pe.ceil=function(){return lt(new this.constructor(this),this.e+1,2)};Pe.clampedTo=Pe.clamp=function(r,e){var t,n=this,i=n.constructor;if(r=new i(r),e=new i(e),!r.s||!e.s)return new i(NaN);if(r.gt(e))throw Error(bp+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new i(n)};Pe.comparedTo=Pe.cmp=function(r){var e,t,n,i,s=this,a=s.d,u=(r=new s.constructor(r)).d,c=s.s,l=r.s;if(!a||!u)return!c||!l?NaN:c!==l?c:a===u?0:!a^c<0?1:-1;if(!a[0]||!u[0])return a[0]?c:u[0]?-l:0;if(c!==l)return c;if(s.e!==r.e)return s.e>r.e^c<0?1:-1;for(n=a.length,i=u.length,e=0,t=n<i?n:i;e<t;++e)if(a[e]!==u[e])return a[e]>u[e]^c<0?1:-1;return n===i?0:n>i^c<0?1:-1};Pe.cosine=Pe.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+vt,n.rounding=1,t=qne(n,Qj(n,t)),n.precision=r,n.rounding=e,lt(Rl==2||Rl==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};Pe.cubeRoot=Pe.cbrt=function(){var r,e,t,n,i,s,a,u,c,l,f=this,p=f.constructor;if(!f.isFinite()||f.isZero())return new p(f);for(Rt=!1,s=f.s*yi(f.s*f,1/3),!s||Math.abs(s)==1/0?(t=is(f.d),r=f.e,(s=(r-t.length+1)%3)&&(t+=s==1||s==-2?"0":"00"),s=yi(t,1/3),r=Is((r+1)/3)-(r%3==(r<0?-1:2)),s==1/0?t="5e"+r:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new p(t),n.s=f.s):n=new p(s.toString()),a=(r=p.precision)+3;;)if(u=n,c=u.times(u).times(u),l=c.plus(f),n=Jr(l.plus(f).times(u),l.plus(c),a+2,1),is(u.d).slice(0,a)===(t=is(n.d)).slice(0,a))if(t=t.slice(a-3,a+1),t=="9999"||!i&&t=="4999"){if(!i&&(lt(u,r+1,0),u.times(u).times(u).eq(f))){n=u;break}a+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(lt(n,r+1,1),e=!n.times(n).times(n).eq(f));break}return Rt=!0,lt(n,r,p.rounding,e)};Pe.decimalPlaces=Pe.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-Is(this.e/vt))*vt,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};Pe.dividedBy=Pe.div=function(r){return Jr(this,new this.constructor(r))};Pe.dividedToIntegerBy=Pe.divToInt=function(r){var e=this,t=e.constructor;return lt(Jr(e,new t(r),0,1,1),t.precision,t.rounding)};Pe.equals=Pe.eq=function(r){return this.cmp(r)===0};Pe.floor=function(){return lt(new this.constructor(this),this.e+1,3)};Pe.greaterThan=Pe.gt=function(r){return this.cmp(r)>0};Pe.greaterThanOrEqualTo=Pe.gte=function(r){var e=this.cmp(r);return e==1||e===0};Pe.hyperbolicCosine=Pe.cosh=function(){var r,e,t,n,i,s=this,a=s.constructor,u=new a(1);if(!s.isFinite())return new a(s.s?1/0:NaN);if(s.isZero())return u;t=a.precision,n=a.rounding,a.precision=t+Math.max(s.e,s.sd())+4,a.rounding=1,i=s.d.length,i<32?(r=Math.ceil(i/3),e=(1/yN(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),s=Jg(a,1,s.times(e),new a(1),!0);for(var c,l=r,f=new a(8);l--;)c=s.times(s),s=u.minus(c.times(f.minus(c.times(f))));return lt(s,a.precision=t,a.rounding=n,!0)};Pe.hyperbolicSine=Pe.sinh=function(){var r,e,t,n,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,n=i.d.length,n<3)i=Jg(s,2,i,i,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,i=i.times(1/yN(5,r)),i=Jg(s,2,i,i,!0);for(var a,u=new s(5),c=new s(16),l=new s(20);r--;)a=i.times(i),i=i.times(u.plus(a.times(c.times(a).plus(l))))}return s.precision=e,s.rounding=t,lt(i,e,t,!0)};Pe.hyperbolicTangent=Pe.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,Jr(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};Pe.inverseCosine=Pe.acos=function(){var r=this,e=r.constructor,t=r.abs().cmp(1),n=e.precision,i=e.rounding;return t!==-1?t===0?r.isNeg()?lc(e,n,i):new e(0):new e(NaN):r.isZero()?lc(e,n+4,i).times(.5):(e.precision=n+6,e.rounding=1,r=new e(1).minus(r).div(r.plus(1)).sqrt().atan(),e.precision=n,e.rounding=i,r.times(2))};Pe.inverseHyperbolicCosine=Pe.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Rt=!1,t=t.times(t).minus(1).sqrt().plus(t),Rt=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};Pe.inverseHyperbolicSine=Pe.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Rt=!1,t=t.times(t).plus(1).sqrt().plus(t),Rt=!0,n.precision=r,n.rounding=e,t.ln())};Pe.inverseHyperbolicTangent=Pe.atanh=function(){var r,e,t,n,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(r=s.precision,e=s.rounding,n=i.sd(),Math.max(n,r)<2*-i.e-1?lt(new s(i),r,e,!0):(s.precision=t=n-i.e,i=Jr(i.plus(1),new s(1).minus(i),t+r,1),s.precision=r+4,s.rounding=1,i=i.ln(),s.precision=r,s.rounding=e,i.times(.5))):new s(NaN)};Pe.inverseSine=Pe.asin=function(){var r,e,t,n,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),t=s.precision,n=s.rounding,e!==-1?e===0?(r=lc(s,t+4,n).times(.5),r.s=i.s,r):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=n,i.times(2)))};Pe.inverseTangent=Pe.atan=function(){var r,e,t,n,i,s,a,u,c,l=this,f=l.constructor,p=f.precision,d=f.rounding;if(l.isFinite()){if(l.isZero())return new f(l);if(l.abs().eq(1)&&p+4<=JP)return a=lc(f,p+4,d).times(.25),a.s=l.s,a}else{if(!l.s)return new f(NaN);if(p+4<=JP)return a=lc(f,p+4,d).times(.5),a.s=l.s,a}for(f.precision=u=p+10,f.rounding=1,t=Math.min(28,u/vt+2|0),r=t;r;--r)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Rt=!1,e=Math.ceil(u/vt),n=1,c=l.times(l),a=new f(l),i=l;r!==-1;)if(i=i.times(c),s=a.minus(i.div(n+=2)),i=i.times(c),a=s.plus(i.div(n+=2)),a.d[e]!==void 0)for(r=e;a.d[r]===s.d[r]&&r--;);return t&&(a=a.times(2<<t-1)),Rt=!0,lt(a,f.precision=p,f.rounding=d,!0)};Pe.isFinite=function(){return!!this.d};Pe.isInteger=Pe.isInt=function(){return!!this.d&&Is(this.e/vt)>this.d.length-2};Pe.isNaN=function(){return!this.s};Pe.isNegative=Pe.isNeg=function(){return this.s<0};Pe.isPositive=Pe.isPos=function(){return this.s>0};Pe.isZero=function(){return!!this.d&&this.d[0]===0};Pe.lessThan=Pe.lt=function(r){return this.cmp(r)<0};Pe.lessThanOrEqualTo=Pe.lte=function(r){return this.cmp(r)<1};Pe.logarithm=Pe.log=function(r){var e,t,n,i,s,a,u,c,l=this,f=l.constructor,p=f.precision,d=f.rounding,g=5;if(r==null)r=new f(10),e=!0;else{if(r=new f(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new f(NaN);e=r.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new f(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)s=!0;else{for(i=t[0];i%10===0;)i/=10;s=i!==1}if(Rt=!1,u=p+g,a=xp(l,u),n=e?mN(f,u+10):xp(r,u),c=Jr(a,n,u,1),nb(c.d,i=p,d))do if(u+=10,a=xp(l,u),n=e?mN(f,u+10):xp(r,u),c=Jr(a,n,u,1),!s){+is(c.d).slice(i+1,i+15)+1==1e14&&(c=lt(c,p+1,0));break}while(nb(c.d,i+=10,d));return Rt=!0,lt(c,p,d)};Pe.minus=Pe.sub=function(r){var e,t,n,i,s,a,u,c,l,f,p,d,g=this,m=g.constructor;if(r=new m(r),!g.d||!r.d)return!g.s||!r.s?r=new m(NaN):g.d?r.s=-r.s:r=new m(r.d||g.s!==r.s?g:NaN),r;if(g.s!=r.s)return r.s=-r.s,g.plus(r);if(l=g.d,d=r.d,u=m.precision,c=m.rounding,!l[0]||!d[0]){if(d[0])r.s=-r.s;else if(l[0])r=new m(g);else return new m(c===3?-0:0);return Rt?lt(r,u,c):r}if(t=Is(r.e/vt),f=Is(g.e/vt),l=l.slice(),s=f-t,s){for(p=s<0,p?(e=l,s=-s,a=d.length):(e=d,t=f,a=l.length),n=Math.max(Math.ceil(u/vt),a)+2,s>n&&(s=n,e.length=1),e.reverse(),n=s;n--;)e.push(0);e.reverse()}else{for(n=l.length,a=d.length,p=n<a,p&&(a=n),n=0;n<a;n++)if(l[n]!=d[n]){p=l[n]<d[n];break}s=0}for(p&&(e=l,l=d,d=e,r.s=-r.s),a=l.length,n=d.length-a;n>0;--n)l[a++]=0;for(n=d.length;n>s;){if(l[--n]<d[n]){for(i=n;i&&l[--i]===0;)l[i]=pu-1;--l[i],l[n]+=pu}l[n]-=d[n]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(r.d=l,r.e=vN(l,t),Rt?lt(r,u,c):r):new m(c===3?-0:0)};Pe.modulo=Pe.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?lt(new n(t),n.precision,n.rounding):(Rt=!1,n.modulo==9?(e=Jr(t,r.abs(),0,3,1),e.s*=r.s):e=Jr(t,r,0,n.modulo,1),e=e.times(r),Rt=!0,t.minus(e))};Pe.naturalExponential=Pe.exp=function(){return YP(this)};Pe.naturalLogarithm=Pe.ln=function(){return xp(this)};Pe.negated=Pe.neg=function(){var r=new this.constructor(this);return r.s=-r.s,lt(r)};Pe.plus=Pe.add=function(r){var e,t,n,i,s,a,u,c,l,f,p=this,d=p.constructor;if(r=new d(r),!p.d||!r.d)return!p.s||!r.s?r=new d(NaN):p.d||(r=new d(r.d||p.s===r.s?p:NaN)),r;if(p.s!=r.s)return r.s=-r.s,p.minus(r);if(l=p.d,f=r.d,u=d.precision,c=d.rounding,!l[0]||!f[0])return f[0]||(r=new d(p)),Rt?lt(r,u,c):r;if(s=Is(p.e/vt),n=Is(r.e/vt),l=l.slice(),i=s-n,i){for(i<0?(t=l,i=-i,a=f.length):(t=f,n=s,a=l.length),s=Math.ceil(u/vt),a=s>a?s+1:a+1,i>a&&(i=a,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(a=l.length,i=f.length,a-i<0&&(i=a,t=f,f=l,l=t),e=0;i;)e=(l[--i]=l[i]+f[i]+e)/pu|0,l[i]%=pu;for(e&&(l.unshift(e),++n),a=l.length;l[--a]==0;)l.pop();return r.d=l,r.e=vN(l,n),Rt?lt(r,u,c):r};Pe.precision=Pe.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(bp+r);return t.d?(e=Xj(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};Pe.round=function(){var r=this,e=r.constructor;return lt(new e(r),r.e+1,e.rounding)};Pe.sine=Pe.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+vt,n.rounding=1,t=zne(n,Qj(n,t)),n.precision=r,n.rounding=e,lt(Rl>2?t.neg():t,r,e,!0)):new n(NaN)};Pe.squareRoot=Pe.sqrt=function(){var r,e,t,n,i,s,a=this,u=a.d,c=a.e,l=a.s,f=a.constructor;if(l!==1||!u||!u[0])return new f(!l||l<0&&(!u||u[0])?NaN:u?a:1/0);for(Rt=!1,l=Math.sqrt(+a),l==0||l==1/0?(e=is(u),(e.length+c)%2==0&&(e+="0"),l=Math.sqrt(e),c=Is((c+1)/2)-(c<0||c%2),l==1/0?e="5e"+c:(e=l.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),n=new f(e)):n=new f(l.toString()),t=(c=f.precision)+3;;)if(s=n,n=s.plus(Jr(a,s,t+2,1)).times(.5),is(s.d).slice(0,t)===(e=is(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!i&&e=="4999"){if(!i&&(lt(s,c+1,0),s.times(s).eq(a))){n=s;break}t+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(lt(n,c+1,1),r=!n.times(n).eq(a));break}return Rt=!0,lt(n,c,f.rounding,r)};Pe.tangent=Pe.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=Jr(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,lt(Rl==2||Rl==4?t.neg():t,r,e,!0)):new n(NaN)};Pe.times=Pe.mul=function(r){var e,t,n,i,s,a,u,c,l,f=this,p=f.constructor,d=f.d,g=(r=new p(r)).d;if(r.s*=f.s,!d||!d[0]||!g||!g[0])return new p(!r.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?r.s/0:r.s*0);for(t=Is(f.e/vt)+Is(r.e/vt),c=d.length,l=g.length,c<l&&(s=d,d=g,g=s,a=c,c=l,l=a),s=[],a=c+l,n=a;n--;)s.push(0);for(n=l;--n>=0;){for(e=0,i=c+n;i>n;)u=s[i]+g[n]*d[i-n-1]+e,s[i--]=u%pu|0,e=u/pu|0;s[i]=(s[i]+e)%pu|0}for(;!s[--a];)s.pop();return e?++t:s.shift(),r.d=s,r.e=vN(s,t),Rt?lt(r,p.precision,p.rounding):r};Pe.toBinary=function(r,e){return QP(this,2,r,e)};Pe.toDecimalPlaces=Pe.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(pa(r,0,Ep),e===void 0?e=n.rounding:pa(e,0,8),lt(t,r+t.e+1,e))};Pe.toExponential=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=fc(n,!0):(pa(r,0,Ep),e===void 0?e=i.rounding:pa(e,0,8),n=lt(new i(n),r+1,e),t=fc(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};Pe.toFixed=function(r,e){var t,n,i=this,s=i.constructor;return r===void 0?t=fc(i):(pa(r,0,Ep),e===void 0?e=s.rounding:pa(e,0,8),n=lt(new s(i),r+i.e+1,e),t=fc(n,!1,r+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};Pe.toFraction=function(r){var e,t,n,i,s,a,u,c,l,f,p,d,g=this,m=g.d,y=g.constructor;if(!m)return new y(g);if(l=t=new y(1),n=c=new y(0),e=new y(n),s=e.e=Xj(m)-g.e-1,a=s%vt,e.d[0]=yi(10,a<0?vt+a:a),r==null)r=s>0?e:l;else{if(u=new y(r),!u.isInt()||u.lt(l))throw Error(bp+u);r=u.gt(e)?s>0?e:l:u}for(Rt=!1,u=new y(is(m)),f=y.precision,y.precision=s=m.length*vt*2;p=Jr(u,e,0,1,1),i=t.plus(p.times(n)),i.cmp(r)!=1;)t=n,n=i,i=l,l=c.plus(p.times(i)),c=i,i=e,e=u.minus(p.times(i)),u=i;return i=Jr(r.minus(t),n,0,1,1),c=c.plus(i.times(l)),t=t.plus(i.times(n)),c.s=l.s=g.s,d=Jr(l,n,s,1).minus(g).abs().cmp(Jr(c,t,s,1).minus(g).abs())<1?[l,n]:[c,t],y.precision=f,Rt=!0,d};Pe.toHexadecimal=Pe.toHex=function(r,e){return QP(this,16,r,e)};Pe.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:pa(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(Rt=!1,t=Jr(t,r,0,e,1).times(r),Rt=!0,lt(t)):(r.s=t.s,t=r),t};Pe.toNumber=function(){return+this};Pe.toOctal=function(r,e){return QP(this,8,r,e)};Pe.toPower=Pe.pow=function(r){var e,t,n,i,s,a,u=this,c=u.constructor,l=+(r=new c(r));if(!u.d||!r.d||!u.d[0]||!r.d[0])return new c(yi(+u,l));if(u=new c(u),u.eq(1))return u;if(n=c.precision,s=c.rounding,r.eq(1))return lt(u,n,s);if(e=Is(r.e/vt),e>=r.d.length-1&&(t=l<0?-l:l)<=Mne)return i=Wj(c,u,t,n),r.s<0?new c(1).div(i):lt(i,n,s);if(a=u.s,a<0){if(e<r.d.length-1)return new c(NaN);if((r.d[e]&1)==0&&(a=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=a,u}return t=yi(+u,l),e=t==0||!isFinite(t)?Is(l*(Math.log("0."+is(u.d))/Math.LN10+u.e+1)):new c(t+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?a/0:0):(Rt=!1,c.rounding=u.s=1,t=Math.min(12,(e+"").length),i=YP(r.times(xp(u,n+t)),n),i.d&&(i=lt(i,n+5,1),nb(i.d,n,s)&&(e=n+10,i=lt(YP(r.times(xp(u,e+t)),e),e+5,1),+is(i.d).slice(n+1,n+15)+1==1e14&&(i=lt(i,n+1,0)))),i.s=a,Rt=!0,c.rounding=s,lt(i,n,s))};Pe.toPrecision=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=fc(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(pa(r,1,Ep),e===void 0?e=i.rounding:pa(e,0,8),n=lt(new i(n),r,e),t=fc(n,r<=n.e||n.e<=i.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};Pe.toSignificantDigits=Pe.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(pa(r,1,Ep),e===void 0?e=n.rounding:pa(e,0,8)),lt(new n(t),r,e)};Pe.toString=function(){var r=this,e=r.constructor,t=fc(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};Pe.truncated=Pe.trunc=function(){return lt(new this.constructor(this),this.e+1,1)};Pe.valueOf=Pe.toJSON=function(){var r=this,e=r.constructor,t=fc(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function is(r){var e,t,n,i=r.length-1,s="",a=r[0];if(i>0){for(s+=a,e=1;e<i;e++)n=r[e]+"",t=vt-n.length,t&&(s+=Sp(t)),s+=n;a=r[e],n=a+"",t=vt-n.length,t&&(s+=Sp(t))}else if(a===0)return"0";for(;a%10===0;)a/=10;return s+a}o(is,"digitsToString");function pa(r,e,t){if(r!==~~r||r<e||r>t)throw Error(bp+r)}o(pa,"checkInt32");function nb(r,e,t,n){var i,s,a,u;for(s=r[0];s>=10;s/=10)--e;return--e<0?(e+=vt,i=0):(i=Math.ceil((e+1)/vt),e%=vt),s=yi(10,vt-e),u=r[i]%s|0,n==null?e<3?(e==0?u=u/100|0:e==1&&(u=u/10|0),a=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):a=(t<4&&u+1==s||t>3&&u+1==s/2)&&(r[i+1]/s/100|0)==yi(10,e-2)-1||(u==s/2||u==0)&&(r[i+1]/s/100|0)==0:e<4?(e==0?u=u/1e3|0:e==1?u=u/100|0:e==2&&(u=u/10|0),a=(n||t<4)&&u==9999||!n&&t>3&&u==4999):a=((n||t<4)&&u+1==s||!n&&t>3&&u+1==s/2)&&(r[i+1]/s/1e3|0)==yi(10,e-3)-1,a}o(nb,"checkRoundingDigits");function fN(r,e,t){for(var n,i=[0],s,a=0,u=r.length;a<u;){for(s=i.length;s--;)i[s]*=e;for(i[0]+=XP.indexOf(r.charAt(a++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}o(fN,"convertBase");function qne(r,e){var t,n,i;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),i=(1/yN(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),r.precision+=t,e=Jg(r,1,e.times(i),new r(1));for(var s=t;s--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return r.precision-=t,e}o(qne,"cosine");var Jr=(function(){function r(n,i,s){var a,u=0,c=n.length;for(n=n.slice();c--;)a=n[c]*i+u,n[c]=a%s|0,u=a/s|0;return u&&n.unshift(u),n}o(r,"multiplyInteger");function e(n,i,s,a){var u,c;if(s!=a)c=s>a?1:-1;else for(u=c=0;u<s;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}o(e,"compare");function t(n,i,s,a){for(var u=0;s--;)n[s]-=u,u=n[s]<i[s]?1:0,n[s]=u*a+n[s]-i[s];for(;!n[0]&&n.length>1;)n.shift()}return o(t,"subtract"),function(n,i,s,a,u,c){var l,f,p,d,g,m,y,v,x,w,b,S,E,C,_,D,I,M,j,U,ue=n.constructor,te=n.s==i.s?1:-1,pe=n.d,X=i.d;if(!pe||!pe[0]||!X||!X[0])return new ue(!n.s||!i.s||(pe?X&&pe[0]==X[0]:!X)?NaN:pe&&pe[0]==0||!X?te*0:te/0);for(c?(g=1,f=n.e-i.e):(c=pu,g=vt,f=Is(n.e/g)-Is(i.e/g)),j=X.length,I=pe.length,x=new ue(te),w=x.d=[],p=0;X[p]==(pe[p]||0);p++);if(X[p]>(pe[p]||0)&&f--,s==null?(C=s=ue.precision,a=ue.rounding):u?C=s+(n.e-i.e)+1:C=s,C<0)w.push(1),m=!0;else{if(C=C/g+2|0,p=0,j==1){for(d=0,X=X[0],C++;(p<I||d)&&C--;p++)_=d*c+(pe[p]||0),w[p]=_/X|0,d=_%X|0;m=d||p<I}else{for(d=c/(X[0]+1)|0,d>1&&(X=r(X,d,c),pe=r(pe,d,c),j=X.length,I=pe.length),D=j,b=pe.slice(0,j),S=b.length;S<j;)b[S++]=0;U=X.slice(),U.unshift(0),M=X[0],X[1]>=c/2&&++M;do d=0,l=e(X,b,j,S),l<0?(E=b[0],j!=S&&(E=E*c+(b[1]||0)),d=E/M|0,d>1?(d>=c&&(d=c-1),y=r(X,d,c),v=y.length,S=b.length,l=e(y,b,v,S),l==1&&(d--,t(y,j<v?U:X,v,c))):(d==0&&(l=d=1),y=X.slice()),v=y.length,v<S&&y.unshift(0),t(b,y,S,c),l==-1&&(S=b.length,l=e(X,b,j,S),l<1&&(d++,t(b,j<S?U:X,S,c))),S=b.length):l===0&&(d++,b=[0]),w[p++]=d,l&&b[0]?b[S++]=pe[D]||0:(b=[pe[D]],S=1);while((D++<I||b[0]!==void 0)&&C--);m=b[0]!==void 0}w[0]||w.shift()}if(g==1)x.e=f,qj=m;else{for(p=1,d=w[0];d>=10;d/=10)p++;x.e=p+f*g-1,lt(x,u?s+x.e+1:s,a,m)}return x}})();function lt(r,e,t,n){var i,s,a,u,c,l,f,p,d,g=r.constructor;e:if(e!=null){if(p=r.d,!p)return r;for(i=1,u=p[0];u>=10;u/=10)i++;if(s=e-i,s<0)s+=vt,a=e,f=p[d=0],c=f/yi(10,i-a-1)%10|0;else if(d=Math.ceil((s+1)/vt),u=p.length,d>=u)if(n){for(;u++<=d;)p.push(0);f=c=0,i=1,s%=vt,a=s-vt+1}else break e;else{for(f=u=p[d],i=1;u>=10;u/=10)i++;s%=vt,a=s-vt+i,c=a<0?0:f/yi(10,i-a-1)%10|0}if(n=n||e<0||p[d+1]!==void 0||(a<0?f:f%yi(10,i-a-1)),l=t<4?(c||n)&&(t==0||t==(r.s<0?3:2)):c>5||c==5&&(t==4||n||t==6&&(s>0?a>0?f/yi(10,i-a):0:p[d-1])%10&1||t==(r.s<0?8:7)),e<1||!p[0])return p.length=0,l?(e-=r.e+1,p[0]=yi(10,(vt-e%vt)%vt),r.e=-e||0):p[0]=r.e=0,r;if(s==0?(p.length=d,u=1,d--):(p.length=d+1,u=yi(10,vt-s),p[d]=a>0?(f/yi(10,i-a)%yi(10,a)|0)*u:0),l)for(;;)if(d==0){for(s=1,a=p[0];a>=10;a/=10)s++;for(a=p[0]+=u,u=1;a>=10;a/=10)u++;s!=u&&(r.e++,p[0]==pu&&(p[0]=1));break}else{if(p[d]+=u,p[d]!=pu)break;p[d--]=0,u=1}for(s=p.length;p[--s]===0;)p.pop()}return Rt&&(r.e>g.maxE?(r.d=null,r.e=NaN):r.e<g.minE&&(r.e=0,r.d=[0])),r}o(lt,"finalise");function fc(r,e,t){if(!r.isFinite())return Yj(r);var n,i=r.e,s=is(r.d),a=s.length;return e?(t&&(n=t-a)>0?s=s.charAt(0)+"."+s.slice(1)+Sp(n):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(r.e<0?"e":"e+")+r.e):i<0?(s="0."+Sp(-i-1)+s,t&&(n=t-a)>0&&(s+=Sp(n))):i>=a?(s+=Sp(i+1-a),t&&(n=t-i-1)>0&&(s=s+"."+Sp(n))):((n=i+1)<a&&(s=s.slice(0,n)+"."+s.slice(n)),t&&(n=t-a)>0&&(i+1===a&&(s+="."),s+=Sp(n))),s}o(fc,"finiteToString");function vN(r,e){var t=r[0];for(e*=vt;t>=10;t/=10)e++;return e}o(vN,"getBase10Exponent");function mN(r,e,t){if(e>Une)throw Rt=!0,t&&(r.precision=t),Error(Hj);return lt(new r(hN),e,1,!0)}o(mN,"getLn10");function lc(r,e,t){if(e>JP)throw Error(Hj);return lt(new r(dN),e,t,!0)}o(lc,"getPi");function Xj(r){var e=r.length-1,t=e*vt+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}o(Xj,"getPrecision");function Sp(r){for(var e="";r--;)e+="0";return e}o(Sp,"getZeroString");function Wj(r,e,t,n){var i,s=new r(1),a=Math.ceil(n/vt+4);for(Rt=!1;;){if(t%2&&(s=s.times(e),Mj(s.d,a)&&(i=!0)),t=Is(t/2),t===0){t=s.d.length-1,i&&s.d[t]===0&&++s.d[t];break}e=e.times(e),Mj(e.d,a)}return Rt=!0,s}o(Wj,"intPow");function jj(r){return r.d[r.d.length-1]&1}o(jj,"isOdd");function Jj(r,e,t){for(var n,i,s=new r(e[0]),a=0;++a<e.length;){if(i=new r(e[a]),!i.s){s=i;break}n=s.cmp(i),(n===t||n===0&&s.s===t)&&(s=i)}return s}o(Jj,"maxOrMin");function YP(r,e){var t,n,i,s,a,u,c,l=0,f=0,p=0,d=r.constructor,g=d.rounding,m=d.precision;if(!r.d||!r.d[0]||r.e>17)return new d(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:NaN);for(e==null?(Rt=!1,c=m):c=e,u=new d(.03125);r.e>-2;)r=r.times(u),p+=5;for(n=Math.log(yi(2,p))/Math.LN10*2+5|0,c+=n,t=s=a=new d(1),d.precision=c;;){if(s=lt(s.times(r),c,1),t=t.times(++f),u=a.plus(Jr(s,t,c,1)),is(u.d).slice(0,c)===is(a.d).slice(0,c)){for(i=p;i--;)a=lt(a.times(a),c,1);if(e==null)if(l<3&&nb(a.d,c-n,g,l))d.precision=c+=10,t=s=u=new d(1),f=0,l++;else return lt(a,d.precision=m,g,Rt=!0);else return d.precision=m,a}a=u}}o(YP,"naturalExponential");function xp(r,e){var t,n,i,s,a,u,c,l,f,p,d,g=1,m=10,y=r,v=y.d,x=y.constructor,w=x.rounding,b=x.precision;if(y.s<0||!v||!v[0]||!y.e&&v[0]==1&&v.length==1)return new x(v&&!v[0]?-1/0:y.s!=1?NaN:v?0:y);if(e==null?(Rt=!1,f=b):f=e,x.precision=f+=m,t=is(v),n=t.charAt(0),Math.abs(s=y.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)y=y.times(r),t=is(y.d),n=t.charAt(0),g++;s=y.e,n>1?(y=new x("0."+t),s++):y=new x(n+"."+t.slice(1))}else return l=mN(x,f+2,b).times(s+""),y=xp(new x(n+"."+t.slice(1)),f-m).plus(l),x.precision=b,e==null?lt(y,b,w,Rt=!0):y;for(p=y,c=a=y=Jr(y.minus(1),y.plus(1),f,1),d=lt(y.times(y),f,1),i=3;;){if(a=lt(a.times(d),f,1),l=c.plus(Jr(a,new x(i),f,1)),is(l.d).slice(0,f)===is(c.d).slice(0,f))if(c=c.times(2),s!==0&&(c=c.plus(mN(x,f+2,b).times(s+""))),c=Jr(c,new x(g),f,1),e==null)if(nb(c.d,f-m,w,u))x.precision=f+=m,l=a=y=Jr(p.minus(1),p.plus(1),f,1),d=lt(y.times(y),f,1),i=u=1;else return lt(c,x.precision=b,w,Rt=!0);else return x.precision=b,c;c=l,i+=2}}o(xp,"naturalLogarithm");function Yj(r){return String(r.s*r.s/0)}o(Yj,"nonFiniteToString");function pN(r,e){var t,n,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(n,i),e){if(i-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%vt,t<0&&(n+=vt),n<i){for(n&&r.d.push(+e.slice(0,n)),i-=vt;n<i;)r.d.push(+e.slice(n,n+=vt));e=e.slice(n),n=vt-e.length}else n-=i;for(;n--;)e+="0";r.d.push(+e),Rt&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}o(pN,"parseDecimal");function Hne(r,e){var t,n,i,s,a,u,c,l,f;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Gj.test(e))return pN(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(Vne.test(e))t=16,e=e.toLowerCase();else if(kne.test(e))t=2;else if(jne.test(e))t=8;else throw Error(bp+e);for(s=e.search(/p/i),s>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),s=e.indexOf("."),a=s>=0,n=r.constructor,a&&(e=e.replace(".",""),u=e.length,s=u-s,i=Wj(n,new n(t),s,s*2)),l=fN(e,t,pu),f=l.length-1,s=f;l[s]===0;--s)l.pop();return s<0?new n(r.s*0):(r.e=vN(l,f),r.d=l,Rt=!1,a&&(r=Jr(r,i,u*4)),c&&(r=r.times(Math.abs(c)<54?yi(2,c):Yg.pow(2,c))),Rt=!0,r)}o(Hne,"parseOther");function zne(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Jg(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/yN(5,t)),e=Jg(r,2,e,e);for(var i,s=new r(5),a=new r(16),u=new r(20);t--;)i=e.times(e),e=e.times(s.plus(i.times(a.times(i).minus(u))));return e}o(zne,"sine");function Jg(r,e,t,n,i){var s,a,u,c,l=1,f=r.precision,p=Math.ceil(f/vt);for(Rt=!1,c=t.times(t),u=new r(n);;){if(a=Jr(u.times(c),new r(e++*e++),f,1),u=i?n.plus(a):n.minus(a),n=Jr(a.times(c),new r(e++*e++),f,1),a=u.plus(n),a.d[p]!==void 0){for(s=p;a.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=n,n=a,a=s,l++}return Rt=!0,a.d.length=p+1,a}o(Jg,"taylorSeries");function yN(r,e){for(var t=r;--e;)t*=r;return t}o(yN,"tinyPow");function Qj(r,e){var t,n=e.s<0,i=lc(r,r.precision,1),s=i.times(.5);if(e=e.abs(),e.lte(s))return Rl=n?4:1,e;if(t=e.divToInt(i),t.isZero())Rl=n?3:2;else{if(e=e.minus(t.times(i)),e.lte(s))return Rl=jj(t)?n?2:3:n?4:1,e;Rl=jj(t)?n?1:4:n?3:2}return e.minus(i).abs()}o(Qj,"toLessThanHalfPi");function QP(r,e,t,n){var i,s,a,u,c,l,f,p,d,g=r.constructor,m=t!==void 0;if(m?(pa(t,1,Ep),n===void 0?n=g.rounding:pa(n,0,8)):(t=g.precision,n=g.rounding),!r.isFinite())f=Yj(r);else{for(f=fc(r),a=f.indexOf("."),m?(i=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):i=e,a>=0&&(f=f.replace(".",""),d=new g(1),d.e=f.length-a,d.d=fN(fc(d),10,i),d.e=d.d.length),p=fN(f,10,i),s=c=p.length;p[--c]==0;)p.pop();if(!p[0])f=m?"0p+0":"0";else{if(a<0?s--:(r=new g(r),r.d=p,r.e=s,r=Jr(r,d,t,n,0,i),p=r.d,s=r.e,l=qj),a=p[t],u=i/2,l=l||p[t+1]!==void 0,l=n<4?(a!==void 0||l)&&(n===0||n===(r.s<0?3:2)):a>u||a===u&&(n===4||l||n===6&&p[t-1]&1||n===(r.s<0?8:7)),p.length=t,l)for(;++p[--t]>i-1;)p[t]=0,t||(++s,p.unshift(1));for(c=p.length;!p[c-1];--c);for(a=0,f="";a<c;a++)f+=XP.charAt(p[a]);if(m){if(c>1)if(e==16||e==8){for(a=e==16?4:3,--c;c%a;c++)f+="0";for(p=fN(f,i,e),c=p.length;!p[c-1];--c);for(a=1,f="1.";a<c;a++)f+=XP.charAt(p[a])}else f=f.charAt(0)+"."+f.slice(1);f=f+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)f="0"+f;f="0."+f}else if(++s>c)for(s-=c;s--;)f+="0";else s<c&&(f=f.slice(0,s)+"."+f.slice(s))}f=(e==16?"0x":e==2?"0b":e==8?"0o":"")+f}return r.s<0?"-"+f:f}o(QP,"toStringBinary");function Mj(r,e){if(r.length>e)return r.length=e,!0}o(Mj,"truncate");function Kne(r){return new this(r).abs()}o(Kne,"abs");function Gne(r){return new this(r).acos()}o(Gne,"acos");function Xne(r){return new this(r).acosh()}o(Xne,"acosh");function Wne(r,e){return new this(r).plus(e)}o(Wne,"add");function Jne(r){return new this(r).asin()}o(Jne,"asin");function Yne(r){return new this(r).asinh()}o(Yne,"asinh");function Qne(r){return new this(r).atan()}o(Qne,"atan");function $ne(r){return new this(r).atanh()}o($ne,"atanh");function Zne(r,e){r=new this(r),e=new this(e);var t,n=this.precision,i=this.rounding,s=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=lc(this,s,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?lc(this,n,i):new this(0),t.s=r.s):!r.d||e.isZero()?(t=lc(this,s,1).times(.5),t.s=r.s):e.s<0?(this.precision=s,this.rounding=1,t=this.atan(Jr(r,e,s,1)),e=lc(this,s,1),this.precision=n,this.rounding=i,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(Jr(r,e,s,1)),t}o(Zne,"atan2");function eie(r){return new this(r).cbrt()}o(eie,"cbrt");function tie(r){return lt(r=new this(r),r.e+1,2)}o(tie,"ceil");function rie(r,e,t){return new this(r).clamp(e,t)}o(rie,"clamp");function nie(r){if(!r||typeof r!="object")throw Error(gN+"Object expected");var e,t,n,i=r.defaults===!0,s=["precision",1,Ep,"rounding",0,8,"toExpNeg",-Wg,0,"toExpPos",0,Wg,"maxE",0,Wg,"minE",-Wg,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(t=s[e],i&&(this[t]=WP[t]),(n=r[t])!==void 0)if(Is(n)===n&&n>=s[e+1]&&n<=s[e+2])this[t]=n;else throw Error(bp+t+": "+n);if(t="crypto",i&&(this[t]=WP[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(zj);else this[t]=!1;else throw Error(bp+t+": "+n);return this}o(nie,"config");function iie(r){return new this(r).cos()}o(iie,"cos");function sie(r){return new this(r).cosh()}o(sie,"cosh");function $j(r){var e,t,n;function i(s){var a,u,c,l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,Uj(s)){l.s=s.s,Rt?!s.d||s.e>i.maxE?(l.e=NaN,l.d=null):s.e<i.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(c=typeof s,c==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(a=0,u=s;u>=10;u/=10)a++;Rt?a>i.maxE?(l.e=NaN,l.d=null):a<i.minE?(l.e=0,l.d=[0]):(l.e=a,l.d=[s]):(l.e=a,l.d=[s]);return}if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return pN(l,s.toString())}if(c==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(u===43&&(s=s.slice(1)),l.s=1),Gj.test(s)?pN(l,s):Hne(l,s);if(c==="bigint")return s<0?(s=-s,l.s=-1):l.s=1,pN(l,s.toString());throw Error(bp+s)}if(o(i,"Decimal"),i.prototype=Pe,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.EUCLID=9,i.config=i.set=nie,i.clone=$j,i.isDecimal=Uj,i.abs=Kne,i.acos=Gne,i.acosh=Xne,i.add=Wne,i.asin=Jne,i.asinh=Yne,i.atan=Qne,i.atanh=$ne,i.atan2=Zne,i.cbrt=eie,i.ceil=tie,i.clamp=rie,i.cos=iie,i.cosh=sie,i.div=aie,i.exp=oie,i.floor=uie,i.hypot=cie,i.ln=lie,i.log=fie,i.log10=hie,i.log2=pie,i.max=die,i.min=mie,i.mod=gie,i.mul=vie,i.pow=yie,i.random=Sie,i.round=xie,i.sign=bie,i.sin=Eie,i.sinh=wie,i.sqrt=Cie,i.sub=Aie,i.sum=Nie,i.tan=Tie,i.tanh=Iie,i.trunc=Die,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return i.config(r),i}o($j,"clone");function aie(r,e){return new this(r).div(e)}o(aie,"div");function oie(r){return new this(r).exp()}o(oie,"exp");function uie(r){return lt(r=new this(r),r.e+1,3)}o(uie,"floor");function cie(){var r,e,t=new this(0);for(Rt=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return Rt=!0,new this(1/0);t=e}return Rt=!0,t.sqrt()}o(cie,"hypot");function Uj(r){return r instanceof Yg||r&&r.toStringTag===Kj||!1}o(Uj,"isDecimalInstance");function lie(r){return new this(r).ln()}o(lie,"ln");function fie(r,e){return new this(r).log(e)}o(fie,"log");function pie(r){return new this(r).log(2)}o(pie,"log2");function hie(r){return new this(r).log(10)}o(hie,"log10");function die(){return Jj(this,arguments,-1)}o(die,"max");function mie(){return Jj(this,arguments,1)}o(mie,"min");function gie(r,e){return new this(r).mod(e)}o(gie,"mod");function vie(r,e){return new this(r).mul(e)}o(vie,"mul");function yie(r,e){return new this(r).pow(e)}o(yie,"pow");function Sie(r){var e,t,n,i,s=0,a=new this(1),u=[];if(r===void 0?r=this.precision:pa(r,1,Ep),n=Math.ceil(r/vt),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));s<n;)i=e[s],i>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);s<n;)i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((e[s+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=n/4}else throw Error(zj);else for(;s<n;)u[s++]=Math.random()*1e7|0;for(n=u[--s],r%=vt,n&&r&&(i=yi(10,vt-r),u[s]=(n/i|0)*i);u[s]===0;s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=vt)u.shift();for(n=1,i=u[0];i>=10;i/=10)n++;n<vt&&(t-=vt-n)}return a.e=t,a.d=u,a}o(Sie,"random");function xie(r){return lt(r=new this(r),r.e+1,this.rounding)}o(xie,"round");function bie(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}o(bie,"sign");function Eie(r){return new this(r).sin()}o(Eie,"sin");function wie(r){return new this(r).sinh()}o(wie,"sinh");function Cie(r){return new this(r).sqrt()}o(Cie,"sqrt");function Aie(r,e){return new this(r).sub(e)}o(Aie,"sub");function Nie(){var r=0,e=arguments,t=new this(e[r]);for(Rt=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return Rt=!0,lt(t,this.precision,this.rounding)}o(Nie,"sum");function Tie(r){return new this(r).tan()}o(Tie,"tan");function Iie(r){return new this(r).tanh()}o(Iie,"tanh");function Die(r){return lt(r=new this(r),r.e+1,1)}o(Die,"trunc");Pe[Symbol.for("nodejs.util.inspect.custom")]=Pe.toString;Pe[Symbol.toStringTag]="Decimal";var Yg=Pe.constructor=$j(WP);hN=new Yg(hN);dN=new Yg(dN);var Dr=class r extends Yg{static{o(this,"Decimal")}static from(e){return new r(e)}static newOrZero(e){return e===void 0?r.from(0):r.from(e)}static newOrUndefined(e){if(e!==void 0)return r.from(e)}};var Zj=zt(require("pdfkit"),1);var SN=class r{static{o(this,"PdfkitPdfBuilder")}defaults={autoFirstPage:!1};doc=new Zj.default(this.defaults);constructor(e){e&&this.configure(e)}static new(e){return new r(e)}configure(e){return this.doc.options={...this.doc.options,...e},this}pipe(e){return this.doc.pipe(e),this}end(){return this.doc.end()}restore(){return this.doc.restore(),this}save(){return this.doc.save(),this}stroke(e){return this.doc.stroke(e),this}page(e){return this.doc.addPage(e),this}table(e){return this.doc.table(e),this}text(e,t){let{x:n,y:i,...s}=t??{};return n||i?(this.doc.text(e,n,i,s),this):(this.doc.text(e,t),this)}fontSize(e){return this.doc.fontSize(e),this}font(e,t,n){return typeof t=="string"?(this.doc.font(e,t,n),this):typeof t=="number"?(this.doc.font(e,t),this):(this.doc.font(e),this)}image(e,t,n,i){return typeof t=="number"&&typeof n=="number"?(this.doc.image(e,t,n,i),this):(this.doc.image(e,t),this)}rect(e,t,n,i){return this.doc.rect(e,t,n,i),this}path(e){return this.doc.path(e),this}translate(e,t){return this.doc.translate(e,t),this}scale(e,t){return this.doc.scale(e,t),this}fill(e,t){return this.doc.fill(e,t),this}pageWidth(){return this.doc.page.width}pageHeight(){return this.doc.page.height}heightOfString(e,t){return this.doc.heightOfString(e,t)}widthOfString(e,t){return this.doc.widthOfString(e,t)}pageMargins(){return this.doc.page.margins}currentLineHeight(e){return this.doc.currentLineHeight(e)}x(){return this.doc.x}y(){return this.doc.y}moveDown(e){return this.doc.moveDown(e),this}row(e,...t){let n,i;typeof e=="function"?(n={},i=[e,...t]):(n=e??{},i=t),n.columns??=1;let s=this.y(),a=n.right??0,u=n.left??0,c=n.gap??0,l=this.pageWidth(),f=l-u-a-c*(n.columns-1);n.size??=Array(n.columns).fill(12/n.columns);let p=[];for(let d=0;d<n.columns;d++){let g=n.size[d]/12;p[d]=f*g}for(let d=0,g=u;d<n.columns;d++){let m=d===n.columns-1,y=p[d];if(m&&n.columns>1){let w=l-a-g;w>0&&Math.abs(w-y)>.01&&(y=w)}let v={y:s,x:g,width:y};i[d](v),g+=y,c>0&&!m&&(g+=c)}return this}};var xN=class{static{o(this,"MemoryCacheAdapter")}cache=new Map;async get(e){return Promise.resolve(this.cache.get(e)??null)}has(e){return Promise.resolve(this.cache.has(e))}set(e,t){return this.cache.set(e,t),Promise.resolve(!0)}};var TU=zt(require("os"),1),u4=zt(require("fs"),1),IU=zt(require("path"),1),gv=zt(require("crypto"),1),kp=zt(mU(),1);var _t=class extends Error{static{o(this,"NFeTsError")}};var e4=class{static{o(this,"Left")}value;constructor(e){this.value=e}isLeft(){return!0}isRight(){return!1}},ZN=class{static{o(this,"Right")}value;constructor(e){this.value=e}isLeft(){return!1}isRight(){return!0}},ur=o(r=>new e4(r),"left"),Ot=o(r=>r===void 0?new ZN(void 0):new ZN(r),"right");var due=o(r=>!!r&&typeof r=="object"&&"message"in r,"hasMessageInRecord"),Co=o(r=>typeof r=="string"?ur(new _t(r)):r instanceof Error?ur(new _t(r.message,{cause:r.cause})):due(r)?ur(new _t(r.message)):ur(new _t("unexpected error")),"leftFromError");var eT=class{static{o(this,"NullCacheAdapter")}async get(e){return Promise.resolve(null)}has(e){return Promise.resolve(!1)}set(e,t){return Promise.resolve(!0)}};var t4="http://www.w3.org/2000/09/xmldsig#",gU="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",r4=(function(r){return r.RSA_SHA1="http://www.w3.org/2000/09/xmldsig#rsa-sha1",r.RSA_SHA256="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",r})({}),Ec=(function(r){return r.SHA1="sha1",r.SHA256="sha256",r})({}),n4=(function(r){return r.SHA1="http://www.w3.org/2000/09/xmldsig#sha1",r.SHA256="http://www.w3.org/2001/04/xmlenc#sha256",r})({});var xb={includeComments:!1,exclusive:!0};var cm=o(r=>{throw new _t("Didn't expect to get here")},"unreachable");var pv=class{static{o(this,"Signer")}toolkit;certificateRepository;algorithm;canonical;constructor(e,t,n=Ec.SHA1,i=xb){this.toolkit=e,this.certificateRepository=t,this.algorithm=n,this.canonical=i}assemble(e,t,n){let i=this.certificateRepository.getStringCertificate(n);return{$:{xmlns:t4},SignedInfo:e,SignatureValue:t,KeyInfo:{X509Data:{X509Certificate:i}}}}signedInfo(e,t){return{CanonicalizationMethod:{$:{Algorithm:gU}},SignatureMethod:{$:{Algorithm:this.signatureMethod}},Reference:{$:{URI:`#${this.toolkit.getAttribute(e,t)}`},Transforms:this.transforms,DigestMethod:{$:{Algorithm:this.digestAlgorithm}},DigestValue:this.digest(e)}}}digest(e){return this.toolkit.digest(e,this.algorithm,this.canonical)}async signOrLeft(e,t){let n=this.toolkit.canonicalize(await this.toolkit.build({$:{xmlns:t4},...e},{rootName:"SignedInfo"}),this.canonical);return this.certificateRepository.sign(n,t,this.algorithm)}get transforms(){return{Transform:[{$:{Algorithm:"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},{$:{Algorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}]}}get digestAlgorithm(){switch(this.algorithm){case Ec.SHA256:return n4.SHA256;case Ec.SHA1:return n4.SHA1;default:return cm(this.algorithm)}}get signatureMethod(){switch(this.algorithm){case Ec.SHA256:return r4.RSA_SHA256;case Ec.SHA1:return r4.RSA_SHA1;default:return cm(this.algorithm)}}};var tT=class extends pv{static{o(this,"EntitySigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n;if(!e[i])return ur(new _t(`Node ${String(i)} not found`));let u=await this.toolkit.build(this.ns(e,i),{headless:!0,rootName:String(i),renderOpts:{pretty:!1}}),c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let f=e;return f.Signature=this.assemble(c,l.value,a),Ot(f)}ns(e,t){let n=e.$?.xmlns,{$:i,...s}=e[t],{xmlns:a,...u}=i??{};return{$:{xmlns:n,...u},...s}}};var rT=class extends pv{static{o(this,"XmlSigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n,u=this.toolkit.getNode(e,i);if(!u)return ur(new _t(`Node ${i} not found`));let c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let f=await this.toolkit.build(this.assemble(c,l.value,a),{rootName:"Signature"});return Ot(this.toolkit.appendNode(e,f))}};var jIe=require("reflect-metadata"),yU=require("class-validator");var _Ie=require("reflect-metadata");var i4="__SkipValidation__";var vU=require("class-transformer");var nT=o(r=>{for(let[e,t]of Object.entries(r))typeof t>"u"&&delete r[e],t===""&&delete r[e],t&&typeof t=="object"&&nT(t)},"clearEmptyValues"),iT=o((r,e,t={})=>{let n=(0,vU.plainToInstance)(e,r);return t.clearEmptyValues&&nT(n),n},"plainToInstance");var Ao="__ValidateErrors__",SU=o((r,e)=>r.reduce((t,n)=>{if(n.children?.length)return t.concat(SU(n.children,e?`${e}.${n.property}`:n.property));let i=Object.values(n.constraints??{}).map(s=>e?`${e}.${s}`:s).join(", ");return i?t.concat(i):t},[]),"mapConstraintsToErrors"),Et=o(r=>(e,t,n)=>{let i=n.value;n.value=function(...s){let a=Reflect.getMetadata(i4,this.constructor);if(Reflect.getMetadata(i4,this.constructor.prototype,t.toString())===!0||a===!0)return i?.apply(this,s);let[c,...l]=s;if(!c)return i?.apply(this,s);let f=iT(c,r),p=(0,yU.validateSync)(f,{whitelist:!0});if(nT(f),p.length){let d=Reflect.getMetadata(Ao,this)??[];Reflect.defineMetadata(Ao,d.concat(SU(p,i?.name)),this)}return i?.apply(this,[f,...l])}},"Validates");var zIe=require("reflect-metadata");var xU=require("class-validator");var bU=o(r=>(e,t)=>{(0,xU.registerDecorator)({name:"isDecimal",target:e.constructor,propertyName:t,options:r,validator:{validate(n){return n instanceof Dr?!0:typeof n=="string"||typeof n=="number"||typeof n=="bigint"},defaultMessage(n){return`${n.property} is not a valid Decimal value`}}})},"IsDecimal");var WIe=require("reflect-metadata"),s4=require("class-validator");var hv=Symbol("choice"),dv=o(r=>r==null||r==="","isEmpty"),Lr=o(r=>e=>{let{properties:t,required:n=!1,...i}=r,s=Reflect.getMetadata(hv,e)??[],a={properties:t,required:n};s.push(a),Reflect.defineMetadata(hv,s,e);for(let u of t)(0,s4.registerDecorator)({name:"choice",target:e,propertyName:u,options:i,validator:{validate(c,l){let f=l.object,p=l.property,d=Reflect.getMetadata(hv,e);if(!d)return!0;let g=d.find(m=>m.properties.includes(p));if(!g||dv(c))return!0;for(let m of g.properties){if(m===p)continue;let y=f[m];if(!dv(y))return!1}for(let m of d)if(m!==g)for(let y of m.properties){let v=f[y];if(!dv(v))return!1}return!0},defaultMessage(c){let l=Reflect.getMetadata(hv,e);if(!l)return`${c.property} validation error`;let f=l.find(d=>d.properties.includes(c.property));if(!f)return`${c.property} validation error`;let p=c.object;for(let d of f.properties){let g=p[d];if(!dv(g)&&d!==c.property)return`${c.property} cannot be set because ${d} is already set. Only one property from this choice group is allowed.`}for(let d of l)if(d!==f)for(let g of d.properties){let m=p[g];if(!dv(m))return`${c.property} cannot be set because ${g} from a different choice group is already set.`}return`${c.property} validation error`}}});if(n)for(let u of t)(0,s4.registerDecorator)({name:"choiceGroupRequired",target:e,propertyName:u,options:{...i,always:!0},validator:{validate(c,l){let f=l.object,p=Reflect.getMetadata(hv,e);if(!p)return!0;let d=p.find(g=>g.properties.includes(l.property));if(!d?.required)return!0;for(let g of d.properties){let m=f[g];if(!dv(m))return!0}return l.property!==d.properties[0]},defaultMessage(c){let l=Reflect.getMetadata(hv,e);if(!l)return"At least one property from a choice group must be provided";let f=l.find(p=>p.properties.includes(c.property));return f?`You must provide a value for one of the following properties: ${f.properties.join(", ")}`:"At least one property from a choice group must be provided"}}})},"Choice");var QIe=require("reflect-metadata");var EU=require("class-transformer");var $=o(({fixed:r,...e}={fixed:2})=>(t,n)=>{bU(e)(t,n),(0,EU.Transform)(({value:i})=>Dr.newOrUndefined(i)?.toFixed(r))(t,n)},"TransformDecimal");var AU=require("class-transformer"),NU=require("class-validator");var sT=zt(require("dayjs"),1),wU=zt(require("dayjs/plugin/utc"),1),CU=zt(require("dayjs/plugin/timezone"),1);sT.default.extend(wU.default);sT.default.extend(CU.default);var _p=sT.default;var Fp=o((r={})=>(e,t)=>{(0,AU.Transform)(({value:n})=>{let i=n instanceof Date?n.toISOString():n;return i?_p(i).tz("America/Sao_Paulo").format(r.format):void 0})(e,t),(0,NU.IsDateString)()(e,t)},"TransformDateString");var Lp=class{static{o(this,"ASN1")}extractCertificateInfo(e){let n=e.subject.split(`
100
+ `;return typeof n=="function"&&n(null,d),d},"render")});var one=H(LP=>{"use strict";var eNe=wj();LP.render=eNe.render;LP.renderToFile=o(function(e,t,n,i){typeof i>"u"&&(i=n,n=void 0);let s=require("fs"),u='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+LP.render(t,n);s.writeFile(e,u,i)},"renderToFile")});var une=H(kP=>{"use strict";var Cj=sN();function tNe(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}o(tNe,"clearCanvas");function rNe(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}o(rNe,"getCanvasElement");kP.render=o(function(e,t,n){let i=n,s=t;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),t||(s=rNe()),i=Cj.getOptions(i);let a=Cj.getImageWidth(e.modules.size,i),u=s.getContext("2d"),c=u.createImageData(a,a);return Cj.qrToImageData(c.data,e,i),tNe(u,s,a),u.putImageData(c,0,0),s},"render");kP.renderToDataURL=o(function(e,t,n){let i=n;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),i||(i={});let s=kP.render(e,t,i),a=i.type||"image/png",u=i.rendererOpts||{};return s.toDataURL(a,u.quality)},"renderToDataURL")});var lne=H(aN=>{"use strict";var nNe=VV(),Aj=nj(),cne=une(),iNe=wj();function Nj(r,e,t,n,i){let s=[].slice.call(arguments,1),a=s.length,u=typeof s[a-1]=="function";if(!u&&!nNe())throw new Error("Callback required as last argument");if(u){if(a<2)throw new Error("Too few arguments provided");a===2?(i=t,t=e,e=n=void 0):a===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,l){try{let f=Aj.create(t,n);c(r(f,e,n))}catch(f){l(f)}})}try{let c=Aj.create(t,n);i(null,r(c,e,n))}catch(c){i(c)}}o(Nj,"renderCanvas");aN.create=Aj.create;aN.toCanvas=Nj.bind(null,cne.render);aN.toDataURL=Nj.bind(null,cne.renderToDataURL);aN.toString=Nj.bind(null,function(r,e,t){return iNe.render(r,t)})});var dne=H($d=>{"use strict";var fne=VV(),Tj=nj(),sNe=Jre(),pne=Yre(),aNe=ine(),hne=one();function oN(r,e,t){if(typeof r>"u")throw new Error("String required as first argument");if(typeof t>"u"&&(t=e,e={}),typeof t!="function")if(fne())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}o(oN,"checkParams");function oNe(r){return r.slice((r.lastIndexOf(".")-1>>>0)+2).toLowerCase()}o(oNe,"getTypeFromFilename");function VP(r){switch(r){case"svg":return hne;case"txt":case"utf8":return pne;case"png":case"image/png":default:return sNe}}o(VP,"getRendererFromType");function uNe(r){switch(r){case"svg":return hne;case"terminal":return aNe;case"utf8":default:return pne}}o(uNe,"getStringRendererFromType");function uN(r,e,t){if(!t.cb)return new Promise(function(n,i){try{let s=Tj.create(e,t.opts);return r(s,t.opts,function(a,u){return a?i(a):n(u)})}catch(s){i(s)}});try{let n=Tj.create(e,t.opts);return r(n,t.opts,t.cb)}catch(n){t.cb(n)}}o(uN,"render");$d.create=Tj.create;$d.toCanvas=lne().toCanvas;$d.toString=o(function(e,t,n){let i=oN(e,t,n),s=i.opts?i.opts.type:void 0,a=uNe(s);return uN(a.render,e,i)},"toString");$d.toDataURL=o(function(e,t,n){let i=oN(e,t,n),s=VP(i.opts.type);return uN(s.renderToDataURL,e,i)},"toDataURL");$d.toBuffer=o(function(e,t,n){let i=oN(e,t,n),s=VP(i.opts.type);return uN(s.renderToBuffer,e,i)},"toBuffer");$d.toFile=o(function(e,t,n,i){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!fne())throw new Error("Too few arguments provided");let s=oN(t,n,i),a=s.opts.type||oNe(e),c=VP(a).renderToFile.bind(null,e);return uN(c,t,s)},"toFile");$d.toFileStream=o(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let i=oN(t,n,e.emit.bind(e,"error")),a=VP("png").renderToFileStream.bind(null,e);uN(a,t,i)},"toFileStream")});var gne=H((sit,mne)=>{"use strict";mne.exports=dne()});var lNe={};cN(lNe,{AccessKeyBuilder:()=>rb,DanfceDefaultPdfDocument:()=>Dj,DanfceReducedPdfDocument:()=>Rj,DefaultDetBuilderAggregator:()=>cA,DefaultTotalBuilderAggregator:()=>lA,NFCeDto:()=>Cl,NFeDto:()=>dp,NfceAuthorizerPipeline:()=>tV,NfceCancelPipeline:()=>eV,NfceConsultProtocoloPipeline:()=>iV,NfceConsultStatusPipeline:()=>nV,NfceQrcode:()=>ra,NfceRemoteTransmitter:()=>Ls,NfceVoidRangePipeline:()=>rV,NfceXmlBuilder:()=>YA,NfceXmlBuilderPipeline:()=>kV,NfeAuthorizationResponsePipeline:()=>Q5,NfeAuthorizerPipeline:()=>gA,NfeCancelPipeline:()=>mA,NfeConsultProtocoloPipeline:()=>yA,NfeConsultStatusPipeline:()=>vA,NfeDetXmlBuilder:()=>rs,NfeRemoteTransmitter:()=>ka,NfeVoidRangePipeline:()=>ex,NfeXmlBuilder:()=>hn,NfeXmlBuilderPipeline:()=>JA,TpEmis:()=>Ts,TpEvent:()=>Il,schemas:()=>tb});module.exports=Bne(lNe);var Ts=(function(r){return r.Normal="1",r.EPEC="4",r.SVCAN="6",r.SVCRS="7",r.OFFLINE="9",r})({});var Il=(function(r){return r.Cancelamento="110111",r})({});var Xa=require("path"),Zd=require("fs");var GP=require("path"),KP=require("module"),lN=require("url");var Pne=typeof jest<"u"||process.env.JEST_WORKER_ID!==void 0,Gg,Fj=o(()=>{if(Gg!==void 0)return Gg;if(Pne){Gg=void 0;return}try{Gg=new Function("try { return import.meta.url; } catch { return undefined; }")()}catch{Gg=void 0}return Gg},"getImportMetaUrl"),Lj=o(()=>{if(typeof require<"u")return require;let r=Fj();if(r)return(0,KP.createRequire)(r);let e=(0,lN.pathToFileURL)((0,GP.resolve)(process.cwd(),"package.json")).href;return(0,KP.createRequire)(e)},"getRequireFn"),kj=o(()=>{if(typeof __filename<"u")return __filename;let r=Fj();return r?(0,lN.fileURLToPath)(r):(0,GP.resolve)(process.cwd())},"getCurrentFile");var Vj=o(()=>typeof process<"u"&&typeof process.versions<"u"&&"electron"in process.versions,"isElectron"),_ne=o(()=>{if(!Vj())return null;try{let e=require("electron").app;if(e?.getAppPath&&typeof e.getAppPath=="function")return{getAppPath:e.getAppPath}}catch{}return null},"getElectronApp"),Fne=o(()=>{if(!Vj())return null;let r=process;if(r.resourcesPath)return r.resourcesPath;let e=_ne();if(e)try{let t=e.getAppPath();if(typeof t=="string")return(0,Xa.dirname)(t.replace(/\.asar$/,""))}catch{}return null},"getElectronResourcesPath"),Xg=o((r,{onFound:e,onNotFound:t})=>{let n=Fne();if(n){let l=(0,Xa.resolve)(n,"node_modules","nfets",r);if((0,Zd.existsSync)(l))return e(l);let f=(0,Xa.resolve)(n,"app.asar.unpacked","node_modules","nfets",r);if((0,Zd.existsSync)(f))return e(f)}let i=kj(),s=i.includes(".asar")?process.cwd():i,a=(0,Xa.resolve)(s,"../../../../"),u=(0,Xa.resolve)(a,r);if((0,Zd.existsSync)(u))return e(u);let c=s;for(let l=0;l<5;l++){let f=(0,Xa.resolve)(c,r);if((0,Zd.existsSync)(f))return e(f);let p=(0,Xa.dirname)(c);if(p===c)break;c=p}c=s;for(let l=0;l<5;l++){let f=(0,Xa.resolve)(c,"node_modules","nfets",r);if((0,Zd.existsSync)(f))return e(f);let p=(0,Xa.dirname)(c);if(p===c)break;c=p}c=s;for(let l=0;l<5;l++){let f=(0,Xa.resolve)(c,r.replace(/^build\//,"Release/"));if((0,Zd.existsSync)(f))return e(f);let p=(0,Xa.dirname)(c);if(p===c)break;c=p}return t()},"search");var Lne={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21",PL_010_V1_30:"PL_010_V1.30"},tb=o(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Xg("packages/nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Xg("nfe/schemas",{onFound:o(r=>r,"onFound"),onNotFound:o(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),Dl=Lne;var rb=class{static{o(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),i=e.month.toString().padStart(2,"0"),s=(e.identification??"").padStart(14,"0"),a=e.mod.toString().padStart(2,"0"),u=e.serie.toString().padStart(3,"0"),c=e.nNF.toString().padStart(9,"0"),l=e.tpEmis.toString().padStart(1,"0"),f=(e.cNF??this.code()).toString().padStart(8,"0"),p=`${t}${n}${i}${s}${a}${u}${c}${l}${f}`;return`${p}${this.verifyingDigit(p)}`}decompile(e){if(e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([A-Z0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!n)return;let[i,s,a,u,c,l,f,p,d,g,m]=n;return{cUF:s,year:a,month:u,identification:c,mod:l,serie:f,nNF:p,tpEmis:d,cNF:g,vd:m}}code(){let e=Math.floor(Math.random()*1e8).toString().padStart(8,"0");return this.isCodeValid(e)?e:this.code()}isCodeValid(e){return!~["00000000","11111111","22222222","33333333","44444444","55555555","66666666","77777777","88888888","99999999","12345678","23456789","34567890","45678901","56789012","67890123","78901234","89012345","90123456","01234567"].indexOf(e)}verifyingDigit(e){let t=[4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2],n=48,i=43,s=0;for(let u=0;u<i;u++){let c=e.charCodeAt(u)-n;s+=c*t[u]}return s%11<2?0:11-s%11}};var Wg=9e15,Ep=1e9,XP="0123456789abcdef",hN="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",dN="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",WP={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Wg,maxE:Wg,crypto:!1},qj,Rl,Rt=!0,gN="[DecimalError] ",bp=gN+"Invalid argument: ",Hj=gN+"Precision limit exceeded",zj=gN+"crypto unavailable",Kj="[object Decimal]",Is=Math.floor,yi=Math.pow,kne=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Vne=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,jne=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Gj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pu=1e7,vt=7,Mne=9007199254740991,Une=hN.length-1,JP=dN.length-1,Pe={toStringTag:Kj};Pe.absoluteValue=Pe.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),lt(r)};Pe.ceil=function(){return lt(new this.constructor(this),this.e+1,2)};Pe.clampedTo=Pe.clamp=function(r,e){var t,n=this,i=n.constructor;if(r=new i(r),e=new i(e),!r.s||!e.s)return new i(NaN);if(r.gt(e))throw Error(bp+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new i(n)};Pe.comparedTo=Pe.cmp=function(r){var e,t,n,i,s=this,a=s.d,u=(r=new s.constructor(r)).d,c=s.s,l=r.s;if(!a||!u)return!c||!l?NaN:c!==l?c:a===u?0:!a^c<0?1:-1;if(!a[0]||!u[0])return a[0]?c:u[0]?-l:0;if(c!==l)return c;if(s.e!==r.e)return s.e>r.e^c<0?1:-1;for(n=a.length,i=u.length,e=0,t=n<i?n:i;e<t;++e)if(a[e]!==u[e])return a[e]>u[e]^c<0?1:-1;return n===i?0:n>i^c<0?1:-1};Pe.cosine=Pe.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+vt,n.rounding=1,t=qne(n,Qj(n,t)),n.precision=r,n.rounding=e,lt(Rl==2||Rl==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};Pe.cubeRoot=Pe.cbrt=function(){var r,e,t,n,i,s,a,u,c,l,f=this,p=f.constructor;if(!f.isFinite()||f.isZero())return new p(f);for(Rt=!1,s=f.s*yi(f.s*f,1/3),!s||Math.abs(s)==1/0?(t=is(f.d),r=f.e,(s=(r-t.length+1)%3)&&(t+=s==1||s==-2?"0":"00"),s=yi(t,1/3),r=Is((r+1)/3)-(r%3==(r<0?-1:2)),s==1/0?t="5e"+r:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new p(t),n.s=f.s):n=new p(s.toString()),a=(r=p.precision)+3;;)if(u=n,c=u.times(u).times(u),l=c.plus(f),n=Jr(l.plus(f).times(u),l.plus(c),a+2,1),is(u.d).slice(0,a)===(t=is(n.d)).slice(0,a))if(t=t.slice(a-3,a+1),t=="9999"||!i&&t=="4999"){if(!i&&(lt(u,r+1,0),u.times(u).times(u).eq(f))){n=u;break}a+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(lt(n,r+1,1),e=!n.times(n).times(n).eq(f));break}return Rt=!0,lt(n,r,p.rounding,e)};Pe.decimalPlaces=Pe.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-Is(this.e/vt))*vt,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};Pe.dividedBy=Pe.div=function(r){return Jr(this,new this.constructor(r))};Pe.dividedToIntegerBy=Pe.divToInt=function(r){var e=this,t=e.constructor;return lt(Jr(e,new t(r),0,1,1),t.precision,t.rounding)};Pe.equals=Pe.eq=function(r){return this.cmp(r)===0};Pe.floor=function(){return lt(new this.constructor(this),this.e+1,3)};Pe.greaterThan=Pe.gt=function(r){return this.cmp(r)>0};Pe.greaterThanOrEqualTo=Pe.gte=function(r){var e=this.cmp(r);return e==1||e===0};Pe.hyperbolicCosine=Pe.cosh=function(){var r,e,t,n,i,s=this,a=s.constructor,u=new a(1);if(!s.isFinite())return new a(s.s?1/0:NaN);if(s.isZero())return u;t=a.precision,n=a.rounding,a.precision=t+Math.max(s.e,s.sd())+4,a.rounding=1,i=s.d.length,i<32?(r=Math.ceil(i/3),e=(1/yN(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),s=Jg(a,1,s.times(e),new a(1),!0);for(var c,l=r,f=new a(8);l--;)c=s.times(s),s=u.minus(c.times(f.minus(c.times(f))));return lt(s,a.precision=t,a.rounding=n,!0)};Pe.hyperbolicSine=Pe.sinh=function(){var r,e,t,n,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,n=i.d.length,n<3)i=Jg(s,2,i,i,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,i=i.times(1/yN(5,r)),i=Jg(s,2,i,i,!0);for(var a,u=new s(5),c=new s(16),l=new s(20);r--;)a=i.times(i),i=i.times(u.plus(a.times(c.times(a).plus(l))))}return s.precision=e,s.rounding=t,lt(i,e,t,!0)};Pe.hyperbolicTangent=Pe.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,Jr(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};Pe.inverseCosine=Pe.acos=function(){var r=this,e=r.constructor,t=r.abs().cmp(1),n=e.precision,i=e.rounding;return t!==-1?t===0?r.isNeg()?lc(e,n,i):new e(0):new e(NaN):r.isZero()?lc(e,n+4,i).times(.5):(e.precision=n+6,e.rounding=1,r=new e(1).minus(r).div(r.plus(1)).sqrt().atan(),e.precision=n,e.rounding=i,r.times(2))};Pe.inverseHyperbolicCosine=Pe.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,Rt=!1,t=t.times(t).minus(1).sqrt().plus(t),Rt=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};Pe.inverseHyperbolicSine=Pe.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,Rt=!1,t=t.times(t).plus(1).sqrt().plus(t),Rt=!0,n.precision=r,n.rounding=e,t.ln())};Pe.inverseHyperbolicTangent=Pe.atanh=function(){var r,e,t,n,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(r=s.precision,e=s.rounding,n=i.sd(),Math.max(n,r)<2*-i.e-1?lt(new s(i),r,e,!0):(s.precision=t=n-i.e,i=Jr(i.plus(1),new s(1).minus(i),t+r,1),s.precision=r+4,s.rounding=1,i=i.ln(),s.precision=r,s.rounding=e,i.times(.5))):new s(NaN)};Pe.inverseSine=Pe.asin=function(){var r,e,t,n,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),t=s.precision,n=s.rounding,e!==-1?e===0?(r=lc(s,t+4,n).times(.5),r.s=i.s,r):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=n,i.times(2)))};Pe.inverseTangent=Pe.atan=function(){var r,e,t,n,i,s,a,u,c,l=this,f=l.constructor,p=f.precision,d=f.rounding;if(l.isFinite()){if(l.isZero())return new f(l);if(l.abs().eq(1)&&p+4<=JP)return a=lc(f,p+4,d).times(.25),a.s=l.s,a}else{if(!l.s)return new f(NaN);if(p+4<=JP)return a=lc(f,p+4,d).times(.5),a.s=l.s,a}for(f.precision=u=p+10,f.rounding=1,t=Math.min(28,u/vt+2|0),r=t;r;--r)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Rt=!1,e=Math.ceil(u/vt),n=1,c=l.times(l),a=new f(l),i=l;r!==-1;)if(i=i.times(c),s=a.minus(i.div(n+=2)),i=i.times(c),a=s.plus(i.div(n+=2)),a.d[e]!==void 0)for(r=e;a.d[r]===s.d[r]&&r--;);return t&&(a=a.times(2<<t-1)),Rt=!0,lt(a,f.precision=p,f.rounding=d,!0)};Pe.isFinite=function(){return!!this.d};Pe.isInteger=Pe.isInt=function(){return!!this.d&&Is(this.e/vt)>this.d.length-2};Pe.isNaN=function(){return!this.s};Pe.isNegative=Pe.isNeg=function(){return this.s<0};Pe.isPositive=Pe.isPos=function(){return this.s>0};Pe.isZero=function(){return!!this.d&&this.d[0]===0};Pe.lessThan=Pe.lt=function(r){return this.cmp(r)<0};Pe.lessThanOrEqualTo=Pe.lte=function(r){return this.cmp(r)<1};Pe.logarithm=Pe.log=function(r){var e,t,n,i,s,a,u,c,l=this,f=l.constructor,p=f.precision,d=f.rounding,g=5;if(r==null)r=new f(10),e=!0;else{if(r=new f(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new f(NaN);e=r.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new f(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)s=!0;else{for(i=t[0];i%10===0;)i/=10;s=i!==1}if(Rt=!1,u=p+g,a=xp(l,u),n=e?mN(f,u+10):xp(r,u),c=Jr(a,n,u,1),nb(c.d,i=p,d))do if(u+=10,a=xp(l,u),n=e?mN(f,u+10):xp(r,u),c=Jr(a,n,u,1),!s){+is(c.d).slice(i+1,i+15)+1==1e14&&(c=lt(c,p+1,0));break}while(nb(c.d,i+=10,d));return Rt=!0,lt(c,p,d)};Pe.minus=Pe.sub=function(r){var e,t,n,i,s,a,u,c,l,f,p,d,g=this,m=g.constructor;if(r=new m(r),!g.d||!r.d)return!g.s||!r.s?r=new m(NaN):g.d?r.s=-r.s:r=new m(r.d||g.s!==r.s?g:NaN),r;if(g.s!=r.s)return r.s=-r.s,g.plus(r);if(l=g.d,d=r.d,u=m.precision,c=m.rounding,!l[0]||!d[0]){if(d[0])r.s=-r.s;else if(l[0])r=new m(g);else return new m(c===3?-0:0);return Rt?lt(r,u,c):r}if(t=Is(r.e/vt),f=Is(g.e/vt),l=l.slice(),s=f-t,s){for(p=s<0,p?(e=l,s=-s,a=d.length):(e=d,t=f,a=l.length),n=Math.max(Math.ceil(u/vt),a)+2,s>n&&(s=n,e.length=1),e.reverse(),n=s;n--;)e.push(0);e.reverse()}else{for(n=l.length,a=d.length,p=n<a,p&&(a=n),n=0;n<a;n++)if(l[n]!=d[n]){p=l[n]<d[n];break}s=0}for(p&&(e=l,l=d,d=e,r.s=-r.s),a=l.length,n=d.length-a;n>0;--n)l[a++]=0;for(n=d.length;n>s;){if(l[--n]<d[n]){for(i=n;i&&l[--i]===0;)l[i]=pu-1;--l[i],l[n]+=pu}l[n]-=d[n]}for(;l[--a]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(r.d=l,r.e=vN(l,t),Rt?lt(r,u,c):r):new m(c===3?-0:0)};Pe.modulo=Pe.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?lt(new n(t),n.precision,n.rounding):(Rt=!1,n.modulo==9?(e=Jr(t,r.abs(),0,3,1),e.s*=r.s):e=Jr(t,r,0,n.modulo,1),e=e.times(r),Rt=!0,t.minus(e))};Pe.naturalExponential=Pe.exp=function(){return YP(this)};Pe.naturalLogarithm=Pe.ln=function(){return xp(this)};Pe.negated=Pe.neg=function(){var r=new this.constructor(this);return r.s=-r.s,lt(r)};Pe.plus=Pe.add=function(r){var e,t,n,i,s,a,u,c,l,f,p=this,d=p.constructor;if(r=new d(r),!p.d||!r.d)return!p.s||!r.s?r=new d(NaN):p.d||(r=new d(r.d||p.s===r.s?p:NaN)),r;if(p.s!=r.s)return r.s=-r.s,p.minus(r);if(l=p.d,f=r.d,u=d.precision,c=d.rounding,!l[0]||!f[0])return f[0]||(r=new d(p)),Rt?lt(r,u,c):r;if(s=Is(p.e/vt),n=Is(r.e/vt),l=l.slice(),i=s-n,i){for(i<0?(t=l,i=-i,a=f.length):(t=f,n=s,a=l.length),s=Math.ceil(u/vt),a=s>a?s+1:a+1,i>a&&(i=a,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(a=l.length,i=f.length,a-i<0&&(i=a,t=f,f=l,l=t),e=0;i;)e=(l[--i]=l[i]+f[i]+e)/pu|0,l[i]%=pu;for(e&&(l.unshift(e),++n),a=l.length;l[--a]==0;)l.pop();return r.d=l,r.e=vN(l,n),Rt?lt(r,u,c):r};Pe.precision=Pe.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(bp+r);return t.d?(e=Xj(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};Pe.round=function(){var r=this,e=r.constructor;return lt(new e(r),r.e+1,e.rounding)};Pe.sine=Pe.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+vt,n.rounding=1,t=zne(n,Qj(n,t)),n.precision=r,n.rounding=e,lt(Rl>2?t.neg():t,r,e,!0)):new n(NaN)};Pe.squareRoot=Pe.sqrt=function(){var r,e,t,n,i,s,a=this,u=a.d,c=a.e,l=a.s,f=a.constructor;if(l!==1||!u||!u[0])return new f(!l||l<0&&(!u||u[0])?NaN:u?a:1/0);for(Rt=!1,l=Math.sqrt(+a),l==0||l==1/0?(e=is(u),(e.length+c)%2==0&&(e+="0"),l=Math.sqrt(e),c=Is((c+1)/2)-(c<0||c%2),l==1/0?e="5e"+c:(e=l.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),n=new f(e)):n=new f(l.toString()),t=(c=f.precision)+3;;)if(s=n,n=s.plus(Jr(a,s,t+2,1)).times(.5),is(s.d).slice(0,t)===(e=is(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!i&&e=="4999"){if(!i&&(lt(s,c+1,0),s.times(s).eq(a))){n=s;break}t+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(lt(n,c+1,1),r=!n.times(n).eq(a));break}return Rt=!0,lt(n,c,f.rounding,r)};Pe.tangent=Pe.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=Jr(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,lt(Rl==2||Rl==4?t.neg():t,r,e,!0)):new n(NaN)};Pe.times=Pe.mul=function(r){var e,t,n,i,s,a,u,c,l,f=this,p=f.constructor,d=f.d,g=(r=new p(r)).d;if(r.s*=f.s,!d||!d[0]||!g||!g[0])return new p(!r.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?r.s/0:r.s*0);for(t=Is(f.e/vt)+Is(r.e/vt),c=d.length,l=g.length,c<l&&(s=d,d=g,g=s,a=c,c=l,l=a),s=[],a=c+l,n=a;n--;)s.push(0);for(n=l;--n>=0;){for(e=0,i=c+n;i>n;)u=s[i]+g[n]*d[i-n-1]+e,s[i--]=u%pu|0,e=u/pu|0;s[i]=(s[i]+e)%pu|0}for(;!s[--a];)s.pop();return e?++t:s.shift(),r.d=s,r.e=vN(s,t),Rt?lt(r,p.precision,p.rounding):r};Pe.toBinary=function(r,e){return QP(this,2,r,e)};Pe.toDecimalPlaces=Pe.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(pa(r,0,Ep),e===void 0?e=n.rounding:pa(e,0,8),lt(t,r+t.e+1,e))};Pe.toExponential=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=fc(n,!0):(pa(r,0,Ep),e===void 0?e=i.rounding:pa(e,0,8),n=lt(new i(n),r+1,e),t=fc(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};Pe.toFixed=function(r,e){var t,n,i=this,s=i.constructor;return r===void 0?t=fc(i):(pa(r,0,Ep),e===void 0?e=s.rounding:pa(e,0,8),n=lt(new s(i),r+i.e+1,e),t=fc(n,!1,r+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};Pe.toFraction=function(r){var e,t,n,i,s,a,u,c,l,f,p,d,g=this,m=g.d,y=g.constructor;if(!m)return new y(g);if(l=t=new y(1),n=c=new y(0),e=new y(n),s=e.e=Xj(m)-g.e-1,a=s%vt,e.d[0]=yi(10,a<0?vt+a:a),r==null)r=s>0?e:l;else{if(u=new y(r),!u.isInt()||u.lt(l))throw Error(bp+u);r=u.gt(e)?s>0?e:l:u}for(Rt=!1,u=new y(is(m)),f=y.precision,y.precision=s=m.length*vt*2;p=Jr(u,e,0,1,1),i=t.plus(p.times(n)),i.cmp(r)!=1;)t=n,n=i,i=l,l=c.plus(p.times(i)),c=i,i=e,e=u.minus(p.times(i)),u=i;return i=Jr(r.minus(t),n,0,1,1),c=c.plus(i.times(l)),t=t.plus(i.times(n)),c.s=l.s=g.s,d=Jr(l,n,s,1).minus(g).abs().cmp(Jr(c,t,s,1).minus(g).abs())<1?[l,n]:[c,t],y.precision=f,Rt=!0,d};Pe.toHexadecimal=Pe.toHex=function(r,e){return QP(this,16,r,e)};Pe.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:pa(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(Rt=!1,t=Jr(t,r,0,e,1).times(r),Rt=!0,lt(t)):(r.s=t.s,t=r),t};Pe.toNumber=function(){return+this};Pe.toOctal=function(r,e){return QP(this,8,r,e)};Pe.toPower=Pe.pow=function(r){var e,t,n,i,s,a,u=this,c=u.constructor,l=+(r=new c(r));if(!u.d||!r.d||!u.d[0]||!r.d[0])return new c(yi(+u,l));if(u=new c(u),u.eq(1))return u;if(n=c.precision,s=c.rounding,r.eq(1))return lt(u,n,s);if(e=Is(r.e/vt),e>=r.d.length-1&&(t=l<0?-l:l)<=Mne)return i=Wj(c,u,t,n),r.s<0?new c(1).div(i):lt(i,n,s);if(a=u.s,a<0){if(e<r.d.length-1)return new c(NaN);if((r.d[e]&1)==0&&(a=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=a,u}return t=yi(+u,l),e=t==0||!isFinite(t)?Is(l*(Math.log("0."+is(u.d))/Math.LN10+u.e+1)):new c(t+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?a/0:0):(Rt=!1,c.rounding=u.s=1,t=Math.min(12,(e+"").length),i=YP(r.times(xp(u,n+t)),n),i.d&&(i=lt(i,n+5,1),nb(i.d,n,s)&&(e=n+10,i=lt(YP(r.times(xp(u,e+t)),e),e+5,1),+is(i.d).slice(n+1,n+15)+1==1e14&&(i=lt(i,n+1,0)))),i.s=a,Rt=!0,c.rounding=s,lt(i,n,s))};Pe.toPrecision=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=fc(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(pa(r,1,Ep),e===void 0?e=i.rounding:pa(e,0,8),n=lt(new i(n),r,e),t=fc(n,r<=n.e||n.e<=i.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};Pe.toSignificantDigits=Pe.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(pa(r,1,Ep),e===void 0?e=n.rounding:pa(e,0,8)),lt(new n(t),r,e)};Pe.toString=function(){var r=this,e=r.constructor,t=fc(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};Pe.truncated=Pe.trunc=function(){return lt(new this.constructor(this),this.e+1,1)};Pe.valueOf=Pe.toJSON=function(){var r=this,e=r.constructor,t=fc(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function is(r){var e,t,n,i=r.length-1,s="",a=r[0];if(i>0){for(s+=a,e=1;e<i;e++)n=r[e]+"",t=vt-n.length,t&&(s+=Sp(t)),s+=n;a=r[e],n=a+"",t=vt-n.length,t&&(s+=Sp(t))}else if(a===0)return"0";for(;a%10===0;)a/=10;return s+a}o(is,"digitsToString");function pa(r,e,t){if(r!==~~r||r<e||r>t)throw Error(bp+r)}o(pa,"checkInt32");function nb(r,e,t,n){var i,s,a,u;for(s=r[0];s>=10;s/=10)--e;return--e<0?(e+=vt,i=0):(i=Math.ceil((e+1)/vt),e%=vt),s=yi(10,vt-e),u=r[i]%s|0,n==null?e<3?(e==0?u=u/100|0:e==1&&(u=u/10|0),a=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):a=(t<4&&u+1==s||t>3&&u+1==s/2)&&(r[i+1]/s/100|0)==yi(10,e-2)-1||(u==s/2||u==0)&&(r[i+1]/s/100|0)==0:e<4?(e==0?u=u/1e3|0:e==1?u=u/100|0:e==2&&(u=u/10|0),a=(n||t<4)&&u==9999||!n&&t>3&&u==4999):a=((n||t<4)&&u+1==s||!n&&t>3&&u+1==s/2)&&(r[i+1]/s/1e3|0)==yi(10,e-3)-1,a}o(nb,"checkRoundingDigits");function fN(r,e,t){for(var n,i=[0],s,a=0,u=r.length;a<u;){for(s=i.length;s--;)i[s]*=e;for(i[0]+=XP.indexOf(r.charAt(a++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}o(fN,"convertBase");function qne(r,e){var t,n,i;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),i=(1/yN(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),r.precision+=t,e=Jg(r,1,e.times(i),new r(1));for(var s=t;s--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return r.precision-=t,e}o(qne,"cosine");var Jr=(function(){function r(n,i,s){var a,u=0,c=n.length;for(n=n.slice();c--;)a=n[c]*i+u,n[c]=a%s|0,u=a/s|0;return u&&n.unshift(u),n}o(r,"multiplyInteger");function e(n,i,s,a){var u,c;if(s!=a)c=s>a?1:-1;else for(u=c=0;u<s;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}o(e,"compare");function t(n,i,s,a){for(var u=0;s--;)n[s]-=u,u=n[s]<i[s]?1:0,n[s]=u*a+n[s]-i[s];for(;!n[0]&&n.length>1;)n.shift()}return o(t,"subtract"),function(n,i,s,a,u,c){var l,f,p,d,g,m,y,v,x,w,b,S,E,C,_,D,I,M,j,U,ue=n.constructor,te=n.s==i.s?1:-1,pe=n.d,X=i.d;if(!pe||!pe[0]||!X||!X[0])return new ue(!n.s||!i.s||(pe?X&&pe[0]==X[0]:!X)?NaN:pe&&pe[0]==0||!X?te*0:te/0);for(c?(g=1,f=n.e-i.e):(c=pu,g=vt,f=Is(n.e/g)-Is(i.e/g)),j=X.length,I=pe.length,x=new ue(te),w=x.d=[],p=0;X[p]==(pe[p]||0);p++);if(X[p]>(pe[p]||0)&&f--,s==null?(C=s=ue.precision,a=ue.rounding):u?C=s+(n.e-i.e)+1:C=s,C<0)w.push(1),m=!0;else{if(C=C/g+2|0,p=0,j==1){for(d=0,X=X[0],C++;(p<I||d)&&C--;p++)_=d*c+(pe[p]||0),w[p]=_/X|0,d=_%X|0;m=d||p<I}else{for(d=c/(X[0]+1)|0,d>1&&(X=r(X,d,c),pe=r(pe,d,c),j=X.length,I=pe.length),D=j,b=pe.slice(0,j),S=b.length;S<j;)b[S++]=0;U=X.slice(),U.unshift(0),M=X[0],X[1]>=c/2&&++M;do d=0,l=e(X,b,j,S),l<0?(E=b[0],j!=S&&(E=E*c+(b[1]||0)),d=E/M|0,d>1?(d>=c&&(d=c-1),y=r(X,d,c),v=y.length,S=b.length,l=e(y,b,v,S),l==1&&(d--,t(y,j<v?U:X,v,c))):(d==0&&(l=d=1),y=X.slice()),v=y.length,v<S&&y.unshift(0),t(b,y,S,c),l==-1&&(S=b.length,l=e(X,b,j,S),l<1&&(d++,t(b,j<S?U:X,S,c))),S=b.length):l===0&&(d++,b=[0]),w[p++]=d,l&&b[0]?b[S++]=pe[D]||0:(b=[pe[D]],S=1);while((D++<I||b[0]!==void 0)&&C--);m=b[0]!==void 0}w[0]||w.shift()}if(g==1)x.e=f,qj=m;else{for(p=1,d=w[0];d>=10;d/=10)p++;x.e=p+f*g-1,lt(x,u?s+x.e+1:s,a,m)}return x}})();function lt(r,e,t,n){var i,s,a,u,c,l,f,p,d,g=r.constructor;e:if(e!=null){if(p=r.d,!p)return r;for(i=1,u=p[0];u>=10;u/=10)i++;if(s=e-i,s<0)s+=vt,a=e,f=p[d=0],c=f/yi(10,i-a-1)%10|0;else if(d=Math.ceil((s+1)/vt),u=p.length,d>=u)if(n){for(;u++<=d;)p.push(0);f=c=0,i=1,s%=vt,a=s-vt+1}else break e;else{for(f=u=p[d],i=1;u>=10;u/=10)i++;s%=vt,a=s-vt+i,c=a<0?0:f/yi(10,i-a-1)%10|0}if(n=n||e<0||p[d+1]!==void 0||(a<0?f:f%yi(10,i-a-1)),l=t<4?(c||n)&&(t==0||t==(r.s<0?3:2)):c>5||c==5&&(t==4||n||t==6&&(s>0?a>0?f/yi(10,i-a):0:p[d-1])%10&1||t==(r.s<0?8:7)),e<1||!p[0])return p.length=0,l?(e-=r.e+1,p[0]=yi(10,(vt-e%vt)%vt),r.e=-e||0):p[0]=r.e=0,r;if(s==0?(p.length=d,u=1,d--):(p.length=d+1,u=yi(10,vt-s),p[d]=a>0?(f/yi(10,i-a)%yi(10,a)|0)*u:0),l)for(;;)if(d==0){for(s=1,a=p[0];a>=10;a/=10)s++;for(a=p[0]+=u,u=1;a>=10;a/=10)u++;s!=u&&(r.e++,p[0]==pu&&(p[0]=1));break}else{if(p[d]+=u,p[d]!=pu)break;p[d--]=0,u=1}for(s=p.length;p[--s]===0;)p.pop()}return Rt&&(r.e>g.maxE?(r.d=null,r.e=NaN):r.e<g.minE&&(r.e=0,r.d=[0])),r}o(lt,"finalise");function fc(r,e,t){if(!r.isFinite())return Yj(r);var n,i=r.e,s=is(r.d),a=s.length;return e?(t&&(n=t-a)>0?s=s.charAt(0)+"."+s.slice(1)+Sp(n):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(r.e<0?"e":"e+")+r.e):i<0?(s="0."+Sp(-i-1)+s,t&&(n=t-a)>0&&(s+=Sp(n))):i>=a?(s+=Sp(i+1-a),t&&(n=t-i-1)>0&&(s=s+"."+Sp(n))):((n=i+1)<a&&(s=s.slice(0,n)+"."+s.slice(n)),t&&(n=t-a)>0&&(i+1===a&&(s+="."),s+=Sp(n))),s}o(fc,"finiteToString");function vN(r,e){var t=r[0];for(e*=vt;t>=10;t/=10)e++;return e}o(vN,"getBase10Exponent");function mN(r,e,t){if(e>Une)throw Rt=!0,t&&(r.precision=t),Error(Hj);return lt(new r(hN),e,1,!0)}o(mN,"getLn10");function lc(r,e,t){if(e>JP)throw Error(Hj);return lt(new r(dN),e,t,!0)}o(lc,"getPi");function Xj(r){var e=r.length-1,t=e*vt+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}o(Xj,"getPrecision");function Sp(r){for(var e="";r--;)e+="0";return e}o(Sp,"getZeroString");function Wj(r,e,t,n){var i,s=new r(1),a=Math.ceil(n/vt+4);for(Rt=!1;;){if(t%2&&(s=s.times(e),Mj(s.d,a)&&(i=!0)),t=Is(t/2),t===0){t=s.d.length-1,i&&s.d[t]===0&&++s.d[t];break}e=e.times(e),Mj(e.d,a)}return Rt=!0,s}o(Wj,"intPow");function jj(r){return r.d[r.d.length-1]&1}o(jj,"isOdd");function Jj(r,e,t){for(var n,i,s=new r(e[0]),a=0;++a<e.length;){if(i=new r(e[a]),!i.s){s=i;break}n=s.cmp(i),(n===t||n===0&&s.s===t)&&(s=i)}return s}o(Jj,"maxOrMin");function YP(r,e){var t,n,i,s,a,u,c,l=0,f=0,p=0,d=r.constructor,g=d.rounding,m=d.precision;if(!r.d||!r.d[0]||r.e>17)return new d(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:NaN);for(e==null?(Rt=!1,c=m):c=e,u=new d(.03125);r.e>-2;)r=r.times(u),p+=5;for(n=Math.log(yi(2,p))/Math.LN10*2+5|0,c+=n,t=s=a=new d(1),d.precision=c;;){if(s=lt(s.times(r),c,1),t=t.times(++f),u=a.plus(Jr(s,t,c,1)),is(u.d).slice(0,c)===is(a.d).slice(0,c)){for(i=p;i--;)a=lt(a.times(a),c,1);if(e==null)if(l<3&&nb(a.d,c-n,g,l))d.precision=c+=10,t=s=u=new d(1),f=0,l++;else return lt(a,d.precision=m,g,Rt=!0);else return d.precision=m,a}a=u}}o(YP,"naturalExponential");function xp(r,e){var t,n,i,s,a,u,c,l,f,p,d,g=1,m=10,y=r,v=y.d,x=y.constructor,w=x.rounding,b=x.precision;if(y.s<0||!v||!v[0]||!y.e&&v[0]==1&&v.length==1)return new x(v&&!v[0]?-1/0:y.s!=1?NaN:v?0:y);if(e==null?(Rt=!1,f=b):f=e,x.precision=f+=m,t=is(v),n=t.charAt(0),Math.abs(s=y.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)y=y.times(r),t=is(y.d),n=t.charAt(0),g++;s=y.e,n>1?(y=new x("0."+t),s++):y=new x(n+"."+t.slice(1))}else return l=mN(x,f+2,b).times(s+""),y=xp(new x(n+"."+t.slice(1)),f-m).plus(l),x.precision=b,e==null?lt(y,b,w,Rt=!0):y;for(p=y,c=a=y=Jr(y.minus(1),y.plus(1),f,1),d=lt(y.times(y),f,1),i=3;;){if(a=lt(a.times(d),f,1),l=c.plus(Jr(a,new x(i),f,1)),is(l.d).slice(0,f)===is(c.d).slice(0,f))if(c=c.times(2),s!==0&&(c=c.plus(mN(x,f+2,b).times(s+""))),c=Jr(c,new x(g),f,1),e==null)if(nb(c.d,f-m,w,u))x.precision=f+=m,l=a=y=Jr(p.minus(1),p.plus(1),f,1),d=lt(y.times(y),f,1),i=u=1;else return lt(c,x.precision=b,w,Rt=!0);else return x.precision=b,c;c=l,i+=2}}o(xp,"naturalLogarithm");function Yj(r){return String(r.s*r.s/0)}o(Yj,"nonFiniteToString");function pN(r,e){var t,n,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(n,i),e){if(i-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%vt,t<0&&(n+=vt),n<i){for(n&&r.d.push(+e.slice(0,n)),i-=vt;n<i;)r.d.push(+e.slice(n,n+=vt));e=e.slice(n),n=vt-e.length}else n-=i;for(;n--;)e+="0";r.d.push(+e),Rt&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}o(pN,"parseDecimal");function Hne(r,e){var t,n,i,s,a,u,c,l,f;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Gj.test(e))return pN(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(Vne.test(e))t=16,e=e.toLowerCase();else if(kne.test(e))t=2;else if(jne.test(e))t=8;else throw Error(bp+e);for(s=e.search(/p/i),s>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),s=e.indexOf("."),a=s>=0,n=r.constructor,a&&(e=e.replace(".",""),u=e.length,s=u-s,i=Wj(n,new n(t),s,s*2)),l=fN(e,t,pu),f=l.length-1,s=f;l[s]===0;--s)l.pop();return s<0?new n(r.s*0):(r.e=vN(l,f),r.d=l,Rt=!1,a&&(r=Jr(r,i,u*4)),c&&(r=r.times(Math.abs(c)<54?yi(2,c):Yg.pow(2,c))),Rt=!0,r)}o(Hne,"parseOther");function zne(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Jg(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/yN(5,t)),e=Jg(r,2,e,e);for(var i,s=new r(5),a=new r(16),u=new r(20);t--;)i=e.times(e),e=e.times(s.plus(i.times(a.times(i).minus(u))));return e}o(zne,"sine");function Jg(r,e,t,n,i){var s,a,u,c,l=1,f=r.precision,p=Math.ceil(f/vt);for(Rt=!1,c=t.times(t),u=new r(n);;){if(a=Jr(u.times(c),new r(e++*e++),f,1),u=i?n.plus(a):n.minus(a),n=Jr(a.times(c),new r(e++*e++),f,1),a=u.plus(n),a.d[p]!==void 0){for(s=p;a.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=n,n=a,a=s,l++}return Rt=!0,a.d.length=p+1,a}o(Jg,"taylorSeries");function yN(r,e){for(var t=r;--e;)t*=r;return t}o(yN,"tinyPow");function Qj(r,e){var t,n=e.s<0,i=lc(r,r.precision,1),s=i.times(.5);if(e=e.abs(),e.lte(s))return Rl=n?4:1,e;if(t=e.divToInt(i),t.isZero())Rl=n?3:2;else{if(e=e.minus(t.times(i)),e.lte(s))return Rl=jj(t)?n?2:3:n?4:1,e;Rl=jj(t)?n?1:4:n?3:2}return e.minus(i).abs()}o(Qj,"toLessThanHalfPi");function QP(r,e,t,n){var i,s,a,u,c,l,f,p,d,g=r.constructor,m=t!==void 0;if(m?(pa(t,1,Ep),n===void 0?n=g.rounding:pa(n,0,8)):(t=g.precision,n=g.rounding),!r.isFinite())f=Yj(r);else{for(f=fc(r),a=f.indexOf("."),m?(i=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):i=e,a>=0&&(f=f.replace(".",""),d=new g(1),d.e=f.length-a,d.d=fN(fc(d),10,i),d.e=d.d.length),p=fN(f,10,i),s=c=p.length;p[--c]==0;)p.pop();if(!p[0])f=m?"0p+0":"0";else{if(a<0?s--:(r=new g(r),r.d=p,r.e=s,r=Jr(r,d,t,n,0,i),p=r.d,s=r.e,l=qj),a=p[t],u=i/2,l=l||p[t+1]!==void 0,l=n<4?(a!==void 0||l)&&(n===0||n===(r.s<0?3:2)):a>u||a===u&&(n===4||l||n===6&&p[t-1]&1||n===(r.s<0?8:7)),p.length=t,l)for(;++p[--t]>i-1;)p[t]=0,t||(++s,p.unshift(1));for(c=p.length;!p[c-1];--c);for(a=0,f="";a<c;a++)f+=XP.charAt(p[a]);if(m){if(c>1)if(e==16||e==8){for(a=e==16?4:3,--c;c%a;c++)f+="0";for(p=fN(f,i,e),c=p.length;!p[c-1];--c);for(a=1,f="1.";a<c;a++)f+=XP.charAt(p[a])}else f=f.charAt(0)+"."+f.slice(1);f=f+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)f="0"+f;f="0."+f}else if(++s>c)for(s-=c;s--;)f+="0";else s<c&&(f=f.slice(0,s)+"."+f.slice(s))}f=(e==16?"0x":e==2?"0b":e==8?"0o":"")+f}return r.s<0?"-"+f:f}o(QP,"toStringBinary");function Mj(r,e){if(r.length>e)return r.length=e,!0}o(Mj,"truncate");function Kne(r){return new this(r).abs()}o(Kne,"abs");function Gne(r){return new this(r).acos()}o(Gne,"acos");function Xne(r){return new this(r).acosh()}o(Xne,"acosh");function Wne(r,e){return new this(r).plus(e)}o(Wne,"add");function Jne(r){return new this(r).asin()}o(Jne,"asin");function Yne(r){return new this(r).asinh()}o(Yne,"asinh");function Qne(r){return new this(r).atan()}o(Qne,"atan");function $ne(r){return new this(r).atanh()}o($ne,"atanh");function Zne(r,e){r=new this(r),e=new this(e);var t,n=this.precision,i=this.rounding,s=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=lc(this,s,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?lc(this,n,i):new this(0),t.s=r.s):!r.d||e.isZero()?(t=lc(this,s,1).times(.5),t.s=r.s):e.s<0?(this.precision=s,this.rounding=1,t=this.atan(Jr(r,e,s,1)),e=lc(this,s,1),this.precision=n,this.rounding=i,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(Jr(r,e,s,1)),t}o(Zne,"atan2");function eie(r){return new this(r).cbrt()}o(eie,"cbrt");function tie(r){return lt(r=new this(r),r.e+1,2)}o(tie,"ceil");function rie(r,e,t){return new this(r).clamp(e,t)}o(rie,"clamp");function nie(r){if(!r||typeof r!="object")throw Error(gN+"Object expected");var e,t,n,i=r.defaults===!0,s=["precision",1,Ep,"rounding",0,8,"toExpNeg",-Wg,0,"toExpPos",0,Wg,"maxE",0,Wg,"minE",-Wg,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(t=s[e],i&&(this[t]=WP[t]),(n=r[t])!==void 0)if(Is(n)===n&&n>=s[e+1]&&n<=s[e+2])this[t]=n;else throw Error(bp+t+": "+n);if(t="crypto",i&&(this[t]=WP[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(zj);else this[t]=!1;else throw Error(bp+t+": "+n);return this}o(nie,"config");function iie(r){return new this(r).cos()}o(iie,"cos");function sie(r){return new this(r).cosh()}o(sie,"cosh");function $j(r){var e,t,n;function i(s){var a,u,c,l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,Uj(s)){l.s=s.s,Rt?!s.d||s.e>i.maxE?(l.e=NaN,l.d=null):s.e<i.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(c=typeof s,c==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(a=0,u=s;u>=10;u/=10)a++;Rt?a>i.maxE?(l.e=NaN,l.d=null):a<i.minE?(l.e=0,l.d=[0]):(l.e=a,l.d=[s]):(l.e=a,l.d=[s]);return}if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return pN(l,s.toString())}if(c==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(u===43&&(s=s.slice(1)),l.s=1),Gj.test(s)?pN(l,s):Hne(l,s);if(c==="bigint")return s<0?(s=-s,l.s=-1):l.s=1,pN(l,s.toString());throw Error(bp+s)}if(o(i,"Decimal"),i.prototype=Pe,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.EUCLID=9,i.config=i.set=nie,i.clone=$j,i.isDecimal=Uj,i.abs=Kne,i.acos=Gne,i.acosh=Xne,i.add=Wne,i.asin=Jne,i.asinh=Yne,i.atan=Qne,i.atanh=$ne,i.atan2=Zne,i.cbrt=eie,i.ceil=tie,i.clamp=rie,i.cos=iie,i.cosh=sie,i.div=aie,i.exp=oie,i.floor=uie,i.hypot=cie,i.ln=lie,i.log=fie,i.log10=hie,i.log2=pie,i.max=die,i.min=mie,i.mod=gie,i.mul=vie,i.pow=yie,i.random=Sie,i.round=xie,i.sign=bie,i.sin=Eie,i.sinh=wie,i.sqrt=Cie,i.sub=Aie,i.sum=Nie,i.tan=Tie,i.tanh=Iie,i.trunc=Die,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return i.config(r),i}o($j,"clone");function aie(r,e){return new this(r).div(e)}o(aie,"div");function oie(r){return new this(r).exp()}o(oie,"exp");function uie(r){return lt(r=new this(r),r.e+1,3)}o(uie,"floor");function cie(){var r,e,t=new this(0);for(Rt=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return Rt=!0,new this(1/0);t=e}return Rt=!0,t.sqrt()}o(cie,"hypot");function Uj(r){return r instanceof Yg||r&&r.toStringTag===Kj||!1}o(Uj,"isDecimalInstance");function lie(r){return new this(r).ln()}o(lie,"ln");function fie(r,e){return new this(r).log(e)}o(fie,"log");function pie(r){return new this(r).log(2)}o(pie,"log2");function hie(r){return new this(r).log(10)}o(hie,"log10");function die(){return Jj(this,arguments,-1)}o(die,"max");function mie(){return Jj(this,arguments,1)}o(mie,"min");function gie(r,e){return new this(r).mod(e)}o(gie,"mod");function vie(r,e){return new this(r).mul(e)}o(vie,"mul");function yie(r,e){return new this(r).pow(e)}o(yie,"pow");function Sie(r){var e,t,n,i,s=0,a=new this(1),u=[];if(r===void 0?r=this.precision:pa(r,1,Ep),n=Math.ceil(r/vt),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));s<n;)i=e[s],i>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);s<n;)i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((e[s+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=n/4}else throw Error(zj);else for(;s<n;)u[s++]=Math.random()*1e7|0;for(n=u[--s],r%=vt,n&&r&&(i=yi(10,vt-r),u[s]=(n/i|0)*i);u[s]===0;s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=vt)u.shift();for(n=1,i=u[0];i>=10;i/=10)n++;n<vt&&(t-=vt-n)}return a.e=t,a.d=u,a}o(Sie,"random");function xie(r){return lt(r=new this(r),r.e+1,this.rounding)}o(xie,"round");function bie(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}o(bie,"sign");function Eie(r){return new this(r).sin()}o(Eie,"sin");function wie(r){return new this(r).sinh()}o(wie,"sinh");function Cie(r){return new this(r).sqrt()}o(Cie,"sqrt");function Aie(r,e){return new this(r).sub(e)}o(Aie,"sub");function Nie(){var r=0,e=arguments,t=new this(e[r]);for(Rt=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return Rt=!0,lt(t,this.precision,this.rounding)}o(Nie,"sum");function Tie(r){return new this(r).tan()}o(Tie,"tan");function Iie(r){return new this(r).tanh()}o(Iie,"tanh");function Die(r){return lt(r=new this(r),r.e+1,1)}o(Die,"trunc");Pe[Symbol.for("nodejs.util.inspect.custom")]=Pe.toString;Pe[Symbol.toStringTag]="Decimal";var Yg=Pe.constructor=$j(WP);hN=new Yg(hN);dN=new Yg(dN);var Dr=class r extends Yg{static{o(this,"Decimal")}static from(e){return new r(e)}static newOrZero(e){return e===void 0?r.from(0):r.from(e)}static newOrUndefined(e){if(e!==void 0)return r.from(e)}};var Zj=zt(require("pdfkit"),1);var SN=class r{static{o(this,"PdfkitPdfBuilder")}defaults={autoFirstPage:!1};doc=new Zj.default(this.defaults);constructor(e){e&&this.configure(e)}static new(e){return new r(e)}configure(e){return this.doc.options={...this.doc.options,...e},this}pipe(e){return this.doc.pipe(e),this}end(){return this.doc.end()}restore(){return this.doc.restore(),this}save(){return this.doc.save(),this}stroke(e){return this.doc.stroke(e),this}page(e){return this.doc.addPage(e),this}table(e){return this.doc.table(e),this}text(e,t){let{x:n,y:i,...s}=t??{};return n||i?(this.doc.text(e,n,i,s),this):(this.doc.text(e,t),this)}fontSize(e){return this.doc.fontSize(e),this}font(e,t,n){return typeof t=="string"?(this.doc.font(e,t,n),this):typeof t=="number"?(this.doc.font(e,t),this):(this.doc.font(e),this)}image(e,t,n,i){return typeof t=="number"&&typeof n=="number"?(this.doc.image(e,t,n,i),this):(this.doc.image(e,t),this)}rect(e,t,n,i){return this.doc.rect(e,t,n,i),this}path(e){return this.doc.path(e),this}translate(e,t){return this.doc.translate(e,t),this}scale(e,t){return this.doc.scale(e,t),this}fill(e,t){return this.doc.fill(e,t),this}pageWidth(){return this.doc.page.width}pageHeight(){return this.doc.page.height}heightOfString(e,t){return this.doc.heightOfString(e,t)}widthOfString(e,t){return this.doc.widthOfString(e,t)}pageMargins(){return this.doc.page.margins}currentLineHeight(e){return this.doc.currentLineHeight(e)}x(){return this.doc.x}y(){return this.doc.y}moveDown(e){return this.doc.moveDown(e),this}row(e,...t){let n,i;typeof e=="function"?(n={},i=[e,...t]):(n=e??{},i=t),n.columns??=1;let s=this.y(),a=n.right??0,u=n.left??0,c=n.gap??0,l=this.pageWidth(),f=l-u-a-c*(n.columns-1);n.size??=Array(n.columns).fill(12/n.columns);let p=[];for(let d=0;d<n.columns;d++){let g=n.size[d]/12;p[d]=f*g}for(let d=0,g=u;d<n.columns;d++){let m=d===n.columns-1,y=p[d];if(m&&n.columns>1){let w=l-a-g;w>0&&Math.abs(w-y)>.01&&(y=w)}let v={y:s,x:g,width:y};i[d](v),g+=y,c>0&&!m&&(g+=c)}return this}};var xN=class{static{o(this,"MemoryCacheAdapter")}cache=new Map;async get(e){return Promise.resolve(this.cache.get(e)??null)}has(e){return Promise.resolve(this.cache.has(e))}set(e,t){return this.cache.set(e,t),Promise.resolve(!0)}};var TU=zt(require("os"),1),u4=zt(require("fs"),1),IU=zt(require("path"),1),gv=zt(require("crypto"),1),kp=zt(mU(),1);var _t=class extends Error{static{o(this,"NFeTsError")}};var e4=class{static{o(this,"Left")}value;constructor(e){this.value=e}isLeft(){return!0}isRight(){return!1}},ZN=class{static{o(this,"Right")}value;constructor(e){this.value=e}isLeft(){return!1}isRight(){return!0}},ur=o(r=>new e4(r),"left"),Ot=o(r=>r===void 0?new ZN(void 0):new ZN(r),"right");var due=o(r=>!!r&&typeof r=="object"&&"message"in r,"hasMessageInRecord"),Co=o(r=>typeof r=="string"?ur(new _t(r)):r instanceof Error?ur(new _t(r.message,{cause:r.cause})):due(r)?ur(new _t(r.message)):ur(new _t("unexpected error")),"leftFromError");var eT=class{static{o(this,"NullCacheAdapter")}async get(e){return Promise.resolve(null)}has(e){return Promise.resolve(!1)}set(e,t){return Promise.resolve(!0)}};var t4="http://www.w3.org/2000/09/xmldsig#",gU="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",r4=(function(r){return r.RSA_SHA1="http://www.w3.org/2000/09/xmldsig#rsa-sha1",r.RSA_SHA256="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",r})({}),Ec=(function(r){return r.SHA1="sha1",r.SHA256="sha256",r})({}),n4=(function(r){return r.SHA1="http://www.w3.org/2000/09/xmldsig#sha1",r.SHA256="http://www.w3.org/2001/04/xmlenc#sha256",r})({});var xb={includeComments:!1,exclusive:!0};var cm=o(r=>{throw new _t("Didn't expect to get here")},"unreachable");var pv=class{static{o(this,"Signer")}toolkit;certificateRepository;algorithm;canonical;constructor(e,t,n=Ec.SHA1,i=xb){this.toolkit=e,this.certificateRepository=t,this.algorithm=n,this.canonical=i}assemble(e,t,n){let i=this.certificateRepository.getStringCertificate(n);return{$:{xmlns:t4},SignedInfo:e,SignatureValue:t,KeyInfo:{X509Data:{X509Certificate:i}}}}signedInfo(e,t){return{CanonicalizationMethod:{$:{Algorithm:gU}},SignatureMethod:{$:{Algorithm:this.signatureMethod}},Reference:{$:{URI:`#${this.toolkit.getAttribute(e,t)}`},Transforms:this.transforms,DigestMethod:{$:{Algorithm:this.digestAlgorithm}},DigestValue:this.digest(e)}}}digest(e){return this.toolkit.digest(e,this.algorithm,this.canonical)}async signOrLeft(e,t){let n=this.toolkit.canonicalize(await this.toolkit.build({$:{xmlns:t4},...e},{rootName:"SignedInfo"}),this.canonical);return this.certificateRepository.sign(n,t,this.algorithm)}get transforms(){return{Transform:[{$:{Algorithm:"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},{$:{Algorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}]}}get digestAlgorithm(){switch(this.algorithm){case Ec.SHA256:return n4.SHA256;case Ec.SHA1:return n4.SHA1;default:return cm(this.algorithm)}}get signatureMethod(){switch(this.algorithm){case Ec.SHA256:return r4.RSA_SHA256;case Ec.SHA1:return r4.RSA_SHA1;default:return cm(this.algorithm)}}};var tT=class extends pv{static{o(this,"EntitySigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n;if(!e[i])return ur(new _t(`Node ${String(i)} not found`));let u=await this.toolkit.build(this.ns(e,i),{headless:!0,rootName:String(i),renderOpts:{pretty:!1}}),c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let f=e;return f.Signature=this.assemble(c,l.value,a),Ot(f)}ns(e,t){let n=e.$?.xmlns,{$:i,...s}=e[t],{xmlns:a,...u}=i??{};return{$:{xmlns:n,...u},...s}}};var rT=class extends pv{static{o(this,"XmlSigner")}async sign(e,t,n){let{tag:i,mark:s}=t,{certificate:a}=n,u=this.toolkit.getNode(e,i);if(!u)return ur(new _t(`Node ${i} not found`));let c=this.signedInfo(u,s),l=await this.signOrLeft(c,n);if(l.isLeft())return l;let f=await this.toolkit.build(this.assemble(c,l.value,a),{rootName:"Signature"});return Ot(this.toolkit.appendNode(e,f))}};var jIe=require("reflect-metadata"),yU=require("class-validator");var _Ie=require("reflect-metadata");var i4="__SkipValidation__";var vU=require("class-transformer");var nT=o(r=>{for(let[e,t]of Object.entries(r))typeof t>"u"&&delete r[e],t===""&&delete r[e],t&&typeof t=="object"&&nT(t)},"clearEmptyValues"),iT=o((r,e,t={})=>{let n=(0,vU.plainToInstance)(e,r);return t.clearEmptyValues&&nT(n),n},"plainToInstance");var Ao="__ValidateErrors__",SU=o((r,e)=>r.reduce((t,n)=>{if(n.children?.length)return t.concat(SU(n.children,e?`${e}.${n.property}`:n.property));let i=Object.values(n.constraints??{}).map(s=>e?`${e}.${s}`:s).join(", ");return i?t.concat(i):t},[]),"mapConstraintsToErrors"),Et=o(r=>(e,t,n)=>{let i=n.value;n.value=function(...s){let a=Reflect.getMetadata(i4,this.constructor);if(Reflect.getMetadata(i4,this.constructor.prototype,t.toString())===!0||a===!0)return i?.apply(this,s);let[c,...l]=s;if(!c)return i?.apply(this,s);let f=iT(c,r),p=(0,yU.validateSync)(f,{whitelist:!0});if(nT(f),p.length){let d=Reflect.getMetadata(Ao,this)??[];Reflect.defineMetadata(Ao,d.concat(SU(p,i?.name)),this)}return i?.apply(this,[f,...l])}},"Validates");var zIe=require("reflect-metadata");var xU=require("class-validator");var bU=o(r=>(e,t)=>{(0,xU.registerDecorator)({name:"isDecimal",target:e.constructor,propertyName:t,options:r,validator:{validate(n){return n instanceof Dr?!0:typeof n=="string"||typeof n=="number"||typeof n=="bigint"},defaultMessage(n){return`${n.property} is not a valid Decimal value`}}})},"IsDecimal");var WIe=require("reflect-metadata"),s4=require("class-validator");var hv=Symbol("choice"),dv=o(r=>r==null||r==="","isEmpty"),Lr=o(r=>e=>{let{properties:t,required:n=!1,...i}=r,s=Reflect.getMetadata(hv,e)??[],a={properties:t,required:n};s.push(a),Reflect.defineMetadata(hv,s,e);for(let u of t)(0,s4.registerDecorator)({name:"choice",target:e,propertyName:u,options:i,validator:{validate(c,l){let f=l.object,p=l.property,d=Reflect.getMetadata(hv,e);if(!d)return!0;let g=d.find(m=>m.properties.includes(p));if(!g||dv(c))return!0;for(let m of g.properties){if(m===p)continue;let y=f[m];if(!dv(y))return!1}for(let m of d)if(m!==g)for(let y of m.properties){let v=f[y];if(!dv(v))return!1}return!0},defaultMessage(c){let l=Reflect.getMetadata(hv,e);if(!l)return`${c.property} validation error`;let f=l.find(d=>d.properties.includes(c.property));if(!f)return`${c.property} validation error`;let p=c.object;for(let d of f.properties){let g=p[d];if(!dv(g)&&d!==c.property)return`${c.property} cannot be set because ${d} is already set. Only one property from this choice group is allowed.`}for(let d of l)if(d!==f)for(let g of d.properties){let m=p[g];if(!dv(m))return`${c.property} cannot be set because ${g} from a different choice group is already set.`}return`${c.property} validation error`}}});if(n)for(let u of t)(0,s4.registerDecorator)({name:"choiceGroupRequired",target:e,propertyName:u,options:{...i,always:!0},validator:{validate(c,l){let f=l.object,p=Reflect.getMetadata(hv,e);if(!p)return!0;let d=p.find(g=>g.properties.includes(l.property));if(!d?.required)return!0;for(let g of d.properties){let m=f[g];if(!dv(m))return!0}return l.property!==d.properties[0]},defaultMessage(c){let l=Reflect.getMetadata(hv,e);if(!l)return"At least one property from a choice group must be provided";let f=l.find(p=>p.properties.includes(c.property));return f?`You must provide a value for one of the following properties: ${f.properties.join(", ")}`:"At least one property from a choice group must be provided"}}})},"Choice");var QIe=require("reflect-metadata");var EU=require("class-transformer");var $=o(({fixed:r,...e}={fixed:2})=>(t,n)=>{bU(e)(t,n),(0,EU.Transform)(({value:i})=>Dr.newOrUndefined(i)?.toFixed(r))(t,n)},"TransformDecimal");var AU=require("class-transformer"),NU=require("class-validator");var sT=zt(require("dayjs"),1),wU=zt(require("dayjs/plugin/utc"),1),CU=zt(require("dayjs/plugin/timezone"),1);sT.default.extend(wU.default);sT.default.extend(CU.default);var _p=sT.default;var Fp=o((r={})=>(e,t)=>{(0,AU.Transform)(({value:n})=>{let i=n instanceof Date?n.toISOString():n;return i?_p(i).tz("America/Sao_Paulo").format(r.format):void 0})(e,t),(0,NU.IsDateString)()(e,t)},"TransformDateString");var Lp=class{static{o(this,"ASN1")}extractCertificateInfo(e){let n=e.subject.split(`
101
101
  `).reduce((s,a)=>{let[u,c]=a.split("=").map(l=>l.trim());return!u||!c?s:s.set(u,c)},new Map),i=this.oid("2.16.76.1.3.1",e.raw);return{CNPJ:this.oid("2.16.76.1.3.3",e.raw),CPF:i,CN:n.get("CN"),O:n.get("O"),OU:n.get("OU"),ST:n.get("ST"),L:n.get("L"),C:n.get("C")}}oid(e,t){let n=this.marker(e),i=t.indexOf(n);if(i===-1)return;let s=[t.subarray(0,i),t.subarray(i)];if(s.length<=1)return;let u=s[0].subarray(-4),c=u.subarray(-2);u[0]===48?c=u:u[1]===48&&(c=u.subarray(-3));let l=Buffer.concat([c,n,s[1]]),f=this.length(l),p=n.length,d=l.subarray(2+p,2+p+f),g=d.length-c.length-2;if(g<=0||g>d.length)return;let y=d.subarray(-g).toString("utf8");return y.substring(Buffer.from(y).findIndex((v,x)=>y.charCodeAt(x)>=32&&y.charCodeAt(x)<=126))}length(e){return e.length<2?0:e[1]<=127?e[1]:Buffer.from([e[1]&15]).reduce((t,n)=>t<<8|n,0)}marker(e){let t=e.split("."),n=t.slice(2).reduce((i,s)=>{let a=this.base128(i,Number.parseInt(s,10),!0);return i.length=0,i.push(...a),i},[]);return Buffer.from([6,n.length+1,40*Number.parseInt(t[0],10)+Number.parseInt(t[1],10),...n])}base128(e,t,n){let i=[...e];if(t>127){let a=this.base128(e,Math.floor(t/128),!1);a.length=0,i.push(...a)}let s=t%128;return n?i.push(s):i.push(128|s),i}};var bb=require("os"),wc=require("path");var mue=o(r=>{let e=r.replace(/^\\\\\?\\/,"");return(0,wc.resolve)((0,wc.normalize)(e))},"normalizePath"),gue=o(r=>{(0,bb.platform)()==="win32"&&(process.env.PATH=`${(0,wc.dirname)(r)}${wc.delimiter}${process.env.PATH}`)},"addAddonDirToPath"),a4=o(r=>{let e=mue(r);return gue(e),Lj()(e)},"exportRequireModule"),mv=o(r=>{if(r=`${r}.node`,process.env.NFETS_ADDONS_DIR)return a4((0,wc.join)(process.env.NFETS_ADDONS_DIR,r));let e=`${(0,bb.platform)()}-${(0,bb.arch)()}`;try{return Xg(`build/addons/${e}/${r}`,{onFound:o(t=>a4(t),"onFound"),onNotFound:o(()=>{throw new Error(`Addon ${e}/${r} not found`)},"onNotFound")})}catch{return Xg(`build/Release/${r}`,{onFound:o(t=>a4(t),"onFound"),onNotFound:o(()=>{throw new Error(`Addon ${e}/${r} not found`)},"onNotFound")})}},"addon");var aT=class{static{o(this,"WincryptSignerRepository")}async sign(e,t,n){try{let i=mv("wincrypt_certificate_store"),s=new Lp,{CN:a}=s.extractCertificateInfo(t.certificate),u=await i.sign(a??"",Buffer.from(e),n),c=Buffer.from(u).toString("base64");return await Promise.resolve(Ot(c))}catch(i){return Promise.resolve(Co(i))}}};var o4=zt(require("crypto"),1);var oT=class{static{o(this,"CryptoSignerRepository")}async sign(e,t,n){try{if(!t.privateKey)return ur(new _t("Certificate private key not found"));let s=o4.default.sign(n,Buffer.from(e),{key:t.privateKey,padding:o4.default.constants.RSA_PKCS1_PADDING}).toString("base64");return await Promise.resolve(Ot(s))}catch(i){return Promise.resolve(Co(i))}}};var uT=class{static{o(this,"NativeCertificateRepository")}httpClient;cache;signer;constructor(e,t=new eT,n=TU.default.platform()==="win32"?new aT:new oT){this.httpClient=e,this.cache=t,this.signer=n}async read(e){try{let{password:t,pfxPathOrBase64:n,publicCertDerBase64:i}=e,s=i?.trim(),a=n?.trim();if(s&&a)return ur(new _t("Use either pfxPathOrBase64 or publicCertDerBase64, not both"));if(s)try{let x=Buffer.from(s,"base64"),w=new gv.default.X509Certificate(x);return Ot({ca:[],password:t,certificate:w,privateKey:void 0})}catch(x){return Co(x)}if(!a)return ur(new _t("Certificate path (pfxPathOrBase64) is required"));let u=await this.getPfxBuffer({...e,pfxPathOrBase64:a});if(u.isLeft())return u;let c=kp.default.asn1.fromDer(u.value.toString("binary")),l=kp.default.pkcs12.pkcs12FromAsn1(c,t),{certBag:f}=kp.default.pki.oids,d=l.getBags({bagType:f})[f];if(!d?.length)return ur(new _t("Cannot read certificate"));let[{cert:g},...m]=d;if(!g)return ur(new _t("Issuer Certificate not found"));let y=m.reduce((x,{cert:w})=>(w&&x.push(new gv.default.X509Certificate(kp.default.pki.certificateToPem(w))),x),[]),v=new gv.default.X509Certificate(kp.default.pki.certificateToPem(g));return Ot({ca:y,password:t,certificate:v,privateKey:this.getPrivateKey(l)})}catch(t){return Co(t)}}getPrivateKey(e){let{pkcs8ShroudedKeyBag:t}=kp.default.pki.oids,i=e.getBags({bagType:t})[t]?.[0]?.key;if(i)return gv.default.createPrivateKey(kp.default.pki.privateKeyToPem(i))}async sign(e,t,n=Ec.SHA1){return this.signer.sign(e,t,n)}getCertificateInfo(e){return new Lp().extractCertificateInfo(e)}getStringCertificate(e){return e.raw.toString("base64")}getStringPrivateKey(e){try{return e.export({type:"pkcs8",format:"pem"})}catch{throw new _t("Cannot extract private key")}}async getPfxBuffer(e){let{pfxPathOrBase64:t,password:n}=e,i=this.getCacheKey(t,n),s=await this.cache.get(i);if(s)return Ot(s);if(IU.default.isAbsolute(t)||u4.default.existsSync(t))return this.hitBufferOnCache(i,u4.default.readFileSync(t));if(this.isValidRemoteUrl(t))try{let a=await this.httpClient.get(t,{responseType:"arraybuffer"});return await this.hitBufferOnCache(i,Buffer.from(a.data))}catch(a){return Co(a)}return this.hitBufferOnCache(i,Buffer.from(t,"base64"))}getCacheKey(e,t){return gv.default.createHash("sha256").update(`${e}.${t}`).digest("hex")}async hitBufferOnCache(e,t){return await this.cache.set(e,t),Ot(t)}isValidRemoteUrl(e){try{return new URL(e),!0}catch{return!1}}};var JW=zt(require("os"),1);var YW=require("crypto"),pD=require("https"),QW=zt(FX(),1);function dE(r,e){return o(function(){return r.apply(e,arguments)},"wrap")}o(dE,"bind");var{toString:Zve}=Object.prototype,{getPrototypeOf:JI}=Object,{iterator:YI,toStringTag:jX}=Symbol,QI=(r=>e=>{let t=Zve.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Su=o(r=>(r=r.toLowerCase(),e=>QI(e)===r),"kindOfTest"),$I=o(r=>e=>typeof e===r,"typeOfTest"),{isArray:Yv}=Array,Jv=$I("undefined");function mE(r){return r!==null&&!Jv(r)&&r.constructor!==null&&!Jv(r.constructor)&&Aa(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}o(mE,"isBuffer");var MX=Su("ArrayBuffer");function eye(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&MX(r.buffer),e}o(eye,"isArrayBufferView");var tye=$I("string"),Aa=$I("function"),UX=$I("number"),gE=o(r=>r!==null&&typeof r=="object","isObject"),rye=o(r=>r===!0||r===!1,"isBoolean"),WI=o(r=>{if(QI(r)!=="object")return!1;let e=JI(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(jX in r)&&!(YI in r)},"isPlainObject"),nye=o(r=>{if(!gE(r)||mE(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},"isEmptyObject"),iye=Su("Date"),sye=Su("File"),aye=o(r=>!!(r&&typeof r.uri<"u"),"isReactNativeBlob"),oye=o(r=>r&&typeof r.getParts<"u","isReactNative"),uye=Su("Blob"),cye=Su("FileList"),lye=o(r=>gE(r)&&Aa(r.pipe),"isStream");function fye(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}o(fye,"getGlobal");var LX=fye(),kX=typeof LX.FormData<"u"?LX.FormData:void 0,pye=o(r=>{if(!r)return!1;if(kX&&r instanceof kX)return!0;let e=JI(r);if(!e||e===Object.prototype||!Aa(r.append))return!1;let t=QI(r);return t==="formdata"||t==="object"&&Aa(r.toString)&&r.toString()==="[object FormData]"},"isFormData"),hye=Su("URLSearchParams"),[dye,mye,gye,vye]=["ReadableStream","Request","Response","Headers"].map(Su),yye=o(r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function vE(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),Yv(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{if(mE(r))return;let s=t?Object.getOwnPropertyNames(r):Object.keys(r),a=s.length,u;for(n=0;n<a;n++)u=s[n],e.call(null,r[u],u,r)}}o(vE,"forEach");function qX(r,e){if(mE(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}o(qX,"findKey");var Am=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,HX=o(r=>!Jv(r)&&r!==Am,"isContextDefined");function uL(){let{caseless:r,skipUndefined:e}=HX(this)&&this||{},t={},n=o((i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let a=r&&qX(t,s)||s;WI(t[a])&&WI(i)?t[a]=uL(t[a],i):WI(i)?t[a]=uL({},i):Yv(i)?t[a]=i.slice():(!e||!Jv(i))&&(t[a]=i)},"assignValue");for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&vE(arguments[i],n);return t}o(uL,"merge");var Sye=o((r,e,t,{allOwnKeys:n}={})=>(vE(e,(i,s)=>{t&&Aa(i)?Object.defineProperty(r,s,{value:dE(i,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),"extend"),xye=o(r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),"stripBOM"),bye=o((r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},"inherits"),Eye=o((r,e,t,n)=>{let i,s,a,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)a=i[s],(!n||n(a,r,e))&&!u[a]&&(e[a]=r[a],u[a]=!0);r=t!==!1&&JI(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},"toFlatObject"),wye=o((r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},"endsWith"),Cye=o(r=>{if(!r)return null;if(Yv(r))return r;let e=r.length;if(!UX(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},"toArray"),Aye=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&JI(Uint8Array)),Nye=o((r,e)=>{let n=(r&&r[YI]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},"forEachEntry"),Tye=o((r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},"matchAll"),Iye=Su("HTMLFormElement"),Dye=o(r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,o(function(t,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),VX=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Rye=Su("RegExp"),zX=o((r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};vE(t,(i,s)=>{let a;(a=e(i,s,r))!==!1&&(n[s]=a||i)}),Object.defineProperties(r,n)},"reduceDescriptors"),Oye=o(r=>{zX(r,(e,t)=>{if(Aa(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(Aa(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},"freezeMethods"),Bye=o((r,e)=>{let t={},n=o(i=>{i.forEach(s=>{t[s]=!0})},"define");return Yv(r)?n(r):n(String(r).split(e)),t},"toObjectSet"),Pye=o(()=>{},"noop"),_ye=o((r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,"toFiniteNumber");function Fye(r){return!!(r&&Aa(r.append)&&r[jX]==="FormData"&&r[YI])}o(Fye,"isSpecCompliantForm");var Lye=o(r=>{let e=new Array(10),t=o((n,i)=>{if(gE(n)){if(e.indexOf(n)>=0)return;if(mE(n))return n;if(!("toJSON"in n)){e[i]=n;let s=Yv(n)?[]:{};return vE(n,(a,u)=>{let c=t(a,i+1);!Jv(c)&&(s[u]=c)}),e[i]=void 0,s}}return n},"visit");return t(r,0)},"toJSONObject"),kye=Su("AsyncFunction"),Vye=o(r=>r&&(gE(r)||Aa(r))&&Aa(r.then)&&Aa(r.catch),"isThenable"),KX=((r,e)=>r?setImmediate:e?((t,n)=>(Am.addEventListener("message",({source:i,data:s})=>{i===Am&&s===t&&n.length&&n.shift()()},!1),i=>{n.push(i),Am.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Aa(Am.postMessage)),jye=typeof queueMicrotask<"u"?queueMicrotask.bind(Am):typeof process<"u"&&process.nextTick||KX,Mye=o(r=>r!=null&&Aa(r[YI]),"isIterable"),Q={isArray:Yv,isArrayBuffer:MX,isBuffer:mE,isFormData:pye,isArrayBufferView:eye,isString:tye,isNumber:UX,isBoolean:rye,isObject:gE,isPlainObject:WI,isEmptyObject:nye,isReadableStream:dye,isRequest:mye,isResponse:gye,isHeaders:vye,isUndefined:Jv,isDate:iye,isFile:sye,isReactNativeBlob:aye,isReactNative:oye,isBlob:uye,isRegExp:Rye,isFunction:Aa,isStream:lye,isURLSearchParams:hye,isTypedArray:Aye,isFileList:cye,forEach:vE,merge:uL,extend:Sye,trim:yye,stripBOM:xye,inherits:bye,toFlatObject:Eye,kindOf:QI,kindOfTest:Su,endsWith:wye,toArray:Cye,forEachEntry:Nye,matchAll:Tye,isHTMLForm:Iye,hasOwnProperty:VX,hasOwnProp:VX,reduceDescriptors:zX,freezeMethods:Oye,toObjectSet:Bye,toCamelCase:Dye,noop:Pye,toFiniteNumber:_ye,findKey:qX,global:Am,isContextDefined:HX,isSpecCompliantForm:Fye,toJSONObject:Lye,isAsyncFn:kye,isThenable:Vye,setImmediate:KX,asap:jye,isIterable:Mye};var Na=class GX extends Error{static{o(this,"AxiosError")}static from(e,t,n,i,s,a){let u=new GX(e.message,t||e.code,n,i,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),a&&Object.assign(u,a),u}constructor(e,t,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}};Na.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Na.ERR_BAD_OPTION="ERR_BAD_OPTION";Na.ECONNABORTED="ECONNABORTED";Na.ETIMEDOUT="ETIMEDOUT";Na.ERR_NETWORK="ERR_NETWORK";Na.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Na.ERR_DEPRECATED="ERR_DEPRECATED";Na.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Na.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Na.ERR_CANCELED="ERR_CANCELED";Na.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Na.ERR_INVALID_URL="ERR_INVALID_URL";Na.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Ue=Na;var XX=zt(B4(),1),ZI=XX.default;function lL(r){return Q.isPlainObject(r)||Q.isArray(r)}o(lL,"isVisitable");function WX(r){return Q.endsWith(r,"[]")?r.slice(0,-2):r}o(WX,"removeBrackets");function cL(r,e,t){return r?r.concat(e).map(o(function(i,s){return i=WX(i),!t&&s?"["+i+"]":i},"each")).join(t?".":""):e}o(cL,"renderKey");function Uye(r){return Q.isArray(r)&&!r.some(lL)}o(Uye,"isFlatArray");var qye=Q.toFlatObject(Q,{},null,o(function(e){return/^is[A-Z]/.test(e)},"filter"));function Hye(r,e,t){if(!Q.isObject(r))throw new TypeError("target must be an object");e=e||new(ZI||FormData),t=Q.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,o(function(v,x){return!Q.isUndefined(x[v])},"defined"));let n=t.metaTokens,i=t.visitor||p,s=t.dots,a=t.indexes,u=t.Blob||typeof Blob<"u"&&Blob,c=t.maxDepth===void 0?100:t.maxDepth,l=u&&Q.isSpecCompliantForm(e);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(Q.isBoolean(y))return y.toString();if(!l&&Q.isBlob(y))throw new Ue("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}o(f,"convertValue");function p(y,v,x){let w=y;if(Q.isReactNative(e)&&Q.isReactNativeBlob(y))return e.append(cL(x,v,s),f(y)),!1;if(y&&!x&&typeof y=="object"){if(Q.endsWith(v,"{}"))v=n?v:v.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&Uye(y)||(Q.isFileList(y)||Q.endsWith(v,"[]"))&&(w=Q.toArray(y)))return v=WX(v),w.forEach(o(function(S,E){!(Q.isUndefined(S)||S===null)&&e.append(a===!0?cL([v],E,s):a===null?v:v+"[]",f(S))},"each")),!1}return lL(y)?!0:(e.append(cL(x,v,s),f(y)),!1)}o(p,"defaultVisitor");let d=[],g=Object.assign(qye,{defaultVisitor:p,convertValue:f,isVisitable:lL});function m(y,v,x=0){if(!Q.isUndefined(y)){if(x>c)throw new Ue("Object is too deeply nested ("+x+" levels). Max depth: "+c,Ue.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(y),Q.forEach(y,o(function(b,S){(!(Q.isUndefined(b)||b===null)&&i.call(e,b,Q.isString(S)?S.trim():S,v,g))===!0&&m(b,v?v.concat(S):[S],x+1)},"each")),d.pop()}}if(o(m,"build"),!Q.isObject(r))throw new TypeError("data must be an object");return m(r),e}o(Hye,"toFormData");var sh=Hye;function JX(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(r).replace(/[!'()~]|%20/g,o(function(n){return e[n]},"replacer"))}o(JX,"encode");function YX(r,e){this._pairs=[],r&&sh(r,this,e)}o(YX,"AxiosURLSearchParams");var QX=YX.prototype;QX.append=o(function(e,t){this._pairs.push([e,t])},"append");QX.toString=o(function(e){let t=e?function(n){return e.call(this,n,JX)}:JX;return this._pairs.map(o(function(i){return t(i[0])+"="+t(i[1])},"each"),"").join("&")},"toString");var $X=YX;function zye(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}o(zye,"encode");function Nm(r,e,t){if(!e)return r;let n=t&&t.encode||zye,i=Q.isFunction(t)?{serialize:t}:t,s=i&&i.serialize,a;if(s?a=s(e,i):a=Q.isURLSearchParams(e)?e.toString():new $X(e,i).toString(n),a){let u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r}o(Nm,"buildURL");var Kye=class{static{o(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,o(function(n){n!==null&&e(n)},"forEachHandler"))}},fL=Kye;var ah={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var rW=zt(require("crypto"),1);var ZX=zt(require("url"),1),eW=ZX.default.URLSearchParams;var pL="abcdefghijklmnopqrstuvwxyz",tW="0123456789",nW={DIGIT:tW,ALPHA:pL,ALPHA_DIGIT:pL+pL.toUpperCase()+tW},Gye=o((r=16,e=nW.ALPHA_DIGIT)=>{let t="",{length:n}=e,i=new Uint32Array(r);rW.default.randomFillSync(i);for(let s=0;s<r;s++)t+=e[i[s]%n];return t},"generateString"),iW={isNode:!0,classes:{URLSearchParams:eW,FormData:ZI,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:nW,generateString:Gye,protocols:["http","https","file","data"]};var mL={};cN(mL,{hasBrowserEnv:()=>dL,hasStandardBrowserEnv:()=>Xye,hasStandardBrowserWebWorkerEnv:()=>Wye,navigator:()=>hL,origin:()=>Jye});var dL=typeof window<"u"&&typeof document<"u",hL=typeof navigator=="object"&&navigator||void 0,Xye=dL&&(!hL||["ReactNative","NativeScript","NS"].indexOf(hL.product)<0),Wye=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jye=dL&&window.location.href||"http://localhost";var Ar={...mL,...iW};function gL(r,e){return sh(r,new Ar.classes.URLSearchParams,{visitor:o(function(t,n,i,s){return Ar.isNode&&Q.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},"visitor"),...e})}o(gL,"toURLEncodedForm");function Yye(r){return Q.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}o(Yye,"parsePropPath");function Qye(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}o(Qye,"arrayToObject");function $ye(r){function e(t,n,i,s){let a=t[s++];if(a==="__proto__")return!0;let u=Number.isFinite(+a),c=s>=t.length;return a=!a&&Q.isArray(i)?i.length:a,c?(Q.hasOwnProp(i,a)?i[a]=Q.isArray(i[a])?i[a].concat(n):[i[a],n]:i[a]=n,!u):((!i[a]||!Q.isObject(i[a]))&&(i[a]=[]),e(t,n,i[a],s)&&Q.isArray(i[a])&&(i[a]=Qye(i[a])),!u)}if(o(e,"buildPath"),Q.isFormData(r)&&Q.isFunction(r.entries)){let t={};return Q.forEachEntry(r,(n,i)=>{e(Yye(n),i,t,0)}),t}return null}o($ye,"formDataToJSON");var eD=$ye;var Qv=o((r,e)=>r!=null&&Q.hasOwnProp(r,e)?r[e]:void 0,"own");function Zye(r,e,t){if(Q.isString(r))try{return(e||JSON.parse)(r),Q.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}o(Zye,"stringifySafely");var vL={transitional:ah,adapter:["xhr","http","fetch"],transformRequest:[o(function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=Q.isObject(e);if(s&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return i?JSON.stringify(eD(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){let c=Qv(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return gL(e,c).toString();if((u=Q.isFileList(e))||n.indexOf("multipart/form-data")>-1){let l=Qv(this,"env"),f=l&&l.FormData;return sh(u?{"files[]":e}:e,f&&new f,c)}}return s||i?(t.setContentType("application/json",!1),Zye(e)):e},"transformRequest")],transformResponse:[o(function(e){let t=Qv(this,"transitional")||vL.transitional,n=t&&t.forcedJSONParsing,i=Qv(this,"responseType"),s=i==="json";if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!i||s)){let u=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e,Qv(this,"parseReviver"))}catch(c){if(u)throw c.name==="SyntaxError"?Ue.from(c,Ue.ERR_BAD_RESPONSE,this,null,Qv(this,"response")):c}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ar.classes.FormData,Blob:Ar.classes.Blob},validateStatus:o(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],r=>{vL.headers[r]={}});var $v=vL;var e1e=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sW=o((r=>{let e={},t,n,i;return r&&r.split(`
102
102
  `).forEach(o(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!t||e[t]&&e1e[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)},"parser")),e}),"default");var aW=Symbol("internals"),t1e=/[^\x09\x20-\x7E\x80-\xFF]/g;function r1e(r){let e=0,t=r.length;for(;e<t;){let n=r.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;t>e;){let n=r.charCodeAt(t-1);if(n!==9&&n!==32)break;t-=1}return e===0&&t===r.length?r:r.slice(e,t)}o(r1e,"trimSPorHTAB");function yE(r){return r&&String(r).trim().toLowerCase()}o(yE,"normalizeHeader");function n1e(r){return r1e(r.replace(t1e,""))}o(n1e,"sanitizeHeaderValue");function tD(r){return r===!1||r==null?r:Q.isArray(r)?r.map(tD):n1e(String(r))}o(tD,"normalizeValue");function i1e(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}o(i1e,"parseTokens");var s1e=o(r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()),"isValidHeaderName");function yL(r,e,t,n,i){if(Q.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!Q.isString(e)){if(Q.isString(n))return e.indexOf(n)!==-1;if(Q.isRegExp(n))return n.test(e)}}o(yL,"matchHeaderValue");function a1e(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}o(a1e,"formatHeader");function o1e(r,e){let t=Q.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:o(function(i,s,a){return this[n].call(this,e,i,s,a)},"value"),configurable:!0})})}o(o1e,"buildAccessors");var rD=class{static{o(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,c,l){let f=yE(c);if(!f)throw new Error("header name must be a non-empty string");let p=Q.findKey(i,f);(!p||i[p]===void 0||l===!0||l===void 0&&i[p]!==!1)&&(i[p||c]=tD(u))}o(s,"setHeader");let a=o((u,c)=>Q.forEach(u,(l,f)=>s(l,f,c)),"setHeaders");if(Q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Q.isString(e)&&(e=e.trim())&&!s1e(e))a(sW(e),t);else if(Q.isObject(e)&&Q.isIterable(e)){let u={},c,l;for(let f of e){if(!Q.isArray(f))throw TypeError("Object iterator must return a key-value pair");u[l=f[0]]=(c=u[l])?Q.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}a(u,t)}else e!=null&&s(t,e,n);return this}get(e,t){if(e=yE(e),e){let n=Q.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return i1e(i);if(Q.isFunction(t))return t.call(this,i,n);if(Q.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=yE(e),e){let n=Q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||yL(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(a){if(a=yE(a),a){let u=Q.findKey(n,a);u&&(!t||yL(n,n[u],u,t))&&(delete n[u],i=!0)}}return o(s,"deleteHeader"),Q.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||yL(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return Q.forEach(this,(i,s)=>{let a=Q.findKey(n,s);if(a){t[a]=tD(i),delete t[s];return}let u=e?a1e(s):String(s).trim();u!==s&&delete t[s],t[u]=tD(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Q.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&Q.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
103
103
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[aW]=this[aW]={accessors:{}}).accessors,i=this.prototype;function s(a){let u=yE(a);n[u]||(o1e(i,a),n[u]=!0)}return o(s,"defineAccessor"),Q.isArray(e)?e.forEach(s):s(e),this}};rD.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(rD.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:o(()=>r,"get"),set(n){this[t]=n}}});Q.freezeMethods(rD);var _n=rD;function SE(r,e){let t=this||$v,n=e||t,i=_n.from(n.headers),s=n.data;return Q.forEach(r,o(function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)},"transform")),i.normalize(),s}o(SE,"transformData");function xE(r){return!!(r&&r.__CANCEL__)}o(xE,"isCancel");var u1e=class extends Ue{static{o(this,"CanceledError")}constructor(e,t,n){super(e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}},$a=u1e;function _c(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new Ue("Request failed with status code "+t.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}o(_c,"settle");function SL(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}o(SL,"isAbsoluteURL");function xL(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}o(xL,"combineURLs");function Tm(r,e,t){let n=!SL(e);return r&&(n||t===!1)?xL(r,e):e}o(Tm,"buildFullPath");var c1e={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function l1e(r){try{return new URL(r)}catch{return null}}o(l1e,"parseUrl");function oW(r){var e=(typeof r=="string"?l1e(r):r)||{},t=e.protocol,n=e.host,i=e.port;if(typeof n!="string"||!n||typeof t!="string"||(t=t.split(":",1)[0],n=n.replace(/:\d*$/,""),i=parseInt(i)||c1e[t]||0,!f1e(n,i)))return"";var s=bL(t+"_proxy")||bL("all_proxy");return s&&s.indexOf("://")===-1&&(s=t+"://"+s),s}o(oW,"getProxyForUrl");function f1e(r,e){var t=bL("no_proxy").toLowerCase();return t?t==="*"?!1:t.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),s=i?i[1]:n,a=i?parseInt(i[2]):0;return a&&a!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!r.endsWith(s)):r!==s}):!0}o(f1e,"shouldProxy");function bL(r){return process.env[r.toLowerCase()]||process.env[r.toUpperCase()]||""}o(bL,"getEnv");var TW=zt(require("http"),1),IW=zt(require("https"),1),IL=zt(require("http2"),1),DL=zt(require("util"),1),TL=require("path"),DW=zt(K4(),1),Gl=zt(require("zlib"),1);var Im="1.15.2";function bE(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}o(bE,"parseProtocol");var p1e=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function EL(r,e,t){let n=t&&t.Blob||Ar.classes.Blob,i=bE(r);if(e===void 0&&n&&(e=!0),i==="data"){r=i.length?r.slice(i.length+1):r;let s=p1e.exec(r);if(!s)throw new Ue("Invalid URL",Ue.ERR_INVALID_URL);let a=s[1],u=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),u?"base64":"utf8");if(e){if(!n)throw new Ue("Blob is not supported",Ue.ERR_NOT_SUPPORT);return new n([l],{type:a})}return l}throw new Ue("Unsupported protocol "+i,Ue.ERR_NOT_SUPPORT)}o(EL,"fromDataURI");var _o=zt(require("stream"),1);var uW=zt(require("stream"),1);var wL=Symbol("internals"),h1e=class extends uW.default.Transform{static{o(this,"AxiosTransformStream")}constructor(e){e=Q.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,i)=>!Q.isUndefined(i[n])),super({readableHighWaterMark:e.chunkSize});let t=this[wL]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){let t=this[wL];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let i=this[wL],s=i.maxRate,a=this.readableHighWaterMark,u=i.timeWindow,c=1e3/u,l=s/c,f=i.minChunkSize!==!1?Math.max(i.minChunkSize,l*.01):0,p=o((g,m)=>{let y=Buffer.byteLength(g);i.bytesSeen+=y,i.bytes+=y,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(g)?process.nextTick(m):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(m)}},"pushChunk"),d=o((g,m)=>{let y=Buffer.byteLength(g),v=null,x=a,w,b=0;if(s){let S=Date.now();(!i.ts||(b=S-i.ts)>=u)&&(i.ts=S,w=l-i.bytes,i.bytes=w<0?-w:0,b=0),w=l-i.bytes}if(s){if(w<=0)return setTimeout(()=>{m(null,g)},u-b);w<x&&(x=w)}x&&y>x&&y-x>f&&(v=g.subarray(x),g=g.subarray(0,x)),p(g,v?()=>{process.nextTick(m,null,v)}:m)},"transformChunk");d(e,o(function g(m,y){if(m)return n(m);y?d(y,g):n(null)},"transformNextChunk"))}},CL=h1e;var RW=require("events");var lW=zt(require("util"),1),fW=require("stream");var{asyncIterator:cW}=Symbol,d1e=o(async function*(r){r.stream?yield*r.stream():r.arrayBuffer?yield await r.arrayBuffer():r[cW]?yield*r[cW]():yield r},"readBlob"),nD=d1e;var m1e=Ar.ALPHABET.ALPHA_DIGIT+"-_",EE=typeof TextEncoder=="function"?new TextEncoder:new lW.default.TextEncoder,Dm=`\r
@@ -120,8 +120,8 @@ ${e.join(`
120
120
  <?`):this.result.push("<?"),this.result.push(t),e.nodeValue&&(this.result.push(" "),this.result.push(this.NormalizeString(e.nodeValue,Vt.ProcessingInstruction))),this.state===so.BeforeDocElement?this.result.push(`?>
121
121
  `):this.result.push("?>"))}WriteElementNode(e){let t=this.state;this.state===so.BeforeDocElement&&(this.state=so.InsideDocElement),this.result.push("<"),this.result.push(e.nodeName);let n=this.WriteNamespacesAxis(e);this.WriteAttributesAxis(e),this.result.push(">");for(let i=e.firstChild;i!=null;i=i.nextSibling)this.WriteNode(i);for(this.result.push("</"),this.result.push(e.nodeName),this.result.push(">"),t===so.BeforeDocElement&&(this.state=so.AfterDocElement);n--;)this.visibleNamespaces.Pop()}WriteNamespacesAxis(e){let t=[],n=0;for(let s=0;s<e.attributes.length;s++){let a=e.attributes[s];if(!A5(a)){if(a.prefix&&!this.IsNamespaceRendered(a.prefix,a.namespaceURI)){let f={prefix:a.prefix,namespace:a.namespaceURI};t.push(f),this.visibleNamespaces.Add(f),n++}continue}if(a.localName==="xmlns"&&!a.prefix&&!a.nodeValue){let f={prefix:a.prefix,namespace:a.nodeValue};t.push(f),this.visibleNamespaces.Add(f),n++}let u=null,c;(c=/xmlns:([\w.-]+)/.exec(a.nodeName))&&(u=c[1]);let l=!0;if(this.exclusive&&!this.IsNamespaceInclusive(e,u)){let f=iZ(e,u);if(f>1)l=!1;else if(f===0)continue}if(!this.IsNamespaceRendered(u,a.nodeValue)&&l){let f={prefix:u,namespace:a.nodeValue};t.push(f),this.visibleNamespaces.Add(f),n++}}if(!this.IsNamespaceRendered(e.prefix,e.namespaceURI)&&e.namespaceURI!=="http://www.w3.org/2000/xmlns/"){let s={prefix:e.prefix,namespace:e.namespaceURI};t.push(s),this.visibleNamespaces.Add(s),n++}t.sort(VEe);let i=null;return t.forEach(s=>{s.prefix!==i&&(i=s.prefix,this.result.push(" xmlns"),s.prefix&&this.result.push(":"+s.prefix),this.result.push('="'),this.result.push(s.namespace||""),this.result.push('"'))}),n}WriteAttributesAxis(e){let t=[];for(let n=0;n<e.attributes.length;n++){let i=e.attributes[n];A5(i)||t.push(i)}t.sort(jEe),t.forEach(n=>{n!=null&&(this.result.push(" "),this.result.push(n.nodeName),this.result.push('="'),this.result.push(this.NormalizeString(n.nodeValue,Vt.Attribute)),this.result.push('"'))})}NormalizeString(e,t){let n=[];if(e)for(let i=0;i<e.length;i++){let s=e[i];s==="<"&&(t===Vt.Attribute||this.IsTextNode(t))?n.push("&lt;"):s===">"&&this.IsTextNode(t)?n.push("&gt;"):s==="&"&&(t===Vt.Attribute||this.IsTextNode(t))?n.push("&amp;"):s==='"'&&t===Vt.Attribute?n.push("&quot;"):s===" "&&t===Vt.Attribute?n.push("&#x9;"):s===`
122
122
  `&&t===Vt.Attribute?n.push("&#xA;"):s==="\r"?n.push("&#xD;"):n.push(s)}return n.join("")}IsTextNode(e){switch(e){case Vt.Text:case Vt.CDATA:case Vt.SignificantWhitespace:case Vt.Whitespace:return!0}return!1}IsNamespaceInclusive(e,t){let n=t||null;return e.prefix===n?!1:this.inclusiveNamespacesPrefixList.indexOf(n||"")!==-1}IsNamespaceRendered(e,t){if(e=e||"",t=t||"",!e&&!t||e==="xml"&&t==="http://www.w3.org/XML/1998/namespace")return!0;let n=this.visibleNamespaces.GetPrefix(e);return n?n.namespace===t:!1}};function VEe(r,e){return r==e?0:r?e?r.prefix?e.prefix?r.prefix<e.prefix?-1:r.prefix>e.prefix?1:0:1:-1:1:-1}o(VEe,"XmlDsigC14NTransformNamespacesComparer");function jEe(r,e){if(!r.namespaceURI&&e.namespaceURI)return-1;if(!e.namespaceURI&&r.namespaceURI)return 1;let t=(r.namespaceURI||"")+r.localName,n=(e.namespaceURI||"")+e.localName;return t===n?0:t<n?-1:1}o(jEe,"XmlDsigC14NTransformAttributesComparer");function iZ(r,e,t=0){let n=e||null;if(r.prefix===n)return++t;if(r.attributes)for(let i=0;i<r.attributes.length;i++){let s=r.attributes[i];if(!A5(s)&&e&&r.attributes[i].prefix===e)return++t}for(let i=r.firstChild;i;i=i.nextSibling)if(i.nodeType===Vt.Element){let a=iZ(i,e,t);if(i.nodeType===Vt.Element&&a)return++t+a}return t}o(iZ,"IsNamespaceUsed");function A5(r){let e=/xmlns:/;return!!(r!==null&&r.nodeType===Vt.Attribute&&(r.nodeName==="xmlns"||e.test(r.nodeName)))}o(A5,"IsNamespaceNode");var bB=class extends zo{static{o(this,"SignatureMethodOther")}OnLoadXml(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes.item(t);if(n.nodeType!==Vt.Element||n.nodeName===me.ElementNames.HMACOutputLength)continue;let i;switch(n.localName){case me.ElementNames.RSAPSSParams:i=_u;break;default:break}if(i){let s=new i;s.LoadXml(n),this.Add(s)}}}};bB=ze([jt({localName:"Other"})],bB);var Gc=class extends wn{static{o(this,"SignatureMethod")}};ze([sn({localName:me.AttributeNames.Algorithm,required:!0,defaultValue:""}),at("design:type",String)],Gc.prototype,"Algorithm",void 0);ze([Yt({localName:me.ElementNames.HMACOutputLength,namespaceURI:me.NamespaceURI,prefix:me.DefaultPrefix,converter:RE}),at("design:type",Number)],Gc.prototype,"HMACOutputLength",void 0);ze([Yt({parser:bB,noRoot:!0,minOccurs:0}),at("design:type",bB)],Gc.prototype,"Any",void 0);Gc=ze([jt({localName:me.ElementNames.SignatureMethod})],Gc);var SS=class extends wn{static{o(this,"CanonicalizationMethod")}};ze([sn({localName:me.AttributeNames.Algorithm,required:!0,defaultValue:me.DefaultCanonMethod}),at("design:type",String)],SS.prototype,"Algorithm",void 0);SS=ze([jt({localName:me.ElementNames.CanonicalizationMethod})],SS);var xS=class extends wn{static{o(this,"DataObject")}};ze([sn({localName:me.AttributeNames.Id,defaultValue:""}),at("design:type",String)],xS.prototype,"Id",void 0);ze([sn({localName:me.AttributeNames.MimeType,defaultValue:""}),at("design:type",String)],xS.prototype,"MimeType",void 0);ze([sn({localName:me.AttributeNames.Encoding,defaultValue:""}),at("design:type",String)],xS.prototype,"Encoding",void 0);xS=ze([jt({localName:me.ElementNames.Object})],xS);var MC=class extends zo{static{o(this,"DataObjects")}};MC=ze([jt({localName:"xmldsig_objects",parser:xS})],MC);var Fs=class extends wn{static{o(this,"Transform")}constructor(){super(...arguments),this.innerXml=null}GetOutput(){throw new je(Te.METHOD_NOT_IMPLEMENTED)}LoadInnerXml(e){if(!e)throw new je(Te.PARAM_REQUIRED,"node");this.innerXml=e}GetInnerXml(){return this.innerXml}};ze([sn({localName:me.AttributeNames.Algorithm,defaultValue:""}),at("design:type",String)],Fs.prototype,"Algorithm",void 0);ze([Yt({localName:me.ElementNames.XPath,defaultValue:""}),at("design:type",String)],Fs.prototype,"XPath",void 0);Fs=ze([jt({localName:me.ElementNames.Transform})],Fs);var wf=class extends Fs{static{o(this,"XmlDsigBase64Transform")}constructor(){super(...arguments),this.Algorithm=me.AlgorithmNamespaces.XmlDsigBase64Transform}GetOutput(){if(!this.innerXml)throw new je(Te.PARAM_REQUIRED,"innerXml");return Or.FromString(this.innerXml.textContent||"","base64")}};var Xc=class extends Fs{static{o(this,"XmlDsigC14NTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",this.xmlCanonicalizer=new Kc(!1,!1)}GetOutput(){if(!this.innerXml)throw new je(Te.PARAM_REQUIRED,"innerXml");return this.xmlCanonicalizer.Canonicalize(this.innerXml)}},Wc=class extends Xc{static{o(this,"XmlDsigC14NWithCommentsTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments",this.xmlCanonicalizer=new Kc(!0,!1)}};var Cf=class extends Fs{static{o(this,"XmlDsigEnvelopedSignatureTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"}GetOutput(){if(!this.innerXml)throw new je(Te.PARAM_REQUIRED,"innerXml");let e=this.innerXml.firstChild,t=[];for(;e;)eo(e)&&e.localName===me.ElementNames.Signature&&e.namespaceURI===me.NamespaceURI&&t.push(e),e=e.nextSibling;for(let n of t)n.parentNode?.removeChild(n);return this.innerXml}};var Jc=class extends Fs{static{o(this,"XmlDsigExcC14NTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#",this.xmlCanonicalizer=new Kc(!1,!0)}get InclusiveNamespacesPrefixList(){return this.xmlCanonicalizer.InclusiveNamespacesPrefixList}set InclusiveNamespacesPrefixList(e){this.xmlCanonicalizer.InclusiveNamespacesPrefixList=e}LoadXml(e){if(super.LoadXml(e),this.Element&&this.Element.childNodes)for(let t=0;t<this.Element.childNodes.length;t++){let n=this.Element.childNodes[t];if(n&&n.nodeType===1)switch(n.localName){case"InclusiveNamespaces":this.setInclusiveNamespacesElement(n);break}}}GetOutput(){if(!this.innerXml)throw new je(Te.PARAM_REQUIRED,"innerXml");return this.xmlCanonicalizer.Canonicalize(this.innerXml)}setInclusiveNamespacesElement(e){let t=e.getAttribute("PrefixList");t&&t.length>0&&(this.xmlCanonicalizer.InclusiveNamespacesPrefixList=t)}},Yc=class extends Jc{static{o(this,"XmlDsigExcC14NWithCommentsTransform")}constructor(){super(...arguments),this.Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments",this.xmlCanonicalizer=new Kc(!0,!0)}};function sZ(r){return r.parentNode?sZ(r.parentNode):r}o(sZ,"lookupParentNode");var bS=class extends Fs{static{o(this,"XmlDsigXPathTransform")}constructor(){super(...arguments),this.Algorithm=me.AlgorithmNamespaces.XmlDsigXPathTransform}GetOutput(){if(!this.innerXml)throw new je(Te.PARAM_REQUIRED,"innerXml");this.Filter(sZ(this.innerXml),this.XPath)}Filter(e,t){let n=e.childNodes,i=[];for(let s=0;n&&s<n.length;s++){let a=n.item(s);i.push(a)}i.forEach(s=>{this.Evaluate(s,t)?s.parentNode&&s.parentNode.removeChild(s):this.Filter(s,t)})}GetEvaluator(e){return typeof self<"u"?e.ownerDocument==null?e:e.ownerDocument:ny("xpath")}Evaluate(e,t){try{let n=this.GetEvaluator(e),i=this.GetXml();if(!i||!i.firstChild)throw new Error("XML element or firstChild is not defined");let s=i.firstChild,a=`boolean(${t})`,u=typeof self>"u"?ny("xpath"):self;return!n.evaluate(a,e,{lookupNamespaceURI:o(l=>s.lookupNamespaceURI(l),"lookupNamespaceURI")},u.XPathResult.ANY_TYPE,null).booleanValue}catch{return!1}}};ze([Yt({localName:me.ElementNames.XPath,namespaceURI:me.NamespaceURI,prefix:me.DefaultPrefix,required:!0}),at("design:type",String)],bS.prototype,"XPath",void 0);var ES=class extends zo{static{o(this,"Transforms")}OnLoadXml(e){super.OnLoadXml(e),this.items=this.GetIterator().map(t=>{switch(t.Algorithm){case me.AlgorithmNamespaces.XmlDsigEnvelopedSignatureTransform:return fg(t,Cf);case me.AlgorithmNamespaces.XmlDsigC14NTransform:return fg(t,Xc);case me.AlgorithmNamespaces.XmlDsigC14NWithCommentsTransform:return fg(t,Wc);case me.AlgorithmNamespaces.XmlDsigExcC14NTransform:return fg(t,Jc);case me.AlgorithmNamespaces.XmlDsigExcC14NWithCommentsTransform:return fg(t,Yc);case me.AlgorithmNamespaces.XmlDsigBase64Transform:return fg(t,wf);case me.AlgorithmNamespaces.XmlDsigXPathTransform:return fg(t,bS);default:try{let n=UC.CreateFromName(t.Algorithm);if(!t.Element)throw new Error("Transform element is not defined");return n.LoadXml(t.Element),n}catch{throw new je(Te.CRYPTOGRAPHIC_UNKNOWN_TRANSFORM,t.Algorithm)}}})}};ES=ze([jt({localName:me.ElementNames.Transforms,parser:Fs})],ES);function fg(r,e){let t=new e;if(!r.Element)throw new Error("Transform element is not defined");return t.LoadXml(r.Element),t}o(fg,"ChangeTransform");var Qc=class extends wn{static{o(this,"Reference")}constructor(e){super(),this.DigestMethod=new Ko,e&&(this.Uri=e)}};ze([sn({defaultValue:""}),at("design:type",String)],Qc.prototype,"Id",void 0);ze([sn({localName:me.AttributeNames.URI}),at("design:type",String)],Qc.prototype,"Uri",void 0);ze([sn({localName:me.AttributeNames.Type,defaultValue:""}),at("design:type",String)],Qc.prototype,"Type",void 0);ze([Yt({parser:ES}),at("design:type",ES)],Qc.prototype,"Transforms",void 0);ze([Yt({required:!0,parser:Ko}),at("design:type",Ko)],Qc.prototype,"DigestMethod",void 0);ze([Yt({required:!0,localName:me.ElementNames.DigestValue,namespaceURI:me.NamespaceURI,prefix:me.DefaultPrefix,converter:Lo}),at("design:type",Uint8Array)],Qc.prototype,"DigestValue",void 0);Qc=ze([jt({localName:me.ElementNames.Reference}),at("design:paramtypes",[String])],Qc);var wS=class extends zo{static{o(this,"References")}};wS=ze([jt({localName:"References",parser:Qc})],wS);var Af=class extends wn{static{o(this,"SignedInfo")}};ze([sn({localName:me.AttributeNames.Id,defaultValue:""}),at("design:type",String)],Af.prototype,"Id",void 0);ze([Yt({parser:SS,required:!0}),at("design:type",SS)],Af.prototype,"CanonicalizationMethod",void 0);ze([Yt({parser:Gc,required:!0}),at("design:type",Gc)],Af.prototype,"SignatureMethod",void 0);ze([Yt({parser:wS,minOccurs:1,noRoot:!0}),at("design:type",wS)],Af.prototype,"References",void 0);Af=ze([jt({localName:me.ElementNames.SignedInfo})],Af);var TS="http://www.w3.org/2001/04/xmldsig-more#",IS="ecdsa",pg=class extends Ta{static{o(this,"EcdsaPublicKey")}};ze([Yt({localName:me.ElementNames.X,namespaceURI:TS,prefix:IS,required:!0,converter:Lo}),at("design:type",Uint8Array)],pg.prototype,"X",void 0);ze([Yt({localName:me.ElementNames.Y,namespaceURI:TS,prefix:IS,required:!0,converter:Lo}),at("design:type",Uint8Array)],pg.prototype,"Y",void 0);pg=ze([jt({localName:me.ElementNames.PublicKey,namespaceURI:TS,prefix:IS})],pg);var CS=class extends Ta{static{o(this,"NamedCurve")}};ze([sn({localName:me.AttributeNames.URI,required:!0}),at("design:type",String)],CS.prototype,"Uri",void 0);CS=ze([jt({localName:me.ElementNames.NamedCurve,namespaceURI:TS,prefix:IS})],CS);var AS=class extends Ta{static{o(this,"DomainParameters")}};ze([Yt({parser:CS}),at("design:type",CS)],AS.prototype,"NamedCurve",void 0);AS=ze([jt({localName:me.ElementNames.DomainParameters,namespaceURI:TS,prefix:IS})],AS);var NS=class extends io{static{o(this,"EcdsaKeyValue")}constructor(){super(...arguments),this.name=me.ElementNames.ECDSAKeyValue,this.key=null,this.jwk=null,this.keyUsage=null}static canImportCryptoKey(e){return e.algorithm.name.toUpperCase()===bf.toUpperCase()}get NamedCurve(){return oZ(this.DomainParameters.NamedCurve.Uri)}async importKey(e){if(!e.algorithm.name||e.algorithm.name.toUpperCase()!=="ECDSA")throw new je(Te.ALGORITHM_WRONG_NAME,e.algorithm.name);let t=await hi.crypto.subtle.exportKey("jwk",e);return this.key=e,this.jwk=t,this.PublicKey=new pg,this.PublicKey.X=Or.FromString(t.x||"","base64url"),this.PublicKey.Y=Or.FromString(t.y||"","base64url"),this.DomainParameters||(this.DomainParameters=new AS),this.DomainParameters.NamedCurve||(this.DomainParameters.NamedCurve=new CS),this.DomainParameters.NamedCurve.Uri=oZ(t.crv||""),this.keyUsage=e.usages,this}async exportKey(e){if(this.key)return this.key;let t=Or.ToBase64Url(this.PublicKey.X),n=Or.ToBase64Url(this.PublicKey.Y),i=MEe(this.DomainParameters.NamedCurve.Uri),s={kty:"EC",crv:i,x:t,y:n,ext:!0};this.keyUsage=["verify"];let a=await hi.crypto.subtle.importKey("jwk",s,{name:"ECDSA",namedCurve:i},!0,this.keyUsage);return this.key=a,this.key}};ze([Yt({parser:AS}),at("design:type",AS)],NS.prototype,"DomainParameters",void 0);ze([Yt({parser:pg,required:!0}),at("design:type",pg)],NS.prototype,"PublicKey",void 0);NS=ze([jt({localName:me.ElementNames.ECDSAKeyValue,namespaceURI:TS,prefix:IS})],NS);function oZ(r){switch(r){case"P-256":return"urn:oid:1.2.840.10045.3.1.7";case"P-384":return"urn:oid:1.3.132.0.34";case"P-521":return"urn:oid:1.3.132.0.35"}throw new je(Te.CRYPTOGRAPHIC,"Unknown NamedCurve")}o(oZ,"GetNamedCurveOid");function MEe(r){switch(r){case"urn:oid:1.2.840.10045.3.1.7":return"P-256";case"urn:oid:1.3.132.0.34":return"P-384";case"urn:oid:1.3.132.0.35":return"P-521"}throw new je(Te.CRYPTOGRAPHIC,"Unknown NamedCurve OID")}o(MEe,"GetNamedCurveFromOid");var UEe=class extends Map{static{o(this,"KeyInfoClauseRegistry")}},md=new UEe;md.set(me.ElementNames.RSAKeyValue,gS);md.set(me.ElementNames.ECDSAKeyValue,NS);var EB=class{static{o(this,"KeyInfoClauseFactory")}static create(e){let t=md.get(e);if(!t)throw new je(Te.KEY_INFO_CLAUSE_NOT_SUPPORTED,e);return new t}};var qC=class extends io{static{o(this,"KeyValue")}set Value(e){this.element=null,this.value=e}get Value(){return this.value}constructor(e){super(),e&&(this.Value=e)}async importKey(e){for(let[,t]of md)if(t.canImportCryptoKey(e)){let n=new t;return await n.importKey(e),this.Value=n,this}throw new je(Te.ALGORITHM_NOT_SUPPORTED,e.algorithm.name)}async exportKey(e){if(!this.Value)throw new je(Te.NULL_REFERENCE);return this.Value.exportKey(e)}OnGetXml(e){if(!this.Value)throw new je(Te.CRYPTOGRAPHIC,"KeyValue has empty value");let t=this.Value.GetXml();t&&e.appendChild(t)}OnLoadXml(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes.item(t);if(eo(n))try{let i=n.localName,s=EB.create(i);s.LoadXml(n),this.value=s;return}catch{}}throw new je(Te.CRYPTOGRAPHIC,"Unsupported KeyValue in use")}};qC=ze([jt({localName:me.ElementNames.KeyValue}),at("design:paramtypes",[io])],qC);var qEe={"2.5.4.3":{short:"CN",long:"CommonName"},"2.5.4.6":{short:"C",long:"Country"},"2.5.4.5":{long:"DeviceSerialNumber"},"0.9.2342.19200300.100.1.25":{short:"DC",long:"DomainComponent"},"1.2.840.113549.1.9.1":{short:"E",long:"EMail"},"2.5.4.42":{short:"G",long:"GivenName"},"2.5.4.43":{short:"I",long:"Initials"},"2.5.4.7":{short:"L",long:"Locality"},"2.5.4.10":{short:"O",long:"Organization"},"2.5.4.11":{short:"OU",long:"OrganizationUnit"},"2.5.4.8":{short:"ST",long:"State"},"2.5.4.9":{short:"Street",long:"StreetAddress"},"2.5.4.4":{short:"SN",long:"SurName"},"2.5.4.12":{short:"T",long:"Title"},"1.2.840.113549.1.9.8":{long:"UnstructuredAddress"},"1.2.840.113549.1.9.2":{long:"UnstructuredName"}},DS=class{static{o(this,"X509Certificate")}constructor(e){if(this.publicKey=null,e){let t=new Uint8Array(e);this.LoadRaw(t),this.raw=t}}get SerialNumber(){return this.simpl.serialNumber.valueBlock.toString()}get Issuer(){return this.NameToString(this.simpl.issuer)}get Subject(){return this.NameToString(this.simpl.subject)}async Thumbprint(e="SHA-1"){return hi.crypto.subtle.digest(e,this.raw)}get PublicKey(){return this.publicKey}GetRaw(){return this.raw}async exportKey(e){if(e){let t={algorithm:e,usages:["verify"]};if(t.algorithm.name.toUpperCase()===bf){let i=this.simpl.subjectPublicKeyInfo.toJSON();if("crv"in i&&i.crv)t.algorithm.namedCurve=i.crv;else throw new Error("Cannot get Curved name from the ECDSA public key")}this.isHashedAlgorithm(t.algorithm)&&typeof t.algorithm.hash=="string"&&(t.algorithm.hash={name:t.algorithm.hash});let n=await this.simpl.getPublicKey({algorithm:t});return this.publicKey=n,n}return this.simpl.subjectPublicKeyInfo.algorithm.algorithmId==="1.2.840.113549.1.1.1"?this.publicKey=await this.simpl.getPublicKey({algorithm:{algorithm:{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},usages:["verify"]}}):this.publicKey=await this.simpl.getPublicKey(),this.publicKey}NameToString(e,t=","){let n=[];return e.typesAndValues.forEach(i=>{let s=i.type,a=qEe[s.toString()],u=a?a.short:null;n.push(`${u||s}=${i.value.valueBlock.value}`)}),n.join(t+" ")}LoadRaw(e){this.raw=new Uint8Array(e);let t=Fn(this.raw.buffer);this.simpl=new _s({schema:t.result})}isHashedAlgorithm(e){return!!e.hash}};var wB=class extends wn{static{o(this,"X509IssuerSerial")}};ze([Yt({localName:me.ElementNames.X509IssuerName,namespaceURI:me.NamespaceURI,prefix:me.DefaultPrefix,required:!0}),at("design:type",String)],wB.prototype,"X509IssuerName",void 0);ze([Yt({localName:me.ElementNames.X509SerialNumber,namespaceURI:me.NamespaceURI,prefix:me.DefaultPrefix,required:!0}),at("design:type",String)],wB.prototype,"X509SerialNumber",void 0);wB=ze([jt({localName:me.ElementNames.X509IssuerSerial})],wB);var hg;(function(r){r[r.None=0]="None",r[r.EndCertOnly=1]="EndCertOnly",r[r.ExcludeRoot=2]="ExcludeRoot",r[r.WholeChain=3]="WholeChain"})(hg||(hg={}));var RS=class extends io{static{o(this,"KeyInfoX509Data")}constructor(e,t=hg.None){if(super(),this.x509crl=null,this.SubjectKeyIdList=[],e){if(e instanceof Uint8Array)this.AddCertificate(new DS(e));else if(e instanceof DS)switch(t){case hg.None:case hg.EndCertOnly:this.AddCertificate(e);break;case hg.ExcludeRoot:this.AddCertificatesChainFrom(e,!1);break;case hg.WholeChain:this.AddCertificatesChainFrom(e,!0);break}}}async importKey(e){throw new je(Te.METHOD_NOT_SUPPORTED)}async exportKey(e){if(!this.Certificates.length)throw new je(Te.NULL_REFERENCE);return this.Key=await this.Certificates[0].exportKey(e),this.Key}get Certificates(){return this.X509CertificateList}get CRL(){return this.x509crl}set CRL(e){this.x509crl=e}get IssuerSerials(){return this.IssuerSerialList}get SubjectKeyIds(){return this.SubjectKeyIdList}get SubjectNames(){return this.SubjectNameList}AddCertificate(e){if(!e)throw new je(Te.PARAM_REQUIRED,"certificate");this.X509CertificateList||(this.X509CertificateList=[]),this.X509CertificateList.push(e)}AddIssuerSerial(e,t){if(e==null)throw new je(Te.PARAM_REQUIRED,"issuerName");this.IssuerSerialList==null&&(this.IssuerSerialList=[]);let n={issuerName:e,serialNumber:t};this.IssuerSerialList.push(n)}AddSubjectKeyId(e){if(this.SubjectKeyIdList&&(this.SubjectKeyIdList=[]),typeof e=="string"){if(e!=null){let t=Or.FromBase64(e);this.SubjectKeyIdList.push(t)}}else this.SubjectKeyIdList.push(e)}AddSubjectName(e){this.SubjectNameList==null&&(this.SubjectNameList=[]),this.SubjectNameList.push(e)}GetXml(){let e=this.CreateDocument(),t=this.CreateElement(e),n=this.GetPrefix();if(this.IssuerSerialList!=null&&this.IssuerSerialList.length>0&&this.IssuerSerialList.forEach(i=>{let s=e.createElementNS(me.NamespaceURI,n+me.ElementNames.X509IssuerSerial),a=e.createElementNS(me.NamespaceURI,n+me.ElementNames.X509IssuerName);a.textContent=i.issuerName,s.appendChild(a);let u=e.createElementNS(me.NamespaceURI,n+me.ElementNames.X509SerialNumber);u.textContent=i.serialNumber,s.appendChild(u),t.appendChild(s)}),this.SubjectKeyIdList!=null&&this.SubjectKeyIdList.length>0&&this.SubjectKeyIdList.forEach(i=>{let s=e.createElementNS(me.NamespaceURI,n+me.ElementNames.X509SKI);s.textContent=Or.ToBase64(i),t.appendChild(s)}),this.SubjectNameList!=null&&this.SubjectNameList.length>0&&this.SubjectNameList.forEach(i=>{let s=e.createElementNS(me.NamespaceURI,n+me.ElementNames.X509SubjectName);s.textContent=i,t.appendChild(s)}),this.X509CertificateList!=null&&this.X509CertificateList.length>0&&this.X509CertificateList.forEach(i=>{let s=e.createElementNS(me.NamespaceURI,n+me.ElementNames.X509Certificate);s.textContent=Or.ToBase64(i.GetRaw()),t.appendChild(s)}),this.x509crl!=null){let i=e.createElementNS(me.NamespaceURI,n+me.ElementNames.X509CRL);i.textContent=Or.ToBase64(this.x509crl),t.appendChild(i)}return t}LoadXml(e){super.LoadXml(e),this.IssuerSerialList&&(this.IssuerSerialList=[]),this.SubjectKeyIdList&&(this.SubjectKeyIdList=[]),this.SubjectNameList&&(this.SubjectNameList=[]),this.X509CertificateList&&(this.X509CertificateList=[]),this.x509crl=null;let t=this.GetChildren(me.ElementNames.X509IssuerSerial);t&&t.forEach(i=>{let s=wn.GetChild(i,me.ElementNames.X509IssuerName,me.NamespaceURI,!0),a=wn.GetChild(i,me.ElementNames.X509SerialNumber,me.NamespaceURI,!0);s&&s.textContent&&a&&a.textContent&&this.AddIssuerSerial(s.textContent,a.textContent)}),t=this.GetChildren(me.ElementNames.X509SKI),t&&t.forEach(i=>{if(i.textContent){let s=Or.FromBase64(i.textContent);this.AddSubjectKeyId(s)}}),t=this.GetChildren(me.ElementNames.X509SubjectName),t?.forEach(i=>{i.textContent&&this.AddSubjectName(i.textContent)}),t=this.GetChildren(me.ElementNames.X509Certificate),t&&t.forEach(i=>{if(i.textContent){let s=Or.FromBase64(i.textContent);this.AddCertificate(new DS(s))}});let n=this.GetChild(me.ElementNames.X509CRL,!1);n&&n.textContent&&(this.x509crl=Or.FromBase64(n.textContent))}AddCertificatesChainFrom(e,t){}};RS=ze([jt({localName:me.ElementNames.X509Data}),at("design:paramtypes",[Object,Object])],RS);var HC=class extends io{static{o(this,"SPKIData")}async importKey(e){let t=await hi.crypto.subtle.exportKey("spki",e);return this.SPKIexp=new Uint8Array(t),this.Key=e,this}async exportKey(e){if(!this.SPKIexp)throw new Error("SPKI data is not defined");let t=await hi.crypto.subtle.importKey("spki",this.SPKIexp,e,!0,["verify"]);return this.Key=t,t}};ze([Yt({localName:me.ElementNames.SPKIexp,namespaceURI:me.NamespaceURI,prefix:me.DefaultPrefix,required:!0,converter:Lo}),at("design:type",Object)],HC.prototype,"SPKIexp",void 0);HC=ze([jt({localName:me.ElementNames.SPKIData})],HC);var dg=class extends zo{static{o(this,"KeyInfo")}OnLoadXml(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes.item(t);if(n.nodeType!==Vt.Element)continue;let i=null;switch(n.localName){case me.ElementNames.KeyValue:i=qC;break;case me.ElementNames.X509Data:i=RS;break;case me.ElementNames.SPKIData:i=HC;break;case me.ElementNames.KeyName:case me.ElementNames.RetrievalMethod:case me.ElementNames.PGPData:case me.ElementNames.MgmtData:}if(i){let s=new i;s.LoadXml(n),this.Add(s)}}}};ze([sn({localName:me.AttributeNames.Id,defaultValue:""}),at("design:type",String)],dg.prototype,"Id",void 0);dg=ze([jt({localName:me.ElementNames.KeyInfo})],dg);var gd=class extends wn{static{o(this,"Signature")}};ze([sn({localName:me.AttributeNames.Id,defaultValue:""}),at("design:type",String)],gd.prototype,"Id",void 0);ze([Yt({parser:Af,required:!0}),at("design:type",Af)],gd.prototype,"SignedInfo",void 0);ze([Yt({localName:me.ElementNames.SignatureValue,namespaceURI:me.NamespaceURI,prefix:me.DefaultPrefix,required:!0,converter:Lo,defaultValue:null}),at("design:type",Object)],gd.prototype,"SignatureValue",void 0);ze([Yt({parser:dg}),at("design:type",dg)],gd.prototype,"KeyInfo",void 0);ze([Yt({parser:MC,noRoot:!0}),at("design:type",MC)],gd.prototype,"ObjectList",void 0);gd=ze([jt({localName:me.ElementNames.Signature})],gd);var zEe=class extends Map{static{o(this,"AlgorithmRegistry")}},sr=new zEe;sr.set(fB,{type:"signature",algorithm:pS});sr.set(pB,{type:"signature",algorithm:hS});sr.set(hB,{type:"signature",algorithm:dS});sr.set(dB,{type:"signature",algorithm:mS});sr.set(fB,{type:"signature",algorithm:pS});sr.set(pB,{type:"signature",algorithm:hS});sr.set(hB,{type:"signature",algorithm:dS});sr.set(dB,{type:"signature",algorithm:mS});sr.set(x5,{type:"signature",algorithm:gB});sr.set(b5,{type:"signature",algorithm:vB});sr.set(E5,{type:"signature",algorithm:yB});sr.set(w5,{type:"signature",algorithm:SB});sr.set(C5,{type:"signature",algorithm:xB});sr.set(sB,{type:"signature",algorithm:oS});sr.set(aB,{type:"signature",algorithm:uS});sr.set(oB,{type:"signature",algorithm:cS});sr.set(uB,{type:"signature",algorithm:lS});sr.set(sB.toUpperCase(),{type:"signature",algorithm:oS});sr.set(aB.toUpperCase(),{type:"signature",algorithm:uS});sr.set(oB.toUpperCase(),{type:"signature",algorithm:cS});sr.set(uB.toUpperCase(),{type:"signature",algorithm:lS});sr.set(d5,{type:"signature",algorithm:LC});sr.set(m5,{type:"signature",algorithm:kC});sr.set(g5,{type:"signature",algorithm:VC});sr.set(v5,{type:"signature",algorithm:jC});sr.set(nS,{type:"hash",algorithm:rB});sr.set(iS,{type:"hash",algorithm:FC});sr.set(sS,{type:"hash",algorithm:nB});sr.set(aS,{type:"hash",algorithm:iB});var mg=class{static{o(this,"AlgorithmFactory")}static createHashAlgorithmFromNamespace(e){for(let[t,{type:n,algorithm:i}]of sr)if(n==="hash"&&t===e)return new i;throw new je(Te.ALGORITHM_NOT_SUPPORTED,e)}static createSignatureAlgorithmFromMethod(e){for(let[t,{type:n,algorithm:i}]of sr)if(n==="signature"&&e.Algorithm===t){let s=new i;return s.fromMethod&&s.fromMethod(e),s}throw new je(Te.ALGORITHM_NOT_SUPPORTED,e.Algorithm)}static createHashAlgorithmFromAlgorithm(e){for(let[,{type:t,algorithm:n}]of sr)if(t==="hash"){let i=new n;if(i.algorithm.name.toUpperCase()===e.name.toUpperCase())return i}throw new je(Te.ALGORITHM_NOT_SUPPORTED,e.name)}static createSignatureAlgorithmFromAlgorithm(e){for(let[,{type:t,algorithm:n}]of sr)if(t==="signature"){let i=n.fromAlgorithm(e);if(i)return i}throw new je(Te.ALGORITHM_NOT_SUPPORTED,e.name)}};var KEe=class extends Map{static{o(this,"TransformRegistry")}},Nf=new KEe;Nf.set(me.AlgorithmNamespaces.XmlDsigBase64Transform,wf);Nf.set(me.AlgorithmNamespaces.XmlDsigC14NTransform,Xc);Nf.set(me.AlgorithmNamespaces.XmlDsigC14NWithCommentsTransform,Wc);Nf.set(me.AlgorithmNamespaces.XmlDsigEnvelopedSignatureTransform,Cf);Nf.set(me.AlgorithmNamespaces.XmlDsigExcC14NTransform,Jc);Nf.set(me.AlgorithmNamespaces.XmlDsigExcC14NWithCommentsTransform,Yc);var UC=class{static{o(this,"CryptoConfig")}static CreateFromName(e){if(!e)throw new je(Te.PARAM_REQUIRED,"name");let t=Nf.get(e);if(t)return new t;let n;switch(e){case me.AlgorithmNamespaces.XmlDsigBase64Transform:n=new wf;break;case me.AlgorithmNamespaces.XmlDsigC14NTransform:n=new Xc;break;case me.AlgorithmNamespaces.XmlDsigC14NWithCommentsTransform:n=new Wc;break;case me.AlgorithmNamespaces.XmlDsigEnvelopedSignatureTransform:n=new Cf;break;case me.AlgorithmNamespaces.XmlDsigXPathTransform:throw new je(Te.ALGORITHM_NOT_SUPPORTED,e);case me.AlgorithmNamespaces.XmlDsigXsltTransform:throw new je(Te.ALGORITHM_NOT_SUPPORTED,e);case me.AlgorithmNamespaces.XmlDsigExcC14NTransform:n=new Jc;break;case me.AlgorithmNamespaces.XmlDsigExcC14NWithCommentsTransform:n=new Yc;break;case me.AlgorithmNamespaces.XmlDecryptionTransform:throw new je(Te.ALGORITHM_NOT_SUPPORTED,e);default:throw new je(Te.ALGORITHM_NOT_SUPPORTED,e)}return n}static CreateSignatureAlgorithm(e){return mg.createSignatureAlgorithmFromMethod(e)}static CreateHashAlgorithm(e){return mg.createHashAlgorithmFromNamespace(e)}static GetHashAlgorithm(e){let t=typeof e=="string"?{name:e}:e;return mg.createHashAlgorithmFromAlgorithm(t)}static GetSignatureAlgorithm(e){let t=typeof e=="string"?{name:e}:e;return"hash"in t&&typeof t.hash=="string"&&(t.hash={name:t.hash}),mg.createSignatureAlgorithmFromAlgorithm(t)}static CreateSignatureMethod(e){let t=new Gc;return t.Algorithm=e.namespaceURI,e.toMethod&&e.toMethod(t),t}static RegisterSignatureAlgorithm(e,t){sr.set(e,{type:"signature",algorithm:t})}static RegisterHashAlgorithm(e,t){sr.set(e,{type:"hash",algorithm:t})}static RegisterKeyInfoClause(e,t){md.set(e,t)}static RegisterTransform(e,t){Nf.set(e,t)}};var xg=zt(gee(),1);var vee={xmldec:{version:"1.0",encoding:"UTF-8",standalone:void 0}};var yee={explicitArray:!1,explicitRoot:!1,preserveChildrenOrder:!0};var ce={AC:"12",AL:"27",AM:"13",AP:"16",BA:"29",CE:"23",DF:"53",ES:"32",GO:"52",MA:"21",MG:"31",MS:"50",MT:"51",PA:"15",PB:"25",PE:"26",PI:"22",PR:"41",RJ:"33",RN:"24",RO:"11",RR:"14",RS:"43",SC:"42",SE:"28",SP:"35",TO:"17"},See=Object.keys(ce);var Be={Production:"1",Homolog:"2"};var K5={[ce.AC]:"America/Rio_Branco",[ce.AL]:"America/Maceio",[ce.AM]:"America/Manaus",[ce.AP]:"America/Belem",[ce.BA]:"America/Bahia",[ce.CE]:"America/Fortaleza",[ce.DF]:"America/Sao_Paulo",[ce.ES]:"America/Sao_Paulo",[ce.GO]:"America/Sao_Paulo",[ce.MA]:"America/Fortaleza",[ce.MG]:"America/Sao_Paulo",[ce.MS]:"America/Campo_Grande",[ce.MT]:"America/Cuiaba",[ce.PA]:"America/Belem",[ce.PB]:"America/Fortaleza",[ce.PE]:"America/Recife",[ce.PI]:"America/Fortaleza",[ce.PR]:"America/Sao_Paulo",[ce.RJ]:"America/Sao_Paulo",[ce.RN]:"America/Fortaleza",[ce.RO]:"America/Porto_Velho",[ce.RR]:"America/Boa_Vista",[ce.RS]:"America/Sao_Paulo",[ce.SC]:"America/Sao_Paulo",[ce.SE]:"America/Maceio",[ce.SP]:"America/Sao_Paulo",[ce.TO]:"America/Araguaina"};var JS=class{static{o(this,"Xml2JsToolkit")}xml2js;constructor(e=V2e){this.xml2js=e,NY({XMLSerializer:xg.default.XMLSerializer,DOMParser:xg.default.DOMParser,DOMImplementation:xg.default.DOMImplementation})}async validate(e,t){if(!e||e.trim().length===0)return ur(new _t("Please provide a valid xml content"));if(!t||t.trim().length===0)return ur(new _t("Please provide a valid existing xsd path"));try{return await $W.validate(e,t),Ot()}catch(n){return Co(n)}}parse(e,t){return new Promise((n,i)=>new this.xml2js.Parser({...yee,...t}).parseString(e,(s,a)=>s?i(s):n(a)))}build(e,t){return Promise.resolve(new this.xml2js.Builder({...vee,...t}).buildObject(e))}digest(e,t,n=xb){return this.hash(this.canonicalize(e,n),t)}canonicalize(e,t=xb){let n=new xg.default.DOMParser().parseFromString(this.clear(e),"application/xml");return new Kc(t.includeComments,t.exclusive).Canonicalize(n)}getNode(e,t){let n=this.parseXml(e),s=this.getDocumentElement(n).getElementsByTagName(t).item(0);return s?this.clear(this.serializeXml(s)):null}getFirstNode(e){let t=this.parseXml(e),i=this.getDocumentElement(t).firstChild;return i?this.clear(this.serializeXml(i)):null}getAttribute(e,t){let n=this.parseXml(e);return this.getDocumentElement(n).getAttribute(t)}appendNode(e,t){let n=this.parseXml(e),i=this.getDocumentElement(n),s=this.getDocumentElement(this.parseXml(t));return i.appendChild(s),this.clear(this.serializeXml(n))}insertBefore(e,t,n){let i=this.parseXml(e),a=this.getDocumentElement(i).getElementsByTagName(t).item(0);if(!a?.parentNode)throw new _t(`No element found with tag "${t}" to insert before`);let u=this.getDocumentElement(this.parseXml(n));return a.parentNode.insertBefore(u,a),this.clear(this.serializeXml(i))}hash(e,t){return xee.default.createHash(t).update(e,"utf8").digest().toString("base64")}parseXml(e){return new xg.default.DOMParser().parseFromString(e,"application/xml")}getDocumentElement(e){if(!e.documentElement)throw new _t("Invalid xml provided. Missing root element.");return e.documentElement}serializeXml(e){return new xg.default.XMLSerializer().serializeToString(e)}clear(e){return['xmlns:default="http://www.w3.org/2000/09/xmldsig#"',' standalone="no"',"default:",":default",`
123
- `,"\r"," "].reduce((n,i)=>n.replace(i,""),e.replace(/(>)\s*(<)/gm,"$1$2"))}};var cA=class{static{o(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let t=Dr.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:Dr.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:Dr.newOrZero(n?.vFrete).add(e.vFrete??t).toFixed(2),vSeg:Dr.newOrZero(n?.vSeg).add(e.vSeg??t).toFixed(2),vDesc:Dr.newOrZero(n?.vDesc).add(e.vDesc??t).toFixed(2),vOutro:Dr.newOrZero(n?.vOutro).add(e.vOutro??t).toFixed(2)}}))}cofins(e){let t=Dr.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vCOFINS:Dr.newOrZero(n?.vCOFINS).add(e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS??t).toFixed(2)}}))}pis(e){let t=Dr.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vPIS:Dr.newOrZero(n?.vPIS).add(e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS??t).toFixed(2)}}))}icms(e){let t=Dr.from(0),[n]=Object.keys(e),i=e[n];this.builder.increment(({ICMSTot:s})=>({ICMSTot:{vBC:Dr.newOrZero(s?.vBC).add(i.vBC??t).toFixed(2),vICMS:Dr.newOrZero(s?.vICMS).add(i.vICMS??t).toFixed(2),vICMSDeson:Dr.newOrZero(s?.vICMSDeson).add(i.vICMSDeson??t).toFixed(2),vBCST:Dr.newOrZero(s?.vBCST).add(i.vBCST??t).toFixed(2),vST:Dr.newOrZero(s?.vST).add(i.vICMSST??t).toFixed(2)}}))}};var lA=class{static{o(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=Dr.from(0),t=this.builder.schema===Dl.PL_010_V1_30;this.builder.increment(({ICMSTot:n,ISSQNtot:i},s)=>({vNFTot:t?s.reduce((a,u)=>a.add(u?.vItem??"0.00"),e).toFixed(2):void 0,ICMSTot:{vNF:Dr.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(n?.vICMSDeson??e).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vFrete??e).add(n?.vSeg??e).add(n?.vOutro??e).add(n?.vII??e).add(n?.vIPI??e).add(n?.vIPIDevol??e).add(i?.vServ??e).toFixed(2)}}))}};var bee={[Il.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};var YS=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=ty.create();toolkit=new JS;caching=new xN;certificates=new uT(this.http,this.caching);soap=new hD(this.toolkit,this.certificates);signer=new tT(this.toolkit,this.certificates);xmlSigner=new rT(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(Ao,this)}};var Iee=zt(require("path"),1);var Eee=require("class-transformer"),Fu=require("class-validator");function qB(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qB,"_ts_decorate");function X5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X5,"_ts_metadata");var Ed=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};qB([(0,Fu.IsEnum)(Be),X5("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ed.prototype,"tpAmb",void 0);qB([(0,Fu.IsEnum)(ce),X5("design:type",typeof StateCode>"u"?Object:StateCode)],Ed.prototype,"cUF",void 0);qB([(0,Fu.IsOptional)()],Ed.prototype,"xServ",void 0);var G5=class{static{o(this,"ConsultStatusRequest")}consStatServ};qB([(0,Fu.IsNotEmptyObject)(),(0,Fu.IsObject)(),(0,Fu.ValidateNested)(),(0,Eee.Type)(()=>Ed),X5("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],G5.prototype,"consStatServ",void 0);var zB=require("class-transformer"),qt=require("class-validator");function Ni(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ni,"_ts_decorate");function vs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vs,"_ts_metadata");var HB=class{static{o(this,"InfInutAttributes")}Id};Ni([(0,qt.IsString)(),vs("design:type",String)],HB.prototype,"Id",void 0);var fA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};Ni([(0,qt.IsString)(),vs("design:type",String)],fA.prototype,"xmlns",void 0);Ni([(0,qt.IsString)(),(0,qt.IsOptional)(),vs("design:type",String)],fA.prototype,"versao",void 0);var gs=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Ni([(0,qt.ValidateNested)(),(0,zB.Type)(()=>HB),vs("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],gs.prototype,"$",void 0);Ni([(0,qt.IsEnum)(Be),vs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],gs.prototype,"tpAmb",void 0);Ni([(0,qt.IsOptional)()],gs.prototype,"xServ",void 0);Ni([(0,qt.IsEnum)(ce),vs("design:type",typeof StateCode>"u"?Object:StateCode)],gs.prototype,"cUF",void 0);Ni([(0,qt.IsString)(),(0,qt.Length)(2,2),(0,qt.Matches)(/^[0-9]{2}$/),vs("design:type",String)],gs.prototype,"ano",void 0);Ni([(0,qt.IsString)(),(0,qt.IsOptional)(),vs("design:type",String)],gs.prototype,"CNPJ",void 0);Ni([(0,qt.IsString)(),(0,qt.IsOptional)(),vs("design:type",String)],gs.prototype,"CPF",void 0);Ni([(0,qt.IsString)(),(0,qt.Length)(2,2),(0,qt.Matches)(/^(55|65)$/),vs("design:type",String)],gs.prototype,"mod",void 0);Ni([(0,qt.IsString)(),(0,qt.Matches)(/^[0-9]{1,3}$/),vs("design:type",String)],gs.prototype,"serie",void 0);Ni([(0,qt.IsString)(),(0,qt.Matches)(/^[0-9]{1,9}$/),vs("design:type",String)],gs.prototype,"nNFIni",void 0);Ni([(0,qt.IsString)(),(0,qt.Matches)(/^[0-9]{1,9}$/),vs("design:type",String)],gs.prototype,"nNFFin",void 0);Ni([(0,qt.IsString)(),(0,qt.MinLength)(15),(0,qt.MaxLength)(255),vs("design:type",String)],gs.prototype,"xJust",void 0);gs=Ni([Lr({properties:["CNPJ","CPF"],required:!0})],gs);var Rf=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};Ni([(0,qt.IsObject)(),(0,qt.ValidateNested)(),(0,zB.Type)(()=>fA),vs("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Rf.prototype,"$",void 0);Ni([(0,qt.IsObject)(),(0,qt.ValidateNested)(),(0,zB.Type)(()=>gs),vs("design:type",typeof IInfInut>"u"?Object:IInfInut)],Rf.prototype,"infInut",void 0);Ni([(0,qt.Allow)(),vs("design:type",typeof Signature>"u"?Object:Signature)],Rf.prototype,"Signature",void 0);var tl=require("class-validator");function W5(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(W5,"_ts_decorate");function wee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wee,"_ts_metadata");var bg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};W5([(0,tl.IsEnum)(Be),wee("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],bg.prototype,"tpAmb",void 0);W5([(0,tl.IsOptional)()],bg.prototype,"xServ",void 0);W5([(0,tl.IsString)(),(0,tl.Length)(44,44),(0,tl.Matches)(/^[0-9]{44}$/),wee("design:type",String)],bg.prototype,"chNFe",void 0);var ao=require("class-validator");function pA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pA,"_ts_decorate");function KB(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KB,"_ts_metadata");var Of=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};pA([(0,ao.IsEnum)(Be),(0,ao.IsOptional)(),KB("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Of.prototype,"tpAmb",void 0);pA([(0,ao.IsEnum)(ce),(0,ao.IsOptional)(),KB("design:type",typeof StateCode>"u"?Object:StateCode)],Of.prototype,"cUF",void 0);pA([(0,ao.IsString)(),(0,ao.IsOptional)(),KB("design:type",String)],Of.prototype,"idLote",void 0);pA([(0,ao.IsOptional)(),(0,ao.IsEnum)(["0","1"])],Of.prototype,"indSinc",void 0);pA([(0,ao.IsNotEmpty)(),KB("design:type",typeof T>"u"?Object:T)],Of.prototype,"NFe",void 0);var GB=require("class-validator");function Cee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cee,"_ts_decorate");function Aee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Aee,"_ts_metadata");var QS=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;nRec};Cee([(0,GB.IsEnum)(Be),Aee("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],QS.prototype,"tpAmb",void 0);Cee([(0,GB.IsString)(),Aee("design:type",String)],QS.prototype,"nRec",void 0);var Ir=require("class-validator"),hA=require("class-transformer");function Ti(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ti,"_ts_decorate");function Ji(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ji,"_ts_metadata");var XB=class{static{o(this,"InfEventoAttributes")}Id};Ti([(0,Ir.IsString)(),Ji("design:type",String)],XB.prototype,"Id",void 0);var Wi=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Ti([(0,Ir.IsObject)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>XB),Ji("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Wi.prototype,"$",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",typeof StateCode>"u"?Object:StateCode)],Wi.prototype,"cOrgao",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Wi.prototype,"tpAmb",void 0);Ti([(0,Ir.IsString)(),(0,Ir.IsOptional)(),Ji("design:type",String)],Wi.prototype,"CNPJ",void 0);Ti([(0,Ir.IsString)(),(0,Ir.IsOptional)(),Ji("design:type",String)],Wi.prototype,"CPF",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",String)],Wi.prototype,"chNFe",void 0);Ti([Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ji("design:type",String)],Wi.prototype,"dhEvento",void 0);Ti([(0,Ir.IsEnum)(Il),Ji("design:type",typeof Il>"u"?Object:Il)],Wi.prototype,"tpEvento",void 0);Ti([(0,Ir.IsNumber)(),Ji("design:type",Number)],Wi.prototype,"nSeqEvento",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",String)],Wi.prototype,"verEvento",void 0);Ti([(0,Ir.IsObject)(),Ji("design:type",typeof T>"u"?Object:T)],Wi.prototype,"detEvento",void 0);Wi=Ti([Lr({properties:["CNPJ","CPF"],required:!0})],Wi);var WB=class{static{o(this,"EventoItemAttributes")}xmlns};Ti([(0,Ir.IsString)(),Ji("design:type",String)],WB.prototype,"xmlns",void 0);var rl=class{static{o(this,"EventoItem")}$;infEvento;Signature};Ti([(0,Ir.IsObject)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>WB),Ji("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],rl.prototype,"$",void 0);Ti([(0,Ir.IsObject)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>Wi),Ji("design:type",typeof Wi>"u"?Object:Wi)],rl.prototype,"infEvento",void 0);Ti([(0,Ir.Allow)(),Ji("design:type",typeof Signature>"u"?Object:Signature)],rl.prototype,"Signature",void 0);var $S=class{static{o(this,"EventoPayload")}idLote;evento};Ti([(0,Ir.IsString)(),Ji("design:type",String)],$S.prototype,"idLote",void 0);Ti([(0,Ir.IsNotEmpty)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>rl),Ji("design:type",typeof rl>"u"?Object:rl)],$S.prototype,"evento",void 0);var Yo=require("class-validator");function ZS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ZS,"_ts_decorate");function JB(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JB,"_ts_metadata");var Lu=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};ZS([(0,Yo.IsOptional)()],Lu.prototype,"xServ",void 0);ZS([(0,Yo.IsString)(),(0,Yo.IsIn)(Object.values(See)),JB("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],Lu.prototype,"UF",void 0);ZS([(0,Yo.IsOptional)(),(0,Yo.IsString)(),JB("design:type",String)],Lu.prototype,"IE",void 0);ZS([(0,Yo.IsOptional)(),(0,Yo.IsString)(),JB("design:type",String)],Lu.prototype,"CNPJ",void 0);ZS([(0,Yo.IsOptional)(),(0,Yo.IsString)(),JB("design:type",String)],Lu.prototype,"CPF",void 0);Lu=ZS([Lr({properties:["IE","CNPJ","CPF"],required:!0})],Lu);var Nee={AM:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},AN:{[Be.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}},[Be.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}}},BA:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}}},GO:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}}},MG:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}}},MT:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}}},PE:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}}},SVAN:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVRS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVCRS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};var j2e={[ce.AC]:"SVRS",[ce.AL]:"SVRS",[ce.AM]:"AM",[ce.AP]:"SVRS",[ce.BA]:"BA",[ce.CE]:"SVRS",[ce.DF]:"SVRS",[ce.ES]:"SVRS",[ce.GO]:"GO",[ce.MA]:"SVAN",[ce.MG]:"MG",[ce.MS]:"MS",[ce.MT]:"MT",[ce.PA]:"SVRS",[ce.PB]:"SVRS",[ce.PE]:"PE",[ce.PI]:"SVRS",[ce.PR]:"PR",[ce.RJ]:"SVRS",[ce.RN]:"SVRS",[ce.RO]:"SVRS",[ce.RR]:"SVRS",[ce.RS]:"RS",[ce.SC]:"SVRS",[ce.SE]:"SVRS",[ce.SP]:"SP",[ce.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Tee=j2e;var YB={[ce.AC]:"SVCAN",[ce.AL]:"SVCAN",[ce.AM]:"SVCRS",[ce.AP]:"SVCAN",[ce.BA]:"SVCRS",[ce.CE]:"SVCAN",[ce.DF]:"SVCAN",[ce.ES]:"SVCAN",[ce.GO]:"SVCRS",[ce.MA]:"SVCRS",[ce.MG]:"SVCAN",[ce.MS]:"SVCRS",[ce.MT]:"SVCRS",[ce.PA]:"SVCAN",[ce.PB]:"SVCAN",[ce.PE]:"SVCRS",[ce.PI]:"SVCAN",[ce.PR]:"SVCRS",[ce.RJ]:"SVCAN",[ce.RN]:"SVCAN",[ce.RO]:"SVCAN",[ce.RR]:"SVCAN",[ce.RS]:"SVCAN",[ce.SC]:"SVCAN",[ce.SE]:"SVCAN",[ce.SP]:"SVCAN",[ce.TO]:"SVCAN"};function Eg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Eg,"_ts_decorate");function si(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(si,"_ts_metadata");var ka=class{static{o(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=Dl.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?YB[t]:Tee[t];return Nee[i][n][e.service]}errors(){return Reflect.getMetadata(Ao,this)}validate(e){try{let t=this.errors();return t?ur(new _t(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Ot(e))}finally{Reflect.deleteMetadata(Ao,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return Iee.default.resolve(tb(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,i.version)},method:"nfeStatusServicoNF"})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,i.version)},method:"nfeConsultaNF"})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,i.version)},method:"nfeAutorizacaoLote"})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,i.version)},method:"nfeRetAutorizacaoLote"})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,i.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,i.version)},method:"nfeRecepcaoEvento"})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:ce[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,i.version)},method:"consultaCadastro"})}};Eg([Et(Ed),si("design:type",Function),si("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),si("design:returntype",Promise)],ka.prototype,"consultStatus",null);Eg([Et(Rf),si("design:type",Function),si("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),si("design:returntype",Promise)],ka.prototype,"inutilizacao",null);Eg([Et(bg),si("design:type",Function),si("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),si("design:returntype",Promise)],ka.prototype,"consultaProtocolo",null);Eg([Et(Of),si("design:type",Function),si("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),si("design:returntype",Promise)],ka.prototype,"autorizacao",null);Eg([Et(QS),si("design:type",Function),si("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),si("design:returntype",Promise)],ka.prototype,"retAutorizacao",null);Eg([Et($S),si("design:type",Function),si("design:paramtypes",[Object]),si("design:returntype",Promise)],ka.prototype,"recepcaoEvento",null);Eg([Et(Lu),si("design:type",Function),si("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),si("design:returntype",Promise)],ka.prototype,"consultaCadastro",null);var Va=class extends YS{static{o(this,"TransmissionPipeline")}certificate;transmitter=new ka(this.soap);constructor(e){super(e),this.certificate=e}};function M2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(M2e,"_ts_decorate");function J5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(J5,"_ts_metadata");var dA=class extends Va{static{o(this,"EventPipeline")}async event(e,t,n){let i=await this.certificates.read(this.certificate);if(i.isLeft())return i;let s=t.chNFe.slice(0,2);this.transmitter.configure({cUF:s,...n,certificate:i.value});let a=bee[e],u=this.certificates.getCertificateInfo(i.value.certificate),{nSeqEvento:c,dhEvento:l,chNFe:f}=t,p=["ID",e,f,c.toString().padStart(2,"0")].join(""),d={$:{xmlns:this.xmlns},infEvento:{$:{Id:p},cOrgao:s,tpAmb:n.tpAmb,CNPJ:u.CNPJ,CPF:u.CPF,chNFe:f,dhEvento:l,tpEvento:e,nSeqEvento:c,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},g=this.validated(d);return g.isLeft()?g:await this.signer.sign(g.value,{tag:"infEvento",mark:"Id"},i.value)}validated(e){let t=this.errors();return t?ur(new _t(t.join(", "))):Ot(e)}};M2e([Et(rl),J5("design:type",Function),J5("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),J5("design:returntype",void 0)],dA.prototype,"validated",null);var mA=class extends dA{static{o(this,"NfeCancelPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},i=await this.event(Il.Cancelamento,n,t);return i.isLeft()?i:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i.value})}};var QB=class extends _t{static{o(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};var Dee=(function(r){return r.Autorizada="100",r.AutorizadaForaDoPrazo="150",r.UsoDenegado="110",r.NfeDenegada="205",r.DenegadaIrregularidadeEmissor="301",r.DenegadaIrregularidadeDestinatario="302",r.DenegadaNaoHabilitadaNaUf="303",r})({});var gA=class extends Va{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.handleNfeBatch(n.value,e.xml);if(i.isLeft())return i;let[s]=i.value;this.transmitter.configure({cUF:s.infNFe.ide.cUF,tpAmb:s.infNFe.ide.tpAmb,...t,contingency:this.contingency(s),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let a=await this.transmitter.autorizacao({...e,NFe:i.value});if(a.isLeft())return a;let u=a.value;return this.isSyncResponse(u)?Ot(await this.response(i.value,u)):await this.handleAsyncResponse(i.value,u)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(Dee).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let i={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],i=await Promise.all(e.map((s,a)=>this.protocol(s,n[a])));return i.length>1?{xml:i,response:t}:{xml:i[0],response:t}}async signNfe(e,t){return this.signer.sign(t,{tag:"infNFe",mark:"Id"},e)}async handleNfeBatch(e,t){if(!Array.isArray(t)){let i=await this.toolkit.parse(t),s=await this.signNfe(e,i);return s.isLeft()?ur(s.value):Ot([s.value])}let n=await Promise.all(t.map(async i=>this.signNfe(e,await this.toolkit.parse(i))));return n.some(i=>i.isLeft())?ur(new _t("Failed to sign a NFe in batch")):Ot(n.filter(i=>i.isRight()).map(i=>i.value))}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:{nRec:i}}=t.retEnviNFe,s=1;for(;s<=3;)try{await new Promise(c=>setTimeout(c,1e3));let a=await this.transmitter.retAutorizacao({nRec:i,tpAmb:n});if(a.isLeft())continue;let u=a.value.retConsReciNFe.protNFe;if(!u||Array.isArray(u)&&u.length===0)continue;return Ot(await this.response(e,{retEnviNFe:{...a.value.retConsReciNFe,protNFe:u}}))}finally{s++}return ur(new QB)}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.infNFe.ide;if(!(!t||!n||i===Ts.Normal))return{dhCont:t,xJust:n}}};function U2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(U2e,"_ts_decorate");function Y5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Y5,"_ts_metadata");var ex=class extends Va{static{o(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=this.certificates.getCertificateInfo(n.value.certificate);this.transmitter.configure({...t,certificate:n.value});let s=e.ano??new Date().getFullYear().toString().slice(2),a=["ID",t.cUF,s,i.CNPJ?.padStart(14,"0")??"",e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),u={$:{xmlns:this.xmlns},infInut:{$:{Id:a},tpAmb:e.tpAmb??t.tpAmb,cUF:t.cUF,ano:s,CNPJ:i.CNPJ,CPF:i.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},c=this.validated(u);if(c.isLeft())return c;let l=await this.signer.sign(c.value,{tag:"infInut",mark:"Id"},n.value);return l.isLeft()?l:await this.transmitter.inutilizacao(l.value)}validated(e){let t=this.errors();return t?ur(new _t(t.join(", "))):Ot(e)}};U2e([Et(Rf),Y5("design:type",Function),Y5("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Y5("design:returntype",void 0)],ex.prototype,"validated",null);var vA=class extends Va{static{o(this,"NfeConsultStatusPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({...e,certificate:t.value}),await this.transmitter.consultStatus(e))}};var yA=class extends Va{static{o(this,"NfeConsultProtocoloPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({tpAmb:e.tpAmb,cUF:e.chNFe.substring(0,2),certificate:t.value}),await this.transmitter.consultaProtocolo(e))}};var Q5=class extends Va{static{o(this,"NfeAuthorizationResponsePipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({cUF:e.cUF,tpAmb:e.tpAmb,certificate:t.value}),this.transmitter.retAutorizacao(e))}};var Ree=zt(require("crypto"),1);var ra=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:Ot(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):cm(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ts.OFFLINE)return`${u}|${c}|${s}|${a}`;let f=e.Signature.SignedInfo.Reference.DigestValue.split("").map(g=>g.charCodeAt(0).toString(16).padStart(2,"0")).join(""),p=new Date(e.infNFe.ide.dhEmi).getDate(),d=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${p}|${d}|${f}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=Ree.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(Ot(`${u}${s}|${a}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:i}=e,s=t?t.replace(/\D/g,""):n?n.replace(/\D/g,""):i?.replace(/\D/g,"");return s?s.length===11?{tipo:"1",documento:s}:s.length===14?{tipo:"2",documento:s}:i&&s.length>=3&&s.length<=14?{tipo:"3",documento:s}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ts.OFFLINE)return Ot(`${i}${a}|${u}|${s}`);let c=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:f,documento:p}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),d=`${a}|${u}|${s}|${c}|${l}|${f}|${p}`,g=await this.certificateRepository.sign(d,t.certificate,Ec.SHA1);return g.isLeft()?g:Ot(`${i}${d}|${g.value}`)}};var $5={AC:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}}},AP:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}}},MA:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}}},MT:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.mt.gov.br/nfce/consultanfce"}}},MS:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}}},PA:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}}},RJ:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}}},SC:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"1.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.nfce.fazenda.sp.gov.br/qrcode"}}},TO:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}}},SVAN:{[Be.Homolog]:{},[Be.Production]:{}}};var Oee={[Be.Homolog]:{[ce.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[ce.AL]:"www.sefaz.al.gov.br/nfce/consulta",[ce.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[ce.AM]:"www.sefaz.am.gov.br/nfce/consulta",[ce.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[ce.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[ce.DF]:"www.fazenda.df.gov.br/nfce/consulta",[ce.ES]:"www.sefaz.es.gov.br/nfce/consulta",[ce.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[ce.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[ce.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[ce.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[ce.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[ce.PA]:"www.sefa.pa.gov.br/nfce/consulta",[ce.PB]:"www.sefaz.pb.gov.br/nfcehom",[ce.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[ce.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[ce.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[ce.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[ce.RN]:"www.set.rn.gov.br/nfce/consulta",[ce.RO]:"www.sefin.ro.gov.br/nfce/consulta",[ce.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[ce.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[ce.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[ce.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[ce.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[ce.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Be.Production]:{[ce.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[ce.AL]:"www.sefaz.al.gov.br/nfce/consulta",[ce.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[ce.AM]:"www.sefaz.am.gov.br/nfce/consulta",[ce.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[ce.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[ce.DF]:"www.fazenda.df.gov.br/nfce/consulta",[ce.ES]:"www.sefaz.es.gov.br/nfce/consulta",[ce.GO]:"www.sefaz.go.gov.br/nfce/consulta",[ce.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[ce.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[ce.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[ce.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[ce.PA]:"www.sefa.pa.gov.br/nfce/consulta",[ce.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[ce.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[ce.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[ce.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[ce.RN]:"www.set.rn.gov.br/nfce/consulta",[ce.RO]:"www.sefin.ro.gov.br/nfce/consulta",[ce.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[ce.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[ce.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[ce.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[ce.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[ce.TO]:"www.sefaz.to.gov.br/nfce/consulta",[ce.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var q2e={[ce.AC]:"SVRS",[ce.AL]:"SVRS",[ce.AM]:"AM",[ce.AP]:"SVRS",[ce.BA]:"SVRS",[ce.CE]:"SVRS",[ce.DF]:"SVRS",[ce.ES]:"SVRS",[ce.GO]:"GO",[ce.MA]:"SVRS",[ce.MG]:"MG",[ce.MS]:"MS",[ce.MT]:"MT",[ce.PA]:"SVRS",[ce.PB]:"SVRS",[ce.PE]:"SVRS",[ce.PI]:"SVRS",[ce.PR]:"PR",[ce.RJ]:"SVRS",[ce.RN]:"SVRS",[ce.RO]:"SVRS",[ce.RR]:"SVRS",[ce.RS]:"RS",[ce.SC]:"SVRS",[ce.SE]:"SVRS",[ce.SP]:"SP",[ce.TO]:"SVRS",SVRS:"SVRS"},Bee=q2e;var oo=require("class-validator");function SA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(SA,"_ts_decorate");function $B(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($B,"_ts_metadata");var Bf=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};SA([(0,oo.IsEnum)(Be),(0,oo.IsOptional)(),$B("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Bf.prototype,"tpAmb",void 0);SA([(0,oo.IsEnum)(ce),(0,oo.IsOptional)(),$B("design:type",typeof StateCode>"u"?Object:StateCode)],Bf.prototype,"cUF",void 0);SA([(0,oo.IsString)(),(0,oo.IsOptional)(),$B("design:type",String)],Bf.prototype,"idLote",void 0);SA([(0,oo.IsOptional)(),(0,oo.IsEnum)(["0","1"])],Bf.prototype,"indSinc",void 0);SA([(0,oo.IsNotEmpty)(),$B("design:type",typeof T>"u"?Object:T)],Bf.prototype,"NFe",void 0);function H2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(H2e,"_ts_decorate");function Z5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z5,"_ts_metadata");var Ls=class extends ka{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=Bee[t],u=$5[i][n][e.service];if(u)return u;let c=Object.keys(ce).find(l=>ce[l]===t);return $5[c][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return Oee[n][t]}async autorizacao(e){return super.autorizacao(e)}};H2e([Et(Bf),Z5("design:type",Function),Z5("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Z5("design:returntype",Promise)],Ls.prototype,"autorizacao",null);var eV=class extends mA{static{o(this,"NfceCancelPipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var tV=class extends gA{static{o(this,"NfceAuthorizerPipeline")}certificate;qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};var rV=class extends ex{static{o(this,"NfceVoidRangePipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var nV=class extends vA{static{o(this,"NfceConsultStatusPipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var iV=class extends yA{static{o(this,"NfceConsultProtocoloPipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var nte=zt(require("path"),1);var ca=require("class-validator");var gt=require("class-validator"),ci=require("class-transformer");var nt=require("class-validator"),xA=require("class-transformer");function At(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(At,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Pf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"cUF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"AAMM",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"CNPJ",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"serie",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"nNF",void 0);var uo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"cUF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"AAMM",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"CNPJ",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"CPF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"IE",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"serie",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"nNF",void 0);uo=At([Lr({properties:["CNPJ","CPF"],required:!0})],uo);var tx=class{static{o(this,"RefECF")}mod;nECF;nCOO};At([(0,nt.IsString)(),Nt("design:type",String)],tx.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],tx.prototype,"nECF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],tx.prototype,"nCOO",void 0);var _f=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],_f.prototype,"refNFe",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],_f.prototype,"refNFeSig",void 0);At([(0,nt.IsOptional)(),(0,nt.ValidateNested)(),(0,xA.Type)(()=>Pf),Nt("design:type",typeof IRefNF>"u"?Object:IRefNF)],_f.prototype,"refNF",void 0);At([(0,nt.IsOptional)(),(0,nt.ValidateNested)(),(0,xA.Type)(()=>uo),Nt("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],_f.prototype,"refNFP",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],_f.prototype,"refCTe",void 0);At([(0,nt.IsOptional)(),(0,nt.ValidateNested)(),(0,xA.Type)(()=>tx),Nt("design:type",typeof IRefECF>"u"?Object:IRefECF)],_f.prototype,"refECF",void 0);var Br=class{static{o(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;tpNF;idDest;cMunFG;tpImp;tpEmis;cDV="";tpAmb;finNFe;indFinal;indPres;indIntermed;procEmi;verProc;dhCont;xJust;NFref};At([(0,nt.IsEnum)(ce),Nt("design:type",typeof StateCode>"u"?Object:StateCode)],Br.prototype,"cUF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"cNF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"natOp",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"serie",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"nNF",void 0);At([Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Nt("design:type",String)],Br.prototype,"dhEmi",void 0);At([(0,nt.IsOptional)(),Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Nt("design:type",String)],Br.prototype,"dhSaiEnt",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"tpNF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"idDest",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"cMunFG",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"tpImp",void 0);At([(0,nt.IsString)(),Nt("design:type",typeof TpEmis>"u"?Object:TpEmis)],Br.prototype,"tpEmis",void 0);At([(0,nt.IsString)(),(0,nt.IsOptional)(),Nt("design:type",String)],Br.prototype,"cDV",void 0);At([(0,nt.IsString)(),Nt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Br.prototype,"tpAmb",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"finNFe",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"indFinal",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"indPres",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"indIntermed",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"procEmi",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"verProc",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Nt("design:type",String)],Br.prototype,"dhCont",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"xJust",void 0);At([(0,nt.IsOptional)(),(0,nt.IsArray)(),(0,nt.ArrayMaxSize)(999),(0,nt.ValidateNested)({each:!0}),(0,xA.Type)(()=>_f),Nt("design:type",Array)],Br.prototype,"NFref",void 0);var Ii=require("class-validator");var Pee=require("class-transformer");var Ss=require("class-validator");function ku(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ku,"_ts_decorate");function Vu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Vu,"_ts_metadata");var ys=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xLgr",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"nro",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xCpl",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xBairro",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"cMun",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xMun",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"UF",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"CEP",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"cPais",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xPais",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"fone",void 0);function ju(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ju,"_ts_decorate");function nl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nl,"_ts_metadata");var Yi=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CNPJ",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CPF",void 0);ju([(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"xNome",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"xFant",void 0);ju([(0,Ii.ValidateNested)(),(0,Pee.Type)(()=>ys),nl("design:type",typeof ys>"u"?Object:ys)],Yi.prototype,"enderEmit",void 0);ju([(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"IE",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"IEST",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"IM",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CNAE",void 0);ju([(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CRT",void 0);Yi=ju([Lr({properties:["CNPJ","CPF"],required:!0})],Yi);var $n=require("class-validator"),_ee=require("class-transformer");var Cn=require("class-validator");function Mu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mu,"_ts_decorate");function Uu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Uu,"_ts_metadata");var na=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xLgr",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"nro",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xCpl",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xBairro",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"cMun",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xMun",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"UF",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"CEP",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"cPais",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xPais",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"fone",void 0);function qu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qu,"_ts_decorate");function il(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(il,"_ts_metadata");var Qi=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"CNPJ",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"CPF",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"idEstrangeiro",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"xNome",void 0);qu([(0,$n.IsOptional)(),(0,$n.ValidateNested)(),(0,_ee.Type)(()=>na),il("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],Qi.prototype,"enderDest",void 0);qu([(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"indIEDest",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"IE",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"ISUF",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"IM",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"email",void 0);Qi=qu([Lr({properties:["CNPJ","CPF"],required:!0})],Qi);var Gr=require("class-validator");function xs(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xs,"_ts_decorate");function ks(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ks,"_ts_metadata");var cn=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"CNPJ",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"CPF",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xNome",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xLgr",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"nro",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xCpl",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xBairro",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"cMun",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xMun",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"UF",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"CEP",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"cPais",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xPais",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"fone",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"email",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"IE",void 0);cn=xs([Lr({properties:["CNPJ","CPF"]})],cn);var rx=require("class-validator");function sV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(sV,"_ts_decorate");function Fee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Fee,"_ts_metadata");var sl=class{static{o(this,"AutXML")}CNPJ;CPF};sV([(0,rx.IsOptional)(),(0,rx.IsString)(),Fee("design:type",String)],sl.prototype,"CNPJ",void 0);sV([(0,rx.IsOptional)(),(0,rx.IsString)(),Fee("design:type",String)],sl.prototype,"CPF",void 0);sl=sV([Lr({properties:["CNPJ","CPF"]})],sl);var bA=require("class-validator");function Lee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Lee,"_ts_decorate");function kee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kee,"_ts_metadata");var wd=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};Lee([(0,bA.IsString)(),kee("design:type",String)],wd.prototype,"CNPJ",void 0);Lee([(0,bA.IsOptional)(),(0,bA.IsString)(),kee("design:type",String)],wd.prototype,"idCadIntTran",void 0);var wg=require("class-validator");function aV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(aV,"_ts_decorate");function oV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(oV,"_ts_metadata");var Ff=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};aV([(0,wg.IsString)(),oV("design:type",String)],Ff.prototype,"UFSaidaPais",void 0);aV([(0,wg.IsOptional)(),(0,wg.IsString)(),oV("design:type",String)],Ff.prototype,"xLocExporta",void 0);aV([(0,wg.IsOptional)(),(0,wg.IsString)(),oV("design:type",String)],Ff.prototype,"xLocDespacho",void 0);var Cd=require("class-validator");function uV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uV,"_ts_decorate");function cV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cV,"_ts_metadata");var Lf=class{static{o(this,"Compra")}xNEmp;xPed;xCont};uV([(0,Cd.IsOptional)(),(0,Cd.IsString)(),cV("design:type",String)],Lf.prototype,"xNEmp",void 0);uV([(0,Cd.IsOptional)(),(0,Cd.IsString)(),cV("design:type",String)],Lf.prototype,"xPed",void 0);uV([(0,Cd.IsOptional)(),(0,Cd.IsString)(),cV("design:type",String)],Lf.prototype,"xCont",void 0);var al=require("class-validator");function nx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(nx,"_ts_decorate");function ix(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ix,"_ts_metadata");var Qo=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"CNPJ",void 0);nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"xContato",void 0);nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"email",void 0);nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"fone",void 0);nx([(0,al.IsOptional)(),(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"idCSRT",void 0);nx([(0,al.IsOptional)(),(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"hashCSRT",void 0);var ul=require("class-validator"),IA=require("class-transformer");var Hu=require("class-validator");function Mr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mr,"_ts_decorate");function Ur(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ur,"_ts_metadata");var Er=class{static{o(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vBC",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMS",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSDeson",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCPUFDest",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSUFDest",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSUFRemet",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCP",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vBCST",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vST",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCPST",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCPSTRet",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"qBCMono",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSMono",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"qBCMonoReten",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSMonoReten",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"qBCMonoRet",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSMonoRet",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vProd",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFrete",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vSeg",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vDesc",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vII",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vIPI",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vIPIDevol",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vPIS",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vCOFINS",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vOutro",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vNF",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vTotTrib",void 0);var yn=require("class-validator");function $o(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($o,"_ts_decorate");function Zo(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zo,"_ts_metadata");var Vs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vServ",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vBC",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vISS",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vPIS",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vCOFINS",void 0);$o([(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"dCompet",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vDeducao",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vOutro",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vDescIncond",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vDescCond",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vISSRet",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"cRegTrib",void 0);var Ad=require("class-validator");function Cg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cg,"_ts_decorate");function Ag(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ag,"_ts_metadata");var zu=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetPIS",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetCOFINS",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetCSLL",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vBCIRRF",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vIRRF",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vBCRetPrev",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetPrev",void 0);var Mf=require("class-validator");var Vf=require("class-validator");function lV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lV,"_ts_decorate");function fV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fV,"_ts_metadata");var Ng=class{static{o(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};lV([$({fixed:2}),fV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"vDif",void 0);lV([$({fixed:2}),fV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"vDevTrib",void 0);lV([$({fixed:2}),fV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"vIBSMun",void 0);var dV=require("class-transformer");function pV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pV,"_ts_decorate");function hV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hV,"_ts_metadata");var Tg=class{static{o(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};pV([$({fixed:2}),hV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vDif",void 0);pV([$({fixed:2}),hV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vDevTrib",void 0);pV([$({fixed:2}),hV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vIBSUF",void 0);function EA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(EA,"_ts_decorate");function wA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wA,"_ts_metadata");var kf=class{static{o(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};EA([(0,Vf.IsOptional)(),(0,Vf.ValidateNested)(),(0,dV.Type)(()=>Tg),wA("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],kf.prototype,"gIBSUF",void 0);EA([(0,Vf.IsOptional)(),(0,Vf.ValidateNested)(),(0,dV.Type)(()=>Ng),wA("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],kf.prototype,"gIBSMun",void 0);EA([(0,Vf.IsOptional)(),$({fixed:2}),wA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kf.prototype,"vIBS",void 0);EA([(0,Vf.IsOptional)(),$({fixed:2}),wA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kf.prototype,"vCredPres",void 0);EA([(0,Vf.IsOptional)(),$({fixed:2}),wA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kf.prototype,"vCredPresCondSus",void 0);var tP=require("class-transformer");var sx=require("class-validator");function CA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(CA,"_ts_decorate");function AA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(AA,"_ts_metadata");var jf=class{static{o(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vDif",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vDevTrib",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vCBS",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vCredPres",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vCredPresCondSus",void 0);var Ig=require("class-validator");function ax(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ax,"_ts_decorate");function ox(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ox,"_ts_metadata");var ol=class{static{o(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vIBSMono",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vCBSMono",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vIBSMonoReten",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vCBSMonoReten",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vIBSMonoRet",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vCBSMonoRet",void 0);function ZB(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ZB,"_ts_decorate");function eP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(eP,"_ts_metadata");var Nd=class{static{o(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono};ZB([(0,Mf.IsOptional)(),$({fixed:2}),eP("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nd.prototype,"vBCIBSCBS",void 0);ZB([(0,Mf.IsOptional)(),(0,Mf.ValidateNested)(),(0,tP.Type)(()=>kf),eP("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],Nd.prototype,"gIBS",void 0);ZB([(0,Mf.IsOptional)(),(0,Mf.ValidateNested)(),(0,tP.Type)(()=>jf),eP("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],Nd.prototype,"gCBS",void 0);ZB([(0,Mf.IsOptional)(),(0,Mf.ValidateNested)(),(0,tP.Type)(()=>ol),eP("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],Nd.prototype,"gMono",void 0);function NA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NA,"_ts_decorate");function TA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(TA,"_ts_metadata");var Ku=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib;IBSCBSTot;vNFTot};NA([(0,ul.ValidateNested)(),(0,IA.Type)(()=>Er),TA("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Ku.prototype,"ICMSTot",void 0);NA([(0,ul.IsOptional)(),(0,ul.ValidateNested)(),(0,IA.Type)(()=>Vs),TA("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Ku.prototype,"ISSQNtot",void 0);NA([(0,ul.IsOptional)(),(0,ul.ValidateNested)(),(0,IA.Type)(()=>zu),TA("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Ku.prototype,"retTrib",void 0);NA([(0,ul.IsOptional)(),(0,ul.ValidateNested)(),(0,IA.Type)(()=>Nd),TA("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],Ku.prototype,"IBSCBSTot",void 0);NA([(0,ul.IsOptional)(),$({fixed:2}),TA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ku.prototype,"vNFTot",void 0);var ai=require("class-validator"),dx=require("class-transformer");var Ms=require("class-validator");function Td(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Td,"_ts_decorate");function Dg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Dg,"_ts_metadata");var js=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"CNPJ",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"CPF",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"xNome",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"IE",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"xEnder",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"xMun",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"UF",void 0);js=Td([Lr({properties:["CNPJ","CPF"]})],js);var cl=require("class-validator");function ux(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ux,"_ts_decorate");function cx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cx,"_ts_metadata");var co=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};ux([(0,cl.IsOptional)(),$({fixed:2}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vServ",void 0);ux([(0,cl.IsOptional)(),$({fixed:2}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vBCRet",void 0);ux([(0,cl.IsOptional)(),$({fixed:4}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pICMSRet",void 0);ux([(0,cl.IsOptional)(),$({fixed:2}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vICMSRet",void 0);ux([(0,cl.IsOptional)(),(0,cl.IsString)(),cx("design:type",String)],co.prototype,"CFOP",void 0);ux([(0,cl.IsOptional)(),(0,cl.IsString)(),cx("design:type",String)],co.prototype,"cMunFG",void 0);var ja=require("class-validator");function lx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lx,"_ts_decorate");function fx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fx,"_ts_metadata");var ll=class{static{o(this,"VeicTransp")}placa;UF;RNTC};lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],ll.prototype,"placa",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],ll.prototype,"UF",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],ll.prototype,"RNTC",void 0);var Rg=class{static{o(this,"Reboque")}placa;UF;RNTC};lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],Rg.prototype,"placa",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],Rg.prototype,"UF",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],Rg.prototype,"RNTC",void 0);var eu=require("class-validator");function px(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(px,"_ts_decorate");function hx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hx,"_ts_metadata");var fl=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"qVol",void 0);px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"esp",void 0);px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"marca",void 0);px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"nVol",void 0);px([(0,eu.IsOptional)(),$({fixed:3}),hx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fl.prototype,"pesoL",void 0);px([(0,eu.IsOptional)(),$({fixed:3}),hx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fl.prototype,"pesoB",void 0);function Uf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Uf,"_ts_decorate");function Id(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Id,"_ts_metadata");var Us=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Uf([(0,ai.IsString)(),Id("design:type",String)],Us.prototype,"modFrete",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)(),(0,dx.Type)(()=>js),Id("design:type",typeof js>"u"?Object:js)],Us.prototype,"transporta",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)(),(0,dx.Type)(()=>co),Id("design:type",typeof co>"u"?Object:co)],Us.prototype,"retTransp",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)(),(0,dx.Type)(()=>ll),Id("design:type",typeof ll>"u"?Object:ll)],Us.prototype,"veicTransp",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)({each:!0}),(0,dx.Type)(()=>Rg),(0,ai.ArrayMaxSize)(5),Id("design:type",Array)],Us.prototype,"reboque",void 0);Uf([(0,ai.IsOptional)(),(0,ai.IsString)(),Id("design:type",String)],Us.prototype,"vagao",void 0);Uf([(0,ai.IsOptional)(),(0,ai.IsString)(),Id("design:type",String)],Us.prototype,"balsa",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)({each:!0}),(0,dx.Type)(()=>fl),(0,ai.ArrayMaxSize)(5e3),Id("design:type",Array)],Us.prototype,"vol",void 0);Us=Uf([Lr({properties:["veicTransp","reboque"]}),Lr({properties:["vagao","balsa"]})],Us);var Di=require("class-validator"),mV=require("class-transformer");function Hf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hf,"_ts_decorate");function zf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zf,"_ts_metadata");var qf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Hf([(0,Di.IsOptional)(),(0,Di.IsString)(),zf("design:type",String)],qf.prototype,"nFat",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qf.prototype,"vOrig",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qf.prototype,"vDesc",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qf.prototype,"vLiq",void 0);var mx=class{static{o(this,"Dup")}nDup;dVenc;vDup};Hf([(0,Di.IsOptional)(),(0,Di.IsString)(),zf("design:type",String)],mx.prototype,"nDup",void 0);Hf([(0,Di.IsOptional)(),(0,Di.IsString)(),zf("design:type",String)],mx.prototype,"dVenc",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mx.prototype,"vDup",void 0);var Dd=class{static{o(this,"Cobr")}fat;dup};Hf([(0,Di.IsOptional)(),(0,Di.ValidateNested)(),(0,mV.Type)(()=>qf),zf("design:type",typeof qf>"u"?Object:qf)],Dd.prototype,"fat",void 0);Hf([(0,Di.IsOptional)(),(0,Di.ValidateNested)({each:!0}),(0,Di.ArrayMaxSize)(120),(0,mV.Type)(()=>mx),zf("design:type",Array)],Dd.prototype,"dup",void 0);var Od=require("class-validator"),Uee=require("class-transformer");var pl=require("class-validator"),Vee=require("class-transformer");var Ma=require("class-validator");function gx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gx,"_ts_decorate");function vx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vx,"_ts_metadata");var lo=class{static{o(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"tpIntegra",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"CNPJ",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"tBand",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"cAut",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"CNPJReceb",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"idTermPag",void 0);function DA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DA,"_ts_decorate");function RA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(RA,"_ts_metadata");var Kf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};DA([(0,pl.IsOptional)(),(0,pl.IsString)(),RA("design:type",String)],Kf.prototype,"indPag",void 0);DA([(0,pl.IsString)(),RA("design:type",typeof TPag>"u"?Object:TPag)],Kf.prototype,"tPag",void 0);DA([$({fixed:2}),RA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vPag",void 0);DA([(0,pl.IsOptional)(),(0,pl.ValidateNested)(),(0,Vee.Type)(()=>lo),RA("design:type",typeof lo>"u"?Object:lo)],Kf.prototype,"card",void 0);DA([(0,pl.IsOptional)(),(0,pl.IsString)(),RA("design:type",String)],Kf.prototype,"xPag",void 0);function jee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jee,"_ts_decorate");function Mee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Mee,"_ts_metadata");var Rd=class{static{o(this,"Pag")}detPag;vTroco};jee([(0,Od.ValidateNested)({each:!0}),(0,Od.ArrayMinSize)(1),(0,Od.ArrayMaxSize)(100),(0,Uee.Type)(()=>Kf),Mee("design:type",Array)],Rd.prototype,"detPag",void 0);jee([(0,Od.IsOptional)(),$({fixed:2}),Mee("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rd.prototype,"vTroco",void 0);var Un=require("class-validator"),rP=require("class-transformer");function Gf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Gf,"_ts_decorate");function Xf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Xf,"_ts_metadata");var yx=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Gf([(0,Un.IsString)(),Xf("design:type",String)],yx.prototype,"xCampo",void 0);Gf([(0,Un.IsString)(),Xf("design:type",String)],yx.prototype,"xTexto",void 0);var OA=class{static{o(this,"ProcRef")}nProc;indProc};Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],OA.prototype,"nProc",void 0);Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],OA.prototype,"indProc",void 0);var Gu=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],Gu.prototype,"infAdFisco",void 0);Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],Gu.prototype,"infCpl",void 0);Gf([(0,Un.IsOptional)(),(0,Un.ValidateNested)({each:!0}),(0,rP.Type)(()=>yx),(0,Un.ArrayMaxSize)(10),Xf("design:type",Array)],Gu.prototype,"obsCont",void 0);Gf([(0,Un.IsOptional)(),(0,Un.ValidateNested)({each:!0}),(0,rP.Type)(()=>yx),(0,Un.ArrayMaxSize)(10),Xf("design:type",Array)],Gu.prototype,"obsFisco",void 0);Gf([(0,Un.IsOptional)(),(0,Un.ValidateNested)({each:!0}),(0,rP.Type)(()=>OA),(0,Un.ArrayMaxSize)(100),Xf("design:type",Array)],Gu.prototype,"procRef",void 0);var $r=require("class-validator"),iP=require("class-transformer");function ia(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ia,"_ts_decorate");function sa(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(sa,"_ts_metadata");var nP=class{static{o(this,"ForDiaAttributes")}dia};ia([(0,$r.IsString)(),sa("design:type",String)],nP.prototype,"dia",void 0);var BA=class{static{o(this,"ForDia")}$;qtde};ia([(0,$r.IsObject)(),(0,$r.IsNotEmptyObject)(),(0,iP.Type)(()=>nP),sa("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],BA.prototype,"$",void 0);ia([(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],BA.prototype,"qtde",void 0);var PA=class{static{o(this,"Deduc")}xDed;vDed};ia([(0,$r.IsString)(),sa("design:type",String)],PA.prototype,"xDed",void 0);ia([$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],PA.prototype,"vDed",void 0);var qs=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};ia([(0,$r.IsString)(),sa("design:type",String)],qs.prototype,"safra",void 0);ia([(0,$r.IsString)(),sa("design:type",String)],qs.prototype,"ref",void 0);ia([(0,$r.ValidateNested)({each:!0}),(0,$r.ArrayMaxSize)(31),(0,iP.Type)(()=>BA),sa("design:type",Array)],qs.prototype,"forDia",void 0);ia([(0,$r.IsOptional)(),(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"qTotMes",void 0);ia([(0,$r.IsOptional)(),(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"qTotAnt",void 0);ia([(0,$r.IsOptional)(),(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"qTotGer",void 0);ia([(0,$r.IsOptional)(),(0,$r.ValidateNested)({each:!0}),(0,$r.ArrayMaxSize)(10),(0,iP.Type)(()=>PA),sa("design:type",Array)],qs.prototype,"deduc",void 0);ia([(0,$r.IsOptional)(),$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"vFor",void 0);ia([(0,$r.IsOptional)(),$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"vTotDed",void 0);ia([(0,$r.IsOptional)(),$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"vLiqFor",void 0);var ws=require("class-validator"),Fx=require("class-transformer");var Je=require("class-validator");var hl=require("class-transformer");var Xu=require("class-validator");function _A(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_A,"_ts_decorate");function FA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FA,"_ts_metadata");var Wf=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};_A([(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"nLote",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"qLote",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"dFab",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"dVal",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"cAgreg",void 0);var qr=require("class-validator"),qee=require("class-transformer");function Zi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zi,"_ts_decorate");function bs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bs,"_ts_metadata");var Bd=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Zi([(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"nAdicao",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"nSeqAdic",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"cFabricante",void 0);Zi([$({fixed:2}),bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bd.prototype,"vDescDI",void 0);Zi([(0,qr.IsOptional)(),(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"nDraw",void 0);var $i=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"nDI",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"dDI",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"xLocDesemb",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"UFDesemb",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"dDesemb",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"tpViaTransp",void 0);Zi([(0,qr.IsOptional)(),$({fixed:2}),bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$i.prototype,"vAFRMM",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"tpIntermedio",void 0);Zi([(0,qr.IsString)(),(0,qr.IsOptional)(),bs("design:type",String)],$i.prototype,"CNPJ",void 0);Zi([(0,qr.IsString)(),(0,qr.IsOptional)(),bs("design:type",String)],$i.prototype,"CPF",void 0);Zi([(0,qr.IsString)(),(0,qr.IsOptional)(),bs("design:type",String)],$i.prototype,"UFTerceiro",void 0);Zi([(0,qr.IsArray)(),(0,qr.ValidateNested)({each:!0}),(0,qee.Type)(()=>Bd),(0,qr.ArrayMaxSize)(999),(0,qr.ArrayMinSize)(1),bs("design:type",Array)],$i.prototype,"adi",void 0);$i=Zi([Lr({properties:["CNPJ","CPF"],required:!0})],$i);var Hee=require("class-transformer"),Jf=require("class-validator");function LA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(LA,"_ts_decorate");function kA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kA,"_ts_metadata");var Sx=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};LA([(0,Jf.IsString)(),kA("design:type",String)],Sx.prototype,"nRE",void 0);LA([(0,Jf.IsString)(),kA("design:type",String)],Sx.prototype,"chNFe",void 0);LA([$({fixed:4}),kA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sx.prototype,"qExport",void 0);var xx=class{static{o(this,"DetExport")}nDraw;exportInd};LA([(0,Jf.IsOptional)(),(0,Jf.IsString)(),kA("design:type",String)],xx.prototype,"nDraw",void 0);LA([(0,Jf.IsOptional)(),(0,Jf.ValidateNested)(),(0,Hee.Type)(()=>Sx),kA("design:type",typeof IExportInd>"u"?Object:IExportInd)],xx.prototype,"exportInd",void 0);var gV=require("class-validator");function zee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zee,"_ts_decorate");function Kee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Kee,"_ts_metadata");var bx=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};zee([(0,gV.IsString)(),Kee("design:type",String)],bx.prototype,"cProdFisco",void 0);zee([(0,gV.IsString)(),Kee("design:type",String)],bx.prototype,"cOperNFF",void 0);var SV=require("class-validator");function vV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vV,"_ts_decorate");function yV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yV,"_ts_metadata");var Og=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};vV([(0,SV.IsString)(),yV("design:type",String)],Og.prototype,"xEmb",void 0);vV([$({fixed:3}),yV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Og.prototype,"qVolEmb",void 0);vV([(0,SV.IsString)(),yV("design:type",String)],Og.prototype,"uEmb",void 0);var Sn=require("class-validator");function An(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(An,"_ts_decorate");function Nn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nn,"_ts_metadata");var Xr=class{static{o(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpOp",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"chassi",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cCor",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"xCor",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"pot",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cilin",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"pesoL",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"pesoB",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"nSerie",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpComb",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"nMotor",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"CMT",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"dist",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"anoMod",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"anoFab",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpPint",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpVeic",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"espVeic",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"VIN",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"condVeic",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cMod",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cCorDENATRAN",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"lota",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpRest",void 0);var EV=require("class-validator");function xV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xV,"_ts_decorate");function bV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bV,"_ts_metadata");var Bg=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};xV([(0,EV.IsString)(),bV("design:type",String)],Bg.prototype,"cProdANVISA",void 0);xV([(0,EV.IsString)(),bV("design:type",String)],Bg.prototype,"xMotivoIsencao",void 0);xV([$({fixed:2}),bV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bg.prototype,"vPMC",void 0);var VA=require("class-validator");function sP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(sP,"_ts_decorate");function aP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(aP,"_ts_metadata");var Pd=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"tpArma",void 0);sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"nSerie",void 0);sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"nCano",void 0);sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"descr",void 0);var yr=require("class-validator"),oP=require("class-transformer");function Tn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Tn,"_ts_decorate");function In(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(In,"_ts_metadata");var Ex=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};Tn([(0,yr.IsString)(),In("design:type",String)],Ex.prototype,"indImport",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],Ex.prototype,"cUFOrig",void 0);Tn([$({fixed:4}),(0,yr.Max)(100),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ex.prototype,"pOrig",void 0);var wx=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};Tn([$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wx.prototype,"qBCProd",void 0);Tn([$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wx.prototype,"vAliqProd",void 0);Tn([$({fixed:2}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wx.prototype,"vCIDE",void 0);var _d=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};Tn([(0,yr.IsString)(),In("design:type",String)],_d.prototype,"nBico",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],_d.prototype,"nBomba",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],_d.prototype,"nTanque",void 0);Tn([$({fixed:3}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_d.prototype,"vEncIni",void 0);Tn([$({fixed:3}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_d.prototype,"vEncFin",void 0);var Es=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};Tn([(0,yr.IsString)(),In("design:type",String)],Es.prototype,"cProdANP",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],Es.prototype,"descANP",void 0);Tn([(0,yr.IsOptional)(),(0,yr.Max)(100),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pGLP",void 0);Tn([(0,yr.IsOptional)(),(0,yr.Max)(100),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pGNn",void 0);Tn([(0,yr.IsOptional)(),(0,yr.Max)(100),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pGNi",void 0);Tn([(0,yr.IsOptional)(),$({fixed:2}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"vPart",void 0);Tn([(0,yr.IsString)(),(0,yr.IsOptional)(),In("design:type",String)],Es.prototype,"CODIF",void 0);Tn([(0,yr.IsOptional)(),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"qTemp",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],Es.prototype,"UFCons",void 0);Tn([(0,yr.IsObject)(),(0,yr.ValidateNested)(),(0,oP.Type)(()=>wx),In("design:type",typeof ICIDE>"u"?Object:ICIDE)],Es.prototype,"CIDE",void 0);Tn([(0,yr.IsObject)(),(0,yr.ValidateNested)(),(0,oP.Type)(()=>_d),In("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Es.prototype,"encerrante",void 0);Tn([(0,yr.IsOptional)(),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pBio",void 0);Tn([(0,yr.IsObject)(),(0,yr.ValidateNested)({each:!0}),(0,oP.Type)(()=>Ex),(0,yr.ArrayMaxSize)(30),(0,yr.IsOptional)(),In("design:type",Array)],Es.prototype,"origComb",void 0);function Qt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qt,"_ts_decorate");function Zt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zt,"_ts_metadata");var Tt=class{static{o(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cProd",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cEAN",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cBarra",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"xProd",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"NCM",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ArrayMaxSize)(8),(0,Je.IsString)({each:!0}),Zt("design:type",Array)],Tt.prototype,"NVE",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"CEST",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"indEscala",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"CNPJFab",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cBenef",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),Zt("design:type",Object)],Tt.prototype,"gCred",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"EXTIPI",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"CFOP",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"uCom",void 0);Qt([$({fixed:4}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"qCom",void 0);Qt([$({fixed:10}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vUnCom",void 0);Qt([$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vProd",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cEANTrib",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"uTrib",void 0);Qt([$({fixed:4}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"qTrib",void 0);Qt([$({fixed:10}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vUnTrib",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vFrete",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vSeg",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vDesc",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vOutro",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"indTot",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ValidateNested)({each:!0}),(0,Je.ArrayMaxSize)(100),(0,hl.Type)(()=>$i),Zt("design:type",Array)],Tt.prototype,"DI",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ValidateNested)({each:!0}),(0,Je.ArrayMaxSize)(500),(0,hl.Type)(()=>xx),Zt("design:type",Array)],Tt.prototype,"detExport",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"xPed",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"nItemPed",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"nFCI",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ValidateNested)({each:!0}),(0,Je.ArrayMaxSize)(500),(0,hl.Type)(()=>Wf),Zt("design:type",Array)],Tt.prototype,"rastro",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>bx),Zt("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],Tt.prototype,"infProdNFF",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Og),Zt("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],Tt.prototype,"infProdEmb",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Xr),Zt("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],Tt.prototype,"veicProd",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Bg),Zt("design:type",typeof IMed>"u"?Object:IMed)],Tt.prototype,"med",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)({each:!0}),(0,hl.Type)(()=>Pd),(0,Je.ArrayMaxSize)(500),Zt("design:type",Array)],Tt.prototype,"arma",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Es),Zt("design:type",typeof IComb>"u"?Object:IComb)],Tt.prototype,"comb",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"nRECOPI",void 0);Tt=Qt([Lr({properties:["veicProd","med","arma","comb"]})],Tt);var ou=require("class-transformer"),en=require("class-validator");var ae=require("class-validator"),ts=require("class-transformer");function ve(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ve,"_ts_decorate");function Se(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Se,"_ts_metadata");var Yf=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};ve([(0,ae.IsString)(),Se("design:type",String)],Yf.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Yf.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Yf.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"vICMS",void 0);var fo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vICMSST",void 0);var dl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};ve([(0,ae.IsString)(),Se("design:type",String)],dl.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],dl.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],dl.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"vICMS",void 0);var Qf=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],Qf.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Qf.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Qf.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qf.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qf.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qf.prototype,"vICMSST",void 0);var Pg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};ve([(0,ae.IsString)(),Se("design:type",String)],Pg.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Pg.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pg.prototype,"vICMSDeson",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Pg.prototype,"motDesICMS",void 0);var tu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};ve([(0,ae.IsString)(),Se("design:type",String)],tu.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],tu.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],tu.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),(0,ae.Max)(100),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"pDif",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"vICMSDif",void 0);var $f=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};ve([(0,ae.IsString)(),Se("design:type",String)],$f.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],$f.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"vBCSTRet",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"pST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"vICMSSubstituto",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"vICMSSTRet",void 0);var Ua=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vICMSST",void 0);var qa=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vICMSST",void 0);var es=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};ve([(0,ae.IsString)(),Se("design:type",String)],es.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],es.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],es.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],es.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pMVAST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pRedBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pBCOp",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],es.prototype,"UFST",void 0);var Zf=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};ve([(0,ae.IsString)(),Se("design:type",String)],Zf.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Zf.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vBCSTRet",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"pST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vICMSSubstituto",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vICMSSTRet",void 0);var _g=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};ve([(0,ae.IsString)(),Se("design:type",String)],_g.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],_g.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_g.prototype,"pCredSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_g.prototype,"vCredICMSSN",void 0);var jA=class{static{o(this,"ICMSSN102")}orig;CSOSN};ve([(0,ae.IsString)(),Se("design:type",String)],jA.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],jA.prototype,"CSOSN",void 0);var Wu=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};ve([(0,ae.IsString)(),Se("design:type",String)],Wu.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Wu.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Wu.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"vICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"pCredSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"vCredICMSSN",void 0);var ep=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],ep.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],ep.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],ep.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vICMSST",void 0);var tp=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};ve([(0,ae.IsString)(),Se("design:type",String)],tp.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],tp.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vBCSTRet",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"pST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSubstituto",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSTRet",void 0);var Hs=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};ve([(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pCredSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vCredICMSSN",void 0);var xn=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Yf),Se("design:type",typeof IICMS00>"u"?Object:IICMS00)],xn.prototype,"ICMS00",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>fo),Se("design:type",typeof IICMS10>"u"?Object:IICMS10)],xn.prototype,"ICMS10",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>dl),Se("design:type",typeof IICMS20>"u"?Object:IICMS20)],xn.prototype,"ICMS20",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Qf),Se("design:type",typeof IICMS30>"u"?Object:IICMS30)],xn.prototype,"ICMS30",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Pg),Se("design:type",typeof IICMS40>"u"?Object:IICMS40)],xn.prototype,"ICMS40",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>tu),Se("design:type",typeof IICMS51>"u"?Object:IICMS51)],xn.prototype,"ICMS51",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>$f),Se("design:type",typeof IICMS60>"u"?Object:IICMS60)],xn.prototype,"ICMS60",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Ua),Se("design:type",typeof IICMS70>"u"?Object:IICMS70)],xn.prototype,"ICMS70",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>qa),Se("design:type",typeof IICMS90>"u"?Object:IICMS90)],xn.prototype,"ICMS90",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>es),Se("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],xn.prototype,"ICMSPart",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Zf),Se("design:type",typeof IICMSST>"u"?Object:IICMSST)],xn.prototype,"ICMSST",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>_g),Se("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],xn.prototype,"ICMSSN101",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>jA),Se("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],xn.prototype,"ICMSSN102",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Wu),Se("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],xn.prototype,"ICMSSN201",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>ep),Se("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],xn.prototype,"ICMSSN202",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>tp),Se("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],xn.prototype,"ICMSSN500",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Hs),Se("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],xn.prototype,"ICMSSN900",void 0);xn=ve([Lr({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],xn);var ln=require("class-validator"),wV=require("class-transformer");function po(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(po,"_ts_decorate");function ho(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ho,"_ts_metadata");var rp=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};po([(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"CST",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"vBC",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"pIPI",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"qUnid",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"vUnid",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"vIPI",void 0);var uP=class{static{o(this,"IPINT")}CST};po([(0,ln.IsString)(),ho("design:type",String)],uP.prototype,"CST",void 0);var ru=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"CNPJProd",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"cSelo",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"qSelo",void 0);po([(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"cEnq",void 0);po([(0,ln.IsOptional)(),(0,ln.ValidateNested)(),(0,wV.Type)(()=>rp),ho("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],ru.prototype,"IPITrib",void 0);po([(0,ln.IsOptional)(),(0,ln.ValidateNested)(),(0,wV.Type)(()=>uP),ho("design:type",typeof IIPINT>"u"?Object:IIPINT)],ru.prototype,"IPINT",void 0);var gl=require("class-validator");function cP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(cP,"_ts_decorate");function lP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(lP,"_ts_metadata");var ml=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vBC",void 0);cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vDespAdu",void 0);cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vII",void 0);cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vIOF",void 0);var It=require("class-validator"),MA=require("class-transformer");function Dn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dn,"_ts_decorate");function Rn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Rn,"_ts_metadata");var np=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};Dn([(0,It.IsString)(),Rn("design:type",String)],np.prototype,"CST",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),$({fixed:2}),Rn("design:type",String)],np.prototype,"vBC",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],np.prototype,"pPIS",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],np.prototype,"vPIS",void 0);var ip=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};Dn([(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"CST",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"qBCProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"vAliqProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"vPIS",void 0);var Cx=class{static{o(this,"PISNT")}CST};Dn([(0,It.IsString)(),Rn("design:type",String)],Cx.prototype,"CST",void 0);var Ju=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};Dn([(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"CST",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),$({fixed:2}),Rn("design:type",String)],Ju.prototype,"vBC",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"pPIS",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"qBCProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"vAliqProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"vPIS",void 0);var vl=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>np),Rn("design:type",typeof np>"u"?Object:np)],vl.prototype,"PISAliq",void 0);Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>ip),Rn("design:type",typeof ip>"u"?Object:ip)],vl.prototype,"PISQtde",void 0);Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>Cx),Rn("design:type",typeof Cx>"u"?Object:Cx)],vl.prototype,"PISNT",void 0);Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>Ju),Rn("design:type",typeof Ju>"u"?Object:Ju)],vl.prototype,"PISOutr",void 0);var Yu=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};Dn([(0,It.IsOptional)(),(0,It.IsString)(),$({fixed:2}),Rn("design:type",String)],Yu.prototype,"vBC",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"pPIS",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"qBCProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"vAliqProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"vPIS",void 0);var Dt=require("class-validator"),UA=require("class-transformer");function On(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(On,"_ts_decorate");function Bn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Bn,"_ts_metadata");var sp=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};On([(0,Dt.IsString)(),Bn("design:type",String)],sp.prototype,"CST",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),$({fixed:2}),Bn("design:type",String)],sp.prototype,"vBC",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],sp.prototype,"pCOFINS",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],sp.prototype,"vCOFINS",void 0);var ap=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};On([(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"CST",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"qBCProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"vAliqProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"vCOFINS",void 0);var Ax=class{static{o(this,"COFINSNT")}CST};On([(0,Dt.IsString)(),Bn("design:type",String)],Ax.prototype,"CST",void 0);var Qu=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};On([(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"CST",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),$({fixed:2}),Bn("design:type",String)],Qu.prototype,"vBC",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"pCOFINS",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"qBCProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"vAliqProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"vCOFINS",void 0);var yl=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>sp),Bn("design:type",typeof sp>"u"?Object:sp)],yl.prototype,"COFINSAliq",void 0);On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>ap),Bn("design:type",typeof ap>"u"?Object:ap)],yl.prototype,"COFINSQtde",void 0);On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>Ax),Bn("design:type",typeof Ax>"u"?Object:Ax)],yl.prototype,"COFINSNT",void 0);On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>Qu),Bn("design:type",typeof Qu>"u"?Object:Qu)],yl.prototype,"COFINSOutr",void 0);var $u=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),$({fixed:2}),Bn("design:type",String)],$u.prototype,"vBC",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"pCOFINS",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"qBCProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"vAliqProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"vCOFINS",void 0);var Ha=require("class-validator");function Nx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Nx,"_ts_decorate");function Tx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Tx,"_ts_metadata");var nu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"vBC",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"vAliq",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"vISSQN",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"cMunFG",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"cListServ",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"cSitTrib",void 0);var di=require("class-validator");function op(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(op,"_ts_decorate");function up(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(up,"_ts_metadata");var aa=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vBCUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vBCFCPUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pFCPUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pICMSUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pICMSInter",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pICMSInterPart",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vFCPUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vICMSUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vICMSUFRemet",void 0);var qn=require("class-validator");var Ix=require("class-validator");function Gee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Gee,"_ts_decorate");function Xee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Xee,"_ts_metadata");var Fd=class{static{o(this,"TransferenciaCredito")}vIBS;vCBS};Gee([(0,Ix.IsOptional)(),(0,Ix.IsString)(),Xee("design:type",String)],Fd.prototype,"vIBS",void 0);Gee([(0,Ix.IsOptional)(),(0,Ix.IsString)(),Xee("design:type",String)],Fd.prototype,"vCBS",void 0);var fP=require("class-validator");function CV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(CV,"_ts_decorate");function AV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(AV,"_ts_metadata");var cp=class{static{o(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};CV([(0,fP.IsString)(),AV("design:type",String)],cp.prototype,"tpCredPresIBSZFM",void 0);CV([(0,fP.IsString)(),AV("design:type",String)],cp.prototype,"vCredPresIBSZFM",void 0);CV([(0,fP.IsString)(),AV("design:type",String)],cp.prototype,"competApur",void 0);var oa=require("class-validator"),NV=require("class-transformer");function xl(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xl,"_ts_decorate");function bl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bl,"_ts_metadata");var Ld=class{static{o(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};xl([(0,oa.IsString)(),bl("design:type",String)],Ld.prototype,"vCredPresCondSus",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Ld.prototype,"pCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Ld.prototype,"vCredPres",void 0);var kd=class{static{o(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};xl([(0,oa.IsString)(),bl("design:type",String)],kd.prototype,"vCredPresCondSus",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],kd.prototype,"pCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],kd.prototype,"vCredPres",void 0);var Sl=class{static{o(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};xl([(0,oa.IsOptional)(),(0,oa.ValidateNested)(),(0,NV.Type)(()=>Ld),bl("design:type",typeof Ld>"u"?Object:Ld)],Sl.prototype,"gIBSCredPres",void 0);xl([(0,oa.IsOptional)(),(0,oa.ValidateNested)(),(0,NV.Type)(()=>kd),bl("design:type",typeof kd>"u"?Object:kd)],Sl.prototype,"gCBSCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Sl.prototype,"vBCCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Sl.prototype,"cCredPres",void 0);var TV=require("class-validator");function Wee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Wee,"_ts_decorate");function Jee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Jee,"_ts_metadata");var Vd=class{static{o(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};Wee([(0,TV.IsString)(),Jee("design:type",String)],Vd.prototype,"vIBSEstCred",void 0);Wee([(0,TV.IsString)(),Jee("design:type",String)],Vd.prototype,"vCBSEstCred",void 0);var pP=require("class-validator");function IV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(IV,"_ts_decorate");function DV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(DV,"_ts_metadata");var lp=class{static{o(this,"AjusteCompet")}competApur;vCBS;vIBS};IV([(0,pP.IsString)(),DV("design:type",String)],lp.prototype,"competApur",void 0);IV([(0,pP.IsString)(),DV("design:type",String)],lp.prototype,"vCBS",void 0);IV([(0,pP.IsString)(),DV("design:type",String)],lp.prototype,"vIBS",void 0);var ar=require("class-validator");function oi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(oi,"_ts_decorate");function ui(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ui,"_ts_metadata");var Zr=class{static{o(this,"IBSCBSMono")}vTotIBSMonoItem;vTotCBSMonoItem;adRemIBS;adRemCBS;vIBSMono;vCBSMono;qBCMono;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten;qBCMonoReten;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet;qBCMonoRet;vIBSMonoDif;vCBSMonoDif;pDifIBS;pDifCBS};oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vTotIBSMonoItem",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vTotCBSMonoItem",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemIBS",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemCBS",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMono",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMono",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"qBCMono",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemIBSReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMonoReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemCBSReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMonoReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"qBCMonoReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemIBSRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMonoRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemCBSRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMonoRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"qBCMonoRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMonoDif",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMonoDif",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"pDifIBS",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"pDifCBS",void 0);var mo=require("class-validator");var fp=require("class-validator");function jd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jd,"_ts_decorate");function Md(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Md,"_ts_metadata");var za=class{static{o(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"CSTReg",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"cClassTribReg",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"pAliqEfetRegIBSUF",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"vTribRegIBSUF",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"pAliqEfetRegIBSMun",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"vTribRegIBSMun",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"pAliqEfetRegCBS",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"vTribRegCBS",void 0);var WA=require("class-transformer");var ec=require("class-validator"),hP=require("class-transformer");var Yee=require("class-validator");function z2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(z2e,"_ts_decorate");function K2e(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K2e,"_ts_metadata");var ua=class{static{o(this,"DevTrib")}vDevTrib};z2e([(0,Yee.IsString)(),K2e("design:type",String)],ua.prototype,"vDevTrib",void 0);var RV=require("class-validator");function Qee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qee,"_ts_decorate");function $ee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($ee,"_ts_metadata");var zs=class{static{o(this,"Dif")}pDif;vDif};Qee([(0,RV.IsString)(),$ee("design:type",String)],zs.prototype,"pDif",void 0);Qee([(0,RV.IsString)(),$ee("design:type",String)],zs.prototype,"vDif",void 0);var OV=require("class-validator");function Zee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zee,"_ts_decorate");function ete(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ete,"_ts_metadata");var Ks=class{static{o(this,"Red")}pAliqEfet;pRedAliq};Zee([(0,OV.IsString)(),ete("design:type",String)],Ks.prototype,"pAliqEfet",void 0);Zee([(0,OV.IsString)(),ete("design:type",String)],Ks.prototype,"pRedAliq",void 0);function qA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qA,"_ts_decorate");function HA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(HA,"_ts_metadata");var Zu=class{static{o(this,"IBSMun")}pIBSMun;vIBSMun;gDevTrib;gDif;gRed};qA([(0,ec.IsString)(),HA("design:type",String)],Zu.prototype,"pIBSMun",void 0);qA([(0,ec.IsString)(),HA("design:type",String)],Zu.prototype,"vIBSMun",void 0);qA([(0,ec.IsOptional)(),(0,ec.ValidateNested)(),(0,hP.Type)(()=>ua),HA("design:type",typeof ua>"u"?Object:ua)],Zu.prototype,"gDevTrib",void 0);qA([(0,ec.IsOptional)(),(0,ec.ValidateNested)(),(0,hP.Type)(()=>zs),HA("design:type",typeof zs>"u"?Object:zs)],Zu.prototype,"gDif",void 0);qA([(0,ec.IsOptional)(),(0,ec.ValidateNested)(),(0,hP.Type)(()=>Ks),HA("design:type",typeof Ks>"u"?Object:Ks)],Zu.prototype,"gRed",void 0);var rc=require("class-validator"),dP=require("class-transformer");function zA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zA,"_ts_decorate");function KA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KA,"_ts_metadata");var tc=class{static{o(this,"IBSUF")}pIBSUF;vIBSUF;gDevTrib;gDif;gRed};zA([(0,rc.IsString)(),KA("design:type",String)],tc.prototype,"pIBSUF",void 0);zA([(0,rc.IsString)(),KA("design:type",String)],tc.prototype,"vIBSUF",void 0);zA([(0,rc.IsOptional)(),(0,rc.ValidateNested)(),(0,dP.Type)(()=>ua),KA("design:type",typeof ua>"u"?Object:ua)],tc.prototype,"gDevTrib",void 0);zA([(0,rc.IsOptional)(),(0,rc.ValidateNested)(),(0,dP.Type)(()=>zs),KA("design:type",typeof zs>"u"?Object:zs)],tc.prototype,"gDif",void 0);zA([(0,rc.IsOptional)(),(0,rc.ValidateNested)(),(0,dP.Type)(()=>Ks),KA("design:type",typeof Ks>"u"?Object:Ks)],tc.prototype,"gRed",void 0);var ic=require("class-validator"),mP=require("class-transformer");function GA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(GA,"_ts_decorate");function XA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(XA,"_ts_metadata");var nc=class{static{o(this,"CBS")}pCBS;vCBS;gDevTrib;gDif;gRed};GA([(0,ic.IsString)(),XA("design:type",String)],nc.prototype,"pCBS",void 0);GA([(0,ic.IsString)(),XA("design:type",String)],nc.prototype,"vCBS",void 0);GA([(0,ic.IsOptional)(),(0,ic.ValidateNested)(),(0,mP.Type)(()=>ua),XA("design:type",typeof ua>"u"?Object:ua)],nc.prototype,"gDevTrib",void 0);GA([(0,ic.IsOptional)(),(0,ic.ValidateNested)(),(0,mP.Type)(()=>zs),XA("design:type",typeof zs>"u"?Object:zs)],nc.prototype,"gDif",void 0);GA([(0,ic.IsOptional)(),(0,ic.ValidateNested)(),(0,mP.Type)(()=>Ks),XA("design:type",typeof Ks>"u"?Object:Ks)],nc.prototype,"gRed",void 0);function Dx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dx,"_ts_decorate");function Rx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Rx,"_ts_metadata");var iu=class{static{o(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular};Dx([(0,mo.IsString)(),Rx("design:type",String)],iu.prototype,"vBC",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>tc),Rx("design:type",typeof tc>"u"?Object:tc)],iu.prototype,"gIBSUF",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>Zu),Rx("design:type",typeof Zu>"u"?Object:Zu)],iu.prototype,"gIBSMun",void 0);Dx([(0,mo.IsString)(),Rx("design:type",String)],iu.prototype,"vIBS",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>nc),Rx("design:type",typeof nc>"u"?Object:nc)],iu.prototype,"gCBS",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>za),Rx("design:type",typeof za>"u"?Object:za)],iu.prototype,"gTribRegular",void 0);var Ud=require("class-transformer");function El(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(El,"_ts_decorate");function wl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wl,"_ts_metadata");var Ri=class{static{o(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};El([(0,qn.IsOptional)(),(0,qn.IsString)(),wl("design:type",String)],Ri.prototype,"CST",void 0);El([(0,qn.IsOptional)(),(0,qn.IsString)(),wl("design:type",String)],Ri.prototype,"cClassTrib",void 0);El([(0,qn.IsOptional)(),(0,qn.IsString)(),wl("design:type",String)],Ri.prototype,"indDoacao",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Fd),wl("design:type",typeof Fd>"u"?Object:Fd)],Ri.prototype,"gTransfCred",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>cp),wl("design:type",typeof cp>"u"?Object:cp)],Ri.prototype,"gCredPresIBSZFM",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Sl),wl("design:type",typeof Sl>"u"?Object:Sl)],Ri.prototype,"gCredPresOper",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>lp),wl("design:type",typeof lp>"u"?Object:lp)],Ri.prototype,"gAjusteCompet",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Vd),wl("design:type",typeof Vd>"u"?Object:Vd)],Ri.prototype,"gEstornoCred",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Zr),wl("design:type",typeof Zr>"u"?Object:Zr)],Ri.prototype,"gIBSCBSMono",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>iu),wl("design:type",typeof iu>"u"?Object:iu)],Ri.prototype,"gIBSCBS",void 0);var pp=require("class-validator");function qd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qd,"_ts_decorate");function Hd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Hd,"_ts_metadata");var su=class{static{o(this,"IS")}cClassTrib;CSTIS;pISEspec;vBCIS;uTrib;qTrib;pIS;vIS};qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"cClassTrib",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"CSTIS",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"pISEspec",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"vBCIS",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"uTrib",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"qTrib",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"pIS",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"vIS",void 0);function go(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(go,"_ts_decorate");function au(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(au,"_ts_metadata");var mi=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IBSCBS;IS};go([(0,en.IsOptional)(),(0,en.IsNumber)(),au("design:type",Number)],mi.prototype,"vTotTrib",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>xn),au("design:type",typeof IICMS>"u"?Object:IICMS)],mi.prototype,"ICMS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>ru),au("design:type",typeof IIPI>"u"?Object:IIPI)],mi.prototype,"IPI",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>nu),au("design:type",typeof IISSQN>"u"?Object:IISSQN)],mi.prototype,"ISSQN",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>ml),au("design:type",typeof III>"u"?Object:III)],mi.prototype,"II",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>vl),au("design:type",typeof IPIS>"u"?Object:IPIS)],mi.prototype,"PIS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>Yu),au("design:type",typeof IPISST>"u"?Object:IPISST)],mi.prototype,"PISST",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>yl),au("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],mi.prototype,"COFINS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>$u),au("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],mi.prototype,"COFINSST",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>aa),au("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],mi.prototype,"ICMSUFDest",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>Ri),au("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],mi.prototype,"IBSCBS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>su),au("design:type",typeof IIS>"u"?Object:IIS)],mi.prototype,"IS",void 0);mi=go([Lr({properties:["ICMS","ISSQN"]})],mi);var Fg=require("class-validator"),tte=require("class-transformer");function BV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BV,"_ts_decorate");function PV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PV,"_ts_metadata");var gP=class{static{o(this,"IpiDevol")}vIPIDevol};BV([(0,Fg.IsString)(),PV("design:type",String)],gP.prototype,"vIPIDevol",void 0);var Ox=class{static{o(this,"Devol")}pDevol;IPI};BV([(0,Fg.IsString)(),PV("design:type",String)],Ox.prototype,"pDevol",void 0);BV([(0,Fg.IsOptional)(),(0,Fg.ValidateNested)(),(0,tte.Type)(()=>gP),PV("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],Ox.prototype,"IPI",void 0);var hp=require("class-validator"),_V=require("class-transformer");function vP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vP,"_ts_decorate");function yP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yP,"_ts_metadata");var Bx=class{static{o(this,"Observation")}xCampo;xTexto};vP([(0,hp.IsString)(),yP("design:type",String)],Bx.prototype,"xCampo",void 0);vP([(0,hp.IsString)(),yP("design:type",String)],Bx.prototype,"xTexto",void 0);var Px=class{static{o(this,"ObsItem")}obsCont;obsFisco};vP([(0,hp.IsOptional)(),(0,hp.ValidateNested)(),(0,_V.Type)(()=>Bx),yP("design:type",typeof IObservation>"u"?Object:IObservation)],Px.prototype,"obsCont",void 0);vP([(0,hp.IsOptional)(),(0,hp.ValidateNested)(),(0,_V.Type)(()=>Bx),yP("design:type",typeof IObservation>"u"?Object:IObservation)],Px.prototype,"obsFisco",void 0);function zd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zd,"_ts_decorate");function Kd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Kd,"_ts_metadata");var _x=class{static{o(this,"DetAttributes")}nItem};zd([(0,ws.IsString)(),Kd("design:type",String)],_x.prototype,"nItem",void 0);var sc=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem};zd([(0,ws.IsObject)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>_x),Kd("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],sc.prototype,"$",void 0);zd([(0,ws.ValidateNested)(),(0,Fx.Type)(()=>Tt),Kd("design:type",typeof IProd>"u"?Object:IProd)],sc.prototype,"prod",void 0);zd([(0,ws.IsOptional)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>mi),Kd("design:type",typeof IImposto>"u"?Object:IImposto)],sc.prototype,"imposto",void 0);zd([(0,ws.IsOptional)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>Ox),Kd("design:type",typeof IDevol>"u"?Object:IDevol)],sc.prototype,"impostoDevol",void 0);zd([(0,ws.IsOptional)(),(0,ws.IsString)(),Kd("design:type",String)],sc.prototype,"infAdProd",void 0);zd([(0,ws.IsOptional)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>Px),Kd("design:type",typeof IObsItem>"u"?Object:IObsItem)],sc.prototype,"obsItem",void 0);zd([(0,ws.IsOptional)(),$({fixed:2}),Kd("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vItem",void 0);var As=require("class-validator");function ac(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ac,"_ts_decorate");function oc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(oc,"_ts_metadata");var Cs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"CNPJ",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"xOrgao",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"matr",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"xAgente",void 0);ac([(0,As.IsOptional)(),(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"fone",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"UF",void 0);ac([(0,As.IsOptional)(),(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"nDAR",void 0);ac([(0,As.IsOptional)(),Fp({format:"YYYY-MM-DD"}),oc("design:type",typeof Date>"u"?Object:Date)],Cs.prototype,"dEmi",void 0);ac([(0,As.IsOptional)(),$({fixed:2}),oc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cs.prototype,"vDAR",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"repEmi",void 0);ac([(0,As.IsOptional)(),(0,As.IsDate)(),oc("design:type",typeof Date>"u"?Object:Date)],Cs.prototype,"dPag",void 0);var rte=require("class-validator");function G2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(G2e,"_ts_decorate");function X2e(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X2e,"_ts_metadata");var Lg=class{static{o(this,"InfSolicNFF")}xSolic};G2e([(0,rte.IsString)(),X2e("design:type",String)],Lg.prototype,"xSolic",void 0);function Zn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zn,"_ts_decorate");function ei(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ei,"_ts_metadata");var kg=class{static{o(this,"InfNFeAttributes")}Id;versao};Zn([(0,gt.IsOptional)(),(0,gt.IsString)(),ei("design:type",String)],kg.prototype,"Id",void 0);Zn([(0,gt.IsOptional)(),(0,gt.IsString)(),ei("design:type",String)],kg.prototype,"versao",void 0);var pn=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};Zn([(0,gt.IsObject)(),(0,gt.IsNotEmptyObject)(),(0,ci.Type)(()=>kg),(0,gt.ValidateNested)(),ei("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],pn.prototype,"$",void 0);Zn([(0,gt.IsObject)(),(0,gt.IsNotEmptyObject)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Br),ei("design:type",typeof IIde>"u"?Object:IIde)],pn.prototype,"ide",void 0);Zn([(0,gt.IsObject)(),(0,gt.IsNotEmptyObject)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Yi),ei("design:type",typeof IEmit>"u"?Object:IEmit)],pn.prototype,"emit",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Cs),ei("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],pn.prototype,"avulsa",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Qi),ei("design:type",typeof IDest>"u"?Object:IDest)],pn.prototype,"dest",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>cn),ei("design:type",typeof ILocal>"u"?Object:ILocal)],pn.prototype,"retirada",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>cn),ei("design:type",typeof ILocal>"u"?Object:ILocal)],pn.prototype,"entrega",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)({each:!0}),(0,gt.ArrayMaxSize)(10),(0,ci.Type)(()=>sl),ei("design:type",Array)],pn.prototype,"autXML",void 0);Zn([(0,gt.ValidateNested)({each:!0}),(0,gt.ArrayMaxSize)(990),(0,gt.ArrayMinSize)(1),(0,ci.Type)(()=>sc),ei("design:type",Array)],pn.prototype,"det",void 0);Zn([(0,gt.ValidateNested)(),(0,ci.Type)(()=>Ku),ei("design:type",typeof ITotal>"u"?Object:ITotal)],pn.prototype,"total",void 0);Zn([(0,gt.ValidateNested)(),(0,ci.Type)(()=>Us),ei("design:type",typeof ITransp>"u"?Object:ITransp)],pn.prototype,"transp",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Dd),ei("design:type",typeof ICobr>"u"?Object:ICobr)],pn.prototype,"cobr",void 0);Zn([(0,gt.ValidateNested)(),(0,ci.Type)(()=>Rd),ei("design:type",typeof IPag>"u"?Object:IPag)],pn.prototype,"pag",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>wd),ei("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],pn.prototype,"infIntermed",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Gu),ei("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],pn.prototype,"infAdic",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Ff),ei("design:type",typeof IExporta>"u"?Object:IExporta)],pn.prototype,"exporta",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Lf),ei("design:type",typeof ICompra>"u"?Object:ICompra)],pn.prototype,"compra",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>qs),ei("design:type",typeof ICana>"u"?Object:ICana)],pn.prototype,"cana",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Qo),ei("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],pn.prototype,"infRespTec",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Lg),ei("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],pn.prototype,"infSolicNFF",void 0);var FV=require("class-transformer");function SP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(SP,"_ts_decorate");function xP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xP,"_ts_metadata");var Lx=class{static{o(this,"NFeAttributes")}xmlns};SP([(0,ca.IsString)(),(0,ca.IsNotEmpty)(),xP("design:type",String)],Lx.prototype,"xmlns",void 0);var dp=class{static{o(this,"NFe")}$;infNFe;Signature};SP([(0,ca.IsObject)(),(0,ca.IsNotEmptyObject)(),(0,FV.Type)(()=>Lx),(0,ca.ValidateNested)(),xP("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],dp.prototype,"$",void 0);SP([(0,ca.IsObject)(),(0,ca.IsNotEmptyObject)(),(0,FV.Type)(()=>pn),(0,ca.ValidateNested)(),xP("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],dp.prototype,"infNFe",void 0);SP([(0,ca.Allow)(),xP("design:type",typeof Signature>"u"?Object:Signature)],dp.prototype,"Signature",void 0);function vo(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vo,"_ts_decorate");function er(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(er,"_ts_metadata");var rs=class{static{o(this,"NfeDetXmlBuilder")}listener;schema;data={};static create(e,t="PL_009_V4"){return new this(e,t)}constructor(e,t="PL_009_V4"){this.listener=e,this.schema=t}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}imposto(e){return this.data.imposto=e,this}icms(e){return this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this}issqn(e){return this.data.imposto??={},this.data.imposto.ISSQN=e,this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this.listener?.pis(e),this}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.COFINS=e,this.listener?.cofins(e),this}cofinsst(e){return this.data.imposto??={},this.data.imposto.COFINSST=e,this}icmsufdest(e){return this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this}ibscbs(e){return this.schema===Dl.PL_009_V4?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return this.schema===Dl.PL_009_V4?this:(this.data.vItem=e.vItem,this)}assemble(){this.data.imposto&&this.imposto(this.data.imposto);let e={...this.data};return this.data={},e}};vo([Et(_x),er("design:type",Function),er("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),er("design:returntype",void 0)],rs.prototype,"det",null);vo([Et(Tt),er("design:type",Function),er("design:paramtypes",[typeof IProd>"u"?Object:IProd]),er("design:returntype",void 0)],rs.prototype,"prod",null);vo([Et(mi),er("design:type",Function),er("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),er("design:returntype",void 0)],rs.prototype,"imposto",null);vo([Et(xn),er("design:type",Function),er("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),er("design:returntype",void 0)],rs.prototype,"icms",null);vo([Et(nu),er("design:type",Function),er("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),er("design:returntype",void 0)],rs.prototype,"issqn",null);vo([Et(ml),er("design:type",Function),er("design:paramtypes",[typeof III>"u"?Object:III]),er("design:returntype",void 0)],rs.prototype,"ii",null);vo([Et(ru),er("design:type",Function),er("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),er("design:returntype",void 0)],rs.prototype,"ipi",null);vo([Et(vl),er("design:type",Function),er("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),er("design:returntype",void 0)],rs.prototype,"pis",null);vo([Et(Yu),er("design:type",Function),er("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),er("design:returntype",void 0)],rs.prototype,"pisst",null);vo([Et(yl),er("design:type",Function),er("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),er("design:returntype",void 0)],rs.prototype,"cofins",null);vo([Et($u),er("design:type",Function),er("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),er("design:returntype",void 0)],rs.prototype,"cofinsst",null);vo([Et(aa),er("design:type",Function),er("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),er("design:returntype",void 0)],rs.prototype,"icmsufdest",null);vo([Et(Ri),er("design:type",Function),er("design:paramtypes",[typeof Ri>"u"?Object:Ri]),er("design:returntype",void 0)],rs.prototype,"ibscbs",null);function Oi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Oi,"_ts_decorate");function ct(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ct,"_ts_metadata");var hn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return dp}root="NFe";$det=new cA(this);$total=new lA(this);nfeDetXmlBuilder;static create(e,t,n="PL_009_V4"){return new this(e,t,n)}constructor(e,t,n="PL_009_V4"){this.builder=e,this.contingency=t,this.schema=n,this.nfeDetXmlBuilder=rs.create(this.$det,this.schema)}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return e==null?this:(this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this)}det(e,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total,this.data.infNFe.det);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this.schema!==Dl.PL_009_V4&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...this.data.infNFe.total.IBSCBSTot,gCBS:{...this.data.infNFe.total.IBSCBSTot?.gCBS},gIBS:{...this.data.infNFe.total.IBSCBSTot?.gIBS,gIBSMun:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSMun},gIBSUF:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSUF}},gMono:{...this.data.infNFe.total.IBSCBSTot?.gMono}},vNFTot:e.vNFTot}}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(Ao,this),this}toObject(){if(this.$data!==void 0)return Ot(this.$data);let e=this.errors();return e?ur(new _t(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=iT(this.data,this.entity,{clearEmptyValues:!0}),Ot(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:Ot(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Be.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:t}=this.data.infNFe.ide;if(t!==Ts.Normal)return;switch(YB[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ts.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ts.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ts.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Ao,this)}collect(e){let t=Reflect.getMetadata(Ao,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Ao,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new rb().compile({cUF:this.data.infNFe.ide.cUF,year:this.data.infNFe.ide.dhEmi.substring(2,4),month:this.data.infNFe.ide.dhEmi.substring(5,7),identification:this.data.infNFe.emit.CPF??this.data.infNFe.emit.CNPJ,mod:this.data.infNFe.ide.mod,serie:this.data.infNFe.ide.serie,nNF:this.data.infNFe.ide.nNF,tpEmis:this.data.infNFe.ide.tpEmis,cNF:this.data.infNFe.ide.cNF});this.data.infNFe.ide.cDV=e.slice(-1),this.data.infNFe.$={Id:`${this.root}${e}`,versao:this.data.infNFe.$.versao}}};Oi([Et(kg),ct("design:type",Function),ct("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),ct("design:returntype",void 0)],hn.prototype,"infNFe",null);Oi([Et(Br),ct("design:type",Function),ct("design:paramtypes",[typeof IIde>"u"?Object:IIde]),ct("design:returntype",void 0)],hn.prototype,"ide",null);Oi([Et(Yi),ct("design:type",Function),ct("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),ct("design:returntype",void 0)],hn.prototype,"emit",null);Oi([Et(Cs),ct("design:type",Function),ct("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),ct("design:returntype",void 0)],hn.prototype,"avulsa",null);Oi([Et(Qi),ct("design:type",Function),ct("design:paramtypes",[typeof IDest>"u"?Object:IDest]),ct("design:returntype",void 0)],hn.prototype,"dest",null);Oi([Et(cn),ct("design:type",Function),ct("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),ct("design:returntype",void 0)],hn.prototype,"retirada",null);Oi([Et(cn),ct("design:type",Function),ct("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),ct("design:returntype",void 0)],hn.prototype,"entrega",null);Oi([Et(sl),ct("design:type",Function),ct("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),ct("design:returntype",void 0)],hn.prototype,"autXML",null);Oi([Et(Ku),ct("design:type",Function),ct("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),ct("design:returntype",void 0)],hn.prototype,"total",null);Oi([Et(Us),ct("design:type",Function),ct("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),ct("design:returntype",void 0)],hn.prototype,"transp",null);Oi([Et(Dd),ct("design:type",Function),ct("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),ct("design:returntype",void 0)],hn.prototype,"cobr",null);Oi([Et(Rd),ct("design:type",Function),ct("design:paramtypes",[typeof IPag>"u"?Object:IPag]),ct("design:returntype",void 0)],hn.prototype,"pag",null);Oi([Et(wd),ct("design:type",Function),ct("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),ct("design:returntype",void 0)],hn.prototype,"infIntermed",null);Oi([Et(Gu),ct("design:type",Function),ct("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),ct("design:returntype",void 0)],hn.prototype,"infAdic",null);Oi([Et(Ff),ct("design:type",Function),ct("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),ct("design:returntype",void 0)],hn.prototype,"exporta",null);Oi([Et(Lf),ct("design:type",Function),ct("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),ct("design:returntype",void 0)],hn.prototype,"compra",null);Oi([Et(qs),ct("design:type",Function),ct("design:paramtypes",[typeof ICana>"u"?Object:ICana]),ct("design:returntype",void 0)],hn.prototype,"cana",null);Oi([Et(Qo),ct("design:type",Function),ct("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),ct("design:returntype",void 0)],hn.prototype,"infRespTec",null);Oi([Et(Lg),ct("design:type",Function),ct("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),ct("design:returntype",void 0)],hn.prototype,"infSolicNFF",null);var JA=class extends YS{static{o(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=hn.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return nte.default.resolve(tb(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Ot(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return Ot(e);let t=await this.certificates.read(this.certificate);return t.isLeft()?t:this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value)}async validateXmlString(e){let t=await this.toolkit.validate(e,this.nfeXsdSchema);return t.isLeft()?t:Ot(e)}};var wP=require("class-transformer"),Ka=require("class-validator");var LV=require("class-validator");function ite(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ite,"_ts_decorate");function ste(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ste,"_ts_metadata");var kx=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};ite([(0,LV.IsString)(),ste("design:type",String)],kx.prototype,"qrCode",void 0);ite([(0,LV.IsString)(),ste("design:type",String)],kx.prototype,"urlChave",void 0);function bP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(bP,"_ts_decorate");function EP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(EP,"_ts_metadata");var Cl=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};bP([(0,Ka.IsObject)(),(0,Ka.IsNotEmptyObject)(),(0,wP.Type)(()=>Lx),(0,Ka.ValidateNested)(),EP("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Cl.prototype,"$",void 0);bP([(0,Ka.IsObject)(),(0,Ka.IsNotEmptyObject)(),(0,wP.Type)(()=>pn),(0,Ka.ValidateNested)(),EP("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Cl.prototype,"infNFe",void 0);bP([(0,Ka.IsObject)(),(0,Ka.IsNotEmptyObject)(),(0,wP.Type)(()=>kx),(0,Ka.ValidateNested)(),EP("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],Cl.prototype,"infNFeSupl",void 0);bP([(0,Ka.Allow)(),EP("design:type",typeof Signature>"u"?Object:Signature)],Cl.prototype,"Signature",void 0);var YA=class extends hn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return Cl}static create(e,t,n="PL_009_V4"){return new this(e,t,n)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===Ts.Normal)return this.data.infNFe.ide.tpEmis=Ts.OFFLINE,void 0}};var kV=class extends JA{static{o(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new ra(this.certificates);transmitter=new Ls(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=YA.create(this.toolkit,void 0,this.schema);async assertXmlSignedAndValidated(e){let t=await super.assertXmlSignedAndValidated(e);if(t.isLeft()||!this.options?.qrCode)return t;if(!this.certificate)return ur(new _t("Certificate is required to assemble NFCe XML with QR Code"));let n=t.value,i=await this.toolkit.parse(n),s=await this.generateQrCode(i,this.options,this.certificate);if(s.isLeft())return s;let a=await this.toolkit.build(s.value,{rootName:"infNFeSupl"}),u=this.toolkit.insertBefore(n,"Signature",a);return Ot(u)}async generateQrCode(e,t,n){let i=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),s={...t.qrCode};switch(s.version??=i.version,s.version){case"200":return await this.nfceQrcode.execute(e,{version:s.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url,CSC:s.CSC,CSCId:s.CSCId});case"300":{let a=await this.certificates.read(n);return a.isLeft()?a:await this.nfceQrcode.execute(e,{version:s.version,certificate:a.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url})}default:return cm(s.version)}}};var ate="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtBluEsRixEDQfrA2jHdEOtGG0ASCBK/Rj/NvqtMOS1g50dYxkkeZAIBAINI7gNDQZm3bvL4DNkzTfzOYDy4SWIZYB/wlYitlipKVEUYG5iLkY89zrxL+qOaEx2hNmtmrrmpWPTJf+QCAQCDQvwWloML3D+xaYcaGkc4D/DpwKLImaCFhIFP6fCXzP4NVbuzoONdqQQCAQCFRHcBoaSO/w/vlm3Ad2rqS4LwAmkMXR/hmk3SV01UBXx7Hac681uGLPxwH5vh9twDyMRSjqKwLMI2pSwmChoN3l2didXTd8tDFWBwKBwMS0NdqAWc4bEefK+W7xv4peLRX5nyHa5WZ8uHd4f99AV8dYhXnV1Fyx55Z2jOWGrZB0CvBfDZabsUxiCbDYYLGweaSdK6K+IELItS2ZjDmMHgKC0xAIBJqK4DQ0iN7h/QUzuxr5IsNXyi0uPqJxCDNLk3gv8K/A9mxysn5077m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iYMli/nsD4AbgF0yI+ARSQdsFww3Aa9F75GD0hA4aQlRPYETiu7+lZlp/PaD0zK/XXvhm1+Z0ZQZKedkiG31OOW+qJIlJynStSeSCL5jI3sZuPjchccju2Q9cUzBImCGYb+grmZEg3vmGBbFpw521paOHv+z+wAtxixCHgQNFPPZceeOmCpyhdJ024skTbfZK7GrtvJlrlCajjnfcrPQ1mI++9po7QUCJxtBaQickPz0lbefPeuU//gi6NKythBT8YFHP5VD6Vw5eRGh8rVTL9MQ+J3nLtw8ocJIgUAg8HoiuCcCJyQXn/XPLxv9AfhD0dE5V05M1JyySGRlV0X56GSSuOkYyPDtRkFhCAQCb2iCpSFwwjOwfeksSR+2uVFicdo9keBylsho558uglR2YUyNbMTwOcynliw6XtUyA4FA4NgQlIbA64YtO1pnAVfbvklwPlJLteOiQvJ6tStj0mWv2r4T8dCShZuDwhAIBN7wBKUh8LpjYEdrk+xzkN4PdNheDKpJmxxZI5L4yEmUHTC8LLvH8NiSRZtDkFwgEDhpCEpD4HXNwI6lGaGzsLNIFwMXAfNsWiQyaftA5SsNXquR2SNIh8AHQVsxLyB+CmwCdh6rSpiBQCBwIhGUhsAbii07WrGZI/lsw2JgIWa+pDnALOyoaFEcq2AzIrEPOIC9B9iN9H+AndjbLe1asjDEKgQCgQDA/wf59f5AwcXxcQAAAABJRU5ErkJggg==";var Vx=class r{static{o(this,"Header")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}emit(e){let{left:t,right:n}=this.builder.pageMargins(),i=e?.x??t,s=this.context.data.infNFe.emit,{enderEmit:a}=s,{xNome:u}=s,c=this.context.defaults.font,l=`${c}-Bold`,f="left";this.builder.row({left:i,right:n},p=>this.builder.text(this.identification(s),{...p,continued:!0,align:f}).font(l).text(` ${u}`,{...p,align:f}).font(c)).row({left:i,right:n},p=>this.builder.text(this.addressLine1(a),{...p,continued:!0,align:f}).text(this.addressLine2(a),{...p,continued:!0,align:f}).text(this.addressLine3(a),{...p,align:f})).row({left:i,right:n},p=>this.builder.text(this.addressLine4(a),{...p,align:f}))}identification(e){let t=this.cpfOrCnpj(e),n=e.IE.length?` IE: ${e.IE}`:"";return`${t}${n}`}cpfOrCnpj(e){let{CNPJ:t,CPF:n}=e;return t?.length===14?`CNPJ ${t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:""}addressLine1(e){let{xLgr:t,nro:n}=e;return`${t}, ${n}`}addressLine2(e){let{xBairro:t}=e;return`, ${t}`}addressLine3(e){let{xMun:t,UF:n}=e;return`, ${t} - ${n}`}addressLine4(e){let{fone:t}=e;return t?`Fone: ${t.replace(/(\d{2})(\d{4,5})(\d{4})/,"($1) $2-$3")}`:""}staticTexts(){let{left:e,right:t}=this.builder.pageMargins();this.builder.moveDown(.5).fontSize(this.context.options.titleFontSize).row({left:e,right:t},n=>this.builder.text("Documento Auxiliar da Nota Fiscal de Consumidor Eletr\xF4nica",{...n,align:"center"})).row({left:e,right:t},n=>this.builder.text("N\xE3o permite aproveitamento de cr\xE9dito de ICMS",{...n,align:"center"}))}get logo(){let{logo:e,ignoreDefaultLogo:t}=this.context.options;if(e)return e;if(!t)return ate}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.emit(),this.staticTexts(),this.builder}end(){r._instance=void 0}};var mp=class r{static{o(this,"FiscalMessages")}context;static _instance;constants={issuedInContingency:"EMITIDA EM CONTING\xCANCIA",pendingOfAuthorization:"Pendente de autoriza\xE7\xE3o",notProtocoledInNormalEmission:"PENDENTE DE AUTORIZA\xC7\xC3O - SEM VALOR FISCAL"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get contingencyBannerText(){return`${this.constants.issuedInContingency}
124
- ${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Ts.Normal}get hasNotProtocoledInNormalEmission(){return!this.hasContingency&&!this.context.protNFe}contingency(e){if(!this.hasContingency)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.contingencyBannerText,{...n,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...n,align:"center"}))}build(e){return this.setup(),this.builder.moveDown(.5),this.contingency(e),this.notProtocoledInNormalEmission(e),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){r._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),i=this.builder.pageWidth()-t-n;return this.hasContingency&&e.push(this.builder.heightOfString(this.contingencyBannerText,{width:i,align:"center"})),this.hasNotProtocoledInNormalEmission&&e.push(this.builder.heightOfString(this.constants.notProtocoledInNormalEmission,{width:i,align:"center"})),e.reduce((s,a)=>s+a,0)}};var jx=class r{static{o(this,"HomologMessage")}context;static _instance;constants={withoutFiscalValue:"EMITIDA EM AMBIENTE DE HOMOLOGA\xC7\xC3O \u2013 SEM VALOR FISCAL"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasHomologMessage(){let{tpAmb:e}=this.context.data.infNFe.ide;return e!==Be.Production}withHomologMessage(){if(!this.hasHomologMessage)return;let{left:e}=this.builder.pageMargins();this.builder.text(this.constants.withoutFiscalValue,{x:e,align:"center"})}build(){return this.setup(),this.builder.moveDown(.5),this.withHomologMessage(),this.builder.font(this.context.defaults.font),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){r._instance=void 0}height(){if(!this.hasHomologMessage)return 0;this.setup();let{left:e,right:t}=this.builder.pageMargins();return this.builder.heightOfString(this.constants.withoutFiscalValue,{width:this.builder.pageWidth()-e-t,align:"center"})}};var CP=class r{static{o(this,"Items")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get columnStyles(){return[15,32,60,"*","*","*","*"]}get rowStyles(){return{border:!1}}get defaultStyle(){return{padding:{top:1,bottom:1,left:0,right:0}}}get headers(){let e={src:`${this.context.defaults.font}-Bold`};return[{font:e,text:"#"},{font:e,text:"cod."},{font:e,text:"descri\xE7\xE3o"},{font:e,align:{x:"right"},text:"qtde"},{font:e,align:{x:"right"},text:"unit."},{font:e,align:{x:"right"},text:"desc."},{font:e,align:{x:"right"},text:"total"}]}item(e){let{prod:t,$:{nItem:n}}=e,{cProd:i,xProd:s,qCom:a,uCom:u,vUnCom:c,vDesc:l,vProd:f}=t,p={size:this.context.options.textFontSize},d={font:p,text:n.padStart(3,"0")},g={font:p,text:i},m=[{font:p,align:{x:"right"},text:`${this.context.currency(a,4)} ${u}`},{font:p,align:{x:"right"},text:this.context.currency(c,10)},{font:p,align:{x:"right"},text:this.context.currency(l??0)},{font:p,align:{x:"right"},text:this.context.currency(f)}],y=this.builder.widthOfString(i),v=this.columnStyles[1];if(y>=v)return[[d,{colSpan:6,font:p,text:`${i} ${s}`}],[{colSpan:3},...m]];let x=this.builder.widthOfString(s),w=this.columnStyles[2];if(x>=w)return[[d,g,{colSpan:5,font:p,text:s}],[{colSpan:3},...m]];let b=this.getFirstLineWidth();return this.builder.widthOfString(`${i} ${s}`)<=b?[[d,g,{font:p,text:s},...m]]:[[d,g,{colSpan:5,font:p,text:s}],[{colSpan:3},...m]]}items(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n}=this.builder.pageMargins();this.builder.table({position:{x:n},defaultStyle:this.defaultStyle,columnStyles:this.columnStyles,rowStyles:this.rowStyles,data:[this.headers,...t.reduce((i,s)=>i.concat(this.item(s)),[])]})}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.items(),this.builder}end(){r._instance=void 0}getFirstLineWidth(){return this.columnStyles.slice(1,3).reduce((t,n)=>t+n,0)}getProportionalWidth(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,i=this.columnStyles.reduce((a,u)=>typeof u=="number"?a+u:a,0),s=this.columnStyles.filter(a=>a==="*").length;return(n-i)/s}getAvailableWidth(e,t){if(e.colSpan){let s=t.indexOf(e),a=this.columnStyles.slice(0,s).reduce((c,l)=>typeof l=="number"?c+l:c,0),u=this.getProportionalWidth()*e.colSpan;return a+u}let n=t.indexOf(e),i=this.columnStyles[n];return typeof i=="number"?i:this.getProportionalWidth()}calculateRowHeight(e,t){let n=t;for(let i of e){if(!i.text)continue;let s=i.text,a=this.builder.widthOfString(s),u=this.getAvailableWidth(i,e),c=a<=u?t:this.builder.heightOfString(s,{width:u});n=Math.max(n,c)}return n}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],n=this.builder.currentLineHeight(),i=n*1.2,s=n*.5,a=n*.5,u=t.reduce((l,f)=>{let p=this.item(f),[d]=p,g=this.calculateRowHeight(d,n),m=0;if(p.length>1){let b=this.calculateRowHeight(p[1],n);m=Math.max(n,b)}let{top:y,bottom:v}=this.defaultStyle.padding,x=y+v,w=p.length>1?n*.2:0;return l+g+m+p.length*x+w},0),c=n*2;return s+i+a+u+c}};var Mx=class r{static{o(this,"Totals")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}count(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:i},s=>this.builder.text("Qtde. Total de Itens",{...s}),s=>this.builder.text(`${t.length}`,{...s,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:n,vSeg:i,vOutro:s}=this.context.data.infNFe.total.ICMSTot,{vServ:a}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new Dr(e).add(a??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",n),this.conditionalRowValue("Seguro total R$",i),this.conditionalRowValue("Outras despesas total R$",s)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,n=`${t}-Bold`,{left:i,right:s}=this.builder.pageMargins();this.builder.font(n).fontSize(this.context.options.titleFontSize).row({columns:2,left:i,right:s},a=>this.builder.text("Valor a Pagar R$",{...a,align:"left"}),a=>this.builder.text(this.context.currency(e),{...a,align:"right"})).font(t)}conditionalRowValue(e,t,n=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:i,right:s}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:s},a=>this.builder.text(e,{...a,align:"left"}),a=>this.builder.text(`${n}${t}`,{...a,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.count(),this.totalizers(),this.total(),this.builder}end(){r._instance=void 0}};var gi={Dinheiro:"01",Cheque:"02",CartaoDeCredito:"03",CartaoDeDebito:"04",CartaoDaLoja:"05",ValeAlimentacao:"10",ValeRefeicao:"11",ValePresente:"12",ValeCombustivel:"13",BoletoBancario:"15",DepositoBancario:"16",PIXDinamico:"17",TransferenciaBancaria:"18",ProgramaFidelidade:"19",PIXEstatico:"20",CreditoEmLoja:"21",PagamentoNaoInformado:"22",SemPagamento:"90",PagamentoPosterior:"91",Outros:"99"},ote={[gi.Dinheiro]:"Dinheiro",[gi.Cheque]:"Cheque",[gi.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[gi.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[gi.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[gi.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[gi.ValeRefeicao]:"Vale Refei\xE7\xE3o",[gi.ValePresente]:"Vale Presente",[gi.ValeCombustivel]:"Vale Combust\xEDvel",[gi.BoletoBancario]:"Boleto Banc\xE1rio",[gi.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[gi.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[gi.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[gi.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[gi.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[gi.CreditoEmLoja]:"Cr\xE9dito em Loja",[gi.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[gi.SemPagamento]:"Sem pagamento",[gi.PagamentoPosterior]:"Pagamento Posterior",[gi.Outros]:"Outros"};var Ux=class r{static{o(this,"Payments")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}payment(e){let{tPag:t,vPag:n}=e,{left:i,right:s}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:s},a=>this.builder.text(ote[t],{...a,align:"left"}),a=>this.builder.text(this.context.currency(n),{...a,align:"right"}))}payments(){let{pag:e}=this.context.data.infNFe,t=Array.isArray(e.detPag)?e.detPag:[e.detPag];if(t.length===0)return;let{left:n,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:i},s=>this.builder.text("Forma de Pagamento",{...s,align:"left"}),s=>this.builder.text("Valor pago R$",{...s,align:"right"})),t.forEach(s=>this.payment(s))}change(){let{vTroco:e}=this.context.data.infNFe.pag;if(!this.context.isValueNotEmpty(e))return;let{left:t,right:n}=this.builder.pageMargins();this.builder.moveDown(.5).row({columns:2,left:t,right:n},i=>this.builder.text("Troco R$",{...i,align:"left"}),i=>this.builder.text(this.context.currency(e),{...i,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.payments(),this.change(),this.builder}end(){r._instance=void 0}height(){this.setup();let{pag:{vTroco:e,detPag:t}}=this.context.data.infNFe,n=Array.isArray(t)?t:[t],i=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*n.length-1+i}};var qx=class r{static{o(this,"AccessKey")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}statics(){let{left:e,right:t}=this.builder.pageMargins(),n=this.context.defaults.font,i=`${n}-Bold`;this.builder.font(i).row({left:e,right:t},s=>this.builder.text("Consulte pela Chave de Acesso em",{...s,align:"center"})).font(n)}url(){let{urlChave:e}=this.context.data.infNFeSupl??{},{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:t,right:n},i=>this.builder.text(e??"",{...i,link:e,align:"center"}))}accessKey(){let{Id:e}=this.context.data.infNFe.$;if(!e)return;this.builder.moveDown(.5);let t=e.substring(3).replace(/(.{4})/g,"$1 ").trim(),{left:n,right:i}=this.builder.pageMargins();this.builder.row({left:n,right:i},s=>this.builder.text(t,{...s,align:"center"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.titleFontSize)}build(){return this.builder.moveDown(.5),this.statics(),this.url(),this.accessKey(),this.builder}end(){r._instance=void 0}};var vne=zt(gne(),1);var jP=class r{static{o(this,"QRCode")}context;static _instance;defaults={qrSize:65};qrCodeSvg;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}async getQrSvgString(e){try{return await vne.toString(e,{margin:0,type:"svg",errorCorrectionLevel:"M",color:{dark:"#000000",light:"#FFFFFF"}})}catch(t){return console.error("Error generating QR code:",t),""}}drawQrCode(){if(!this.qrCodeSvg)return;let e=this.qrCodeSvg.$.viewBox,[,,t,n]=e.split(" ").map(Number),{qrSize:i}=this.defaults,s=i/t,a=i/n,u=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:c}=this.builder.pageMargins();this.builder.save().translate(c,this.builder.y()).scale(s,a),u.forEach(l=>{this.builder.path(l.$.d),l.$.fill&&this.builder.fill(l.$.fill),l.$.stroke&&this.builder.stroke(l.$.stroke)}),this.builder.restore()}async make(){let{qrCode:e}=this.context.data.infNFeSupl??{};if(!e)return this.builder;let t=await this.getQrSvgString(e);this.qrCodeSvg=await this.context.toolkit.parse(t)}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}async build(){return await this.make(),this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder}end(){r._instance=void 0}height(){return this.setup(),this.defaults.qrSize+.5}};var MP=class r{static{o(this,"Recipient")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}unknown(e){let{left:t,right:n}=this.builder.pageMargins(),i=this.context.defaults.font,s=`${i}-Bold`;this.builder.row({left:e?.x??t,right:n},a=>this.builder.font(s).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...a,align:"center"}).font(i))}identification(e){let{CNPJ:t,CPF:n,idEstrangeiro:i}=e;return t?.length===14?`CNPJ: ${t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF: ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:i?.length?`Id. Estrangeiro: ${i}`:""}dest(e){let{dest:t}=this.context.data.infNFe;if(!t)return this.unknown(e);let{left:n,right:i}=this.builder.pageMargins(),s=this.identification(t),{xNome:a,enderDest:u}=t,c=this.addressLine(u),l=this.context.defaults.font,f=`${l}-Bold`;this.builder.row({left:e?.x??n,right:i},p=>this.builder.font(f).text(`CONSUMIDOR - ${s}`,{...p,align:"center"}).font(l)).row({left:e?.x??n,right:i},p=>this.builder.text(`${a}${c}`,{...p,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:n,xBairro:i,xCpl:s,xMun:a,UF:u,CEP:c}=e;if(!t||!c)return"";let l=s?`, ${s}`:"";return` - Rua ${t}, ${n}, ${i}${l}, ${a} - ${u}`}addressLine2(e){let{xBairro:t,xCpl:n}=e,i=n?` - ${n}`:"";return`${t}${i}`}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builder.moveDown(.5),this.dest(e),this.builder}end(){r._instance=void 0}height(){let{dest:e}=this.context.data.infNFe;if(!e)return 0;this.setup();let{xNome:t,enderDest:n}=e,i=this.addressLine(n),{left:s,right:a}=this.builder.pageMargins(),u=this.builder.pageWidth()-s-a;return this.builder.fontSize(this.context.options.textFontSize),this.builder.heightOfString(`${t}${i}`,{align:"center",width:u})}};var UP=class r{static{o(this,"Protocols")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}isProtocoled(e){return!!e}protocol(e){let t=this.context.protNFe;return this.isProtocoled(t)?this.protocoled(t.infProt,e):this.unprotocoled()}unprotocoled(){}metadata(e){let{nNF:t,serie:n,dhEmi:i}=this.context.data.infNFe.ide,s=t.padStart(9,"0"),a=n.padStart(3,"0"),{left:u,right:c}=this.builder.pageMargins(),{cUF:l}=this.context.data.infNFe.ide,f=K5[l],p=_p(i).tz(f).format("DD/MM/YYYY HH:mm:ss"),d=this.context.defaults.font,g=`${d}-Bold`;this.builder.row({left:e?.x??u,right:c},m=>this.builder.font(g).text(`NFC-e n\xBA ${s} - s\xE9rie ${a} emitida em: ${p}`,{...m,align:"center"}).font(d))}protocoled(e,t){let{dhRecbto:n,nProt:i}=e,{left:s,right:a}=this.builder.pageMargins(),{cUF:u}=this.context.data.infNFe.ide,c=K5[u],l=i.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),f=_p(n).tz(c).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??s,right:a},p=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${l}
123
+ `,"\r"," "].reduce((n,i)=>n.replace(i,""),e.replace(/(>)\s*(<)/gm,"$1$2"))}};var cA=class{static{o(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let t=Dr.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:Dr.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:Dr.newOrZero(n?.vFrete).add(e.vFrete??t).toFixed(2),vSeg:Dr.newOrZero(n?.vSeg).add(e.vSeg??t).toFixed(2),vDesc:Dr.newOrZero(n?.vDesc).add(e.vDesc??t).toFixed(2),vOutro:Dr.newOrZero(n?.vOutro).add(e.vOutro??t).toFixed(2)}}))}cofins(e){let t=Dr.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vCOFINS:Dr.newOrZero(n?.vCOFINS).add(e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS??t).toFixed(2)}}))}pis(e){let t=Dr.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vPIS:Dr.newOrZero(n?.vPIS).add(e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS??t).toFixed(2)}}))}icms(e){let t=Dr.from(0),[n]=Object.keys(e),i=e[n];this.builder.increment(({ICMSTot:s})=>({ICMSTot:{vBC:Dr.newOrZero(s?.vBC).add(i.vBC??t).toFixed(2),vICMS:Dr.newOrZero(s?.vICMS).add(i.vICMS??t).toFixed(2),vICMSDeson:Dr.newOrZero(s?.vICMSDeson).add(i.vICMSDeson??t).toFixed(2),vBCST:Dr.newOrZero(s?.vBCST).add(i.vBCST??t).toFixed(2),vST:Dr.newOrZero(s?.vST).add(i.vICMSST??t).toFixed(2)}}))}};var lA=class{static{o(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=Dr.from(0),t=this.builder.schema===Dl.PL_010_V1_30;this.builder.increment(({ICMSTot:n,ISSQNtot:i},s)=>({vNFTot:t?s.reduce((a,u)=>a.add(u?.vItem??"0.00"),e).toFixed(2):void 0,ICMSTot:{vNF:Dr.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(n?.vICMSDeson??e).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vFrete??e).add(n?.vSeg??e).add(n?.vOutro??e).add(n?.vII??e).add(n?.vIPI??e).add(n?.vIPIDevol??e).add(i?.vServ??e).toFixed(2)}}))}};var bee={[Il.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};var YS=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=ty.create();toolkit=new JS;caching=new xN;certificates=new uT(this.http,this.caching);soap=new hD(this.toolkit,this.certificates);signer=new tT(this.toolkit,this.certificates);xmlSigner=new rT(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(Ao,this)}};var Iee=zt(require("path"),1);var Eee=require("class-transformer"),Fu=require("class-validator");function qB(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qB,"_ts_decorate");function X5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X5,"_ts_metadata");var Ed=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};qB([(0,Fu.IsEnum)(Be),X5("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ed.prototype,"tpAmb",void 0);qB([(0,Fu.IsEnum)(ce),X5("design:type",typeof StateCode>"u"?Object:StateCode)],Ed.prototype,"cUF",void 0);qB([(0,Fu.IsOptional)()],Ed.prototype,"xServ",void 0);var G5=class{static{o(this,"ConsultStatusRequest")}consStatServ};qB([(0,Fu.IsNotEmptyObject)(),(0,Fu.IsObject)(),(0,Fu.ValidateNested)(),(0,Eee.Type)(()=>Ed),X5("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],G5.prototype,"consStatServ",void 0);var zB=require("class-transformer"),qt=require("class-validator");function Ni(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ni,"_ts_decorate");function vs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vs,"_ts_metadata");var HB=class{static{o(this,"InfInutAttributes")}Id};Ni([(0,qt.IsString)(),vs("design:type",String)],HB.prototype,"Id",void 0);var fA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};Ni([(0,qt.IsString)(),vs("design:type",String)],fA.prototype,"xmlns",void 0);Ni([(0,qt.IsString)(),(0,qt.IsOptional)(),vs("design:type",String)],fA.prototype,"versao",void 0);var gs=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Ni([(0,qt.ValidateNested)(),(0,zB.Type)(()=>HB),vs("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],gs.prototype,"$",void 0);Ni([(0,qt.IsEnum)(Be),vs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],gs.prototype,"tpAmb",void 0);Ni([(0,qt.IsOptional)()],gs.prototype,"xServ",void 0);Ni([(0,qt.IsEnum)(ce),vs("design:type",typeof StateCode>"u"?Object:StateCode)],gs.prototype,"cUF",void 0);Ni([(0,qt.IsString)(),(0,qt.Length)(2,2),(0,qt.Matches)(/^[0-9]{2}$/),vs("design:type",String)],gs.prototype,"ano",void 0);Ni([(0,qt.IsString)(),(0,qt.IsOptional)(),vs("design:type",String)],gs.prototype,"CNPJ",void 0);Ni([(0,qt.IsString)(),(0,qt.IsOptional)(),vs("design:type",String)],gs.prototype,"CPF",void 0);Ni([(0,qt.IsString)(),(0,qt.Length)(2,2),(0,qt.Matches)(/^(55|65)$/),vs("design:type",String)],gs.prototype,"mod",void 0);Ni([(0,qt.IsString)(),(0,qt.Matches)(/^[0-9]{1,3}$/),vs("design:type",String)],gs.prototype,"serie",void 0);Ni([(0,qt.IsString)(),(0,qt.Matches)(/^[0-9]{1,9}$/),vs("design:type",String)],gs.prototype,"nNFIni",void 0);Ni([(0,qt.IsString)(),(0,qt.Matches)(/^[0-9]{1,9}$/),vs("design:type",String)],gs.prototype,"nNFFin",void 0);Ni([(0,qt.IsString)(),(0,qt.MinLength)(15),(0,qt.MaxLength)(255),vs("design:type",String)],gs.prototype,"xJust",void 0);gs=Ni([Lr({properties:["CNPJ","CPF"],required:!0})],gs);var Rf=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};Ni([(0,qt.IsObject)(),(0,qt.ValidateNested)(),(0,zB.Type)(()=>fA),vs("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Rf.prototype,"$",void 0);Ni([(0,qt.IsObject)(),(0,qt.ValidateNested)(),(0,zB.Type)(()=>gs),vs("design:type",typeof IInfInut>"u"?Object:IInfInut)],Rf.prototype,"infInut",void 0);Ni([(0,qt.Allow)(),vs("design:type",typeof Signature>"u"?Object:Signature)],Rf.prototype,"Signature",void 0);var tl=require("class-validator");function W5(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(W5,"_ts_decorate");function wee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wee,"_ts_metadata");var bg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};W5([(0,tl.IsEnum)(Be),wee("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],bg.prototype,"tpAmb",void 0);W5([(0,tl.IsOptional)()],bg.prototype,"xServ",void 0);W5([(0,tl.IsString)(),(0,tl.Length)(44,44),(0,tl.Matches)(/^[A-Z0-9]{44}$/),wee("design:type",String)],bg.prototype,"chNFe",void 0);var ao=require("class-validator");function pA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pA,"_ts_decorate");function KB(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KB,"_ts_metadata");var Of=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};pA([(0,ao.IsEnum)(Be),(0,ao.IsOptional)(),KB("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Of.prototype,"tpAmb",void 0);pA([(0,ao.IsEnum)(ce),(0,ao.IsOptional)(),KB("design:type",typeof StateCode>"u"?Object:StateCode)],Of.prototype,"cUF",void 0);pA([(0,ao.IsString)(),(0,ao.IsOptional)(),KB("design:type",String)],Of.prototype,"idLote",void 0);pA([(0,ao.IsOptional)(),(0,ao.IsEnum)(["0","1"])],Of.prototype,"indSinc",void 0);pA([(0,ao.IsNotEmpty)(),KB("design:type",typeof T>"u"?Object:T)],Of.prototype,"NFe",void 0);var GB=require("class-validator");function Cee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cee,"_ts_decorate");function Aee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Aee,"_ts_metadata");var QS=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;nRec};Cee([(0,GB.IsEnum)(Be),Aee("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],QS.prototype,"tpAmb",void 0);Cee([(0,GB.IsString)(),Aee("design:type",String)],QS.prototype,"nRec",void 0);var Ir=require("class-validator"),hA=require("class-transformer");function Ti(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ti,"_ts_decorate");function Ji(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ji,"_ts_metadata");var XB=class{static{o(this,"InfEventoAttributes")}Id};Ti([(0,Ir.IsString)(),Ji("design:type",String)],XB.prototype,"Id",void 0);var Wi=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Ti([(0,Ir.IsObject)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>XB),Ji("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Wi.prototype,"$",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",typeof StateCode>"u"?Object:StateCode)],Wi.prototype,"cOrgao",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Wi.prototype,"tpAmb",void 0);Ti([(0,Ir.IsString)(),(0,Ir.IsOptional)(),Ji("design:type",String)],Wi.prototype,"CNPJ",void 0);Ti([(0,Ir.IsString)(),(0,Ir.IsOptional)(),Ji("design:type",String)],Wi.prototype,"CPF",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",String)],Wi.prototype,"chNFe",void 0);Ti([Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ji("design:type",String)],Wi.prototype,"dhEvento",void 0);Ti([(0,Ir.IsEnum)(Il),Ji("design:type",typeof Il>"u"?Object:Il)],Wi.prototype,"tpEvento",void 0);Ti([(0,Ir.IsNumber)(),Ji("design:type",Number)],Wi.prototype,"nSeqEvento",void 0);Ti([(0,Ir.IsString)(),Ji("design:type",String)],Wi.prototype,"verEvento",void 0);Ti([(0,Ir.IsObject)(),Ji("design:type",typeof T>"u"?Object:T)],Wi.prototype,"detEvento",void 0);Wi=Ti([Lr({properties:["CNPJ","CPF"],required:!0})],Wi);var WB=class{static{o(this,"EventoItemAttributes")}xmlns};Ti([(0,Ir.IsString)(),Ji("design:type",String)],WB.prototype,"xmlns",void 0);var rl=class{static{o(this,"EventoItem")}$;infEvento;Signature};Ti([(0,Ir.IsObject)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>WB),Ji("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],rl.prototype,"$",void 0);Ti([(0,Ir.IsObject)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>Wi),Ji("design:type",typeof Wi>"u"?Object:Wi)],rl.prototype,"infEvento",void 0);Ti([(0,Ir.Allow)(),Ji("design:type",typeof Signature>"u"?Object:Signature)],rl.prototype,"Signature",void 0);var $S=class{static{o(this,"EventoPayload")}idLote;evento};Ti([(0,Ir.IsString)(),Ji("design:type",String)],$S.prototype,"idLote",void 0);Ti([(0,Ir.IsNotEmpty)(),(0,Ir.ValidateNested)(),(0,hA.Type)(()=>rl),Ji("design:type",typeof rl>"u"?Object:rl)],$S.prototype,"evento",void 0);var Yo=require("class-validator");function ZS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ZS,"_ts_decorate");function JB(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JB,"_ts_metadata");var Lu=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};ZS([(0,Yo.IsOptional)()],Lu.prototype,"xServ",void 0);ZS([(0,Yo.IsString)(),(0,Yo.IsIn)(Object.values(See)),JB("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],Lu.prototype,"UF",void 0);ZS([(0,Yo.IsOptional)(),(0,Yo.IsString)(),JB("design:type",String)],Lu.prototype,"IE",void 0);ZS([(0,Yo.IsOptional)(),(0,Yo.IsString)(),JB("design:type",String)],Lu.prototype,"CNPJ",void 0);ZS([(0,Yo.IsOptional)(),(0,Yo.IsString)(),JB("design:type",String)],Lu.prototype,"CPF",void 0);Lu=ZS([Lr({properties:["IE","CNPJ","CPF"],required:!0})],Lu);var Nee={AM:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},AN:{[Be.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}},[Be.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}}},BA:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}}},GO:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}}},MG:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}}},MT:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}}},PE:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}}},SVAN:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVRS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVCRS:{[Be.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Be.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};var j2e={[ce.AC]:"SVRS",[ce.AL]:"SVRS",[ce.AM]:"AM",[ce.AP]:"SVRS",[ce.BA]:"BA",[ce.CE]:"SVRS",[ce.DF]:"SVRS",[ce.ES]:"SVRS",[ce.GO]:"GO",[ce.MA]:"SVAN",[ce.MG]:"MG",[ce.MS]:"MS",[ce.MT]:"MT",[ce.PA]:"SVRS",[ce.PB]:"SVRS",[ce.PE]:"PE",[ce.PI]:"SVRS",[ce.PR]:"PR",[ce.RJ]:"SVRS",[ce.RN]:"SVRS",[ce.RO]:"SVRS",[ce.RR]:"SVRS",[ce.RS]:"RS",[ce.SC]:"SVRS",[ce.SE]:"SVRS",[ce.SP]:"SP",[ce.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Tee=j2e;var YB={[ce.AC]:"SVCAN",[ce.AL]:"SVCAN",[ce.AM]:"SVCRS",[ce.AP]:"SVCAN",[ce.BA]:"SVCRS",[ce.CE]:"SVCAN",[ce.DF]:"SVCAN",[ce.ES]:"SVCAN",[ce.GO]:"SVCRS",[ce.MA]:"SVCRS",[ce.MG]:"SVCAN",[ce.MS]:"SVCRS",[ce.MT]:"SVCRS",[ce.PA]:"SVCAN",[ce.PB]:"SVCAN",[ce.PE]:"SVCRS",[ce.PI]:"SVCAN",[ce.PR]:"SVCRS",[ce.RJ]:"SVCAN",[ce.RN]:"SVCAN",[ce.RO]:"SVCAN",[ce.RR]:"SVCAN",[ce.RS]:"SVCAN",[ce.SC]:"SVCAN",[ce.SE]:"SVCAN",[ce.SP]:"SVCAN",[ce.TO]:"SVCAN"};function Eg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Eg,"_ts_decorate");function si(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(si,"_ts_metadata");var ka=class{static{o(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=Dl.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?YB[t]:Tee[t];return Nee[i][n][e.service]}errors(){return Reflect.getMetadata(Ao,this)}validate(e){try{let t=this.errors();return t?ur(new _t(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Ot(e))}finally{Reflect.deleteMetadata(Ao,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return Iee.default.resolve(tb(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,i.version)},method:"nfeStatusServicoNF"})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,i.version)},method:"nfeConsultaNF"})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,i.version)},method:"nfeAutorizacaoLote"})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,i.version)},method:"nfeRetAutorizacaoLote"})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,i.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,i.version)},method:"nfeRecepcaoEvento"})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:ce[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,i.version)},method:"consultaCadastro"})}};Eg([Et(Ed),si("design:type",Function),si("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),si("design:returntype",Promise)],ka.prototype,"consultStatus",null);Eg([Et(Rf),si("design:type",Function),si("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),si("design:returntype",Promise)],ka.prototype,"inutilizacao",null);Eg([Et(bg),si("design:type",Function),si("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),si("design:returntype",Promise)],ka.prototype,"consultaProtocolo",null);Eg([Et(Of),si("design:type",Function),si("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),si("design:returntype",Promise)],ka.prototype,"autorizacao",null);Eg([Et(QS),si("design:type",Function),si("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),si("design:returntype",Promise)],ka.prototype,"retAutorizacao",null);Eg([Et($S),si("design:type",Function),si("design:paramtypes",[Object]),si("design:returntype",Promise)],ka.prototype,"recepcaoEvento",null);Eg([Et(Lu),si("design:type",Function),si("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),si("design:returntype",Promise)],ka.prototype,"consultaCadastro",null);var Va=class extends YS{static{o(this,"TransmissionPipeline")}certificate;transmitter=new ka(this.soap);constructor(e){super(e),this.certificate=e}};function M2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(M2e,"_ts_decorate");function J5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(J5,"_ts_metadata");var dA=class extends Va{static{o(this,"EventPipeline")}async event(e,t,n){let i=await this.certificates.read(this.certificate);if(i.isLeft())return i;let s=t.chNFe.slice(0,2);this.transmitter.configure({cUF:s,...n,certificate:i.value});let a=bee[e],u=this.certificates.getCertificateInfo(i.value.certificate),{nSeqEvento:c,dhEvento:l,chNFe:f}=t,p=["ID",e,f,c.toString().padStart(2,"0")].join(""),d={$:{xmlns:this.xmlns},infEvento:{$:{Id:p},cOrgao:s,tpAmb:n.tpAmb,CNPJ:u.CNPJ,CPF:u.CPF,chNFe:f,dhEvento:l,tpEvento:e,nSeqEvento:c,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},g=this.validated(d);return g.isLeft()?g:await this.signer.sign(g.value,{tag:"infEvento",mark:"Id"},i.value)}validated(e){let t=this.errors();return t?ur(new _t(t.join(", "))):Ot(e)}};M2e([Et(rl),J5("design:type",Function),J5("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),J5("design:returntype",void 0)],dA.prototype,"validated",null);var mA=class extends dA{static{o(this,"NfeCancelPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},i=await this.event(Il.Cancelamento,n,t);return i.isLeft()?i:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i.value})}};var QB=class extends _t{static{o(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};var Dee=(function(r){return r.Autorizada="100",r.AutorizadaForaDoPrazo="150",r.UsoDenegado="110",r.NfeDenegada="205",r.DenegadaIrregularidadeEmissor="301",r.DenegadaIrregularidadeDestinatario="302",r.DenegadaNaoHabilitadaNaUf="303",r})({});var gA=class extends Va{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.handleNfeBatch(n.value,e.xml);if(i.isLeft())return i;let[s]=i.value;this.transmitter.configure({cUF:s.infNFe.ide.cUF,tpAmb:s.infNFe.ide.tpAmb,...t,contingency:this.contingency(s),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let a=await this.transmitter.autorizacao({...e,NFe:i.value});if(a.isLeft())return a;let u=a.value;return this.isSyncResponse(u)?Ot(await this.response(i.value,u)):await this.handleAsyncResponse(i.value,u)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(Dee).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let i={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],i=await Promise.all(e.map((s,a)=>this.protocol(s,n[a])));return i.length>1?{xml:i,response:t}:{xml:i[0],response:t}}async signNfe(e,t){return this.signer.sign(t,{tag:"infNFe",mark:"Id"},e)}async handleNfeBatch(e,t){if(!Array.isArray(t)){let i=await this.toolkit.parse(t),s=await this.signNfe(e,i);return s.isLeft()?ur(s.value):Ot([s.value])}let n=await Promise.all(t.map(async i=>this.signNfe(e,await this.toolkit.parse(i))));return n.some(i=>i.isLeft())?ur(new _t("Failed to sign a NFe in batch")):Ot(n.filter(i=>i.isRight()).map(i=>i.value))}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:{nRec:i}}=t.retEnviNFe,s=1;for(;s<=3;)try{await new Promise(c=>setTimeout(c,1e3));let a=await this.transmitter.retAutorizacao({nRec:i,tpAmb:n});if(a.isLeft())continue;let u=a.value.retConsReciNFe.protNFe;if(!u||Array.isArray(u)&&u.length===0)continue;return Ot(await this.response(e,{retEnviNFe:{...a.value.retConsReciNFe,protNFe:u}}))}finally{s++}return ur(new QB)}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.infNFe.ide;if(!(!t||!n||i===Ts.Normal))return{dhCont:t,xJust:n}}};function U2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(U2e,"_ts_decorate");function Y5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Y5,"_ts_metadata");var ex=class extends Va{static{o(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=this.certificates.getCertificateInfo(n.value.certificate);this.transmitter.configure({...t,certificate:n.value});let s=e.ano??new Date().getFullYear().toString().slice(2),a=["ID",t.cUF,s,i.CNPJ?.padStart(14,"0")??"",e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),u={$:{xmlns:this.xmlns},infInut:{$:{Id:a},tpAmb:e.tpAmb??t.tpAmb,cUF:t.cUF,ano:s,CNPJ:i.CNPJ,CPF:i.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},c=this.validated(u);if(c.isLeft())return c;let l=await this.signer.sign(c.value,{tag:"infInut",mark:"Id"},n.value);return l.isLeft()?l:await this.transmitter.inutilizacao(l.value)}validated(e){let t=this.errors();return t?ur(new _t(t.join(", "))):Ot(e)}};U2e([Et(Rf),Y5("design:type",Function),Y5("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Y5("design:returntype",void 0)],ex.prototype,"validated",null);var vA=class extends Va{static{o(this,"NfeConsultStatusPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({...e,certificate:t.value}),await this.transmitter.consultStatus(e))}};var yA=class extends Va{static{o(this,"NfeConsultProtocoloPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({tpAmb:e.tpAmb,cUF:e.chNFe.substring(0,2),certificate:t.value}),await this.transmitter.consultaProtocolo(e))}};var Q5=class extends Va{static{o(this,"NfeAuthorizationResponsePipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({cUF:e.cUF,tpAmb:e.tpAmb,certificate:t.value}),this.transmitter.retAutorizacao(e))}};var Ree=zt(require("crypto"),1);var ra=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:Ot(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):cm(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ts.OFFLINE)return`${u}|${c}|${s}|${a}`;let f=e.Signature.SignedInfo.Reference.DigestValue.split("").map(g=>g.charCodeAt(0).toString(16).padStart(2,"0")).join(""),p=new Date(e.infNFe.ide.dhEmi).getDate(),d=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${p}|${d}|${f}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=Ree.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(Ot(`${u}${s}|${a}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:i}=e,s=t?t.replace(/\D/g,""):n?n.replace(/[^A-Z0-9]/g,""):i?.replace(/\D/g,"");return s?s.length===11?{tipo:"1",documento:s}:s.length===14?{tipo:"2",documento:s}:i&&s.length>=3&&s.length<=14?{tipo:"3",documento:s}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ts.OFFLINE)return Ot(`${i}${a}|${u}|${s}`);let c=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:f,documento:p}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),d=`${a}|${u}|${s}|${c}|${l}|${f}|${p}`,g=await this.certificateRepository.sign(d,t.certificate,Ec.SHA1);return g.isLeft()?g:Ot(`${i}${d}|${g.value}`)}};var $5={AC:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}}},AP:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}}},MA:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}}},MT:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.mt.gov.br/nfce/consultanfce"}}},MS:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}}},PA:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}}},RJ:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}}},SC:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"1.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.nfce.fazenda.sp.gov.br/qrcode"}}},TO:{[Be.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Be.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Be.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}},[Be.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}}},SVAN:{[Be.Homolog]:{},[Be.Production]:{}}};var Oee={[Be.Homolog]:{[ce.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[ce.AL]:"www.sefaz.al.gov.br/nfce/consulta",[ce.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[ce.AM]:"www.sefaz.am.gov.br/nfce/consulta",[ce.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[ce.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[ce.DF]:"www.fazenda.df.gov.br/nfce/consulta",[ce.ES]:"www.sefaz.es.gov.br/nfce/consulta",[ce.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[ce.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[ce.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[ce.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[ce.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[ce.PA]:"www.sefa.pa.gov.br/nfce/consulta",[ce.PB]:"www.sefaz.pb.gov.br/nfcehom",[ce.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[ce.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[ce.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[ce.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[ce.RN]:"www.set.rn.gov.br/nfce/consulta",[ce.RO]:"www.sefin.ro.gov.br/nfce/consulta",[ce.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[ce.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[ce.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[ce.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[ce.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[ce.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Be.Production]:{[ce.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[ce.AL]:"www.sefaz.al.gov.br/nfce/consulta",[ce.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[ce.AM]:"www.sefaz.am.gov.br/nfce/consulta",[ce.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[ce.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[ce.DF]:"www.fazenda.df.gov.br/nfce/consulta",[ce.ES]:"www.sefaz.es.gov.br/nfce/consulta",[ce.GO]:"www.sefaz.go.gov.br/nfce/consulta",[ce.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[ce.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[ce.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[ce.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[ce.PA]:"www.sefa.pa.gov.br/nfce/consulta",[ce.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[ce.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[ce.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[ce.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[ce.RN]:"www.set.rn.gov.br/nfce/consulta",[ce.RO]:"www.sefin.ro.gov.br/nfce/consulta",[ce.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[ce.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[ce.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[ce.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[ce.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[ce.TO]:"www.sefaz.to.gov.br/nfce/consulta",[ce.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var q2e={[ce.AC]:"SVRS",[ce.AL]:"SVRS",[ce.AM]:"AM",[ce.AP]:"SVRS",[ce.BA]:"SVRS",[ce.CE]:"SVRS",[ce.DF]:"SVRS",[ce.ES]:"SVRS",[ce.GO]:"GO",[ce.MA]:"SVRS",[ce.MG]:"MG",[ce.MS]:"MS",[ce.MT]:"MT",[ce.PA]:"SVRS",[ce.PB]:"SVRS",[ce.PE]:"SVRS",[ce.PI]:"SVRS",[ce.PR]:"PR",[ce.RJ]:"SVRS",[ce.RN]:"SVRS",[ce.RO]:"SVRS",[ce.RR]:"SVRS",[ce.RS]:"RS",[ce.SC]:"SVRS",[ce.SE]:"SVRS",[ce.SP]:"SP",[ce.TO]:"SVRS",SVRS:"SVRS"},Bee=q2e;var oo=require("class-validator");function SA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(SA,"_ts_decorate");function $B(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($B,"_ts_metadata");var Bf=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};SA([(0,oo.IsEnum)(Be),(0,oo.IsOptional)(),$B("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Bf.prototype,"tpAmb",void 0);SA([(0,oo.IsEnum)(ce),(0,oo.IsOptional)(),$B("design:type",typeof StateCode>"u"?Object:StateCode)],Bf.prototype,"cUF",void 0);SA([(0,oo.IsString)(),(0,oo.IsOptional)(),$B("design:type",String)],Bf.prototype,"idLote",void 0);SA([(0,oo.IsOptional)(),(0,oo.IsEnum)(["0","1"])],Bf.prototype,"indSinc",void 0);SA([(0,oo.IsNotEmpty)(),$B("design:type",typeof T>"u"?Object:T)],Bf.prototype,"NFe",void 0);function H2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(H2e,"_ts_decorate");function Z5(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z5,"_ts_metadata");var Ls=class extends ka{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=Bee[t],u=$5[i][n][e.service];if(u)return u;let c=Object.keys(ce).find(l=>ce[l]===t);return $5[c][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return Oee[n][t]}async autorizacao(e){return super.autorizacao(e)}};H2e([Et(Bf),Z5("design:type",Function),Z5("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Z5("design:returntype",Promise)],Ls.prototype,"autorizacao",null);var eV=class extends mA{static{o(this,"NfceCancelPipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var tV=class extends gA{static{o(this,"NfceAuthorizerPipeline")}certificate;qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};var rV=class extends ex{static{o(this,"NfceVoidRangePipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var nV=class extends vA{static{o(this,"NfceConsultStatusPipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var iV=class extends yA{static{o(this,"NfceConsultProtocoloPipeline")}qrCode=new ra(this.certificates);transmitter=new Ls(this.soap,this.qrCode)};var nte=zt(require("path"),1);var ca=require("class-validator");var gt=require("class-validator"),ci=require("class-transformer");var nt=require("class-validator"),xA=require("class-transformer");function At(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(At,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Pf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"cUF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"AAMM",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"CNPJ",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"serie",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Pf.prototype,"nNF",void 0);var uo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"cUF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"AAMM",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"CNPJ",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"CPF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"IE",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"serie",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],uo.prototype,"nNF",void 0);uo=At([Lr({properties:["CNPJ","CPF"],required:!0})],uo);var tx=class{static{o(this,"RefECF")}mod;nECF;nCOO};At([(0,nt.IsString)(),Nt("design:type",String)],tx.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],tx.prototype,"nECF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],tx.prototype,"nCOO",void 0);var _f=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],_f.prototype,"refNFe",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],_f.prototype,"refNFeSig",void 0);At([(0,nt.IsOptional)(),(0,nt.ValidateNested)(),(0,xA.Type)(()=>Pf),Nt("design:type",typeof IRefNF>"u"?Object:IRefNF)],_f.prototype,"refNF",void 0);At([(0,nt.IsOptional)(),(0,nt.ValidateNested)(),(0,xA.Type)(()=>uo),Nt("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],_f.prototype,"refNFP",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],_f.prototype,"refCTe",void 0);At([(0,nt.IsOptional)(),(0,nt.ValidateNested)(),(0,xA.Type)(()=>tx),Nt("design:type",typeof IRefECF>"u"?Object:IRefECF)],_f.prototype,"refECF",void 0);var Br=class{static{o(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;tpNF;idDest;cMunFG;tpImp;tpEmis;cDV="";tpAmb;finNFe;indFinal;indPres;indIntermed;procEmi;verProc;dhCont;xJust;NFref};At([(0,nt.IsEnum)(ce),Nt("design:type",typeof StateCode>"u"?Object:StateCode)],Br.prototype,"cUF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"cNF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"natOp",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"mod",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"serie",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"nNF",void 0);At([Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Nt("design:type",String)],Br.prototype,"dhEmi",void 0);At([(0,nt.IsOptional)(),Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Nt("design:type",String)],Br.prototype,"dhSaiEnt",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"tpNF",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"idDest",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"cMunFG",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"tpImp",void 0);At([(0,nt.IsString)(),Nt("design:type",typeof TpEmis>"u"?Object:TpEmis)],Br.prototype,"tpEmis",void 0);At([(0,nt.IsString)(),(0,nt.IsOptional)(),Nt("design:type",String)],Br.prototype,"cDV",void 0);At([(0,nt.IsString)(),Nt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Br.prototype,"tpAmb",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"finNFe",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"indFinal",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"indPres",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"indIntermed",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"procEmi",void 0);At([(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"verProc",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Fp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Nt("design:type",String)],Br.prototype,"dhCont",void 0);At([(0,nt.IsOptional)(),(0,nt.IsString)(),Nt("design:type",String)],Br.prototype,"xJust",void 0);At([(0,nt.IsOptional)(),(0,nt.IsArray)(),(0,nt.ArrayMaxSize)(999),(0,nt.ValidateNested)({each:!0}),(0,xA.Type)(()=>_f),Nt("design:type",Array)],Br.prototype,"NFref",void 0);var Ii=require("class-validator");var Pee=require("class-transformer");var Ss=require("class-validator");function ku(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ku,"_ts_decorate");function Vu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Vu,"_ts_metadata");var ys=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xLgr",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"nro",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xCpl",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xBairro",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"cMun",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xMun",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"UF",void 0);ku([(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"CEP",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"cPais",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"xPais",void 0);ku([(0,Ss.IsOptional)(),(0,Ss.IsString)(),Vu("design:type",String)],ys.prototype,"fone",void 0);function ju(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ju,"_ts_decorate");function nl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nl,"_ts_metadata");var Yi=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CNPJ",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CPF",void 0);ju([(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"xNome",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"xFant",void 0);ju([(0,Ii.ValidateNested)(),(0,Pee.Type)(()=>ys),nl("design:type",typeof ys>"u"?Object:ys)],Yi.prototype,"enderEmit",void 0);ju([(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"IE",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"IEST",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"IM",void 0);ju([(0,Ii.IsOptional)(),(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CNAE",void 0);ju([(0,Ii.IsString)(),nl("design:type",String)],Yi.prototype,"CRT",void 0);Yi=ju([Lr({properties:["CNPJ","CPF"],required:!0})],Yi);var $n=require("class-validator"),_ee=require("class-transformer");var Cn=require("class-validator");function Mu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mu,"_ts_decorate");function Uu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Uu,"_ts_metadata");var na=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xLgr",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"nro",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xCpl",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xBairro",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"cMun",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xMun",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"UF",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"CEP",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"cPais",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"xPais",void 0);Mu([(0,Cn.IsOptional)(),(0,Cn.IsString)(),Uu("design:type",String)],na.prototype,"fone",void 0);function qu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qu,"_ts_decorate");function il(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(il,"_ts_metadata");var Qi=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"CNPJ",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"CPF",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"idEstrangeiro",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"xNome",void 0);qu([(0,$n.IsOptional)(),(0,$n.ValidateNested)(),(0,_ee.Type)(()=>na),il("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],Qi.prototype,"enderDest",void 0);qu([(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"indIEDest",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"IE",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"ISUF",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"IM",void 0);qu([(0,$n.IsOptional)(),(0,$n.IsString)(),il("design:type",String)],Qi.prototype,"email",void 0);Qi=qu([Lr({properties:["CNPJ","CPF"],required:!0})],Qi);var Gr=require("class-validator");function xs(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xs,"_ts_decorate");function ks(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ks,"_ts_metadata");var cn=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"CNPJ",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"CPF",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xNome",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xLgr",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"nro",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xCpl",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xBairro",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"cMun",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xMun",void 0);xs([(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"UF",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"CEP",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"cPais",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"xPais",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"fone",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"email",void 0);xs([(0,Gr.IsOptional)(),(0,Gr.IsString)(),ks("design:type",String)],cn.prototype,"IE",void 0);cn=xs([Lr({properties:["CNPJ","CPF"]})],cn);var rx=require("class-validator");function sV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(sV,"_ts_decorate");function Fee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Fee,"_ts_metadata");var sl=class{static{o(this,"AutXML")}CNPJ;CPF};sV([(0,rx.IsOptional)(),(0,rx.IsString)(),Fee("design:type",String)],sl.prototype,"CNPJ",void 0);sV([(0,rx.IsOptional)(),(0,rx.IsString)(),Fee("design:type",String)],sl.prototype,"CPF",void 0);sl=sV([Lr({properties:["CNPJ","CPF"]})],sl);var bA=require("class-validator");function Lee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Lee,"_ts_decorate");function kee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kee,"_ts_metadata");var wd=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};Lee([(0,bA.IsString)(),kee("design:type",String)],wd.prototype,"CNPJ",void 0);Lee([(0,bA.IsOptional)(),(0,bA.IsString)(),kee("design:type",String)],wd.prototype,"idCadIntTran",void 0);var wg=require("class-validator");function aV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(aV,"_ts_decorate");function oV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(oV,"_ts_metadata");var Ff=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};aV([(0,wg.IsString)(),oV("design:type",String)],Ff.prototype,"UFSaidaPais",void 0);aV([(0,wg.IsOptional)(),(0,wg.IsString)(),oV("design:type",String)],Ff.prototype,"xLocExporta",void 0);aV([(0,wg.IsOptional)(),(0,wg.IsString)(),oV("design:type",String)],Ff.prototype,"xLocDespacho",void 0);var Cd=require("class-validator");function uV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uV,"_ts_decorate");function cV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cV,"_ts_metadata");var Lf=class{static{o(this,"Compra")}xNEmp;xPed;xCont};uV([(0,Cd.IsOptional)(),(0,Cd.IsString)(),cV("design:type",String)],Lf.prototype,"xNEmp",void 0);uV([(0,Cd.IsOptional)(),(0,Cd.IsString)(),cV("design:type",String)],Lf.prototype,"xPed",void 0);uV([(0,Cd.IsOptional)(),(0,Cd.IsString)(),cV("design:type",String)],Lf.prototype,"xCont",void 0);var al=require("class-validator");function nx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(nx,"_ts_decorate");function ix(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ix,"_ts_metadata");var Qo=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"CNPJ",void 0);nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"xContato",void 0);nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"email",void 0);nx([(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"fone",void 0);nx([(0,al.IsOptional)(),(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"idCSRT",void 0);nx([(0,al.IsOptional)(),(0,al.IsString)(),ix("design:type",String)],Qo.prototype,"hashCSRT",void 0);var ul=require("class-validator"),IA=require("class-transformer");var Hu=require("class-validator");function Mr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mr,"_ts_decorate");function Ur(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ur,"_ts_metadata");var Er=class{static{o(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vBC",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMS",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSDeson",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCPUFDest",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSUFDest",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSUFRemet",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCP",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vBCST",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vST",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCPST",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFCPSTRet",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"qBCMono",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSMono",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"qBCMonoReten",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSMonoReten",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"qBCMonoRet",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vICMSMonoRet",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vProd",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vFrete",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vSeg",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vDesc",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vII",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vIPI",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vIPIDevol",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vPIS",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vCOFINS",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vOutro",void 0);Mr([$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vNF",void 0);Mr([(0,Hu.IsOptional)(),$({fixed:2}),Ur("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Er.prototype,"vTotTrib",void 0);var yn=require("class-validator");function $o(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($o,"_ts_decorate");function Zo(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zo,"_ts_metadata");var Vs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vServ",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vBC",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vISS",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vPIS",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vCOFINS",void 0);$o([(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"dCompet",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vDeducao",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vOutro",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vDescIncond",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vDescCond",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"vISSRet",void 0);$o([(0,yn.IsOptional)(),(0,yn.IsString)(),Zo("design:type",String)],Vs.prototype,"cRegTrib",void 0);var Ad=require("class-validator");function Cg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Cg,"_ts_decorate");function Ag(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ag,"_ts_metadata");var zu=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetPIS",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetCOFINS",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetCSLL",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vBCIRRF",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vIRRF",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vBCRetPrev",void 0);Cg([(0,Ad.IsOptional)(),$({fixed:2}),Ag("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zu.prototype,"vRetPrev",void 0);var Mf=require("class-validator");var Vf=require("class-validator");function lV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lV,"_ts_decorate");function fV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fV,"_ts_metadata");var Ng=class{static{o(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};lV([$({fixed:2}),fV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"vDif",void 0);lV([$({fixed:2}),fV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"vDevTrib",void 0);lV([$({fixed:2}),fV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"vIBSMun",void 0);var dV=require("class-transformer");function pV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pV,"_ts_decorate");function hV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hV,"_ts_metadata");var Tg=class{static{o(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};pV([$({fixed:2}),hV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vDif",void 0);pV([$({fixed:2}),hV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vDevTrib",void 0);pV([$({fixed:2}),hV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vIBSUF",void 0);function EA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(EA,"_ts_decorate");function wA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wA,"_ts_metadata");var kf=class{static{o(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};EA([(0,Vf.IsOptional)(),(0,Vf.ValidateNested)(),(0,dV.Type)(()=>Tg),wA("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],kf.prototype,"gIBSUF",void 0);EA([(0,Vf.IsOptional)(),(0,Vf.ValidateNested)(),(0,dV.Type)(()=>Ng),wA("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],kf.prototype,"gIBSMun",void 0);EA([(0,Vf.IsOptional)(),$({fixed:2}),wA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kf.prototype,"vIBS",void 0);EA([(0,Vf.IsOptional)(),$({fixed:2}),wA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kf.prototype,"vCredPres",void 0);EA([(0,Vf.IsOptional)(),$({fixed:2}),wA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kf.prototype,"vCredPresCondSus",void 0);var tP=require("class-transformer");var sx=require("class-validator");function CA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(CA,"_ts_decorate");function AA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(AA,"_ts_metadata");var jf=class{static{o(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vDif",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vDevTrib",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vCBS",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vCredPres",void 0);CA([(0,sx.IsOptional)(),$({fixed:2}),AA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jf.prototype,"vCredPresCondSus",void 0);var Ig=require("class-validator");function ax(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ax,"_ts_decorate");function ox(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ox,"_ts_metadata");var ol=class{static{o(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vIBSMono",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vCBSMono",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vIBSMonoReten",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vCBSMonoReten",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vIBSMonoRet",void 0);ax([(0,Ig.IsOptional)(),$({fixed:2}),ox("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ol.prototype,"vCBSMonoRet",void 0);function ZB(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ZB,"_ts_decorate");function eP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(eP,"_ts_metadata");var Nd=class{static{o(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono};ZB([(0,Mf.IsOptional)(),$({fixed:2}),eP("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nd.prototype,"vBCIBSCBS",void 0);ZB([(0,Mf.IsOptional)(),(0,Mf.ValidateNested)(),(0,tP.Type)(()=>kf),eP("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],Nd.prototype,"gIBS",void 0);ZB([(0,Mf.IsOptional)(),(0,Mf.ValidateNested)(),(0,tP.Type)(()=>jf),eP("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],Nd.prototype,"gCBS",void 0);ZB([(0,Mf.IsOptional)(),(0,Mf.ValidateNested)(),(0,tP.Type)(()=>ol),eP("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],Nd.prototype,"gMono",void 0);function NA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NA,"_ts_decorate");function TA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(TA,"_ts_metadata");var Ku=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib;IBSCBSTot;vNFTot};NA([(0,ul.ValidateNested)(),(0,IA.Type)(()=>Er),TA("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Ku.prototype,"ICMSTot",void 0);NA([(0,ul.IsOptional)(),(0,ul.ValidateNested)(),(0,IA.Type)(()=>Vs),TA("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Ku.prototype,"ISSQNtot",void 0);NA([(0,ul.IsOptional)(),(0,ul.ValidateNested)(),(0,IA.Type)(()=>zu),TA("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Ku.prototype,"retTrib",void 0);NA([(0,ul.IsOptional)(),(0,ul.ValidateNested)(),(0,IA.Type)(()=>Nd),TA("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],Ku.prototype,"IBSCBSTot",void 0);NA([(0,ul.IsOptional)(),$({fixed:2}),TA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ku.prototype,"vNFTot",void 0);var ai=require("class-validator"),dx=require("class-transformer");var Ms=require("class-validator");function Td(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Td,"_ts_decorate");function Dg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Dg,"_ts_metadata");var js=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"CNPJ",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"CPF",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"xNome",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"IE",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"xEnder",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"xMun",void 0);Td([(0,Ms.IsOptional)(),(0,Ms.IsString)(),Dg("design:type",String)],js.prototype,"UF",void 0);js=Td([Lr({properties:["CNPJ","CPF"]})],js);var cl=require("class-validator");function ux(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ux,"_ts_decorate");function cx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cx,"_ts_metadata");var co=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};ux([(0,cl.IsOptional)(),$({fixed:2}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vServ",void 0);ux([(0,cl.IsOptional)(),$({fixed:2}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vBCRet",void 0);ux([(0,cl.IsOptional)(),$({fixed:4}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pICMSRet",void 0);ux([(0,cl.IsOptional)(),$({fixed:2}),cx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"vICMSRet",void 0);ux([(0,cl.IsOptional)(),(0,cl.IsString)(),cx("design:type",String)],co.prototype,"CFOP",void 0);ux([(0,cl.IsOptional)(),(0,cl.IsString)(),cx("design:type",String)],co.prototype,"cMunFG",void 0);var ja=require("class-validator");function lx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lx,"_ts_decorate");function fx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fx,"_ts_metadata");var ll=class{static{o(this,"VeicTransp")}placa;UF;RNTC};lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],ll.prototype,"placa",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],ll.prototype,"UF",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],ll.prototype,"RNTC",void 0);var Rg=class{static{o(this,"Reboque")}placa;UF;RNTC};lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],Rg.prototype,"placa",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],Rg.prototype,"UF",void 0);lx([(0,ja.IsOptional)(),(0,ja.IsString)(),fx("design:type",String)],Rg.prototype,"RNTC",void 0);var eu=require("class-validator");function px(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(px,"_ts_decorate");function hx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hx,"_ts_metadata");var fl=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"qVol",void 0);px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"esp",void 0);px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"marca",void 0);px([(0,eu.IsOptional)(),(0,eu.IsString)(),hx("design:type",String)],fl.prototype,"nVol",void 0);px([(0,eu.IsOptional)(),$({fixed:3}),hx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fl.prototype,"pesoL",void 0);px([(0,eu.IsOptional)(),$({fixed:3}),hx("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fl.prototype,"pesoB",void 0);function Uf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Uf,"_ts_decorate");function Id(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Id,"_ts_metadata");var Us=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Uf([(0,ai.IsString)(),Id("design:type",String)],Us.prototype,"modFrete",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)(),(0,dx.Type)(()=>js),Id("design:type",typeof js>"u"?Object:js)],Us.prototype,"transporta",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)(),(0,dx.Type)(()=>co),Id("design:type",typeof co>"u"?Object:co)],Us.prototype,"retTransp",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)(),(0,dx.Type)(()=>ll),Id("design:type",typeof ll>"u"?Object:ll)],Us.prototype,"veicTransp",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)({each:!0}),(0,dx.Type)(()=>Rg),(0,ai.ArrayMaxSize)(5),Id("design:type",Array)],Us.prototype,"reboque",void 0);Uf([(0,ai.IsOptional)(),(0,ai.IsString)(),Id("design:type",String)],Us.prototype,"vagao",void 0);Uf([(0,ai.IsOptional)(),(0,ai.IsString)(),Id("design:type",String)],Us.prototype,"balsa",void 0);Uf([(0,ai.IsOptional)(),(0,ai.ValidateNested)({each:!0}),(0,dx.Type)(()=>fl),(0,ai.ArrayMaxSize)(5e3),Id("design:type",Array)],Us.prototype,"vol",void 0);Us=Uf([Lr({properties:["veicTransp","reboque"]}),Lr({properties:["vagao","balsa"]})],Us);var Di=require("class-validator"),mV=require("class-transformer");function Hf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hf,"_ts_decorate");function zf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zf,"_ts_metadata");var qf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Hf([(0,Di.IsOptional)(),(0,Di.IsString)(),zf("design:type",String)],qf.prototype,"nFat",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qf.prototype,"vOrig",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qf.prototype,"vDesc",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qf.prototype,"vLiq",void 0);var mx=class{static{o(this,"Dup")}nDup;dVenc;vDup};Hf([(0,Di.IsOptional)(),(0,Di.IsString)(),zf("design:type",String)],mx.prototype,"nDup",void 0);Hf([(0,Di.IsOptional)(),(0,Di.IsString)(),zf("design:type",String)],mx.prototype,"dVenc",void 0);Hf([(0,Di.IsOptional)(),$({fixed:2}),zf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],mx.prototype,"vDup",void 0);var Dd=class{static{o(this,"Cobr")}fat;dup};Hf([(0,Di.IsOptional)(),(0,Di.ValidateNested)(),(0,mV.Type)(()=>qf),zf("design:type",typeof qf>"u"?Object:qf)],Dd.prototype,"fat",void 0);Hf([(0,Di.IsOptional)(),(0,Di.ValidateNested)({each:!0}),(0,Di.ArrayMaxSize)(120),(0,mV.Type)(()=>mx),zf("design:type",Array)],Dd.prototype,"dup",void 0);var Od=require("class-validator"),Uee=require("class-transformer");var pl=require("class-validator"),Vee=require("class-transformer");var Ma=require("class-validator");function gx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gx,"_ts_decorate");function vx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vx,"_ts_metadata");var lo=class{static{o(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"tpIntegra",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"CNPJ",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"tBand",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"cAut",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"CNPJReceb",void 0);gx([(0,Ma.IsOptional)(),(0,Ma.IsString)(),vx("design:type",String)],lo.prototype,"idTermPag",void 0);function DA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DA,"_ts_decorate");function RA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(RA,"_ts_metadata");var Kf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};DA([(0,pl.IsOptional)(),(0,pl.IsString)(),RA("design:type",String)],Kf.prototype,"indPag",void 0);DA([(0,pl.IsString)(),RA("design:type",typeof TPag>"u"?Object:TPag)],Kf.prototype,"tPag",void 0);DA([$({fixed:2}),RA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vPag",void 0);DA([(0,pl.IsOptional)(),(0,pl.ValidateNested)(),(0,Vee.Type)(()=>lo),RA("design:type",typeof lo>"u"?Object:lo)],Kf.prototype,"card",void 0);DA([(0,pl.IsOptional)(),(0,pl.IsString)(),RA("design:type",String)],Kf.prototype,"xPag",void 0);function jee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jee,"_ts_decorate");function Mee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Mee,"_ts_metadata");var Rd=class{static{o(this,"Pag")}detPag;vTroco};jee([(0,Od.ValidateNested)({each:!0}),(0,Od.ArrayMinSize)(1),(0,Od.ArrayMaxSize)(100),(0,Uee.Type)(()=>Kf),Mee("design:type",Array)],Rd.prototype,"detPag",void 0);jee([(0,Od.IsOptional)(),$({fixed:2}),Mee("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rd.prototype,"vTroco",void 0);var Un=require("class-validator"),rP=require("class-transformer");function Gf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Gf,"_ts_decorate");function Xf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Xf,"_ts_metadata");var yx=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Gf([(0,Un.IsString)(),Xf("design:type",String)],yx.prototype,"xCampo",void 0);Gf([(0,Un.IsString)(),Xf("design:type",String)],yx.prototype,"xTexto",void 0);var OA=class{static{o(this,"ProcRef")}nProc;indProc};Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],OA.prototype,"nProc",void 0);Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],OA.prototype,"indProc",void 0);var Gu=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],Gu.prototype,"infAdFisco",void 0);Gf([(0,Un.IsOptional)(),(0,Un.IsString)(),Xf("design:type",String)],Gu.prototype,"infCpl",void 0);Gf([(0,Un.IsOptional)(),(0,Un.ValidateNested)({each:!0}),(0,rP.Type)(()=>yx),(0,Un.ArrayMaxSize)(10),Xf("design:type",Array)],Gu.prototype,"obsCont",void 0);Gf([(0,Un.IsOptional)(),(0,Un.ValidateNested)({each:!0}),(0,rP.Type)(()=>yx),(0,Un.ArrayMaxSize)(10),Xf("design:type",Array)],Gu.prototype,"obsFisco",void 0);Gf([(0,Un.IsOptional)(),(0,Un.ValidateNested)({each:!0}),(0,rP.Type)(()=>OA),(0,Un.ArrayMaxSize)(100),Xf("design:type",Array)],Gu.prototype,"procRef",void 0);var $r=require("class-validator"),iP=require("class-transformer");function ia(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ia,"_ts_decorate");function sa(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(sa,"_ts_metadata");var nP=class{static{o(this,"ForDiaAttributes")}dia};ia([(0,$r.IsString)(),sa("design:type",String)],nP.prototype,"dia",void 0);var BA=class{static{o(this,"ForDia")}$;qtde};ia([(0,$r.IsObject)(),(0,$r.IsNotEmptyObject)(),(0,iP.Type)(()=>nP),sa("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],BA.prototype,"$",void 0);ia([(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],BA.prototype,"qtde",void 0);var PA=class{static{o(this,"Deduc")}xDed;vDed};ia([(0,$r.IsString)(),sa("design:type",String)],PA.prototype,"xDed",void 0);ia([$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],PA.prototype,"vDed",void 0);var qs=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};ia([(0,$r.IsString)(),sa("design:type",String)],qs.prototype,"safra",void 0);ia([(0,$r.IsString)(),sa("design:type",String)],qs.prototype,"ref",void 0);ia([(0,$r.ValidateNested)({each:!0}),(0,$r.ArrayMaxSize)(31),(0,iP.Type)(()=>BA),sa("design:type",Array)],qs.prototype,"forDia",void 0);ia([(0,$r.IsOptional)(),(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"qTotMes",void 0);ia([(0,$r.IsOptional)(),(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"qTotAnt",void 0);ia([(0,$r.IsOptional)(),(0,$r.IsString)(),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"qTotGer",void 0);ia([(0,$r.IsOptional)(),(0,$r.ValidateNested)({each:!0}),(0,$r.ArrayMaxSize)(10),(0,iP.Type)(()=>PA),sa("design:type",Array)],qs.prototype,"deduc",void 0);ia([(0,$r.IsOptional)(),$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"vFor",void 0);ia([(0,$r.IsOptional)(),$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"vTotDed",void 0);ia([(0,$r.IsOptional)(),$({fixed:2}),sa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qs.prototype,"vLiqFor",void 0);var ws=require("class-validator"),Fx=require("class-transformer");var Je=require("class-validator");var hl=require("class-transformer");var Xu=require("class-validator");function _A(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_A,"_ts_decorate");function FA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FA,"_ts_metadata");var Wf=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};_A([(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"nLote",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"qLote",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"dFab",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"dVal",void 0);_A([(0,Xu.IsOptional)(),(0,Xu.IsString)(),FA("design:type",String)],Wf.prototype,"cAgreg",void 0);var qr=require("class-validator"),qee=require("class-transformer");function Zi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zi,"_ts_decorate");function bs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bs,"_ts_metadata");var Bd=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Zi([(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"nAdicao",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"nSeqAdic",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"cFabricante",void 0);Zi([$({fixed:2}),bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bd.prototype,"vDescDI",void 0);Zi([(0,qr.IsOptional)(),(0,qr.IsString)(),bs("design:type",String)],Bd.prototype,"nDraw",void 0);var $i=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"nDI",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"dDI",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"xLocDesemb",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"UFDesemb",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"dDesemb",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"tpViaTransp",void 0);Zi([(0,qr.IsOptional)(),$({fixed:2}),bs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$i.prototype,"vAFRMM",void 0);Zi([(0,qr.IsString)(),bs("design:type",String)],$i.prototype,"tpIntermedio",void 0);Zi([(0,qr.IsString)(),(0,qr.IsOptional)(),bs("design:type",String)],$i.prototype,"CNPJ",void 0);Zi([(0,qr.IsString)(),(0,qr.IsOptional)(),bs("design:type",String)],$i.prototype,"CPF",void 0);Zi([(0,qr.IsString)(),(0,qr.IsOptional)(),bs("design:type",String)],$i.prototype,"UFTerceiro",void 0);Zi([(0,qr.IsArray)(),(0,qr.ValidateNested)({each:!0}),(0,qee.Type)(()=>Bd),(0,qr.ArrayMaxSize)(999),(0,qr.ArrayMinSize)(1),bs("design:type",Array)],$i.prototype,"adi",void 0);$i=Zi([Lr({properties:["CNPJ","CPF"],required:!0})],$i);var Hee=require("class-transformer"),Jf=require("class-validator");function LA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(LA,"_ts_decorate");function kA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kA,"_ts_metadata");var Sx=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};LA([(0,Jf.IsString)(),kA("design:type",String)],Sx.prototype,"nRE",void 0);LA([(0,Jf.IsString)(),kA("design:type",String)],Sx.prototype,"chNFe",void 0);LA([$({fixed:4}),kA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Sx.prototype,"qExport",void 0);var xx=class{static{o(this,"DetExport")}nDraw;exportInd};LA([(0,Jf.IsOptional)(),(0,Jf.IsString)(),kA("design:type",String)],xx.prototype,"nDraw",void 0);LA([(0,Jf.IsOptional)(),(0,Jf.ValidateNested)(),(0,Hee.Type)(()=>Sx),kA("design:type",typeof IExportInd>"u"?Object:IExportInd)],xx.prototype,"exportInd",void 0);var gV=require("class-validator");function zee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zee,"_ts_decorate");function Kee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Kee,"_ts_metadata");var bx=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};zee([(0,gV.IsString)(),Kee("design:type",String)],bx.prototype,"cProdFisco",void 0);zee([(0,gV.IsString)(),Kee("design:type",String)],bx.prototype,"cOperNFF",void 0);var SV=require("class-validator");function vV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vV,"_ts_decorate");function yV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yV,"_ts_metadata");var Og=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};vV([(0,SV.IsString)(),yV("design:type",String)],Og.prototype,"xEmb",void 0);vV([$({fixed:3}),yV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Og.prototype,"qVolEmb",void 0);vV([(0,SV.IsString)(),yV("design:type",String)],Og.prototype,"uEmb",void 0);var Sn=require("class-validator");function An(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(An,"_ts_decorate");function Nn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nn,"_ts_metadata");var Xr=class{static{o(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpOp",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"chassi",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cCor",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"xCor",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"pot",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cilin",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"pesoL",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"pesoB",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"nSerie",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpComb",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"nMotor",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"CMT",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"dist",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"anoMod",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"anoFab",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpPint",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpVeic",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"espVeic",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"VIN",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"condVeic",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cMod",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"cCorDENATRAN",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"lota",void 0);An([(0,Sn.IsString)(),Nn("design:type",String)],Xr.prototype,"tpRest",void 0);var EV=require("class-validator");function xV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xV,"_ts_decorate");function bV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bV,"_ts_metadata");var Bg=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};xV([(0,EV.IsString)(),bV("design:type",String)],Bg.prototype,"cProdANVISA",void 0);xV([(0,EV.IsString)(),bV("design:type",String)],Bg.prototype,"xMotivoIsencao",void 0);xV([$({fixed:2}),bV("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bg.prototype,"vPMC",void 0);var VA=require("class-validator");function sP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(sP,"_ts_decorate");function aP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(aP,"_ts_metadata");var Pd=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"tpArma",void 0);sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"nSerie",void 0);sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"nCano",void 0);sP([(0,VA.IsString)(),aP("design:type",String)],Pd.prototype,"descr",void 0);var yr=require("class-validator"),oP=require("class-transformer");function Tn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Tn,"_ts_decorate");function In(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(In,"_ts_metadata");var Ex=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};Tn([(0,yr.IsString)(),In("design:type",String)],Ex.prototype,"indImport",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],Ex.prototype,"cUFOrig",void 0);Tn([$({fixed:4}),(0,yr.Max)(100),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ex.prototype,"pOrig",void 0);var wx=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};Tn([$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wx.prototype,"qBCProd",void 0);Tn([$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wx.prototype,"vAliqProd",void 0);Tn([$({fixed:2}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wx.prototype,"vCIDE",void 0);var _d=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};Tn([(0,yr.IsString)(),In("design:type",String)],_d.prototype,"nBico",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],_d.prototype,"nBomba",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],_d.prototype,"nTanque",void 0);Tn([$({fixed:3}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_d.prototype,"vEncIni",void 0);Tn([$({fixed:3}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_d.prototype,"vEncFin",void 0);var Es=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};Tn([(0,yr.IsString)(),In("design:type",String)],Es.prototype,"cProdANP",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],Es.prototype,"descANP",void 0);Tn([(0,yr.IsOptional)(),(0,yr.Max)(100),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pGLP",void 0);Tn([(0,yr.IsOptional)(),(0,yr.Max)(100),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pGNn",void 0);Tn([(0,yr.IsOptional)(),(0,yr.Max)(100),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pGNi",void 0);Tn([(0,yr.IsOptional)(),$({fixed:2}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"vPart",void 0);Tn([(0,yr.IsString)(),(0,yr.IsOptional)(),In("design:type",String)],Es.prototype,"CODIF",void 0);Tn([(0,yr.IsOptional)(),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"qTemp",void 0);Tn([(0,yr.IsString)(),In("design:type",String)],Es.prototype,"UFCons",void 0);Tn([(0,yr.IsObject)(),(0,yr.ValidateNested)(),(0,oP.Type)(()=>wx),In("design:type",typeof ICIDE>"u"?Object:ICIDE)],Es.prototype,"CIDE",void 0);Tn([(0,yr.IsObject)(),(0,yr.ValidateNested)(),(0,oP.Type)(()=>_d),In("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Es.prototype,"encerrante",void 0);Tn([(0,yr.IsOptional)(),$({fixed:4}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Es.prototype,"pBio",void 0);Tn([(0,yr.IsObject)(),(0,yr.ValidateNested)({each:!0}),(0,oP.Type)(()=>Ex),(0,yr.ArrayMaxSize)(30),(0,yr.IsOptional)(),In("design:type",Array)],Es.prototype,"origComb",void 0);function Qt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qt,"_ts_decorate");function Zt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zt,"_ts_metadata");var Tt=class{static{o(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cProd",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cEAN",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cBarra",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"xProd",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"NCM",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ArrayMaxSize)(8),(0,Je.IsString)({each:!0}),Zt("design:type",Array)],Tt.prototype,"NVE",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"CEST",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"indEscala",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"CNPJFab",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cBenef",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),Zt("design:type",Object)],Tt.prototype,"gCred",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"EXTIPI",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"CFOP",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"uCom",void 0);Qt([$({fixed:4}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"qCom",void 0);Qt([$({fixed:10}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vUnCom",void 0);Qt([$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vProd",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"cEANTrib",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"uTrib",void 0);Qt([$({fixed:4}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"qTrib",void 0);Qt([$({fixed:10}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vUnTrib",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vFrete",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vSeg",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vDesc",void 0);Qt([(0,Je.IsOptional)(),$({fixed:2}),Zt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vOutro",void 0);Qt([(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"indTot",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ValidateNested)({each:!0}),(0,Je.ArrayMaxSize)(100),(0,hl.Type)(()=>$i),Zt("design:type",Array)],Tt.prototype,"DI",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ValidateNested)({each:!0}),(0,Je.ArrayMaxSize)(500),(0,hl.Type)(()=>xx),Zt("design:type",Array)],Tt.prototype,"detExport",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"xPed",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"nItemPed",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"nFCI",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsArray)(),(0,Je.ValidateNested)({each:!0}),(0,Je.ArrayMaxSize)(500),(0,hl.Type)(()=>Wf),Zt("design:type",Array)],Tt.prototype,"rastro",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>bx),Zt("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],Tt.prototype,"infProdNFF",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Og),Zt("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],Tt.prototype,"infProdEmb",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Xr),Zt("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],Tt.prototype,"veicProd",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Bg),Zt("design:type",typeof IMed>"u"?Object:IMed)],Tt.prototype,"med",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)({each:!0}),(0,hl.Type)(()=>Pd),(0,Je.ArrayMaxSize)(500),Zt("design:type",Array)],Tt.prototype,"arma",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsObject)(),(0,Je.ValidateNested)(),(0,hl.Type)(()=>Es),Zt("design:type",typeof IComb>"u"?Object:IComb)],Tt.prototype,"comb",void 0);Qt([(0,Je.IsOptional)(),(0,Je.IsString)(),Zt("design:type",String)],Tt.prototype,"nRECOPI",void 0);Tt=Qt([Lr({properties:["veicProd","med","arma","comb"]})],Tt);var ou=require("class-transformer"),en=require("class-validator");var ae=require("class-validator"),ts=require("class-transformer");function ve(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ve,"_ts_decorate");function Se(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Se,"_ts_metadata");var Yf=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};ve([(0,ae.IsString)(),Se("design:type",String)],Yf.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Yf.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Yf.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"vICMS",void 0);var fo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],fo.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fo.prototype,"vICMSST",void 0);var dl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};ve([(0,ae.IsString)(),Se("design:type",String)],dl.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],dl.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],dl.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dl.prototype,"vICMS",void 0);var Qf=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],Qf.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Qf.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Qf.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qf.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qf.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qf.prototype,"vICMSST",void 0);var Pg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};ve([(0,ae.IsString)(),Se("design:type",String)],Pg.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Pg.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pg.prototype,"vICMSDeson",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Pg.prototype,"motDesICMS",void 0);var tu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};ve([(0,ae.IsString)(),Se("design:type",String)],tu.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],tu.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],tu.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),(0,ae.Max)(100),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"pDif",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tu.prototype,"vICMSDif",void 0);var $f=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};ve([(0,ae.IsString)(),Se("design:type",String)],$f.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],$f.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"vBCSTRet",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"pST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"vICMSSubstituto",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$f.prototype,"vICMSSTRet",void 0);var Ua=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Ua.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vICMSST",void 0);var qa=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],qa.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"vICMSST",void 0);var es=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};ve([(0,ae.IsString)(),Se("design:type",String)],es.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],es.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],es.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],es.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pMVAST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pRedBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"vICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],es.prototype,"pBCOp",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],es.prototype,"UFST",void 0);var Zf=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};ve([(0,ae.IsString)(),Se("design:type",String)],Zf.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Zf.prototype,"CST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vBCSTRet",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"pST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vICMSSubstituto",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vICMSSTRet",void 0);var _g=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};ve([(0,ae.IsString)(),Se("design:type",String)],_g.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],_g.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_g.prototype,"pCredSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_g.prototype,"vCredICMSSN",void 0);var jA=class{static{o(this,"ICMSSN102")}orig;CSOSN};ve([(0,ae.IsString)(),Se("design:type",String)],jA.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],jA.prototype,"CSOSN",void 0);var Wu=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};ve([(0,ae.IsString)(),Se("design:type",String)],Wu.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Wu.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Wu.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"vICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"pCredSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wu.prototype,"vCredICMSSN",void 0);var ep=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};ve([(0,ae.IsString)(),Se("design:type",String)],ep.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],ep.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],ep.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vICMSST",void 0);var tp=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};ve([(0,ae.IsString)(),Se("design:type",String)],tp.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],tp.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vBCSTRet",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"pST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSubstituto",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSTRet",void 0);var Hs=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};ve([(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"orig",void 0);ve([(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"CSOSN",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"modBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pRedBC",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pICMS",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vICMS",void 0);ve([(0,ae.IsOptional)(),(0,ae.IsString)(),Se("design:type",String)],Hs.prototype,"modBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vBCST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vICMSST",void 0);ve([(0,ae.IsOptional)(),$({fixed:4}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"pCredSN",void 0);ve([(0,ae.IsOptional)(),$({fixed:2}),Se("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Hs.prototype,"vCredICMSSN",void 0);var xn=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Yf),Se("design:type",typeof IICMS00>"u"?Object:IICMS00)],xn.prototype,"ICMS00",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>fo),Se("design:type",typeof IICMS10>"u"?Object:IICMS10)],xn.prototype,"ICMS10",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>dl),Se("design:type",typeof IICMS20>"u"?Object:IICMS20)],xn.prototype,"ICMS20",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Qf),Se("design:type",typeof IICMS30>"u"?Object:IICMS30)],xn.prototype,"ICMS30",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Pg),Se("design:type",typeof IICMS40>"u"?Object:IICMS40)],xn.prototype,"ICMS40",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>tu),Se("design:type",typeof IICMS51>"u"?Object:IICMS51)],xn.prototype,"ICMS51",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>$f),Se("design:type",typeof IICMS60>"u"?Object:IICMS60)],xn.prototype,"ICMS60",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Ua),Se("design:type",typeof IICMS70>"u"?Object:IICMS70)],xn.prototype,"ICMS70",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>qa),Se("design:type",typeof IICMS90>"u"?Object:IICMS90)],xn.prototype,"ICMS90",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>es),Se("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],xn.prototype,"ICMSPart",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Zf),Se("design:type",typeof IICMSST>"u"?Object:IICMSST)],xn.prototype,"ICMSST",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>_g),Se("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],xn.prototype,"ICMSSN101",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>jA),Se("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],xn.prototype,"ICMSSN102",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Wu),Se("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],xn.prototype,"ICMSSN201",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>ep),Se("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],xn.prototype,"ICMSSN202",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>tp),Se("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],xn.prototype,"ICMSSN500",void 0);ve([(0,ae.IsOptional)(),(0,ae.ValidateNested)(),(0,ts.Type)(()=>Hs),Se("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],xn.prototype,"ICMSSN900",void 0);xn=ve([Lr({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],xn);var ln=require("class-validator"),wV=require("class-transformer");function po(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(po,"_ts_decorate");function ho(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ho,"_ts_metadata");var rp=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};po([(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"CST",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"vBC",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"pIPI",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"qUnid",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"vUnid",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],rp.prototype,"vIPI",void 0);var uP=class{static{o(this,"IPINT")}CST};po([(0,ln.IsString)(),ho("design:type",String)],uP.prototype,"CST",void 0);var ru=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"CNPJProd",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"cSelo",void 0);po([(0,ln.IsOptional)(),(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"qSelo",void 0);po([(0,ln.IsString)(),ho("design:type",String)],ru.prototype,"cEnq",void 0);po([(0,ln.IsOptional)(),(0,ln.ValidateNested)(),(0,wV.Type)(()=>rp),ho("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],ru.prototype,"IPITrib",void 0);po([(0,ln.IsOptional)(),(0,ln.ValidateNested)(),(0,wV.Type)(()=>uP),ho("design:type",typeof IIPINT>"u"?Object:IIPINT)],ru.prototype,"IPINT",void 0);var gl=require("class-validator");function cP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(cP,"_ts_decorate");function lP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(lP,"_ts_metadata");var ml=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vBC",void 0);cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vDespAdu",void 0);cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vII",void 0);cP([(0,gl.IsOptional)(),(0,gl.IsString)(),lP("design:type",String)],ml.prototype,"vIOF",void 0);var It=require("class-validator"),MA=require("class-transformer");function Dn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dn,"_ts_decorate");function Rn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Rn,"_ts_metadata");var np=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};Dn([(0,It.IsString)(),Rn("design:type",String)],np.prototype,"CST",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),$({fixed:2}),Rn("design:type",String)],np.prototype,"vBC",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],np.prototype,"pPIS",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],np.prototype,"vPIS",void 0);var ip=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};Dn([(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"CST",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"qBCProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"vAliqProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],ip.prototype,"vPIS",void 0);var Cx=class{static{o(this,"PISNT")}CST};Dn([(0,It.IsString)(),Rn("design:type",String)],Cx.prototype,"CST",void 0);var Ju=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};Dn([(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"CST",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),$({fixed:2}),Rn("design:type",String)],Ju.prototype,"vBC",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"pPIS",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"qBCProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"vAliqProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Ju.prototype,"vPIS",void 0);var vl=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>np),Rn("design:type",typeof np>"u"?Object:np)],vl.prototype,"PISAliq",void 0);Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>ip),Rn("design:type",typeof ip>"u"?Object:ip)],vl.prototype,"PISQtde",void 0);Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>Cx),Rn("design:type",typeof Cx>"u"?Object:Cx)],vl.prototype,"PISNT",void 0);Dn([(0,It.IsOptional)(),(0,It.ValidateNested)(),(0,MA.Type)(()=>Ju),Rn("design:type",typeof Ju>"u"?Object:Ju)],vl.prototype,"PISOutr",void 0);var Yu=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};Dn([(0,It.IsOptional)(),(0,It.IsString)(),$({fixed:2}),Rn("design:type",String)],Yu.prototype,"vBC",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"pPIS",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"qBCProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"vAliqProd",void 0);Dn([(0,It.IsOptional)(),(0,It.IsString)(),Rn("design:type",String)],Yu.prototype,"vPIS",void 0);var Dt=require("class-validator"),UA=require("class-transformer");function On(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(On,"_ts_decorate");function Bn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Bn,"_ts_metadata");var sp=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};On([(0,Dt.IsString)(),Bn("design:type",String)],sp.prototype,"CST",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),$({fixed:2}),Bn("design:type",String)],sp.prototype,"vBC",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],sp.prototype,"pCOFINS",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],sp.prototype,"vCOFINS",void 0);var ap=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};On([(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"CST",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"qBCProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"vAliqProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],ap.prototype,"vCOFINS",void 0);var Ax=class{static{o(this,"COFINSNT")}CST};On([(0,Dt.IsString)(),Bn("design:type",String)],Ax.prototype,"CST",void 0);var Qu=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};On([(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"CST",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),$({fixed:2}),Bn("design:type",String)],Qu.prototype,"vBC",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"pCOFINS",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"qBCProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"vAliqProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],Qu.prototype,"vCOFINS",void 0);var yl=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>sp),Bn("design:type",typeof sp>"u"?Object:sp)],yl.prototype,"COFINSAliq",void 0);On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>ap),Bn("design:type",typeof ap>"u"?Object:ap)],yl.prototype,"COFINSQtde",void 0);On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>Ax),Bn("design:type",typeof Ax>"u"?Object:Ax)],yl.prototype,"COFINSNT",void 0);On([(0,Dt.IsOptional)(),(0,Dt.ValidateNested)(),(0,UA.Type)(()=>Qu),Bn("design:type",typeof Qu>"u"?Object:Qu)],yl.prototype,"COFINSOutr",void 0);var $u=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),$({fixed:2}),Bn("design:type",String)],$u.prototype,"vBC",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"pCOFINS",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"qBCProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"vAliqProd",void 0);On([(0,Dt.IsOptional)(),(0,Dt.IsString)(),Bn("design:type",String)],$u.prototype,"vCOFINS",void 0);var Ha=require("class-validator");function Nx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Nx,"_ts_decorate");function Tx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Tx,"_ts_metadata");var nu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"vBC",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"vAliq",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"vISSQN",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"cMunFG",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"cListServ",void 0);Nx([(0,Ha.IsOptional)(),(0,Ha.IsString)(),Tx("design:type",String)],nu.prototype,"cSitTrib",void 0);var di=require("class-validator");function op(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(op,"_ts_decorate");function up(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(up,"_ts_metadata");var aa=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vBCUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vBCFCPUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pFCPUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pICMSUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pICMSInter",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"pICMSInterPart",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vFCPUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vICMSUFDest",void 0);op([(0,di.IsOptional)(),(0,di.IsString)(),up("design:type",String)],aa.prototype,"vICMSUFRemet",void 0);var qn=require("class-validator");var Ix=require("class-validator");function Gee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Gee,"_ts_decorate");function Xee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Xee,"_ts_metadata");var Fd=class{static{o(this,"TransferenciaCredito")}vIBS;vCBS};Gee([(0,Ix.IsOptional)(),(0,Ix.IsString)(),Xee("design:type",String)],Fd.prototype,"vIBS",void 0);Gee([(0,Ix.IsOptional)(),(0,Ix.IsString)(),Xee("design:type",String)],Fd.prototype,"vCBS",void 0);var fP=require("class-validator");function CV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(CV,"_ts_decorate");function AV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(AV,"_ts_metadata");var cp=class{static{o(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};CV([(0,fP.IsString)(),AV("design:type",String)],cp.prototype,"tpCredPresIBSZFM",void 0);CV([(0,fP.IsString)(),AV("design:type",String)],cp.prototype,"vCredPresIBSZFM",void 0);CV([(0,fP.IsString)(),AV("design:type",String)],cp.prototype,"competApur",void 0);var oa=require("class-validator"),NV=require("class-transformer");function xl(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xl,"_ts_decorate");function bl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bl,"_ts_metadata");var Ld=class{static{o(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};xl([(0,oa.IsString)(),bl("design:type",String)],Ld.prototype,"vCredPresCondSus",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Ld.prototype,"pCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Ld.prototype,"vCredPres",void 0);var kd=class{static{o(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};xl([(0,oa.IsString)(),bl("design:type",String)],kd.prototype,"vCredPresCondSus",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],kd.prototype,"pCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],kd.prototype,"vCredPres",void 0);var Sl=class{static{o(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};xl([(0,oa.IsOptional)(),(0,oa.ValidateNested)(),(0,NV.Type)(()=>Ld),bl("design:type",typeof Ld>"u"?Object:Ld)],Sl.prototype,"gIBSCredPres",void 0);xl([(0,oa.IsOptional)(),(0,oa.ValidateNested)(),(0,NV.Type)(()=>kd),bl("design:type",typeof kd>"u"?Object:kd)],Sl.prototype,"gCBSCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Sl.prototype,"vBCCredPres",void 0);xl([(0,oa.IsString)(),bl("design:type",String)],Sl.prototype,"cCredPres",void 0);var TV=require("class-validator");function Wee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Wee,"_ts_decorate");function Jee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Jee,"_ts_metadata");var Vd=class{static{o(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};Wee([(0,TV.IsString)(),Jee("design:type",String)],Vd.prototype,"vIBSEstCred",void 0);Wee([(0,TV.IsString)(),Jee("design:type",String)],Vd.prototype,"vCBSEstCred",void 0);var pP=require("class-validator");function IV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(IV,"_ts_decorate");function DV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(DV,"_ts_metadata");var lp=class{static{o(this,"AjusteCompet")}competApur;vCBS;vIBS};IV([(0,pP.IsString)(),DV("design:type",String)],lp.prototype,"competApur",void 0);IV([(0,pP.IsString)(),DV("design:type",String)],lp.prototype,"vCBS",void 0);IV([(0,pP.IsString)(),DV("design:type",String)],lp.prototype,"vIBS",void 0);var ar=require("class-validator");function oi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(oi,"_ts_decorate");function ui(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ui,"_ts_metadata");var Zr=class{static{o(this,"IBSCBSMono")}vTotIBSMonoItem;vTotCBSMonoItem;adRemIBS;adRemCBS;vIBSMono;vCBSMono;qBCMono;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten;qBCMonoReten;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet;qBCMonoRet;vIBSMonoDif;vCBSMonoDif;pDifIBS;pDifCBS};oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vTotIBSMonoItem",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vTotCBSMonoItem",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemIBS",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemCBS",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMono",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMono",void 0);oi([(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"qBCMono",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemIBSReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMonoReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemCBSReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMonoReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"qBCMonoReten",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemIBSRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMonoRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"adRemCBSRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMonoRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"qBCMonoRet",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vIBSMonoDif",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"vCBSMonoDif",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"pDifIBS",void 0);oi([(0,ar.IsOptional)(),(0,ar.IsString)(),ui("design:type",String)],Zr.prototype,"pDifCBS",void 0);var mo=require("class-validator");var fp=require("class-validator");function jd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jd,"_ts_decorate");function Md(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Md,"_ts_metadata");var za=class{static{o(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"CSTReg",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"cClassTribReg",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"pAliqEfetRegIBSUF",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"vTribRegIBSUF",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"pAliqEfetRegIBSMun",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"vTribRegIBSMun",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"pAliqEfetRegCBS",void 0);jd([(0,fp.IsString)(),Md("design:type",String)],za.prototype,"vTribRegCBS",void 0);var WA=require("class-transformer");var ec=require("class-validator"),hP=require("class-transformer");var Yee=require("class-validator");function z2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(z2e,"_ts_decorate");function K2e(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K2e,"_ts_metadata");var ua=class{static{o(this,"DevTrib")}vDevTrib};z2e([(0,Yee.IsString)(),K2e("design:type",String)],ua.prototype,"vDevTrib",void 0);var RV=require("class-validator");function Qee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qee,"_ts_decorate");function $ee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($ee,"_ts_metadata");var zs=class{static{o(this,"Dif")}pDif;vDif};Qee([(0,RV.IsString)(),$ee("design:type",String)],zs.prototype,"pDif",void 0);Qee([(0,RV.IsString)(),$ee("design:type",String)],zs.prototype,"vDif",void 0);var OV=require("class-validator");function Zee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zee,"_ts_decorate");function ete(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ete,"_ts_metadata");var Ks=class{static{o(this,"Red")}pAliqEfet;pRedAliq};Zee([(0,OV.IsString)(),ete("design:type",String)],Ks.prototype,"pAliqEfet",void 0);Zee([(0,OV.IsString)(),ete("design:type",String)],Ks.prototype,"pRedAliq",void 0);function qA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qA,"_ts_decorate");function HA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(HA,"_ts_metadata");var Zu=class{static{o(this,"IBSMun")}pIBSMun;vIBSMun;gDevTrib;gDif;gRed};qA([(0,ec.IsString)(),HA("design:type",String)],Zu.prototype,"pIBSMun",void 0);qA([(0,ec.IsString)(),HA("design:type",String)],Zu.prototype,"vIBSMun",void 0);qA([(0,ec.IsOptional)(),(0,ec.ValidateNested)(),(0,hP.Type)(()=>ua),HA("design:type",typeof ua>"u"?Object:ua)],Zu.prototype,"gDevTrib",void 0);qA([(0,ec.IsOptional)(),(0,ec.ValidateNested)(),(0,hP.Type)(()=>zs),HA("design:type",typeof zs>"u"?Object:zs)],Zu.prototype,"gDif",void 0);qA([(0,ec.IsOptional)(),(0,ec.ValidateNested)(),(0,hP.Type)(()=>Ks),HA("design:type",typeof Ks>"u"?Object:Ks)],Zu.prototype,"gRed",void 0);var rc=require("class-validator"),dP=require("class-transformer");function zA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zA,"_ts_decorate");function KA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KA,"_ts_metadata");var tc=class{static{o(this,"IBSUF")}pIBSUF;vIBSUF;gDevTrib;gDif;gRed};zA([(0,rc.IsString)(),KA("design:type",String)],tc.prototype,"pIBSUF",void 0);zA([(0,rc.IsString)(),KA("design:type",String)],tc.prototype,"vIBSUF",void 0);zA([(0,rc.IsOptional)(),(0,rc.ValidateNested)(),(0,dP.Type)(()=>ua),KA("design:type",typeof ua>"u"?Object:ua)],tc.prototype,"gDevTrib",void 0);zA([(0,rc.IsOptional)(),(0,rc.ValidateNested)(),(0,dP.Type)(()=>zs),KA("design:type",typeof zs>"u"?Object:zs)],tc.prototype,"gDif",void 0);zA([(0,rc.IsOptional)(),(0,rc.ValidateNested)(),(0,dP.Type)(()=>Ks),KA("design:type",typeof Ks>"u"?Object:Ks)],tc.prototype,"gRed",void 0);var ic=require("class-validator"),mP=require("class-transformer");function GA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(GA,"_ts_decorate");function XA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(XA,"_ts_metadata");var nc=class{static{o(this,"CBS")}pCBS;vCBS;gDevTrib;gDif;gRed};GA([(0,ic.IsString)(),XA("design:type",String)],nc.prototype,"pCBS",void 0);GA([(0,ic.IsString)(),XA("design:type",String)],nc.prototype,"vCBS",void 0);GA([(0,ic.IsOptional)(),(0,ic.ValidateNested)(),(0,mP.Type)(()=>ua),XA("design:type",typeof ua>"u"?Object:ua)],nc.prototype,"gDevTrib",void 0);GA([(0,ic.IsOptional)(),(0,ic.ValidateNested)(),(0,mP.Type)(()=>zs),XA("design:type",typeof zs>"u"?Object:zs)],nc.prototype,"gDif",void 0);GA([(0,ic.IsOptional)(),(0,ic.ValidateNested)(),(0,mP.Type)(()=>Ks),XA("design:type",typeof Ks>"u"?Object:Ks)],nc.prototype,"gRed",void 0);function Dx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dx,"_ts_decorate");function Rx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Rx,"_ts_metadata");var iu=class{static{o(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular};Dx([(0,mo.IsString)(),Rx("design:type",String)],iu.prototype,"vBC",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>tc),Rx("design:type",typeof tc>"u"?Object:tc)],iu.prototype,"gIBSUF",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>Zu),Rx("design:type",typeof Zu>"u"?Object:Zu)],iu.prototype,"gIBSMun",void 0);Dx([(0,mo.IsString)(),Rx("design:type",String)],iu.prototype,"vIBS",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>nc),Rx("design:type",typeof nc>"u"?Object:nc)],iu.prototype,"gCBS",void 0);Dx([(0,mo.IsOptional)(),(0,mo.ValidateNested)(),(0,WA.Type)(()=>za),Rx("design:type",typeof za>"u"?Object:za)],iu.prototype,"gTribRegular",void 0);var Ud=require("class-transformer");function El(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(El,"_ts_decorate");function wl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wl,"_ts_metadata");var Ri=class{static{o(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};El([(0,qn.IsOptional)(),(0,qn.IsString)(),wl("design:type",String)],Ri.prototype,"CST",void 0);El([(0,qn.IsOptional)(),(0,qn.IsString)(),wl("design:type",String)],Ri.prototype,"cClassTrib",void 0);El([(0,qn.IsOptional)(),(0,qn.IsString)(),wl("design:type",String)],Ri.prototype,"indDoacao",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Fd),wl("design:type",typeof Fd>"u"?Object:Fd)],Ri.prototype,"gTransfCred",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>cp),wl("design:type",typeof cp>"u"?Object:cp)],Ri.prototype,"gCredPresIBSZFM",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Sl),wl("design:type",typeof Sl>"u"?Object:Sl)],Ri.prototype,"gCredPresOper",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>lp),wl("design:type",typeof lp>"u"?Object:lp)],Ri.prototype,"gAjusteCompet",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Vd),wl("design:type",typeof Vd>"u"?Object:Vd)],Ri.prototype,"gEstornoCred",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>Zr),wl("design:type",typeof Zr>"u"?Object:Zr)],Ri.prototype,"gIBSCBSMono",void 0);El([(0,qn.IsOptional)(),(0,qn.ValidateNested)(),(0,Ud.Type)(()=>iu),wl("design:type",typeof iu>"u"?Object:iu)],Ri.prototype,"gIBSCBS",void 0);var pp=require("class-validator");function qd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qd,"_ts_decorate");function Hd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Hd,"_ts_metadata");var su=class{static{o(this,"IS")}cClassTrib;CSTIS;pISEspec;vBCIS;uTrib;qTrib;pIS;vIS};qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"cClassTrib",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"CSTIS",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"pISEspec",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"vBCIS",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"uTrib",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"qTrib",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"pIS",void 0);qd([(0,pp.IsString)(),Hd("design:type",String)],su.prototype,"vIS",void 0);function go(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(go,"_ts_decorate");function au(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(au,"_ts_metadata");var mi=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IBSCBS;IS};go([(0,en.IsOptional)(),(0,en.IsNumber)(),au("design:type",Number)],mi.prototype,"vTotTrib",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>xn),au("design:type",typeof IICMS>"u"?Object:IICMS)],mi.prototype,"ICMS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>ru),au("design:type",typeof IIPI>"u"?Object:IIPI)],mi.prototype,"IPI",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>nu),au("design:type",typeof IISSQN>"u"?Object:IISSQN)],mi.prototype,"ISSQN",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>ml),au("design:type",typeof III>"u"?Object:III)],mi.prototype,"II",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>vl),au("design:type",typeof IPIS>"u"?Object:IPIS)],mi.prototype,"PIS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>Yu),au("design:type",typeof IPISST>"u"?Object:IPISST)],mi.prototype,"PISST",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>yl),au("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],mi.prototype,"COFINS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>$u),au("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],mi.prototype,"COFINSST",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>aa),au("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],mi.prototype,"ICMSUFDest",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>Ri),au("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],mi.prototype,"IBSCBS",void 0);go([(0,en.IsOptional)(),(0,en.ValidateNested)(),(0,ou.Type)(()=>su),au("design:type",typeof IIS>"u"?Object:IIS)],mi.prototype,"IS",void 0);mi=go([Lr({properties:["ICMS","ISSQN"]})],mi);var Fg=require("class-validator"),tte=require("class-transformer");function BV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BV,"_ts_decorate");function PV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PV,"_ts_metadata");var gP=class{static{o(this,"IpiDevol")}vIPIDevol};BV([(0,Fg.IsString)(),PV("design:type",String)],gP.prototype,"vIPIDevol",void 0);var Ox=class{static{o(this,"Devol")}pDevol;IPI};BV([(0,Fg.IsString)(),PV("design:type",String)],Ox.prototype,"pDevol",void 0);BV([(0,Fg.IsOptional)(),(0,Fg.ValidateNested)(),(0,tte.Type)(()=>gP),PV("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],Ox.prototype,"IPI",void 0);var hp=require("class-validator"),_V=require("class-transformer");function vP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vP,"_ts_decorate");function yP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yP,"_ts_metadata");var Bx=class{static{o(this,"Observation")}xCampo;xTexto};vP([(0,hp.IsString)(),yP("design:type",String)],Bx.prototype,"xCampo",void 0);vP([(0,hp.IsString)(),yP("design:type",String)],Bx.prototype,"xTexto",void 0);var Px=class{static{o(this,"ObsItem")}obsCont;obsFisco};vP([(0,hp.IsOptional)(),(0,hp.ValidateNested)(),(0,_V.Type)(()=>Bx),yP("design:type",typeof IObservation>"u"?Object:IObservation)],Px.prototype,"obsCont",void 0);vP([(0,hp.IsOptional)(),(0,hp.ValidateNested)(),(0,_V.Type)(()=>Bx),yP("design:type",typeof IObservation>"u"?Object:IObservation)],Px.prototype,"obsFisco",void 0);function zd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zd,"_ts_decorate");function Kd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Kd,"_ts_metadata");var _x=class{static{o(this,"DetAttributes")}nItem};zd([(0,ws.IsString)(),Kd("design:type",String)],_x.prototype,"nItem",void 0);var sc=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem};zd([(0,ws.IsObject)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>_x),Kd("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],sc.prototype,"$",void 0);zd([(0,ws.ValidateNested)(),(0,Fx.Type)(()=>Tt),Kd("design:type",typeof IProd>"u"?Object:IProd)],sc.prototype,"prod",void 0);zd([(0,ws.IsOptional)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>mi),Kd("design:type",typeof IImposto>"u"?Object:IImposto)],sc.prototype,"imposto",void 0);zd([(0,ws.IsOptional)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>Ox),Kd("design:type",typeof IDevol>"u"?Object:IDevol)],sc.prototype,"impostoDevol",void 0);zd([(0,ws.IsOptional)(),(0,ws.IsString)(),Kd("design:type",String)],sc.prototype,"infAdProd",void 0);zd([(0,ws.IsOptional)(),(0,ws.ValidateNested)(),(0,Fx.Type)(()=>Px),Kd("design:type",typeof IObsItem>"u"?Object:IObsItem)],sc.prototype,"obsItem",void 0);zd([(0,ws.IsOptional)(),$({fixed:2}),Kd("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vItem",void 0);var As=require("class-validator");function ac(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ac,"_ts_decorate");function oc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(oc,"_ts_metadata");var Cs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"CNPJ",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"xOrgao",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"matr",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"xAgente",void 0);ac([(0,As.IsOptional)(),(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"fone",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"UF",void 0);ac([(0,As.IsOptional)(),(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"nDAR",void 0);ac([(0,As.IsOptional)(),Fp({format:"YYYY-MM-DD"}),oc("design:type",typeof Date>"u"?Object:Date)],Cs.prototype,"dEmi",void 0);ac([(0,As.IsOptional)(),$({fixed:2}),oc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cs.prototype,"vDAR",void 0);ac([(0,As.IsString)(),oc("design:type",String)],Cs.prototype,"repEmi",void 0);ac([(0,As.IsOptional)(),(0,As.IsDate)(),oc("design:type",typeof Date>"u"?Object:Date)],Cs.prototype,"dPag",void 0);var rte=require("class-validator");function G2e(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(G2e,"_ts_decorate");function X2e(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X2e,"_ts_metadata");var Lg=class{static{o(this,"InfSolicNFF")}xSolic};G2e([(0,rte.IsString)(),X2e("design:type",String)],Lg.prototype,"xSolic",void 0);function Zn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zn,"_ts_decorate");function ei(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ei,"_ts_metadata");var kg=class{static{o(this,"InfNFeAttributes")}Id;versao};Zn([(0,gt.IsOptional)(),(0,gt.IsString)(),ei("design:type",String)],kg.prototype,"Id",void 0);Zn([(0,gt.IsOptional)(),(0,gt.IsString)(),ei("design:type",String)],kg.prototype,"versao",void 0);var pn=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};Zn([(0,gt.IsObject)(),(0,gt.IsNotEmptyObject)(),(0,ci.Type)(()=>kg),(0,gt.ValidateNested)(),ei("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],pn.prototype,"$",void 0);Zn([(0,gt.IsObject)(),(0,gt.IsNotEmptyObject)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Br),ei("design:type",typeof IIde>"u"?Object:IIde)],pn.prototype,"ide",void 0);Zn([(0,gt.IsObject)(),(0,gt.IsNotEmptyObject)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Yi),ei("design:type",typeof IEmit>"u"?Object:IEmit)],pn.prototype,"emit",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Cs),ei("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],pn.prototype,"avulsa",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Qi),ei("design:type",typeof IDest>"u"?Object:IDest)],pn.prototype,"dest",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>cn),ei("design:type",typeof ILocal>"u"?Object:ILocal)],pn.prototype,"retirada",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>cn),ei("design:type",typeof ILocal>"u"?Object:ILocal)],pn.prototype,"entrega",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)({each:!0}),(0,gt.ArrayMaxSize)(10),(0,ci.Type)(()=>sl),ei("design:type",Array)],pn.prototype,"autXML",void 0);Zn([(0,gt.ValidateNested)({each:!0}),(0,gt.ArrayMaxSize)(990),(0,gt.ArrayMinSize)(1),(0,ci.Type)(()=>sc),ei("design:type",Array)],pn.prototype,"det",void 0);Zn([(0,gt.ValidateNested)(),(0,ci.Type)(()=>Ku),ei("design:type",typeof ITotal>"u"?Object:ITotal)],pn.prototype,"total",void 0);Zn([(0,gt.ValidateNested)(),(0,ci.Type)(()=>Us),ei("design:type",typeof ITransp>"u"?Object:ITransp)],pn.prototype,"transp",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Dd),ei("design:type",typeof ICobr>"u"?Object:ICobr)],pn.prototype,"cobr",void 0);Zn([(0,gt.ValidateNested)(),(0,ci.Type)(()=>Rd),ei("design:type",typeof IPag>"u"?Object:IPag)],pn.prototype,"pag",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>wd),ei("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],pn.prototype,"infIntermed",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Gu),ei("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],pn.prototype,"infAdic",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Ff),ei("design:type",typeof IExporta>"u"?Object:IExporta)],pn.prototype,"exporta",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Lf),ei("design:type",typeof ICompra>"u"?Object:ICompra)],pn.prototype,"compra",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>qs),ei("design:type",typeof ICana>"u"?Object:ICana)],pn.prototype,"cana",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Qo),ei("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],pn.prototype,"infRespTec",void 0);Zn([(0,gt.IsOptional)(),(0,gt.ValidateNested)(),(0,ci.Type)(()=>Lg),ei("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],pn.prototype,"infSolicNFF",void 0);var FV=require("class-transformer");function SP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(SP,"_ts_decorate");function xP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xP,"_ts_metadata");var Lx=class{static{o(this,"NFeAttributes")}xmlns};SP([(0,ca.IsString)(),(0,ca.IsNotEmpty)(),xP("design:type",String)],Lx.prototype,"xmlns",void 0);var dp=class{static{o(this,"NFe")}$;infNFe;Signature};SP([(0,ca.IsObject)(),(0,ca.IsNotEmptyObject)(),(0,FV.Type)(()=>Lx),(0,ca.ValidateNested)(),xP("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],dp.prototype,"$",void 0);SP([(0,ca.IsObject)(),(0,ca.IsNotEmptyObject)(),(0,FV.Type)(()=>pn),(0,ca.ValidateNested)(),xP("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],dp.prototype,"infNFe",void 0);SP([(0,ca.Allow)(),xP("design:type",typeof Signature>"u"?Object:Signature)],dp.prototype,"Signature",void 0);function vo(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(vo,"_ts_decorate");function er(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(er,"_ts_metadata");var rs=class{static{o(this,"NfeDetXmlBuilder")}listener;schema;data={};static create(e,t="PL_009_V4"){return new this(e,t)}constructor(e,t="PL_009_V4"){this.listener=e,this.schema=t}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}imposto(e){return this.data.imposto=e,this}icms(e){return this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this}issqn(e){return this.data.imposto??={},this.data.imposto.ISSQN=e,this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this.listener?.pis(e),this}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.COFINS=e,this.listener?.cofins(e),this}cofinsst(e){return this.data.imposto??={},this.data.imposto.COFINSST=e,this}icmsufdest(e){return this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this}ibscbs(e){return this.schema===Dl.PL_009_V4?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return this.schema===Dl.PL_009_V4?this:(this.data.vItem=e.vItem,this)}assemble(){this.data.imposto&&this.imposto(this.data.imposto);let e={...this.data};return this.data={},e}};vo([Et(_x),er("design:type",Function),er("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),er("design:returntype",void 0)],rs.prototype,"det",null);vo([Et(Tt),er("design:type",Function),er("design:paramtypes",[typeof IProd>"u"?Object:IProd]),er("design:returntype",void 0)],rs.prototype,"prod",null);vo([Et(mi),er("design:type",Function),er("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),er("design:returntype",void 0)],rs.prototype,"imposto",null);vo([Et(xn),er("design:type",Function),er("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),er("design:returntype",void 0)],rs.prototype,"icms",null);vo([Et(nu),er("design:type",Function),er("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),er("design:returntype",void 0)],rs.prototype,"issqn",null);vo([Et(ml),er("design:type",Function),er("design:paramtypes",[typeof III>"u"?Object:III]),er("design:returntype",void 0)],rs.prototype,"ii",null);vo([Et(ru),er("design:type",Function),er("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),er("design:returntype",void 0)],rs.prototype,"ipi",null);vo([Et(vl),er("design:type",Function),er("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),er("design:returntype",void 0)],rs.prototype,"pis",null);vo([Et(Yu),er("design:type",Function),er("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),er("design:returntype",void 0)],rs.prototype,"pisst",null);vo([Et(yl),er("design:type",Function),er("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),er("design:returntype",void 0)],rs.prototype,"cofins",null);vo([Et($u),er("design:type",Function),er("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),er("design:returntype",void 0)],rs.prototype,"cofinsst",null);vo([Et(aa),er("design:type",Function),er("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),er("design:returntype",void 0)],rs.prototype,"icmsufdest",null);vo([Et(Ri),er("design:type",Function),er("design:paramtypes",[typeof Ri>"u"?Object:Ri]),er("design:returntype",void 0)],rs.prototype,"ibscbs",null);function Oi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Oi,"_ts_decorate");function ct(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ct,"_ts_metadata");var hn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return dp}root="NFe";$det=new cA(this);$total=new lA(this);nfeDetXmlBuilder;static create(e,t,n="PL_009_V4"){return new this(e,t,n)}constructor(e,t,n="PL_009_V4"){this.builder=e,this.contingency=t,this.schema=n,this.nfeDetXmlBuilder=rs.create(this.$det,this.schema)}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return e==null?this:(this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this)}det(e,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total,this.data.infNFe.det);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this.schema!==Dl.PL_009_V4&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...this.data.infNFe.total.IBSCBSTot,gCBS:{...this.data.infNFe.total.IBSCBSTot?.gCBS},gIBS:{...this.data.infNFe.total.IBSCBSTot?.gIBS,gIBSMun:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSMun},gIBSUF:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSUF}},gMono:{...this.data.infNFe.total.IBSCBSTot?.gMono}},vNFTot:e.vNFTot}}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(Ao,this),this}toObject(){if(this.$data!==void 0)return Ot(this.$data);let e=this.errors();return e?ur(new _t(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=iT(this.data,this.entity,{clearEmptyValues:!0}),Ot(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:Ot(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Be.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:t}=this.data.infNFe.ide;if(t!==Ts.Normal)return;switch(YB[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ts.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ts.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ts.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Ao,this)}collect(e){let t=Reflect.getMetadata(Ao,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Ao,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new rb().compile({cUF:this.data.infNFe.ide.cUF,year:this.data.infNFe.ide.dhEmi.substring(2,4),month:this.data.infNFe.ide.dhEmi.substring(5,7),identification:this.data.infNFe.emit.CPF??this.data.infNFe.emit.CNPJ,mod:this.data.infNFe.ide.mod,serie:this.data.infNFe.ide.serie,nNF:this.data.infNFe.ide.nNF,tpEmis:this.data.infNFe.ide.tpEmis,cNF:this.data.infNFe.ide.cNF});this.data.infNFe.ide.cDV=e.slice(-1),this.data.infNFe.$={Id:`${this.root}${e}`,versao:this.data.infNFe.$.versao}}};Oi([Et(kg),ct("design:type",Function),ct("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),ct("design:returntype",void 0)],hn.prototype,"infNFe",null);Oi([Et(Br),ct("design:type",Function),ct("design:paramtypes",[typeof IIde>"u"?Object:IIde]),ct("design:returntype",void 0)],hn.prototype,"ide",null);Oi([Et(Yi),ct("design:type",Function),ct("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),ct("design:returntype",void 0)],hn.prototype,"emit",null);Oi([Et(Cs),ct("design:type",Function),ct("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),ct("design:returntype",void 0)],hn.prototype,"avulsa",null);Oi([Et(Qi),ct("design:type",Function),ct("design:paramtypes",[typeof IDest>"u"?Object:IDest]),ct("design:returntype",void 0)],hn.prototype,"dest",null);Oi([Et(cn),ct("design:type",Function),ct("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),ct("design:returntype",void 0)],hn.prototype,"retirada",null);Oi([Et(cn),ct("design:type",Function),ct("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),ct("design:returntype",void 0)],hn.prototype,"entrega",null);Oi([Et(sl),ct("design:type",Function),ct("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),ct("design:returntype",void 0)],hn.prototype,"autXML",null);Oi([Et(Ku),ct("design:type",Function),ct("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),ct("design:returntype",void 0)],hn.prototype,"total",null);Oi([Et(Us),ct("design:type",Function),ct("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),ct("design:returntype",void 0)],hn.prototype,"transp",null);Oi([Et(Dd),ct("design:type",Function),ct("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),ct("design:returntype",void 0)],hn.prototype,"cobr",null);Oi([Et(Rd),ct("design:type",Function),ct("design:paramtypes",[typeof IPag>"u"?Object:IPag]),ct("design:returntype",void 0)],hn.prototype,"pag",null);Oi([Et(wd),ct("design:type",Function),ct("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),ct("design:returntype",void 0)],hn.prototype,"infIntermed",null);Oi([Et(Gu),ct("design:type",Function),ct("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),ct("design:returntype",void 0)],hn.prototype,"infAdic",null);Oi([Et(Ff),ct("design:type",Function),ct("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),ct("design:returntype",void 0)],hn.prototype,"exporta",null);Oi([Et(Lf),ct("design:type",Function),ct("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),ct("design:returntype",void 0)],hn.prototype,"compra",null);Oi([Et(qs),ct("design:type",Function),ct("design:paramtypes",[typeof ICana>"u"?Object:ICana]),ct("design:returntype",void 0)],hn.prototype,"cana",null);Oi([Et(Qo),ct("design:type",Function),ct("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),ct("design:returntype",void 0)],hn.prototype,"infRespTec",null);Oi([Et(Lg),ct("design:type",Function),ct("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),ct("design:returntype",void 0)],hn.prototype,"infSolicNFF",null);var JA=class extends YS{static{o(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=hn.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return nte.default.resolve(tb(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Ot(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return Ot(e);let t=await this.certificates.read(this.certificate);return t.isLeft()?t:this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value)}async validateXmlString(e){let t=await this.toolkit.validate(e,this.nfeXsdSchema);return t.isLeft()?t:Ot(e)}};var wP=require("class-transformer"),Ka=require("class-validator");var LV=require("class-validator");function ite(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ite,"_ts_decorate");function ste(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ste,"_ts_metadata");var kx=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};ite([(0,LV.IsString)(),ste("design:type",String)],kx.prototype,"qrCode",void 0);ite([(0,LV.IsString)(),ste("design:type",String)],kx.prototype,"urlChave",void 0);function bP(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(bP,"_ts_decorate");function EP(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(EP,"_ts_metadata");var Cl=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};bP([(0,Ka.IsObject)(),(0,Ka.IsNotEmptyObject)(),(0,wP.Type)(()=>Lx),(0,Ka.ValidateNested)(),EP("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Cl.prototype,"$",void 0);bP([(0,Ka.IsObject)(),(0,Ka.IsNotEmptyObject)(),(0,wP.Type)(()=>pn),(0,Ka.ValidateNested)(),EP("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Cl.prototype,"infNFe",void 0);bP([(0,Ka.IsObject)(),(0,Ka.IsNotEmptyObject)(),(0,wP.Type)(()=>kx),(0,Ka.ValidateNested)(),EP("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],Cl.prototype,"infNFeSupl",void 0);bP([(0,Ka.Allow)(),EP("design:type",typeof Signature>"u"?Object:Signature)],Cl.prototype,"Signature",void 0);var YA=class extends hn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return Cl}static create(e,t,n="PL_009_V4"){return new this(e,t,n)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===Ts.Normal)return this.data.infNFe.ide.tpEmis=Ts.OFFLINE,void 0}};var kV=class extends JA{static{o(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new ra(this.certificates);transmitter=new Ls(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=YA.create(this.toolkit,void 0,this.schema);async assertXmlSignedAndValidated(e){let t=await super.assertXmlSignedAndValidated(e);if(t.isLeft()||!this.options?.qrCode)return t;if(!this.certificate)return ur(new _t("Certificate is required to assemble NFCe XML with QR Code"));let n=t.value,i=await this.toolkit.parse(n),s=await this.generateQrCode(i,this.options,this.certificate);if(s.isLeft())return s;let a=await this.toolkit.build(s.value,{rootName:"infNFeSupl"}),u=this.toolkit.insertBefore(n,"Signature",a);return Ot(u)}async generateQrCode(e,t,n){let i=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),s={...t.qrCode};switch(s.version??=i.version,s.version){case"200":return await this.nfceQrcode.execute(e,{version:s.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url,CSC:s.CSC,CSCId:s.CSCId});case"300":{let a=await this.certificates.read(n);return a.isLeft()?a:await this.nfceQrcode.execute(e,{version:s.version,certificate:a.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:i.url})}default:return cm(s.version)}}};var ate="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtBluEsRixEDQfrA2jHdEOtGG0ASCBK/Rj/NvqtMOS1g50dYxkkeZAIBAINI7gNDQZm3bvL4DNkzTfzOYDy4SWIZYB/wlYitlipKVEUYG5iLkY89zrxL+qOaEx2hNmtmrrmpWPTJf+QCAQCDQvwWloML3D+xaYcaGkc4D/DpwKLImaCFhIFP6fCXzP4NVbuzoONdqQQCAQCFRHcBoaSO/w/vlm3Ad2rqS4LwAmkMXR/hmk3SV01UBXx7Hac681uGLPxwH5vh9twDyMRSjqKwLMI2pSwmChoN3l2didXTd8tDFWBwKBwMS0NdqAWc4bEefK+W7xv4peLRX5nyHa5WZ8uHd4f99AV8dYhXnV1Fyx55Z2jOWGrZB0CvBfDZabsUxiCbDYYLGweaSdK6K+IELItS2ZjDmMHgKC0xAIBJqK4DQ0iN7h/QUzuxr5IsNXyi0uPqJxCDNLk3gv8K/A9mxysn5077mlXcapiNPATgO9HOw0jNMwW45UcKNKAB9oMcyiSIvbcJp3HCyK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u7+lZlp/PaD0zK/XXvhm1+Z0ZQZKedkiG31OOW+qJIlJynStSeSCL5jI3sZuPjchccju2Q9cUzBImCGYb+grmZEg3vmGBbFpw521paOHv+z+wAtxixCHgQNFPPZceeOmCpyhdJ024skTbfZK7GrtvJlrlCajjnfcrPQ1mI++9po7QUCJxtBaQickPz0lbefPeuU//gi6NKythBT8YFHP5VD6Vw5eRGh8rVTL9MQ+J3nLtw8ocJIgUAg8HoiuCcCJyQXn/XPLxv9AfhD0dE5V05M1JyySGRlV0X56GSSuOkYyPDtRkFhCAQCb2iCpSFwwjOwfeksSR+2uVFicdo9keBylsho558uglR2YUyNbMTwOcynliw6XtUyA4FA4NgQlIbA64YtO1pnAVfbvklwPlJLteOiQvJ6tStj0mWv2r4T8dCShZuDwhAIBN7wBKUh8LpjYEdrk+xzkN4PdNheDKpJmxxZI5L4yEmUHTC8LLvH8NiSRZtDkFwgEDhpCEpD4HXNwI6lGaGzsLNIFwMXAfNsWiQyaftA5SsNXquR2SNIh8AHQVsxLyB+CmwCdh6rSpiBQCBwIhGUhsAbii07WrGZI/lsw2JgIWa+pDnALOyoaFEcq2AzIrEPOIC9B9iN9H+AndjbLe1asjDEKgQCgQDA/wf59f5AwcXxcQAAAABJRU5ErkJggg==";var Vx=class r{static{o(this,"Header")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}emit(e){let{left:t,right:n}=this.builder.pageMargins(),i=e?.x??t,s=this.context.data.infNFe.emit,{enderEmit:a}=s,{xNome:u}=s,c=this.context.defaults.font,l=`${c}-Bold`,f="left";this.builder.row({left:i,right:n},p=>this.builder.text(this.identification(s),{...p,continued:!0,align:f}).font(l).text(` ${u}`,{...p,align:f}).font(c)).row({left:i,right:n},p=>this.builder.text(this.addressLine1(a),{...p,continued:!0,align:f}).text(this.addressLine2(a),{...p,continued:!0,align:f}).text(this.addressLine3(a),{...p,align:f})).row({left:i,right:n},p=>this.builder.text(this.addressLine4(a),{...p,align:f}))}identification(e){let t=this.cpfOrCnpj(e),n=e.IE.length?` IE: ${e.IE}`:"";return`${t}${n}`}cpfOrCnpj(e){let{CNPJ:t,CPF:n}=e;return t?.length===14?`CNPJ ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:""}addressLine1(e){let{xLgr:t,nro:n}=e;return`${t}, ${n}`}addressLine2(e){let{xBairro:t}=e;return`, ${t}`}addressLine3(e){let{xMun:t,UF:n}=e;return`, ${t} - ${n}`}addressLine4(e){let{fone:t}=e;return t?`Fone: ${t.replace(/(\d{2})(\d{4,5})(\d{4})/,"($1) $2-$3")}`:""}staticTexts(){let{left:e,right:t}=this.builder.pageMargins();this.builder.moveDown(.5).fontSize(this.context.options.titleFontSize).row({left:e,right:t},n=>this.builder.text("Documento Auxiliar da Nota Fiscal de Consumidor Eletr\xF4nica",{...n,align:"center"})).row({left:e,right:t},n=>this.builder.text("N\xE3o permite aproveitamento de cr\xE9dito de ICMS",{...n,align:"center"}))}get logo(){let{logo:e,ignoreDefaultLogo:t}=this.context.options;if(e)return e;if(!t)return ate}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.emit(),this.staticTexts(),this.builder}end(){r._instance=void 0}};var mp=class r{static{o(this,"FiscalMessages")}context;static _instance;constants={issuedInContingency:"EMITIDA EM CONTING\xCANCIA",pendingOfAuthorization:"Pendente de autoriza\xE7\xE3o",notProtocoledInNormalEmission:"PENDENTE DE AUTORIZA\xC7\xC3O - SEM VALOR FISCAL"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get contingencyBannerText(){return`${this.constants.issuedInContingency}
124
+ ${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Ts.Normal}get hasNotProtocoledInNormalEmission(){return!this.hasContingency&&!this.context.protNFe}contingency(e){if(!this.hasContingency)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.contingencyBannerText,{...n,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...n,align:"center"}))}build(e){return this.setup(),this.builder.moveDown(.5),this.contingency(e),this.notProtocoledInNormalEmission(e),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){r._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),i=this.builder.pageWidth()-t-n;return this.hasContingency&&e.push(this.builder.heightOfString(this.contingencyBannerText,{width:i,align:"center"})),this.hasNotProtocoledInNormalEmission&&e.push(this.builder.heightOfString(this.constants.notProtocoledInNormalEmission,{width:i,align:"center"})),e.reduce((s,a)=>s+a,0)}};var jx=class r{static{o(this,"HomologMessage")}context;static _instance;constants={withoutFiscalValue:"EMITIDA EM AMBIENTE DE HOMOLOGA\xC7\xC3O \u2013 SEM VALOR FISCAL"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasHomologMessage(){let{tpAmb:e}=this.context.data.infNFe.ide;return e!==Be.Production}withHomologMessage(){if(!this.hasHomologMessage)return;let{left:e}=this.builder.pageMargins();this.builder.text(this.constants.withoutFiscalValue,{x:e,align:"center"})}build(){return this.setup(),this.builder.moveDown(.5),this.withHomologMessage(),this.builder.font(this.context.defaults.font),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){r._instance=void 0}height(){if(!this.hasHomologMessage)return 0;this.setup();let{left:e,right:t}=this.builder.pageMargins();return this.builder.heightOfString(this.constants.withoutFiscalValue,{width:this.builder.pageWidth()-e-t,align:"center"})}};var CP=class r{static{o(this,"Items")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get columnStyles(){return[15,32,60,"*","*","*","*"]}get rowStyles(){return{border:!1}}get defaultStyle(){return{padding:{top:1,bottom:1,left:0,right:0}}}get headers(){let e={src:`${this.context.defaults.font}-Bold`};return[{font:e,text:"#"},{font:e,text:"cod."},{font:e,text:"descri\xE7\xE3o"},{font:e,align:{x:"right"},text:"qtde"},{font:e,align:{x:"right"},text:"unit."},{font:e,align:{x:"right"},text:"desc."},{font:e,align:{x:"right"},text:"total"}]}item(e){let{prod:t,$:{nItem:n}}=e,{cProd:i,xProd:s,qCom:a,uCom:u,vUnCom:c,vDesc:l,vProd:f}=t,p={size:this.context.options.textFontSize},d={font:p,text:n.padStart(3,"0")},g={font:p,text:i},m=[{font:p,align:{x:"right"},text:`${this.context.currency(a,4)} ${u}`},{font:p,align:{x:"right"},text:this.context.currency(c,10)},{font:p,align:{x:"right"},text:this.context.currency(l??0)},{font:p,align:{x:"right"},text:this.context.currency(f)}],y=this.builder.widthOfString(i),v=this.columnStyles[1];if(y>=v)return[[d,{colSpan:6,font:p,text:`${i} ${s}`}],[{colSpan:3},...m]];let x=this.builder.widthOfString(s),w=this.columnStyles[2];if(x>=w)return[[d,g,{colSpan:5,font:p,text:s}],[{colSpan:3},...m]];let b=this.getFirstLineWidth();return this.builder.widthOfString(`${i} ${s}`)<=b?[[d,g,{font:p,text:s},...m]]:[[d,g,{colSpan:5,font:p,text:s}],[{colSpan:3},...m]]}items(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n}=this.builder.pageMargins();this.builder.table({position:{x:n},defaultStyle:this.defaultStyle,columnStyles:this.columnStyles,rowStyles:this.rowStyles,data:[this.headers,...t.reduce((i,s)=>i.concat(this.item(s)),[])]})}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.items(),this.builder}end(){r._instance=void 0}getFirstLineWidth(){return this.columnStyles.slice(1,3).reduce((t,n)=>t+n,0)}getProportionalWidth(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,i=this.columnStyles.reduce((a,u)=>typeof u=="number"?a+u:a,0),s=this.columnStyles.filter(a=>a==="*").length;return(n-i)/s}getAvailableWidth(e,t){if(e.colSpan){let s=t.indexOf(e),a=this.columnStyles.slice(0,s).reduce((c,l)=>typeof l=="number"?c+l:c,0),u=this.getProportionalWidth()*e.colSpan;return a+u}let n=t.indexOf(e),i=this.columnStyles[n];return typeof i=="number"?i:this.getProportionalWidth()}calculateRowHeight(e,t){let n=t;for(let i of e){if(!i.text)continue;let s=i.text,a=this.builder.widthOfString(s),u=this.getAvailableWidth(i,e),c=a<=u?t:this.builder.heightOfString(s,{width:u});n=Math.max(n,c)}return n}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],n=this.builder.currentLineHeight(),i=n*1.2,s=n*.5,a=n*.5,u=t.reduce((l,f)=>{let p=this.item(f),[d]=p,g=this.calculateRowHeight(d,n),m=0;if(p.length>1){let b=this.calculateRowHeight(p[1],n);m=Math.max(n,b)}let{top:y,bottom:v}=this.defaultStyle.padding,x=y+v,w=p.length>1?n*.2:0;return l+g+m+p.length*x+w},0),c=n*2;return s+i+a+u+c}};var Mx=class r{static{o(this,"Totals")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}count(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:i},s=>this.builder.text("Qtde. Total de Itens",{...s}),s=>this.builder.text(`${t.length}`,{...s,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:n,vSeg:i,vOutro:s}=this.context.data.infNFe.total.ICMSTot,{vServ:a}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new Dr(e).add(a??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",n),this.conditionalRowValue("Seguro total R$",i),this.conditionalRowValue("Outras despesas total R$",s)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,n=`${t}-Bold`,{left:i,right:s}=this.builder.pageMargins();this.builder.font(n).fontSize(this.context.options.titleFontSize).row({columns:2,left:i,right:s},a=>this.builder.text("Valor a Pagar R$",{...a,align:"left"}),a=>this.builder.text(this.context.currency(e),{...a,align:"right"})).font(t)}conditionalRowValue(e,t,n=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:i,right:s}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:s},a=>this.builder.text(e,{...a,align:"left"}),a=>this.builder.text(`${n}${t}`,{...a,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.count(),this.totalizers(),this.total(),this.builder}end(){r._instance=void 0}};var gi={Dinheiro:"01",Cheque:"02",CartaoDeCredito:"03",CartaoDeDebito:"04",CartaoDaLoja:"05",ValeAlimentacao:"10",ValeRefeicao:"11",ValePresente:"12",ValeCombustivel:"13",BoletoBancario:"15",DepositoBancario:"16",PIXDinamico:"17",TransferenciaBancaria:"18",ProgramaFidelidade:"19",PIXEstatico:"20",CreditoEmLoja:"21",PagamentoNaoInformado:"22",SemPagamento:"90",PagamentoPosterior:"91",Outros:"99"},ote={[gi.Dinheiro]:"Dinheiro",[gi.Cheque]:"Cheque",[gi.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[gi.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[gi.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[gi.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[gi.ValeRefeicao]:"Vale Refei\xE7\xE3o",[gi.ValePresente]:"Vale Presente",[gi.ValeCombustivel]:"Vale Combust\xEDvel",[gi.BoletoBancario]:"Boleto Banc\xE1rio",[gi.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[gi.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[gi.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[gi.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[gi.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[gi.CreditoEmLoja]:"Cr\xE9dito em Loja",[gi.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[gi.SemPagamento]:"Sem pagamento",[gi.PagamentoPosterior]:"Pagamento Posterior",[gi.Outros]:"Outros"};var Ux=class r{static{o(this,"Payments")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}payment(e){let{tPag:t,vPag:n}=e,{left:i,right:s}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:s},a=>this.builder.text(ote[t],{...a,align:"left"}),a=>this.builder.text(this.context.currency(n),{...a,align:"right"}))}payments(){let{pag:e}=this.context.data.infNFe,t=Array.isArray(e.detPag)?e.detPag:[e.detPag];if(t.length===0)return;let{left:n,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:i},s=>this.builder.text("Forma de Pagamento",{...s,align:"left"}),s=>this.builder.text("Valor pago R$",{...s,align:"right"})),t.forEach(s=>this.payment(s))}change(){let{vTroco:e}=this.context.data.infNFe.pag;if(!this.context.isValueNotEmpty(e))return;let{left:t,right:n}=this.builder.pageMargins();this.builder.moveDown(.5).row({columns:2,left:t,right:n},i=>this.builder.text("Troco R$",{...i,align:"left"}),i=>this.builder.text(this.context.currency(e),{...i,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.payments(),this.change(),this.builder}end(){r._instance=void 0}height(){this.setup();let{pag:{vTroco:e,detPag:t}}=this.context.data.infNFe,n=Array.isArray(t)?t:[t],i=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*n.length-1+i}};var qx=class r{static{o(this,"AccessKey")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}statics(){let{left:e,right:t}=this.builder.pageMargins(),n=this.context.defaults.font,i=`${n}-Bold`;this.builder.font(i).row({left:e,right:t},s=>this.builder.text("Consulte pela Chave de Acesso em",{...s,align:"center"})).font(n)}url(){let{urlChave:e}=this.context.data.infNFeSupl??{},{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:t,right:n},i=>this.builder.text(e??"",{...i,link:e,align:"center"}))}accessKey(){let{Id:e}=this.context.data.infNFe.$;if(!e)return;this.builder.moveDown(.5);let t=e.substring(3).replace(/(.{4})/g,"$1 ").trim(),{left:n,right:i}=this.builder.pageMargins();this.builder.row({left:n,right:i},s=>this.builder.text(t,{...s,align:"center"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.titleFontSize)}build(){return this.builder.moveDown(.5),this.statics(),this.url(),this.accessKey(),this.builder}end(){r._instance=void 0}};var vne=zt(gne(),1);var jP=class r{static{o(this,"QRCode")}context;static _instance;defaults={qrSize:65};qrCodeSvg;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}async getQrSvgString(e){try{return await vne.toString(e,{margin:0,type:"svg",errorCorrectionLevel:"M",color:{dark:"#000000",light:"#FFFFFF"}})}catch(t){return console.error("Error generating QR code:",t),""}}drawQrCode(){if(!this.qrCodeSvg)return;let e=this.qrCodeSvg.$.viewBox,[,,t,n]=e.split(" ").map(Number),{qrSize:i}=this.defaults,s=i/t,a=i/n,u=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:c}=this.builder.pageMargins();this.builder.save().translate(c,this.builder.y()).scale(s,a),u.forEach(l=>{this.builder.path(l.$.d),l.$.fill&&this.builder.fill(l.$.fill),l.$.stroke&&this.builder.stroke(l.$.stroke)}),this.builder.restore()}async make(){let{qrCode:e}=this.context.data.infNFeSupl??{};if(!e)return this.builder;let t=await this.getQrSvgString(e);this.qrCodeSvg=await this.context.toolkit.parse(t)}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}async build(){return await this.make(),this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder}end(){r._instance=void 0}height(){return this.setup(),this.defaults.qrSize+.5}};var MP=class r{static{o(this,"Recipient")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}unknown(e){let{left:t,right:n}=this.builder.pageMargins(),i=this.context.defaults.font,s=`${i}-Bold`;this.builder.row({left:e?.x??t,right:n},a=>this.builder.font(s).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...a,align:"center"}).font(i))}identification(e){let{CNPJ:t,CPF:n,idEstrangeiro:i}=e;return t?.length===14?`CNPJ: ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF: ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:i?.length?`Id. Estrangeiro: ${i}`:""}dest(e){let{dest:t}=this.context.data.infNFe;if(!t)return this.unknown(e);let{left:n,right:i}=this.builder.pageMargins(),s=this.identification(t),{xNome:a,enderDest:u}=t,c=this.addressLine(u),l=this.context.defaults.font,f=`${l}-Bold`;this.builder.row({left:e?.x??n,right:i},p=>this.builder.font(f).text(`CONSUMIDOR - ${s}`,{...p,align:"center"}).font(l)).row({left:e?.x??n,right:i},p=>this.builder.text(`${a}${c}`,{...p,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:n,xBairro:i,xCpl:s,xMun:a,UF:u,CEP:c}=e;if(!t||!c)return"";let l=s?`, ${s}`:"";return` - Rua ${t}, ${n}, ${i}${l}, ${a} - ${u}`}addressLine2(e){let{xBairro:t,xCpl:n}=e,i=n?` - ${n}`:"";return`${t}${i}`}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builder.moveDown(.5),this.dest(e),this.builder}end(){r._instance=void 0}height(){let{dest:e}=this.context.data.infNFe;if(!e)return 0;this.setup();let{xNome:t,enderDest:n}=e,i=this.addressLine(n),{left:s,right:a}=this.builder.pageMargins(),u=this.builder.pageWidth()-s-a;return this.builder.fontSize(this.context.options.textFontSize),this.builder.heightOfString(`${t}${i}`,{align:"center",width:u})}};var UP=class r{static{o(this,"Protocols")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}isProtocoled(e){return!!e}protocol(e){let t=this.context.protNFe;return this.isProtocoled(t)?this.protocoled(t.infProt,e):this.unprotocoled()}unprotocoled(){}metadata(e){let{nNF:t,serie:n,dhEmi:i}=this.context.data.infNFe.ide,s=t.padStart(9,"0"),a=n.padStart(3,"0"),{left:u,right:c}=this.builder.pageMargins(),{cUF:l}=this.context.data.infNFe.ide,f=K5[l],p=_p(i).tz(f).format("DD/MM/YYYY HH:mm:ss"),d=this.context.defaults.font,g=`${d}-Bold`;this.builder.row({left:e?.x??u,right:c},m=>this.builder.font(g).text(`NFC-e n\xBA ${s} - s\xE9rie ${a} emitida em: ${p}`,{...m,align:"center"}).font(d))}protocoled(e,t){let{dhRecbto:n,nProt:i}=e,{left:s,right:a}=this.builder.pageMargins(),{cUF:u}=this.context.data.infNFe.ide,c=K5[u],l=i.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),f=_p(n).tz(c).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??s,right:a},p=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${l}
125
125
  Data de autoriza\xE7\xE3o: ${f}`,{...p,align:"center"}))}assemble(e){let{cMsg:t,xMsg:n}=this.context.protNFe?.infProt??{},{left:i,right:s}=this.builder.pageMargins();return n&&this.builder.row({left:e?.x??i,right:s},a=>this.builder.text(`$(${t}) ${n}`,{...a,align:"left"})),this.protocol(e)}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builder.moveDown(.5),this.metadata(e),this.assemble(e),this.builder}end(){r._instance=void 0}};var qP=class r{static{o(this,"AggregateRecipientToProtocols")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builders(){return[MP.instance(this.context),UP.instance(this.context),mp.instance(this.context)]}get builder(){return this.context.builder}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builders.forEach(t=>t.build(e)),this.builder}end(){r._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>t instanceof mp?e:e+(t.height?.()??0),0)}};var Qx=class r{static{o(this,"AggregateQrCodeToProtocols")}context;static _instance;static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builders(){return[jP.instance(this.context),qP.instance(this.context)]}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}get builder(){return this.context.builder}async build(){this.setup();let e=this.builders[0],t=this.builders[1],{left:n,right:i}=this.builder.pageMargins(),s=this.builder.y();await e.build();let a=this.builder.y();this.builder.row({columns:2,left:n,right:i,size:[4,8]},()=>this.builder,d=>t.build(d));let u=e.height(),c=s+u,l=t.height(),f=a+l,p=Math.max(c,f);this.builder.y()<p&&this.builder.text("",{y:p}),this.builder.moveDown(.5);for(let d of this.builders.slice(2))await d.build();return this.builder}end(){r._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>e+t.height(),0)}};var cNe=.35277777777777775,Ij=.75,yne={"80mm":80/cNe},HP="gerado por github.com/nfets/nfets";var $x=class r{static{o(this,"Footer")}context;static _instance;constants={vTotTrib:"Tributos Totais Incidentes (Lei Federal 12.741/2012): R$"};static instance(e){return this._instance??=new r(e)}constructor(e){this.context=e}get builder(){return this.context.builder}vTotTrib(){let{vTotTrib:e}=this.context.data.infNFe.total.ICMSTot,{left:t,right:n}=this.builder.pageMargins(),i=!e||!Number.parseFloat(e.toString())?"-----":this.context.currency(e);this.builder.row({left:t,right:n},s=>this.builder.text(`${this.constants.vTotTrib} ${i}`,{...s,align:"center"}))}get infCplText(){return(this.context.data.infNFe.infAdic?.infCpl?.replace(/;/g,`
126
126
  `)??"").split(`
127
127
  `).map(t=>t.trim().replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"")).filter(t=>t.length>0).join(`