@emailmaker/emailmaker 1.0.38 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 8027.822d330c.js.LICENSE.txt */
2
+ (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8027],{78347:function(e,t){var n,r,o;!function(i){"use strict";var s=i.setTimeout,a=i.clearTimeout,c=i.XMLHttpRequest,u=i.XDomainRequest,d=i.ActiveXObject,f=i.EventSource,h=i.document,l=i.Promise,p=i.fetch,v=i.Response,y=i.TextDecoder,g=i.TextEncoder,m=i.AbortController;if("undefined"===typeof window||"undefined"===typeof h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(e){h.readyState="complete"}),!1)),null==c&&null!=d&&(c=function(){return new d("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),void 0==m){var w=p;p=function(e,t){var n=t.signal;return w(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},m=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,o="",i=this.bitsNeeded,s=this.codePoint,a=0;a<e.length;a+=1){var c=e[a];0!==i&&(c<128||c>191||!t(s<<6|63&c,i-6,n(i,s)))&&(i=0,s=r,o+=String.fromCharCode(s)),0===i?(c>=0&&c<=127?(i=0,s=c):c>=192&&c<=223?(i=6,s=31&c):c>=224&&c<=239?(i=12,s=15&c):c>=240&&c<=247?(i=18,s=7&c):(i=0,s=r),0===i||t(s,i,n(i,s))||(i=0,s=r)):(i-=6,s=s<<6|63&c),0===i&&(s<=65535?o+=String.fromCharCode(s):(o+=String.fromCharCode(55296+(s-65535-1>>10)),o+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=s,o};void 0!=y&&void 0!=g&&function(){try{return"test"===(new y).decode((new g).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(y=b);var _=function(){};function E(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=_}function C(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function T(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),s=o.join(": ");t[C(i)]=s}this._map=t}function x(){}function L(e){this._headers=e}function S(){}function O(){this._listeners=Object.create(null)}function A(e){s((function(){throw e}),0)}function R(e){this.type=e,this.target=void 0}function j(e,t){R.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){R.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){R.call(this,e),this.error=t.error}E.prototype.open=function(e,t){this._abort(!0);var n=this,r=this._xhr,o=1,i=0;this._abort=function(e){0!==n._sendTimeout&&(a(n._sendTimeout),n._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,r.onload=_,r.onerror=_,r.onabort=_,r.onprogress=_,r.onreadystatechange=_,r.abort(),0!==i&&(a(i),i=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),o=0};var u=function(){if(1===o){var e=0,t="",i=void 0;if("contentType"in r)e=200,t="OK",i=r.contentType;else try{e=r.status,t=r.statusText,i=r.getResponseHeader("Content-Type")}catch(s){e=0,t="",i=void 0}0!==e&&(o=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=i,n.onreadystatechange())}},d=function(){if(u(),2===o||3===o){o=3;var e="";try{e=r.responseText}catch(t){}n.readyState=3,n.responseText=e,n.onprogress()}},f=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:_}),d(),1===o||2===o||3===o){if(o=4,0!==i&&(a(i),i=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},h=function(){i=s((function(){h()}),500),3===r.readyState&&d()};"onload"in r&&(r.onload=function(e){f("load",e)}),"onerror"in r&&(r.onerror=function(e){f("error",e)}),"onabort"in r&&(r.onabort=function(e){f("abort",e)}),"onprogress"in r&&(r.onprogress=d),"onreadystatechange"in r&&(r.onreadystatechange=function(e){!function(e){void 0!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||f(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||d():2===r.readyState&&u())}(e)}),!("contentType"in r)&&"ontimeout"in c.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(e,t,!0),"readyState"in r&&(i=s((function(){h()}),0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(e){return this._contentType},E.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},E.prototype.getAllResponseHeaders=function(){return void 0!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},E.prototype.send=function(){if("ontimeout"in c.prototype&&("sendAsBinary"in c.prototype||"mozAnon"in c.prototype)||void 0==h||void 0==h.readyState||"complete"===h.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(n){throw n}}else{var t=this;t._sendTimeout=s((function(){t._sendTimeout=0,t.send()}),4)}},T.prototype.get=function(e){return this._map[C(e)]},null!=c&&null==c.HEADERS_RECEIVED&&(c.HEADERS_RECEIVED=2),x.prototype.open=function(e,t,n,r,o,i,s){e.open("GET",o);var a=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(a);a+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===c.HEADERS_RECEIVED){var n=e.status,r=e.statusText,o=e.getResponseHeader("Content-Type"),i=e.getAllResponseHeaders();t(n,r,o,new T(i))}},e.withCredentials=i,s)Object.prototype.hasOwnProperty.call(s,u)&&e.setRequestHeader(u,s[u]);return e.send(),e},L.prototype.get=function(e){return this._headers.get(e)},S.prototype.open=function(e,t,n,r,o,i,s){var a=null,c=new m,u=c.signal,d=new y;return p(o,{headers:s,credentials:i?"include":"same-origin",signal:u,cache:"no-store"}).then((function(e){return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new L(e.headers)),new l((function(e,t){var r=function(){a.read().then((function(t){if(t.done)e(void 0);else{var o=d.decode(t.value,{stream:!0});n(o),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=a&&a.cancel(),c.abort()}}},O.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(void 0!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"===typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(i){A(i)}}},O.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];void 0==r&&(r=[],n[e]=r);for(var o=!1,i=0;i<r.length;i+=1)r[i]===t&&(o=!0);o||r.push(t)},O.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(void 0!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==t&&o.push(r[i]);0===o.length?delete n[e]:n[e]=o}},j.prototype=Object.create(R.prototype),N.prototype=Object.create(R.prototype),D.prototype=Object.create(R.prototype);var P=-1,H=0,I=1,M=2,k=-1,q=0,F=1,U=2,X=3,G=/^text\/event\-stream(;.*)?$/i,K=function(e,t){var n=null==e?t:parseInt(e,10);return n!==n&&(n=t),V(n)},V=function(e){return Math.min(Math.max(e,1e3),18e6)},B=function(e,t,n){try{"function"===typeof t&&t.call(e,n)}catch(r){A(r)}};function z(e,t){O.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,n){t=String(t);var r=Boolean(n.withCredentials),o=n.lastEventIdQueryParameterName||"lastEventId",i=V(1e3),d=K(n.heartbeatTimeout,45e3),f="",h=i,l=!1,p=0,v=n.headers||{},y=n.Transport,g=Q&&void 0==y?void 0:new E(void 0!=y?new y:void 0!=c&&"withCredentials"in c.prototype||void 0==u?new c:new u),m=null!=y&&"string"!==typeof y?new y:void 0==g?new S:new x,w=void 0,b=0,_=P,C="",T="",L="",O="",A=q,R=0,z=0,W=function(t,n,r,o){if(_===H)if(200===t&&void 0!=r&&G.test(r)){_=I,l=Date.now(),h=i,e.readyState=I;var s=new N("open",{status:t,statusText:n,headers:o});e.dispatchEvent(s),B(e,e.onopen,s)}else{var a="";200!==t?(n&&(n=n.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(void 0==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",J();s=new N("error",{status:t,statusText:n,headers:o});e.dispatchEvent(s),B(e,e.onerror,s),console.error(a)}},Z=function(t){if(_===I){for(var n=-1,r=0;r<t.length;r+=1){(u=t.charCodeAt(r))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(n=r)}var o=(-1!==n?O:"")+t.slice(0,n+1);O=(-1===n?O:"")+t.slice(n+1),""!==t&&(l=Date.now(),p+=t.length);for(var c=0;c<o.length;c+=1){var u=o.charCodeAt(c);if(A===k&&u==="\n".charCodeAt(0))A=q;else if(A===k&&(A=q),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(A!==q){A===F&&(z=c+1);var v=o.slice(R,z-1),y=o.slice(z+(z<c&&o.charCodeAt(z)===" ".charCodeAt(0)?1:0),c);"data"===v?(C+="\n",C+=y):"id"===v?T=y:"event"===v?L=y:"retry"===v?(i=K(y,i),h=i):"heartbeatTimeout"===v&&(d=K(y,d),0!==b&&(a(b),b=s((function(){Y()}),d)))}if(A===q){if(""!==C){f=T,""===L&&(L="message");var g=new j(L,{data:C.slice(1),lastEventId:T});if(e.dispatchEvent(g),"open"===L?B(e,e.onopen,g):"message"===L?B(e,e.onmessage,g):"error"===L&&B(e,e.onerror,g),_===M)return}C="",L=""}A=u==="\r".charCodeAt(0)?k:q}else A===q&&(R=c,A=F),A===F?u===":".charCodeAt(0)&&(z=c+1,A=U):A===U&&(A=X)}}},$=function(t){if(_===I||_===H){_=P,0!==b&&(a(b),b=0),b=s((function(){Y()}),h),h=V(Math.min(16*i,2*h)),e.readyState=H;var n=new D("error",{error:t});e.dispatchEvent(n),B(e,e.onerror,n),void 0!=t&&console.error(t)}},J=function(){_=M,void 0!=w&&(w.abort(),w=void 0),0!==b&&(a(b),b=0),e.readyState=M},Y=function(){if(b=0,_===P){l=!1,p=0,b=s((function(){Y()}),d),_=H,C="",L="",T=f,O="",R=0,z=0,A=q;var n=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==f){var r=t.indexOf("?");n=-1===r?t:t.slice(0,r+1)+t.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===o?"":e})),n+=(-1===t.indexOf("?")?"?":"&")+o+"="+encodeURIComponent(f)}var i=e.withCredentials,a={Accept:"text/event-stream"},c=e.headers;if(void 0!=c)for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(a[u]=c[u]);try{w=m.open(g,W,Z,$,n,i,a)}catch(v){throw J(),v}}else if(l||void 0==w){var h=Math.max((l||Date.now())+d-Date.now(),1);l=!1,b=s((function(){Y()}),h)}else $(new Error("No activity within "+d+" milliseconds. "+(_===H?"No response received.":p+" chars received.")+" Reconnecting.")),void 0!=w&&(w.abort(),w=void 0)};e.url=t,e.readyState=H,e.withCredentials=r,e.headers=v,e._close=J,Y()}(this,e,t)}var Q=void 0!=p&&void 0!=v&&"body"in v.prototype;z.prototype=Object.create(O.prototype),z.prototype.CONNECTING=H,z.prototype.OPEN=I,z.prototype.CLOSED=M,z.prototype.close=function(){this._close()},z.CONNECTING=H,z.OPEN=I,z.CLOSED=M,z.prototype.withCredentials=void 0;var W=f;void 0==c||void 0!=f&&"withCredentials"in f.prototype||(W=z),function(i){if("object"===typeof e.exports){var s=i(t);void 0!==s&&(e.exports=s)}else r=[t],void 0===(o="function"===typeof(n=i)?n.apply(t,r):n)||(e.exports=o)}((function(e){e.EventSourcePolyfill=z,e.NativeEventSource=f,e.EventSource=W}))}("undefined"===typeof globalThis?"undefined"!==typeof window?window:"undefined"!==typeof self?self:this:globalThis)},43001:e=>{"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,s,u;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"===typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=s.length,u=d,console&&console.warn&&console.warn(u)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function l(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var u=c.length,d=p(c,u);for(n=0;n<u;++n)r(d[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},i.prototype.listenerCount=l,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}}]);
@@ -0,0 +1,5 @@
1
+ /** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */