nfets 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3LPOEYDL.mjs → chunk-6GXYTBBS.mjs} +2 -2
- package/dist/{chunk-IURMCRIH.mjs → chunk-CNX6WGGL.mjs} +11 -11
- package/dist/core/index.cjs +46 -46
- package/dist/core/index.d.cts +76 -80
- package/dist/core/index.d.ts +76 -80
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +1 -1
- package/dist/nfe/index.d.cts +9 -4
- package/dist/nfe/index.d.ts +9 -4
- package/dist/nfe/index.mjs +1 -1
- package/dist/{types-CwXoUwhL.d.ts → xml-signer-_YzTA_hV.d.cts} +1 -7
- package/dist/{types-CwXoUwhL.d.cts → xml-signer-_YzTA_hV.d.ts} +1 -7
- package/package.json +1 -1
- /package/dist/{chunk-I4KZJHBR.mjs → chunk-23RWB4QQ.mjs} +0 -0
package/dist/nfe/index.cjs
CHANGED
|
@@ -105,7 +105,7 @@ ${e.join(`
|
|
|
105
105
|
`,pNe=wA.encode(yg),hNe=2,dNe=class{static{o(this,"FormDataPart")}constructor(e,t){let{escapeName:n}=this.constructor,i=ne.isString(t),s=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${yg}`;i?t=wA.encode(String(t).replace(/\r?\n|\r\n?/g,yg)):s+=`Content-Type: ${t.type||"application/octet-stream"}${yg}`,this.headers=wA.encode(s+yg),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+hNe,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;ne.isTypedArray(e)?yield e:yield*I_(e),yield pNe}static escapeName(e){return String(e).replace(/[\r\n"]/g,t=>({"\r":"%0D","\n":"%0A",'"':"%22"})[t])}},mNe=o((r,e,t)=>{let{tag:n="form-data-boundary",size:i=25,boundary:s=n+"-"+Kr.generateString(i,fNe)}=t||{};if(!ne.isFormData(r))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let a=wA.encode("--"+s+yg),u=wA.encode("--"+s+"--"+yg),c=u.byteLength,l=Array.from(r.entries()).map(([m,g])=>{let y=new dNe(m,g);return c+=y.size,y});c+=a.byteLength*l.length,c=ne.toFiniteNumber(c);let p={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(p["Content-Length"]=c),e&&e(p),yZ.Readable.from((async function*(){for(let m of l)yield a,yield*m.encode();yield u})())},"formDataToStream"),SZ=mNe;var xZ=Ar(require("stream"),1);var gNe=class extends xZ.default.Transform{static{o(this,"ZlibHeaderTransformStream")}__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,t)}this.__transform(e,t,n)}},bZ=gNe;var vNe=o((r,e)=>ne.isAsyncFn(r)?function(...t){let n=t.pop();r.apply(this,t).then(i=>{try{e?n(null,...e(i)):n(null,i)}catch(s){n(s)}},n)}:r,"callbackify"),wZ=vNe;function yNe(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,a;return e=e!==void 0?e:1e3,o(function(c){let l=Date.now(),p=n[s];a||(a=l),t[i]=c,n[i]=l;let m=s,g=0;for(;m!==i;)g+=t[m++],m=m%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),l-a<e)return;let y=p&&l-p;return y?Math.round(g*1e3/y):void 0},"push")}o(yNe,"speedometer");var CZ=yNe;function SNe(r,e){let t=0,n=1e3/e,i,s,a=o((l,p=Date.now())=>{t=p,i=null,s&&(clearTimeout(s),s=null),r(...l)},"invoke");return[o((...l)=>{let p=Date.now(),m=p-t;m>=n?a(l,p):(i=l,s||(s=setTimeout(()=>{s=null,a(i)},n-m)))},"throttled"),o(()=>i&&a(i),"flush")]}o(SNe,"throttle");var EZ=SNe;var jf=o((r,e,t=3)=>{let n=0,i=CZ(50,250);return EZ(s=>{let a=s.loaded,u=s.lengthComputable?s.total:void 0,c=a-n,l=i(c),p=a<=u;n=a;let m={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&p?(u-a)/l:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};r(m)},t)},"progressEventReducer"),OS=o((r,e)=>{let t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},"progressEventDecorator"),PS=o(r=>(...e)=>ne.asap(()=>r(...e)),"asyncDecorator");function i8(r){if(!r||typeof r!="string"||!r.startsWith("data:"))return 0;let e=r.indexOf(",");if(e<0)return 0;let t=r.slice(5,e),n=r.slice(e+1);if(/;base64/i.test(t)){let s=n.length,a=n.length;for(let g=0;g<a;g++)if(n.charCodeAt(g)===37&&g+2<a){let y=n.charCodeAt(g+1),v=n.charCodeAt(g+2);(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(s-=2,g+=2)}let u=0,c=a-1,l=o(g=>g>=2&&n.charCodeAt(g-2)===37&&n.charCodeAt(g-1)===51&&(n.charCodeAt(g)===68||n.charCodeAt(g)===100),"tailIsPct3D");c>=0&&(n.charCodeAt(c)===61?(u++,c--):l(c)&&(u++,c-=3)),u===1&&c>=0&&(n.charCodeAt(c)===61||l(c))&&u++;let m=Math.floor(s/4)*3-(u||0);return m>0?m:0}return Buffer.byteLength(n,"utf8")}o(i8,"estimateDataURLDecodedBytes");var AZ={flush:Mf.default.constants.Z_SYNC_FLUSH,finishFlush:Mf.default.constants.Z_SYNC_FLUSH},xNe={flush:Mf.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Mf.default.constants.BROTLI_OPERATION_FLUSH},NZ=ne.isFunction(Mf.default.createBrotliDecompress),{http:bNe,https:wNe}=PZ.default,CNe=/https:?/,IZ=Kr.protocols.map(r=>r+":"),TZ=o((r,[e,t])=>(r.on("end",t).on("error",t),e),"flushOnFinish"),ENe=class{static{o(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let p=n.length;for(let m=0;m<p;m++){let[g,y]=n[m];if(!g.destroyed&&!g.closed&&a8.default.isDeepStrictEqual(y,t))return g}}let i=s8.default.connect(e,t),s,a=o(()=>{if(s)return;s=!0;let p=n,m=p.length,g=m;for(;g--;)if(p[g][0]===i){m===1?delete this.sessions[e]:p.splice(g,1);return}},"removeSession"),u=i.request,{sessionTimeout:c}=t;if(c!=null){let p,m=0;i.request=function(){let g=u.apply(this,arguments);return m++,p&&(clearTimeout(p),p=null),g.once("close",()=>{--m||(p=setTimeout(()=>{p=null,a()},c))}),g}}i.once("close",a);let l=[i,t];return n?n.push(l):n=this.sessions[e]=[l],i}},ANe=new ENe;function NNe(r,e){r.beforeRedirects.proxy&&r.beforeRedirects.proxy(r),r.beforeRedirects.config&&r.beforeRedirects.config(r,e)}o(NNe,"dispatchBeforeRedirect");function LZ(r,e,t){let n=e;if(!n&&n!==!1){let i=DZ.default.getProxyForUrl(t);i&&(n=new URL(i))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let s=Buffer.from(n.auth,"utf8").toString("base64");r.headers["Proxy-Authorization"]="Basic "+s}r.headers.host=r.hostname+(r.port?":"+r.port:"");let i=n.hostname||n.host;r.hostname=i,r.host=i,r.port=n.port,r.path=t,n.protocol&&(r.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}r.beforeRedirects.proxy=o(function(s){LZ(s,e,s.href)},"beforeRedirect")}o(LZ,"setProxy");var INe=typeof process<"u"&&ne.kindOf(process)==="process",TNe=o(r=>new Promise((e,t)=>{let n,i,s=o((c,l)=>{i||(i=!0,n&&n(c,l))},"done"),a=o(c=>{s(c),e(c)},"_resolve"),u=o(c=>{s(c,!0),t(c)},"_reject");r(a,u,c=>n=c).catch(u)}),"wrapAsync"),RNe=o(({address:r,family:e})=>{if(!ne.isString(r))throw TypeError("address must be a string");return{address:r,family:e||(r.indexOf(".")<0?6:4)}},"resolveFamily"),RZ=o((r,e)=>RNe(ne.isObject(r)?r:{address:r,family:e}),"buildAddressEntry"),DNe={request(r,e){let t=r.protocol+"//"+r.hostname+":"+(r.port||80),{http2Options:n,headers:i}=r,s=ANe.getSession(t,n),{HTTP2_HEADER_SCHEME:a,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=s8.default.constants,p={[a]:r.protocol.replace(":",""),[u]:r.method,[c]:r.path};ne.forEach(i,(g,y)=>{y.charAt(0)!==":"&&(p[y]=g)});let m=s.request(p);return m.once("response",g=>{let y=m;g=Object.assign({},g);let v=g[l];delete g[l],y.headers=g,y.statusCode=+v,e(y)}),m}},FZ=INe&&o(function(e){return TNe(o(async function(n,i,s){let{data:a,lookup:u,family:c,httpVersion:l=1,http2Options:p}=e,{responseType:m,responseEncoding:g}=e,y=e.method.toUpperCase(),v,b=!1,x;if(l=+l,Number.isNaN(l))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(l!==1&&l!==2)throw TypeError(`Unsupported protocol version '${l}'`);let E=l===2;if(u){let xe=wZ(u,ie=>ne.isArray(ie)?ie:[ie]);u=o((ie,De,Ze)=>{xe(ie,De,(We,it,L)=>{if(We)return Ze(We);let O=ne.isArray(it)?it.map(oe=>RZ(oe)):[RZ(it,L)];De.all?Ze(We,O):Ze(We,O[0].address,O[0].family)})},"lookup")}let N=new BZ.EventEmitter;function w(xe){try{N.emit("abort",!xe||xe.type?new bo(null,e,x):xe)}catch(ie){console.warn("emit error",ie)}}o(w,"abort"),N.once("abort",i);let C=o(()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),N.removeAllListeners()},"onFinished");(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),s((xe,ie)=>{if(v=!0,ie){b=!0,C();return}let{data:De}=xe;if(De instanceof Uf.default.Readable||De instanceof Uf.default.Duplex){let Ze=Uf.default.finished(De,()=>{Ze(),C()})}else C()});let A=dg(e.baseURL,e.url,e.allowAbsoluteUrls),R=new URL(A,Kr.hasBrowserEnv?Kr.origin:void 0),M=R.protocol||IZ[0];if(M==="data:"){if(e.maxContentLength>-1){let ie=String(e.url||A||"");if(i8(ie)>e.maxContentLength)return i(new at("maxContentLength size of "+e.maxContentLength+" exceeded",at.ERR_BAD_RESPONSE,e))}let xe;if(y!=="GET")return ml(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{xe=t8(e.url,m==="blob",{Blob:e.env&&e.env.Blob})}catch(ie){throw at.from(ie,at.ERR_BAD_REQUEST,e)}return m==="text"?(xe=xe.toString(g),(!g||g==="utf8")&&(xe=ne.stripBOM(xe))):m==="stream"&&(xe=Uf.default.Readable.from(xe)),ml(n,i,{data:xe,status:200,statusText:"OK",headers:new ni,config:e})}if(IZ.indexOf(M)===-1)return i(new at("Unsupported protocol "+M,at.ERR_BAD_REQUEST,e));let _=ni.from(e.headers).normalize();_.set("User-Agent","axios/"+vg,!1);let{onUploadProgress:H,onDownloadProgress:z}=e,K=e.maxRate,X,ye;if(ne.isSpecCompliantForm(a)){let xe=_.getContentType(/boundary=([-_\w\d]{10,70})/i);a=SZ(a,ie=>{_.set(ie)},{tag:`axios-${vg}-boundary`,boundary:xe&&xe[1]||void 0})}else if(ne.isFormData(a)&&ne.isFunction(a.getHeaders)){if(_.set(a.getHeaders()),!_.hasContentLength())try{let xe=await a8.default.promisify(a.getLength).call(a);Number.isFinite(xe)&&xe>=0&&_.setContentLength(xe)}catch{}}else if(ne.isBlob(a)||ne.isFile(a))a.size&&_.setContentType(a.type||"application/octet-stream"),_.setContentLength(a.size||0),a=Uf.default.Readable.from(I_(a));else if(a&&!ne.isStream(a)){if(!Buffer.isBuffer(a))if(ne.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(ne.isString(a))a=Buffer.from(a,"utf-8");else return i(new at("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",at.ERR_BAD_REQUEST,e));if(_.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return i(new at("Request body larger than maxBodyLength limit",at.ERR_BAD_REQUEST,e))}let fe=ne.toFiniteNumber(_.getContentLength());ne.isArray(K)?(X=K[0],ye=K[1]):X=ye=K,a&&(H||X)&&(ne.isStream(a)||(a=Uf.default.Readable.from(a,{objectMode:!1})),a=Uf.default.pipeline([a,new n8({maxRate:ne.toFiniteNumber(X)})],ne.noop),H&&a.on("progress",TZ(a,OS(fe,jf(PS(H),!1,3)))));let ce;if(e.auth){let xe=e.auth.username||"",ie=e.auth.password||"";ce=xe+":"+ie}if(!ce&&R.username){let xe=R.username,ie=R.password;ce=xe+":"+ie}ce&&_.delete("authorization");let ee;try{ee=hg(R.pathname+R.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(xe){let ie=new Error(xe.message);return ie.config=e,ie.url=e.url,ie.exists=!0,i(ie)}_.set("Accept-Encoding","gzip, compress, deflate"+(NZ?", br":""),!1);let pe={path:ee,method:y,headers:_.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:ce,protocol:M,family:c,beforeRedirect:NNe,beforeRedirects:{},http2Options:p};!ne.isUndefined(u)&&(pe.lookup=u),e.socketPath?pe.socketPath=e.socketPath:(pe.hostname=R.hostname.startsWith("[")?R.hostname.slice(1,-1):R.hostname,pe.port=R.port,LZ(pe,e.proxy,M+"//"+R.hostname+(R.port?":"+R.port:"")+pe.path));let Ce,Ye=CNe.test(pe.protocol);if(pe.agent=Ye?e.httpsAgent:e.httpAgent,E?Ce=DNe:e.transport?Ce=e.transport:e.maxRedirects===0?Ce=Ye?OZ.default:_Z.default:(e.maxRedirects&&(pe.maxRedirects=e.maxRedirects),e.beforeRedirect&&(pe.beforeRedirects.config=e.beforeRedirect),Ce=Ye?wNe:bNe),e.maxBodyLength>-1?pe.maxBodyLength=e.maxBodyLength:pe.maxBodyLength=1/0,e.insecureHTTPParser&&(pe.insecureHTTPParser=e.insecureHTTPParser),x=Ce.request(pe,o(function(ie){if(x.destroyed)return;let De=[ie],Ze=ne.toFiniteNumber(ie.headers["content-length"]);if(z||ye){let O=new n8({maxRate:ne.toFiniteNumber(ye)});z&&O.on("progress",TZ(O,OS(Ze,jf(PS(z),!0,3)))),De.push(O)}let We=ie,it=ie.req||x;if(e.decompress!==!1&&ie.headers["content-encoding"])switch((y==="HEAD"||ie.statusCode===204)&&delete ie.headers["content-encoding"],(ie.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":De.push(Mf.default.createUnzip(AZ)),delete ie.headers["content-encoding"];break;case"deflate":De.push(new bZ),De.push(Mf.default.createUnzip(AZ)),delete ie.headers["content-encoding"];break;case"br":NZ&&(De.push(Mf.default.createBrotliDecompress(xNe)),delete ie.headers["content-encoding"])}We=De.length>1?Uf.default.pipeline(De,ne.noop):De[0];let L={status:ie.statusCode,statusText:ie.statusMessage,headers:new ni(ie.headers),config:e,request:it};if(m==="stream")L.data=We,ml(n,i,L);else{let O=[],oe=0;We.on("data",o(function(Ge){O.push(Ge),oe+=Ge.length,e.maxContentLength>-1&&oe>e.maxContentLength&&(b=!0,We.destroy(),w(new at("maxContentLength size of "+e.maxContentLength+" exceeded",at.ERR_BAD_RESPONSE,e,it)))},"handleStreamData")),We.on("aborted",o(function(){if(b)return;let Ge=new at("stream has been aborted",at.ERR_BAD_RESPONSE,e,it);We.destroy(Ge),i(Ge)},"handlerStreamAborted")),We.on("error",o(function(Ge){x.destroyed||i(at.from(Ge,null,e,it))},"handleStreamError")),We.on("end",o(function(){try{let Ge=O.length===1?O[0]:Buffer.concat(O);m!=="arraybuffer"&&(Ge=Ge.toString(g),(!g||g==="utf8")&&(Ge=ne.stripBOM(Ge))),L.data=Ge}catch(Ge){return i(at.from(Ge,null,e,L.request,L))}ml(n,i,L)},"handleStreamEnd"))}N.once("abort",O=>{We.destroyed||(We.emit("error",O),We.destroy())})},"handleResponse")),N.once("abort",xe=>{x.close?x.close():x.destroy(xe)}),x.on("error",o(function(ie){i(at.from(ie,null,e,x))},"handleRequestError")),x.on("socket",o(function(ie){ie.setKeepAlive(!0,1e3*60)},"handleRequestSocket")),e.timeout){let xe=parseInt(e.timeout,10);if(Number.isNaN(xe)){w(new at("error trying to parse `config.timeout` to int",at.ERR_BAD_OPTION_VALUE,e,x));return}x.setTimeout(xe,o(function(){if(v)return;let De=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",Ze=e.transitional||DS;e.timeoutErrorMessage&&(De=e.timeoutErrorMessage),w(new at(De,Ze.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,x))},"handleRequestTimeout"))}else x.setTimeout(0);if(ne.isStream(a)){let xe=!1,ie=!1;a.on("end",()=>{xe=!0}),a.once("error",De=>{ie=!0,x.destroy(De)}),a.on("close",()=>{!xe&&!ie&&w(new bo("Request stream has been aborted",e,x))}),a.pipe(x)}else a&&x.write(a),x.end()},"dispatchHttpRequest"))},"httpAdapter");var kZ=Kr.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Kr.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Kr.origin),Kr.navigator&&/(msie|trident)/i.test(Kr.navigator.userAgent)):()=>!0;var VZ=Kr.hasStandardBrowserEnv?{write(r,e,t,n,i,s,a){if(typeof document>"u")return;let u=[`${r}=${encodeURIComponent(e)}`];ne.isNumber(t)&&u.push(`expires=${new Date(t).toUTCString()}`),ne.isString(n)&&u.push(`path=${n}`),ne.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),ne.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(r){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var jZ=o(r=>r instanceof ni?{...r}:r,"headersToObject");function Wu(r,e){e=e||{};let t={};function n(l,p,m,g){return ne.isPlainObject(l)&&ne.isPlainObject(p)?ne.merge.call({caseless:g},l,p):ne.isPlainObject(p)?ne.merge({},p):ne.isArray(p)?p.slice():p}o(n,"getMergedValue");function i(l,p,m,g){if(ne.isUndefined(p)){if(!ne.isUndefined(l))return n(void 0,l,m,g)}else return n(l,p,m,g)}o(i,"mergeDeepProperties");function s(l,p){if(!ne.isUndefined(p))return n(void 0,p)}o(s,"valueFromConfig2");function a(l,p){if(ne.isUndefined(p)){if(!ne.isUndefined(l))return n(void 0,l)}else return n(void 0,p)}o(a,"defaultToConfig2");function u(l,p,m){if(m in e)return n(l,p);if(m in r)return n(void 0,l)}o(u,"mergeDirectKeys");let c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:o((l,p,m)=>i(jZ(l),jZ(p),m,!0),"headers")};return ne.forEach(Object.keys({...r,...e}),o(function(p){let m=c[p]||i,g=m(r[p],e[p],p);ne.isUndefined(g)&&m!==u||(t[p]=g)},"computeConfigValue")),t}o(Wu,"mergeConfig");var T_=o((r=>{let e=Wu({},r),{data:t,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:u}=e;if(e.headers=a=ni.from(a),e.url=hg(dg(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ne.isFormData(t)){if(Kr.hasStandardBrowserEnv||Kr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ne.isFunction(t.getHeaders)){let c=t.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([p,m])=>{l.includes(p.toLowerCase())&&a.set(p,m)})}}if(Kr.hasStandardBrowserEnv&&(n&&ne.isFunction(n)&&(n=n(e)),n||n!==!1&&kZ(e.url))){let c=i&&s&&VZ.read(s);c&&a.set(i,c)}return e}),"default");var _Ne=typeof XMLHttpRequest<"u",UZ=_Ne&&function(r){return new Promise(o(function(t,n){let i=T_(r),s=i.data,a=ni.from(i.headers).normalize(),{responseType:u,onUploadProgress:c,onDownloadProgress:l}=i,p,m,g,y,v;function b(){y&&y(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}o(b,"done");let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function E(){if(!x)return;let w=ni.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),A={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:w,config:r,request:x};ml(o(function(M){t(M),b()},"_resolve"),o(function(M){n(M),b()},"_reject"),A),x=null}o(E,"onloadend"),"onloadend"in x?x.onloadend=E:x.onreadystatechange=o(function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(E)},"handleLoad"),x.onabort=o(function(){x&&(n(new at("Request aborted",at.ECONNABORTED,r,x)),x=null)},"handleAbort"),x.onerror=o(function(C){let A=C&&C.message?C.message:"Network Error",R=new at(A,at.ERR_NETWORK,r,x);R.event=C||null,n(R),x=null},"handleError"),x.ontimeout=o(function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",A=i.transitional||DS;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new at(C,A.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,r,x)),x=null},"handleTimeout"),s===void 0&&a.setContentType(null),"setRequestHeader"in x&&ne.forEach(a.toJSON(),o(function(C,A){x.setRequestHeader(A,C)},"setRequestHeader")),ne.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),u&&u!=="json"&&(x.responseType=i.responseType),l&&([g,v]=jf(l,!0),x.addEventListener("progress",g)),c&&x.upload&&([m,y]=jf(c),x.upload.addEventListener("progress",m),x.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(p=o(w=>{x&&(n(!w||w.type?new bo(null,r,x):w),x.abort(),x=null)},"onCanceled"),i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));let N=bA(i.url);if(N&&Kr.protocols.indexOf(N)===-1){n(new at("Unsupported protocol "+N+":",at.ERR_BAD_REQUEST,r));return}x.send(s||null)},"dispatchXhrRequest"))};var ONe=o((r,e)=>{let{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,i,s=o(function(l){if(!i){i=!0,u();let p=l instanceof Error?l:this.reason;n.abort(p instanceof at?p:new bo(p instanceof Error?p.message:p))}},"onabort"),a=e&&setTimeout(()=>{a=null,s(new at(`timeout ${e} of ms exceeded`,at.ETIMEDOUT))},e),u=o(()=>{r&&(a&&clearTimeout(a),a=null,r.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),r=null)},"unsubscribe");r.forEach(l=>l.addEventListener("abort",s));let{signal:c}=n;return c.unsubscribe=()=>ne.asap(u),c}},"composeSignals"),MZ=ONe;var PNe=o(function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let n=0,i;for(;n<t;)i=n+e,yield r.slice(n,i),n=i},"streamChunk"),BNe=o(async function*(r,e){for await(let t of LNe(r))yield*PNe(t,e)},"readBytes"),LNe=o(async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}let e=r.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},"readStream"),o8=o((r,e,t,n)=>{let i=BNe(r,e),s=0,a,u=o(c=>{a||(a=!0,n&&n(c))},"_onFinish");return new ReadableStream({async pull(c){try{let{done:l,value:p}=await i.next();if(l){u(),c.close();return}let m=p.byteLength;if(t){let g=s+=m;t(g)}c.enqueue(new Uint8Array(p))}catch(l){throw u(l),l}},cancel(c){return u(c),i.return()}},{highWaterMark:2})},"trackStream");var qZ=64*1024,{isFunction:R_}=ne,FNe=(({Request:r,Response:e})=>({Request:r,Response:e}))(ne.global),{ReadableStream:HZ,TextEncoder:zZ}=ne.global,KZ=o((r,...e)=>{try{return!!r(...e)}catch{return!1}},"test"),kNe=o(r=>{r=ne.merge.call({skipUndefined:!0},FNe,r);let{fetch:e,Request:t,Response:n}=r,i=e?R_(e):typeof fetch=="function",s=R_(t),a=R_(n);if(!i)return!1;let u=i&&R_(HZ),c=i&&(typeof zZ=="function"?(v=>b=>v.encode(b))(new zZ):async v=>new Uint8Array(await new t(v).arrayBuffer())),l=s&&u&&KZ(()=>{let v=!1,b=new t(Kr.origin,{body:new HZ,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!b}),p=a&&u&&KZ(()=>ne.isReadableStream(new n("").body)),m={stream:p&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!m[v]&&(m[v]=(b,x)=>{let E=b&&b[v];if(E)return E.call(b);throw new at(`Response type '${v}' is not supported`,at.ERR_NOT_SUPPORT,x)})});let g=o(async v=>{if(v==null)return 0;if(ne.isBlob(v))return v.size;if(ne.isSpecCompliantForm(v))return(await new t(Kr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(v)||ne.isArrayBuffer(v))return v.byteLength;if(ne.isURLSearchParams(v)&&(v=v+""),ne.isString(v))return(await c(v)).byteLength},"getBodyLength"),y=o(async(v,b)=>{let x=ne.toFiniteNumber(v.getContentLength());return x??g(b)},"resolveBodyLength");return async v=>{let{url:b,method:x,data:E,signal:N,cancelToken:w,timeout:C,onDownloadProgress:A,onUploadProgress:R,responseType:M,headers:_,withCredentials:H="same-origin",fetchOptions:z}=T_(v),K=e||fetch;M=M?(M+"").toLowerCase():"text";let X=MZ([N,w&&w.toAbortSignal()],C),ye=null,fe=X&&X.unsubscribe&&(()=>{X.unsubscribe()}),ce;try{if(R&&l&&x!=="get"&&x!=="head"&&(ce=await y(_,E))!==0){let ie=new t(b,{method:"POST",body:E,duplex:"half"}),De;if(ne.isFormData(E)&&(De=ie.headers.get("content-type"))&&_.setContentType(De),ie.body){let[Ze,We]=OS(ce,jf(PS(R)));E=o8(ie.body,qZ,Ze,We)}}ne.isString(H)||(H=H?"include":"omit");let ee=s&&"credentials"in t.prototype,pe={...z,signal:X,method:x.toUpperCase(),headers:_.normalize().toJSON(),body:E,duplex:"half",credentials:ee?H:void 0};ye=s&&new t(b,pe);let Ce=await(s?K(ye,z):K(b,pe)),Ye=p&&(M==="stream"||M==="response");if(p&&(A||Ye&&fe)){let ie={};["status","statusText","headers"].forEach(it=>{ie[it]=Ce[it]});let De=ne.toFiniteNumber(Ce.headers.get("content-length")),[Ze,We]=A&&OS(De,jf(PS(A),!0))||[];Ce=new n(o8(Ce.body,qZ,Ze,()=>{We&&We(),fe&&fe()}),ie)}M=M||"text";let xe=await m[ne.findKey(m,M)||"text"](Ce,v);return!Ye&&fe&&fe(),await new Promise((ie,De)=>{ml(ie,De,{data:xe,headers:ni.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:v,request:ye})})}catch(ee){throw fe&&fe(),ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,v,ye),{cause:ee.cause||ee}):at.from(ee,ee&&ee.code,v,ye)}}},"factory"),VNe=new Map,u8=o(r=>{let e=r&&r.env||{},{fetch:t,Request:n,Response:i}=e,s=[n,i,t],a=s.length,u=a,c,l,p=VNe;for(;u--;)c=s[u],l=p.get(c),l===void 0&&p.set(c,l=u?new Map:kNe(e)),p=l;return l},"getFetch"),t7e=u8();var c8={http:FZ,xhr:UZ,fetch:{get:u8}};ne.forEach(c8,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});var $Z=o(r=>`- ${r}`,"renderReason"),UNe=o(r=>ne.isFunction(r)||r===null||r===!1,"isResolvedHandle");function MNe(r,e){r=ne.isArray(r)?r:[r];let{length:t}=r,n,i,s={};for(let a=0;a<t;a++){n=r[a];let u;if(i=n,!UNe(n)&&(i=c8[(u=String(n)).toLowerCase()],i===void 0))throw new at(`Unknown adapter '${u}'`);if(i&&(ne.isFunction(i)||(i=i.get(e))))break;s[u||"#"+a]=i}if(!i){let a=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build")),u=t?a.length>1?`since :
|
|
106
106
|
`+a.map($Z).join(`
|
|
107
107
|
`):" "+$Z(a[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}o(MNe,"getAdapter");var D_={getAdapter:MNe,adapters:c8};function l8(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new bo(null,r)}o(l8,"throwIfCancellationRequested");function __(r){return l8(r),r.headers=ni.from(r.headers),r.data=mA.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),D_.getAdapter(r.adapter||_S.adapter,r)(r).then(o(function(n){return l8(r),n.data=mA.call(r,r.transformResponse,n),n.headers=ni.from(n.headers),n},"onAdapterResolution"),o(function(n){return gA(n)||(l8(r),n&&n.response&&(n.response.data=mA.call(r,r.transformResponse,n.response),n.response.headers=ni.from(n.response.headers))),Promise.reject(n)},"onAdapterRejection"))}o(__,"dispatchRequest");var O_={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{O_[r]=o(function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r},"validator")});var GZ={};O_.transitional=o(function(e,t,n){function i(s,a){return"[Axios v"+vg+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return o(i,"formatMessage"),(s,a,u)=>{if(e===!1)throw new at(i(a," has been removed"+(t?" in "+t:"")),at.ERR_DEPRECATED);return t&&!GZ[a]&&(GZ[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,a,u):!0}},"transitional");O_.spelling=o(function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)},"spelling");function qNe(r,e,t){if(typeof r!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],a=e[s];if(a){let u=r[s],c=u===void 0||a(u,s,r);if(c!==!0)throw new at("option "+s+" must be "+c,at.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new at("Unknown option "+s,at.ERR_BAD_OPTION)}}o(qNe,"assertOptions");var CA={assertOptions:qNe,validators:O_};var gl=CA.validators,P_=class{static{o(this,"Axios")}constructor(e){this.defaults=e||{},this.interceptors={request:new PV,response:new PV}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;let s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
108
|
-
`+s):n.stack=s}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Wu(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&CA.assertOptions(n,{silentJSONParsing:gl.transitional(gl.boolean),forcedJSONParsing:gl.transitional(gl.boolean),clarifyTimeoutError:gl.transitional(gl.boolean)},!1),i!=null&&(ne.isFunction(i)?t.paramsSerializer={serialize:i}:CA.assertOptions(i,{encode:gl.function,serialize:gl.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),CA.assertOptions(t,{baseUrl:gl.spelling("baseURL"),withXsrfToken:gl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ne.merge(s.common,s[t.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),t.headers=ni.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(o(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))},"unshiftRequestInterceptors"));let l=[];this.interceptors.response.forEach(o(function(b){l.push(b.fulfilled,b.rejected)},"pushResponseInterceptors"));let p,m=0,g;if(!c){let v=[__.bind(this),void 0];for(v.unshift(...u),v.push(...l),g=v.length,p=Promise.resolve(t);m<g;)p=p.then(v[m++],v[m++]);return p}g=u.length;let y=t;for(;m<g;){let v=u[m++],b=u[m++];try{y=v(y)}catch(x){b.call(this,x);break}}try{p=__.call(this,y)}catch(v){return Promise.reject(v)}for(m=0,g=l.length;m<g;)p=p.then(l[m++],l[m++]);return p}getUri(e){e=Wu(this.defaults,e);let t=dg(e.baseURL,e.url,e.allowAbsoluteUrls);return hg(t,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],o(function(e){P_.prototype[e]=function(t,n){return this.request(Wu(n||{},{method:e,url:t,data:(n||{}).data}))}},"forEachMethodNoData"));ne.forEach(["post","put","patch"],o(function(e){function t(n){return o(function(s,a,u){return this.request(Wu(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))},"httpMethod")}o(t,"generateHTTPMethod"),P_.prototype[e]=t(),P_.prototype[e+"Form"]=t(!0)},"forEachMethodWithData"));var EA=P_;var HNe=class XZ{static{o(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(o(function(s){t=s},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(u=>{n.subscribe(u),s=u}).then(i);return a.cancel=o(function(){n.unsubscribe(s)},"reject"),a},e(o(function(s,a,u){n.reason||(n.reason=new bo(s,a,u),t(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=o(n=>{e.abort(n)},"abort");return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new XZ(o(function(i){e=i},"executor")),cancel:e}}},WZ=HNe;function f8(r){return o(function(t){return r.apply(null,t)},"wrap")}o(f8,"spread");function p8(r){return ne.isObject(r)&&r.isAxiosError===!0}o(p8,"isAxiosError");var h8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(h8).forEach(([r,e])=>{h8[e]=r});var JZ=h8;function QZ(r){let e=new EA(r),t=lA(EA.prototype.request,e);return ne.extend(t,EA.prototype,e,{allOwnKeys:!0}),ne.extend(t,e,null,{allOwnKeys:!0}),t.create=o(function(i){return QZ(Wu(r,i))},"create"),t}o(QZ,"createInstance");var _i=QZ(_S);_i.Axios=EA;_i.CanceledError=bo;_i.CancelToken=WZ;_i.isCancel=gA;_i.VERSION=vg;_i.toFormData=Id;_i.AxiosError=at;_i.Cancel=_i.CanceledError;_i.all=o(function(e){return Promise.all(e)},"all");_i.spread=f8;_i.isAxiosError=p8;_i.mergeConfig=Wu;_i.AxiosHeaders=ni;_i.formToJSON=r=>E_(ne.isHTMLForm(r)?new FormData(r):r);_i.getAdapter=D_.getAdapter;_i.HttpStatusCode=JZ;_i.default=_i;var B_=_i;var{Axios:oKe,AxiosError:uKe,CanceledError:cKe,isCancel:lKe,CancelToken:fKe,VERSION:pKe,all:hKe,Cancel:dKe,isAxiosError:mKe,spread:gKe,toFormData:vKe,AxiosHeaders:yKe,HttpStatusCode:SKe,formToJSON:xKe,getAdapter:bKe,mergeConfig:wKe}=B_;var BS=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=B_.create();toolkit=new y_;caching=new KN;certificates=new O2(this.http,this.caching);soap=new cT(this.toolkit,this.certificates);signer=new N2(this.toolkit,this.certificates);xmlSigner=new I2(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(qo,this)}};var See=Ar(require("path"),1);var le={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"},YZ=Object.keys(le);var Me={Production:"1",Homolog:"2"};var OKe={[le.AC]:"America/Rio_Branco",[le.AL]:"America/Maceio",[le.AM]:"America/Manaus",[le.AP]:"America/Belem",[le.BA]:"America/Bahia",[le.CE]:"America/Fortaleza",[le.DF]:"America/Sao_Paulo",[le.ES]:"America/Sao_Paulo",[le.GO]:"America/Sao_Paulo",[le.MA]:"America/Fortaleza",[le.MG]:"America/Sao_Paulo",[le.MS]:"America/Campo_Grande",[le.MT]:"America/Cuiaba",[le.PA]:"America/Belem",[le.PB]:"America/Fortaleza",[le.PE]:"America/Recife",[le.PI]:"America/Fortaleza",[le.PR]:"America/Sao_Paulo",[le.RJ]:"America/Sao_Paulo",[le.RN]:"America/Fortaleza",[le.RO]:"America/Porto_Velho",[le.RR]:"America/Boa_Vista",[le.RS]:"America/Sao_Paulo",[le.SC]:"America/Sao_Paulo",[le.SE]:"America/Maceio",[le.SP]:"America/Sao_Paulo",[le.TO]:"America/Araguaina"};var ZZ=require("class-transformer"),Ju=require("class-validator");function L_(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(L_,"_ts_decorate");function m8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(m8,"_ts_metadata");var Td=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};L_([(0,Ju.IsEnum)(Me),m8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Td.prototype,"tpAmb",void 0);L_([(0,Ju.IsEnum)(le),m8("design:type",typeof StateCode>"u"?Object:StateCode)],Td.prototype,"cUF",void 0);L_([(0,Ju.IsOptional)()],Td.prototype,"xServ",void 0);var d8=class{static{o(this,"ConsultStatusRequest")}consStatServ};L_([(0,Ju.IsNotEmptyObject)(),(0,Ju.IsObject)(),(0,Ju.ValidateNested)(),(0,ZZ.Type)(()=>Td),m8("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],d8.prototype,"consStatServ",void 0);var k_=require("class-transformer"),ar=require("class-validator");function ji(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(ji,"_ts_decorate");function Ts(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ts,"_ts_metadata");var F_=class{static{o(this,"InfInutAttributes")}Id};ji([(0,ar.IsString)(),Ts("design:type",String)],F_.prototype,"Id",void 0);var AA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};ji([(0,ar.IsString)(),Ts("design:type",String)],AA.prototype,"xmlns",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],AA.prototype,"versao",void 0);var Is=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};ji([(0,ar.ValidateNested)(),(0,k_.Type)(()=>F_),Ts("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Is.prototype,"$",void 0);ji([(0,ar.IsEnum)(Me),Ts("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Is.prototype,"tpAmb",void 0);ji([(0,ar.IsOptional)()],Is.prototype,"xServ",void 0);ji([(0,ar.IsEnum)(le),Ts("design:type",typeof StateCode>"u"?Object:StateCode)],Is.prototype,"cUF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^[0-9]{2}$/),Ts("design:type",String)],Is.prototype,"ano",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CNPJ",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CPF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^(55|65)$/),Ts("design:type",String)],Is.prototype,"mod",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,3}$/),Ts("design:type",String)],Is.prototype,"serie",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFIni",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFFin",void 0);ji([(0,ar.IsString)(),(0,ar.MinLength)(15),(0,ar.MaxLength)(255),Ts("design:type",String)],Is.prototype,"xJust",void 0);Is=ji([tn({properties:["CNPJ","CPF"],required:!0})],Is);var qf=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,k_.Type)(()=>AA),Ts("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],qf.prototype,"$",void 0);ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,k_.Type)(()=>Is),Ts("design:type",typeof IInfInut>"u"?Object:IInfInut)],qf.prototype,"infInut",void 0);ji([(0,ar.Allow)(),Ts("design:type",typeof Signature>"u"?Object:Signature)],qf.prototype,"Signature",void 0);var vl=require("class-validator");function g8(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(g8,"_ts_decorate");function eee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(eee,"_ts_metadata");var Sg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};g8([(0,vl.IsEnum)(Me),eee("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Sg.prototype,"tpAmb",void 0);g8([(0,vl.IsOptional)()],Sg.prototype,"xServ",void 0);g8([(0,vl.IsString)(),(0,vl.Length)(44,44),(0,vl.Matches)(/^[0-9]{44}$/),eee("design:type",String)],Sg.prototype,"chNFe",void 0);var gee=require("class-transformer"),gu=require("class-validator");var Ca=require("class-validator");var Ot=require("class-validator"),Ci=require("class-transformer");var xt=require("class-validator"),NA=require("class-transformer");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 Hf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"cUF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"AAMM",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"CNPJ",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"serie",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"nNF",void 0);var wo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"cUF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"AAMM",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"CNPJ",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"CPF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"IE",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"serie",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"nNF",void 0);wo=qt([tn({properties:["CNPJ","CPF"],required:!0})],wo);var LS=class{static{o(this,"RefECF")}mod;nECF;nCOO};qt([(0,xt.IsString)(),zt("design:type",String)],LS.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],LS.prototype,"nECF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],LS.prototype,"nCOO",void 0);var zf=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],zf.prototype,"refNFe",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],zf.prototype,"refNFeSig",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,NA.Type)(()=>Hf),zt("design:type",typeof IRefNF>"u"?Object:IRefNF)],zf.prototype,"refNF",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,NA.Type)(()=>wo),zt("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],zf.prototype,"refNFP",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],zf.prototype,"refCTe",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,NA.Type)(()=>LS),zt("design:type",typeof IRefECF>"u"?Object:IRefECF)],zf.prototype,"refECF",void 0);var Yr=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};qt([(0,xt.IsEnum)(le),zt("design:type",typeof StateCode>"u"?Object:StateCode)],Yr.prototype,"cUF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"cNF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"natOp",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"serie",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"nNF",void 0);qt([Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),zt("design:type",String)],Yr.prototype,"dhEmi",void 0);qt([(0,xt.IsOptional)(),Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),zt("design:type",String)],Yr.prototype,"dhSaiEnt",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"tpNF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"idDest",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"cMunFG",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"tpImp",void 0);qt([(0,xt.IsString)(),zt("design:type",typeof TpEmis>"u"?Object:TpEmis)],Yr.prototype,"tpEmis",void 0);qt([(0,xt.IsString)(),(0,xt.IsOptional)(),zt("design:type",String)],Yr.prototype,"cDV",void 0);qt([(0,xt.IsString)(),zt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Yr.prototype,"tpAmb",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"finNFe",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"indFinal",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"indPres",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"indIntermed",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"procEmi",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"verProc",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),zt("design:type",String)],Yr.prototype,"dhCont",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"xJust",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,NA.Type)(()=>zf),zt("design:type",Array)],Yr.prototype,"NFref",void 0);var Ui=require("class-validator");var tee=require("class-transformer");var Ds=require("class-validator");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 Yu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Yu,"_ts_metadata");var Rs=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xLgr",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"nro",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xCpl",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xBairro",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"cMun",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xMun",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"UF",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"CEP",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"cPais",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xPais",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"fone",void 0);function Zu(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(Zu,"_ts_decorate");function yl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yl,"_ts_metadata");var ns=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CNPJ",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CPF",void 0);Zu([(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"xNome",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"xFant",void 0);Zu([(0,Ui.ValidateNested)(),(0,tee.Type)(()=>Rs),yl("design:type",typeof Rs>"u"?Object:Rs)],ns.prototype,"enderEmit",void 0);Zu([(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"IE",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"IEST",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"IM",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CNAE",void 0);Zu([(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CRT",void 0);ns=Zu([tn({properties:["CNPJ","CPF"],required:!0})],ns);var hi=require("class-validator"),ree=require("class-transformer");var Un=require("class-validator");function ec(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(ec,"_ts_decorate");function tc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tc,"_ts_metadata");var Sa=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xLgr",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"nro",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xCpl",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xBairro",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"cMun",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xMun",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"UF",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"CEP",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"cPais",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xPais",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"fone",void 0);function rc(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(rc,"_ts_decorate");function Sl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Sl,"_ts_metadata");var is=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"CNPJ",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"CPF",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"idEstrangeiro",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"xNome",void 0);rc([(0,hi.IsOptional)(),(0,hi.ValidateNested)(),(0,ree.Type)(()=>Sa),Sl("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],is.prototype,"enderDest",void 0);rc([(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"indIEDest",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"IE",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"ISUF",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"IM",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"email",void 0);is=rc([tn({properties:["CNPJ","CPF"],required:!0})],is);var cn=require("class-validator");function _s(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(_s,"_ts_decorate");function Ys(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ys,"_ts_metadata");var An=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"CNPJ",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"CPF",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xNome",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xLgr",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"nro",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xCpl",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xBairro",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"cMun",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xMun",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"UF",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"CEP",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"cPais",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xPais",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"fone",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"email",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"IE",void 0);An=_s([tn({properties:["CNPJ","CPF"]})],An);var FS=require("class-validator");function v8(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(v8,"_ts_decorate");function nee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nee,"_ts_metadata");var xl=class{static{o(this,"AutXML")}CNPJ;CPF};v8([(0,FS.IsOptional)(),(0,FS.IsString)(),nee("design:type",String)],xl.prototype,"CNPJ",void 0);v8([(0,FS.IsOptional)(),(0,FS.IsString)(),nee("design:type",String)],xl.prototype,"CPF",void 0);xl=v8([tn({properties:["CNPJ","CPF"]})],xl);var IA=require("class-validator");function iee(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(iee,"_ts_decorate");function see(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(see,"_ts_metadata");var Rd=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};iee([(0,IA.IsString)(),see("design:type",String)],Rd.prototype,"CNPJ",void 0);iee([(0,IA.IsOptional)(),(0,IA.IsString)(),see("design:type",String)],Rd.prototype,"idCadIntTran",void 0);var xg=require("class-validator");function y8(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(y8,"_ts_decorate");function S8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(S8,"_ts_metadata");var Kf=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};y8([(0,xg.IsString)(),S8("design:type",String)],Kf.prototype,"UFSaidaPais",void 0);y8([(0,xg.IsOptional)(),(0,xg.IsString)(),S8("design:type",String)],Kf.prototype,"xLocExporta",void 0);y8([(0,xg.IsOptional)(),(0,xg.IsString)(),S8("design:type",String)],Kf.prototype,"xLocDespacho",void 0);var Dd=require("class-validator");function x8(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(x8,"_ts_decorate");function b8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(b8,"_ts_metadata");var $f=class{static{o(this,"Compra")}xNEmp;xPed;xCont};x8([(0,Dd.IsOptional)(),(0,Dd.IsString)(),b8("design:type",String)],$f.prototype,"xNEmp",void 0);x8([(0,Dd.IsOptional)(),(0,Dd.IsString)(),b8("design:type",String)],$f.prototype,"xPed",void 0);x8([(0,Dd.IsOptional)(),(0,Dd.IsString)(),b8("design:type",String)],$f.prototype,"xCont",void 0);var bl=require("class-validator");function kS(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(kS,"_ts_decorate");function VS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(VS,"_ts_metadata");var cu=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"CNPJ",void 0);kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"xContato",void 0);kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"email",void 0);kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"fone",void 0);kS([(0,bl.IsOptional)(),(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"idCSRT",void 0);kS([(0,bl.IsOptional)(),(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"hashCSRT",void 0);var Cg=require("class-validator"),V_=require("class-transformer");var nc=require("class-validator");function nn(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(nn,"_ts_decorate");function sn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(sn,"_ts_metadata");var qr=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};nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBC",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMS",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSDeson",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPUFDest",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFDest",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFRemet",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCP",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBCST",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vST",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPST",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPSTRet",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMono",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMono",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoReten",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoReten",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoRet",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoRet",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vProd",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFrete",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vSeg",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vDesc",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vII",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPI",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPIDevol",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vPIS",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vCOFINS",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vOutro",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vNF",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vTotTrib",void 0);var Pn=require("class-validator");function lu(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(lu,"_ts_decorate");function fu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fu,"_ts_metadata");var Zs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vServ",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vBC",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vISS",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vPIS",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vCOFINS",void 0);lu([(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"dCompet",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vDeducao",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vOutro",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vDescIncond",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vDescCond",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vISSRet",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"cRegTrib",void 0);var _d=require("class-validator");function bg(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(bg,"_ts_decorate");function wg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wg,"_ts_metadata");var ic=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetPIS",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetCOFINS",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetCSLL",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vBCIRRF",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vIRRF",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vBCRetPrev",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetPrev",void 0);function w8(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(w8,"_ts_decorate");function C8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(C8,"_ts_metadata");var Gf=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib};w8([(0,Cg.ValidateNested)(),(0,V_.Type)(()=>qr),C8("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Gf.prototype,"ICMSTot",void 0);w8([(0,Cg.IsOptional)(),(0,Cg.ValidateNested)(),(0,V_.Type)(()=>Zs),C8("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Gf.prototype,"ISSQNtot",void 0);w8([(0,Cg.IsOptional)(),(0,Cg.ValidateNested)(),(0,V_.Type)(()=>ic),C8("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Gf.prototype,"retTrib",void 0);var wi=require("class-validator"),KS=require("class-transformer");var ta=require("class-validator");function Od(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(Od,"_ts_decorate");function Eg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Eg,"_ts_metadata");var ea=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"CNPJ",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"CPF",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"xNome",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"IE",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"xEnder",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"xMun",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"UF",void 0);ea=Od([tn({properties:["CNPJ","CPF"]})],ea);var wl=require("class-validator");function jS(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(jS,"_ts_decorate");function US(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(US,"_ts_metadata");var Co=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};jS([(0,wl.IsOptional)(),Se({fixed:2}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vServ",void 0);jS([(0,wl.IsOptional)(),Se({fixed:2}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBCRet",void 0);jS([(0,wl.IsOptional)(),Se({fixed:4}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMSRet",void 0);jS([(0,wl.IsOptional)(),Se({fixed:2}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMSRet",void 0);jS([(0,wl.IsOptional)(),(0,wl.IsString)(),US("design:type",String)],Co.prototype,"CFOP",void 0);jS([(0,wl.IsOptional)(),(0,wl.IsString)(),US("design:type",String)],Co.prototype,"cMunFG",void 0);var Qa=require("class-validator");function MS(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(MS,"_ts_decorate");function qS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qS,"_ts_metadata");var Cl=class{static{o(this,"VeicTransp")}placa;UF;RNTC};MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Cl.prototype,"placa",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Cl.prototype,"UF",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Cl.prototype,"RNTC",void 0);var Ag=class{static{o(this,"Reboque")}placa;UF;RNTC};MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Ag.prototype,"placa",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Ag.prototype,"UF",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Ag.prototype,"RNTC",void 0);var pu=require("class-validator");function HS(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(HS,"_ts_decorate");function zS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zS,"_ts_metadata");var El=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"qVol",void 0);HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"esp",void 0);HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"marca",void 0);HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"nVol",void 0);HS([(0,pu.IsOptional)(),Se({fixed:3}),zS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],El.prototype,"pesoL",void 0);HS([(0,pu.IsOptional)(),Se({fixed:3}),zS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],El.prototype,"pesoB",void 0);function Xf(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(Xf,"_ts_decorate");function Pd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Pd,"_ts_metadata");var ra=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Xf([(0,wi.IsString)(),Pd("design:type",String)],ra.prototype,"modFrete",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,KS.Type)(()=>ea),Pd("design:type",typeof ea>"u"?Object:ea)],ra.prototype,"transporta",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,KS.Type)(()=>Co),Pd("design:type",typeof Co>"u"?Object:Co)],ra.prototype,"retTransp",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,KS.Type)(()=>Cl),Pd("design:type",typeof Cl>"u"?Object:Cl)],ra.prototype,"veicTransp",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)({each:!0}),(0,KS.Type)(()=>Ag),(0,wi.ArrayMaxSize)(5),Pd("design:type",Array)],ra.prototype,"reboque",void 0);Xf([(0,wi.IsOptional)(),(0,wi.IsString)(),Pd("design:type",String)],ra.prototype,"vagao",void 0);Xf([(0,wi.IsOptional)(),(0,wi.IsString)(),Pd("design:type",String)],ra.prototype,"balsa",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)({each:!0}),(0,KS.Type)(()=>El),(0,wi.ArrayMaxSize)(5e3),Pd("design:type",Array)],ra.prototype,"vol",void 0);ra=Xf([tn({properties:["veicTransp","reboque"]}),tn({properties:["vagao","balsa"]})],ra);var Mi=require("class-validator"),E8=require("class-transformer");function Jf(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(Jf,"_ts_decorate");function Qf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qf,"_ts_metadata");var Wf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Jf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Qf("design:type",String)],Wf.prototype,"nFat",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wf.prototype,"vOrig",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wf.prototype,"vDesc",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wf.prototype,"vLiq",void 0);var $S=class{static{o(this,"Dup")}nDup;dVenc;vDup};Jf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Qf("design:type",String)],$S.prototype,"nDup",void 0);Jf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Qf("design:type",String)],$S.prototype,"dVenc",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$S.prototype,"vDup",void 0);var Bd=class{static{o(this,"Cobr")}fat;dup};Jf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)(),(0,E8.Type)(()=>Wf),Qf("design:type",typeof Wf>"u"?Object:Wf)],Bd.prototype,"fat",void 0);Jf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)({each:!0}),(0,Mi.ArrayMaxSize)(120),(0,E8.Type)(()=>$S),Qf("design:type",Array)],Bd.prototype,"dup",void 0);var kd=require("class-validator"),cee=require("class-transformer");var Nl=require("class-validator"),aee=require("class-transformer");var Ld=require("class-validator");function A8(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(A8,"_ts_decorate");function N8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(N8,"_ts_metadata");var Al=class{static{o(this,"Card")}cNPJ;tBand;cAut};A8([(0,Ld.IsOptional)(),(0,Ld.IsString)(),N8("design:type",String)],Al.prototype,"cNPJ",void 0);A8([(0,Ld.IsOptional)(),(0,Ld.IsString)(),N8("design:type",String)],Al.prototype,"tBand",void 0);A8([(0,Ld.IsOptional)(),(0,Ld.IsString)(),N8("design:type",String)],Al.prototype,"cAut",void 0);function TA(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(TA,"_ts_decorate");function RA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(RA,"_ts_metadata");var Yf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};TA([(0,Nl.IsOptional)(),(0,Nl.IsString)(),RA("design:type",String)],Yf.prototype,"indPag",void 0);TA([(0,Nl.IsString)(),RA("design:type",typeof TPag>"u"?Object:TPag)],Yf.prototype,"tPag",void 0);TA([Se({fixed:2}),RA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"vPag",void 0);TA([(0,Nl.IsOptional)(),(0,Nl.ValidateNested)(),(0,aee.Type)(()=>Al),RA("design:type",typeof Al>"u"?Object:Al)],Yf.prototype,"card",void 0);TA([(0,Nl.IsOptional)(),(0,Nl.IsString)(),RA("design:type",String)],Yf.prototype,"xPag",void 0);function oee(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(oee,"_ts_decorate");function uee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(uee,"_ts_metadata");var Fd=class{static{o(this,"Pag")}detPag;vTroco};oee([(0,kd.ValidateNested)({each:!0}),(0,kd.ArrayMinSize)(1),(0,kd.ArrayMaxSize)(100),(0,cee.Type)(()=>Yf),uee("design:type",Array)],Fd.prototype,"detPag",void 0);oee([(0,kd.IsOptional)(),Se({fixed:2}),uee("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fd.prototype,"vTroco",void 0);var ii=require("class-validator"),j_=require("class-transformer");function Zf(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(Zf,"_ts_decorate");function ep(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ep,"_ts_metadata");var GS=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Zf([(0,ii.IsString)(),ep("design:type",String)],GS.prototype,"xCampo",void 0);Zf([(0,ii.IsString)(),ep("design:type",String)],GS.prototype,"xTexto",void 0);var DA=class{static{o(this,"ProcRef")}nProc;indProc};Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],DA.prototype,"nProc",void 0);Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],DA.prototype,"indProc",void 0);var sc=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],sc.prototype,"infAdFisco",void 0);Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],sc.prototype,"infCpl",void 0);Zf([(0,ii.IsOptional)(),(0,ii.ValidateNested)({each:!0}),(0,j_.Type)(()=>GS),(0,ii.ArrayMaxSize)(10),ep("design:type",Array)],sc.prototype,"obsCont",void 0);Zf([(0,ii.IsOptional)(),(0,ii.ValidateNested)({each:!0}),(0,j_.Type)(()=>GS),(0,ii.ArrayMaxSize)(10),ep("design:type",Array)],sc.prototype,"obsFisco",void 0);Zf([(0,ii.IsOptional)(),(0,ii.ValidateNested)({each:!0}),(0,j_.Type)(()=>DA),(0,ii.ArrayMaxSize)(100),ep("design:type",Array)],sc.prototype,"procRef",void 0);var gn=require("class-validator"),M_=require("class-transformer");function xa(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(xa,"_ts_decorate");function ba(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ba,"_ts_metadata");var U_=class{static{o(this,"ForDiaAttributes")}dia};xa([(0,gn.IsString)(),ba("design:type",String)],U_.prototype,"dia",void 0);var _A=class{static{o(this,"ForDia")}$;qtde};xa([(0,gn.IsObject)(),(0,gn.IsNotEmptyObject)(),(0,M_.Type)(()=>U_),ba("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],_A.prototype,"$",void 0);xa([(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_A.prototype,"qtde",void 0);var OA=class{static{o(this,"Deduc")}xDed;vDed};xa([(0,gn.IsString)(),ba("design:type",String)],OA.prototype,"xDed",void 0);xa([Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],OA.prototype,"vDed",void 0);var na=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};xa([(0,gn.IsString)(),ba("design:type",String)],na.prototype,"safra",void 0);xa([(0,gn.IsString)(),ba("design:type",String)],na.prototype,"ref",void 0);xa([(0,gn.ValidateNested)({each:!0}),(0,gn.ArrayMaxSize)(31),(0,M_.Type)(()=>_A),ba("design:type",Array)],na.prototype,"forDia",void 0);xa([(0,gn.IsOptional)(),(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotMes",void 0);xa([(0,gn.IsOptional)(),(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotAnt",void 0);xa([(0,gn.IsOptional)(),(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotGer",void 0);xa([(0,gn.IsOptional)(),(0,gn.ValidateNested)({each:!0}),(0,gn.ArrayMaxSize)(10),(0,M_.Type)(()=>OA),ba("design:type",Array)],na.prototype,"deduc",void 0);xa([(0,gn.IsOptional)(),Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vFor",void 0);xa([(0,gn.IsOptional)(),Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vTotDed",void 0);xa([(0,gn.IsOptional)(),Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vLiqFor",void 0);var sa=require("class-validator"),ox=require("class-transformer");var ot=require("class-validator");var Il=require("class-transformer");var ac=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 BA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(BA,"_ts_metadata");var tp=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};PA([(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"nLote",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"qLote",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"dFab",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"dVal",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"cAgreg",void 0);var an=require("class-validator"),lee=require("class-transformer");function as(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(as,"_ts_decorate");function Os(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Os,"_ts_metadata");var Vd=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};as([(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"nAdicao",void 0);as([(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"nSeqAdic",void 0);as([(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"cFabricante",void 0);as([Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vd.prototype,"vDescDI",void 0);as([(0,an.IsOptional)(),(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"nDraw",void 0);var ss=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"nDI",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"dDI",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"xLocDesemb",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"UFDesemb",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"dDesemb",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"tpViaTransp",void 0);as([(0,an.IsOptional)(),Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ss.prototype,"vAFRMM",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"tpIntermedio",void 0);as([(0,an.IsString)(),(0,an.IsOptional)(),Os("design:type",String)],ss.prototype,"CNPJ",void 0);as([(0,an.IsString)(),(0,an.IsOptional)(),Os("design:type",String)],ss.prototype,"CPF",void 0);as([(0,an.IsString)(),(0,an.IsOptional)(),Os("design:type",String)],ss.prototype,"UFTerceiro",void 0);as([(0,an.IsArray)(),(0,an.ValidateNested)({each:!0}),(0,lee.Type)(()=>Vd),(0,an.ArrayMaxSize)(999),(0,an.ArrayMinSize)(1),Os("design:type",Array)],ss.prototype,"adi",void 0);ss=as([tn({properties:["CNPJ","CPF"],required:!0})],ss);var fee=require("class-transformer"),rp=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 FA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FA,"_ts_metadata");var XS=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};LA([(0,rp.IsString)(),FA("design:type",String)],XS.prototype,"nRE",void 0);LA([(0,rp.IsString)(),FA("design:type",String)],XS.prototype,"chNFe",void 0);LA([Se({fixed:4}),FA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],XS.prototype,"qExport",void 0);var WS=class{static{o(this,"DetExport")}nDraw;exportInd};LA([(0,rp.IsOptional)(),(0,rp.IsString)(),FA("design:type",String)],WS.prototype,"nDraw",void 0);LA([(0,rp.IsOptional)(),(0,rp.ValidateNested)(),(0,fee.Type)(()=>XS),FA("design:type",typeof IExportInd>"u"?Object:IExportInd)],WS.prototype,"exportInd",void 0);var I8=require("class-validator");function pee(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(pee,"_ts_decorate");function hee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hee,"_ts_metadata");var JS=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};pee([(0,I8.IsString)(),hee("design:type",String)],JS.prototype,"cProdFisco",void 0);pee([(0,I8.IsString)(),hee("design:type",String)],JS.prototype,"cOperNFF",void 0);var D8=require("class-validator");function T8(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(T8,"_ts_decorate");function R8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(R8,"_ts_metadata");var Ng=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};T8([(0,D8.IsString)(),R8("design:type",String)],Ng.prototype,"xEmb",void 0);T8([Se({fixed:3}),R8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"qVolEmb",void 0);T8([(0,D8.IsString)(),R8("design:type",String)],Ng.prototype,"uEmb",void 0);var Bn=require("class-validator");function Mn(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(Mn,"_ts_decorate");function qn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qn,"_ts_metadata");var ln=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};Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpOp",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"chassi",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cCor",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"xCor",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"pot",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cilin",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"pesoL",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"pesoB",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"nSerie",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpComb",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"nMotor",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"CMT",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"dist",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"anoMod",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"anoFab",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpPint",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpVeic",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"espVeic",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"VIN",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"condVeic",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cMod",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cCorDENATRAN",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"lota",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpRest",void 0);var P8=require("class-validator");function _8(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(_8,"_ts_decorate");function O8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(O8,"_ts_metadata");var Ig=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};_8([(0,P8.IsString)(),O8("design:type",String)],Ig.prototype,"cProdANVISA",void 0);_8([(0,P8.IsString)(),O8("design:type",String)],Ig.prototype,"xMotivoIsencao",void 0);_8([Se({fixed:2}),O8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ig.prototype,"vPMC",void 0);var kA=require("class-validator");function q_(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(q_,"_ts_decorate");function H_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(H_,"_ts_metadata");var jd=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"tpArma",void 0);q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"nSerie",void 0);q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"nCano",void 0);q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"descr",void 0);var Lr=require("class-validator"),z_=require("class-transformer");function Hn(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(Hn,"_ts_decorate");function zn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zn,"_ts_metadata");var QS=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};Hn([(0,Lr.IsString)(),zn("design:type",String)],QS.prototype,"indImport",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],QS.prototype,"cUFOrig",void 0);Hn([Se({fixed:4}),(0,Lr.Max)(100),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],QS.prototype,"pOrig",void 0);var YS=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};Hn([Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],YS.prototype,"qBCProd",void 0);Hn([Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],YS.prototype,"vAliqProd",void 0);Hn([Se({fixed:2}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],YS.prototype,"vCIDE",void 0);var Ud=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};Hn([(0,Lr.IsString)(),zn("design:type",String)],Ud.prototype,"nBico",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ud.prototype,"nBomba",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ud.prototype,"nTanque",void 0);Hn([Se({fixed:3}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ud.prototype,"vEncIni",void 0);Hn([Se({fixed:3}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ud.prototype,"vEncFin",void 0);var Ps=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};Hn([(0,Lr.IsString)(),zn("design:type",String)],Ps.prototype,"cProdANP",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ps.prototype,"descANP",void 0);Hn([(0,Lr.IsOptional)(),(0,Lr.Max)(100),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGLP",void 0);Hn([(0,Lr.IsOptional)(),(0,Lr.Max)(100),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNn",void 0);Hn([(0,Lr.IsOptional)(),(0,Lr.Max)(100),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNi",void 0);Hn([(0,Lr.IsOptional)(),Se({fixed:2}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"vPart",void 0);Hn([(0,Lr.IsString)(),(0,Lr.IsOptional)(),zn("design:type",String)],Ps.prototype,"CODIF",void 0);Hn([(0,Lr.IsOptional)(),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"qTemp",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ps.prototype,"UFCons",void 0);Hn([(0,Lr.IsObject)(),(0,Lr.ValidateNested)(),(0,z_.Type)(()=>YS),zn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Ps.prototype,"CIDE",void 0);Hn([(0,Lr.IsObject)(),(0,Lr.ValidateNested)(),(0,z_.Type)(()=>Ud),zn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Ps.prototype,"encerrante",void 0);Hn([(0,Lr.IsOptional)(),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pBio",void 0);Hn([(0,Lr.IsObject)(),(0,Lr.ValidateNested)({each:!0}),(0,z_.Type)(()=>QS),(0,Lr.ArrayMaxSize)(30),(0,Lr.IsOptional)(),zn("design:type",Array)],Ps.prototype,"origComb",void 0);function dr(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(dr,"_ts_decorate");function gr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gr,"_ts_metadata");var Kt=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};dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cEAN",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cBarra",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"xProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"NCM",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ArrayMaxSize)(8),(0,ot.IsString)({each:!0}),gr("design:type",Array)],Kt.prototype,"NVE",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"CEST",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"indEscala",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"CNPJFab",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cBenef",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),gr("design:type",Object)],Kt.prototype,"gCred",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"EXTIPI",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"CFOP",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"uCom",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"qCom",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vUnCom",void 0);dr([Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cEANTrib",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"uTrib",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"qTrib",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vUnTrib",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vFrete",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vSeg",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vDesc",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vOutro",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"indTot",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(100),(0,Il.Type)(()=>ss),gr("design:type",Array)],Kt.prototype,"DI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Il.Type)(()=>WS),gr("design:type",Array)],Kt.prototype,"detExport",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"xPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"nItemPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"nFCI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Il.Type)(()=>tp),gr("design:type",Array)],Kt.prototype,"rastro",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>JS),gr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],Kt.prototype,"infProdNFF",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>Ng),gr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],Kt.prototype,"infProdEmb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>ln),gr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],Kt.prototype,"veicProd",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>Ig),gr("design:type",typeof IMed>"u"?Object:IMed)],Kt.prototype,"med",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)({each:!0}),(0,Il.Type)(()=>jd),(0,ot.ArrayMaxSize)(500),gr("design:type",Array)],Kt.prototype,"arma",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>Ps),gr("design:type",typeof IComb>"u"?Object:IComb)],Kt.prototype,"comb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"nRECOPI",void 0);Kt=dr([tn({properties:["veicProd","med","arma","comb"]})],Kt);var Bl=require("class-transformer"),si=require("class-validator");var ue=require("class-validator"),us=require("class-transformer");function Ae(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(Ae,"_ts_decorate");function Ie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ie,"_ts_metadata");var np=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMS",void 0);var Eo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMSST",void 0);var Tl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Tl.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Tl.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Tl.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"vICMS",void 0);var ip=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSST",void 0);var Tg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Tg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Tg.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vICMSDeson",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Tg.prototype,"motDesICMS",void 0);var hu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ae([(0,ue.IsString)(),Ie("design:type",String)],hu.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],hu.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],hu.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),(0,ue.Max)(100),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"pDif",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"vICMSDif",void 0);var sp=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vICMSSTRet",void 0);var Ya=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vICMSST",void 0);var Za=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vICMSST",void 0);var os=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pMVAST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pBCOp",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"UFST",void 0);var ap=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSTRet",void 0);var Rg=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],Rg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Rg.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rg.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rg.prototype,"vCredICMSSN",void 0);var VA=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],VA.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],VA.prototype,"CSOSN",void 0);var oc=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],oc.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],oc.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],oc.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"vCredICMSSN",void 0);var op=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],op.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],op.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],op.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],op.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],op.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],op.prototype,"vICMSST",void 0);var up=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],up.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],up.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"vICMSSTRet",void 0);var ia=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vCredICMSSN",void 0);var Ln=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>np),Ie("design:type",typeof IICMS00>"u"?Object:IICMS00)],Ln.prototype,"ICMS00",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Eo),Ie("design:type",typeof IICMS10>"u"?Object:IICMS10)],Ln.prototype,"ICMS10",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Tl),Ie("design:type",typeof IICMS20>"u"?Object:IICMS20)],Ln.prototype,"ICMS20",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ip),Ie("design:type",typeof IICMS30>"u"?Object:IICMS30)],Ln.prototype,"ICMS30",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Tg),Ie("design:type",typeof IICMS40>"u"?Object:IICMS40)],Ln.prototype,"ICMS40",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>hu),Ie("design:type",typeof IICMS51>"u"?Object:IICMS51)],Ln.prototype,"ICMS51",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>sp),Ie("design:type",typeof IICMS60>"u"?Object:IICMS60)],Ln.prototype,"ICMS60",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Ya),Ie("design:type",typeof IICMS70>"u"?Object:IICMS70)],Ln.prototype,"ICMS70",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Za),Ie("design:type",typeof IICMS90>"u"?Object:IICMS90)],Ln.prototype,"ICMS90",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>os),Ie("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Ln.prototype,"ICMSPart",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ap),Ie("design:type",typeof IICMSST>"u"?Object:IICMSST)],Ln.prototype,"ICMSST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Rg),Ie("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Ln.prototype,"ICMSSN101",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>VA),Ie("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Ln.prototype,"ICMSSN102",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>oc),Ie("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Ln.prototype,"ICMSSN201",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>op),Ie("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Ln.prototype,"ICMSSN202",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>up),Ie("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Ln.prototype,"ICMSSN500",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ia),Ie("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Ln.prototype,"ICMSSN900",void 0);Ln=Ae([tn({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Ln);var Nn=require("class-validator"),B8=require("class-transformer");function Ao(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(Ao,"_ts_decorate");function No(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(No,"_ts_metadata");var cp=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Ao([(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"CST",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"vBC",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"pIPI",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"qUnid",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"vUnid",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"vIPI",void 0);var K_=class{static{o(this,"IPINT")}CST};Ao([(0,Nn.IsString)(),No("design:type",String)],K_.prototype,"CST",void 0);var du=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],du.prototype,"CNPJProd",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],du.prototype,"cSelo",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],du.prototype,"qSelo",void 0);Ao([(0,Nn.IsString)(),No("design:type",String)],du.prototype,"cEnq",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.ValidateNested)(),(0,B8.Type)(()=>cp),No("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],du.prototype,"IPITrib",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.ValidateNested)(),(0,B8.Type)(()=>K_),No("design:type",typeof IIPINT>"u"?Object:IIPINT)],du.prototype,"IPINT",void 0);var Dl=require("class-validator");function $_(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($_,"_ts_decorate");function G_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(G_,"_ts_metadata");var Rl=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vBC",void 0);$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vDespAdu",void 0);$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vII",void 0);$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vIOF",void 0);var $t=require("class-validator"),jA=require("class-transformer");function Kn(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(Kn,"_ts_decorate");function $n(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($n,"_ts_metadata");var lp=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};Kn([(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"pPIS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"vPIS",void 0);var fp=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};Kn([(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"vPIS",void 0);var ZS=class{static{o(this,"PISNT")}CST};Kn([(0,$t.IsString)(),$n("design:type",String)],ZS.prototype,"CST",void 0);var uc=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};Kn([(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"pPIS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vPIS",void 0);var _l=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>lp),$n("design:type",typeof lp>"u"?Object:lp)],_l.prototype,"PISAliq",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>fp),$n("design:type",typeof fp>"u"?Object:fp)],_l.prototype,"PISQtde",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>ZS),$n("design:type",typeof ZS>"u"?Object:ZS)],_l.prototype,"PISNT",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>uc),$n("design:type",typeof uc>"u"?Object:uc)],_l.prototype,"PISOutr",void 0);var cc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"pPIS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vPIS",void 0);var Gt=require("class-validator"),UA=require("class-transformer");function Gn(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(Gn,"_ts_decorate");function Xn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Xn,"_ts_metadata");var pp=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};Gn([(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"CST",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"vBC",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"pCOFINS",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"vCOFINS",void 0);var hp=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};Gn([(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"CST",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"qBCProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"vAliqProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"vCOFINS",void 0);var ex=class{static{o(this,"COFINSNT")}CST};Gn([(0,Gt.IsString)(),Xn("design:type",String)],ex.prototype,"CST",void 0);var lc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Gn([(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"CST",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"vBC",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"pCOFINS",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"qBCProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"vAliqProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"vCOFINS",void 0);var Ol=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>pp),Xn("design:type",typeof pp>"u"?Object:pp)],Ol.prototype,"COFINSAliq",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>hp),Xn("design:type",typeof hp>"u"?Object:hp)],Ol.prototype,"COFINSQtde",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>ex),Xn("design:type",typeof ex>"u"?Object:ex)],Ol.prototype,"COFINSNT",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>lc),Xn("design:type",typeof lc>"u"?Object:lc)],Ol.prototype,"COFINSOutr",void 0);var fc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"vBC",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"pCOFINS",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"qBCProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"vAliqProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"vCOFINS",void 0);var eo=require("class-validator");function tx(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(tx,"_ts_decorate");function rx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rx,"_ts_metadata");var mu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"vBC",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"vAliq",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"vISSQN",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"cMunFG",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"cListServ",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"cSitTrib",void 0);var Oi=require("class-validator");function dp(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(dp,"_ts_decorate");function mp(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(mp,"_ts_metadata");var wa=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vBCUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vBCFCPUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pFCPUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pICMSUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pICMSInter",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pICMSInterPart",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vFCPUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vICMSUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vICMSUFRemet",void 0);function pc(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(pc,"_ts_decorate");function Pl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Pl,"_ts_metadata");var cs=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};pc([(0,si.IsOptional)(),(0,si.IsNumber)(),Pl("design:type",Number)],cs.prototype,"vTotTrib",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>Ln),Pl("design:type",typeof IICMS>"u"?Object:IICMS)],cs.prototype,"ICMS",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>du),Pl("design:type",typeof IIPI>"u"?Object:IIPI)],cs.prototype,"IPI",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>mu),Pl("design:type",typeof IISSQN>"u"?Object:IISSQN)],cs.prototype,"ISSQN",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>Rl),Pl("design:type",typeof III>"u"?Object:III)],cs.prototype,"II",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>_l),Pl("design:type",typeof IPIS>"u"?Object:IPIS)],cs.prototype,"PIS",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>cc),Pl("design:type",typeof IPISST>"u"?Object:IPISST)],cs.prototype,"PISST",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>Ol),Pl("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],cs.prototype,"COFINS",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>fc),Pl("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],cs.prototype,"COFINSST",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>wa),Pl("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],cs.prototype,"ICMSUFDest",void 0);cs=pc([tn({properties:["ICMS","ISSQN"]})],cs);var Dg=require("class-validator"),dee=require("class-transformer");function L8(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(L8,"_ts_decorate");function F8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F8,"_ts_metadata");var X_=class{static{o(this,"IpiDevol")}vIPIDevol};L8([(0,Dg.IsString)(),F8("design:type",String)],X_.prototype,"vIPIDevol",void 0);var nx=class{static{o(this,"Devol")}pDevol;IPI};L8([(0,Dg.IsString)(),F8("design:type",String)],nx.prototype,"pDevol",void 0);L8([(0,Dg.IsOptional)(),(0,Dg.ValidateNested)(),(0,dee.Type)(()=>X_),F8("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],nx.prototype,"IPI",void 0);var gp=require("class-validator"),k8=require("class-transformer");function W_(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(W_,"_ts_decorate");function J_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(J_,"_ts_metadata");var ix=class{static{o(this,"Observation")}xCampo;xTexto};W_([(0,gp.IsString)(),J_("design:type",String)],ix.prototype,"xCampo",void 0);W_([(0,gp.IsString)(),J_("design:type",String)],ix.prototype,"xTexto",void 0);var sx=class{static{o(this,"ObsItem")}obsCont;obsFisco};W_([(0,gp.IsOptional)(),(0,gp.ValidateNested)(),(0,k8.Type)(()=>ix),J_("design:type",typeof IObservation>"u"?Object:IObservation)],sx.prototype,"obsCont",void 0);W_([(0,gp.IsOptional)(),(0,gp.ValidateNested)(),(0,k8.Type)(()=>ix),J_("design:type",typeof IObservation>"u"?Object:IObservation)],sx.prototype,"obsFisco",void 0);function _g(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(_g,"_ts_decorate");function Og(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Og,"_ts_metadata");var ax=class{static{o(this,"DetAttributes")}nItem};_g([(0,sa.IsString)(),Og("design:type",String)],ax.prototype,"nItem",void 0);var Ll=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};_g([(0,sa.IsObject)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>ax),Og("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Ll.prototype,"$",void 0);_g([(0,sa.ValidateNested)(),(0,ox.Type)(()=>Kt),Og("design:type",typeof IProd>"u"?Object:IProd)],Ll.prototype,"prod",void 0);_g([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>cs),Og("design:type",typeof IImposto>"u"?Object:IImposto)],Ll.prototype,"imposto",void 0);_g([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>nx),Og("design:type",typeof IDevol>"u"?Object:IDevol)],Ll.prototype,"impostoDevol",void 0);_g([(0,sa.IsOptional)(),(0,sa.IsString)(),Og("design:type",String)],Ll.prototype,"infAdProd",void 0);_g([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>sx),Og("design:type",typeof IObsItem>"u"?Object:IObsItem)],Ll.prototype,"obsItem",void 0);var Ls=require("class-validator");function hc(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(hc,"_ts_decorate");function dc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(dc,"_ts_metadata");var Bs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"CNPJ",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"xOrgao",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"matr",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"xAgente",void 0);hc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"fone",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"UF",void 0);hc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"nDAR",void 0);hc([(0,Ls.IsOptional)(),Kp({format:"YYYY-MM-DD"}),dc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dEmi",void 0);hc([(0,Ls.IsOptional)(),Se({fixed:2}),dc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"vDAR",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"repEmi",void 0);hc([(0,Ls.IsOptional)(),(0,Ls.IsDate)(),dc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dPag",void 0);var mee=require("class-validator");function zNe(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(zNe,"_ts_decorate");function KNe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KNe,"_ts_metadata");var Pg=class{static{o(this,"InfSolicNFF")}xSolic};zNe([(0,mee.IsString)(),KNe("design:type",String)],Pg.prototype,"xSolic",void 0);function di(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(di,"_ts_decorate");function mi(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(mi,"_ts_metadata");var Bg=class{static{o(this,"InfNFeAttributes")}Id;versao};di([(0,Ot.IsOptional)(),(0,Ot.IsString)(),mi("design:type",String)],Bg.prototype,"Id",void 0);di([(0,Ot.IsOptional)(),(0,Ot.IsString)(),mi("design:type",String)],Bg.prototype,"versao",void 0);var In=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};di([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ci.Type)(()=>Bg),(0,Ot.ValidateNested)(),mi("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],In.prototype,"$",void 0);di([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Yr),mi("design:type",typeof IIde>"u"?Object:IIde)],In.prototype,"ide",void 0);di([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>ns),mi("design:type",typeof IEmit>"u"?Object:IEmit)],In.prototype,"emit",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Bs),mi("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],In.prototype,"avulsa",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>is),mi("design:type",typeof IDest>"u"?Object:IDest)],In.prototype,"dest",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>An),mi("design:type",typeof ILocal>"u"?Object:ILocal)],In.prototype,"retirada",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>An),mi("design:type",typeof ILocal>"u"?Object:ILocal)],In.prototype,"entrega",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(10),(0,Ci.Type)(()=>xl),mi("design:type",Array)],In.prototype,"autXML",void 0);di([(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(990),(0,Ot.ArrayMinSize)(1),(0,Ci.Type)(()=>Ll),mi("design:type",Array)],In.prototype,"det",void 0);di([(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Gf),mi("design:type",typeof ITotal>"u"?Object:ITotal)],In.prototype,"total",void 0);di([(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>ra),mi("design:type",typeof ITransp>"u"?Object:ITransp)],In.prototype,"transp",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Bd),mi("design:type",typeof ICobr>"u"?Object:ICobr)],In.prototype,"cobr",void 0);di([(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Fd),mi("design:type",typeof IPag>"u"?Object:IPag)],In.prototype,"pag",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Rd),mi("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],In.prototype,"infIntermed",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>sc),mi("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],In.prototype,"infAdic",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Kf),mi("design:type",typeof IExporta>"u"?Object:IExporta)],In.prototype,"exporta",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>$f),mi("design:type",typeof ICompra>"u"?Object:ICompra)],In.prototype,"compra",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>na),mi("design:type",typeof ICana>"u"?Object:ICana)],In.prototype,"cana",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>cu),mi("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],In.prototype,"infRespTec",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Pg),mi("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],In.prototype,"infSolicNFF",void 0);var V8=require("class-transformer");function Q_(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(Q_,"_ts_decorate");function Y_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Y_,"_ts_metadata");var ux=class{static{o(this,"NFeAttributes")}xmlns};Q_([(0,Ca.IsString)(),(0,Ca.IsNotEmpty)(),Y_("design:type",String)],ux.prototype,"xmlns",void 0);var mc=class{static{o(this,"NFe")}$;infNFe;Signature};Q_([(0,Ca.IsObject)(),(0,Ca.IsNotEmptyObject)(),(0,V8.Type)(()=>ux),(0,Ca.ValidateNested)(),Y_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],mc.prototype,"$",void 0);Q_([(0,Ca.IsObject)(),(0,Ca.IsNotEmptyObject)(),(0,V8.Type)(()=>In),(0,Ca.ValidateNested)(),Y_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],mc.prototype,"infNFe",void 0);Q_([(0,Ca.Allow)(),Y_("design:type",typeof Signature>"u"?Object:Signature)],mc.prototype,"Signature",void 0);function MA(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(MA,"_ts_decorate");function Z_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z_,"_ts_metadata");var vp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};MA([(0,gu.IsEnum)(Me),(0,gu.IsOptional)(),Z_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],vp.prototype,"tpAmb",void 0);MA([(0,gu.IsEnum)(le),(0,gu.IsOptional)(),Z_("design:type",typeof StateCode>"u"?Object:StateCode)],vp.prototype,"cUF",void 0);MA([(0,gu.IsString)(),Z_("design:type",String)],vp.prototype,"idLote",void 0);MA([(0,gu.IsOptional)(),(0,gu.IsEnum)(["0","1"])],vp.prototype,"indSinc",void 0);MA([(0,gu.IsNotEmpty)(),(0,gee.Type)(()=>mc),Z_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],vp.prototype,"NFe",void 0);var qA=require("class-validator");function j8(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(j8,"_ts_decorate");function U8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(U8,"_ts_metadata");var Lg=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};j8([(0,qA.IsEnum)(Me),U8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Lg.prototype,"tpAmb",void 0);j8([(0,qA.IsEnum)(le),U8("design:type",typeof StateCode>"u"?Object:StateCode)],Lg.prototype,"cUF",void 0);j8([(0,qA.IsString)(),U8("design:type",String)],Lg.prototype,"nRec",void 0);var Gr=require("class-validator"),HA=require("class-transformer");var Md=(function(r){return r.Cancelamento="110111",r})({});function qi(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(qi,"_ts_decorate");function fs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fs,"_ts_metadata");var eO=class{static{o(this,"InfEventoAttributes")}Id};qi([(0,Gr.IsString)(),fs("design:type",String)],eO.prototype,"Id",void 0);var ls=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>eO),fs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],ls.prototype,"$",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof StateCode>"u"?Object:StateCode)],ls.prototype,"cOrgao",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ls.prototype,"tpAmb",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CNPJ",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CPF",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"chNFe",void 0);qi([Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),fs("design:type",String)],ls.prototype,"dhEvento",void 0);qi([(0,Gr.IsEnum)(Md),fs("design:type",typeof Md>"u"?Object:Md)],ls.prototype,"tpEvento",void 0);qi([(0,Gr.IsNumber)(),fs("design:type",Number)],ls.prototype,"nSeqEvento",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"verEvento",void 0);qi([(0,Gr.IsObject)(),fs("design:type",typeof T>"u"?Object:T)],ls.prototype,"detEvento",void 0);ls=qi([tn({properties:["CNPJ","CPF"],required:!0})],ls);var tO=class{static{o(this,"EventoItemAttributes")}xmlns};qi([(0,Gr.IsString)(),fs("design:type",String)],tO.prototype,"xmlns",void 0);var Fl=class{static{o(this,"EventoItem")}$;infEvento;Signature};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>tO),fs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Fl.prototype,"$",void 0);qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>ls),fs("design:type",typeof ls>"u"?Object:ls)],Fl.prototype,"infEvento",void 0);qi([(0,Gr.Allow)(),fs("design:type",typeof Signature>"u"?Object:Signature)],Fl.prototype,"Signature",void 0);var cx=class{static{o(this,"EventoPayload")}idLote;evento};qi([(0,Gr.IsString)(),fs("design:type",String)],cx.prototype,"idLote",void 0);qi([(0,Gr.IsNotEmpty)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>Fl),fs("design:type",typeof Fl>"u"?Object:Fl)],cx.prototype,"evento",void 0);var vu=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 rO(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rO,"_ts_metadata");var gc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};lx([(0,vu.IsOptional)()],gc.prototype,"xServ",void 0);lx([(0,vu.IsString)(),(0,vu.IsIn)(Object.values(YZ)),rO("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],gc.prototype,"UF",void 0);lx([(0,vu.IsOptional)(),(0,vu.IsString)(),rO("design:type",String)],gc.prototype,"IE",void 0);lx([(0,vu.IsOptional)(),(0,vu.IsString)(),rO("design:type",String)],gc.prototype,"CNPJ",void 0);lx([(0,vu.IsOptional)(),(0,vu.IsString)(),rO("design:type",String)],gc.prototype,"CPF",void 0);gc=lx([tn({properties:["IE","CNPJ","CPF"],required:!0})],gc);var vee={AM:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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 $Ne={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"BA",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVAN",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"PE",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},yee=$Ne;var nO={[le.AC]:"SVCAN",[le.AL]:"SVCAN",[le.AM]:"SVCRS",[le.AP]:"SVCAN",[le.BA]:"SVCRS",[le.CE]:"SVCAN",[le.DF]:"SVCAN",[le.ES]:"SVCAN",[le.GO]:"SVCRS",[le.MA]:"SVCRS",[le.MG]:"SVCAN",[le.MS]:"SVCRS",[le.MT]:"SVCRS",[le.PA]:"SVCAN",[le.PB]:"SVCAN",[le.PE]:"SVCRS",[le.PI]:"SVCAN",[le.PR]:"SVCRS",[le.RJ]:"SVCAN",[le.RN]:"SVCAN",[le.RO]:"SVCAN",[le.RR]:"SVCAN",[le.RS]:"SVCAN",[le.SC]:"SVCAN",[le.SE]:"SVCAN",[le.SP]:"SVCAN",[le.TO]:"SVCAN"};function Fg(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(Fg,"_ts_decorate");function Ei(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ei,"_ts_metadata");var aa=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??=CU.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?nO[t]:yee[t];return vee[i][n][e.service]}errors(){return Reflect.getMetadata(qo,this)}validate(e){try{let t=this.errors();return t?Jn(new en(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Jr(e))}finally{Reflect.deleteMetadata(qo,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return See.default.resolve(Dx,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:le[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"})}};Fg([Ht(Td),Ei("design:type",Function),Ei("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Ei("design:returntype",Promise)],aa.prototype,"consultStatus",null);Fg([Ht(qf),Ei("design:type",Function),Ei("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Ei("design:returntype",Promise)],aa.prototype,"inutilizacao",null);Fg([Ht(Sg),Ei("design:type",Function),Ei("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Ei("design:returntype",Promise)],aa.prototype,"consultaProtocolo",null);Fg([Ht(vp),Ei("design:type",Function),Ei("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Ei("design:returntype",Promise)],aa.prototype,"autorizacao",null);Fg([Ht(Lg),Ei("design:type",Function),Ei("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Ei("design:returntype",Promise)],aa.prototype,"retAutorizacao",null);Fg([Ht(cx),Ei("design:type",Function),Ei("design:paramtypes",[Object]),Ei("design:returntype",Promise)],aa.prototype,"recepcaoEvento",null);Fg([Ht(gc),Ei("design:type",Function),Ei("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Ei("design:returntype",Promise)],aa.prototype,"consultaCadastro",null);var qd=class extends BS{static{o(this,"TransmissionPipeline")}certificate;transmitter=new aa(this.soap);constructor(e){super(e),this.certificate=e}};var zA=class extends qd{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.signer.sign(e.NFe,{tag:"infNFe",mark:"Id"},n.value);return i.isLeft()?i:(this.transmitter.configure({cUF:e.NFe.infNFe.ide.cUF,tpAmb:e.NFe.infNFe.ide.tpAmb,...t,contingency:this.contingency(e),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15),await this.transmitter.autorizacao({...e,NFe:i.value}))}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!t||!n||i===Ra.Normal))return{dhCont:t,xJust:n}}};var M8=class extends zA{static{o(this,"NfceAuthorizerPipeline")}certificate;transmitter=new aa(this.soap);constructor(e){super(e),this.certificate=e}};var xee={[Md.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};function GNe(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(GNe,"_ts_decorate");function q8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(q8,"_ts_metadata");var KA=class extends qd{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=xee[e],u=this.certificates.getCertificateInfo(i.value.certificate),{nSeqEvento:c,dhEvento:l,chNFe:p}=t,m=["ID",e,p,c.toString().padStart(2,"0")].join(""),g={$:{xmlns:this.xmlns},infEvento:{$:{Id:m},cOrgao:s,tpAmb:n.tpAmb,CNPJ:u.CNPJ,CPF:u.CPF,chNFe:p,dhEvento:l,tpEvento:e,nSeqEvento:c,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},y=this.validated(g);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},i.value)}validated(e){let t=this.errors();return t?Jn(new en(t.join(", "))):Jr(e)}};GNe([Ht(Fl),q8("design:type",Function),q8("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),q8("design:returntype",void 0)],KA.prototype,"validated",null);var H8=class extends KA{static{o(this,"NfeNfceCancelPipeline")}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(Md.Cancelamento,n,t);return i.isLeft()?i:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i.value})}};function XNe(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(XNe,"_ts_decorate");function z8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(z8,"_ts_metadata");var iO=class extends qd{static{o(this,"NfeNfceVoidRangePipeline")}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?Jn(new en(t.join(", "))):Jr(e)}};XNe([Ht(qf),z8("design:type",Function),z8("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),z8("design:returntype",void 0)],iO.prototype,"validated",null);var bee=Ar(require("path"),1);function yu(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(yu,"_ts_decorate");function Ir(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ir,"_ts_metadata");var Fs=class{static{o(this,"NfeDetXmlBuilder")}listener;data={};static create(e){return new this(e)}constructor(e){this.listener=e}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}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.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}assemble(){return this.data.imposto&&this.imposto(this.data.imposto),this.data}};yu([Ht(ax),Ir("design:type",Function),Ir("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),Ir("design:returntype",void 0)],Fs.prototype,"det",null);yu([Ht(Kt),Ir("design:type",Function),Ir("design:paramtypes",[typeof IProd>"u"?Object:IProd]),Ir("design:returntype",void 0)],Fs.prototype,"prod",null);yu([Ht(cs),Ir("design:type",Function),Ir("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),Ir("design:returntype",void 0)],Fs.prototype,"imposto",null);yu([Ht(Ln),Ir("design:type",Function),Ir("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),Ir("design:returntype",void 0)],Fs.prototype,"icms",null);yu([Ht(mu),Ir("design:type",Function),Ir("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),Ir("design:returntype",void 0)],Fs.prototype,"issqn",null);yu([Ht(Rl),Ir("design:type",Function),Ir("design:paramtypes",[typeof III>"u"?Object:III]),Ir("design:returntype",void 0)],Fs.prototype,"ii",null);yu([Ht(du),Ir("design:type",Function),Ir("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),Ir("design:returntype",void 0)],Fs.prototype,"ipi",null);yu([Ht(_l),Ir("design:type",Function),Ir("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),Ir("design:returntype",void 0)],Fs.prototype,"pis",null);yu([Ht(cc),Ir("design:type",Function),Ir("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),Ir("design:returntype",void 0)],Fs.prototype,"pisst",null);yu([Ht(Ol),Ir("design:type",Function),Ir("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),Ir("design:returntype",void 0)],Fs.prototype,"cofins",null);yu([Ht(fc),Ir("design:type",Function),Ir("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),Ir("design:returntype",void 0)],Fs.prototype,"cofinsst",null);yu([Ht(wa),Ir("design:type",Function),Ir("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),Ir("design:returntype",void 0)],Fs.prototype,"icmsufdest",null);function Hi(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(Hi,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Tn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return mc}root="NFe";$det=new uA(this);$total=new cA(this);nfeDetXmlBuilder=Fs.create(this.$det);static create(e,t){return new this(e,t)}constructor(e,t){this.builder=e,this.contingency=t}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 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);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}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(qo,this),this}toObject(){let e=this.errors();return e?Jn(new en(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),Jr(R2(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:Jr(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Me.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!==Ra.Normal)return;switch(nO[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ra.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ra.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ra.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(qo,this)}collect(e){let t=Reflect.getMetadata(qo,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(qo,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new _x().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}}};Hi([Ht(Bg),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Tn.prototype,"infNFe",null);Hi([Ht(Yr),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Tn.prototype,"ide",null);Hi([Ht(ns),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Tn.prototype,"emit",null);Hi([Ht(Bs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Tn.prototype,"avulsa",null);Hi([Ht(is),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Tn.prototype,"dest",null);Hi([Ht(An),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Tn.prototype,"retirada",null);Hi([Ht(An),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Tn.prototype,"entrega",null);Hi([Ht(xl),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Tn.prototype,"autXML",null);Hi([Ht(Gf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Tn.prototype,"total",null);Hi([Ht(ra),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Tn.prototype,"transp",null);Hi([Ht(Bd),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Tn.prototype,"cobr",null);Hi([Ht(Fd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Tn.prototype,"pag",null);Hi([Ht(Rd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Tn.prototype,"infIntermed",null);Hi([Ht(sc),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Tn.prototype,"infAdic",null);Hi([Ht(Kf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Tn.prototype,"exporta",null);Hi([Ht($f),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Tn.prototype,"compra",null);Hi([Ht(na),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Tn.prototype,"cana",null);Hi([Ht(cu),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Tn.prototype,"infRespTec",null);Hi([Ht(Pg),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Tn.prototype,"infSolicNFF",null);var K8=class extends BS{static{o(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=Tn.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}toObject(e){return e(this.builder).toObject()}async assemble(e){let n=await e(this.builder).assemble();return n.isLeft()?n:this.assertXmlSignedAndValidated(n.value)}get nfeXsdSchema(){return bee.default.resolve(Dx,this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Jr(e);let t=await this.certificates.read(this.certificate);if(t.isLeft())return t;let n=await this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value);if(n.isLeft())return n;let i=await this.toolkit.validate(n.value,this.nfeXsdSchema);return i.isLeft()?i:Jr(n.value)}};var $8={AC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Me.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"}},[Me.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:{[Me.Homolog]:{},[Me.Production]:{}}};var wee={[Me.Homolog]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfcehom",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[le.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[le.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Me.Production]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.sefaz.go.gov.br/nfce/consulta",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[le.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[le.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"www.sefaz.to.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var WNe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"SVRS",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVRS",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"SVRS",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",SVRS:"SVRS"},Cee=WNe;var Nee=require("class-transformer"),xu=require("class-validator");var oO=require("class-transformer"),vc=require("class-validator");var G8=require("class-validator");function Eee(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(Eee,"_ts_decorate");function Aee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Aee,"_ts_metadata");var fx=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};Eee([(0,G8.IsString)(),Aee("design:type",String)],fx.prototype,"qrCode",void 0);Eee([(0,G8.IsString)(),Aee("design:type",String)],fx.prototype,"urlChave",void 0);function sO(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(sO,"_ts_decorate");function aO(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(aO,"_ts_metadata");var Su=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};sO([(0,vc.IsObject)(),(0,vc.IsNotEmptyObject)(),(0,oO.Type)(()=>ux),(0,vc.ValidateNested)(),aO("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Su.prototype,"$",void 0);sO([(0,vc.IsObject)(),(0,vc.IsNotEmptyObject)(),(0,oO.Type)(()=>In),(0,vc.ValidateNested)(),aO("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Su.prototype,"infNFe",void 0);sO([(0,oO.Type)(()=>fx),aO("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],Su.prototype,"infNFeSupl",void 0);sO([(0,vc.Allow)(),aO("design:type",typeof Signature>"u"?Object:Signature)],Su.prototype,"Signature",void 0);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 uO(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(uO,"_ts_metadata");var yp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};$A([(0,xu.IsEnum)(Me),(0,xu.IsOptional)(),uO("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],yp.prototype,"tpAmb",void 0);$A([(0,xu.IsEnum)(le),(0,xu.IsOptional)(),uO("design:type",typeof StateCode>"u"?Object:StateCode)],yp.prototype,"cUF",void 0);$A([(0,xu.IsString)(),uO("design:type",String)],yp.prototype,"idLote",void 0);$A([(0,xu.IsOptional)(),(0,xu.IsEnum)(["0","1"])],yp.prototype,"indSinc",void 0);$A([(0,xu.IsNotEmpty)(),(0,Nee.Type)(()=>Su),uO("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],yp.prototype,"NFe",void 0);function JNe(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(JNe,"_ts_decorate");function X8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X8,"_ts_metadata");var cO=class extends aa{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=Cee[t],u=$8[i][n][e.service];if(u)return u;let c=Object.keys(le).find(l=>le[l]===t);return $8[c][n][e.service]}async autorizacao(e){let t=await this.infNfeSupl(e);return t.isLeft()?t:(e.NFe.infNFeSupl=t.value,super.autorizacao(e))}getUrlConsult(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return wee[n][t]}async infNfeSupl(e){let t=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(t.version??=n.version,t.version){case"200":return await this.qrCode.execute(e.NFe,{version:t.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:t.CSC,CSCId:t.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:t.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):Jn(new en("Certificate is required in QRCode version 3.00"));default:return um(t.version)}}};JNe([Ht(yp),X8("design:type",Function),X8("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),X8("design:returntype",Promise)],cO.prototype,"autorizacao",null);var Iee=Ar(require("crypto"),1);var W8=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:Jr(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):um(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!==Ra.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),m=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${m}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=Iee.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(Jr(`${u}${s}|${a}`))}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!==Ra.OFFLINE)return Jr(`${i}${a}|${u}|${s}`);let c=new Date(e.infNFe.ide.dhEmi).getDate(),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),p=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",m=p.length?e.infNFe.ide.idDest:"",g=`${a}|${u}|${s}|${c}|${l}|${m}$`,y=await this.certificateRepository.sign(g,t.certificate.privateKey,Fc.SHA1);return y.isLeft()?y:Jr(`${i}${g}|${y.value}`)}};var J8=class extends Tn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return Su}static create(e,t){return new this(e,t)}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===Ra.Normal)return this.data.infNFe.ide.tpEmis=Ra.OFFLINE,void 0}};0&&(module.exports={AccessKeyBuilder,DefaultDetBuilderAggregator,DefaultTotalBuilderAggregator,NFCeDto,NFeDto,NfceAuthorizerPipeline,NfceQrcode,NfceRemoteTransmitter,NfceXmlBuilder,NfeAuthorizerPipeline,NfeDetXmlBuilder,NfeNfceCancelPipeline,NfeNfceVoidRangePipeline,NfeRemoteTransmitter,NfeXmlBuilder,NfeXmlBuilderPipeline,TpEmis,directory});
|
|
108
|
+
`+s):n.stack=s}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Wu(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&CA.assertOptions(n,{silentJSONParsing:gl.transitional(gl.boolean),forcedJSONParsing:gl.transitional(gl.boolean),clarifyTimeoutError:gl.transitional(gl.boolean)},!1),i!=null&&(ne.isFunction(i)?t.paramsSerializer={serialize:i}:CA.assertOptions(i,{encode:gl.function,serialize:gl.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),CA.assertOptions(t,{baseUrl:gl.spelling("baseURL"),withXsrfToken:gl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ne.merge(s.common,s[t.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),t.headers=ni.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(o(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))},"unshiftRequestInterceptors"));let l=[];this.interceptors.response.forEach(o(function(b){l.push(b.fulfilled,b.rejected)},"pushResponseInterceptors"));let p,m=0,g;if(!c){let v=[__.bind(this),void 0];for(v.unshift(...u),v.push(...l),g=v.length,p=Promise.resolve(t);m<g;)p=p.then(v[m++],v[m++]);return p}g=u.length;let y=t;for(;m<g;){let v=u[m++],b=u[m++];try{y=v(y)}catch(x){b.call(this,x);break}}try{p=__.call(this,y)}catch(v){return Promise.reject(v)}for(m=0,g=l.length;m<g;)p=p.then(l[m++],l[m++]);return p}getUri(e){e=Wu(this.defaults,e);let t=dg(e.baseURL,e.url,e.allowAbsoluteUrls);return hg(t,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],o(function(e){P_.prototype[e]=function(t,n){return this.request(Wu(n||{},{method:e,url:t,data:(n||{}).data}))}},"forEachMethodNoData"));ne.forEach(["post","put","patch"],o(function(e){function t(n){return o(function(s,a,u){return this.request(Wu(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))},"httpMethod")}o(t,"generateHTTPMethod"),P_.prototype[e]=t(),P_.prototype[e+"Form"]=t(!0)},"forEachMethodWithData"));var EA=P_;var HNe=class XZ{static{o(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(o(function(s){t=s},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(u=>{n.subscribe(u),s=u}).then(i);return a.cancel=o(function(){n.unsubscribe(s)},"reject"),a},e(o(function(s,a,u){n.reason||(n.reason=new bo(s,a,u),t(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=o(n=>{e.abort(n)},"abort");return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new XZ(o(function(i){e=i},"executor")),cancel:e}}},WZ=HNe;function f8(r){return o(function(t){return r.apply(null,t)},"wrap")}o(f8,"spread");function p8(r){return ne.isObject(r)&&r.isAxiosError===!0}o(p8,"isAxiosError");var h8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(h8).forEach(([r,e])=>{h8[e]=r});var JZ=h8;function QZ(r){let e=new EA(r),t=lA(EA.prototype.request,e);return ne.extend(t,EA.prototype,e,{allOwnKeys:!0}),ne.extend(t,e,null,{allOwnKeys:!0}),t.create=o(function(i){return QZ(Wu(r,i))},"create"),t}o(QZ,"createInstance");var _i=QZ(_S);_i.Axios=EA;_i.CanceledError=bo;_i.CancelToken=WZ;_i.isCancel=gA;_i.VERSION=vg;_i.toFormData=Id;_i.AxiosError=at;_i.Cancel=_i.CanceledError;_i.all=o(function(e){return Promise.all(e)},"all");_i.spread=f8;_i.isAxiosError=p8;_i.mergeConfig=Wu;_i.AxiosHeaders=ni;_i.formToJSON=r=>E_(ne.isHTMLForm(r)?new FormData(r):r);_i.getAdapter=D_.getAdapter;_i.HttpStatusCode=JZ;_i.default=_i;var B_=_i;var{Axios:oKe,AxiosError:uKe,CanceledError:cKe,isCancel:lKe,CancelToken:fKe,VERSION:pKe,all:hKe,Cancel:dKe,isAxiosError:mKe,spread:gKe,toFormData:vKe,AxiosHeaders:yKe,HttpStatusCode:SKe,formToJSON:xKe,getAdapter:bKe,mergeConfig:wKe}=B_;var BS=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=B_.create();toolkit=new y_;caching=new KN;certificates=new O2(this.http,this.caching);soap=new cT(this.toolkit,this.certificates);signer=new N2(this.toolkit,this.certificates);xmlSigner=new I2(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(qo,this)}};var See=Ar(require("path"),1);var le={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"},YZ=Object.keys(le);var Me={Production:"1",Homolog:"2"};var OKe={[le.AC]:"America/Rio_Branco",[le.AL]:"America/Maceio",[le.AM]:"America/Manaus",[le.AP]:"America/Belem",[le.BA]:"America/Bahia",[le.CE]:"America/Fortaleza",[le.DF]:"America/Sao_Paulo",[le.ES]:"America/Sao_Paulo",[le.GO]:"America/Sao_Paulo",[le.MA]:"America/Fortaleza",[le.MG]:"America/Sao_Paulo",[le.MS]:"America/Campo_Grande",[le.MT]:"America/Cuiaba",[le.PA]:"America/Belem",[le.PB]:"America/Fortaleza",[le.PE]:"America/Recife",[le.PI]:"America/Fortaleza",[le.PR]:"America/Sao_Paulo",[le.RJ]:"America/Sao_Paulo",[le.RN]:"America/Fortaleza",[le.RO]:"America/Porto_Velho",[le.RR]:"America/Boa_Vista",[le.RS]:"America/Sao_Paulo",[le.SC]:"America/Sao_Paulo",[le.SE]:"America/Maceio",[le.SP]:"America/Sao_Paulo",[le.TO]:"America/Araguaina"};var ZZ=require("class-transformer"),Ju=require("class-validator");function L_(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(L_,"_ts_decorate");function m8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(m8,"_ts_metadata");var Td=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};L_([(0,Ju.IsEnum)(Me),m8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Td.prototype,"tpAmb",void 0);L_([(0,Ju.IsEnum)(le),m8("design:type",typeof StateCode>"u"?Object:StateCode)],Td.prototype,"cUF",void 0);L_([(0,Ju.IsOptional)()],Td.prototype,"xServ",void 0);var d8=class{static{o(this,"ConsultStatusRequest")}consStatServ};L_([(0,Ju.IsNotEmptyObject)(),(0,Ju.IsObject)(),(0,Ju.ValidateNested)(),(0,ZZ.Type)(()=>Td),m8("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],d8.prototype,"consStatServ",void 0);var k_=require("class-transformer"),ar=require("class-validator");function ji(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(ji,"_ts_decorate");function Ts(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ts,"_ts_metadata");var F_=class{static{o(this,"InfInutAttributes")}Id};ji([(0,ar.IsString)(),Ts("design:type",String)],F_.prototype,"Id",void 0);var AA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};ji([(0,ar.IsString)(),Ts("design:type",String)],AA.prototype,"xmlns",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],AA.prototype,"versao",void 0);var Is=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};ji([(0,ar.ValidateNested)(),(0,k_.Type)(()=>F_),Ts("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Is.prototype,"$",void 0);ji([(0,ar.IsEnum)(Me),Ts("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Is.prototype,"tpAmb",void 0);ji([(0,ar.IsOptional)()],Is.prototype,"xServ",void 0);ji([(0,ar.IsEnum)(le),Ts("design:type",typeof StateCode>"u"?Object:StateCode)],Is.prototype,"cUF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^[0-9]{2}$/),Ts("design:type",String)],Is.prototype,"ano",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CNPJ",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CPF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^(55|65)$/),Ts("design:type",String)],Is.prototype,"mod",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,3}$/),Ts("design:type",String)],Is.prototype,"serie",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFIni",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFFin",void 0);ji([(0,ar.IsString)(),(0,ar.MinLength)(15),(0,ar.MaxLength)(255),Ts("design:type",String)],Is.prototype,"xJust",void 0);Is=ji([tn({properties:["CNPJ","CPF"],required:!0})],Is);var qf=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,k_.Type)(()=>AA),Ts("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],qf.prototype,"$",void 0);ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,k_.Type)(()=>Is),Ts("design:type",typeof IInfInut>"u"?Object:IInfInut)],qf.prototype,"infInut",void 0);ji([(0,ar.Allow)(),Ts("design:type",typeof Signature>"u"?Object:Signature)],qf.prototype,"Signature",void 0);var vl=require("class-validator");function g8(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(g8,"_ts_decorate");function eee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(eee,"_ts_metadata");var Sg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};g8([(0,vl.IsEnum)(Me),eee("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Sg.prototype,"tpAmb",void 0);g8([(0,vl.IsOptional)()],Sg.prototype,"xServ",void 0);g8([(0,vl.IsString)(),(0,vl.Length)(44,44),(0,vl.Matches)(/^[0-9]{44}$/),eee("design:type",String)],Sg.prototype,"chNFe",void 0);var gee=require("class-transformer"),gu=require("class-validator");var Ca=require("class-validator");var Ot=require("class-validator"),Ci=require("class-transformer");var xt=require("class-validator"),NA=require("class-transformer");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 Hf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"cUF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"AAMM",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"CNPJ",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"serie",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Hf.prototype,"nNF",void 0);var wo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"cUF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"AAMM",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"CNPJ",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"CPF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"IE",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"serie",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],wo.prototype,"nNF",void 0);wo=qt([tn({properties:["CNPJ","CPF"],required:!0})],wo);var LS=class{static{o(this,"RefECF")}mod;nECF;nCOO};qt([(0,xt.IsString)(),zt("design:type",String)],LS.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],LS.prototype,"nECF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],LS.prototype,"nCOO",void 0);var zf=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],zf.prototype,"refNFe",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],zf.prototype,"refNFeSig",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,NA.Type)(()=>Hf),zt("design:type",typeof IRefNF>"u"?Object:IRefNF)],zf.prototype,"refNF",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,NA.Type)(()=>wo),zt("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],zf.prototype,"refNFP",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],zf.prototype,"refCTe",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,NA.Type)(()=>LS),zt("design:type",typeof IRefECF>"u"?Object:IRefECF)],zf.prototype,"refECF",void 0);var Yr=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};qt([(0,xt.IsEnum)(le),zt("design:type",typeof StateCode>"u"?Object:StateCode)],Yr.prototype,"cUF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"cNF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"natOp",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"mod",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"serie",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"nNF",void 0);qt([Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),zt("design:type",String)],Yr.prototype,"dhEmi",void 0);qt([(0,xt.IsOptional)(),Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),zt("design:type",String)],Yr.prototype,"dhSaiEnt",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"tpNF",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"idDest",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"cMunFG",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"tpImp",void 0);qt([(0,xt.IsString)(),zt("design:type",typeof TpEmis>"u"?Object:TpEmis)],Yr.prototype,"tpEmis",void 0);qt([(0,xt.IsString)(),(0,xt.IsOptional)(),zt("design:type",String)],Yr.prototype,"cDV",void 0);qt([(0,xt.IsString)(),zt("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Yr.prototype,"tpAmb",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"finNFe",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"indFinal",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"indPres",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"indIntermed",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"procEmi",void 0);qt([(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"verProc",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),zt("design:type",String)],Yr.prototype,"dhCont",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),zt("design:type",String)],Yr.prototype,"xJust",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,NA.Type)(()=>zf),zt("design:type",Array)],Yr.prototype,"NFref",void 0);var Ui=require("class-validator");var tee=require("class-transformer");var Ds=require("class-validator");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 Yu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Yu,"_ts_metadata");var Rs=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xLgr",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"nro",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xCpl",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xBairro",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"cMun",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xMun",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"UF",void 0);Qu([(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"CEP",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"cPais",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"xPais",void 0);Qu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Yu("design:type",String)],Rs.prototype,"fone",void 0);function Zu(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(Zu,"_ts_decorate");function yl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yl,"_ts_metadata");var ns=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CNPJ",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CPF",void 0);Zu([(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"xNome",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"xFant",void 0);Zu([(0,Ui.ValidateNested)(),(0,tee.Type)(()=>Rs),yl("design:type",typeof Rs>"u"?Object:Rs)],ns.prototype,"enderEmit",void 0);Zu([(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"IE",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"IEST",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"IM",void 0);Zu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CNAE",void 0);Zu([(0,Ui.IsString)(),yl("design:type",String)],ns.prototype,"CRT",void 0);ns=Zu([tn({properties:["CNPJ","CPF"],required:!0})],ns);var hi=require("class-validator"),ree=require("class-transformer");var Un=require("class-validator");function ec(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(ec,"_ts_decorate");function tc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tc,"_ts_metadata");var Sa=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xLgr",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"nro",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xCpl",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xBairro",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"cMun",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xMun",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"UF",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"CEP",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"cPais",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"xPais",void 0);ec([(0,Un.IsOptional)(),(0,Un.IsString)(),tc("design:type",String)],Sa.prototype,"fone",void 0);function rc(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(rc,"_ts_decorate");function Sl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Sl,"_ts_metadata");var is=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"CNPJ",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"CPF",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"idEstrangeiro",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"xNome",void 0);rc([(0,hi.IsOptional)(),(0,hi.ValidateNested)(),(0,ree.Type)(()=>Sa),Sl("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],is.prototype,"enderDest",void 0);rc([(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"indIEDest",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"IE",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"ISUF",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"IM",void 0);rc([(0,hi.IsOptional)(),(0,hi.IsString)(),Sl("design:type",String)],is.prototype,"email",void 0);is=rc([tn({properties:["CNPJ","CPF"],required:!0})],is);var cn=require("class-validator");function _s(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(_s,"_ts_decorate");function Ys(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ys,"_ts_metadata");var An=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"CNPJ",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"CPF",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xNome",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xLgr",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"nro",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xCpl",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xBairro",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"cMun",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xMun",void 0);_s([(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"UF",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"CEP",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"cPais",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"xPais",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"fone",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"email",void 0);_s([(0,cn.IsOptional)(),(0,cn.IsString)(),Ys("design:type",String)],An.prototype,"IE",void 0);An=_s([tn({properties:["CNPJ","CPF"]})],An);var FS=require("class-validator");function v8(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(v8,"_ts_decorate");function nee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(nee,"_ts_metadata");var xl=class{static{o(this,"AutXML")}CNPJ;CPF};v8([(0,FS.IsOptional)(),(0,FS.IsString)(),nee("design:type",String)],xl.prototype,"CNPJ",void 0);v8([(0,FS.IsOptional)(),(0,FS.IsString)(),nee("design:type",String)],xl.prototype,"CPF",void 0);xl=v8([tn({properties:["CNPJ","CPF"]})],xl);var IA=require("class-validator");function iee(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(iee,"_ts_decorate");function see(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(see,"_ts_metadata");var Rd=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};iee([(0,IA.IsString)(),see("design:type",String)],Rd.prototype,"CNPJ",void 0);iee([(0,IA.IsOptional)(),(0,IA.IsString)(),see("design:type",String)],Rd.prototype,"idCadIntTran",void 0);var xg=require("class-validator");function y8(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(y8,"_ts_decorate");function S8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(S8,"_ts_metadata");var Kf=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};y8([(0,xg.IsString)(),S8("design:type",String)],Kf.prototype,"UFSaidaPais",void 0);y8([(0,xg.IsOptional)(),(0,xg.IsString)(),S8("design:type",String)],Kf.prototype,"xLocExporta",void 0);y8([(0,xg.IsOptional)(),(0,xg.IsString)(),S8("design:type",String)],Kf.prototype,"xLocDespacho",void 0);var Dd=require("class-validator");function x8(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(x8,"_ts_decorate");function b8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(b8,"_ts_metadata");var $f=class{static{o(this,"Compra")}xNEmp;xPed;xCont};x8([(0,Dd.IsOptional)(),(0,Dd.IsString)(),b8("design:type",String)],$f.prototype,"xNEmp",void 0);x8([(0,Dd.IsOptional)(),(0,Dd.IsString)(),b8("design:type",String)],$f.prototype,"xPed",void 0);x8([(0,Dd.IsOptional)(),(0,Dd.IsString)(),b8("design:type",String)],$f.prototype,"xCont",void 0);var bl=require("class-validator");function kS(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(kS,"_ts_decorate");function VS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(VS,"_ts_metadata");var cu=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"CNPJ",void 0);kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"xContato",void 0);kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"email",void 0);kS([(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"fone",void 0);kS([(0,bl.IsOptional)(),(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"idCSRT",void 0);kS([(0,bl.IsOptional)(),(0,bl.IsString)(),VS("design:type",String)],cu.prototype,"hashCSRT",void 0);var Cg=require("class-validator"),V_=require("class-transformer");var nc=require("class-validator");function nn(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(nn,"_ts_decorate");function sn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(sn,"_ts_metadata");var qr=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};nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBC",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMS",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSDeson",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPUFDest",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFDest",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFRemet",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCP",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBCST",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vST",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPST",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPSTRet",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMono",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMono",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoReten",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoReten",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoRet",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoRet",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vProd",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFrete",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vSeg",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vDesc",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vII",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPI",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPIDevol",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vPIS",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vCOFINS",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vOutro",void 0);nn([Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vNF",void 0);nn([(0,nc.IsOptional)(),Se({fixed:2}),sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vTotTrib",void 0);var Pn=require("class-validator");function lu(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(lu,"_ts_decorate");function fu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fu,"_ts_metadata");var Zs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vServ",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vBC",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vISS",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vPIS",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vCOFINS",void 0);lu([(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"dCompet",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vDeducao",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vOutro",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vDescIncond",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vDescCond",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"vISSRet",void 0);lu([(0,Pn.IsOptional)(),(0,Pn.IsString)(),fu("design:type",String)],Zs.prototype,"cRegTrib",void 0);var _d=require("class-validator");function bg(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(bg,"_ts_decorate");function wg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(wg,"_ts_metadata");var ic=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetPIS",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetCOFINS",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetCSLL",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vBCIRRF",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vIRRF",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vBCRetPrev",void 0);bg([(0,_d.IsOptional)(),Se({fixed:2}),wg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ic.prototype,"vRetPrev",void 0);function w8(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(w8,"_ts_decorate");function C8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(C8,"_ts_metadata");var Gf=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib};w8([(0,Cg.ValidateNested)(),(0,V_.Type)(()=>qr),C8("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Gf.prototype,"ICMSTot",void 0);w8([(0,Cg.IsOptional)(),(0,Cg.ValidateNested)(),(0,V_.Type)(()=>Zs),C8("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Gf.prototype,"ISSQNtot",void 0);w8([(0,Cg.IsOptional)(),(0,Cg.ValidateNested)(),(0,V_.Type)(()=>ic),C8("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Gf.prototype,"retTrib",void 0);var wi=require("class-validator"),KS=require("class-transformer");var ta=require("class-validator");function Od(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(Od,"_ts_decorate");function Eg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Eg,"_ts_metadata");var ea=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"CNPJ",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"CPF",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"xNome",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"IE",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"xEnder",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"xMun",void 0);Od([(0,ta.IsOptional)(),(0,ta.IsString)(),Eg("design:type",String)],ea.prototype,"UF",void 0);ea=Od([tn({properties:["CNPJ","CPF"]})],ea);var wl=require("class-validator");function jS(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(jS,"_ts_decorate");function US(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(US,"_ts_metadata");var Co=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};jS([(0,wl.IsOptional)(),Se({fixed:2}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vServ",void 0);jS([(0,wl.IsOptional)(),Se({fixed:2}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBCRet",void 0);jS([(0,wl.IsOptional)(),Se({fixed:4}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMSRet",void 0);jS([(0,wl.IsOptional)(),Se({fixed:2}),US("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMSRet",void 0);jS([(0,wl.IsOptional)(),(0,wl.IsString)(),US("design:type",String)],Co.prototype,"CFOP",void 0);jS([(0,wl.IsOptional)(),(0,wl.IsString)(),US("design:type",String)],Co.prototype,"cMunFG",void 0);var Qa=require("class-validator");function MS(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(MS,"_ts_decorate");function qS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qS,"_ts_metadata");var Cl=class{static{o(this,"VeicTransp")}placa;UF;RNTC};MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Cl.prototype,"placa",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Cl.prototype,"UF",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Cl.prototype,"RNTC",void 0);var Ag=class{static{o(this,"Reboque")}placa;UF;RNTC};MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Ag.prototype,"placa",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Ag.prototype,"UF",void 0);MS([(0,Qa.IsOptional)(),(0,Qa.IsString)(),qS("design:type",String)],Ag.prototype,"RNTC",void 0);var pu=require("class-validator");function HS(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(HS,"_ts_decorate");function zS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zS,"_ts_metadata");var El=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"qVol",void 0);HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"esp",void 0);HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"marca",void 0);HS([(0,pu.IsOptional)(),(0,pu.IsString)(),zS("design:type",String)],El.prototype,"nVol",void 0);HS([(0,pu.IsOptional)(),Se({fixed:3}),zS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],El.prototype,"pesoL",void 0);HS([(0,pu.IsOptional)(),Se({fixed:3}),zS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],El.prototype,"pesoB",void 0);function Xf(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(Xf,"_ts_decorate");function Pd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Pd,"_ts_metadata");var ra=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Xf([(0,wi.IsString)(),Pd("design:type",String)],ra.prototype,"modFrete",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,KS.Type)(()=>ea),Pd("design:type",typeof ea>"u"?Object:ea)],ra.prototype,"transporta",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,KS.Type)(()=>Co),Pd("design:type",typeof Co>"u"?Object:Co)],ra.prototype,"retTransp",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)(),(0,KS.Type)(()=>Cl),Pd("design:type",typeof Cl>"u"?Object:Cl)],ra.prototype,"veicTransp",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)({each:!0}),(0,KS.Type)(()=>Ag),(0,wi.ArrayMaxSize)(5),Pd("design:type",Array)],ra.prototype,"reboque",void 0);Xf([(0,wi.IsOptional)(),(0,wi.IsString)(),Pd("design:type",String)],ra.prototype,"vagao",void 0);Xf([(0,wi.IsOptional)(),(0,wi.IsString)(),Pd("design:type",String)],ra.prototype,"balsa",void 0);Xf([(0,wi.IsOptional)(),(0,wi.ValidateNested)({each:!0}),(0,KS.Type)(()=>El),(0,wi.ArrayMaxSize)(5e3),Pd("design:type",Array)],ra.prototype,"vol",void 0);ra=Xf([tn({properties:["veicTransp","reboque"]}),tn({properties:["vagao","balsa"]})],ra);var Mi=require("class-validator"),E8=require("class-transformer");function Jf(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(Jf,"_ts_decorate");function Qf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qf,"_ts_metadata");var Wf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Jf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Qf("design:type",String)],Wf.prototype,"nFat",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wf.prototype,"vOrig",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wf.prototype,"vDesc",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wf.prototype,"vLiq",void 0);var $S=class{static{o(this,"Dup")}nDup;dVenc;vDup};Jf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Qf("design:type",String)],$S.prototype,"nDup",void 0);Jf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Qf("design:type",String)],$S.prototype,"dVenc",void 0);Jf([(0,Mi.IsOptional)(),Se({fixed:2}),Qf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$S.prototype,"vDup",void 0);var Bd=class{static{o(this,"Cobr")}fat;dup};Jf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)(),(0,E8.Type)(()=>Wf),Qf("design:type",typeof Wf>"u"?Object:Wf)],Bd.prototype,"fat",void 0);Jf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)({each:!0}),(0,Mi.ArrayMaxSize)(120),(0,E8.Type)(()=>$S),Qf("design:type",Array)],Bd.prototype,"dup",void 0);var kd=require("class-validator"),cee=require("class-transformer");var Nl=require("class-validator"),aee=require("class-transformer");var Ld=require("class-validator");function A8(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(A8,"_ts_decorate");function N8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(N8,"_ts_metadata");var Al=class{static{o(this,"Card")}cNPJ;tBand;cAut};A8([(0,Ld.IsOptional)(),(0,Ld.IsString)(),N8("design:type",String)],Al.prototype,"cNPJ",void 0);A8([(0,Ld.IsOptional)(),(0,Ld.IsString)(),N8("design:type",String)],Al.prototype,"tBand",void 0);A8([(0,Ld.IsOptional)(),(0,Ld.IsString)(),N8("design:type",String)],Al.prototype,"cAut",void 0);function TA(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(TA,"_ts_decorate");function RA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(RA,"_ts_metadata");var Yf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};TA([(0,Nl.IsOptional)(),(0,Nl.IsString)(),RA("design:type",String)],Yf.prototype,"indPag",void 0);TA([(0,Nl.IsString)(),RA("design:type",typeof TPag>"u"?Object:TPag)],Yf.prototype,"tPag",void 0);TA([Se({fixed:2}),RA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yf.prototype,"vPag",void 0);TA([(0,Nl.IsOptional)(),(0,Nl.ValidateNested)(),(0,aee.Type)(()=>Al),RA("design:type",typeof Al>"u"?Object:Al)],Yf.prototype,"card",void 0);TA([(0,Nl.IsOptional)(),(0,Nl.IsString)(),RA("design:type",String)],Yf.prototype,"xPag",void 0);function oee(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(oee,"_ts_decorate");function uee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(uee,"_ts_metadata");var Fd=class{static{o(this,"Pag")}detPag;vTroco};oee([(0,kd.ValidateNested)({each:!0}),(0,kd.ArrayMinSize)(1),(0,kd.ArrayMaxSize)(100),(0,cee.Type)(()=>Yf),uee("design:type",Array)],Fd.prototype,"detPag",void 0);oee([(0,kd.IsOptional)(),Se({fixed:2}),uee("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fd.prototype,"vTroco",void 0);var ii=require("class-validator"),j_=require("class-transformer");function Zf(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(Zf,"_ts_decorate");function ep(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ep,"_ts_metadata");var GS=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Zf([(0,ii.IsString)(),ep("design:type",String)],GS.prototype,"xCampo",void 0);Zf([(0,ii.IsString)(),ep("design:type",String)],GS.prototype,"xTexto",void 0);var DA=class{static{o(this,"ProcRef")}nProc;indProc};Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],DA.prototype,"nProc",void 0);Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],DA.prototype,"indProc",void 0);var sc=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],sc.prototype,"infAdFisco",void 0);Zf([(0,ii.IsOptional)(),(0,ii.IsString)(),ep("design:type",String)],sc.prototype,"infCpl",void 0);Zf([(0,ii.IsOptional)(),(0,ii.ValidateNested)({each:!0}),(0,j_.Type)(()=>GS),(0,ii.ArrayMaxSize)(10),ep("design:type",Array)],sc.prototype,"obsCont",void 0);Zf([(0,ii.IsOptional)(),(0,ii.ValidateNested)({each:!0}),(0,j_.Type)(()=>GS),(0,ii.ArrayMaxSize)(10),ep("design:type",Array)],sc.prototype,"obsFisco",void 0);Zf([(0,ii.IsOptional)(),(0,ii.ValidateNested)({each:!0}),(0,j_.Type)(()=>DA),(0,ii.ArrayMaxSize)(100),ep("design:type",Array)],sc.prototype,"procRef",void 0);var gn=require("class-validator"),M_=require("class-transformer");function xa(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(xa,"_ts_decorate");function ba(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ba,"_ts_metadata");var U_=class{static{o(this,"ForDiaAttributes")}dia};xa([(0,gn.IsString)(),ba("design:type",String)],U_.prototype,"dia",void 0);var _A=class{static{o(this,"ForDia")}$;qtde};xa([(0,gn.IsObject)(),(0,gn.IsNotEmptyObject)(),(0,M_.Type)(()=>U_),ba("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],_A.prototype,"$",void 0);xa([(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_A.prototype,"qtde",void 0);var OA=class{static{o(this,"Deduc")}xDed;vDed};xa([(0,gn.IsString)(),ba("design:type",String)],OA.prototype,"xDed",void 0);xa([Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],OA.prototype,"vDed",void 0);var na=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};xa([(0,gn.IsString)(),ba("design:type",String)],na.prototype,"safra",void 0);xa([(0,gn.IsString)(),ba("design:type",String)],na.prototype,"ref",void 0);xa([(0,gn.ValidateNested)({each:!0}),(0,gn.ArrayMaxSize)(31),(0,M_.Type)(()=>_A),ba("design:type",Array)],na.prototype,"forDia",void 0);xa([(0,gn.IsOptional)(),(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotMes",void 0);xa([(0,gn.IsOptional)(),(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotAnt",void 0);xa([(0,gn.IsOptional)(),(0,gn.IsString)(),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotGer",void 0);xa([(0,gn.IsOptional)(),(0,gn.ValidateNested)({each:!0}),(0,gn.ArrayMaxSize)(10),(0,M_.Type)(()=>OA),ba("design:type",Array)],na.prototype,"deduc",void 0);xa([(0,gn.IsOptional)(),Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vFor",void 0);xa([(0,gn.IsOptional)(),Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vTotDed",void 0);xa([(0,gn.IsOptional)(),Se({fixed:2}),ba("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vLiqFor",void 0);var sa=require("class-validator"),ox=require("class-transformer");var ot=require("class-validator");var Il=require("class-transformer");var ac=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 BA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(BA,"_ts_metadata");var tp=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};PA([(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"nLote",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"qLote",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"dFab",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"dVal",void 0);PA([(0,ac.IsOptional)(),(0,ac.IsString)(),BA("design:type",String)],tp.prototype,"cAgreg",void 0);var an=require("class-validator"),lee=require("class-transformer");function as(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(as,"_ts_decorate");function Os(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Os,"_ts_metadata");var Vd=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};as([(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"nAdicao",void 0);as([(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"nSeqAdic",void 0);as([(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"cFabricante",void 0);as([Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vd.prototype,"vDescDI",void 0);as([(0,an.IsOptional)(),(0,an.IsString)(),Os("design:type",String)],Vd.prototype,"nDraw",void 0);var ss=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"nDI",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"dDI",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"xLocDesemb",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"UFDesemb",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"dDesemb",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"tpViaTransp",void 0);as([(0,an.IsOptional)(),Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ss.prototype,"vAFRMM",void 0);as([(0,an.IsString)(),Os("design:type",String)],ss.prototype,"tpIntermedio",void 0);as([(0,an.IsString)(),(0,an.IsOptional)(),Os("design:type",String)],ss.prototype,"CNPJ",void 0);as([(0,an.IsString)(),(0,an.IsOptional)(),Os("design:type",String)],ss.prototype,"CPF",void 0);as([(0,an.IsString)(),(0,an.IsOptional)(),Os("design:type",String)],ss.prototype,"UFTerceiro",void 0);as([(0,an.IsArray)(),(0,an.ValidateNested)({each:!0}),(0,lee.Type)(()=>Vd),(0,an.ArrayMaxSize)(999),(0,an.ArrayMinSize)(1),Os("design:type",Array)],ss.prototype,"adi",void 0);ss=as([tn({properties:["CNPJ","CPF"],required:!0})],ss);var fee=require("class-transformer"),rp=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 FA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FA,"_ts_metadata");var XS=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};LA([(0,rp.IsString)(),FA("design:type",String)],XS.prototype,"nRE",void 0);LA([(0,rp.IsString)(),FA("design:type",String)],XS.prototype,"chNFe",void 0);LA([Se({fixed:4}),FA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],XS.prototype,"qExport",void 0);var WS=class{static{o(this,"DetExport")}nDraw;exportInd};LA([(0,rp.IsOptional)(),(0,rp.IsString)(),FA("design:type",String)],WS.prototype,"nDraw",void 0);LA([(0,rp.IsOptional)(),(0,rp.ValidateNested)(),(0,fee.Type)(()=>XS),FA("design:type",typeof IExportInd>"u"?Object:IExportInd)],WS.prototype,"exportInd",void 0);var I8=require("class-validator");function pee(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(pee,"_ts_decorate");function hee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hee,"_ts_metadata");var JS=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};pee([(0,I8.IsString)(),hee("design:type",String)],JS.prototype,"cProdFisco",void 0);pee([(0,I8.IsString)(),hee("design:type",String)],JS.prototype,"cOperNFF",void 0);var D8=require("class-validator");function T8(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(T8,"_ts_decorate");function R8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(R8,"_ts_metadata");var Ng=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};T8([(0,D8.IsString)(),R8("design:type",String)],Ng.prototype,"xEmb",void 0);T8([Se({fixed:3}),R8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ng.prototype,"qVolEmb",void 0);T8([(0,D8.IsString)(),R8("design:type",String)],Ng.prototype,"uEmb",void 0);var Bn=require("class-validator");function Mn(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(Mn,"_ts_decorate");function qn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qn,"_ts_metadata");var ln=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};Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpOp",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"chassi",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cCor",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"xCor",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"pot",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cilin",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"pesoL",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"pesoB",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"nSerie",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpComb",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"nMotor",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"CMT",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"dist",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"anoMod",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"anoFab",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpPint",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpVeic",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"espVeic",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"VIN",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"condVeic",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cMod",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"cCorDENATRAN",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"lota",void 0);Mn([(0,Bn.IsString)(),qn("design:type",String)],ln.prototype,"tpRest",void 0);var P8=require("class-validator");function _8(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(_8,"_ts_decorate");function O8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(O8,"_ts_metadata");var Ig=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};_8([(0,P8.IsString)(),O8("design:type",String)],Ig.prototype,"cProdANVISA",void 0);_8([(0,P8.IsString)(),O8("design:type",String)],Ig.prototype,"xMotivoIsencao",void 0);_8([Se({fixed:2}),O8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ig.prototype,"vPMC",void 0);var kA=require("class-validator");function q_(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(q_,"_ts_decorate");function H_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(H_,"_ts_metadata");var jd=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"tpArma",void 0);q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"nSerie",void 0);q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"nCano",void 0);q_([(0,kA.IsString)(),H_("design:type",String)],jd.prototype,"descr",void 0);var Lr=require("class-validator"),z_=require("class-transformer");function Hn(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(Hn,"_ts_decorate");function zn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zn,"_ts_metadata");var QS=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};Hn([(0,Lr.IsString)(),zn("design:type",String)],QS.prototype,"indImport",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],QS.prototype,"cUFOrig",void 0);Hn([Se({fixed:4}),(0,Lr.Max)(100),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],QS.prototype,"pOrig",void 0);var YS=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};Hn([Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],YS.prototype,"qBCProd",void 0);Hn([Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],YS.prototype,"vAliqProd",void 0);Hn([Se({fixed:2}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],YS.prototype,"vCIDE",void 0);var Ud=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};Hn([(0,Lr.IsString)(),zn("design:type",String)],Ud.prototype,"nBico",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ud.prototype,"nBomba",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ud.prototype,"nTanque",void 0);Hn([Se({fixed:3}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ud.prototype,"vEncIni",void 0);Hn([Se({fixed:3}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ud.prototype,"vEncFin",void 0);var Ps=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};Hn([(0,Lr.IsString)(),zn("design:type",String)],Ps.prototype,"cProdANP",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ps.prototype,"descANP",void 0);Hn([(0,Lr.IsOptional)(),(0,Lr.Max)(100),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGLP",void 0);Hn([(0,Lr.IsOptional)(),(0,Lr.Max)(100),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNn",void 0);Hn([(0,Lr.IsOptional)(),(0,Lr.Max)(100),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNi",void 0);Hn([(0,Lr.IsOptional)(),Se({fixed:2}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"vPart",void 0);Hn([(0,Lr.IsString)(),(0,Lr.IsOptional)(),zn("design:type",String)],Ps.prototype,"CODIF",void 0);Hn([(0,Lr.IsOptional)(),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"qTemp",void 0);Hn([(0,Lr.IsString)(),zn("design:type",String)],Ps.prototype,"UFCons",void 0);Hn([(0,Lr.IsObject)(),(0,Lr.ValidateNested)(),(0,z_.Type)(()=>YS),zn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Ps.prototype,"CIDE",void 0);Hn([(0,Lr.IsObject)(),(0,Lr.ValidateNested)(),(0,z_.Type)(()=>Ud),zn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Ps.prototype,"encerrante",void 0);Hn([(0,Lr.IsOptional)(),Se({fixed:4}),zn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pBio",void 0);Hn([(0,Lr.IsObject)(),(0,Lr.ValidateNested)({each:!0}),(0,z_.Type)(()=>QS),(0,Lr.ArrayMaxSize)(30),(0,Lr.IsOptional)(),zn("design:type",Array)],Ps.prototype,"origComb",void 0);function dr(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(dr,"_ts_decorate");function gr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gr,"_ts_metadata");var Kt=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};dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cEAN",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cBarra",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"xProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"NCM",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ArrayMaxSize)(8),(0,ot.IsString)({each:!0}),gr("design:type",Array)],Kt.prototype,"NVE",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"CEST",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"indEscala",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"CNPJFab",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cBenef",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),gr("design:type",Object)],Kt.prototype,"gCred",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"EXTIPI",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"CFOP",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"uCom",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"qCom",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vUnCom",void 0);dr([Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"cEANTrib",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"uTrib",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"qTrib",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vUnTrib",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vFrete",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vSeg",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vDesc",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vOutro",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"indTot",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(100),(0,Il.Type)(()=>ss),gr("design:type",Array)],Kt.prototype,"DI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Il.Type)(()=>WS),gr("design:type",Array)],Kt.prototype,"detExport",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"xPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"nItemPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"nFCI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Il.Type)(()=>tp),gr("design:type",Array)],Kt.prototype,"rastro",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>JS),gr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],Kt.prototype,"infProdNFF",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>Ng),gr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],Kt.prototype,"infProdEmb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>ln),gr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],Kt.prototype,"veicProd",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>Ig),gr("design:type",typeof IMed>"u"?Object:IMed)],Kt.prototype,"med",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)({each:!0}),(0,Il.Type)(()=>jd),(0,ot.ArrayMaxSize)(500),gr("design:type",Array)],Kt.prototype,"arma",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Il.Type)(()=>Ps),gr("design:type",typeof IComb>"u"?Object:IComb)],Kt.prototype,"comb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],Kt.prototype,"nRECOPI",void 0);Kt=dr([tn({properties:["veicProd","med","arma","comb"]})],Kt);var Bl=require("class-transformer"),si=require("class-validator");var ue=require("class-validator"),us=require("class-transformer");function Ae(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(Ae,"_ts_decorate");function Ie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ie,"_ts_metadata");var np=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMS",void 0);var Eo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMSST",void 0);var Tl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Tl.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Tl.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Tl.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tl.prototype,"vICMS",void 0);var ip=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSST",void 0);var Tg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Tg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Tg.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tg.prototype,"vICMSDeson",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Tg.prototype,"motDesICMS",void 0);var hu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ae([(0,ue.IsString)(),Ie("design:type",String)],hu.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],hu.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],hu.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),(0,ue.Max)(100),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"pDif",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],hu.prototype,"vICMSDif",void 0);var sp=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vICMSSTRet",void 0);var Ya=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ya.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"vICMSST",void 0);var Za=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Za.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Za.prototype,"vICMSST",void 0);var os=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pMVAST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pBCOp",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"UFST",void 0);var ap=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSTRet",void 0);var Rg=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],Rg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Rg.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rg.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rg.prototype,"vCredICMSSN",void 0);var VA=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],VA.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],VA.prototype,"CSOSN",void 0);var oc=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],oc.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],oc.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],oc.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],oc.prototype,"vCredICMSSN",void 0);var op=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],op.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],op.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],op.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],op.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],op.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],op.prototype,"vICMSST",void 0);var up=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],up.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],up.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],up.prototype,"vICMSSTRet",void 0);var ia=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vCredICMSSN",void 0);var Ln=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>np),Ie("design:type",typeof IICMS00>"u"?Object:IICMS00)],Ln.prototype,"ICMS00",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Eo),Ie("design:type",typeof IICMS10>"u"?Object:IICMS10)],Ln.prototype,"ICMS10",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Tl),Ie("design:type",typeof IICMS20>"u"?Object:IICMS20)],Ln.prototype,"ICMS20",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ip),Ie("design:type",typeof IICMS30>"u"?Object:IICMS30)],Ln.prototype,"ICMS30",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Tg),Ie("design:type",typeof IICMS40>"u"?Object:IICMS40)],Ln.prototype,"ICMS40",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>hu),Ie("design:type",typeof IICMS51>"u"?Object:IICMS51)],Ln.prototype,"ICMS51",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>sp),Ie("design:type",typeof IICMS60>"u"?Object:IICMS60)],Ln.prototype,"ICMS60",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Ya),Ie("design:type",typeof IICMS70>"u"?Object:IICMS70)],Ln.prototype,"ICMS70",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Za),Ie("design:type",typeof IICMS90>"u"?Object:IICMS90)],Ln.prototype,"ICMS90",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>os),Ie("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Ln.prototype,"ICMSPart",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ap),Ie("design:type",typeof IICMSST>"u"?Object:IICMSST)],Ln.prototype,"ICMSST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Rg),Ie("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Ln.prototype,"ICMSSN101",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>VA),Ie("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Ln.prototype,"ICMSSN102",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>oc),Ie("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Ln.prototype,"ICMSSN201",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>op),Ie("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Ln.prototype,"ICMSSN202",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>up),Ie("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Ln.prototype,"ICMSSN500",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ia),Ie("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Ln.prototype,"ICMSSN900",void 0);Ln=Ae([tn({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Ln);var Nn=require("class-validator"),B8=require("class-transformer");function Ao(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(Ao,"_ts_decorate");function No(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(No,"_ts_metadata");var cp=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Ao([(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"CST",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"vBC",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"pIPI",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"qUnid",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"vUnid",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],cp.prototype,"vIPI",void 0);var K_=class{static{o(this,"IPINT")}CST};Ao([(0,Nn.IsString)(),No("design:type",String)],K_.prototype,"CST",void 0);var du=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],du.prototype,"CNPJProd",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],du.prototype,"cSelo",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.IsString)(),No("design:type",String)],du.prototype,"qSelo",void 0);Ao([(0,Nn.IsString)(),No("design:type",String)],du.prototype,"cEnq",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.ValidateNested)(),(0,B8.Type)(()=>cp),No("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],du.prototype,"IPITrib",void 0);Ao([(0,Nn.IsOptional)(),(0,Nn.ValidateNested)(),(0,B8.Type)(()=>K_),No("design:type",typeof IIPINT>"u"?Object:IIPINT)],du.prototype,"IPINT",void 0);var Dl=require("class-validator");function $_(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($_,"_ts_decorate");function G_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(G_,"_ts_metadata");var Rl=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vBC",void 0);$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vDespAdu",void 0);$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vII",void 0);$_([(0,Dl.IsOptional)(),(0,Dl.IsString)(),G_("design:type",String)],Rl.prototype,"vIOF",void 0);var $t=require("class-validator"),jA=require("class-transformer");function Kn(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(Kn,"_ts_decorate");function $n(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($n,"_ts_metadata");var lp=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};Kn([(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"pPIS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],lp.prototype,"vPIS",void 0);var fp=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};Kn([(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],fp.prototype,"vPIS",void 0);var ZS=class{static{o(this,"PISNT")}CST};Kn([(0,$t.IsString)(),$n("design:type",String)],ZS.prototype,"CST",void 0);var uc=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};Kn([(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"pPIS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vPIS",void 0);var _l=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>lp),$n("design:type",typeof lp>"u"?Object:lp)],_l.prototype,"PISAliq",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>fp),$n("design:type",typeof fp>"u"?Object:fp)],_l.prototype,"PISQtde",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>ZS),$n("design:type",typeof ZS>"u"?Object:ZS)],_l.prototype,"PISNT",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,jA.Type)(()=>uc),$n("design:type",typeof uc>"u"?Object:uc)],_l.prototype,"PISOutr",void 0);var cc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"pPIS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vPIS",void 0);var Gt=require("class-validator"),UA=require("class-transformer");function Gn(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(Gn,"_ts_decorate");function Xn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Xn,"_ts_metadata");var pp=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};Gn([(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"CST",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"vBC",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"pCOFINS",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],pp.prototype,"vCOFINS",void 0);var hp=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};Gn([(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"CST",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"qBCProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"vAliqProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],hp.prototype,"vCOFINS",void 0);var ex=class{static{o(this,"COFINSNT")}CST};Gn([(0,Gt.IsString)(),Xn("design:type",String)],ex.prototype,"CST",void 0);var lc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Gn([(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"CST",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"vBC",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"pCOFINS",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"qBCProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"vAliqProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],lc.prototype,"vCOFINS",void 0);var Ol=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>pp),Xn("design:type",typeof pp>"u"?Object:pp)],Ol.prototype,"COFINSAliq",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>hp),Xn("design:type",typeof hp>"u"?Object:hp)],Ol.prototype,"COFINSQtde",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>ex),Xn("design:type",typeof ex>"u"?Object:ex)],Ol.prototype,"COFINSNT",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.ValidateNested)(),(0,UA.Type)(()=>lc),Xn("design:type",typeof lc>"u"?Object:lc)],Ol.prototype,"COFINSOutr",void 0);var fc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"vBC",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"pCOFINS",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"qBCProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"vAliqProd",void 0);Gn([(0,Gt.IsOptional)(),(0,Gt.IsString)(),Xn("design:type",String)],fc.prototype,"vCOFINS",void 0);var eo=require("class-validator");function tx(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(tx,"_ts_decorate");function rx(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rx,"_ts_metadata");var mu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"vBC",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"vAliq",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"vISSQN",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"cMunFG",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"cListServ",void 0);tx([(0,eo.IsOptional)(),(0,eo.IsString)(),rx("design:type",String)],mu.prototype,"cSitTrib",void 0);var Oi=require("class-validator");function dp(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(dp,"_ts_decorate");function mp(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(mp,"_ts_metadata");var wa=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vBCUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vBCFCPUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pFCPUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pICMSUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pICMSInter",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"pICMSInterPart",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vFCPUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vICMSUFDest",void 0);dp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),mp("design:type",String)],wa.prototype,"vICMSUFRemet",void 0);function pc(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(pc,"_ts_decorate");function Pl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Pl,"_ts_metadata");var cs=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};pc([(0,si.IsOptional)(),(0,si.IsNumber)(),Pl("design:type",Number)],cs.prototype,"vTotTrib",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>Ln),Pl("design:type",typeof IICMS>"u"?Object:IICMS)],cs.prototype,"ICMS",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>du),Pl("design:type",typeof IIPI>"u"?Object:IIPI)],cs.prototype,"IPI",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>mu),Pl("design:type",typeof IISSQN>"u"?Object:IISSQN)],cs.prototype,"ISSQN",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>Rl),Pl("design:type",typeof III>"u"?Object:III)],cs.prototype,"II",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>_l),Pl("design:type",typeof IPIS>"u"?Object:IPIS)],cs.prototype,"PIS",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>cc),Pl("design:type",typeof IPISST>"u"?Object:IPISST)],cs.prototype,"PISST",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>Ol),Pl("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],cs.prototype,"COFINS",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>fc),Pl("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],cs.prototype,"COFINSST",void 0);pc([(0,si.IsOptional)(),(0,si.ValidateNested)(),(0,Bl.Type)(()=>wa),Pl("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],cs.prototype,"ICMSUFDest",void 0);cs=pc([tn({properties:["ICMS","ISSQN"]})],cs);var Dg=require("class-validator"),dee=require("class-transformer");function L8(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(L8,"_ts_decorate");function F8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F8,"_ts_metadata");var X_=class{static{o(this,"IpiDevol")}vIPIDevol};L8([(0,Dg.IsString)(),F8("design:type",String)],X_.prototype,"vIPIDevol",void 0);var nx=class{static{o(this,"Devol")}pDevol;IPI};L8([(0,Dg.IsString)(),F8("design:type",String)],nx.prototype,"pDevol",void 0);L8([(0,Dg.IsOptional)(),(0,Dg.ValidateNested)(),(0,dee.Type)(()=>X_),F8("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],nx.prototype,"IPI",void 0);var gp=require("class-validator"),k8=require("class-transformer");function W_(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(W_,"_ts_decorate");function J_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(J_,"_ts_metadata");var ix=class{static{o(this,"Observation")}xCampo;xTexto};W_([(0,gp.IsString)(),J_("design:type",String)],ix.prototype,"xCampo",void 0);W_([(0,gp.IsString)(),J_("design:type",String)],ix.prototype,"xTexto",void 0);var sx=class{static{o(this,"ObsItem")}obsCont;obsFisco};W_([(0,gp.IsOptional)(),(0,gp.ValidateNested)(),(0,k8.Type)(()=>ix),J_("design:type",typeof IObservation>"u"?Object:IObservation)],sx.prototype,"obsCont",void 0);W_([(0,gp.IsOptional)(),(0,gp.ValidateNested)(),(0,k8.Type)(()=>ix),J_("design:type",typeof IObservation>"u"?Object:IObservation)],sx.prototype,"obsFisco",void 0);function _g(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(_g,"_ts_decorate");function Og(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Og,"_ts_metadata");var ax=class{static{o(this,"DetAttributes")}nItem};_g([(0,sa.IsString)(),Og("design:type",String)],ax.prototype,"nItem",void 0);var Ll=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};_g([(0,sa.IsObject)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>ax),Og("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Ll.prototype,"$",void 0);_g([(0,sa.ValidateNested)(),(0,ox.Type)(()=>Kt),Og("design:type",typeof IProd>"u"?Object:IProd)],Ll.prototype,"prod",void 0);_g([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>cs),Og("design:type",typeof IImposto>"u"?Object:IImposto)],Ll.prototype,"imposto",void 0);_g([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>nx),Og("design:type",typeof IDevol>"u"?Object:IDevol)],Ll.prototype,"impostoDevol",void 0);_g([(0,sa.IsOptional)(),(0,sa.IsString)(),Og("design:type",String)],Ll.prototype,"infAdProd",void 0);_g([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ox.Type)(()=>sx),Og("design:type",typeof IObsItem>"u"?Object:IObsItem)],Ll.prototype,"obsItem",void 0);var Ls=require("class-validator");function hc(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(hc,"_ts_decorate");function dc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(dc,"_ts_metadata");var Bs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"CNPJ",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"xOrgao",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"matr",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"xAgente",void 0);hc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"fone",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"UF",void 0);hc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"nDAR",void 0);hc([(0,Ls.IsOptional)(),Kp({format:"YYYY-MM-DD"}),dc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dEmi",void 0);hc([(0,Ls.IsOptional)(),Se({fixed:2}),dc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"vDAR",void 0);hc([(0,Ls.IsString)(),dc("design:type",String)],Bs.prototype,"repEmi",void 0);hc([(0,Ls.IsOptional)(),(0,Ls.IsDate)(),dc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dPag",void 0);var mee=require("class-validator");function zNe(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(zNe,"_ts_decorate");function KNe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KNe,"_ts_metadata");var Pg=class{static{o(this,"InfSolicNFF")}xSolic};zNe([(0,mee.IsString)(),KNe("design:type",String)],Pg.prototype,"xSolic",void 0);function di(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(di,"_ts_decorate");function mi(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(mi,"_ts_metadata");var Bg=class{static{o(this,"InfNFeAttributes")}Id;versao};di([(0,Ot.IsOptional)(),(0,Ot.IsString)(),mi("design:type",String)],Bg.prototype,"Id",void 0);di([(0,Ot.IsOptional)(),(0,Ot.IsString)(),mi("design:type",String)],Bg.prototype,"versao",void 0);var In=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};di([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ci.Type)(()=>Bg),(0,Ot.ValidateNested)(),mi("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],In.prototype,"$",void 0);di([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Yr),mi("design:type",typeof IIde>"u"?Object:IIde)],In.prototype,"ide",void 0);di([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>ns),mi("design:type",typeof IEmit>"u"?Object:IEmit)],In.prototype,"emit",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Bs),mi("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],In.prototype,"avulsa",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>is),mi("design:type",typeof IDest>"u"?Object:IDest)],In.prototype,"dest",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>An),mi("design:type",typeof ILocal>"u"?Object:ILocal)],In.prototype,"retirada",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>An),mi("design:type",typeof ILocal>"u"?Object:ILocal)],In.prototype,"entrega",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(10),(0,Ci.Type)(()=>xl),mi("design:type",Array)],In.prototype,"autXML",void 0);di([(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(990),(0,Ot.ArrayMinSize)(1),(0,Ci.Type)(()=>Ll),mi("design:type",Array)],In.prototype,"det",void 0);di([(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Gf),mi("design:type",typeof ITotal>"u"?Object:ITotal)],In.prototype,"total",void 0);di([(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>ra),mi("design:type",typeof ITransp>"u"?Object:ITransp)],In.prototype,"transp",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Bd),mi("design:type",typeof ICobr>"u"?Object:ICobr)],In.prototype,"cobr",void 0);di([(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Fd),mi("design:type",typeof IPag>"u"?Object:IPag)],In.prototype,"pag",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Rd),mi("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],In.prototype,"infIntermed",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>sc),mi("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],In.prototype,"infAdic",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Kf),mi("design:type",typeof IExporta>"u"?Object:IExporta)],In.prototype,"exporta",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>$f),mi("design:type",typeof ICompra>"u"?Object:ICompra)],In.prototype,"compra",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>na),mi("design:type",typeof ICana>"u"?Object:ICana)],In.prototype,"cana",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>cu),mi("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],In.prototype,"infRespTec",void 0);di([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,Ci.Type)(()=>Pg),mi("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],In.prototype,"infSolicNFF",void 0);var V8=require("class-transformer");function Q_(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(Q_,"_ts_decorate");function Y_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Y_,"_ts_metadata");var ux=class{static{o(this,"NFeAttributes")}xmlns};Q_([(0,Ca.IsString)(),(0,Ca.IsNotEmpty)(),Y_("design:type",String)],ux.prototype,"xmlns",void 0);var mc=class{static{o(this,"NFe")}$;infNFe;Signature};Q_([(0,Ca.IsObject)(),(0,Ca.IsNotEmptyObject)(),(0,V8.Type)(()=>ux),(0,Ca.ValidateNested)(),Y_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],mc.prototype,"$",void 0);Q_([(0,Ca.IsObject)(),(0,Ca.IsNotEmptyObject)(),(0,V8.Type)(()=>In),(0,Ca.ValidateNested)(),Y_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],mc.prototype,"infNFe",void 0);Q_([(0,Ca.Allow)(),Y_("design:type",typeof Signature>"u"?Object:Signature)],mc.prototype,"Signature",void 0);function MA(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(MA,"_ts_decorate");function Z_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z_,"_ts_metadata");var vp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};MA([(0,gu.IsEnum)(Me),(0,gu.IsOptional)(),Z_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],vp.prototype,"tpAmb",void 0);MA([(0,gu.IsEnum)(le),(0,gu.IsOptional)(),Z_("design:type",typeof StateCode>"u"?Object:StateCode)],vp.prototype,"cUF",void 0);MA([(0,gu.IsString)(),Z_("design:type",String)],vp.prototype,"idLote",void 0);MA([(0,gu.IsOptional)(),(0,gu.IsEnum)(["0","1"])],vp.prototype,"indSinc",void 0);MA([(0,gu.IsNotEmpty)(),(0,gee.Type)(()=>mc),Z_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],vp.prototype,"NFe",void 0);var qA=require("class-validator");function j8(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(j8,"_ts_decorate");function U8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(U8,"_ts_metadata");var Lg=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};j8([(0,qA.IsEnum)(Me),U8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Lg.prototype,"tpAmb",void 0);j8([(0,qA.IsEnum)(le),U8("design:type",typeof StateCode>"u"?Object:StateCode)],Lg.prototype,"cUF",void 0);j8([(0,qA.IsString)(),U8("design:type",String)],Lg.prototype,"nRec",void 0);var Gr=require("class-validator"),HA=require("class-transformer");var Md=(function(r){return r.Cancelamento="110111",r})({});function qi(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(qi,"_ts_decorate");function fs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fs,"_ts_metadata");var eO=class{static{o(this,"InfEventoAttributes")}Id};qi([(0,Gr.IsString)(),fs("design:type",String)],eO.prototype,"Id",void 0);var ls=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>eO),fs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],ls.prototype,"$",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof StateCode>"u"?Object:StateCode)],ls.prototype,"cOrgao",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ls.prototype,"tpAmb",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CNPJ",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CPF",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"chNFe",void 0);qi([Kp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),fs("design:type",String)],ls.prototype,"dhEvento",void 0);qi([(0,Gr.IsEnum)(Md),fs("design:type",typeof Md>"u"?Object:Md)],ls.prototype,"tpEvento",void 0);qi([(0,Gr.IsNumber)(),fs("design:type",Number)],ls.prototype,"nSeqEvento",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"verEvento",void 0);qi([(0,Gr.IsObject)(),fs("design:type",typeof T>"u"?Object:T)],ls.prototype,"detEvento",void 0);ls=qi([tn({properties:["CNPJ","CPF"],required:!0})],ls);var tO=class{static{o(this,"EventoItemAttributes")}xmlns};qi([(0,Gr.IsString)(),fs("design:type",String)],tO.prototype,"xmlns",void 0);var Fl=class{static{o(this,"EventoItem")}$;infEvento;Signature};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>tO),fs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Fl.prototype,"$",void 0);qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>ls),fs("design:type",typeof ls>"u"?Object:ls)],Fl.prototype,"infEvento",void 0);qi([(0,Gr.Allow)(),fs("design:type",typeof Signature>"u"?Object:Signature)],Fl.prototype,"Signature",void 0);var cx=class{static{o(this,"EventoPayload")}idLote;evento};qi([(0,Gr.IsString)(),fs("design:type",String)],cx.prototype,"idLote",void 0);qi([(0,Gr.IsNotEmpty)(),(0,Gr.ValidateNested)(),(0,HA.Type)(()=>Fl),fs("design:type",typeof Fl>"u"?Object:Fl)],cx.prototype,"evento",void 0);var vu=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 rO(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rO,"_ts_metadata");var gc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};lx([(0,vu.IsOptional)()],gc.prototype,"xServ",void 0);lx([(0,vu.IsString)(),(0,vu.IsIn)(Object.values(YZ)),rO("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],gc.prototype,"UF",void 0);lx([(0,vu.IsOptional)(),(0,vu.IsString)(),rO("design:type",String)],gc.prototype,"IE",void 0);lx([(0,vu.IsOptional)(),(0,vu.IsString)(),rO("design:type",String)],gc.prototype,"CNPJ",void 0);lx([(0,vu.IsOptional)(),(0,vu.IsString)(),rO("design:type",String)],gc.prototype,"CPF",void 0);gc=lx([tn({properties:["IE","CNPJ","CPF"],required:!0})],gc);var vee={AM:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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 $Ne={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"BA",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVAN",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"PE",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},yee=$Ne;var nO={[le.AC]:"SVCAN",[le.AL]:"SVCAN",[le.AM]:"SVCRS",[le.AP]:"SVCAN",[le.BA]:"SVCRS",[le.CE]:"SVCAN",[le.DF]:"SVCAN",[le.ES]:"SVCAN",[le.GO]:"SVCRS",[le.MA]:"SVCRS",[le.MG]:"SVCAN",[le.MS]:"SVCRS",[le.MT]:"SVCRS",[le.PA]:"SVCAN",[le.PB]:"SVCAN",[le.PE]:"SVCRS",[le.PI]:"SVCAN",[le.PR]:"SVCRS",[le.RJ]:"SVCAN",[le.RN]:"SVCAN",[le.RO]:"SVCAN",[le.RR]:"SVCAN",[le.RS]:"SVCAN",[le.SC]:"SVCAN",[le.SE]:"SVCAN",[le.SP]:"SVCAN",[le.TO]:"SVCAN"};function Fg(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(Fg,"_ts_decorate");function Ei(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ei,"_ts_metadata");var aa=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??=CU.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?nO[t]:yee[t];return vee[i][n][e.service]}errors(){return Reflect.getMetadata(qo,this)}validate(e){try{let t=this.errors();return t?Jn(new en(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Jr(e))}finally{Reflect.deleteMetadata(qo,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return See.default.resolve(Dx,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:le[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"})}};Fg([Ht(Td),Ei("design:type",Function),Ei("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Ei("design:returntype",Promise)],aa.prototype,"consultStatus",null);Fg([Ht(qf),Ei("design:type",Function),Ei("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Ei("design:returntype",Promise)],aa.prototype,"inutilizacao",null);Fg([Ht(Sg),Ei("design:type",Function),Ei("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Ei("design:returntype",Promise)],aa.prototype,"consultaProtocolo",null);Fg([Ht(vp),Ei("design:type",Function),Ei("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Ei("design:returntype",Promise)],aa.prototype,"autorizacao",null);Fg([Ht(Lg),Ei("design:type",Function),Ei("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Ei("design:returntype",Promise)],aa.prototype,"retAutorizacao",null);Fg([Ht(cx),Ei("design:type",Function),Ei("design:paramtypes",[Object]),Ei("design:returntype",Promise)],aa.prototype,"recepcaoEvento",null);Fg([Ht(gc),Ei("design:type",Function),Ei("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Ei("design:returntype",Promise)],aa.prototype,"consultaCadastro",null);var qd=class extends BS{static{o(this,"TransmissionPipeline")}certificate;transmitter=new aa(this.soap);constructor(e){super(e),this.certificate=e}};var zA=class extends qd{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.signer.sign(e.NFe,{tag:"infNFe",mark:"Id"},n.value);return i.isLeft()?i:(this.transmitter.configure({cUF:e.NFe.infNFe.ide.cUF,tpAmb:e.NFe.infNFe.ide.tpAmb,...t,contingency:this.contingency(e),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15),await this.transmitter.autorizacao({...e,NFe:i.value}))}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!t||!n||i===Ra.Normal))return{dhCont:t,xJust:n}}};var M8=class extends zA{static{o(this,"NfceAuthorizerPipeline")}certificate;transmitter=new aa(this.soap);constructor(e){super(e),this.certificate=e}};var xee={[Md.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};function GNe(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(GNe,"_ts_decorate");function q8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(q8,"_ts_metadata");var KA=class extends qd{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=xee[e],u=this.certificates.getCertificateInfo(i.value.certificate),{nSeqEvento:c,dhEvento:l,chNFe:p}=t,m=["ID",e,p,c.toString().padStart(2,"0")].join(""),g={$:{xmlns:this.xmlns},infEvento:{$:{Id:m},cOrgao:s,tpAmb:n.tpAmb,CNPJ:u.CNPJ,CPF:u.CPF,chNFe:p,dhEvento:l,tpEvento:e,nSeqEvento:c,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},y=this.validated(g);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},i.value)}validated(e){let t=this.errors();return t?Jn(new en(t.join(", "))):Jr(e)}};GNe([Ht(Fl),q8("design:type",Function),q8("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),q8("design:returntype",void 0)],KA.prototype,"validated",null);var H8=class extends KA{static{o(this,"NfeNfceCancelPipeline")}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(Md.Cancelamento,n,t);return i.isLeft()?i:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i.value})}};function XNe(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(XNe,"_ts_decorate");function z8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(z8,"_ts_metadata");var iO=class extends qd{static{o(this,"NfeNfceVoidRangePipeline")}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?Jn(new en(t.join(", "))):Jr(e)}};XNe([Ht(qf),z8("design:type",Function),z8("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),z8("design:returntype",void 0)],iO.prototype,"validated",null);var bee=Ar(require("path"),1);function yu(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(yu,"_ts_decorate");function Ir(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ir,"_ts_metadata");var Fs=class{static{o(this,"NfeDetXmlBuilder")}listener;data={};static create(e){return new this(e)}constructor(e){this.listener=e}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}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.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}assemble(){return this.data.imposto&&this.imposto(this.data.imposto),this.data}};yu([Ht(ax),Ir("design:type",Function),Ir("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),Ir("design:returntype",void 0)],Fs.prototype,"det",null);yu([Ht(Kt),Ir("design:type",Function),Ir("design:paramtypes",[typeof IProd>"u"?Object:IProd]),Ir("design:returntype",void 0)],Fs.prototype,"prod",null);yu([Ht(cs),Ir("design:type",Function),Ir("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),Ir("design:returntype",void 0)],Fs.prototype,"imposto",null);yu([Ht(Ln),Ir("design:type",Function),Ir("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),Ir("design:returntype",void 0)],Fs.prototype,"icms",null);yu([Ht(mu),Ir("design:type",Function),Ir("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),Ir("design:returntype",void 0)],Fs.prototype,"issqn",null);yu([Ht(Rl),Ir("design:type",Function),Ir("design:paramtypes",[typeof III>"u"?Object:III]),Ir("design:returntype",void 0)],Fs.prototype,"ii",null);yu([Ht(du),Ir("design:type",Function),Ir("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),Ir("design:returntype",void 0)],Fs.prototype,"ipi",null);yu([Ht(_l),Ir("design:type",Function),Ir("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),Ir("design:returntype",void 0)],Fs.prototype,"pis",null);yu([Ht(cc),Ir("design:type",Function),Ir("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),Ir("design:returntype",void 0)],Fs.prototype,"pisst",null);yu([Ht(Ol),Ir("design:type",Function),Ir("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),Ir("design:returntype",void 0)],Fs.prototype,"cofins",null);yu([Ht(fc),Ir("design:type",Function),Ir("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),Ir("design:returntype",void 0)],Fs.prototype,"cofinsst",null);yu([Ht(wa),Ir("design:type",Function),Ir("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),Ir("design:returntype",void 0)],Fs.prototype,"icmsufdest",null);function Hi(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(Hi,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Tn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return mc}root="NFe";$det=new uA(this);$total=new cA(this);nfeDetXmlBuilder=Fs.create(this.$det);static create(e,t){return new this(e,t)}constructor(e,t){this.builder=e,this.contingency=t}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 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);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}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(qo,this),this}toObject(){let e=this.errors();return e?Jn(new en(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),Jr(R2(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:Jr(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Me.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!==Ra.Normal)return;switch(nO[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ra.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ra.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ra.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(qo,this)}collect(e){let t=Reflect.getMetadata(qo,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(qo,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new _x().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}}};Hi([Ht(Bg),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Tn.prototype,"infNFe",null);Hi([Ht(Yr),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Tn.prototype,"ide",null);Hi([Ht(ns),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Tn.prototype,"emit",null);Hi([Ht(Bs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Tn.prototype,"avulsa",null);Hi([Ht(is),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Tn.prototype,"dest",null);Hi([Ht(An),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Tn.prototype,"retirada",null);Hi([Ht(An),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Tn.prototype,"entrega",null);Hi([Ht(xl),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Tn.prototype,"autXML",null);Hi([Ht(Gf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Tn.prototype,"total",null);Hi([Ht(ra),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Tn.prototype,"transp",null);Hi([Ht(Bd),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Tn.prototype,"cobr",null);Hi([Ht(Fd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Tn.prototype,"pag",null);Hi([Ht(Rd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Tn.prototype,"infIntermed",null);Hi([Ht(sc),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Tn.prototype,"infAdic",null);Hi([Ht(Kf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Tn.prototype,"exporta",null);Hi([Ht($f),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Tn.prototype,"compra",null);Hi([Ht(na),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Tn.prototype,"cana",null);Hi([Ht(cu),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Tn.prototype,"infRespTec",null);Hi([Ht(Pg),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Tn.prototype,"infSolicNFF",null);var K8=class extends BS{static{o(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=Tn.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}toObject(){return this.builder.toObject()}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return bee.default.resolve(Dx,this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Jr(e);let t=await this.certificates.read(this.certificate);if(t.isLeft())return t;let n=await this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value);if(n.isLeft())return n;let i=await this.toolkit.validate(n.value,this.nfeXsdSchema);return i.isLeft()?i:Jr(n.value)}};var $8={AC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Me.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"}},[Me.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:{[Me.Homolog]:{},[Me.Production]:{}}};var wee={[Me.Homolog]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfcehom",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[le.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[le.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Me.Production]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.sefaz.go.gov.br/nfce/consulta",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[le.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[le.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"www.sefaz.to.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var WNe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"SVRS",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVRS",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"SVRS",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",SVRS:"SVRS"},Cee=WNe;var Nee=require("class-transformer"),xu=require("class-validator");var oO=require("class-transformer"),vc=require("class-validator");var G8=require("class-validator");function Eee(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(Eee,"_ts_decorate");function Aee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Aee,"_ts_metadata");var fx=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};Eee([(0,G8.IsString)(),Aee("design:type",String)],fx.prototype,"qrCode",void 0);Eee([(0,G8.IsString)(),Aee("design:type",String)],fx.prototype,"urlChave",void 0);function sO(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(sO,"_ts_decorate");function aO(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(aO,"_ts_metadata");var Su=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};sO([(0,vc.IsObject)(),(0,vc.IsNotEmptyObject)(),(0,oO.Type)(()=>ux),(0,vc.ValidateNested)(),aO("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Su.prototype,"$",void 0);sO([(0,vc.IsObject)(),(0,vc.IsNotEmptyObject)(),(0,oO.Type)(()=>In),(0,vc.ValidateNested)(),aO("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Su.prototype,"infNFe",void 0);sO([(0,oO.Type)(()=>fx),aO("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],Su.prototype,"infNFeSupl",void 0);sO([(0,vc.Allow)(),aO("design:type",typeof Signature>"u"?Object:Signature)],Su.prototype,"Signature",void 0);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 uO(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(uO,"_ts_metadata");var yp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};$A([(0,xu.IsEnum)(Me),(0,xu.IsOptional)(),uO("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],yp.prototype,"tpAmb",void 0);$A([(0,xu.IsEnum)(le),(0,xu.IsOptional)(),uO("design:type",typeof StateCode>"u"?Object:StateCode)],yp.prototype,"cUF",void 0);$A([(0,xu.IsString)(),uO("design:type",String)],yp.prototype,"idLote",void 0);$A([(0,xu.IsOptional)(),(0,xu.IsEnum)(["0","1"])],yp.prototype,"indSinc",void 0);$A([(0,xu.IsNotEmpty)(),(0,Nee.Type)(()=>Su),uO("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],yp.prototype,"NFe",void 0);function JNe(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(JNe,"_ts_decorate");function X8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(X8,"_ts_metadata");var cO=class extends aa{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=Cee[t],u=$8[i][n][e.service];if(u)return u;let c=Object.keys(le).find(l=>le[l]===t);return $8[c][n][e.service]}async autorizacao(e){let t=await this.infNfeSupl(e);return t.isLeft()?t:(e.NFe.infNFeSupl=t.value,super.autorizacao(e))}getUrlConsult(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return wee[n][t]}async infNfeSupl(e){let t=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(t.version??=n.version,t.version){case"200":return await this.qrCode.execute(e.NFe,{version:t.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:t.CSC,CSCId:t.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:t.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):Jn(new en("Certificate is required in QRCode version 3.00"));default:return um(t.version)}}};JNe([Ht(yp),X8("design:type",Function),X8("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),X8("design:returntype",Promise)],cO.prototype,"autorizacao",null);var Iee=Ar(require("crypto"),1);var W8=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:Jr(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):um(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!==Ra.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),m=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${m}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=Iee.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(Jr(`${u}${s}|${a}`))}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!==Ra.OFFLINE)return Jr(`${i}${a}|${u}|${s}`);let c=new Date(e.infNFe.ide.dhEmi).getDate(),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),p=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",m=p.length?e.infNFe.ide.idDest:"",g=`${a}|${u}|${s}|${c}|${l}|${m}$`,y=await this.certificateRepository.sign(g,t.certificate.privateKey,Fc.SHA1);return y.isLeft()?y:Jr(`${i}${g}|${y.value}`)}};var J8=class extends Tn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return Su}static create(e,t){return new this(e,t)}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===Ra.Normal)return this.data.infNFe.ide.tpEmis=Ra.OFFLINE,void 0}};0&&(module.exports={AccessKeyBuilder,DefaultDetBuilderAggregator,DefaultTotalBuilderAggregator,NFCeDto,NFeDto,NfceAuthorizerPipeline,NfceQrcode,NfceRemoteTransmitter,NfceXmlBuilder,NfeAuthorizerPipeline,NfeDetXmlBuilder,NfeNfceCancelPipeline,NfeNfceVoidRangePipeline,NfeRemoteTransmitter,NfeXmlBuilder,NfeXmlBuilderPipeline,TpEmis,directory});
|
|
109
109
|
/*! Bundled license information:
|
|
110
110
|
|
|
111
111
|
lodash/lodash.js:
|