UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 15.1 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register([],(function(e,t){var n,r,a,i,o,s,l,u,h,c,d,m,f,y,M,g;function w(e,t){return e-t*Math.floor(e/t)}function p(e,t,r,a){let i=(t=D(e,t))-1,o=-2;return r<=2?o=0:b(t)&&(o=-1),n-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+o+a)}function b(e){return e%4==0&&(e%100!=0||e%400==0)}function D(e,t){return"BC"===e?1-t:t}function v(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}function I(e,t){return t=O(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function S(e,t){return t=O(t,e.calendar),e=U(e),t=U(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function E(e,t){var n,r,a,i;return null!==(i=null!==(a=null===(n=e.isEqual)||void 0===n?void 0:n.call(e,t))&&void 0!==a?a:null===(r=t.isEqual)||void 0===r?void 0:r.call(t,e))&&void 0!==i?i:e.identifier===t.identifier}function C(e){return J(Date.now(),e)}function T(e){return t=C(e),new m(t.calendar,t.era,t.year,t.month,t.day);var t}function Z(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Y(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}function A(){return null==s&&(s=(new Intl.DateTimeFormat).resolvedOptions().timeZone),s}function U(e){return e.subtract({days:e.day-1})}function B(e){return k(D((e=O(e,new a)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function k(e,t,n,r,a,i,o){let s=new Date;return s.setUTCHours(r,a,i,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function R(e,t){if("UTC"===t)return 0;if(e>0&&t===A())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:a,hour:i,minute:o,second:s}=$(e,t);return k(n,r,a,i,o,s,0)-1e3*Math.floor(e/1e3)}function $(e,t){let n=u.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),u.set(t,n));let r=n.formatToParts(new Date(e)),a={};for(let i of r)"literal"!==i.type&&(a[i.type]=i.value);return{year:"BC"===a.era||"B"===a.era?1-a.year:+a.year,month:+a.month,day:+a.day,hour:"24"===a.hour?0:+a.hour,minute:+a.minute,second:+a.second}}function L(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=$(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,t,n)))}function x(e,t,n="compatible"){let r=N(e);if("UTC"===t)return B(r);if(t===A()&&"compatible"===n){r=O(r,new a);let e=new Date,t=D(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=B(r),o=R(i-h,t),s=R(i+h,t),l=L(r,t,i-o,i-s);if(1===l.length)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-s);case"compatible":case"later":return Math.max(i-o,i-s);case"reject":throw new RangeError("No such absolute time found")}}function F(e,t,n="compatible"){return new Date(x(e,t,n))}function J(e,t){let n=R(e,t),r=new Date(e+n),a=r.getUTCFullYear(),i=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new g(a<1?"BC":"AD",a<1?1-a:a,i,o,t,n,s,l,u,h)}function N(e,t){let n=0,r=0,a=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:a,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:a,millisecond:i}=t),new y(e.calendar,e.era,e.year,e.month,e.day,n,r,a,i)}function O(e,t){if(E(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,V(r),r}function G(e,t,n){return e instanceof g?e.timeZone===t?e:function(e,t){return O(J(B(e)-e.offset,t),e.calendar)}(e,t):J(x(e,t,n),t)}function K(e,t){let n=e.copy(),r="hour"in n?function(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=q(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=q(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=q(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=q(e.hour,24),t}(e)}(n,t):0;H(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,_(n),j(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,_(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,_(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let a=n.calendar.getYearsInEra(n);if(n.year>a){var i,o;let e=null===(i=(o=n.calendar).isInverseEra)||void 0===i?void 0:i.call(o,n);n.year=a,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function H(e,t){var n,r;(null===(n=(r=e.calendar).isInverseEra)||void 0===n?void 0:n.call(r,e))&&(t=-t),e.year+=t}function _(e){for(;e.month<1;)H(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,H(e,1)}function j(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function V(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),j(e)}function W(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function z(e,t){return K(e,W(t))}function P(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),V(n),n}function Q(e,t){let n=e.copy();var r;return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),(r=n).millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23)),n}function q(e,t){let n=e%t;return n<0&&(n+=t),n}function X(e,t,n,r){let a=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw new Error("Invalid era: "+e.era);i=te(i,n,0,t.length-1,null==r?void 0:r.round),a.era=t[i],V(a);break}case"year":var i,o;(null===(i=(o=a.calendar).isInverseEra)||void 0===i?void 0:i.call(o,a))&&(n=-n),a.year=te(e.year,n,-1/0,9999,null==r?void 0:r.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=te(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":a.day=te(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),V(a),a}function ee(e,t,n,r){let a=e.copy();switch(t){case"hour":{let t=e.hour,i=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let e=t>=12;i=e?12:0,o=e?23:11}a.hour=te(t,n,i,o,null==r?void 0:r.round);break}case"minute":a.minute=te(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":a.second=te(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":a.millisecond=te(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return a}function te(e,t,n,r,a=!1){if(a){(e+=Math.sign(t))<n&&(e=r);let a=Math.abs(t);(e=t>0?Math.ceil(e/a)*a:Math.floor(e/a)*a)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function ne(e,t){let n;return n=null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?x(K(N(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):B(e)-e.offset,n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),O(J(n,e.timeZone),e.calendar)}function re(e){let t,n=O(e,new a);return t="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${t}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function ae(e){return`${re(e)}T${t=e,`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}`;var t}function ie(e){return`${ae(e)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function oe(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function se(e){let t,n="object"==typeof e[0]?e.shift():new a;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}return e({S:w,_:v,a:O,b:D,c:function(e,t){return E(e.calendar,t.calendar)&&S(e,t)},d:S,f:function(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})},g:I,h:T,i:N,l:function(e,t){return I(e,T(t))},m:A,o:function(e,t,n){let r=e.calendar.toJulianDay(e),a=n?o[n]:function(e){let t=function(e){if(Intl.Locale){let t=l.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&l.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);return t&&i[t]||0}(t),s=Math.ceil(r+1-a)%7;return s<0&&(s+=7),s},p:U,s:C,u:function(e,t){return E(e.calendar,t.calendar)&&I(e,t)},v:b,x:p}),{setters:[],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(D=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[D]="73225588-22d2-4fb9-ac33-1ef9bfcbe887",t._sentryDebugIdIdentifier="sentry-dbid-73225588-22d2-4fb9-ac33-1ef9bfcbe887")}catch(t){}var t,D;n=1721426,r={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},e("y",a=class{fromJulianDay(e){let t=e,r=t-n,a=Math.floor(r/146097),i=w(r,146097),o=Math.floor(i/36524),s=w(i,36524),l=Math.floor(s/1461),u=w(s,1461),h=Math.floor(u/365),[c,d]=v(400*a+100*o+4*l+h+(4!==o&&4!==h?1:0)),f=t-p(c,d,1,1),y=2;t<p(c,d,3,1)?y=0:b(d)&&(y=1);let M=Math.floor((12*(f+y)+373)/367);return new m(c,d,M,t-p(c,d,M,1)+1)}toJulianDay(e){return p(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return r[b(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return b(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}),i={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1},o={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},s=null,l=new Map,u=new Map,h=864e5,c=36e5,["hours","minutes","seconds"],d=new WeakMap,e("t",m=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return K(this,e)}subtract(e){return z(this,e)}set(e){return P(this,e)}cycle(e,t,n){return X(this,e,t,n)}toDate(e){return F(this,e)}toString(){return re(this)}compare(e){return Z(this,e)}constructor(...e){oe(this,d,{writable:!0,value:void 0});let[t,n,r,a,i]=se(e);this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=i,V(this)}}),f=new WeakMap,e("n",y=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return K(this,e)}subtract(e){return z(this,e)}set(e){return P(Q(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return X(this,e,t,n);default:return ee(this,e,t,n)}}toDate(e,t){return F(this,e,t)}toString(){return ae(this)}compare(e){let t=Z(this,e);return 0===t?function(e,t){return Y(e)-Y(t)}(this,N(e)):t}constructor(...e){oe(this,f,{writable:!0,value:void 0});let[t,n,r,a,i]=se(e);this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,V(this)}}),M=new WeakMap,e("r",g=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return ne(this,e)}subtract(e){return function(e,t){return ne(e,W(t))}(this,e)}set(e,t){return function(e,t,n){let r=N(e),a=Q(P(r,t),t);return 0===a.compare(r)?e:O(J(x(a,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,i=23;if(12===(null==r?void 0:r.hourCycle)){let n=e.hour>=12;t=n?12:0,i=n?23:11}let o=N(e),s=O(Q(o,{hour:t}),new a),l=[x(s,e.timeZone,"earlier"),x(s,e.timeZone,"later")].filter((t=>J(t,e.timeZone).day===s.day))[0],u=O(Q(o,{hour:i}),new a),h=[x(u,e.timeZone,"earlier"),x(u,e.timeZone,"later")].filter((t=>J(t,e.timeZone).day===u.day)).pop(),d=B(e)-e.offset,m=Math.floor(d/c),f=d%c;return d=te(m,n,Math.floor(l/c),Math.floor(h/c),null==r?void 0:r.round)*c+f,O(J(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ee(e,t,n,r);case"era":case"year":case"month":case"day":return O(J(x(X(N(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=B(e)-e.offset;return new Date(t)}(this)}toString(){return ie(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-G(e,this.timeZone).toDate().getTime()}constructor(...e){oe(this,M,{writable:!0,value:void 0});let[t,n,r,a,i]=se(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=a,this.day=i,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,V(this)}})}}})); //# sourceMappingURL=CalendarDate-legacy-BdYpbLuZ.js.map