3 lines
71 KiB
JavaScript
3 lines
71 KiB
JavaScript
var Xn=Object.defineProperty;var jn=(r,n,e)=>n in r?Xn(r,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[n]=e;var u=(r,n,e)=>jn(r,typeof n!="symbol"?n+"":n,e);const Vt=Symbol.for("constructDateFrom");function b(r,n){return typeof r=="function"?r(n):r&&typeof r=="object"&&Vt in r?r[Vt](n):r instanceof Date?new r.constructor(n):new Date(n)}function f(r,n){return b(n||r,r)}function Xe(r,n,e){const t=f(r,e?.in);return isNaN(n)?b(e?.in||r,NaN):(n&&t.setDate(t.getDate()+n),t)}function Dt(r,n,e){const t=f(r,e?.in);if(isNaN(n))return b(r,NaN);if(!n)return t;const a=t.getDate(),s=b(r,t.getTime());s.setMonth(t.getMonth()+n+1,0);const i=s.getDate();return a>=i?s:(t.setFullYear(s.getFullYear(),s.getMonth(),a),t)}function mn(r,n,e){return b(r,+f(r)+n)}function Io(r,n,e){return mn(r,n*36e5)}let $n={};function ue(){return $n}function ae(r,n){const e=ue(),t=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,a=f(r,n?.in),s=a.getDay(),i=(s<t?7:0)+s-t;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function be(r,n){return ae(r,{...n,weekStartsOn:1})}function hn(r,n){const e=f(r,n?.in),t=e.getFullYear(),a=b(e,0);a.setFullYear(t+1,0,4),a.setHours(0,0,0,0);const s=be(a),i=b(e,0);i.setFullYear(t,0,4),i.setHours(0,0,0,0);const m=be(i);return e.getTime()>=s.getTime()?t+1:e.getTime()>=m.getTime()?t:t-1}function Be(r){const n=f(r),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+r-+e}function te(r,...n){const e=b.bind(null,n.find(t=>typeof t=="object"));return n.map(e)}function ze(r,n){const e=f(r,n?.in);return e.setHours(0,0,0,0),e}function pn(r,n,e){const[t,a]=te(e?.in,r,n),s=ze(t),i=ze(a),m=+s-Be(s),g=+i-Be(i);return Math.round((m-g)/864e5)}function Vn(r,n){const e=hn(r,n),t=b(r,0);return t.setFullYear(e,0,4),t.setHours(0,0,0,0),be(t)}function Ro(r,n,e){const t=f(r,e?.in);return t.setTime(t.getTime()+n*6e4),t}function Zn(r,n,e){return Dt(r,n*3,e)}function Lo(r,n,e){return mn(r,n*1e3)}function Kn(r,n,e){return Xe(r,n*7,e)}function Jn(r,n,e){return Dt(r,n*12,e)}function Co(r,n){let e,t=n?.in;return r.forEach(a=>{!t&&typeof a=="object"&&(t=b.bind(null,a));const s=f(a,t);(!e||e<s||isNaN(+s))&&(e=s)}),b(t,e||NaN)}function vo(r,n){let e,t=n?.in;return r.forEach(a=>{!t&&typeof a=="object"&&(t=b.bind(null,a));const s=f(a,t);(!e||e>s||isNaN(+s))&&(e=s)}),b(t,e||NaN)}function So(r,n,e){const[t,a]=te(e?.in,r,n);return+ze(t)==+ze(a)}function er(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function tr(r){return!(!er(r)&&typeof r!="number"||isNaN(+f(r)))}function Yo(r,n,e){const[t,a]=te(e?.in,r,n),s=t.getFullYear()-a.getFullYear(),i=t.getMonth()-a.getMonth();return s*12+i}function Zt(r,n){const e=f(r,n?.in);return Math.trunc(e.getMonth()/3)+1}function Fo(r,n,e){const[t,a]=te(e?.in,r,n),s=t.getFullYear()-a.getFullYear(),i=Zt(t)-Zt(a);return s*4+i}function Ho(r,n,e){const[t,a]=te(e?.in,r,n);return t.getFullYear()-a.getFullYear()}function Wo(r,n,e){const[t,a]=te(e?.in,r,n),s=Kt(t,a),i=Math.abs(pn(t,a));t.setDate(t.getDate()-s*i);const m=+(Kt(t,a)===-s),g=s*(i-m);return g===0?0:g}function Kt(r,n){const e=r.getFullYear()-n.getFullYear()||r.getMonth()-n.getMonth()||r.getDate()-n.getDate()||r.getHours()-n.getHours()||r.getMinutes()-n.getMinutes()||r.getSeconds()-n.getSeconds()||r.getMilliseconds()-n.getMilliseconds();return e<0?-1:e>0?1:e}function Uo(r,n){const e=f(r,n?.in);return e.setHours(23,59,59,999),e}function qo(r,n){const e=f(r,n?.in),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e}function Jt(r,n){const e=f(r,n?.in),t=e.getMonth(),a=t-t%3;return e.setMonth(a,1),e.setHours(0,0,0,0),e}function Go(r,n){const e=f(r,n?.in);return e.setDate(1),e.setHours(0,0,0,0),e}function Bo(r,n){const e=f(r,n?.in),t=e.getFullYear();return e.setFullYear(t+1,0,0),e.setHours(23,59,59,999),e}function nr(r,n){const e=f(r,n?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function zo(r,n){const e=ue(),t=e.weekStartsOn??e.locale?.options?.weekStartsOn??0,a=f(r,n?.in),s=a.getDay(),i=(s<t?-7:0)+6-(s-t);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}const rr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ar=(r,n,e)=>{let t;const a=rr[r];return typeof a=="string"?t=a:n===1?t=a.one:t=a.other.replace("{{count}}",n.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+t:t+" ago":t};function ut(r){return(n={})=>{const e=n.width?String(n.width):r.defaultWidth;return r.formats[e]||r.formats[r.defaultWidth]}}const or={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sr={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ir={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cr={date:ut({formats:or,defaultWidth:"full"}),time:ut({formats:sr,defaultWidth:"full"}),dateTime:ut({formats:ir,defaultWidth:"full"})},ur={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lr=(r,n,e,t)=>ur[r];function xe(r){return(n,e)=>{const t=e?.context?String(e.context):"standalone";let a;if(t==="formatting"&&r.formattingValues){const i=r.defaultFormattingWidth||r.defaultWidth,m=e?.width?String(e.width):i;a=r.formattingValues[m]||r.formattingValues[i]}else{const i=r.defaultWidth,m=e?.width?String(e.width):r.defaultWidth;a=r.values[m]||r.values[i]}const s=r.argumentCallback?r.argumentCallback(n):n;return a[s]}}const fr={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},dr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mr={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hr={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},pr={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},gr={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wr=(r,n)=>{const e=Number(r),t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},yr={ordinalNumber:wr,era:xe({values:fr,defaultWidth:"wide"}),quarter:xe({values:dr,defaultWidth:"wide",argumentCallback:r=>r-1}),month:xe({values:mr,defaultWidth:"wide"}),day:xe({values:hr,defaultWidth:"wide"}),dayPeriod:xe({values:pr,defaultWidth:"wide",formattingValues:gr,defaultFormattingWidth:"wide"})};function Me(r){return(n,e={})=>{const t=e.width,a=t&&r.matchPatterns[t]||r.matchPatterns[r.defaultMatchWidth],s=n.match(a);if(!s)return null;const i=s[0],m=t&&r.parsePatterns[t]||r.parsePatterns[r.defaultParseWidth],g=Array.isArray(m)?br(m,M=>M.test(i)):Tr(m,M=>M.test(i));let p;p=r.valueCallback?r.valueCallback(g):g,p=e.valueCallback?e.valueCallback(p):p;const _=n.slice(i.length);return{value:p,rest:_}}}function Tr(r,n){for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&n(r[e]))return e}function br(r,n){for(let e=0;e<r.length;e++)if(n(r[e]))return e}function _r(r){return(n,e={})=>{const t=n.match(r.matchPattern);if(!t)return null;const a=t[0],s=n.match(r.parsePattern);if(!s)return null;let i=r.valueCallback?r.valueCallback(s[0]):s[0];i=e.valueCallback?e.valueCallback(i):i;const m=n.slice(a.length);return{value:i,rest:m}}}const Dr=/^(\d+)(th|st|nd|rd)?/i,Er=/\d+/i,xr={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Mr={any:[/^b/i,/^(a|c)/i]},Or={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ar={any:[/1/i,/2/i,/3/i,/4/i]},Pr={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kr={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nr={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ir={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Rr={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lr={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cr={ordinalNumber:_r({matchPattern:Dr,parsePattern:Er,valueCallback:r=>parseInt(r,10)}),era:Me({matchPatterns:xr,defaultMatchWidth:"wide",parsePatterns:Mr,defaultParseWidth:"any"}),quarter:Me({matchPatterns:Or,defaultMatchWidth:"wide",parsePatterns:Ar,defaultParseWidth:"any",valueCallback:r=>r+1}),month:Me({matchPatterns:Pr,defaultMatchWidth:"wide",parsePatterns:kr,defaultParseWidth:"any"}),day:Me({matchPatterns:Nr,defaultMatchWidth:"wide",parsePatterns:Ir,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:Rr,defaultMatchWidth:"any",parsePatterns:Lr,defaultParseWidth:"any"})},gn={code:"en-US",formatDistance:ar,formatLong:cr,formatRelative:lr,localize:yr,match:Cr,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vr(r,n){const e=f(r,n?.in);return pn(e,nr(e))+1}function wn(r,n){const e=f(r,n?.in),t=+be(e)-+Vn(e);return Math.round(t/6048e5)+1}function Et(r,n){const e=f(r,n?.in),t=e.getFullYear(),a=ue(),s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=b(n?.in||r,0);i.setFullYear(t+1,0,s),i.setHours(0,0,0,0);const m=ae(i,n),g=b(n?.in||r,0);g.setFullYear(t,0,s),g.setHours(0,0,0,0);const p=ae(g,n);return+e>=+m?t+1:+e>=+p?t:t-1}function Sr(r,n){const e=ue(),t=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,a=Et(r,n),s=b(n?.in||r,0);return s.setFullYear(a,0,t),s.setHours(0,0,0,0),ae(s,n)}function yn(r,n){const e=f(r,n?.in),t=+ae(e,n)-+Sr(e,n);return Math.round(t/6048e5)+1}function T(r,n){const e=r<0?"-":"",t=Math.abs(r).toString().padStart(n,"0");return e+t}const re={y(r,n){const e=r.getFullYear(),t=e>0?e:1-e;return T(n==="yy"?t%100:t,n.length)},M(r,n){const e=r.getMonth();return n==="M"?String(e+1):T(e+1,2)},d(r,n){return T(r.getDate(),n.length)},a(r,n){const e=r.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(r,n){return T(r.getHours()%12||12,n.length)},H(r,n){return T(r.getHours(),n.length)},m(r,n){return T(r.getMinutes(),n.length)},s(r,n){return T(r.getSeconds(),n.length)},S(r,n){const e=n.length,t=r.getMilliseconds(),a=Math.trunc(t*Math.pow(10,e-3));return T(a,n.length)}},Te={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},en={G:function(r,n,e){const t=r.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(t,{width:"abbreviated"});case"GGGGG":return e.era(t,{width:"narrow"});case"GGGG":default:return e.era(t,{width:"wide"})}},y:function(r,n,e){if(n==="yo"){const t=r.getFullYear(),a=t>0?t:1-t;return e.ordinalNumber(a,{unit:"year"})}return re.y(r,n)},Y:function(r,n,e,t){const a=Et(r,t),s=a>0?a:1-a;if(n==="YY"){const i=s%100;return T(i,2)}return n==="Yo"?e.ordinalNumber(s,{unit:"year"}):T(s,n.length)},R:function(r,n){const e=hn(r);return T(e,n.length)},u:function(r,n){const e=r.getFullYear();return T(e,n.length)},Q:function(r,n,e){const t=Math.ceil((r.getMonth()+1)/3);switch(n){case"Q":return String(t);case"QQ":return T(t,2);case"Qo":return e.ordinalNumber(t,{unit:"quarter"});case"QQQ":return e.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(t,{width:"wide",context:"formatting"})}},q:function(r,n,e){const t=Math.ceil((r.getMonth()+1)/3);switch(n){case"q":return String(t);case"qq":return T(t,2);case"qo":return e.ordinalNumber(t,{unit:"quarter"});case"qqq":return e.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(t,{width:"wide",context:"standalone"})}},M:function(r,n,e){const t=r.getMonth();switch(n){case"M":case"MM":return re.M(r,n);case"Mo":return e.ordinalNumber(t+1,{unit:"month"});case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})}},L:function(r,n,e){const t=r.getMonth();switch(n){case"L":return String(t+1);case"LL":return T(t+1,2);case"Lo":return e.ordinalNumber(t+1,{unit:"month"});case"LLL":return e.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(t,{width:"wide",context:"standalone"})}},w:function(r,n,e,t){const a=yn(r,t);return n==="wo"?e.ordinalNumber(a,{unit:"week"}):T(a,n.length)},I:function(r,n,e){const t=wn(r);return n==="Io"?e.ordinalNumber(t,{unit:"week"}):T(t,n.length)},d:function(r,n,e){return n==="do"?e.ordinalNumber(r.getDate(),{unit:"date"}):re.d(r,n)},D:function(r,n,e){const t=vr(r);return n==="Do"?e.ordinalNumber(t,{unit:"dayOfYear"}):T(t,n.length)},E:function(r,n,e){const t=r.getDay();switch(n){case"E":case"EE":case"EEE":return e.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(t,{width:"short",context:"formatting"});case"EEEE":default:return e.day(t,{width:"wide",context:"formatting"})}},e:function(r,n,e,t){const a=r.getDay(),s=(a-t.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return T(s,2);case"eo":return e.ordinalNumber(s,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(r,n,e,t){const a=r.getDay(),s=(a-t.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return T(s,n.length);case"co":return e.ordinalNumber(s,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(r,n,e){const t=r.getDay(),a=t===0?7:t;switch(n){case"i":return String(a);case"ii":return T(a,n.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(t,{width:"short",context:"formatting"});case"iiii":default:return e.day(t,{width:"wide",context:"formatting"})}},a:function(r,n,e){const a=r.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,n,e){const t=r.getHours();let a;switch(t===12?a=Te.noon:t===0?a=Te.midnight:a=t/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,n,e){const t=r.getHours();let a;switch(t>=17?a=Te.evening:t>=12?a=Te.afternoon:t>=4?a=Te.morning:a=Te.night,n){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,n,e){if(n==="ho"){let t=r.getHours()%12;return t===0&&(t=12),e.ordinalNumber(t,{unit:"hour"})}return re.h(r,n)},H:function(r,n,e){return n==="Ho"?e.ordinalNumber(r.getHours(),{unit:"hour"}):re.H(r,n)},K:function(r,n,e){const t=r.getHours()%12;return n==="Ko"?e.ordinalNumber(t,{unit:"hour"}):T(t,n.length)},k:function(r,n,e){let t=r.getHours();return t===0&&(t=24),n==="ko"?e.ordinalNumber(t,{unit:"hour"}):T(t,n.length)},m:function(r,n,e){return n==="mo"?e.ordinalNumber(r.getMinutes(),{unit:"minute"}):re.m(r,n)},s:function(r,n,e){return n==="so"?e.ordinalNumber(r.getSeconds(),{unit:"second"}):re.s(r,n)},S:function(r,n){return re.S(r,n)},X:function(r,n,e){const t=r.getTimezoneOffset();if(t===0)return"Z";switch(n){case"X":return nn(t);case"XXXX":case"XX":return ce(t);case"XXXXX":case"XXX":default:return ce(t,":")}},x:function(r,n,e){const t=r.getTimezoneOffset();switch(n){case"x":return nn(t);case"xxxx":case"xx":return ce(t);case"xxxxx":case"xxx":default:return ce(t,":")}},O:function(r,n,e){const t=r.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+tn(t,":");case"OOOO":default:return"GMT"+ce(t,":")}},z:function(r,n,e){const t=r.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+tn(t,":");case"zzzz":default:return"GMT"+ce(t,":")}},t:function(r,n,e){const t=Math.trunc(+r/1e3);return T(t,n.length)},T:function(r,n,e){return T(+r,n.length)}};function tn(r,n=""){const e=r>0?"-":"+",t=Math.abs(r),a=Math.trunc(t/60),s=t%60;return s===0?e+String(a):e+String(a)+n+T(s,2)}function nn(r,n){return r%60===0?(r>0?"-":"+")+T(Math.abs(r)/60,2):ce(r,n)}function ce(r,n=""){const e=r>0?"-":"+",t=Math.abs(r),a=T(Math.trunc(t/60),2),s=T(t%60,2);return e+a+n+s}const rn=(r,n)=>{switch(r){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Tn=(r,n)=>{switch(r){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Yr=(r,n)=>{const e=r.match(/(P+)(p+)?/)||[],t=e[1],a=e[2];if(!a)return rn(r,n);let s;switch(t){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",rn(t,n)).replace("{{time}}",Tn(a,n))},wt={p:Tn,P:Yr},Fr=/^D+$/,Hr=/^Y+$/,Wr=["D","DD","YY","YYYY"];function bn(r){return Fr.test(r)}function _n(r){return Hr.test(r)}function yt(r,n,e){const t=Ur(r,n,e);if(console.warn(t),Wr.includes(r))throw new RangeError(t)}function Ur(r,n,e){const t=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${n}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Br=/^'([^]*?)'?$/,zr=/''/g,Qr=/[a-zA-Z]/;function Qo(r,n,e){const t=ue(),a=e?.locale??t.locale??gn,s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,m=f(r,e?.in);if(!tr(m))throw new RangeError("Invalid time value");let g=n.match(Gr).map(_=>{const M=_[0];if(M==="p"||M==="P"){const Z=wt[M];return Z(_,a.formatLong)}return _}).join("").match(qr).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const M=_[0];if(M==="'")return{isToken:!1,value:Xr(_)};if(en[M])return{isToken:!0,value:_};if(M.match(Qr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:_}});a.localize.preprocessor&&(g=a.localize.preprocessor(m,g));const p={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return g.map(_=>{if(!_.isToken)return _.value;const M=_.value;(!e?.useAdditionalWeekYearTokens&&_n(M)||!e?.useAdditionalDayOfYearTokens&&bn(M))&&yt(M,n,String(r));const Z=en[M[0]];return Z(m,M,a.localize,p)}).join("")}function Xr(r){const n=r.match(Br);return n?n[1].replace(zr,"'"):r}function Xo(r,n){return f(r,n?.in).getDate()}function jo(r,n){return f(r,n?.in).getDay()}function jr(r,n){const e=f(r,n?.in),t=e.getFullYear(),a=e.getMonth(),s=b(e,0);return s.setFullYear(t,a+1,0),s.setHours(0,0,0,0),s.getDate()}function $r(){return Object.assign({},ue())}function $o(r,n){return f(r,n?.in).getHours()}function Vr(r,n){const e=f(r,n?.in).getDay();return e===0?7:e}function Vo(r,n){return f(r,n?.in).getMinutes()}function Zo(r,n){return f(r,n?.in).getMonth()}function Ko(r){return f(r).getSeconds()}function Jo(r){return+f(r)}function es(r,n){return f(r,n?.in).getFullYear()}function ts(r,n){return+f(r)>+f(n)}function ns(r,n){return+f(r)<+f(n)}function rs(r,n){return+f(r)==+f(n)}function Zr(r,n){const e=Kr(n)?new n(0):b(n,0);return e.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),e.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),e}function Kr(r){return typeof r=="function"&&r.prototype?.constructor===r}const Jr=10;class Dn{constructor(){u(this,"subPriority",0)}validate(n,e){return!0}}class ea extends Dn{constructor(n,e,t,a,s){super(),this.value=n,this.validateValue=e,this.setValue=t,this.priority=a,s&&(this.subPriority=s)}validate(n,e){return this.validateValue(n,this.value,e)}set(n,e,t){return this.setValue(n,e,this.value,t)}}class ta extends Dn{constructor(e,t){super();u(this,"priority",Jr);u(this,"subPriority",-1);this.context=e||(a=>b(t,a))}set(e,t){return t.timestampIsSet?e:b(e,Zr(e,this.context))}}class y{run(n,e,t,a){const s=this.parse(n,e,t,a);return s?{setter:new ea(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(n,e,t){return!0}}class na extends y{constructor(){super(...arguments);u(this,"priority",140);u(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,a){switch(t){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,t,a){return t.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}const P={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},$={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function k(r,n){return r&&{value:n(r.value),rest:r.rest}}function x(r,n){const e=n.match(r);return e?{value:parseInt(e[0],10),rest:n.slice(e[0].length)}:null}function V(r,n){const e=n.match(r);if(!e)return null;if(e[0]==="Z")return{value:0,rest:n.slice(1)};const t=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,i=e[5]?parseInt(e[5],10):0;return{value:t*(a*36e5+s*6e4+i*1e3),rest:n.slice(e[0].length)}}function En(r){return x(P.anyDigitsSigned,r)}function O(r,n){switch(r){case 1:return x(P.singleDigit,n);case 2:return x(P.twoDigits,n);case 3:return x(P.threeDigits,n);case 4:return x(P.fourDigits,n);default:return x(new RegExp("^\\d{1,"+r+"}"),n)}}function Qe(r,n){switch(r){case 1:return x(P.singleDigitSigned,n);case 2:return x(P.twoDigitsSigned,n);case 3:return x(P.threeDigitsSigned,n);case 4:return x(P.fourDigitsSigned,n);default:return x(new RegExp("^-?\\d{1,"+r+"}"),n)}}function xt(r){switch(r){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function xn(r,n){const e=n>0,t=e?n:1-n;let a;if(t<=50)a=r||100;else{const s=t+50,i=Math.trunc(s/100)*100,m=r>=s%100;a=r+i-(m?100:0)}return e?a:1-a}function Mn(r){return r%400===0||r%4===0&&r%100!==0}class ra extends y{constructor(){super(...arguments);u(this,"priority",130);u(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,a){const s=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case"y":return k(O(4,e),s);case"yo":return k(a.ordinalNumber(e,{unit:"year"}),s);default:return k(O(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a){const s=e.getFullYear();if(a.isTwoDigitYear){const m=xn(a.year,s);return e.setFullYear(m,0,1),e.setHours(0,0,0,0),e}const i=!("era"in t)||t.era===1?a.year:1-a.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class aa extends y{constructor(){super(...arguments);u(this,"priority",130);u(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,a){const s=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case"Y":return k(O(4,e),s);case"Yo":return k(a.ordinalNumber(e,{unit:"year"}),s);default:return k(O(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a,s){const i=Et(e,s);if(a.isTwoDigitYear){const g=xn(a.year,i);return e.setFullYear(g,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),ae(e,s)}const m=!("era"in t)||t.era===1?a.year:1-a.year;return e.setFullYear(m,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),ae(e,s)}}class oa extends y{constructor(){super(...arguments);u(this,"priority",130);u(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return Qe(t==="R"?4:t.length,e)}set(e,t,a){const s=b(e,0);return s.setFullYear(a,0,4),s.setHours(0,0,0,0),be(s)}}class sa extends y{constructor(){super(...arguments);u(this,"priority",130);u(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return Qe(t==="u"?4:t.length,e)}set(e,t,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class ia extends y{constructor(){super(...arguments);u(this,"priority",120);u(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"Q":case"QQ":return O(t.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class ca extends y{constructor(){super(...arguments);u(this,"priority",120);u(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"q":case"qq":return O(t.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class ua extends y{constructor(){super(...arguments);u(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);u(this,"priority",110)}parse(e,t,a){const s=i=>i-1;switch(t){case"M":return k(x(P.month,e),s);case"MM":return k(O(2,e),s);case"Mo":return k(a.ordinalNumber(e,{unit:"month"}),s);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}class la extends y{constructor(){super(...arguments);u(this,"priority",110);u(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,a){const s=i=>i-1;switch(t){case"L":return k(x(P.month,e),s);case"LL":return k(O(2,e),s);case"Lo":return k(a.ordinalNumber(e,{unit:"month"}),s);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}function fa(r,n,e){const t=f(r,e?.in),a=yn(t,e)-n;return t.setDate(t.getDate()-a*7),f(t,e?.in)}class da extends y{constructor(){super(...arguments);u(this,"priority",100);u(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,a){switch(t){case"w":return x(P.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return O(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a,s){return ae(fa(e,a,s),s)}}function ma(r,n,e){const t=f(r,e?.in),a=wn(t,e)-n;return t.setDate(t.getDate()-a*7),t}class ha extends y{constructor(){super(...arguments);u(this,"priority",100);u(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,a){switch(t){case"I":return x(P.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return O(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a){return be(ma(e,a))}}const pa=[31,28,31,30,31,30,31,31,30,31,30,31],ga=[31,29,31,30,31,30,31,31,30,31,30,31];class wa extends y{constructor(){super(...arguments);u(this,"priority",90);u(this,"subPriority",1);u(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"d":return x(P.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return O(t.length,e)}}validate(e,t){const a=e.getFullYear(),s=Mn(a),i=e.getMonth();return s?t>=1&&t<=ga[i]:t>=1&&t<=pa[i]}set(e,t,a){return e.setDate(a),e.setHours(0,0,0,0),e}}class ya extends y{constructor(){super(...arguments);u(this,"priority",90);u(this,"subpriority",1);u(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,a){switch(t){case"D":case"DD":return x(P.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return O(t.length,e)}}validate(e,t){const a=e.getFullYear();return Mn(a)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}}function Mt(r,n,e){const t=ue(),a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,s=f(r,e?.in),i=s.getDay(),g=(n%7+7)%7,p=7-a,_=n<0||n>6?n-(i+p)%7:(g+p)%7-(i+p)%7;return Xe(s,_,e)}class Ta extends y{constructor(){super(...arguments);u(this,"priority",90);u(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=Mt(e,a,s),e.setHours(0,0,0,0),e}}class ba extends y{constructor(){super(...arguments);u(this,"priority",90);u(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,a,s){const i=m=>{const g=Math.floor((m-1)/7)*7;return(m+s.weekStartsOn+6)%7+g};switch(t){case"e":case"ee":return k(O(t.length,e),i);case"eo":return k(a.ordinalNumber(e,{unit:"day"}),i);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=Mt(e,a,s),e.setHours(0,0,0,0),e}}class _a extends y{constructor(){super(...arguments);u(this,"priority",90);u(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,a,s){const i=m=>{const g=Math.floor((m-1)/7)*7;return(m+s.weekStartsOn+6)%7+g};switch(t){case"c":case"cc":return k(O(t.length,e),i);case"co":return k(a.ordinalNumber(e,{unit:"day"}),i);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=Mt(e,a,s),e.setHours(0,0,0,0),e}}function Da(r,n,e){const t=f(r,e?.in),a=Vr(t,e),s=n-a;return Xe(t,s,e)}class Ea extends y{constructor(){super(...arguments);u(this,"priority",90);u(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,a){const s=i=>i===0?7:i;switch(t){case"i":case"ii":return O(t.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return k(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return k(a.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return k(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return k(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,t){return t>=1&&t<=7}set(e,t,a){return e=Da(e,a),e.setHours(0,0,0,0),e}}class xa extends y{constructor(){super(...arguments);u(this,"priority",80);u(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,a){switch(t){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(xt(a),0,0,0),e}}class Ma extends y{constructor(){super(...arguments);u(this,"priority",80);u(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,a){switch(t){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(xt(a),0,0,0),e}}class Oa extends y{constructor(){super(...arguments);u(this,"priority",80);u(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,a){switch(t){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(xt(a),0,0,0),e}}class Aa extends y{constructor(){super(...arguments);u(this,"priority",70);u(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,a){switch(t){case"h":return x(P.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return O(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,a){const s=e.getHours()>=12;return s&&a<12?e.setHours(a+12,0,0,0):!s&&a===12?e.setHours(0,0,0,0):e.setHours(a,0,0,0),e}}class Pa extends y{constructor(){super(...arguments);u(this,"priority",70);u(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,a){switch(t){case"H":return x(P.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return O(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,a){return e.setHours(a,0,0,0),e}}class ka extends y{constructor(){super(...arguments);u(this,"priority",70);u(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,a){switch(t){case"K":return x(P.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return O(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}}class Na extends y{constructor(){super(...arguments);u(this,"priority",70);u(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,a){switch(t){case"k":return x(P.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return O(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,a){const s=a<=24?a%24:a;return e.setHours(s,0,0,0),e}}class Ia extends y{constructor(){super(...arguments);u(this,"priority",60);u(this,"incompatibleTokens",["t","T"])}parse(e,t,a){switch(t){case"m":return x(P.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return O(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setMinutes(a,0,0),e}}class Ra extends y{constructor(){super(...arguments);u(this,"priority",50);u(this,"incompatibleTokens",["t","T"])}parse(e,t,a){switch(t){case"s":return x(P.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return O(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setSeconds(a,0),e}}class La extends y{constructor(){super(...arguments);u(this,"priority",30);u(this,"incompatibleTokens",["t","T"])}parse(e,t){const a=s=>Math.trunc(s*Math.pow(10,-t.length+3));return k(O(t.length,e),a)}set(e,t,a){return e.setMilliseconds(a),e}}class Ca extends y{constructor(){super(...arguments);u(this,"priority",10);u(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return V($.basicOptionalMinutes,e);case"XX":return V($.basic,e);case"XXXX":return V($.basicOptionalSeconds,e);case"XXXXX":return V($.extendedOptionalSeconds,e);case"XXX":default:return V($.extended,e)}}set(e,t,a){return t.timestampIsSet?e:b(e,e.getTime()-Be(e)-a)}}class va extends y{constructor(){super(...arguments);u(this,"priority",10);u(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return V($.basicOptionalMinutes,e);case"xx":return V($.basic,e);case"xxxx":return V($.basicOptionalSeconds,e);case"xxxxx":return V($.extendedOptionalSeconds,e);case"xxx":default:return V($.extended,e)}}set(e,t,a){return t.timestampIsSet?e:b(e,e.getTime()-Be(e)-a)}}class Sa extends y{constructor(){super(...arguments);u(this,"priority",40);u(this,"incompatibleTokens","*")}parse(e){return En(e)}set(e,t,a){return[b(e,a*1e3),{timestampIsSet:!0}]}}class Ya extends y{constructor(){super(...arguments);u(this,"priority",20);u(this,"incompatibleTokens","*")}parse(e){return En(e)}set(e,t,a){return[b(e,a),{timestampIsSet:!0}]}}const Fa={G:new na,y:new ra,Y:new aa,R:new oa,u:new sa,Q:new ia,q:new ca,M:new ua,L:new la,w:new da,I:new ha,d:new wa,D:new ya,E:new Ta,e:new ba,c:new _a,i:new Ea,a:new xa,b:new Ma,B:new Oa,h:new Aa,H:new Pa,K:new ka,k:new Na,m:new Ia,s:new Ra,S:new La,X:new Ca,x:new va,t:new Sa,T:new Ya},Ha=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Wa=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ua=/^'([^]*?)'?$/,qa=/''/g,Ga=/\S/,Ba=/[a-zA-Z]/;function as(r,n,e,t){const a=()=>b(t?.in||e,NaN),s=$r(),i=t?.locale??s.locale??gn,m=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,g=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!n)return r?a():f(e,t?.in);const p={firstWeekContainsDate:m,weekStartsOn:g,locale:i},_=[new ta(t?.in,e)],M=n.match(Wa).map(w=>{const D=w[0];if(D in wt){const G=wt[D];return G(w,i.formatLong)}return w}).join("").match(Ha),Z=[];for(let w of M){!t?.useAdditionalWeekYearTokens&&_n(w)&&yt(w,n,r),!t?.useAdditionalDayOfYearTokens&&bn(w)&&yt(w,n,r);const D=w[0],G=Fa[D];if(G){const{incompatibleTokens:oe}=G;if(Array.isArray(oe)){const ne=Z.find(fe=>oe.includes(fe.token)||fe.token===D);if(ne)throw new RangeError(`The format string mustn't contain \`${ne.fullToken}\` and \`${w}\` at the same time`)}else if(G.incompatibleTokens==="*"&&Z.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);Z.push({token:D,fullToken:w});const I=G.run(r,w,i.match,p);if(!I)return a();_.push(I.setter),r=I.rest}else{if(D.match(Ba))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(w==="''"?w="'":D==="'"&&(w=za(w)),r.indexOf(w)===0)r=r.slice(w.length);else return a()}}if(r.length>0&&Ga.test(r))return a();const le=_.map(w=>w.priority).sort((w,D)=>D-w).filter((w,D,G)=>G.indexOf(w)===D).map(w=>_.filter(D=>D.priority===w).sort((D,G)=>G.subPriority-D.subPriority)).map(w=>w[0]);let q=f(e,t?.in);if(isNaN(+q))return a();const Re={};for(const w of le){if(!w.validate(q,p))return a();const D=w.set(q,Re,p);Array.isArray(D)?(q=D[0],Object.assign(Re,D[1])):q=D}return q}function za(r){return r.match(Ua)[1].replace(qa,"'")}function os(r,n,e){const[t,a]=te(e?.in,r,n);return t.getFullYear()===a.getFullYear()&&t.getMonth()===a.getMonth()}function ss(r,n,e){const[t,a]=te(e?.in,r,n);return+Jt(t)==+Jt(a)}function is(r,n,e){const[t,a]=te(e?.in,r,n);return t.getFullYear()===a.getFullYear()}function cs(r,n,e){const t=+f(r,e?.in),[a,s]=[+f(n.start,e?.in),+f(n.end,e?.in)].sort((i,m)=>i-m);return t>=a&&t<=s}function us(r,n,e){return Xe(r,-1,e)}function ls(r,n){const e=()=>b(n?.in,NaN),a=$a(r);let s;if(a.date){const p=Va(a.date,2);s=Za(p.restDateString,p.year)}if(!s||isNaN(+s))return e();const i=+s;let m=0,g;if(a.time&&(m=Ka(a.time),isNaN(m)))return e();if(a.timezone){if(g=Ja(a.timezone),isNaN(g))return e()}else{const p=new Date(i+m),_=f(0,n?.in);return _.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),_.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),_}return f(i+m+g,n?.in)}const We={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Qa=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Xa=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ja=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $a(r){const n={},e=r.split(We.dateTimeDelimiter);let t;if(e.length>2)return n;if(/:/.test(e[0])?t=e[0]:(n.date=e[0],t=e[1],We.timeZoneDelimiter.test(n.date)&&(n.date=r.split(We.timeZoneDelimiter)[0],t=r.substr(n.date.length,r.length))),t){const a=We.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}function Va(r,n){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),t=r.match(e);if(!t)return{year:NaN,restDateString:""};const a=t[1]?parseInt(t[1]):null,s=t[2]?parseInt(t[2]):null;return{year:s===null?a:s*100,restDateString:r.slice((t[1]||t[2]).length)}}function Za(r,n){if(n===null)return new Date(NaN);const e=r.match(Qa);if(!e)return new Date(NaN);const t=!!e[4],a=Oe(e[1]),s=Oe(e[2])-1,i=Oe(e[3]),m=Oe(e[4]),g=Oe(e[5])-1;if(t)return ao(n,m,g)?eo(n,m,g):new Date(NaN);{const p=new Date(0);return!no(n,s,i)||!ro(n,a)?new Date(NaN):(p.setUTCFullYear(n,s,Math.max(a,i)),p)}}function Oe(r){return r?parseInt(r):1}function Ka(r){const n=r.match(Xa);if(!n)return NaN;const e=lt(n[1]),t=lt(n[2]),a=lt(n[3]);return oo(e,t,a)?e*36e5+t*6e4+a*1e3:NaN}function lt(r){return r&&parseFloat(r.replace(",","."))||0}function Ja(r){if(r==="Z")return 0;const n=r.match(ja);if(!n)return 0;const e=n[1]==="+"?-1:1,t=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return so(t,a)?e*(t*36e5+a*6e4):NaN}function eo(r,n,e){const t=new Date(0);t.setUTCFullYear(r,0,4);const a=t.getUTCDay()||7,s=(n-1)*7+e+1-a;return t.setUTCDate(t.getUTCDate()+s),t}const to=[31,null,31,30,31,30,31,31,30,31,30,31];function On(r){return r%400===0||r%4===0&&r%100!==0}function no(r,n,e){return n>=0&&n<=11&&e>=1&&e<=(to[n]||(On(r)?29:28))}function ro(r,n){return n>=1&&n<=(On(r)?366:365)}function ao(r,n,e){return n>=1&&n<=53&&e>=0&&e<=6}function oo(r,n,e){return r===24?n===0&&e===0:e>=0&&e<60&&n>=0&&n<60&&r>=0&&r<25}function so(r,n){return n>=0&&n<=59}function io(r,n,e){const t=f(r,e?.in),a=t.getFullYear(),s=t.getDate(),i=b(r,0);i.setFullYear(a,n,15),i.setHours(0,0,0,0);const m=jr(i);return t.setMonth(n,Math.min(s,m)),t}function fs(r,n,e){const t=f(r,e?.in);return t.setHours(n),t}function ds(r,n,e){const t=f(r,e?.in);return t.setMinutes(n),t}function ms(r,n,e){const t=f(r,e?.in),a=Math.trunc(t.getMonth()/3)+1,s=n-a;return io(t,t.getMonth()+s*3)}function hs(r,n,e){const t=f(r,e?.in);return t.setSeconds(n),t}function ps(r,n,e){const t=f(r,e?.in);return isNaN(+t)?b(r,NaN):(t.setFullYear(n),t)}function gs(r,n,e){return Dt(r,-n,e)}function ws(r,n,e){return Zn(r,-1,e)}function ys(r,n,e){return Kn(r,-1,e)}function Ts(r,n,e){return Jn(r,-n,e)}/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:An,setPrototypeOf:an,isFrozen:co,getPrototypeOf:uo,getOwnPropertyDescriptor:lo}=Object;let{freeze:H,seal:B,create:Tt}=Object,{apply:bt,construct:_t}=typeof Reflect<"u"&&Reflect;H||(H=function(n){return n});B||(B=function(n){return n});bt||(bt=function(n,e){for(var t=arguments.length,a=new Array(t>2?t-2:0),s=2;s<t;s++)a[s-2]=arguments[s];return n.apply(e,a)});_t||(_t=function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),a=1;a<e;a++)t[a-1]=arguments[a];return new n(...t)});const Ue=W(Array.prototype.forEach),fo=W(Array.prototype.lastIndexOf),on=W(Array.prototype.pop),Ae=W(Array.prototype.push),mo=W(Array.prototype.splice),Ge=W(String.prototype.toLowerCase),ft=W(String.prototype.toString),dt=W(String.prototype.match),Pe=W(String.prototype.replace),ho=W(String.prototype.indexOf),po=W(String.prototype.trim),z=W(Object.prototype.hasOwnProperty),F=W(RegExp.prototype.test),ke=go(TypeError);function W(r){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var e=arguments.length,t=new Array(e>1?e-1:0),a=1;a<e;a++)t[a-1]=arguments[a];return bt(r,n,t)}}function go(r){return function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return _t(r,e)}}function h(r,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge;an&&an(r,null);let t=n.length;for(;t--;){let a=n[t];if(typeof a=="string"){const s=e(a);s!==a&&(co(n)||(n[t]=s),a=s)}r[a]=!0}return r}function wo(r){for(let n=0;n<r.length;n++)z(r,n)||(r[n]=null);return r}function j(r){const n=Tt(null);for(const[e,t]of An(r))z(r,e)&&(Array.isArray(t)?n[e]=wo(t):t&&typeof t=="object"&&t.constructor===Object?n[e]=j(t):n[e]=t);return n}function Ne(r,n){for(;r!==null;){const t=lo(r,n);if(t){if(t.get)return W(t.get);if(typeof t.value=="function")return W(t.value)}r=uo(r)}function e(){return null}return e}const sn=H(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),mt=H(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ht=H(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yo=H(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pt=H(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),To=H(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cn=H(["#text"]),un=H(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),gt=H(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ln=H(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qe=H(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bo=B(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_o=B(/<%[\w\W]*|[\w\W]*%>/gm),Do=B(/\$\{[\w\W]*/gm),Eo=B(/^data-[\-\w.\u00B7-\uFFFF]+$/),xo=B(/^aria-[\-\w]+$/),Pn=B(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mo=B(/^(?:\w+script|data):/i),Oo=B(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kn=B(/^html$/i),Ao=B(/^[a-z][.\w]*(-[.\w]+)+$/i);var fn=Object.freeze({__proto__:null,ARIA_ATTR:xo,ATTR_WHITESPACE:Oo,CUSTOM_ELEMENT:Ao,DATA_ATTR:Eo,DOCTYPE_NAME:kn,ERB_EXPR:_o,IS_ALLOWED_URI:Pn,IS_SCRIPT_OR_DATA:Mo,MUSTACHE_EXPR:bo,TMPLIT_EXPR:Do});const Ie={element:1,text:3,progressingInstruction:7,comment:8,document:9},Po=function(){return typeof window>"u"?null:window},ko=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let t=null;const a="data-tt-policy-suffix";e&&e.hasAttribute(a)&&(t=e.getAttribute(a));const s="dompurify"+(t?"#"+t:"");try{return n.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},dn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Nn(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Po();const n=d=>Nn(d);if(n.version="3.3.1",n.removed=[],!r||!r.document||r.document.nodeType!==Ie.document||!r.Element)return n.isSupported=!1,n;let{document:e}=r;const t=e,a=t.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:m,Element:g,NodeFilter:p,NamedNodeMap:_=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:M,DOMParser:Z,trustedTypes:le}=r,q=g.prototype,Re=Ne(q,"cloneNode"),w=Ne(q,"remove"),D=Ne(q,"nextSibling"),G=Ne(q,"childNodes"),oe=Ne(q,"parentNode");if(typeof i=="function"){const d=e.createElement("template");d.content&&d.content.ownerDocument&&(e=d.content.ownerDocument)}let I,ne="";const{implementation:fe,createNodeIterator:In,createDocumentFragment:Rn,getElementsByTagName:Ln}=e,{importNode:Cn}=t;let Y=dn();n.isSupported=typeof An=="function"&&typeof oe=="function"&&fe&&fe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:je,ERB_EXPR:$e,TMPLIT_EXPR:Ve,DATA_ATTR:vn,ARIA_ATTR:Sn,IS_SCRIPT_OR_DATA:Yn,ATTR_WHITESPACE:Ot,CUSTOM_ELEMENT:Fn}=fn;let{IS_ALLOWED_URI:At}=fn,L=null;const Pt=h({},[...sn,...mt,...ht,...pt,...cn]);let C=null;const kt=h({},[...un,...gt,...ln,...qe]);let A=Object.seal(Tt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,Ze=null;const de=Object.seal(Tt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Ke=!0,It=!1,Rt=!0,me=!1,Le=!0,se=!1,Je=!1,et=!1,he=!1,Ce=!1,ve=!1,Lt=!0,Ct=!1;const Hn="user-content-";let tt=!0,De=!1,pe={},Q=null;const nt=h({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let vt=null;const St=h({},["audio","video","img","source","image","track"]);let rt=null;const Yt=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Se="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",K="http://www.w3.org/1999/xhtml";let ge=K,at=!1,ot=null;const Wn=h({},[Se,Ye,K],ft);let Fe=h({},["mi","mo","mn","ms","mtext"]),He=h({},["annotation-xml"]);const Un=h({},["title","style","font","a","script"]);let Ee=null;const qn=["application/xhtml+xml","text/html"],Gn="text/html";let R=null,we=null;const Bn=e.createElement("form"),Ft=function(o){return o instanceof RegExp||o instanceof Function},st=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(we&&we===o)){if((!o||typeof o!="object")&&(o={}),o=j(o),Ee=qn.indexOf(o.PARSER_MEDIA_TYPE)===-1?Gn:o.PARSER_MEDIA_TYPE,R=Ee==="application/xhtml+xml"?ft:Ge,L=z(o,"ALLOWED_TAGS")?h({},o.ALLOWED_TAGS,R):Pt,C=z(o,"ALLOWED_ATTR")?h({},o.ALLOWED_ATTR,R):kt,ot=z(o,"ALLOWED_NAMESPACES")?h({},o.ALLOWED_NAMESPACES,ft):Wn,rt=z(o,"ADD_URI_SAFE_ATTR")?h(j(Yt),o.ADD_URI_SAFE_ATTR,R):Yt,vt=z(o,"ADD_DATA_URI_TAGS")?h(j(St),o.ADD_DATA_URI_TAGS,R):St,Q=z(o,"FORBID_CONTENTS")?h({},o.FORBID_CONTENTS,R):nt,_e=z(o,"FORBID_TAGS")?h({},o.FORBID_TAGS,R):j({}),Ze=z(o,"FORBID_ATTR")?h({},o.FORBID_ATTR,R):j({}),pe=z(o,"USE_PROFILES")?o.USE_PROFILES:!1,Nt=o.ALLOW_ARIA_ATTR!==!1,Ke=o.ALLOW_DATA_ATTR!==!1,It=o.ALLOW_UNKNOWN_PROTOCOLS||!1,Rt=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=o.SAFE_FOR_TEMPLATES||!1,Le=o.SAFE_FOR_XML!==!1,se=o.WHOLE_DOCUMENT||!1,he=o.RETURN_DOM||!1,Ce=o.RETURN_DOM_FRAGMENT||!1,ve=o.RETURN_TRUSTED_TYPE||!1,et=o.FORCE_BODY||!1,Lt=o.SANITIZE_DOM!==!1,Ct=o.SANITIZE_NAMED_PROPS||!1,tt=o.KEEP_CONTENT!==!1,De=o.IN_PLACE||!1,At=o.ALLOWED_URI_REGEXP||Pn,ge=o.NAMESPACE||K,Fe=o.MATHML_TEXT_INTEGRATION_POINTS||Fe,He=o.HTML_INTEGRATION_POINTS||He,A=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&Ft(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(A.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&Ft(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(A.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(A.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Ke=!1),Ce&&(he=!0),pe&&(L=h({},cn),C=[],pe.html===!0&&(h(L,sn),h(C,un)),pe.svg===!0&&(h(L,mt),h(C,gt),h(C,qe)),pe.svgFilters===!0&&(h(L,ht),h(C,gt),h(C,qe)),pe.mathMl===!0&&(h(L,pt),h(C,ln),h(C,qe))),o.ADD_TAGS&&(typeof o.ADD_TAGS=="function"?de.tagCheck=o.ADD_TAGS:(L===Pt&&(L=j(L)),h(L,o.ADD_TAGS,R))),o.ADD_ATTR&&(typeof o.ADD_ATTR=="function"?de.attributeCheck=o.ADD_ATTR:(C===kt&&(C=j(C)),h(C,o.ADD_ATTR,R))),o.ADD_URI_SAFE_ATTR&&h(rt,o.ADD_URI_SAFE_ATTR,R),o.FORBID_CONTENTS&&(Q===nt&&(Q=j(Q)),h(Q,o.FORBID_CONTENTS,R)),o.ADD_FORBID_CONTENTS&&(Q===nt&&(Q=j(Q)),h(Q,o.ADD_FORBID_CONTENTS,R)),tt&&(L["#text"]=!0),se&&h(L,["html","head","body"]),L.table&&(h(L,["tbody"]),delete _e.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=o.TRUSTED_TYPES_POLICY,ne=I.createHTML("")}else I===void 0&&(I=ko(le,a)),I!==null&&typeof ne=="string"&&(ne=I.createHTML(""));H&&H(o),we=o}},Ht=h({},[...mt,...ht,...yo]),Wt=h({},[...pt,...To]),zn=function(o){let c=oe(o);(!c||!c.tagName)&&(c={namespaceURI:ge,tagName:"template"});const l=Ge(o.tagName),E=Ge(c.tagName);return ot[o.namespaceURI]?o.namespaceURI===Ye?c.namespaceURI===K?l==="svg":c.namespaceURI===Se?l==="svg"&&(E==="annotation-xml"||Fe[E]):!!Ht[l]:o.namespaceURI===Se?c.namespaceURI===K?l==="math":c.namespaceURI===Ye?l==="math"&&He[E]:!!Wt[l]:o.namespaceURI===K?c.namespaceURI===Ye&&!He[E]||c.namespaceURI===Se&&!Fe[E]?!1:!Wt[l]&&(Un[l]||!Ht[l]):!!(Ee==="application/xhtml+xml"&&ot[o.namespaceURI]):!1},X=function(o){Ae(n.removed,{element:o});try{oe(o).removeChild(o)}catch{w(o)}},ie=function(o,c){try{Ae(n.removed,{attribute:c.getAttributeNode(o),from:c})}catch{Ae(n.removed,{attribute:null,from:c})}if(c.removeAttribute(o),o==="is")if(he||Ce)try{X(c)}catch{}else try{c.setAttribute(o,"")}catch{}},Ut=function(o){let c=null,l=null;if(et)o="<remove></remove>"+o;else{const N=dt(o,/^[\r\n\t ]+/);l=N&&N[0]}Ee==="application/xhtml+xml"&&ge===K&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const E=I?I.createHTML(o):o;if(ge===K)try{c=new Z().parseFromString(E,Ee)}catch{}if(!c||!c.documentElement){c=fe.createDocument(ge,"template",null);try{c.documentElement.innerHTML=at?ne:E}catch{}}const S=c.body||c.documentElement;return o&&l&&S.insertBefore(e.createTextNode(l),S.childNodes[0]||null),ge===K?Ln.call(c,se?"html":"body")[0]:se?c.documentElement:S},qt=function(o){return In.call(o.ownerDocument||o,o,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},it=function(o){return o instanceof M&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof _)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},Gt=function(o){return typeof m=="function"&&o instanceof m};function J(d,o,c){Ue(d,l=>{l.call(n,o,c,we)})}const Bt=function(o){let c=null;if(J(Y.beforeSanitizeElements,o,null),it(o))return X(o),!0;const l=R(o.nodeName);if(J(Y.uponSanitizeElement,o,{tagName:l,allowedTags:L}),Le&&o.hasChildNodes()&&!Gt(o.firstElementChild)&&F(/<[/\w!]/g,o.innerHTML)&&F(/<[/\w!]/g,o.textContent)||o.nodeType===Ie.progressingInstruction||Le&&o.nodeType===Ie.comment&&F(/<[/\w]/g,o.data))return X(o),!0;if(!(de.tagCheck instanceof Function&&de.tagCheck(l))&&(!L[l]||_e[l])){if(!_e[l]&&Qt(l)&&(A.tagNameCheck instanceof RegExp&&F(A.tagNameCheck,l)||A.tagNameCheck instanceof Function&&A.tagNameCheck(l)))return!1;if(tt&&!Q[l]){const E=oe(o)||o.parentNode,S=G(o)||o.childNodes;if(S&&E){const N=S.length;for(let U=N-1;U>=0;--U){const ee=Re(S[U],!0);ee.__removalCount=(o.__removalCount||0)+1,E.insertBefore(ee,D(o))}}}return X(o),!0}return o instanceof g&&!zn(o)||(l==="noscript"||l==="noembed"||l==="noframes")&&F(/<\/no(script|embed|frames)/i,o.innerHTML)?(X(o),!0):(me&&o.nodeType===Ie.text&&(c=o.textContent,Ue([je,$e,Ve],E=>{c=Pe(c,E," ")}),o.textContent!==c&&(Ae(n.removed,{element:o.cloneNode()}),o.textContent=c)),J(Y.afterSanitizeElements,o,null),!1)},zt=function(o,c,l){if(Lt&&(c==="id"||c==="name")&&(l in e||l in Bn))return!1;if(!(Ke&&!Ze[c]&&F(vn,c))){if(!(Nt&&F(Sn,c))){if(!(de.attributeCheck instanceof Function&&de.attributeCheck(c,o))){if(!C[c]||Ze[c]){if(!(Qt(o)&&(A.tagNameCheck instanceof RegExp&&F(A.tagNameCheck,o)||A.tagNameCheck instanceof Function&&A.tagNameCheck(o))&&(A.attributeNameCheck instanceof RegExp&&F(A.attributeNameCheck,c)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(c,o))||c==="is"&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&F(A.tagNameCheck,l)||A.tagNameCheck instanceof Function&&A.tagNameCheck(l))))return!1}else if(!rt[c]){if(!F(At,Pe(l,Ot,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&o!=="script"&&ho(l,"data:")===0&&vt[o])){if(!(It&&!F(Yn,Pe(l,Ot,"")))){if(l)return!1}}}}}}}return!0},Qt=function(o){return o!=="annotation-xml"&&dt(o,Fn)},Xt=function(o){J(Y.beforeSanitizeAttributes,o,null);const{attributes:c}=o;if(!c||it(o))return;const l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0};let E=c.length;for(;E--;){const S=c[E],{name:N,namespaceURI:U,value:ee}=S,ye=R(N),ct=ee;let v=N==="value"?ct:po(ct);if(l.attrName=ye,l.attrValue=v,l.keepAttr=!0,l.forceKeepAttr=void 0,J(Y.uponSanitizeAttribute,o,l),v=l.attrValue,Ct&&(ye==="id"||ye==="name")&&(ie(N,o),v=Hn+v),Le&&F(/((--!?|])>)|<\/(style|title|textarea)/i,v)){ie(N,o);continue}if(ye==="attributename"&&dt(v,"href")){ie(N,o);continue}if(l.forceKeepAttr)continue;if(!l.keepAttr){ie(N,o);continue}if(!Rt&&F(/\/>/i,v)){ie(N,o);continue}me&&Ue([je,$e,Ve],$t=>{v=Pe(v,$t," ")});const jt=R(o.nodeName);if(!zt(jt,ye,v)){ie(N,o);continue}if(I&&typeof le=="object"&&typeof le.getAttributeType=="function"&&!U)switch(le.getAttributeType(jt,ye)){case"TrustedHTML":{v=I.createHTML(v);break}case"TrustedScriptURL":{v=I.createScriptURL(v);break}}if(v!==ct)try{U?o.setAttributeNS(U,N,v):o.setAttribute(N,v),it(o)?X(o):on(n.removed)}catch{ie(N,o)}}J(Y.afterSanitizeAttributes,o,null)},Qn=function d(o){let c=null;const l=qt(o);for(J(Y.beforeSanitizeShadowDOM,o,null);c=l.nextNode();)J(Y.uponSanitizeShadowNode,c,null),Bt(c),Xt(c),c.content instanceof s&&d(c.content);J(Y.afterSanitizeShadowDOM,o,null)};return n.sanitize=function(d){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,l=null,E=null,S=null;if(at=!d,at&&(d="<!-->"),typeof d!="string"&&!Gt(d))if(typeof d.toString=="function"){if(d=d.toString(),typeof d!="string")throw ke("dirty is not a string, aborting")}else throw ke("toString is not a function");if(!n.isSupported)return d;if(Je||st(o),n.removed=[],typeof d=="string"&&(De=!1),De){if(d.nodeName){const ee=R(d.nodeName);if(!L[ee]||_e[ee])throw ke("root node is forbidden and cannot be sanitized in-place")}}else if(d instanceof m)c=Ut("<!---->"),l=c.ownerDocument.importNode(d,!0),l.nodeType===Ie.element&&l.nodeName==="BODY"||l.nodeName==="HTML"?c=l:c.appendChild(l);else{if(!he&&!me&&!se&&d.indexOf("<")===-1)return I&&ve?I.createHTML(d):d;if(c=Ut(d),!c)return he?null:ve?ne:""}c&&et&&X(c.firstChild);const N=qt(De?d:c);for(;E=N.nextNode();)Bt(E),Xt(E),E.content instanceof s&&Qn(E.content);if(De)return d;if(he){if(Ce)for(S=Rn.call(c.ownerDocument);c.firstChild;)S.appendChild(c.firstChild);else S=c;return(C.shadowroot||C.shadowrootmode)&&(S=Cn.call(t,S,!0)),S}let U=se?c.outerHTML:c.innerHTML;return se&&L["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&F(kn,c.ownerDocument.doctype.name)&&(U="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
`+U),me&&Ue([je,$e,Ve],ee=>{U=Pe(U,ee," ")}),I&&ve?I.createHTML(U):U},n.setConfig=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(d),Je=!0},n.clearConfig=function(){we=null,Je=!1},n.isValidAttribute=function(d,o,c){we||st({});const l=R(d),E=R(o);return zt(l,E,c)},n.addHook=function(d,o){typeof o=="function"&&Ae(Y[d],o)},n.removeHook=function(d,o){if(o!==void 0){const c=fo(Y[d],o);return c===-1?void 0:mo(Y[d],c,1)[0]}return on(Y[d])},n.removeHooks=function(d){Y[d]=[]},n.removeAllHooks=function(){Y=dn()},n}var bs=Nn();export{Jt as $,hs as A,So as B,Qo as C,Dt as D,gs as E,ps as F,Wo as G,Xe as H,io as I,Ts as J,Jn as K,is as L,os as M,Kn as N,ys as O,us as P,ae as Q,Yo as R,ws as S,Fo as T,Ho as U,Zn as V,Jo as W,ms as X,Zt as Y,zo as Z,ss as _,ts as a,Io as a0,Lo as a1,wn as a2,jo as a3,Xo as a4,ut as a5,xe as a6,Me as a7,_r as a8,bs as a9,er as b,Ko as c,Vo as d,$o as e,Ro as f,es as g,Zo as h,ns as i,rs as j,as as k,tr as l,pn as m,vo as n,Co as o,ls as p,Uo as q,cs as r,ze as s,f as t,Bo as u,nr as v,qo as w,Go as x,fs as y,ds as z};
|