@tech-bureau/mijin-catapult-tools
Version:
This tool is for easy operation of mijin Catapult(v.2)
2 lines • 2.4 MB
JavaScript
/*! For license information please see main.js.LICENSE.txt */
(()=>{var __webpack_modules__={32289:(e,t,r)=>{var i={};e.exports=i,i.themes={};var n=r(73837),a=i.styles=r(38982),o=Object.defineProperties,s=new RegExp(/[\r\n]+/g);i.supportsColor=r(48136).supportsColor,void 0===i.enabled&&(i.enabled=!1!==i.supportsColor()),i.enable=function(){i.enabled=!0},i.disable=function(){i.enabled=!1},i.stripColors=i.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},i.stylize=function(e,t){if(!i.enabled)return e+"";var r=a[t];return!r&&t in i?i[t](e):r.open+e+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return h.apply(e,arguments)};return t._styles=e,t.__proto__=p,t}var l,d=(l={},a.grey=a.gray,Object.keys(a).forEach((function(e){a[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(a[e].close),"g"),l[e]={get:function(){return u(this._styles.concat(e))}}})),l),p=o((function(){}),d);function h(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:n.inspect(e)})).join(" ");if(!i.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),o=this._styles,c=o.length;c--;){var u=a[o[c]];t=u.open+t.replace(u.closeRe,u.open)+u.close,r&&(t=t.replace(s,(function(e){return u.close+e+u.open})))}return t}i.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){i[t]=function(r){if("object"==typeof e[t]){var n=r;for(var a in e[t])n=i[e[t][a]](n);return n}return i[e[t]](r)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var m=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var f in i.trap=r(58763),i.zalgo=r(50750),i.maps={},i.maps.america=r(36278)(i),i.maps.zebra=r(90848)(i),i.maps.rainbow=r(38823)(i),i.maps.random=r(79353)(i),i.maps)!function(e){i[e]=function(t){return m(i.maps[e],t)}}(f);o(i,function(){var e={};return Object.keys(d).forEach((function(t){e[t]={get:function(){return u([t])}}})),e}())},58763:e=>{e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var i={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=i[e]||[" "],n=Math.floor(Math.random()*t.length);r+=void 0!==i[e]?i[e][n]:e})),r}},50750:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},i=[].concat(r.up,r.down,r.mid);function n(e){return Math.floor(Math.random()*e)}function a(e){var t=!1;return i.filter((function(r){t=r===e})),t}return function(e,t){var i,o,s="";for(o in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!a(o)){switch(s+=e[o],i={up:0,down:0,mid:0},t.size){case"mini":i.up=n(8),i.mid=n(2),i.down=n(8);break;case"maxi":i.up=n(16)+3,i.mid=n(4)+1,i.down=n(64)+3;break;default:i.up=n(8)+1,i.mid=n(6)/2,i.down=n(8)+1}var c=["up","mid","down"];for(var u in c)for(var l=c[u],d=0;d<=i[l];d++)t[l]&&(s+=r[l][n(r[l].length)])}return s}(e,t)}},36278:e=>{e.exports=function(e){return function(t,r,i){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},38823:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,i,n){return" "===r?r:e[t[i++%t.length]](r)}}},79353:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,i,n){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},90848:e=>{e.exports=function(e){return function(t,r,i){return r%2==0?t:e.inverse(t)}}},38982:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var i=r[e],n=t[e]=[];n.open="["+i[0]+"m",n.close="["+i[1]+"m"}))},43719:e=>{"use strict";e.exports=function(e,t){var r=(t=t||process.argv).indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",n=t.indexOf(i+e);return-1!==n&&(-1===r||n<r)}},48136:(e,t,r)=>{"use strict";var i=r(22037),n=r(43719),a=process.env,o=void 0;function s(e){var t=function(e){if(!1===o)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;var t=o?1:0;if("win32"===process.platform){var r=i.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in a}))||"codeship"===a.CI_NAME?1:t;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var s=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}n("no-color")||n("no-colors")||n("color=false")?o=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=!0),"FORCE_COLOR"in a&&(o=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},33645:(e,t,r)=>{var i=r(32289);e.exports=i},4099:e=>{var t=[],r=[],i=function(){};function n(e){return!~t.indexOf(e)&&(t.push(e),!0)}function a(e){i=e}function o(e){for(var r=[],i=0;i<t.length;i++)if(t[i].async)r.push(t[i]);else if(t[i](e))return!0;return!!r.length&&new Promise((function(t){Promise.all(r.map((function(t){return t(e)}))).then((function(e){t(e.some(Boolean))}))}))}function s(e){return!~r.indexOf(e)&&(r.push(e),!0)}function c(){i.apply(i,arguments)}function u(e){for(var t=0;t<r.length;t++)e=r[t].apply(r[t],arguments);return e}function l(e,t){var r=Object.prototype.hasOwnProperty;for(var i in t)r.call(t,i)&&(e[i]=t[i]);return e}function d(e){return e.enabled=!1,e.modify=s,e.set=a,e.use=n,l((function(){return!1}),e)}function p(e){return e.enabled=!0,e.modify=s,e.set=a,e.use=n,l((function(){var t=Array.prototype.slice.call(arguments,0);return c.call(c,e,u(t,e)),!0}),e)}e.exports=function(e){return e.introduce=l,e.enabled=o,e.process=u,e.modify=s,e.write=c,e.nope=d,e.yep=p,e.set=a,e.use=n,e}},93420:(e,t,r)=>{e.exports=r(13601)},13601:(e,t,r)=>{var i=r(4099)((function e(t,r){return(r=r||{}).namespace=t,r.prod=!0,r.dev=!1,r.force||e.force?e.yep(r):e.nope(r)}));e.exports=i},83266:(e,t,r)=>{"use strict";function i(e,t,r){function i(e){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,t&&t.apply(this,arguments),this.toString=function(){return this.name+": "+this.message}}return void 0===r&&(r=Error),i.prototype=Object.create(r.prototype),i.prototype.name=e,i.prototype.constructor=i,i}r.r(t),r.d(t,{ArithmeticException:()=>s,ChronoField:()=>M,ChronoLocalDate:()=>J,ChronoLocalDateTime:()=>ut,ChronoUnit:()=>k,ChronoZonedDateTime:()=>it,Clock:()=>mt,DateTimeException:()=>n,DateTimeFormatter:()=>qe,DateTimeFormatterBuilder:()=>He,DateTimeParseException:()=>a,DayOfWeek:()=>F,DecimalStyle:()=>ve,Duration:()=>w,IllegalArgumentException:()=>c,IllegalStateException:()=>u,Instant:()=>ht,IsoChronology:()=>tt,IsoFields:()=>ne,LocalDate:()=>ct,LocalDateTime:()=>lt,LocalTime:()=>dt,Month:()=>U,MonthDay:()=>Ye,NullPointerException:()=>l,OffsetDateTime:()=>at,OffsetTime:()=>rt,Period:()=>x,ResolverStyle:()=>H,SignStyle:()=>Te,Temporal:()=>K,TemporalAccessor:()=>R,TemporalAdjuster:()=>V,TemporalAdjusters:()=>Ze,TemporalAmount:()=>S,TemporalField:()=>E,TemporalQueries:()=>D,TemporalQuery:()=>I,TemporalUnit:()=>A,TextStyle:()=>be,UnsupportedTemporalTypeException:()=>o,ValueRange:()=>N,Year:()=>$e,YearConstants:()=>O,YearMonth:()=>We,ZoneId:()=>Y,ZoneOffset:()=>Q,ZoneOffsetTransition:()=>vt,ZoneRegion:()=>Fe,ZoneRules:()=>W,ZoneRulesProvider:()=>Pe,ZonedDateTime:()=>nt,_:()=>Dt,convert:()=>Ot,nativeJs:()=>Et,use:()=>It});var n=i("DateTimeException",(function(e,t){void 0===t&&(t=null);var r=e||this.name;null!==t&&t instanceof Error&&(r+="\n-------\nCaused by: "+t.stack+"\n-------\n"),this.message=r})),a=i("DateTimeParseException",(function(e,t,r,i){void 0===t&&(t=""),void 0===r&&(r=0),void 0===i&&(i=null);var n=e||this.name;n+=": "+t+", at index: "+r,null!==i&&i instanceof Error&&(n+="\n-------\nCaused by: "+i.stack+"\n-------\n"),this.message=n,this.parsedString=function(){return t},this.errorIndex=function(){return r}})),o=i("UnsupportedTemporalTypeException",null,n),s=i("ArithmeticException"),c=i("IllegalArgumentException"),u=i("IllegalStateException"),l=i("NullPointerException");function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,r){if(!e)throw r?new r(t):new Error(t)}function m(e,t){if(null==e)throw new l(t+" must not be null");return e}function f(e,t,r){if(!(e instanceof t))throw new c(r+" must be an instance of "+(t.name?t.name:t)+(e&&e.constructor&&e.constructor.name?", but is "+e.constructor.name:""));return e}function y(e){throw new TypeError('abstract method "'+e+'" is not implemented')}var g=Object.freeze({__proto__:null,assert:h,requireNonNull:m,requireInstance:f,abstractMethodFail:y}),v=9007199254740991,T=-9007199254740991,b=function(){function e(){}return e.intDiv=function(t,r){var i=t/r;return i=e.roundDown(i),e.safeZero(i)},e.intMod=function(t,r){var i=t-e.intDiv(t,r)*r;return i=e.roundDown(i),e.safeZero(i)},e.roundDown=function(e){return e<0?Math.ceil(e):Math.floor(e)},e.floorDiv=function(t,r){var i=Math.floor(t/r);return e.safeZero(i)},e.floorMod=function(t,r){var i=t-e.floorDiv(t,r)*r;return e.safeZero(i)},e.safeAdd=function(t,r){if(e.verifyInt(t),e.verifyInt(r),0===t)return e.safeZero(r);if(0===r)return e.safeZero(t);var i=e.safeToInt(t+r);if(i===t||i===r)throw new s("Invalid addition beyond MAX_SAFE_INTEGER!");return i},e.safeSubtract=function(t,r){return e.verifyInt(t),e.verifyInt(r),0===t&&0===r?0:0===t?e.safeZero(-1*r):0===r?e.safeZero(t):e.safeToInt(t-r)},e.safeMultiply=function(t,r){if(e.verifyInt(t),e.verifyInt(r),1===t)return e.safeZero(r);if(1===r)return e.safeZero(t);if(0===t||0===r)return 0;var i=e.safeToInt(t*r);if(i/r!==t||t===T&&-1===r||r===T&&-1===t)throw new s("Multiplication overflows: "+t+" * "+r);return i},e.parseInt=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){var r=parseInt(t);return e.safeToInt(r)})),e.safeToInt=function(t){return e.verifyInt(t),e.safeZero(t)},e.verifyInt=function(e){if(null==e)throw new s("Invalid value: '"+e+"', using null or undefined as argument");if(isNaN(e))throw new s("Invalid int value, using NaN as argument");if(e%1!=0)throw new s("Invalid value: '"+e+"' is a float");if(e>v||e<T)throw new s("Calculation overflows an int: "+e)},e.safeZero=function(e){return 0===e?0:+e},e.compareNumbers=function(e,t){return e<t?-1:e>t?1:0},e.smi=function(e){return e>>>1&1073741824|3221225471&e},e.hash=function(t){if(t!=t||t===1/0)return 0;for(var r=t;t>4294967295;)r^=t/=4294967295;return e.smi(r)},e.hashCode=function(){for(var t=17,r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];for(var a=0,o=i;a<o.length;a++){var s=o[a];t=(t<<5)-t+e.hash(s)}return e.hash(t)},e}();b.MAX_SAFE_INTEGER=v,b.MIN_SAFE_INTEGER=T;var _=function(){function e(e){this._name=e}var t=e.prototype;return t.equals=function(e){return this===e},t.toString=function(){return this._name},t.toJSON=function(){return this.toString()},e}(),S=function(){function e(){}var t=e.prototype;return t.get=function(e){y("get")},t.units=function(){y("units")},t.addTo=function(e){y("addTo")},t.subtractFrom=function(e){y("subtractFrom")},e}(),A=function(){function e(){}var t=e.prototype;return t.duration=function(){y("duration")},t.isDurationEstimated=function(){y("isDurationEstimated")},t.isDateBased=function(){y("isDateBased")},t.isTimeBased=function(){y("isTimeBased")},t.isSupportedBy=function(e){y("isSupportedBy")},t.addTo=function(e,t){y("addTo")},t.between=function(e,t){y("between")},e}(),w=function(e){function t(t,r){var i;return(i=e.call(this)||this)._seconds=b.safeToInt(t),i._nanos=b.safeToInt(r),i}d(t,e),t.ofDays=function(e){return t._create(b.safeMultiply(e,dt.SECONDS_PER_DAY),0)},t.ofHours=function(e){return t._create(b.safeMultiply(e,dt.SECONDS_PER_HOUR),0)},t.ofMinutes=function(e){return t._create(b.safeMultiply(e,dt.SECONDS_PER_MINUTE),0)},t.ofSeconds=function(e,r){void 0===r&&(r=0);var i=b.safeAdd(e,b.floorDiv(r,dt.NANOS_PER_SECOND)),n=b.floorMod(r,dt.NANOS_PER_SECOND);return t._create(i,n)},t.ofMillis=function(e){var r=b.intDiv(e,1e3),i=b.intMod(e,1e3);return i<0&&(i+=1e3,r--),t._create(r,1e6*i)},t.ofNanos=function(e){var t=b.intDiv(e,dt.NANOS_PER_SECOND),r=b.intMod(e,dt.NANOS_PER_SECOND);return r<0&&(r+=dt.NANOS_PER_SECOND,t--),this._create(t,r)},t.of=function(e,r){return t.ZERO.plus(e,r)},t.from=function(e){m(e,"amount"),f(e,S);var r=t.ZERO;return e.units().forEach((function(t){r=r.plus(e.get(t),t)})),r},t.between=function(e,t){m(e,"startInclusive"),m(t,"endExclusive");var r=e.until(t,k.SECONDS),i=0;if(e.isSupported(M.NANO_OF_SECOND)&&t.isSupported(M.NANO_OF_SECOND))try{var n=e.getLong(M.NANO_OF_SECOND);if(i=t.getLong(M.NANO_OF_SECOND)-n,r>0&&i<0)i+=dt.NANOS_PER_SECOND;else if(r<0&&i>0)i-=dt.NANOS_PER_SECOND;else if(0===r&&0!==i){var a=t.with(M.NANO_OF_SECOND,n);r=e.until(a,k.SECONDS)}}catch(e){}return this.ofSeconds(r,i)},t.parse=function(e){m(e,"text");var r=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i").exec(e);if(null!==r&&"T"===r[3]==0){var i="-"===r[1],n=r[2],o=r[4],s=r[5],c=r[6],u=r[7];if(null!=n||null!=o||null!=s||null!=c){var l=t._parseNumber(e,n,dt.SECONDS_PER_DAY,"days"),d=t._parseNumber(e,o,dt.SECONDS_PER_HOUR,"hours"),p=t._parseNumber(e,s,dt.SECONDS_PER_MINUTE,"minutes"),h=t._parseNumber(e,c,1,"seconds"),f=null!=c&&"-"===c.charAt(0),y=t._parseFraction(e,u,f?-1:1);try{return t._create(i,l,d,p,h,y)}catch(t){throw new a("Text cannot be parsed to a Duration: overflow",e,0,t)}}}throw new a("Text cannot be parsed to a Duration",e,0)},t._parseNumber=function(e,t,r,i){if(null==t)return 0;try{return"+"===t[0]&&(t=t.substring(1)),b.safeMultiply(parseFloat(t),r)}catch(t){throw new a("Text cannot be parsed to a Duration: "+i,e,0,t)}},t._parseFraction=function(e,t,r){return null==t||0===t.length?0:(t=(t+"000000000").substring(0,9),parseFloat(t)*r)},t._create=function(){return arguments.length<=2?t._createSecondsNanos(arguments[0],arguments[1]):t._createNegateDaysHoursMinutesSecondsNanos(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},t._createNegateDaysHoursMinutesSecondsNanos=function(e,r,i,n,a,o){var s=b.safeAdd(r,b.safeAdd(i,b.safeAdd(n,a)));return e?t.ofSeconds(s,o).negated():t.ofSeconds(s,o)},t._createSecondsNanos=function(e,r){return void 0===e&&(e=0),void 0===r&&(r=0),0===e&&0===r?t.ZERO:new t(e,r)};var r=t.prototype;return r.get=function(e){if(e===k.SECONDS)return this._seconds;if(e===k.NANOS)return this._nanos;throw new o("Unsupported unit: "+e)},r.units=function(){return[k.SECONDS,k.NANOS]},r.isZero=function(){return 0===this._seconds&&0===this._nanos},r.isNegative=function(){return this._seconds<0},r.seconds=function(){return this._seconds},r.nano=function(){return this._nanos},r.withSeconds=function(e){return t._create(e,this._nanos)},r.withNanos=function(e){return M.NANO_OF_SECOND.checkValidIntValue(e),t._create(this._seconds,e)},r.plusDuration=function(e){return m(e,"duration"),this.plus(e.seconds(),e.nano())},r.plus=function(e,t){return 1===arguments.length?this.plusDuration(e):2===arguments.length&&t instanceof A?this.plusAmountUnit(e,t):this.plusSecondsNanos(e,t)},r.plusAmountUnit=function(e,t){if(m(e,"amountToAdd"),m(t,"unit"),t===k.DAYS)return this.plusSecondsNanos(b.safeMultiply(e,dt.SECONDS_PER_DAY),0);if(t.isDurationEstimated())throw new o("Unit must not have an estimated duration");if(0===e)return this;if(t instanceof k){switch(t){case k.NANOS:return this.plusNanos(e);case k.MICROS:return this.plusSecondsNanos(1e3*b.intDiv(e,1e9),1e3*b.intMod(e,1e9));case k.MILLIS:return this.plusMillis(e);case k.SECONDS:return this.plusSeconds(e)}return this.plusSecondsNanos(b.safeMultiply(t.duration().seconds(),e),0)}var r=t.duration().multipliedBy(e);return this.plusSecondsNanos(r.seconds(),r.nano())},r.plusDays=function(e){return this.plusSecondsNanos(b.safeMultiply(e,dt.SECONDS_PER_DAY),0)},r.plusHours=function(e){return this.plusSecondsNanos(b.safeMultiply(e,dt.SECONDS_PER_HOUR),0)},r.plusMinutes=function(e){return this.plusSecondsNanos(b.safeMultiply(e,dt.SECONDS_PER_MINUTE),0)},r.plusSeconds=function(e){return this.plusSecondsNanos(e,0)},r.plusMillis=function(e){return this.plusSecondsNanos(b.intDiv(e,1e3),1e6*b.intMod(e,1e3))},r.plusNanos=function(e){return this.plusSecondsNanos(0,e)},r.plusSecondsNanos=function(e,r){if(m(e,"secondsToAdd"),m(r,"nanosToAdd"),0===e&&0===r)return this;var i=b.safeAdd(this._seconds,e);i=b.safeAdd(i,b.intDiv(r,dt.NANOS_PER_SECOND)),r=b.intMod(r,dt.NANOS_PER_SECOND);var n=b.safeAdd(this._nanos,r);return t.ofSeconds(i,n)},r.minus=function(e,t){return 1===arguments.length?this.minusDuration(e):this.minusAmountUnit(e,t)},r.minusDuration=function(e){m(e,"duration");var t=e.seconds(),r=e.nano();return t===T?this.plus(v,-r):this.plus(-t,-r)},r.minusAmountUnit=function(e,t){return m(e,"amountToSubtract"),m(t,"unit"),e===T?this.plusAmountUnit(v,t):this.plusAmountUnit(-e,t)},r.minusDays=function(e){return e===T?this.plusDays(v):this.plusDays(-e)},r.minusHours=function(e){return e===T?this.plusHours(v):this.plusHours(-e)},r.minusMinutes=function(e){return e===T?this.plusMinutes(v):this.plusMinutes(-e)},r.minusSeconds=function(e){return e===T?this.plusSeconds(v):this.plusSeconds(-e)},r.minusMillis=function(e){return e===T?this.plusMillis(v):this.plusMillis(-e)},r.minusNanos=function(e){return e===T?this.plusNanos(v):this.plusNanos(-e)},r.multipliedBy=function(e){if(0===e)return t.ZERO;if(1===e)return this;var r=b.safeMultiply(this._seconds,e),i=b.safeMultiply(this._nanos,e);return r+=b.intDiv(i,dt.NANOS_PER_SECOND),i=b.intMod(i,dt.NANOS_PER_SECOND),t.ofSeconds(r,i)},r.dividedBy=function(e){if(0===e)throw new s("Cannot divide by zero");if(1===e)return this;var r=b.intDiv(this._seconds,e),i=b.roundDown((this._seconds/e-r)*dt.NANOS_PER_SECOND),n=b.intDiv(this._nanos,e);return n=i+n,t.ofSeconds(r,n)},r.negated=function(){return this.multipliedBy(-1)},r.abs=function(){return this.isNegative()?this.negated():this},r.addTo=function(e){return m(e,"temporal"),0!==this._seconds&&(e=e.plus(this._seconds,k.SECONDS)),0!==this._nanos&&(e=e.plus(this._nanos,k.NANOS)),e},r.subtractFrom=function(e){return m(e,"temporal"),0!==this._seconds&&(e=e.minus(this._seconds,k.SECONDS)),0!==this._nanos&&(e=e.minus(this._nanos,k.NANOS)),e},r.toDays=function(){return b.intDiv(this._seconds,dt.SECONDS_PER_DAY)},r.toHours=function(){return b.intDiv(this._seconds,dt.SECONDS_PER_HOUR)},r.toMinutes=function(){return b.intDiv(this._seconds,dt.SECONDS_PER_MINUTE)},r.toMillis=function(){var e=Math.round(b.safeMultiply(this._seconds,1e3));return b.safeAdd(e,b.intDiv(this._nanos,1e6))},r.toNanos=function(){var e=b.safeMultiply(this._seconds,dt.NANOS_PER_SECOND);return b.safeAdd(e,this._nanos)},r.compareTo=function(e){m(e,"otherDuration"),f(e,t,"otherDuration");var r=b.compareNumbers(this._seconds,e.seconds());return 0!==r?r:this._nanos-e.nano()},r.equals=function(e){return this===e||e instanceof t&&this.seconds()===e.seconds()&&this.nano()===e.nano()},r.toString=function(){if(this===t.ZERO)return"PT0S";var e,r=b.intDiv(this._seconds,dt.SECONDS_PER_HOUR),i=b.intDiv(b.intMod(this._seconds,dt.SECONDS_PER_HOUR),dt.SECONDS_PER_MINUTE),n=b.intMod(this._seconds,dt.SECONDS_PER_MINUTE),a="PT";if(0!==r&&(a+=r+"H"),0!==i&&(a+=i+"M"),0===n&&0===this._nanos&&a.length>2)return a;if(n<0&&this._nanos>0?a+=-1===n?"-0":n+1:a+=n,this._nanos>0)for(a+=".",a+=e=(e=n<0?""+(2*dt.NANOS_PER_SECOND-this._nanos):""+(dt.NANOS_PER_SECOND+this._nanos)).slice(1,e.length);"0"===a.charAt(a.length-1);)a=a.slice(0,a.length-1);return a+"S"},r.toJSON=function(){return this.toString()},t}(S),O=function(){},k=function(e){function t(t,r){var i;return(i=e.call(this)||this)._name=t,i._duration=r,i}d(t,e);var r=t.prototype;return r.duration=function(){return this._duration},r.isDurationEstimated=function(){return this.isDateBased()||this===t.FOREVER},r.isDateBased=function(){return this.compareTo(t.DAYS)>=0&&this!==t.FOREVER},r.isTimeBased=function(){return this.compareTo(t.DAYS)<0},r.isSupportedBy=function(e){if(this===t.FOREVER)return!1;try{return e.plus(1,this),!0}catch(t){try{return e.plus(-1,this),!0}catch(e){return!1}}},r.addTo=function(e,t){return e.plus(t,this)},r.between=function(e,t){return e.until(t,this)},r.toString=function(){return this._name},r.compareTo=function(e){return this.duration().compareTo(e.duration())},t}(A),E=function(){function e(){}var t=e.prototype;return t.isDateBased=function(){y("isDateBased")},t.isTimeBased=function(){y("isTimeBased")},t.baseUnit=function(){y("baseUnit")},t.rangeUnit=function(){y("rangeUnit")},t.range=function(){y("range")},t.rangeRefinedBy=function(e){y("rangeRefinedBy")},t.getFrom=function(e){y("getFrom")},t.adjustInto=function(e,t){y("adjustInto")},t.isSupportedBy=function(e){y("isSupportedBy")},t.displayName=function(){y("displayName")},t.equals=function(e){y("equals")},t.name=function(){y("name")},e}(),N=function(){function e(e,t,r,i){h(!(e>t),"Smallest minimum value '"+e+"' must be less than largest minimum value '"+t+"'",c),h(!(r>i),"Smallest maximum value '"+r+"' must be less than largest maximum value '"+i+"'",c),h(!(t>i),"Minimum value '"+t+"' must be less than maximum value '"+i+"'",c),this._minSmallest=e,this._minLargest=t,this._maxLargest=i,this._maxSmallest=r}var t=e.prototype;return t.isFixed=function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest},t.minimum=function(){return this._minSmallest},t.largestMinimum=function(){return this._minLargest},t.maximum=function(){return this._maxLargest},t.smallestMaximum=function(){return this._maxSmallest},t.isValidValue=function(e){return this.minimum()<=e&&e<=this.maximum()},t.checkValidValue=function(e,t){return this.isValidValue(e)?e:h(!1,null!=t?"Invalid value for "+t+" (valid values "+this.toString()+"): "+e:"Invalid value (valid values "+this.toString()+"): "+e,n)},t.checkValidIntValue=function(e,t){if(!1===this.isValidIntValue(e))throw new n("Invalid int value for "+t+": "+e);return e},t.isValidIntValue=function(e){return this.isIntValue()&&this.isValidValue(e)},t.isIntValue=function(){return this.minimum()>=b.MIN_SAFE_INTEGER&&this.maximum()<=b.MAX_SAFE_INTEGER},t.equals=function(t){return t===this||t instanceof e&&this._minSmallest===t._minSmallest&&this._minLargest===t._minLargest&&this._maxSmallest===t._maxSmallest&&this._maxLargest===t._maxLargest},t.hashCode=function(){return b.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)},t.toString=function(){var e=this.minimum()+(this.minimum()!==this.largestMinimum()?"/"+this.largestMinimum():"");return(e+=" - ")+(this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/"+this.maximum():""))},e.of=function(){return 2===arguments.length?new e(arguments[0],arguments[0],arguments[1],arguments[1]):3===arguments.length?new e(arguments[0],arguments[0],arguments[1],arguments[2]):4===arguments.length?new e(arguments[0],arguments[1],arguments[2],arguments[3]):h(!1,"Invalid number of arguments "+arguments.length,c)},e}(),M=function(e){function t(t,r,i,n){var a;return(a=e.call(this)||this)._name=t,a._baseUnit=r,a._rangeUnit=i,a._range=n,a}d(t,e),t.byName=function(e){for(var r in t)if(t[r]&&t[r]instanceof t&&t[r].name()===e)return t[r]};var r=t.prototype;return r.name=function(){return this._name},r.baseUnit=function(){return this._baseUnit},r.rangeUnit=function(){return this._rangeUnit},r.range=function(){return this._range},r.displayName=function(){return this.toString()},r.checkValidValue=function(e){return this.range().checkValidValue(e,this)},r.checkValidIntValue=function(e){return this.range().checkValidIntValue(e,this)},r.isDateBased=function(){return this===t.DAY_OF_WEEK||this===t.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===t.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===t.DAY_OF_MONTH||this===t.DAY_OF_YEAR||this===t.EPOCH_DAY||this===t.ALIGNED_WEEK_OF_MONTH||this===t.ALIGNED_WEEK_OF_YEAR||this===t.MONTH_OF_YEAR||this===t.YEAR_OF_ERA||this===t.YEAR||this===t.ERA},r.isTimeBased=function(){return this===t.NANO_OF_SECOND||this===t.NANO_OF_DAY||this===t.MICRO_OF_SECOND||this===t.MICRO_OF_DAY||this===t.MILLI_OF_SECOND||this===t.MILLI_OF_DAY||this===t.SECOND_OF_MINUTE||this===t.SECOND_OF_DAY||this===t.MINUTE_OF_HOUR||this===t.MINUTE_OF_DAY||this===t.HOUR_OF_AMPM||this===t.CLOCK_HOUR_OF_AMPM||this===t.HOUR_OF_DAY||this===t.CLOCK_HOUR_OF_DAY||this===t.AMPM_OF_DAY},r.rangeRefinedBy=function(e){return e.range(this)},r.getFrom=function(e){return e.getLong(this)},r.toString=function(){return this.name()},r.equals=function(e){return this===e},r.adjustInto=function(e,t){return e.with(this,t)},r.isSupportedBy=function(e){return e.isSupported(this)},t}(E),D=function(){function e(){}return e.zoneId=function(){return e.ZONE_ID},e.chronology=function(){return e.CHRONO},e.precision=function(){return e.PRECISION},e.zone=function(){return e.ZONE},e.offset=function(){return e.OFFSET},e.localDate=function(){return e.LOCAL_DATE},e.localTime=function(){return e.LOCAL_TIME},e}(),R=function(){function e(){}var t=e.prototype;return t.query=function(e){return e===D.zoneId()||e===D.chronology()||e===D.precision()?null:e.queryFrom(this)},t.get=function(e){return this.range(e).checkValidIntValue(this.getLong(e),e)},t.range=function(e){if(e instanceof M){if(this.isSupported(e))return e.range();throw new o("Unsupported field: "+e)}return e.rangeRefinedBy(this)},e}(),I=function(e){function t(){return e.apply(this,arguments)||this}return d(t,e),t.prototype.queryFrom=function(e){y("queryFrom")},t}(_);function B(e,t){var r=function(e){function t(){return e.apply(this,arguments)||this}return d(t,e),t}(I);return r.prototype.queryFrom=t,new r(e)}var C,P,F=function(e){function t(t,r){var i;return(i=e.call(this)||this)._ordinal=t,i._name=r,i}d(t,e);var r=t.prototype;return r.ordinal=function(){return this._ordinal},r.name=function(){return this._name},t.values=function(){return C.slice()},t.valueOf=function(e){for(var r=0;r<C.length&&C[r].name()!==e;r++);return t.of(r+1)},t.of=function(e){if(e<1||e>7)throw new n("Invalid value for DayOfWeek: "+e);return C[e-1]},t.from=function(e){if(h(null!=e,"temporal",l),e instanceof t)return e;try{return t.of(e.get(M.DAY_OF_WEEK))}catch(t){throw t instanceof n?new n("Unable to obtain DayOfWeek from TemporalAccessor: "+e+", type "+(null!=e.constructor?e.constructor.name:""),t):t}},r.value=function(){return this._ordinal+1},r.displayName=function(e,t){throw new c("Pattern using (localized) text not implemented yet!")},r.isSupported=function(e){return e instanceof M?e===M.DAY_OF_WEEK:null!=e&&e.isSupportedBy(this)},r.range=function(e){if(e===M.DAY_OF_WEEK)return e.range();if(e instanceof M)throw new o("Unsupported field: "+e);return e.rangeRefinedBy(this)},r.get=function(e){return e===M.DAY_OF_WEEK?this.value():this.range(e).checkValidIntValue(this.getLong(e),e)},r.getLong=function(e){if(e===M.DAY_OF_WEEK)return this.value();if(e instanceof M)throw new o("Unsupported field: "+e);return e.getFrom(this)},r.plus=function(e){var t=b.floorMod(e,7);return C[b.floorMod(this._ordinal+(t+7),7)]},r.minus=function(e){return this.plus(-1*b.floorMod(e,7))},r.query=function(e){return e===D.precision()?k.DAYS:e===D.localDate()||e===D.localTime()||e===D.chronology()||e===D.zone()||e===D.zoneId()||e===D.offset()?null:(h(null!=e,"query",l),e.queryFrom(this))},r.adjustInto=function(e){return m(e,"temporal"),e.with(M.DAY_OF_WEEK,this.value())},r.equals=function(e){return this===e},r.toString=function(){return this._name},r.compareTo=function(e){return m(e,"other"),f(e,t,"other"),this._ordinal-e._ordinal},r.toJSON=function(){return this.toString()},t}(R),U=function(e){function t(t,r){var i;return(i=e.call(this)||this)._value=b.safeToInt(t),i._name=r,i}d(t,e);var r=t.prototype;return r.value=function(){return this._value},r.ordinal=function(){return this._value-1},r.name=function(){return this._name},r.displayName=function(e,t){throw new c("Pattern using (localized) text not implemented yet!")},r.isSupported=function(e){return null!==e&&(e instanceof M?e===M.MONTH_OF_YEAR:null!=e&&e.isSupportedBy(this))},r.get=function(e){return e===M.MONTH_OF_YEAR?this.value():this.range(e).checkValidIntValue(this.getLong(e),e)},r.getLong=function(e){if(e===M.MONTH_OF_YEAR)return this.value();if(e instanceof M)throw new o("Unsupported field: "+e);return e.getFrom(this)},r.plus=function(e){var r=b.intMod(e,12)+12,i=b.intMod(this.value()+r,12);return i=0===i?12:i,t.of(i)},r.minus=function(e){return this.plus(-1*b.intMod(e,12))},r.length=function(e){switch(this){case t.FEBRUARY:return e?29:28;case t.APRIL:case t.JUNE:case t.SEPTEMBER:case t.NOVEMBER:return 30;default:return 31}},r.minLength=function(){switch(this){case t.FEBRUARY:return 28;case t.APRIL:case t.JUNE:case t.SEPTEMBER:case t.NOVEMBER:return 30;default:return 31}},r.maxLength=function(){switch(this){case t.FEBRUARY:return 29;case t.APRIL:case t.JUNE:case t.SEPTEMBER:case t.NOVEMBER:return 30;default:return 31}},r.firstDayOfYear=function(e){var r=e?1:0;switch(this){case t.JANUARY:return 1;case t.FEBRUARY:return 32;case t.MARCH:return 60+r;case t.APRIL:return 91+r;case t.MAY:return 121+r;case t.JUNE:return 152+r;case t.JULY:return 182+r;case t.AUGUST:return 213+r;case t.SEPTEMBER:return 244+r;case t.OCTOBER:return 274+r;case t.NOVEMBER:return 305+r;case t.DECEMBER:default:return 335+r}},r.firstMonthOfQuarter=function(){switch(this){case t.JANUARY:case t.FEBRUARY:case t.MARCH:return t.JANUARY;case t.APRIL:case t.MAY:case t.JUNE:return t.APRIL;case t.JULY:case t.AUGUST:case t.SEPTEMBER:return t.JULY;case t.OCTOBER:case t.NOVEMBER:case t.DECEMBER:default:return t.OCTOBER}},r.query=function(t){return h(null!=t,"query() parameter must not be null",n),t===D.chronology()?tt.INSTANCE:t===D.precision()?k.MONTHS:e.prototype.query.call(this,t)},r.toString=function(){switch(this){case t.JANUARY:return"JANUARY";case t.FEBRUARY:return"FEBRUARY";case t.MARCH:return"MARCH";case t.APRIL:return"APRIL";case t.MAY:return"MAY";case t.JUNE:return"JUNE";case t.JULY:return"JULY";case t.AUGUST:return"AUGUST";case t.SEPTEMBER:return"SEPTEMBER";case t.OCTOBER:return"OCTOBER";case t.NOVEMBER:return"NOVEMBER";case t.DECEMBER:return"DECEMBER";default:return"unknown Month, value: "+this.value()}},r.toJSON=function(){return this.toString()},r.adjustInto=function(e){return e.with(M.MONTH_OF_YEAR,this.value())},r.compareTo=function(e){return m(e,"other"),f(e,t,"other"),this._value-e._value},r.equals=function(e){return this===e},t.valueOf=function(e){for(var r=0;r<P.length&&P[r].name()!==e;r++);return t.of(r+1)},t.values=function(){return P.slice()},t.of=function(e){return(e<1||e>12)&&h(!1,"Invalid value for MonthOfYear: "+e,n),P[e-1]},t.from=function(e){if(e instanceof t)return e;try{return t.of(e.get(M.MONTH_OF_YEAR))}catch(t){throw new n("Unable to obtain Month from TemporalAccessor: "+e+" of type "+(e&&null!=e.constructor?e.constructor.name:""),t)}},t}(R),j=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,x=function(e){function t(r,i,n){var a;a=e.call(this)||this;var o=b.safeToInt(r),s=b.safeToInt(i),c=b.safeToInt(n);return 0===o&&0===s&&0===c?(t.ZERO||(a._years=o,a._months=s,a._days=c,t.ZERO=p(a)),t.ZERO||p(a)):(a._years=o,a._months=s,a._days=c,a)}d(t,e),t.ofYears=function(e){return t.create(e,0,0)},t.ofMonths=function(e){return t.create(0,e,0)},t.ofWeeks=function(e){return t.create(0,0,b.safeMultiply(e,7))},t.ofDays=function(e){return t.create(0,0,e)},t.of=function(e,r,i){return t.create(e,r,i)},t.from=function(e){if(e instanceof t)return e;m(e,"amount");for(var r=0,i=0,a=0,o=e.units(),s=0;s<o.length;s++){var c=o[s],u=e.get(c);if(c===k.YEARS)r=b.safeToInt(u);else if(c===k.MONTHS)i=b.safeToInt(u);else{if(c!==k.DAYS)throw new n("Unit must be Years, Months or Days, but was "+c);a=b.safeToInt(u)}}return t.create(r,i,a)},t.between=function(e,t){return m(e,"startDate"),m(t,"endDate"),f(e,ct,"startDate"),f(t,ct,"endDate"),e.until(t)},t.parse=function(e){m(e,"text");try{return t._parse(e)}catch(t){throw t instanceof s?new a("Text cannot be parsed to a Period",e,0,t):t}},t._parse=function(e){var r=j.exec(e);if(null!=r){var i="-"===r[1]?-1:1,n=r[2],o=r[3],s=r[4],c=r[5];if(null!=n||null!=o||null!=s||null!=c){var u=t._parseNumber(e,n,i),l=t._parseNumber(e,o,i),d=t._parseNumber(e,s,i),p=t._parseNumber(e,c,i);return p=b.safeAdd(p,b.safeMultiply(d,7)),t.create(u,l,p)}}throw new a("Text cannot be parsed to a Period",e,0)},t._parseNumber=function(e,t,r){if(null==t)return 0;var i=b.parseInt(t);return b.safeMultiply(i,r)},t.create=function(e,r,i){return new t(e,r,i)};var r=t.prototype;return r.units=function(){return[k.YEARS,k.MONTHS,k.DAYS]},r.chronology=function(){return tt.INSTANCE},r.get=function(e){if(e===k.YEARS)return this._years;if(e===k.MONTHS)return this._months;if(e===k.DAYS)return this._days;throw new o("Unsupported unit: "+e)},r.isZero=function(){return this===t.ZERO},r.isNegative=function(){return this._years<0||this._months<0||this._days<0},r.years=function(){return this._years},r.months=function(){return this._months},r.days=function(){return this._days},r.withYears=function(e){return e===this._years?this:t.create(e,this._months,this._days)},r.withMonths=function(e){return e===this._months?this:t.create(this._years,e,this._days)},r.withDays=function(e){return e===this._days?this:t.create(this._years,this._months,e)},r.plus=function(e){var r=t.from(e);return t.create(b.safeAdd(this._years,r._years),b.safeAdd(this._months,r._months),b.safeAdd(this._days,r._days))},r.plusYears=function(e){return 0===e?this:t.create(b.safeToInt(b.safeAdd(this._years,e)),this._months,this._days)},r.plusMonths=function(e){return 0===e?this:t.create(this._years,b.safeToInt(b.safeAdd(this._months,e)),this._days)},r.plusDays=function(e){return 0===e?this:t.create(this._years,this._months,b.safeToInt(b.safeAdd(this._days,e)))},r.minus=function(e){var r=t.from(e);return t.create(b.safeSubtract(this._years,r._years),b.safeSubtract(this._months,r._months),b.safeSubtract(this._days,r._days))},r.minusYears=function(e){return this.plusYears(-1*e)},r.minusMonths=function(e){return this.plusMonths(-1*e)},r.minusDays=function(e){return this.plusDays(-1*e)},r.multipliedBy=function(e){return this===t.ZERO||1===e?this:t.create(b.safeMultiply(this._years,e),b.safeMultiply(this._months,e),b.safeMultiply(this._days,e))},r.negated=function(){return this.multipliedBy(-1)},r.normalized=function(){var e=this.toTotalMonths(),r=b.intDiv(e,12),i=b.intMod(e,12);return r===this._years&&i===this._months?this:t.create(b.safeToInt(r),i,this._days)},r.toTotalMonths=function(){return 12*this._years+this._months},r.addTo=function(e){return m(e,"temporal"),0!==this._years?e=0!==this._months?e.plus(this.toTotalMonths(),k.MONTHS):e.plus(this._years,k.YEARS):0!==this._months&&(e=e.plus(this._months,k.MONTHS)),0!==this._days&&(e=e.plus(this._days,k.DAYS)),e},r.subtractFrom=function(e){return m(e,"temporal"),0!==this._years?e=0!==this._months?e.minus(this.toTotalMonths(),k.MONTHS):e.minus(this._years,k.YEARS):0!==this._months&&(e=e.minus(this._months,k.MONTHS)),0!==this._days&&(e=e.minus(this._days,k.DAYS)),e},r.equals=function(e){if(this===e)return!0;if(e instanceof t){var r=e;return this._years===r._years&&this._months===r._months&&this._days===r._days}return!1},r.hashCode=function(){return b.hashCode(this._years,this._months,this._days)},r.toString=function(){if(this===t.ZERO)return"P0D";var e="P";return 0!==this._years&&(e+=this._years+"Y"),0!==this._months&&(e+=this._months+"M"),0!==this._days&&(e+=this._days+"D"),e},r.toJSON=function(){return this.toString()},t}(S),L=function(){function e(e){this._index=e,this._errorIndex=-1}var t=e.prototype;return t.getIndex=function(){return this._index},t.setIndex=function(e){this._index=e},t.getErrorIndex=function(){return this._errorIndex},t.setErrorIndex=function(e){this._errorIndex=e},e}(),z=function(){function e(){this._map={}}var t=e.prototype;return t.putAll=function(e){for(var t in e._map)this._map[t]=e._map[t];return this},t.containsKey=function(e){return this._map.hasOwnProperty(e.name())&&void 0!==this.get(e)},t.get=function(e){return this._map[e.name()]},t.put=function(e,t){return this.set(e,t)},t.set=function(e,t){return this._map[e.name()]=t,this},t.retainAll=function(e){for(var t={},r=0;r<e.length;r++){var i=e[r].name();t[i]=this._map[i]}return this._map=t,this},t.remove=function(e){var t=e.name(),r=this._map[t];return this._map[t]=void 0,r},t.keySet=function(){return this._map},t.clear=function(){this._map={}},e}(),H=function(e){function t(){return e.apply(this,arguments)||this}return d(t,e),t}(_);H.STRICT=new H("STRICT"),H.SMART=new H("SMART"),H.LENIENT=new H("LENIENT");var V=function(){function e(){}return e.prototype.adjustInto=function(e){y("adjustInto")},e}(),K=function(e){function t(){return e.apply(this,arguments)||this}d(t,e);var r=t.prototype;return r.isSupported=function(e){y("isSupported")},r.minus=function(e,t){return arguments.length<2?this.minusAmount(e):this.minusAmountUnit(e,t)},r.minusAmount=function(e){y("minusAmount")},r.minusAmountUnit=function(e,t){y("minusAmountUnit")},r.plus=function(e,t){return arguments.length<2?this.plusAmount(e):this.plusAmountUnit(e,t)},r.plusAmount=function(e){y("plusAmount")},r.plusAmountUnit=function(e,t){y("plusAmountUnit")},r.until=function(e,t){y("until")},r.with=function(e,t){return arguments.length<2?this.withAdjuster(e):this.withFieldValue(e,t)},r.withAdjuster=function(e){y("withAdjuster")},r.withFieldValue=function(e,t){y("withFieldValue")},t}(R),G=function(e){function t(){return e.apply(this,arguments)||this}d(t,e);var r=t.prototype;return r.withAdjuster=function(e){return m(e,"adjuster"),f(e,V,"adjuster"),e.adjustInto(this)},r.plusAmount=function(e){return m(e,"amount"),f(e,S,"amount"),e.addTo(this)},r.minusAmount=function(e){return m(e,"amount"),f(e,S,"amount"),e.subtractFrom(this)},r.minusAmountUnit=function(e,t){return m(e,"amountToSubtract"),m(t,"unit"),f(t,A,"unit"),e===T?this.plusAmountUnit(v,t).plusAmountUnit(1,t):this.plusAmount(-e,t)},t}(K),J=function(e){function t(){return e.apply(this,arguments)||this}d(t,e);var r=t.prototype;return r.isSupported=function(e){return e instanceof M||e instanceof k?e.isDateBased():null!=e&&e.isSupportedBy(this)},r.query=function(t){return t===D.chronology()?this.chronology():t===D.precision()?k.DAYS:t===D.localDate()?ct.ofEpochDay(this.toEpochDay()):t===D.localTime()||t===D.zone()||t===D.zoneId()||t===D.offset()?null:e.prototype.query.call(this,t)},r.adjustInto=function(e){return e.with(M.EPOCH_DAY,this.toEpochDay())},r.format=function(e){return m(e,"formatter"),f(e,qe,"formatter"),e.format(this)},t}(G),q=function(){function e(){}return e.startsWith=function(e,t){return 0===e.indexOf(t)},e.hashCode=function(e){var t=e.length;if(0===t)return 0;for(var r=0,i=0;i<t;i++)r=(r<<5)-r+e.charCodeAt(i),r|=0;return b.smi(r)},e}(),Y=function(){function e(){}e.systemDefault=function(){throw new n("not supported operation")},e.getAvailableZoneIds=function(){throw new n("not supported operation")},e.of=function(e){throw new n("not supported operation"+e)},e.ofOffset=function(e,t){throw new n("not supported operation"+e+t)},e.from=function(e){throw new n("not supported operation"+e)};var t=e.prototype;return t.id=function(){y("ZoneId.id")},t.rules=function(){y("ZoneId.rules")},t.normalized=function(){var e=this.rules();return e.isFixedOffset()?e.offset(ht.EPOCH):this},t.equals=function(t){return this===t||t instanceof e&&this.id()===t.id()},t.hashCode=function(){return q.hashCode(this.id())},t.toString=function(){return this.id()},t.toJSON=function(){return this.toString()},e}(),W=function(){function e(){}e.of=function(e){return m(e,"offset"),new $(e)};var t=e.prototype;return t.isFixedOffset=function(){y("ZoneRules.isFixedOffset")},t.offset=function(e){return e instanceof ht?this.offsetOfInstant(e):this.offsetOfLocalDateTime(e)},t.offsetOfInstant=function(e){y("ZoneRules.offsetInstant")},t.offsetOfEpochMilli=function(e){y("ZoneRules.offsetOfEpochMilli")},t.offsetOfLocalDateTime=function(e){y("ZoneRules.offsetLocalDateTime")},t.validOffsets=function(e){y("ZoneRules.validOffsets")},t.transition=function(e){y("ZoneRules.transition")},t.standardOffset=function(e){y("ZoneRules.standardOffset")},t.daylightSavings=function(e){y("ZoneRules.daylightSavings")},t.isDaylightSavings=function(e){y("ZoneRules.isDaylightSavings")},t.isValidOffset=function(e,t){y("ZoneRules.isValidOffset")},t.nextTransition=function(e){y("ZoneRules.nextTransition")},t.previousTransition=function(e){y("ZoneRules.previousTransition")},t.transitions=function(){y("ZoneRules.transitions")},t.transitionRules=function(){y("ZoneRules.transitionRules")},t.toString=function(){y("ZoneRules.toString")},t.toJSON=function(){return this.toString()},e}(),$=function(e){function t(t){var r;return(r=e.call(this)||this)._offset=t,r}d(t,e);var r=t.prototype;return r.isFixedOffset=function(){return!0},r.offsetOfInstant=function(){return this._offset},r.offsetOfEpochMilli=function(){return this._offset},r.offsetOfLocalDateTime=function(){return this._offset},r.validOffsets=function(){return[this._offset]},r.transition=function(){return null},r.standardOffset=function(){return this._offset},r.daylightSavings=function(){return w.ZERO},r.isDaylightSavings=function(){return!1},r.isValidOffset=function(e,t){return this._offset.equals(t)},r.nextTransition=function(){return null},r.previousTransition=function(){return null},r.transitions=function(){return[]},r.transitionRules=function(){return[]},r.equals=function(e){return this===e||e instanceof t&&this._offset.equals(e._offset)},r.toString=function(){return"FixedRules:"+this._offset.toString()},t}(W),Z={},X={},Q=function(e){function t(r){var i;return i=e.call(this)||this,t._validateTotalSeconds(r),i._totalSeconds=b.safeToInt(r),i._rules=W.of(p(i)),i._id=t._buildId(r),i}d(t,e);var r=t.prototype;return r.totalSeconds=function(){return this._totalSeconds},r.id=function(){return this._id},t._buildId=function(e){if(0===e)return"Z";var t=Math.abs(e),r=b.intDiv(t,dt.SECONDS_PER_HOUR),i=b.intMod(b.intDiv(t,dt.SECONDS_PER_MINUTE),dt.MINUTES_PER_HOUR),n=(e<0?"-":"+")+(r<10?"0":"")+r+(i<10?":0":":")+i,a=b.intMod(t,dt.SECONDS_PER_MINUTE);return 0!==a&&(n+=(a<10?":0":":")+a),n},t._validateTotalSeconds=function(e){if(Math.abs(e)>t.MAX_SECONDS)throw new n("Zone offset not in valid range: -18:00 to +18:00")},t._validate=function(e,t,r){if(e<-18||e>18)throw new n("Zone offset hours not in valid range: value "+e+" is not in the range -18 to 18");if(e>0){if(t<0||r<0)throw new n("Zone offset minutes and seconds must be positive because hours is positive")}else if(e<0){if(t>0||r>0)throw new n("Zone offset minutes and seconds must be negative because hours is negative")}else if(t>0&&r<0||t<0&&r>0)throw new n("Zone offset minutes and seconds must have the same sign");if(Math.abs(t)>59)throw new n("Zone offset minutes not in valid range: abs(value) "+Math.abs(t)+" is not in the range 0 to 59");if(Math.abs(r)>59)throw new n("Zone offset seconds not in valid range: abs(value) "+Math.abs(r)+" is not in the range 0 to 59");if(18===Math.abs(e)&&(Math.abs(t)>0||Math.abs(r)>0))throw new n("Zone offset not in valid range: -18:00 to +18:00")},t.of=function(e){m(e,"offsetId");var r,i,a,o=X[e];if(null!=o)return o;switch(e.length){case 2:e=e[0]+"0"+e[1];case 3:r=t._parseNumber(e,1,!1),i=0,a=0;break;case 5:r=t._parseNumber(e,1,!1),i=t._parseNumber(e,3,!1),a=0;break;case 6:r=t._parseNumber(e,1,!1),i=t._parseNumber(e,4,!0),a=0;break;case 7:r=t._parseNumber(e,1,!1),i=t._parseNumber(e,3,!1),a=t._parseNumber(e,5,!1);break;case 9:r=t._parseNumber(e,1,!1),i=t._parseNumber(e,4,!0),a=t._parseNumber(e,7,!0);break;default:throw new n("Invalid ID for ZoneOffset, invalid format: "+e)}var s=e[0];if("+"!==s&&"-"!==s)throw new n("Invalid ID for ZoneOffset, plus/minus not found when expected: "+e);return"-"===s?t.ofHoursMinutesSeconds(-r,-i,-a):t.ofHoursMinutesSeconds(r,i,a)},t._parseNumber=function(e,t,r){if(r&&":"!==e[t-1])throw new n("Invalid ID for ZoneOffset, colon not found when expected: "+e);var i=e[t],a=e[t+1];if(i<"0"||i>"9"||a<"0"||a>"9")throw new n("Invalid ID for ZoneOffset, non numeric characters found: "+e);return 10*(i.charCodeAt(0)-48)+(a.charCodeAt(0)-48)},t.ofHours=function(e){return t.ofHoursMinutesSeconds(e,0,0)},t.ofHoursMinutes=function(e,r){return t.ofHoursMinutesSeconds(e,r,0)},t.ofHoursMinutesSeconds=function(e,r,i){t._validate(e,r,i);var n=e*dt.SECONDS_PER_HOUR+r*dt.SECONDS_PER_MINUTE+i;return t.ofTotalSeconds(n)},t.ofTotalMinutes=function(e){var r=e*dt.SECONDS_PER_MINUTE;return t.ofTotalSeconds(r)},t.ofTotalSeconds=function(e){if(e%(15*dt.SECONDS_PER_MINUTE)==0){var r=e,i=Z[r];return null==i&&(i=new t(e),Z[r]=i,X[i.id()]=i),i}return new t(e)},r.rules=function(){return this._rules},r.get=function(e){return this.getLong(e)},r.getLong=function(e){if(e===M.OFFSET_SECONDS)return this._totalSeconds;if(e instanceof M)throw new n("Unsupported field: "+e);return e.getFrom(this)},r.query=function(e){return m(e,"query"),e===D.offset()||e===D.zone()?this:e===D.localDate()||e===D.localTime()||e===D.precision()||e===D.chronology()||e===D.zoneId()?null:e.queryFrom(this)},r.adjustInto=function(e){return e.with(M.OFFSET_SECONDS,this._totalSeconds)},r.compareTo=function(e){return m(e,"other"),e._totalSeconds-this._totalSeconds},r.equals=function(e){return this===e||e instanceof t&&this._totalSeconds===e._totalSeconds},r.hashCode=function(){return this._totalSeconds},r.toString=function(){return this._id},t}(Y),ee=function(e){function t(){var t;return(t=e.call(this)||this).fieldValues=new z,t.chrono=null,t.zone=null,t.date=null,t.time=null,t.leapSecond=!1,t.excessDays=null,t}d(t,e),t.create=function(e,r){var i=new t;return i._addFieldValue(e,r),i};var r=t.prototype;return r.getFieldValue0=function(e){return this.fieldValues.get(e)},r._addFieldValue=function(e,t){m(e,"field");var r=this.getFieldValue0(e);if(null!=r&&r!==t)throw new n("Conflict found: "+e+" "+r+" differs from "+e+" "+t+": "+this);return this._putFieldValue0(e,t)},r._putFieldValue0=function(e,t){return this.fieldValues.put(e,t),this},r.resolve=function(e,t){return null!=t&&this.fieldValues.retainAll(t),this._mergeDate(e),this._mergeTime(e),this._resolveTimeInferZeroes(e),null!=this.excessDays&&!1===this.excessDays.isZero()&&null!=this.date&&null!=this.time&&(this.date=this.date.plus(this.excessDays),this.excessDays=x.ZERO),this._resolveInstant(),this},r._mergeDate=function(e){this._checkDate(tt.INSTANCE.resolveDate(this.fieldValues,e))},r._checkDate=function(e){if(null!=e)for(var t in this._addObject(e),this.fieldValues.keySet()){var r=M.byName(t);if(r&&void 0!==this.fieldValues.get(r)&&r.isDateBased()){var i=void 0;try{i=e.getLong(r)}catch(e){if(e instanceof n)continue;throw e}var a=this.fieldValues.get(r);if(i!==a)throw new n("Conflict found: Field "+r+" "+i+" differs from "+r+" "+a+" derived from "+e)}}},r._mergeTime=function(e){if(this.fieldValues.containsKey(M.CLOCK_HOUR_OF_DAY)){var t=this.fieldValues.remove(M.CLOCK_HOUR_OF_DAY);e!==H.LENIENT&&(e===H.SMART&&0===t||M.CLOCK_HOUR_OF_DAY.checkValidValue(