code-playpad 0.5.2 → 0.7.0

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.
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * code-playpad — MIT © 2026 Seung Hun Lee
3
+ * Bundles CodeMirror 6 and Lezer (MIT) © Marijn Haverbeke and others.
4
+ * Full third-party licences: THIRD-PARTY-NOTICES.txt in this package.
5
+ */
6
+ var e={name:`java-online-compiler`,version:`0.34.1`,commit:`f3698375f3087bcbeeae3f7736746cd0c807c689`,dirty:!1,sha256:`059abe477f6a313ca43107e462a96571ac981a21285a2b5554dfb68af49ba82f`,module:`java-library-bitset`},t='(()=>{var x=Object.create;var b=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var w=(r,t)=>()=>{try{return t||r((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var S=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of y(t))!B.call(r,i)&&i!==e&&b(r,i,{get:()=>t[i],enumerable:!(n=p(t,i))||n.enumerable});return r};var f=(r,t,e)=>(e=r!=null?x(R(r)):{},S(t||!r||!r.__esModule?b(e,"default",{value:r,enumerable:!0}):e,r));var m=w((U,N)=>{var h=globalThis.javaOnlineCompilerLibraryShared;if(!h||!h.common)throw new Error("the library chunk does not publish common, which java-library-bitset needs");N.exports=h.common});var c=w((A,g)=>{var d=globalThis.javaOnlineCompilerLibraryShared;if(!d||!d.streams)throw new Error("the library chunk does not publish streams, which java-library-bitset needs");g.exports=d.streams});var s=f(m(),1),C=f(c(),1),a="java.lang.IndexOutOfBoundsException",v=(1n<<64n)-1n,E=r=>{let t=0;for(let e=r;e;e&=e-1n)t++;return t},u=class r extends s.LibObject{className="java.util.BitSet";words;sticky;constructor(t,e,n){super(t),this.words=new Array(e).fill(0n),this.sticky=n}get wordsInUse(){let t=this.words.length;for(;t>0&&this.words[t-1]===0n;)t--;return t}#n(t,e){if(this.words.length>=e)return;let n=Math.max(2*this.words.length,e);for(t.allocate(n-this.words.length);this.words.length<n;)this.words.push(0n);this.sticky=!1}#i(t,e){e<0&&t.fail(a,`bitIndex < 0: ${e}`)}#a(t,e,n){e<0&&t.fail(a,`fromIndex < 0: ${e}`),n<0&&t.fail(a,`toIndex < 0: ${n}`),e>n&&t.fail(a,`fromIndex: ${e} > toIndex: ${n}`)}#t(t){let e=t>>6;return e<this.words.length&&(this.words[e]>>BigInt(t&63)&1n)===1n}#e(t,e,n){let i=e>>6;n?(this.#n(t,i+1),this.words[i]=this.words[i]|1n<<BigInt(e&63)):i<this.words.length&&(this.words[i]=this.words[i]&~(1n<<BigInt(e&63))&v)}#s(t,e,n,i){this.#a(t,e,n),t.charge(n-e>>>6);for(let o=e;o<n;o++)i(o)}bits(){let t=[];return this.words.forEach((e,n)=>{for(let i=0;e;i++,e>>=1n)e&1n&&t.push(n*64+i)}),t}*javaString(t){let e=this.bits();return t.charge(e.length),`{${e.join(", ")}}`}get contentEquality(){return!0}*contentEquals(t,e){if(e===this)return!0;if(!(e instanceof r))return!1;let n=this.wordsInUse;if(n!==e.wordsInUse)return!1;for(let i=0;i<n;i++)if(this.words[i]!==e.words[i])return!1;return!0}*contentHash(){let t=1234n;for(let e=this.wordsInUse;--e>=0;)t=(t^this.words[e]*BigInt(e+1))&v;return Number(BigInt.asIntN(32,t>>32n^t))}"get(int)"(t,e){return this.#i(t,e),(0,s.bool)(this.#t(e))}"get(int,int)"(t,e,n){this.#a(t,e,n);let i=new r(t.hash(),0,!1),o=this.#o();for(let l=e;l<Math.min(n,o);l++)this.#t(l)&&i.#e(t,l-e,!0);return i.words.length=i.wordsInUse,i}"set(int)"(t,e){this.#i(t,e),this.#e(t,e,!0)}"set(int,boolean)"(t,e,n){this.#i(t,e),this.#e(t,e,n===1)}"set(int,int)"(t,e,n){e<n&&this.#n(t,(n-1>>6)+1),this.#s(t,e,n,i=>this.#e(t,i,!0))}"set(int,int,boolean)"(t,e,n,i){return i===1?this["set(int,int)"](t,e,n):this["clear(int,int)"](t,e,n)}"clear(int)"(t,e){this.#i(t,e),this.#e(t,e,!1)}"clear(int,int)"(t,e,n){this.#s(t,e,n,i=>this.#e(t,i,!1))}"clear()"(){this.words.fill(0n)}"flip(int)"(t,e){this.#i(t,e),this.#e(t,e,!this.#t(e))}"flip(int,int)"(t,e,n){e<n&&this.#n(t,(n-1>>6)+1),this.#s(t,e,n,i=>this.#e(t,i,!this.#t(i)))}#o(){let t=this.wordsInUse;return t===0?0:64*(t-1)+this.words[t-1].toString(2).length}"length()"(){return this.#o()}"size()"(){return this.words.length*64}"isEmpty()"(){return(0,s.bool)(this.wordsInUse===0)}"cardinality()"(){return this.words.reduce((t,e)=>t+E(e),0)}"nextSetBit(int)"(t,e){if(e<0)return t.fail(a,`fromIndex < 0: ${e}`);let n=this.words.length*64;t.charge(n-e>>>6);for(let i=e;i<n;i++)if(this.#t(i))return i;return-1}"nextClearBit(int)"(t,e){if(e<0)return t.fail(a,`fromIndex < 0: ${e}`);let n=e;for(;this.#t(n);)n++;return n}"previousSetBit(int)"(t,e){if(e<-1)return t.fail(a,`fromIndex < -1: ${e}`);for(let n=e;n>=0;n--)if(this.#t(n))return n;return-1}"previousClearBit(int)"(t,e){if(e<-1)return t.fail(a,`fromIndex < -1: ${e}`);for(let n=e;n>=0;n--)if(!this.#t(n))return n;return-1}#r(t,e){return e===null?t.fail("java.lang.NullPointerException",null):e}"and(BitSet)"(t,e){let n=this.#r(t,e);for(let i=0;i<this.words.length;i++)this.words[i]=this.words[i]&(n.words[i]??0n)}"or(BitSet)"(t,e){let n=this.#r(t,e);this.#n(t,n.wordsInUse);for(let i=0;i<n.wordsInUse;i++)this.words[i]=this.words[i]|n.words[i]}"xor(BitSet)"(t,e){let n=this.#r(t,e);this.#n(t,n.wordsInUse);for(let i=0;i<n.wordsInUse;i++)this.words[i]=this.words[i]^n.words[i]}"andNot(BitSet)"(t,e){let n=this.#r(t,e);for(let i=0;i<Math.min(this.words.length,n.words.length);i++)this.words[i]=this.words[i]&~n.words[i]&v}"intersects(BitSet)"(t,e){let n=this.#r(t,e);for(let i=0;i<Math.min(this.words.length,n.words.length);i++)if(this.words[i]&n.words[i])return(0,s.bool)(!0);return(0,s.bool)(!1)}"clone()"(t){let e=new r(t.hash(),0,this.sticky);return e.words=(this.sticky?this.words:this.words.slice(0,this.wordsInUse)).slice(),e}"toLongArray()"(t){let e=this.words.slice(0,this.wordsInUse).map(n=>s.K.normLong(n));return t.allocate(e.length),new s.K.JArray(4,e,t.hash(),"[J")}"stream()"(t){return(0,C.lazyIntStream)(t,()=>this.bits())}},I={"BitSet.<init>()":r=>new u(r.hash(),1,!1),"BitSet.<init>(int)":(r,[t])=>t<0?r.fail("java.lang.NegativeArraySizeException",`nbits < 0: ${t}`):new u(r.hash(),(t-1>>6)+1,!0),"BitSet.valueOf(long[])":(r,[t])=>{if(t===null)return r.fail("java.lang.NullPointerException",null);let e=Array.from(t.data,o=>BigInt.asUintN(64,BigInt(o))),n=e.length;for(;n>0&&e[n-1]===0n;)n--;let i=new u(r.hash(),0,!1);return i.words=e.slice(0,n),i}};(globalThis.javaOnlineCompilerLibraryParts??={})["java-library-bitset"]=I;})();\n';export{e as JAVA_LIBRARY,t as JAVA_LIBRARY_SOURCE};
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * code-playpad — MIT © 2026 Seung Hun Lee
3
+ * Bundles CodeMirror 6 and Lezer (MIT) © Marijn Haverbeke and others.
4
+ * Full third-party licences: THIRD-PARTY-NOTICES.txt in this package.
5
+ */
6
+ var e={name:`java-online-compiler`,version:`0.34.1`,commit:`f3698375f3087bcbeeae3f7736746cd0c807c689`,dirty:!1,sha256:`de645a0e067cb410e3bc4ffbeb940bb6c0f6df45495d499c7eb5c272726daf5a`,module:`java-library-math`},t='(()=>{var Ee=Object.create;var ie=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var Ae=Object.getPrototypeOf,Le=Object.prototype.hasOwnProperty;var Je=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}};var Oe=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of we(e))!Le.call(t,r)&&r!==n&&ie(t,r,{get:()=>e[r],enumerable:!(i=Se(e,r))||i.enumerable});return t};var xe=(t,e,n)=>(n=t!=null?Ee(Ae(t)):{},Oe(e||!t||!t.__esModule?ie(n,"default",{value:t,enumerable:!0}):n,t));var ae=Je((je,re)=>{var $=globalThis.javaOnlineCompilerLibraryShared;if(!$||!$.common)throw new Error("the library chunk does not publish common, which java-library-math needs");re.exports=$.common});var h=xe(ae(),1),I="java.lang.NumberFormatException",N="java.lang.ArithmeticException",D="java.lang.NullPointerException",Re="java.lang.IllegalArgumentException",m=t=>10n**BigInt(t),f=t=>t<0n?-t:t,Q=t=>t>0n?1:t<0n?-1:0,A=t=>t===0n?1:f(t).toString().length,j=[0,0,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5],J=class t extends h.LibObject{className="java.math.BigInteger";v;constructor(e,n){super(e),this.v=n}*javaString(){return this.v.toString()}get contentEquality(){return!0}*contentEquals(e,n){return n instanceof t&&n.v===this.v}*contentHash(){return pe(this.v)}naturalOrder(e,n){let i=b(e,n);return this.v<i.v?-1:this.v>i.v?1:0}"add(BigInteger)"(e,n){return s(e,this.v+b(e,n).v)}"subtract(BigInteger)"(e,n){return s(e,this.v-b(e,n).v)}"multiply(BigInteger)"(e,n){return e.charge(E(this.v)*E(b(e,n).v)),s(e,this.v*n.v)}"divide(BigInteger)"(e,n){return s(e,this.v/G(e,n))}"remainder(BigInteger)"(e,n){return s(e,this.v%G(e,n))}"divideAndRemainder(BigInteger)"(e,n){let i=G(e,n);return new h.K.JArray(3,[s(e,this.v/i),s(e,this.v%i)],e.hash(),"[Ljava.math.BigInteger;")}"mod(BigInteger)"(e,n){let i=k(e,n),r=this.v%i;return s(e,r<0n?r+i:r)}"pow(int)"(e,n){return n<0?e.fail(N,"Negative exponent"):(e.charge(E(this.v)*n),s(e,this.v**BigInt(n)))}"modPow(BigInteger,BigInteger)"(e,n,i){let r=b(e,n).v,a=k(e,i);if(a===1n)return s(e,0n);let u=(this.v%a+a)%a;return r<0n&&(u=ue(e,u,a)),e.charge(f(r).toString(2).length*E(a)*E(a)),s(e,Me(u,f(r),a))}"modInverse(BigInteger)"(e,n){let i=k(e,n);return i===1n?s(e,0n):s(e,ue(e,(this.v%i+i)%i,i))}"gcd(BigInteger)"(e,n){let i=f(this.v),r=f(b(e,n).v);for(;r;)[i,r]=[r,i%r];return s(e,i)}"abs()"(e){return this.v<0n?s(e,-this.v):this}"negate()"(e){return s(e,-this.v)}"signum()"(){return Q(this.v)}"compareTo(BigInteger)"(e,n){return this.naturalOrder(e,n)}"max(BigInteger)"(e,n){return this.v>=b(e,n).v?this:n}"min(BigInteger)"(e,n){return this.v<=b(e,n).v?this:n}"sqrt()"(e){return this.v<0n?e.fail(N,"Negative BigInteger"):s(e,De(this.v))}"intValue()"(){return Number(BigInt.asIntN(32,this.v))}"longValue()"(){return h.K.normLong(BigInt.asIntN(64,this.v))}"doubleValue()"(){return Number(this.v)}"floatValue()"(){return h.K.parseDecimalFloat(this.v.toString())}"byteValue()"(){return Number(BigInt.asIntN(8,this.v))}"shortValue()"(){return Number(BigInt.asIntN(16,this.v))}"intValueExact()"(e){return BigInt.asIntN(32,this.v)!==this.v?e.fail(N,"BigInteger out of int range"):Number(this.v)}"longValueExact()"(e){return BigInt.asIntN(64,this.v)!==this.v?e.fail(N,"BigInteger out of long range"):h.K.normLong(this.v)}"toString(int)"(e,n){let i=n;return new h.K.JString(this.v.toString(i<2||i>36?10:i))}"bitLength()"(){let e=this.v<0n?-this.v-1n:this.v;return e===0n?0:e.toString(2).length}"bitCount()"(){let e=this.v<0n?-this.v-1n:this.v,n=0;for(let i of e.toString(2))i==="1"&&n++;return n}"testBit(int)"(e,n){return n<0?e.fail(N,"Negative bit address"):(0,h.bool)((this.v>>BigInt(n)&1n)===1n)}"setBit(int)"(e,n){return n<0?e.fail(N,"Negative bit address"):s(e,this.v|1n<<BigInt(n))}"clearBit(int)"(e,n){return n<0?e.fail(N,"Negative bit address"):s(e,this.v&~(1n<<BigInt(n)))}"flipBit(int)"(e,n){return n<0?e.fail(N,"Negative bit address"):s(e,this.v^1n<<BigInt(n))}"getLowestSetBit()"(){if(this.v===0n)return-1;let e=0;for(;(this.v>>BigInt(e)&1n)===0n;)e++;return e}"shiftLeft(int)"(e,n){let i=n;return s(e,i>=0?this.v<<BigInt(i):this.v>>BigInt(-i))}"shiftRight(int)"(e,n){let i=n;return s(e,i>=0?this.v>>BigInt(i):this.v<<BigInt(-i))}"and(BigInteger)"(e,n){return s(e,this.v&b(e,n).v)}"or(BigInteger)"(e,n){return s(e,this.v|b(e,n).v)}"xor(BigInteger)"(e,n){return s(e,this.v^b(e,n).v)}"not()"(e){return s(e,~this.v)}"andNot(BigInteger)"(e,n){return s(e,this.v&~b(e,n).v)}"isProbablePrime(int)"(e,n){return n<=0?1:(e.charge(E(this.v)**2*40),(0,h.bool)(se(f(this.v))))}"nextProbablePrime()"(e){if(this.v<0n)return e.fail(N,`start < 0: ${this.v}`);let n=this.v<2n?2n:this.v+1n;for(n>2n&&n%2n===0n&&n++;!se(n);)e.charge(E(n)**2*40),n+=n===2n?1n:2n;return s(e,n)}};function pe(t){let e=f(t),n=[];for(;e>0n;)n.unshift(Number(e&0xffffffffn)|0),e>>=32n;let i=0;for(let r of n)i=Math.imul(31,i)+r|0;return Math.imul(i,Q(t))}var E=t=>Math.max(1,Math.ceil(f(t).toString(16).length/8));function b(t,e){return e===null?t.fail(D,\'Cannot read field "signum" because "val" is null\'):e}function G(t,e){let n=b(t,e).v;return n===0n?t.fail(N,"BigInteger divide by zero"):n}function k(t,e){let n=b(t,e).v;return n<=0n?t.fail(N,"BigInteger: modulus not positive"):n}function ue(t,e,n){let[i,r]=[e,n],[a,u]=[1n,0n];for(;r;){let l=i/r;[i,r]=[r,i-l*r],[a,u]=[u,a-l*u]}return i!==1n?t.fail(N,"BigInteger not invertible."):(a%n+n)%n}function Me(t,e,n){let i=1n,r=t%n;for(;e>0n;)e&1n&&(i=i*r%n),r=r*r%n,e>>=1n;return i}function De(t){if(t<2n)return t;let e=BigInt(Math.floor(Math.sqrt(Number(t))));for(;;){let n=e+t/e>>1n;if(n>=e)break;e=n}for(;e*e>t;)e--;for(;(e+1n)*(e+1n)<=t;)e++;return e}function se(t){if(t<2n)return!1;let e=[2n,3n,5n,7n,11n,13n,17n,19n,23n,29n,31n,37n,41n,43n,47n,53n,59n,61n,67n,71n,73n,79n,83n,89n];for(let r of e){if(t===r)return!0;if(t%r===0n)return!1}let n=t-1n,i=0;for(;(n&1n)===0n;)n>>=1n,i++;e:for(let r of e){let a=Me(r,n,t);if(!(a===1n||a===t-1n)){for(let u=1;u<i;u++)if(a=a*a%t,a===t-1n)continue e;return!1}}return!0}var oe=new WeakMap;function s(t,e){if(e>=-16n&&e<=16n){let n=oe.get(t);n||oe.set(t,n=new Map);let i=n.get(e);return i||n.set(e,i=new J(t.hash(),e)),i}return new J(t.hash(),e)}function le(t,e,n){if(e===null)return t.fail(D,\'Cannot invoke "String.length()" because "val" is null\');let i=e.value;if(n<2||n>36)return t.fail(I,"Radix out of range");if(!i.length)return t.fail(I,"Zero length BigInteger");let r=0,a=!1,u=i.lastIndexOf("-"),l=i.lastIndexOf("+");if(u>=0){if(u!==0||l>=0)return t.fail(I,"Illegal embedded sign character");a=!0,r=1}else if(l>=0){if(l!==0)return t.fail(I,"Illegal embedded sign character");r=1}if(r===i.length)return t.fail(I,"Zero length BigInteger");if(/[^\\P{Nd}0-9]/u.test(i))return t.limitation("parsing digits outside ASCII");let v=d=>{let C=parseInt(d,36);return Number.isNaN(C)||C>=n?-1:C};for(;r<i.length&&v(i[r])===0;)r++;if(r===i.length)return 0n;let g=i.length-r,c=g%j[n];c===0&&(c=j[n]);let B=0n,V=BigInt(n);for(t.charge(g>>>3);r<i.length;){let d=i.slice(r,r+c);if(r+=c,c=j[n],!d.length||[...d].some(C=>v(C)<0))return t.fail(I,`For input string: "${d}"${n===10?"":` under radix ${n}`}`);for(let C of d)B=B*V+BigInt(v(C))}return a?-B:B}var X=["UP","DOWN","CEILING","FLOOR","HALF_UP","HALF_DOWN","HALF_EVEN","UNNECESSARY"],Y=class extends h.LibObject{className="java.math.RoundingMode";name;ordinal;constructor(e,n){super(e),this.ordinal=n,this.name=X[n]}*javaString(){return this.name}naturalOrder(e,n){return n===null?e.fail(D,null):this.ordinal-n.ordinal}"name()"(){return new h.K.JString(this.name)}"ordinal()"(){return this.ordinal}"compareTo(RoundingMode)"(e,n){return this.naturalOrder(e,n)}},ge=new WeakMap;function Z(t){let e=ge.get(t);return e||ge.set(t,e=X.map((n,i)=>new Y(t.hash(),i))),e}var R=(t,e)=>Z(t)[X.indexOf(e)];function q(t,e){return e===null?t.fail(D,\'Cannot invoke "java.math.RoundingMode.ordinal()" because "roundingMode" is null\'):e.name}function P(t,e,n,i){let r=e/n,a=e-r*n;if(a===0n)return r;let u=e<0n!=n<0n?-1n:1n,l=2n*f(a),v=l===f(n)?0:l>f(n)?1:-1;switch(i){case"UP":return r+u;case"DOWN":return r;case"CEILING":return u>0n?r+1n:r;case"FLOOR":return u<0n?r-1n:r;case"HALF_UP":return v>=0?r+u:r;case"HALF_DOWN":return v>0?r+u:r;case"HALF_EVEN":return v>0||v===0&&(r&1n)!==0n?r+u:r;case"UNNECESSARY":return t.fail(N,"Rounding necessary")}}var w=class t extends h.LibObject{className="java.math.MathContext";precision;mode;constructor(e,n,i){super(e),this.precision=n,this.mode=i}*javaString(){return`precision=${this.precision} roundingMode=${this.mode.name}`}get contentEquality(){return!0}*contentEquals(e,n){return n instanceof t&&n.precision===this.precision&&n.mode===this.mode}*contentHash(){return this.mode.hash<<24|this.precision}"getPrecision()"(){return this.precision}"getRoundingMode()"(){return this.mode}},ve=new WeakMap;function y(t,e){let n=ve.get(t);return n||(n={UNLIMITED:new w(t.hash(),0,R(t,"HALF_UP")),DECIMAL32:new w(t.hash(),7,R(t,"HALF_EVEN")),DECIMAL64:new w(t.hash(),16,R(t,"HALF_EVEN")),DECIMAL128:new w(t.hash(),34,R(t,"HALF_EVEN"))},ve.set(t,n)),n[e]}function he(t,e,n){return e<0?t.fail(Re,"Digits < 0"):n===null?t.fail(D,"null RoundingMode"):new w(t.hash(),e,n)}function W(t,e){return e===null?t.fail(D,\'Cannot read field "precision" because "mc" is null\'):e}var ee=-2147483648,te=2147483647,z=class t extends h.LibObject{className="java.math.BigDecimal";u;scale;constructor(e,n,i){super(e),this.u=n,this.scale=i}*javaString(){return F(this.u,this.scale)}get contentEquality(){return!0}*contentEquals(e,n){return n instanceof t&&n.u===this.u&&n.scale===this.scale}*contentHash(){return Math.imul(31,pe(this.u))+this.scale|0}naturalOrder(e,n){let i=p(e,n),[r,a]=O(this,i);return r<a?-1:r>a?1:0}"add(BigDecimal)"(e,n){let i=p(e,n),[r,a,u]=O(this,i);return o(e,r+a,u)}"subtract(BigDecimal)"(e,n){let i=p(e,n),[r,a,u]=O(this,i);return o(e,r-a,u)}"multiply(BigDecimal)"(e,n){let i=p(e,n);return o(e,this.u*i.u,M(e,this.scale+i.scale))}"divide(BigDecimal)"(e,n){return fe(e,this,p(e,n))}"divide(BigDecimal,int,RoundingMode)"(e,n,i,r){return de(e,this,p(e,n),i,q(e,r))}"divide(BigDecimal,RoundingMode)"(e,n,i){return de(e,this,p(e,n),this.scale,q(e,i))}"divide(BigDecimal,MathContext)"(e,n,i){let r=W(e,i),a=p(e,n);return r.precision===0?fe(e,this,a):_e(e,this,a,r.precision,r.mode.name)}"divideToIntegralValue(BigDecimal)"(e,n){return be(e,this,p(e,n))}"remainder(BigDecimal)"(e,n){let i=p(e,n),r=be(e,this,i),a=new t(0,r.u*i.u,r.scale+i.scale),[u,l,v]=O(this,a);return o(e,u-l,v)}"setScale(int,RoundingMode)"(e,n,i){return Ce(e,this,n,q(e,i))}"setScale(int)"(e,n){return Ce(e,this,n,"UNNECESSARY")}"round(MathContext)"(e,n){let i=W(e,n);return Te(e,this,i.precision,i.mode.name)}"sqrt(MathContext)"(e,n){return He(e,this,W(e,n))}"pow(int)"(e,n){let i=n;return i<0||i>999999999?e.fail(N,"Invalid operation"):(e.charge(E(this.u)*i),o(e,this.u**BigInt(i),M(e,this.scale*i)))}"negate()"(e){return o(e,-this.u,this.scale)}"abs()"(e){return this.u<0n?o(e,-this.u,this.scale):this}"plus()"(){return this}"signum()"(){return Q(this.u)}"scale()"(){return this.scale}"precision()"(){return A(this.u)}"unscaledValue()"(e){return s(e,this.u)}"compareTo(BigDecimal)"(e,n){return this.naturalOrder(e,n)}"max(BigDecimal)"(e,n){return this.naturalOrder(e,n)>=0?this:n}"min(BigDecimal)"(e,n){return this.naturalOrder(e,n)<=0?this:n}"movePointLeft(int)"(e,n){return Be(e,this,M(e,this.scale+n))}"movePointRight(int)"(e,n){return Be(e,this,M(e,this.scale-n))}"scaleByPowerOfTen(int)"(e,n){return o(e,this.u,M(e,this.scale-n))}"stripTrailingZeros()"(e){if(this.u===0n)return o(e,0n,0);let n=this.u,i=this.scale;for(;n%10n===0n;)n/=10n,i--;return o(e,n,i)}"toPlainString()"(){return new h.K.JString(Ne(this.u,this.scale))}"toBigInteger()"(e){return s(e,S(this))}"toBigIntegerExact()"(e){return S(this)*(this.scale>0?m(this.scale):1n)!==(this.scale>0?this.u:this.u*m(-this.scale))?e.fail(N,"Rounding necessary"):s(e,S(this))}"intValue()"(){return Number(BigInt.asIntN(32,S(this)))}"longValue()"(){return h.K.normLong(BigInt.asIntN(64,S(this)))}"intValueExact()"(e){let n=me(e,this);return BigInt.asIntN(32,n)!==n?e.fail(N,"Overflow"):Number(n)}"longValueExact()"(e){let n=me(e,this);return BigInt.asIntN(64,n)!==n?e.fail(N,"Overflow"):h.K.normLong(n)}"doubleValue()"(){return Number(F(this.u,this.scale))}"floatValue()"(){return h.K.parseDecimalFloat(Ne(this.u,this.scale))}"byteValue()"(){return Number(BigInt.asIntN(8,S(this)))}"shortValue()"(){return Number(BigInt.asIntN(16,S(this)))}};function p(t,e){return e===null?t.fail(D,\'Cannot read field "scale" because "augend" is null\'):e}function M(t,e){return e<ee||e>te?t.fail(N,e>0?"Underflow":"Overflow"):e}function O(t,e){return t.scale===e.scale?[t.u,e.u,t.scale]:t.scale>e.scale?[t.u,e.u*m(t.scale-e.scale),t.scale]:[t.u*m(e.scale-t.scale),e.u,e.scale]}var ce=new WeakMap;function o(t,e,n){return new z(t.hash(),e,n)}function L(t,e){if(e<0n||e>10n)return o(t,e,0);let n=ce.get(t);n||ce.set(t,n=new Map);let i=n.get(e);return i||n.set(e,i=o(t,e,0)),i}function F(t,e){let n=t<0n?"-":"",i=f(t).toString();if(e===0)return n+i;let r=-e+(i.length-1);if(e>0&&r>=-6)return i.length>e?`${n}${i.slice(0,i.length-e)}.${i.slice(i.length-e)}`:`${n}0.${"0".repeat(e-i.length)}${i}`;let a=i.length>1?`${i[0]}.${i.slice(1)}`:i;return`${n}${a}E${r>=0?"+":""}${r}`}function Ne(t,e){return e<=0?t===0n?"0":t.toString()+"0".repeat(-e):F(t,e).includes("E")?ye(t,e):F(t,e)}function ye(t,e){let n=t<0n?"-":"",i=f(t).toString().padStart(e+1,"0");return`${n}${i.slice(0,i.length-e)}.${i.slice(i.length-e)}`}function S(t){return t.scale<=0?t.u*m(-t.scale):t.u/m(t.scale)}function me(t,e){return e.scale>0&&e.u%m(e.scale)!==0n?t.fail(N,"Rounding necessary"):S(e)}function _(t,e,n){n.u===0n&&t.fail(N,e.u===0n?"Division undefined":"Division by zero")}function x(t,e,n){for(;e>n&&t!==0n&&t%10n===0n;)t/=10n,e--;return[t,e]}var ne=t=>Math.max(ee,Math.min(te,t));function fe(t,e,n){_(t,e,n);let i=ne(e.scale-n.scale);if(e.u===0n)return o(t,0n,i);let r=e.u,a=n.u;a<0n&&(r=-r,a=-a);let u=Fe(f(r),a);r/=u,a/=u;let l=0,v=0,g=a;for(;g%2n===0n;)g/=2n,l++;for(;g%5n===0n;)g/=5n,v++;if(g!==1n)return t.fail(N,"Non-terminating decimal expansion; no exact representable decimal result.");let c=Math.max(l,v);u=r*m(c)/a;let[B,V]=x(u,i+c,i);return o(t,B,M(t,V))}function Fe(t,e){for(;e;)[t,e]=[e,t%e];return t}function de(t,e,n,i,r){_(t,e,n);let a=i-e.scale+n.scale,u=a>=0?e.u*m(a):e.u,l=a>=0?n.u:n.u*m(-a);return o(t,P(t,u,l,r),i)}function Pe(t,e){let n=t.toString().length-e.toString().length;return(n>=0?t<e*m(n):t*m(-n)<e)&&n--,n}function _e(t,e,n,i,r){_(t,e,n);let a=ne(e.scale-n.scale);if(e.u===0n)return o(t,0n,a);let u=f(e.u),l=f(n.u),v=Pe(u,l)-a,g=i-1-v,c=g-a,B=c>=0?e.u*m(c):e.u,V=c>=0?n.u:n.u*m(-c),d=P(t,B,V,r),C=B%V===0n;return A(d)>i&&(d/=10n,g--),C&&([d,g]=x(d,g,a)),o(t,d,M(t,g))}function be(t,e,n){_(t,e,n);let i=ne(e.scale-n.scale),[r,a]=O(e,n);if(f(r)<f(a))return o(t,0n,i);let u=r/a;if(i>=0)return o(t,u*m(i),i);let[l,v]=x(u,0,i);return o(t,l,v)}function Ce(t,e,n,i){return n>=e.scale?o(t,e.u*m(n-e.scale),n):o(t,P(t,e.u,m(e.scale-n),i),n)}function Te(t,e,n,i){let r=A(e.u);if(n===0||r<=n)return e;let a=r-n,u=P(t,e.u,m(a),i),l=e.scale-a;return A(u)>n&&(u/=10n,l--),o(t,u,M(t,l))}function Be(t,e,n){return n<0?o(t,e.u*m(-n),0):o(t,e.u,n)}function He(t,e,n){if(e.u<0n)return t.fail(N,"Attempted square root of negative BigDecimal");let i=Math.trunc(e.scale/2);if(e.u===0n)return o(t,0n,i);let r=n.precision===0?"UNNECESSARY":n.mode.name,a=n.precision===0?Math.ceil(A(e.u)/2)+1:n.precision,u=Math.floor((A(e.u)-1-e.scale)/2),l=a-1-u,v=d=>{let C=2*d-e.scale,T=C>=0?e.u*m(C):e.u,H=C>=0?1n:m(-C),U=De(T/H);return{u:U,exact:U*U*H===T,num:T,den:H}},{u:g,exact:c,num:B,den:V}=v(l);if(c)[g,l]=x(g,l,i);else{if(r==="UNNECESSARY")return t.fail(N,"Computed square root not exact.");let d=(2n*g+1n)**2n*V<4n*B;(r==="UP"||r==="CEILING"||(r==="HALF_UP"||r==="HALF_DOWN"||r==="HALF_EVEN")&&d)&&g++,A(g)>a&&(g/=10n,l--)}return o(t,g,M(t,l))}function K(t,e){if(e===null)return t.fail(D,\'Cannot invoke "String.toCharArray()" because "val" is null\');let n=e.value;if(!n.length)return t.fail(I,null);let i=0;(n[0]==="+"||n[0]==="-")&&i++;let r="",a=0,u=!1,l=0;for(;i<n.length;i++){let c=n[i];if(c>="0"&&c<="9")r+=c,u&&a++;else if(c==="."){if(u)return t.fail(I,"Character array contains more than one decimal point.");u=!0}else if(c==="e"||c==="E"){let B=n.slice(i+1);if(!/^[+-]?\\d+$/.test(B))return t.fail(I,null);l=Number(B);break}else return/\\p{Nd}/u.test(c)?t.limitation("parsing digits outside ASCII"):t.fail(I,`Character ${c} is neither a decimal digit number, decimal point, nor "e" notation exponential mark.`)}if(!r.length)return t.fail(I,"No digits found.");let v=a-l;if(v<ee||v>te)return t.fail(I,"Scale out of range.");let g=BigInt(r);return o(t,n[0]==="-"?-g:g,v)}function Ue(t,e){if(!Number.isFinite(e))return t.fail(I,"Infinite or NaN");if(e===0)return o(t,0n,0);let n=new DataView(new ArrayBuffer(8));n.setFloat64(0,e);let i=n.getBigUint64(0),r=Number(i>>52n&0x7ffn),a=i&(1n<<52n)-1n,u;r===0?u=-1074:(a|=1n<<52n,u=r-1075);let l=e<0?-1n:1n;if(u>=0)return o(t,l*(a<<BigInt(u)),0);let[v,g]=x(a*5n**BigInt(-u),-u,0);return o(t,l*v,g)}var Ie=t=>t.value;h.BIG_MATH.integer=s;h.BIG_MATH.decimal=K;var Ve={"BigInteger.ZERO":t=>s(t,0n),"BigInteger.ONE":t=>s(t,1n),"BigInteger.TWO":t=>s(t,2n),"BigInteger.TEN":t=>s(t,10n),"BigInteger.<init>(String)":(t,[e])=>new J(t.hash(),le(t,e,10)),"BigInteger.<init>(String,int)":(t,[e,n])=>new J(t.hash(),le(t,e,n)),"BigInteger.valueOf(long)":(t,[e])=>s(t,BigInt(e)),"BigDecimal.ZERO":t=>L(t,0n),"BigDecimal.ONE":t=>L(t,1n),"BigDecimal.TWO":t=>L(t,2n),"BigDecimal.TEN":t=>L(t,10n),"BigDecimal.<init>(String)":(t,[e])=>K(t,e),"BigDecimal.<init>(double)":(t,[e])=>Ue(t,e),"BigDecimal.<init>(int)":(t,[e])=>o(t,BigInt(e),0),"BigDecimal.<init>(long)":(t,[e])=>o(t,BigInt(e),0),"BigDecimal.<init>(BigInteger)":(t,[e])=>o(t,b(t,e).v,0),"BigDecimal.<init>(BigInteger,int)":(t,[e,n])=>o(t,b(t,e).v,n),"BigDecimal.valueOf(long)":(t,[e])=>L(t,BigInt(e)),"BigDecimal.valueOf(long,int)":(t,[e,n])=>n===0?L(t,BigInt(e)):o(t,BigInt(e),n),"BigDecimal.valueOf(double)":(t,[e])=>Number.isFinite(e)?K(t,new h.K.JString(h.K.doubleToString(e))):t.fail(I,"Infinite or NaN"),"RoundingMode.UP":t=>R(t,"UP"),"RoundingMode.DOWN":t=>R(t,"DOWN"),"RoundingMode.CEILING":t=>R(t,"CEILING"),"RoundingMode.FLOOR":t=>R(t,"FLOOR"),"RoundingMode.HALF_UP":t=>R(t,"HALF_UP"),"RoundingMode.HALF_DOWN":t=>R(t,"HALF_DOWN"),"RoundingMode.HALF_EVEN":t=>R(t,"HALF_EVEN"),"RoundingMode.UNNECESSARY":t=>R(t,"UNNECESSARY"),"RoundingMode.values()":t=>new h.K.JArray(3,Z(t).slice(),t.hash(),"[Ljava.math.RoundingMode;"),"RoundingMode.valueOf(String)":(t,[e])=>e===null?t.fail(D,"Name is null"):Z(t).find(i=>i.name===Ie(e))??t.fail(Re,`No enum constant java.math.RoundingMode.${Ie(e)}`),"MathContext.UNLIMITED":t=>y(t,"UNLIMITED"),"MathContext.DECIMAL32":t=>y(t,"DECIMAL32"),"MathContext.DECIMAL64":t=>y(t,"DECIMAL64"),"MathContext.DECIMAL128":t=>y(t,"DECIMAL128"),"MathContext.<init>(int)":(t,[e])=>he(t,e,R(t,"HALF_UP")),"MathContext.<init>(int,RoundingMode)":(t,[e,n])=>he(t,e,n)};(globalThis.javaOnlineCompilerLibraryParts??={})["java-library-math"]=Ve;})();\n';export{e as JAVA_LIBRARY,t as JAVA_LIBRARY_SOURCE};
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * code-playpad — MIT © 2026 Seung Hun Lee
3
+ * Bundles CodeMirror 6 and Lezer (MIT) © Marijn Haverbeke and others.
4
+ * Full third-party licences: THIRD-PARTY-NOTICES.txt in this package.
5
+ */
6
+ var e={name:`java-online-compiler`,version:`0.34.1`,commit:`f3698375f3087bcbeeae3f7736746cd0c807c689`,dirty:!1,sha256:`0ee5814d5c14fa664c3d5e684054e83de5a6fd14824e04b3bd0f147fe0cf8223`,module:`java-library-regex`},t='(()=>{var F=Object.create;var C=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var o=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var _=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $(t))!M.call(n,i)&&i!==e&&C(n,i,{get:()=>t[i],enumerable:!(r=L(t,i))||r.enumerable});return n};var h=(n,t,e)=>(e=n!=null?F(q(n)):{},_(t||!n||!n.__esModule?C(e,"default",{value:n,enumerable:!0}):e,n));var y=o((D,R)=>{var v=globalThis.javaOnlineCompilerLibraryShared;if(!v||!v.common)throw new Error("the library chunk does not publish common, which java-library-regex needs");R.exports=v.common});var j=o((H,w)=>{var c=globalThis.javaOnlineCompilerLibraryShared;if(!c||!c.lang)throw new Error("the library chunk does not publish lang, which java-library-regex needs");w.exports=c.lang});var J=o((Q,V)=>{var d=globalThis.javaOnlineCompilerLibraryShared;if(!d||!d.regex)throw new Error("the library chunk does not publish regex, which java-library-regex needs");V.exports=d.regex});var P=o((U,E)=>{var x=globalThis.javaOnlineCompilerLibraryShared;if(!x||!x.streams)throw new Error("the library chunk does not publish streams, which java-library-regex needs");E.exports=x.streams});var k=o((X,T)=>{var f=globalThis.javaOnlineCompilerLibraryShared;if(!f||!f.strings)throw new Error("the library chunk does not publish strings, which java-library-regex needs");T.exports=f.strings});var a=h(y(),1),Y=h(j(),1),u=h(J(),1),O=h(P(),1),I=h(k(),1),l="java.lang.NullPointerException",G="java.lang.IllegalStateException",A="java.lang.IndexOutOfBoundsException",z="java.lang.IllegalArgumentException",N=class extends a.LibObject{className="java.util.regex.Pattern";text;javaFlags;compiled;constructor(t,e,r,i){super(t),this.text=e,this.javaFlags=r,this.compiled=i}*javaString(){return this.text}"matcher(String)"(t,e){return e===null?t.fail(l,\'Cannot invoke "java.lang.CharSequence.length()" because "text" is null\'):new S(t.hash(),this,e.value)}"pattern()"(){return new a.K.JString(this.text)}"toString()"(){return new a.K.JString(this.text)}"flags()"(){return this.javaFlags}"split(String)"(t,e){return this["split(String,int)"](t,e,0)}"split(String,int)"(t,e,r){return e===null?t.fail(l,\'Cannot invoke "java.lang.CharSequence.length()" because "input" is null\'):(0,I.splitWith)(t,this.compiled,e.value,r)}};function K(n){let t=[],e=[],r=[];for(let i=0;i<n.length;i++){let s=n.indices?.[i];t.push(n[i]??null),e.push(s?s[0]:-1),r.push(s?s[1]:-1)}return{texts:t,starts:e,ends:r}}var g=class extends a.LibObject{#t(t,e){let r=this.current(t);return(e<0||e>=r.texts.length)&&t.fail(A,`No group ${e}`),r}#e(t,e){if(this.current(t),e===null)return t.fail(l,"Group name");let r=e.value,i=this.pattern.compiled.names.get(r);return i===void 0?t.fail(z,`No group with name <${r}>`):i}"group()"(t){return this["group(int)"](t,0)}"group(int)"(t,e){let r=this.#t(t,e).texts[e]??null;return r===null?null:new a.K.JString(r)}"group(String)"(t,e){return this["group(int)"](t,this.#e(t,e))}"start()"(t){return this.current(t).starts[0]}"start(int)"(t,e){return this.#t(t,e).starts[e]}"start(String)"(t,e){return this["start(int)"](t,this.#e(t,e))}"end()"(t){return this.current(t).ends[0]}"end(int)"(t,e){return this.#t(t,e).ends[e]}"end(String)"(t,e){return this["end(int)"](t,this.#e(t,e))}"groupCount()"(){return this.pattern.compiled.groups}},p=class extends g{className="java.util.regex.Matcher$ImmutableMatchResult";pattern;#t;constructor(t,e,r){super(t),this.pattern=e,this.#t=r}current(){return this.#t}},S=class extends g{className="java.util.regex.Matcher";pattern;text;first=-1;last=0;#t=null;#e=0;constructor(t,e,r){super(t),this.pattern=e,this.text=r}*javaString(){let t=this.first>=0?this.text.slice(this.first,this.last):"";return`java.util.regex.Matcher[pattern=${this.pattern.text} region=0,${this.text.length} lastmatch=${t}]`}current(t){return this.first<0||!this.#t?t.fail(G,"No match found"):this.#t}#n(t){let e=this.pattern.compiled;return t==="whole"?new RegExp(`^(?:${e.source})(?![\\\\s\\\\S])`,"d"+e.flags):new RegExp(e.source,t+"d"+e.flags)}#i(t){return t?(this.#t=K(t),this.first=t.index,this.last=t.index+t[0].length,!0):(this.first=-1,this.#t=null,!1)}#s(t,e){(0,u.checkInput)(t,this.pattern.compiled,this.text);let r=this.#n("g");return r.lastIndex=e,this.#i(r.exec(this.text))}"find()"(t){let e=this.last;return e===this.first&&e++,e>this.text.length?(this.#t=null,this.first=-1,(0,a.bool)(!1)):(0,a.bool)(this.#s(t,e))}"find(int)"(t,e){let r=e;return r<0||r>this.text.length?t.fail(A,"Illegal start index"):(this.#r(),(0,a.bool)(this.#s(t,r)))}"matches()"(t){return(0,u.checkInput)(t,this.pattern.compiled,this.text),(0,a.bool)(this.#i(this.#n("whole").exec(this.text)))}"lookingAt()"(t){(0,u.checkInput)(t,this.pattern.compiled,this.text);let e=this.#n("y");return e.lastIndex=0,(0,a.bool)(this.#i(e.exec(this.text)))}#r(){this.first=-1,this.last=0,this.#t=null,this.#e=0}"reset()"(){return this.#r(),this}"reset(String)"(t,e){return e===null?t.fail(l,\'Cannot invoke "java.lang.CharSequence.length()" because "text" is null\'):(this.text=e.value,this.#r(),this)}"pattern()"(){return this.pattern}"toMatchResult()"(t){return new p(t.hash(),this.pattern,this.#t??{texts:[],starts:[],ends:[]})}#a(t,e){let r=this.current(t),i=Object.assign([...r.texts.map(s=>s??void 0)],{index:this.first,input:this.text});return(0,u.expandReplacement)(t,this.pattern.compiled,e,i)}"replaceAll(String)"(t,e){return e===null?t.fail(l,"replacement"):new a.K.JString(this.#l(t,e.value,!1))}"replaceFirst(String)"(t,e){return e===null?t.fail(l,"replacement"):new a.K.JString(this.#l(t,e.value,!0))}#l(t,e,r){this.#r();let i="",s=0;for(;this["find()"](t)===1&&(i+=this.text.slice(s,this.first)+this.#a(t,e),s=this.last,!r););return i+this.text.slice(s)}"replaceAll(Function)"(t,e){if(e===null)return t.fail(l,null);let r=this;return(0,a.settle)((function*(){r.#r();let i="",s=0;for(;r["find()"](t)===1;){let b=yield*(0,a.callFunctional)(t,e,"apply",[r]);i+=r.text.slice(s,r.first)+r.#a(t,b===null?"null":b.value),s=r.last}return new a.K.JString(i+r.text.slice(s))})())}#u(t,e,r){if(e===null)return t.fail(l,null);if(this.first<0)return t.fail(G,"No match available");if(r===null)return t.fail(l,"replacement");let i=this.#a(t,r.value);return e["append(String)"](t,new a.K.JString(this.text.slice(this.#e,this.first)+i)),this.#e=this.last,this}"appendReplacement(StringBuilder,String)"(t,e,r){return this.#u(t,e,r)}"appendReplacement(StringBuffer,String)"(t,e,r){return this.#u(t,e,r)}#o(t,e){return e===null?t.fail(l,null):e["append(String)"](t,new a.K.JString(this.text.slice(this.#e)))}"appendTail(StringBuilder)"(t,e){return this.#o(t,e)}"appendTail(StringBuffer)"(t,e){return this.#o(t,e)}"results()"(t){return(0,O.lazyStream)(t,()=>{let e=[];for(;this["find()"](t)===1;)e.push(new p(t.hash(),this.pattern,this.#t));return e})}};function m(n,t,e){if(t===null)return n.fail(l,\'Cannot invoke "String.length()" because "this.pattern" is null\');let r=t.value;return new N(n.hash(),r,e,(0,u.compilePattern)(n,r,e))}var B={"Pattern.compile(String)":(n,[t])=>m(n,t,0),"Pattern.compile(String,int)":(n,[t,e])=>m(n,t,e),"Pattern.matches(String,String)":(n,[t,e])=>m(n,t,0)["matcher(String)"](n,e)["matches()"](n),"Pattern.quote(String)":(n,[t])=>t===null?n.fail(l,\'Cannot invoke "String.indexOf(String)" because "s" is null\'):new a.K.JString((0,u.quotePattern)(t.value))};(globalThis.javaOnlineCompilerLibraryParts??={})["java-library-regex"]=B;})();\n';export{e as JAVA_LIBRARY,t as JAVA_LIBRARY_SOURCE};
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * code-playpad — MIT © 2026 Seung Hun Lee
3
+ * Bundles CodeMirror 6 and Lezer (MIT) © Marijn Haverbeke and others.
4
+ * Full third-party licences: THIRD-PARTY-NOTICES.txt in this package.
5
+ */
6
+ var e={name:`java-online-compiler`,version:`0.34.1`,commit:`f3698375f3087bcbeeae3f7736746cd0c807c689`,dirty:!1,sha256:`f96214f5bd73ef7e78e8b56b304b192b21ccdcea962d6ff8e17ec303c3a4da35`,module:`java-library-time`},t='(()=>{var Ke=Object.create;var Oe=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Ze=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Se=(n,e)=>()=>{try{return e||n((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var et=(n,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xe(e))!Qe.call(n,i)&&i!==t&&Oe(n,i,{get:()=>e[i],enumerable:!(a=ze(e,i))||a.enumerable});return n};var Me=(n,e,t)=>(t=n!=null?Ke(Ze(n)):{},et(e||!n||!n.__esModule?Oe(t,"default",{value:n,enumerable:!0}):t,n));var Ee=Se((vt,Ve)=>{var le=globalThis.javaOnlineCompilerLibraryShared;if(!le||!le.common)throw new Error("the library chunk does not publish common, which java-library-time needs");Ve.exports=le.common});var we=Se((gt,Ae)=>{var me=globalThis.javaOnlineCompilerLibraryShared;if(!me||!me.streams)throw new Error("the library chunk does not publish streams, which java-library-time needs");Ae.exports=me.streams});var u=Me(Ee(),1),Ue=Me(we(),1),M="java.time.DateTimeException",ve="java.time.format.DateTimeParseException",I="java.time.temporal.UnsupportedTemporalTypeException",l="java.lang.NullPointerException",P="java.lang.IllegalArgumentException",ee="java.lang.ArithmeticException",x=["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],pe=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],De=["NANOS","MICROS","MILLIS","SECONDS","MINUTES","HOURS","HALF_DAYS","DAYS","WEEKS","MONTHS","YEARS","DECADES","CENTURIES","MILLENNIA","ERAS","FOREVER"],te=["Nanos","Micros","Millis","Seconds","Minutes","Hours","HalfDays","Days","Weeks","Months","Years","Decades","Centuries","Millennia","Eras","Forever"],ne=-999999999,ae=999999999,tt=719528,ie=n=>n[0]+n.slice(1).toLowerCase(),k=n=>(n&3)===0&&(n%100!==0||n%400===0),_=(n,e)=>n===2?e?29:28:n===4||n===6||n===9||n===11?30:31,Pe=(n,e)=>Math.floor(n/e),F=(n,e)=>(n%e+e)%e;function re(n,e,t){let a=365*n;return n>=0?a+=Math.trunc((n+3)/4)-Math.trunc((n+99)/100)+Math.trunc((n+399)/400):a-=Math.trunc(n/-4)-Math.trunc(n/-100)+Math.trunc(n/-400),a+=Math.trunc((367*e-362)/12),a+=t-1,e>2&&(a--,k(n)||a--),a-tt}function nt(n){let e=n+719468,t=Pe(e,146097),a=e-t*146097,i=Math.floor((a-Math.floor(a/1460)+Math.floor(a/36524)-Math.floor(a/146096))/365),r=a-(365*i+Math.floor(i/4)-Math.floor(i/100)),o=Math.floor((5*r+2)/153),s=r-Math.floor((153*o+2)/5)+1,g=o<10?o+3:o-9;return[i+t*400+(g<=2?1:0),g,s]}var ge=class extends u.LibObject{className;name;ordinal;#t;constructor(e,t,a,i,r=a){super(e),this.className=t,this.name=a,this.ordinal=i,this.#t=r}*javaString(){return this.#t}naturalOrder(e,t){return t===null?e.fail(l,null):this.ordinal-t.ordinal}"name()"(){return new u.K.JString(this.name)}"ordinal()"(){return this.ordinal}"toString()"(){return new u.K.JString(this.#t)}"getValue()"(){return this.ordinal+1}"compareTo(DayOfWeek)"(e,t){return this.naturalOrder(e,t)}"compareTo(Month)"(e,t){return this.naturalOrder(e,t)}"compareTo(ChronoUnit)"(e,t){return this.naturalOrder(e,t)}"plus(long)"(e,t){let a=this.className==="java.time.DayOfWeek"?K(e):z(e);return a[F(this.ordinal+Number(BigInt(t)%BigInt(a.length)),a.length)]}"minus(long)"(e,t){let a=this.className==="java.time.DayOfWeek"?K(e):z(e);return a[F(this.ordinal-Number(BigInt(t)%BigInt(a.length)),a.length)]}"length(boolean)"(e,t){return _(this.ordinal+1,t===1)}"maxLength()"(){return _(this.ordinal+1,!0)}"minLength()"(){return _(this.ordinal+1,!1)}"between(Temporal,Temporal)"(e,t,a){return t===null?e.fail(l,\'Cannot invoke "java.time.temporal.Temporal.until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit)" because "temporal1Inclusive" is null\'):t["until(Temporal,TemporalUnit)"](e,a,this)}};function ye(n,e,t){let a=new WeakMap;return i=>{let r=a.get(i);return r||a.set(i,r=n.map((o,s)=>new ge(i.hash(),e,o,s,t?.[s]))),r}}var K=ye(pe,"java.time.DayOfWeek"),z=ye(x,"java.time.Month"),He=ye(De,"java.time.temporal.ChronoUnit",te),R=class n extends u.LibObject{className="java.time.LocalDate";year;month;day;constructor(e,t,a,i){super(e),this.year=t,this.month=a,this.day=i}get epochDay(){return re(this.year,this.month,this.day)}*javaString(){return H(this)}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.year===this.year&&t.month===this.month&&t.day===this.day}*contentHash(){return this.year&4294965248^((this.year<<11)+(this.month<<6)+this.day|0)}naturalOrder(e,t){if(t===null)return e.fail(l,null);let a=t;return this.year!==a.year?this.year-a.year:this.month!==a.month?this.month-a.month:this.day-a.day}get prolepticMonth(){return this.year*12+this.month-1}until(e,t,a){let i=()=>Math.trunc((t.prolepticMonth*32+t.day-(this.prolepticMonth*32+this.day))/32);switch(a.name){case"DAYS":return t.epochDay-this.epochDay;case"WEEKS":return Math.trunc((t.epochDay-this.epochDay)/7);case"MONTHS":return i();case"YEARS":return Math.trunc(i()/12);case"DECADES":return Math.trunc(i()/120);case"CENTURIES":return Math.trunc(i()/1200);case"MILLENNIA":return Math.trunc(i()/12e3);case"ERAS":return e.limitation("ChronoUnit.ERAS");default:return e.fail(I,`Unsupported unit: ${te[a.ordinal]}`)}}"getYear()"(){return this.year}"getMonthValue()"(){return this.month}"getMonth()"(e){return z(e)[this.month-1]}"getDayOfMonth()"(){return this.day}"getDayOfYear()"(){return this.epochDay-re(this.year,1,1)+1}"getDayOfWeek()"(e){return K(e)[F(this.epochDay+3,7)]}"isLeapYear()"(){return(0,u.bool)(k(this.year))}"lengthOfMonth()"(){return _(this.month,k(this.year))}"lengthOfYear()"(){return k(this.year)?366:365}"toEpochDay()"(){return this.epochDay}"plusDays(long)"(e,t){return t===0?this:Y(e,this.epochDay+Number(t))}"minusDays(long)"(e,t){return this["plusDays(long)"](e,-Number(t))}"plusWeeks(long)"(e,t){return this["plusDays(long)"](e,Number(t)*7)}"minusWeeks(long)"(e,t){return this["plusDays(long)"](e,-Number(t)*7)}"plusMonths(long)"(e,t){if(t===0)return this;let a=this.prolepticMonth+Number(t);return Q(e,Pe(a,12),F(a,12)+1,this.day)}"minusMonths(long)"(e,t){return this["plusMonths(long)"](e,-Number(t))}"plusYears(long)"(e,t){return t===0?this:Q(e,this.year+Number(t),this.month,this.day)}"minusYears(long)"(e,t){return this["plusYears(long)"](e,-Number(t))}"plus(long,TemporalUnit)"(e,t,a){if(a===null)return e.fail(l,"unit");let i=Number(t);switch(a.name){case"DAYS":return this["plusDays(long)"](e,i);case"WEEKS":return this["plusWeeks(long)"](e,i);case"MONTHS":return this["plusMonths(long)"](e,i);case"YEARS":return this["plusYears(long)"](e,i);case"DECADES":return this["plusYears(long)"](e,i*10);case"CENTURIES":return this["plusYears(long)"](e,i*100);case"MILLENNIA":return this["plusYears(long)"](e,i*1e3);default:return e.fail(I,`Unsupported unit: ${te[a.ordinal]}`)}}"minus(long,TemporalUnit)"(e,t,a){return this["plus(long,TemporalUnit)"](e,-Number(t),a)}"plus(TemporalAmount)"(e,t){if(t===null)return e.fail(l,"amountToAdd");if(t instanceof G)return W(e,this,t,1);let a=t,i=a.years*12+a.months;return(i===0?this:this["plusMonths(long)"](e,i))["plusDays(long)"](e,a.days)}"minus(TemporalAmount)"(e,t){if(t===null)return e.fail(l,"amountToSubtract");if(t instanceof G)return W(e,this,t,-1);let a=t,i=a.years*12+a.months;return(i===0?this:this["plusMonths(long)"](e,-i))["plusDays(long)"](e,-a.days)}"withDayOfMonth(int)"(e,t){return t===this.day?this:w(e,this.year,this.month,t)}"withMonth(int)"(e,t){return E(e,"MonthOfYear",t,1,12),Q(e,this.year,t,this.day)}"withYear(int)"(e,t){return ue(e,t),Q(e,t,this.month,this.day)}"withDayOfYear(int)"(e,t){return Ye(e,this.year,t)}"isBefore(LocalDate)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)<0)}"isAfter(LocalDate)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)>0)}"isEqual(LocalDate)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)===0)}"compareTo(LocalDate)"(e,t){return this.naturalOrder(e,t)}"until(Temporal,TemporalUnit)"(e,t,a){let i=xe(e,t);return a===null?e.fail(l,Le):this.until(e,i,a)}"atTime(int,int)"(e,t,a){return T(e,this,C(e,t,a))}"atTime(int,int,int)"(e,t,a,i){return T(e,this,C(e,t,a,i))}"atTime(int,int,int,int)"(e,t,a,i,r){return T(e,this,C(e,t,a,i,r))}"atTime(LocalTime)"(e,t){return t===null?e.fail(l,"time"):T(e,this,t)}"atStartOfDay()"(e){return T(e,this,new y(e.hash(),0,0,0,0))}"until(LocalDate)"(e,t){return t===null?e.fail(l,"endDateExclusive"):je(e,this,t)}"format(DateTimeFormatter)"(e,t){return t===null?e.fail(l,"formatter"):new u.K.JString(t.format(e,this))}"datesUntil(LocalDate)"(e,t){if(t===null)return e.fail(l,"endExclusive");let a=t.epochDay;if(a<this.epochDay)return e.fail(P,`${H(t)} < ${H(this)}`);let i=this.epochDay;return(0,Ue.lazyStream)(e,()=>{e.allocate(a-i);let r=[];for(let o=i;o<a;o++)r.push(Y(e,o));return r})}};function H(n){let e=Math.abs(n.year);return`${e<1e3?(n.year<0?"-":"")+String(e).padStart(4,"0"):n.year>9999?`+${n.year}`:String(n.year)}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function E(n,e,t,a,i,r=`${a} - ${i}`){(t<a||t>i)&&n.fail(M,`Invalid value for ${e} (valid values ${r}): ${t}`)}var ue=(n,e)=>E(n,"Year",e,ne,ae);function w(n,e,t,a){return ue(n,e),E(n,"MonthOfYear",t,1,12),E(n,"DayOfMonth",a,1,31,"1 - 28/31"),a>28&&a>_(t,k(e))&&(a===29&&n.fail(M,`Invalid date \'February 29\' as \'${e}\' is not a leap year`),n.fail(M,`Invalid date \'${x[t-1]} ${a}\'`)),new R(n.hash(),e,t,a)}function Q(n,e,t,a){return ue(n,e),new R(n.hash(),e,t,Math.min(a,_(t,k(e))))}function Y(n,e){if(!Number.isSafeInteger(e)||e<-365243219162||e>365241780471)return n.fail(M,`Invalid value for EpochDay (valid values -365243219162 - 365241780471): ${e}`);let[t,a,i]=nt(e);return new R(n.hash(),t,a,i)}function Ye(n,e,t){return ue(n,e),E(n,"DayOfYear",t,1,366,"1 - 365/366"),t===366&&!k(e)&&n.fail(M,`Invalid date \'DayOfYear 366\' as \'${e}\' is not a leap year`),Y(n,re(e,1,1)+t-1)}var B=class n extends u.LibObject{className="java.time.Period";years;months;days;constructor(e,t,a,i){super(e),this.years=t,this.months=a,this.days=i}*javaString(){return this.years===0&&this.months===0&&this.days===0?"P0D":`P${this.years?`${this.years}Y`:""}${this.months?`${this.months}M`:""}${this.days?`${this.days}D`:""}`}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.years===this.years&&t.months===this.months&&t.days===this.days}*contentHash(){let e=(t,a)=>t<<a|t>>>32-a|0;return this.years+e(this.months,8)+e(this.days,16)|0}"getYears()"(){return this.years}"getMonths()"(){return this.months}"getDays()"(){return this.days}"toTotalMonths()"(){return this.years*12+this.months}"isZero()"(){return(0,u.bool)(this.years===0&&this.months===0&&this.days===0)}"isNegative()"(){return(0,u.bool)(this.years<0||this.months<0||this.days<0)}"normalized()"(e){let t=this.years*12+this.months;return L(e,Math.trunc(t/12),t%12,this.days)}"negated()"(e){return this["multipliedBy(int)"](e,-1)}"multipliedBy(int)"(e,t){let a=t;return L(e,U(e,this.years*a),U(e,this.months*a),U(e,this.days*a))}"plusDays(long)"(e,t){return L(e,this.years,this.months,U(e,this.days+Number(t)))}"plusMonths(long)"(e,t){return L(e,this.years,U(e,this.months+Number(t)),this.days)}"plusYears(long)"(e,t){return L(e,U(e,this.years+Number(t)),this.months,this.days)}};function U(n,e){return e>2147483647||e<-2147483648?n.fail(ee,"integer overflow"):e}var L=(n,e,t,a)=>new B(n.hash(),e,t,a);function je(n,e,t){let a=t.prolepticMonth-e.prolepticMonth,i=t.day-e.day;if(a>0&&i<0){a--;let r=e["plusMonths(long)"](n,a);i=t.epochDay-r.epochDay}else a<0&&i>0&&(a++,i-=_(t.month,k(t.year)));return L(n,Math.trunc(a/12),a%12,i)}var m=1000000000n,O=86400n*m,at=(1n<<63n)-1n,it=-(1n<<63n);function j(n){switch(n.name){case"NANOS":return 1n;case"MICROS":return 1000n;case"MILLIS":return 1000000n;case"SECONDS":return m;case"MINUTES":return 60n*m;case"HOURS":return 3600n*m;case"HALF_DAYS":return 43200n*m;case"DAYS":return O;default:return null}}var oe=n=>n.ordinal<7,h=n=>BigInt(n),ke=(n,e)=>n.fail(I,`Unsupported unit: ${te[e.ordinal]}`);function A(n,e){return e>at||e<it?n.fail(ee,"long overflow"):e}var Te=(n,e)=>n/e-(n%e!==0n&&n<0n!=e<0n?1n:0n),Ce=(n,e)=>n-Te(n,e)*e;function Re(n,e,t){let a=t instanceof R?H(t):t instanceof y?X(t):t instanceof V?Ge(t):t.className;return n.fail(M,`Unable to obtain ${e} from TemporalAccessor: ${a} of type ${t.className}`)}function xe(n,e){return e===null?n.fail(l,"temporal"):e instanceof R?e:e instanceof V?e.date:Re(n,"LocalDate",e)}function Fe(n,e){return e===null?n.fail(l,"temporal"):e instanceof y?e:e instanceof V?e.time:Re(n,"LocalTime",e)}function Be(n,e){return e===null?n.fail(l,"temporal"):e instanceof V?e:Re(n,"LocalDateTime",e)}var We=\'Cannot invoke "java.time.temporal.TemporalUnit.addTo(java.time.temporal.Temporal, long)" because "unit" is null\',Le=\'Cannot invoke "java.time.temporal.TemporalUnit.between(java.time.temporal.Temporal, java.time.temporal.Temporal)" because "unit" is null\',rt=\'Cannot invoke "java.time.temporal.TemporalUnit.getDuration()" because "unit" is null\';function W(n,e,t,a){let i=e,r=(s,g)=>{i=i["plus(long,TemporalUnit)"](n,u.K.normLong(BigInt(a)*s),He(n)[De.indexOf(g)])};if(t instanceof B){let s=BigInt(t.years)*12n+BigInt(t.months);return t.months===0?t.years!==0&&r(BigInt(t.years),"YEARS"):s!==0n&&r(s,"MONTHS"),t.days!==0&&r(BigInt(t.days),"DAYS"),i}let o=t;return o.seconds!==0n&&r(o.seconds,"SECONDS"),o.nanos!==0&&r(BigInt(o.nanos),"NANOS"),i}function X(n){let e=i=>String(i).padStart(2,"0"),t=`${e(n.hour)}:${e(n.minute)}`;if(n.second===0&&n.nano===0||(t+=`:${e(n.second)}`,n.nano===0))return t;let a=String(n.nano).padStart(9,"0");return t+"."+(n.nano%1e6===0?a.slice(0,3):n.nano%1e3===0?a.slice(0,6):a)}var Ge=n=>`${H(n.date)}T${X(n.time)}`,y=class n extends u.LibObject{className="java.time.LocalTime";hour;minute;second;nano;constructor(e,t,a,i,r){super(e),this.hour=t,this.minute=a,this.second=i,this.nano=r}get nanoOfDay(){return BigInt(this.hour*3600+this.minute*60+this.second)*m+BigInt(this.nano)}*javaString(){return X(this)}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.nanoOfDay===this.nanoOfDay}*contentHash(){return(0,u.longHash)(u.K.normLong(this.nanoOfDay))}naturalOrder(e,t){if(t===null)return e.fail(l,\'Cannot read field "hour" because "other" is null\');let a=this.nanoOfDay,i=t.nanoOfDay;return a<i?-1:a>i?1:0}plusNanosOfDay(e,t){return t===0n?this:Z(e,Ce(this.nanoOfDay+t,O))}"getHour()"(){return this.hour}"getMinute()"(){return this.minute}"getSecond()"(){return this.second}"getNano()"(){return this.nano}"toSecondOfDay()"(){return this.hour*3600+this.minute*60+this.second}"toNanoOfDay()"(){return u.K.normLong(this.nanoOfDay)}"plusHours(long)"(e,t){return this.plusNanosOfDay(e,h(t)%24n*3600n*m)}"plusMinutes(long)"(e,t){return this.plusNanosOfDay(e,h(t)%1440n*60n*m)}"plusSeconds(long)"(e,t){return this.plusNanosOfDay(e,h(t)%86400n*m)}"plusNanos(long)"(e,t){return this.plusNanosOfDay(e,h(t)%O)}"minusHours(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%24n)*3600n*m)}"minusMinutes(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%1440n)*60n*m)}"minusSeconds(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%86400n)*m)}"minusNanos(long)"(e,t){return this.plusNanosOfDay(e,-(h(t)%O))}"plus(long,TemporalUnit)"(e,t,a){if(a===null)return e.fail(l,We);let i=a;if(!oe(i))return ke(e,i);let r=j(i);return this.plusNanosOfDay(e,h(t)%(O/r)*r)}"minus(long,TemporalUnit)"(e,t,a){return this["plus(long,TemporalUnit)"](e,u.K.normLong(-h(t)),a)}"plus(TemporalAmount)"(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.temporal.TemporalAmount.addTo(java.time.temporal.Temporal)" because "amountToAdd" is null\'):W(e,this,t,1)}"minus(TemporalAmount)"(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.temporal.TemporalAmount.subtractFrom(java.time.temporal.Temporal)" because "amountToSubtract" is null\'):W(e,this,t,-1)}"withHour(int)"(e,t){return C(e,t,this.minute,this.second,this.nano)}"withMinute(int)"(e,t){return C(e,this.hour,t,this.second,this.nano)}"withSecond(int)"(e,t){return C(e,this.hour,this.minute,t,this.nano)}"withNano(int)"(e,t){return C(e,this.hour,this.minute,this.second,t)}truncated(e,t){if(t===null)return e.fail(l,rt);let a=t;if(a.name==="NANOS")return this;let i=j(a);return i===null?e.fail(I,"Unit is too large to be used for truncation"):Z(e,this.nanoOfDay/i*i)}"truncatedTo(TemporalUnit)"(e,t){return this.truncated(e,t)}"isBefore(LocalTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)<0)}"isAfter(LocalTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)>0)}"compareTo(LocalTime)"(e,t){return this.naturalOrder(e,t)}"until(Temporal,TemporalUnit)"(e,t,a){let i=Fe(e,t);if(a===null)return e.fail(l,Le);let r=a;return oe(r)?u.K.normLong((i.nanoOfDay-this.nanoOfDay)/j(r)):ke(e,r)}"atDate(LocalDate)"(e,t){return t===null?e.fail(l,"date"):new V(e.hash(),t,this)}"format(DateTimeFormatter)"(e,t){return t===null?e.fail(l,"formatter"):new u.K.JString(t.format(e,this))}};function ot(n,e,t,a,i){E(n,"HourOfDay",e,0,23),E(n,"MinuteOfHour",t,0,59),E(n,"SecondOfMinute",a,0,59),E(n,"NanoOfSecond",i,0,999999999)}function C(n,e,t,a=0,i=0){return ot(n,e,t,a,i),new y(n.hash(),e,t,a,i)}function Z(n,e){if(e<0n||e>=O)return n.fail(M,`Invalid value for NanoOfDay (valid values 0 - 86399999999999): ${e}`);let t=Number(e/m);return new y(n.hash(),Math.floor(t/3600),Math.floor(t/60)%60,t%60,Number(e%m))}var V=class n extends u.LibObject{className="java.time.LocalDateTime";date;time;constructor(e,t,a){super(e),this.date=t,this.time=a}*javaString(){return Ge(this)}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&this.date.naturalOrder(e,t.date)===0&&t.time.nanoOfDay===this.time.nanoOfDay}*contentHash(){return(yield*this.date.contentHash())^(yield*this.time.contentHash())}naturalOrder(e,t){if(t===null)return e.fail(l,\'Cannot invoke "java.time.chrono.ChronoLocalDateTime.toLocalDate()" because "other" is null\');let a=t;return this.date.naturalOrder(e,a.date)||this.time.naturalOrder(e,a.time)}get epochNanos(){return BigInt(this.date.epochDay)*O+this.time.nanoOfDay}#t(e,t,a){return t===this.date&&a===this.time?this:new n(e.hash(),t,a)}plusNanosExact(e,t){if(t===0n)return this;let a=this.time.nanoOfDay+t,i=Te(a,O),r=i===0n?this.date:Y(e,this.date.epochDay+Number(i));return this.#t(e,r,Z(e,Ce(a,O)))}#e(e,t){return this.#t(e,t,this.time)}#n(e,t){return this.#t(e,this.date,t)}"toLocalDate()"(){return this.date}"toLocalTime()"(){return this.time}"getYear()"(){return this.date.year}"getMonthValue()"(){return this.date.month}"getMonth()"(e){return this.date["getMonth()"](e)}"getDayOfMonth()"(){return this.date.day}"getDayOfYear()"(){return this.date["getDayOfYear()"]()}"getDayOfWeek()"(e){return this.date["getDayOfWeek()"](e)}"getHour()"(){return this.time.hour}"getMinute()"(){return this.time.minute}"getSecond()"(){return this.time.second}"getNano()"(){return this.time.nano}"plusYears(long)"(e,t){return this.#e(e,this.date["plusYears(long)"](e,t))}"plusMonths(long)"(e,t){return this.#e(e,this.date["plusMonths(long)"](e,t))}"plusWeeks(long)"(e,t){return this.#e(e,this.date["plusWeeks(long)"](e,t))}"plusDays(long)"(e,t){return this.#e(e,this.date["plusDays(long)"](e,t))}"plusHours(long)"(e,t){return this.plusNanosExact(e,h(t)*3600n*m)}"plusMinutes(long)"(e,t){return this.plusNanosExact(e,h(t)*60n*m)}"plusSeconds(long)"(e,t){return this.plusNanosExact(e,h(t)*m)}"plusNanos(long)"(e,t){return this.plusNanosExact(e,h(t))}"minusYears(long)"(e,t){return this.#e(e,this.date["minusYears(long)"](e,t))}"minusMonths(long)"(e,t){return this.#e(e,this.date["minusMonths(long)"](e,t))}"minusWeeks(long)"(e,t){return this.#e(e,this.date["minusWeeks(long)"](e,t))}"minusDays(long)"(e,t){return this.#e(e,this.date["minusDays(long)"](e,t))}"minusHours(long)"(e,t){return this.plusNanosExact(e,-h(t)*3600n*m)}"minusMinutes(long)"(e,t){return this.plusNanosExact(e,-h(t)*60n*m)}"minusSeconds(long)"(e,t){return this.plusNanosExact(e,-h(t)*m)}"minusNanos(long)"(e,t){return this.plusNanosExact(e,-h(t))}"plus(long,TemporalUnit)"(e,t,a){if(a===null)return e.fail(l,We);let i=a;return oe(i)?this.plusNanosExact(e,h(t)*j(i)):this.#e(e,this.date["plus(long,TemporalUnit)"](e,t,a))}"minus(long,TemporalUnit)"(e,t,a){return this["plus(long,TemporalUnit)"](e,u.K.normLong(-h(t)),a)}"plus(TemporalAmount)"(e,t){return t instanceof B?this.#e(e,this.date["plus(TemporalAmount)"](e,t)):t===null?e.fail(l,"amountToAdd"):W(e,this,t,1)}"minus(TemporalAmount)"(e,t){return t instanceof B?this.#e(e,this.date["minus(TemporalAmount)"](e,t)):t===null?e.fail(l,"amountToSubtract"):W(e,this,t,-1)}"withYear(int)"(e,t){return this.#e(e,this.date["withYear(int)"](e,t))}"withMonth(int)"(e,t){return this.#e(e,this.date["withMonth(int)"](e,t))}"withDayOfMonth(int)"(e,t){return this.#e(e,this.date["withDayOfMonth(int)"](e,t))}"withDayOfYear(int)"(e,t){return this.#e(e,this.date["withDayOfYear(int)"](e,t))}"withHour(int)"(e,t){return this.#n(e,this.time["withHour(int)"](e,t))}"withMinute(int)"(e,t){return this.#n(e,this.time["withMinute(int)"](e,t))}"withSecond(int)"(e,t){return this.#n(e,this.time["withSecond(int)"](e,t))}"withNano(int)"(e,t){return this.#n(e,this.time["withNano(int)"](e,t))}"truncatedTo(TemporalUnit)"(e,t){return this.#n(e,this.time.truncated(e,t))}"isBefore(LocalDateTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)<0)}"isAfter(LocalDateTime)"(e,t){return(0,u.bool)(this.naturalOrder(e,t)>0)}"isEqual(LocalDateTime)"(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.chrono.ChronoLocalDateTime.toLocalTime()" because "other" is null\'):(0,u.bool)(this.naturalOrder(e,t)===0)}"compareTo(LocalDateTime)"(e,t){return this.naturalOrder(e,t)}"until(Temporal,TemporalUnit)"(e,t,a){let i=Be(e,t);if(a===null)return e.fail(l,Le);let r=a;if(oe(r))return u.K.normLong(A(e,(i.epochNanos-this.epochNanos)/j(r)));let o=i.date;return o.epochDay>this.date.epochDay&&i.time.nanoOfDay<this.time.nanoOfDay?o=Y(e,o.epochDay-1):o.epochDay<this.date.epochDay&&i.time.nanoOfDay>this.time.nanoOfDay&&(o=Y(e,o.epochDay+1)),this.date.until(e,o,r)}"format(DateTimeFormatter)"(e,t){return t===null?e.fail(l,"formatter"):new u.K.JString(t.format(e,this))}},T=(n,e,t)=>new V(n.hash(),e,t),G=class n extends u.LibObject{className="java.time.Duration";seconds;nanos;constructor(e,t,a){super(e),this.seconds=t,this.nanos=a}get total(){return this.seconds*m+BigInt(this.nanos)}*javaString(){if(this.seconds===0n&&this.nanos===0)return"PT0S";let e=this.seconds<0n&&this.nanos>0,t=e?this.seconds+1n:this.seconds,a=t/3600n,i=t%3600n/60n,r=t%60n,o="PT";if(a!==0n&&(o+=`${a}H`),i!==0n&&(o+=`${i}M`),r===0n&&this.nanos===0&&o.length>2)return o;if(o+=e&&r===0n?"-0":String(r),this.nanos>0){let s=String(e?1e9-this.nanos:this.nanos).padStart(9,"0").replace(/0+$/,"");o+=`.${s}`}return o+"S"}get contentEquality(){return!0}*contentEquals(e,t){return t instanceof n&&t.seconds===this.seconds&&t.nanos===this.nanos}*contentHash(){return(0,u.longHash)(u.K.normLong(this.seconds))+51*this.nanos|0}naturalOrder(e,t){if(t===null)return e.fail(l,\'Cannot read field "seconds" because "otherDuration" is null\');let a=this.total,i=t.total;return a<i?-1:a>i?1:0}#t(e,t){return t===null?e.fail(l,\'Cannot invoke "java.time.Duration.getSeconds()" because "duration" is null\'):t}"getSeconds()"(){return u.K.normLong(this.seconds)}"getNano()"(){return this.nanos}"isZero()"(){return(0,u.bool)(this.seconds===0n&&this.nanos===0)}"isNegative()"(){return(0,u.bool)(this.seconds<0n)}"isPositive()"(){return(0,u.bool)(this.total>0n)}"plus(Duration)"(e,t){return D(e,this.total+this.#t(e,t).total)}"minus(Duration)"(e,t){return D(e,this.total-this.#t(e,t).total)}"plus(long,TemporalUnit)"(e,t,a){return D(e,this.total+be(e,t,a))}"minus(long,TemporalUnit)"(e,t,a){return D(e,this.total-be(e,t,a))}#e(e,t,a){let i=a>=m?A(e,h(t)*(a/m))*m:h(t)*a;return D(e,this.total+i)}"plusDays(long)"(e,t){return this.#e(e,t,O)}"plusHours(long)"(e,t){return this.#e(e,t,3600n*m)}"plusMinutes(long)"(e,t){return this.#e(e,t,60n*m)}"plusSeconds(long)"(e,t){return this.#e(e,t,m)}"plusMillis(long)"(e,t){return this.#e(e,t,1000000n)}"plusNanos(long)"(e,t){return this.#e(e,t,1n)}"minusDays(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),O)}"minusHours(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),3600n*m)}"minusMinutes(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),60n*m)}"minusSeconds(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),m)}"minusMillis(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),1000000n)}"minusNanos(long)"(e,t){return this.#e(e,u.K.normLong(-h(t)),1n)}"multipliedBy(long)"(e,t){return D(e,this.total*h(t))}"dividedBy(long)"(e,t){let a=h(t);return a===0n?e.fail(ee,"Cannot divide by zero"):D(e,this.total/a)}"dividedBy(Duration)"(e,t){if(t===null)return e.fail(l,"divisor");let a=t.total;return a===0n?e.fail(ee,"Cannot divide by zero"):u.K.normLong(A(e,this.total/a))}"negated()"(e){return D(e,-this.total)}"abs()"(e){return this.seconds<0n?D(e,-this.total):this}"withSeconds(long)"(e,t){return new n(e.hash(),h(t),this.nanos)}"withNanos(int)"(e,t){return E(e,"NanoOfSecond",t,0,999999999),new n(e.hash(),this.seconds,t)}"truncatedTo(TemporalUnit)"(e,t){if(t===null)return e.fail(l,"unit");let a=t;if(a.name==="SECONDS"&&(this.seconds>=0n||this.nanos===0))return new n(e.hash(),this.seconds,0);if(a.name==="NANOS")return this;let i=j(a);if(i===null)return e.fail(I,"Unit is too large to be used for truncation");let r=this.seconds%86400n*m+BigInt(this.nanos);return D(e,this.total+r/i*i-r)}"toDays()"(){return u.K.normLong(this.seconds/86400n)}"toHours()"(){return u.K.normLong(this.seconds/3600n)}"toMinutes()"(){return u.K.normLong(this.seconds/60n)}"toSeconds()"(){return u.K.normLong(this.seconds)}"toMillis()"(e){return u.K.normLong(A(e,this.total/1000000n))}"toNanos()"(e){return u.K.normLong(A(e,this.total))}"toDaysPart()"(){return u.K.normLong(this.seconds/86400n)}"toHoursPart()"(){return Number(this.seconds/3600n%24n)}"toMinutesPart()"(){return Number(this.seconds/60n%60n)}"toSecondsPart()"(){return Number(this.seconds%60n)}"toMillisPart()"(){return Math.floor(this.nanos/1e6)}"toNanosPart()"(){return this.nanos}"compareTo(Duration)"(e,t){return this.naturalOrder(e,t)}};function D(n,e){return new G(n.hash(),A(n,Te(e,m)),Number(Ce(e,m)))}function be(n,e,t){if(t===null)return n.fail(l,"unit");let a=j(t);return a===null?n.fail(I,"Unit must not have an estimated duration"):(a>=m&&A(n,h(e)*(a/m)),h(e)*a)}function st(n,e){let t=/^([-+]?)P(?:([-+]?\\d+)D)?(T(?:([-+]?\\d+)H)?(?:([-+]?\\d+)M)?(?:([-+]?)(\\d+)(?:[.,](\\d{0,9}))?S)?)?$/i.exec(e),a=t?.[3];if(!t||t[2]===void 0&&a===void 0||a?.toUpperCase()==="T")return n.fail(ve,"Text cannot be parsed to a Duration");let i=o=>o===void 0?0n:BigInt(o),r=i(t[2])*O+i(t[4])*3600n*m+i(t[5])*60n*m;if(t[7]!==void 0){let o=BigInt(t[7])*m+BigInt((t[8]??"").padEnd(9,"0")||"0");r+=t[6]==="-"?-o:o}return D(n,t[1]==="-"?-r:r)}function ut(n,e,t){return e===null?n.fail(l,\'Cannot invoke "java.time.temporal.Temporal.until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit)" because "startInclusive" is null\'):e instanceof y?D(n,Fe(n,t).nanoOfDay-e.nanoOfDay):e instanceof V?D(n,Be(n,t).epochNanos-e.epochNanos):(xe(n,t),n.fail(I,"Unsupported unit: Seconds"))}function Ie(){let n=new Date;return{date:[n.getFullYear(),n.getMonth()+1,n.getDate()],time:[n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()*1e6]}}var lt="yuMLdDEHhkKmsSan",mt="GuyDMLdQqYwWEecFaBhKkHmsSAnNVvzOXxZpg",ht={y:"YearOfEra",u:"Year",M:"MonthOfYear",L:"MonthOfYear",d:"DayOfMonth",D:"DayOfYear",E:"DayOfWeek",H:"HourOfDay",h:"ClockHourOfAmPm",k:"ClockHourOfDay",K:"HourOfAmPm",m:"MinuteOfHour",s:"SecondOfMinute",S:"NanoOfSecond",n:"NanoOfSecond",a:"AmPmOfDay"},ct="yuMLdDE",se=class extends u.LibObject{className="java.time.format.DateTimeFormatter";parts;strict;constructor(e,t,a){super(e),this.parts=t,this.strict=a}*javaString(e){return e.limitation("printing a DateTimeFormatter (the JDK\'s description of its fields)")}"format(TemporalAccessor)"(e,t){return t===null?e.fail(l,"temporal"):new u.K.JString(this.format(e,t))}format(e,t){let a=t instanceof R?t:t instanceof V?t.date:null,i=t instanceof y?t:t instanceof V?t.time:null,r="";for(let o of this.parts){if(o.kind==="literal"){r+=o.text;continue}if(o.kind==="iso-time"){if(!i)return e.fail(I,"Unsupported field: HourOfDay");let v=N=>String(N).padStart(2,"0");r+=`${v(i.hour)}:${v(i.minute)}:${v(i.second)}`,i.nano&&(r+="."+String(i.nano).padStart(9,"0").replace(/0+$/,""));continue}let s=o.count,g=ct.includes(o.letter);if(g&&!a||!g&&!i)return e.fail(I,`Unsupported field: ${ht[o.letter]}`);let f=a,c=i,b=v=>s===1?String(v):String(v).padStart(s,"0");switch(o.letter){case"y":case"u":{if(o.letter==="y"&&f.year<=0)return e.limitation("formatting a year before 1 CE with the pattern letter y");if(s===2)r+=String(F(f.year,100)).padStart(2,"0");else{let v=String(Math.abs(f.year)).padStart(s===1?1:s,"0");r+=f.year<0?`-${v}`:s>=4&&v.length>s?`+${v}`:v}break}case"M":case"L":r+=s===1?String(f.month):s===2?String(f.month).padStart(2,"0"):he(f.month,s);break;case"d":r+=b(f.day);break;case"D":{let v=f.epochDay-re(f.year,1,1)+1;r+=String(v).padStart(s,"0");break}case"E":{let v=pe[F(f.epochDay+3,7)];r+=s<=3?ie(v).slice(0,3):s===4?ie(v):v[0];break}case"H":r+=b(c.hour);break;case"h":r+=b(c.hour%12||12);break;case"k":r+=b(c.hour||24);break;case"K":r+=b(c.hour%12);break;case"m":r+=b(c.minute);break;case"s":r+=b(c.second);break;case"S":r+=String(c.nano).padStart(9,"0").slice(0,s);break;case"n":r+=b(c.nano);break;case"a":r+=c.hour<12?"AM":"PM";break}}return r}#t(e,t){let a=f=>e.fail(ve,f),i=f=>a(`Text \'${t}\' could not be parsed at index ${f}`),r=0,o={},s=f=>{let c=f;for(;c<t.length&&t.charCodeAt(c)>=48&&t.charCodeAt(c)<=57;)c++;return c-f},g=f=>s(f)>=2?Number(t.slice(f,f+2)):null;for(let f=0;f<this.parts.length;f++){let c=this.parts[f];if(c.kind==="literal"){t.startsWith(c.text,r)||i(r),r+=c.text.length;continue}if(c.kind==="iso-time"){let N=g(r);N===null&&i(r),t[r+2]!==":"&&i(r+2);let d=g(r+3);if(d===null&&i(r+3),o.hourOfDay=N,o.minute=d,r+=5,t[r]===":"&&g(r+1)!==null&&(o.second=g(r+1),r+=3,t[r]===".")){let p=Math.min(s(r+1),9);o.nano=Number(t.slice(r+1,r+1+p).padEnd(9,"0")),r+=1+p}continue}let b=0;for(let N=f+1;N<this.parts.length;N++){let d=this.parts[N];if(d.kind!=="field")break;if(d.count===2&&"MLdyHhkKms".includes(d.letter))b+=2;else if(d.letter==="S")b+=d.count;else break}let v=s(r);if((c.letter==="M"||c.letter==="L")&&c.count>2){let N=x.findIndex((d,p)=>t.startsWith(he(p+1,c.count),r));N<0&&i(r),o.month=N+1,r+=he(N+1,c.count).length;continue}switch(c.letter){case"y":case"u":{let N=1,d=r;c.count!==2&&(t[r]==="+"||t[r]==="-")&&(N=t[r]==="-"?-1:1,d++);let p=s(d)-b;if(c.count===2){v<2&&i(r),o.year=2e3+Number(t.slice(r,r+2)),r+=2;break}let S=c.count>=4?4:c.count;p<S&&i(r),c.count>=4&&p>4&&d===r&&i(r),o.year=N*Number(t.slice(d,d+Math.min(p,10))),r=d+Math.min(p,10);break}case"M":case"L":case"d":case"H":case"h":case"k":case"K":case"m":case"s":{let N=c.count===2?2:Math.max(1,Math.min(v-b,2));(v<N||N<1)&&i(r);let d=Number(t.slice(r,r+N)),p={M:"month",L:"month",d:"day",H:"hourOfDay",h:"clockHourOfAmPm",k:"clockHourOfDay",K:"hourOfAmPm",m:"minute",s:"second"}[c.letter];o[p]=d,r+=N;break}case"S":{v<c.count&&i(r),o.nano=Number(t.slice(r,r+c.count).padEnd(9,"0")),r+=c.count;break}case"a":{let N=t.startsWith("AM",r);!N&&!t.startsWith("PM",r)&&i(r),o.amPm=N?0:1,r+=2;break}default:return e.limitation(`parsing with the pattern letter ${c.letter}`)}}return r<t.length&&a(`Text \'${t}\' could not be parsed, unparsed text found at index ${r}`),o}parse(e,t,a){let i=this.#t(e,t),r=d=>e.fail(ve,`Text \'${t}\' could not be parsed: ${d}`,{className:M,message:d}),o=(d,p,S,J,qe=`${S} - ${J}`)=>{p!==void 0&&(p<S||p>J)&&r(`Invalid value for ${d} (valid values ${qe}): ${p}`)},s=null;if(i.year!==void 0||i.month!==void 0||i.day!==void 0){if(i.year===void 0||i.month===void 0||i.day===void 0)return e.limitation("parsing a date without a year, a month and a day");let{year:d,month:p}=i,S=i.day;o("Year",d,ne,ae),o("MonthOfYear",p,1,12),o("DayOfMonth",S,1,31,"1 - 28/31");let J=_(p,k(d));S>J&&(this.strict?r(S===29?`Invalid date \'February 29\' as \'${d}\' is not a leap year`:`Invalid date \'${x[p-1]} ${S}\'`):S=J),s=new R(e.hash(),d,p,S)}let f=i.hourOfDay;i.clockHourOfDay!==void 0&&((this.strict||i.clockHourOfDay!==0)&&o("ClockHourOfDay",i.clockHourOfDay,1,24),f=i.clockHourOfDay===24?0:i.clockHourOfDay);let c=i.hourOfAmPm;if(i.clockHourOfAmPm!==void 0&&((this.strict||i.clockHourOfAmPm!==0)&&o("ClockHourOfAmPm",i.clockHourOfAmPm,1,12),c=i.clockHourOfAmPm===12?0:i.clockHourOfAmPm),c!==void 0){if(o("HourOfAmPm",c,0,11),i.amPm===void 0)return e.limitation("parsing an hour of AM/PM (h or K) without the AM/PM (a)");f=i.amPm*12+c}let b=null;if(f!==void 0){if(o("HourOfDay",f,0,23),o("MinuteOfHour",i.minute,0,59),o("SecondOfMinute",i.second,0,59),i.second!==void 0&&i.minute===void 0)return e.limitation("parsing seconds without minutes");b=new y(e.hash(),f,i.minute??0,i.second??0,i.nano??0)}else if(i.minute!==void 0||i.second!==void 0||i.nano!==void 0)return e.limitation("parsing a time without its hour");let v=a==="LocalDate"?s:a==="LocalTime"?b:s&&b?T(e,s,b):null;if(v)return v;let N=s&&b?`${H(s)}T${X(b)}`:s?H(s):b?X(b):null;return r(`Unable to obtain ${a} from TemporalAccessor: {},ISO${N?` resolved to ${N}`:""} of type java.time.format.Parsed`)}};function he(n,e){let t=x[n-1];return e===3?ie(t).slice(0,3):e===4?ie(t):t[0]}function ft(n,e){let t=[],a,i=r=>{let o=t[t.length-1];o?.kind==="literal"?o.text+=r:t.push({kind:"literal",text:r})};for(let r=0;r<e.length;){let o=e[r];if(/[a-zA-Z]/.test(o)){let s=1;for(;e[r+s]===o;)s++;if(mt.includes(o)||n.fail(P,`Unknown pattern letter: ${o}`),!lt.includes(o)){a??=o,r+=s;continue}o==="S"&&s>9&&n.fail(P,`Minimum width must be from 0 to 9 inclusive but was ${s}`);let g={y:19,u:19,M:5,L:5,d:2,D:3,E:5,H:2,h:2,k:2,K:2,m:2,s:2,S:9,n:19,a:1}[o];s>g&&n.fail(P,`Too many pattern letters: ${o}`),o==="L"&&s<3?t.push({kind:"field",letter:"M",count:s}):t.push({kind:"field",letter:o,count:s}),r+=s}else if(o==="\'"){if(e[r+1]==="\'"){i("\'"),r+=2;continue}let s="",g=r+1;for(;;)if(g>=e.length&&n.fail(P,`Pattern ends with an incomplete string literal: ${e}`),e[g]==="\'"){if(e[g+1]!=="\'")break;s+="\'",g+=2}else s+=e[g++];i(s),r=g+1}else o==="{"||o==="}"||o==="#"?n.fail(P,`Pattern includes reserved character: \'${o}\'`):o==="["||o==="]"?n.limitation("optional sections ([ and ]) in a DateTimeFormatter pattern"):(i(o),r++)}return a&&n.limitation(`the DateTimeFormatter pattern letter ${a}`),new se(n.hash(),t,!1)}var _e=new WeakMap,$e=[{kind:"field",letter:"u",count:4},{kind:"literal",text:"-"},{kind:"field",letter:"M",count:2},{kind:"literal",text:"-"},{kind:"field",letter:"d",count:2}],dt={date:$e,time:[{kind:"iso-time"}],dateTime:[...$e,{kind:"literal",text:"T"},{kind:"iso-time"}]};function $(n,e){let t=_e.get(n);return t||_e.set(n,t={}),t[e]??=new se(n.hash(),dt[e],!0)}var ce=(n,e,t)=>e===null?n.fail(l,t):e.value,q=(n,e,t)=>e===null?n.fail(l,t):e instanceof u.K.JString?e.value:e.text,fe=(n,e)=>e===null?n.fail(l,"formatter"):e,de=(n,e)=>e===null?n.fail(l,"month"):e.ordinal+1;function Ne(n,e,t,a){let i={};return t.forEach((r,o)=>i[`${n}.${r}`]=s=>e(s)[o]),i[`${n}.values()`]=r=>new u.K.JArray(3,e(r).slice(),r.hash(),a),i[`${n}.valueOf(String)`]=(r,[o])=>o===null?r.fail(l,"Name is null"):e(r).find(g=>g.name===o.value)??r.fail(P,`No enum constant ${a.slice(2,-1)}.${o.value}`),i}var Je={...Ne("DayOfWeek",K,pe,"[Ljava.time.DayOfWeek;"),...Ne("Month",z,x,"[Ljava.time.Month;"),...Ne("ChronoUnit",He,De,"[Ljava.time.temporal.ChronoUnit;"),"DayOfWeek.of(int)":(n,[e])=>e<1||e>7?n.fail(M,`Invalid value for DayOfWeek: ${e}`):K(n)[e-1],"Month.of(int)":(n,[e])=>e<1||e>12?n.fail(M,`Invalid value for MonthOfYear: ${e}`):z(n)[e-1],"LocalDate.of(int,int,int)":(n,[e,t,a])=>w(n,e,t,a),"LocalDate.of(int,Month,int)":(n,[e,t,a])=>t===null?n.fail(l,"month"):w(n,e,t.ordinal+1,a),"LocalDate.ofEpochDay(long)":(n,[e])=>Y(n,Number(e)),"LocalDate.ofYearDay(int,int)":(n,[e,t])=>Ye(n,e,t),"LocalDate.parse(String)":(n,[e])=>$(n,"date").parse(n,ce(n,e,"text"),"LocalDate"),"LocalDate.parse(String,DateTimeFormatter)":(n,[e,t])=>{let a=ce(n,e,"text");return fe(n,t).parse(n,a,"LocalDate")},"LocalDate.now()":n=>{let e=new Date;return new R(n.hash(),e.getFullYear(),e.getMonth()+1,e.getDate())},"LocalDate.MIN":n=>new R(n.hash(),ne,1,1),"LocalDate.MAX":n=>new R(n.hash(),ae,12,31),"LocalDate.EPOCH":n=>new R(n.hash(),1970,1,1),"Period.of(int,int,int)":(n,[e,t,a])=>L(n,e,t,a),"Period.ofDays(int)":(n,[e])=>L(n,0,0,e),"Period.ofWeeks(int)":(n,[e])=>L(n,0,0,U(n,e*7)),"Period.ofMonths(int)":(n,[e])=>L(n,0,e,0),"Period.ofYears(int)":(n,[e])=>L(n,e,0,0),"Period.ZERO":n=>L(n,0,0,0),"Period.between(LocalDate,LocalDate)":(n,[e,t])=>e===null||t===null?n.fail(l,null):je(n,e,t),"DateTimeFormatter.ofPattern(String)":(n,[e])=>ft(n,ce(n,e,"pattern")),"DateTimeFormatter.ISO_LOCAL_DATE":n=>$(n,"date"),"DateTimeFormatter.ISO_DATE":n=>$(n,"date"),"DateTimeFormatter.ISO_LOCAL_TIME":n=>$(n,"time"),"DateTimeFormatter.ISO_LOCAL_DATE_TIME":n=>$(n,"dateTime"),"LocalTime.of(int,int)":(n,[e,t])=>C(n,e,t),"LocalTime.of(int,int,int)":(n,[e,t,a])=>C(n,e,t,a),"LocalTime.of(int,int,int,int)":(n,[e,t,a,i])=>C(n,e,t,a,i),"LocalTime.ofSecondOfDay(long)":(n,[e])=>{let t=h(e);return t<0n||t>86399n?n.fail(M,`Invalid value for SecondOfDay (valid values 0 - 86399): ${t}`):Z(n,t*m)},"LocalTime.ofNanoOfDay(long)":(n,[e])=>Z(n,h(e)),"LocalTime.parse(CharSequence)":(n,[e])=>$(n,"time").parse(n,q(n,e,"text"),"LocalTime"),"LocalTime.parse(CharSequence,DateTimeFormatter)":(n,[e,t])=>{let a=q(n,e,"text");return fe(n,t).parse(n,a,"LocalTime")},"LocalTime.now()":n=>{let[e,t,a,i]=Ie().time;return new y(n.hash(),e,t,a,i)},"LocalTime.MIN":n=>new y(n.hash(),0,0,0,0),"LocalTime.MIDNIGHT":n=>new y(n.hash(),0,0,0,0),"LocalTime.NOON":n=>new y(n.hash(),12,0,0,0),"LocalTime.MAX":n=>new y(n.hash(),23,59,59,999999999),"LocalDateTime.of(int,int,int,int,int)":(n,[e,t,a,i,r])=>T(n,w(n,e,t,a),C(n,i,r)),"LocalDateTime.of(int,int,int,int,int,int)":(n,[e,t,a,i,r,o])=>T(n,w(n,e,t,a),C(n,i,r,o)),"LocalDateTime.of(int,int,int,int,int,int,int)":(n,[e,t,a,i,r,o,s])=>T(n,w(n,e,t,a),C(n,i,r,o,s)),"LocalDateTime.of(int,Month,int,int,int)":(n,[e,t,a,i,r])=>T(n,w(n,e,de(n,t),a),C(n,i,r)),"LocalDateTime.of(int,Month,int,int,int,int)":(n,[e,t,a,i,r,o])=>T(n,w(n,e,de(n,t),a),C(n,i,r,o)),"LocalDateTime.of(int,Month,int,int,int,int,int)":(n,[e,t,a,i,r,o,s])=>T(n,w(n,e,de(n,t),a),C(n,i,r,o,s)),"LocalDateTime.of(LocalDate,LocalTime)":(n,[e,t])=>e===null?n.fail(l,"date"):t===null?n.fail(l,"time"):T(n,e,t),"LocalDateTime.parse(CharSequence)":(n,[e])=>$(n,"dateTime").parse(n,q(n,e,"text"),"LocalDateTime"),"LocalDateTime.parse(CharSequence,DateTimeFormatter)":(n,[e,t])=>{let a=q(n,e,"text");return fe(n,t).parse(n,a,"LocalDateTime")},"LocalDateTime.now()":n=>{let{date:e,time:t}=Ie();return T(n,new R(n.hash(),...e),new y(n.hash(),...t))},"LocalDateTime.MIN":n=>T(n,new R(n.hash(),ne,1,1),new y(n.hash(),0,0,0,0)),"LocalDateTime.MAX":n=>T(n,new R(n.hash(),ae,12,31),new y(n.hash(),23,59,59,999999999)),"Duration.ZERO":n=>new G(n.hash(),0n,0),"Duration.ofDays(long)":(n,[e])=>D(n,A(n,h(e)*86400n)*m),"Duration.ofHours(long)":(n,[e])=>D(n,A(n,h(e)*3600n)*m),"Duration.ofMinutes(long)":(n,[e])=>D(n,A(n,h(e)*60n)*m),"Duration.ofSeconds(long)":(n,[e])=>D(n,h(e)*m),"Duration.ofSeconds(long,long)":(n,[e,t])=>D(n,h(e)*m+h(t)),"Duration.ofMillis(long)":(n,[e])=>D(n,h(e)*1000000n),"Duration.ofNanos(long)":(n,[e])=>D(n,h(e)),"Duration.of(long,TemporalUnit)":(n,[e,t])=>D(n,be(n,e,t)),"Duration.between(Temporal,Temporal)":(n,[e,t])=>ut(n,e,t),"Duration.parse(CharSequence)":(n,[e])=>st(n,q(n,e,"text"))};(globalThis.javaOnlineCompilerLibraryParts??={})["java-library-time"]=Je;})();\n';export{e as JAVA_LIBRARY,t as JAVA_LIBRARY_SOURCE};