PageSourceSearch

https://tailwindadmin-tanstack-pro-dark.netlify.app/assets/format-CNjrC8BB.js

js tailwindadmin-tanstack-pro-dark.netlify.app collected 2026-10-03 11:30:49 UTC 12,233 bytes, 1 lines download raw bytes

vendor: 7,376 bytes, line 1
1import{g as b,n as N,a as Y,e as F}from"./en-US-Dw4dfe3S.js";import{t as d,c as w,m as H,a as S}from"./toDate-BK_JsdFu.js";function y(n,t){const e=b(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,a=d(n,t?.in),s=a.getDay(),i=(s<r?7:0)+s-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function O(n,t){return y(n,{...t,weekStartsOn:1})}function W(n,t){const e=d(n,t?.in),r=e.getFullYear(),a=w(e,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const s=O(a),i=w(e,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const f=O(i);return e.getTime()>=s.getTime()?r+1:e.getTime()>=f.getTime()?r:r-1}function D(n,t){const e=d(n,t?.in);return e.setHours(0,0,0,0),e}function v(n,t,e){const[r,a]=N(e?.in,n,t),s=D(r),i=D(a),f=+s-Y(s),h=+i-Y(i);return Math.round((f-h)/H)}function C(n,t){const e=W(n,t),r=w(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),O(r)}function G(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Q(n){return!(!G(n)&&typeof n!="number"||isNaN(+d(n)))}function _(n,t){const e=d(n,t?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function B(n,t){const e=d(n,t?.in);return v(e,_(e))+1}function X(n,t){const e=d(n,t?.in),r=+O(e)-+C(e);return Math.round(r/S)+1}function E(n,t){const e=d(n,t?.in),r=e.getFullYear(),a=b(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=w(t?.in||n,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const f=y(i,t),h=w(t?.in||n,0);h.setFullYear(r,0,s),h.setHours(0,0,0,0);const x=y(h,t);return+e>=+f?r+1:+e>=+x?r:r-1}function L(n,t){const e=b(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,a=E(n,t),s=w(t?.in||n,0);return s.setFullYear(a,0,r),s.setHours(0,0,0,0),y(s,t)}function I(n,t){const e=d(n,t?.in),r=+y(e,t)-+L(e,t);return Math.round(r/S)+1}function o(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const m={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return o(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):o(e+1,2)},d(n,t){return o(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];default:return e==="am"?"a.m.":"p.m."}},h(n,t){return o(n.getHours()%12||12,t.length)},H(n,t){return o(n.getHours(),t.length)},m(n,t){return o(n.getMinutes(),t.length)},s(n,t){return o(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),a=Math.trunc(r*Math.pow(10,e-3));return o(a,t.length)}},g={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),a=r>0?r:1-r;return e.ordinalNumber(a,{unit:"year"})}return m.y(n,t)},Y:function(n,t,e,r){const a=E(n,r),s=a>0?a:1-a;if(t==="YY"){const i=s%100;return o(i,2)}return t==="Yo"?e.ordinalNumber(s,{unit:"year"}):o(s,t.length)},R:function(n,t){const e=W(n);return o(e,t.length)},u:function(n,t){const e=n.getFullYear();return o(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return o(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return o(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return m.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return o(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const a=I(n,r);return t==="wo"?e.ordinalNumber(a,{unit:"week"}):o(a,t.length)},I:function(n,t,e){const r=X(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):o(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):m.d(n,t)},D:function(n,t,e){const r=B(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):o(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const a=n.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return o(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"});default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const a=n.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return o(s,t.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"});default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return o(a,t.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const a=n.getHours()/12>=1?"pm":"am";switch(t){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"});default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let a;switch(r===12?a=g.noon:r===0?a=g.midnight:a=r/12>
vendor: 4,243 bytes, line 1
1=1?"pm":"am",t){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"});default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let a;switch(r>=17?a=g.evening:r>=12?a=g.afternoon:r>=4?a=g.morning:a=g.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return m.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):m.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):o(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):o(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):m.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):m.s(n,t)},S:function(n,t){return m.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return P(r);case"XXXX":case"XX":return l(r);default:return l(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return P(r);case"xxxx":case"xx":return l(r);default:return l(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+M(r,":");default:return"GMT"+l(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+M(r,":");default:return"GMT"+l(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return o(r,t.length)},T:function(n,t,e){return o(+n,t.length)}};function M(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),a=Math.trunc(r/60),s=r%60;return s===0?e+String(a):e+String(a)+t+o(s,2)}function P(n,t){return n%60===0?(n>0?"-":"+")+o(Math.abs(n)/60,2):l(n,t)}function l(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),a=o(Math.trunc(r/60),2),s=o(r%60,2);return e+a+t+s}const T=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},q=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},R=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],a=e[2];if(!a)return T(n,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",T(r,t)).replace("{{time}}",q(a,t))},$={p:q,P:R},j=/^D+$/,V=/^Y+$/,A=["D","DD","YY","YYYY"];function J(n){return j.test(n)}function K(n){return V.test(n)}function U(n,t,e){const r=Z(n,t,e);if(console.warn(r),A.includes(n))throw new RangeError(r)}function Z(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,et=/^'([^]*?)'?$/,nt=/''/g,rt=/[a-zA-Z]/;function it(n,t,e){const r=b(),a=e?.locale??r.locale??F,s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,f=d(n,e?.in);if(!Q(f))throw new RangeError("Invalid time value");let h=t.match(tt).map(u=>{const c=u[0];if(c==="p"||c==="P"){const k=$[c];return k(u,a.formatLong)}return u}).join("").match(z).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const c=u[0];if(c==="'")return{isToken:!1,value:at(u)};if(p[c])return{isToken:!0,value:u};
1if(c.match(rt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:u}});a.localize.preprocessor&&(h=a.localize.preprocessor(f,h));const x={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return h.map(u=>{if(!u.isToken)return u.value;const c=u.value;(!e?.useAdditionalWeekYearTokens&&K(c)||!e?.useAdditionalDayOfYearTokens&&J(c))&&U(c,t,String(n));const k=p[c[0]];return k(f,c,a.localize,x)}).join("")}function at(n){const t=n.match(et);return t?t[1].replace(nt,"'"):n}export{I as a,O as b,y as c,v as d,_ as e,it as f,X as g,Q as h,G as i,D as s};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.