@repdf/preview 0.0.22 → 0.0.25
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/index.js +14 -7
- package/dist/preview/.next/BUILD_ID +1 -1
- package/dist/preview/.next/build-manifest.json +9 -3
- package/dist/preview/.next/cache/.tsbuildinfo +1 -1
- package/dist/preview/.next/cache/webpack/client-development/0.pack.gz +0 -0
- package/dist/preview/.next/cache/webpack/client-development/index.pack.gz +0 -0
- package/dist/preview/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/preview/.next/next-server.js.nft.json +1 -1
- package/dist/preview/.next/prerender-manifest.json +1 -1
- package/dist/preview/.next/routes-manifest.json +1 -1
- package/dist/preview/.next/server/chunks/370.js +1 -0
- package/dist/preview/.next/server/chunks/476.js +1 -0
- package/dist/preview/.next/server/chunks/787.js +1 -1
- package/dist/preview/.next/server/chunks/81.js +1 -0
- package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
- package/dist/preview/.next/server/pages/api/component.js +2 -2
- package/dist/preview/.next/server/pages/api/component.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/api/pdf.js +1 -1
- package/dist/preview/.next/server/pages/api/pdf.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/api/trpc/[trpc].js +4 -1
- package/dist/preview/.next/server/pages/api/trpc/[trpc].js.nft.json +1 -1
- package/dist/preview/.next/server/pages/en/404.html +1 -1
- package/dist/preview/.next/server/pages/en/500.html +1 -1
- package/dist/preview/.next/server/pages/en/test.html +1 -0
- package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js +1 -1
- package/dist/preview/.next/server/pages/test.js.nft.json +1 -0
- package/dist/preview/.next/server/pages-manifest.json +1 -1
- package/dist/preview/.next/server/webpack-api-runtime.js +1 -1
- package/dist/preview/.next/static/chunks/pages/test-6c9d6a5f356c21ea.js +1 -0
- package/dist/preview/.next/static/css/e697c978240c2fce.css +3 -0
- package/dist/preview/.next/static/r14XpRGeqXRkqt8lq1z_x/_buildManifest.js +1 -0
- package/dist/preview/.next/trace +16 -14
- package/package.json +7 -7
- package/dist/preview/.next/static/10iFYJXApnVsAj_q-bgIS/_buildManifest.js +0 -1
- package/dist/preview/.next/static/css/1f6d59b4f8c0fd6a.css +0 -3
- /package/dist/preview/.next/static/{10iFYJXApnVsAj_q-bgIS → r14XpRGeqXRkqt8lq1z_x}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","locale":false,"internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/api/trpc/[trpc]","regex":"^/api/trpc/([^/]+?)(?:/)?$","routeKeys":{"nxtPtrpc":"nxtPtrpc"},"namedRegex":"^/api/trpc/(?<nxtPtrpc>[^/]+?)(?:/)?$"},{"page":"/preview/[...relTemplatePath]","regex":"^/preview/(.+?)(?:/)?$","routeKeys":{"nxtPrelTemplatePath":"nxtPrelTemplatePath"},"namedRegex":"^/preview/(?<nxtPrelTemplatePath>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/
|
|
1
|
+
{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","locale":false,"internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/api/trpc/[trpc]","regex":"^/api/trpc/([^/]+?)(?:/)?$","routeKeys":{"nxtPtrpc":"nxtPtrpc"},"namedRegex":"^/api/trpc/(?<nxtPtrpc>[^/]+?)(?:/)?$"},{"page":"/preview/[...relTemplatePath]","regex":"^/preview/(.+?)(?:/)?$","routeKeys":{"nxtPrelTemplatePath":"nxtPrelTemplatePath"},"namedRegex":"^/preview/(?<nxtPrelTemplatePath>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/test","regex":"^/test(?:/)?$","routeKeys":{},"namedRegex":"^/test(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/r14XpRGeqXRkqt8lq1z_x/index.json$"},{"page":"/preview/[...relTemplatePath]","routeKeys":{"nxtPrelTemplatePath":"nxtPrelTemplatePath"},"dataRouteRegex":"^/_next/data/r14XpRGeqXRkqt8lq1z_x/preview/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/r14XpRGeqXRkqt8lq1z_x/preview/(?<nxtPrelTemplatePath>.+?)\\.json$"}],"i18n":{"locales":["en"],"defaultLocale":"en"},"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=370,exports.ids=[370],exports.modules={7370:(e,t,r)=>{r.d(t,{default:()=>Q});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),a=Math.abs,s=String.fromCharCode,c=Object.assign;function i(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function o(e,t){return 0|e.charCodeAt(t)}function l(e,t,r){return e.slice(t,r)}function f(e){return e.length}function h(e,t){return t.push(e),e}var d=1,p=1,v=0,g=0,b=0,y="";function m(e,t,r,n,a,s,c){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:d,column:p,length:c,return:""}}function k(e,t){return c(m("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return b=g<v?o(y,g++):0,p++,10===b&&(p=1,d++),b}function $(){return o(y,g)}function x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A(e){return d=p=1,v=f(y=e),g=0,[]}function C(e){var t,r;return(t=g-1,r=function e(t){for(;w();)switch(b){case t:return g;case 34:case 39:34!==t&&39!==t&&e(b);break;case 40:41===t&&e(t);break;case 92:w()}return g}(91===e?e+2:40===e?e+1:e),l(y,t,r)).trim()}var S="-ms-",P="-moz-",j="-webkit-",E="comm",T="rule",N="decl",O="@keyframes";function z(e,t){for(var r="",n=e.length,a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function M(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case N:return e.return=e.return||e.value;case E:return"";case O:return e.return=e.value+"{"+z(e.children,n)+"}";case T:e.value=e.props.join(",")}return f(r=z(e.children,n))?e.return=e.value+"{"+r+"}":""}function _(e){var t=e.length;return function(r,n,a,s){for(var c="",i=0;i<t;i++)c+=e[i](r,n,a,s)||"";return c}}function q(e){var t;return t=function e(t,r,n,a,c,v,k,A,S){for(var P,j=0,T=0,N=k,O=0,z=0,M=0,_=1,q=1,B=1,D=0,F="",G=c,H=v,I=a,J=F;q;)switch(M=D,D=w()){case 40:if(108!=M&&58==o(J,N-1)){-1!=u(J+=i(C(D),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:J+=C(D);break;case 9:case 10:case 13:case 32:J+=function(e){for(;b=$();)if(b<33)w();else break;return x(e)>2||x(b)>3?"":" "}(M);break;case 92:J+=function(e,t){for(var r;--t&&w()&&!(b<48)&&!(b>102)&&(!(b>57)||!(b<65))&&(!(b>70)||!(b<97)););return r=g+(t<6&&32==$()&&32==w()),l(y,e,r)}(g-1,7);continue;case 47:switch($()){case 42:case 47:h(m(P=function(e,t){for(;w();)if(e+b===57)break;else if(e+b===84&&47===$())break;return"/*"+l(y,t,g-1)+"*"+s(47===e?e:w())}(w(),g),r,n,E,s(b),l(P,2,-2),0),S);break;default:J+="/"}break;case 123*_:A[j++]=f(J)*B;case 125*_:case 59:case 0:switch(D){case 0:case 125:q=0;case 59+T:-1==B&&(J=i(J,/\f/g,"")),z>0&&f(J)-N&&h(z>32?W(J+";",a,n,N-1):W(i(J," ","")+";",a,n,N-2),S);break;case 59:J+=";";default:if(h(I=R(J,r,n,j,T,c,A,F,G=[],H=[],N),v),123===D){if(0===T)e(J,r,I,I,G,v,N,A,H);else switch(99===O&&110===o(J,3)?100:O){case 100:case 108:case 109:case 115:e(t,I,I,a&&h(R(t,I,I,0,0,c,A,F,c,G=[],N),H),c,H,N,A,a?G:H);break;default:e(J,I,I,I,[""],H,0,A,H)}}}j=T=z=0,_=B=1,F=J="",N=k;break;case 58:N=1+f(J),z=M;default:if(_<1){if(123==D)--_;else if(125==D&&0==_++&&125==(b=g>0?o(y,--g):0,p--,10===b&&(p=1,d--),b))continue}switch(J+=s(D),D*_){case 38:B=T>0?1:(J+="\f",-1);break;case 44:A[j++]=(f(J)-1)*B,B=1;break;case 64:45===$()&&(J+=C(w())),O=$(),T=N=f(F=J+=function(e){for(;!x($());)w();return l(y,e,g)}(g)),D++;break;case 45:45===M&&2==f(J)&&(_=0)}}return v}("",null,null,null,[""],e=A(e),0,[0],e),y="",t}function R(e,t,r,n,s,c,u,o,f,h,d){for(var p=s-1,v=0===s?c:[""],g=v.length,b=0,y=0,k=0;b<n;++b)for(var w=0,$=l(e,p+1,p=a(y=u[b])),x=e;w<g;++w)(x=(y>0?v[w]+" "+$:i($,/&\f/g,v[w])).trim())&&(f[k++]=x);return m(e,t,r,0===s?T:o,f,h,d)}function W(e,t,r,n){return m(e,t,r,N,l(e,0,n),l(e,n+1,-1),n)}var B="undefined"!=typeof document,D=function(e,t,r){for(var n=0,a=0;n=a,a=$(),38===n&&12===a&&(t[r]=1),!x(a);)w();return l(y,e,g)},F=function(e,t){var r=-1,n=44;do switch(x(n)){case 0:38===n&&12===$()&&(t[r]=1),e[r]+=D(g-1,t,r);break;case 2:e[r]+=C(n);break;case 4:if(44===n){e[++r]=58===$()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=s(n)}while(n=w());return e},G=function(e,t){var r;return r=F(A(e),t),y="",r},H=new WeakMap,I=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||H.get(r))&&!n){H.set(e,!0);for(var a=[],s=G(t,a),c=r.props,i=0,u=0;i<s.length;i++)for(var o=0;o<c.length;o++,u++)e.props[u]=a[i]?s[i].replace(/&\f/g,c[o]):c[o]+" "+s[i]}}},J=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},K=B?void 0:function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}}(function(){var e,t;return e=function(){var e={};return function(t){return e[t]}},t=Object.create(null),function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}),L=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case N:e.return=function e(t,r){switch(45^o(t,0)?(((r<<2^o(t,0))<<2^o(t,1))<<2^o(t,2))<<2^o(t,3):0){case 5103:return j+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return j+t+P+t+S+t+t;case 6828:case 4268:return j+t+S+t+t;case 6165:return j+t+S+"flex-"+t+t;case 5187:return j+t+i(t,/(\w+).+(:[^]+)/,j+"box-$1$2"+S+"flex-$1$2")+t;case 5443:return j+t+S+"flex-item-"+i(t,/flex-|-self/,"")+t;case 4675:return j+t+S+"flex-line-pack"+i(t,/align-content|flex-|-self/,"")+t;case 5548:return j+t+S+i(t,"shrink","negative")+t;case 5292:return j+t+S+i(t,"basis","preferred-size")+t;case 6060:return j+"box-"+i(t,"-grow","")+j+t+S+i(t,"grow","positive")+t;case 4554:return j+i(t,/([^-])(transform)/g,"$1"+j+"$2")+t;case 6187:return i(i(i(t,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),t,"")+t;case 5495:case 3959:return i(t,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return i(i(t,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+t+t;case 4095:case 3583:case 4068:case 2532:return i(t,/(.+)-inline(.+)/,j+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(t)-1-r>6)switch(o(t,r+1)){case 109:if(45!==o(t,r+4))break;case 102:return i(t,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+P+(108==o(t,r+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(i(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==o(t,r+1))break;case 6444:switch(o(t,f(t)-3-(~u(t,"!important")&&10))){case 107:return i(t,":",":"+j)+t;case 101:return i(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(45===o(t,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+S+"$2box$3")+t}break;case 5936:switch(o(t,r+11)){case 114:return j+t+S+i(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return j+t+S+i(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return j+t+S+i(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return j+t+S+t+t}return t}(e.value,e.length);break;case O:return z([k(e,{value:i(e.value,"@","@"+j)})],n);case T:if(e.length){var a,s;return a=e.props,s=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return z([k(e,{props:[i(t,/:(read-\w+)/,":"+P+"$1")]})],n);case"::placeholder":return z([k(e,{props:[i(t,/:(plac\w+)/,":"+j+"input-$1")]}),k(e,{props:[i(t,/:(plac\w+)/,":"+P+"$1")]}),k(e,{props:[i(t,/:(plac\w+)/,S+"input-$1")]})],n)}return""},a.map(s).join("")}}}],Q=function(e){var t=e.key;if(B&&"css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var a=e.stylisPlugins||L,s={},c=[];B&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;c.push(e)}));var i=[I,J];if(B){var u,o,l,f,h=[M,(u=function(e){f.insert(e)},function(e){!e.root&&(e=e.return)&&u(e)})],d=_(i.concat(a,h));l=function(e,t,r,n){f=r,z(q(e?e+"{"+t.styles+"}":t.styles),d),n&&(b.inserted[t.name]=!0)}}else{var p=_(i.concat(a,[M])),v=K(a)(t),g=function(e,t){var r=t.name;return void 0===v[r]&&(v[r]=z(q(e?e+"{"+t.styles+"}":t.styles),p)),v[r]};l=function(e,t,r,n){var a=t.name,s=g(e,t);return void 0===b.compat?(n&&(b.inserted[a]=!0),s):n?void(b.inserted[a]=s):s}}var b={key:t,sheet:new n({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return b.sheet.hydrate(c),b}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=476,exports.ids=[476],exports.modules={3476:(e,t,r)=>{"use strict";r.d(t,{CacheProvider:()=>f});var o,n=r(6689),s=r(7370),c=/_EMO_([^_]+?)_([^]*?)_EMO_/g;n.useInsertionEffect&&n.useInsertionEffect||n.useLayoutEffect;var f=n.createContext("undefined"!=typeof HTMLElement?(0,s.default)({key:"css"}):null).Provider;r(9635),r(4298)},4298:(e,t,r)=>{"use strict";var o=r(8184),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};function a(e){return o.isMemo(e)?c:f[e.$$typeof]||n}f[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f[o.Memo]=c;var p=Object.defineProperty,i=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,o){if("string"!=typeof r){if(m){var n=l(r);n&&n!==m&&e(t,n,o)}var c=i(r);u&&(c=c.concat(u(r)));for(var f=a(t),d=a(r),b=0;b<c.length;++b){var $=c[b];if(!s[$]&&!(o&&o[$])&&!(d&&d[$])&&!(f&&f[$])){var S=y(r,$);try{p(t,$,S)}catch(e){}}}}return t}},4892:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,f=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,i=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,y=r?Symbol.for("react.forward_ref"):60112,l=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,d=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.block"):60121,S=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case u:case s:case f:case c:case l:return e;default:switch(e=e&&e.$$typeof){case p:case y:case b:case d:case a:return e;default:return t}}case n:return t}}}function P(e){return g(e)===u}t.AsyncMode=i,t.ConcurrentMode=u,t.ContextConsumer=p,t.ContextProvider=a,t.Element=o,t.ForwardRef=y,t.Fragment=s,t.Lazy=b,t.Memo=d,t.Portal=n,t.Profiler=f,t.StrictMode=c,t.Suspense=l,t.isAsyncMode=function(e){return P(e)||g(e)===i},t.isConcurrentMode=P,t.isContextConsumer=function(e){return g(e)===p},t.isContextProvider=function(e){return g(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return g(e)===y},t.isFragment=function(e){return g(e)===s},t.isLazy=function(e){return g(e)===b},t.isMemo=function(e){return g(e)===d},t.isPortal=function(e){return g(e)===n},t.isProfiler=function(e){return g(e)===f},t.isStrictMode=function(e){return g(e)===c},t.isSuspense=function(e){return g(e)===l},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===u||e===f||e===c||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===d||e.$$typeof===a||e.$$typeof===p||e.$$typeof===y||e.$$typeof===S||e.$$typeof===x||e.$$typeof===v||e.$$typeof===$)},t.typeOf=g},8184:(e,t,r)=>{"use strict";e.exports=r(4892)},9635:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
exports.id=787,exports.ids=[787],exports.modules={4227:(e,t,r)=>{var a={".":8833,"./":8833,"./__snapshots__/get-email-component.spec.ts.snap":7969,"./close-ora-on-sigint":9862,"./close-ora-on-sigint.ts":9862,"./cn":5481,"./cn.ts":5481,"./constants":1517,"./constants.ts":1517,"./esbuild/escape-string-for-regex":8895,"./esbuild/escape-string-for-regex.ts":8895,"./esbuild/renderring-utilities-exporter":3214,"./esbuild/renderring-utilities-exporter.ts":3214,"./get-email-component":4154,"./get-email-component.ts":4154,"./improve-error-with-sourcemap":7510,"./improve-error-with-sourcemap.ts":7510,"./index":8833,"./index.ts":8833,"./language-map":7137,"./language-map.ts":7137,"./static-node-modules-for-vm":1422,"./static-node-modules-for-vm.ts":1422,"./testing/request-response-email":9323,"./testing/request-response-email.tsx":9323,"./types/as":4467,"./types/as.ts":4467,"./types/error-object":787,"./types/error-object.ts":787,"./types/hot-reload-change":3053,"./types/hot-reload-change.ts":3053,"./types/hot-reload-event":1570,"./types/hot-reload-event.ts":1570,"src/og":8833,"src/og/":8833,"src/og/__snapshots__/get-email-component.spec.ts.snap":7969,"src/og/close-ora-on-sigint":9862,"src/og/close-ora-on-sigint.ts":9862,"src/og/cn":5481,"src/og/cn.ts":5481,"src/og/constants":1517,"src/og/constants.ts":1517,"src/og/esbuild/escape-string-for-regex":8895,"src/og/esbuild/escape-string-for-regex.ts":8895,"src/og/esbuild/renderring-utilities-exporter":3214,"src/og/esbuild/renderring-utilities-exporter.ts":3214,"src/og/get-email-component":4154,"src/og/get-email-component.ts":4154,"src/og/improve-error-with-sourcemap":7510,"src/og/improve-error-with-sourcemap.ts":7510,"src/og/index":8833,"src/og/index.ts":8833,"src/og/language-map":7137,"src/og/language-map.ts":7137,"src/og/static-node-modules-for-vm":1422,"src/og/static-node-modules-for-vm.ts":1422,"src/og/testing/request-response-email":9323,"src/og/testing/request-response-email.tsx":9323,"src/og/types/as":4467,"src/og/types/as.ts":4467,"src/og/types/error-object":787,"src/og/types/error-object.ts":787,"src/og/types/hot-reload-change":3053,"src/og/types/hot-reload-change.ts":3053,"src/og/types/hot-reload-event":1570,"src/og/types/hot-reload-event.ts":1570};function o(e){return r(n(e))}function n(e){if(!r.o(a,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=n,e.exports=o,o.id=4227},7282:(e,t)=>{"use strict";Object.defineProperty(t,"l",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},8770:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,z:()=>a});let a=()=>{if(!process.env.RELATIVE_PATH_TO_PDF_FOLDER)throw Error("RELATIVE_PATH_TO_PDF_FOLDER is not set");return process.env.RELATIVE_PATH_TO_PDF_FOLDER},o=()=>{if(!process.env.ABSOLUTE_PATH_TO_PDF_FOLDER)throw Error("ABSOLUTE_PATH_TO_PDF_FOLDER is not set");return process.env.ABSOLUTE_PATH_TO_PDF_FOLDER}},9862:(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeOraOnSIGNIT:()=>o});let a=new Set;process.on("SIGINT",()=>{a.forEach(e=>{e.isSpinning&&e.stop()})});let o=e=>{a.add(e)}},5481:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{cn:()=>i});var o=r(6593),n=r(8097),s=e([o,n]);[o,n]=s.then?(await s)():s;let i=(...e)=>(0,n.twMerge)((0,o.clsx)(e));a()}catch(e){a(e)}})},1517:(e,t,r)=>{"use strict";r.r(t),r.d(t,{tabTransition:()=>a});let a={type:"spring",stiffness:2e3,damping:80,mass:1}},8895:(e,t,r)=>{"use strict";function a(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}r.r(t),r.d(t,{escapeStringForRegex:()=>a})},3214:(e,t,r)=>{"use strict";r.r(t),r.d(t,{renderingUtilitiesExporter:()=>i});var a=r(7561),o=r(9411),n=r.n(o),s=r(8895);let i=e=>({name:"rendering-utilities-exporter",setup:t=>{t.onLoad({filter:new RegExp(e.map(e=>(0,s.escapeStringForRegex)(e)).join("|"))},async({path:e})=>({contents:`${await a.promises.readFile(e,"utf8")};
|
|
2
2
|
export { render } from 'react-email-module-that-will-export-render'
|
|
3
3
|
export { createElement as reactEmailCreateReactElement } from 'react';
|
|
4
|
-
`,loader:n().extname(e).slice(1)})),t.onResolve({filter:/^react-email-module-that-will-export-render$/},async e=>{let r={kind:"import-statement",importer:e.importer,resolveDir:e.resolveDir,namespace:e.namespace},a=await t.resolve("@react-email/render",r);return 0===a.errors.length||0===(a=await t.resolve("@repdf/core",r)).errors.length||(a=await t.resolve("@react-email/components",r)).errors.length>0&&a.errors[0]&&(a.errors[0].text="Failed trying to import `render` from either `@react-email/render`, `@repdf/core` or `@react-email/components` to be able to render your email template.\n Maybe you don't have either of them installed?"),a})}})},4154:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEmailComponent:()=>c});var a=r(9411),o=r.n(a),n=r(6019),s=r.n(n),i=r(9659),F=r(3214),l=r(7510),u=r(1422);let c=async e=>{let t;try{t=(await (0,i.build)({bundle:!0,entryPoints:[e],plugins:[(0,F.renderingUtilitiesExporter)([e])],platform:"node",write:!1,format:"cjs",jsx:"automatic",logLevel:"silent",loader:{".js":"jsx"},outdir:"stdout",sourcemap:"external"})).outputFiles}catch(e){return{error:{message:e.message,stack:e.stack,name:e.name,cause:e.cause}}}let a=t[0],n=t[1].text,c={...global,console,Buffer,AbortSignal,Event,EventTarget,TextDecoder,Request,Response,TextDecoderStream,TextEncoder,TextEncoderStream,ReadableStream,URL,URLSearchParams,Headers,module:{exports:{default:void 0,render:void 0,reactEmailCreateReactElement:void 0}},__filename:e,__dirname:o().dirname(e),require:e=>{let t=e;return(e.startsWith("node:")&&(t=t.split(":")[1]),t in u.staticNodeModulesForVM)?u.staticNodeModulesForVM[t]:r(4227)(`${e}`)},process},d=JSON.parse(a.text);d.sourceRoot=o().resolve(a.path,"../.."),d.sources=d.sources.map(e=>o().resolve(a.path,"..",e));try{s().runInNewContext(n,c,{filename:e})}catch(t){return t.stack&&=t.stack.split("at Script.runInContext (node:vm")[0],{error:(0,l.improveErrorWithSourceMap)(t,e,d)}}if(void 0===c.module.exports.default)return{error:(0,l.improveErrorWithSourceMap)(Error(`The email component at ${e} does not contain a default export`),e,d)};let p="PreviewSettings"in c.module.exports.default?c.module.exports.default:{};return{emailComponent:c.module.exports.default,render:c.module.exports.render,createElement:c.module.exports.reactEmailCreateReactElement,sourceMapToOriginalFile:d,previewSettings:p}}},7510:(e,t,r)=>{"use strict";r.r(t),r.d(t,{improveErrorWithSourceMap:()=>i});var a=r(9411),o=r.n(a),n=r(483),s=r(4835);let i=(e,t,r)=>{let a;let i=r.sourceRoot??o().dirname(t),F=(e,t,r,a)=>{let n=a||r?`${r??""}${r&&a?":":""}${a??""}`:void 0,s=o().relative(i,t);return"<unknown>"===e?` at ${s}${n?`:${n}`:""}`:` at ${e} (${s}${n?`:${n}`:""})`};if(void 0!==e.stack){let o=s.parse(e.stack),i=new n.SourceMapConsumer(r),l=[];for(let e of o)if(e.file===t){if(e.column||e.lineNumber){let t=i.originalPositionFor({column:e.column??0,line:e.lineNumber??0});l.push(F(e.methodName,t.source??e.file,t.line,t.column))}else l.push(F(e.methodName,e.file,e.lineNumber,e.column))}else if(e.file){let t=F(e.methodName,e.file,e.lineNumber,e.column);l.push(t)}a=l.join("\n")}return{name:e.name,message:e.message,cause:e.cause,stack:a}}},8833:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{cn:()=>o.cn});var o=r(5481);r(7137);var n=e([o]);o=(n.then?(await n)():n)[0],a()}catch(e){a(e)}})},7137:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});let a={jsx:"React",markup:"HTML",markdown:"Plain Text"}},1422:(e,t,r)=>{"use strict";r.r(t),r.d(t,{staticNodeModulesForVM:()=>eL});var a=r(8061),o=r.n(a),n=r(2761),s=r.n(n),i=r(2254),F=r.n(i),l=r(7718),u=r.n(l),c=r(8878),d=r.n(c),p=r(27),x=r.n(p),m=r(7053),g=r.n(m),E=r(6005),h=r.n(E),f=r(1215),b=r.n(f),y=r(5714),v=r.n(y),w=r(604),_=r.n(w),P=r(4158),T=r.n(P),S=r(5673),k=r.n(S),R=r(7561),A=r.n(R),O=r(3977),D=r.n(O),L=r(8849),$=r.n(L),j=r(2725),N=r.n(j),q=r(2286),C=r.n(q),I=r(5690),M=r.n(I),U=r(2033),H=r.n(U),V=r(7503),z=r.n(V),G=r(612),B=r.n(G),W=r(9411),J=r.n(W),X=r(8846),Y=r.n(X),K=r(7742),Q=r.n(K),Z=r(3801),ee=r.n(Z),et=r(9630),er=r.n(et),ea=r(1747),eo=r.n(ea),en=r(3792),es=r.n(en),ei=r(4492),eF=r.n(ei),el=r(6915),eu=r.n(el),ec=r(2332),ed=r.n(ec),ep=r(9397),ex=r.n(ep),em=r(1764),eg=r.n(em),eE=r(5997),eh=r.n(eE),ef=r(1041),eb=r.n(ef),ey=r(7261),ev=r.n(ey),ew=r(3746),e_=r.n(ew),eP=r(3858),eT=r.n(eP),eS=r(6019),ek=r.n(eS),eR=r(4086),eA=r.n(eR),eO=r(5628),eD=r.n(eO);let eL={assert:o(),async_hooks:s(),buffer:F(),child_process:u(),cluster:d(),console:x(),constants:g(),crypto:h(),dgram:b(),diagnostics_channel:v(),dns:_(),domain:T(),events:k(),fs:A(),"fs/promises":D(),http:$(),http2:N(),https:C(),inspector:M(),module:H(),net:z(),os:B(),path:J(),perf_hooks:Y(),process:Q(),punycode:ee(),querystring:er(),readline:eo(),repl:es(),stream:eF(),string_decoder:eu(),timers:ed(),"timers/promises":ex(),tls:eg(),tty:eh(),url:eb(),util:ev(),"util/types":e_(),v8:eT(),vm:ek(),worker_threads:eA(),zlib:eD()}},9323:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var a=r(997);new Request("https://react.email"),new Response("{}");let o=()=>a.jsx("div",{})},4467:(e,t,r)=>{"use strict";r.r(t)},787:(e,t,r)=>{"use strict";r.r(t)},3053:(e,t,r)=>{"use strict";r.r(t)},1570:(e,t,r)=>{"use strict";r.r(t)},8107:(e,t)=>{"use strict";var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},4994:(e,t,r)=>{"use strict";e.exports=r(145)},7969:(e,t)=>{t["getEmailComponent() > with a demo email template 1"]=`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head><link rel="preload" as="image" href="/static/vercel-logo.png"/><link rel="preload" as="image" href="/static/vercel-user.png"/><link rel="preload" as="image" href="/static/vercel-arrow.png"/><link rel="preload" as="image" href="/static/vercel-team.png"/><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta name="x-apple-disable-message-reformatting"/><!--$--></head><div style="display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0">Join Alan on Vercel<div>\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF</div></div><body style="background-color:rgb(255,255,255);margin-top:auto;margin-bottom:auto;margin-left:auto;margin-right:auto;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";padding-left:0.5rem;padding-right:0.5rem"><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="border-width:1px;border-style:solid;border-color:rgb(234,234,234);border-radius:0.25rem;margin-top:40px;margin-bottom:40px;margin-left:auto;margin-right:auto;padding:20px;max-width:465px"><tbody><tr style="width:100%"><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="margin-top:32px"><tbody><tr><td><img alt="Vercel" height="37" src="/static/vercel-logo.png" style="margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:block;outline:none;border:none;text-decoration:none" width="40"/></td></tr></tbody></table><h1 style="color:rgb(0,0,0);font-size:24px;font-weight:400;text-align:center;padding:0px;margin-top:30px;margin-bottom:30px;margin-left:0px;margin-right:0px">Join <strong>Enigma</strong> on <strong>Vercel</strong></h1><p style="color:rgb(0,0,0);font-size:14px;line-height:24px;margin:16px 0">Hello <!-- -->alanturing<!-- -->,</p><p style="color:rgb(0,0,0);font-size:14px;line-height:24px;margin:16px 0"><strong>Alan</strong> (<a href="mailto:alan.turing@example.com" style="color:rgb(37,99,235);text-decoration-line:none" target="_blank">alan.turing@example.com</a>) has invited you to the <strong>Enigma</strong> team on<!-- --> <strong>Vercel</strong>.</p><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody><tr><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td align="right" data-id="__react-email-column"><img height="64" src="/static/vercel-user.png" style="border-radius:9999px;display:block;outline:none;border:none;text-decoration:none" width="64"/></td><td align="center" data-id="__react-email-column"><img alt="invited you to" height="9" src="/static/vercel-arrow.png" style="display:block;outline:none;border:none;text-decoration:none" width="12"/></td><td align="left" data-id="__react-email-column"><img height="64" src="/static/vercel-team.png" style="border-radius:9999px;display:block;outline:none;border:none;text-decoration:none" width="64"/></td></tr></tbody></table></td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="text-align:center;margin-top:32px;margin-bottom:32px"><tbody><tr><td><a href="https://vercel.com/teams/invite/foo" style="background-color:rgb(0,0,0);border-radius:0.25rem;color:rgb(255,255,255);font-size:12px;font-weight:600;text-decoration-line:none;text-align:center;padding-left:1.25rem;padding-right:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:12px 20px 12px 20px" target="_blank"><span><!--[if mso]><i style="mso-font-width:500%;mso-text-raise:18" hidden>  </i><![endif]--></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:9px">Join the team</span><span><!--[if mso]><i style="mso-font-width:500%" hidden>  ​</i><![endif]--></span></a></td></tr></tbody></table><p style="color:rgb(0,0,0);font-size:14px;line-height:24px;margin:16px 0">or copy and paste this URL into your browser:<!-- --> <a href="https://vercel.com/teams/invite/foo" style="color:rgb(37,99,235);text-decoration-line:none" target="_blank">https://vercel.com/teams/invite/foo</a></p><hr style="border-width:1px;border-style:solid;border-color:rgb(234,234,234);margin-top:26px;margin-bottom:26px;margin-left:0px;margin-right:0px;width:100%;border:none;border-top:1px solid #eaeaea"/><p style="color:rgb(102,102,102);font-size:12px;line-height:24px;margin:16px 0">This invitation was intended for<!-- --> <span style="color:rgb(0,0,0)">alanturing</span>. This invite was sent from <span style="color:rgb(0,0,0)">204.13.186.218</span> <!-- -->located in<!-- --> <span style="color:rgb(0,0,0)">S\xe3o Paulo, Brazil</span>. If you were not expecting this invitation, you can ignore this email. If you are concerned about your account's safety, please reply to this email to get in touch with us.</p></td></tr></tbody></table><!--/$--></body></html>"`}};
|
|
4
|
+
`,loader:n().extname(e).slice(1)})),t.onResolve({filter:/^react-email-module-that-will-export-render$/},async e=>{let r={kind:"import-statement",importer:e.importer,resolveDir:e.resolveDir,namespace:e.namespace},a=await t.resolve("@repdf/core",r);return 0===a.errors.length||0===(a=await t.resolve("@react-email/render",r)).errors.length||(a=await t.resolve("@react-email/components",r)).errors.length>0&&a.errors[0]&&(a.errors[0].text="Failed trying to import `render` from either `@react-email/render`, `@repdf/core` or `@react-email/components` to be able to render your email template.\n Maybe you don't have either of them installed?"),a})}})},4154:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEmailComponent:()=>c});var a=r(9411),o=r.n(a),n=r(6019),s=r.n(n),i=r(9659),F=r(3214),l=r(7510),u=r(1422);let c=async e=>{let t;try{t=(await (0,i.build)({bundle:!0,entryPoints:[e],plugins:[(0,F.renderingUtilitiesExporter)([e])],platform:"node",write:!1,format:"cjs",jsx:"automatic",logLevel:"silent",loader:{".js":"jsx"},outdir:"stdout",sourcemap:"external"})).outputFiles}catch(e){return{error:{message:e.message,stack:e.stack,name:e.name,cause:e.cause}}}let a=t[0],n=t[1].text,c={...global,console,Buffer,AbortSignal,Event,EventTarget,TextDecoder,Request,Response,TextDecoderStream,TextEncoder,TextEncoderStream,ReadableStream,URL,URLSearchParams,Headers,module:{exports:{default:void 0,render:void 0,reactEmailCreateReactElement:void 0}},__filename:e,__dirname:o().dirname(e),require:e=>{let t=e;return(e.startsWith("node:")&&(t=t.split(":")[1]),t in u.staticNodeModulesForVM)?u.staticNodeModulesForVM[t]:r(4227)(`${e}`)},process},d=JSON.parse(a.text);d.sourceRoot=o().resolve(a.path,"../.."),d.sources=d.sources.map(e=>o().resolve(a.path,"..",e));try{s().runInNewContext(n,c,{filename:e})}catch(t){return t.stack&&=t.stack.split("at Script.runInContext (node:vm")[0],{error:(0,l.improveErrorWithSourceMap)(t,e,d)}}if(void 0===c.module.exports.default)return{error:(0,l.improveErrorWithSourceMap)(Error(`The email component at ${e} does not contain a default export`),e,d)};let p="PreviewSettings"in c.module.exports.default?c.module.exports.default:{};return{emailComponent:c.module.exports.default,render:c.module.exports.render,createElement:c.module.exports.reactEmailCreateReactElement,sourceMapToOriginalFile:d,previewSettings:p}}},7510:(e,t,r)=>{"use strict";r.r(t),r.d(t,{improveErrorWithSourceMap:()=>i});var a=r(9411),o=r.n(a),n=r(483),s=r(4835);let i=(e,t,r)=>{let a;let i=r.sourceRoot??o().dirname(t),F=(e,t,r,a)=>{let n=a||r?`${r??""}${r&&a?":":""}${a??""}`:void 0,s=o().relative(i,t);return"<unknown>"===e?` at ${s}${n?`:${n}`:""}`:` at ${e} (${s}${n?`:${n}`:""})`};if(void 0!==e.stack){let o=s.parse(e.stack),i=new n.SourceMapConsumer(r),l=[];for(let e of o)if(e.file===t){if(e.column||e.lineNumber){let t=i.originalPositionFor({column:e.column??0,line:e.lineNumber??0});l.push(F(e.methodName,t.source??e.file,t.line,t.column))}else l.push(F(e.methodName,e.file,e.lineNumber,e.column))}else if(e.file){let t=F(e.methodName,e.file,e.lineNumber,e.column);l.push(t)}a=l.join("\n")}return{name:e.name,message:e.message,cause:e.cause,stack:a}}},8833:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{cn:()=>o.cn});var o=r(5481);r(7137);var n=e([o]);o=(n.then?(await n)():n)[0],a()}catch(e){a(e)}})},7137:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});let a={jsx:"React",markup:"HTML",markdown:"Plain Text"}},1422:(e,t,r)=>{"use strict";r.r(t),r.d(t,{staticNodeModulesForVM:()=>eL});var a=r(8061),o=r.n(a),n=r(2761),s=r.n(n),i=r(2254),F=r.n(i),l=r(7718),u=r.n(l),c=r(8878),d=r.n(c),p=r(27),x=r.n(p),m=r(7053),g=r.n(m),E=r(6005),h=r.n(E),f=r(1215),b=r.n(f),y=r(5714),v=r.n(y),w=r(604),_=r.n(w),P=r(4158),T=r.n(P),S=r(5673),k=r.n(S),R=r(7561),A=r.n(R),O=r(3977),D=r.n(O),L=r(8849),$=r.n(L),j=r(2725),N=r.n(j),q=r(2286),C=r.n(q),I=r(5690),M=r.n(I),U=r(2033),H=r.n(U),V=r(7503),z=r.n(V),G=r(612),B=r.n(G),W=r(9411),J=r.n(W),X=r(8846),Y=r.n(X),K=r(7742),Q=r.n(K),Z=r(3801),ee=r.n(Z),et=r(9630),er=r.n(et),ea=r(1747),eo=r.n(ea),en=r(3792),es=r.n(en),ei=r(4492),eF=r.n(ei),el=r(6915),eu=r.n(el),ec=r(2332),ed=r.n(ec),ep=r(9397),ex=r.n(ep),em=r(1764),eg=r.n(em),eE=r(5997),eh=r.n(eE),ef=r(1041),eb=r.n(ef),ey=r(7261),ev=r.n(ey),ew=r(3746),e_=r.n(ew),eP=r(3858),eT=r.n(eP),eS=r(6019),ek=r.n(eS),eR=r(4086),eA=r.n(eR),eO=r(5628),eD=r.n(eO);let eL={assert:o(),async_hooks:s(),buffer:F(),child_process:u(),cluster:d(),console:x(),constants:g(),crypto:h(),dgram:b(),diagnostics_channel:v(),dns:_(),domain:T(),events:k(),fs:A(),"fs/promises":D(),http:$(),http2:N(),https:C(),inspector:M(),module:H(),net:z(),os:B(),path:J(),perf_hooks:Y(),process:Q(),punycode:ee(),querystring:er(),readline:eo(),repl:es(),stream:eF(),string_decoder:eu(),timers:ed(),"timers/promises":ex(),tls:eg(),tty:eh(),url:eb(),util:ev(),"util/types":e_(),v8:eT(),vm:ek(),worker_threads:eA(),zlib:eD()}},9323:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var a=r(997);new Request("https://react.email"),new Response("{}");let o=()=>a.jsx("div",{})},4467:(e,t,r)=>{"use strict";r.r(t)},787:(e,t,r)=>{"use strict";r.r(t)},3053:(e,t,r)=>{"use strict";r.r(t)},1570:(e,t,r)=>{"use strict";r.r(t)},8107:(e,t)=>{"use strict";var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},4994:(e,t,r)=>{"use strict";e.exports=r(145)},7969:(e,t)=>{t["getEmailComponent() > with a demo email template 1"]=`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head><link rel="preload" as="image" href="/static/vercel-logo.png"/><link rel="preload" as="image" href="/static/vercel-user.png"/><link rel="preload" as="image" href="/static/vercel-arrow.png"/><link rel="preload" as="image" href="/static/vercel-team.png"/><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta name="x-apple-disable-message-reformatting"/><!--$--></head><div style="display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0">Join Alan on Vercel<div>\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF\xa0\uFEFF</div></div><body style="background-color:rgb(255,255,255);margin-top:auto;margin-bottom:auto;margin-left:auto;margin-right:auto;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";padding-left:0.5rem;padding-right:0.5rem"><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="border-width:1px;border-style:solid;border-color:rgb(234,234,234);border-radius:0.25rem;margin-top:40px;margin-bottom:40px;margin-left:auto;margin-right:auto;padding:20px;max-width:465px"><tbody><tr style="width:100%"><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="margin-top:32px"><tbody><tr><td><img alt="Vercel" height="37" src="/static/vercel-logo.png" style="margin-top:0px;margin-bottom:0px;margin-left:auto;margin-right:auto;display:block;outline:none;border:none;text-decoration:none" width="40"/></td></tr></tbody></table><h1 style="color:rgb(0,0,0);font-size:24px;font-weight:400;text-align:center;padding:0px;margin-top:30px;margin-bottom:30px;margin-left:0px;margin-right:0px">Join <strong>Enigma</strong> on <strong>Vercel</strong></h1><p style="color:rgb(0,0,0);font-size:14px;line-height:24px;margin:16px 0">Hello <!-- -->alanturing<!-- -->,</p><p style="color:rgb(0,0,0);font-size:14px;line-height:24px;margin:16px 0"><strong>Alan</strong> (<a href="mailto:alan.turing@example.com" style="color:rgb(37,99,235);text-decoration-line:none" target="_blank">alan.turing@example.com</a>) has invited you to the <strong>Enigma</strong> team on<!-- --> <strong>Vercel</strong>.</p><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody><tr><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td align="right" data-id="__react-email-column"><img height="64" src="/static/vercel-user.png" style="border-radius:9999px;display:block;outline:none;border:none;text-decoration:none" width="64"/></td><td align="center" data-id="__react-email-column"><img alt="invited you to" height="9" src="/static/vercel-arrow.png" style="display:block;outline:none;border:none;text-decoration:none" width="12"/></td><td align="left" data-id="__react-email-column"><img height="64" src="/static/vercel-team.png" style="border-radius:9999px;display:block;outline:none;border:none;text-decoration:none" width="64"/></td></tr></tbody></table></td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="text-align:center;margin-top:32px;margin-bottom:32px"><tbody><tr><td><a href="https://vercel.com/teams/invite/foo" style="background-color:rgb(0,0,0);border-radius:0.25rem;color:rgb(255,255,255);font-size:12px;font-weight:600;text-decoration-line:none;text-align:center;padding-left:1.25rem;padding-right:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;line-height:100%;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;padding:12px 20px 12px 20px" target="_blank"><span><!--[if mso]><i style="mso-font-width:500%;mso-text-raise:18" hidden>  </i><![endif]--></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:9px">Join the team</span><span><!--[if mso]><i style="mso-font-width:500%" hidden>  ​</i><![endif]--></span></a></td></tr></tbody></table><p style="color:rgb(0,0,0);font-size:14px;line-height:24px;margin:16px 0">or copy and paste this URL into your browser:<!-- --> <a href="https://vercel.com/teams/invite/foo" style="color:rgb(37,99,235);text-decoration-line:none" target="_blank">https://vercel.com/teams/invite/foo</a></p><hr style="border-width:1px;border-style:solid;border-color:rgb(234,234,234);margin-top:26px;margin-bottom:26px;margin-left:0px;margin-right:0px;width:100%;border:none;border-top:1px solid #eaeaea"/><p style="color:rgb(102,102,102);font-size:12px;line-height:24px;margin:16px 0">This invitation was intended for<!-- --> <span style="color:rgb(0,0,0)">alanturing</span>. This invite was sent from <span style="color:rgb(0,0,0)">204.13.186.218</span> <!-- -->located in<!-- --> <span style="color:rgb(0,0,0)">S\xe3o Paulo, Brazil</span>. If you were not expecting this invitation, you can ignore this email. If you are concerned about your account's safety, please reply to this email to get in touch with us.</p></td></tr></tbody></table><!--/$--></body></html>"`}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=81,exports.ids=[81],exports.modules={81:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var n=r(4428),i=r.n(n),a=r(1012),s=r.n(a),o=r(2098),h=r.n(o);function l(e,t,r,n){return'<style data-emotion="'+e+" "+t+'"'+n+">"+r+"</style>"}function u(e){!0!==e.compat&&(e.compat=!0);var t=void 0!==e.nonce?' nonce="'+e.nonce+'"':"";return{extractCritical:function(t){for(var r,n=RegExp(e.key+"-([a-zA-Z0-9-_]+)","gm"),i={html:t,ids:[],css:""},a={};null!==(r=n.exec(t));)void 0===a[r[1]]&&(a[r[1]]=!0);return i.ids=Object.keys(e.inserted).filter(function(t){if((void 0!==a[t]||void 0===e.registered[e.key+"-"+t])&&!0!==e.inserted[t])return i.css+=e.inserted[t],!0}),i},extractCriticalToChunks:function(t){for(var r,n=RegExp(e.key+"-([a-zA-Z0-9-_]+)","gm"),i={html:t,styles:[]},a={};null!==(r=n.exec(t));)void 0===a[r[1]]&&(a[r[1]]=!0);var s=[],o="";return Object.keys(e.inserted).forEach(function(t){(void 0!==a[t]||void 0===e.registered[e.key+"-"+t])&&!0!==e.inserted[t]&&(e.registered[e.key+"-"+t]?(s.push(t),o+=e.inserted[t]):i.styles.push({key:e.key+"-global",ids:[t],css:e.inserted[t]}))}),i.styles.push({key:e.key,ids:s,css:o}),i},renderStylesToString:function(r){var n,i=e.inserted,a=e.key,s=e.registered,o=RegExp("<|"+a+"-([a-zA-Z0-9-_]+)","gm"),h={},u="",f="",d="";for(var c in i)if(i.hasOwnProperty(c)){var p=i[c],g=a+"-"+c;!0!==p&&void 0===s[g]&&(d+=p,f+=" "+c)}""!==d&&(u=l(a,f.substring(1),d,t));for(var b="",y="",v=0;null!==(n=o.exec(r));){if("<"===n[0]){""!==b&&(u+=l(a,b.substring(1),y,t),b="",y=""),u+=r.substring(v,n.index),v=n.index;continue}var w=n[1],m=i[w];!0===m||void 0===m||h[w]||(h[w]=!0,y+=m,b+=" "+w)}return u+r.substring(v)},renderStylesToNodeStream:function(){var r={},n=s()(),a=i()(function(n){var i=n[0],a=n[1];if("open"===i){for(var s,o="",h={},l=a.toString(),u=RegExp(e.key+"-([a-zA-Z0-9-_]+)","gm");null!==(s=u.exec(l));)null!==s&&void 0===r[s[1]]&&(h[s[1]]=!0);Object.keys(e.inserted).forEach(function(t){!0!==e.inserted[t]&&void 0===r[t]&&(!0===h[t]||void 0===e.registered[e.key+"-"+t]&&(h[t]=!0))&&(r[t]=!0,o+=e.inserted[t])}),""!==o&&this.queue('<style data-emotion="'+e.key+" "+Object.keys(h).join(" ")+'"'+t+">"+o+"</style>")}this.queue(a)},function(){this.queue(null)});return h()(n,a)},constructStyleTagsFromChunks:function(e){var r="";return e.styles.forEach(function(e){r+=l(e.key,e.ids.join(" "),e.css,t)}),r}}}},4927:e=>{var t=Object.prototype.toString,r="function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,n,i){if("number"==typeof e)throw TypeError('"value" argument must not be a number');return"ArrayBuffer"===t.call(e).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,n,i):"string"==typeof e?function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!Buffer.isEncoding(t))throw TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,t):new Buffer(e,t)}(e,n):r?Buffer.from(e):new Buffer(e)}},3877:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(8893).Buffer.isBuffer},6550:(e,t,r)=>{"use strict";var n=r(9783);function i(e,t,r){void 0===r&&(r=t,t=e,e=null),n.Duplex.call(this,e),"function"!=typeof r.read&&(r=new n.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var i=this;t.once("finish",function(){i.end()}),this.once("finish",function(){t.end()}),r.on("readable",function(){i._waiting&&(i._waiting=!1,i._read())}),r.once("end",function(){i.push(null)}),(!e||void 0===e.bubbleErrors||e.bubbleErrors)&&(t.on("error",function(e){i.emit("error",e)}),r.on("error",function(e){i.emit("error",e)}))}i.prototype=Object.create(n.Duplex.prototype,{constructor:{value:i}}),i.prototype._write=function(e,t,r){this._writable.write(e,t,r)},i.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},e.exports=function(e,t,r){return new i(e,t,r)},e.exports.DuplexWrapper=i},1012:(e,t,r)=>{var n=r(4927),i=r(3959).Transform;r(467)(h,i),e.exports=h;var a={lt:60,gt:62,slash:47,dquote:34,squote:39,equal:61},s={endScript:n("</script"),endStyle:n("</style"),endTitle:n("</title"),comment:n("<!--"),endComment:n("-->"),cdata:n("<![CDATA["),endCdata:n("]]>")},o={TagNameState:1,AttributeNameState:2,BeforeAttributeValueState:3,AttributeValueState:4};function h(){if(!(this instanceof h))return new h;i.call(this),this._readableState.objectMode=!0,this.state="text",this.tagState=null,this.quoteState=null,this.raw=null,this.buffers=[],this._last=[]}function l(e,t){if(e.length<t.length)return!1;for(var r=e.length-1,n=t.length-1;r>=0&&n>=0;r--,n--)if(u(e[r])!==u(t[n]))return!1;return!0}function u(e){return e>=65&&e<=90?e+32:e}function f(e){return 32===e||9===e||10===e||12===e||13===e}h.prototype._transform=function(e,t,r){var n=0,i=0;for(this._prev&&(e=Buffer.concat([this._prev,e]),n=this._prev.length-1,i=this._offset,this._prev=null,this._offset=0);n<e.length;n++){var h=e[n];if(this._last.push(h),this._last.length>9&&this._last.shift(),this.raw){var u=this._testRaw(e,i,n);u&&(this.push(["text",u[0]]),this.raw===s.endComment||this.raw===s.endCdata?(this.state="text",this.buffers=[],this.push(["close",u[1]])):(this.state="open",this.buffers=[u[1]]),this.raw=null,i=n+1)}else if("text"===this.state&&h===a.lt&&n===e.length-1)return this._prev=e,this._offset=i,r();else if("text"!==this.state||h!==a.lt||f(e[n+1])){if(this.tagState===o.TagNameState&&f(h))this.tagState=o.AttributeNameState;else if(this.tagState===o.AttributeNameState&&h===a.equal)this.tagState=o.BeforeAttributeValueState;else if(this.tagState===o.BeforeAttributeValueState&&f(h));else if(this.tagState===o.BeforeAttributeValueState&&h!==a.gt)this.tagState=o.AttributeValueState,h===a.dquote?this.quoteState="double":h===a.squote?this.quoteState="single":this.quoteState=null;else if(this.tagState===o.AttributeValueState&&!this.quoteState&&f(h))this.tagState=o.AttributeNameState;else if(this.tagState===o.AttributeValueState&&"double"===this.quoteState&&h===a.dquote)this.quoteState=null,this.tagState=o.AttributeNameState;else if(this.tagState===o.AttributeValueState&&"single"===this.quoteState&&h===a.squote)this.quoteState=null,this.tagState=o.AttributeNameState;else if("open"!==this.state||h!==a.gt||this.quoteState)"open"===this.state&&l(this._last,s.comment)?(this.buffers.push(e.slice(i,n+1)),i=n+1,this.state="text",this.raw=s.endComment,this._pushState("open")):"open"===this.state&&l(this._last,s.cdata)&&(this.buffers.push(e.slice(i,n+1)),i=n+1,this.state="text",this.raw=s.endCdata,this._pushState("open"));else if(this.buffers.push(e.slice(i,n+1)),i=n+1,this.state="text",this.tagState=null,this._getChar(1)===a.slash)this._pushState("close");else{var d=this._getTag();"script"===d&&(this.raw=s.endScript),"style"===d&&(this.raw=s.endStyle),"title"===d&&(this.raw=s.endTitle),this._pushState("open")}}else n>0&&n-i>0&&this.buffers.push(e.slice(i,n)),i=n,this.state="open",this.tagState=o.TagNameState,this._pushState("text")}i<e.length&&this.buffers.push(e.slice(i)),r()},h.prototype._flush=function(e){"text"===this.state&&this._pushState("text"),this.push(null),e()},h.prototype._pushState=function(e){if(0!==this.buffers.length){var t=Buffer.concat(this.buffers);this.buffers=[],this.push([e,t])}},h.prototype._getChar=function(e){for(var t=0,r=0;r<this.buffers.length;r++){var n=this.buffers[r];if(t+n.length>e)return n[e-t];t+=n}},h.prototype._getTag=function(){for(var e=0,t="",r=0;r<this.buffers.length;r++){for(var n=this.buffers[r],i=0;i<n.length;i++)if(0!==e||0!==i){var a=String.fromCharCode(n[i]);if(/[^\w-!\[\]]/.test(a))return t.toLowerCase();t+=a}e+=n.length}},h.prototype._testRaw=function(e,t,r){var n=this.raw;if(l(this._last,n)){this.buffers.push(e.slice(t,r+1));var e=Buffer.concat(this.buffers),i=e.length-n.length;return[e.slice(0,i),e.slice(i)]}}},467:(e,t,r)=>{try{var n=r(153);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(6947)}},6947:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2525:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2455:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2098:(e,t,r)=>{var n=r(6550),i=r(6162).PassThrough,a=r(6162).PassThrough,s=r(8417),o=[].slice,h={bubbleErrors:!1,objectMode:!0};e.exports=function(e,t,r){Array.isArray(e)||(e=o.call(arguments),t=null,r=null);var l,u=e[e.length-1];"function"==typeof u&&(r=e.splice(-1)[0],u=e[e.length-1]),"object"==typeof u&&"function"!=typeof u.pipe&&(t=e.splice(-1)[0]);var f=e[0],d=e[e.length-1];if(t=s({},h,t),!f)return r&&process.nextTick(r),new i(t);if(l=f.writable&&d.readable?n(t,f,d):1==e.length?new a(t).wrap(e[0]):f.writable?f:d.readable?d:new i(t),e.forEach(function(t,r){var n=e[r+1];n&&t.pipe(n),t!=l&&t.on("error",l.emit.bind(l,"error"))}),r){var c=!1;function p(e){c||(c=!0,r(e))}l.on("error",p),d.on("finish",function(){p()}),d.on("close",function(){p()})}return l}},8417:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var i={};if("abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,i){for(var a,s,o=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),h=1;h<arguments.length;h++){for(var l in a=Object(arguments[h]))r.call(a,l)&&(o[l]=a[l]);if(t){s=t(a);for(var u=0;u<s.length;u++)n.call(a,s[u])&&(o[s[u]]=a[s[u]])}}return o}:Object.assign},5959:e=>{"use strict";"undefined"!=typeof process&&process.version&&0!==process.version.indexOf("v0.")&&(0!==process.version.indexOf("v1.")||0===process.version.indexOf("v1.8."))?e.exports=process:e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(i=Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return process.nextTick(function(){e.apply(null,i)})}}}},6862:(e,t,r)=>{e.exports=o;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(3877);i.inherits=r(467);var a=r(7179),s=r(5901);function o(e){if(!(this instanceof o))return new o(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(o,a),function(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}(n(s.prototype),function(e){o.prototype[e]||(o.prototype[e]=s.prototype[e])})},4683:(e,t,r)=>{e.exports=a;var n=r(1805),i=r(3877);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=r(467),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},7179:(e,t,r)=>{e.exports=u;var n,i=r(2525),a=r(8893).Buffer;u.ReadableState=l;var s=r(7702).EventEmitter;s.listenerCount||(s.listenerCount=function(e,t){return e.listeners(t).length});var o=r(6162),h=r(3877);function l(e,t){var i=(e=e||{}).highWaterMark;this.highWaterMark=i||0===i?i:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(n||(n=r(1038).s),this.decoder=new n(e.encoding),this.encoding=e.encoding)}function u(e){if(!(this instanceof u))return new u(e);this._readableState=new l(e,this),this.readable=!0,o.call(this)}function f(e,t,r,n,i){var s=(o=r,h=null,a.isBuffer(o)||"string"==typeof o||null==o||t.objectMode||(h=TypeError("Invalid non-string/buffer chunk")),h);if(s)e.emit("error",s);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?c(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0){if(t.ended&&!i){var o,h,l=Error("stream.push() after EOF");e.emit("error",l)}else if(t.endEmitted&&i){var l=Error("stream.unshift() after end event");e.emit("error",l)}else!t.decoder||i||n||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&c(e),t.readingMore||(t.readingMore=!0,process.nextTick(function(){(function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1})(e,t)}))}else i||(t.reading=!1);return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=8388608)e=8388608;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length)?t.ended?t.length:(t.needReadable=!0,0):e}function c(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick(function(){p(e)}):p(e))}function p(e){e.emit("readable")}function g(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes,0,null):m(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount){r.flowing=!1,s.listenerCount(e,"data")>0&&y(e);return}r.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,g(this))}function y(e,t){if(e._readableState.flowing)throw Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=o.prototype.pipe,e.on=e.addListener=o.prototype.on,e.on("readable",function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)}),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?process.nextTick(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var r,n=t.buffer,i=t.length,s=!!t.decoder,o=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(o)r=n.shift();else if(!e||e>=i)r=s?n.join(""):a.concat(n,i),n.length=0;else if(e<n[0].length){var h=n[0];r=h.slice(0,e),n[0]=h.slice(e)}else if(e===n[0].length)r=n.shift();else{r=s?"":new a(e);for(var l=0,u=0,f=n.length;u<f&&l<e;u++){var h=n[0],d=Math.min(e-l,h.length);s?r+=h.slice(0,d):h.copy(r,l,0,d),d<h.length?n[0]=h.slice(d):n.shift(),l+=d}}return r}function w(e){var t=e._readableState;if(t.length>0)throw Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function m(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}h.inherits=r(467),h.inherits(u,o),u.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)===r.encoding||(e=new a(e,t),t=""),f(this,r,e,t,!1)},u.prototype.unshift=function(e){return f(this,this._readableState,e,"",!0)},u.prototype.setEncoding=function(e){n||(n=r(1038).s),this._readableState.decoder=new n(e),this._readableState.encoding=e},u.prototype.read=function(e){var t,r=this._readableState;r.calledRead=!0;var n=e;if(("number"!=typeof e||e>0)&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return c(this),null;if(0===(e=d(e,r))&&r.ended)return t=null,r.length>0&&r.decoder&&(t=v(e,r),r.length-=t.length),0===r.length&&w(this),t;var i=r.needReadable;return r.length-e<=r.highWaterMark&&(i=!0),(r.ended||r.reading)&&(i=!1),i&&(r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1),i&&!r.reading&&(e=d(n,r)),null===(t=e>0?v(e,r):null)&&(r.needReadable=!0,e=0),r.length-=e,0!==r.length||r.ended||(r.needReadable=!0),r.ended&&!r.endEmitted&&0===r.length&&w(this),t},u.prototype._read=function(e){this.emit("error",Error("not implemented"))},u.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1;var a=t&&!1===t.end||e===process.stdout||e===process.stderr?u:h;function o(e){e===r&&u()}function h(){e.end()}n.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",o);var l=function(){var e=r._readableState;e.awaitDrain--,0===e.awaitDrain&&g(r)};function u(){e.removeListener("close",d),e.removeListener("finish",c),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",o),r.removeListener("end",h),r.removeListener("end",u),(!e._writableState||e._writableState.needDrain)&&l()}function f(t){p(),e.removeListener("error",f),0===s.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",c),p()}function c(){e.removeListener("close",d),p()}function p(){r.unpipe(e)}return e.on("drain",l),e._events&&e._events.error?i(e._events.error)?e._events.error.unshift(f):e._events.error=[f,e._events.error]:e.on("error",f),e.once("close",d),e.once("finish",c),e.emit("pipe",r),n.flowing||(this.on("readable",b),n.flowing=!0,process.nextTick(function(){g(r)})),e},u.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",b),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}(t.pipes,e);return -1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},u.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||y(this),"readable"===e&&this.readable){var n=this._readableState;!n.readableListening&&(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&c(this,n):this.read(0))}return r},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){y(this),this.read(0),this.emit("resume")},u.prototype.pause=function(){y(this,!0),this.emit("pause")},u.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!=i)&&(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))}),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return m(["error","close","destroy","pause","resume"],function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){r&&(r=!1,e.resume())},n},u._fromList=v},1805:(e,t,r)=>{e.exports=s;var n=r(6862),i=r(3877);function a(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState=new a(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){o(t,e)}):o(t)})}function o(e,t){if(t)return e.emit("error",t);var r=e._writableState;e._readableState;var n=e._transformState;if(r.length)throw Error("calling transform done when ws.length != 0");if(n.transforming)throw Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(467),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw Error("not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},5901:(e,t,r)=>{e.exports=h;var n=r(8893).Buffer;h.WritableState=o;var i=r(3877);i.inherits=r(467);var a=r(6162);function s(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function o(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)n?process.nextTick(function(){i(t)}):i(t),e._writableState.errorEmitted=!0,e.emit("error",t);else{var a=f(e,r);a||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,a=n.encoding,s=n.callback,o=t.objectMode?1:i.length;if(l(e,t,o,i,a,s),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),n?process.nextTick(function(){u(e,r,a,i)}):u(e,r,a,i)}})(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function h(e){var t=r(6862);if(!(this instanceof h)&&!(this instanceof t))return new h(e);this._writableState=new o(e,this),this.writable=!0,a.call(this)}function l(e,t,r,n,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function u(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),n(),r&&d(e,t)}function f(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function d(e,t){var r=f(e,t);return r&&(t.finished=!0,e.emit("finish")),r}i.inherits(h,a),h.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},h.prototype.write=function(e,t,r){var i,a,o,h,u,f,d,c,p,g,b,y=this._writableState,v=!1;return("function"==typeof t&&(r=t,t=null),n.isBuffer(e)?t="buffer":t||(t=y.defaultEncoding),"function"!=typeof r&&(r=function(){}),y.ended)?(g=r,b=Error("write after end"),this.emit("error",b),process.nextTick(function(){g(b)})):function(e,t,r,i){var a=!0;if(!n.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var s=TypeError("Invalid non-string/buffer chunk");e.emit("error",s),process.nextTick(function(){i(s)}),a=!1}return a}(this,y,e,r)&&(i=this,a=y,o=e,h=t,u=r,f=o,d=h,a.objectMode||!1===a.decodeStrings||"string"!=typeof f||(f=new n(f,d)),o=f,n.isBuffer(o)&&(h="buffer"),c=a.objectMode?1:o.length,a.length+=c,(p=a.length<a.highWaterMark)||(a.needDrain=!0),a.writing?a.buffer.push(new s(o,h,u)):l(i,a,c,o,h,u),v=p),v},h.prototype._write=function(e,t,r){r(Error("not implemented"))},h.prototype.end=function(e,t,r){var n,i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||(n=r,i.ending=!0,d(this,i),n&&(i.finished?process.nextTick(n):this.once("finish",n)),i.ended=!0)}},3959:(e,t,r)=>{var n=r(6162);(t=e.exports=r(7179)).Stream=n,t.Readable=t,t.Writable=r(5901),t.Duplex=r(6862),t.Transform=r(1805),t.PassThrough=r(4683),"disable"===process.env.READABLE_STREAM&&(e.exports=r(6162))},8562:(e,t,r)=>{"use strict";var n=r(5959),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var a=Object.create(r(3877));a.inherits=r(467);var s=r(5505),o=r(9691);a.inherits(f,s);for(var h=i(o.prototype),l=0;l<h.length;l++){var u=h[l];f.prototype[u]||(f.prototype[u]=o.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);s.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(c,this)}function c(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},360:(e,t,r)=>{"use strict";e.exports=a;var n=r(515),i=Object.create(r(3877));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=r(467),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},5505:(e,t,r)=>{"use strict";var n,i,a=r(5959);e.exports=v;var s=r(2455);v.ReadableState=y,r(7702).EventEmitter;var o=function(e,t){return e.listeners(t).length},h=r(4038),l=r(9565).Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=Object.create(r(3877));f.inherits=r(467);var d=r(153),c=void 0;c=d&&d.debuglog?d.debuglog("stream"):function(){};var p=r(6803),g=r(3981);f.inherits(v,h);var b=["error","close","destroy","pause","resume"];function y(e,t){n=n||r(8562),e=e||{};var a=t instanceof n;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var s=e.highWaterMark,o=e.readableHighWaterMark,h=this.objectMode?16:16384;s||0===s?this.highWaterMark=s:a&&(o||0===o)?this.highWaterMark=o:this.highWaterMark=h,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(i||(i=r(3625).s),this.decoder=new i(e.encoding),this.encoding=e.encoding)}function v(e){if(n=n||r(8562),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),h.call(this)}function w(e,t,r,n,i){var a,s,o,h,f,d=e._readableState;return null===t?(d.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,_(e)}}(e,d)):(i||(a=d,s=t,l.isBuffer(s)||s instanceof u||"string"==typeof s||void 0===s||a.objectMode||(o=TypeError("Invalid non-string/buffer chunk")),f=o),f)?e.emit("error",f):d.objectMode||t&&t.length>0?("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===l.prototype||(h=t,t=l.from(h)),n?d.endEmitted?e.emit("error",Error("stream.unshift() after end event")):m(e,d,t,!0):d.ended?e.emit("error",Error("stream.push() after EOF")):(d.reading=!1,d.decoder&&!r?(t=d.decoder.write(t),d.objectMode||0!==t.length?m(e,d,t,!1):x(e,d)):m(e,d,t,!1))):n||(d.reading=!1),!d.ended&&(d.needReadable||d.length<d.highWaterMark||0===d.length)}function m(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&_(e)),x(e,t)}function S(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var r;t.highWaterMark=((r=e)>=8388608?r=8388608:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(k,e):k(e))}function k(e){c("emit readable"),e.emit("readable"),j(e)}function x(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(c("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function M(e){c("readable nexttick read 0"),e.read(0)}function R(e,t){t.reading||(c("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){var r,n,i,a;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(n=t.buffer,i=t.decoder,e<n.head.data.length?(a=n.head.data.slice(0,e),n.head.data=n.head.data.slice(e)):a=e===n.head.data.length?n.shift():i?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?i+=a:i+=a.slice(0,e),0==(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,n):function(e,t){var r=l.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),0==(e-=s)){s===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s));break}++i}return t.length-=i,r}(e,n),r=a),r)}function C(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return i||(i=r(3625).s),this._readableState.decoder=new i(e),this._readableState.encoding=e,this},v.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return c("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?C(this):_(this),null;if(0===(e=S(e,r))&&r.ended)return 0===r.length&&C(this),null;var i=r.needReadable;return c("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&c("length less than watermark",i=!0),r.ended||r.reading?c("reading or ended",i=!1):i&&(c("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=S(n,r))),null===(t=e>0?T(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&C(this)),null!==t&&this.emit("data",t),t},v.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===process.stdout||e===process.stderr?y:h;function h(){c("onend"),e.end()}n.endEmitted?a.nextTick(i):r.once("end",i),e.on("unpipe",function t(i,a){c("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,c("cleanup"),e.removeListener("close",g),e.removeListener("finish",b),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",h),r.removeListener("end",y),r.removeListener("data",d),u=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=function(){var e=r._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(r,"data")&&(e.flowing=!0,j(r))};e.on("drain",l);var u=!1,f=!1;function d(t){c("ondata"),f=!1,!1!==e.write(t)||f||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==L(n.pipes,e))&&!u&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}function p(t){c("onerror",t),y(),e.removeListener("error",p),0===o(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",b),y()}function b(){c("onfinish"),e.removeListener("close",g),y()}function y(){c("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",g),e.once("finish",b),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=L(t.pipes,e);return -1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=h.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&_(this):a.nextTick(M,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!0,e.resumeScheduled||(e.resumeScheduled=!0,a.nextTick(R,this,e))),this},v.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){c("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<b.length;a++)e.on(b[a],this.emit.bind(this,b[a]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=T},515:(e,t,r)=>{"use strict";e.exports=s;var n=r(8562),i=Object.create(r(3877));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){h(e,t,r)}):h(this,null,null)}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(467),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},9691:(e,t,r)=>{"use strict";var n,i,a=r(5959);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=b;var o=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;b.WritableState=g;var h=Object.create(r(3877));h.inherits=r(467);var l={deprecate:r(4173)},u=r(4038),f=r(9565).Buffer,d=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=r(3981);function p(){}function g(e,t){n=n||r(8562),e=e||{};var i=t instanceof n;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var h=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;h||0===h?this.highWaterMark=h:i&&(l||0===l)?this.highWaterMark=l:this.highWaterMark=u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,n?(a.nextTick(i,t),a.nextTick(_,e,r),e._writableState.errorEmitted=!0,e.emit("error",t)):(i(t),e._writableState.errorEmitted=!0,e.emit("error",t),_(e,r));else{var s=m(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?o(v,e,r,s,i):v(e,r,s,i)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function b(e){if(n=n||r(8562),!i.call(b,this)&&!(this instanceof n))return new b(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t,r,n,i,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function v(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,n(),_(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,o=!0;r;)n[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;n.allBuffers=o,y(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,l=r.encoding,u=r.callback,f=t.objectMode?1:h.length;if(y(e,t,!1,f,h,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),_(e,t)})}function _(e,t){var r=m(t);return r&&(t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}h.inherits(b,u),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===b&&e&&e._writableState instanceof g}})):i=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,i,s,o,h,l,u,c,g=this._writableState,b=!1,v=!g.objectMode&&(n=e,f.isBuffer(n)||n instanceof d);return v&&!f.isBuffer(e)&&(i=e,e=f.from(i)),("function"==typeof t&&(r=t,t=null),v?t="buffer":t||(t=g.defaultEncoding),"function"!=typeof r&&(r=p),g.ended)?(s=r,o=Error("write after end"),this.emit("error",o),a.nextTick(s,o)):(v||(h=e,l=r,u=!0,c=!1,null===h?c=TypeError("May not write null values to stream"):"string"==typeof h||void 0===h||g.objectMode||(c=TypeError("Invalid non-string/buffer chunk")),c&&(this.emit("error",c),a.nextTick(l,c),u=!1),u))&&(g.pendingcb++,b=function(e,t,r,n,i,a){if(!r){var s,o,h=(s=n,o=i,t.objectMode||!1===t.decodeStrings||"string"!=typeof s||(s=f.from(s,o)),s);n!==h&&(r=!0,i="buffer",n=h)}var l=t.objectMode?1:n.length;t.length+=l;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,l,n,i,a);return u}(this,g,v,e,t,r)),b},b.prototype.cork=function(){var e=this._writableState;e.corked++},b.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n,i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(n=r,i.ending=!0,_(this,i),n&&(i.finished?a.nextTick(n):this.once("finish",n)),i.ended=!0,this.writable=!1)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=c.destroy,b.prototype._undestroy=c.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}},6803:(e,t,r)=>{"use strict";var n=r(9565).Buffer,i=r(153);e.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)(function(e,t,r){e.copy(t,r)})(r.data,t,i),i+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},3981:(e,t,r)=>{"use strict";var n=r(5959);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},4038:(e,t,r)=>{e.exports=r(6162)},9783:(e,t,r)=>{var n=r(6162);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,(t=e.exports=n.Readable).Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):((t=e.exports=r(5505)).Stream=n||t,t.Readable=t,t.Writable=r(9691),t.Duplex=r(8562),t.Transform=r(515),t.PassThrough=r(360))},9565:(e,t,r)=>{var n=r(8893),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=s),a(i,s),s.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},1038:(e,t,r)=>{var n=r(8893).Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},a=t.s=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=h;break;default:this.write=s;return}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function s(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function h(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}a.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";e=e.slice(r,e.length);var n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1);if(n>=55296&&n<=56319){this.charLength+=this.surrogateSize,t="";continue}if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived);var i=(t+=e.toString(this.encoding,0,i)).length-1,n=t.charCodeAt(i);if(n>=55296&&n<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},3625:(e,t,r)=>{"use strict";var n=r(9565).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=h,this.end=l,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:this.write=d,this.end=c;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4428:(e,t,r)=>{var n=r(6162);function i(e,t,r){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var i=!1,a=!1,s=[],o=!1,h=new n;function l(){for(;s.length&&!h.paused;){var e=s.shift();if(null===e)return h.emit("end");h.emit("data",e)}}return h.readable=h.writable=!0,h.paused=!1,h.autoDestroy=!(r&&!1===r.autoDestroy),h.write=function(t){return e.call(this,t),!h.paused},h.queue=h.push=function(e){return o||(null===e&&(o=!0),s.push(e),l()),h},h.on("end",function(){h.readable=!1,!h.writable&&h.autoDestroy&&process.nextTick(function(){h.destroy()})}),h.end=function(e){if(!i)return i=!0,arguments.length&&h.write(e),h.writable=!1,t.call(h),!h.readable&&h.autoDestroy&&h.destroy(),h},h.destroy=function(){if(!a)return a=!0,i=!0,s.length=0,h.writable=h.readable=!1,h.emit("close"),h},h.pause=function(){if(!h.paused)return h.paused=!0,h},h.resume=function(){return h.paused&&(h.paused=!1,h.emit("resume")),l(),h.paused||h.emit("drain"),h},h}t=e.exports=i,i.through=i}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],pages:{"/":["static/chunks/webpack-b8f8d6679aaa5f42.js","static/chunks/framework-e0f347a11a70369e.js","static/chunks/main-58cc12cfc6868a7a.js","static/chunks/138-c24eca17d1ad2527.js","static/chunks/pages/index-7e306d1513d09a1a.js"],"/_app":["static/chunks/webpack-b8f8d6679aaa5f42.js","static/chunks/framework-e0f347a11a70369e.js","static/chunks/main-58cc12cfc6868a7a.js","static/css/
|
|
1
|
+
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],pages:{"/":["static/chunks/webpack-b8f8d6679aaa5f42.js","static/chunks/framework-e0f347a11a70369e.js","static/chunks/main-58cc12cfc6868a7a.js","static/chunks/138-c24eca17d1ad2527.js","static/chunks/pages/index-7e306d1513d09a1a.js"],"/_app":["static/chunks/webpack-b8f8d6679aaa5f42.js","static/chunks/framework-e0f347a11a70369e.js","static/chunks/main-58cc12cfc6868a7a.js","static/css/e697c978240c2fce.css","static/chunks/pages/_app-0f9241fc03d167e5.js"],"/_error":["static/chunks/webpack-b8f8d6679aaa5f42.js","static/chunks/framework-e0f347a11a70369e.js","static/chunks/main-58cc12cfc6868a7a.js","static/chunks/pages/_error-4ad10ca9d415501b.js"],"/preview/[...relTemplatePath]":["static/chunks/webpack-b8f8d6679aaa5f42.js","static/chunks/framework-e0f347a11a70369e.js","static/chunks/main-58cc12cfc6868a7a.js","static/chunks/138-c24eca17d1ad2527.js","static/chunks/pages/preview/[...relTemplatePath]-54953a42a234e88f.js"],"/test":["static/chunks/webpack-b8f8d6679aaa5f42.js","static/chunks/framework-e0f347a11a70369e.js","static/chunks/main-58cc12cfc6868a7a.js","static/chunks/pages/test-6c9d6a5f356c21ea.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=762,e.ids=[762],e.modules={9659:e=>{e.exports=require("esbuild")},145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},997:e=>{e.exports=require("react/jsx-runtime")},483:e=>{e.exports=require("source-map-js")},4835:e=>{e.exports=require("stacktrace-parser")},6593:e=>{e.exports=import("clsx")},5462:e=>{e.exports=import("puppeteer")},8097:e=>{e.exports=import("tailwind-merge")},8061:e=>{e.exports=require("node:assert")},2761:e=>{e.exports=require("node:async_hooks")},2254:e=>{e.exports=require("node:buffer")},7718:e=>{e.exports=require("node:child_process")},8878:e=>{e.exports=require("node:cluster")},27:e=>{e.exports=require("node:console")},7053:e=>{e.exports=require("node:constants")},6005:e=>{e.exports=require("node:crypto")},1215:e=>{e.exports=require("node:dgram")},5714:e=>{e.exports=require("node:diagnostics_channel")},604:e=>{e.exports=require("node:dns")},4158:e=>{e.exports=require("node:domain")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2725:e=>{e.exports=require("node:http2")},2286:e=>{e.exports=require("node:https")},5690:e=>{e.exports=require("node:inspector")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},8846:e=>{e.exports=require("node:perf_hooks")},7742:e=>{e.exports=require("node:process")},3801:e=>{e.exports=require("node:punycode")},9630:e=>{e.exports=require("node:querystring")},1747:e=>{e.exports=require("node:readline")},3792:e=>{e.exports=require("node:repl")},4492:e=>{e.exports=require("node:stream")},6915:e=>{e.exports=require("node:string_decoder")},2332:e=>{e.exports=require("node:timers")},9397:e=>{e.exports=require("node:timers/promises")},1764:e=>{e.exports=require("node:tls")},5997:e=>{e.exports=require("node:tty")},1041:e=>{e.exports=require("node:url")},7261:e=>{e.exports=require("node:util")},3746:e=>{e.exports=require("node:util/types")},3858:e=>{e.exports=require("node:v8")},6019:e=>{e.exports=require("node:vm")},4086:e=>{e.exports=require("node:worker_threads")},5628:e=>{e.exports=require("node:zlib")},7668:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{config:()=>u,default:()=>d,routeModule:()=>l});var n=t(4994),s=t(8107),i=t(7282),a=t(8620),p=e([a]);a=(p.then?(await p)():p)[0];let d=(0,i.l)(a,"default"),u=(0,i.l)(a,"config"),l=new n.PagesAPIRouteModule({definition:{kind:s.x.PAGES_API,page:"/api/component",pathname:"/api/component",bundlePath:"",filename:""},userland:a});o()}catch(e){o(e)}})},1168:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.d(r,{q:()=>i});var n=t(5462),s=e([n]);n=(s.then?(await s)():s)[0];let a=null;async function i(){return a&&a.connected||(a&&!a.connected?console.log("Browser disconnected, creating a new instance."):console.log("Creating a new browser instance."),a=await n.default.launch({headless:!0,args:["--no-sandbox","--disable-setuid-sandbox"]})),a}o()}catch(e){o(e)}})},3635:(e,r,t)=>{t.d(r,{Z:()=>n});let o=require("pino"),n=t.n(o)()({transport:{target:"pino-pretty"},level:"debug"})},8620:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{default:()=>u});var n=t(997),s=t(8770),i=t(3635),a=t(4154),p=t(6877),d=e([p]);async function u(e,r){let t;let{relativeTemplatePath:o,previewPropGroup:d}=e.query;if(!o||"string"!=typeof o)return r.status(400).json({html:"Missing or invalid relativeTemplatePath parameter"});try{t=(0,p.previewPropNumberFromQuery)(d)}catch(e){return r.status(400).json({error:e.message})}let u=performance.now(),l=await (0,a.getEmailComponent)(`${(0,s.$)()}/${o}`),c=performance.now();if(console.error(`Time taken to execute getEmailComponent: ${(c-u).toFixed(2)} milliseconds`),"error"in l){i.Z.error(l.error);let e=l.error;throw Error(e.message)}let x=l.emailComponent,m=(0,p.getPreviewProps)(x.PreviewSettings?.previewProps,t);r.setHeader("Cache-Control","no-store, max-age=0"),r.setHeader("Content-Type","text/html");try{let e=await l.render(n.jsx(x,{...m}));return r.status(200).send(e)}catch(e){return r.status(500).send(function({templatePath:e,exceptionString:r}){return`
|
|
1
|
+
"use strict";(()=>{var e={};e.id=762,e.ids=[762],e.modules={9659:e=>{e.exports=require("esbuild")},145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},997:e=>{e.exports=require("react/jsx-runtime")},483:e=>{e.exports=require("source-map-js")},4835:e=>{e.exports=require("stacktrace-parser")},6593:e=>{e.exports=import("clsx")},5462:e=>{e.exports=import("puppeteer")},8097:e=>{e.exports=import("tailwind-merge")},8061:e=>{e.exports=require("node:assert")},2761:e=>{e.exports=require("node:async_hooks")},2254:e=>{e.exports=require("node:buffer")},7718:e=>{e.exports=require("node:child_process")},8878:e=>{e.exports=require("node:cluster")},27:e=>{e.exports=require("node:console")},7053:e=>{e.exports=require("node:constants")},6005:e=>{e.exports=require("node:crypto")},1215:e=>{e.exports=require("node:dgram")},5714:e=>{e.exports=require("node:diagnostics_channel")},604:e=>{e.exports=require("node:dns")},4158:e=>{e.exports=require("node:domain")},5673:e=>{e.exports=require("node:events")},7561:e=>{e.exports=require("node:fs")},3977:e=>{e.exports=require("node:fs/promises")},8849:e=>{e.exports=require("node:http")},2725:e=>{e.exports=require("node:http2")},2286:e=>{e.exports=require("node:https")},5690:e=>{e.exports=require("node:inspector")},2033:e=>{e.exports=require("node:module")},7503:e=>{e.exports=require("node:net")},612:e=>{e.exports=require("node:os")},9411:e=>{e.exports=require("node:path")},8846:e=>{e.exports=require("node:perf_hooks")},7742:e=>{e.exports=require("node:process")},3801:e=>{e.exports=require("node:punycode")},9630:e=>{e.exports=require("node:querystring")},1747:e=>{e.exports=require("node:readline")},3792:e=>{e.exports=require("node:repl")},4492:e=>{e.exports=require("node:stream")},6915:e=>{e.exports=require("node:string_decoder")},2332:e=>{e.exports=require("node:timers")},9397:e=>{e.exports=require("node:timers/promises")},1764:e=>{e.exports=require("node:tls")},5997:e=>{e.exports=require("node:tty")},1041:e=>{e.exports=require("node:url")},7261:e=>{e.exports=require("node:util")},3746:e=>{e.exports=require("node:util/types")},3858:e=>{e.exports=require("node:v8")},6019:e=>{e.exports=require("node:vm")},4086:e=>{e.exports=require("node:worker_threads")},5628:e=>{e.exports=require("node:zlib")},7668:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{config:()=>u,default:()=>d,routeModule:()=>l});var n=t(4994),s=t(8107),i=t(7282),a=t(8620),p=e([a]);a=(p.then?(await p)():p)[0];let d=(0,i.l)(a,"default"),u=(0,i.l)(a,"config"),l=new n.PagesAPIRouteModule({definition:{kind:s.x.PAGES_API,page:"/api/component",pathname:"/api/component",bundlePath:"",filename:""},userland:a});o()}catch(e){o(e)}})},1168:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.d(r,{q:()=>i});var n=t(5462),s=e([n]);n=(s.then?(await s)():s)[0];let a=null;async function i(){return a&&a.connected||(a&&!a.connected?console.log("Browser disconnected, creating a new instance."):console.log("Creating a new browser instance."),a=await n.default.launch({headless:!0,args:["--no-sandbox","--disable-setuid-sandbox"]})),a}o()}catch(e){o(e)}})},3635:(e,r,t)=>{t.d(r,{Z:()=>n});let o=require("pino"),n=t.n(o)()({transport:{target:"pino-pretty"},level:"debug"})},8620:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{default:()=>u});var n=t(997),s=t(8770),i=t(3635),a=t(4154),p=t(6877),d=e([p]);async function u(e,r){let t;let{relativeTemplatePath:o,previewPropGroup:d}=e.query;if(!o||"string"!=typeof o)return r.status(400).json({html:"Missing or invalid relativeTemplatePath parameter"});try{t=(0,p.previewPropNumberFromQuery)(d)}catch(e){return r.status(400).json({error:e.message})}let u=performance.now(),l=await (0,a.getEmailComponent)(`${(0,s.$)()}/${o}`),c=performance.now();if(console.error(`Time taken to execute getEmailComponent: ${(c-u).toFixed(2)} milliseconds`),"error"in l){i.Z.error(l.error);let e=l.error;throw Error(e.message)}let x=l.emailComponent,m=(0,p.getPreviewProps)(x.PreviewSettings?.previewProps,t);r.setHeader("Cache-Control","no-store, max-age=0"),r.setHeader("Content-Type","text/html");try{let e=await l.render(n.jsx(x,{...m}));return console.log("generated html component",e),r.status(200).send(e)}catch(e){return r.status(500).send(function({templatePath:e,exceptionString:r}){return`
|
|
2
2
|
<!DOCTYPE html>
|
|
3
3
|
<html>
|
|
4
4
|
<head>
|
|
@@ -39,4 +39,4 @@
|
|
|
39
39
|
</div>
|
|
40
40
|
</body>
|
|
41
41
|
</html>
|
|
42
|
-
`}({templatePath:o,exceptionString:String(e)}))}}p=(d.then?(await d)():d)[0],o()}catch(e){o(e)}})},6877:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{default:()=>u,getPreviewProps:()=>c,previewPropNumberFromQuery:()=>l});var n=t(997),s=t(1168),i=t(8770),a=t(3635),p=t(4154),d=e([s]);s=(d.then?(await d)():d)[0];let l=e=>{if(e){if(Array.isArray(e))throw Error("previewPropChoice must not be an array");let r=parseInt(e,10);if(isNaN(r))throw Error("previewPropChoice must be a valid number or undefined");return r}return 0},c=(e,r)=>{let t;if(Array.isArray(e)){if(e.length<r)throw Error("Invalid preview prop choice");t=e[r]||{}}else t={};return t};async function u(e,r){let t,o;let{relativeTemplatePath:d,previewPropGroup:u}=e.query;if(!d||"string"!=typeof d)return r.status(400).json({html:"Missing or invalid relativeTemplatePath parameter"});try{t=l(u)}catch(e){return r.status(400).json({error:e.message})}try{o=await (0,p.getEmailComponent)(`${(0,i.$)()}/${d}`)}catch(e){return console.log("There was an error in the extractor. This may be an issue with the template"),r.status(400).json({error:e.message})}if("error"in o){let e=o.error;throw a.Z.error(e),Error(e.message)}let x=o.emailComponent,m=x.PreviewSettings?.pdfSettings||{},h=c(x.PreviewSettings?.previewProps,t),g=await o.render(n.jsx(x,{...h})),q=await (0,s.q)(),f=await q.newPage();await f.setContent(g,{waitUntil:"networkidle0"}),await f.emulateMediaType("screen");let w=await f.pdf({format:"a4",printBackground:!0,...m});return r.setHeader("Content-Type","application/pdf"),r.setHeader("Cache-Control","no-store, max-age=0"),r.status(200).send(Buffer.from(w))}o()}catch(e){o(e)}})}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[787],()=>t(7668));module.exports=o})();
|
|
42
|
+
`}({templatePath:o,exceptionString:String(e)}))}}p=(d.then?(await d)():d)[0],o()}catch(e){o(e)}})},6877:(e,r,t)=>{t.a(e,async(e,o)=>{try{t.r(r),t.d(r,{default:()=>u,getPreviewProps:()=>c,previewPropNumberFromQuery:()=>l});var n=t(997),s=t(1168),i=t(8770),a=t(3635),p=t(4154),d=e([s]);s=(d.then?(await d)():d)[0];let l=e=>{if(e){if(Array.isArray(e))throw Error("previewPropChoice must not be an array");let r=parseInt(e,10);if(isNaN(r))throw Error("previewPropChoice must be a valid number or undefined");return r}return 0},c=(e,r)=>{let t;if(Array.isArray(e)){if(e.length<r)throw Error("Invalid preview prop choice");t=e[r]||{}}else t={};return t};async function u(e,r){let t,o;let{relativeTemplatePath:d,previewPropGroup:u}=e.query;if(!d||"string"!=typeof d)return r.status(400).json({html:"Missing or invalid relativeTemplatePath parameter"});try{t=l(u)}catch(e){return r.status(400).json({error:e.message})}try{o=await (0,p.getEmailComponent)(`${(0,i.$)()}/${d}`)}catch(e){return console.log("There was an error in the extractor. This may be an issue with the template"),r.status(400).json({error:e.message})}if("error"in o){let e=o.error;throw a.Z.error(e),Error(e.message)}let x=o.emailComponent,m=x.PreviewSettings?.pdfSettings||{},h=c(x.PreviewSettings?.previewProps,t),g=await o.render(n.jsx(x,{...h}));console.log("generated html pdf",g);let q=await (0,s.q)(),f=await q.newPage();await f.setContent(g,{waitUntil:"networkidle0"}),await f.emulateMediaType("screen");let w=await f.pdf({outline:!0,format:"a4",printBackground:!0,...m});return r.setHeader("Content-Type","application/pdf"),r.setHeader("Cache-Control","no-store, max-age=0"),r.status(200).send(Buffer.from(w))}o()}catch(e){o(e)}})}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[787],()=>t(7668));module.exports=o})();
|