test-action-debian-package/node_modules/luxon/build/global/luxon.min.js

1 line
68 KiB
JavaScript
Raw Normal View History

2020-03-26 14:37:35 +00:00
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 a(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t,n){return(u=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(e){return}}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function t(e){var r="function"==typeof Map?new Map:void 0;return(t=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return u(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)})(e)}var n=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(t(Error)),c=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return a(e,t),e}(n),f=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return a(e,t),e}(n),l=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return a(e,t),e}(n),x=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(n),d=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return a(e,t),e}(n),h=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(n),m=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return a(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},T={hour:y,minute:y,second:y,timeZoneName:v},M={hour:y,minute:y,second:y,timeZoneName:g},N={hour:y,minute:y,hour12:!1},D={hour:y,minute:y,second:y,hour12:!1},E={hour:y,minute:y,second:y,hour12:!1,timeZoneName:v},I={hour:y,minute:y,second:y,hour12:!1,timeZoneName:g},V={year:y,month:y,day:y,hour:y,minute:y},F={year:y,month:y,day:y,hour:y,minute:y,second:y},Z={year:y,month:v,day:y,hour:y,minute:y},C={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 L(){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(e){if(!H(e)&&null!==e&&""!==e){