html5-infobeamer-aalen-geek.../assets/js/luxon/luxon.es6.min.js

1 line
60 KiB
JavaScript
Raw Normal View History

2023-11-01 01:59:19 +01:00
class t extends Error{}class z extends t{constructor(t){super("Invalid DateTime: "+t.toMessage())}}class q extends t{constructor(t){super("Invalid Interval: "+t.toMessage())}}class A extends t{constructor(t){super("Invalid Duration: "+t.toMessage())}}class j extends t{}class _ extends t{constructor(t){super("Invalid unit "+t)}}class o extends t{}class r extends t{constructor(){super("Zone is an abstract class")}}var e="numeric",n="short",s="long";const U={year:e,month:e,day:e},$={year:e,month:n,day:e},H={year:e,month:n,day:e,weekday:n},W={year:e,month:s,day:e},R={year:e,month:s,day:e,weekday:s},J={hour:e,minute:e},Y={hour:e,minute:e,second:e},P={hour:e,minute:e,second:e,timeZoneName:n},G={hour:e,minute:e,second:e,timeZoneName:s},B={hour:e,minute:e,hourCycle:"h23"},Q={hour:e,minute:e,second:e,hourCycle:"h23"},K={hour:e,minute:e,second:e,hourCycle:"h23",timeZoneName:n},X={hour:e,minute:e,second:e,hourCycle:"h23",timeZoneName:s},tt={year:e,month:e,day:e,hour:e,minute:e},et={year:e,month:e,day:e,hour:e,minute:e,second:e},rt={year:e,month:n,day:e,hour:e,minute:e},nt={year:e,month:n,day:e,hour:e,minute:e,second:e},st={year:e,month:n,day:e,weekday:n,hour:e,minute:e},it={year:e,month:s,day:e,hour:e,minute:e,timeZoneName:n},at={year:e,month:s,day:e,hour:e,minute:e,second:e,timeZoneName:n},ot={year:e,month:s,day:e,weekday:s,hour:e,minute:e,timeZoneName:s},ut={year:e,month:s,day:e,weekday:s,hour:e,minute:e,second:e,timeZoneName:s};function O(t){return void 0===t}function c(t){return"number"==typeof t}function lt(t){return"number"==typeof t&&t%1==0}function ct(t){return"[object Date]"===Object.prototype.toString.call(t)}function ht(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function dt(t){return Array.isArray(t)?t:[t]}function mt(t,r,n){if(0!==t.length)return t.reduce((t,e)=>{e=[r(e),e];return t&&n(t[0],e[0])===t[0]?t:e},null)[1]}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e,r){return lt(t)&&e<=t&&t<=r}function l(t,e=2){let r;return r=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0")}function d(t){if(!O(t)&&null!==t&&""!==t)return parseInt(t,10)}function m(t){if(!O(t)&&null!==t&&""!==t)return parseFloat(t)}function ft(t){if(!O(t)&&null!==t&&""!==t)return t=1e3*parseFloat("0."+t),Math.floor(t)}function yt(t,e,r=!1){const n=10**e,s=r?Math.trunc:Math.round;return s(t*n)/n}function gt(t){return t%4==0&&(t%100!=0||t%400==0)}function wt(t){return gt(t)?366:365}function vt(t,e){var r,n=(n=e-1)-(r=12)*Math.floor(n/r)+1;return 2==n?gt(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function pt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&0<=t.year&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function Tt(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,t=t-1,t=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return 4==e||3==t?53:52}function St(t){return 99<t?t:60<t?1900+t:2e3+t}function Ot(t,e,r,n=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);t={timeZoneName:e,...i},n=new Intl.DateTimeFormat(r,t).formatToParts(s).find(t=>"timezonename"===t.type.toLowerCase());return n?n.value:null}function bt(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);t=parseInt(e,10)||0,e=r<0||Object.is(r,-0)?-t:t;return 60*r+e}function kt(t){var e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new o("Invalid unit value "+t);return e}function Mt(t,e){const r={};for(const s in t){var n;!h(t,s)||null!=(n=t[s])&&(r[e(s)]=kt(n))}return r}function Nt(t,e){var r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=0<=t?"+":"-";switch(e){case"short":return s+l(r,2)+":"+l(n,2);case"narrow":return s+r+(0<n?":"+n:"");case"techie":return s+l(r,2)+l(n,2);default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Dt(t){return r=t,["hour","minute","second","millisecond"].reduce((t,e)=>(t[e]=r[e],t),{});var r}n=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z