1 line
68 KiB
JavaScript
1 line
68 KiB
JavaScript
|
var luxon=function(e){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t,n){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i}).apply(null,arguments)}function t(e){var n="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,a(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),u(t,e)})(e)}var n=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(t(Error)),c=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return o(e,t),e}(n),l=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return o(e,t),e}(n),f=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return o(e,t),e}(n),N=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(n),d=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return o(e,t),e}(n),h=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(n),m=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return o(t,e),t}(n),y="numeric",v="short",g="long",p={year:y,month:y,day:y},w={year:y,month:v,day:y},k={year:y,month:g,day:y},b={year:y,month:g,day:y,weekday:g},O={hour:y,minute:y},S={hour:y,minute:y,second:y},M={hour:y,minute:y,second:y,timeZoneName:v},D={hour:y,minute:y,second:y,timeZoneName:g},E={hour:y,minute:y,hour12:!1},I={hour:y,minute:y,second:y,hour12:!1},V={hour:y,minute:y,second:y,hour12:!1,timeZoneName:v},L={hour:y,minute:y,second:y,hour12:!1,timeZoneName:g},x={year:y,month:y,day:y,hour:y,minute:y},F={year:y,month:y,day:y,hour:y,minute:y,second:y},C={year:y,month:v,day:y,hour:y,minute:y},Z={year:y,month:v,day:y,hour:y,minute:y,second:y},j={year:y,month:v,day:y,weekday:v,hour:y,minute:y},A={year:y,month:g,day:y,hour:y,minute:y,timeZoneName:v},z={year:y,month:g,day:y,hour:y,minute:y,second:y,timeZoneName:v},_={year:y,month:g,day:y,weekday:g,hour:y,minute:y,timeZoneName:g},q={year:y,month:g,day:y,weekday:g,hour:y,minute:y,second:y,timeZoneName:g};function H(e){return void 0===e}function U(e){return"number"==typeof e}function R(e){return"number"==typeof e&&e%1==0}function T(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function W(){return!H(Intl.DateTimeFormat.prototype.formatToParts)}function P(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function J(e,r,i){if(0!==e.length)return e.reduce(function(e,t){var n=[r(t),t];return e&&i(e[0],n[0])===e[0]?e:n},null)[1]}function Y(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function G(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $(e,t,n){return R(e)&&t<=e&&e<=n}function B(e,t){return void 0===t&&(t=2),e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString()}function Q(e){return H(e)||null===e||""===e?void 0:parseInt(e,10)}function K
|