@js-joda/core 6.3.0 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- //! @version @js-joda/core - 6.3.0
1
+ //! @version @js-joda/core - 6.3.1
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
5
- var JSJoda=function(t){"use strict";function e(t,e,n){function i(t){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,e&&e.apply(this,arguments),this.toString=function(){return this.name+": "+this.message}}return void 0===n&&(n=Error),i.prototype=Object.create(n.prototype),i.prototype.name=t,i.prototype.constructor=i,i}var n=e("DateTimeException",(function(t,e){void 0===e&&(e=null);var n=t||this.name;null!==e&&e instanceof Error&&(n+="\n-------\nCaused by: "+e.stack+"\n-------\n");this.message=n})),i=e("DateTimeParseException",(function(t,e,n,i){void 0===e&&(e="");void 0===n&&(n=0);void 0===i&&(i=null);var r=t||this.name;r+=": "+e+", at index: "+n,null!==i&&i instanceof Error&&(r+="\n-------\nCaused by: "+i.stack+"\n-------\n");this.message=r,this.parsedString=function(){return e},this.errorIndex=function(){return n}})),r=e("UnsupportedTemporalTypeException",null,n),s=e("ArithmeticException"),o=e("IllegalArgumentException"),a=e("IllegalStateException"),u=e("NullPointerException");function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function l(t,e,n){if(!t)throw n?new n(e):new Error(e)}function _(t,e){if(null==t)throw new u(e+" must not be null");return t}function d(t,e,n){if(!(t instanceof e))throw new o(n+" must be an instance of "+(e.name?e.name:e)+(t&&t.constructor&&t.constructor.name?", but is "+t.constructor.name:""));return t}function p(t){throw new TypeError('abstract method "'+t+'" is not implemented')}var O=Object.freeze({__proto__:null,abstractMethodFail:p,assert:l,requireInstance:d,requireNonNull:_}),E=9007199254740991,S=-9007199254740991,m=function(){function t(){}return t.intDiv=function(e,n){var i=e/n;return i=t.roundDown(i),t.safeZero(i)},t.intMod=function(e,n){var i=e-t.intDiv(e,n)*n;return i=t.roundDown(i),t.safeZero(i)},t.roundDown=function(t){return t<0?Math.ceil(t):Math.floor(t)},t.floorDiv=function(e,n){var i=Math.floor(e/n);return t.safeZero(i)},t.floorMod=function(e,n){var i=e-t.floorDiv(e,n)*n;return t.safeZero(i)},t.safeAdd=function(e,n){if(t.verifyInt(e),t.verifyInt(n),0===e)return t.safeZero(n);if(0===n)return t.safeZero(e);var i=t.safeToInt(e+n);if(i===e||i===n)throw new s("Invalid addition beyond MAX_SAFE_INTEGER!");return i},t.safeSubtract=function(e,n){return t.verifyInt(e),t.verifyInt(n),0===e&&0===n?0:0===e?t.safeZero(-1*n):0===n?t.safeZero(e):t.safeToInt(e-n)},t.safeMultiply=function(e,n){if(t.verifyInt(e),t.verifyInt(n),1===e)return t.safeZero(n);if(1===n)return t.safeZero(e);if(0===e||0===n)return 0;var i=t.safeToInt(e*n);if(i/n!==e||e===S&&-1===n||n===S&&-1===e)throw new s("Multiplication overflows: "+e+" * "+n);return i},t.parseInt=function(e){var n=parseInt(e);return t.safeToInt(n)},t.safeToInt=function(e){return t.verifyInt(e),t.safeZero(e)},t.verifyInt=function(t){if(null==t)throw new s("Invalid value: '"+t+"', using null or undefined as argument");if(isNaN(t))throw new s("Invalid int value, using NaN as argument");if(!Number.isInteger(Number(t)))throw new s("Invalid value: '"+t+"' is a float");if(t>E||t<S)throw new s("Calculation overflows an int: "+t)},t.safeZero=function(t){return 0===t?0:+t},t.compareNumbers=function(t,e){return t<e?-1:t>e?1:0},t.smi=function(t){return t>>>1&1073741824|3221225471&t},t.hash=function(e){if(e!=e||e===1/0)return 0;for(var n=e;e>4294967295;)n^=e/=4294967295;return t.smi(n)},t.hashCode=function(){for(var e=17,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];for(var s=0,o=i;s<o.length;s++){var a=o[s];e=(e<<5)-e+t.hash(a)}return t.hash(e)},t}();m.MAX_SAFE_INTEGER=E,m.MIN_SAFE_INTEGER=S;var N=function(){function t(t){this._name=t}var e=t.prototype;return e.equals=function(t){return this===t},e.toString=function(){return this._name},e.toJSON=function(){return this.toString()},t}(),D=function(){function t(){}var e=t.prototype;return e.get=function(t){p("get")},e.units=function(){p("units")},e.addTo=function(t){p("addTo")},e.subtractFrom=function(t){p("subtractFrom")},t}();"undefined"!=typeof Symbol&&Symbol.toPrimitive&&(D.prototype[Symbol.toPrimitive]=function(t){if("number"!==t)return this.toString();throw new TypeError("A conversion from TemporalAmount to a number is not allowed. To compare use the methods .equals(), .compareTo(), .isBefore() or one that is more suitable to your use case.")});var A=function(){function t(){}var e=t.prototype;return e.duration=function(){p("duration")},e.isDurationEstimated=function(){p("isDurationEstimated")},e.isDateBased=function(){p("isDateBased")},e.isTimeBased=function(){p("isTimeBased")},e.isSupportedBy=function(t){p("isSupportedBy")},e.addTo=function(t,e){p("addTo")},e.between=function(t,e){p("between")},t}(),T=function(t){function e(e,n){var i;return(i=t.call(this)||this)._seconds=m.safeToInt(e),i._nanos=m.safeToInt(n),i}f(e,t),e.ofDays=function(t){return e._create(m.safeMultiply(t,fe.SECONDS_PER_DAY),0)},e.ofHours=function(t){return e._create(m.safeMultiply(t,fe.SECONDS_PER_HOUR),0)},e.ofMinutes=function(t){return e._create(m.safeMultiply(t,fe.SECONDS_PER_MINUTE),0)},e.ofSeconds=function(t,n){void 0===n&&(n=0);var i=m.safeAdd(t,m.floorDiv(n,fe.NANOS_PER_SECOND)),r=m.floorMod(n,fe.NANOS_PER_SECOND);return e._create(i,r)},e.ofMillis=function(t){var n=m.intDiv(t,1e3),i=m.intMod(t,1e3);return i<0&&(i+=1e3,n--),e._create(n,1e6*i)},e.ofNanos=function(t){var e=m.intDiv(t,fe.NANOS_PER_SECOND),n=m.intMod(t,fe.NANOS_PER_SECOND);return n<0&&(n+=fe.NANOS_PER_SECOND,e--),this._create(e,n)},e.of=function(t,n){return e.ZERO.plus(t,n)},e.from=function(t){_(t,"amount"),d(t,D);var n=e.ZERO;return t.units().forEach((function(e){n=n.plus(t.get(e),e)})),n},e.between=function(t,e){_(t,"startInclusive"),_(e,"endExclusive");var n=t.until(e,w.SECONDS),i=0;if(t.isSupported(R.NANO_OF_SECOND)&&e.isSupported(R.NANO_OF_SECOND))try{var r=t.getLong(R.NANO_OF_SECOND);if(i=e.getLong(R.NANO_OF_SECOND)-r,n>0&&i<0)i+=fe.NANOS_PER_SECOND;else if(n<0&&i>0)i-=fe.NANOS_PER_SECOND;else if(0===n&&0!==i){var s=e.with(R.NANO_OF_SECOND,r);n=t.until(s,w.SECONDS)}}catch(t){}return this.ofSeconds(n,i)},e.parse=function(t){_(t,"text");var n=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(t);if(null!==n&&"T"===n[3]==!1){var r="-"===n[1],s=n[2],o=n[4],a=n[5],u=n[6],h=n[7];if(null!=s||null!=o||null!=a||null!=u){var f=e._parseNumber(t,s,fe.SECONDS_PER_DAY,"days"),c=e._parseNumber(t,o,fe.SECONDS_PER_HOUR,"hours"),l=e._parseNumber(t,a,fe.SECONDS_PER_MINUTE,"minutes"),d=e._parseNumber(t,u,1,"seconds"),p=null!=u&&"-"===u.charAt(0),O=e._parseFraction(t,h,p?-1:1);try{return e._create(r,f,c,l,d,O)}catch(e){throw new i("Text cannot be parsed to a Duration: overflow",t,0,e)}}}throw new i("Text cannot be parsed to a Duration",t,0)},e._parseNumber=function(t,e,n,r){if(null==e)return 0;try{return"+"===e[0]&&(e=e.substring(1)),m.safeMultiply(parseFloat(e),n)}catch(e){throw new i("Text cannot be parsed to a Duration: "+r,t,0,e)}},e._parseFraction=function(t,e,n){return null==e||0===e.length?0:(e=(e+"000000000").substring(0,9),parseFloat(e)*n)},e._create=function(){return arguments.length<=2?e._createSecondsNanos(arguments[0],arguments[1]):e._createNegateDaysHoursMinutesSecondsNanos(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},e._createNegateDaysHoursMinutesSecondsNanos=function(t,n,i,r,s,o){var a=m.safeAdd(n,m.safeAdd(i,m.safeAdd(r,s)));return t?e.ofSeconds(a,o).negated():e.ofSeconds(a,o)},e._createSecondsNanos=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=0),0===t&&0===n?e.ZERO:new e(t,n)};var n=e.prototype;return n.get=function(t){if(t===w.SECONDS)return this._seconds;if(t===w.NANOS)return this._nanos;throw new r("Unsupported unit: "+t)},n.units=function(){return[w.SECONDS,w.NANOS]},n.isZero=function(){return 0===this._seconds&&0===this._nanos},n.isNegative=function(){return this._seconds<0},n.seconds=function(){return this._seconds},n.nano=function(){return this._nanos},n.withSeconds=function(t){return e._create(t,this._nanos)},n.withNanos=function(t){return R.NANO_OF_SECOND.checkValidIntValue(t),e._create(this._seconds,t)},n.plusDuration=function(t){return _(t,"duration"),this.plus(t.seconds(),t.nano())},n.plus=function(t,e){return 1===arguments.length?this.plusDuration(t):2===arguments.length&&e instanceof A?this.plusAmountUnit(t,e):this.plusSecondsNanos(t,e)},n.plusAmountUnit=function(t,e){if(_(t,"amountToAdd"),_(e,"unit"),e===w.DAYS)return this.plusSecondsNanos(m.safeMultiply(t,fe.SECONDS_PER_DAY),0);if(e.isDurationEstimated())throw new r("Unit must not have an estimated duration");if(0===t)return this;if(e instanceof w){switch(e){case w.NANOS:return this.plusNanos(t);case w.MICROS:return this.plusSecondsNanos(1e3*m.intDiv(t,1e9),1e3*m.intMod(t,1e9));case w.MILLIS:return this.plusMillis(t);case w.SECONDS:return this.plusSeconds(t)}return this.plusSecondsNanos(m.safeMultiply(e.duration().seconds(),t),0)}var n=e.duration().multipliedBy(t);return this.plusSecondsNanos(n.seconds(),n.nano())},n.plusDays=function(t){return this.plusSecondsNanos(m.safeMultiply(t,fe.SECONDS_PER_DAY),0)},n.plusHours=function(t){return this.plusSecondsNanos(m.safeMultiply(t,fe.SECONDS_PER_HOUR),0)},n.plusMinutes=function(t){return this.plusSecondsNanos(m.safeMultiply(t,fe.SECONDS_PER_MINUTE),0)},n.plusSeconds=function(t){return this.plusSecondsNanos(t,0)},n.plusMillis=function(t){return this.plusSecondsNanos(m.intDiv(t,1e3),1e6*m.intMod(t,1e3))},n.plusNanos=function(t){return this.plusSecondsNanos(0,t)},n.plusSecondsNanos=function(t,n){if(_(t,"secondsToAdd"),_(n,"nanosToAdd"),0===t&&0===n)return this;var i=m.safeAdd(this._seconds,t);i=m.safeAdd(i,m.intDiv(n,fe.NANOS_PER_SECOND)),n=m.intMod(n,fe.NANOS_PER_SECOND);var r=m.safeAdd(this._nanos,n);return e.ofSeconds(i,r)},n.minus=function(t,e){return 1===arguments.length?this.minusDuration(t):this.minusAmountUnit(t,e)},n.minusDuration=function(t){_(t,"duration");var e=t.seconds(),n=t.nano();return e===S?this.plus(E,-n):this.plus(-e,-n)},n.minusAmountUnit=function(t,e){return _(t,"amountToSubtract"),_(e,"unit"),t===S?this.plusAmountUnit(E,e):this.plusAmountUnit(-t,e)},n.minusDays=function(t){return t===S?this.plusDays(E):this.plusDays(-t)},n.minusHours=function(t){return t===S?this.plusHours(E):this.plusHours(-t)},n.minusMinutes=function(t){return t===S?this.plusMinutes(E):this.plusMinutes(-t)},n.minusSeconds=function(t){return t===S?this.plusSeconds(E):this.plusSeconds(-t)},n.minusMillis=function(t){return t===S?this.plusMillis(E):this.plusMillis(-t)},n.minusNanos=function(t){return t===S?this.plusNanos(E):this.plusNanos(-t)},n.multipliedBy=function(t){if(0===t)return e.ZERO;if(1===t)return this;var n=m.safeMultiply(this._seconds,t),i=m.safeMultiply(this._nanos,t);return n+=m.intDiv(i,fe.NANOS_PER_SECOND),i=m.intMod(i,fe.NANOS_PER_SECOND),e.ofSeconds(n,i)},n.dividedBy=function(t){if(0===t)throw new s("Cannot divide by zero");if(1===t)return this;var n=this._seconds,i=this._nanos;n<0&&i>0&&(n+=1,i-=fe.NANOS_PER_SECOND);var r=m.intDiv(n,t),o=m.intMod(n,t),a=m.intDiv(o*fe.NANOS_PER_SECOND+i,t);return e.ofSeconds(r,a)},n.negated=function(){return this.multipliedBy(-1)},n.abs=function(){return this.isNegative()?this.negated():this},n.addTo=function(t){return _(t,"temporal"),0!==this._seconds&&(t=t.plus(this._seconds,w.SECONDS)),0!==this._nanos&&(t=t.plus(this._nanos,w.NANOS)),t},n.subtractFrom=function(t){return _(t,"temporal"),0!==this._seconds&&(t=t.minus(this._seconds,w.SECONDS)),0!==this._nanos&&(t=t.minus(this._nanos,w.NANOS)),t},n.toDays=function(){return m.intDiv(this._seconds,fe.SECONDS_PER_DAY)},n.toHours=function(){return m.intDiv(this._seconds,fe.SECONDS_PER_HOUR)},n.toMinutes=function(){return m.intDiv(this._seconds,fe.SECONDS_PER_MINUTE)},n.toMillis=function(){var t=Math.round(m.safeMultiply(this._seconds,1e3));return t=m.safeAdd(t,m.intDiv(this._nanos,1e6))},n.toNanos=function(){var t=m.safeMultiply(this._seconds,fe.NANOS_PER_SECOND);return t=m.safeAdd(t,this._nanos)},n.toDaysPart=function(){return m.intDiv(this._seconds,fe.SECONDS_PER_DAY)},n.toHoursPart=function(){return m.intMod(this.toHours(),fe.HOURS_PER_DAY)},n.toMinutesPart=function(){return m.intMod(this.toMinutes(),fe.MINUTES_PER_HOUR)},n.toSecondsPart=function(){return m.intMod(this._seconds,fe.SECONDS_PER_MINUTE)},n.toMillisPart=function(){return m.intDiv(this._nanos,1e6)},n.toNanosPart=function(){return this._nanos},n.compareTo=function(t){_(t,"otherDuration"),d(t,e,"otherDuration");var n=m.compareNumbers(this._seconds,t.seconds());return 0!==n?n:this._nanos-t.nano()},n.equals=function(t){return this===t||t instanceof e&&(this.seconds()===t.seconds()&&this.nano()===t.nano())},n.toString=function(){if(this===e.ZERO)return"PT0S";var t=this._seconds<0&&this._nanos>0,n=t?this._seconds+1:this._seconds,i=t?fe.NANOS_PER_SECOND-this._nanos:this._nanos,r=m.intDiv(n,fe.SECONDS_PER_HOUR),s=m.intDiv(m.intMod(n,fe.SECONDS_PER_HOUR),fe.SECONDS_PER_MINUTE),o=m.intMod(n,fe.SECONDS_PER_MINUTE),a="PT";if(0!==r&&(a+=r+"H"),0!==s&&(a+=s+"M"),0===o&&0===i&&a.length>2)return a;if(a+=0===o&&t?"-0":""+o,i>0){for(var u=""+i;u.length<9;)u="0"+u;for(;"0"===u.charAt(u.length-1);)u=u.slice(0,u.length-1);a+="."+u}return a+="S"},n.toJSON=function(){return this.toString()},e}(D);var v=function(){};var w=function(t){function e(e,n){var i;return(i=t.call(this)||this)._name=e,i._duration=n,i}f(e,t);var n=e.prototype;return n.duration=function(){return this._duration},n.isDurationEstimated=function(){return this.isDateBased()||this===e.FOREVER},n.isDateBased=function(){return this.compareTo(e.DAYS)>=0&&this!==e.FOREVER},n.isTimeBased=function(){return this.compareTo(e.DAYS)<0},n.isSupportedBy=function(t){if(this===e.FOREVER)return!1;try{return t.plus(1,this),!0}catch(e){try{return t.plus(-1,this),!0}catch(t){return!1}}},n.addTo=function(t,e){return t.plus(e,this)},n.between=function(t,e){return t.until(e,this)},n.toString=function(){return this._name},n.compareTo=function(t){return this.duration().compareTo(t.duration())},e}(A);var y=function(){function t(){}var e=t.prototype;return e.isDateBased=function(){p("isDateBased")},e.isTimeBased=function(){p("isTimeBased")},e.baseUnit=function(){p("baseUnit")},e.rangeUnit=function(){p("rangeUnit")},e.range=function(){p("range")},e.rangeRefinedBy=function(t){p("rangeRefinedBy")},e.getFrom=function(t){p("getFrom")},e.adjustInto=function(t,e){p("adjustInto")},e.isSupportedBy=function(t){p("isSupportedBy")},e.displayName=function(){p("displayName")},e.equals=function(t){p("equals")},e.name=function(){p("name")},t}(),M=function(){function t(t,e,n,i){l(!(t>e),"Smallest minimum value '"+t+"' must be less than largest minimum value '"+e+"'",o),l(!(n>i),"Smallest maximum value '"+n+"' must be less than largest maximum value '"+i+"'",o),l(!(e>i),"Minimum value '"+e+"' must be less than maximum value '"+i+"'",o),this._minSmallest=t,this._minLargest=e,this._maxLargest=i,this._maxSmallest=n}var e=t.prototype;return e.isFixed=function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest},e.minimum=function(){return this._minSmallest},e.largestMinimum=function(){return this._minLargest},e.maximum=function(){return this._maxLargest},e.smallestMaximum=function(){return this._maxSmallest},e.isValidValue=function(t){return this.minimum()<=t&&t<=this.maximum()},e.checkValidValue=function(t,e){return this.isValidValue(t)?t:l(!1,null!=e?"Invalid value for "+e+" (valid values "+this.toString()+"): "+t:"Invalid value (valid values "+this.toString()+"): "+t,n)},e.checkValidIntValue=function(t,e){if(!1===this.isValidIntValue(t))throw new n("Invalid int value for "+e+": "+t);return t},e.isValidIntValue=function(t){return this.isIntValue()&&this.isValidValue(t)},e.isIntValue=function(){return this.minimum()>=m.MIN_SAFE_INTEGER&&this.maximum()<=m.MAX_SAFE_INTEGER},e.equals=function(e){return e===this||e instanceof t&&(this._minSmallest===e._minSmallest&&this._minLargest===e._minLargest&&this._maxSmallest===e._maxSmallest&&this._maxLargest===e._maxLargest)},e.hashCode=function(){return m.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)},e.toString=function(){var t=this.minimum()+(this.minimum()!==this.largestMinimum()?"/"+this.largestMinimum():"");return t+=" - ",t+=this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/"+this.maximum():"")},t.of=function(){return 2===arguments.length?new t(arguments[0],arguments[0],arguments[1],arguments[1]):3===arguments.length?new t(arguments[0],arguments[0],arguments[1],arguments[2]):4===arguments.length?new t(arguments[0],arguments[1],arguments[2],arguments[3]):l(!1,"Invalid number of arguments "+arguments.length,o)},t}(),R=function(t){function e(e,n,i,r){var s;return(s=t.call(this)||this)._name=e,s._baseUnit=n,s._rangeUnit=i,s._range=r,s}f(e,t),e.byName=function(t){for(var n in e)if(e[n]&&e[n]instanceof e&&e[n].name()===t)return e[n]};var n=e.prototype;return n.name=function(){return this._name},n.baseUnit=function(){return this._baseUnit},n.rangeUnit=function(){return this._rangeUnit},n.range=function(){return this._range},n.displayName=function(){return this.toString()},n.checkValidValue=function(t){return this.range().checkValidValue(t,this)},n.checkValidIntValue=function(t){return this.range().checkValidIntValue(t,this)},n.isDateBased=function(){return this===e.DAY_OF_WEEK||this===e.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===e.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===e.DAY_OF_MONTH||this===e.DAY_OF_YEAR||this===e.EPOCH_DAY||this===e.ALIGNED_WEEK_OF_MONTH||this===e.ALIGNED_WEEK_OF_YEAR||this===e.MONTH_OF_YEAR||this===e.PROLEPTIC_MONTH||this===e.YEAR_OF_ERA||this===e.YEAR||this===e.ERA},n.isTimeBased=function(){return this===e.NANO_OF_SECOND||this===e.NANO_OF_DAY||this===e.MICRO_OF_SECOND||this===e.MICRO_OF_DAY||this===e.MILLI_OF_SECOND||this===e.MILLI_OF_DAY||this===e.SECOND_OF_MINUTE||this===e.SECOND_OF_DAY||this===e.MINUTE_OF_HOUR||this===e.MINUTE_OF_DAY||this===e.HOUR_OF_AMPM||this===e.CLOCK_HOUR_OF_AMPM||this===e.HOUR_OF_DAY||this===e.CLOCK_HOUR_OF_DAY||this===e.AMPM_OF_DAY},n.rangeRefinedBy=function(t){return t.range(this)},n.getFrom=function(t){return t.getLong(this)},n.toString=function(){return this.name()},n.equals=function(t){return this===t},n.adjustInto=function(t,e){return t.with(this,e)},n.isSupportedBy=function(t){return t.isSupported(this)},e}(y);var g=function(){function t(){}return t.zoneId=function(){return t.ZONE_ID},t.chronology=function(){return t.CHRONO},t.precision=function(){return t.PRECISION},t.zone=function(){return t.ZONE},t.offset=function(){return t.OFFSET},t.localDate=function(){return t.LOCAL_DATE},t.localTime=function(){return t.LOCAL_TIME},t}(),I=function(){function t(){}var e=t.prototype;return e.query=function(t){return t===g.zoneId()||t===g.chronology()||t===g.precision()?null:t.queryFrom(this)},e.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},e.getLong=function(t){p("getLong")},e.range=function(t){if(t instanceof R){if(this.isSupported(t))return t.range();throw new r("Unsupported field: "+t)}return t.rangeRefinedBy(this)},e.isSupported=function(t){p("isSupported")},t}(),F=function(t){function e(){return t.apply(this,arguments)||this}return f(e,t),e.prototype.queryFrom=function(t){p("queryFrom")},e}(N);function C(t,e){var n=function(t){function e(){return t.apply(this,arguments)||this}return f(e,t),e}(F);return n.prototype.queryFrom=e,new n(t)}var Y,L=function(t){function e(e,n){var i;return(i=t.call(this)||this)._ordinal=e,i._name=n,i}f(e,t);var i=e.prototype;return i.ordinal=function(){return this._ordinal},i.name=function(){return this._name},e.values=function(){return Y.slice()},e.valueOf=function(t){for(var n=0;n<Y.length&&Y[n].name()!==t;n++);return e.of(n+1)},e.of=function(t){if(t<1||t>7)throw new n("Invalid value for DayOfWeek: "+t);return Y[t-1]},e.from=function(t){if(l(null!=t,"temporal",u),t instanceof e)return t;try{return e.of(t.get(R.DAY_OF_WEEK))}catch(e){throw e instanceof n?new n("Unable to obtain DayOfWeek from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""),e):e}},i.value=function(){return this._ordinal+1},i.displayName=function(t,e){throw new o("Pattern using (localized) text not implemented yet!")},i.isSupported=function(t){return t instanceof R?t===R.DAY_OF_WEEK:null!=t&&t.isSupportedBy(this)},i.range=function(t){if(t===R.DAY_OF_WEEK)return t.range();if(t instanceof R)throw new r("Unsupported field: "+t);return t.rangeRefinedBy(this)},i.get=function(t){return t===R.DAY_OF_WEEK?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(t===R.DAY_OF_WEEK)return this.value();if(t instanceof R)throw new r("Unsupported field: "+t);return t.getFrom(this)},i.plus=function(t){var e=m.floorMod(t,7);return Y[m.floorMod(this._ordinal+(e+7),7)]},i.minus=function(t){return this.plus(-1*m.floorMod(t,7))},i.query=function(t){return t===g.precision()?w.DAYS:t===g.localDate()||t===g.localTime()||t===g.chronology()||t===g.zone()||t===g.zoneId()||t===g.offset()?null:(l(null!=t,"query",u),t.queryFrom(this))},i.adjustInto=function(t){return _(t,"temporal"),t.with(R.DAY_OF_WEEK,this.value())},i.equals=function(t){return this===t},i.toString=function(){return this._name},i.compareTo=function(t){return _(t,"other"),d(t,e,"other"),this._ordinal-t._ordinal},i.toJSON=function(){return this.toString()},e}(I);var P,U=function(t){function e(e,n){var i;return(i=t.call(this)||this)._value=m.safeToInt(e),i._name=n,i}f(e,t);var i=e.prototype;return i.value=function(){return this._value},i.ordinal=function(){return this._value-1},i.name=function(){return this._name},i.displayName=function(t,e){throw new o("Pattern using (localized) text not implemented yet!")},i.isSupported=function(t){return null!==t&&(t instanceof R?t===R.MONTH_OF_YEAR:null!=t&&t.isSupportedBy(this))},i.get=function(t){return t===R.MONTH_OF_YEAR?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(t===R.MONTH_OF_YEAR)return this.value();if(t instanceof R)throw new r("Unsupported field: "+t);return t.getFrom(this)},i.plus=function(t){var n=m.intMod(t,12)+12,i=m.intMod(this.value()+n,12);return i=0===i?12:i,e.of(i)},i.minus=function(t){return this.plus(-1*m.intMod(t,12))},i.length=function(t){switch(this){case e.FEBRUARY:return t?29:28;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},i.minLength=function(){switch(this){case e.FEBRUARY:return 28;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},i.maxLength=function(){switch(this){case e.FEBRUARY:return 29;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},i.firstDayOfYear=function(t){var n=t?1:0;switch(this){case e.JANUARY:return 1;case e.FEBRUARY:return 32;case e.MARCH:return 60+n;case e.APRIL:return 91+n;case e.MAY:return 121+n;case e.JUNE:return 152+n;case e.JULY:return 182+n;case e.AUGUST:return 213+n;case e.SEPTEMBER:return 244+n;case e.OCTOBER:return 274+n;case e.NOVEMBER:return 305+n;case e.DECEMBER:default:return 335+n}},i.firstMonthOfQuarter=function(){switch(this){case e.JANUARY:case e.FEBRUARY:case e.MARCH:return e.JANUARY;case e.APRIL:case e.MAY:case e.JUNE:return e.APRIL;case e.JULY:case e.AUGUST:case e.SEPTEMBER:return e.JULY;case e.OCTOBER:case e.NOVEMBER:case e.DECEMBER:default:return e.OCTOBER}},i.query=function(e){return l(null!=e,"query() parameter must not be null",n),e===g.chronology()?re.INSTANCE:e===g.precision()?w.MONTHS:t.prototype.query.call(this,e)},i.toString=function(){switch(this){case e.JANUARY:return"JANUARY";case e.FEBRUARY:return"FEBRUARY";case e.MARCH:return"MARCH";case e.APRIL:return"APRIL";case e.MAY:return"MAY";case e.JUNE:return"JUNE";case e.JULY:return"JULY";case e.AUGUST:return"AUGUST";case e.SEPTEMBER:return"SEPTEMBER";case e.OCTOBER:return"OCTOBER";case e.NOVEMBER:return"NOVEMBER";case e.DECEMBER:return"DECEMBER";default:return"unknown Month, value: "+this.value()}},i.toJSON=function(){return this.toString()},i.adjustInto=function(t){return t.with(R.MONTH_OF_YEAR,this.value())},i.compareTo=function(t){return _(t,"other"),d(t,e,"other"),this._value-t._value},i.equals=function(t){return this===t},e.valueOf=function(t){for(var n=0;n<P.length&&P[n].name()!==t;n++);return e.of(n+1)},e.values=function(){return P.slice()},e.of=function(t){return(t<1||t>12)&&l(!1,"Invalid value for MonthOfYear: "+t,n),P[t-1]},e.from=function(t){if(t instanceof e)return t;try{return e.of(t.get(R.MONTH_OF_YEAR))}catch(e){throw new n("Unable to obtain Month from TemporalAccessor: "+t+" of type "+(t&&null!=t.constructor?t.constructor.name:""),e)}},e}(I);var V=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,b=function(t){function e(n,i,r){var s;s=t.call(this)||this;var o=m.safeToInt(n),a=m.safeToInt(i),u=m.safeToInt(r);return 0===o&&0===a&&0===u?(e.ZERO||(s._years=o,s._months=a,s._days=u,e.ZERO=s),e.ZERO||h(s)):(s._years=o,s._months=a,s._days=u,s)}f(e,t),e.ofYears=function(t){return e.create(t,0,0)},e.ofMonths=function(t){return e.create(0,t,0)},e.ofWeeks=function(t){return e.create(0,0,m.safeMultiply(t,7))},e.ofDays=function(t){return e.create(0,0,t)},e.of=function(t,n,i){return e.create(t,n,i)},e.from=function(t){if(t instanceof e)return t;_(t,"amount");for(var i=0,r=0,s=0,o=t.units(),a=0;a<o.length;a++){var u=o[a],h=t.get(u);if(u===w.YEARS)i=m.safeToInt(h);else if(u===w.MONTHS)r=m.safeToInt(h);else{if(u!==w.DAYS)throw new n("Unit must be Years, Months or Days, but was "+u);s=m.safeToInt(h)}}return e.create(i,r,s)},e.between=function(t,e){return _(t,"startDate"),_(e,"endDate"),d(t,ae,"startDate"),d(e,ae,"endDate"),t.until(e)},e.parse=function(t){_(t,"text");try{return e._parse(t)}catch(e){throw e instanceof s?new i("Text cannot be parsed to a Period",t,0,e):e}},e._parse=function(t){var n=V.exec(t);if(null!=n){var r="-"===n[1]?-1:1,s=n[2],o=n[3],a=n[4],u=n[5];if(null!=s||null!=o||null!=a||null!=u){var h=e._parseNumber(t,s,r),f=e._parseNumber(t,o,r),c=e._parseNumber(t,a,r),l=e._parseNumber(t,u,r);return l=m.safeAdd(l,m.safeMultiply(c,7)),e.create(h,f,l)}}throw new i("Text cannot be parsed to a Period",t,0)},e._parseNumber=function(t,e,n){if(null==e)return 0;var i=m.parseInt(e);return m.safeMultiply(i,n)},e.create=function(t,n,i){return new e(t,n,i)};var o=e.prototype;return o.units=function(){return[w.YEARS,w.MONTHS,w.DAYS]},o.chronology=function(){return re.INSTANCE},o.get=function(t){if(t===w.YEARS)return this._years;if(t===w.MONTHS)return this._months;if(t===w.DAYS)return this._days;throw new r("Unsupported unit: "+t)},o.isZero=function(){return this===e.ZERO},o.isNegative=function(){return this._years<0||this._months<0||this._days<0},o.years=function(){return this._years},o.months=function(){return this._months},o.days=function(){return this._days},o.withYears=function(t){return t===this._years?this:e.create(t,this._months,this._days)},o.withMonths=function(t){return t===this._months?this:e.create(this._years,t,this._days)},o.withDays=function(t){return t===this._days?this:e.create(this._years,this._months,t)},o.plus=function(t){var n=e.from(t);return e.create(m.safeAdd(this._years,n._years),m.safeAdd(this._months,n._months),m.safeAdd(this._days,n._days))},o.plusYears=function(t){return 0===t?this:e.create(m.safeToInt(m.safeAdd(this._years,t)),this._months,this._days)},o.plusMonths=function(t){return 0===t?this:e.create(this._years,m.safeToInt(m.safeAdd(this._months,t)),this._days)},o.plusDays=function(t){return 0===t?this:e.create(this._years,this._months,m.safeToInt(m.safeAdd(this._days,t)))},o.minus=function(t){var n=e.from(t);return e.create(m.safeSubtract(this._years,n._years),m.safeSubtract(this._months,n._months),m.safeSubtract(this._days,n._days))},o.minusYears=function(t){return this.plusYears(-1*t)},o.minusMonths=function(t){return this.plusMonths(-1*t)},o.minusDays=function(t){return this.plusDays(-1*t)},o.multipliedBy=function(t){return this===e.ZERO||1===t?this:e.create(m.safeMultiply(this._years,t),m.safeMultiply(this._months,t),m.safeMultiply(this._days,t))},o.negated=function(){return this.multipliedBy(-1)},o.normalized=function(){var t=this.toTotalMonths(),n=m.intDiv(t,12),i=m.intMod(t,12);return n===this._years&&i===this._months?this:e.create(m.safeToInt(n),i,this._days)},o.toTotalMonths=function(){return 12*this._years+this._months},o.addTo=function(t){return _(t,"temporal"),0!==this._years?t=0!==this._months?t.plus(this.toTotalMonths(),w.MONTHS):t.plus(this._years,w.YEARS):0!==this._months&&(t=t.plus(this._months,w.MONTHS)),0!==this._days&&(t=t.plus(this._days,w.DAYS)),t},o.subtractFrom=function(t){return _(t,"temporal"),0!==this._years?t=0!==this._months?t.minus(this.toTotalMonths(),w.MONTHS):t.minus(this._years,w.YEARS):0!==this._months&&(t=t.minus(this._months,w.MONTHS)),0!==this._days&&(t=t.minus(this._days,w.DAYS)),t},o.equals=function(t){if(this===t)return!0;if(t instanceof e){var n=t;return this._years===n._years&&this._months===n._months&&this._days===n._days}return!1},o.hashCode=function(){return m.hashCode(this._years,this._months,this._days)},o.toString=function(){if(this===e.ZERO)return"P0D";var t="P";return 0!==this._years&&(t+=this._years+"Y"),0!==this._months&&(t+=this._months+"M"),0!==this._days&&(t+=this._days+"D"),t},o.toJSON=function(){return this.toString()},e}(D);var H=function(){function t(t){this._index=t,this._errorIndex=-1}var e=t.prototype;return e.getIndex=function(){return this._index},e.setIndex=function(t){this._index=t},e.getErrorIndex=function(){return this._errorIndex},e.setErrorIndex=function(t){this._errorIndex=t},t}(),W=function(){function t(){this._map={}}var e=t.prototype;return e.putAll=function(t){for(var e in t._map)this._map[e]=t._map[e];return this},e.containsKey=function(t){return this._map.hasOwnProperty(t.name())&&void 0!==this.get(t)},e.get=function(t){return this._map[t.name()]},e.put=function(t,e){return this.set(t,e)},e.set=function(t,e){return this._map[t.name()]=e,this},e.retainAll=function(t){for(var e={},n=0;n<t.length;n++){var i=t[n].name();e[i]=this._map[i]}return this._map=e,this},e.remove=function(t){var e=t.name(),n=this._map[e];return this._map[e]=void 0,n},e.keySet=function(){return this._map},e.clear=function(){this._map={}},t}(),k=function(t){function e(){return t.apply(this,arguments)||this}return f(e,t),e}(N);k.STRICT=new k("STRICT"),k.SMART=new k("SMART"),k.LENIENT=new k("LENIENT");var x=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.isSupported=function(t){p("isSupported")},n.minus=function(t,e){return arguments.length<2?this._minusAmount(t):this._minusUnit(t,e)},n._minusAmount=function(t){return _(t,"amount"),d(t,D,"amount"),t.subtractFrom(this)},n._minusUnit=function(t,e){return _(t,"amountToSubtract"),_(e,"unit"),d(e,A,"unit"),this._plusUnit(-t,e)},n.plus=function(t,e){return arguments.length<2?this._plusAmount(t):this._plusUnit(t,e)},n._plusAmount=function(t){return _(t,"amount"),d(t,D,"amount"),t.addTo(this)},n._plusUnit=function(t,e){p("_plusUnit")},n.until=function(t,e){p("until")},n.with=function(t,e){return arguments.length<2?this._withAdjuster(t):this._withField(t,e)},n._withAdjuster=function(t){return _(t,"adjuster"),l("function"==typeof t.adjustInto,"adjuster must be a TemporalAdjuster",o),t.adjustInto(this)},n._withField=function(t,e){p("_withField")},e}(I);"undefined"!=typeof Symbol&&Symbol.toPrimitive&&(x.prototype[Symbol.toPrimitive]=function(t){if("number"!==t)return this.toString();throw new TypeError("A conversion from Temporal to a number is not allowed. To compare use the methods .equals(), .compareTo(), .isBefore() or one that is more suitable to your use case.")});var B=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.isSupported=function(t){return t instanceof R||t instanceof w?t.isDateBased():null!=t&&t.isSupportedBy(this)},n.query=function(e){return e===g.chronology()?this.chronology():e===g.precision()?w.DAYS:e===g.localDate()?ae.ofEpochDay(this.toEpochDay()):e===g.localTime()||e===g.zone()||e===g.zoneId()||e===g.offset()?null:t.prototype.query.call(this,e)},n.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toEpochDay())},n.format=function(t){return _(t,"formatter"),d(t,zt,"formatter"),t.format(this)},e}(x),q={},Z=[0,90,181,273,0,91,182,274],z=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.isDateBased=function(){return!0},n.isTimeBased=function(){return!1},n._isIso=function(){return!0},e._getWeekRangeByLocalDate=function(t){var n=e._getWeekBasedYear(t);return M.of(1,e._getWeekRangeByYear(n))},e._getWeekRangeByYear=function(t){var e=ae.of(t,1,1);return e.dayOfWeek()===L.THURSDAY||e.dayOfWeek()===L.WEDNESDAY&&e.isLeapYear()?53:52},e._getWeek=function(t){var n=t.dayOfWeek().ordinal(),i=t.dayOfYear()-1,r=i+(3-n),s=r-7*m.intDiv(r,7)-3;if(s<-3&&(s+=7),i<s)return e._getWeekRangeByLocalDate(t.withDayOfYear(180).minusYears(1)).maximum();var o=m.intDiv(i-s,7)+1;return 53===o&&!1===(-3===s||-2===s&&t.isLeapYear())&&(o=1),o},e._getWeekBasedYear=function(t){var e=t.year(),n=t.dayOfYear();if(n<=3)n-t.dayOfWeek().ordinal()<-2&&e--;else if(n>=363){var i=t.dayOfWeek().ordinal();(n=n-363-(t.isLeapYear()?1:0))-i>=0&&e++}return e},n.displayName=function(){return this.toString()},n.resolve=function(){return null},n.name=function(){return this.toString()},e}(y),K=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.toString=function(){return"DayOfQuarter"},n.baseUnit=function(){return w.DAYS},n.rangeUnit=function(){return it},n.range=function(){return M.of(1,90,92)},n.isSupportedBy=function(t){return t.isSupported(R.DAY_OF_YEAR)&&t.isSupported(R.MONTH_OF_YEAR)&&t.isSupported(R.YEAR)&&this._isIso(t)},n.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: DayOfQuarter");var e=t.getLong($);if(1===e){var n=t.getLong(R.YEAR);return re.isLeapYear(n)?M.of(1,91):M.of(1,90)}return 2===e?M.of(1,91):3===e||4===e?M.of(1,92):this.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: DayOfQuarter");var e=t.get(R.DAY_OF_YEAR),n=t.get(R.MONTH_OF_YEAR),i=t.getLong(R.YEAR);return e-Z[m.intDiv(n-1,3)+(re.isLeapYear(i)?4:0)]},n.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(R.DAY_OF_YEAR,t.getLong(R.DAY_OF_YEAR)+(e-n))},n.resolve=function(t,e,n){var i=t.get(R.YEAR),r=t.get($);if(null==i||null==r)return null;var s,o=R.YEAR.checkValidIntValue(i),a=t.get(Q);if(n===k.LENIENT){var u=r;s=(s=(s=ae.of(o,1,1)).plusMonths(m.safeMultiply(m.safeSubtract(u,1),3))).plusDays(m.safeSubtract(a,1))}else{var h=$.range().checkValidIntValue(r,$);if(n===k.STRICT){var f=92;1===h?f=re.isLeapYear(o)?91:90:2===h&&(f=91),M.of(1,f).checkValidValue(a,this)}else this.range().checkValidValue(a,this);s=ae.of(o,3*(h-1)+1,1).plusDays(a-1)}return t.remove(this),t.remove(R.YEAR),t.remove($),s},e}(z),j=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.toString=function(){return"QuarterOfYear"},n.baseUnit=function(){return it},n.rangeUnit=function(){return w.YEARS},n.range=function(){return M.of(1,4)},n.isSupportedBy=function(t){return t.isSupported(R.MONTH_OF_YEAR)&&this._isIso(t)},n.rangeRefinedBy=function(t){return this.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: QuarterOfYear");var e=t.getLong(R.MONTH_OF_YEAR);return m.intDiv(e+2,3)},n.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(R.MONTH_OF_YEAR,t.getLong(R.MONTH_OF_YEAR)+3*(e-n))},e}(z),G=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.toString=function(){return"WeekOfWeekBasedYear"},n.baseUnit=function(){return w.WEEKS},n.rangeUnit=function(){return nt},n.range=function(){return M.of(1,52,53)},n.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)&&this._isIso(t)},n.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: WeekOfWeekBasedYear");return z._getWeekRangeByLocalDate(ae.from(t))},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: WeekOfWeekBasedYear");return z._getWeek(ae.from(t))},n.adjustInto=function(t,e){return this.range().checkValidValue(e,this),t.plus(m.safeSubtract(e,this.getFrom(t)),w.WEEKS)},n.resolve=function(t,e,n){var i=t.get(et),r=t.get(R.DAY_OF_WEEK);if(null==i||null==r)return null;var s,o=et.range().checkValidIntValue(i,et),a=t.get(tt);if(n===k.LENIENT){var u=r,h=0;u>7?(h=m.intDiv(u-1,7),u=m.intMod(u-1,7)+1):u<1&&(h=m.intDiv(u,7)-1,u=m.intMod(u,7)+7),s=ae.of(o,1,4).plusWeeks(a-1).plusWeeks(h).with(R.DAY_OF_WEEK,u)}else{var f=R.DAY_OF_WEEK.checkValidIntValue(r);if(n===k.STRICT){var c=ae.of(o,1,4);z._getWeekRangeByLocalDate(c).checkValidValue(a,this)}else this.range().checkValidValue(a,this);s=ae.of(o,1,4).plusWeeks(a-1).with(R.DAY_OF_WEEK,f)}return t.remove(this),t.remove(et),t.remove(R.DAY_OF_WEEK),s},n.displayName=function(){return"Week"},e}(z),X=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.toString=function(){return"WeekBasedYear"},n.baseUnit=function(){return nt},n.rangeUnit=function(){return w.FOREVER},n.range=function(){return R.YEAR.range()},n.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)&&this._isIso(t)},n.rangeRefinedBy=function(t){return R.YEAR.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: WeekBasedYear");return z._getWeekBasedYear(ae.from(t))},n.adjustInto=function(t,e){if(!1===this.isSupportedBy(t))throw new r("Unsupported field: WeekBasedYear");var n=this.range().checkValidIntValue(e,et),i=ae.from(t),s=i.get(R.DAY_OF_WEEK),o=z._getWeek(i);53===o&&52===z._getWeekRangeByYear(n)&&(o=52);var a=ae.of(n,1,4),u=s-a.get(R.DAY_OF_WEEK)+7*(o-1);return a=a.plusDays(u),t.with(a)},e}(z),J=function(t){function e(e,n){var i;return(i=t.call(this)||this)._name=e,i._duration=n,i}f(e,t);var n=e.prototype;return n.duration=function(){return this._duration},n.isDurationEstimated=function(){return!0},n.isDateBased=function(){return!0},n.isTimeBased=function(){return!1},n.isSupportedBy=function(t){return t.isSupported(R.EPOCH_DAY)},n.addTo=function(t,e){switch(this){case nt:var n=m.safeAdd(t.get(et),e);return t.with(et,n);case it:return t.plus(m.intDiv(e,256),w.YEARS).plus(3*m.intMod(e,256),w.MONTHS);default:throw new a("Unreachable")}},n.between=function(t,e){switch(this){case nt:return m.safeSubtract(e.getLong(et),t.getLong(et));case it:return m.intDiv(t.until(e,w.MONTHS),3);default:throw new a("Unreachable")}},n.toString=function(){return this._name},e}(A),Q=null,$=null,tt=null,et=null,nt=null,it=null;var rt=function(){function t(){}return t.startsWith=function(t,e){return 0===t.indexOf(e)},t.hashCode=function(t){var e=t.length;if(0===e)return 0;for(var n=0,i=0;i<e;i++){n=(n<<5)-n+t.charCodeAt(i),n|=0}return m.smi(n)},t}(),st=function(){function t(){}t.systemDefault=function(){throw new n("not supported operation")},t.getAvailableZoneIds=function(){throw new n("not supported operation")},t.of=function(t){throw new n("not supported operation"+t)},t.ofOffset=function(t,e){throw new n("not supported operation"+t+e)},t.from=function(t){throw new n("not supported operation"+t)};var e=t.prototype;return e.id=function(){p("ZoneId.id")},e.rules=function(){p("ZoneId.rules")},e.normalized=function(){var t=this.rules();return t.isFixedOffset()?t.offset(le.EPOCH):this},e.equals=function(e){return this===e||e instanceof t&&this.id()===e.id()},e.hashCode=function(){return rt.hashCode(this.id())},e.toString=function(){return this.id()},e.toJSON=function(){return this.toString()},t}(),ot=function(){function t(){}t.of=function(t){return _(t,"offset"),new at(t)};var e=t.prototype;return e.isFixedOffset=function(){p("ZoneRules.isFixedOffset")},e.offset=function(t){return t instanceof le?this.offsetOfInstant(t):this.offsetOfLocalDateTime(t)},e.offsetOfInstant=function(t){p("ZoneRules.offsetInstant")},e.offsetOfEpochMilli=function(t){p("ZoneRules.offsetOfEpochMilli")},e.offsetOfLocalDateTime=function(t){p("ZoneRules.offsetLocalDateTime")},e.validOffsets=function(t){p("ZoneRules.validOffsets")},e.transition=function(t){p("ZoneRules.transition")},e.standardOffset=function(t){p("ZoneRules.standardOffset")},e.daylightSavings=function(t){p("ZoneRules.daylightSavings")},e.isDaylightSavings=function(t){p("ZoneRules.isDaylightSavings")},e.isValidOffset=function(t,e){p("ZoneRules.isValidOffset")},e.nextTransition=function(t){p("ZoneRules.nextTransition")},e.previousTransition=function(t){p("ZoneRules.previousTransition")},e.transitions=function(){p("ZoneRules.transitions")},e.transitionRules=function(){p("ZoneRules.transitionRules")},e.toString=function(){p("ZoneRules.toString")},e.toJSON=function(){return this.toString()},t}(),at=function(t){function e(e){var n;return(n=t.call(this)||this)._offset=e,n}f(e,t);var n=e.prototype;return n.isFixedOffset=function(){return!0},n.offsetOfInstant=function(){return this._offset},n.offsetOfEpochMilli=function(){return this._offset},n.offsetOfLocalDateTime=function(){return this._offset},n.validOffsets=function(){return[this._offset]},n.transition=function(){return null},n.standardOffset=function(){return this._offset},n.daylightSavings=function(){return T.ZERO},n.isDaylightSavings=function(){return!1},n.isValidOffset=function(t,e){return this._offset.equals(e)},n.nextTransition=function(){return null},n.previousTransition=function(){return null},n.transitions=function(){return[]},n.transitionRules=function(){return[]},n.equals=function(t){return this===t||t instanceof e&&this._offset.equals(t._offset)},n.toString=function(){return"FixedRules:"+this._offset.toString()},e}(ot),ut={},ht={},ft=function(t){function e(n){var i;return i=t.call(this)||this,e._validateTotalSeconds(n),i._totalSeconds=m.safeToInt(n),i._rules=ot.of(i),i._id=e._buildId(n),i}f(e,t);var i=e.prototype;return i.totalSeconds=function(){return this._totalSeconds},i.id=function(){return this._id},e._buildId=function(t){if(0===t)return"Z";var e=Math.abs(t),n=m.intDiv(e,fe.SECONDS_PER_HOUR),i=m.intMod(m.intDiv(e,fe.SECONDS_PER_MINUTE),fe.MINUTES_PER_HOUR),r=(t<0?"-":"+")+(n<10?"0":"")+n+(i<10?":0":":")+i,s=m.intMod(e,fe.SECONDS_PER_MINUTE);return 0!==s&&(r+=(s<10?":0":":")+s),r},e._validateTotalSeconds=function(t){if(Math.abs(t)>e.MAX_SECONDS)throw new n("Zone offset not in valid range: -18:00 to +18:00")},e._validate=function(t,e,i){if(t<-18||t>18)throw new n("Zone offset hours not in valid range: value "+t+" is not in the range -18 to 18");if(t>0){if(e<0||i<0)throw new n("Zone offset minutes and seconds must be positive because hours is positive")}else if(t<0){if(e>0||i>0)throw new n("Zone offset minutes and seconds must be negative because hours is negative")}else if(e>0&&i<0||e<0&&i>0)throw new n("Zone offset minutes and seconds must have the same sign");if(Math.abs(e)>59)throw new n("Zone offset minutes not in valid range: abs(value) "+Math.abs(e)+" is not in the range 0 to 59");if(Math.abs(i)>59)throw new n("Zone offset seconds not in valid range: abs(value) "+Math.abs(i)+" is not in the range 0 to 59");if(18===Math.abs(t)&&(Math.abs(e)>0||Math.abs(i)>0))throw new n("Zone offset not in valid range: -18:00 to +18:00")},e.of=function(t){_(t,"offsetId");var i,r,s,o=ht[t];if(null!=o)return o;switch(t.length){case 2:t=t[0]+"0"+t[1];case 3:i=e._parseNumber(t,1,!1),r=0,s=0;break;case 5:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,3,!1),s=0;break;case 6:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,4,!0),s=0;break;case 7:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,3,!1),s=e._parseNumber(t,5,!1);break;case 9:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,4,!0),s=e._parseNumber(t,7,!0);break;default:throw new n("Invalid ID for ZoneOffset, invalid format: "+t)}var a=t[0];if("+"!==a&&"-"!==a)throw new n("Invalid ID for ZoneOffset, plus/minus not found when expected: "+t);return"-"===a?e.ofHoursMinutesSeconds(-i,-r,-s):e.ofHoursMinutesSeconds(i,r,s)},e._parseNumber=function(t,e,i){if(i&&":"!==t[e-1])throw new n("Invalid ID for ZoneOffset, colon not found when expected: "+t);var r=t[e],s=t[e+1];if(r<"0"||r>"9"||s<"0"||s>"9")throw new n("Invalid ID for ZoneOffset, non numeric characters found: "+t);return 10*(r.charCodeAt(0)-48)+(s.charCodeAt(0)-48)},e.ofHours=function(t){return e.ofHoursMinutesSeconds(t,0,0)},e.ofHoursMinutes=function(t,n){return e.ofHoursMinutesSeconds(t,n,0)},e.ofHoursMinutesSeconds=function(t,n,i){e._validate(t,n,i);var r=t*fe.SECONDS_PER_HOUR+n*fe.SECONDS_PER_MINUTE+i;return e.ofTotalSeconds(r)},e.ofTotalMinutes=function(t){var n=t*fe.SECONDS_PER_MINUTE;return e.ofTotalSeconds(n)},e.ofTotalSeconds=function(t){if(t%(15*fe.SECONDS_PER_MINUTE)==0){var n=t,i=ut[n];return null==i&&(i=new e(t),ut[n]=i,ht[i.id()]=i),i}return new e(t)},i.rules=function(){return this._rules},i.get=function(t){return this.getLong(t)},i.getLong=function(t){if(t===R.OFFSET_SECONDS)return this._totalSeconds;if(t instanceof R)throw new n("Unsupported field: "+t);return t.getFrom(this)},i.query=function(t){return _(t,"query"),t===g.offset()||t===g.zone()?this:t===g.localDate()||t===g.localTime()||t===g.precision()||t===g.chronology()||t===g.zoneId()?null:t.queryFrom(this)},i.adjustInto=function(t){return t.with(R.OFFSET_SECONDS,this._totalSeconds)},i.compareTo=function(t){return _(t,"other"),t._totalSeconds-this._totalSeconds},i.equals=function(t){return this===t||t instanceof e&&this._totalSeconds===t._totalSeconds},i.hashCode=function(){return this._totalSeconds},i.toString=function(){return this._id},e}(st);var ct=function(t){function e(e,n){var i;return i=t.call(this)||this,_(e,"time"),d(e,fe,"time"),_(n,"offset"),d(n,ft,"offset"),i._time=e,i._offset=n,i}f(e,t),e.from=function(t){if(_(t,"temporal"),t instanceof e)return t;if(t instanceof lt)return t.toOffsetTime();try{return new e(fe.from(t),ft.from(t))}catch(e){throw new n("Unable to obtain OffsetTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""))}},e.now=function(t){return 0===arguments.length?e._now(_e.systemDefaultZone()):t instanceof _e?e._now(t):e._now(_e.system(t))},e._now=function(t){_(t,"clock");var n=t.instant();return e.ofInstant(n,t.zone().rules().offset(n))},e.of=function(){return arguments.length<=2?e.ofTimeAndOffset.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofNumbers=function(t,n,i,r,s){return new e(fe.of(t,n,i,r),s)},e.ofTimeAndOffset=function(t,n){return new e(t,n)},e.ofInstant=function(t,n){_(t,"instant"),d(t,le,"instant"),_(n,"zone"),d(n,st,"zone");var i=n.rules().offset(t),r=t.epochSecond()%fe.SECONDS_PER_DAY;return(r=(r+i.totalSeconds())%fe.SECONDS_PER_DAY)<0&&(r+=fe.SECONDS_PER_DAY),new e(fe.ofSecondOfDay(r,t.nano()),i)},e.parse=function(t,n){return void 0===n&&(n=zt.ISO_OFFSET_TIME),_(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.adjustInto=function(t){return t.with(R.NANO_OF_DAY,this._time.toNanoOfDay()).with(R.OFFSET_SECONDS,this.offset().totalSeconds())},i.atDate=function(t){return lt.of(t,this._time,this._offset)},i.format=function(t){return _(t,"formatter"),t.format(this,e.FROM)},i.get=function(e){return t.prototype.get.call(this,e)},i.getLong=function(t){return t instanceof R?t===R.OFFSET_SECONDS?this._offset.totalSeconds():this._time.getLong(t):t.getFrom(this)},i.hour=function(){return this._time.hour()},i.minute=function(){return this._time.minute()},i.second=function(){return this._time.second()},i.nano=function(){return this._time.nano()},i.offset=function(){return this._offset},i.isAfter=function(t){return _(t,"other"),this._toEpochNano()>t._toEpochNano()},i.isBefore=function(t){return _(t,"other"),this._toEpochNano()<t._toEpochNano()},i.isEqual=function(t){return _(t,"other"),this._toEpochNano()===t._toEpochNano()},i.isSupported=function(t){return t instanceof R?t.isTimeBased()||t===R.OFFSET_SECONDS:t instanceof w?t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.minusHours=function(t){return this._withLocalTimeOffset(this._time.minusHours(t),this._offset)},i.minusMinutes=function(t){return this._withLocalTimeOffset(this._time.minusMinutes(t),this._offset)},i.minusSeconds=function(t){return this._withLocalTimeOffset(this._time.minusSeconds(t),this._offset)},i.minusNanos=function(t){return this._withLocalTimeOffset(this._time.minusNanos(t),this._offset)},i._minusAmount=function(t){return _(t),t.subtractFrom(this)},i._minusUnit=function(t,e){return this.plus(-1*t,e)},i._plusAmount=function(t){return _(t),t.addTo(this)},i._plusUnit=function(t,e){return e instanceof w?this._withLocalTimeOffset(this._time.plus(t,e),this._offset):e.addTo(this,t)},i.plusHours=function(t){return this._withLocalTimeOffset(this._time.plusHours(t),this._offset)},i.plusMinutes=function(t){return this._withLocalTimeOffset(this._time.plusMinutes(t),this._offset)},i.plusSeconds=function(t){return this._withLocalTimeOffset(this._time.plusSeconds(t),this._offset)},i.plusNanos=function(t){return this._withLocalTimeOffset(this._time.plusNanos(t),this._offset)},i.query=function(e){return _(e,"query"),e===g.precision()?w.NANOS:e===g.offset()||e===g.zone()?this.offset():e===g.localTime()?this._time:e===g.chronology()||e===g.localDate()||e===g.zoneId()?null:t.prototype.query.call(this,e)},i.range=function(t){return t instanceof R?t===R.OFFSET_SECONDS?t.range():this._time.range(t):t.rangeRefinedBy(this)},i.toLocalTime=function(){return this._time},i.truncatedTo=function(t){return this._withLocalTimeOffset(this._time.truncatedTo(t),this._offset)},i.until=function(t,n){_(t,"endExclusive"),_(n,"unit");var i=e.from(t);if(n instanceof w){var s=i._toEpochNano()-this._toEpochNano();switch(n){case w.NANOS:return s;case w.MICROS:return m.intDiv(s,1e3);case w.MILLIS:return m.intDiv(s,1e6);case w.SECONDS:return m.intDiv(s,fe.NANOS_PER_SECOND);case w.MINUTES:return m.intDiv(s,fe.NANOS_PER_MINUTE);case w.HOURS:return m.intDiv(s,fe.NANOS_PER_HOUR);case w.HALF_DAYS:return m.intDiv(s,12*fe.NANOS_PER_HOUR)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.withHour=function(t){return this._withLocalTimeOffset(this._time.withHour(t),this._offset)},i.withMinute=function(t){return this._withLocalTimeOffset(this._time.withMinute(t),this._offset)},i.withSecond=function(t){return this._withLocalTimeOffset(this._time.withSecond(t),this._offset)},i.withNano=function(t){return this._withLocalTimeOffset(this._time.withNano(t),this._offset)},i.withOffsetSameInstant=function(t){if(_(t,"offset"),t.equals(this._offset))return this;var n=t.totalSeconds()-this._offset.totalSeconds();return new e(this._time.plusSeconds(n),t)},i.withOffsetSameLocal=function(t){return null!=t&&t.equals(this._offset)?this:new e(this._time,t)},i._toEpochNano=function(){return this._time.toNanoOfDay()-this._offset.totalSeconds()*fe.NANOS_PER_SECOND},i._withAdjuster=function(t){return _(t,"adjuster"),t instanceof fe?this._withLocalTimeOffset(t,this._offset):t instanceof ft?this._withLocalTimeOffset(this._time,t):t instanceof e?t:t.adjustInto(this)},i._withField=function(t,e){return _(t,"field"),t instanceof R?t===R.OFFSET_SECONDS?this._withLocalTimeOffset(this._time,ft.ofTotalSeconds(t.checkValidIntValue(e))):this._withLocalTimeOffset(this._time.with(t,e),this._offset):t.adjustInto(this,e)},i._withLocalTimeOffset=function(t,n){return this._time===t&&this._offset.equals(n)?this:new e(t,n)},i.compareTo=function(t){if(_(t,"other"),d(t,e,"other"),this._offset.equals(t._offset))return this._time.compareTo(t._time);var n=m.compareNumbers(this._toEpochNano(),t._toEpochNano());return 0===n?this._time.compareTo(t._time):n},i.equals=function(t){return this===t||t instanceof e&&(this._time.equals(t._time)&&this._offset.equals(t._offset))},i.hashCode=function(){return this._time.hashCode()^this._offset.hashCode()},i.toString=function(){return this._time.toString()+this._offset.toString()},i.toJSON=function(){return this.toString()},e}(x);var lt=function(t){function e(e,n){var i;return i=t.call(this)||this,_(e,"dateTime"),d(e,he,"dateTime"),_(n,"offset"),d(n,ft,"offset"),i._dateTime=e,i._offset=n,i}f(e,t),e.from=function(t){if(_(t,"temporal"),t instanceof e)return t;try{var i=ft.from(t);try{var r=he.from(t);return e.of(r,i)}catch(n){var s=le.from(t);return e.ofInstant(s,i)}}catch(e){throw new n("Unable to obtain OffsetDateTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""))}},e.now=function(t){if(0===arguments.length)return e.now(_e.systemDefaultZone());if(_(t,"clockOrZone"),t instanceof st)return e.now(_e.system(t));if(t instanceof _e){var n=t.instant();return e.ofInstant(n,t.zone().rules().offset(n))}throw new o("clockOrZone must be an instance of ZoneId or Clock")},e.of=function(){return arguments.length<=2?e.ofDateTime.apply(this,arguments):3===arguments.length?e.ofDateAndTime.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofDateTime=function(t,n){return new e(t,n)},e.ofDateAndTime=function(t,n,i){return new e(he.of(t,n),i)},e.ofNumbers=function(t,n,i,r,s,o,a,u){return void 0===r&&(r=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=0),new e(he.of(t,n,i,r,s,o,a),u)},e.ofInstant=function(t,n){_(t,"instant"),_(n,"zone");var i=n.rules().offset(t);return new e(he.ofEpochSecond(t.epochSecond(),t.nano(),i),i)},e.parse=function(t,n){return void 0===n&&(n=zt.ISO_OFFSET_DATE_TIME),_(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(R.NANO_OF_DAY,this.toLocalTime().toNanoOfDay()).with(R.OFFSET_SECONDS,this.offset().totalSeconds())},i.until=function(t,n){var i=e.from(t);return n instanceof w?(i=i.withOffsetSameInstant(this._offset),this._dateTime.until(i._dateTime,n)):n.between(this,i)},i.atZoneSameInstant=function(t){return dt.ofInstant(this._dateTime,this._offset,t)},i.atZoneSimilarLocal=function(t){return dt.ofLocal(this._dateTime,t,this._offset)},i.query=function(e){return _(e,"query"),e===g.chronology()?re.INSTANCE:e===g.precision()?w.NANOS:e===g.offset()||e===g.zone()?this.offset():e===g.localDate()?this.toLocalDate():e===g.localTime()?this.toLocalTime():e===g.zoneId()?null:t.prototype.query.call(this,e)},i.get=function(e){if(e instanceof R){switch(e){case R.INSTANT_SECONDS:throw new n("Field too large for an int: "+e);case R.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.get(e)}return t.prototype.get.call(this,e)},i.getLong=function(t){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return this.toEpochSecond();case R.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.getLong(t)}return t.getFrom(this)},i.offset=function(){return this._offset},i.year=function(){return this._dateTime.year()},i.monthValue=function(){return this._dateTime.monthValue()},i.month=function(){return this._dateTime.month()},i.dayOfMonth=function(){return this._dateTime.dayOfMonth()},i.dayOfYear=function(){return this._dateTime.dayOfYear()},i.dayOfWeek=function(){return this._dateTime.dayOfWeek()},i.hour=function(){return this._dateTime.hour()},i.minute=function(){return this._dateTime.minute()},i.second=function(){return this._dateTime.second()},i.nano=function(){return this._dateTime.nano()},i.toLocalDateTime=function(){return this._dateTime},i.toLocalDate=function(){return this._dateTime.toLocalDate()},i.toLocalTime=function(){return this._dateTime.toLocalTime()},i.toOffsetTime=function(){return ct.of(this._dateTime.toLocalTime(),this._offset)},i.toZonedDateTime=function(){return dt.of(this._dateTime,this._offset)},i.toInstant=function(){return this._dateTime.toInstant(this._offset)},i.toEpochSecond=function(){return this._dateTime.toEpochSecond(this._offset)},i.isSupported=function(t){return t instanceof R||t instanceof w?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.range=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.OFFSET_SECONDS?t.range():this._dateTime.range(t):t.rangeRefinedBy(this)},i._withAdjuster=function(t){return _(t),t instanceof ae||t instanceof fe||t instanceof he?this._withDateTimeOffset(this._dateTime.with(t),this._offset):t instanceof le?e.ofInstant(t,this._offset):t instanceof ft?this._withDateTimeOffset(this._dateTime,t):t instanceof e?t:t.adjustInto(this)},i._withField=function(t,n){if(_(t),t instanceof R){var i=t;switch(i){case R.INSTANT_SECONDS:return e.ofInstant(le.ofEpochSecond(n,this.nano()),this._offset);case R.OFFSET_SECONDS:return this._withDateTimeOffset(this._dateTime,ft.ofTotalSeconds(i.checkValidIntValue(n)))}return this._withDateTimeOffset(this._dateTime.with(t,n),this._offset)}return t.adjustInto(this,n)},i._withDateTimeOffset=function(t,n){return this._dateTime===t&&this._offset.equals(n)?this:new e(t,n)},i.withYear=function(t){return this._withDateTimeOffset(this._dateTime.withYear(t),this._offset)},i.withMonth=function(t){return this._withDateTimeOffset(this._dateTime.withMonth(t),this._offset)},i.withDayOfMonth=function(t){return this._withDateTimeOffset(this._dateTime.withDayOfMonth(t),this._offset)},i.withDayOfYear=function(t){return this._withDateTimeOffset(this._dateTime.withDayOfYear(t),this._offset)},i.withHour=function(t){return this._withDateTimeOffset(this._dateTime.withHour(t),this._offset)},i.withMinute=function(t){return this._withDateTimeOffset(this._dateTime.withMinute(t),this._offset)},i.withSecond=function(t){return this._withDateTimeOffset(this._dateTime.withSecond(t),this._offset)},i.withNano=function(t){return this._withDateTimeOffset(this._dateTime.withNano(t),this._offset)},i.withOffsetSameLocal=function(t){return _(t,"offset"),this._withDateTimeOffset(this._dateTime,t)},i.withOffsetSameInstant=function(t){if(_(t,"offset"),t.equals(this._offset))return this;var n=t.totalSeconds()-this._offset.totalSeconds();return new e(this._dateTime.plusSeconds(n),t)},i.truncatedTo=function(t){return this._withDateTimeOffset(this._dateTime.truncatedTo(t),this._offset)},i._plusAmount=function(t){return _(t,"amount"),t.addTo(this)},i._plusUnit=function(t,e){return e instanceof w?this._withDateTimeOffset(this._dateTime.plus(t,e),this._offset):e.addTo(this,t)},i.plusYears=function(t){return this._withDateTimeOffset(this._dateTime.plusYears(t),this._offset)},i.plusMonths=function(t){return this._withDateTimeOffset(this._dateTime.plusMonths(t),this._offset)},i.plusWeeks=function(t){return this._withDateTimeOffset(this._dateTime.plusWeeks(t),this._offset)},i.plusDays=function(t){return this._withDateTimeOffset(this._dateTime.plusDays(t),this._offset)},i.plusHours=function(t){return this._withDateTimeOffset(this._dateTime.plusHours(t),this._offset)},i.plusMinutes=function(t){return this._withDateTimeOffset(this._dateTime.plusMinutes(t),this._offset)},i.plusSeconds=function(t){return this._withDateTimeOffset(this._dateTime.plusSeconds(t),this._offset)},i.plusNanos=function(t){return this._withDateTimeOffset(this._dateTime.plusNanos(t),this._offset)},i._minusAmount=function(t){return _(t),t.subtractFrom(this)},i._minusUnit=function(t,e){return this.plus(-1*t,e)},i.minusYears=function(t){return this._withDateTimeOffset(this._dateTime.minusYears(t),this._offset)},i.minusMonths=function(t){return this._withDateTimeOffset(this._dateTime.minusMonths(t),this._offset)},i.minusWeeks=function(t){return this._withDateTimeOffset(this._dateTime.minusWeeks(t),this._offset)},i.minusDays=function(t){return this._withDateTimeOffset(this._dateTime.minusDays(t),this._offset)},i.minusHours=function(t){return this._withDateTimeOffset(this._dateTime.minusHours(t),this._offset)},i.minusMinutes=function(t){return this._withDateTimeOffset(this._dateTime.minusMinutes(t),this._offset)},i.minusSeconds=function(t){return this._withDateTimeOffset(this._dateTime.minusSeconds(t),this._offset)},i.minusNanos=function(t){return this._withDateTimeOffset(this._dateTime.minusNanos(t),this._offset)},i.compareTo=function(t){if(_(t,"other"),d(t,e,"other"),this.offset().equals(t.offset()))return this.toLocalDateTime().compareTo(t.toLocalDateTime());var n=m.compareNumbers(this.toEpochSecond(),t.toEpochSecond());return 0===n&&0===(n=this.toLocalTime().nano()-t.toLocalTime().nano())&&(n=this.toLocalDateTime().compareTo(t.toLocalDateTime())),n},i.isAfter=function(t){_(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e>n||e===n&&this.toLocalTime().nano()>t.toLocalTime().nano()},i.isBefore=function(t){_(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e<n||e===n&&this.toLocalTime().nano()<t.toLocalTime().nano()},i.isEqual=function(t){return _(t,"other"),this.toEpochSecond()===t.toEpochSecond()&&this.toLocalTime().nano()===t.toLocalTime().nano()},i.equals=function(t){return this===t||t instanceof e&&(this._dateTime.equals(t._dateTime)&&this._offset.equals(t._offset))},i.hashCode=function(){return this._dateTime.hashCode()^this._offset.hashCode()},i.toString=function(){return this._dateTime.toString()+this._offset.toString()},i.toJSON=function(){return this.toString()},i.format=function(t){return _(t,"formatter"),t.format(this)},e}(x);var _t=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.query=function(e){return e===g.zoneId()||e===g.zone()?this.zone():e===g.chronology()?this.toLocalDate().chronology():e===g.precision()?w.NANOS:e===g.offset()?this.offset():e===g.localDate()?ae.ofEpochDay(this.toLocalDate().toEpochDay()):e===g.localTime()?this.toLocalTime():t.prototype.query.call(this,e)},n.format=function(t){return _(t,"formatter"),t.format(this)},n.toInstant=function(){return le.ofEpochSecond(this.toEpochSecond(),this.toLocalTime().nano())},n.toEpochSecond=function(){var t=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return t-=this.offset().totalSeconds()},n.compareTo=function(t){_(t,"other");var e=m.compareNumbers(this.toEpochSecond(),t.toEpochSecond());return 0===e&&0===(e=this.toLocalTime().nano()-t.toLocalTime().nano())&&0===(e=this.toLocalDateTime().compareTo(t.toLocalDateTime()))&&(e=function(t,e){if(t<e)return-1;if(t>e)return 1;return 0}(this.zone().id(),t.zone().id())),e},n.isAfter=function(t){_(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e>n||e===n&&this.toLocalTime().nano()>t.toLocalTime().nano()},n.isBefore=function(t){_(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e<n||e===n&&this.toLocalTime().nano()<t.toLocalTime().nano()},n.isEqual=function(t){return _(t,"other"),this.toEpochSecond()===t.toEpochSecond()&&this.toLocalTime().nano()===t.toLocalTime().nano()},n.equals=function(t){return this===t||t instanceof e&&0===this.compareTo(t)},e}(x);var dt=function(t){function e(e,n,i){var r;return _(e,"dateTime"),_(n,"offset"),_(i,"zone"),(r=t.call(this)||this)._dateTime=e,r._offset=n,r._zone=i,r}f(e,t),e.now=function(t){var n;return n=t instanceof st?_e.system(t):null==t?_e.systemDefaultZone():t,e.ofInstant(n.instant(),n.zone())},e.of=function(){return arguments.length<=2?e.of2.apply(this,arguments):3===arguments.length&&arguments[0]instanceof ae?e.of3.apply(this,arguments):e.of8.apply(this,arguments)},e.of3=function(t,n,i){return e.of2(he.of(t,n),i)},e.of2=function(t,n){return e.ofLocal(t,n,null)},e.of8=function(t,n,i,r,s,o,a,u){var h=he.of(t,n,i,r,s,o,a);return e.ofLocal(h,u,null)},e.ofLocal=function(t,n,i){if(_(t,"localDateTime"),_(n,"zone"),n instanceof ft)return new e(t,n,n);var r=null,s=n.rules(),o=s.validOffsets(t);if(1===o.length)r=o[0];else if(0===o.length){var a=s.transition(t);t=t.plusSeconds(a.duration().seconds()),r=a.offsetAfter()}else r=null!=i&&o.some((function(t){return t.equals(i)}))?i:_(o[0],"offset");return new e(t,r,n)},e.ofInstant=function(){return 2===arguments.length?e.ofInstant2.apply(this,arguments):e.ofInstant3.apply(this,arguments)},e.ofInstant2=function(t,n){return _(t,"instant"),_(n,"zone"),e._create(t.epochSecond(),t.nano(),n)},e.ofInstant3=function(t,n,i){return _(t,"localDateTime"),_(n,"offset"),_(i,"zone"),e._create(t.toEpochSecond(n),t.nano(),i)},e._create=function(t,n,i){var r=i.rules(),s=le.ofEpochSecond(t,n),o=r.offset(s);return new e(he.ofEpochSecond(t,n,o),o,i)},e.ofStrict=function(t,i,r){_(t,"localDateTime"),_(i,"offset"),_(r,"zone");var s=r.rules();if(!1===s.isValidOffset(t,i)){var o=s.transition(t);if(null!=o&&o.isGap())throw new n("LocalDateTime "+t+" does not exist in zone "+r+" due to a gap in the local time-line, typically caused by daylight savings");throw new n('ZoneOffset "'+i+'" is not valid for LocalDateTime "'+t+'" in zone "'+r+'"')}return new e(t,i,r)},e.ofLenient=function(t,n,i){if(_(t,"localDateTime"),_(n,"offset"),_(i,"zone"),i instanceof ft&&!1===n.equals(i))throw new o("ZoneId must match ZoneOffset");return new e(t,n,i)},e.from=function(t){if(_(t,"temporal"),t instanceof e)return t;var n=st.from(t);if(t.isSupported(R.INSTANT_SECONDS)){var i=e._from(t,n);if(null!=i)return i}var r=he.from(t);return e.of2(r,n)},e._from=function(t,i){try{return e.__from(t,i)}catch(t){if(!(t instanceof n))throw t}},e.__from=function(t,n){var i=t.getLong(R.INSTANT_SECONDS),r=t.get(R.NANO_OF_SECOND);return e._create(i,r,n)},e.parse=function(t,n){return void 0===n&&(n=zt.ISO_ZONED_DATE_TIME),_(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i._resolveLocal=function(t){return _(t,"newDateTime"),e.ofLocal(t,this._zone,this._offset)},i._resolveInstant=function(t){return e.ofInstant3(t,this._offset,this._zone)},i._resolveOffset=function(t){return!1===t.equals(this._offset)&&this._zone.rules().isValidOffset(this._dateTime,t)?new e(this._dateTime,t,this._zone):this},i.isSupported=function(t){return t instanceof R||(t instanceof w?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this))},i.range=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.OFFSET_SECONDS?t.range():this._dateTime.range(t):t.rangeRefinedBy(this)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return this.toEpochSecond();case R.OFFSET_SECONDS:return this._offset.totalSeconds()}return this._dateTime.getLong(t)}return _(t,"field"),t.getFrom(this)},i.offset=function(){return this._offset},i.withEarlierOffsetAtOverlap=function(){var t=this._zone.rules().transition(this._dateTime);if(null!=t&&t.isOverlap()){var n=t.offsetBefore();if(!1===n.equals(this._offset))return new e(this._dateTime,n,this._zone)}return this},i.withLaterOffsetAtOverlap=function(){var t=this._zone.rules().transition(this.toLocalDateTime());if(null!=t){var n=t.offsetAfter();if(!1===n.equals(this._offset))return new e(this._dateTime,n,this._zone)}return this},i.zone=function(){return this._zone},i.withZoneSameLocal=function(t){return _(t,"zone"),this._zone.equals(t)?this:e.ofLocal(this._dateTime,t,this._offset)},i.withZoneSameInstant=function(t){return _(t,"zone"),this._zone.equals(t)?this:e._create(this._dateTime.toEpochSecond(this._offset),this._dateTime.nano(),t)},i.withFixedOffsetZone=function(){return this._zone.equals(this._offset)?this:new e(this._dateTime,this._offset,this._offset)},i.year=function(){return this._dateTime.year()},i.monthValue=function(){return this._dateTime.monthValue()},i.month=function(){return this._dateTime.month()},i.dayOfMonth=function(){return this._dateTime.dayOfMonth()},i.dayOfYear=function(){return this._dateTime.dayOfYear()},i.dayOfWeek=function(){return this._dateTime.dayOfWeek()},i.hour=function(){return this._dateTime.hour()},i.minute=function(){return this._dateTime.minute()},i.second=function(){return this._dateTime.second()},i.nano=function(){return this._dateTime.nano()},i._withAdjuster=function(n){if(n instanceof ae)return this._resolveLocal(he.of(n,this._dateTime.toLocalTime()));if(n instanceof fe)return this._resolveLocal(he.of(this._dateTime.toLocalDate(),n));if(n instanceof he)return this._resolveLocal(n);if(n instanceof le){var i=n;return e._create(i.epochSecond(),i.nano(),this._zone)}return n instanceof ft?this._resolveOffset(n):t.prototype._withAdjuster.call(this,n)},i._withField=function(t,n){if(t instanceof R){switch(t){case R.INSTANT_SECONDS:return e._create(n,this.nano(),this._zone);case R.OFFSET_SECONDS:var i=ft.ofTotalSeconds(t.checkValidIntValue(n));return this._resolveOffset(i)}return this._resolveLocal(this._dateTime.with(t,n))}return t.adjustInto(this,n)},i.withYear=function(t){return this._resolveLocal(this._dateTime.withYear(t))},i.withMonth=function(t){return this._resolveLocal(this._dateTime.withMonth(t))},i.withDayOfMonth=function(t){return this._resolveLocal(this._dateTime.withDayOfMonth(t))},i.withDayOfYear=function(t){return this._resolveLocal(this._dateTime.withDayOfYear(t))},i.withHour=function(t){return this._resolveLocal(this._dateTime.withHour(t))},i.withMinute=function(t){return this._resolveLocal(this._dateTime.withMinute(t))},i.withSecond=function(t){return this._resolveLocal(this._dateTime.withSecond(t))},i.withNano=function(t){return this._resolveLocal(this._dateTime.withNano(t))},i.truncatedTo=function(t){return this._resolveLocal(this._dateTime.truncatedTo(t))},i._plusUnit=function(t,e){return e instanceof w?e.isDateBased()?this._resolveLocal(this._dateTime.plus(t,e)):this._resolveInstant(this._dateTime.plus(t,e)):(_(e,"unit"),e.addTo(this,t))},i.plusYears=function(t){return this._resolveLocal(this._dateTime.plusYears(t))},i.plusMonths=function(t){return this._resolveLocal(this._dateTime.plusMonths(t))},i.plusWeeks=function(t){return this._resolveLocal(this._dateTime.plusWeeks(t))},i.plusDays=function(t){return this._resolveLocal(this._dateTime.plusDays(t))},i.plusHours=function(t){return this._resolveInstant(this._dateTime.plusHours(t))},i.plusMinutes=function(t){return this._resolveInstant(this._dateTime.plusMinutes(t))},i.plusSeconds=function(t){return this._resolveInstant(this._dateTime.plusSeconds(t))},i.plusNanos=function(t){return this._resolveInstant(this._dateTime.plusNanos(t))},i._minusUnit=function(t,e){return this._plusUnit(-1*t,e)},i.minusYears=function(t){return this.plusYears(-1*t)},i.minusMonths=function(t){return this.plusMonths(-1*t)},i.minusWeeks=function(t){return this.plusWeeks(-1*t)},i.minusDays=function(t){return this.plusDays(-1*t)},i.minusHours=function(t){return this.plusHours(-1*t)},i.minusMinutes=function(t){return this.plusMinutes(-1*t)},i.minusSeconds=function(t){return this.plusSeconds(-1*t)},i.minusNanos=function(t){return this.plusNanos(-1*t)},i.query=function(e){return e===g.localDate()?this.toLocalDate():(_(e,"query"),t.prototype.query.call(this,e))},i.until=function(t,n){var i=e.from(t);if(n instanceof w){if(i=i.withZoneSameInstant(this._zone),n.isDateBased())return this._dateTime.until(i._dateTime,n);var r=this._offset.totalSeconds()-i._offset.totalSeconds(),s=i._dateTime.plusSeconds(r);return this._dateTime.until(s,n)}return n.between(this,i)},i.toLocalDateTime=function(){return this._dateTime},i.toLocalDate=function(){return this._dateTime.toLocalDate()},i.toLocalTime=function(){return this._dateTime.toLocalTime()},i.toOffsetDateTime=function(){return lt.of(this._dateTime,this._offset)},i.equals=function(t){return this===t||t instanceof e&&(this._dateTime.equals(t._dateTime)&&this._offset.equals(t._offset)&&this._zone.equals(t._zone))},i.hashCode=function(){return m.hashCode(this._dateTime.hashCode(),this._offset.hashCode(),this._zone.hashCode())},i.toString=function(){var t=this._dateTime.toString()+this._offset.toString();return this._offset!==this._zone&&(t+="["+this._zone.toString()+"]"),t},i.toJSON=function(){return this.toString()},i.format=function(e){return t.prototype.format.call(this,e)},e}(_t);var pt=function(t){function e(){var e;return(e=t.call(this)||this).fieldValues=new W,e.chrono=null,e.zone=null,e.date=null,e.time=null,e.leapSecond=!1,e.excessDays=null,e}f(e,t),e.create=function(t,n){var i=new e;return i._addFieldValue(t,n),i};var i=e.prototype;return i.getFieldValue0=function(t){return this.fieldValues.get(t)},i._addFieldValue=function(t,e){_(t,"field");var i=this.getFieldValue0(t);if(null!=i&&i!==e)throw new n("Conflict found: "+t+" "+i+" differs from "+t+" "+e+": "+this);return this._putFieldValue0(t,e)},i._putFieldValue0=function(t,e){return this.fieldValues.put(t,e),this},i.resolve=function(t,e){return null!=e&&this.fieldValues.retainAll(e),this._mergeInstantFields(),this._resolveFields(t),this._mergeDate(t),this._mergeTime(t),this._resolveTimeInferZeroes(t),this._crossCheck(),null!=this.excessDays&&!1===this.excessDays.isZero()&&null!=this.date&&null!=this.time&&(this.date=this.date.plus(this.excessDays),this.excessDays=b.ZERO),this._resolveFractional(),this._resolveInstant(),this},i._resolveFields=function(t){for(var e=!1,n=0,i=[q.WEEK_OF_WEEK_BASED_YEAR,q.DAY_OF_QUARTER];n<i.length;n++){var r=i[n];if(this.fieldValues.containsKey(r)){var s=r.resolve(this.fieldValues,this,t);null!=s&&(this._checkDate(s),e=!0)}}return e},i._mergeDate=function(t){this._checkDate(re.INSTANCE.resolveDate(this.fieldValues,t))},i._checkDate=function(t){if(null!=t)for(var e in this._addObject(t),this.fieldValues.keySet()){var i=R.byName(e);if(i&&void 0!==this.fieldValues.get(i)&&i.isDateBased()){var r=void 0;try{r=t.getLong(i)}catch(t){if(t instanceof n)continue;throw t}var s=this.fieldValues.get(i);if(r!==s)throw new n("Conflict found: Field "+i+" "+r+" differs from "+i+" "+s+" derived from "+t)}}},i._mergeTime=function(t){if(this.fieldValues.containsKey(R.CLOCK_HOUR_OF_DAY)){var e=this.fieldValues.remove(R.CLOCK_HOUR_OF_DAY);t!==k.LENIENT&&(t===k.SMART&&0===e||R.CLOCK_HOUR_OF_DAY.checkValidValue(e)),this._addFieldValue(R.HOUR_OF_DAY,24===e?0:e)}if(this.fieldValues.containsKey(R.CLOCK_HOUR_OF_AMPM)){var n=this.fieldValues.remove(R.CLOCK_HOUR_OF_AMPM);t!==k.LENIENT&&(t===k.SMART&&0===n||R.CLOCK_HOUR_OF_AMPM.checkValidValue(n)),this._addFieldValue(R.HOUR_OF_AMPM,12===n?0:n)}if(t!==k.LENIENT&&(this.fieldValues.containsKey(R.AMPM_OF_DAY)&&R.AMPM_OF_DAY.checkValidValue(this.fieldValues.get(R.AMPM_OF_DAY)),this.fieldValues.containsKey(R.HOUR_OF_AMPM)&&R.HOUR_OF_AMPM.checkValidValue(this.fieldValues.get(R.HOUR_OF_AMPM))),this.fieldValues.containsKey(R.AMPM_OF_DAY)&&this.fieldValues.containsKey(R.HOUR_OF_AMPM)){var i=this.fieldValues.remove(R.AMPM_OF_DAY),r=this.fieldValues.remove(R.HOUR_OF_AMPM);this._addFieldValue(R.HOUR_OF_DAY,12*i+r)}if(this.fieldValues.containsKey(R.NANO_OF_DAY)){var s=this.fieldValues.remove(R.NANO_OF_DAY);t!==k.LENIENT&&R.NANO_OF_DAY.checkValidValue(s),this._addFieldValue(R.SECOND_OF_DAY,m.intDiv(s,1e9)),this._addFieldValue(R.NANO_OF_SECOND,m.intMod(s,1e9))}if(this.fieldValues.containsKey(R.MICRO_OF_DAY)){var o=this.fieldValues.remove(R.MICRO_OF_DAY);t!==k.LENIENT&&R.MICRO_OF_DAY.checkValidValue(o),this._addFieldValue(R.SECOND_OF_DAY,m.intDiv(o,1e6)),this._addFieldValue(R.MICRO_OF_SECOND,m.intMod(o,1e6))}if(this.fieldValues.containsKey(R.MILLI_OF_DAY)){var a=this.fieldValues.remove(R.MILLI_OF_DAY);t!==k.LENIENT&&R.MILLI_OF_DAY.checkValidValue(a),this._addFieldValue(R.SECOND_OF_DAY,m.intDiv(a,1e3)),this._addFieldValue(R.MILLI_OF_SECOND,m.intMod(a,1e3))}if(this.fieldValues.containsKey(R.SECOND_OF_DAY)){var u=this.fieldValues.remove(R.SECOND_OF_DAY);t!==k.LENIENT&&R.SECOND_OF_DAY.checkValidValue(u),this._addFieldValue(R.HOUR_OF_DAY,m.intDiv(u,3600)),this._addFieldValue(R.MINUTE_OF_HOUR,m.intMod(m.intDiv(u,60),60)),this._addFieldValue(R.SECOND_OF_MINUTE,m.intMod(u,60))}if(this.fieldValues.containsKey(R.MINUTE_OF_DAY)){var h=this.fieldValues.remove(R.MINUTE_OF_DAY);t!==k.LENIENT&&R.MINUTE_OF_DAY.checkValidValue(h),this._addFieldValue(R.HOUR_OF_DAY,m.intDiv(h,60)),this._addFieldValue(R.MINUTE_OF_HOUR,m.intMod(h,60))}if(t!==k.LENIENT&&(this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&R.MILLI_OF_SECOND.checkValidValue(this.fieldValues.get(R.MILLI_OF_SECOND)),this.fieldValues.containsKey(R.MICRO_OF_SECOND)&&R.MICRO_OF_SECOND.checkValidValue(this.fieldValues.get(R.MICRO_OF_SECOND))),this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&this.fieldValues.containsKey(R.MICRO_OF_SECOND)){var f=this.fieldValues.remove(R.MILLI_OF_SECOND),c=this.fieldValues.get(R.MICRO_OF_SECOND);this._putFieldValue0(R.MICRO_OF_SECOND,1e3*f+m.intMod(c,1e3))}if(this.fieldValues.containsKey(R.MICRO_OF_SECOND)&&this.fieldValues.containsKey(R.NANO_OF_SECOND)){var l=this.fieldValues.get(R.NANO_OF_SECOND);this._putFieldValue0(R.MICRO_OF_SECOND,m.intDiv(l,1e3)),this.fieldValues.remove(R.MICRO_OF_SECOND)}if(this.fieldValues.containsKey(R.MILLI_OF_SECOND)&&this.fieldValues.containsKey(R.NANO_OF_SECOND)){var _=this.fieldValues.get(R.NANO_OF_SECOND);this._putFieldValue0(R.MILLI_OF_SECOND,m.intDiv(_,1e6)),this.fieldValues.remove(R.MILLI_OF_SECOND)}if(this.fieldValues.containsKey(R.MICRO_OF_SECOND)){var d=this.fieldValues.remove(R.MICRO_OF_SECOND);this._putFieldValue0(R.NANO_OF_SECOND,1e3*d)}else if(this.fieldValues.containsKey(R.MILLI_OF_SECOND)){var p=this.fieldValues.remove(R.MILLI_OF_SECOND);this._putFieldValue0(R.NANO_OF_SECOND,1e6*p)}},i._resolveTimeInferZeroes=function(t){var e=this.fieldValues.get(R.HOUR_OF_DAY),n=this.fieldValues.get(R.MINUTE_OF_HOUR),i=this.fieldValues.get(R.SECOND_OF_MINUTE),r=this.fieldValues.get(R.NANO_OF_SECOND);if(null!=e&&(null!=n||null==i&&null==r)&&(null==n||null!=i||null==r)){if(t!==k.LENIENT){if(null!=e){t!==k.SMART||24!==e||null!=n&&0!==n||null!=i&&0!==i||null!=r&&0!==r||(e=0,this.excessDays=b.ofDays(1));var s=R.HOUR_OF_DAY.checkValidIntValue(e);if(null!=n){var o=R.MINUTE_OF_HOUR.checkValidIntValue(n);if(null!=i){var a=R.SECOND_OF_MINUTE.checkValidIntValue(i);if(null!=r){var u=R.NANO_OF_SECOND.checkValidIntValue(r);this._addObject(fe.of(s,o,a,u))}else this._addObject(fe.of(s,o,a))}else null==r&&this._addObject(fe.of(s,o))}else null==i&&null==r&&this._addObject(fe.of(s,0))}}else if(null!=e){var h=e;if(null!=n)if(null!=i){null==r&&(r=0);var f=m.safeMultiply(h,36e11);f=m.safeAdd(f,m.safeMultiply(n,6e10)),f=m.safeAdd(f,m.safeMultiply(i,1e9)),f=m.safeAdd(f,r);var c=m.floorDiv(f,864e11),l=m.floorMod(f,864e11);this._addObject(fe.ofNanoOfDay(l)),this.excessDays=b.ofDays(c)}else{var _=m.safeMultiply(h,3600);_=m.safeAdd(_,m.safeMultiply(n,60));var d=m.floorDiv(_,86400),p=m.floorMod(_,86400);this._addObject(fe.ofSecondOfDay(p)),this.excessDays=b.ofDays(d)}else{var O=m.safeToInt(m.floorDiv(h,24));h=m.floorMod(h,24),this._addObject(fe.of(h,0)),this.excessDays=b.ofDays(O)}}this.fieldValues.remove(R.HOUR_OF_DAY),this.fieldValues.remove(R.MINUTE_OF_HOUR),this.fieldValues.remove(R.SECOND_OF_MINUTE),this.fieldValues.remove(R.NANO_OF_SECOND)}},i._addObject=function(t){t instanceof B?this.date=t:t instanceof fe&&(this.time=t)},i._mergeInstantFields=function(){if(this.fieldValues.containsKey(R.INSTANT_SECONDS))if(null!=this.zone)this._mergeInstantFields0(this.zone);else{var t=this.fieldValues.get(R.OFFSET_SECONDS);null!=t&&this._mergeInstantFields0(ft.ofTotalSeconds(t))}},i._mergeInstantFields0=function(t){var e=le.ofEpochSecond(this.fieldValues.remove(R.INSTANT_SECONDS)),n=dt.ofInstant(e,t);null==this.date?this._addObject(n.toLocalDate()):this._resolveMakeChanges(R.INSTANT_SECONDS,n.toLocalDate()),this._addFieldValue(R.SECOND_OF_DAY,n.toLocalTime().toSecondOfDay())},i._resolveMakeChanges=function(t,e){var i=e.toEpochDay(),r=this.fieldValues.get(R.EPOCH_DAY);if(this.fieldValues.put(R.EPOCH_DAY,i),null!=r&&r!==i)throw new n("Conflict found: "+ae.ofEpochDay(r)+" differs from "+ae.ofEpochDay(i)+" while resolving "+t)},i._crossCheck=function(){null!=this.date&&null!=this.time?this._crossCheck0(this.date.atTime(this.time)):null!=this.date?this._crossCheck0(this.date):null!=this.time&&this._crossCheck0(this.time)},i._crossCheck0=function(t){for(var e in this.fieldValues.keySet()){var i=R.byName(e);if(i&&void 0!==this.fieldValues.get(i)&&t.isSupported(i)){var r=void 0;try{r=t.getLong(i)}catch(t){if(t instanceof n)continue;throw t}var s=this.fieldValues.get(i);if(r!==s)throw new n("Cross check failed: "+i+" "+r+" vs "+i+" "+s);this.fieldValues.remove(i)}}},i._resolveFractional=function(){if(null==this.time&&(this.fieldValues.containsKey(R.INSTANT_SECONDS)||this.fieldValues.containsKey(R.SECOND_OF_DAY)||this.fieldValues.containsKey(R.SECOND_OF_MINUTE)))if(this.fieldValues.containsKey(R.NANO_OF_SECOND)){var t=this.fieldValues.get(R.NANO_OF_SECOND);this.fieldValues.put(R.MICRO_OF_SECOND,m.intDiv(t,1e3)),this.fieldValues.put(R.MILLI_OF_SECOND,m.intDiv(t,1e6))}else this.fieldValues.put(R.NANO_OF_SECOND,0),this.fieldValues.put(R.MICRO_OF_SECOND,0),this.fieldValues.put(R.MILLI_OF_SECOND,0)},i._resolveInstant=function(){if(null!=this.date&&null!=this.time){var t=this.fieldValues.get(R.OFFSET_SECONDS);if(null!=t){var e=ft.ofTotalSeconds(t),n=this.date.atTime(this.time).atZone(e).getLong(R.INSTANT_SECONDS);this.fieldValues.put(R.INSTANT_SECONDS,n)}else if(null!=this.zone){var i=this.date.atTime(this.time).atZone(this.zone).getLong(R.INSTANT_SECONDS);this.fieldValues.put(R.INSTANT_SECONDS,i)}}},i.build=function(t){return t.queryFrom(this)},i.isSupported=function(t){return null!=t&&(this.fieldValues.containsKey(t)&&void 0!==this.fieldValues.get(t)||null!=this.date&&this.date.isSupported(t)||null!=this.time&&this.time.isSupported(t))},i.getLong=function(t){_(t,"field");var e=this.getFieldValue0(t);if(null==e){if(null!=this.date&&this.date.isSupported(t))return this.date.getLong(t);if(null!=this.time&&this.time.isSupported(t))return this.time.getLong(t);throw new n("Field not found: "+t)}return e},i.query=function(t){return t===g.zoneId()?this.zone:t===g.chronology()?this.chrono:t===g.localDate()?null!=this.date?ae.from(this.date):null:t===g.localTime()?this.time:t===g.zone()||t===g.offset()?t.queryFrom(this):t===g.precision()?null:t.queryFrom(this)},e}(I),Ot=function(){function t(){if(1===arguments.length){if(arguments[0]instanceof t)return void this._constructorSelf.apply(this,arguments);this._constructorFormatter.apply(this,arguments)}else this._constructorParam.apply(this,arguments);this._caseSensitive=!0,this._strict=!0,this._parsed=[new Et(this)]}var e=t.prototype;return e._constructorParam=function(t,e,n){this._locale=t,this._symbols=e,this._overrideChronology=n},e._constructorFormatter=function(t){this._locale=t.locale(),this._symbols=t.decimalStyle(),this._overrideChronology=t.chronology()},e._constructorSelf=function(t){this._locale=t._locale,this._symbols=t._symbols,this._overrideChronology=t._overrideChronology,this._overrideZone=t._overrideZone,this._caseSensitive=t._caseSensitive,this._strict=t._strict,this._parsed=[new Et(this)]},e.copy=function(){return new t(this)},e.symbols=function(){return this._symbols},e.isStrict=function(){return this._strict},e.setStrict=function(t){this._strict=t},e.locale=function(){return this._locale},e.setLocale=function(t){this._locale=t},e.startOptional=function(){this._parsed.push(this.currentParsed().copy())},e.endOptional=function(t){t?this._parsed.splice(this._parsed.length-2,1):this._parsed.splice(this._parsed.length-1,1)},e.isCaseSensitive=function(){return this._caseSensitive},e.setCaseSensitive=function(t){this._caseSensitive=t},e.subSequenceEquals=function(t,e,n,i,r){if(e+r>t.length||i+r>n.length)return!1;this.isCaseSensitive()||(t=t.toLowerCase(),n=n.toLowerCase());for(var s=0;s<r;s++){if(t[e+s]!==n[i+s])return!1}return!0},e.charEquals=function(t,e){return this.isCaseSensitive()?t===e:this.charEqualsIgnoreCase(t,e)},e.charEqualsIgnoreCase=function(t,e){return t===e||t.toLowerCase()===e.toLowerCase()},e.setParsedField=function(t,e,n,i){var r=this.currentParsed().fieldValues,s=r.get(t);return r.set(t,e),null!=s&&s!==e?~n:i},e.setParsedZone=function(t){_(t,"zone"),this.currentParsed().zone=t},e.getParsed=function(t){return this.currentParsed().fieldValues.get(t)},e.toParsed=function(){return this.currentParsed()},e.currentParsed=function(){return this._parsed[this._parsed.length-1]},e.setParsedLeapSecond=function(){this.currentParsed().leapSecond=!0},e.getEffectiveChronology=function(){var t=this.currentParsed().chrono;return null==t&&null==(t=this._overrideChronology)&&(t=re.INSTANCE),t},t}(),Et=function(t){function e(e){var n;return(n=t.call(this)||this).chrono=null,n.zone=null,n.fieldValues=new W,n.leapSecond=!1,n.excessDays=b.ZERO,n.dateTimeParseContext=e,n}f(e,t);var n=e.prototype;return n.copy=function(){var t=new e;return t.chrono=this.chrono,t.zone=this.zone,t.fieldValues.putAll(this.fieldValues),t.leapSecond=this.leapSecond,t.dateTimeParseContext=this.dateTimeParseContext,t},n.toString=function(){return this.fieldValues+", "+this.chrono+", "+this.zone},n.isSupported=function(t){return this.fieldValues.containsKey(t)},n.get=function(t){var e=this.fieldValues.get(t);return l(null!=e),e},n.query=function(e){return e===g.chronology()?this.chrono:e===g.zoneId()||e===g.zone()?this.zone:t.prototype.query.call(this,e)},n.toBuilder=function(){var t=new pt;return t.fieldValues.putAll(this.fieldValues),t.chrono=this.dateTimeParseContext.getEffectiveChronology(),null!=this.zone?t.zone=this.zone:t.zone=this.overrideZone,t.leapSecond=this.leapSecond,t.excessDays=this.excessDays,t},e}(x),St=function(){function t(e,n,i){2===arguments.length&&arguments[1]instanceof zt?(this._temporal=t.adjust(e,n),this._locale=n.locale(),this._symbols=n.decimalStyle()):(this._temporal=e,this._locale=n,this._symbols=i),this._optional=0}t.adjust=function(t,e){return t};var e=t.prototype;return e.symbols=function(){return this._symbols},e.startOptional=function(){this._optional++},e.endOptional=function(){this._optional--},e.getValueQuery=function(t){var e=this._temporal.query(t);if(null==e&&0===this._optional)throw new n("Unable to extract value: "+this._temporal);return e},e.getValue=function(t){try{return this._temporal.getLong(t)}catch(t){if(t instanceof n&&this._optional>0)return null;throw t}},e.temporal=function(){return this._temporal},e.locale=function(){return this._locale},e.setDateTime=function(t){this._temporal=t},e.setLocale=function(t){this._locale=t},t}(),mt=function(){function t(t,e,n,i){this._zeroDigit=t,this._zeroDigitCharCode=t.charCodeAt(0),this._positiveSign=e,this._negativeSign=n,this._decimalSeparator=i}var e=t.prototype;return e.positiveSign=function(){return this._positiveSign},e.withPositiveSign=function(e){return e===this._positiveSign?this:new t(this._zeroDigit,e,this._negativeSign,this._decimalSeparator)},e.negativeSign=function(){return this._negativeSign},e.withNegativeSign=function(e){return e===this._negativeSign?this:new t(this._zeroDigit,this._positiveSign,e,this._decimalSeparator)},e.zeroDigit=function(){return this._zeroDigit},e.withZeroDigit=function(e){return e===this._zeroDigit?this:new t(e,this._positiveSign,this._negativeSign,this._decimalSeparator)},e.decimalSeparator=function(){return this._decimalSeparator},e.withDecimalSeparator=function(e){return e===this._decimalSeparator?this:new t(this._zeroDigit,this._positiveSign,this._negativeSign,e)},e.convertToDigit=function(t){var e=t.charCodeAt(0)-this._zeroDigitCharCode;return e>=0&&e<=9?e:-1},e.convertNumberToI18N=function(t){if("0"===this._zeroDigit)return t;for(var e=this._zeroDigitCharCode-"0".charCodeAt(0),n="",i=0;i<t.length;i++)n+=String.fromCharCode(t.charCodeAt(i)+e);return n},e.equals=function(e){return this===e||e instanceof t&&(this._zeroDigit===e._zeroDigit&&this._positiveSign===e._positiveSign&&this._negativeSign===e._negativeSign&&this._decimalSeparator===e._decimalSeparator)},e.hashCode=function(){return this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator},e.toString=function(){return"DecimalStyle["+this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator+"]"},t.of=function(){throw new Error("not yet supported")},t.availableLocales=function(){throw new Error("not yet supported")},t}();mt.STANDARD=new mt("0","+","-",".");var Nt=function(t){function e(){return t.apply(this,arguments)||this}return f(e,t),e.prototype.parse=function(t,n,i){switch(this){case e.NORMAL:return!t||!n;case e.ALWAYS:case e.EXCEEDS_PAD:return!0;default:return!n&&!i}},e}(N);Nt.NORMAL=new Nt("NORMAL"),Nt.NEVER=new Nt("NEVER"),Nt.ALWAYS=new Nt("ALWAYS"),Nt.EXCEEDS_PAD=new Nt("EXCEEDS_PAD"),Nt.NOT_NEGATIVE=new Nt("NOT_NEGATIVE");var Dt=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.isStandalone=function(){switch(this){case e.FULL_STANDALONE:case e.SHORT_STANDALONE:case e.NARROW_STANDALONE:return!0;default:return!1}},n.asStandalone=function(){switch(this){case e.FULL:return e.FULL_STANDALONE;case e.SHORT:return e.SHORT_STANDALONE;case e.NARROW:return e.NARROW_STANDALONE;default:return this}},n.asNormal=function(){switch(this){case e.FULL_STANDALONE:return e.FULL;case e.SHORT_STANDALONE:return e.SHORT;case e.NARROW_STANDALONE:return e.NARROW;default:return this}},e}(N);Dt.FULL=new Dt("FULL"),Dt.FULL_STANDALONE=new Dt("FULL_STANDALONE"),Dt.SHORT=new Dt("SHORT"),Dt.SHORT_STANDALONE=new Dt("SHORT_STANDALONE"),Dt.NARROW=new Dt("NARROW"),Dt.NARROW_STANDALONE=new Dt("NARROW_STANDALONE");var At=function(){function t(t){if(t.length>1)throw new o('invalid literal, too long: "'+t+'"');this._literal=t}var e=t.prototype;return e.print=function(t,e){return e.append(this._literal),!0},e.parse=function(t,e,n){if(n===e.length)return~n;var i=e.charAt(n);return!1===t.charEquals(this._literal,i)?~n:n+this._literal.length},e.toString=function(){return"'"===this._literal?"''":"'"+this._literal+"'"},t}(),Tt=function(){function t(t,e){this._printerParsers=t,this._optional=e}var e=t.prototype;return e.withOptional=function(e){return e===this._optional?this:new t(this._printerParsers,e)},e.print=function(t,e){var n=e.length();this._optional&&t.startOptional();try{for(var i=0;i<this._printerParsers.length;i++){if(!1===this._printerParsers[i].print(t,e))return e.setLength(n),!0}}finally{this._optional&&t.endOptional()}return!0},e.parse=function(t,e,n){if(this._optional){t.startOptional();for(var i=n,r=0;r<this._printerParsers.length;r++){if((i=this._printerParsers[r].parse(t,e,i))<0)return t.endOptional(!1),n}return t.endOptional(!0),i}for(var s=0;s<this._printerParsers.length;s++){if((n=this._printerParsers[s].parse(t,e,n))<0)break}return n},e.toString=function(){var t="";if(null!=this._printerParsers){t+=this._optional?"[":"(";for(var e=0;e<this._printerParsers.length;e++){t+=this._printerParsers[e].toString()}t+=this._optional?"]":")"}return t},t}(),vt=function(){function t(t,e,n,i){if(_(t,"field"),!1===t.range().isFixed())throw new o("Field must have a fixed set of values: "+t);if(e<0||e>9)throw new o("Minimum width must be from 0 to 9 inclusive but was "+e);if(n<1||n>9)throw new o("Maximum width must be from 1 to 9 inclusive but was "+n);if(n<e)throw new o("Maximum width must exceed or equal the minimum width but "+n+" < "+e);this.field=t,this.minWidth=e,this.maxWidth=n,this.decimalPoint=i}var e=t.prototype;return e.print=function(t,e){var n=t.getValue(this.field);if(null===n)return!1;var i=t.symbols();if(0===n){if(this.minWidth>0){this.decimalPoint&&e.append(i.decimalSeparator());for(var r=0;r<this.minWidth;r++)e.append(i.zeroDigit())}}else{var s=this.convertToFraction(n,i.zeroDigit()),o=Math.min(Math.max(s.length,this.minWidth),this.maxWidth);if(1*(s=s.substr(0,o))>0)for(;s.length>this.minWidth&&"0"===s[s.length-1];)s=s.substr(0,s.length-1);var a=s;a=i.convertNumberToI18N(a),this.decimalPoint&&e.append(i.decimalSeparator()),e.append(a)}return!0},e.parse=function(t,e,n){var i=t.isStrict()?this.minWidth:0,r=t.isStrict()?this.maxWidth:9,s=e.length;if(n===s)return i>0?~n:n;if(this.decimalPoint){if(e[n]!==t.symbols().decimalSeparator())return i>0?~n:n;n++}var o=n+i;if(o>s)return~n;for(var a=Math.min(n+r,s),u=0,h=n;h<a;){var f=e.charAt(h++),c=t.symbols().convertToDigit(f);if(c<0){if(h<o)return~n;h--;break}u=10*u+c}var l=h-n,_=Math.pow(10,l),d=this.convertFromFraction(u,_);return t.setParsedField(this.field,d,n,h)},e.convertToFraction=function(t,e){var n=this.field.range();n.checkValidValue(t,this.field);for(var i=n.minimum(),r=n.maximum()-i+1,s=t-i,o=""+m.intDiv(1e9*s,r);o.length<9;)o=e+o;return o},e.convertFromFraction=function(t,e){var n=this.field.range(),i=n.minimum(),r=n.maximum()-i+1;return m.intDiv(t*r,e)},e.toString=function(){var t=this.decimalPoint?",DecimalPoint":"";return"Fraction("+this.field+","+this.minWidth+","+this.maxWidth+t+")"},t}(),wt=[0,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],yt=function(){function t(t,e,n,i,r){void 0===r&&(r=0),this._field=t,this._minWidth=e,this._maxWidth=n,this._signStyle=i,this._subsequentWidth=r}var e=t.prototype;return e.field=function(){return this._field},e.minWidth=function(){return this._minWidth},e.maxWidth=function(){return this._maxWidth},e.signStyle=function(){return this._signStyle},e.withFixedWidth=function(){return-1===this._subsequentWidth?this:new t(this._field,this._minWidth,this._maxWidth,this._signStyle,-1)},e.withSubsequentWidth=function(e){return new t(this._field,this._minWidth,this._maxWidth,this._signStyle,this._subsequentWidth+e)},e._isFixedWidth=function(){return-1===this._subsequentWidth||this._subsequentWidth>0&&this._minWidth===this._maxWidth&&this._signStyle===Nt.NOT_NEGATIVE},e.print=function(t,e){var i=t.getValue(this._field);if(null==i)return!1;var r=this._getValue(t,i),s=t.symbols(),o=""+Math.abs(r);if(o.length>this._maxWidth)throw new n("Field "+this._field+" cannot be printed as the value "+r+" exceeds the maximum print width of "+this._maxWidth);if(o=s.convertNumberToI18N(o),r>=0)switch(this._signStyle){case Nt.EXCEEDS_PAD:this._minWidth<15&&r>=wt[this._minWidth]&&e.append(s.positiveSign());break;case Nt.ALWAYS:e.append(s.positiveSign())}else switch(this._signStyle){case Nt.NORMAL:case Nt.EXCEEDS_PAD:case Nt.ALWAYS:e.append(s.negativeSign());break;case Nt.NOT_NEGATIVE:throw new n("Field "+this._field+" cannot be printed as the value "+r+" cannot be negative according to the SignStyle")}for(var a=0;a<this._minWidth-o.length;a++)e.append(s.zeroDigit());return e.append(o),!0},e.parse=function(t,e,n){var i=e.length;if(n===i)return~n;l(n>=0&&n<i);var r=e.charAt(n),o=!1,a=!1;if(r===t.symbols().positiveSign()){if(!1===this._signStyle.parse(!0,t.isStrict(),this._minWidth===this._maxWidth))return~n;a=!0,n++}else if(r===t.symbols().negativeSign()){if(!1===this._signStyle.parse(!1,t.isStrict(),this._minWidth===this._maxWidth))return~n;o=!0,n++}else if(this._signStyle===Nt.ALWAYS&&t.isStrict())return~n;var u=t.isStrict()||this._isFixedWidth()?this._minWidth:1,h=n+u;if(h>i)return~n;for(var f=(t.isStrict()||this._isFixedWidth()?this._maxWidth:9)+Math.max(this._subsequentWidth,0),c=0,_=n,d=0;d<2;d++){for(var p=Math.min(_+f,i);_<p;){var O=e.charAt(_++),E=t.symbols().convertToDigit(O);if(E<0){if(--_<h)return~n;break}if(_-n>15)throw new s("number text exceeds length");c=10*c+E}if(!(this._subsequentWidth>0&&0===d))break;var S=_-n;f=Math.max(u,S-this._subsequentWidth),_=n,c=0}if(o){if(0===c&&t.isStrict())return~(n-1);0!==c&&(c=-c)}else if(this._signStyle===Nt.EXCEEDS_PAD&&t.isStrict()){var m=_-n;if(a){if(m<=this._minWidth)return~(n-1)}else if(m>this._minWidth)return~n}return this._setValue(t,c,n,_)},e._getValue=function(t,e){return e},e._setValue=function(t,e,n,i){return t.setParsedField(this._field,e,n,i)},e.toString=function(){return 1===this._minWidth&&15===this._maxWidth&&this._signStyle===Nt.NORMAL?"Value("+this._field+")":this._minWidth===this._maxWidth&&this._signStyle===Nt.NOT_NEGATIVE?"Value("+this._field+","+this._minWidth+")":"Value("+this._field+","+this._minWidth+","+this._maxWidth+","+this._signStyle+")"},t}(),Mt=function(t){function e(e,i,r,s,a){var u;if(u=t.call(this,e,i,r,Nt.NOT_NEGATIVE)||this,i<1||i>10)throw new o("The width must be from 1 to 10 inclusive but was "+i);if(r<1||r>10)throw new o("The maxWidth must be from 1 to 10 inclusive but was "+r);if(r<i)throw new o("The maxWidth must be greater than the width");if(null===a){if(!1===e.range().isValidValue(s))throw new o("The base value must be within the range of the field");if(s+wt[i]>m.MAX_SAFE_INTEGER)throw new n("Unable to add printer-parser as the range exceeds the capacity of an int")}return u._baseValue=s,u._baseDate=a,u}f(e,t);var i=e.prototype;return i._getValue=function(t,e){var n=Math.abs(e),i=this._baseValue;null!==this._baseDate&&(t.temporal(),i=re.INSTANCE.date(this._baseDate).get(this._field));return e>=i&&e<i+wt[this._minWidth]?n%wt[this._minWidth]:n%wt[this._maxWidth]},i._setValue=function(t,e,n,i){var r=this._baseValue;null!=this._baseDate&&(r=t.getEffectiveChronology().date(this._baseDate).get(this._field));if(i-n===this._minWidth&&e>=0){var s=wt[this._minWidth],o=r-r%s;(e=r>0?o+e:o-e)<r&&(e+=s)}return t.setParsedField(this._field,e,n,i)},i.withFixedWidth=function(){return-1===this._subsequentWidth?this:new e(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate)},i.withSubsequentWidth=function(t){return new e(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,this._subsequentWidth+t)},i.isFixedWidth=function(e){return!1!==e.isStrict()&&t.prototype.isFixedWidth.call(this,e)},i.toString=function(){return"ReducedValue("+this._field+","+this._minWidth+","+this._maxWidth+","+(null!=this._baseDate?this._baseDate:this._baseValue)+")"},e}(yt),Rt=["+HH","+HHmm","+HH:mm","+HHMM","+HH:MM","+HHMMss","+HH:MM:ss","+HHMMSS","+HH:MM:SS"],gt=function(){function t(t,e){_(t,"noOffsetText"),_(e,"pattern"),this.noOffsetText=t,this.type=this._checkPattern(e)}var e=t.prototype;return e._checkPattern=function(t){for(var e=0;e<Rt.length;e++)if(Rt[e]===t)return e;throw new o("Invalid zone offset pattern: "+t)},e.print=function(t,e){var n=t.getValue(R.OFFSET_SECONDS);if(null==n)return!1;var i=m.safeToInt(n);if(0===i)e.append(this.noOffsetText);else{var r=Math.abs(m.intMod(m.intDiv(i,3600),100)),s=Math.abs(m.intMod(m.intDiv(i,60),60)),o=Math.abs(m.intMod(i,60)),a=e.length(),u=r;e.append(i<0?"-":"+").appendChar(m.intDiv(r,10)+"0").appendChar(m.intMod(r,10)+"0"),(this.type>=3||this.type>=1&&s>0)&&(e.append(this.type%2==0?":":"").appendChar(m.intDiv(s,10)+"0").appendChar(s%10+"0"),u+=s,(this.type>=7||this.type>=5&&o>0)&&(e.append(this.type%2==0?":":"").appendChar(m.intDiv(o,10)+"0").appendChar(o%10+"0"),u+=o)),0===u&&(e.setLength(a),e.append(this.noOffsetText))}return!0},e.parse=function(t,e,n){var i=e.length,r=this.noOffsetText.length;if(0===r){if(n===i)return t.setParsedField(R.OFFSET_SECONDS,0,n,n)}else{if(n===i)return~n;if(t.subSequenceEquals(e,n,this.noOffsetText,0,r))return t.setParsedField(R.OFFSET_SECONDS,0,n,n+r)}var s=e[n];if("+"===s||"-"===s){var o="-"===s?-1:1,a=[0,0,0,0];if(a[0]=n+1,!1===(this._parseNumber(a,1,e,!0)||this._parseNumber(a,2,e,this.type>=3)||this._parseNumber(a,3,e,!1))){var u=m.safeZero(o*(3600*a[1]+60*a[2]+a[3]));return t.setParsedField(R.OFFSET_SECONDS,u,n,a[0])}}return 0===r?t.setParsedField(R.OFFSET_SECONDS,0,n,n+r):~n},e._parseNumber=function(t,e,n,i){if((this.type+3)/2<e)return!1;var r=t[0];if(this.type%2==0&&e>1){if(r+1>n.length||":"!==n[r])return i;r++}if(r+2>n.length)return i;var s=n[r++],o=n[r++];if(s<"0"||s>"9"||o<"0"||o>"9")return i;var a=10*(s.charCodeAt(0)-48)+(o.charCodeAt(0)-48);return a<0||a>59?i:(t[e]=a,t[0]=r,!1)},e.toString=function(){var t=this.noOffsetText.replace("'","''");return"Offset("+Rt[this.type]+",'"+t+"')"},t}();gt.INSTANCE_ID=new gt("Z","+HH:MM:ss"),gt.PATTERNS=Rt;var It=function(){function t(t,e,n){this._printerParser=t,this._padWidth=e,this._padChar=n}var e=t.prototype;return e.print=function(t,e){var i=e.length();if(!1===this._printerParser.print(t,e))return!1;var r=e.length()-i;if(r>this._padWidth)throw new n("Cannot print as output of "+r+" characters exceeds pad width of "+this._padWidth);for(var s=0;s<this._padWidth-r;s++)e.insert(i,this._padChar);return!0},e.parse=function(t,e,n){var i=t.isStrict(),r=t.isCaseSensitive();if(l(!(n>e.length)),l(n>=0),n===e.length)return~n;var s=n+this._padWidth;if(s>e.length){if(i)return~n;s=e.length}for(var o=n;o<s&&(r?e[o]===this._padChar:t.charEquals(e[o],this._padChar));)o++;e=e.substring(0,s);var a=this._printerParser.parse(t,e,o);return a!==s&&i?~(n+o):a},e.toString=function(){return"Pad("+this._printerParser+","+this._padWidth+(" "===this._padChar?")":",'"+this._padChar+"')")},t}(),Ft=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.print=function(){return!0},n.parse=function(t,n,i){switch(this){case e.SENSITIVE:t.setCaseSensitive(!0);break;case e.INSENSITIVE:t.setCaseSensitive(!1);break;case e.STRICT:t.setStrict(!0);break;case e.LENIENT:t.setStrict(!1)}return i},n.toString=function(){switch(this){case e.SENSITIVE:return"ParseCaseSensitive(true)";case e.INSENSITIVE:return"ParseCaseSensitive(false)";case e.STRICT:return"ParseStrict(true)";case e.LENIENT:return"ParseStrict(false)"}},e}(N);Ft.SENSITIVE=new Ft("SENSITIVE"),Ft.INSENSITIVE=new Ft("INSENSITIVE"),Ft.STRICT=new Ft("STRICT"),Ft.LENIENT=new Ft("LENIENT");var Ct=function(){function t(t){this._literal=t}var e=t.prototype;return e.print=function(t,e){return e.append(this._literal),!0},e.parse=function(t,e,n){return l(!(n>e.length||n<0)),!1===t.subSequenceEquals(e,n,this._literal,0,this._literal.length)?~n:n+this._literal.length},e.toString=function(){return"'"+this._literal.replace("'","''")+"'"},t}(),Yt=function(){function t(){}return t.getRules=function(t){throw new n("@js-joda/timezone not imported")},t.getAvailableZoneIds=function(){return[]},t}(),Lt=function(t){function e(e,n){var i;return(i=t.call(this)||this)._id=e,i._rules=n,i}f(e,t),e.ofId=function(t){return new e(t,Yt.getRules(t))};var n=e.prototype;return n.id=function(){return this._id},n.rules=function(){return this._rules},e}(st),Pt=function(){function t(t,e){this.query=t,this.description=e}var e=t.prototype;return e.print=function(t,e){var n=t.getValueQuery(this.query);return null!=n&&(e.append(n.id()),!0)},e.parse=function(t,e,n){var i=e.length;if(n>i)return~n;if(n===i)return~n;var r=this._parseRegion(e,n),s=this._parseFixedId(t,e,n),o=s>=0?s-n:0;return null!=r&&r.parseLength>o?(t.setParsedZone(Lt.ofId(r.parsedZoneId)),n+r.parseLength):s},e._parseRegion=function(t,e){var n=Yt.getAvailableZoneIds();if(0===n.length)return null;bt.size!==n.length&&(bt=Ut.createTreeMap(n));for(var i=t.length-e,r=bt.treeMap,s=null,o=0;null!=r;){var a=t.substr(e,Math.min(r.length,i));null!=(r=r.get(a))&&r.isLeaf&&(s=a,o=r.length)}return null==s?null:{parsedZoneId:s,parseLength:o}},e._parseFixedId=function(t,e,n){var i=e.length,r=e.charAt(n);if("+"===r||"-"===r){var s=t.copy(),o=gt.INSTANCE_ID.parse(s,e,n);if(o<0)return o;var a=s.getParsed(R.OFFSET_SECONDS);return t.setParsedZone(ft.ofTotalSeconds(a)),o}if(i>=n+2){var u=e.charAt(n+1);if(t.charEquals(r,"U")&&t.charEquals(u,"T"))return i>=n+3&&t.charEquals(e.charAt(n+2),"C")?this._parsePrefixedOffset(t,e,n,n+3):this._parsePrefixedOffset(t,e,n,n+2);if(t.charEquals(r,"G")&&i>=n+3&&t.charEquals(u,"M")&&t.charEquals(e.charAt(n+2),"T"))return this._parsePrefixedOffset(t,e,n,n+3)}return"SYSTEM"===e.substr(n,6)?(t.setParsedZone(st.systemDefault()),n+6):t.charEquals(r,"Z")?(t.setParsedZone(ft.UTC),n+1):~n},e._parsePrefixedOffset=function(t,e,n,i){var r=e.substring(n,i).toUpperCase(),s=t.copy();if(i<e.length&&t.charEquals(e.charAt(i),"Z"))return t.setParsedZone(st.ofOffset(r,ft.UTC)),i;var o=gt.INSTANCE_ID.parse(s,e,i);if(o<0)return t.setParsedZone(st.ofOffset(r,ft.UTC)),i;var a=s.getParsed(R.OFFSET_SECONDS),u=ft.ofTotalSeconds(a);return t.setParsedZone(st.ofOffset(r,u)),o},e.toString=function(){return this.description},t}(),Ut=function(){function t(t,e){this.size=t,this.treeMap=e}return t.createTreeMap=function(e){for(var n=e.sort((function(t,e){return t.length-e.length})),i=new Vt(n[0].length,!1),r=0;r<n.length;r++)i.add(n[r]);return new t(n.length,i)},t}(),Vt=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=!1),this.length=t,this.isLeaf=e,this._treeMap={}}var e=t.prototype;return e.add=function(e){var n=e.length;if(n===this.length)this._treeMap[e]=new t(n,!0);else if(n>this.length){var i=e.substr(0,this.length),r=this._treeMap[i];null==r&&(r=new t(n,!1),this._treeMap[i]=r),r.add(e)}},e.get=function(t){return this._treeMap[t]},t}(),bt=new Ut([]),Ht=15,Wt=function(){function t(){this._active=this,this._parent=null,this._printerParsers=[],this._optional=!1,this._padNextWidth=0,this._padNextChar=null,this._valueParserIndex=-1}t._of=function(e,n){_(e,"parent"),_(n,"optional");var i=new t;return i._parent=e,i._optional=n,i};var e=t.prototype;return e.parseCaseSensitive=function(){return this._appendInternalPrinterParser(Ft.SENSITIVE),this},e.parseCaseInsensitive=function(){return this._appendInternalPrinterParser(Ft.INSENSITIVE),this},e.parseStrict=function(){return this._appendInternalPrinterParser(Ft.STRICT),this},e.parseLenient=function(){return this._appendInternalPrinterParser(Ft.LENIENT),this},e.parseDefaulting=function(t,e){return _(t),this._appendInternal(new qt(t,e)),this},e.appendValue=function(){return 1===arguments.length?this._appendValue1.apply(this,arguments):2===arguments.length?this._appendValue2.apply(this,arguments):this._appendValue4.apply(this,arguments)},e._appendValue1=function(t){return _(t),this._appendValuePrinterParser(new yt(t,1,Ht,Nt.NORMAL)),this},e._appendValue2=function(t,e){if(_(t),e<1||e>Ht)throw new o("The width must be from 1 to 15 inclusive but was "+e);var n=new yt(t,e,e,Nt.NOT_NEGATIVE);return this._appendValuePrinterParser(n),this},e._appendValue4=function(t,e,n,i){if(_(t),_(i),e===n&&i===Nt.NOT_NEGATIVE)return this._appendValue2(t,n);if(e<1||e>Ht)throw new o("The minimum width must be from 1 to 15 inclusive but was "+e);if(n<1||n>Ht)throw new o("The minimum width must be from 1 to 15 inclusive but was "+n);if(n<e)throw new o("The maximum width must exceed or equal the minimum width but "+n+" < "+e);var r=new yt(t,e,n,i);return this._appendValuePrinterParser(r),this},e.appendValueReduced=function(){return 4===arguments.length&&arguments[3]instanceof B?this._appendValueReducedFieldWidthMaxWidthBaseDate.apply(this,arguments):this._appendValueReducedFieldWidthMaxWidthBaseValue.apply(this,arguments)},e._appendValueReducedFieldWidthMaxWidthBaseValue=function(t,e,n,i){_(t,"field");var r=new Mt(t,e,n,i,null);return this._appendValuePrinterParser(r),this},e._appendValueReducedFieldWidthMaxWidthBaseDate=function(t,e,n,i){_(t,"field"),_(i,"baseDate"),d(i,B,"baseDate");var r=new Mt(t,e,n,0,i);return this._appendValuePrinterParser(r),this},e._appendValuePrinterParser=function(t){if(l(null!=t),this._active._valueParserIndex>=0&&this._active._printerParsers[this._active._valueParserIndex]instanceof yt){var e=this._active._valueParserIndex,n=this._active._printerParsers[e];t.minWidth()===t.maxWidth()&&t.signStyle()===Nt.NOT_NEGATIVE?(n=n.withSubsequentWidth(t.maxWidth()),this._appendInternal(t.withFixedWidth()),this._active._valueParserIndex=e):(n=n.withFixedWidth(),this._active._valueParserIndex=this._appendInternal(t)),this._active._printerParsers[e]=n}else this._active._valueParserIndex=this._appendInternal(t);return this},e.appendFraction=function(t,e,n,i){return this._appendInternal(new vt(t,e,n,i)),this},e.appendInstant=function(t){if(void 0===t&&(t=-2),t<-2||t>9)throw new o("Invalid fractional digits: "+t);return this._appendInternal(new Bt(t)),this},e.appendOffsetId=function(){return this._appendInternal(gt.INSTANCE_ID),this},e.appendOffset=function(t,e){return this._appendInternalPrinterParser(new gt(e,t)),this},e.appendZoneId=function(){return this._appendInternal(new Pt(g.zoneId(),"ZoneId()")),this},e.appendPattern=function(t){return _(t,"pattern"),this._parsePattern(t),this},e.appendZoneText=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e.appendText=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e.appendLocalizedOffset=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e.appendWeekField=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e._parsePattern=function(t){for(var e={G:R.ERA,y:R.YEAR_OF_ERA,u:R.YEAR,Q:q.QUARTER_OF_YEAR,q:q.QUARTER_OF_YEAR,M:R.MONTH_OF_YEAR,L:R.MONTH_OF_YEAR,D:R.DAY_OF_YEAR,d:R.DAY_OF_MONTH,F:R.ALIGNED_DAY_OF_WEEK_IN_MONTH,E:R.DAY_OF_WEEK,c:R.DAY_OF_WEEK,e:R.DAY_OF_WEEK,a:R.AMPM_OF_DAY,H:R.HOUR_OF_DAY,k:R.CLOCK_HOUR_OF_DAY,K:R.HOUR_OF_AMPM,h:R.CLOCK_HOUR_OF_AMPM,m:R.MINUTE_OF_HOUR,s:R.SECOND_OF_MINUTE,S:R.NANO_OF_SECOND,A:R.MILLI_OF_DAY,n:R.NANO_OF_SECOND,N:R.NANO_OF_DAY},n=0;n<t.length;n++){var i=t.charAt(n);if(i>="A"&&i<="Z"||i>="a"&&i<="z"){for(var r=n++;n<t.length&&t.charAt(n)===i;n++);var s=n-r;if("p"===i){var a=0;if(n<t.length&&((i=t.charAt(n))>="A"&&i<="Z"||i>="a"&&i<="z")){for(a=s,r=n++;n<t.length&&t.charAt(n)===i;n++);s=n-r}if(0===a)throw new o("Pad letter 'p' must be followed by valid pad pattern: "+t);this.padNext(a)}var u=e[i];if(null!=u)this._parseField(i,s,u);else if("z"===i){if(s>4)throw new o("Too many pattern letters: "+i);4===s?this.appendZoneText(Dt.FULL):this.appendZoneText(Dt.SHORT)}else if("V"===i){if(2!==s)throw new o("Pattern letter count must be 2: "+i);this.appendZoneId()}else if("Z"===i)if(s<4)this.appendOffset("+HHMM","+0000");else if(4===s)this.appendLocalizedOffset(Dt.FULL);else{if(5!==s)throw new o("Too many pattern letters: "+i);this.appendOffset("+HH:MM:ss","Z")}else if("O"===i)if(1===s)this.appendLocalizedOffset(Dt.SHORT);else{if(4!==s)throw new o("Pattern letter count must be 1 or 4: "+i);this.appendLocalizedOffset(Dt.FULL)}else if("X"===i){if(s>5)throw new o("Too many pattern letters: "+i);this.appendOffset(gt.PATTERNS[s+(1===s?0:1)],"Z")}else if("x"===i){if(s>5)throw new o("Too many pattern letters: "+i);var h=1===s?"+00":s%2==0?"+0000":"+00:00";this.appendOffset(gt.PATTERNS[s+(1===s?0:1)],h)}else if("W"===i){if(s>1)throw new o("Too many pattern letters: "+i);this.appendWeekField("W",s)}else if("w"===i){if(s>2)throw new o("Too many pattern letters: "+i);this.appendWeekField("w",s)}else{if("Y"!==i)throw new o("Unknown pattern letter: "+i);this.appendWeekField("Y",s)}n--}else if("'"===i){for(var f=n++;n<t.length;n++)if("'"===t.charAt(n)){if(!(n+1<t.length&&"'"===t.charAt(n+1)))break;n++}if(n>=t.length)throw new o("Pattern ends with an incomplete string literal: "+t);var c=t.substring(f+1,n);0===c.length?this.appendLiteral("'"):this.appendLiteral(c.replace("''","'"))}else if("["===i)this.optionalStart();else if("]"===i){if(null===this._active._parent)throw new o("Pattern invalid as it contains ] without previous [");this.optionalEnd()}else{if("{"===i||"}"===i||"#"===i)throw new o("Pattern includes reserved character: '"+i+"'");this.appendLiteral(i)}}},e._parseField=function(t,e,n){switch(t){case"u":case"y":2===e?this.appendValueReduced(n,2,2,Mt.BASE_DATE):e<4?this.appendValue(n,e,Ht,Nt.NORMAL):this.appendValue(n,e,Ht,Nt.EXCEEDS_PAD);break;case"M":case"Q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Dt.SHORT);break;case 4:this.appendText(n,Dt.FULL);break;case 5:this.appendText(n,Dt.NARROW);break;default:throw new o("Too many pattern letters: "+t)}break;case"L":case"q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,Dt.SHORT_STANDALONE);break;case 4:this.appendText(n,Dt.FULL_STANDALONE);break;case 5:this.appendText(n,Dt.NARROW_STANDALONE);break;default:throw new o("Too many pattern letters: "+t)}break;case"e":switch(e){case 1:case 2:this.appendWeekField("e",e);break;case 3:this.appendText(n,Dt.SHORT);break;case 4:this.appendText(n,Dt.FULL);break;case 5:this.appendText(n,Dt.NARROW);break;default:throw new o("Too many pattern letters: "+t)}break;case"c":switch(e){case 1:this.appendWeekField("c",e);break;case 2:throw new o("Invalid number of pattern letters: "+t);case 3:this.appendText(n,Dt.SHORT_STANDALONE);break;case 4:this.appendText(n,Dt.FULL_STANDALONE);break;case 5:this.appendText(n,Dt.NARROW_STANDALONE);break;default:throw new o("Too many pattern letters: "+t)}break;case"a":if(1!==e)throw new o("Too many pattern letters: "+t);this.appendText(n,Dt.SHORT);break;case"E":case"G":switch(e){case 1:case 2:case 3:this.appendText(n,Dt.SHORT);break;case 4:this.appendText(n,Dt.FULL);break;case 5:this.appendText(n,Dt.NARROW);break;default:throw new o("Too many pattern letters: "+t)}break;case"S":this.appendFraction(R.NANO_OF_SECOND,e,e,!1);break;case"F":if(1!==e)throw new o("Too many pattern letters: "+t);this.appendValue(n);break;case"d":case"h":case"H":case"k":case"K":case"m":case"s":if(1===e)this.appendValue(n);else{if(2!==e)throw new o("Too many pattern letters: "+t);this.appendValue(n,e)}break;case"D":if(1===e)this.appendValue(n);else{if(!(e<=3))throw new o("Too many pattern letters: "+t);this.appendValue(n,e)}break;default:1===e?this.appendValue(n):this.appendValue(n,e)}},e.padNext=function(){return 1===arguments.length?this._padNext1.apply(this,arguments):this._padNext2.apply(this,arguments)},e._padNext1=function(t){return this._padNext2(t," ")},e._padNext2=function(t,e){if(t<1)throw new o("The pad width must be at least one but was "+t);return this._active._padNextWidth=t,this._active._padNextChar=e,this._active._valueParserIndex=-1,this},e.optionalStart=function(){return this._active._valueParserIndex=-1,this._active=t._of(this._active,!0),this},e.optionalEnd=function(){if(null==this._active._parent)throw new a("Cannot call optionalEnd() as there was no previous call to optionalStart()");if(this._active._printerParsers.length>0){var t=new Tt(this._active._printerParsers,this._active._optional);this._active=this._active._parent,this._appendInternal(t)}else this._active=this._active._parent;return this},e._appendInternal=function(t){return l(null!=t),this._active._padNextWidth>0&&(null!=t&&(t=new It(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},e.appendLiteral=function(t){return l(null!=t),t.length>0&&(1===t.length?this._appendInternalPrinterParser(new At(t.charAt(0))):this._appendInternalPrinterParser(new Ct(t))),this},e._appendInternalPrinterParser=function(t){return l(null!=t),this._active._padNextWidth>0&&(null!=t&&(t=new It(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},e.append=function(t){return _(t,"formatter"),this._appendInternal(t._toPrinterParser(!1)),this},e.toFormatter=function(t){for(void 0===t&&(t=k.SMART);null!=this._active._parent;)this.optionalEnd();var e=new Tt(this._printerParsers,!1);return new zt(e,null,mt.STANDARD,t,null,null,null)},t}(),kt=31556952e4,xt=62167219200,Bt=function(){function t(t){this.fractionalDigits=t}var e=t.prototype;return e.print=function(t,e){var n=t.getValue(R.INSTANT_SECONDS),i=0;if(t.temporal().isSupported(R.NANO_OF_SECOND)&&(i=t.temporal().getLong(R.NANO_OF_SECOND)),null==n)return!1;var r=n,s=R.NANO_OF_SECOND.checkValidIntValue(i);if(r>=-62167219200){var o=r-kt+xt,a=m.floorDiv(o,kt)+1,u=m.floorMod(o,kt),h=he.ofEpochSecond(u-xt,0,ft.UTC);a>0&&e.append("+").append(a),e.append(h.toString()),0===h.second()&&e.append(":00")}else{var f=r+xt,c=m.intDiv(f,kt),l=m.intMod(f,kt),_=he.ofEpochSecond(l-xt,0,ft.UTC),d=e.length();e.append(_.toString()),0===_.second()&&e.append(":00"),c<0&&(-1e4===_.year()?e.replace(d,d+2,""+(c-1)):0===l?e.insert(d,c):e.insert(d+1,Math.abs(c)))}if(-2===this.fractionalDigits)0!==s&&(e.append("."),0===m.intMod(s,1e6)?e.append((""+(m.intDiv(s,1e6)+1e3)).substring(1)):0===m.intMod(s,1e3)?e.append((""+(m.intDiv(s,1e3)+1e6)).substring(1)):e.append((""+(s+1e9)).substring(1)));else if(this.fractionalDigits>0||-1===this.fractionalDigits&&s>0){e.append(".");for(var p=1e8,O=0;-1===this.fractionalDigits&&s>0||O<this.fractionalDigits;O++){var E=m.intDiv(s,p);e.append(E),s-=E*p,p=m.intDiv(p,10)}}return e.append("Z"),!0},e.parse=function(t,e,n){var i=t.copy(),r=this.fractionalDigits<0?0:this.fractionalDigits,s=this.fractionalDigits<0?9:this.fractionalDigits,o=(new Wt).append(zt.ISO_LOCAL_DATE).appendLiteral("T").appendValue(R.HOUR_OF_DAY,2).appendLiteral(":").appendValue(R.MINUTE_OF_HOUR,2).appendLiteral(":").appendValue(R.SECOND_OF_MINUTE,2).appendFraction(R.NANO_OF_SECOND,r,s,!0).appendOffsetId().toFormatter()._toPrinterParser(!1).parse(i,e,n);if(o<0)return o;var a,u=i.getParsed(R.YEAR),h=i.getParsed(R.MONTH_OF_YEAR),f=i.getParsed(R.DAY_OF_MONTH),c=i.getParsed(R.HOUR_OF_DAY),l=i.getParsed(R.MINUTE_OF_HOUR),_=i.getParsed(R.SECOND_OF_MINUTE),d=i.getParsed(R.NANO_OF_SECOND),p=i.getParsed(R.OFFSET_SECONDS),O=null!=p?p:0,E=null!=_?_:0,S=null!=d?d:0,N=m.intMod(u,1e4),D=0;24===c&&0===l&&0===E&&0===S?(c=0,D=1):23===c&&59===l&&60===E&&(t.setParsedLeapSecond(),E=59);try{a=he.of(N,h,f,c,l,E,0).plusDays(D).toEpochSecond(ft.ofTotalSeconds(O)),a+=m.safeMultiply(m.intDiv(u,1e4),kt)}catch(t){return~n}var A=o;return A=t.setParsedField(R.INSTANT_SECONDS,a,n,A),t.setParsedField(R.NANO_OF_SECOND,S,n,A)},e.toString=function(){return"Instant()"},t}(),qt=function(){function t(t,e){this._field=t,this._value=e}var e=t.prototype;return e.print=function(){return!0},e.parse=function(t,e,n){return null==t.getParsed(this._field)&&t.setParsedField(this._field,this._value,n,n),n},t}();var Zt=function(){function t(){this._str=""}var e=t.prototype;return e.append=function(t){return this._str+=t,this},e.appendChar=function(t){return this._str+=t[0],this},e.insert=function(t,e){return this._str=this._str.slice(0,t)+e+this._str.slice(t),this},e.replace=function(t,e,n){return this._str=this._str.slice(0,t)+n+this._str.slice(e),this},e.length=function(){return this._str.length},e.setLength=function(t){return this._str=this._str.slice(0,t),this},e.toString=function(){return this._str},t}(),zt=function(){function t(t,e,n,i,r,s,o){void 0===s&&(s=re.INSTANCE),l(null!=t),l(null!=n),l(null!=i),this._printerParser=t,this._locale=e,this._decimalStyle=n,this._resolverStyle=i,this._resolverFields=r,this._chrono=s,this._zone=o}t.parsedExcessDays=function(){return t.PARSED_EXCESS_DAYS},t.parsedLeapSecond=function(){return t.PARSED_LEAP_SECOND},t.ofPattern=function(t){return(new Wt).appendPattern(t).toFormatter()};var e=t.prototype;return e.locale=function(){return this._locale},e.decimalStyle=function(){return this._decimalStyle},e.chronology=function(){return this._chrono},e.withChronology=function(e){return null!=this._chrono&&this._chrono.equals(e)?this:new t(this._printerParser,this._locale,this._decimalStyle,this._resolverStyle,this._resolverFields,e,this._zone)},e.withLocale=function(){return this},e.withResolverStyle=function(e){return _(e,"resolverStyle"),e.equals(this._resolverStyle)?this:new t(this._printerParser,this._locale,this._decimalStyle,e,this._resolverFields,this._chrono,this._zone)},e.format=function(t){var e=new Zt(32);return this._formatTo(t,e),e.toString()},e._formatTo=function(t,e){_(t,"temporal"),_(e,"appendable");var n=new St(t,this);this._printerParser.print(n,e)},e.parse=function(t,e){return 1===arguments.length?this.parse1(t):this.parse2(t,e)},e.parse1=function(t){_(t,"text");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields)}catch(e){throw e instanceof i?e:this._createError(t,e)}},e.parse2=function(t,e){_(t,"text"),_(e,"type");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields).build(e)}catch(e){throw e instanceof i?e:this._createError(t,e)}},e._createError=function(t,e){var n="";return n=t.length>64?t.substring(0,64)+"...":t,new i("Text '"+n+"' could not be parsed: "+e.message,t,0,e)},e._parseToBuilder=function(t,e){var n=null!=e?e:new H(0),r=this._parseUnresolved0(t,n);if(null==r||n.getErrorIndex()>=0||null==e&&n.getIndex()<t.length){var s="";throw s=t.length>64?t.substr(0,64).toString()+"...":t,n.getErrorIndex()>=0?new i("Text '"+s+"' could not be parsed at index "+n.getErrorIndex(),t,n.getErrorIndex()):new i("Text '"+s+"' could not be parsed, unparsed text found at index "+n.getIndex(),t,n.getIndex())}return r.toBuilder()},e.parseUnresolved=function(t,e){return this._parseUnresolved0(t,e)},e._parseUnresolved0=function(t,e){l(null!=t,"text",u),l(null!=e,"position",u);var n=new Ot(this),i=e.getIndex();return(i=this._printerParser.parse(n,t,i))<0?(e.setErrorIndex(~i),null):(e.setIndex(i),n.toParsed())},e._toPrinterParser=function(t){return this._printerParser.withOptional(t)},e.toString=function(){var t=this._printerParser.toString();return 0===t.indexOf("[")?t:t.substring(1,t.length-1)},t}();var Kt,jt=function(t){function e(e,n){var i;return(i=t.call(this)||this)._month=m.safeToInt(e),i._day=m.safeToInt(n),i}f(e,t),e.now=function(t){return 0===arguments.length?e.now0():1===arguments.length&&t instanceof st?e.nowZoneId(t):e.nowClock(t)},e.now0=function(){return this.nowClock(_e.systemDefaultZone())},e.nowZoneId=function(t){return _(t,"zone"),this.nowClock(_e.system(t))},e.nowClock=function(t){_(t,"clock");var n=ae.now(t);return e.of(n.month(),n.dayOfMonth())},e.of=function(t,n){return 2===arguments.length&&t instanceof U?e.ofMonthNumber(t,n):e.ofNumberNumber(t,n)},e.ofMonthNumber=function(t,i){if(_(t,"month"),R.DAY_OF_MONTH.checkValidValue(i),i>t.maxLength())throw new n("Illegal value for DayOfMonth field, value "+i+" is not valid for month "+t.toString());return new e(t.value(),i)},e.ofNumberNumber=function(t,n){return _(t,"month"),_(n,"dayOfMonth"),e.of(U.of(t),n)},e.from=function(t){if(_(t,"temporal"),d(t,I,"temporal"),t instanceof e)return t;try{return e.of(t.get(R.MONTH_OF_YEAR),t.get(R.DAY_OF_MONTH))}catch(e){throw new n("Unable to obtain MonthDay from TemporalAccessor: "+t+", type "+(t&&null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return 1===arguments.length?e.parseString(t):e.parseStringFormatter(t,n)},e.parseString=function(t){return e.parseStringFormatter(t,Kt)},e.parseStringFormatter=function(t,n){return _(t,"text"),_(n,"formatter"),d(n,zt,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.monthValue=function(){return this._month},i.month=function(){return U.of(this._month)},i.dayOfMonth=function(){return this._day},i.isSupported=function(t){return t instanceof R?t===R.MONTH_OF_YEAR||t===R.DAY_OF_MONTH:null!=t&&t.isSupportedBy(this)},i.range=function(e){return e===R.MONTH_OF_YEAR?e.range():e===R.DAY_OF_MONTH?M.of(1,this.month().minLength(),this.month().maxLength()):t.prototype.range.call(this,e)},i.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(_(t,"field"),t instanceof R){switch(t){case R.DAY_OF_MONTH:return this._day;case R.MONTH_OF_YEAR:return this._month}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i.isValidYear=function(t){return!1==(29===this._day&&2===this._month&&!1===Qt.isLeap(t))},i.withMonth=function(t){return this.with(U.of(t))},i.with=function(t){if(_(t,"month"),t.value()===this._month)return this;var n=Math.min(this._day,t.maxLength());return new e(t.value(),n)},i.withDayOfMonth=function(t){return t===this._day?this:e.of(this._month,t)},i.query=function(e){return _(e,"query"),d(e,F,"query"),e===g.chronology()?re.INSTANCE:t.prototype.query.call(this,e)},i.adjustInto=function(t){return _(t,"temporal"),(t=t.with(R.MONTH_OF_YEAR,this._month)).with(R.DAY_OF_MONTH,Math.min(t.range(R.DAY_OF_MONTH).maximum(),this._day))},i.atYear=function(t){return ae.of(t,this._month,this.isValidYear(t)?this._day:28)},i.compareTo=function(t){_(t,"other"),d(t,e,"other");var n=this._month-t.monthValue();return 0===n&&(n=this._day-t.dayOfMonth()),n},i.isAfter=function(t){return _(t,"other"),d(t,e,"other"),this.compareTo(t)>0},i.isBefore=function(t){return _(t,"other"),d(t,e,"other"),this.compareTo(t)<0},i.equals=function(t){if(this===t)return!0;if(t instanceof e){var n=t;return this.monthValue()===n.monthValue()&&this.dayOfMonth()===n.dayOfMonth()}return!1},i.toString=function(){return"--"+(this._month<10?"0":"")+this._month+(this._day<10?"-0":"-")+this._day},i.toJSON=function(){return this.toString()},i.format=function(t){return _(t,"formatter"),d(t,zt,"formatter"),t.format(this)},e}(I);var Gt,Xt=function(t){function e(e,n){var i;return(i=t.call(this)||this)._year=m.safeToInt(e),i._month=m.safeToInt(n),i}f(e,t),e.now=function(t){return 0===arguments.length?e.now0():1===arguments.length&&t instanceof st?e.nowZoneId(t):e.nowClock(t)},e.now0=function(){return e.nowClock(_e.systemDefaultZone())},e.nowZoneId=function(t){return e.nowClock(_e.system(t))},e.nowClock=function(t){var n=ae.now(t);return e.of(n.year(),n.month())},e.of=function(t,n){return 2===arguments.length&&n instanceof U?e.ofNumberMonth(t,n):e.ofNumberNumber(t,n)},e.ofNumberMonth=function(t,n){return _(n,"month"),d(n,U,"month"),e.ofNumberNumber(t,n.value())},e.ofNumberNumber=function(t,n){return _(t,"year"),_(n,"month"),R.YEAR.checkValidValue(t),R.MONTH_OF_YEAR.checkValidValue(n),new e(t,n)},e.from=function(t){if(_(t,"temporal"),t instanceof e)return t;try{return e.of(t.get(R.YEAR),t.get(R.MONTH_OF_YEAR))}catch(e){throw new n("Unable to obtain YearMonth from TemporalAccessor: "+t+", type "+(t&&null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return 1===arguments.length?e.parseString(t):e.parseStringFormatter(t,n)},e.parseString=function(t){return e.parseStringFormatter(t,Gt)},e.parseStringFormatter=function(t,n){return _(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.isSupported=function(t){return 1===arguments.length&&t instanceof y?this.isSupportedField(t):this.isSupportedUnit(t)},i.isSupportedField=function(t){return t instanceof R?t===R.YEAR||t===R.MONTH_OF_YEAR||t===R.PROLEPTIC_MONTH||t===R.YEAR_OF_ERA||t===R.ERA:null!=t&&t.isSupportedBy(this)},i.isSupportedUnit=function(t){return t instanceof w?t===w.MONTHS||t===w.YEARS||t===w.DECADES||t===w.CENTURIES||t===w.MILLENNIA||t===w.ERAS:null!=t&&t.isSupportedBy(this)},i.range=function(e){return e===R.YEAR_OF_ERA?this.year()<=0?M.of(1,Qt.MAX_VALUE+1):M.of(1,Qt.MAX_VALUE):t.prototype.range.call(this,e)},i.get=function(t){return _(t,"field"),d(t,y,"field"),this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(_(t,"field"),d(t,y,"field"),t instanceof R){switch(t){case R.MONTH_OF_YEAR:return this._month;case R.PROLEPTIC_MONTH:return this._getProlepticMonth();case R.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case R.YEAR:return this._year;case R.ERA:return this._year<1?0:1}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i._getProlepticMonth=function(){return m.safeAdd(m.safeMultiply(this._year,12),this._month-1)},i.year=function(){return this._year},i.monthValue=function(){return this._month},i.month=function(){return U.of(this._month)},i.isLeapYear=function(){return re.isLeapYear(this._year)},i.isValidDay=function(t){return t>=1&&t<=this.lengthOfMonth()},i.lengthOfMonth=function(){return this.month().length(this.isLeapYear())},i.lengthOfYear=function(){return this.isLeapYear()?366:365},i.with=function(t,e){return 1===arguments.length?this._withAdjuster(t):this._withField(t,e)},i._withField=function(t,e){if(_(t,"field"),d(t,y,"field"),t instanceof R){var n=t;switch(n.checkValidValue(e),n){case R.MONTH_OF_YEAR:return this.withMonth(e);case R.PROLEPTIC_MONTH:return this.plusMonths(e-this.getLong(R.PROLEPTIC_MONTH));case R.YEAR_OF_ERA:return this.withYear(this._year<1?1-e:e);case R.YEAR:return this.withYear(e);case R.ERA:return this.getLong(R.ERA)===e?this:this.withYear(1-this._year)}throw new r("Unsupported field: "+t)}return t.adjustInto(this,e)},i.withYear=function(t){return R.YEAR.checkValidValue(t),new e(t,this._month)},i.withMonth=function(t){return R.MONTH_OF_YEAR.checkValidValue(t),new e(this._year,t)},i._plusUnit=function(t,e){if(_(e,"unit"),d(e,A,"unit"),e instanceof w){switch(e){case w.MONTHS:return this.plusMonths(t);case w.YEARS:return this.plusYears(t);case w.DECADES:return this.plusYears(m.safeMultiply(t,10));case w.CENTURIES:return this.plusYears(m.safeMultiply(t,100));case w.MILLENNIA:return this.plusYears(m.safeMultiply(t,1e3));case w.ERAS:return this.with(R.ERA,m.safeAdd(this.getLong(R.ERA),t))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusYears=function(t){if(0===t)return this;var e=R.YEAR.checkValidIntValue(this._year+t);return this.withYear(e)},i.plusMonths=function(t){if(0===t)return this;var n=12*this._year+(this._month-1)+t;return new e(R.YEAR.checkValidIntValue(m.floorDiv(n,12)),m.floorMod(n,12)+1)},i.minusYears=function(t){return t===m.MIN_SAFE_INTEGER?this.plusYears(m.MIN_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},i.minusMonths=function(t){return t===m.MIN_SAFE_INTEGER?this.plusMonths(Math.MAX_SAFE_INTEGER).plusMonths(1):this.plusMonths(-t)},i.query=function(e){return _(e,"query"),d(e,F,"query"),e===g.chronology()?re.INSTANCE:e===g.precision()?w.MONTHS:e===g.localDate()||e===g.localTime()||e===g.zone()||e===g.zoneId()||e===g.offset()?null:t.prototype.query.call(this,e)},i.adjustInto=function(t){return _(t,"temporal"),d(t,x,"temporal"),t.with(R.PROLEPTIC_MONTH,this._getProlepticMonth())},i.until=function(t,n){_(t,"endExclusive"),_(n,"unit"),d(t,x,"endExclusive"),d(n,A,"unit");var i=e.from(t);if(n instanceof w){var s=i._getProlepticMonth()-this._getProlepticMonth();switch(n){case w.MONTHS:return s;case w.YEARS:return m.intDiv(s,12);case w.DECADES:return m.intDiv(s,120);case w.CENTURIES:return m.intDiv(s,1200);case w.MILLENNIA:return m.intDiv(s,12e3);case w.ERAS:return i.getLong(R.ERA)-this.getLong(R.ERA)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.atDay=function(t){return _(t,"dayOfMonth"),ae.of(this._year,this._month,t)},i.atEndOfMonth=function(){return ae.of(this._year,this._month,this.lengthOfMonth())},i.compareTo=function(t){_(t,"other"),d(t,e,"other");var n=this._year-t.year();return 0===n&&(n=this._month-t.monthValue()),n},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.equals=function(t){if(this===t)return!0;if(t instanceof e){var n=t;return this.year()===n.year()&&this.monthValue()===n.monthValue()}return!1},i.toString=function(){return Gt.format(this)},i.toJSON=function(){return this.toString()},i.format=function(t){return _(t,"formatter"),t.format(this)},e}(x);var Jt,Qt=function(t){function e(e){var n;return(n=t.call(this)||this)._year=m.safeToInt(e),n}f(e,t);var i=e.prototype;return i.value=function(){return this._year},e.now=function(t){return void 0===t&&(t=void 0),void 0===t?e.now0():t instanceof st?e.nowZoneId(t):e.nowClock(t)},e.now0=function(){return e.nowClock(_e.systemDefaultZone())},e.nowZoneId=function(t){return _(t,"zone"),d(t,st,"zone"),e.nowClock(_e.system(t))},e.nowClock=function(t){_(t,"clock"),d(t,_e,"clock");var n=ae.now(t);return e.of(n.year())},e.of=function(t){return _(t,"isoYear"),R.YEAR.checkValidValue(t),new e(t)},e.from=function(t){if(_(t,"temporal"),d(t,I,"temporal"),t instanceof e)return t;try{return e.of(t.get(R.YEAR))}catch(e){throw new n("Unable to obtain Year from TemporalAccessor: "+t+", type "+(t&&null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return arguments.length<=1?e.parseText(t):e.parseTextFormatter(t,n)},e.parseText=function(t){return _(t,"text"),e.parse(t,Jt)},e.parseTextFormatter=function(t,n){return void 0===n&&(n=Jt),_(t,"text"),_(n,"formatter"),d(n,zt,"formatter"),n.parse(t,e.FROM)},e.isLeap=function(t){return 0===m.intMod(t,4)&&(0!==m.intMod(t,100)||0===m.intMod(t,400))},i.isSupported=function(t){return 1===arguments.length&&t instanceof y?this.isSupportedField(t):this.isSupportedUnit(t)},i.isSupportedField=function(t){return t instanceof R?t===R.YEAR||t===R.YEAR_OF_ERA||t===R.ERA:null!=t&&t.isSupportedBy(this)},i.isSupportedUnit=function(t){return t instanceof w?t===w.YEARS||t===w.DECADES||t===w.CENTURIES||t===w.MILLENNIA||t===w.ERAS:null!=t&&t.isSupportedBy(this)},i.range=function(e){if(this.isSupported(e))return e.range();if(e instanceof R)throw new r("Unsupported field: "+e);return t.prototype.range.call(this,e)},i.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(_(t,"field"),t instanceof R){switch(t){case R.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case R.YEAR:return this._year;case R.ERA:return this._year<1?0:1}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i.isLeap=function(){return e.isLeap(this._year)},i._withField=function(t,n){if(_(t,"field"),d(t,y,"field"),t instanceof R){switch(t.checkValidValue(n),t){case R.YEAR_OF_ERA:return e.of(this._year<1?1-n:n);case R.YEAR:return e.of(n);case R.ERA:return this.getLong(R.ERA)===n?this:e.of(1-this._year)}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i._plusUnit=function(t,e){if(_(t,"amountToAdd"),_(e,"unit"),d(e,A,"unit"),e instanceof w){switch(e){case w.YEARS:return this.plusYears(t);case w.DECADES:return this.plusYears(m.safeMultiply(t,10));case w.CENTURIES:return this.plusYears(m.safeMultiply(t,100));case w.MILLENNIA:return this.plusYears(m.safeMultiply(t,1e3));case w.ERAS:return this.with(R.ERA,m.safeAdd(this.getLong(R.ERA),t))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusYears=function(t){return 0===t?this:e.of(R.YEAR.checkValidIntValue(m.safeAdd(this._year,t)))},i.minusYears=function(t){return t===m.MIN_SAFE_INTEGER?this.plusYears(m.MAX_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},i.adjustInto=function(t){return _(t,"temporal"),t.with(R.YEAR,this._year)},i.isValidMonthDay=function(t){return null!=t&&t.isValidYear(this._year)},i.length=function(){return this.isLeap()?366:365},i.atDay=function(t){return ae.ofYearDay(this._year,t)},i.atMonth=function(t){return 1===arguments.length&&t instanceof U?this.atMonthMonth(t):this.atMonthNumber(t)},i.atMonthMonth=function(t){return _(t,"month"),d(t,U,"month"),Xt.of(this._year,t)},i.atMonthNumber=function(t){return _(t,"month"),Xt.of(this._year,t)},i.atMonthDay=function(t){return _(t,"monthDay"),d(t,jt,"monthDay"),t.atYear(this._year)},i.query=function(e){return _(e,"query()"),d(e,F,"query()"),e===g.chronology()?re.INSTANCE:e===g.precision()?w.YEARS:e===g.localDate()||e===g.localTime()||e===g.zone()||e===g.zoneId()||e===g.offset()?null:t.prototype.query.call(this,e)},i.compareTo=function(t){return _(t,"other"),d(t,e,"other"),this._year-t._year},i.isAfter=function(t){return _(t,"other"),d(t,e,"other"),this._year>t._year},i.isBefore=function(t){return _(t,"other"),d(t,e,"other"),this._year<t._year},i.format=function(t){return _(t,"formatter"),d(t,zt,"formatter"),t.format(this)},i.equals=function(t){return this===t||t instanceof e&&this.value()===t.value()},i.toString=function(){return""+this._year},i.toJSON=function(){return this.toString()},i.until=function(t,n){var i=e.from(t);if(n instanceof w){var s=i.value()-this.value();switch(n){case w.YEARS:return s;case w.DECADES:return m.intDiv(s,10);case w.CENTURIES:return m.intDiv(s,100);case w.MILLENNIA:return m.intDiv(s,1e3);case w.ERAS:return i.getLong(R.ERA)-this.getLong(R.ERA)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},e}(x);var $t=function(){function t(){}return t.prototype.adjustInto=function(t){p("adjustInto")},t}(),te=function(){function t(){}return t.firstDayOfMonth=function(){return ee.FIRST_DAY_OF_MONTH},t.lastDayOfMonth=function(){return ee.LAST_DAY_OF_MONTH},t.firstDayOfNextMonth=function(){return ee.FIRST_DAY_OF_NEXT_MONTH},t.firstDayOfYear=function(){return ee.FIRST_DAY_OF_YEAR},t.lastDayOfYear=function(){return ee.LAST_DAY_OF_YEAR},t.firstDayOfNextYear=function(){return ee.FIRST_DAY_OF_NEXT_YEAR},t.firstInMonth=function(t){return _(t,"dayOfWeek"),new ne(1,t)},t.lastInMonth=function(t){return _(t,"dayOfWeek"),new ne(-1,t)},t.dayOfWeekInMonth=function(t,e){return _(e,"dayOfWeek"),new ne(t,e)},t.next=function(t){return new ie(2,t)},t.nextOrSame=function(t){return new ie(0,t)},t.previous=function(t){return new ie(3,t)},t.previousOrSame=function(t){return new ie(1,t)},t}(),ee=function(t){function e(e){var n;return(n=t.call(this)||this)._ordinal=e,n}return f(e,t),e.prototype.adjustInto=function(t){switch(this._ordinal){case 0:return t.with(R.DAY_OF_MONTH,1);case 1:return t.with(R.DAY_OF_MONTH,t.range(R.DAY_OF_MONTH).maximum());case 2:return t.with(R.DAY_OF_MONTH,1).plus(1,w.MONTHS);case 3:return t.with(R.DAY_OF_YEAR,1);case 4:return t.with(R.DAY_OF_YEAR,t.range(R.DAY_OF_YEAR).maximum());case 5:return t.with(R.DAY_OF_YEAR,1).plus(1,w.YEARS)}throw new a("Unreachable")},e}($t);ee.FIRST_DAY_OF_MONTH=new ee(0),ee.LAST_DAY_OF_MONTH=new ee(1),ee.FIRST_DAY_OF_NEXT_MONTH=new ee(2),ee.FIRST_DAY_OF_YEAR=new ee(3),ee.LAST_DAY_OF_YEAR=new ee(4),ee.FIRST_DAY_OF_NEXT_YEAR=new ee(5);var ne=function(t){function e(e,n){var i;return(i=t.call(this)||this)._ordinal=e,i._dowValue=n.value(),i}return f(e,t),e.prototype.adjustInto=function(t){if(this._ordinal>=0){var e=t.with(R.DAY_OF_MONTH,1),n=e.get(R.DAY_OF_WEEK),i=m.intMod(this._dowValue-n+7,7);return i+=7*(this._ordinal-1),e.plus(i,w.DAYS)}var r=t.with(R.DAY_OF_MONTH,t.range(R.DAY_OF_MONTH).maximum()),s=r.get(R.DAY_OF_WEEK),o=this._dowValue-s;return o=0===o?0:o>0?o-7:o,o-=7*(-this._ordinal-1),r.plus(o,w.DAYS)},e}($t),ie=function(t){function e(e,n){var i;return i=t.call(this)||this,_(n,"dayOfWeek"),i._relative=e,i._dowValue=n.value(),i}return f(e,t),e.prototype.adjustInto=function(t){var e=t.get(R.DAY_OF_WEEK);if(this._relative<2&&e===this._dowValue)return t;if(1&this._relative){var n=this._dowValue-e;return t.minus(n>=0?7-n:-n,w.DAYS)}var i=e-this._dowValue;return t.plus(i>=0?7-i:-i,w.DAYS)},e}($t),re=function(t){function e(){return t.apply(this,arguments)||this}f(e,t),e.isLeapYear=function(t){return!(3&t||t%100==0&&t%400!=0)};var i=e.prototype;return i._updateResolveMap=function(t,e,i){_(t,"fieldValues"),_(e,"field");var r=t.get(e);if(null!=r&&r!==i)throw new n("Invalid state, field: "+e+" "+r+" conflicts with "+e+" "+i);t.put(e,i)},i.resolveDate=function(t,e){if(t.containsKey(R.EPOCH_DAY))return ae.ofEpochDay(t.remove(R.EPOCH_DAY));var i=t.remove(R.PROLEPTIC_MONTH);null!=i&&(e!==k.LENIENT&&R.PROLEPTIC_MONTH.checkValidValue(i),this._updateResolveMap(t,R.MONTH_OF_YEAR,m.floorMod(i,12)+1),this._updateResolveMap(t,R.YEAR,m.floorDiv(i,12)));var r=t.remove(R.YEAR_OF_ERA);if(null!=r){e!==k.LENIENT&&R.YEAR_OF_ERA.checkValidValue(r);var s=t.remove(R.ERA);if(null==s){var o=t.get(R.YEAR);e===k.STRICT?null!=o?this._updateResolveMap(t,R.YEAR,o>0?r:m.safeSubtract(1,r)):t.put(R.YEAR_OF_ERA,r):this._updateResolveMap(t,R.YEAR,null==o||o>0?r:m.safeSubtract(1,r))}else if(1===s)this._updateResolveMap(t,R.YEAR,r);else{if(0!==s)throw new n("Invalid value for era: "+s);this._updateResolveMap(t,R.YEAR,m.safeSubtract(1,r))}}else t.containsKey(R.ERA)&&R.ERA.checkValidValue(t.get(R.ERA));if(t.containsKey(R.YEAR)){if(t.containsKey(R.MONTH_OF_YEAR)&&t.containsKey(R.DAY_OF_MONTH)){var a=R.YEAR.checkValidIntValue(t.remove(R.YEAR)),u=t.remove(R.MONTH_OF_YEAR),h=t.remove(R.DAY_OF_MONTH);if(e===k.LENIENT){var f=u-1,c=h-1;return ae.of(a,1,1).plusMonths(f).plusDays(c)}return e===k.SMART?(R.DAY_OF_MONTH.checkValidValue(h),4===u||6===u||9===u||11===u?h=Math.min(h,30):2===u&&(h=Math.min(h,U.FEBRUARY.length(Qt.isLeap(a)))),ae.of(a,u,h)):ae.of(a,u,h)}if(t.containsKey(R.DAY_OF_YEAR)){var l=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===k.LENIENT){var _=m.safeSubtract(t.remove(R.DAY_OF_YEAR),1);return ae.ofYearDay(l,1).plusDays(_)}var d=R.DAY_OF_YEAR.checkValidIntValue(t.remove(R.DAY_OF_YEAR));return ae.ofYearDay(l,d)}if(t.containsKey(R.ALIGNED_WEEK_OF_YEAR)){if(t.containsKey(R.ALIGNED_DAY_OF_WEEK_IN_YEAR)){var p=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===k.LENIENT){var O=m.safeSubtract(t.remove(R.ALIGNED_WEEK_OF_YEAR),1),E=m.safeSubtract(t.remove(R.ALIGNED_DAY_OF_WEEK_IN_YEAR),1);return ae.of(p,1,1).plusWeeks(O).plusDays(E)}var S=R.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(R.ALIGNED_WEEK_OF_YEAR)),N=R.ALIGNED_DAY_OF_WEEK_IN_YEAR.checkValidIntValue(t.remove(R.ALIGNED_DAY_OF_WEEK_IN_YEAR)),D=ae.of(p,1,1).plusDays(7*(S-1)+(N-1));if(e===k.STRICT&&D.get(R.YEAR)!==p)throw new n("Strict mode rejected date parsed to a different year");return D}if(t.containsKey(R.DAY_OF_WEEK)){var A=R.YEAR.checkValidIntValue(t.remove(R.YEAR));if(e===k.LENIENT){var T=m.safeSubtract(t.remove(R.ALIGNED_WEEK_OF_YEAR),1),v=m.safeSubtract(t.remove(R.DAY_OF_WEEK),1);return ae.of(A,1,1).plusWeeks(T).plusDays(v)}var w=R.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(R.ALIGNED_WEEK_OF_YEAR)),y=R.DAY_OF_WEEK.checkValidIntValue(t.remove(R.DAY_OF_WEEK)),M=ae.of(A,1,1).plusWeeks(w-1).with(te.nextOrSame(L.of(y)));if(e===k.STRICT&&M.get(R.YEAR)!==A)throw new n("Strict mode rejected date parsed to a different month");return M}}}return null},i.date=function(t){return ae.from(t)},e}(N);var se=146097,oe=719528,ae=function(t){function e(n,i,r){var s;return s=t.call(this)||this,_(n,"year"),_(i,"month"),_(r,"dayOfMonth"),i instanceof U&&(i=i.value()),s._year=m.safeToInt(n),s._month=m.safeToInt(i),s._day=m.safeToInt(r),e._validate(s._year,s._month,s._day),s}f(e,t),e.now=function(t){var n;return n=null==t?_e.systemDefaultZone():t instanceof st?_e.system(t):t,e.ofInstant(n.instant(),n.zone())},e.ofInstant=function(t,n){void 0===n&&(n=st.systemDefault()),_(t,"instant");var i=n.rules().offset(t),r=t.epochSecond()+i.totalSeconds(),s=m.floorDiv(r,fe.SECONDS_PER_DAY);return e.ofEpochDay(s)},e.of=function(t,n,i){return new e(t,n,i)},e.ofYearDay=function(t,i){R.YEAR.checkValidValue(t);var r=re.isLeapYear(t);366===i&&!1===r&&l(!1,"Invalid date 'DayOfYear 366' as '"+t+"' is not a leap year",n);var s=U.of(Math.floor((i-1)/31+1));i>s.firstDayOfYear(r)+s.length(r)-1&&(s=s.plus(1));var o=i-s.firstDayOfYear(r)+1;return new e(t,s.value(),o)},e.ofEpochDay=function(t){var n,i,r,s,o;void 0===t&&(t=0),o=t+oe,n=0,(o-=60)<0&&(n=400*(i=m.intDiv(o+1,se)-1),o+=-i*se),(r=o-(365*(s=m.intDiv(400*o+591,se))+m.intDiv(s,4)-m.intDiv(s,100)+m.intDiv(s,400)))<0&&(r=o-(365*--s+m.intDiv(s,4)-m.intDiv(s,100)+m.intDiv(s,400))),s+=n;var a=r,u=m.intDiv(5*a+2,153),h=(u+2)%12+1,f=a-m.intDiv(306*u+5,10)+1;return new e(s+=m.intDiv(u,10),h,f)},e.from=function(t){_(t,"temporal");var e=t.query(g.localDate());if(null==e)throw new n("Unable to obtain LocalDate from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},e.parse=function(t,n){return void 0===n&&(n=zt.ISO_LOCAL_DATE),l(null!=n,"formatter",u),n.parse(t,e.FROM)},e._resolvePreviousValid=function(t,n,i){switch(n){case 2:i=Math.min(i,re.isLeapYear(t)?29:28);break;case 4:case 6:case 9:case 11:i=Math.min(i,30)}return e.of(t,n,i)},e._validate=function(t,e,i){var r;if(R.YEAR.checkValidValue(t),R.MONTH_OF_YEAR.checkValidValue(e),R.DAY_OF_MONTH.checkValidValue(i),i>28){switch(r=31,e){case 2:r=re.isLeapYear(t)?29:28;break;case 4:case 6:case 9:case 11:r=30}i>r&&l(!1,29===i?"Invalid date 'February 29' as '"+t+"' is not a leap year":"Invalid date '"+t+"' '"+e+"' '"+i+"'",n)}};var i=e.prototype;return i.isSupported=function(e){return t.prototype.isSupported.call(this,e)},i.range=function(t){if(t instanceof R){if(t.isDateBased()){switch(t){case R.DAY_OF_MONTH:return M.of(1,this.lengthOfMonth());case R.DAY_OF_YEAR:return M.of(1,this.lengthOfYear());case R.ALIGNED_WEEK_OF_MONTH:return M.of(1,this.month()===U.FEBRUARY&&!1===this.isLeapYear()?4:5);case R.YEAR_OF_ERA:return this._year<=0?M.of(1,Qt.MAX_VALUE+1):M.of(1,Qt.MAX_VALUE)}return t.range()}throw new r("Unsupported field: "+t)}return t.rangeRefinedBy(this)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){return l(null!=t,"",u),t instanceof R?this._get0(t):t.getFrom(this)},i._get0=function(t){switch(t){case R.DAY_OF_WEEK:return this.dayOfWeek().value();case R.ALIGNED_DAY_OF_WEEK_IN_MONTH:return m.intMod(this._day-1,7)+1;case R.ALIGNED_DAY_OF_WEEK_IN_YEAR:return m.intMod(this.dayOfYear()-1,7)+1;case R.DAY_OF_MONTH:return this._day;case R.DAY_OF_YEAR:return this.dayOfYear();case R.EPOCH_DAY:return this.toEpochDay();case R.ALIGNED_WEEK_OF_MONTH:return m.intDiv(this._day-1,7)+1;case R.ALIGNED_WEEK_OF_YEAR:return m.intDiv(this.dayOfYear()-1,7)+1;case R.MONTH_OF_YEAR:return this._month;case R.PROLEPTIC_MONTH:return this._prolepticMonth();case R.YEAR_OF_ERA:return this._year>=1?this._year:1-this._year;case R.YEAR:return this._year;case R.ERA:return this._year>=1?1:0}throw new r("Unsupported field: "+t)},i._prolepticMonth=function(){return 12*this._year+(this._month-1)},i.chronology=function(){return re.INSTANCE},i.year=function(){return this._year},i.monthValue=function(){return this._month},i.month=function(){return U.of(this._month)},i.dayOfMonth=function(){return this._day},i.dayOfYear=function(){return this.month().firstDayOfYear(this.isLeapYear())+this._day-1},i.dayOfWeek=function(){var t=m.floorMod(this.toEpochDay()+3,7);return L.of(t+1)},i.isLeapYear=function(){return re.isLeapYear(this._year)},i.lengthOfMonth=function(){switch(this._month){case 2:return this.isLeapYear()?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}},i.lengthOfYear=function(){return this.isLeapYear()?366:365},i._withAdjuster=function(n){return _(n,"adjuster"),n instanceof e?n:t.prototype._withAdjuster.call(this,n)},i._withField=function(t,n){if(l(null!=t,"field",u),t instanceof R){var i=t;switch(i.checkValidValue(n),i){case R.DAY_OF_WEEK:return this.plusDays(n-this.dayOfWeek().value());case R.ALIGNED_DAY_OF_WEEK_IN_MONTH:return this.plusDays(n-this.getLong(R.ALIGNED_DAY_OF_WEEK_IN_MONTH));case R.ALIGNED_DAY_OF_WEEK_IN_YEAR:return this.plusDays(n-this.getLong(R.ALIGNED_DAY_OF_WEEK_IN_YEAR));case R.DAY_OF_MONTH:return this.withDayOfMonth(n);case R.DAY_OF_YEAR:return this.withDayOfYear(n);case R.EPOCH_DAY:return e.ofEpochDay(n);case R.ALIGNED_WEEK_OF_MONTH:return this.plusWeeks(n-this.getLong(R.ALIGNED_WEEK_OF_MONTH));case R.ALIGNED_WEEK_OF_YEAR:return this.plusWeeks(n-this.getLong(R.ALIGNED_WEEK_OF_YEAR));case R.MONTH_OF_YEAR:return this.withMonth(n);case R.PROLEPTIC_MONTH:return this.plusMonths(n-this.getLong(R.PROLEPTIC_MONTH));case R.YEAR_OF_ERA:return this.withYear(this._year>=1?n:1-n);case R.YEAR:return this.withYear(n);case R.ERA:return this.getLong(R.ERA)===n?this:this.withYear(1-this._year)}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i.withYear=function(t){return this._year===t?this:(R.YEAR.checkValidValue(t),e._resolvePreviousValid(t,this._month,this._day))},i.withMonth=function(t){var n=t instanceof U?t.value():t;return this._month===n?this:(R.MONTH_OF_YEAR.checkValidValue(n),e._resolvePreviousValid(this._year,n,this._day))},i.withDayOfMonth=function(t){return this._day===t?this:e.of(this._year,this._month,t)},i.withDayOfYear=function(t){return this.dayOfYear()===t?this:e.ofYearDay(this._year,t)},i._plusUnit=function(t,e){if(_(t,"amountToAdd"),_(e,"unit"),e instanceof w){switch(e){case w.DAYS:return this.plusDays(t);case w.WEEKS:return this.plusWeeks(t);case w.MONTHS:return this.plusMonths(t);case w.YEARS:return this.plusYears(t);case w.DECADES:return this.plusYears(m.safeMultiply(t,10));case w.CENTURIES:return this.plusYears(m.safeMultiply(t,100));case w.MILLENNIA:return this.plusYears(m.safeMultiply(t,1e3));case w.ERAS:return this.with(R.ERA,m.safeAdd(this.getLong(R.ERA),t))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusYears=function(t){if(0===t)return this;var n=R.YEAR.checkValidIntValue(this._year+t);return e._resolvePreviousValid(n,this._month,this._day)},i.plusMonths=function(t){if(0===t)return this;var n=12*this._year+(this._month-1)+t,i=R.YEAR.checkValidIntValue(m.floorDiv(n,12)),r=m.floorMod(n,12)+1;return e._resolvePreviousValid(i,r,this._day)},i.plusWeeks=function(t){return this.plusDays(m.safeMultiply(t,7))},i.plusDays=function(t){if(0===t)return this;var n=m.safeAdd(this.toEpochDay(),t);return e.ofEpochDay(n)},i._minusUnit=function(t,e){return _(t,"amountToSubtract"),_(e,"unit"),this._plusUnit(-1*t,e)},i.minusYears=function(t){return this.plusYears(-1*t)},i.minusMonths=function(t){return this.plusMonths(-1*t)},i.minusWeeks=function(t){return this.plusWeeks(-1*t)},i.minusDays=function(t){return this.plusDays(-1*t)},i.query=function(e){return _(e,"query"),e===g.localDate()?this:t.prototype.query.call(this,e)},i.adjustInto=function(e){return t.prototype.adjustInto.call(this,e)},i.until=function(t,e){return arguments.length<2?this.until1(t):this.until2(t,e)},i.until2=function(t,n){var i=e.from(t);if(n instanceof w){switch(n){case w.DAYS:return this.daysUntil(i);case w.WEEKS:return m.intDiv(this.daysUntil(i),7);case w.MONTHS:return this._monthsUntil(i);case w.YEARS:return m.intDiv(this._monthsUntil(i),12);case w.DECADES:return m.intDiv(this._monthsUntil(i),120);case w.CENTURIES:return m.intDiv(this._monthsUntil(i),1200);case w.MILLENNIA:return m.intDiv(this._monthsUntil(i),12e3);case w.ERAS:return i.getLong(R.ERA)-this.getLong(R.ERA)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.daysUntil=function(t){return t.toEpochDay()-this.toEpochDay()},i._monthsUntil=function(t){var e=32*this._prolepticMonth()+this.dayOfMonth(),n=32*t._prolepticMonth()+t.dayOfMonth();return m.intDiv(n-e,32)},i.until1=function(t){var n=e.from(t),i=n._prolepticMonth()-this._prolepticMonth(),r=n._day-this._day;if(i>0&&r<0){i--;var s=this.plusMonths(i);r=n.toEpochDay()-s.toEpochDay()}else i<0&&r>0&&(i++,r-=n.lengthOfMonth());var o=m.intDiv(i,12),a=m.intMod(i,12);return b.of(o,a,r)},i.atTime=function(){return 1===arguments.length?this.atTime1.apply(this,arguments):this.atTime4.apply(this,arguments)},i.atTime1=function(t){if(_(t,"time"),t instanceof fe)return he.of(this,t);if(t instanceof ct)return this._atTimeOffsetTime(t);throw new o("time must be an instance of LocalTime or OffsetTime"+(t&&t.constructor&&t.constructor.name?", but is "+t.constructor.name:""))},i.atTime4=function(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),this.atTime1(fe.of(t,e,n,i))},i._atTimeOffsetTime=function(t){return lt.of(he.of(this,t.toLocalTime()),t.offset())},i.atStartOfDay=function(t){return null!=t?this._atStartOfDayWithZone(t):he.of(this,fe.MIDNIGHT)},i._atStartOfDayWithZone=function(t){_(t,"zone");var e=this.atTime(fe.MIDNIGHT);if(t instanceof ft==!1){var n=t.rules().transition(e);null!=n&&n.isGap()&&(e=n.dateTimeAfter())}return dt.of(e,t)},i.toEpochDay=function(){var t=this._year,e=this._month,n=0;return n+=365*t,t>=0?n+=m.intDiv(t+3,4)-m.intDiv(t+99,100)+m.intDiv(t+399,400):n-=m.intDiv(t,-4)-m.intDiv(t,-100)+m.intDiv(t,-400),n+=m.intDiv(367*e-362,12),n+=this.dayOfMonth()-1,e>2&&(n--,re.isLeapYear(t)||n--),n-oe},i.compareTo=function(t){return _(t,"other"),d(t,e,"other"),this._compareTo0(t)},i._compareTo0=function(t){var e=this._year-t._year;return 0===e&&0===(e=this._month-t._month)&&(e=this._day-t._day),e},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.isEqual=function(t){return 0===this.compareTo(t)},i.equals=function(t){return this===t||t instanceof e&&0===this._compareTo0(t)},i.hashCode=function(){var t=this._year,e=this._month,n=this._day;return m.hash(4294965248&t^(t<<11)+(e<<6)+n)},i.toString=function(){var t=this._year,e=this._month,n=this._day;return(Math.abs(t)<1e3?t<0?"-"+(""+(t-1e4)).slice(-4):(""+(t+1e4)).slice(-4):t>9999?"+"+t:""+t)+(e<10?"-0"+e:"-"+e)+(n<10?"-0"+n:"-"+n)},i.toJSON=function(){return this.toString()},i.format=function(e){return _(e,"formatter"),d(e,zt,"formatter"),t.prototype.format.call(this,e)},e}(B);var ue=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var n=e.prototype;return n.chronology=function(){return this.toLocalDate().chronology()},n.query=function(e){return e===g.chronology()?this.chronology():e===g.precision()?w.NANOS:e===g.localDate()?ae.ofEpochDay(this.toLocalDate().toEpochDay()):e===g.localTime()?this.toLocalTime():e===g.zone()||e===g.zoneId()||e===g.offset()?null:t.prototype.query.call(this,e)},n.adjustInto=function(t){return t.with(R.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(R.NANO_OF_DAY,this.toLocalTime().toNanoOfDay())},n.toInstant=function(t){return d(t,ft,"zoneId"),le.ofEpochSecond(this.toEpochSecond(t),this.toLocalTime().nano())},n.toEpochSecond=function(t){_(t,"offset");var e=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return e-=t.totalSeconds(),m.safeToInt(e)},e}(x),he=function(t){function e(e,n){var i;return i=t.call(this)||this,d(e,ae,"date"),d(n,fe,"time"),i._date=e,i._time=n,i}f(e,t),e.now=function(t){return null==t?e._now(_e.systemDefaultZone()):t instanceof _e?e._now(t):e._now(_e.system(t))},e._now=function(t){return _(t,"clock"),e.ofInstant(t.instant(),t.zone())},e._ofEpochMillis=function(t,n){var i=m.floorDiv(t,1e3)+n.totalSeconds(),r=m.floorDiv(i,fe.SECONDS_PER_DAY),s=m.floorMod(i,fe.SECONDS_PER_DAY),o=1e6*m.floorMod(t,1e3);return new e(ae.ofEpochDay(r),fe.ofSecondOfDay(s,o))},e.of=function(){return arguments.length<=2?e.ofDateAndTime.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofNumbers=function(t,n,i,r,s,o,a){return void 0===r&&(r=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=0),new e(ae.of(t,n,i),fe.of(r,s,o,a))},e.ofDateAndTime=function(t,n){return _(t,"date"),_(n,"time"),new e(t,n)},e.ofInstant=function(t,n){void 0===n&&(n=st.systemDefault()),_(t,"instant"),d(t,le,"instant"),_(n,"zone");var i=n.rules().offset(t);return e.ofEpochSecond(t.epochSecond(),t.nano(),i)},e.ofEpochSecond=function(t,n,i){void 0===t&&(t=0),void 0===n&&(n=0),2===arguments.length&&n instanceof ft&&(i=n,n=0),_(i,"offset");var r=t+i.totalSeconds(),s=m.floorDiv(r,fe.SECONDS_PER_DAY),o=m.floorMod(r,fe.SECONDS_PER_DAY);return new e(ae.ofEpochDay(s),fe.ofSecondOfDay(o,n))},e.from=function(t){if(_(t,"temporal"),t instanceof e)return t;if(t instanceof dt)return t.toLocalDateTime();try{return new e(ae.from(t),fe.from(t))}catch(e){throw new n("Unable to obtain LocalDateTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return void 0===n&&(n=zt.ISO_LOCAL_DATE_TIME),_(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i._withDateTime=function(t,n){return this._date.equals(t)&&this._time.equals(n)?this:new e(t,n)},i.isSupported=function(t){return t instanceof R||t instanceof w?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.range=function(t){return t instanceof R?t.isTimeBased()?this._time.range(t):this._date.range(t):t.rangeRefinedBy(this)},i.get=function(e){return e instanceof R?e.isTimeBased()?this._time.get(e):this._date.get(e):t.prototype.get.call(this,e)},i.getLong=function(t){return _(t,"field"),t instanceof R?t.isTimeBased()?this._time.getLong(t):this._date.getLong(t):t.getFrom(this)},i.year=function(){return this._date.year()},i.monthValue=function(){return this._date.monthValue()},i.month=function(){return this._date.month()},i.dayOfMonth=function(){return this._date.dayOfMonth()},i.dayOfYear=function(){return this._date.dayOfYear()},i.dayOfWeek=function(){return this._date.dayOfWeek()},i.hour=function(){return this._time.hour()},i.minute=function(){return this._time.minute()},i.second=function(){return this._time.second()},i.nano=function(){return this._time.nano()},i._withAdjuster=function(n){return _(n,"adjuster"),n instanceof ae?this._withDateTime(n,this._time):n instanceof fe?this._withDateTime(this._date,n):n instanceof e?n:t.prototype._withAdjuster.call(this,n)},i._withField=function(t,e){return _(t,"field"),t instanceof R?t.isTimeBased()?this._withDateTime(this._date,this._time.with(t,e)):this._withDateTime(this._date.with(t,e),this._time):t.adjustInto(this,e)},i.withYear=function(t){return this._withDateTime(this._date.withYear(t),this._time)},i.withMonth=function(t){return this._withDateTime(this._date.withMonth(t),this._time)},i.withDayOfMonth=function(t){return this._withDateTime(this._date.withDayOfMonth(t),this._time)},i.withDayOfYear=function(t){return this._withDateTime(this._date.withDayOfYear(t),this._time)},i.withHour=function(t){var e=this._time.withHour(t);return this._withDateTime(this._date,e)},i.withMinute=function(t){var e=this._time.withMinute(t);return this._withDateTime(this._date,e)},i.withSecond=function(t){var e=this._time.withSecond(t);return this._withDateTime(this._date,e)},i.withNano=function(t){var e=this._time.withNano(t);return this._withDateTime(this._date,e)},i.truncatedTo=function(t){return this._withDateTime(this._date,this._time.truncatedTo(t))},i._plusUnit=function(t,e){if(_(e,"unit"),e instanceof w){switch(e){case w.NANOS:return this.plusNanos(t);case w.MICROS:return this.plusDays(m.intDiv(t,fe.MICROS_PER_DAY)).plusNanos(1e3*m.intMod(t,fe.MICROS_PER_DAY));case w.MILLIS:return this.plusDays(m.intDiv(t,fe.MILLIS_PER_DAY)).plusNanos(1e6*m.intMod(t,fe.MILLIS_PER_DAY));case w.SECONDS:return this.plusSeconds(t);case w.MINUTES:return this.plusMinutes(t);case w.HOURS:return this.plusHours(t);case w.HALF_DAYS:return this.plusDays(m.intDiv(t,256)).plusHours(12*m.intMod(t,256))}return this._withDateTime(this._date.plus(t,e),this._time)}return e.addTo(this,t)},i.plusYears=function(t){var e=this._date.plusYears(t);return this._withDateTime(e,this._time)},i.plusMonths=function(t){var e=this._date.plusMonths(t);return this._withDateTime(e,this._time)},i.plusWeeks=function(t){var e=this._date.plusWeeks(t);return this._withDateTime(e,this._time)},i.plusDays=function(t){var e=this._date.plusDays(t);return this._withDateTime(e,this._time)},i.plusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,1)},i.plusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,1)},i.plusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,1)},i.plusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,1)},i._minusUnit=function(t,e){return _(e,"unit"),this._plusUnit(-1*t,e)},i.minusYears=function(t){return this.plusYears(-1*t)},i.minusMonths=function(t){return this.plusMonths(-1*t)},i.minusWeeks=function(t){return this.plusWeeks(-1*t)},i.minusDays=function(t){return this.plusDays(-1*t)},i.minusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,-1)},i.minusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,-1)},i.minusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,-1)},i.minusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,-1)},i._plusWithOverflow=function(t,e,n,i,r,s){if(0===e&&0===n&&0===i&&0===r)return this._withDateTime(t,this._time);var o=m.intDiv(r,fe.NANOS_PER_DAY)+m.intDiv(i,fe.SECONDS_PER_DAY)+m.intDiv(n,fe.MINUTES_PER_DAY)+m.intDiv(e,fe.HOURS_PER_DAY);o*=s;var a=m.intMod(r,fe.NANOS_PER_DAY)+m.intMod(i,fe.SECONDS_PER_DAY)*fe.NANOS_PER_SECOND+m.intMod(n,fe.MINUTES_PER_DAY)*fe.NANOS_PER_MINUTE+m.intMod(e,fe.HOURS_PER_DAY)*fe.NANOS_PER_HOUR,u=this._time.toNanoOfDay();a=a*s+u,o+=m.floorDiv(a,fe.NANOS_PER_DAY);var h=m.floorMod(a,fe.NANOS_PER_DAY),f=h===u?this._time:fe.ofNanoOfDay(h);return this._withDateTime(t.plusDays(o),f)},i.query=function(e){return _(e,"query"),e===g.localDate()?this.toLocalDate():t.prototype.query.call(this,e)},i.adjustInto=function(e){return t.prototype.adjustInto.call(this,e)},i.until=function(t,n){_(t,"endExclusive"),_(n,"unit");var i=e.from(t);if(n instanceof w){if(n.isTimeBased()){var s=this._date.daysUntil(i._date),o=i._time.toNanoOfDay()-this._time.toNanoOfDay();s>0&&o<0?(s--,o+=fe.NANOS_PER_DAY):s<0&&o>0&&(s++,o-=fe.NANOS_PER_DAY);var a=s;switch(n){case w.NANOS:return a=m.safeMultiply(a,fe.NANOS_PER_DAY),m.safeAdd(a,o);case w.MICROS:return a=m.safeMultiply(a,fe.MICROS_PER_DAY),m.safeAdd(a,m.intDiv(o,1e3));case w.MILLIS:return a=m.safeMultiply(a,fe.MILLIS_PER_DAY),m.safeAdd(a,m.intDiv(o,1e6));case w.SECONDS:return a=m.safeMultiply(a,fe.SECONDS_PER_DAY),m.safeAdd(a,m.intDiv(o,fe.NANOS_PER_SECOND));case w.MINUTES:return a=m.safeMultiply(a,fe.MINUTES_PER_DAY),m.safeAdd(a,m.intDiv(o,fe.NANOS_PER_MINUTE));case w.HOURS:return a=m.safeMultiply(a,fe.HOURS_PER_DAY),m.safeAdd(a,m.intDiv(o,fe.NANOS_PER_HOUR));case w.HALF_DAYS:return a=m.safeMultiply(a,2),m.safeAdd(a,m.intDiv(o,12*fe.NANOS_PER_HOUR))}throw new r("Unsupported unit: "+n)}var u=i._date,h=i._time;return u.isAfter(this._date)&&h.isBefore(this._time)?u=u.minusDays(1):u.isBefore(this._date)&&h.isAfter(this._time)&&(u=u.plusDays(1)),this._date.until(u,n)}return n.between(this,i)},i.atOffset=function(t){return lt.of(this,t)},i.atZone=function(t){return dt.of(this,t)},i.toLocalDate=function(){return this._date},i.toLocalTime=function(){return this._time},i.compareTo=function(t){return _(t,"other"),d(t,e,"other"),this._compareTo0(t)},i._compareTo0=function(t){var e=this._date.compareTo(t.toLocalDate());return 0===e&&(e=this._time.compareTo(t.toLocalTime())),e},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.isEqual=function(t){return 0===this.compareTo(t)},i.equals=function(t){return this===t||t instanceof e&&(this._date.equals(t._date)&&this._time.equals(t._time))},i.hashCode=function(){return this._date.hashCode()^this._time.hashCode()},i.toString=function(){return this._date.toString()+"T"+this._time.toString()},i.toJSON=function(){return this.toString()},i.format=function(t){return _(t,"formatter"),t.format(this)},e}(ue);var fe=function(t){function e(n,i,r,s){var o;void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===s&&(s=0),o=t.call(this)||this;var a=m.safeToInt(n),u=m.safeToInt(i),f=m.safeToInt(r),c=m.safeToInt(s);return e._validate(a,u,f,c),0===u&&0===f&&0===c?(e.HOURS[a]||(o._hour=a,o._minute=u,o._second=f,o._nano=c,e.HOURS[a]=o),e.HOURS[a]||h(o)):(o._hour=a,o._minute=u,o._second=f,o._nano=c,o)}f(e,t),e.now=function(t){return null==t?e._now(_e.systemDefaultZone()):t instanceof _e?e._now(t):e._now(_e.system(t))},e._now=function(t){return void 0===t&&(t=_e.systemDefaultZone()),_(t,"clock"),e.ofInstant(t.instant(),t.zone())},e.ofInstant=function(t,n){void 0===n&&(n=st.systemDefault());var i=n.rules().offset(t),r=m.intMod(t.epochSecond(),e.SECONDS_PER_DAY);return(r=m.intMod(r+i.totalSeconds(),e.SECONDS_PER_DAY))<0&&(r+=e.SECONDS_PER_DAY),e.ofSecondOfDay(r,t.nano())},e.of=function(t,n,i,r){return new e(t,n,i,r)},e.ofSecondOfDay=function(t,n){void 0===t&&(t=0),void 0===n&&(n=0),R.SECOND_OF_DAY.checkValidValue(t),R.NANO_OF_SECOND.checkValidValue(n);var i=m.intDiv(t,e.SECONDS_PER_HOUR);t-=i*e.SECONDS_PER_HOUR;var r=m.intDiv(t,e.SECONDS_PER_MINUTE);return new e(i,r,t-=r*e.SECONDS_PER_MINUTE,n)},e.ofNanoOfDay=function(t){void 0===t&&(t=0),R.NANO_OF_DAY.checkValidValue(t);var n=m.intDiv(t,e.NANOS_PER_HOUR);t-=n*e.NANOS_PER_HOUR;var i=m.intDiv(t,e.NANOS_PER_MINUTE);t-=i*e.NANOS_PER_MINUTE;var r=m.intDiv(t,e.NANOS_PER_SECOND);return new e(n,i,r,t-=r*e.NANOS_PER_SECOND)},e.from=function(t){_(t,"temporal");var e=t.query(g.localTime());if(null==e)throw new n("Unable to obtain LocalTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},e.parse=function(t,n){return void 0===n&&(n=zt.ISO_LOCAL_TIME),_(n,"formatter"),n.parse(t,e.FROM)},e._validate=function(t,e,n,i){R.HOUR_OF_DAY.checkValidValue(t),R.MINUTE_OF_HOUR.checkValidValue(e),R.SECOND_OF_MINUTE.checkValidValue(n),R.NANO_OF_SECOND.checkValidValue(i)};var i=e.prototype;return i.isSupported=function(t){return t instanceof R||t instanceof w?t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.range=function(e){return _(e),t.prototype.range.call(this,e)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){return _(t,"field"),t instanceof R?this._get0(t):t.getFrom(this)},i._get0=function(t){switch(t){case R.NANO_OF_SECOND:return this._nano;case R.NANO_OF_DAY:return this.toNanoOfDay();case R.MICRO_OF_SECOND:return m.intDiv(this._nano,1e3);case R.MICRO_OF_DAY:return m.intDiv(this.toNanoOfDay(),1e3);case R.MILLI_OF_SECOND:return m.intDiv(this._nano,1e6);case R.MILLI_OF_DAY:return m.intDiv(this.toNanoOfDay(),1e6);case R.SECOND_OF_MINUTE:return this._second;case R.SECOND_OF_DAY:return this.toSecondOfDay();case R.MINUTE_OF_HOUR:return this._minute;case R.MINUTE_OF_DAY:return 60*this._hour+this._minute;case R.HOUR_OF_AMPM:return m.intMod(this._hour,12);case R.CLOCK_HOUR_OF_AMPM:var e=m.intMod(this._hour,12);return e%12==0?12:e;case R.HOUR_OF_DAY:return this._hour;case R.CLOCK_HOUR_OF_DAY:return 0===this._hour?24:this._hour;case R.AMPM_OF_DAY:return m.intDiv(this._hour,12)}throw new r("Unsupported field: "+t)},i.hour=function(){return this._hour},i.minute=function(){return this._minute},i.second=function(){return this._second},i.nano=function(){return this._nano},i._withAdjuster=function(n){return _(n,"adjuster"),n instanceof e?n:t.prototype._withAdjuster.call(this,n)},i._withField=function(t,n){if(_(t,"field"),d(t,y,"field"),t instanceof R){switch(t.checkValidValue(n),t){case R.NANO_OF_SECOND:return this.withNano(n);case R.NANO_OF_DAY:return e.ofNanoOfDay(n);case R.MICRO_OF_SECOND:return this.withNano(1e3*n);case R.MICRO_OF_DAY:return e.ofNanoOfDay(1e3*n);case R.MILLI_OF_SECOND:return this.withNano(1e6*n);case R.MILLI_OF_DAY:return e.ofNanoOfDay(1e6*n);case R.SECOND_OF_MINUTE:return this.withSecond(n);case R.SECOND_OF_DAY:return this.plusSeconds(n-this.toSecondOfDay());case R.MINUTE_OF_HOUR:return this.withMinute(n);case R.MINUTE_OF_DAY:return this.plusMinutes(n-(60*this._hour+this._minute));case R.HOUR_OF_AMPM:return this.plusHours(n-m.intMod(this._hour,12));case R.CLOCK_HOUR_OF_AMPM:return this.plusHours((12===n?0:n)-m.intMod(this._hour,12));case R.HOUR_OF_DAY:return this.withHour(n);case R.CLOCK_HOUR_OF_DAY:return this.withHour(24===n?0:n);case R.AMPM_OF_DAY:return this.plusHours(12*(n-m.intDiv(this._hour,12)))}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i.withHour=function(t){return void 0===t&&(t=0),this._hour===t?this:new e(t,this._minute,this._second,this._nano)},i.withMinute=function(t){return void 0===t&&(t=0),this._minute===t?this:new e(this._hour,t,this._second,this._nano)},i.withSecond=function(t){return void 0===t&&(t=0),this._second===t?this:new e(this._hour,this._minute,t,this._nano)},i.withNano=function(t){return void 0===t&&(t=0),this._nano===t?this:new e(this._hour,this._minute,this._second,t)},i.truncatedTo=function(t){if(_(t,"unit"),t===w.NANOS)return this;var i=t.duration();if(i.seconds()>e.SECONDS_PER_DAY)throw new n("Unit is too large to be used for truncation");var r=i.toNanos();if(0!==m.intMod(e.NANOS_PER_DAY,r))throw new n("Unit must divide into a standard day without remainder");var s=this.toNanoOfDay();return e.ofNanoOfDay(m.intDiv(s,r)*r)},i._plusUnit=function(t,n){if(_(n,"unit"),n instanceof w){switch(n){case w.NANOS:return this.plusNanos(t);case w.MICROS:return this.plusNanos(1e3*m.intMod(t,e.MICROS_PER_DAY));case w.MILLIS:return this.plusNanos(1e6*m.intMod(t,e.MILLIS_PER_DAY));case w.SECONDS:return this.plusSeconds(t);case w.MINUTES:return this.plusMinutes(t);case w.HOURS:return this.plusHours(t);case w.HALF_DAYS:return this.plusHours(12*m.intMod(t,2))}throw new r("Unsupported unit: "+n)}return n.addTo(this,t)},i.plusHours=function(t){return 0===t?this:new e(m.intMod(m.intMod(t,e.HOURS_PER_DAY)+this._hour+e.HOURS_PER_DAY,e.HOURS_PER_DAY),this._minute,this._second,this._nano)},i.plusMinutes=function(t){if(0===t)return this;var n=this._hour*e.MINUTES_PER_HOUR+this._minute,i=m.intMod(m.intMod(t,e.MINUTES_PER_DAY)+n+e.MINUTES_PER_DAY,e.MINUTES_PER_DAY);return n===i?this:new e(m.intDiv(i,e.MINUTES_PER_HOUR),m.intMod(i,e.MINUTES_PER_HOUR),this._second,this._nano)},i.plusSeconds=function(t){if(0===t)return this;var n=this._hour*e.SECONDS_PER_HOUR+this._minute*e.SECONDS_PER_MINUTE+this._second,i=m.intMod(m.intMod(t,e.SECONDS_PER_DAY)+n+e.SECONDS_PER_DAY,e.SECONDS_PER_DAY);return n===i?this:new e(m.intDiv(i,e.SECONDS_PER_HOUR),m.intMod(m.intDiv(i,e.SECONDS_PER_MINUTE),e.MINUTES_PER_HOUR),m.intMod(i,e.SECONDS_PER_MINUTE),this._nano)},i.plusNanos=function(t){if(0===t)return this;var n=this.toNanoOfDay(),i=m.intMod(m.intMod(t,e.NANOS_PER_DAY)+n+e.NANOS_PER_DAY,e.NANOS_PER_DAY);return n===i?this:new e(m.intDiv(i,e.NANOS_PER_HOUR),m.intMod(m.intDiv(i,e.NANOS_PER_MINUTE),e.MINUTES_PER_HOUR),m.intMod(m.intDiv(i,e.NANOS_PER_SECOND),e.SECONDS_PER_MINUTE),m.intMod(i,e.NANOS_PER_SECOND))},i._minusUnit=function(t,e){return _(e,"unit"),this._plusUnit(-1*t,e)},i.minusHours=function(t){return this.plusHours(-1*m.intMod(t,e.HOURS_PER_DAY))},i.minusMinutes=function(t){return this.plusMinutes(-1*m.intMod(t,e.MINUTES_PER_DAY))},i.minusSeconds=function(t){return this.plusSeconds(-1*m.intMod(t,e.SECONDS_PER_DAY))},i.minusNanos=function(t){return this.plusNanos(-1*m.intMod(t,e.NANOS_PER_DAY))},i.query=function(t){return _(t,"query"),t===g.precision()?w.NANOS:t===g.localTime()?this:t===g.chronology()||t===g.zoneId()||t===g.zone()||t===g.offset()||t===g.localDate()?null:t.queryFrom(this)},i.adjustInto=function(t){return t.with(e.NANO_OF_DAY,this.toNanoOfDay())},i.until=function(t,n){_(t,"endExclusive"),_(n,"unit");var i=e.from(t);if(n instanceof w){var s=i.toNanoOfDay()-this.toNanoOfDay();switch(n){case w.NANOS:return s;case w.MICROS:return m.intDiv(s,1e3);case w.MILLIS:return m.intDiv(s,1e6);case w.SECONDS:return m.intDiv(s,e.NANOS_PER_SECOND);case w.MINUTES:return m.intDiv(s,e.NANOS_PER_MINUTE);case w.HOURS:return m.intDiv(s,e.NANOS_PER_HOUR);case w.HALF_DAYS:return m.intDiv(s,12*e.NANOS_PER_HOUR)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.atDate=function(t){return he.of(t,this)},i.atOffset=function(t){return ct.of(this,t)},i.toSecondOfDay=function(){var t=this._hour*e.SECONDS_PER_HOUR;return t+=this._minute*e.SECONDS_PER_MINUTE,t+=this._second},i.toNanoOfDay=function(){var t=this._hour*e.NANOS_PER_HOUR;return t+=this._minute*e.NANOS_PER_MINUTE,t+=this._second*e.NANOS_PER_SECOND,t+=this._nano},i.compareTo=function(t){_(t,"other"),d(t,e,"other");var n=m.compareNumbers(this._hour,t._hour);return 0===n&&0===(n=m.compareNumbers(this._minute,t._minute))&&0===(n=m.compareNumbers(this._second,t._second))&&(n=m.compareNumbers(this._nano,t._nano)),n},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.equals=function(t){return this===t||t instanceof e&&(this._hour===t._hour&&this._minute===t._minute&&this._second===t._second&&this._nano===t._nano)},i.hashCode=function(){var t=this.toNanoOfDay();return m.hash(t)},i.toString=function(){var t="",e=this._hour,n=this._minute,i=this._second,r=this._nano;return t+=e<10?"0":"",t+=e,t+=n<10?":0":":",t+=n,(i>0||r>0)&&(t+=i<10?":0":":",t+=i,r>0&&(t+=".",0===m.intMod(r,1e6)?t+=(""+(m.intDiv(r,1e6)+1e3)).substring(1):0===m.intMod(r,1e3)?t+=(""+(m.intDiv(r,1e3)+1e6)).substring(1):t+=(""+(r+1e9)).substring(1))),t},i.toJSON=function(){return this.toString()},i.format=function(t){return _(t,"formatter"),t.format(this)},e}(x);fe.HOURS_PER_DAY=24,fe.MINUTES_PER_HOUR=60,fe.MINUTES_PER_DAY=fe.MINUTES_PER_HOUR*fe.HOURS_PER_DAY,fe.SECONDS_PER_MINUTE=60,fe.SECONDS_PER_HOUR=fe.SECONDS_PER_MINUTE*fe.MINUTES_PER_HOUR,fe.SECONDS_PER_DAY=fe.SECONDS_PER_HOUR*fe.HOURS_PER_DAY,fe.MILLIS_PER_DAY=1e3*fe.SECONDS_PER_DAY,fe.MICROS_PER_DAY=1e6*fe.SECONDS_PER_DAY,fe.NANOS_PER_SECOND=1e9,fe.NANOS_PER_MINUTE=fe.NANOS_PER_SECOND*fe.SECONDS_PER_MINUTE,fe.NANOS_PER_HOUR=fe.NANOS_PER_MINUTE*fe.MINUTES_PER_HOUR,fe.NANOS_PER_DAY=fe.NANOS_PER_HOUR*fe.HOURS_PER_DAY;var ce=1e6,le=function(t){function e(n,i){var r;return r=t.call(this)||this,e._validate(n,i),r._seconds=m.safeToInt(n),r._nanos=m.safeToInt(i),r}f(e,t),e.now=function(t){return void 0===t&&(t=_e.systemUTC()),t.instant()},e.ofEpochSecond=function(t,n){void 0===n&&(n=0);var i=t+m.floorDiv(n,fe.NANOS_PER_SECOND),r=m.floorMod(n,fe.NANOS_PER_SECOND);return e._create(i,r)},e.ofEpochMilli=function(t){var n=m.floorDiv(t,1e3),i=m.floorMod(t,1e3);return e._create(n,1e6*i)},e.ofEpochMicro=function(t){var n=m.floorDiv(t,1e6),i=m.floorMod(t,1e6);return e._create(n,1e3*i)},e.from=function(t){try{var i=t.getLong(R.INSTANT_SECONDS),r=t.get(R.NANO_OF_SECOND);return e.ofEpochSecond(i,r)}catch(e){throw new n("Unable to obtain Instant from TemporalAccessor: "+t+", type "+typeof t,e)}},e.parse=function(t){return zt.ISO_INSTANT.parse(t,e.FROM)},e._create=function(t,n){return 0===t&&0===n?e.EPOCH:new e(t,n)},e._validate=function(t,i){if(t<e.MIN_SECONDS||t>e.MAX_SECONDS)throw new n("Instant exceeds minimum or maximum instant");if(i<0||i>fe.NANOS_PER_SECOND)throw new n("Instant exceeds minimum or maximum instant")};var i=e.prototype;return i.isSupported=function(t){return t instanceof R?t===R.INSTANT_SECONDS||t===R.NANO_OF_SECOND||t===R.MICRO_OF_SECOND||t===R.MILLI_OF_SECOND:t instanceof w?t.isTimeBased()||t===w.DAYS:null!=t&&t.isSupportedBy(this)},i.range=function(e){return t.prototype.range.call(this,e)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){if(t instanceof R){switch(t){case R.NANO_OF_SECOND:return this._nanos;case R.MICRO_OF_SECOND:return m.intDiv(this._nanos,1e3);case R.MILLI_OF_SECOND:return m.intDiv(this._nanos,ce);case R.INSTANT_SECONDS:return this._seconds}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i.epochSecond=function(){return this._seconds},i.nano=function(){return this._nanos},i._withField=function(t,n){if(_(t,"field"),t instanceof R){switch(t.checkValidValue(n),t){case R.MILLI_OF_SECOND:var i=n*ce;return i!==this._nanos?e._create(this._seconds,i):this;case R.MICRO_OF_SECOND:var s=1e3*n;return s!==this._nanos?e._create(this._seconds,s):this;case R.NANO_OF_SECOND:return n!==this._nanos?e._create(this._seconds,n):this;case R.INSTANT_SECONDS:return n!==this._seconds?e._create(n,this._nanos):this}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i.truncatedTo=function(t){if(_(t,"unit"),t===w.NANOS)return this;var e=t.duration();if(e.seconds()>fe.SECONDS_PER_DAY)throw new n("Unit is too large to be used for truncation");var i=e.toNanos();if(0!==m.intMod(fe.NANOS_PER_DAY,i))throw new n("Unit must divide into a standard day without remainder");var r=m.intMod(this._seconds,fe.SECONDS_PER_DAY)*fe.NANOS_PER_SECOND+this._nanos,s=m.floorDiv(r,i)*i;return this.plusNanos(s-r)},i._plusUnit=function(t,e){if(_(t,"amountToAdd"),_(e,"unit"),d(e,A),e instanceof w){switch(e){case w.NANOS:return this.plusNanos(t);case w.MICROS:return this.plusMicros(t);case w.MILLIS:return this.plusMillis(t);case w.SECONDS:return this.plusSeconds(t);case w.MINUTES:return this.plusSeconds(m.safeMultiply(t,fe.SECONDS_PER_MINUTE));case w.HOURS:return this.plusSeconds(m.safeMultiply(t,fe.SECONDS_PER_HOUR));case w.HALF_DAYS:return this.plusSeconds(m.safeMultiply(t,fe.SECONDS_PER_DAY/2));case w.DAYS:return this.plusSeconds(m.safeMultiply(t,fe.SECONDS_PER_DAY))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusSeconds=function(t){return this._plus(t,0)},i.plusMillis=function(t){return this._plus(m.intDiv(t,1e3),m.intMod(t,1e3)*ce)},i.plusNanos=function(t){return this._plus(0,t)},i.plusMicros=function(t){return this._plus(m.intDiv(t,1e6),1e3*m.intMod(t,1e6))},i._plus=function(t,n){if(0===t&&0===n)return this;var i=this._seconds+t;i+=m.intDiv(n,fe.NANOS_PER_SECOND);var r=this._nanos+n%fe.NANOS_PER_SECOND;return e.ofEpochSecond(i,r)},i._minusUnit=function(t,e){return this._plusUnit(-1*t,e)},i.minusSeconds=function(t){return this.plusSeconds(-1*t)},i.minusMillis=function(t){return this.plusMillis(-1*t)},i.minusNanos=function(t){return this.plusNanos(-1*t)},i.minusMicros=function(t){return this.plusMicros(-1*t)},i.query=function(t){return _(t,"query"),t===g.precision()?w.NANOS:t===g.localDate()||t===g.localTime()||t===g.chronology()||t===g.zoneId()||t===g.zone()||t===g.offset()?null:t.queryFrom(this)},i.adjustInto=function(t){return _(t,"temporal"),t.with(R.INSTANT_SECONDS,this._seconds).with(R.NANO_OF_SECOND,this._nanos)},i.until=function(t,n){_(t,"endExclusive"),_(n,"unit");var i=e.from(t);if(n instanceof w){switch(n){case w.NANOS:return this._nanosUntil(i);case w.MICROS:return this._microsUntil(i);case w.MILLIS:return m.safeSubtract(i.toEpochMilli(),this.toEpochMilli());case w.SECONDS:return this._secondsUntil(i);case w.MINUTES:return m.intDiv(this._secondsUntil(i),fe.SECONDS_PER_MINUTE);case w.HOURS:return m.intDiv(this._secondsUntil(i),fe.SECONDS_PER_HOUR);case w.HALF_DAYS:return m.intDiv(this._secondsUntil(i),12*fe.SECONDS_PER_HOUR);case w.DAYS:return m.intDiv(this._secondsUntil(i),fe.SECONDS_PER_DAY)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i._microsUntil=function(t){var e=m.safeSubtract(t.epochSecond(),this.epochSecond()),n=t.nano()-this.nano();e>0&&n<0?(e--,n+=fe.NANOS_PER_SECOND):e<0&&n>0&&(e++,n-=fe.NANOS_PER_SECOND);var i=m.safeMultiply(e,1e6);return m.safeAdd(i,m.intDiv(n,1e3))},i._nanosUntil=function(t){var e=m.safeSubtract(t.epochSecond(),this.epochSecond()),n=m.safeMultiply(e,fe.NANOS_PER_SECOND);return m.safeAdd(n,t.nano()-this.nano())},i._secondsUntil=function(t){var e=m.safeSubtract(t.epochSecond(),this.epochSecond()),n=t.nano()-this.nano();return e>0&&n<0?e--:e<0&&n>0&&e++,e},i.atOffset=function(t){return lt.ofInstant(this,t)},i.atZone=function(t){return dt.ofInstant(this,t)},i.toEpochMilli=function(){if(this._seconds<0&&this._nanos>0){var t=m.safeMultiply(this._seconds+1,1e3),e=m.intDiv(this._nanos,ce)-1e3;return m.safeAdd(t,e)}return m.safeMultiply(this._seconds,1e3)+m.intDiv(this._nanos,ce)},i.compareTo=function(t){_(t,"otherInstant"),d(t,e,"otherInstant");var n=m.compareNumbers(this._seconds,t._seconds);return 0!==n?n:this._nanos-t._nanos},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.equals=function(t){return this===t||t instanceof e&&(this.epochSecond()===t.epochSecond()&&this.nano()===t.nano())},i.hashCode=function(){return m.hashCode(this._seconds,this._nanos)},i.toString=function(){return zt.ISO_INSTANT.format(this)},i.toJSON=function(){return this.toString()},e}(x);var _e=function(){function t(){}t.systemUTC=function(){return new de(ft.UTC)},t.systemDefaultZone=function(){return new de(st.systemDefault())},t.system=function(t){return new de(t)},t.fixed=function(t,e){return new pe(t,e)},t.offset=function(t,e){return new Oe(t,e)};var e=t.prototype;return e.millis=function(){p("Clock.millis")},e.instant=function(){p("Clock.instant")},e.zone=function(){p("Clock.zone")},e.withZone=function(){p("Clock.withZone")},t}(),de=function(t){function e(e){var n;return _(e,"zone"),(n=t.call(this)||this)._zone=e,n}f(e,t);var n=e.prototype;return n.zone=function(){return this._zone},n.millis=function(){return(new Date).getTime()},n.instant=function(){return le.ofEpochMilli(this.millis())},n.equals=function(t){return t instanceof e&&this._zone.equals(t._zone)},n.withZone=function(t){return t.equals(this._zone)?this:new e(t)},n.toString=function(){return"SystemClock["+this._zone.toString()+"]"},e}(_e),pe=function(t){function e(e,n){var i;return(i=t.call(this)||this)._instant=e,i._zoneId=n,i}f(e,t);var n=e.prototype;return n.instant=function(){return this._instant},n.millis=function(){return this._instant.toEpochMilli()},n.zone=function(){return this._zoneId},n.toString=function(){return"FixedClock[]"},n.equals=function(t){return t instanceof e&&(this._instant.equals(t._instant)&&this._zoneId.equals(t._zoneId))},n.withZone=function(t){return t.equals(this._zoneId)?this:new e(this._instant,t)},e}(_e),Oe=function(t){function e(e,n){var i;return(i=t.call(this)||this)._baseClock=e,i._offset=n,i}f(e,t);var n=e.prototype;return n.zone=function(){return this._baseClock.zone()},n.withZone=function(t){return t.equals(this._baseClock.zone())?this:new e(this._baseClock.withZone(t),this._offset)},n.millis=function(){return this._baseClock.millis()+this._offset.toMillis()},n.instant=function(){return this._baseClock.instant().plus(this._offset)},n.equals=function(t){return t instanceof e&&(this._baseClock.equals(t._baseClock)&&this._offset.equals(t._offset))},n.toString=function(){return"OffsetClock["+this._baseClock+","+this._offset+"]"},e}(_e),Ee=function(){function t(t,e,n){if(_(t,"transition"),_(e,"offsetBefore"),_(n,"offsetAfter"),e.equals(n))throw new o("Offsets must not be equal");if(0!==t.nano())throw new o("Nano-of-second must be zero");this._transition=t instanceof he?t:he.ofEpochSecond(t,0,e),this._offsetBefore=e,this._offsetAfter=n}t.of=function(e,n,i){return new t(e,n,i)};var e=t.prototype;return e.instant=function(){return this._transition.toInstant(this._offsetBefore)},e.toEpochSecond=function(){return this._transition.toEpochSecond(this._offsetBefore)},e.dateTimeBefore=function(){return this._transition},e.dateTimeAfter=function(){return this._transition.plusSeconds(this.durationSeconds())},e.offsetBefore=function(){return this._offsetBefore},e.offsetAfter=function(){return this._offsetAfter},e.duration=function(){return T.ofSeconds(this.durationSeconds())},e.durationSeconds=function(){return this._offsetAfter.totalSeconds()-this._offsetBefore.totalSeconds()},e.isGap=function(){return this._offsetAfter.totalSeconds()>this._offsetBefore.totalSeconds()},e.isOverlap=function(){return this._offsetAfter.totalSeconds()<this._offsetBefore.totalSeconds()},e.isValidOffset=function(t){return!this.isGap()&&(this._offsetBefore.equals(t)||this._offsetAfter.equals(t))},e.validOffsets=function(){return this.isGap()?[]:[this._offsetBefore,this._offsetAfter]},e.compareTo=function(t){return this.instant().compareTo(t.instant())},e.equals=function(e){if(e===this)return!0;if(e instanceof t){var n=e;return this._transition.equals(n._transition)&&this._offsetBefore.equals(n.offsetBefore())&&this._offsetAfter.equals(n.offsetAfter())}return!1},e.hashCode=function(){return this._transition.hashCode()^this._offsetBefore.hashCode()^this._offsetAfter.hashCode()>>>16},e.toString=function(){return"Transition["+(this.isGap()?"Gap":"Overlap")+" at "+this._transition.toString()+this._offsetBefore.toString()+" to "+this._offsetAfter+"]"},t}();var Se=function(t){function e(){return t.apply(this,arguments)||this}f(e,t);var i=e.prototype;return i.isFixedOffset=function(){return!1},i.offsetOfInstant=function(t){var e=new Date(t.toEpochMilli()).getTimezoneOffset();return ft.ofTotalMinutes(-1*e)},i.offsetOfEpochMilli=function(t){var e=new Date(t).getTimezoneOffset();return ft.ofTotalMinutes(-1*e)},i.offsetOfLocalDateTime=function(t){var e=1e3*t.toEpochSecond(ft.UTC),n=new Date(e).getTimezoneOffset(),i=new Date(e+6e4*n).getTimezoneOffset();return ft.ofTotalMinutes(-1*i)},i.validOffsets=function(t){return[this.offsetOfLocalDateTime(t)]},i.transition=function(){return null},i.standardOffset=function(t){return this.offsetOfInstant(t)},i.daylightSavings=function(){this._throwNotSupported()},i.isDaylightSavings=function(){this._throwNotSupported()},i.isValidOffset=function(t,e){return this.offsetOfLocalDateTime(t).equals(e)},i.nextTransition=function(){this._throwNotSupported()},i.previousTransition=function(){this._throwNotSupported()},i.transitions=function(){this._throwNotSupported()},i.transitionRules=function(){this._throwNotSupported()},i._throwNotSupported=function(){throw new n("not supported operation")},i.equals=function(t){return this===t||t instanceof e},i.toString=function(){return"SYSTEM"},e}(ot),me=function(t){function e(){var e;return(e=t.call(this)||this)._rules=new Se,e}f(e,t);var n=e.prototype;return n.rules=function(){return this._rules},n.equals=function(t){return this===t},n.id=function(){return"SYSTEM"},e}(st),Ne=function(){function t(){}return t.systemDefault=function(){return De},t.getAvailableZoneIds=function(){return Yt.getAvailableZoneIds()},t.of=function(t){if(_(t,"zoneId"),"Z"===t)return ft.UTC;if(1===t.length)throw new n("Invalid zone: "+t);if(rt.startsWith(t,"+")||rt.startsWith(t,"-"))return ft.of(t);if("UTC"===t||"GMT"===t||"GMT0"===t||"UT"===t)return new Lt(t,ft.UTC.rules());if(rt.startsWith(t,"UTC+")||rt.startsWith(t,"GMT+")||rt.startsWith(t,"UTC-")||rt.startsWith(t,"GMT-")){var e=ft.of(t.substring(3));return 0===e.totalSeconds()?new Lt(t.substring(0,3),e.rules()):new Lt(t.substring(0,3)+e.id(),e.rules())}if(rt.startsWith(t,"UT+")||rt.startsWith(t,"UT-")){var i=ft.of(t.substring(2));return 0===i.totalSeconds()?new Lt("UT",i.rules()):new Lt("UT"+i.id(),i.rules())}return"SYSTEM"===t?st.systemDefault():Lt.ofId(t)},t.ofOffset=function(t,e){if(_(t,"prefix"),_(e,"offset"),0===t.length)return e;if("GMT"===t||"UTC"===t||"UT"===t)return 0===e.totalSeconds()?new Lt(t,e.rules()):new Lt(t+e.id(),e.rules());throw new o("Invalid prefix, must be GMT, UTC or UT: "+t)},t.from=function(t){_(t,"temporal");var e=t.query(g.zone());if(null==e)throw new n("Unable to obtain ZoneId from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},t}(),De=null;var Ae=!1;Ae||(Ae=!0,v.MIN_VALUE=-999999,v.MAX_VALUE=999999,T.ZERO=new T(0,0),w.NANOS=new w("Nanos",T.ofNanos(1)),w.MICROS=new w("Micros",T.ofNanos(1e3)),w.MILLIS=new w("Millis",T.ofNanos(1e6)),w.SECONDS=new w("Seconds",T.ofSeconds(1)),w.MINUTES=new w("Minutes",T.ofSeconds(60)),w.HOURS=new w("Hours",T.ofSeconds(3600)),w.HALF_DAYS=new w("HalfDays",T.ofSeconds(43200)),w.DAYS=new w("Days",T.ofSeconds(86400)),w.WEEKS=new w("Weeks",T.ofSeconds(604800)),w.MONTHS=new w("Months",T.ofSeconds(2629746)),w.YEARS=new w("Years",T.ofSeconds(31556952)),w.DECADES=new w("Decades",T.ofSeconds(315569520)),w.CENTURIES=new w("Centuries",T.ofSeconds(3155695200)),w.MILLENNIA=new w("Millennia",T.ofSeconds(31556952e3)),w.ERAS=new w("Eras",T.ofSeconds(31556952*(v.MAX_VALUE+1))),w.FOREVER=new w("Forever",T.ofSeconds(m.MAX_SAFE_INTEGER,999999999)),R.NANO_OF_SECOND=new R("NanoOfSecond",w.NANOS,w.SECONDS,M.of(0,999999999)),R.NANO_OF_DAY=new R("NanoOfDay",w.NANOS,w.DAYS,M.of(0,86399999999999)),R.MICRO_OF_SECOND=new R("MicroOfSecond",w.MICROS,w.SECONDS,M.of(0,999999)),R.MICRO_OF_DAY=new R("MicroOfDay",w.MICROS,w.DAYS,M.of(0,86399999999)),R.MILLI_OF_SECOND=new R("MilliOfSecond",w.MILLIS,w.SECONDS,M.of(0,999)),R.MILLI_OF_DAY=new R("MilliOfDay",w.MILLIS,w.DAYS,M.of(0,86399999)),R.SECOND_OF_MINUTE=new R("SecondOfMinute",w.SECONDS,w.MINUTES,M.of(0,59)),R.SECOND_OF_DAY=new R("SecondOfDay",w.SECONDS,w.DAYS,M.of(0,86399)),R.MINUTE_OF_HOUR=new R("MinuteOfHour",w.MINUTES,w.HOURS,M.of(0,59)),R.MINUTE_OF_DAY=new R("MinuteOfDay",w.MINUTES,w.DAYS,M.of(0,1439)),R.HOUR_OF_AMPM=new R("HourOfAmPm",w.HOURS,w.HALF_DAYS,M.of(0,11)),R.CLOCK_HOUR_OF_AMPM=new R("ClockHourOfAmPm",w.HOURS,w.HALF_DAYS,M.of(1,12)),R.HOUR_OF_DAY=new R("HourOfDay",w.HOURS,w.DAYS,M.of(0,23)),R.CLOCK_HOUR_OF_DAY=new R("ClockHourOfDay",w.HOURS,w.DAYS,M.of(1,24)),R.AMPM_OF_DAY=new R("AmPmOfDay",w.HALF_DAYS,w.DAYS,M.of(0,1)),R.DAY_OF_WEEK=new R("DayOfWeek",w.DAYS,w.WEEKS,M.of(1,7)),R.ALIGNED_DAY_OF_WEEK_IN_MONTH=new R("AlignedDayOfWeekInMonth",w.DAYS,w.WEEKS,M.of(1,7)),R.ALIGNED_DAY_OF_WEEK_IN_YEAR=new R("AlignedDayOfWeekInYear",w.DAYS,w.WEEKS,M.of(1,7)),R.DAY_OF_MONTH=new R("DayOfMonth",w.DAYS,w.MONTHS,M.of(1,28,31),"day"),R.DAY_OF_YEAR=new R("DayOfYear",w.DAYS,w.YEARS,M.of(1,365,366)),R.EPOCH_DAY=new R("EpochDay",w.DAYS,w.FOREVER,M.of(-365961662,364522971)),R.ALIGNED_WEEK_OF_MONTH=new R("AlignedWeekOfMonth",w.WEEKS,w.MONTHS,M.of(1,4,5)),R.ALIGNED_WEEK_OF_YEAR=new R("AlignedWeekOfYear",w.WEEKS,w.YEARS,M.of(1,53)),R.MONTH_OF_YEAR=new R("MonthOfYear",w.MONTHS,w.YEARS,M.of(1,12),"month"),R.PROLEPTIC_MONTH=new R("ProlepticMonth",w.MONTHS,w.FOREVER,M.of(12*v.MIN_VALUE,12*v.MAX_VALUE+11)),R.YEAR_OF_ERA=new R("YearOfEra",w.YEARS,w.FOREVER,M.of(1,v.MAX_VALUE,v.MAX_VALUE+1)),R.YEAR=new R("Year",w.YEARS,w.FOREVER,M.of(v.MIN_VALUE,v.MAX_VALUE),"year"),R.ERA=new R("Era",w.ERAS,w.FOREVER,M.of(0,1)),R.INSTANT_SECONDS=new R("InstantSeconds",w.SECONDS,w.FOREVER,M.of(S,E)),R.OFFSET_SECONDS=new R("OffsetSeconds",w.SECONDS,w.FOREVER,M.of(-64800,64800)),function(){fe.HOURS=[];for(var t=0;t<24;t++)fe.of(t,0,0,0);fe.MIN=fe.HOURS[0],fe.MAX=new fe(23,59,59,999999999),fe.MIDNIGHT=fe.HOURS[0],fe.NOON=fe.HOURS[12],fe.FROM=C("LocalTime.FROM",(function(t){return fe.from(t)}))}(),Q=new K,$=new j,tt=new G,et=new X,nt=new J("WeekBasedYears",T.ofSeconds(31556952)),it=new J("QuarterYears",T.ofSeconds(7889238)),q.DAY_OF_QUARTER=Q,q.QUARTER_OF_YEAR=$,q.WEEK_OF_WEEK_BASED_YEAR=tt,q.WEEK_BASED_YEAR=et,q.WEEK_BASED_YEARS=nt,q.QUARTER_YEARS=it,ae.prototype.isoWeekOfWeekyear=function(){return this.get(q.WEEK_OF_WEEK_BASED_YEAR)},ae.prototype.isoWeekyear=function(){return this.get(q.WEEK_BASED_YEAR)},g.ZONE_ID=C("ZONE_ID",(function(t){return t.query(g.ZONE_ID)})),g.CHRONO=C("CHRONO",(function(t){return t.query(g.CHRONO)})),g.PRECISION=C("PRECISION",(function(t){return t.query(g.PRECISION)})),g.OFFSET=C("OFFSET",(function(t){return t.isSupported(R.OFFSET_SECONDS)?ft.ofTotalSeconds(t.get(R.OFFSET_SECONDS)):null})),g.ZONE=C("ZONE",(function(t){var e=t.query(g.ZONE_ID);return null!=e?e:t.query(g.OFFSET)})),g.LOCAL_DATE=C("LOCAL_DATE",(function(t){return t.isSupported(R.EPOCH_DAY)?ae.ofEpochDay(t.getLong(R.EPOCH_DAY)):null})),g.LOCAL_TIME=C("LOCAL_TIME",(function(t){return t.isSupported(R.NANO_OF_DAY)?fe.ofNanoOfDay(t.getLong(R.NANO_OF_DAY)):null})),L.MONDAY=new L(0,"MONDAY"),L.TUESDAY=new L(1,"TUESDAY"),L.WEDNESDAY=new L(2,"WEDNESDAY"),L.THURSDAY=new L(3,"THURSDAY"),L.FRIDAY=new L(4,"FRIDAY"),L.SATURDAY=new L(5,"SATURDAY"),L.SUNDAY=new L(6,"SUNDAY"),L.FROM=C("DayOfWeek.FROM",(function(t){return L.from(t)})),Y=[L.MONDAY,L.TUESDAY,L.WEDNESDAY,L.THURSDAY,L.FRIDAY,L.SATURDAY,L.SUNDAY],le.MIN_SECONDS=-31619119219200,le.MAX_SECONDS=31494816403199,le.EPOCH=new le(0,0),le.MIN=le.ofEpochSecond(le.MIN_SECONDS,0),le.MAX=le.ofEpochSecond(le.MAX_SECONDS,999999999),le.FROM=C("Instant.FROM",(function(t){return le.from(t)})),ae.MIN=ae.of(v.MIN_VALUE,1,1),ae.MAX=ae.of(v.MAX_VALUE,12,31),ae.EPOCH_0=ae.ofEpochDay(0),ae.FROM=C("LocalDate.FROM",(function(t){return ae.from(t)})),he.MIN=he.of(ae.MIN,fe.MIN),he.MAX=he.of(ae.MAX,fe.MAX),he.FROM=C("LocalDateTime.FROM",(function(t){return he.from(t)})),Qt.MIN_VALUE=v.MIN_VALUE,Qt.MAX_VALUE=v.MAX_VALUE,Jt=(new Wt).appendValue(R.YEAR,4,10,Nt.EXCEEDS_PAD).toFormatter(),Qt.FROM=C("Year.FROM",(function(t){return Qt.from(t)})),U.JANUARY=new U(1,"JANUARY"),U.FEBRUARY=new U(2,"FEBRUARY"),U.MARCH=new U(3,"MARCH"),U.APRIL=new U(4,"APRIL"),U.MAY=new U(5,"MAY"),U.JUNE=new U(6,"JUNE"),U.JULY=new U(7,"JULY"),U.AUGUST=new U(8,"AUGUST"),U.SEPTEMBER=new U(9,"SEPTEMBER"),U.OCTOBER=new U(10,"OCTOBER"),U.NOVEMBER=new U(11,"NOVEMBER"),U.DECEMBER=new U(12,"DECEMBER"),P=[U.JANUARY,U.FEBRUARY,U.MARCH,U.APRIL,U.MAY,U.JUNE,U.JULY,U.AUGUST,U.SEPTEMBER,U.OCTOBER,U.NOVEMBER,U.DECEMBER],Gt=(new Wt).appendValue(R.YEAR,4,10,Nt.EXCEEDS_PAD).appendLiteral("-").appendValue(R.MONTH_OF_YEAR,2).toFormatter(),Xt.FROM=C("YearMonth.FROM",(function(t){return Xt.from(t)})),Kt=(new Wt).appendLiteral("--").appendValue(R.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(R.DAY_OF_MONTH,2).toFormatter(),jt.FROM=C("MonthDay.FROM",(function(t){return jt.from(t)})),b.ofDays(0),ft.MAX_SECONDS=18*fe.SECONDS_PER_HOUR,ft.UTC=ft.ofTotalSeconds(0),ft.MIN=ft.ofTotalSeconds(-ft.MAX_SECONDS),ft.MAX=ft.ofTotalSeconds(ft.MAX_SECONDS),dt.FROM=C("ZonedDateTime.FROM",(function(t){return dt.from(t)})),De=new me,st.systemDefault=Ne.systemDefault,st.getAvailableZoneIds=Ne.getAvailableZoneIds,st.of=Ne.of,st.ofOffset=Ne.ofOffset,st.from=Ne.from,ft.from=Ne.from,st.SYSTEM=De,st.UTC=ft.ofTotalSeconds(0),re.INSTANCE=new re("IsoChronology"),zt.ISO_LOCAL_DATE=(new Wt).appendValue(R.YEAR,4,10,Nt.EXCEEDS_PAD).appendLiteral("-").appendValue(R.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(R.DAY_OF_MONTH,2).toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_LOCAL_TIME=(new Wt).appendValue(R.HOUR_OF_DAY,2).appendLiteral(":").appendValue(R.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(R.SECOND_OF_MINUTE,2).optionalStart().appendFraction(R.NANO_OF_SECOND,0,9,!0).toFormatter(k.STRICT),zt.ISO_LOCAL_DATE_TIME=(new Wt).parseCaseInsensitive().append(zt.ISO_LOCAL_DATE).appendLiteral("T").append(zt.ISO_LOCAL_TIME).toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_INSTANT=(new Wt).parseCaseInsensitive().appendInstant().toFormatter(k.STRICT),zt.ISO_OFFSET_DATE_TIME=(new Wt).parseCaseInsensitive().append(zt.ISO_LOCAL_DATE_TIME).appendOffsetId().toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_ZONED_DATE_TIME=(new Wt).append(zt.ISO_OFFSET_DATE_TIME).optionalStart().appendLiteral("[").parseCaseSensitive().appendZoneId().appendLiteral("]").toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.BASIC_ISO_DATE=(new Wt).appendValue(R.YEAR,4,10,Nt.EXCEEDS_PAD).appendValue(R.MONTH_OF_YEAR,2).appendValue(R.DAY_OF_MONTH,2).toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_OFFSET_DATE=(new Wt).parseCaseInsensitive().append(zt.ISO_LOCAL_DATE).appendOffsetId().toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_OFFSET_TIME=(new Wt).parseCaseInsensitive().append(zt.ISO_LOCAL_TIME).appendOffsetId().toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_ORDINAL_DATE=(new Wt).appendValue(R.YEAR,4,10,Nt.EXCEEDS_PAD).appendLiteral("-").appendValue(R.DAY_OF_YEAR).toFormatter(k.STRICT),zt.ISO_WEEK_DATE=(new Wt).parseCaseInsensitive().appendValue(q.WEEK_BASED_YEAR,4,10,Nt.EXCEEDS_PAD).appendLiteral("-W").appendValue(q.WEEK_OF_WEEK_BASED_YEAR,2).appendLiteral("-").appendValue(R.DAY_OF_WEEK,1).toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_DATE=(new Wt).parseCaseInsensitive().append(zt.ISO_LOCAL_DATE).optionalStart().appendOffsetId().optionalEnd().toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.ISO_TIME=(new Wt).parseCaseInsensitive().append(zt.ISO_LOCAL_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(k.STRICT),zt.ISO_DATE_TIME=(new Wt).append(zt.ISO_LOCAL_DATE_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(k.STRICT).withChronology(re.INSTANCE),zt.PARSED_EXCESS_DAYS=C("PARSED_EXCESS_DAYS",(function(t){return t instanceof pt?t.excessDays:b.ZERO})),zt.PARSED_LEAP_SECOND=C("PARSED_LEAP_SECOND",(function(t){return t instanceof pt&&t.leapSecond})),Mt.BASE_DATE=ae.of(2e3,1,1),Wt.CompositePrinterParser=Tt,Wt.PadPrinterParserDecorator=It,Wt.SettingsParser=Ft,Wt.CharLiteralPrinterParser=Ct,Wt.StringLiteralPrinterParser=Ct,Wt.CharLiteralPrinterParser=At,Wt.NumberPrinterParser=yt,Wt.ReducedPrinterParser=Mt,Wt.FractionPrinterParser=vt,Wt.OffsetIdPrinterParser=gt,Wt.ZoneIdPrinterParser=Pt,lt.MIN=he.MIN.atOffset(ft.MAX),lt.MAX=he.MAX.atOffset(ft.MIN),lt.FROM=C("OffsetDateTime.FROM",(function(t){return lt.from(t)})),ct.MIN=ct.ofNumbers(0,0,0,0,ft.MAX),ct.MAX=ct.ofNumbers(23,59,59,999999999,ft.MIN),ct.FROM=C("OffsetTime.FROM",(function(t){return ct.from(t)})));var Te=function(){function t(t,e){var n;if(t instanceof le)this.instant=t;else{if(t instanceof ae)e=null==e?st.systemDefault():e,n=t.atStartOfDay(e);else if(t instanceof he)e=null==e?st.systemDefault():e,n=t.atZone(e);else{if(!(t instanceof dt))throw new o("unsupported instance for convert operation:"+t);n=null==e?t:t.withZoneSameInstant(e)}this.instant=n.toInstant()}}var e=t.prototype;return e.toDate=function(){return new Date(this.instant.toEpochMilli())},e.toEpochMilli=function(){return this.instant.toEpochMilli()},t}();function ve(t,e){return new Te(t,e)}function we(t,e){return void 0===e&&(e=st.systemDefault()),_(t,"date"),_(e,"zone"),le.ofEpochMilli(t.valueOf()).atZone(e)}var ye,Me,Re={assert:O,DateTimeBuilder:pt,DateTimeParseContext:Ot,DateTimePrintContext:St,MathUtil:m,StringUtil:rt,StringBuilder:Zt},ge={_:Re,convert:ve,nativeJs:we,ArithmeticException:s,DateTimeException:n,DateTimeParseException:i,IllegalArgumentException:o,IllegalStateException:a,UnsupportedTemporalTypeException:r,NullPointerException:u,Clock:_e,DayOfWeek:L,Duration:T,Instant:le,LocalDate:ae,LocalTime:fe,LocalDateTime:he,OffsetTime:ct,OffsetDateTime:lt,Month:U,MonthDay:jt,ParsePosition:H,Period:b,Year:Qt,YearConstants:v,YearMonth:Xt,ZonedDateTime:dt,ZoneOffset:ft,ZoneId:st,ZoneRegion:Lt,ZoneOffsetTransition:Ee,ZoneRules:ot,ZoneRulesProvider:Yt,ChronoLocalDate:B,ChronoLocalDateTime:ue,ChronoZonedDateTime:_t,IsoChronology:re,ChronoField:R,ChronoUnit:w,IsoFields:q,Temporal:x,TemporalAccessor:I,TemporalAdjuster:$t,TemporalAdjusters:te,TemporalAmount:D,TemporalField:y,TemporalQueries:g,TemporalQuery:F,TemporalUnit:A,ValueRange:M,DateTimeFormatter:zt,DateTimeFormatterBuilder:Wt,DecimalStyle:mt,ResolverStyle:k,SignStyle:Nt,TextStyle:Dt},Ie=(ye=ge,Me=[],function(t){return~Me.indexOf(t)||(t(ye),Me.push(t)),ye});return ge.use=Ie,t.ArithmeticException=s,t.ChronoField=R,t.ChronoLocalDate=B,t.ChronoLocalDateTime=ue,t.ChronoUnit=w,t.ChronoZonedDateTime=_t,t.Clock=_e,t.DateTimeException=n,t.DateTimeFormatter=zt,t.DateTimeFormatterBuilder=Wt,t.DateTimeParseException=i,t.DayOfWeek=L,t.DecimalStyle=mt,t.Duration=T,t.IllegalArgumentException=o,t.IllegalStateException=a,t.Instant=le,t.IsoChronology=re,t.IsoFields=q,t.LocalDate=ae,t.LocalDateTime=he,t.LocalTime=fe,t.Month=U,t.MonthDay=jt,t.NullPointerException=u,t.OffsetDateTime=lt,t.OffsetTime=ct,t.ParsePosition=H,t.Period=b,t.ResolverStyle=k,t.SignStyle=Nt,t.Temporal=x,t.TemporalAccessor=I,t.TemporalAdjuster=$t,t.TemporalAdjusters=te,t.TemporalAmount=D,t.TemporalField=y,t.TemporalQueries=g,t.TemporalQuery=F,t.TemporalUnit=A,t.TextStyle=Dt,t.UnsupportedTemporalTypeException=r,t.ValueRange=M,t.Year=Qt,t.YearConstants=v,t.YearMonth=Xt,t.ZoneId=st,t.ZoneOffset=ft,t.ZoneOffsetTransition=Ee,t.ZoneRegion=Lt,t.ZoneRules=ot,t.ZoneRulesProvider=Yt,t.ZonedDateTime=dt,t._=Re,t.convert=ve,t.nativeJs=we,t.use=Ie,t}({});
5
+ var JSJoda=function(t){"use strict";function e(t,e,n){function i(t){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,e&&e.apply(this,arguments),this.toString=function(){return this.name+": "+this.message}}return void 0===n&&(n=Error),i.prototype=Object.create(n.prototype),i.prototype.name=t,i.prototype.constructor=i,i}var n=e("DateTimeException",(function(t,e){void 0===e&&(e=null);var n=t||this.name;null!==e&&e instanceof Error&&(n+="\n-------\nCaused by: "+e.stack+"\n-------\n");this.message=n})),i=e("DateTimeParseException",(function(t,e,n,i){void 0===e&&(e="");void 0===n&&(n=0);void 0===i&&(i=null);var r=t||this.name;r+=": "+e+", at index: "+n,null!==i&&i instanceof Error&&(r+="\n-------\nCaused by: "+i.stack+"\n-------\n");this.message=r,this.parsedString=function(){return e},this.errorIndex=function(){return n}})),r=e("UnsupportedTemporalTypeException",null,n),s=e("ArithmeticException"),o=e("IllegalArgumentException"),a=e("IllegalStateException"),u=e("NullPointerException");function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_(t,e)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function d(t,e,n){if(!t)throw n?new n(e):new Error(e)}function p(t,e){if(null==t)throw new u(e+" must not be null");return t}function O(t,e,n){if(!(t instanceof e))throw new o(n+" must be an instance of "+(e.name?e.name:e)+(t&&t.constructor&&t.constructor.name?", but is "+t.constructor.name:""));return t}function E(t){throw new TypeError('abstract method "'+t+'" is not implemented')}var S=Object.freeze({__proto__:null,abstractMethodFail:E,assert:d,requireInstance:O,requireNonNull:p}),m=9007199254740991,N=-9007199254740991,D=function(){function t(){}return t.intDiv=function(e,n){var i=e/n;return i=t.roundDown(i),t.safeZero(i)},t.intMod=function(e,n){var i=e-t.intDiv(e,n)*n;return i=t.roundDown(i),t.safeZero(i)},t.roundDown=function(t){return t<0?Math.ceil(t):Math.floor(t)},t.floorDiv=function(e,n){var i=Math.floor(e/n);return t.safeZero(i)},t.floorMod=function(e,n){var i=e-t.floorDiv(e,n)*n;return t.safeZero(i)},t.safeAdd=function(e,n){if(t.verifyInt(e),t.verifyInt(n),0===e)return t.safeZero(n);if(0===n)return t.safeZero(e);var i=t.safeToInt(e+n);if(i===e||i===n)throw new s("Invalid addition beyond MAX_SAFE_INTEGER!");return i},t.safeSubtract=function(e,n){return t.verifyInt(e),t.verifyInt(n),0===e&&0===n?0:0===e?t.safeZero(-1*n):0===n?t.safeZero(e):t.safeToInt(e-n)},t.safeMultiply=function(e,n){if(t.verifyInt(e),t.verifyInt(n),1===e)return t.safeZero(n);if(1===n)return t.safeZero(e);if(0===e||0===n)return 0;var i=t.safeToInt(e*n);if(i/n!==e||e===N&&-1===n||n===N&&-1===e)throw new s("Multiplication overflows: "+e+" * "+n);return i},t.parseInt=function(e){var n=parseInt(e);return t.safeToInt(n)},t.safeToInt=function(e){return t.verifyInt(e),t.safeZero(e)},t.verifyInt=function(t){if(null==t)throw new s("Invalid value: '"+t+"', using null or undefined as argument");if(isNaN(t))throw new s("Invalid int value, using NaN as argument");if(!Number.isInteger(Number(t)))throw new s("Invalid value: '"+t+"' is a float");if(t>m||t<N)throw new s("Calculation overflows an int: "+t)},t.safeZero=function(t){return 0===t?0:+t},t.compareNumbers=function(t,e){return t<e?-1:t>e?1:0},t.smi=function(t){return t>>>1&1073741824|3221225471&t},t.hash=function(e){if(e!=e||e===1/0)return 0;for(var n=e;e>4294967295;)n^=e/=4294967295;return t.smi(n)},t.hashCode=function(){for(var e=17,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];for(var s=0,o=i;s<o.length;s++){var a=o[s];e=(e<<5)-e+t.hash(a)}return t.hash(e)},t}();D.MAX_SAFE_INTEGER=m,D.MIN_SAFE_INTEGER=N;var A=function(){function t(t){this._name=t}var e=t.prototype;return e.equals=function(t){return this===t},e.toString=function(){return this._name},e.toJSON=function(){return this.toString()},t}(),T=function(){function t(){}var e=t.prototype;return e.get=function(t){E("get")},e.units=function(){E("units")},e.addTo=function(t){E("addTo")},e.subtractFrom=function(t){E("subtractFrom")},t}();"undefined"!=typeof Symbol&&Symbol.toPrimitive&&(T.prototype[Symbol.toPrimitive]=function(t){if("number"!==t)return this.toString();throw new TypeError("A conversion from TemporalAmount to a number is not allowed. To compare use the methods .equals(), .compareTo(), .isBefore() or one that is more suitable to your use case.")});var v=function(){function t(){}var e=t.prototype;return e.duration=function(){E("duration")},e.isDurationEstimated=function(){E("isDurationEstimated")},e.isDateBased=function(){E("isDateBased")},e.isTimeBased=function(){E("isTimeBased")},e.isSupportedBy=function(t){E("isSupportedBy")},e.addTo=function(t,e){E("addTo")},e.between=function(t,e){E("between")},t}(),y=function(t){function e(e,n){var i;return(i=t.call(this)||this)._seconds=D.safeToInt(e),i._nanos=D.safeToInt(n),i}l(e,t),e.ofDays=function(t){return e._create(D.safeMultiply(t,_e.SECONDS_PER_DAY),0)},e.ofHours=function(t){return e._create(D.safeMultiply(t,_e.SECONDS_PER_HOUR),0)},e.ofMinutes=function(t){return e._create(D.safeMultiply(t,_e.SECONDS_PER_MINUTE),0)},e.ofSeconds=function(t,n){void 0===n&&(n=0);var i=D.safeAdd(t,D.floorDiv(n,_e.NANOS_PER_SECOND)),r=D.floorMod(n,_e.NANOS_PER_SECOND);return e._create(i,r)},e.ofMillis=function(t){var n=D.intDiv(t,1e3),i=D.intMod(t,1e3);return i<0&&(i+=1e3,n--),e._create(n,1e6*i)},e.ofNanos=function(t){var e=D.intDiv(t,_e.NANOS_PER_SECOND),n=D.intMod(t,_e.NANOS_PER_SECOND);return n<0&&(n+=_e.NANOS_PER_SECOND,e--),this._create(e,n)},e.of=function(t,n){return e.ZERO.plus(t,n)},e.from=function(t){p(t,"amount"),O(t,T);var n=e.ZERO;return t.units().forEach((function(e){n=n.plus(t.get(e),e)})),n},e.between=function(t,e){p(t,"startInclusive"),p(e,"endExclusive");var n=t.until(e,R.SECONDS),i=0;if(t.isSupported(F.NANO_OF_SECOND)&&e.isSupported(F.NANO_OF_SECOND))try{var r=t.getLong(F.NANO_OF_SECOND);if(i=e.getLong(F.NANO_OF_SECOND)-r,n>0&&i<0)i+=_e.NANOS_PER_SECOND;else if(n<0&&i>0)i-=_e.NANOS_PER_SECOND;else if(0===n&&0!==i){var s=e.with(F.NANO_OF_SECOND,r);n=t.until(s,R.SECONDS)}}catch(t){}return this.ofSeconds(n,i)},e.parse=function(t){p(t,"text");var n=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(t);if(null!==n&&"T"===n[3]==!1){var r="-"===n[1],s=n[2],o=n[4],a=n[5],u=n[6],h=n[7];if(null!=s||null!=o||null!=a||null!=u){var f=e._parseNumber(t,s,_e.SECONDS_PER_DAY,"days"),c=e._parseNumber(t,o,_e.SECONDS_PER_HOUR,"hours"),l=e._parseNumber(t,a,_e.SECONDS_PER_MINUTE,"minutes"),_=e._parseNumber(t,u,1,"seconds"),d=null!=u&&"-"===u.charAt(0),O=e._parseFraction(t,h,d?-1:1);try{return e._create(r,f,c,l,_,O)}catch(e){throw new i("Text cannot be parsed to a Duration: overflow",t,0,e)}}}throw new i("Text cannot be parsed to a Duration",t,0)},e._parseNumber=function(t,e,n,r){if(null==e)return 0;try{return"+"===e[0]&&(e=e.substring(1)),D.safeMultiply(parseFloat(e),n)}catch(e){throw new i("Text cannot be parsed to a Duration: "+r,t,0,e)}},e._parseFraction=function(t,e,n){return null==e||0===e.length?0:(e=(e+"000000000").substring(0,9),parseFloat(e)*n)},e._create=function(){return arguments.length<=2?e._createSecondsNanos(arguments[0],arguments[1]):e._createNegateDaysHoursMinutesSecondsNanos(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},e._createNegateDaysHoursMinutesSecondsNanos=function(t,n,i,r,s,o){var a=D.safeAdd(n,D.safeAdd(i,D.safeAdd(r,s)));return t?e.ofSeconds(a,o).negated():e.ofSeconds(a,o)},e._createSecondsNanos=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=0),0===t&&0===n?e.ZERO:new e(t,n)};var n=e.prototype;return n.get=function(t){if(t===R.SECONDS)return this._seconds;if(t===R.NANOS)return this._nanos;throw new r("Unsupported unit: "+t)},n.units=function(){return[R.SECONDS,R.NANOS]},n.isZero=function(){return 0===this._seconds&&0===this._nanos},n.isNegative=function(){return this._seconds<0},n.seconds=function(){return this._seconds},n.nano=function(){return this._nanos},n.withSeconds=function(t){return e._create(t,this._nanos)},n.withNanos=function(t){return F.NANO_OF_SECOND.checkValidIntValue(t),e._create(this._seconds,t)},n.plusDuration=function(t){return p(t,"duration"),this.plus(t.seconds(),t.nano())},n.plus=function(t,e){return 1===arguments.length?this.plusDuration(t):2===arguments.length&&e instanceof v?this.plusAmountUnit(t,e):this.plusSecondsNanos(t,e)},n.plusAmountUnit=function(t,e){if(p(t,"amountToAdd"),p(e,"unit"),e===R.DAYS)return this.plusSecondsNanos(D.safeMultiply(t,_e.SECONDS_PER_DAY),0);if(e.isDurationEstimated())throw new r("Unit must not have an estimated duration");if(0===t)return this;if(e instanceof R){switch(e){case R.NANOS:return this.plusNanos(t);case R.MICROS:return this.plusSecondsNanos(1e3*D.intDiv(t,1e9),1e3*D.intMod(t,1e9));case R.MILLIS:return this.plusMillis(t);case R.SECONDS:return this.plusSeconds(t)}return this.plusSecondsNanos(D.safeMultiply(e.duration().seconds(),t),0)}var n=e.duration().multipliedBy(t);return this.plusSecondsNanos(n.seconds(),n.nano())},n.plusDays=function(t){return this.plusSecondsNanos(D.safeMultiply(t,_e.SECONDS_PER_DAY),0)},n.plusHours=function(t){return this.plusSecondsNanos(D.safeMultiply(t,_e.SECONDS_PER_HOUR),0)},n.plusMinutes=function(t){return this.plusSecondsNanos(D.safeMultiply(t,_e.SECONDS_PER_MINUTE),0)},n.plusSeconds=function(t){return this.plusSecondsNanos(t,0)},n.plusMillis=function(t){return this.plusSecondsNanos(D.intDiv(t,1e3),1e6*D.intMod(t,1e3))},n.plusNanos=function(t){return this.plusSecondsNanos(0,t)},n.plusSecondsNanos=function(t,n){if(p(t,"secondsToAdd"),p(n,"nanosToAdd"),0===t&&0===n)return this;var i=D.safeAdd(this._seconds,t);i=D.safeAdd(i,D.intDiv(n,_e.NANOS_PER_SECOND)),n=D.intMod(n,_e.NANOS_PER_SECOND);var r=D.safeAdd(this._nanos,n);return e.ofSeconds(i,r)},n.minus=function(t,e){return 1===arguments.length?this.minusDuration(t):this.minusAmountUnit(t,e)},n.minusDuration=function(t){p(t,"duration");var e=t.seconds(),n=t.nano();return e===N?this.plus(m,-n):this.plus(-e,-n)},n.minusAmountUnit=function(t,e){return p(t,"amountToSubtract"),p(e,"unit"),t===N?this.plusAmountUnit(m,e):this.plusAmountUnit(-t,e)},n.minusDays=function(t){return t===N?this.plusDays(m):this.plusDays(-t)},n.minusHours=function(t){return t===N?this.plusHours(m):this.plusHours(-t)},n.minusMinutes=function(t){return t===N?this.plusMinutes(m):this.plusMinutes(-t)},n.minusSeconds=function(t){return t===N?this.plusSeconds(m):this.plusSeconds(-t)},n.minusMillis=function(t){return t===N?this.plusMillis(m):this.plusMillis(-t)},n.minusNanos=function(t){return t===N?this.plusNanos(m):this.plusNanos(-t)},n.multipliedBy=function(t){if(0===t)return e.ZERO;if(1===t)return this;var n=D.safeMultiply(this._seconds,t),i=D.safeMultiply(this._nanos,t);return n+=D.intDiv(i,_e.NANOS_PER_SECOND),i=D.intMod(i,_e.NANOS_PER_SECOND),e.ofSeconds(n,i)},n.dividedBy=function(t){if(0===t)throw new s("Cannot divide by zero");if(1===t)return this;var n=this._seconds,i=this._nanos;if(n<0&&i>0&&(n+=1,i-=_e.NANOS_PER_SECOND),!Number.isInteger(t)||Math.abs(t)>m){var r=D.intDiv(n,t),o=D.intMod(n,t),a=D.intDiv(o*_e.NANOS_PER_SECOND+i,t);return e.ofSeconds(r,a)}var u,h=n%t,f=D.safeZero((n-h)/t),c=(n<0||i<0?-1:1)*(t<0?-1:1),l=Math.abs(h),_=Math.abs(i),d=Math.abs(t),p=m-d-_;return u=p>=0&&l<=D.intDiv(p,_e.NANOS_PER_SECOND)?w(l*_e.NANOS_PER_SECOND+_,d):function(t,e,n){for(var i=D.intDiv(m,11),r=t,s=0,o=1e8;o>=1;o/=10){var a=D.intDiv(e,o)%10,u=void 0;if(n<=i){var h=10*r+a;r=h-(u=w(h,n))*n}else{var f=0;u=0;for(var c=0;c<10;c++)f>=n-r?(f-=n-r,u++):f+=r;f>=n-a?(f-=n-a,u++):f+=a,r=f}s=10*s+u}return s}(l,_,d),e.ofSeconds(f,D.safeZero(c*u))},n.negated=function(){return this.multipliedBy(-1)},n.abs=function(){return this.isNegative()?this.negated():this},n.addTo=function(t){return p(t,"temporal"),0!==this._seconds&&(t=t.plus(this._seconds,R.SECONDS)),0!==this._nanos&&(t=t.plus(this._nanos,R.NANOS)),t},n.subtractFrom=function(t){return p(t,"temporal"),0!==this._seconds&&(t=t.minus(this._seconds,R.SECONDS)),0!==this._nanos&&(t=t.minus(this._nanos,R.NANOS)),t},n.toDays=function(){return D.intDiv(this._seconds,_e.SECONDS_PER_DAY)},n.toHours=function(){return D.intDiv(this._seconds,_e.SECONDS_PER_HOUR)},n.toMinutes=function(){return D.intDiv(this._seconds,_e.SECONDS_PER_MINUTE)},n.toMillis=function(){var t=Math.round(D.safeMultiply(this._seconds,1e3));return t=D.safeAdd(t,D.intDiv(this._nanos,1e6))},n.toNanos=function(){var t=D.safeMultiply(this._seconds,_e.NANOS_PER_SECOND);return t=D.safeAdd(t,this._nanos)},n.toDaysPart=function(){return D.intDiv(this._seconds,_e.SECONDS_PER_DAY)},n.toHoursPart=function(){return D.intMod(this.toHours(),_e.HOURS_PER_DAY)},n.toMinutesPart=function(){return D.intMod(this.toMinutes(),_e.MINUTES_PER_HOUR)},n.toSecondsPart=function(){return D.intMod(this._seconds,_e.SECONDS_PER_MINUTE)},n.toMillisPart=function(){return D.intDiv(this._nanos,1e6)},n.toNanosPart=function(){return this._nanos},n.compareTo=function(t){p(t,"otherDuration"),O(t,e,"otherDuration");var n=D.compareNumbers(this._seconds,t.seconds());return 0!==n?n:this._nanos-t.nano()},n.equals=function(t){return this===t||t instanceof e&&(this.seconds()===t.seconds()&&this.nano()===t.nano())},n.toString=function(){if(this===e.ZERO)return"PT0S";var t=this._seconds<0&&this._nanos>0,n=t?this._seconds+1:this._seconds,i=t?_e.NANOS_PER_SECOND-this._nanos:this._nanos,r=D.intDiv(n,_e.SECONDS_PER_HOUR),s=D.intDiv(D.intMod(n,_e.SECONDS_PER_HOUR),_e.SECONDS_PER_MINUTE),o=D.intMod(n,_e.SECONDS_PER_MINUTE),a="PT";if(0!==r&&(a+=r+"H"),0!==s&&(a+=s+"M"),0===o&&0===i&&a.length>2)return a;if(a+=0===o&&t?"-0":""+o,i>0){for(var u=""+i;u.length<9;)u="0"+u;for(;"0"===u.charAt(u.length-1);)u=u.slice(0,u.length-1);a+="."+u}return a+="S"},n.toJSON=function(){return this.toString()},e}(T);function w(t,e){return Math.floor(t/e)}var M=function(){};var R=function(t){function e(e,n){var i;return(i=t.call(this)||this)._name=e,i._duration=n,i}l(e,t);var n=e.prototype;return n.duration=function(){return this._duration},n.isDurationEstimated=function(){return this.isDateBased()||this===e.FOREVER},n.isDateBased=function(){return this.compareTo(e.DAYS)>=0&&this!==e.FOREVER},n.isTimeBased=function(){return this.compareTo(e.DAYS)<0},n.isSupportedBy=function(t){if(this===e.FOREVER)return!1;try{return t.plus(1,this),!0}catch(e){try{return t.plus(-1,this),!0}catch(t){return!1}}},n.addTo=function(t,e){return t.plus(e,this)},n.between=function(t,e){return t.until(e,this)},n.toString=function(){return this._name},n.compareTo=function(t){return this.duration().compareTo(t.duration())},e}(v);var g=function(){function t(){}var e=t.prototype;return e.isDateBased=function(){E("isDateBased")},e.isTimeBased=function(){E("isTimeBased")},e.baseUnit=function(){E("baseUnit")},e.rangeUnit=function(){E("rangeUnit")},e.range=function(){E("range")},e.rangeRefinedBy=function(t){E("rangeRefinedBy")},e.getFrom=function(t){E("getFrom")},e.adjustInto=function(t,e){E("adjustInto")},e.isSupportedBy=function(t){E("isSupportedBy")},e.displayName=function(){E("displayName")},e.equals=function(t){E("equals")},e.name=function(){E("name")},t}(),I=function(){function t(t,e,n,i){d(!(t>e),"Smallest minimum value '"+t+"' must be less than largest minimum value '"+e+"'",o),d(!(n>i),"Smallest maximum value '"+n+"' must be less than largest maximum value '"+i+"'",o),d(!(e>i),"Minimum value '"+e+"' must be less than maximum value '"+i+"'",o),this._minSmallest=t,this._minLargest=e,this._maxLargest=i,this._maxSmallest=n}var e=t.prototype;return e.isFixed=function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest},e.minimum=function(){return this._minSmallest},e.largestMinimum=function(){return this._minLargest},e.maximum=function(){return this._maxLargest},e.smallestMaximum=function(){return this._maxSmallest},e.isValidValue=function(t){return this.minimum()<=t&&t<=this.maximum()},e.checkValidValue=function(t,e){return this.isValidValue(t)?t:d(!1,null!=e?"Invalid value for "+e+" (valid values "+this.toString()+"): "+t:"Invalid value (valid values "+this.toString()+"): "+t,n)},e.checkValidIntValue=function(t,e){if(!1===this.isValidIntValue(t))throw new n("Invalid int value for "+e+": "+t);return t},e.isValidIntValue=function(t){return this.isIntValue()&&this.isValidValue(t)},e.isIntValue=function(){return this.minimum()>=D.MIN_SAFE_INTEGER&&this.maximum()<=D.MAX_SAFE_INTEGER},e.equals=function(e){return e===this||e instanceof t&&(this._minSmallest===e._minSmallest&&this._minLargest===e._minLargest&&this._maxSmallest===e._maxSmallest&&this._maxLargest===e._maxLargest)},e.hashCode=function(){return D.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)},e.toString=function(){var t=this.minimum()+(this.minimum()!==this.largestMinimum()?"/"+this.largestMinimum():"");return t+=" - ",t+=this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/"+this.maximum():"")},t.of=function(){return 2===arguments.length?new t(arguments[0],arguments[0],arguments[1],arguments[1]):3===arguments.length?new t(arguments[0],arguments[0],arguments[1],arguments[2]):4===arguments.length?new t(arguments[0],arguments[1],arguments[2],arguments[3]):d(!1,"Invalid number of arguments "+arguments.length,o)},t}(),F=function(t){function e(e,n,i,r){var s;return(s=t.call(this)||this)._name=e,s._baseUnit=n,s._rangeUnit=i,s._range=r,s}l(e,t),e.byName=function(t){for(var n in e)if(e[n]&&e[n]instanceof e&&e[n].name()===t)return e[n]};var n=e.prototype;return n.name=function(){return this._name},n.baseUnit=function(){return this._baseUnit},n.rangeUnit=function(){return this._rangeUnit},n.range=function(){return this._range},n.displayName=function(){return this.toString()},n.checkValidValue=function(t){return this.range().checkValidValue(t,this)},n.checkValidIntValue=function(t){return this.range().checkValidIntValue(t,this)},n.isDateBased=function(){return this===e.DAY_OF_WEEK||this===e.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===e.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===e.DAY_OF_MONTH||this===e.DAY_OF_YEAR||this===e.EPOCH_DAY||this===e.ALIGNED_WEEK_OF_MONTH||this===e.ALIGNED_WEEK_OF_YEAR||this===e.MONTH_OF_YEAR||this===e.PROLEPTIC_MONTH||this===e.YEAR_OF_ERA||this===e.YEAR||this===e.ERA},n.isTimeBased=function(){return this===e.NANO_OF_SECOND||this===e.NANO_OF_DAY||this===e.MICRO_OF_SECOND||this===e.MICRO_OF_DAY||this===e.MILLI_OF_SECOND||this===e.MILLI_OF_DAY||this===e.SECOND_OF_MINUTE||this===e.SECOND_OF_DAY||this===e.MINUTE_OF_HOUR||this===e.MINUTE_OF_DAY||this===e.HOUR_OF_AMPM||this===e.CLOCK_HOUR_OF_AMPM||this===e.HOUR_OF_DAY||this===e.CLOCK_HOUR_OF_DAY||this===e.AMPM_OF_DAY},n.rangeRefinedBy=function(t){return t.range(this)},n.getFrom=function(t){return t.getLong(this)},n.toString=function(){return this.name()},n.equals=function(t){return this===t},n.adjustInto=function(t,e){return t.with(this,e)},n.isSupportedBy=function(t){return t.isSupported(this)},e}(g);var C=function(){function t(){}return t.zoneId=function(){return t.ZONE_ID},t.chronology=function(){return t.CHRONO},t.precision=function(){return t.PRECISION},t.zone=function(){return t.ZONE},t.offset=function(){return t.OFFSET},t.localDate=function(){return t.LOCAL_DATE},t.localTime=function(){return t.LOCAL_TIME},t}(),Y=function(){function t(){}var e=t.prototype;return e.query=function(t){return t===C.zoneId()||t===C.chronology()||t===C.precision()?null:t.queryFrom(this)},e.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},e.getLong=function(t){E("getLong")},e.range=function(t){if(t instanceof F){if(this.isSupported(t))return t.range();throw new r("Unsupported field: "+t)}return t.rangeRefinedBy(this)},e.isSupported=function(t){E("isSupported")},t}(),L=function(t){function e(){return t.apply(this,arguments)||this}return l(e,t),e.prototype.queryFrom=function(t){E("queryFrom")},e}(A);function P(t,e){var n=function(t){function e(){return t.apply(this,arguments)||this}return l(e,t),e}(L);return n.prototype.queryFrom=e,new n(t)}var U,V=function(t){function e(e,n){var i;return(i=t.call(this)||this)._ordinal=e,i._name=n,i}l(e,t);var i=e.prototype;return i.ordinal=function(){return this._ordinal},i.name=function(){return this._name},e.values=function(){return U.slice()},e.valueOf=function(t){for(var n=0;n<U.length&&U[n].name()!==t;n++);return e.of(n+1)},e.of=function(t){if(t<1||t>7)throw new n("Invalid value for DayOfWeek: "+t);return U[t-1]},e.from=function(t){if(d(null!=t,"temporal",u),t instanceof e)return t;try{return e.of(t.get(F.DAY_OF_WEEK))}catch(e){throw e instanceof n?new n("Unable to obtain DayOfWeek from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""),e):e}},i.value=function(){return this._ordinal+1},i.displayName=function(t,e){throw new o("Pattern using (localized) text not implemented yet!")},i.isSupported=function(t){return t instanceof F?t===F.DAY_OF_WEEK:null!=t&&t.isSupportedBy(this)},i.range=function(t){if(t===F.DAY_OF_WEEK)return t.range();if(t instanceof F)throw new r("Unsupported field: "+t);return t.rangeRefinedBy(this)},i.get=function(t){return t===F.DAY_OF_WEEK?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(t===F.DAY_OF_WEEK)return this.value();if(t instanceof F)throw new r("Unsupported field: "+t);return t.getFrom(this)},i.plus=function(t){var e=D.floorMod(t,7);return U[D.floorMod(this._ordinal+(e+7),7)]},i.minus=function(t){return this.plus(-1*D.floorMod(t,7))},i.query=function(t){return t===C.precision()?R.DAYS:t===C.localDate()||t===C.localTime()||t===C.chronology()||t===C.zone()||t===C.zoneId()||t===C.offset()?null:(d(null!=t,"query",u),t.queryFrom(this))},i.adjustInto=function(t){return p(t,"temporal"),t.with(F.DAY_OF_WEEK,this.value())},i.equals=function(t){return this===t},i.toString=function(){return this._name},i.compareTo=function(t){return p(t,"other"),O(t,e,"other"),this._ordinal-t._ordinal},i.toJSON=function(){return this.toString()},e}(Y);var b,H=function(t){function e(e,n){var i;return(i=t.call(this)||this)._value=D.safeToInt(e),i._name=n,i}l(e,t);var i=e.prototype;return i.value=function(){return this._value},i.ordinal=function(){return this._value-1},i.name=function(){return this._name},i.displayName=function(t,e){throw new o("Pattern using (localized) text not implemented yet!")},i.isSupported=function(t){return null!==t&&(t instanceof F?t===F.MONTH_OF_YEAR:null!=t&&t.isSupportedBy(this))},i.get=function(t){return t===F.MONTH_OF_YEAR?this.value():this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(t===F.MONTH_OF_YEAR)return this.value();if(t instanceof F)throw new r("Unsupported field: "+t);return t.getFrom(this)},i.plus=function(t){var n=D.intMod(t,12)+12,i=D.intMod(this.value()+n,12);return i=0===i?12:i,e.of(i)},i.minus=function(t){return this.plus(-1*D.intMod(t,12))},i.length=function(t){switch(this){case e.FEBRUARY:return t?29:28;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},i.minLength=function(){switch(this){case e.FEBRUARY:return 28;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},i.maxLength=function(){switch(this){case e.FEBRUARY:return 29;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},i.firstDayOfYear=function(t){var n=t?1:0;switch(this){case e.JANUARY:return 1;case e.FEBRUARY:return 32;case e.MARCH:return 60+n;case e.APRIL:return 91+n;case e.MAY:return 121+n;case e.JUNE:return 152+n;case e.JULY:return 182+n;case e.AUGUST:return 213+n;case e.SEPTEMBER:return 244+n;case e.OCTOBER:return 274+n;case e.NOVEMBER:return 305+n;case e.DECEMBER:default:return 335+n}},i.firstMonthOfQuarter=function(){switch(this){case e.JANUARY:case e.FEBRUARY:case e.MARCH:return e.JANUARY;case e.APRIL:case e.MAY:case e.JUNE:return e.APRIL;case e.JULY:case e.AUGUST:case e.SEPTEMBER:return e.JULY;case e.OCTOBER:case e.NOVEMBER:case e.DECEMBER:default:return e.OCTOBER}},i.query=function(e){return d(null!=e,"query() parameter must not be null",n),e===C.chronology()?ue.INSTANCE:e===C.precision()?R.MONTHS:t.prototype.query.call(this,e)},i.toString=function(){switch(this){case e.JANUARY:return"JANUARY";case e.FEBRUARY:return"FEBRUARY";case e.MARCH:return"MARCH";case e.APRIL:return"APRIL";case e.MAY:return"MAY";case e.JUNE:return"JUNE";case e.JULY:return"JULY";case e.AUGUST:return"AUGUST";case e.SEPTEMBER:return"SEPTEMBER";case e.OCTOBER:return"OCTOBER";case e.NOVEMBER:return"NOVEMBER";case e.DECEMBER:return"DECEMBER";default:return"unknown Month, value: "+this.value()}},i.toJSON=function(){return this.toString()},i.adjustInto=function(t){return t.with(F.MONTH_OF_YEAR,this.value())},i.compareTo=function(t){return p(t,"other"),O(t,e,"other"),this._value-t._value},i.equals=function(t){return this===t},e.valueOf=function(t){for(var n=0;n<b.length&&b[n].name()!==t;n++);return e.of(n+1)},e.values=function(){return b.slice()},e.of=function(t){return(t<1||t>12)&&d(!1,"Invalid value for MonthOfYear: "+t,n),b[t-1]},e.from=function(t){if(t instanceof e)return t;try{return e.of(t.get(F.MONTH_OF_YEAR))}catch(e){throw new n("Unable to obtain Month from TemporalAccessor: "+t+" of type "+(t&&null!=t.constructor?t.constructor.name:""),e)}},e}(Y);var W=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,k=function(t){function e(n,i,r){var s;s=t.call(this)||this;var o=D.safeToInt(n),a=D.safeToInt(i),u=D.safeToInt(r);return 0===o&&0===a&&0===u?(e.ZERO||(s._years=o,s._months=a,s._days=u,e.ZERO=s),e.ZERO||f(s)):(s._years=o,s._months=a,s._days=u,s)}l(e,t),e.ofYears=function(t){return e.create(t,0,0)},e.ofMonths=function(t){return e.create(0,t,0)},e.ofWeeks=function(t){return e.create(0,0,D.safeMultiply(t,7))},e.ofDays=function(t){return e.create(0,0,t)},e.of=function(t,n,i){return e.create(t,n,i)},e.from=function(t){if(t instanceof e)return t;p(t,"amount");for(var i=0,r=0,s=0,o=t.units(),a=0;a<o.length;a++){var u=o[a],h=t.get(u);if(u===R.YEARS)i=D.safeToInt(h);else if(u===R.MONTHS)r=D.safeToInt(h);else{if(u!==R.DAYS)throw new n("Unit must be Years, Months or Days, but was "+u);s=D.safeToInt(h)}}return e.create(i,r,s)},e.between=function(t,e){return p(t,"startDate"),p(e,"endDate"),O(t,ce,"startDate"),O(e,ce,"endDate"),t.until(e)},e.parse=function(t){p(t,"text");try{return e._parse(t)}catch(e){throw e instanceof s?new i("Text cannot be parsed to a Period",t,0,e):e}},e._parse=function(t){var n=W.exec(t);if(null!=n){var r="-"===n[1]?-1:1,s=n[2],o=n[3],a=n[4],u=n[5];if(null!=s||null!=o||null!=a||null!=u){var h=e._parseNumber(t,s,r),f=e._parseNumber(t,o,r),c=e._parseNumber(t,a,r),l=e._parseNumber(t,u,r);return l=D.safeAdd(l,D.safeMultiply(c,7)),e.create(h,f,l)}}throw new i("Text cannot be parsed to a Period",t,0)},e._parseNumber=function(t,e,n){if(null==e)return 0;var i=D.parseInt(e);return D.safeMultiply(i,n)},e.create=function(t,n,i){return new e(t,n,i)};var o=e.prototype;return o.units=function(){return[R.YEARS,R.MONTHS,R.DAYS]},o.chronology=function(){return ue.INSTANCE},o.get=function(t){if(t===R.YEARS)return this._years;if(t===R.MONTHS)return this._months;if(t===R.DAYS)return this._days;throw new r("Unsupported unit: "+t)},o.isZero=function(){return this===e.ZERO},o.isNegative=function(){return this._years<0||this._months<0||this._days<0},o.years=function(){return this._years},o.months=function(){return this._months},o.days=function(){return this._days},o.withYears=function(t){return t===this._years?this:e.create(t,this._months,this._days)},o.withMonths=function(t){return t===this._months?this:e.create(this._years,t,this._days)},o.withDays=function(t){return t===this._days?this:e.create(this._years,this._months,t)},o.plus=function(t){var n=e.from(t);return e.create(D.safeAdd(this._years,n._years),D.safeAdd(this._months,n._months),D.safeAdd(this._days,n._days))},o.plusYears=function(t){return 0===t?this:e.create(D.safeToInt(D.safeAdd(this._years,t)),this._months,this._days)},o.plusMonths=function(t){return 0===t?this:e.create(this._years,D.safeToInt(D.safeAdd(this._months,t)),this._days)},o.plusDays=function(t){return 0===t?this:e.create(this._years,this._months,D.safeToInt(D.safeAdd(this._days,t)))},o.minus=function(t){var n=e.from(t);return e.create(D.safeSubtract(this._years,n._years),D.safeSubtract(this._months,n._months),D.safeSubtract(this._days,n._days))},o.minusYears=function(t){return this.plusYears(-1*t)},o.minusMonths=function(t){return this.plusMonths(-1*t)},o.minusDays=function(t){return this.plusDays(-1*t)},o.multipliedBy=function(t){return this===e.ZERO||1===t?this:e.create(D.safeMultiply(this._years,t),D.safeMultiply(this._months,t),D.safeMultiply(this._days,t))},o.negated=function(){return this.multipliedBy(-1)},o.normalized=function(){var t=this.toTotalMonths(),n=D.intDiv(t,12),i=D.intMod(t,12);return n===this._years&&i===this._months?this:e.create(D.safeToInt(n),i,this._days)},o.toTotalMonths=function(){return 12*this._years+this._months},o.addTo=function(t){return p(t,"temporal"),0!==this._years?t=0!==this._months?t.plus(this.toTotalMonths(),R.MONTHS):t.plus(this._years,R.YEARS):0!==this._months&&(t=t.plus(this._months,R.MONTHS)),0!==this._days&&(t=t.plus(this._days,R.DAYS)),t},o.subtractFrom=function(t){return p(t,"temporal"),0!==this._years?t=0!==this._months?t.minus(this.toTotalMonths(),R.MONTHS):t.minus(this._years,R.YEARS):0!==this._months&&(t=t.minus(this._months,R.MONTHS)),0!==this._days&&(t=t.minus(this._days,R.DAYS)),t},o.equals=function(t){if(this===t)return!0;if(t instanceof e){var n=t;return this._years===n._years&&this._months===n._months&&this._days===n._days}return!1},o.hashCode=function(){return D.hashCode(this._years,this._months,this._days)},o.toString=function(){if(this===e.ZERO)return"P0D";var t="P";return 0!==this._years&&(t+=this._years+"Y"),0!==this._months&&(t+=this._months+"M"),0!==this._days&&(t+=this._days+"D"),t},o.toJSON=function(){return this.toString()},e}(T);var x=function(){function t(t){this._index=t,this._errorIndex=-1}var e=t.prototype;return e.getIndex=function(){return this._index},e.setIndex=function(t){this._index=t},e.getErrorIndex=function(){return this._errorIndex},e.setErrorIndex=function(t){this._errorIndex=t},t}(),B=function(){function t(){this._map={}}var e=t.prototype;return e._bucket=function(t){var e=t.name();return Object.prototype.hasOwnProperty.call(this._map,e)?this._map[e]:void 0},e._entry=function(t){var e=this._bucket(t);if(null!=e)for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n]},e.putAll=function(t){for(var e=t.keys(),n=0;n<e.length;n++)this.set(e[n],t.get(e[n]));return this},e.containsKey=function(t){var e=this._entry(t);return null!=e&&void 0!==e.value},e.get=function(t){var e=this._entry(t);return null!=e?e.value:void 0},e.put=function(t,e){return this.set(t,e)},e.set=function(t,e){var n=this._entry(t);if(null!=n)n.value=e;else{var i=t.name();!1===this._map.hasOwnProperty(i)&&(this._map[i]=[]),this._map[i].push({key:t,value:e})}return this},e.retainAll=function(e){for(var n=new t,i=0;i<e.length;i++)this.containsKey(e[i])&&n.set(e[i],this.get(e[i]));return this._map=n._map,this},e.remove=function(t){var e=this._bucket(t);if(null!=e)for(var n=0;n<e.length;n++)if(e[n].key===t){var i=e[n].value;return e.splice(n,1),0===e.length&&delete this._map[t.name()],i}},e.keys=function(){var t=[];for(var e in this._map)if(this._map.hasOwnProperty(e))for(var n=this._map[e],i=0;i<n.length;i++)void 0!==n[i].value&&t.push(n[i].key);return t},e.clear=function(){this._map={}},e.toString=function(){var t=this;return"{"+this.keys().map((function(e){return e+"="+t.get(e)})).join(", ")+"}"},t}(),q=function(t){function e(){return t.apply(this,arguments)||this}return l(e,t),e}(A);q.STRICT=new q("STRICT"),q.SMART=new q("SMART"),q.LENIENT=new q("LENIENT");var Z=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.isSupported=function(t){E("isSupported")},n.minus=function(t,e){return arguments.length<2?this._minusAmount(t):this._minusUnit(t,e)},n._minusAmount=function(t){return p(t,"amount"),O(t,T,"amount"),t.subtractFrom(this)},n._minusUnit=function(t,e){return p(t,"amountToSubtract"),p(e,"unit"),O(e,v,"unit"),this._plusUnit(-t,e)},n.plus=function(t,e){return arguments.length<2?this._plusAmount(t):this._plusUnit(t,e)},n._plusAmount=function(t){return p(t,"amount"),O(t,T,"amount"),t.addTo(this)},n._plusUnit=function(t,e){E("_plusUnit")},n.until=function(t,e){E("until")},n.with=function(t,e){return arguments.length<2?this._withAdjuster(t):this._withField(t,e)},n._withAdjuster=function(t){return p(t,"adjuster"),d("function"==typeof t.adjustInto,"adjuster must be a TemporalAdjuster",o),t.adjustInto(this)},n._withField=function(t,e){E("_withField")},e}(Y);"undefined"!=typeof Symbol&&Symbol.toPrimitive&&(Z.prototype[Symbol.toPrimitive]=function(t){if("number"!==t)return this.toString();throw new TypeError("A conversion from Temporal to a number is not allowed. To compare use the methods .equals(), .compareTo(), .isBefore() or one that is more suitable to your use case.")});var z=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.isSupported=function(t){return t instanceof F||t instanceof R?t.isDateBased():null!=t&&t.isSupportedBy(this)},n.query=function(e){return e===C.chronology()?this.chronology():e===C.precision()?R.DAYS:e===C.localDate()?ce.ofEpochDay(this.toEpochDay()):e===C.localTime()||e===C.zone()||e===C.zoneId()||e===C.offset()?null:t.prototype.query.call(this,e)},n.adjustInto=function(t){return t.with(F.EPOCH_DAY,this.toEpochDay())},n.format=function(t){return p(t,"formatter"),O(t,Xt,"formatter"),t.format(this)},e}(Z),K=function(){function t(){}return t.startsWith=function(t,e){return 0===t.indexOf(e)},t.hashCode=function(t){var e=t.length;if(0===e)return 0;for(var n=0,i=0;i<e;i++){n=(n<<5)-n+t.charCodeAt(i),n|=0}return D.smi(n)},t}(),j=function(){function t(){}t.systemDefault=function(){throw new n("not supported operation")},t.getAvailableZoneIds=function(){throw new n("not supported operation")},t.of=function(t){throw new n("not supported operation"+t)},t.ofOffset=function(t,e){throw new n("not supported operation"+t+e)},t.from=function(t){throw new n("not supported operation"+t)};var e=t.prototype;return e.id=function(){E("ZoneId.id")},e.rules=function(){E("ZoneId.rules")},e.normalized=function(){var t=this.rules();return t.isFixedOffset()?t.offset(pe.EPOCH):this},e.equals=function(e){return this===e||e instanceof t&&this.id()===e.id()},e.hashCode=function(){return K.hashCode(this.id())},e.toString=function(){return this.id()},e.toJSON=function(){return this.toString()},t}(),G=function(){function t(){}t.of=function(t){return p(t,"offset"),new X(t)};var e=t.prototype;return e.isFixedOffset=function(){E("ZoneRules.isFixedOffset")},e.offset=function(t){return t instanceof pe?this.offsetOfInstant(t):this.offsetOfLocalDateTime(t)},e.offsetOfInstant=function(t){E("ZoneRules.offsetInstant")},e.offsetOfEpochMilli=function(t){E("ZoneRules.offsetOfEpochMilli")},e.offsetOfLocalDateTime=function(t){E("ZoneRules.offsetLocalDateTime")},e.validOffsets=function(t){E("ZoneRules.validOffsets")},e.transition=function(t){E("ZoneRules.transition")},e.standardOffset=function(t){E("ZoneRules.standardOffset")},e.daylightSavings=function(t){E("ZoneRules.daylightSavings")},e.isDaylightSavings=function(t){E("ZoneRules.isDaylightSavings")},e.isValidOffset=function(t,e){E("ZoneRules.isValidOffset")},e.nextTransition=function(t){E("ZoneRules.nextTransition")},e.previousTransition=function(t){E("ZoneRules.previousTransition")},e.transitions=function(){E("ZoneRules.transitions")},e.transitionRules=function(){E("ZoneRules.transitionRules")},e.toString=function(){E("ZoneRules.toString")},e.toJSON=function(){return this.toString()},t}(),X=function(t){function e(e){var n;return(n=t.call(this)||this)._offset=e,n}l(e,t);var n=e.prototype;return n.isFixedOffset=function(){return!0},n.offsetOfInstant=function(){return this._offset},n.offsetOfEpochMilli=function(){return this._offset},n.offsetOfLocalDateTime=function(){return this._offset},n.validOffsets=function(){return[this._offset]},n.transition=function(){return null},n.standardOffset=function(){return this._offset},n.daylightSavings=function(){return y.ZERO},n.isDaylightSavings=function(){return!1},n.isValidOffset=function(t,e){return this._offset.equals(e)},n.nextTransition=function(){return null},n.previousTransition=function(){return null},n.transitions=function(){return[]},n.transitionRules=function(){return[]},n.equals=function(t){return this===t||t instanceof e&&this._offset.equals(t._offset)},n.toString=function(){return"FixedRules:"+this._offset.toString()},e}(G),J={},Q={},$=function(t){function e(n){var i;return i=t.call(this)||this,e._validateTotalSeconds(n),i._totalSeconds=D.safeToInt(n),i._rules=G.of(i),i._id=e._buildId(n),i}l(e,t);var i=e.prototype;return i.totalSeconds=function(){return this._totalSeconds},i.id=function(){return this._id},e._buildId=function(t){if(0===t)return"Z";var e=Math.abs(t),n=D.intDiv(e,_e.SECONDS_PER_HOUR),i=D.intMod(D.intDiv(e,_e.SECONDS_PER_MINUTE),_e.MINUTES_PER_HOUR),r=(t<0?"-":"+")+(n<10?"0":"")+n+(i<10?":0":":")+i,s=D.intMod(e,_e.SECONDS_PER_MINUTE);return 0!==s&&(r+=(s<10?":0":":")+s),r},e._validateTotalSeconds=function(t){if(Math.abs(t)>e.MAX_SECONDS)throw new n("Zone offset not in valid range: -18:00 to +18:00")},e._validate=function(t,e,i){if(t<-18||t>18)throw new n("Zone offset hours not in valid range: value "+t+" is not in the range -18 to 18");if(t>0){if(e<0||i<0)throw new n("Zone offset minutes and seconds must be positive because hours is positive")}else if(t<0){if(e>0||i>0)throw new n("Zone offset minutes and seconds must be negative because hours is negative")}else if(e>0&&i<0||e<0&&i>0)throw new n("Zone offset minutes and seconds must have the same sign");if(Math.abs(e)>59)throw new n("Zone offset minutes not in valid range: abs(value) "+Math.abs(e)+" is not in the range 0 to 59");if(Math.abs(i)>59)throw new n("Zone offset seconds not in valid range: abs(value) "+Math.abs(i)+" is not in the range 0 to 59");if(18===Math.abs(t)&&(Math.abs(e)>0||Math.abs(i)>0))throw new n("Zone offset not in valid range: -18:00 to +18:00")},e.of=function(t){p(t,"offsetId");var i,r,s,o=Q[t];if(null!=o)return o;switch(t.length){case 2:t=t[0]+"0"+t[1];case 3:i=e._parseNumber(t,1,!1),r=0,s=0;break;case 5:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,3,!1),s=0;break;case 6:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,4,!0),s=0;break;case 7:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,3,!1),s=e._parseNumber(t,5,!1);break;case 9:i=e._parseNumber(t,1,!1),r=e._parseNumber(t,4,!0),s=e._parseNumber(t,7,!0);break;default:throw new n("Invalid ID for ZoneOffset, invalid format: "+t)}var a=t[0];if("+"!==a&&"-"!==a)throw new n("Invalid ID for ZoneOffset, plus/minus not found when expected: "+t);return"-"===a?e.ofHoursMinutesSeconds(-i,-r,-s):e.ofHoursMinutesSeconds(i,r,s)},e._parseNumber=function(t,e,i){if(i&&":"!==t[e-1])throw new n("Invalid ID for ZoneOffset, colon not found when expected: "+t);var r=t[e],s=t[e+1];if(r<"0"||r>"9"||s<"0"||s>"9")throw new n("Invalid ID for ZoneOffset, non numeric characters found: "+t);return 10*(r.charCodeAt(0)-48)+(s.charCodeAt(0)-48)},e.ofHours=function(t){return e.ofHoursMinutesSeconds(t,0,0)},e.ofHoursMinutes=function(t,n){return e.ofHoursMinutesSeconds(t,n,0)},e.ofHoursMinutesSeconds=function(t,n,i){e._validate(t,n,i);var r=t*_e.SECONDS_PER_HOUR+n*_e.SECONDS_PER_MINUTE+i;return e.ofTotalSeconds(r)},e.ofTotalMinutes=function(t){var n=t*_e.SECONDS_PER_MINUTE;return e.ofTotalSeconds(n)},e.ofTotalSeconds=function(t){if(t%(15*_e.SECONDS_PER_MINUTE)==0){var n=t,i=J[n];return null==i&&(i=new e(t),J[n]=i,Q[i.id()]=i),i}return new e(t)},i.rules=function(){return this._rules},i.get=function(t){return this.getLong(t)},i.getLong=function(t){if(t===F.OFFSET_SECONDS)return this._totalSeconds;if(t instanceof F)throw new n("Unsupported field: "+t);return t.getFrom(this)},i.query=function(t){return p(t,"query"),t===C.offset()||t===C.zone()?this:t===C.localDate()||t===C.localTime()||t===C.precision()||t===C.chronology()||t===C.zoneId()?null:t.queryFrom(this)},i.adjustInto=function(t){return t.with(F.OFFSET_SECONDS,this._totalSeconds)},i.compareTo=function(t){return p(t,"other"),t._totalSeconds-this._totalSeconds},i.equals=function(t){return this===t||t instanceof e&&this._totalSeconds===t._totalSeconds},i.hashCode=function(){return this._totalSeconds},i.toString=function(){return this._id},e}(j);var tt=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.chronology=function(){return this.toLocalDate().chronology()},n.query=function(e){return e===C.chronology()?this.chronology():e===C.precision()?R.NANOS:e===C.localDate()?ce.ofEpochDay(this.toLocalDate().toEpochDay()):e===C.localTime()?this.toLocalTime():e===C.zone()||e===C.zoneId()||e===C.offset()?null:t.prototype.query.call(this,e)},n.adjustInto=function(t){return t.with(F.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(F.NANO_OF_DAY,this.toLocalTime().toNanoOfDay())},n.toInstant=function(t){return O(t,$,"zoneId"),pe.ofEpochSecond(this.toEpochSecond(t),this.toLocalTime().nano())},n.toEpochSecond=function(t){p(t,"offset");var e=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return e-=t.totalSeconds(),D.safeToInt(e)},e}(Z),et=function(t){function e(e,n){var i;return i=t.call(this)||this,p(e,"time"),O(e,_e,"time"),p(n,"offset"),O(n,$,"offset"),i._time=e,i._offset=n,i}l(e,t),e.from=function(t){if(p(t,"temporal"),t instanceof e)return t;if(t instanceof nt)return t.toOffsetTime();try{return new e(_e.from(t),$.from(t))}catch(e){throw new n("Unable to obtain OffsetTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""))}},e.now=function(t){return 0===arguments.length?e._now(Oe.systemDefaultZone()):t instanceof Oe?e._now(t):e._now(Oe.system(t))},e._now=function(t){p(t,"clock");var n=t.instant();return e.ofInstant(n,t.zone().rules().offset(n))},e.of=function(){return arguments.length<=2?e.ofTimeAndOffset.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofNumbers=function(t,n,i,r,s){return new e(_e.of(t,n,i,r),s)},e.ofTimeAndOffset=function(t,n){return new e(t,n)},e.ofInstant=function(t,n){p(t,"instant"),O(t,pe,"instant"),p(n,"zone"),O(n,j,"zone");var i=n.rules().offset(t),r=t.epochSecond()%_e.SECONDS_PER_DAY;return(r=(r+i.totalSeconds())%_e.SECONDS_PER_DAY)<0&&(r+=_e.SECONDS_PER_DAY),new e(_e.ofSecondOfDay(r,t.nano()),i)},e.parse=function(t,n){return void 0===n&&(n=Xt.ISO_OFFSET_TIME),p(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.adjustInto=function(t){return t.with(F.NANO_OF_DAY,this._time.toNanoOfDay()).with(F.OFFSET_SECONDS,this.offset().totalSeconds())},i.atDate=function(t){return nt.of(t,this._time,this._offset)},i.format=function(t){return p(t,"formatter"),t.format(this,e.FROM)},i.get=function(e){return t.prototype.get.call(this,e)},i.getLong=function(t){return t instanceof F?t===F.OFFSET_SECONDS?this._offset.totalSeconds():this._time.getLong(t):t.getFrom(this)},i.hour=function(){return this._time.hour()},i.minute=function(){return this._time.minute()},i.second=function(){return this._time.second()},i.nano=function(){return this._time.nano()},i.offset=function(){return this._offset},i.isAfter=function(t){return p(t,"other"),this._toEpochNano()>t._toEpochNano()},i.isBefore=function(t){return p(t,"other"),this._toEpochNano()<t._toEpochNano()},i.isEqual=function(t){return p(t,"other"),this._toEpochNano()===t._toEpochNano()},i.isSupported=function(t){return t instanceof F?t.isTimeBased()||t===F.OFFSET_SECONDS:t instanceof R?t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.minusHours=function(t){return this._withLocalTimeOffset(this._time.minusHours(t),this._offset)},i.minusMinutes=function(t){return this._withLocalTimeOffset(this._time.minusMinutes(t),this._offset)},i.minusSeconds=function(t){return this._withLocalTimeOffset(this._time.minusSeconds(t),this._offset)},i.minusNanos=function(t){return this._withLocalTimeOffset(this._time.minusNanos(t),this._offset)},i._minusAmount=function(t){return p(t),t.subtractFrom(this)},i._minusUnit=function(t,e){return this.plus(-1*t,e)},i._plusAmount=function(t){return p(t),t.addTo(this)},i._plusUnit=function(t,e){return e instanceof R?this._withLocalTimeOffset(this._time.plus(t,e),this._offset):e.addTo(this,t)},i.plusHours=function(t){return this._withLocalTimeOffset(this._time.plusHours(t),this._offset)},i.plusMinutes=function(t){return this._withLocalTimeOffset(this._time.plusMinutes(t),this._offset)},i.plusSeconds=function(t){return this._withLocalTimeOffset(this._time.plusSeconds(t),this._offset)},i.plusNanos=function(t){return this._withLocalTimeOffset(this._time.plusNanos(t),this._offset)},i.query=function(e){return p(e,"query"),e===C.precision()?R.NANOS:e===C.offset()||e===C.zone()?this.offset():e===C.localTime()?this._time:e===C.chronology()||e===C.localDate()||e===C.zoneId()?null:t.prototype.query.call(this,e)},i.range=function(t){return t instanceof F?t===F.OFFSET_SECONDS?t.range():this._time.range(t):t.rangeRefinedBy(this)},i.toLocalTime=function(){return this._time},i.truncatedTo=function(t){return this._withLocalTimeOffset(this._time.truncatedTo(t),this._offset)},i.until=function(t,n){p(t,"endExclusive"),p(n,"unit");var i=e.from(t);if(n instanceof R){var s=i._toEpochNano()-this._toEpochNano();switch(n){case R.NANOS:return s;case R.MICROS:return D.intDiv(s,1e3);case R.MILLIS:return D.intDiv(s,1e6);case R.SECONDS:return D.intDiv(s,_e.NANOS_PER_SECOND);case R.MINUTES:return D.intDiv(s,_e.NANOS_PER_MINUTE);case R.HOURS:return D.intDiv(s,_e.NANOS_PER_HOUR);case R.HALF_DAYS:return D.intDiv(s,12*_e.NANOS_PER_HOUR)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.withHour=function(t){return this._withLocalTimeOffset(this._time.withHour(t),this._offset)},i.withMinute=function(t){return this._withLocalTimeOffset(this._time.withMinute(t),this._offset)},i.withSecond=function(t){return this._withLocalTimeOffset(this._time.withSecond(t),this._offset)},i.withNano=function(t){return this._withLocalTimeOffset(this._time.withNano(t),this._offset)},i.withOffsetSameInstant=function(t){if(p(t,"offset"),t.equals(this._offset))return this;var n=t.totalSeconds()-this._offset.totalSeconds();return new e(this._time.plusSeconds(n),t)},i.withOffsetSameLocal=function(t){return null!=t&&t.equals(this._offset)?this:new e(this._time,t)},i._toEpochNano=function(){return this._time.toNanoOfDay()-this._offset.totalSeconds()*_e.NANOS_PER_SECOND},i._withAdjuster=function(t){return p(t,"adjuster"),t instanceof _e?this._withLocalTimeOffset(t,this._offset):t instanceof $?this._withLocalTimeOffset(this._time,t):t instanceof e?t:t.adjustInto(this)},i._withField=function(t,e){return p(t,"field"),t instanceof F?t===F.OFFSET_SECONDS?this._withLocalTimeOffset(this._time,$.ofTotalSeconds(t.checkValidIntValue(e))):this._withLocalTimeOffset(this._time.with(t,e),this._offset):t.adjustInto(this,e)},i._withLocalTimeOffset=function(t,n){return this._time===t&&this._offset.equals(n)?this:new e(t,n)},i.compareTo=function(t){if(p(t,"other"),O(t,e,"other"),this._offset.equals(t._offset))return this._time.compareTo(t._time);var n=D.compareNumbers(this._toEpochNano(),t._toEpochNano());return 0===n?this._time.compareTo(t._time):n},i.equals=function(t){return this===t||t instanceof e&&(this._time.equals(t._time)&&this._offset.equals(t._offset))},i.hashCode=function(){return this._time.hashCode()^this._offset.hashCode()},i.toString=function(){return this._time.toString()+this._offset.toString()},i.toJSON=function(){return this.toString()},e}(Z);var nt=function(t){function e(e,n){var i;return i=t.call(this)||this,p(e,"dateTime"),O(e,le,"dateTime"),p(n,"offset"),O(n,$,"offset"),i._dateTime=e,i._offset=n,i}l(e,t),e.from=function(t){if(p(t,"temporal"),t instanceof e)return t;try{var i=$.from(t);try{var r=le.from(t);return e.of(r,i)}catch(n){var s=pe.from(t);return e.ofInstant(s,i)}}catch(e){throw new n("Unable to obtain OffsetDateTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""))}},e.now=function(t){if(0===arguments.length)return e.now(Oe.systemDefaultZone());if(p(t,"clockOrZone"),t instanceof j)return e.now(Oe.system(t));if(t instanceof Oe){var n=t.instant();return e.ofInstant(n,t.zone().rules().offset(n))}throw new o("clockOrZone must be an instance of ZoneId or Clock")},e.of=function(){return arguments.length<=2?e.ofDateTime.apply(this,arguments):3===arguments.length?e.ofDateAndTime.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofDateTime=function(t,n){return new e(t,n)},e.ofDateAndTime=function(t,n,i){return new e(le.of(t,n),i)},e.ofNumbers=function(t,n,i,r,s,o,a,u){return void 0===r&&(r=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=0),new e(le.of(t,n,i,r,s,o,a),u)},e.ofInstant=function(t,n){p(t,"instant"),p(n,"zone");var i=n.rules().offset(t);return new e(le.ofEpochSecond(t.epochSecond(),t.nano(),i),i)},e.parse=function(t,n){return void 0===n&&(n=Xt.ISO_OFFSET_DATE_TIME),p(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.adjustInto=function(t){return t.with(F.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(F.NANO_OF_DAY,this.toLocalTime().toNanoOfDay()).with(F.OFFSET_SECONDS,this.offset().totalSeconds())},i.until=function(t,n){var i=e.from(t);return n instanceof R?(i=i.withOffsetSameInstant(this._offset),this._dateTime.until(i._dateTime,n)):n.between(this,i)},i.atZoneSameInstant=function(t){return rt.ofInstant(this._dateTime,this._offset,t)},i.atZoneSimilarLocal=function(t){return rt.ofLocal(this._dateTime,t,this._offset)},i.query=function(e){return p(e,"query"),e===C.chronology()?ue.INSTANCE:e===C.precision()?R.NANOS:e===C.offset()||e===C.zone()?this.offset():e===C.localDate()?this.toLocalDate():e===C.localTime()?this.toLocalTime():e===C.zoneId()?null:t.prototype.query.call(this,e)},i.get=function(e){if(e instanceof F){switch(e){case F.INSTANT_SECONDS:throw new n("Field too large for an int: "+e);case F.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.get(e)}return t.prototype.get.call(this,e)},i.getLong=function(t){if(t instanceof F){switch(t){case F.INSTANT_SECONDS:return this.toEpochSecond();case F.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.getLong(t)}return t.getFrom(this)},i.offset=function(){return this._offset},i.year=function(){return this._dateTime.year()},i.monthValue=function(){return this._dateTime.monthValue()},i.month=function(){return this._dateTime.month()},i.dayOfMonth=function(){return this._dateTime.dayOfMonth()},i.dayOfYear=function(){return this._dateTime.dayOfYear()},i.dayOfWeek=function(){return this._dateTime.dayOfWeek()},i.hour=function(){return this._dateTime.hour()},i.minute=function(){return this._dateTime.minute()},i.second=function(){return this._dateTime.second()},i.nano=function(){return this._dateTime.nano()},i.toLocalDateTime=function(){return this._dateTime},i.toLocalDate=function(){return this._dateTime.toLocalDate()},i.toLocalTime=function(){return this._dateTime.toLocalTime()},i.toOffsetTime=function(){return et.of(this._dateTime.toLocalTime(),this._offset)},i.toZonedDateTime=function(){return rt.of(this._dateTime,this._offset)},i.toInstant=function(){return this._dateTime.toInstant(this._offset)},i.toEpochSecond=function(){return this._dateTime.toEpochSecond(this._offset)},i.isSupported=function(t){return t instanceof F||t instanceof R?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.range=function(t){return t instanceof F?t===F.INSTANT_SECONDS||t===F.OFFSET_SECONDS?t.range():this._dateTime.range(t):t.rangeRefinedBy(this)},i._withAdjuster=function(t){return p(t),t instanceof ce||t instanceof _e||t instanceof le?this._withDateTimeOffset(this._dateTime.with(t),this._offset):t instanceof pe?e.ofInstant(t,this._offset):t instanceof $?this._withDateTimeOffset(this._dateTime,t):t instanceof e?t:t.adjustInto(this)},i._withField=function(t,n){if(p(t),t instanceof F){var i=t;switch(i){case F.INSTANT_SECONDS:return e.ofInstant(pe.ofEpochSecond(n,this.nano()),this._offset);case F.OFFSET_SECONDS:return this._withDateTimeOffset(this._dateTime,$.ofTotalSeconds(i.checkValidIntValue(n)))}return this._withDateTimeOffset(this._dateTime.with(t,n),this._offset)}return t.adjustInto(this,n)},i._withDateTimeOffset=function(t,n){return this._dateTime===t&&this._offset.equals(n)?this:new e(t,n)},i.withYear=function(t){return this._withDateTimeOffset(this._dateTime.withYear(t),this._offset)},i.withMonth=function(t){return this._withDateTimeOffset(this._dateTime.withMonth(t),this._offset)},i.withDayOfMonth=function(t){return this._withDateTimeOffset(this._dateTime.withDayOfMonth(t),this._offset)},i.withDayOfYear=function(t){return this._withDateTimeOffset(this._dateTime.withDayOfYear(t),this._offset)},i.withHour=function(t){return this._withDateTimeOffset(this._dateTime.withHour(t),this._offset)},i.withMinute=function(t){return this._withDateTimeOffset(this._dateTime.withMinute(t),this._offset)},i.withSecond=function(t){return this._withDateTimeOffset(this._dateTime.withSecond(t),this._offset)},i.withNano=function(t){return this._withDateTimeOffset(this._dateTime.withNano(t),this._offset)},i.withOffsetSameLocal=function(t){return p(t,"offset"),this._withDateTimeOffset(this._dateTime,t)},i.withOffsetSameInstant=function(t){if(p(t,"offset"),t.equals(this._offset))return this;var n=t.totalSeconds()-this._offset.totalSeconds();return new e(this._dateTime.plusSeconds(n),t)},i.truncatedTo=function(t){return this._withDateTimeOffset(this._dateTime.truncatedTo(t),this._offset)},i._plusAmount=function(t){return p(t,"amount"),t.addTo(this)},i._plusUnit=function(t,e){return e instanceof R?this._withDateTimeOffset(this._dateTime.plus(t,e),this._offset):e.addTo(this,t)},i.plusYears=function(t){return this._withDateTimeOffset(this._dateTime.plusYears(t),this._offset)},i.plusMonths=function(t){return this._withDateTimeOffset(this._dateTime.plusMonths(t),this._offset)},i.plusWeeks=function(t){return this._withDateTimeOffset(this._dateTime.plusWeeks(t),this._offset)},i.plusDays=function(t){return this._withDateTimeOffset(this._dateTime.plusDays(t),this._offset)},i.plusHours=function(t){return this._withDateTimeOffset(this._dateTime.plusHours(t),this._offset)},i.plusMinutes=function(t){return this._withDateTimeOffset(this._dateTime.plusMinutes(t),this._offset)},i.plusSeconds=function(t){return this._withDateTimeOffset(this._dateTime.plusSeconds(t),this._offset)},i.plusNanos=function(t){return this._withDateTimeOffset(this._dateTime.plusNanos(t),this._offset)},i._minusAmount=function(t){return p(t),t.subtractFrom(this)},i._minusUnit=function(t,e){return this.plus(-1*t,e)},i.minusYears=function(t){return this._withDateTimeOffset(this._dateTime.minusYears(t),this._offset)},i.minusMonths=function(t){return this._withDateTimeOffset(this._dateTime.minusMonths(t),this._offset)},i.minusWeeks=function(t){return this._withDateTimeOffset(this._dateTime.minusWeeks(t),this._offset)},i.minusDays=function(t){return this._withDateTimeOffset(this._dateTime.minusDays(t),this._offset)},i.minusHours=function(t){return this._withDateTimeOffset(this._dateTime.minusHours(t),this._offset)},i.minusMinutes=function(t){return this._withDateTimeOffset(this._dateTime.minusMinutes(t),this._offset)},i.minusSeconds=function(t){return this._withDateTimeOffset(this._dateTime.minusSeconds(t),this._offset)},i.minusNanos=function(t){return this._withDateTimeOffset(this._dateTime.minusNanos(t),this._offset)},i.compareTo=function(t){if(p(t,"other"),O(t,e,"other"),this.offset().equals(t.offset()))return this.toLocalDateTime().compareTo(t.toLocalDateTime());var n=D.compareNumbers(this.toEpochSecond(),t.toEpochSecond());return 0===n&&0===(n=this.toLocalTime().nano()-t.toLocalTime().nano())&&(n=this.toLocalDateTime().compareTo(t.toLocalDateTime())),n},i.isAfter=function(t){p(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e>n||e===n&&this.toLocalTime().nano()>t.toLocalTime().nano()},i.isBefore=function(t){p(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e<n||e===n&&this.toLocalTime().nano()<t.toLocalTime().nano()},i.isEqual=function(t){return p(t,"other"),this.toEpochSecond()===t.toEpochSecond()&&this.toLocalTime().nano()===t.toLocalTime().nano()},i.equals=function(t){return this===t||t instanceof e&&(this._dateTime.equals(t._dateTime)&&this._offset.equals(t._offset))},i.hashCode=function(){return this._dateTime.hashCode()^this._offset.hashCode()},i.toString=function(){return this._dateTime.toString()+this._offset.toString()},i.toJSON=function(){return this.toString()},i.format=function(t){return p(t,"formatter"),t.format(this)},e}(Z);var it=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.query=function(e){return e===C.zoneId()||e===C.zone()?this.zone():e===C.chronology()?this.toLocalDate().chronology():e===C.precision()?R.NANOS:e===C.offset()?this.offset():e===C.localDate()?ce.ofEpochDay(this.toLocalDate().toEpochDay()):e===C.localTime()?this.toLocalTime():t.prototype.query.call(this,e)},n.format=function(t){return p(t,"formatter"),t.format(this)},n.toInstant=function(){return pe.ofEpochSecond(this.toEpochSecond(),this.toLocalTime().nano())},n.toEpochSecond=function(){var t=86400*this.toLocalDate().toEpochDay()+this.toLocalTime().toSecondOfDay();return t-=this.offset().totalSeconds()},n.compareTo=function(t){p(t,"other");var e=D.compareNumbers(this.toEpochSecond(),t.toEpochSecond());return 0===e&&0===(e=this.toLocalTime().nano()-t.toLocalTime().nano())&&0===(e=this.toLocalDateTime().compareTo(t.toLocalDateTime()))&&(e=function(t,e){if(t<e)return-1;if(t>e)return 1;return 0}(this.zone().id(),t.zone().id())),e},n.isAfter=function(t){p(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e>n||e===n&&this.toLocalTime().nano()>t.toLocalTime().nano()},n.isBefore=function(t){p(t,"other");var e=this.toEpochSecond(),n=t.toEpochSecond();return e<n||e===n&&this.toLocalTime().nano()<t.toLocalTime().nano()},n.isEqual=function(t){return p(t,"other"),this.toEpochSecond()===t.toEpochSecond()&&this.toLocalTime().nano()===t.toLocalTime().nano()},n.equals=function(t){return this===t||t instanceof e&&0===this.compareTo(t)},e}(Z);var rt=function(t){function e(e,n,i){var r;return p(e,"dateTime"),p(n,"offset"),p(i,"zone"),(r=t.call(this)||this)._dateTime=e,r._offset=n,r._zone=i,r}l(e,t),e.now=function(t){var n;return n=t instanceof j?Oe.system(t):null==t?Oe.systemDefaultZone():t,e.ofInstant(n.instant(),n.zone())},e.of=function(){return arguments.length<=2?e.of2.apply(this,arguments):3===arguments.length&&arguments[0]instanceof ce?e.of3.apply(this,arguments):e.of8.apply(this,arguments)},e.of3=function(t,n,i){return e.of2(le.of(t,n),i)},e.of2=function(t,n){return e.ofLocal(t,n,null)},e.of8=function(t,n,i,r,s,o,a,u){var h=le.of(t,n,i,r,s,o,a);return e.ofLocal(h,u,null)},e.ofLocal=function(t,n,i){if(p(t,"localDateTime"),p(n,"zone"),n instanceof $)return new e(t,n,n);var r=null,s=n.rules(),o=s.validOffsets(t);if(1===o.length)r=o[0];else if(0===o.length){var a=s.transition(t);t=t.plusSeconds(a.duration().seconds()),r=a.offsetAfter()}else r=null!=i&&o.some((function(t){return t.equals(i)}))?i:p(o[0],"offset");return new e(t,r,n)},e.ofInstant=function(){return 2===arguments.length?e.ofInstant2.apply(this,arguments):e.ofInstant3.apply(this,arguments)},e.ofInstant2=function(t,n){return p(t,"instant"),p(n,"zone"),e._create(t.epochSecond(),t.nano(),n)},e.ofInstant3=function(t,n,i){return p(t,"localDateTime"),p(n,"offset"),p(i,"zone"),e._create(t.toEpochSecond(n),t.nano(),i)},e._create=function(t,n,i){var r=i.rules(),s=pe.ofEpochSecond(t,n),o=r.offset(s);return new e(le.ofEpochSecond(t,n,o),o,i)},e.ofStrict=function(t,i,r){p(t,"localDateTime"),p(i,"offset"),p(r,"zone");var s=r.rules();if(!1===s.isValidOffset(t,i)){var o=s.transition(t);if(null!=o&&o.isGap())throw new n("LocalDateTime "+t+" does not exist in zone "+r+" due to a gap in the local time-line, typically caused by daylight savings");throw new n('ZoneOffset "'+i+'" is not valid for LocalDateTime "'+t+'" in zone "'+r+'"')}return new e(t,i,r)},e.ofLenient=function(t,n,i){if(p(t,"localDateTime"),p(n,"offset"),p(i,"zone"),i instanceof $&&!1===n.equals(i))throw new o("ZoneId must match ZoneOffset");return new e(t,n,i)},e.from=function(t){if(p(t,"temporal"),t instanceof e)return t;var n=j.from(t);if(t.isSupported(F.INSTANT_SECONDS)){var i=e._from(t,n);if(null!=i)return i}var r=le.from(t);return e.of2(r,n)},e._from=function(t,i){try{return e.__from(t,i)}catch(t){if(!(t instanceof n))throw t}},e.__from=function(t,n){var i=t.getLong(F.INSTANT_SECONDS),r=t.get(F.NANO_OF_SECOND);return e._create(i,r,n)},e.parse=function(t,n){return void 0===n&&(n=Xt.ISO_ZONED_DATE_TIME),p(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i._resolveLocal=function(t){return p(t,"newDateTime"),e.ofLocal(t,this._zone,this._offset)},i._resolveInstant=function(t){return e.ofInstant3(t,this._offset,this._zone)},i._resolveOffset=function(t){return!1===t.equals(this._offset)&&this._zone.rules().isValidOffset(this._dateTime,t)?new e(this._dateTime,t,this._zone):this},i.isSupported=function(t){return t instanceof F||(t instanceof R?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this))},i.range=function(t){return t instanceof F?t===F.INSTANT_SECONDS||t===F.OFFSET_SECONDS?t.range():this._dateTime.range(t):t.rangeRefinedBy(this)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){if(t instanceof F){switch(t){case F.INSTANT_SECONDS:return this.toEpochSecond();case F.OFFSET_SECONDS:return this._offset.totalSeconds()}return this._dateTime.getLong(t)}return p(t,"field"),t.getFrom(this)},i.offset=function(){return this._offset},i.withEarlierOffsetAtOverlap=function(){var t=this._zone.rules().transition(this._dateTime);if(null!=t&&t.isOverlap()){var n=t.offsetBefore();if(!1===n.equals(this._offset))return new e(this._dateTime,n,this._zone)}return this},i.withLaterOffsetAtOverlap=function(){var t=this._zone.rules().transition(this.toLocalDateTime());if(null!=t){var n=t.offsetAfter();if(!1===n.equals(this._offset))return new e(this._dateTime,n,this._zone)}return this},i.zone=function(){return this._zone},i.withZoneSameLocal=function(t){return p(t,"zone"),this._zone.equals(t)?this:e.ofLocal(this._dateTime,t,this._offset)},i.withZoneSameInstant=function(t){return p(t,"zone"),this._zone.equals(t)?this:e._create(this._dateTime.toEpochSecond(this._offset),this._dateTime.nano(),t)},i.withFixedOffsetZone=function(){return this._zone.equals(this._offset)?this:new e(this._dateTime,this._offset,this._offset)},i.year=function(){return this._dateTime.year()},i.monthValue=function(){return this._dateTime.monthValue()},i.month=function(){return this._dateTime.month()},i.dayOfMonth=function(){return this._dateTime.dayOfMonth()},i.dayOfYear=function(){return this._dateTime.dayOfYear()},i.dayOfWeek=function(){return this._dateTime.dayOfWeek()},i.hour=function(){return this._dateTime.hour()},i.minute=function(){return this._dateTime.minute()},i.second=function(){return this._dateTime.second()},i.nano=function(){return this._dateTime.nano()},i._withAdjuster=function(n){if(n instanceof ce)return this._resolveLocal(le.of(n,this._dateTime.toLocalTime()));if(n instanceof _e)return this._resolveLocal(le.of(this._dateTime.toLocalDate(),n));if(n instanceof le)return this._resolveLocal(n);if(n instanceof pe){var i=n;return e._create(i.epochSecond(),i.nano(),this._zone)}return n instanceof $?this._resolveOffset(n):t.prototype._withAdjuster.call(this,n)},i._withField=function(t,n){if(t instanceof F){switch(t){case F.INSTANT_SECONDS:return e._create(n,this.nano(),this._zone);case F.OFFSET_SECONDS:var i=$.ofTotalSeconds(t.checkValidIntValue(n));return this._resolveOffset(i)}return this._resolveLocal(this._dateTime.with(t,n))}return t.adjustInto(this,n)},i.withYear=function(t){return this._resolveLocal(this._dateTime.withYear(t))},i.withMonth=function(t){return this._resolveLocal(this._dateTime.withMonth(t))},i.withDayOfMonth=function(t){return this._resolveLocal(this._dateTime.withDayOfMonth(t))},i.withDayOfYear=function(t){return this._resolveLocal(this._dateTime.withDayOfYear(t))},i.withHour=function(t){return this._resolveLocal(this._dateTime.withHour(t))},i.withMinute=function(t){return this._resolveLocal(this._dateTime.withMinute(t))},i.withSecond=function(t){return this._resolveLocal(this._dateTime.withSecond(t))},i.withNano=function(t){return this._resolveLocal(this._dateTime.withNano(t))},i.truncatedTo=function(t){return this._resolveLocal(this._dateTime.truncatedTo(t))},i._plusUnit=function(t,e){return e instanceof R?e.isDateBased()?this._resolveLocal(this._dateTime.plus(t,e)):this._resolveInstant(this._dateTime.plus(t,e)):(p(e,"unit"),e.addTo(this,t))},i.plusYears=function(t){return this._resolveLocal(this._dateTime.plusYears(t))},i.plusMonths=function(t){return this._resolveLocal(this._dateTime.plusMonths(t))},i.plusWeeks=function(t){return this._resolveLocal(this._dateTime.plusWeeks(t))},i.plusDays=function(t){return this._resolveLocal(this._dateTime.plusDays(t))},i.plusHours=function(t){return this._resolveInstant(this._dateTime.plusHours(t))},i.plusMinutes=function(t){return this._resolveInstant(this._dateTime.plusMinutes(t))},i.plusSeconds=function(t){return this._resolveInstant(this._dateTime.plusSeconds(t))},i.plusNanos=function(t){return this._resolveInstant(this._dateTime.plusNanos(t))},i._minusUnit=function(t,e){return this._plusUnit(-1*t,e)},i.minusYears=function(t){return this.plusYears(-1*t)},i.minusMonths=function(t){return this.plusMonths(-1*t)},i.minusWeeks=function(t){return this.plusWeeks(-1*t)},i.minusDays=function(t){return this.plusDays(-1*t)},i.minusHours=function(t){return this.plusHours(-1*t)},i.minusMinutes=function(t){return this.plusMinutes(-1*t)},i.minusSeconds=function(t){return this.plusSeconds(-1*t)},i.minusNanos=function(t){return this.plusNanos(-1*t)},i.query=function(e){return e===C.localDate()?this.toLocalDate():(p(e,"query"),t.prototype.query.call(this,e))},i.until=function(t,n){var i=e.from(t);if(n instanceof R){if(i=i.withZoneSameInstant(this._zone),n.isDateBased())return this._dateTime.until(i._dateTime,n);var r=this._offset.totalSeconds()-i._offset.totalSeconds(),s=i._dateTime.plusSeconds(r);return this._dateTime.until(s,n)}return n.between(this,i)},i.toLocalDateTime=function(){return this._dateTime},i.toLocalDate=function(){return this._dateTime.toLocalDate()},i.toLocalTime=function(){return this._dateTime.toLocalTime()},i.toOffsetDateTime=function(){return nt.of(this._dateTime,this._offset)},i.equals=function(t){return this===t||t instanceof e&&(this._dateTime.equals(t._dateTime)&&this._offset.equals(t._offset)&&this._zone.equals(t._zone))},i.hashCode=function(){return D.hashCode(this._dateTime.hashCode(),this._offset.hashCode(),this._zone.hashCode())},i.toString=function(){var t=this._dateTime.toString()+this._offset.toString();return this._offset!==this._zone&&(t+="["+this._zone.toString()+"]"),t},i.toJSON=function(){return this.toString()},i.format=function(e){return t.prototype.format.call(this,e)},e}(it);var st=function(t){function e(){var e;return(e=t.call(this)||this).fieldValues=new B,e.chrono=null,e.zone=null,e.date=null,e.time=null,e.leapSecond=!1,e.excessDays=null,e}l(e,t),e.create=function(t,n){var i=new e;return i._addFieldValue(t,n),i};var i=e.prototype;return i.getFieldValue0=function(t){return this.fieldValues.get(t)},i._addFieldValue=function(t,e){p(t,"field");var i=this.getFieldValue0(t);if(null!=i&&i!==e)throw new n("Conflict found: "+t+" "+i+" differs from "+t+" "+e+": "+this);return this._putFieldValue0(t,e)},i._putFieldValue0=function(t,e){return this.fieldValues.put(t,e),this},i.resolve=function(t,e){return null!=e&&this.fieldValues.retainAll(e),this._mergeInstantFields(),this._mergeDate(t),this._mergeTime(t),this._resolveFields(t)&&(this._mergeInstantFields(),this._mergeDate(t),this._mergeTime(t)),this._resolveTimeInferZeroes(t),this._crossCheck(),null!=this.excessDays&&!1===this.excessDays.isZero()&&null!=this.date&&null!=this.time&&(this.date=this.date.plus(this.excessDays),this.excessDays=k.ZERO),this._resolveFractional(),this._resolveInstant(),this},i._resolveFields=function(t){for(var e=0,i=!0;i&&e<100;){i=!1;for(var r=this.fieldValues.keys(),s=0;s<r.length;s++){var o=r[s];if(!(o instanceof F||"function"!=typeof o.resolve)){var a=o.resolve(this.fieldValues,this,t);if(null!=a){if(a instanceof tt)this._resolveMakeChanges(o,a.toLocalDate()),this._resolveMakeChanges(o,a.toLocalTime());else{if(!(a instanceof z||a instanceof _e))throw new n("Unknown type: "+a);this._resolveMakeChanges(o,a)}i=!0}else!1===this.fieldValues.containsKey(o)&&(i=!0);if(i){e++;break}}}}if(100===e)throw new n("Badly written field");return e>0},i._resolveMakeChanges=function(t,e){var i=e instanceof z,r=i?F.EPOCH_DAY:F.NANO_OF_DAY,s=i?e.toEpochDay():e.toNanoOfDay(),o=this.fieldValues.get(r);if(null!=o&&o!==s){var a=i?ce.ofEpochDay(o):_e.ofNanoOfDay(o);throw new n("Conflict found: "+a+" differs from "+e+" while resolving "+t)}this.fieldValues.put(r,s)},i._mergeDate=function(t){this._checkDate(ue.INSTANCE.resolveDate(this.fieldValues,t))},i._checkDate=function(t){if(null!=t){if(null!=this.date&&!1===this.date.equals(t))throw new n("Conflict found: Fields resolved to two different dates: "+this.date+" "+t);this._addObject(t);for(var e,i=c(this.fieldValues.keys());!(e=i()).done;){var r=e.value;if(r instanceof F&&r.isDateBased()){var s=void 0;try{s=t.getLong(r)}catch(t){if(t instanceof n)continue;throw t}var o=this.fieldValues.get(r);if(s!==o)throw new n("Conflict found: Field "+r+" "+s+" differs from "+r+" "+o+" derived from "+t)}}}},i._mergeTime=function(t){if(this.fieldValues.containsKey(F.CLOCK_HOUR_OF_DAY)){var e=this.fieldValues.remove(F.CLOCK_HOUR_OF_DAY);t!==q.LENIENT&&(t===q.SMART&&0===e||F.CLOCK_HOUR_OF_DAY.checkValidValue(e)),this._addFieldValue(F.HOUR_OF_DAY,24===e?0:e)}if(this.fieldValues.containsKey(F.CLOCK_HOUR_OF_AMPM)){var n=this.fieldValues.remove(F.CLOCK_HOUR_OF_AMPM);t!==q.LENIENT&&(t===q.SMART&&0===n||F.CLOCK_HOUR_OF_AMPM.checkValidValue(n)),this._addFieldValue(F.HOUR_OF_AMPM,12===n?0:n)}if(t!==q.LENIENT&&(this.fieldValues.containsKey(F.AMPM_OF_DAY)&&F.AMPM_OF_DAY.checkValidValue(this.fieldValues.get(F.AMPM_OF_DAY)),this.fieldValues.containsKey(F.HOUR_OF_AMPM)&&F.HOUR_OF_AMPM.checkValidValue(this.fieldValues.get(F.HOUR_OF_AMPM))),this.fieldValues.containsKey(F.AMPM_OF_DAY)&&this.fieldValues.containsKey(F.HOUR_OF_AMPM)){var i=this.fieldValues.remove(F.AMPM_OF_DAY),r=this.fieldValues.remove(F.HOUR_OF_AMPM);this._addFieldValue(F.HOUR_OF_DAY,12*i+r)}if(this.fieldValues.containsKey(F.NANO_OF_DAY)){var s=this.fieldValues.remove(F.NANO_OF_DAY);t!==q.LENIENT&&F.NANO_OF_DAY.checkValidValue(s),this._addFieldValue(F.SECOND_OF_DAY,D.intDiv(s,1e9)),this._addFieldValue(F.NANO_OF_SECOND,D.intMod(s,1e9))}if(this.fieldValues.containsKey(F.MICRO_OF_DAY)){var o=this.fieldValues.remove(F.MICRO_OF_DAY);t!==q.LENIENT&&F.MICRO_OF_DAY.checkValidValue(o),this._addFieldValue(F.SECOND_OF_DAY,D.intDiv(o,1e6)),this._addFieldValue(F.MICRO_OF_SECOND,D.intMod(o,1e6))}if(this.fieldValues.containsKey(F.MILLI_OF_DAY)){var a=this.fieldValues.remove(F.MILLI_OF_DAY);t!==q.LENIENT&&F.MILLI_OF_DAY.checkValidValue(a),this._addFieldValue(F.SECOND_OF_DAY,D.intDiv(a,1e3)),this._addFieldValue(F.MILLI_OF_SECOND,D.intMod(a,1e3))}if(this.fieldValues.containsKey(F.SECOND_OF_DAY)){var u=this.fieldValues.remove(F.SECOND_OF_DAY);t!==q.LENIENT&&F.SECOND_OF_DAY.checkValidValue(u),this._addFieldValue(F.HOUR_OF_DAY,D.intDiv(u,3600)),this._addFieldValue(F.MINUTE_OF_HOUR,D.intMod(D.intDiv(u,60),60)),this._addFieldValue(F.SECOND_OF_MINUTE,D.intMod(u,60))}if(this.fieldValues.containsKey(F.MINUTE_OF_DAY)){var h=this.fieldValues.remove(F.MINUTE_OF_DAY);t!==q.LENIENT&&F.MINUTE_OF_DAY.checkValidValue(h),this._addFieldValue(F.HOUR_OF_DAY,D.intDiv(h,60)),this._addFieldValue(F.MINUTE_OF_HOUR,D.intMod(h,60))}if(t!==q.LENIENT&&(this.fieldValues.containsKey(F.MILLI_OF_SECOND)&&F.MILLI_OF_SECOND.checkValidValue(this.fieldValues.get(F.MILLI_OF_SECOND)),this.fieldValues.containsKey(F.MICRO_OF_SECOND)&&F.MICRO_OF_SECOND.checkValidValue(this.fieldValues.get(F.MICRO_OF_SECOND))),this.fieldValues.containsKey(F.MILLI_OF_SECOND)&&this.fieldValues.containsKey(F.MICRO_OF_SECOND)){var f=this.fieldValues.remove(F.MILLI_OF_SECOND),c=this.fieldValues.get(F.MICRO_OF_SECOND);this._putFieldValue0(F.MICRO_OF_SECOND,1e3*f+D.intMod(c,1e3))}if(this.fieldValues.containsKey(F.MICRO_OF_SECOND)&&this.fieldValues.containsKey(F.NANO_OF_SECOND)){var l=this.fieldValues.get(F.NANO_OF_SECOND);this._putFieldValue0(F.MICRO_OF_SECOND,D.intDiv(l,1e3)),this.fieldValues.remove(F.MICRO_OF_SECOND)}if(this.fieldValues.containsKey(F.MILLI_OF_SECOND)&&this.fieldValues.containsKey(F.NANO_OF_SECOND)){var _=this.fieldValues.get(F.NANO_OF_SECOND);this._putFieldValue0(F.MILLI_OF_SECOND,D.intDiv(_,1e6)),this.fieldValues.remove(F.MILLI_OF_SECOND)}if(this.fieldValues.containsKey(F.MICRO_OF_SECOND)){var d=this.fieldValues.remove(F.MICRO_OF_SECOND);this._putFieldValue0(F.NANO_OF_SECOND,1e3*d)}else if(this.fieldValues.containsKey(F.MILLI_OF_SECOND)){var p=this.fieldValues.remove(F.MILLI_OF_SECOND);this._putFieldValue0(F.NANO_OF_SECOND,1e6*p)}},i._resolveTimeInferZeroes=function(t){var e=this.fieldValues.get(F.HOUR_OF_DAY),n=this.fieldValues.get(F.MINUTE_OF_HOUR),i=this.fieldValues.get(F.SECOND_OF_MINUTE),r=this.fieldValues.get(F.NANO_OF_SECOND);if(null!=e&&(null!=n||null==i&&null==r)&&(null==n||null!=i||null==r)){if(t!==q.LENIENT){if(null!=e){t!==q.SMART||24!==e||null!=n&&0!==n||null!=i&&0!==i||null!=r&&0!==r||(e=0,this.excessDays=k.ofDays(1));var s=F.HOUR_OF_DAY.checkValidIntValue(e);if(null!=n){var o=F.MINUTE_OF_HOUR.checkValidIntValue(n);if(null!=i){var a=F.SECOND_OF_MINUTE.checkValidIntValue(i);if(null!=r){var u=F.NANO_OF_SECOND.checkValidIntValue(r);this._addObject(_e.of(s,o,a,u))}else this._addObject(_e.of(s,o,a))}else null==r&&this._addObject(_e.of(s,o))}else null==i&&null==r&&this._addObject(_e.of(s,0))}}else if(null!=e){var h=e;if(null!=n)if(null!=i){null==r&&(r=0);var f=D.safeMultiply(h,36e11);f=D.safeAdd(f,D.safeMultiply(n,6e10)),f=D.safeAdd(f,D.safeMultiply(i,1e9)),f=D.safeAdd(f,r);var c=D.floorDiv(f,864e11),l=D.floorMod(f,864e11);this._addObject(_e.ofNanoOfDay(l)),this.excessDays=k.ofDays(c)}else{var _=D.safeMultiply(h,3600);_=D.safeAdd(_,D.safeMultiply(n,60));var d=D.floorDiv(_,86400),p=D.floorMod(_,86400);this._addObject(_e.ofSecondOfDay(p)),this.excessDays=k.ofDays(d)}else{var O=D.safeToInt(D.floorDiv(h,24));h=D.floorMod(h,24),this._addObject(_e.of(h,0)),this.excessDays=k.ofDays(O)}}this.fieldValues.remove(F.HOUR_OF_DAY),this.fieldValues.remove(F.MINUTE_OF_HOUR),this.fieldValues.remove(F.SECOND_OF_MINUTE),this.fieldValues.remove(F.NANO_OF_SECOND)}},i._addObject=function(t){t instanceof z?this.date=t:t instanceof _e&&(this.time=t)},i._mergeInstantFields=function(){if(this.fieldValues.containsKey(F.INSTANT_SECONDS))if(null!=this.zone)this._mergeInstantFields0(this.zone);else{var t=this.fieldValues.get(F.OFFSET_SECONDS);null!=t&&this._mergeInstantFields0($.ofTotalSeconds(t))}},i._mergeInstantFields0=function(t){var e=pe.ofEpochSecond(this.fieldValues.remove(F.INSTANT_SECONDS)),n=rt.ofInstant(e,t);null==this.date?this._addObject(n.toLocalDate()):this._resolveMakeChanges(F.INSTANT_SECONDS,n.toLocalDate()),this._addFieldValue(F.SECOND_OF_DAY,n.toLocalTime().toSecondOfDay())},i._crossCheck=function(){null!=this.date&&null!=this.time?this._crossCheck0(this.date.atTime(this.time)):null!=this.date?this._crossCheck0(this.date):null!=this.time&&this._crossCheck0(this.time)},i._crossCheck0=function(t){for(var e,i=c(this.fieldValues.keys());!(e=i()).done;){var r=e.value;if(t.isSupported(r)){var s=void 0;try{s=t.getLong(r)}catch(t){if(t instanceof n)continue;throw t}var o=this.fieldValues.get(r);if(s!==o)throw new n("Cross check failed: "+r+" "+s+" vs "+r+" "+o);this.fieldValues.remove(r)}}},i._resolveFractional=function(){if(null==this.time&&(this.fieldValues.containsKey(F.INSTANT_SECONDS)||this.fieldValues.containsKey(F.SECOND_OF_DAY)||this.fieldValues.containsKey(F.SECOND_OF_MINUTE)))if(this.fieldValues.containsKey(F.NANO_OF_SECOND)){var t=this.fieldValues.get(F.NANO_OF_SECOND);this.fieldValues.put(F.MICRO_OF_SECOND,D.intDiv(t,1e3)),this.fieldValues.put(F.MILLI_OF_SECOND,D.intDiv(t,1e6))}else this.fieldValues.put(F.NANO_OF_SECOND,0),this.fieldValues.put(F.MICRO_OF_SECOND,0),this.fieldValues.put(F.MILLI_OF_SECOND,0)},i._resolveInstant=function(){if(null!=this.date&&null!=this.time){var t=this.fieldValues.get(F.OFFSET_SECONDS);if(null!=t){var e=$.ofTotalSeconds(t),n=this.date.atTime(this.time).atZone(e).getLong(F.INSTANT_SECONDS);this.fieldValues.put(F.INSTANT_SECONDS,n)}else if(null!=this.zone){var i=this.date.atTime(this.time).atZone(this.zone).getLong(F.INSTANT_SECONDS);this.fieldValues.put(F.INSTANT_SECONDS,i)}}},i.build=function(t){return t.queryFrom(this)},i.isSupported=function(t){return null!=t&&(this.fieldValues.containsKey(t)&&void 0!==this.fieldValues.get(t)||null!=this.date&&this.date.isSupported(t)||null!=this.time&&this.time.isSupported(t))},i.getLong=function(t){p(t,"field");var e=this.getFieldValue0(t);if(null==e){if(null!=this.date&&this.date.isSupported(t))return this.date.getLong(t);if(null!=this.time&&this.time.isSupported(t))return this.time.getLong(t);throw new n("Field not found: "+t)}return e},i.query=function(t){return t===C.zoneId()?this.zone:t===C.chronology()?this.chrono:t===C.localDate()?null!=this.date?ce.from(this.date):null:t===C.localTime()?this.time:t===C.zone()||t===C.offset()?t.queryFrom(this):t===C.precision()?null:t.queryFrom(this)},e}(Y),ot=function(){function t(){if(1===arguments.length){if(arguments[0]instanceof t)return void this._constructorSelf.apply(this,arguments);this._constructorFormatter.apply(this,arguments)}else this._constructorParam.apply(this,arguments);this._caseSensitive=!0,this._strict=!0,this._parsed=[new at(this)]}var e=t.prototype;return e._constructorParam=function(t,e,n){this._locale=t,this._symbols=e,this._overrideChronology=n},e._constructorFormatter=function(t){this._locale=t.locale(),this._symbols=t.decimalStyle(),this._overrideChronology=t.chronology()},e._constructorSelf=function(t){this._locale=t._locale,this._symbols=t._symbols,this._overrideChronology=t._overrideChronology,this._overrideZone=t._overrideZone,this._caseSensitive=t._caseSensitive,this._strict=t._strict,this._parsed=[new at(this)]},e.copy=function(){return new t(this)},e.symbols=function(){return this._symbols},e.isStrict=function(){return this._strict},e.setStrict=function(t){this._strict=t},e.locale=function(){return this._locale},e.setLocale=function(t){this._locale=t},e.startOptional=function(){this._parsed.push(this.currentParsed().copy())},e.endOptional=function(t){t?this._parsed.splice(this._parsed.length-2,1):this._parsed.splice(this._parsed.length-1,1)},e.isCaseSensitive=function(){return this._caseSensitive},e.setCaseSensitive=function(t){this._caseSensitive=t},e.subSequenceEquals=function(t,e,n,i,r){if(e+r>t.length||i+r>n.length)return!1;this.isCaseSensitive()||(t=t.toLowerCase(),n=n.toLowerCase());for(var s=0;s<r;s++){if(t[e+s]!==n[i+s])return!1}return!0},e.charEquals=function(t,e){return this.isCaseSensitive()?t===e:this.charEqualsIgnoreCase(t,e)},e.charEqualsIgnoreCase=function(t,e){return t===e||t.toLowerCase()===e.toLowerCase()},e.setParsedField=function(t,e,n,i){var r=this.currentParsed().fieldValues,s=r.get(t);return r.set(t,e),null!=s&&s!==e?~n:i},e.setParsedZone=function(t){p(t,"zone"),this.currentParsed().zone=t},e.getParsed=function(t){return this.currentParsed().fieldValues.get(t)},e.toParsed=function(){return this.currentParsed()},e.currentParsed=function(){return this._parsed[this._parsed.length-1]},e.setParsedLeapSecond=function(){this.currentParsed().leapSecond=!0},e.getEffectiveChronology=function(){var t=this.currentParsed().chrono;return null==t&&null==(t=this._overrideChronology)&&(t=ue.INSTANCE),t},t}(),at=function(t){function e(e){var n;return(n=t.call(this)||this).chrono=null,n.zone=null,n.fieldValues=new B,n.leapSecond=!1,n.excessDays=k.ZERO,n.dateTimeParseContext=e,n}l(e,t);var n=e.prototype;return n.copy=function(){var t=new e;return t.chrono=this.chrono,t.zone=this.zone,t.fieldValues.putAll(this.fieldValues),t.leapSecond=this.leapSecond,t.dateTimeParseContext=this.dateTimeParseContext,t},n.toString=function(){return this.fieldValues+", "+this.chrono+", "+this.zone},n.isSupported=function(t){return this.fieldValues.containsKey(t)},n.get=function(t){var e=this.fieldValues.get(t);return d(null!=e),e},n.query=function(e){return e===C.chronology()?this.chrono:e===C.zoneId()||e===C.zone()?this.zone:t.prototype.query.call(this,e)},n.toBuilder=function(){var t=new st;return t.fieldValues.putAll(this.fieldValues),t.chrono=this.dateTimeParseContext.getEffectiveChronology(),null!=this.zone?t.zone=this.zone:t.zone=this.overrideZone,t.leapSecond=this.leapSecond,t.excessDays=this.excessDays,t},e}(Z),ut=function(){function t(e,n,i){2===arguments.length&&arguments[1]instanceof Xt?(this._temporal=t.adjust(e,n),this._locale=n.locale(),this._symbols=n.decimalStyle()):(this._temporal=e,this._locale=n,this._symbols=i),this._optional=0}t.adjust=function(t,e){return t};var e=t.prototype;return e.symbols=function(){return this._symbols},e.startOptional=function(){this._optional++},e.endOptional=function(){this._optional--},e.getValueQuery=function(t){var e=this._temporal.query(t);if(null==e&&0===this._optional)throw new n("Unable to extract value: "+this._temporal);return e},e.getValue=function(t){try{return this._temporal.getLong(t)}catch(t){if(t instanceof n&&this._optional>0)return null;throw t}},e.temporal=function(){return this._temporal},e.locale=function(){return this._locale},e.setDateTime=function(t){this._temporal=t},e.setLocale=function(t){this._locale=t},t}(),ht={},ft=[0,90,181,273,0,91,182,274],ct=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.isDateBased=function(){return!0},n.isTimeBased=function(){return!1},n._isIso=function(){return!0},e._getWeekRangeByLocalDate=function(t){var n=e._getWeekBasedYear(t);return I.of(1,e._getWeekRangeByYear(n))},e._getWeekRangeByYear=function(t){var e=ce.of(t,1,1);return e.dayOfWeek()===V.THURSDAY||e.dayOfWeek()===V.WEDNESDAY&&e.isLeapYear()?53:52},e._getWeek=function(t){var n=t.dayOfWeek().ordinal(),i=t.dayOfYear()-1,r=i+(3-n),s=r-7*D.intDiv(r,7)-3;if(s<-3&&(s+=7),i<s)return e._getWeekRangeByLocalDate(t.withDayOfYear(180).minusYears(1)).maximum();var o=D.intDiv(i-s,7)+1;return 53===o&&!1===(-3===s||-2===s&&t.isLeapYear())&&(o=1),o},e._getWeekBasedYear=function(t){var e=t.year(),n=t.dayOfYear();if(n<=3)n-t.dayOfWeek().ordinal()<-2&&e--;else if(n>=363){var i=t.dayOfWeek().ordinal();(n=n-363-(t.isLeapYear()?1:0))-i>=0&&e++}return e},n.displayName=function(){return this.toString()},n.resolve=function(){return null},n.name=function(){return this.toString()},e}(g),lt=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.toString=function(){return"DayOfQuarter"},n.baseUnit=function(){return R.DAYS},n.rangeUnit=function(){return At},n.range=function(){return I.of(1,90,92)},n.isSupportedBy=function(t){return t.isSupported(F.DAY_OF_YEAR)&&t.isSupported(F.MONTH_OF_YEAR)&&t.isSupported(F.YEAR)&&this._isIso(t)},n.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: DayOfQuarter");var e=t.getLong(St);if(1===e){var n=t.getLong(F.YEAR);return ue.isLeapYear(n)?I.of(1,91):I.of(1,90)}return 2===e?I.of(1,91):3===e||4===e?I.of(1,92):this.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: DayOfQuarter");var e=t.get(F.DAY_OF_YEAR),n=t.get(F.MONTH_OF_YEAR),i=t.getLong(F.YEAR);return e-ft[D.intDiv(n-1,3)+(ue.isLeapYear(i)?4:0)]},n.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(F.DAY_OF_YEAR,t.getLong(F.DAY_OF_YEAR)+(e-n))},n.resolve=function(t,e,n){var i=t.get(F.YEAR),r=t.get(St);if(null==i||null==r)return null;var s,o=F.YEAR.checkValidIntValue(i),a=t.get(Et);if(n===q.LENIENT){var u=r;s=(s=(s=ce.of(o,1,1)).plusMonths(D.safeMultiply(D.safeSubtract(u,1),3))).plusDays(D.safeSubtract(a,1))}else{var h=St.range().checkValidIntValue(r,St);if(n===q.STRICT){var f=92;1===h?f=ue.isLeapYear(o)?91:90:2===h&&(f=91),I.of(1,f).checkValidValue(a,this)}else this.range().checkValidValue(a,this);s=ce.of(o,3*(h-1)+1,1).plusDays(a-1)}return t.remove(this),t.remove(F.YEAR),t.remove(St),s},e}(ct),_t=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.toString=function(){return"QuarterOfYear"},n.baseUnit=function(){return At},n.rangeUnit=function(){return R.YEARS},n.range=function(){return I.of(1,4)},n.isSupportedBy=function(t){return t.isSupported(F.MONTH_OF_YEAR)&&this._isIso(t)},n.rangeRefinedBy=function(t){return this.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: QuarterOfYear");var e=t.getLong(F.MONTH_OF_YEAR);return D.intDiv(e+2,3)},n.adjustInto=function(t,e){var n=this.getFrom(t);return this.range().checkValidValue(e,this),t.with(F.MONTH_OF_YEAR,t.getLong(F.MONTH_OF_YEAR)+3*(e-n))},e}(ct),dt=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.toString=function(){return"WeekOfWeekBasedYear"},n.baseUnit=function(){return R.WEEKS},n.rangeUnit=function(){return Dt},n.range=function(){return I.of(1,52,53)},n.isSupportedBy=function(t){return t.isSupported(F.EPOCH_DAY)&&this._isIso(t)},n.rangeRefinedBy=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: WeekOfWeekBasedYear");return ct._getWeekRangeByLocalDate(ce.from(t))},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: WeekOfWeekBasedYear");return ct._getWeek(ce.from(t))},n.adjustInto=function(t,e){return this.range().checkValidValue(e,this),t.plus(D.safeSubtract(e,this.getFrom(t)),R.WEEKS)},n.resolve=function(t,e,n){var i=t.get(Nt),r=t.get(F.DAY_OF_WEEK);if(null==i||null==r)return null;var s,o=Nt.range().checkValidIntValue(i,Nt),a=t.get(mt);if(n===q.LENIENT){var u=r,h=0;u>7?(h=D.intDiv(u-1,7),u=D.intMod(u-1,7)+1):u<1&&(h=D.intDiv(u,7)-1,u=D.intMod(u,7)+7),s=ce.of(o,1,4).plusWeeks(a-1).plusWeeks(h).with(F.DAY_OF_WEEK,u)}else{var f=F.DAY_OF_WEEK.checkValidIntValue(r);if(n===q.STRICT){var c=ce.of(o,1,4);ct._getWeekRangeByLocalDate(c).checkValidValue(a,this)}else this.range().checkValidValue(a,this);s=ce.of(o,1,4).plusWeeks(a-1).with(F.DAY_OF_WEEK,f)}return t.remove(this),t.remove(Nt),t.remove(F.DAY_OF_WEEK),s},n.displayName=function(){return"Week"},e}(ct),pt=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.toString=function(){return"WeekBasedYear"},n.baseUnit=function(){return Dt},n.rangeUnit=function(){return R.FOREVER},n.range=function(){return F.YEAR.range()},n.isSupportedBy=function(t){return t.isSupported(F.EPOCH_DAY)&&this._isIso(t)},n.rangeRefinedBy=function(t){return F.YEAR.range()},n.getFrom=function(t){if(!1===t.isSupported(this))throw new r("Unsupported field: WeekBasedYear");return ct._getWeekBasedYear(ce.from(t))},n.adjustInto=function(t,e){if(!1===this.isSupportedBy(t))throw new r("Unsupported field: WeekBasedYear");var n=this.range().checkValidIntValue(e,Nt),i=ce.from(t),s=i.get(F.DAY_OF_WEEK),o=ct._getWeek(i);53===o&&52===ct._getWeekRangeByYear(n)&&(o=52);var a=ce.of(n,1,4),u=s-a.get(F.DAY_OF_WEEK)+7*(o-1);return a=a.plusDays(u),t.with(a)},e}(ct),Ot=function(t){function e(e,n){var i;return(i=t.call(this)||this)._name=e,i._duration=n,i}l(e,t);var n=e.prototype;return n.duration=function(){return this._duration},n.isDurationEstimated=function(){return!0},n.isDateBased=function(){return!0},n.isTimeBased=function(){return!1},n.isSupportedBy=function(t){return t.isSupported(F.EPOCH_DAY)},n.addTo=function(t,e){switch(this){case Dt:var n=D.safeAdd(t.get(Nt),e);return t.with(Nt,n);case At:return t.plus(D.intDiv(e,256),R.YEARS).plus(3*D.intMod(e,256),R.MONTHS);default:throw new a("Unreachable")}},n.between=function(t,e){switch(this){case Dt:return D.safeSubtract(e.getLong(Nt),t.getLong(Nt));case At:return D.intDiv(t.until(e,R.MONTHS),3);default:throw new a("Unreachable")}},n.toString=function(){return this._name},e}(v),Et=null,St=null,mt=null,Nt=null,Dt=null,At=null;var Tt=function(){function t(t,e,n,i){this._zeroDigit=t,this._zeroDigitCharCode=t.charCodeAt(0),this._positiveSign=e,this._negativeSign=n,this._decimalSeparator=i}var e=t.prototype;return e.positiveSign=function(){return this._positiveSign},e.withPositiveSign=function(e){return e===this._positiveSign?this:new t(this._zeroDigit,e,this._negativeSign,this._decimalSeparator)},e.negativeSign=function(){return this._negativeSign},e.withNegativeSign=function(e){return e===this._negativeSign?this:new t(this._zeroDigit,this._positiveSign,e,this._decimalSeparator)},e.zeroDigit=function(){return this._zeroDigit},e.withZeroDigit=function(e){return e===this._zeroDigit?this:new t(e,this._positiveSign,this._negativeSign,this._decimalSeparator)},e.decimalSeparator=function(){return this._decimalSeparator},e.withDecimalSeparator=function(e){return e===this._decimalSeparator?this:new t(this._zeroDigit,this._positiveSign,this._negativeSign,e)},e.convertToDigit=function(t){var e=t.charCodeAt(0)-this._zeroDigitCharCode;return e>=0&&e<=9?e:-1},e.convertNumberToI18N=function(t){if("0"===this._zeroDigit)return t;for(var e=this._zeroDigitCharCode-"0".charCodeAt(0),n="",i=0;i<t.length;i++)n+=String.fromCharCode(t.charCodeAt(i)+e);return n},e.equals=function(e){return this===e||e instanceof t&&(this._zeroDigit===e._zeroDigit&&this._positiveSign===e._positiveSign&&this._negativeSign===e._negativeSign&&this._decimalSeparator===e._decimalSeparator)},e.hashCode=function(){return this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator},e.toString=function(){return"DecimalStyle["+this._zeroDigit+this._positiveSign+this._negativeSign+this._decimalSeparator+"]"},t.of=function(){throw new Error("not yet supported")},t.availableLocales=function(){throw new Error("not yet supported")},t}();Tt.STANDARD=new Tt("0","+","-",".");var vt=function(t){function e(){return t.apply(this,arguments)||this}return l(e,t),e.prototype.parse=function(t,n,i){switch(this){case e.NORMAL:return!t||!n;case e.ALWAYS:case e.EXCEEDS_PAD:return!0;default:return!n&&!i}},e}(A);vt.NORMAL=new vt("NORMAL"),vt.NEVER=new vt("NEVER"),vt.ALWAYS=new vt("ALWAYS"),vt.EXCEEDS_PAD=new vt("EXCEEDS_PAD"),vt.NOT_NEGATIVE=new vt("NOT_NEGATIVE");var yt=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.isStandalone=function(){switch(this){case e.FULL_STANDALONE:case e.SHORT_STANDALONE:case e.NARROW_STANDALONE:return!0;default:return!1}},n.asStandalone=function(){switch(this){case e.FULL:return e.FULL_STANDALONE;case e.SHORT:return e.SHORT_STANDALONE;case e.NARROW:return e.NARROW_STANDALONE;default:return this}},n.asNormal=function(){switch(this){case e.FULL_STANDALONE:return e.FULL;case e.SHORT_STANDALONE:return e.SHORT;case e.NARROW_STANDALONE:return e.NARROW;default:return this}},e}(A);yt.FULL=new yt("FULL"),yt.FULL_STANDALONE=new yt("FULL_STANDALONE"),yt.SHORT=new yt("SHORT"),yt.SHORT_STANDALONE=new yt("SHORT_STANDALONE"),yt.NARROW=new yt("NARROW"),yt.NARROW_STANDALONE=new yt("NARROW_STANDALONE");var wt=function(){function t(t){if(t.length>1)throw new o('invalid literal, too long: "'+t+'"');this._literal=t}var e=t.prototype;return e.print=function(t,e){return e.append(this._literal),!0},e.parse=function(t,e,n){if(n===e.length)return~n;var i=e.charAt(n);return!1===t.charEquals(this._literal,i)?~n:n+this._literal.length},e.toString=function(){return"'"===this._literal?"''":"'"+this._literal+"'"},t}(),Mt=function(){function t(t,e){this._printerParsers=t,this._optional=e}var e=t.prototype;return e.withOptional=function(e){return e===this._optional?this:new t(this._printerParsers,e)},e.print=function(t,e){var n=e.length();this._optional&&t.startOptional();try{for(var i=0;i<this._printerParsers.length;i++){if(!1===this._printerParsers[i].print(t,e))return e.setLength(n),!0}}finally{this._optional&&t.endOptional()}return!0},e.parse=function(t,e,n){if(this._optional){t.startOptional();for(var i=n,r=0;r<this._printerParsers.length;r++){if((i=this._printerParsers[r].parse(t,e,i))<0)return t.endOptional(!1),n}return t.endOptional(!0),i}for(var s=0;s<this._printerParsers.length;s++){if((n=this._printerParsers[s].parse(t,e,n))<0)break}return n},e.toString=function(){var t="";if(null!=this._printerParsers){t+=this._optional?"[":"(";for(var e=0;e<this._printerParsers.length;e++){t+=this._printerParsers[e].toString()}t+=this._optional?"]":")"}return t},t}(),Rt=function(){function t(t,e,n,i){if(p(t,"field"),!1===t.range().isFixed())throw new o("Field must have a fixed set of values: "+t);if(e<0||e>9)throw new o("Minimum width must be from 0 to 9 inclusive but was "+e);if(n<1||n>9)throw new o("Maximum width must be from 1 to 9 inclusive but was "+n);if(n<e)throw new o("Maximum width must exceed or equal the minimum width but "+n+" < "+e);this.field=t,this.minWidth=e,this.maxWidth=n,this.decimalPoint=i}var e=t.prototype;return e.print=function(t,e){var n=t.getValue(this.field);if(null===n)return!1;var i=t.symbols();if(0===n){if(this.minWidth>0){this.decimalPoint&&e.append(i.decimalSeparator());for(var r=0;r<this.minWidth;r++)e.append(i.zeroDigit())}}else{var s=this.convertToFraction(n,i.zeroDigit()),o=Math.min(Math.max(s.length,this.minWidth),this.maxWidth);if(1*(s=s.substr(0,o))>0)for(;s.length>this.minWidth&&"0"===s[s.length-1];)s=s.substr(0,s.length-1);var a=s;a=i.convertNumberToI18N(a),this.decimalPoint&&e.append(i.decimalSeparator()),e.append(a)}return!0},e.parse=function(t,e,n){var i=t.isStrict()?this.minWidth:0,r=t.isStrict()?this.maxWidth:9,s=e.length;if(n===s)return i>0?~n:n;if(this.decimalPoint){if(e[n]!==t.symbols().decimalSeparator())return i>0?~n:n;n++}var o=n+i;if(o>s)return~n;for(var a=Math.min(n+r,s),u=0,h=n;h<a;){var f=e.charAt(h++),c=t.symbols().convertToDigit(f);if(c<0){if(h<o)return~n;h--;break}u=10*u+c}var l=h-n,_=Math.pow(10,l),d=this.convertFromFraction(u,_);return t.setParsedField(this.field,d,n,h)},e.convertToFraction=function(t,e){var n=this.field.range();n.checkValidValue(t,this.field);for(var i=n.minimum(),r=n.maximum()-i+1,s=t-i,o=""+D.intDiv(1e9*s,r);o.length<9;)o=e+o;return o},e.convertFromFraction=function(t,e){var n=this.field.range(),i=n.minimum(),r=n.maximum()-i+1;return D.intDiv(t*r,e)},e.toString=function(){var t=this.decimalPoint?",DecimalPoint":"";return"Fraction("+this.field+","+this.minWidth+","+this.maxWidth+t+")"},t}(),gt=[0,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9],It=function(){function t(t,e,n,i,r){void 0===r&&(r=0),this._field=t,this._minWidth=e,this._maxWidth=n,this._signStyle=i,this._subsequentWidth=r}var e=t.prototype;return e.field=function(){return this._field},e.minWidth=function(){return this._minWidth},e.maxWidth=function(){return this._maxWidth},e.signStyle=function(){return this._signStyle},e.withFixedWidth=function(){return-1===this._subsequentWidth?this:new t(this._field,this._minWidth,this._maxWidth,this._signStyle,-1)},e.withSubsequentWidth=function(e){return new t(this._field,this._minWidth,this._maxWidth,this._signStyle,this._subsequentWidth+e)},e._isFixedWidth=function(){return-1===this._subsequentWidth||this._subsequentWidth>0&&this._minWidth===this._maxWidth&&this._signStyle===vt.NOT_NEGATIVE},e.print=function(t,e){var i=t.getValue(this._field);if(null==i)return!1;var r=this._getValue(t,i),s=t.symbols(),o=""+Math.abs(r);if(o.length>this._maxWidth)throw new n("Field "+this._field+" cannot be printed as the value "+r+" exceeds the maximum print width of "+this._maxWidth);if(o=s.convertNumberToI18N(o),r>=0)switch(this._signStyle){case vt.EXCEEDS_PAD:this._minWidth<15&&r>=gt[this._minWidth]&&e.append(s.positiveSign());break;case vt.ALWAYS:e.append(s.positiveSign())}else switch(this._signStyle){case vt.NORMAL:case vt.EXCEEDS_PAD:case vt.ALWAYS:e.append(s.negativeSign());break;case vt.NOT_NEGATIVE:throw new n("Field "+this._field+" cannot be printed as the value "+r+" cannot be negative according to the SignStyle")}for(var a=0;a<this._minWidth-o.length;a++)e.append(s.zeroDigit());return e.append(o),!0},e.parse=function(t,e,n){var i=e.length;if(n===i)return~n;d(n>=0&&n<i);var r=e.charAt(n),o=!1,a=!1;if(r===t.symbols().positiveSign()){if(!1===this._signStyle.parse(!0,t.isStrict(),this._minWidth===this._maxWidth))return~n;a=!0,n++}else if(r===t.symbols().negativeSign()){if(!1===this._signStyle.parse(!1,t.isStrict(),this._minWidth===this._maxWidth))return~n;o=!0,n++}else if(this._signStyle===vt.ALWAYS&&t.isStrict())return~n;var u=t.isStrict()||this._isFixedWidth()?this._minWidth:1,h=n+u;if(h>i)return~n;for(var f=(t.isStrict()||this._isFixedWidth()?this._maxWidth:9)+Math.max(this._subsequentWidth,0),c=0,l=n,_=0;_<2;_++){for(var p=Math.min(l+f,i);l<p;){var O=e.charAt(l++),E=t.symbols().convertToDigit(O);if(E<0){if(--l<h)return~n;break}if(l-n>15)throw new s("number text exceeds length");c=10*c+E}if(!(this._subsequentWidth>0&&0===_))break;var S=l-n;f=Math.max(u,S-this._subsequentWidth),l=n,c=0}if(o){if(0===c&&t.isStrict())return~(n-1);0!==c&&(c=-c)}else if(this._signStyle===vt.EXCEEDS_PAD&&t.isStrict()){var m=l-n;if(a){if(m<=this._minWidth)return~(n-1)}else if(m>this._minWidth)return~n}return this._setValue(t,c,n,l)},e._getValue=function(t,e){return e},e._setValue=function(t,e,n,i){return t.setParsedField(this._field,e,n,i)},e.toString=function(){return 1===this._minWidth&&15===this._maxWidth&&this._signStyle===vt.NORMAL?"Value("+this._field+")":this._minWidth===this._maxWidth&&this._signStyle===vt.NOT_NEGATIVE?"Value("+this._field+","+this._minWidth+")":"Value("+this._field+","+this._minWidth+","+this._maxWidth+","+this._signStyle+")"},t}(),Ft=function(t){function e(e,i,r,s,a){var u;if(u=t.call(this,e,i,r,vt.NOT_NEGATIVE)||this,i<1||i>10)throw new o("The width must be from 1 to 10 inclusive but was "+i);if(r<1||r>10)throw new o("The maxWidth must be from 1 to 10 inclusive but was "+r);if(r<i)throw new o("The maxWidth must be greater than the width");if(null===a){if(!1===e.range().isValidValue(s))throw new o("The base value must be within the range of the field");if(s+gt[i]>D.MAX_SAFE_INTEGER)throw new n("Unable to add printer-parser as the range exceeds the capacity of an int")}return u._baseValue=s,u._baseDate=a,u}l(e,t);var i=e.prototype;return i._getValue=function(t,e){var n=Math.abs(e),i=this._baseValue;null!==this._baseDate&&(t.temporal(),i=ue.INSTANCE.date(this._baseDate).get(this._field));return e>=i&&e<i+gt[this._minWidth]?n%gt[this._minWidth]:n%gt[this._maxWidth]},i._setValue=function(t,e,n,i){var r=this._baseValue;null!=this._baseDate&&(r=t.getEffectiveChronology().date(this._baseDate).get(this._field));if(i-n===this._minWidth&&e>=0){var s=gt[this._minWidth],o=r-r%s;(e=r>0?o+e:o-e)<r&&(e+=s)}return t.setParsedField(this._field,e,n,i)},i.withFixedWidth=function(){return-1===this._subsequentWidth?this:new e(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate)},i.withSubsequentWidth=function(t){return new e(this._field,this._minWidth,this._maxWidth,this._baseValue,this._baseDate,this._subsequentWidth+t)},i.isFixedWidth=function(e){return!1!==e.isStrict()&&t.prototype.isFixedWidth.call(this,e)},i.toString=function(){return"ReducedValue("+this._field+","+this._minWidth+","+this._maxWidth+","+(null!=this._baseDate?this._baseDate:this._baseValue)+")"},e}(It),Ct=["+HH","+HHmm","+HH:mm","+HHMM","+HH:MM","+HHMMss","+HH:MM:ss","+HHMMSS","+HH:MM:SS"],Yt=function(){function t(t,e){p(t,"noOffsetText"),p(e,"pattern"),this.noOffsetText=t,this.type=this._checkPattern(e)}var e=t.prototype;return e._checkPattern=function(t){for(var e=0;e<Ct.length;e++)if(Ct[e]===t)return e;throw new o("Invalid zone offset pattern: "+t)},e.print=function(t,e){var n=t.getValue(F.OFFSET_SECONDS);if(null==n)return!1;var i=D.safeToInt(n);if(0===i)e.append(this.noOffsetText);else{var r=Math.abs(D.intMod(D.intDiv(i,3600),100)),s=Math.abs(D.intMod(D.intDiv(i,60),60)),o=Math.abs(D.intMod(i,60)),a=e.length(),u=r;e.append(i<0?"-":"+").appendChar(D.intDiv(r,10)+"0").appendChar(D.intMod(r,10)+"0"),(this.type>=3||this.type>=1&&s>0)&&(e.append(this.type%2==0?":":"").appendChar(D.intDiv(s,10)+"0").appendChar(s%10+"0"),u+=s,(this.type>=7||this.type>=5&&o>0)&&(e.append(this.type%2==0?":":"").appendChar(D.intDiv(o,10)+"0").appendChar(o%10+"0"),u+=o)),0===u&&(e.setLength(a),e.append(this.noOffsetText))}return!0},e.parse=function(t,e,n){var i=e.length,r=this.noOffsetText.length;if(0===r){if(n===i)return t.setParsedField(F.OFFSET_SECONDS,0,n,n)}else{if(n===i)return~n;if(t.subSequenceEquals(e,n,this.noOffsetText,0,r))return t.setParsedField(F.OFFSET_SECONDS,0,n,n+r)}var s=e[n];if("+"===s||"-"===s){var o="-"===s?-1:1,a=[0,0,0,0];if(a[0]=n+1,!1===(this._parseNumber(a,1,e,!0)||this._parseNumber(a,2,e,this.type>=3)||this._parseNumber(a,3,e,!1))){var u=D.safeZero(o*(3600*a[1]+60*a[2]+a[3]));return t.setParsedField(F.OFFSET_SECONDS,u,n,a[0])}}return 0===r?t.setParsedField(F.OFFSET_SECONDS,0,n,n+r):~n},e._parseNumber=function(t,e,n,i){if((this.type+3)/2<e)return!1;var r=t[0];if(this.type%2==0&&e>1){if(r+1>n.length||":"!==n[r])return i;r++}if(r+2>n.length)return i;var s=n[r++],o=n[r++];if(s<"0"||s>"9"||o<"0"||o>"9")return i;var a=10*(s.charCodeAt(0)-48)+(o.charCodeAt(0)-48);return a<0||a>59?i:(t[e]=a,t[0]=r,!1)},e.toString=function(){var t=this.noOffsetText.replace("'","''");return"Offset("+Ct[this.type]+",'"+t+"')"},t}();Yt.INSTANCE_ID=new Yt("Z","+HH:MM:ss"),Yt.PATTERNS=Ct;var Lt=function(){function t(t,e,n){this._printerParser=t,this._padWidth=e,this._padChar=n}var e=t.prototype;return e.print=function(t,e){var i=e.length();if(!1===this._printerParser.print(t,e))return!1;var r=e.length()-i;if(r>this._padWidth)throw new n("Cannot print as output of "+r+" characters exceeds pad width of "+this._padWidth);for(var s=0;s<this._padWidth-r;s++)e.insert(i,this._padChar);return!0},e.parse=function(t,e,n){var i=t.isStrict(),r=t.isCaseSensitive();if(d(!(n>e.length)),d(n>=0),n===e.length)return~n;var s=n+this._padWidth;if(s>e.length){if(i)return~n;s=e.length}for(var o=n;o<s&&(r?e[o]===this._padChar:t.charEquals(e[o],this._padChar));)o++;e=e.substring(0,s);var a=this._printerParser.parse(t,e,o);return a!==s&&i?~(n+o):a},e.toString=function(){return"Pad("+this._printerParser+","+this._padWidth+(" "===this._padChar?")":",'"+this._padChar+"')")},t}(),Pt=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var n=e.prototype;return n.print=function(){return!0},n.parse=function(t,n,i){switch(this){case e.SENSITIVE:t.setCaseSensitive(!0);break;case e.INSENSITIVE:t.setCaseSensitive(!1);break;case e.STRICT:t.setStrict(!0);break;case e.LENIENT:t.setStrict(!1)}return i},n.toString=function(){switch(this){case e.SENSITIVE:return"ParseCaseSensitive(true)";case e.INSENSITIVE:return"ParseCaseSensitive(false)";case e.STRICT:return"ParseStrict(true)";case e.LENIENT:return"ParseStrict(false)"}},e}(A);Pt.SENSITIVE=new Pt("SENSITIVE"),Pt.INSENSITIVE=new Pt("INSENSITIVE"),Pt.STRICT=new Pt("STRICT"),Pt.LENIENT=new Pt("LENIENT");var Ut=function(){function t(t){this._literal=t}var e=t.prototype;return e.print=function(t,e){return e.append(this._literal),!0},e.parse=function(t,e,n){return d(!(n>e.length||n<0)),!1===t.subSequenceEquals(e,n,this._literal,0,this._literal.length)?~n:n+this._literal.length},e.toString=function(){return"'"+this._literal.replace("'","''")+"'"},t}(),Vt=function(){function t(){}return t.getRules=function(t){throw new n("@js-joda/timezone not imported")},t.getAvailableZoneIds=function(){return[]},t}(),bt=function(t){function e(e,n){var i;return(i=t.call(this)||this)._id=e,i._rules=n,i}l(e,t),e.ofId=function(t){return new e(t,Vt.getRules(t))};var n=e.prototype;return n.id=function(){return this._id},n.rules=function(){return this._rules},e}(j),Ht=function(){function t(t,e){this.query=t,this.description=e}var e=t.prototype;return e.print=function(t,e){var n=t.getValueQuery(this.query);return null!=n&&(e.append(n.id()),!0)},e.parse=function(t,e,n){var i=e.length;if(n>i)return~n;if(n===i)return~n;var r=this._parseRegion(e,n),s=this._parseFixedId(t,e,n),o=s>=0?s-n:0;return null!=r&&r.parseLength>o?(t.setParsedZone(bt.ofId(r.parsedZoneId)),n+r.parseLength):s},e._parseRegion=function(t,e){var n=Vt.getAvailableZoneIds();if(0===n.length)return null;xt.size!==n.length&&(xt=Wt.createTreeMap(n));for(var i=t.length-e,r=xt.treeMap,s=null,o=0;null!=r;){var a=t.substr(e,Math.min(r.length,i));null!=(r=r.get(a))&&r.isLeaf&&(s=a,o=r.length)}return null==s?null:{parsedZoneId:s,parseLength:o}},e._parseFixedId=function(t,e,n){var i=e.length,r=e.charAt(n);if("+"===r||"-"===r){var s=t.copy(),o=Yt.INSTANCE_ID.parse(s,e,n);if(o<0)return o;var a=s.getParsed(F.OFFSET_SECONDS);return t.setParsedZone($.ofTotalSeconds(a)),o}if(i>=n+2){var u=e.charAt(n+1);if(t.charEquals(r,"U")&&t.charEquals(u,"T"))return i>=n+3&&t.charEquals(e.charAt(n+2),"C")?this._parsePrefixedOffset(t,e,n,n+3):this._parsePrefixedOffset(t,e,n,n+2);if(t.charEquals(r,"G")&&i>=n+3&&t.charEquals(u,"M")&&t.charEquals(e.charAt(n+2),"T"))return this._parsePrefixedOffset(t,e,n,n+3)}return"SYSTEM"===e.substr(n,6)?(t.setParsedZone(j.systemDefault()),n+6):t.charEquals(r,"Z")?(t.setParsedZone($.UTC),n+1):~n},e._parsePrefixedOffset=function(t,e,n,i){var r=e.substring(n,i).toUpperCase(),s=t.copy();if(i<e.length&&t.charEquals(e.charAt(i),"Z"))return t.setParsedZone(j.ofOffset(r,$.UTC)),i;var o=Yt.INSTANCE_ID.parse(s,e,i);if(o<0)return t.setParsedZone(j.ofOffset(r,$.UTC)),i;var a=s.getParsed(F.OFFSET_SECONDS),u=$.ofTotalSeconds(a);return t.setParsedZone(j.ofOffset(r,u)),o},e.toString=function(){return this.description},t}(),Wt=function(){function t(t,e){this.size=t,this.treeMap=e}return t.createTreeMap=function(e){for(var n=e.sort((function(t,e){return t.length-e.length})),i=new kt(n[0].length,!1),r=0;r<n.length;r++)i.add(n[r]);return new t(n.length,i)},t}(),kt=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=!1),this.length=t,this.isLeaf=e,this._treeMap={}}var e=t.prototype;return e.add=function(e){var n=e.length;if(n===this.length)this._treeMap[e]=new t(n,!0);else if(n>this.length){var i=e.substr(0,this.length),r=this._treeMap[i];null==r&&(r=new t(n,!1),this._treeMap[i]=r),r.add(e)}},e.get=function(t){return this._treeMap[t]},t}(),xt=new Wt([]),Bt=15,qt=function(){function t(){this._active=this,this._parent=null,this._printerParsers=[],this._optional=!1,this._padNextWidth=0,this._padNextChar=null,this._valueParserIndex=-1}t._of=function(e,n){p(e,"parent"),p(n,"optional");var i=new t;return i._parent=e,i._optional=n,i};var e=t.prototype;return e.parseCaseSensitive=function(){return this._appendInternalPrinterParser(Pt.SENSITIVE),this},e.parseCaseInsensitive=function(){return this._appendInternalPrinterParser(Pt.INSENSITIVE),this},e.parseStrict=function(){return this._appendInternalPrinterParser(Pt.STRICT),this},e.parseLenient=function(){return this._appendInternalPrinterParser(Pt.LENIENT),this},e.parseDefaulting=function(t,e){return p(t),this._appendInternal(new jt(t,e)),this},e.appendValue=function(){return 1===arguments.length?this._appendValue1.apply(this,arguments):2===arguments.length?this._appendValue2.apply(this,arguments):this._appendValue4.apply(this,arguments)},e._appendValue1=function(t){return p(t),this._appendValuePrinterParser(new It(t,1,Bt,vt.NORMAL)),this},e._appendValue2=function(t,e){if(p(t),e<1||e>Bt)throw new o("The width must be from 1 to 15 inclusive but was "+e);var n=new It(t,e,e,vt.NOT_NEGATIVE);return this._appendValuePrinterParser(n),this},e._appendValue4=function(t,e,n,i){if(p(t),p(i),e===n&&i===vt.NOT_NEGATIVE)return this._appendValue2(t,n);if(e<1||e>Bt)throw new o("The minimum width must be from 1 to 15 inclusive but was "+e);if(n<1||n>Bt)throw new o("The minimum width must be from 1 to 15 inclusive but was "+n);if(n<e)throw new o("The maximum width must exceed or equal the minimum width but "+n+" < "+e);var r=new It(t,e,n,i);return this._appendValuePrinterParser(r),this},e.appendValueReduced=function(){return 4===arguments.length&&arguments[3]instanceof z?this._appendValueReducedFieldWidthMaxWidthBaseDate.apply(this,arguments):this._appendValueReducedFieldWidthMaxWidthBaseValue.apply(this,arguments)},e._appendValueReducedFieldWidthMaxWidthBaseValue=function(t,e,n,i){p(t,"field");var r=new Ft(t,e,n,i,null);return this._appendValuePrinterParser(r),this},e._appendValueReducedFieldWidthMaxWidthBaseDate=function(t,e,n,i){p(t,"field"),p(i,"baseDate"),O(i,z,"baseDate");var r=new Ft(t,e,n,0,i);return this._appendValuePrinterParser(r),this},e._appendValuePrinterParser=function(t){if(d(null!=t),this._active._valueParserIndex>=0&&this._active._printerParsers[this._active._valueParserIndex]instanceof It){var e=this._active._valueParserIndex,n=this._active._printerParsers[e];t.minWidth()===t.maxWidth()&&t.signStyle()===vt.NOT_NEGATIVE?(n=n.withSubsequentWidth(t.maxWidth()),this._appendInternal(t.withFixedWidth()),this._active._valueParserIndex=e):(n=n.withFixedWidth(),this._active._valueParserIndex=this._appendInternal(t)),this._active._printerParsers[e]=n}else this._active._valueParserIndex=this._appendInternal(t);return this},e.appendFraction=function(t,e,n,i){return this._appendInternal(new Rt(t,e,n,i)),this},e.appendInstant=function(t){if(void 0===t&&(t=-2),t<-2||t>9)throw new o("Invalid fractional digits: "+t);return this._appendInternal(new Kt(t)),this},e.appendOffsetId=function(){return this._appendInternal(Yt.INSTANCE_ID),this},e.appendOffset=function(t,e){return this._appendInternalPrinterParser(new Yt(e,t)),this},e.appendZoneId=function(){return this._appendInternal(new Ht(C.zoneId(),"ZoneId()")),this},e.appendPattern=function(t){return p(t,"pattern"),this._parsePattern(t),this},e.appendZoneText=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e.appendText=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e.appendLocalizedOffset=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e.appendWeekField=function(){throw new o("Pattern using (localized) text not implemented, use @js-joda/locale plugin!")},e._parsePattern=function(t){for(var e={G:F.ERA,y:F.YEAR_OF_ERA,u:F.YEAR,Q:ht.QUARTER_OF_YEAR,q:ht.QUARTER_OF_YEAR,M:F.MONTH_OF_YEAR,L:F.MONTH_OF_YEAR,D:F.DAY_OF_YEAR,d:F.DAY_OF_MONTH,F:F.ALIGNED_DAY_OF_WEEK_IN_MONTH,E:F.DAY_OF_WEEK,c:F.DAY_OF_WEEK,e:F.DAY_OF_WEEK,a:F.AMPM_OF_DAY,H:F.HOUR_OF_DAY,k:F.CLOCK_HOUR_OF_DAY,K:F.HOUR_OF_AMPM,h:F.CLOCK_HOUR_OF_AMPM,m:F.MINUTE_OF_HOUR,s:F.SECOND_OF_MINUTE,S:F.NANO_OF_SECOND,A:F.MILLI_OF_DAY,n:F.NANO_OF_SECOND,N:F.NANO_OF_DAY},n=0;n<t.length;n++){var i=t.charAt(n);if(i>="A"&&i<="Z"||i>="a"&&i<="z"){for(var r=n++;n<t.length&&t.charAt(n)===i;n++);var s=n-r;if("p"===i){var a=0;if(n<t.length&&((i=t.charAt(n))>="A"&&i<="Z"||i>="a"&&i<="z")){for(a=s,r=n++;n<t.length&&t.charAt(n)===i;n++);s=n-r}if(0===a)throw new o("Pad letter 'p' must be followed by valid pad pattern: "+t);this.padNext(a)}var u=e[i];if(null!=u)this._parseField(i,s,u);else if("z"===i){if(s>4)throw new o("Too many pattern letters: "+i);4===s?this.appendZoneText(yt.FULL):this.appendZoneText(yt.SHORT)}else if("V"===i){if(2!==s)throw new o("Pattern letter count must be 2: "+i);this.appendZoneId()}else if("Z"===i)if(s<4)this.appendOffset("+HHMM","+0000");else if(4===s)this.appendLocalizedOffset(yt.FULL);else{if(5!==s)throw new o("Too many pattern letters: "+i);this.appendOffset("+HH:MM:ss","Z")}else if("O"===i)if(1===s)this.appendLocalizedOffset(yt.SHORT);else{if(4!==s)throw new o("Pattern letter count must be 1 or 4: "+i);this.appendLocalizedOffset(yt.FULL)}else if("X"===i){if(s>5)throw new o("Too many pattern letters: "+i);this.appendOffset(Yt.PATTERNS[s+(1===s?0:1)],"Z")}else if("x"===i){if(s>5)throw new o("Too many pattern letters: "+i);var h=1===s?"+00":s%2==0?"+0000":"+00:00";this.appendOffset(Yt.PATTERNS[s+(1===s?0:1)],h)}else if("W"===i){if(s>1)throw new o("Too many pattern letters: "+i);this.appendWeekField("W",s)}else if("w"===i){if(s>2)throw new o("Too many pattern letters: "+i);this.appendWeekField("w",s)}else{if("Y"!==i)throw new o("Unknown pattern letter: "+i);this.appendWeekField("Y",s)}n--}else if("'"===i){for(var f=n++;n<t.length;n++)if("'"===t.charAt(n)){if(!(n+1<t.length&&"'"===t.charAt(n+1)))break;n++}if(n>=t.length)throw new o("Pattern ends with an incomplete string literal: "+t);var c=t.substring(f+1,n);0===c.length?this.appendLiteral("'"):this.appendLiteral(c.replace("''","'"))}else if("["===i)this.optionalStart();else if("]"===i){if(null===this._active._parent)throw new o("Pattern invalid as it contains ] without previous [");this.optionalEnd()}else{if("{"===i||"}"===i||"#"===i)throw new o("Pattern includes reserved character: '"+i+"'");this.appendLiteral(i)}}},e._parseField=function(t,e,n){switch(t){case"u":case"y":2===e?this.appendValueReduced(n,2,2,Ft.BASE_DATE):e<4?this.appendValue(n,e,Bt,vt.NORMAL):this.appendValue(n,e,Bt,vt.EXCEEDS_PAD);break;case"M":case"Q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,yt.SHORT);break;case 4:this.appendText(n,yt.FULL);break;case 5:this.appendText(n,yt.NARROW);break;default:throw new o("Too many pattern letters: "+t)}break;case"L":case"q":switch(e){case 1:this.appendValue(n);break;case 2:this.appendValue(n,2);break;case 3:this.appendText(n,yt.SHORT_STANDALONE);break;case 4:this.appendText(n,yt.FULL_STANDALONE);break;case 5:this.appendText(n,yt.NARROW_STANDALONE);break;default:throw new o("Too many pattern letters: "+t)}break;case"e":switch(e){case 1:case 2:this.appendWeekField("e",e);break;case 3:this.appendText(n,yt.SHORT);break;case 4:this.appendText(n,yt.FULL);break;case 5:this.appendText(n,yt.NARROW);break;default:throw new o("Too many pattern letters: "+t)}break;case"c":switch(e){case 1:this.appendWeekField("c",e);break;case 2:throw new o("Invalid number of pattern letters: "+t);case 3:this.appendText(n,yt.SHORT_STANDALONE);break;case 4:this.appendText(n,yt.FULL_STANDALONE);break;case 5:this.appendText(n,yt.NARROW_STANDALONE);break;default:throw new o("Too many pattern letters: "+t)}break;case"a":if(1!==e)throw new o("Too many pattern letters: "+t);this.appendText(n,yt.SHORT);break;case"E":case"G":switch(e){case 1:case 2:case 3:this.appendText(n,yt.SHORT);break;case 4:this.appendText(n,yt.FULL);break;case 5:this.appendText(n,yt.NARROW);break;default:throw new o("Too many pattern letters: "+t)}break;case"S":this.appendFraction(F.NANO_OF_SECOND,e,e,!1);break;case"F":if(1!==e)throw new o("Too many pattern letters: "+t);this.appendValue(n);break;case"d":case"h":case"H":case"k":case"K":case"m":case"s":if(1===e)this.appendValue(n);else{if(2!==e)throw new o("Too many pattern letters: "+t);this.appendValue(n,e)}break;case"D":if(1===e)this.appendValue(n);else{if(!(e<=3))throw new o("Too many pattern letters: "+t);this.appendValue(n,e)}break;default:1===e?this.appendValue(n):this.appendValue(n,e)}},e.padNext=function(){return 1===arguments.length?this._padNext1.apply(this,arguments):this._padNext2.apply(this,arguments)},e._padNext1=function(t){return this._padNext2(t," ")},e._padNext2=function(t,e){if(t<1)throw new o("The pad width must be at least one but was "+t);return this._active._padNextWidth=t,this._active._padNextChar=e,this._active._valueParserIndex=-1,this},e.optionalStart=function(){return this._active._valueParserIndex=-1,this._active=t._of(this._active,!0),this},e.optionalEnd=function(){if(null==this._active._parent)throw new a("Cannot call optionalEnd() as there was no previous call to optionalStart()");if(this._active._printerParsers.length>0){var t=new Mt(this._active._printerParsers,this._active._optional);this._active=this._active._parent,this._appendInternal(t)}else this._active=this._active._parent;return this},e._appendInternal=function(t){return d(null!=t),this._active._padNextWidth>0&&(null!=t&&(t=new Lt(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},e.appendLiteral=function(t){return d(null!=t),t.length>0&&(1===t.length?this._appendInternalPrinterParser(new wt(t.charAt(0))):this._appendInternalPrinterParser(new Ut(t))),this},e._appendInternalPrinterParser=function(t){return d(null!=t),this._active._padNextWidth>0&&(null!=t&&(t=new Lt(t,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(t),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},e.append=function(t){return p(t,"formatter"),this._appendInternal(t._toPrinterParser(!1)),this},e.toFormatter=function(t){for(void 0===t&&(t=q.SMART);null!=this._active._parent;)this.optionalEnd();var e=new Mt(this._printerParsers,!1);return new Xt(e,null,Tt.STANDARD,t,null,null,null)},t}(),Zt=31556952e4,zt=62167219200,Kt=function(){function t(t){this.fractionalDigits=t}var e=t.prototype;return e.print=function(t,e){var n=t.getValue(F.INSTANT_SECONDS),i=0;if(t.temporal().isSupported(F.NANO_OF_SECOND)&&(i=t.temporal().getLong(F.NANO_OF_SECOND)),null==n)return!1;var r=n,s=F.NANO_OF_SECOND.checkValidIntValue(i);if(r>=-62167219200){var o=r-Zt+zt,a=D.floorDiv(o,Zt)+1,u=D.floorMod(o,Zt),h=le.ofEpochSecond(u-zt,0,$.UTC);a>0&&e.append("+").append(a),e.append(h.toString()),0===h.second()&&e.append(":00")}else{var f=r+zt,c=D.intDiv(f,Zt),l=D.intMod(f,Zt),_=le.ofEpochSecond(l-zt,0,$.UTC),d=e.length();e.append(_.toString()),0===_.second()&&e.append(":00"),c<0&&(-1e4===_.year()?e.replace(d,d+2,""+(c-1)):0===l?e.insert(d,c):e.insert(d+1,Math.abs(c)))}if(-2===this.fractionalDigits)0!==s&&(e.append("."),0===D.intMod(s,1e6)?e.append((""+(D.intDiv(s,1e6)+1e3)).substring(1)):0===D.intMod(s,1e3)?e.append((""+(D.intDiv(s,1e3)+1e6)).substring(1)):e.append((""+(s+1e9)).substring(1)));else if(this.fractionalDigits>0||-1===this.fractionalDigits&&s>0){e.append(".");for(var p=1e8,O=0;-1===this.fractionalDigits&&s>0||O<this.fractionalDigits;O++){var E=D.intDiv(s,p);e.append(E),s-=E*p,p=D.intDiv(p,10)}}return e.append("Z"),!0},e.parse=function(t,e,n){var i=t.copy(),r=this.fractionalDigits<0?0:this.fractionalDigits,s=this.fractionalDigits<0?9:this.fractionalDigits,o=(new qt).append(Xt.ISO_LOCAL_DATE).appendLiteral("T").appendValue(F.HOUR_OF_DAY,2).appendLiteral(":").appendValue(F.MINUTE_OF_HOUR,2).appendLiteral(":").appendValue(F.SECOND_OF_MINUTE,2).appendFraction(F.NANO_OF_SECOND,r,s,!0).appendOffsetId().toFormatter()._toPrinterParser(!1).parse(i,e,n);if(o<0)return o;var a,u=i.getParsed(F.YEAR),h=i.getParsed(F.MONTH_OF_YEAR),f=i.getParsed(F.DAY_OF_MONTH),c=i.getParsed(F.HOUR_OF_DAY),l=i.getParsed(F.MINUTE_OF_HOUR),_=i.getParsed(F.SECOND_OF_MINUTE),d=i.getParsed(F.NANO_OF_SECOND),p=i.getParsed(F.OFFSET_SECONDS),O=null!=p?p:0,E=null!=_?_:0,S=null!=d?d:0,m=D.intMod(u,1e4),N=0;24===c&&0===l&&0===E&&0===S?(c=0,N=1):23===c&&59===l&&60===E&&(t.setParsedLeapSecond(),E=59);try{a=le.of(m,h,f,c,l,E,0).plusDays(N).toEpochSecond($.ofTotalSeconds(O)),a+=D.safeMultiply(D.intDiv(u,1e4),Zt)}catch(t){return~n}var A=o;return A=t.setParsedField(F.INSTANT_SECONDS,a,n,A),t.setParsedField(F.NANO_OF_SECOND,S,n,A)},e.toString=function(){return"Instant()"},t}(),jt=function(){function t(t,e){this._field=t,this._value=e}var e=t.prototype;return e.print=function(){return!0},e.parse=function(t,e,n){return null==t.getParsed(this._field)&&t.setParsedField(this._field,this._value,n,n),n},t}();var Gt=function(){function t(){this._str=""}var e=t.prototype;return e.append=function(t){return this._str+=t,this},e.appendChar=function(t){return this._str+=t[0],this},e.insert=function(t,e){return this._str=this._str.slice(0,t)+e+this._str.slice(t),this},e.replace=function(t,e,n){return this._str=this._str.slice(0,t)+n+this._str.slice(e),this},e.length=function(){return this._str.length},e.setLength=function(t){return this._str=this._str.slice(0,t),this},e.toString=function(){return this._str},t}(),Xt=function(){function t(t,e,n,i,r,s,o){void 0===s&&(s=ue.INSTANCE),d(null!=t),d(null!=n),d(null!=i),this._printerParser=t,this._locale=e,this._decimalStyle=n,this._resolverStyle=i,this._resolverFields=r,this._chrono=s,this._zone=o}t.parsedExcessDays=function(){return t.PARSED_EXCESS_DAYS},t.parsedLeapSecond=function(){return t.PARSED_LEAP_SECOND},t.ofPattern=function(t){return(new qt).appendPattern(t).toFormatter()};var e=t.prototype;return e.locale=function(){return this._locale},e.decimalStyle=function(){return this._decimalStyle},e.chronology=function(){return this._chrono},e.withChronology=function(e){return null!=this._chrono&&this._chrono.equals(e)?this:new t(this._printerParser,this._locale,this._decimalStyle,this._resolverStyle,this._resolverFields,e,this._zone)},e.withLocale=function(){return this},e.withResolverStyle=function(e){return p(e,"resolverStyle"),e.equals(this._resolverStyle)?this:new t(this._printerParser,this._locale,this._decimalStyle,e,this._resolverFields,this._chrono,this._zone)},e.format=function(t){var e=new Gt(32);return this._formatTo(t,e),e.toString()},e._formatTo=function(t,e){p(t,"temporal"),p(e,"appendable");var n=new ut(t,this);this._printerParser.print(n,e)},e.parse=function(t,e){return 1===arguments.length?this.parse1(t):this.parse2(t,e)},e.parse1=function(t){p(t,"text");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields)}catch(e){throw e instanceof i?e:this._createError(t,e)}},e.parse2=function(t,e){p(t,"text"),p(e,"type");try{return this._parseToBuilder(t,null).resolve(this._resolverStyle,this._resolverFields).build(e)}catch(e){throw e instanceof i?e:this._createError(t,e)}},e._createError=function(t,e){var n="";return n=t.length>64?t.substring(0,64)+"...":t,new i("Text '"+n+"' could not be parsed: "+e.message,t,0,e)},e._parseToBuilder=function(t,e){var n=null!=e?e:new x(0),r=this._parseUnresolved0(t,n);if(null==r||n.getErrorIndex()>=0||null==e&&n.getIndex()<t.length){var s="";throw s=t.length>64?t.substr(0,64).toString()+"...":t,n.getErrorIndex()>=0?new i("Text '"+s+"' could not be parsed at index "+n.getErrorIndex(),t,n.getErrorIndex()):new i("Text '"+s+"' could not be parsed, unparsed text found at index "+n.getIndex(),t,n.getIndex())}return r.toBuilder()},e.parseUnresolved=function(t,e){return this._parseUnresolved0(t,e)},e._parseUnresolved0=function(t,e){d(null!=t,"text",u),d(null!=e,"position",u);var n=new ot(this),i=e.getIndex();return(i=this._printerParser.parse(n,t,i))<0?(e.setErrorIndex(~i),null):(e.setIndex(i),n.toParsed())},e._toPrinterParser=function(t){return this._printerParser.withOptional(t)},e.toString=function(){var t=this._printerParser.toString();return 0===t.indexOf("[")?t:t.substring(1,t.length-1)},t}();var Jt,Qt=function(t){function e(e,n){var i;return(i=t.call(this)||this)._month=D.safeToInt(e),i._day=D.safeToInt(n),i}l(e,t),e.now=function(t){return 0===arguments.length?e.now0():1===arguments.length&&t instanceof j?e.nowZoneId(t):e.nowClock(t)},e.now0=function(){return this.nowClock(Oe.systemDefaultZone())},e.nowZoneId=function(t){return p(t,"zone"),this.nowClock(Oe.system(t))},e.nowClock=function(t){p(t,"clock");var n=ce.now(t);return e.of(n.month(),n.dayOfMonth())},e.of=function(t,n){return 2===arguments.length&&t instanceof H?e.ofMonthNumber(t,n):e.ofNumberNumber(t,n)},e.ofMonthNumber=function(t,i){if(p(t,"month"),F.DAY_OF_MONTH.checkValidValue(i),i>t.maxLength())throw new n("Illegal value for DayOfMonth field, value "+i+" is not valid for month "+t.toString());return new e(t.value(),i)},e.ofNumberNumber=function(t,n){return p(t,"month"),p(n,"dayOfMonth"),e.of(H.of(t),n)},e.from=function(t){if(p(t,"temporal"),O(t,Y,"temporal"),t instanceof e)return t;try{return e.of(t.get(F.MONTH_OF_YEAR),t.get(F.DAY_OF_MONTH))}catch(e){throw new n("Unable to obtain MonthDay from TemporalAccessor: "+t+", type "+(t&&null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return 1===arguments.length?e.parseString(t):e.parseStringFormatter(t,n)},e.parseString=function(t){return e.parseStringFormatter(t,Jt)},e.parseStringFormatter=function(t,n){return p(t,"text"),p(n,"formatter"),O(n,Xt,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.monthValue=function(){return this._month},i.month=function(){return H.of(this._month)},i.dayOfMonth=function(){return this._day},i.isSupported=function(t){return t instanceof F?t===F.MONTH_OF_YEAR||t===F.DAY_OF_MONTH:null!=t&&t.isSupportedBy(this)},i.range=function(e){return e===F.MONTH_OF_YEAR?e.range():e===F.DAY_OF_MONTH?I.of(1,this.month().minLength(),this.month().maxLength()):t.prototype.range.call(this,e)},i.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(p(t,"field"),t instanceof F){switch(t){case F.DAY_OF_MONTH:return this._day;case F.MONTH_OF_YEAR:return this._month}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i.isValidYear=function(t){return!1==(29===this._day&&2===this._month&&!1===ne.isLeap(t))},i.withMonth=function(t){return this.with(H.of(t))},i.with=function(t){if(p(t,"month"),t.value()===this._month)return this;var n=Math.min(this._day,t.maxLength());return new e(t.value(),n)},i.withDayOfMonth=function(t){return t===this._day?this:e.of(this._month,t)},i.query=function(e){return p(e,"query"),O(e,L,"query"),e===C.chronology()?ue.INSTANCE:t.prototype.query.call(this,e)},i.adjustInto=function(t){return p(t,"temporal"),(t=t.with(F.MONTH_OF_YEAR,this._month)).with(F.DAY_OF_MONTH,Math.min(t.range(F.DAY_OF_MONTH).maximum(),this._day))},i.atYear=function(t){return ce.of(t,this._month,this.isValidYear(t)?this._day:28)},i.compareTo=function(t){p(t,"other"),O(t,e,"other");var n=this._month-t.monthValue();return 0===n&&(n=this._day-t.dayOfMonth()),n},i.isAfter=function(t){return p(t,"other"),O(t,e,"other"),this.compareTo(t)>0},i.isBefore=function(t){return p(t,"other"),O(t,e,"other"),this.compareTo(t)<0},i.equals=function(t){if(this===t)return!0;if(t instanceof e){var n=t;return this.monthValue()===n.monthValue()&&this.dayOfMonth()===n.dayOfMonth()}return!1},i.toString=function(){return"--"+(this._month<10?"0":"")+this._month+(this._day<10?"-0":"-")+this._day},i.toJSON=function(){return this.toString()},i.format=function(t){return p(t,"formatter"),O(t,Xt,"formatter"),t.format(this)},e}(Y);var $t,te=function(t){function e(e,n){var i;return(i=t.call(this)||this)._year=D.safeToInt(e),i._month=D.safeToInt(n),i}l(e,t),e.now=function(t){return 0===arguments.length?e.now0():1===arguments.length&&t instanceof j?e.nowZoneId(t):e.nowClock(t)},e.now0=function(){return e.nowClock(Oe.systemDefaultZone())},e.nowZoneId=function(t){return e.nowClock(Oe.system(t))},e.nowClock=function(t){var n=ce.now(t);return e.of(n.year(),n.month())},e.of=function(t,n){return 2===arguments.length&&n instanceof H?e.ofNumberMonth(t,n):e.ofNumberNumber(t,n)},e.ofNumberMonth=function(t,n){return p(n,"month"),O(n,H,"month"),e.ofNumberNumber(t,n.value())},e.ofNumberNumber=function(t,n){return p(t,"year"),p(n,"month"),F.YEAR.checkValidValue(t),F.MONTH_OF_YEAR.checkValidValue(n),new e(t,n)},e.from=function(t){if(p(t,"temporal"),t instanceof e)return t;try{return e.of(t.get(F.YEAR),t.get(F.MONTH_OF_YEAR))}catch(e){throw new n("Unable to obtain YearMonth from TemporalAccessor: "+t+", type "+(t&&null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return 1===arguments.length?e.parseString(t):e.parseStringFormatter(t,n)},e.parseString=function(t){return e.parseStringFormatter(t,$t)},e.parseStringFormatter=function(t,n){return p(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i.isSupported=function(t){return 1===arguments.length&&t instanceof g?this.isSupportedField(t):this.isSupportedUnit(t)},i.isSupportedField=function(t){return t instanceof F?t===F.YEAR||t===F.MONTH_OF_YEAR||t===F.PROLEPTIC_MONTH||t===F.YEAR_OF_ERA||t===F.ERA:null!=t&&t.isSupportedBy(this)},i.isSupportedUnit=function(t){return t instanceof R?t===R.MONTHS||t===R.YEARS||t===R.DECADES||t===R.CENTURIES||t===R.MILLENNIA||t===R.ERAS:null!=t&&t.isSupportedBy(this)},i.range=function(e){return e===F.YEAR_OF_ERA?this.year()<=0?I.of(1,ne.MAX_VALUE+1):I.of(1,ne.MAX_VALUE):t.prototype.range.call(this,e)},i.get=function(t){return p(t,"field"),O(t,g,"field"),this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(p(t,"field"),O(t,g,"field"),t instanceof F){switch(t){case F.MONTH_OF_YEAR:return this._month;case F.PROLEPTIC_MONTH:return this._getProlepticMonth();case F.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case F.YEAR:return this._year;case F.ERA:return this._year<1?0:1}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i._getProlepticMonth=function(){return D.safeAdd(D.safeMultiply(this._year,12),this._month-1)},i.year=function(){return this._year},i.monthValue=function(){return this._month},i.month=function(){return H.of(this._month)},i.isLeapYear=function(){return ue.isLeapYear(this._year)},i.isValidDay=function(t){return t>=1&&t<=this.lengthOfMonth()},i.lengthOfMonth=function(){return this.month().length(this.isLeapYear())},i.lengthOfYear=function(){return this.isLeapYear()?366:365},i.with=function(t,e){return 1===arguments.length?this._withAdjuster(t):this._withField(t,e)},i._withField=function(t,e){if(p(t,"field"),O(t,g,"field"),t instanceof F){var n=t;switch(n.checkValidValue(e),n){case F.MONTH_OF_YEAR:return this.withMonth(e);case F.PROLEPTIC_MONTH:return this.plusMonths(e-this.getLong(F.PROLEPTIC_MONTH));case F.YEAR_OF_ERA:return this.withYear(this._year<1?1-e:e);case F.YEAR:return this.withYear(e);case F.ERA:return this.getLong(F.ERA)===e?this:this.withYear(1-this._year)}throw new r("Unsupported field: "+t)}return t.adjustInto(this,e)},i.withYear=function(t){return F.YEAR.checkValidValue(t),new e(t,this._month)},i.withMonth=function(t){return F.MONTH_OF_YEAR.checkValidValue(t),new e(this._year,t)},i._plusUnit=function(t,e){if(p(e,"unit"),O(e,v,"unit"),e instanceof R){switch(e){case R.MONTHS:return this.plusMonths(t);case R.YEARS:return this.plusYears(t);case R.DECADES:return this.plusYears(D.safeMultiply(t,10));case R.CENTURIES:return this.plusYears(D.safeMultiply(t,100));case R.MILLENNIA:return this.plusYears(D.safeMultiply(t,1e3));case R.ERAS:return this.with(F.ERA,D.safeAdd(this.getLong(F.ERA),t))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusYears=function(t){if(0===t)return this;var e=F.YEAR.checkValidIntValue(this._year+t);return this.withYear(e)},i.plusMonths=function(t){if(0===t)return this;var n=12*this._year+(this._month-1)+t;return new e(F.YEAR.checkValidIntValue(D.floorDiv(n,12)),D.floorMod(n,12)+1)},i.minusYears=function(t){return t===D.MIN_SAFE_INTEGER?this.plusYears(D.MIN_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},i.minusMonths=function(t){return t===D.MIN_SAFE_INTEGER?this.plusMonths(Math.MAX_SAFE_INTEGER).plusMonths(1):this.plusMonths(-t)},i.query=function(e){return p(e,"query"),O(e,L,"query"),e===C.chronology()?ue.INSTANCE:e===C.precision()?R.MONTHS:e===C.localDate()||e===C.localTime()||e===C.zone()||e===C.zoneId()||e===C.offset()?null:t.prototype.query.call(this,e)},i.adjustInto=function(t){return p(t,"temporal"),O(t,Z,"temporal"),t.with(F.PROLEPTIC_MONTH,this._getProlepticMonth())},i.until=function(t,n){p(t,"endExclusive"),p(n,"unit"),O(t,Z,"endExclusive"),O(n,v,"unit");var i=e.from(t);if(n instanceof R){var s=i._getProlepticMonth()-this._getProlepticMonth();switch(n){case R.MONTHS:return s;case R.YEARS:return D.intDiv(s,12);case R.DECADES:return D.intDiv(s,120);case R.CENTURIES:return D.intDiv(s,1200);case R.MILLENNIA:return D.intDiv(s,12e3);case R.ERAS:return i.getLong(F.ERA)-this.getLong(F.ERA)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.atDay=function(t){return p(t,"dayOfMonth"),ce.of(this._year,this._month,t)},i.atEndOfMonth=function(){return ce.of(this._year,this._month,this.lengthOfMonth())},i.compareTo=function(t){p(t,"other"),O(t,e,"other");var n=this._year-t.year();return 0===n&&(n=this._month-t.monthValue()),n},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.equals=function(t){if(this===t)return!0;if(t instanceof e){var n=t;return this.year()===n.year()&&this.monthValue()===n.monthValue()}return!1},i.toString=function(){return $t.format(this)},i.toJSON=function(){return this.toString()},i.format=function(t){return p(t,"formatter"),t.format(this)},e}(Z);var ee,ne=function(t){function e(e){var n;return(n=t.call(this)||this)._year=D.safeToInt(e),n}l(e,t);var i=e.prototype;return i.value=function(){return this._year},e.now=function(t){return void 0===t&&(t=void 0),void 0===t?e.now0():t instanceof j?e.nowZoneId(t):e.nowClock(t)},e.now0=function(){return e.nowClock(Oe.systemDefaultZone())},e.nowZoneId=function(t){return p(t,"zone"),O(t,j,"zone"),e.nowClock(Oe.system(t))},e.nowClock=function(t){p(t,"clock"),O(t,Oe,"clock");var n=ce.now(t);return e.of(n.year())},e.of=function(t){return p(t,"isoYear"),F.YEAR.checkValidValue(t),new e(t)},e.from=function(t){if(p(t,"temporal"),O(t,Y,"temporal"),t instanceof e)return t;try{return e.of(t.get(F.YEAR))}catch(e){throw new n("Unable to obtain Year from TemporalAccessor: "+t+", type "+(t&&null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return arguments.length<=1?e.parseText(t):e.parseTextFormatter(t,n)},e.parseText=function(t){return p(t,"text"),e.parse(t,ee)},e.parseTextFormatter=function(t,n){return void 0===n&&(n=ee),p(t,"text"),p(n,"formatter"),O(n,Xt,"formatter"),n.parse(t,e.FROM)},e.isLeap=function(t){return 0===D.intMod(t,4)&&(0!==D.intMod(t,100)||0===D.intMod(t,400))},i.isSupported=function(t){return 1===arguments.length&&t instanceof g?this.isSupportedField(t):this.isSupportedUnit(t)},i.isSupportedField=function(t){return t instanceof F?t===F.YEAR||t===F.YEAR_OF_ERA||t===F.ERA:null!=t&&t.isSupportedBy(this)},i.isSupportedUnit=function(t){return t instanceof R?t===R.YEARS||t===R.DECADES||t===R.CENTURIES||t===R.MILLENNIA||t===R.ERAS:null!=t&&t.isSupportedBy(this)},i.range=function(e){if(this.isSupported(e))return e.range();if(e instanceof F)throw new r("Unsupported field: "+e);return t.prototype.range.call(this,e)},i.get=function(t){return this.range(t).checkValidIntValue(this.getLong(t),t)},i.getLong=function(t){if(p(t,"field"),t instanceof F){switch(t){case F.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case F.YEAR:return this._year;case F.ERA:return this._year<1?0:1}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i.isLeap=function(){return e.isLeap(this._year)},i._withField=function(t,n){if(p(t,"field"),O(t,g,"field"),t instanceof F){switch(t.checkValidValue(n),t){case F.YEAR_OF_ERA:return e.of(this._year<1?1-n:n);case F.YEAR:return e.of(n);case F.ERA:return this.getLong(F.ERA)===n?this:e.of(1-this._year)}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i._plusUnit=function(t,e){if(p(t,"amountToAdd"),p(e,"unit"),O(e,v,"unit"),e instanceof R){switch(e){case R.YEARS:return this.plusYears(t);case R.DECADES:return this.plusYears(D.safeMultiply(t,10));case R.CENTURIES:return this.plusYears(D.safeMultiply(t,100));case R.MILLENNIA:return this.plusYears(D.safeMultiply(t,1e3));case R.ERAS:return this.with(F.ERA,D.safeAdd(this.getLong(F.ERA),t))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusYears=function(t){return 0===t?this:e.of(F.YEAR.checkValidIntValue(D.safeAdd(this._year,t)))},i.minusYears=function(t){return t===D.MIN_SAFE_INTEGER?this.plusYears(D.MAX_SAFE_INTEGER).plusYears(1):this.plusYears(-t)},i.adjustInto=function(t){return p(t,"temporal"),t.with(F.YEAR,this._year)},i.isValidMonthDay=function(t){return null!=t&&t.isValidYear(this._year)},i.length=function(){return this.isLeap()?366:365},i.atDay=function(t){return ce.ofYearDay(this._year,t)},i.atMonth=function(t){return 1===arguments.length&&t instanceof H?this.atMonthMonth(t):this.atMonthNumber(t)},i.atMonthMonth=function(t){return p(t,"month"),O(t,H,"month"),te.of(this._year,t)},i.atMonthNumber=function(t){return p(t,"month"),te.of(this._year,t)},i.atMonthDay=function(t){return p(t,"monthDay"),O(t,Qt,"monthDay"),t.atYear(this._year)},i.query=function(e){return p(e,"query()"),O(e,L,"query()"),e===C.chronology()?ue.INSTANCE:e===C.precision()?R.YEARS:e===C.localDate()||e===C.localTime()||e===C.zone()||e===C.zoneId()||e===C.offset()?null:t.prototype.query.call(this,e)},i.compareTo=function(t){return p(t,"other"),O(t,e,"other"),this._year-t._year},i.isAfter=function(t){return p(t,"other"),O(t,e,"other"),this._year>t._year},i.isBefore=function(t){return p(t,"other"),O(t,e,"other"),this._year<t._year},i.format=function(t){return p(t,"formatter"),O(t,Xt,"formatter"),t.format(this)},i.equals=function(t){return this===t||t instanceof e&&this.value()===t.value()},i.toString=function(){return""+this._year},i.toJSON=function(){return this.toString()},i.until=function(t,n){var i=e.from(t);if(n instanceof R){var s=i.value()-this.value();switch(n){case R.YEARS:return s;case R.DECADES:return D.intDiv(s,10);case R.CENTURIES:return D.intDiv(s,100);case R.MILLENNIA:return D.intDiv(s,1e3);case R.ERAS:return i.getLong(F.ERA)-this.getLong(F.ERA)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},e}(Z);var ie=function(){function t(){}return t.prototype.adjustInto=function(t){E("adjustInto")},t}(),re=function(){function t(){}return t.firstDayOfMonth=function(){return se.FIRST_DAY_OF_MONTH},t.lastDayOfMonth=function(){return se.LAST_DAY_OF_MONTH},t.firstDayOfNextMonth=function(){return se.FIRST_DAY_OF_NEXT_MONTH},t.firstDayOfYear=function(){return se.FIRST_DAY_OF_YEAR},t.lastDayOfYear=function(){return se.LAST_DAY_OF_YEAR},t.firstDayOfNextYear=function(){return se.FIRST_DAY_OF_NEXT_YEAR},t.firstInMonth=function(t){return p(t,"dayOfWeek"),new oe(1,t)},t.lastInMonth=function(t){return p(t,"dayOfWeek"),new oe(-1,t)},t.dayOfWeekInMonth=function(t,e){return p(e,"dayOfWeek"),new oe(t,e)},t.next=function(t){return new ae(2,t)},t.nextOrSame=function(t){return new ae(0,t)},t.previous=function(t){return new ae(3,t)},t.previousOrSame=function(t){return new ae(1,t)},t}(),se=function(t){function e(e){var n;return(n=t.call(this)||this)._ordinal=e,n}return l(e,t),e.prototype.adjustInto=function(t){switch(this._ordinal){case 0:return t.with(F.DAY_OF_MONTH,1);case 1:return t.with(F.DAY_OF_MONTH,t.range(F.DAY_OF_MONTH).maximum());case 2:return t.with(F.DAY_OF_MONTH,1).plus(1,R.MONTHS);case 3:return t.with(F.DAY_OF_YEAR,1);case 4:return t.with(F.DAY_OF_YEAR,t.range(F.DAY_OF_YEAR).maximum());case 5:return t.with(F.DAY_OF_YEAR,1).plus(1,R.YEARS)}throw new a("Unreachable")},e}(ie);se.FIRST_DAY_OF_MONTH=new se(0),se.LAST_DAY_OF_MONTH=new se(1),se.FIRST_DAY_OF_NEXT_MONTH=new se(2),se.FIRST_DAY_OF_YEAR=new se(3),se.LAST_DAY_OF_YEAR=new se(4),se.FIRST_DAY_OF_NEXT_YEAR=new se(5);var oe=function(t){function e(e,n){var i;return(i=t.call(this)||this)._ordinal=e,i._dowValue=n.value(),i}return l(e,t),e.prototype.adjustInto=function(t){if(this._ordinal>=0){var e=t.with(F.DAY_OF_MONTH,1),n=e.get(F.DAY_OF_WEEK),i=D.intMod(this._dowValue-n+7,7);return i+=7*(this._ordinal-1),e.plus(i,R.DAYS)}var r=t.with(F.DAY_OF_MONTH,t.range(F.DAY_OF_MONTH).maximum()),s=r.get(F.DAY_OF_WEEK),o=this._dowValue-s;return o=0===o?0:o>0?o-7:o,o-=7*(-this._ordinal-1),r.plus(o,R.DAYS)},e}(ie),ae=function(t){function e(e,n){var i;return i=t.call(this)||this,p(n,"dayOfWeek"),i._relative=e,i._dowValue=n.value(),i}return l(e,t),e.prototype.adjustInto=function(t){var e=t.get(F.DAY_OF_WEEK);if(this._relative<2&&e===this._dowValue)return t;if(1&this._relative){var n=this._dowValue-e;return t.minus(n>=0?7-n:-n,R.DAYS)}var i=e-this._dowValue;return t.plus(i>=0?7-i:-i,R.DAYS)},e}(ie),ue=function(t){function e(){return t.apply(this,arguments)||this}l(e,t),e.isLeapYear=function(t){return!(3&t||t%100==0&&t%400!=0)};var i=e.prototype;return i._updateResolveMap=function(t,e,i){p(t,"fieldValues"),p(e,"field");var r=t.get(e);if(null!=r&&r!==i)throw new n("Invalid state, field: "+e+" "+r+" conflicts with "+e+" "+i);t.put(e,i)},i.resolveDate=function(t,e){if(t.containsKey(F.EPOCH_DAY))return ce.ofEpochDay(t.remove(F.EPOCH_DAY));var i=t.remove(F.PROLEPTIC_MONTH);null!=i&&(e!==q.LENIENT&&F.PROLEPTIC_MONTH.checkValidValue(i),this._updateResolveMap(t,F.MONTH_OF_YEAR,D.floorMod(i,12)+1),this._updateResolveMap(t,F.YEAR,D.floorDiv(i,12)));var r=t.remove(F.YEAR_OF_ERA);if(null!=r){e!==q.LENIENT&&F.YEAR_OF_ERA.checkValidValue(r);var s=t.remove(F.ERA);if(null==s){var o=t.get(F.YEAR);e===q.STRICT?null!=o?this._updateResolveMap(t,F.YEAR,o>0?r:D.safeSubtract(1,r)):t.put(F.YEAR_OF_ERA,r):this._updateResolveMap(t,F.YEAR,null==o||o>0?r:D.safeSubtract(1,r))}else if(1===s)this._updateResolveMap(t,F.YEAR,r);else{if(0!==s)throw new n("Invalid value for era: "+s);this._updateResolveMap(t,F.YEAR,D.safeSubtract(1,r))}}else t.containsKey(F.ERA)&&F.ERA.checkValidValue(t.get(F.ERA));if(t.containsKey(F.YEAR)){if(t.containsKey(F.MONTH_OF_YEAR)&&t.containsKey(F.DAY_OF_MONTH)){var a=F.YEAR.checkValidIntValue(t.remove(F.YEAR)),u=t.remove(F.MONTH_OF_YEAR),h=t.remove(F.DAY_OF_MONTH);if(e===q.LENIENT){var f=u-1,c=h-1;return ce.of(a,1,1).plusMonths(f).plusDays(c)}return e===q.SMART?(F.DAY_OF_MONTH.checkValidValue(h),4===u||6===u||9===u||11===u?h=Math.min(h,30):2===u&&(h=Math.min(h,H.FEBRUARY.length(ne.isLeap(a)))),ce.of(a,u,h)):ce.of(a,u,h)}if(t.containsKey(F.DAY_OF_YEAR)){var l=F.YEAR.checkValidIntValue(t.remove(F.YEAR));if(e===q.LENIENT){var _=D.safeSubtract(t.remove(F.DAY_OF_YEAR),1);return ce.ofYearDay(l,1).plusDays(_)}var d=F.DAY_OF_YEAR.checkValidIntValue(t.remove(F.DAY_OF_YEAR));return ce.ofYearDay(l,d)}if(t.containsKey(F.ALIGNED_WEEK_OF_YEAR)){if(t.containsKey(F.ALIGNED_DAY_OF_WEEK_IN_YEAR)){var p=F.YEAR.checkValidIntValue(t.remove(F.YEAR));if(e===q.LENIENT){var O=D.safeSubtract(t.remove(F.ALIGNED_WEEK_OF_YEAR),1),E=D.safeSubtract(t.remove(F.ALIGNED_DAY_OF_WEEK_IN_YEAR),1);return ce.of(p,1,1).plusWeeks(O).plusDays(E)}var S=F.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(F.ALIGNED_WEEK_OF_YEAR)),m=F.ALIGNED_DAY_OF_WEEK_IN_YEAR.checkValidIntValue(t.remove(F.ALIGNED_DAY_OF_WEEK_IN_YEAR)),N=ce.of(p,1,1).plusDays(7*(S-1)+(m-1));if(e===q.STRICT&&N.get(F.YEAR)!==p)throw new n("Strict mode rejected date parsed to a different year");return N}if(t.containsKey(F.DAY_OF_WEEK)){var A=F.YEAR.checkValidIntValue(t.remove(F.YEAR));if(e===q.LENIENT){var T=D.safeSubtract(t.remove(F.ALIGNED_WEEK_OF_YEAR),1),v=D.safeSubtract(t.remove(F.DAY_OF_WEEK),1);return ce.of(A,1,1).plusWeeks(T).plusDays(v)}var y=F.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(t.remove(F.ALIGNED_WEEK_OF_YEAR)),w=F.DAY_OF_WEEK.checkValidIntValue(t.remove(F.DAY_OF_WEEK)),M=ce.of(A,1,1).plusWeeks(y-1).with(re.nextOrSame(V.of(w)));if(e===q.STRICT&&M.get(F.YEAR)!==A)throw new n("Strict mode rejected date parsed to a different month");return M}}}return null},i.date=function(t){return ce.from(t)},e}(A);var he=146097,fe=719528,ce=function(t){function e(n,i,r){var s;return s=t.call(this)||this,p(n,"year"),p(i,"month"),p(r,"dayOfMonth"),i instanceof H&&(i=i.value()),s._year=D.safeToInt(n),s._month=D.safeToInt(i),s._day=D.safeToInt(r),e._validate(s._year,s._month,s._day),s}l(e,t),e.now=function(t){var n;return n=null==t?Oe.systemDefaultZone():t instanceof j?Oe.system(t):t,e.ofInstant(n.instant(),n.zone())},e.ofInstant=function(t,n){void 0===n&&(n=j.systemDefault()),p(t,"instant");var i=n.rules().offset(t),r=t.epochSecond()+i.totalSeconds(),s=D.floorDiv(r,_e.SECONDS_PER_DAY);return e.ofEpochDay(s)},e.of=function(t,n,i){return new e(t,n,i)},e.ofYearDay=function(t,i){F.YEAR.checkValidValue(t);var r=ue.isLeapYear(t);366===i&&!1===r&&d(!1,"Invalid date 'DayOfYear 366' as '"+t+"' is not a leap year",n);var s=H.of(Math.floor((i-1)/31+1));i>s.firstDayOfYear(r)+s.length(r)-1&&(s=s.plus(1));var o=i-s.firstDayOfYear(r)+1;return new e(t,s.value(),o)},e.ofEpochDay=function(t){var n,i,r,s,o;void 0===t&&(t=0),F.EPOCH_DAY.checkValidValue(t),o=t+fe,n=0,(o-=60)<0&&(n=400*(i=D.intDiv(o+1,he)-1),o+=-i*he),(r=o-(365*(s=D.intDiv(400*o+591,he))+D.intDiv(s,4)-D.intDiv(s,100)+D.intDiv(s,400)))<0&&(r=o-(365*--s+D.intDiv(s,4)-D.intDiv(s,100)+D.intDiv(s,400))),s+=n;var a=r,u=D.intDiv(5*a+2,153),h=(u+2)%12+1,f=a-D.intDiv(306*u+5,10)+1;return new e(s+=D.intDiv(u,10),h,f)},e.from=function(t){p(t,"temporal");var e=t.query(C.localDate());if(null==e)throw new n("Unable to obtain LocalDate from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},e.parse=function(t,n){return void 0===n&&(n=Xt.ISO_LOCAL_DATE),d(null!=n,"formatter",u),n.parse(t,e.FROM)},e._resolvePreviousValid=function(t,n,i){switch(n){case 2:i=Math.min(i,ue.isLeapYear(t)?29:28);break;case 4:case 6:case 9:case 11:i=Math.min(i,30)}return e.of(t,n,i)},e._validate=function(t,e,i){var r;if(F.YEAR.checkValidValue(t),F.MONTH_OF_YEAR.checkValidValue(e),F.DAY_OF_MONTH.checkValidValue(i),i>28){switch(r=31,e){case 2:r=ue.isLeapYear(t)?29:28;break;case 4:case 6:case 9:case 11:r=30}i>r&&d(!1,29===i?"Invalid date 'February 29' as '"+t+"' is not a leap year":"Invalid date '"+t+"' '"+e+"' '"+i+"'",n)}};var i=e.prototype;return i.isSupported=function(e){return t.prototype.isSupported.call(this,e)},i.range=function(t){if(t instanceof F){if(t.isDateBased()){switch(t){case F.DAY_OF_MONTH:return I.of(1,this.lengthOfMonth());case F.DAY_OF_YEAR:return I.of(1,this.lengthOfYear());case F.ALIGNED_WEEK_OF_MONTH:return I.of(1,this.month()===H.FEBRUARY&&!1===this.isLeapYear()?4:5);case F.YEAR_OF_ERA:return this._year<=0?I.of(1,ne.MAX_VALUE+1):I.of(1,ne.MAX_VALUE)}return t.range()}throw new r("Unsupported field: "+t)}return t.rangeRefinedBy(this)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){return d(null!=t,"",u),t instanceof F?this._get0(t):t.getFrom(this)},i._get0=function(t){switch(t){case F.DAY_OF_WEEK:return this.dayOfWeek().value();case F.ALIGNED_DAY_OF_WEEK_IN_MONTH:return D.intMod(this._day-1,7)+1;case F.ALIGNED_DAY_OF_WEEK_IN_YEAR:return D.intMod(this.dayOfYear()-1,7)+1;case F.DAY_OF_MONTH:return this._day;case F.DAY_OF_YEAR:return this.dayOfYear();case F.EPOCH_DAY:return this.toEpochDay();case F.ALIGNED_WEEK_OF_MONTH:return D.intDiv(this._day-1,7)+1;case F.ALIGNED_WEEK_OF_YEAR:return D.intDiv(this.dayOfYear()-1,7)+1;case F.MONTH_OF_YEAR:return this._month;case F.PROLEPTIC_MONTH:return this._prolepticMonth();case F.YEAR_OF_ERA:return this._year>=1?this._year:1-this._year;case F.YEAR:return this._year;case F.ERA:return this._year>=1?1:0}throw new r("Unsupported field: "+t)},i._prolepticMonth=function(){return 12*this._year+(this._month-1)},i.chronology=function(){return ue.INSTANCE},i.year=function(){return this._year},i.monthValue=function(){return this._month},i.month=function(){return H.of(this._month)},i.dayOfMonth=function(){return this._day},i.dayOfYear=function(){return this.month().firstDayOfYear(this.isLeapYear())+this._day-1},i.dayOfWeek=function(){var t=D.floorMod(this.toEpochDay()+3,7);return V.of(t+1)},i.isLeapYear=function(){return ue.isLeapYear(this._year)},i.lengthOfMonth=function(){switch(this._month){case 2:return this.isLeapYear()?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}},i.lengthOfYear=function(){return this.isLeapYear()?366:365},i._withAdjuster=function(n){return p(n,"adjuster"),n instanceof e?n:t.prototype._withAdjuster.call(this,n)},i._withField=function(t,n){if(d(null!=t,"field",u),t instanceof F){var i=t;switch(i.checkValidValue(n),i){case F.DAY_OF_WEEK:return this.plusDays(n-this.dayOfWeek().value());case F.ALIGNED_DAY_OF_WEEK_IN_MONTH:return this.plusDays(n-this.getLong(F.ALIGNED_DAY_OF_WEEK_IN_MONTH));case F.ALIGNED_DAY_OF_WEEK_IN_YEAR:return this.plusDays(n-this.getLong(F.ALIGNED_DAY_OF_WEEK_IN_YEAR));case F.DAY_OF_MONTH:return this.withDayOfMonth(n);case F.DAY_OF_YEAR:return this.withDayOfYear(n);case F.EPOCH_DAY:return e.ofEpochDay(n);case F.ALIGNED_WEEK_OF_MONTH:return this.plusWeeks(n-this.getLong(F.ALIGNED_WEEK_OF_MONTH));case F.ALIGNED_WEEK_OF_YEAR:return this.plusWeeks(n-this.getLong(F.ALIGNED_WEEK_OF_YEAR));case F.MONTH_OF_YEAR:return this.withMonth(n);case F.PROLEPTIC_MONTH:return this.plusMonths(n-this.getLong(F.PROLEPTIC_MONTH));case F.YEAR_OF_ERA:return this.withYear(this._year>=1?n:1-n);case F.YEAR:return this.withYear(n);case F.ERA:return this.getLong(F.ERA)===n?this:this.withYear(1-this._year)}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i.withYear=function(t){return this._year===t?this:(F.YEAR.checkValidValue(t),e._resolvePreviousValid(t,this._month,this._day))},i.withMonth=function(t){var n=t instanceof H?t.value():t;return this._month===n?this:(F.MONTH_OF_YEAR.checkValidValue(n),e._resolvePreviousValid(this._year,n,this._day))},i.withDayOfMonth=function(t){return this._day===t?this:e.of(this._year,this._month,t)},i.withDayOfYear=function(t){return this.dayOfYear()===t?this:e.ofYearDay(this._year,t)},i._plusUnit=function(t,e){if(p(t,"amountToAdd"),p(e,"unit"),e instanceof R){switch(e){case R.DAYS:return this.plusDays(t);case R.WEEKS:return this.plusWeeks(t);case R.MONTHS:return this.plusMonths(t);case R.YEARS:return this.plusYears(t);case R.DECADES:return this.plusYears(D.safeMultiply(t,10));case R.CENTURIES:return this.plusYears(D.safeMultiply(t,100));case R.MILLENNIA:return this.plusYears(D.safeMultiply(t,1e3));case R.ERAS:return this.with(F.ERA,D.safeAdd(this.getLong(F.ERA),t))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusYears=function(t){if(0===t)return this;var n=F.YEAR.checkValidIntValue(this._year+t);return e._resolvePreviousValid(n,this._month,this._day)},i.plusMonths=function(t){if(0===t)return this;var n=12*this._year+(this._month-1)+t,i=F.YEAR.checkValidIntValue(D.floorDiv(n,12)),r=D.floorMod(n,12)+1;return e._resolvePreviousValid(i,r,this._day)},i.plusWeeks=function(t){return this.plusDays(D.safeMultiply(t,7))},i.plusDays=function(t){if(0===t)return this;var n=D.safeAdd(this.toEpochDay(),t);return e.ofEpochDay(n)},i._minusUnit=function(t,e){return p(t,"amountToSubtract"),p(e,"unit"),this._plusUnit(-1*t,e)},i.minusYears=function(t){return this.plusYears(-1*t)},i.minusMonths=function(t){return this.plusMonths(-1*t)},i.minusWeeks=function(t){return this.plusWeeks(-1*t)},i.minusDays=function(t){return this.plusDays(-1*t)},i.query=function(e){return p(e,"query"),e===C.localDate()?this:t.prototype.query.call(this,e)},i.adjustInto=function(e){return t.prototype.adjustInto.call(this,e)},i.until=function(t,e){return arguments.length<2?this.until1(t):this.until2(t,e)},i.until2=function(t,n){var i=e.from(t);if(n instanceof R){switch(n){case R.DAYS:return this.daysUntil(i);case R.WEEKS:return D.intDiv(this.daysUntil(i),7);case R.MONTHS:return this._monthsUntil(i);case R.YEARS:return D.intDiv(this._monthsUntil(i),12);case R.DECADES:return D.intDiv(this._monthsUntil(i),120);case R.CENTURIES:return D.intDiv(this._monthsUntil(i),1200);case R.MILLENNIA:return D.intDiv(this._monthsUntil(i),12e3);case R.ERAS:return i.getLong(F.ERA)-this.getLong(F.ERA)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.daysUntil=function(t){return t.toEpochDay()-this.toEpochDay()},i._monthsUntil=function(t){var e=32*this._prolepticMonth()+this.dayOfMonth(),n=32*t._prolepticMonth()+t.dayOfMonth();return D.intDiv(n-e,32)},i.until1=function(t){var n=e.from(t),i=n._prolepticMonth()-this._prolepticMonth(),r=n._day-this._day;if(i>0&&r<0){i--;var s=this.plusMonths(i);r=n.toEpochDay()-s.toEpochDay()}else i<0&&r>0&&(i++,r-=n.lengthOfMonth());var o=D.intDiv(i,12),a=D.intMod(i,12);return k.of(o,a,r)},i.atTime=function(){return 1===arguments.length?this.atTime1.apply(this,arguments):this.atTime4.apply(this,arguments)},i.atTime1=function(t){if(p(t,"time"),t instanceof _e)return le.of(this,t);if(t instanceof et)return this._atTimeOffsetTime(t);throw new o("time must be an instance of LocalTime or OffsetTime"+(t&&t.constructor&&t.constructor.name?", but is "+t.constructor.name:""))},i.atTime4=function(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),this.atTime1(_e.of(t,e,n,i))},i._atTimeOffsetTime=function(t){return nt.of(le.of(this,t.toLocalTime()),t.offset())},i.atStartOfDay=function(t){return null!=t?this._atStartOfDayWithZone(t):le.of(this,_e.MIDNIGHT)},i._atStartOfDayWithZone=function(t){p(t,"zone");var e=this.atTime(_e.MIDNIGHT);if(t instanceof $==!1){var n=t.rules().transition(e);null!=n&&n.isGap()&&(e=n.dateTimeAfter())}return rt.of(e,t)},i.toEpochDay=function(){var t=this._year,e=this._month,n=0;return n+=365*t,t>=0?n+=D.intDiv(t+3,4)-D.intDiv(t+99,100)+D.intDiv(t+399,400):n-=D.intDiv(t,-4)-D.intDiv(t,-100)+D.intDiv(t,-400),n+=D.intDiv(367*e-362,12),n+=this.dayOfMonth()-1,e>2&&(n--,ue.isLeapYear(t)||n--),n-fe},i.compareTo=function(t){return p(t,"other"),O(t,e,"other"),this._compareTo0(t)},i._compareTo0=function(t){var e=this._year-t._year;return 0===e&&0===(e=this._month-t._month)&&(e=this._day-t._day),e},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.isEqual=function(t){return 0===this.compareTo(t)},i.equals=function(t){return this===t||t instanceof e&&0===this._compareTo0(t)},i.hashCode=function(){var t=this._year,e=this._month,n=this._day;return D.hash(4294965248&t^(t<<11)+(e<<6)+n)},i.toString=function(){var t=this._year,e=this._month,n=this._day;return(Math.abs(t)<1e3?t<0?"-"+(""+(t-1e4)).slice(-4):(""+(t+1e4)).slice(-4):t>9999?"+"+t:""+t)+(e<10?"-0"+e:"-"+e)+(n<10?"-0"+n:"-"+n)},i.toJSON=function(){return this.toString()},i.format=function(e){return p(e,"formatter"),O(e,Xt,"formatter"),t.prototype.format.call(this,e)},e}(z);var le=function(t){function e(e,n){var i;return i=t.call(this)||this,O(e,ce,"date"),O(n,_e,"time"),i._date=e,i._time=n,i}l(e,t),e.now=function(t){return null==t?e._now(Oe.systemDefaultZone()):t instanceof Oe?e._now(t):e._now(Oe.system(t))},e._now=function(t){return p(t,"clock"),e.ofInstant(t.instant(),t.zone())},e._ofEpochMillis=function(t,n){var i=D.floorDiv(t,1e3)+n.totalSeconds(),r=D.floorDiv(i,_e.SECONDS_PER_DAY),s=D.floorMod(i,_e.SECONDS_PER_DAY),o=1e6*D.floorMod(t,1e3);return new e(ce.ofEpochDay(r),_e.ofSecondOfDay(s,o))},e.of=function(){return arguments.length<=2?e.ofDateAndTime.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofNumbers=function(t,n,i,r,s,o,a){return void 0===r&&(r=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=0),new e(ce.of(t,n,i),_e.of(r,s,o,a))},e.ofDateAndTime=function(t,n){return p(t,"date"),p(n,"time"),new e(t,n)},e.ofInstant=function(t,n){void 0===n&&(n=j.systemDefault()),p(t,"instant"),O(t,pe,"instant"),p(n,"zone");var i=n.rules().offset(t);return e.ofEpochSecond(t.epochSecond(),t.nano(),i)},e.ofEpochSecond=function(t,n,i){void 0===t&&(t=0),void 0===n&&(n=0),2===arguments.length&&n instanceof $&&(i=n,n=0),p(i,"offset");var r=t+i.totalSeconds(),s=D.floorDiv(r,_e.SECONDS_PER_DAY),o=D.floorMod(r,_e.SECONDS_PER_DAY);return new e(ce.ofEpochDay(s),_e.ofSecondOfDay(o,n))},e.from=function(t){if(p(t,"temporal"),t instanceof e)return t;if(t instanceof rt)return t.toLocalDateTime();try{return new e(ce.from(t),_e.from(t))}catch(e){throw new n("Unable to obtain LocalDateTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""))}},e.parse=function(t,n){return void 0===n&&(n=Xt.ISO_LOCAL_DATE_TIME),p(n,"formatter"),n.parse(t,e.FROM)};var i=e.prototype;return i._withDateTime=function(t,n){return this._date.equals(t)&&this._time.equals(n)?this:new e(t,n)},i.isSupported=function(t){return t instanceof F||t instanceof R?t.isDateBased()||t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.range=function(t){return t instanceof F?t.isTimeBased()?this._time.range(t):this._date.range(t):t.rangeRefinedBy(this)},i.get=function(e){return e instanceof F?e.isTimeBased()?this._time.get(e):this._date.get(e):t.prototype.get.call(this,e)},i.getLong=function(t){return p(t,"field"),t instanceof F?t.isTimeBased()?this._time.getLong(t):this._date.getLong(t):t.getFrom(this)},i.year=function(){return this._date.year()},i.monthValue=function(){return this._date.monthValue()},i.month=function(){return this._date.month()},i.dayOfMonth=function(){return this._date.dayOfMonth()},i.dayOfYear=function(){return this._date.dayOfYear()},i.dayOfWeek=function(){return this._date.dayOfWeek()},i.hour=function(){return this._time.hour()},i.minute=function(){return this._time.minute()},i.second=function(){return this._time.second()},i.nano=function(){return this._time.nano()},i._withAdjuster=function(n){return p(n,"adjuster"),n instanceof ce?this._withDateTime(n,this._time):n instanceof _e?this._withDateTime(this._date,n):n instanceof e?n:t.prototype._withAdjuster.call(this,n)},i._withField=function(t,e){return p(t,"field"),t instanceof F?t.isTimeBased()?this._withDateTime(this._date,this._time.with(t,e)):this._withDateTime(this._date.with(t,e),this._time):t.adjustInto(this,e)},i.withYear=function(t){return this._withDateTime(this._date.withYear(t),this._time)},i.withMonth=function(t){return this._withDateTime(this._date.withMonth(t),this._time)},i.withDayOfMonth=function(t){return this._withDateTime(this._date.withDayOfMonth(t),this._time)},i.withDayOfYear=function(t){return this._withDateTime(this._date.withDayOfYear(t),this._time)},i.withHour=function(t){var e=this._time.withHour(t);return this._withDateTime(this._date,e)},i.withMinute=function(t){var e=this._time.withMinute(t);return this._withDateTime(this._date,e)},i.withSecond=function(t){var e=this._time.withSecond(t);return this._withDateTime(this._date,e)},i.withNano=function(t){var e=this._time.withNano(t);return this._withDateTime(this._date,e)},i.truncatedTo=function(t){return this._withDateTime(this._date,this._time.truncatedTo(t))},i._plusUnit=function(t,e){if(p(e,"unit"),e instanceof R){switch(e){case R.NANOS:return this.plusNanos(t);case R.MICROS:return this.plusDays(D.intDiv(t,_e.MICROS_PER_DAY)).plusNanos(1e3*D.intMod(t,_e.MICROS_PER_DAY));case R.MILLIS:return this.plusDays(D.intDiv(t,_e.MILLIS_PER_DAY)).plusNanos(1e6*D.intMod(t,_e.MILLIS_PER_DAY));case R.SECONDS:return this.plusSeconds(t);case R.MINUTES:return this.plusMinutes(t);case R.HOURS:return this.plusHours(t);case R.HALF_DAYS:return this.plusDays(D.intDiv(t,256)).plusHours(12*D.intMod(t,256))}return this._withDateTime(this._date.plus(t,e),this._time)}return e.addTo(this,t)},i.plusYears=function(t){var e=this._date.plusYears(t);return this._withDateTime(e,this._time)},i.plusMonths=function(t){var e=this._date.plusMonths(t);return this._withDateTime(e,this._time)},i.plusWeeks=function(t){var e=this._date.plusWeeks(t);return this._withDateTime(e,this._time)},i.plusDays=function(t){var e=this._date.plusDays(t);return this._withDateTime(e,this._time)},i.plusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,1)},i.plusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,1)},i.plusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,1)},i.plusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,1)},i._minusUnit=function(t,e){return p(e,"unit"),this._plusUnit(-1*t,e)},i.minusYears=function(t){return this.plusYears(-1*t)},i.minusMonths=function(t){return this.plusMonths(-1*t)},i.minusWeeks=function(t){return this.plusWeeks(-1*t)},i.minusDays=function(t){return this.plusDays(-1*t)},i.minusHours=function(t){return this._plusWithOverflow(this._date,t,0,0,0,-1)},i.minusMinutes=function(t){return this._plusWithOverflow(this._date,0,t,0,0,-1)},i.minusSeconds=function(t){return this._plusWithOverflow(this._date,0,0,t,0,-1)},i.minusNanos=function(t){return this._plusWithOverflow(this._date,0,0,0,t,-1)},i._plusWithOverflow=function(t,e,n,i,r,s){if(0===e&&0===n&&0===i&&0===r)return this._withDateTime(t,this._time);var o=D.intDiv(r,_e.NANOS_PER_DAY)+D.intDiv(i,_e.SECONDS_PER_DAY)+D.intDiv(n,_e.MINUTES_PER_DAY)+D.intDiv(e,_e.HOURS_PER_DAY);o*=s;var a=D.intMod(r,_e.NANOS_PER_DAY)+D.intMod(i,_e.SECONDS_PER_DAY)*_e.NANOS_PER_SECOND+D.intMod(n,_e.MINUTES_PER_DAY)*_e.NANOS_PER_MINUTE+D.intMod(e,_e.HOURS_PER_DAY)*_e.NANOS_PER_HOUR,u=this._time.toNanoOfDay();a=a*s+u,o+=D.floorDiv(a,_e.NANOS_PER_DAY);var h=D.floorMod(a,_e.NANOS_PER_DAY),f=h===u?this._time:_e.ofNanoOfDay(h);return this._withDateTime(t.plusDays(o),f)},i.query=function(e){return p(e,"query"),e===C.localDate()?this.toLocalDate():t.prototype.query.call(this,e)},i.adjustInto=function(e){return t.prototype.adjustInto.call(this,e)},i.until=function(t,n){p(t,"endExclusive"),p(n,"unit");var i=e.from(t);if(n instanceof R){if(n.isTimeBased()){var s=this._date.daysUntil(i._date),o=i._time.toNanoOfDay()-this._time.toNanoOfDay();s>0&&o<0?(s--,o+=_e.NANOS_PER_DAY):s<0&&o>0&&(s++,o-=_e.NANOS_PER_DAY);var a=s;switch(n){case R.NANOS:return a=D.safeMultiply(a,_e.NANOS_PER_DAY),D.safeAdd(a,o);case R.MICROS:return a=D.safeMultiply(a,_e.MICROS_PER_DAY),D.safeAdd(a,D.intDiv(o,1e3));case R.MILLIS:return a=D.safeMultiply(a,_e.MILLIS_PER_DAY),D.safeAdd(a,D.intDiv(o,1e6));case R.SECONDS:return a=D.safeMultiply(a,_e.SECONDS_PER_DAY),D.safeAdd(a,D.intDiv(o,_e.NANOS_PER_SECOND));case R.MINUTES:return a=D.safeMultiply(a,_e.MINUTES_PER_DAY),D.safeAdd(a,D.intDiv(o,_e.NANOS_PER_MINUTE));case R.HOURS:return a=D.safeMultiply(a,_e.HOURS_PER_DAY),D.safeAdd(a,D.intDiv(o,_e.NANOS_PER_HOUR));case R.HALF_DAYS:return a=D.safeMultiply(a,2),D.safeAdd(a,D.intDiv(o,12*_e.NANOS_PER_HOUR))}throw new r("Unsupported unit: "+n)}var u=i._date,h=i._time;return u.isAfter(this._date)&&h.isBefore(this._time)?u=u.minusDays(1):u.isBefore(this._date)&&h.isAfter(this._time)&&(u=u.plusDays(1)),this._date.until(u,n)}return n.between(this,i)},i.atOffset=function(t){return nt.of(this,t)},i.atZone=function(t){return rt.of(this,t)},i.toLocalDate=function(){return this._date},i.toLocalTime=function(){return this._time},i.compareTo=function(t){return p(t,"other"),O(t,e,"other"),this._compareTo0(t)},i._compareTo0=function(t){var e=this._date.compareTo(t.toLocalDate());return 0===e&&(e=this._time.compareTo(t.toLocalTime())),e},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.isEqual=function(t){return 0===this.compareTo(t)},i.equals=function(t){return this===t||t instanceof e&&(this._date.equals(t._date)&&this._time.equals(t._time))},i.hashCode=function(){return this._date.hashCode()^this._time.hashCode()},i.toString=function(){return this._date.toString()+"T"+this._time.toString()},i.toJSON=function(){return this.toString()},i.format=function(t){return p(t,"formatter"),t.format(this)},e}(tt);var _e=function(t){function e(n,i,r,s){var o;void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===s&&(s=0),o=t.call(this)||this;var a=D.safeToInt(n),u=D.safeToInt(i),h=D.safeToInt(r),c=D.safeToInt(s);return e._validate(a,u,h,c),0===u&&0===h&&0===c?(e.HOURS[a]||(o._hour=a,o._minute=u,o._second=h,o._nano=c,e.HOURS[a]=o),e.HOURS[a]||f(o)):(o._hour=a,o._minute=u,o._second=h,o._nano=c,o)}l(e,t),e.now=function(t){return null==t?e._now(Oe.systemDefaultZone()):t instanceof Oe?e._now(t):e._now(Oe.system(t))},e._now=function(t){return void 0===t&&(t=Oe.systemDefaultZone()),p(t,"clock"),e.ofInstant(t.instant(),t.zone())},e.ofInstant=function(t,n){void 0===n&&(n=j.systemDefault());var i=n.rules().offset(t),r=D.intMod(t.epochSecond(),e.SECONDS_PER_DAY);return(r=D.intMod(r+i.totalSeconds(),e.SECONDS_PER_DAY))<0&&(r+=e.SECONDS_PER_DAY),e.ofSecondOfDay(r,t.nano())},e.of=function(t,n,i,r){return new e(t,n,i,r)},e.ofSecondOfDay=function(t,n){void 0===t&&(t=0),void 0===n&&(n=0),F.SECOND_OF_DAY.checkValidValue(t),F.NANO_OF_SECOND.checkValidValue(n);var i=D.intDiv(t,e.SECONDS_PER_HOUR);t-=i*e.SECONDS_PER_HOUR;var r=D.intDiv(t,e.SECONDS_PER_MINUTE);return new e(i,r,t-=r*e.SECONDS_PER_MINUTE,n)},e.ofNanoOfDay=function(t){void 0===t&&(t=0),F.NANO_OF_DAY.checkValidValue(t);var n=D.intDiv(t,e.NANOS_PER_HOUR);t-=n*e.NANOS_PER_HOUR;var i=D.intDiv(t,e.NANOS_PER_MINUTE);t-=i*e.NANOS_PER_MINUTE;var r=D.intDiv(t,e.NANOS_PER_SECOND);return new e(n,i,r,t-=r*e.NANOS_PER_SECOND)},e.from=function(t){p(t,"temporal");var e=t.query(C.localTime());if(null==e)throw new n("Unable to obtain LocalTime TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},e.parse=function(t,n){return void 0===n&&(n=Xt.ISO_LOCAL_TIME),p(n,"formatter"),n.parse(t,e.FROM)},e._validate=function(t,e,n,i){F.HOUR_OF_DAY.checkValidValue(t),F.MINUTE_OF_HOUR.checkValidValue(e),F.SECOND_OF_MINUTE.checkValidValue(n),F.NANO_OF_SECOND.checkValidValue(i)};var i=e.prototype;return i.isSupported=function(t){return t instanceof F||t instanceof R?t.isTimeBased():null!=t&&t.isSupportedBy(this)},i.range=function(e){return p(e),t.prototype.range.call(this,e)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){return p(t,"field"),t instanceof F?this._get0(t):t.getFrom(this)},i._get0=function(t){switch(t){case F.NANO_OF_SECOND:return this._nano;case F.NANO_OF_DAY:return this.toNanoOfDay();case F.MICRO_OF_SECOND:return D.intDiv(this._nano,1e3);case F.MICRO_OF_DAY:return D.intDiv(this.toNanoOfDay(),1e3);case F.MILLI_OF_SECOND:return D.intDiv(this._nano,1e6);case F.MILLI_OF_DAY:return D.intDiv(this.toNanoOfDay(),1e6);case F.SECOND_OF_MINUTE:return this._second;case F.SECOND_OF_DAY:return this.toSecondOfDay();case F.MINUTE_OF_HOUR:return this._minute;case F.MINUTE_OF_DAY:return 60*this._hour+this._minute;case F.HOUR_OF_AMPM:return D.intMod(this._hour,12);case F.CLOCK_HOUR_OF_AMPM:var e=D.intMod(this._hour,12);return e%12==0?12:e;case F.HOUR_OF_DAY:return this._hour;case F.CLOCK_HOUR_OF_DAY:return 0===this._hour?24:this._hour;case F.AMPM_OF_DAY:return D.intDiv(this._hour,12)}throw new r("Unsupported field: "+t)},i.hour=function(){return this._hour},i.minute=function(){return this._minute},i.second=function(){return this._second},i.nano=function(){return this._nano},i._withAdjuster=function(n){return p(n,"adjuster"),n instanceof e?n:t.prototype._withAdjuster.call(this,n)},i._withField=function(t,n){if(p(t,"field"),O(t,g,"field"),t instanceof F){switch(t.checkValidValue(n),t){case F.NANO_OF_SECOND:return this.withNano(n);case F.NANO_OF_DAY:return e.ofNanoOfDay(n);case F.MICRO_OF_SECOND:return this.withNano(1e3*n);case F.MICRO_OF_DAY:return e.ofNanoOfDay(1e3*n);case F.MILLI_OF_SECOND:return this.withNano(1e6*n);case F.MILLI_OF_DAY:return e.ofNanoOfDay(1e6*n);case F.SECOND_OF_MINUTE:return this.withSecond(n);case F.SECOND_OF_DAY:return this.plusSeconds(n-this.toSecondOfDay());case F.MINUTE_OF_HOUR:return this.withMinute(n);case F.MINUTE_OF_DAY:return this.plusMinutes(n-(60*this._hour+this._minute));case F.HOUR_OF_AMPM:return this.plusHours(n-D.intMod(this._hour,12));case F.CLOCK_HOUR_OF_AMPM:return this.plusHours((12===n?0:n)-D.intMod(this._hour,12));case F.HOUR_OF_DAY:return this.withHour(n);case F.CLOCK_HOUR_OF_DAY:return this.withHour(24===n?0:n);case F.AMPM_OF_DAY:return this.plusHours(12*(n-D.intDiv(this._hour,12)))}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i.withHour=function(t){return void 0===t&&(t=0),this._hour===t?this:new e(t,this._minute,this._second,this._nano)},i.withMinute=function(t){return void 0===t&&(t=0),this._minute===t?this:new e(this._hour,t,this._second,this._nano)},i.withSecond=function(t){return void 0===t&&(t=0),this._second===t?this:new e(this._hour,this._minute,t,this._nano)},i.withNano=function(t){return void 0===t&&(t=0),this._nano===t?this:new e(this._hour,this._minute,this._second,t)},i.truncatedTo=function(t){if(p(t,"unit"),t===R.NANOS)return this;var i=t.duration();if(i.seconds()>e.SECONDS_PER_DAY)throw new n("Unit is too large to be used for truncation");var r=i.toNanos();if(0!==D.intMod(e.NANOS_PER_DAY,r))throw new n("Unit must divide into a standard day without remainder");var s=this.toNanoOfDay();return e.ofNanoOfDay(D.intDiv(s,r)*r)},i._plusUnit=function(t,n){if(p(n,"unit"),n instanceof R){switch(n){case R.NANOS:return this.plusNanos(t);case R.MICROS:return this.plusNanos(1e3*D.intMod(t,e.MICROS_PER_DAY));case R.MILLIS:return this.plusNanos(1e6*D.intMod(t,e.MILLIS_PER_DAY));case R.SECONDS:return this.plusSeconds(t);case R.MINUTES:return this.plusMinutes(t);case R.HOURS:return this.plusHours(t);case R.HALF_DAYS:return this.plusHours(12*D.intMod(t,2))}throw new r("Unsupported unit: "+n)}return n.addTo(this,t)},i.plusHours=function(t){return 0===t?this:new e(D.intMod(D.intMod(t,e.HOURS_PER_DAY)+this._hour+e.HOURS_PER_DAY,e.HOURS_PER_DAY),this._minute,this._second,this._nano)},i.plusMinutes=function(t){if(0===t)return this;var n=this._hour*e.MINUTES_PER_HOUR+this._minute,i=D.intMod(D.intMod(t,e.MINUTES_PER_DAY)+n+e.MINUTES_PER_DAY,e.MINUTES_PER_DAY);return n===i?this:new e(D.intDiv(i,e.MINUTES_PER_HOUR),D.intMod(i,e.MINUTES_PER_HOUR),this._second,this._nano)},i.plusSeconds=function(t){if(0===t)return this;var n=this._hour*e.SECONDS_PER_HOUR+this._minute*e.SECONDS_PER_MINUTE+this._second,i=D.intMod(D.intMod(t,e.SECONDS_PER_DAY)+n+e.SECONDS_PER_DAY,e.SECONDS_PER_DAY);return n===i?this:new e(D.intDiv(i,e.SECONDS_PER_HOUR),D.intMod(D.intDiv(i,e.SECONDS_PER_MINUTE),e.MINUTES_PER_HOUR),D.intMod(i,e.SECONDS_PER_MINUTE),this._nano)},i.plusNanos=function(t){if(0===t)return this;var n=this.toNanoOfDay(),i=D.intMod(D.intMod(t,e.NANOS_PER_DAY)+n+e.NANOS_PER_DAY,e.NANOS_PER_DAY);return n===i?this:new e(D.intDiv(i,e.NANOS_PER_HOUR),D.intMod(D.intDiv(i,e.NANOS_PER_MINUTE),e.MINUTES_PER_HOUR),D.intMod(D.intDiv(i,e.NANOS_PER_SECOND),e.SECONDS_PER_MINUTE),D.intMod(i,e.NANOS_PER_SECOND))},i._minusUnit=function(t,e){return p(e,"unit"),this._plusUnit(-1*t,e)},i.minusHours=function(t){return this.plusHours(-1*D.intMod(t,e.HOURS_PER_DAY))},i.minusMinutes=function(t){return this.plusMinutes(-1*D.intMod(t,e.MINUTES_PER_DAY))},i.minusSeconds=function(t){return this.plusSeconds(-1*D.intMod(t,e.SECONDS_PER_DAY))},i.minusNanos=function(t){return this.plusNanos(-1*D.intMod(t,e.NANOS_PER_DAY))},i.query=function(t){return p(t,"query"),t===C.precision()?R.NANOS:t===C.localTime()?this:t===C.chronology()||t===C.zoneId()||t===C.zone()||t===C.offset()||t===C.localDate()?null:t.queryFrom(this)},i.adjustInto=function(t){return t.with(e.NANO_OF_DAY,this.toNanoOfDay())},i.until=function(t,n){p(t,"endExclusive"),p(n,"unit");var i=e.from(t);if(n instanceof R){var s=i.toNanoOfDay()-this.toNanoOfDay();switch(n){case R.NANOS:return s;case R.MICROS:return D.intDiv(s,1e3);case R.MILLIS:return D.intDiv(s,1e6);case R.SECONDS:return D.intDiv(s,e.NANOS_PER_SECOND);case R.MINUTES:return D.intDiv(s,e.NANOS_PER_MINUTE);case R.HOURS:return D.intDiv(s,e.NANOS_PER_HOUR);case R.HALF_DAYS:return D.intDiv(s,12*e.NANOS_PER_HOUR)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i.atDate=function(t){return le.of(t,this)},i.atOffset=function(t){return et.of(this,t)},i.toSecondOfDay=function(){var t=this._hour*e.SECONDS_PER_HOUR;return t+=this._minute*e.SECONDS_PER_MINUTE,t+=this._second},i.toNanoOfDay=function(){var t=this._hour*e.NANOS_PER_HOUR;return t+=this._minute*e.NANOS_PER_MINUTE,t+=this._second*e.NANOS_PER_SECOND,t+=this._nano},i.compareTo=function(t){p(t,"other"),O(t,e,"other");var n=D.compareNumbers(this._hour,t._hour);return 0===n&&0===(n=D.compareNumbers(this._minute,t._minute))&&0===(n=D.compareNumbers(this._second,t._second))&&(n=D.compareNumbers(this._nano,t._nano)),n},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.equals=function(t){return this===t||t instanceof e&&(this._hour===t._hour&&this._minute===t._minute&&this._second===t._second&&this._nano===t._nano)},i.hashCode=function(){var t=this.toNanoOfDay();return D.hash(t)},i.toString=function(){var t="",e=this._hour,n=this._minute,i=this._second,r=this._nano;return t+=e<10?"0":"",t+=e,t+=n<10?":0":":",t+=n,(i>0||r>0)&&(t+=i<10?":0":":",t+=i,r>0&&(t+=".",0===D.intMod(r,1e6)?t+=(""+(D.intDiv(r,1e6)+1e3)).substring(1):0===D.intMod(r,1e3)?t+=(""+(D.intDiv(r,1e3)+1e6)).substring(1):t+=(""+(r+1e9)).substring(1))),t},i.toJSON=function(){return this.toString()},i.format=function(t){return p(t,"formatter"),t.format(this)},e}(Z);_e.HOURS_PER_DAY=24,_e.MINUTES_PER_HOUR=60,_e.MINUTES_PER_DAY=_e.MINUTES_PER_HOUR*_e.HOURS_PER_DAY,_e.SECONDS_PER_MINUTE=60,_e.SECONDS_PER_HOUR=_e.SECONDS_PER_MINUTE*_e.MINUTES_PER_HOUR,_e.SECONDS_PER_DAY=_e.SECONDS_PER_HOUR*_e.HOURS_PER_DAY,_e.MILLIS_PER_DAY=1e3*_e.SECONDS_PER_DAY,_e.MICROS_PER_DAY=1e6*_e.SECONDS_PER_DAY,_e.NANOS_PER_SECOND=1e9,_e.NANOS_PER_MINUTE=_e.NANOS_PER_SECOND*_e.SECONDS_PER_MINUTE,_e.NANOS_PER_HOUR=_e.NANOS_PER_MINUTE*_e.MINUTES_PER_HOUR,_e.NANOS_PER_DAY=_e.NANOS_PER_HOUR*_e.HOURS_PER_DAY;var de=1e6,pe=function(t){function e(n,i){var r;return r=t.call(this)||this,e._validate(n,i),r._seconds=D.safeToInt(n),r._nanos=D.safeToInt(i),r}l(e,t),e.now=function(t){return void 0===t&&(t=Oe.systemUTC()),t.instant()},e.ofEpochSecond=function(t,n){void 0===n&&(n=0);var i=t+D.floorDiv(n,_e.NANOS_PER_SECOND),r=D.floorMod(n,_e.NANOS_PER_SECOND);return e._create(i,r)},e.ofEpochMilli=function(t){var n=D.floorDiv(t,1e3),i=D.floorMod(t,1e3);return e._create(n,1e6*i)},e.ofEpochMicro=function(t){var n=D.floorDiv(t,1e6),i=D.floorMod(t,1e6);return e._create(n,1e3*i)},e.from=function(t){try{var i=t.getLong(F.INSTANT_SECONDS),r=t.get(F.NANO_OF_SECOND);return e.ofEpochSecond(i,r)}catch(e){throw new n("Unable to obtain Instant from TemporalAccessor: "+t+", type "+typeof t,e)}},e.parse=function(t){return Xt.ISO_INSTANT.parse(t,e.FROM)},e._create=function(t,n){return 0===t&&0===n?e.EPOCH:new e(t,n)},e._validate=function(t,i){if(t<e.MIN_SECONDS||t>e.MAX_SECONDS)throw new n("Instant exceeds minimum or maximum instant");if(i<0||i>_e.NANOS_PER_SECOND)throw new n("Instant exceeds minimum or maximum instant")};var i=e.prototype;return i.isSupported=function(t){return t instanceof F?t===F.INSTANT_SECONDS||t===F.NANO_OF_SECOND||t===F.MICRO_OF_SECOND||t===F.MILLI_OF_SECOND:t instanceof R?t.isTimeBased()||t===R.DAYS:null!=t&&t.isSupportedBy(this)},i.range=function(e){return t.prototype.range.call(this,e)},i.get=function(t){return this.getLong(t)},i.getLong=function(t){if(t instanceof F){switch(t){case F.NANO_OF_SECOND:return this._nanos;case F.MICRO_OF_SECOND:return D.intDiv(this._nanos,1e3);case F.MILLI_OF_SECOND:return D.intDiv(this._nanos,de);case F.INSTANT_SECONDS:return this._seconds}throw new r("Unsupported field: "+t)}return t.getFrom(this)},i.epochSecond=function(){return this._seconds},i.nano=function(){return this._nanos},i._withField=function(t,n){if(p(t,"field"),t instanceof F){switch(t.checkValidValue(n),t){case F.MILLI_OF_SECOND:var i=n*de;return i!==this._nanos?e._create(this._seconds,i):this;case F.MICRO_OF_SECOND:var s=1e3*n;return s!==this._nanos?e._create(this._seconds,s):this;case F.NANO_OF_SECOND:return n!==this._nanos?e._create(this._seconds,n):this;case F.INSTANT_SECONDS:return n!==this._seconds?e._create(n,this._nanos):this}throw new r("Unsupported field: "+t)}return t.adjustInto(this,n)},i.truncatedTo=function(t){if(p(t,"unit"),t===R.NANOS)return this;var e=t.duration();if(e.seconds()>_e.SECONDS_PER_DAY)throw new n("Unit is too large to be used for truncation");var i=e.toNanos();if(0!==D.intMod(_e.NANOS_PER_DAY,i))throw new n("Unit must divide into a standard day without remainder");var r=D.intMod(this._seconds,_e.SECONDS_PER_DAY)*_e.NANOS_PER_SECOND+this._nanos,s=D.floorDiv(r,i)*i;return this.plusNanos(s-r)},i._plusUnit=function(t,e){if(p(t,"amountToAdd"),p(e,"unit"),O(e,v),e instanceof R){switch(e){case R.NANOS:return this.plusNanos(t);case R.MICROS:return this.plusMicros(t);case R.MILLIS:return this.plusMillis(t);case R.SECONDS:return this.plusSeconds(t);case R.MINUTES:return this.plusSeconds(D.safeMultiply(t,_e.SECONDS_PER_MINUTE));case R.HOURS:return this.plusSeconds(D.safeMultiply(t,_e.SECONDS_PER_HOUR));case R.HALF_DAYS:return this.plusSeconds(D.safeMultiply(t,_e.SECONDS_PER_DAY/2));case R.DAYS:return this.plusSeconds(D.safeMultiply(t,_e.SECONDS_PER_DAY))}throw new r("Unsupported unit: "+e)}return e.addTo(this,t)},i.plusSeconds=function(t){return this._plus(t,0)},i.plusMillis=function(t){return this._plus(D.intDiv(t,1e3),D.intMod(t,1e3)*de)},i.plusNanos=function(t){return this._plus(0,t)},i.plusMicros=function(t){return this._plus(D.intDiv(t,1e6),1e3*D.intMod(t,1e6))},i._plus=function(t,n){if(0===t&&0===n)return this;var i=this._seconds+t;i+=D.intDiv(n,_e.NANOS_PER_SECOND);var r=this._nanos+n%_e.NANOS_PER_SECOND;return e.ofEpochSecond(i,r)},i._minusUnit=function(t,e){return this._plusUnit(-1*t,e)},i.minusSeconds=function(t){return this.plusSeconds(-1*t)},i.minusMillis=function(t){return this.plusMillis(-1*t)},i.minusNanos=function(t){return this.plusNanos(-1*t)},i.minusMicros=function(t){return this.plusMicros(-1*t)},i.query=function(t){return p(t,"query"),t===C.precision()?R.NANOS:t===C.localDate()||t===C.localTime()||t===C.chronology()||t===C.zoneId()||t===C.zone()||t===C.offset()?null:t.queryFrom(this)},i.adjustInto=function(t){return p(t,"temporal"),t.with(F.INSTANT_SECONDS,this._seconds).with(F.NANO_OF_SECOND,this._nanos)},i.until=function(t,n){p(t,"endExclusive"),p(n,"unit");var i=e.from(t);if(n instanceof R){switch(n){case R.NANOS:return this._nanosUntil(i);case R.MICROS:return this._microsUntil(i);case R.MILLIS:return D.safeSubtract(i.toEpochMilli(),this.toEpochMilli());case R.SECONDS:return this._secondsUntil(i);case R.MINUTES:return D.intDiv(this._secondsUntil(i),_e.SECONDS_PER_MINUTE);case R.HOURS:return D.intDiv(this._secondsUntil(i),_e.SECONDS_PER_HOUR);case R.HALF_DAYS:return D.intDiv(this._secondsUntil(i),12*_e.SECONDS_PER_HOUR);case R.DAYS:return D.intDiv(this._secondsUntil(i),_e.SECONDS_PER_DAY)}throw new r("Unsupported unit: "+n)}return n.between(this,i)},i._microsUntil=function(t){var e=D.safeSubtract(t.epochSecond(),this.epochSecond()),n=t.nano()-this.nano();e>0&&n<0?(e--,n+=_e.NANOS_PER_SECOND):e<0&&n>0&&(e++,n-=_e.NANOS_PER_SECOND);var i=D.safeMultiply(e,1e6);return D.safeAdd(i,D.intDiv(n,1e3))},i._nanosUntil=function(t){var e=D.safeSubtract(t.epochSecond(),this.epochSecond()),n=D.safeMultiply(e,_e.NANOS_PER_SECOND);return D.safeAdd(n,t.nano()-this.nano())},i._secondsUntil=function(t){var e=D.safeSubtract(t.epochSecond(),this.epochSecond()),n=t.nano()-this.nano();return e>0&&n<0?e--:e<0&&n>0&&e++,e},i.atOffset=function(t){return nt.ofInstant(this,t)},i.atZone=function(t){return rt.ofInstant(this,t)},i.toEpochMilli=function(){if(this._seconds<0&&this._nanos>0){var t=D.safeMultiply(this._seconds+1,1e3),e=D.intDiv(this._nanos,de)-1e3;return D.safeAdd(t,e)}return D.safeMultiply(this._seconds,1e3)+D.intDiv(this._nanos,de)},i.compareTo=function(t){p(t,"otherInstant"),O(t,e,"otherInstant");var n=D.compareNumbers(this._seconds,t._seconds);return 0!==n?n:this._nanos-t._nanos},i.isAfter=function(t){return this.compareTo(t)>0},i.isBefore=function(t){return this.compareTo(t)<0},i.equals=function(t){return this===t||t instanceof e&&(this.epochSecond()===t.epochSecond()&&this.nano()===t.nano())},i.hashCode=function(){return D.hashCode(this._seconds,this._nanos)},i.toString=function(){return Xt.ISO_INSTANT.format(this)},i.toJSON=function(){return this.toString()},e}(Z);var Oe=function(){function t(){}t.systemUTC=function(){return new Ee($.UTC)},t.systemDefaultZone=function(){return new Ee(j.systemDefault())},t.system=function(t){return new Ee(t)},t.fixed=function(t,e){return new Se(t,e)},t.offset=function(t,e){return new me(t,e)};var e=t.prototype;return e.millis=function(){E("Clock.millis")},e.instant=function(){E("Clock.instant")},e.zone=function(){E("Clock.zone")},e.withZone=function(){E("Clock.withZone")},t}(),Ee=function(t){function e(e){var n;return p(e,"zone"),(n=t.call(this)||this)._zone=e,n}l(e,t);var n=e.prototype;return n.zone=function(){return this._zone},n.millis=function(){return(new Date).getTime()},n.instant=function(){return pe.ofEpochMilli(this.millis())},n.equals=function(t){return t instanceof e&&this._zone.equals(t._zone)},n.withZone=function(t){return t.equals(this._zone)?this:new e(t)},n.toString=function(){return"SystemClock["+this._zone.toString()+"]"},e}(Oe),Se=function(t){function e(e,n){var i;return(i=t.call(this)||this)._instant=e,i._zoneId=n,i}l(e,t);var n=e.prototype;return n.instant=function(){return this._instant},n.millis=function(){return this._instant.toEpochMilli()},n.zone=function(){return this._zoneId},n.toString=function(){return"FixedClock[]"},n.equals=function(t){return t instanceof e&&(this._instant.equals(t._instant)&&this._zoneId.equals(t._zoneId))},n.withZone=function(t){return t.equals(this._zoneId)?this:new e(this._instant,t)},e}(Oe),me=function(t){function e(e,n){var i;return(i=t.call(this)||this)._baseClock=e,i._offset=n,i}l(e,t);var n=e.prototype;return n.zone=function(){return this._baseClock.zone()},n.withZone=function(t){return t.equals(this._baseClock.zone())?this:new e(this._baseClock.withZone(t),this._offset)},n.millis=function(){return this._baseClock.millis()+this._offset.toMillis()},n.instant=function(){return this._baseClock.instant().plus(this._offset)},n.equals=function(t){return t instanceof e&&(this._baseClock.equals(t._baseClock)&&this._offset.equals(t._offset))},n.toString=function(){return"OffsetClock["+this._baseClock+","+this._offset+"]"},e}(Oe),Ne=function(){function t(t,e,n){if(p(t,"transition"),p(e,"offsetBefore"),p(n,"offsetAfter"),e.equals(n))throw new o("Offsets must not be equal");if(0!==t.nano())throw new o("Nano-of-second must be zero");this._transition=t instanceof le?t:le.ofEpochSecond(t,0,e),this._offsetBefore=e,this._offsetAfter=n}t.of=function(e,n,i){return new t(e,n,i)};var e=t.prototype;return e.instant=function(){return this._transition.toInstant(this._offsetBefore)},e.toEpochSecond=function(){return this._transition.toEpochSecond(this._offsetBefore)},e.dateTimeBefore=function(){return this._transition},e.dateTimeAfter=function(){return this._transition.plusSeconds(this.durationSeconds())},e.offsetBefore=function(){return this._offsetBefore},e.offsetAfter=function(){return this._offsetAfter},e.duration=function(){return y.ofSeconds(this.durationSeconds())},e.durationSeconds=function(){return this._offsetAfter.totalSeconds()-this._offsetBefore.totalSeconds()},e.isGap=function(){return this._offsetAfter.totalSeconds()>this._offsetBefore.totalSeconds()},e.isOverlap=function(){return this._offsetAfter.totalSeconds()<this._offsetBefore.totalSeconds()},e.isValidOffset=function(t){return!this.isGap()&&(this._offsetBefore.equals(t)||this._offsetAfter.equals(t))},e.validOffsets=function(){return this.isGap()?[]:[this._offsetBefore,this._offsetAfter]},e.compareTo=function(t){return this.instant().compareTo(t.instant())},e.equals=function(e){if(e===this)return!0;if(e instanceof t){var n=e;return this._transition.equals(n._transition)&&this._offsetBefore.equals(n.offsetBefore())&&this._offsetAfter.equals(n.offsetAfter())}return!1},e.hashCode=function(){return this._transition.hashCode()^this._offsetBefore.hashCode()^this._offsetAfter.hashCode()>>>16},e.toString=function(){return"Transition["+(this.isGap()?"Gap":"Overlap")+" at "+this._transition.toString()+this._offsetBefore.toString()+" to "+this._offsetAfter+"]"},t}();var De=864e13;function Ae(t){var e=Math.max(-864e13,Math.min(De,t));return new Date(e).getTimezoneOffset()}var Te=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var i=e.prototype;return i.isFixedOffset=function(){return!1},i.offsetOfInstant=function(t){var e=Ae(function(t){var e=t.epochSecond();return e>864e10?De:e<-864e10?-864e13:t.toEpochMilli()}(t));return $.ofTotalMinutes(-1*e)},i.offsetOfEpochMilli=function(t){var e=Ae(t);return $.ofTotalMinutes(-1*e)},i.offsetOfLocalDateTime=function(t){var e=1e3*t.toEpochSecond($.UTC),n=Ae(e),i=Ae(e+6e4*n);return $.ofTotalMinutes(-1*i)},i.validOffsets=function(t){return[this.offsetOfLocalDateTime(t)]},i.transition=function(){return null},i.standardOffset=function(t){return this.offsetOfInstant(t)},i.daylightSavings=function(){this._throwNotSupported()},i.isDaylightSavings=function(){this._throwNotSupported()},i.isValidOffset=function(t,e){return this.offsetOfLocalDateTime(t).equals(e)},i.nextTransition=function(){this._throwNotSupported()},i.previousTransition=function(){this._throwNotSupported()},i.transitions=function(){this._throwNotSupported()},i.transitionRules=function(){this._throwNotSupported()},i._throwNotSupported=function(){throw new n("not supported operation")},i.equals=function(t){return this===t||t instanceof e},i.toString=function(){return"SYSTEM"},e}(G),ve=function(t){function e(){var e;return(e=t.call(this)||this)._rules=new Te,e}l(e,t);var n=e.prototype;return n.rules=function(){return this._rules},n.equals=function(t){return this===t},n.id=function(){return"SYSTEM"},e}(j),ye=function(){function t(){}return t.systemDefault=function(){return we},t.getAvailableZoneIds=function(){return Vt.getAvailableZoneIds()},t.of=function(t){if(p(t,"zoneId"),"Z"===t)return $.UTC;if(1===t.length)throw new n("Invalid zone: "+t);if(K.startsWith(t,"+")||K.startsWith(t,"-"))return $.of(t);if("UTC"===t||"GMT"===t||"GMT0"===t||"UT"===t)return new bt(t,$.UTC.rules());if(K.startsWith(t,"UTC+")||K.startsWith(t,"GMT+")||K.startsWith(t,"UTC-")||K.startsWith(t,"GMT-")){var e=$.of(t.substring(3));return 0===e.totalSeconds()?new bt(t.substring(0,3),e.rules()):new bt(t.substring(0,3)+e.id(),e.rules())}if(K.startsWith(t,"UT+")||K.startsWith(t,"UT-")){var i=$.of(t.substring(2));return 0===i.totalSeconds()?new bt("UT",i.rules()):new bt("UT"+i.id(),i.rules())}return"SYSTEM"===t?j.systemDefault():bt.ofId(t)},t.ofOffset=function(t,e){if(p(t,"prefix"),p(e,"offset"),0===t.length)return e;if("GMT"===t||"UTC"===t||"UT"===t)return 0===e.totalSeconds()?new bt(t,e.rules()):new bt(t+e.id(),e.rules());throw new o("Invalid prefix, must be GMT, UTC or UT: "+t)},t.from=function(t){p(t,"temporal");var e=t.query(C.zone());if(null==e)throw new n("Unable to obtain ZoneId from TemporalAccessor: "+t+", type "+(null!=t.constructor?t.constructor.name:""));return e},t}(),we=null;var Me=!1;Me||(Me=!0,M.MIN_VALUE=-999999,M.MAX_VALUE=999999,y.ZERO=new y(0,0),R.NANOS=new R("Nanos",y.ofNanos(1)),R.MICROS=new R("Micros",y.ofNanos(1e3)),R.MILLIS=new R("Millis",y.ofNanos(1e6)),R.SECONDS=new R("Seconds",y.ofSeconds(1)),R.MINUTES=new R("Minutes",y.ofSeconds(60)),R.HOURS=new R("Hours",y.ofSeconds(3600)),R.HALF_DAYS=new R("HalfDays",y.ofSeconds(43200)),R.DAYS=new R("Days",y.ofSeconds(86400)),R.WEEKS=new R("Weeks",y.ofSeconds(604800)),R.MONTHS=new R("Months",y.ofSeconds(2629746)),R.YEARS=new R("Years",y.ofSeconds(31556952)),R.DECADES=new R("Decades",y.ofSeconds(315569520)),R.CENTURIES=new R("Centuries",y.ofSeconds(3155695200)),R.MILLENNIA=new R("Millennia",y.ofSeconds(31556952e3)),R.ERAS=new R("Eras",y.ofSeconds(31556952*(M.MAX_VALUE+1))),R.FOREVER=new R("Forever",y.ofSeconds(D.MAX_SAFE_INTEGER,999999999)),F.NANO_OF_SECOND=new F("NanoOfSecond",R.NANOS,R.SECONDS,I.of(0,999999999)),F.NANO_OF_DAY=new F("NanoOfDay",R.NANOS,R.DAYS,I.of(0,86399999999999)),F.MICRO_OF_SECOND=new F("MicroOfSecond",R.MICROS,R.SECONDS,I.of(0,999999)),F.MICRO_OF_DAY=new F("MicroOfDay",R.MICROS,R.DAYS,I.of(0,86399999999)),F.MILLI_OF_SECOND=new F("MilliOfSecond",R.MILLIS,R.SECONDS,I.of(0,999)),F.MILLI_OF_DAY=new F("MilliOfDay",R.MILLIS,R.DAYS,I.of(0,86399999)),F.SECOND_OF_MINUTE=new F("SecondOfMinute",R.SECONDS,R.MINUTES,I.of(0,59)),F.SECOND_OF_DAY=new F("SecondOfDay",R.SECONDS,R.DAYS,I.of(0,86399)),F.MINUTE_OF_HOUR=new F("MinuteOfHour",R.MINUTES,R.HOURS,I.of(0,59)),F.MINUTE_OF_DAY=new F("MinuteOfDay",R.MINUTES,R.DAYS,I.of(0,1439)),F.HOUR_OF_AMPM=new F("HourOfAmPm",R.HOURS,R.HALF_DAYS,I.of(0,11)),F.CLOCK_HOUR_OF_AMPM=new F("ClockHourOfAmPm",R.HOURS,R.HALF_DAYS,I.of(1,12)),F.HOUR_OF_DAY=new F("HourOfDay",R.HOURS,R.DAYS,I.of(0,23)),F.CLOCK_HOUR_OF_DAY=new F("ClockHourOfDay",R.HOURS,R.DAYS,I.of(1,24)),F.AMPM_OF_DAY=new F("AmPmOfDay",R.HALF_DAYS,R.DAYS,I.of(0,1)),F.DAY_OF_WEEK=new F("DayOfWeek",R.DAYS,R.WEEKS,I.of(1,7)),F.ALIGNED_DAY_OF_WEEK_IN_MONTH=new F("AlignedDayOfWeekInMonth",R.DAYS,R.WEEKS,I.of(1,7)),F.ALIGNED_DAY_OF_WEEK_IN_YEAR=new F("AlignedDayOfWeekInYear",R.DAYS,R.WEEKS,I.of(1,7)),F.DAY_OF_MONTH=new F("DayOfMonth",R.DAYS,R.MONTHS,I.of(1,28,31),"day"),F.DAY_OF_YEAR=new F("DayOfYear",R.DAYS,R.YEARS,I.of(1,365,366)),F.EPOCH_DAY=new F("EpochDay",R.DAYS,R.FOREVER,I.of(-365961662,364522971)),F.ALIGNED_WEEK_OF_MONTH=new F("AlignedWeekOfMonth",R.WEEKS,R.MONTHS,I.of(1,4,5)),F.ALIGNED_WEEK_OF_YEAR=new F("AlignedWeekOfYear",R.WEEKS,R.YEARS,I.of(1,53)),F.MONTH_OF_YEAR=new F("MonthOfYear",R.MONTHS,R.YEARS,I.of(1,12),"month"),F.PROLEPTIC_MONTH=new F("ProlepticMonth",R.MONTHS,R.FOREVER,I.of(12*M.MIN_VALUE,12*M.MAX_VALUE+11)),F.YEAR_OF_ERA=new F("YearOfEra",R.YEARS,R.FOREVER,I.of(1,M.MAX_VALUE,M.MAX_VALUE+1)),F.YEAR=new F("Year",R.YEARS,R.FOREVER,I.of(M.MIN_VALUE,M.MAX_VALUE),"year"),F.ERA=new F("Era",R.ERAS,R.FOREVER,I.of(0,1)),F.INSTANT_SECONDS=new F("InstantSeconds",R.SECONDS,R.FOREVER,I.of(N,m)),F.OFFSET_SECONDS=new F("OffsetSeconds",R.SECONDS,R.FOREVER,I.of(-64800,64800)),function(){_e.HOURS=[];for(var t=0;t<24;t++)_e.of(t,0,0,0);_e.MIN=_e.HOURS[0],_e.MAX=new _e(23,59,59,999999999),_e.MIDNIGHT=_e.HOURS[0],_e.NOON=_e.HOURS[12],_e.FROM=P("LocalTime.FROM",(function(t){return _e.from(t)}))}(),Et=new lt,St=new _t,mt=new dt,Nt=new pt,Dt=new Ot("WeekBasedYears",y.ofSeconds(31556952)),At=new Ot("QuarterYears",y.ofSeconds(7889238)),ht.DAY_OF_QUARTER=Et,ht.QUARTER_OF_YEAR=St,ht.WEEK_OF_WEEK_BASED_YEAR=mt,ht.WEEK_BASED_YEAR=Nt,ht.WEEK_BASED_YEARS=Dt,ht.QUARTER_YEARS=At,ce.prototype.isoWeekOfWeekyear=function(){return this.get(ht.WEEK_OF_WEEK_BASED_YEAR)},ce.prototype.isoWeekyear=function(){return this.get(ht.WEEK_BASED_YEAR)},C.ZONE_ID=P("ZONE_ID",(function(t){return t.query(C.ZONE_ID)})),C.CHRONO=P("CHRONO",(function(t){return t.query(C.CHRONO)})),C.PRECISION=P("PRECISION",(function(t){return t.query(C.PRECISION)})),C.OFFSET=P("OFFSET",(function(t){return t.isSupported(F.OFFSET_SECONDS)?$.ofTotalSeconds(t.get(F.OFFSET_SECONDS)):null})),C.ZONE=P("ZONE",(function(t){var e=t.query(C.ZONE_ID);return null!=e?e:t.query(C.OFFSET)})),C.LOCAL_DATE=P("LOCAL_DATE",(function(t){return t.isSupported(F.EPOCH_DAY)?ce.ofEpochDay(t.getLong(F.EPOCH_DAY)):null})),C.LOCAL_TIME=P("LOCAL_TIME",(function(t){return t.isSupported(F.NANO_OF_DAY)?_e.ofNanoOfDay(t.getLong(F.NANO_OF_DAY)):null})),V.MONDAY=new V(0,"MONDAY"),V.TUESDAY=new V(1,"TUESDAY"),V.WEDNESDAY=new V(2,"WEDNESDAY"),V.THURSDAY=new V(3,"THURSDAY"),V.FRIDAY=new V(4,"FRIDAY"),V.SATURDAY=new V(5,"SATURDAY"),V.SUNDAY=new V(6,"SUNDAY"),V.FROM=P("DayOfWeek.FROM",(function(t){return V.from(t)})),U=[V.MONDAY,V.TUESDAY,V.WEDNESDAY,V.THURSDAY,V.FRIDAY,V.SATURDAY,V.SUNDAY],pe.MIN_SECONDS=-31619119219200,pe.MAX_SECONDS=31494816403199,pe.EPOCH=new pe(0,0),pe.MIN=pe.ofEpochSecond(pe.MIN_SECONDS,0),pe.MAX=pe.ofEpochSecond(pe.MAX_SECONDS,999999999),pe.FROM=P("Instant.FROM",(function(t){return pe.from(t)})),ce.MIN=ce.of(M.MIN_VALUE,1,1),ce.MAX=ce.of(M.MAX_VALUE,12,31),ce.EPOCH_0=ce.ofEpochDay(0),ce.FROM=P("LocalDate.FROM",(function(t){return ce.from(t)})),le.MIN=le.of(ce.MIN,_e.MIN),le.MAX=le.of(ce.MAX,_e.MAX),le.FROM=P("LocalDateTime.FROM",(function(t){return le.from(t)})),ne.MIN_VALUE=M.MIN_VALUE,ne.MAX_VALUE=M.MAX_VALUE,ee=(new qt).appendValue(F.YEAR,4,10,vt.EXCEEDS_PAD).toFormatter(),ne.FROM=P("Year.FROM",(function(t){return ne.from(t)})),H.JANUARY=new H(1,"JANUARY"),H.FEBRUARY=new H(2,"FEBRUARY"),H.MARCH=new H(3,"MARCH"),H.APRIL=new H(4,"APRIL"),H.MAY=new H(5,"MAY"),H.JUNE=new H(6,"JUNE"),H.JULY=new H(7,"JULY"),H.AUGUST=new H(8,"AUGUST"),H.SEPTEMBER=new H(9,"SEPTEMBER"),H.OCTOBER=new H(10,"OCTOBER"),H.NOVEMBER=new H(11,"NOVEMBER"),H.DECEMBER=new H(12,"DECEMBER"),b=[H.JANUARY,H.FEBRUARY,H.MARCH,H.APRIL,H.MAY,H.JUNE,H.JULY,H.AUGUST,H.SEPTEMBER,H.OCTOBER,H.NOVEMBER,H.DECEMBER],$t=(new qt).appendValue(F.YEAR,4,10,vt.EXCEEDS_PAD).appendLiteral("-").appendValue(F.MONTH_OF_YEAR,2).toFormatter(),te.FROM=P("YearMonth.FROM",(function(t){return te.from(t)})),Jt=(new qt).appendLiteral("--").appendValue(F.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(F.DAY_OF_MONTH,2).toFormatter(),Qt.FROM=P("MonthDay.FROM",(function(t){return Qt.from(t)})),k.ofDays(0),$.MAX_SECONDS=18*_e.SECONDS_PER_HOUR,$.UTC=$.ofTotalSeconds(0),$.MIN=$.ofTotalSeconds(-$.MAX_SECONDS),$.MAX=$.ofTotalSeconds($.MAX_SECONDS),rt.FROM=P("ZonedDateTime.FROM",(function(t){return rt.from(t)})),we=new ve,j.systemDefault=ye.systemDefault,j.getAvailableZoneIds=ye.getAvailableZoneIds,j.of=ye.of,j.ofOffset=ye.ofOffset,j.from=ye.from,$.from=ye.from,j.SYSTEM=we,j.UTC=$.ofTotalSeconds(0),ue.INSTANCE=new ue("IsoChronology"),Xt.ISO_LOCAL_DATE=(new qt).appendValue(F.YEAR,4,10,vt.EXCEEDS_PAD).appendLiteral("-").appendValue(F.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(F.DAY_OF_MONTH,2).toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_LOCAL_TIME=(new qt).appendValue(F.HOUR_OF_DAY,2).appendLiteral(":").appendValue(F.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(F.SECOND_OF_MINUTE,2).optionalStart().appendFraction(F.NANO_OF_SECOND,0,9,!0).toFormatter(q.STRICT),Xt.ISO_LOCAL_DATE_TIME=(new qt).parseCaseInsensitive().append(Xt.ISO_LOCAL_DATE).appendLiteral("T").append(Xt.ISO_LOCAL_TIME).toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_INSTANT=(new qt).parseCaseInsensitive().appendInstant().toFormatter(q.STRICT),Xt.ISO_OFFSET_DATE_TIME=(new qt).parseCaseInsensitive().append(Xt.ISO_LOCAL_DATE_TIME).appendOffsetId().toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_ZONED_DATE_TIME=(new qt).append(Xt.ISO_OFFSET_DATE_TIME).optionalStart().appendLiteral("[").parseCaseSensitive().appendZoneId().appendLiteral("]").toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.BASIC_ISO_DATE=(new qt).appendValue(F.YEAR,4,10,vt.EXCEEDS_PAD).appendValue(F.MONTH_OF_YEAR,2).appendValue(F.DAY_OF_MONTH,2).toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_OFFSET_DATE=(new qt).parseCaseInsensitive().append(Xt.ISO_LOCAL_DATE).appendOffsetId().toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_OFFSET_TIME=(new qt).parseCaseInsensitive().append(Xt.ISO_LOCAL_TIME).appendOffsetId().toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_ORDINAL_DATE=(new qt).appendValue(F.YEAR,4,10,vt.EXCEEDS_PAD).appendLiteral("-").appendValue(F.DAY_OF_YEAR).toFormatter(q.STRICT),Xt.ISO_WEEK_DATE=(new qt).parseCaseInsensitive().appendValue(ht.WEEK_BASED_YEAR,4,10,vt.EXCEEDS_PAD).appendLiteral("-W").appendValue(ht.WEEK_OF_WEEK_BASED_YEAR,2).appendLiteral("-").appendValue(F.DAY_OF_WEEK,1).toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_DATE=(new qt).parseCaseInsensitive().append(Xt.ISO_LOCAL_DATE).optionalStart().appendOffsetId().optionalEnd().toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.ISO_TIME=(new qt).parseCaseInsensitive().append(Xt.ISO_LOCAL_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(q.STRICT),Xt.ISO_DATE_TIME=(new qt).append(Xt.ISO_LOCAL_DATE_TIME).optionalStart().appendOffsetId().optionalEnd().toFormatter(q.STRICT).withChronology(ue.INSTANCE),Xt.PARSED_EXCESS_DAYS=P("PARSED_EXCESS_DAYS",(function(t){return t instanceof st?t.excessDays:k.ZERO})),Xt.PARSED_LEAP_SECOND=P("PARSED_LEAP_SECOND",(function(t){return t instanceof st&&t.leapSecond})),Ft.BASE_DATE=ce.of(2e3,1,1),qt.CompositePrinterParser=Mt,qt.PadPrinterParserDecorator=Lt,qt.SettingsParser=Pt,qt.CharLiteralPrinterParser=Ut,qt.StringLiteralPrinterParser=Ut,qt.CharLiteralPrinterParser=wt,qt.NumberPrinterParser=It,qt.ReducedPrinterParser=Ft,qt.FractionPrinterParser=Rt,qt.OffsetIdPrinterParser=Yt,qt.ZoneIdPrinterParser=Ht,nt.MIN=le.MIN.atOffset($.MAX),nt.MAX=le.MAX.atOffset($.MIN),nt.FROM=P("OffsetDateTime.FROM",(function(t){return nt.from(t)})),et.MIN=et.ofNumbers(0,0,0,0,$.MAX),et.MAX=et.ofNumbers(23,59,59,999999999,$.MIN),et.FROM=P("OffsetTime.FROM",(function(t){return et.from(t)})));var Re=function(){function t(t,e){var n;if(t instanceof pe)this.instant=t;else{if(t instanceof ce)e=null==e?j.systemDefault():e,n=t.atStartOfDay(e);else if(t instanceof le)e=null==e?j.systemDefault():e,n=t.atZone(e);else{if(!(t instanceof rt))throw new o("unsupported instance for convert operation:"+t);n=null==e?t:t.withZoneSameInstant(e)}this.instant=n.toInstant()}}var e=t.prototype;return e.toDate=function(){return new Date(this.instant.toEpochMilli())},e.toEpochMilli=function(){return this.instant.toEpochMilli()},t}();function ge(t,e){return new Re(t,e)}function Ie(t,e){return void 0===e&&(e=j.systemDefault()),p(t,"date"),p(e,"zone"),pe.ofEpochMilli(t.valueOf()).atZone(e)}var Fe,Ce,Ye={assert:S,DateTimeBuilder:st,DateTimeParseContext:ot,DateTimePrintContext:ut,MathUtil:D,StringUtil:K,StringBuilder:Gt},Le={_:Ye,convert:ge,nativeJs:Ie,ArithmeticException:s,DateTimeException:n,DateTimeParseException:i,IllegalArgumentException:o,IllegalStateException:a,UnsupportedTemporalTypeException:r,NullPointerException:u,Clock:Oe,DayOfWeek:V,Duration:y,Instant:pe,LocalDate:ce,LocalTime:_e,LocalDateTime:le,OffsetTime:et,OffsetDateTime:nt,Month:H,MonthDay:Qt,ParsePosition:x,Period:k,Year:ne,YearConstants:M,YearMonth:te,ZonedDateTime:rt,ZoneOffset:$,ZoneId:j,ZoneRegion:bt,ZoneOffsetTransition:Ne,ZoneRules:G,ZoneRulesProvider:Vt,ChronoLocalDate:z,ChronoLocalDateTime:tt,ChronoZonedDateTime:it,IsoChronology:ue,ChronoField:F,ChronoUnit:R,IsoFields:ht,Temporal:Z,TemporalAccessor:Y,TemporalAdjuster:ie,TemporalAdjusters:re,TemporalAmount:T,TemporalField:g,TemporalQueries:C,TemporalQuery:L,TemporalUnit:v,ValueRange:I,DateTimeFormatter:Xt,DateTimeFormatterBuilder:qt,DecimalStyle:Tt,ResolverStyle:q,SignStyle:vt,TextStyle:yt},Pe=(Fe=Le,Ce=[],function(t){return~Ce.indexOf(t)||(t(Fe),Ce.push(t)),Fe});return Le.use=Pe,t.ArithmeticException=s,t.ChronoField=F,t.ChronoLocalDate=z,t.ChronoLocalDateTime=tt,t.ChronoUnit=R,t.ChronoZonedDateTime=it,t.Clock=Oe,t.DateTimeException=n,t.DateTimeFormatter=Xt,t.DateTimeFormatterBuilder=qt,t.DateTimeParseException=i,t.DayOfWeek=V,t.DecimalStyle=Tt,t.Duration=y,t.IllegalArgumentException=o,t.IllegalStateException=a,t.Instant=pe,t.IsoChronology=ue,t.IsoFields=ht,t.LocalDate=ce,t.LocalDateTime=le,t.LocalTime=_e,t.Month=H,t.MonthDay=Qt,t.NullPointerException=u,t.OffsetDateTime=nt,t.OffsetTime=et,t.ParsePosition=x,t.Period=k,t.ResolverStyle=q,t.SignStyle=vt,t.Temporal=Z,t.TemporalAccessor=Y,t.TemporalAdjuster=ie,t.TemporalAdjusters=re,t.TemporalAmount=T,t.TemporalField=g,t.TemporalQueries=C,t.TemporalQuery=L,t.TemporalUnit=v,t.TextStyle=yt,t.UnsupportedTemporalTypeException=r,t.ValueRange=I,t.Year=ne,t.YearConstants=M,t.YearMonth=te,t.ZoneId=j,t.ZoneOffset=$,t.ZoneOffsetTransition=Ne,t.ZoneRegion=bt,t.ZoneRules=G,t.ZoneRulesProvider=Vt,t.ZonedDateTime=rt,t._=Ye,t.convert=ge,t.nativeJs=Ie,t.use=Pe,t}({});