|
|
if(function(t,e){"function"==typeof define&&define.amd?define("kotlin",["exports"],e):"object"==typeof exports?e(module.exports):(t.kotlin={},e(t.kotlin))}(this,function(ro){var n,io=ro;function t(t,e){return(4294901760&t)*(65535&e)+(65535&t)*(0|e)|0}if(ro.defineInlineFunction=function(t,e){return e},void 0===String.prototype.startsWith&&(String.prototype.startsWith=function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}),void 0===String.prototype.endsWith&&(String.prototype.endsWith=function(t,e){var n=this.toString();(void 0===e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(t){return null!=t&&null!=t.__proto__&&t.__proto__.__proto__===Int8Array.prototype.__proto__}),ro.compareTo=function(t,e){var n=typeof t,r=typeof t;return ro.isChar(t)&&"number"===r?ro.primitiveCompareTo(t.charCodeAt(0),e):"number"===n&&ro.isChar(e)?ro.primitiveCompareTo(t,e.charCodeAt(0)):"number"===n||"string"===n||"boolean"===n?ro.primitiveCompareTo(t,e):t.compareTo_11rb$(e)},ro.primitiveCompareTo=function(t,e){return t<e?-1:e<t?1:0},ro.imul=Math.imul||t,ro.imulEmulated=t,ro.equals=function(t,e){return null==t?null==e:null!=e&&(t!=t?e!=e:"object"==typeof t&&"function"==typeof t.equals?t.equals(e):t===e)},ro.hashCode=function(t){if(null==t)return 0;var e=typeof t;return"object"===e?"function"==typeof t.hashCode?t.hashCode():l(t):"function"===e?l(t):"number"===e?n(t):"boolean"===e?Number(t):function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);e=31*e+r|0}return e}(String(t))},"function"==typeof ArrayBuffer){var e=new ArrayBuffer(8),r=new Float64Array(e),i=new Int32Array(e),o=0,a=1;r[0]=1.2,1072902963!==i[0]&&(o=1,a=0),n=function(t){return(0|t)===t?0|t:(r[0]=t,(31*i[o]|0)+i[a]|0)}}else n=function(t){return 0|t};ro.toString=function(t){return null==t?"null":ro.isArrayish(t)?"[...]":t.toString()};var s=4294967296,u="kotlinHashCodeValue$";function l(t){if(!(u in t)){var e=Math.random()*s|0;Object.defineProperty(t,u,{value:e,enumerable:!1})}return t[u]}ro.identityHashCode=l,ro.Long=function(t,e){this.low_=0|t,this.high_=0|e},ro.Long.$metadata$={kind:"class",simpleName:"Long",interfaces:[]},ro.Long.IntCache_={},ro.Long.fromInt=function(t){if(-128<=t&&t<128){var e=ro.Long.IntCache_[t];if(e)return e}var n=new ro.Long(0|t,t<0?-1:0);return-128<=t&&t<128&&(ro.Long.IntCache_[t]=n),n},ro.Long.fromNumber=function(t){return isNaN(t)||!isFinite(t)?ro.Long.ZERO:t<=-ro.Long.TWO_PWR_63_DBL_?ro.Long.MIN_VALUE:t+1>=ro.Long.TWO_PWR_63_DBL_?ro.Long.MAX_VALUE:t<0?ro.Long.fromNumber(-t).negate():new ro.Long(t%ro.Long.TWO_PWR_32_DBL_|0,t/ro.Long.TWO_PWR_32_DBL_|0)},ro.Long.fromBits=function(t,e){return new ro.Long(t,e)},ro.Long.fromString=function(t,e){if(0==t.length)throw Error("number format error: empty string");var n=e||10;if(n<2||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return ro.Long.fromString(t.substring(1),n).negate();if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character: '+t);for(var r=ro.Long.fromNumber(Math.pow(n,8)),i=ro.Long.ZERO,o=0;o<t.length;o+=8){var a=Math.min(8,t.length-o),s=parseInt(t.substring(o,o+a),n);if(a<8){var u=ro.Long.fromNumber(Math.pow(n,a));i=i.multiply(u).add(ro.Long.fromNumber(s))}else i=(i=i.multiply(r)).add(ro.Long.fromNumber(s))}return i},ro.Long.TWO_PWR_16_DBL_=65536,ro.Long.TWO_PWR_24_DBL_=1<<24,ro.Long.TWO_PWR_32_DBL_=ro.Long.TWO_PWR_16_DBL_*ro.Long.TWO_PWR_16_DBL_,ro.Long.TWO_PWR_31_DBL_=ro.Long.TWO_PWR_32_DBL_/2,ro.Long.TWO_PWR_48_DBL_=ro.Long.TWO_PWR_32_DBL_*ro.Long.TWO_PWR_16_DBL_,ro.Long.TWO_PWR_64_DBL_=ro.Long.TWO_PWR_32_DBL_*ro.Long.TWO_PWR_32_DBL_,ro.Long.TWO_PWR_63_DBL_=ro.Long.TWO_PWR_64_DBL_/2,ro.Long.ZERO=ro.Long.fromInt(0),ro.Long.ONE=ro.Long.fromInt(1),ro.Long.NEG_ONE=ro.Long.fromInt(-1),ro.Long.MAX_VALUE=ro.Long.fromBits(-1,2147483647),ro.Long.MIN_VALUE=ro.Long.fromBits(0,-2147483648),ro.Long.TWO_PWR_24_=ro.Long.fromInt(1<<24),ro.Long.prototype.toInt=function(){return this.low_},ro.Long.prototype.toNumber=function(){return this.high_*ro.Long.TWO_PWR_32_DBL_+this.getLowBitsUnsigned()},ro.Long.prototype.hashCode=function(){return this.high_^this.low_},ro.Long.prototype.toString=function(t){var e=t||10;if(e<2||36<e)throw Error("radix out of range: "+e);if(this.isZero())return"0";if(this.isNegative()){if(this.equalsLong(ro.Long.MIN_VALUE)){var n=ro.Long.fromNumber(e),r=this.div(n),i=r.multiply(n).subtract(this);return r.toString(e)+i.toInt().toString(e)}return"-"+this.negate().toString(e)}for(var o=ro.Long.fromNumber(Math.pow(e,6)),a=(i=this,"");;){var s=i.div(o),u=i.subtract(s.multiply(o)).toInt().toString(e);if((i=s).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},ro.Long.prototype.getHighBits=function(){return this.high_},ro.Long.prototype.getLowBits=function(){return this.low_},ro.Long.prototype.getLowBitsUnsigned=function(){return 0<=this.low_?this.low_:ro.Long.TWO_PWR_32_DBL_+this.low_},ro.Long.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equalsLong(ro.Long.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var t=0!=this.high_?this.high_:this.low_,e=31;0<e&&0==(t&1<<e);e--);return 0!=this.high_?e+33:e+1},ro.Long.prototype.isZero=function(){return 0==this.high_&&0==this.low_},ro.Long.prototype.isNegative=function(){return this.high_<0},ro.Long.prototype.isOdd=function(){return 1==(1&this.low_)},ro.Long.prototype.equalsLong=function(t){return this.high_==t.high_&&this.low_==t.low_},ro.Long.prototype.notEqualsLong=function(t){return this.high_!=t.high_||this.low_!=t.low_},ro.Long.prototype.lessThan=function(t){return this.compare(t)<0},ro.Long.prototype.lessThanOrEqual=function(t){return this.compare(t)<=0},ro.Long.prototype.greaterThan=function(t){return 0<this.compare(t)},ro.Long.prototype.greaterThanOrEqual=function(t){return 0<=this.compare(t)},ro.Long.prototype.compare=function(t){if(this.equalsLong(t))return 0;var e=this.isNegative(),n=t.isNegative();return e&&!n?-1:!e&&n?1:this.subtract(t).isNegative()?-1:1},ro.Long.prototype.negate=function(){return this.equalsLong(ro.Long.MIN_VALUE)?ro.Long.MIN_VALUE:this.not().add(ro.Long.ONE)},ro.Long.prototype.add=function(t){var e=this.high_>>>16,n=65535&this.high_,r=this.low_>>>16,i=65535&this.low_,o=t.high_>>>16,a=65535&t.high_,s=t.low_>>>16,u=0,l=0,c=0,p=0;return c+=(p+=i+(65535&t.low_))>>>16,p&=65535,l+=(c+=r+s)>>>16,c&=65535,u+=(l+=n+a)>>>16,l&=65535,u+=e+o,u&=65535,ro.Long.fromBits(c<<16|p,u<<16|l)},ro.Long.prototype.subtract=function(t){return this.add(t.negate())},ro.Long.prototype.multiply=function(t){if(this.isZero())return ro.Long.ZERO;if(t.isZero())return ro.Long.ZERO;if(this.equalsLong(ro.Long.MIN_VALUE))return t.isOdd()?ro.Long.MIN_VALUE:ro.Long.ZERO;if(t.equalsLong(ro.Long.MIN_VALUE))return this.isOdd()?ro.Long.MIN_VALUE:ro.Long.ZERO;if(this.isNegative())return t.isNegative()?this.negate().multiply(t.negate()):this.negate().multiply(t).negate();if(t.isNegative())return this.multiply(t.negate()).negate();if(this.lessThan(ro.Long.TWO_PWR_24_)&&t.lessThan(ro.Long.TWO_PWR_24_))return ro.Long.fromNumber(this.toNumber()*t.toNumber());var e=this.high_>>>16,n=65535&this.high_,r=this.low_>>>16,i=65535&this.low_,o=t.high_>>>16,a=65535&t.high_,s=t.low_>>>16,u=65535&t.low_,l=0,c=0,p=0,f=0;return p+=(f+=i*u)>>>16,f&=65535,c+=(p+=r*u)>>>16,p&=65535,c+=(p+=i*s)>>>16,p&=65535,l+=(c+=n*u)>>>16,c&=65535,l+=(c+=r*s)>>>16,c&=65535,l+=(c+=i*a)>>>16,c&=65535,l+=e*u+n*s+r*a+i*o,l&=65535,ro.Long.fromBits(p<<16|f,l<<16|c)},ro.Long.prototype.div=function(t){if(t.isZero())throw Error("division by zero");if(this.isZero())return ro.Long.ZERO;if(this.equalsLong(ro.Long.MIN_VALUE)){if(t.equalsLong(ro.Long.ONE)||t.equalsLong(ro.Long.NEG_ONE))return ro.Long.MIN_VALUE;if(t.equalsLong(ro.Long.MIN_VALUE))return ro.Long.ONE;if((r=this.shiftRight(1).div(t).shiftLeft(1)).equalsLong(ro.Long.ZERO))return t.isNegative()?ro.Long.ONE:ro.Long.NEG_ONE;var e=this.subtract(t.multiply(r));return r.add(e.div(t))}if(t.equalsLong(ro.Long.MIN_VALUE))return ro.Long.ZERO;if(this.isNegative())return t.isNegative()?this.negate().div(t.negate()):this.negate().div(t).negate();if(t.isNegative())return this.div(t.negate()).negate();var n=ro.Long.ZERO;for(e=this;e.greaterThanOrEqual(t);){for(var r=Math.max(1,Math.floor(e.toNumber()/t.toNumber())),i=Math.ceil(Math.log(r)/Math.LN2),o=i<=48?1:Math.pow(2,i-48),a=ro.Long.fromNumber(r),s=a.multiply(t);s.isNegative()||s.greaterThan(e);)r-=o,s=(a=ro.Long.fromNumber(r)).multiply(t);a.isZero()&&(a=ro.Long.ONE),n=n.add(a),e=e.subtract(s)}return n},ro.Long.prototype.modulo=function(t){return this.subtract(this.div(t).multiply(t))},ro.Long.prototype.not=function(){return ro.Long.fromBits(~this.low_,~this.high_)},ro.Long.prototype.and=function(t){return ro.Long.fromBits(this.low_&t.low_,this.high_&t.high_)},ro.Long.prototype.or=function(t){return ro.Long.fromBits(this.low_|t.low_,this.high_|t.high_)},ro.Long.prototype.xor=function(t){return ro.Long.fromBits(this.low_^t.low_,this.high_^t.high_)},ro.Long.prototype.shiftLeft=function(t){if(0==(t&=63))return this;var e=this.low_;if(t<32){var n=this.high_;return ro.Long.fromBits(e<<t,n<<t|e>>>32-t)}return ro.Long.fromBits(0,e<<t-32)},ro.Long.prototype.shiftRight=function(t){if(0==(t&=63))return this;var e=this.high_;if(t<32){var n=this.low_;return ro.Long.fromBits(n>>>t|e<<32-t,e>>t)}return ro.Long.fromBits(e>>t-32,0<=e?0:-1)},ro.Long.prototype.shiftRightUnsigned=function(t){if(0==(t&=63))return this;var e=this.high_;if(t<32){var n=this.low_;return ro.Long.fromBits(n>>>t|e<<32-t,e>>>t)}return 32==t?ro.Long.fromBits(e,0):ro.Long.fromBits(e>>>t-32,0)},ro.Long.prototype.equals=function(t){return t instanceof ro.Long&&this.equalsLong(t)},ro.Long.prototype.compareTo_11rb$=ro.Long.prototype.compare,ro.Long.prototype.inc=function(){return this.add(ro.Long.ONE)},ro.Long.prototype.dec=function(){return this.add(ro.Long.NEG_ONE)},ro.Long.prototype.valueOf=function(){return this.toNumber()},ro.Long.prototype.unaryPlus=function(){return this},ro.Long.prototype.unaryMinus=ro.Long.prototype.negate,ro.Long.prototype.inv=ro.Long.prototype.not,ro.Long.prototype.rangeTo=function(t){return new ro.kotlin.ranges.LongRange(this,t)},ro.Kind={CLASS:"class",INTERFACE:"interface",OBJECT:"object"},ro.isType=function(t,e){if(e===Object)switch(typeof t){case"string":case"number":case"boolean":case"function":return!0;default:return t instanceof Object}if(null==t||null==e||"object"!=typeof t&&"function"!=typeof t)return!1;if("function"==typeof e&&t instanceof e)return!0;var n=Object.getPrototypeOf(e),r=null!=n?n.constructor:null;if(null!=r&&"$metadata$"in r){var i=r.$metadata$;if(i.kind===ro.Kind.OBJECT)return t===e}var o=e.$metadata$;return null==o?t instanceof e:o.kind===ro.Kind.INTERFACE&&null!=t.constructor&&null!=(i=t.constructor.$metadata$)&&function t(e,n){if(null==e)return!1;var r,i=e.interfaces;for(r=0;r<i.length;r++)if(i[r]===n)return!0;for(r=0;r<i.length;r++)if(t(i[r].$metadata$,n))return!0;return!1}(i,e)},ro.isChar=function(t){return t instanceof ro.BoxedChar},ro.isCharSequence=function(t){return"string"==typeof t||ro.isType(t,ro.kotlin.CharSequence)},ro.getCallableRef=function(t,e){return e.callableName=t,e};ro.toByte=function(t){return(255&t)<<24>>24},ro.toChar=function(t){return 65535&t},ro.numberToLong=function(t){return t instanceof ro.Long?t:ro.Long.fromNumber(t)},ro.numberToInt=function(t){return t instanceof ro.Long?t.toInt():0|t},ro.toBoxedChar=function(t){return null==t?t:t instanceof ro.BoxedChar?t:new ro.BoxedChar(t)},ro.unboxChar=function(t){return null==t?t:ro.toChar(t)},ro.isArrayish=function(t){return Array.isArray(t)||ArrayBuffer.isView(t)},ro.arrayToString=function(t){return"["+t.map(ro.toString).join(", ")+"]"},function(){"use strict";function t(){r(),this.name$="",this.ordinal$=0}function e(){n=this}Object.defineProperty(t.prototype,"name",{get:function(){return this.name$}}),Object.defineProperty(t.prototype,"ordinal",{get:function(){return this.ordinal$}}),t.prototype.compareTo_11rb$=function(t){return ro.primitiveCompareTo(this.ordinal,t.ordinal)},t.prototype.equals=function(t){return this===t},t.prototype.hashCode=function(){return ro.identityHashCode(this)},t.prototype.toString=function(){return this.name},e.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var n=null;function r(){return null===n&&new e,n}function i(){(o=this).MIN_VALUE=Number.MIN_VALUE,this.MAX_VALUE=Number.MAX_VALUE,this.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,this.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,this.NaN=Number.NaN}t.$metadata$={kind:ro.Kind.CLASS,simpleName:"Enum",interfaces:[u]},i.$metadata$={kind:ro.Kind.OBJECT,simpleName:"DoubleCompanionObject",interfaces:[]};var o=null;function a(){(s=this).MIN_VALUE=-2147483648,this.MAX_VALUE=2147483647}a.$metadata$={kind:ro.Kind.OBJECT,simpleName:"IntCompanionObject",interfaces:[]};var s=null;function u(){}u.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Comparable",interfaces:[]},Object.defineProperty(t,"Companion",{get:r});var l=io.kotlin||(io.kotlin={});l.Enum=t,io.newArray=function(t,e){return function(t,e){var n;n=t.length-1|0;for(var r=0;r<=n;r++)t[r]=e;return t}(Array(t),e)};var c=l.js||(l.js={}),p=c.internal||(c.internal={});Object.defineProperty(p,"DoubleCompanionObject",{get:function(){return null===o&&new i,o}}),Object.defineProperty(p,"IntCompanionObject",{get:function(){return null===s&&new a,s}}),l.Comparable=u}(),function(){"use strict";var t=ro.kotlin.Comparable,i=Object,e=ro.arrayToString,n=Error,r=ro.kotlin.js.internal.DoubleCompanionObject,f=ro.kotlin.js.internal.IntCompanionObject;ro.kotlin.Enum;function o(t){this.closure$arr=t,this.index=0}function a(t){this.closure$array=t,fn.call(this),this.index=0}function s(t){return new a(t)}function u(t){this.closure$array=t,on.call(this),this.index=0}function l(t){return new u(t)}function c(t){this.closure$array=t,sn.call(this),this.index=0}function p(t){return new c(t)}function h(t){this.closure$array=t,an.call(this),this.index=0}function d(t){return new h(t)}function _(t){this.closure$array=t,un.call(this),this.index=0}function m(t){return new _(t)}function $(t){this.closure$array=t,cn.call(this),this.index=0}function y(t){return new $(t)}function g(t){this.closure$array=t,pn.call(this),this.index=0}function v(t){return new g(t)}function b(t){this.closure$array=t,ln.call(this),this.index=0}function x(t){return new b(t)}function w(t){this.c=t}function C(t){for(var e=[],n=t.iterator();n.hasNext();)e.push(n.next());return e}function S(t,e){var n;if(e.length<t.size)return C(t);for(var r=t.iterator(),i=0;r.hasNext();)e[(n=i,i=n+1|0,n)]=r.next();return i<e.length&&(e[i]=null),e}function k(t){return Tr([t])}function N(t){return hi([t])}function I(){or.call(this)}function E(){I.call(this),this.modCount=0}function O(t){this.$outer=t,this.index_0=0,this.last_0=-1}function z(t,e){this.$outer=t,O.call(this,this.$outer),fr().checkPositionIndex_6xvm5r$(e,this.$outer.size),this.index_0=e}function L(t,e,n){E.call(this),this.list_0=t,this.fromIndex_0=e,this._size_0=0,fr().checkRangeIndexes_cub51b$(this.fromIndex_0,n,this.list_0.size),this._size_0=n-this.fromIndex_0|0}function T(){hr.call(this),this._keys_n25ags$_0=null,this._values_n25ags$_0=null}function A(t,e){this.key_af2vu2$_0=t,this._value_0=e}function j(t){this.this$AbstractMutableMap=t,R.call(this)}function P(t){this.closure$entryIterator=t}function q(t){this.this$AbstractMutableMap=t,I.call(this)}function M(t){this.closure$entryIterator=t}function R(){I.call(this)}function K(t){E.call(this),this.array_9xgyxj$_0=t}function B(t,e){return void 0===t&&(t=0),e=e||Object.create(K.prototype),K.call(e,[]),e}function D(t,e){return e=e||Object.create(K.prototype),K.call(e,io.kotlin.collections.copyToArray(t)),e}function F(){}function H(){J=this}(a.prototype=Object.create(fn.prototype)).constructor=a,(u.prototype=Object.create(on.prototype)).constructor=u,(c.prototype=Object.create(sn.prototype)).constructor=c,(h.prototype=Object.create(an.prototype)).constructor=h,(_.prototype=Object.create(un.prototype)).constructor=_,($.prototype=Object.create(cn.prototype)).constructor=$,(g.prototype=Object.create(pn.prototype)).constructor=g,(b.prototype=Object.create(ln.prototype)).constructor=b,(I.prototype=Object.create(or.prototype)).constructor=I,(z.prototype=Object.create(O.prototype)).constructor=z,(E.prototype=Object.create(I.prototype)).constructor=E,(L.prototype=Object.create(E.prototype)).constructor=L,(R.prototype=Object.create(I.prototype)).constructor=R,(j.prototype=Object.create(R.prototype)).constructor=j,(q.prototype=Object.create(I.prototype)).constructor=q,(T.prototype=Object.create(hr.prototype)).constructor=T,(K.prototype=Object.create(E.prototype)).constructor=K,(G.prototype=Object.create(R.prototype)).constructor=G,(V.prototype=Object.create(T.prototype)).constructor=V,(Q.prototype=Object.create(R.prototype)).constructor=Q,(at.prototype=Object.create(A.prototype)).constructor=at,(st.prototype=Object.create(R.prototype)).constructor=st,(ot.prototype=Object.create(V.prototype)).constructor=ot,(pt.prototype=Object.create(Q.prototype)).constructor=pt,($t.prototype=Object.create(mt.prototype)).constructor=$t,(yt.prototype=Object.create(mt.prototype)).constructor=yt,(gt.prototype=Object.create(yt.prototype)).constructor=gt,(vt.prototype=Object.create(n.prototype)).constructor=vt,(bt.prototype=Object.create(n.prototype)).constructor=bt,(xt.prototype=Object.create(bt.prototype)).constructor=xt,(wt.prototype=Object.create(xt.prototype)).constructor=wt,(Ct.prototype=Object.create(xt.prototype)).constructor=Ct,(St.prototype=Object.create(xt.prototype)).constructor=St,(kt.prototype=Object.create(xt.prototype)).constructor=kt,(Nt.prototype=Object.create(xt.prototype)).constructor=Nt,(It.prototype=Object.create(xt.prototype)).constructor=It,(Et.prototype=Object.create(xt.prototype)).constructor=Et,(Ot.prototype=Object.create(bt.prototype)).constructor=Ot,(ar.prototype=Object.create(or.prototype)).constructor=ar,(Ee.prototype=Object.create(ar.prototype)).constructor=Ee,(Oe.prototype=Object.create(or.prototype)).constructor=Oe,(hn.prototype=Object.create(un.prototype)).constructor=hn,(dn.prototype=Object.create(ln.prototype)).constructor=dn,(Cn.prototype=Object.create(_n.prototype)).constructor=Cn,(In.prototype=Object.create(gn.prototype)).constructor=In,(sr.prototype=Object.create(ar.prototype)).constructor=sr,(lr.prototype=Object.create(ur.prototype)).constructor=lr,(br.prototype=Object.create(or.prototype)).constructor=br,(dr.prototype=Object.create(br.prototype)).constructor=dr,(mr.prototype=Object.create(or.prototype)).constructor=mr,(wi.prototype=Object.create(an.prototype)).constructor=wi,(Fi.prototype=Object.create(vt.prototype)).constructor=Fi,o.prototype.hasNext=function(){return this.index<this.closure$arr.length},o.prototype.next=function(){var t;if(this.index<this.closure$arr.length)return this.closure$arr[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},o.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},a.prototype.hasNext=function(){return this.index<this.closure$array.length},a.prototype.nextBoolean=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},a.$metadata$={kind:ro.Kind.CLASS,interfaces:[fn]},u.prototype.hasNext=function(){return this.index<this.closure$array.length},u.prototype.nextByte=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},u.$metadata$={kind:ro.Kind.CLASS,interfaces:[on]},c.prototype.hasNext=function(){return this.index<this.closure$array.length},c.prototype.nextShort=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},c.$metadata$={kind:ro.Kind.CLASS,interfaces:[sn]},h.prototype.hasNext=function(){return this.index<this.closure$array.length},h.prototype.nextChar=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},h.$metadata$={kind:ro.Kind.CLASS,interfaces:[an]},_.prototype.hasNext=function(){return this.index<this.closure$array.length},_.prototype.nextInt=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},_.$metadata$={kind:ro.Kind.CLASS,interfaces:[un]},$.prototype.hasNext=function(){return this.index<this.closure$array.length},$.prototype.nextFloat=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},$.$metadata$={kind:ro.Kind.CLASS,interfaces:[cn]},g.prototype.hasNext=function(){return this.index<this.closure$array.length},g.prototype.nextDouble=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},g.$metadata$={kind:ro.Kind.CLASS,interfaces:[pn]},b.prototype.hasNext=function(){return this.index<this.closure$array.length},b.prototype.nextLong=function(){var t;if(this.index<this.closure$array.length)return this.closure$array[(t=this.index,this.index=t+1|0,t)];throw new Ot(this.index.toString())},b.$metadata$={kind:ro.Kind.CLASS,interfaces:[ln]},w.prototype.equals=function(t){return ro.isType(t,w)&&ro.unboxChar(this.c)===ro.unboxChar(t.c)},w.prototype.hashCode=function(){return 0|ro.unboxChar(this.c)},w.prototype.toString=function(){return String.fromCharCode(ro.toBoxedChar(this.c))},w.prototype.compareTo_11rb$=function(t){return ro.unboxChar(this.c)-ro.unboxChar(t)},w.prototype.valueOf=function(){return this.c},w.$metadata$={kind:ro.Kind.CLASS,simpleName:"BoxedChar",interfaces:[t]},I.prototype.remove_11rb$=function(t){for(var e=this.iterator();e.hasNext();)if(ro.equals(e.next(),t))return e.remove(),!0;return!1},I.prototype.addAll_brywnq$=function(t){var e,n=!1;for(e=t.iterator();e.hasNext();){var r=e.next();this.add_11rb$(r)&&(n=!0)}return n},I.prototype.removeAll_brywnq$=function(t){var e;return Br(ro.isType(this,De)?this:ro.throwCCE(),(e=t,function(t){return e.contains_11rb$(t)}))},I.prototype.retainAll_brywnq$=function(t){var e;return Br(ro.isType(this,De)?this:ro.throwCCE(),(e=t,function(t){return!e.contains_11rb$(t)}))},I.prototype.clear=function(){for(var t=this.iterator();t.hasNext();)t.next(),t.remove()},I.prototype.toJSON=function(){return this.toArray()},I.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractMutableCollection",interfaces:[He,or]},E.prototype.add_11rb$=function(t){return this.add_wxm5ur$(this.size,t),!0},E.prototype.addAll_u57x28$=function(t,e){var n,r,i=t,o=!1;for(n=e.iterator();n.hasNext();){var a=n.next();this.add_wxm5ur$((i=(r=i)+1|0,r),a),o=!0}return o},E.prototype.clear=function(){this.removeRange_vux9f0$(0,this.size)},E.prototype.removeAll_brywnq$=function(t){return Fr(this,(e=t,function(t){return e.contains_11rb$(t)}));var e},E.prototype.retainAll_brywnq$=function(t){return Fr(this,(e=t,function(t){return!e.contains_11rb$(t)}));var e},E.prototype.iterator=function(){return new O(this)},E.prototype.contains_11rb$=function(t){return 0<=this.indexOf_11rb$(t)},E.prototype.indexOf_11rb$=function(t){var e;e=jr(this);for(var n=0;n<=e;n++)if(ro.equals(this.get_za3lpa$(n),t))return n;return-1},E.prototype.lastIndexOf_11rb$=function(t){var e;for(e=oe(jr(this),0).iterator();e.hasNext();){var n=e.next();if(ro.equals(this.get_za3lpa$(n),t))return n}return-1},E.prototype.listIterator=function(){return this.listIterator_za3lpa$(0)},E.prototype.listIterator_za3lpa$=function(t){return new z(this,t)},E.prototype.subList_vux9f0$=function(t,e){return new L(this,t,e)},E.prototype.removeRange_vux9f0$=function(t,e){var n,r=this.listIterator_za3lpa$(t);n=(e-t|0)-1|0;for(var i=0;i<=n;i++)r.next(),r.remove()},E.prototype.equals=function(t){return t===this||!!ro.isType(t,Ue)&&fr().orderedEquals_e92ka7$(this,t)},E.prototype.hashCode=function(){return fr().orderedHashCode_nykoif$(this)},O.prototype.hasNext=function(){return this.index_0<this.$outer.size},O.prototype.next=function(){var t;if(!this.hasNext())throw new Ot;return this.last_0=(t=this.index_0,this.index_0=t+1|0,t),this.$outer.get_za3lpa$(this.last_0)},O.prototype.remove=function(){if(-1===this.last_0){throw new io.kotlin.IllegalStateException("Call next() or previous() before removing element from the iterator.".toString())}this.$outer.removeAt_za3lpa$(this.last_0),this.index_0=this.last_0,this.last_0=-1},O.$metadata$={kind:ro.Kind.CLASS,simpleName:"IteratorImpl",interfaces:[en]},z.prototype.hasPrevious=function(){return 0<this.index_0},z.prototype.nextIndex=function(){return this.index_0},z.prototype.previous=function(){if(!this.hasPrevious())throw new Ot;return this.last_0=(this.index_0=this.index_0-1|0,this.index_0),this.$outer.get_za3lpa$(this.last_0)},z.prototype.previousIndex=function(){return this.index_0-1|0},z.prototype.add_11rb$=function(t){this.$outer.add_wxm5ur$(this.index_0,t),this.index_0=this.index_0+1|0,this.last_0=-1},z.prototype.set_11rb$=function(t){if(-1===this.last_0){throw new io.kotlin.IllegalStateException("Call next() or previous() before updating element value with the iterator.".toString())}this.$outer.set_wxm5ur$(this.last_0,t)},z.$metadata$={kind:ro.Kind.CLASS,simpleName:"ListIteratorImpl",interfaces:[rn,O]},L.prototype.add_wxm5ur$=function(t,e){fr().checkPositionIndex_6xvm5r$(t,this._size_0),this.list_0.add_wxm5ur$(this.fromIndex_0+t|0,e),this._size_0=this._size_0+1|0},L.prototype.get_za3lpa$=function(t){return fr().checkElementIndex_6xvm5r$(t,this._size_0),this.list_0.get_za3lpa$(this.fromIndex_0+t|0)},L.prototype.removeAt_za3lpa$=function(t){fr().checkElementIndex_6xvm5r$(t,this._size_0);var e=this.list_0.removeAt_za3lpa$(this.fromIndex_0+t|0);return this._size_0=this._size_0-1|0,e},L.prototype.set_wxm5ur$=function(t,e){return fr().checkElementIndex_6xvm5r$(t,this._size_0),this.list_0.set_wxm5ur$(this.fromIndex_0+t|0,e)},Object.defineProperty(L.prototype,"size",{get:function(){return this._size_0}}),L.$metadata$={kind:ro.Kind.CLASS,simpleName:"SubList",interfaces:[_t,E]},E.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractMutableList",interfaces:[Je,I]},Object.defineProperty(A.prototype,"key",{get:function(){return this.key_af2vu2$_0}}),Object.defineProperty(A.prototype,"value",{get:function(){return this._value_0}}),A.prototype.setValue_11rc$=function(t){var e=this._value_0;return this._value_0=t,e},A.prototype.hashCode=function(){return vr().entryHashCode_9fthdn$(this)},A.prototype.toString=function(){return vr().entryToString_9fthdn$(this)},A.prototype.equals=function(t){return vr().entryEquals_js7fox$(this,t)},A.$metadata$={kind:ro.Kind.CLASS,simpleName:"SimpleEntry",interfaces:[Xe]},T.prototype.clear=function(){this.entries.clear()},j.prototype.add_11rb$=function(t){throw new kt("Add is not supported on keys")},j.prototype.clear=function(){this.this$AbstractMutableMap.clear()},j.prototype.contains_11rb$=function(t){return this.this$AbstractMutableMap.containsKey_11rb$(t)},P.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},P.prototype.next=function(){return this.closure$entryIterator.next().key},P.prototype.remove=function(){this.closure$entryIterator.remove()},P.$metadata$={kind:ro.Kind.CLASS,interfaces:[en]},j.prototype.iterator=function(){return new P(this.this$AbstractMutableMap.entries.iterator())},j.prototype.remove_11rb$=function(t){return!!this.this$AbstractMutableMap.containsKey_11rb$(t)&&(this.this$AbstractMutableMap.remove_11rb$(t),!0)},Object.defineProperty(j.prototype,"size",{get:function(){return this.this$AbstractMutableMap.size}}),j.$metadata$={kind:ro.Kind.CLASS,interfaces:[R]},Object.defineProperty(T.prototype,"keys",{get:function(){var t;return null==this._keys_n25ags$_0&&(this._keys_n25ags$_0=new j(this)),null!=(t=this._keys_n25ags$_0)?t:ro.throwNPE()}}),T.prototype.putAll_a2k3zr$=function(t){var e;for(e=t.entries.iterator();e.hasNext();){var n=e.next(),r=n.key,i=n.value;this.put_xwzc9p$(r,i)}},q.prototype.add_11rb$=function(t){throw new kt("Add is not supported on values")},q.prototype.clear=function(){this.this$AbstractMutableMap.clear()},q.prototype.contains_11rb$=function(t){return this.this$AbstractMutableMap.containsValue_11rc$(t)},M.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},M.prototype.next=function(){return this.closure$entryIterator.next().value},M.prototype.remove=function(){this.closure$entryIterator.remove()},M.$metadata$={kind:ro.Kind.CLASS,interfaces:[en]},q.prototype.iterator=function(){return new M(this.this$AbstractMutableMap.entries.iterator())},Object.defineProperty(q.prototype,"size",{get:function(){return this.this$AbstractMutableMap.size}}),q.prototype.equals=function(t){return this===t||!!ro.isType(t,Fe)&&fr().orderedEquals_e92ka7$(this,t)},q.prototype.hashCode=function(){return fr().orderedHashCode_nykoif$(this)},q.$metadata$={kind:ro.Kind.CLASS,interfaces:[I]},Object.defineProperty(T.prototype,"values",{get:function(){var t;return null==this._values_n25ags$_0&&(this._values_n25ags$_0=new q(this)),null!=(t=this._values_n25ags$_0)?t:ro.throwNPE()}}),T.prototype.remove_11rb$=function(t){for(var e=this.entries.iterator();e.hasNext();){var n=e.next(),r=n.key;if(ro.equals(t,r)){var i=n.value;return e.remove(),i}}return null},T.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractMutableMap",interfaces:[Ye,hr]},R.prototype.equals=function(t){return t===this||!!ro.isType(t,We)&&Cr().setEquals_y8f7en$(this,t)},R.prototype.hashCode=function(){return Cr().unorderedHashCode_nykoif$(this)},R.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractMutableSet",interfaces:[Ve,I]},K.prototype.trimToSize=function(){},K.prototype.ensureCapacity_za3lpa$=function(t){},Object.defineProperty(K.prototype,"size",{get:function(){return this.array_9xgyxj$_0.length}}),K.prototype.get_za3lpa$=function(t){var e;return null==(e=this.array_9xgyxj$_0[this.rangeCheck_2lys7f$_0(t)])||ro.isType(e,i)?e:ro.throwCCE()},K.prototype.set_wxm5ur$=function(t,e){var n;this.rangeCheck_2lys7f$_0(t);var r=this.array_9xgyxj$_0[t];return this.array_9xgyxj$_0[t]=e,null==(n=r)||ro.isType(n,i)?n:ro.throwCCE()},K.prototype.add_11rb$=function(t){return this.array_9xgyxj$_0.push(t),this.modCount=this.modCount+1|0,!0},K.prototype.add_wxm5ur$=function(t,e){this.array_9xgyxj$_0.splice(this.insertionRangeCheck_2lys7f$_0(t),0,e),this.modCount=this.modCount+1|0},K.prototype.addAll_brywnq$=function(t){return!t.isEmpty()&&(this.array_9xgyxj$_0=this.array_9xgyxj$_0.concat(io.kotlin.collections.copyToArray(t)),this.modCount=this.modCount+1|0,!0)},K.prototype.addAll_u57x28$=function(t,e){return this.insertionRangeCheck_2lys7f$_0(t),t===this.size?this.addAll_brywnq$(e):!e.isEmpty()&&(t===this.size?this.addAll_brywnq$(e):(this.array_9xgyxj$_0=0===t?io.kotlin.collections.copyToArray(e).concat(this.array_9xgyxj$_0):this.array_9xgyxj$_0.slice(0,t).concat(io.kotlin.collections.copyToArray(e),this.array_9xgyxj$_0.slice(t,this.size)),this.modCount=this.modCount+1|0,!0))},K.prototype.removeAt_za3lpa$=function(t){return this.rangeCheck_2lys7f$_0(t),this.modCount=this.modCount+1|0,t===jr(this)?this.array_9xgyxj$_0.pop():this.array_9xgyxj$_0.splice(t,1)[0]},K.prototype.remove_11rb$=function(t){var e,n,r,i;n=(e=qt(this.array_9xgyxj$_0)).first,r=e.last,i=e.step;for(var o=n;o<=r;o+=i)if(ro.equals(this.array_9xgyxj$_0[o],t))return this.array_9xgyxj$_0.splice(o,1),this.modCount=this.modCount+1|0,!0;return!1},K.prototype.removeRange_vux9f0$=function(t,e){this.modCount=this.modCount+1|0,this.array_9xgyxj$_0.splice(t,e-t|0)},K.prototype.clear=function(){this.array_9xgyxj$_0=[],this.modCount=this.modCount+1|0},K.prototype.indexOf_11rb$=function(t){return Tt(this.array_9xgyxj$_0,t)},K.prototype.lastIndexOf_11rb$=function(t){return jt(this.array_9xgyxj$_0,t)},K.prototype.toString=function(){return e(this.array_9xgyxj$_0)},K.prototype.toArray=function(){return this.array_9xgyxj$_0.slice()},K.prototype.rangeCheck_2lys7f$_0=function(t){return fr().checkElementIndex_6xvm5r$(t,this.size),t},K.prototype.insertionRangeCheck_2lys7f$_0=function(t){return fr().checkPositionIndex_6xvm5r$(t,this.size),t},K.$metadata$={kind:ro.Kind.CLASS,simpleName:"ArrayList",interfaces:[_t,E]},H.prototype.equals_oaftn8$=function(t,e){return ro.equals(t,e)},H.prototype.getHashCode_s8jyv4$=function(t){var e;return null!=(e=null!=t?ro.hashCode(t):null)?e:0},H.$metadata$={kind:ro.Kind.OBJECT,simpleName:"HashCode",interfaces:[F]};var U,J=null;function W(){return null===J&&new H,J}function V(){this.internalMap_bievda$_0=null,this.equality_bievda$_0=null,this._entries_bievda$_0=null}function G(t){this.$outer=t,R.call(this)}function Z(t,e){return e=e||Object.create(V.prototype),T.call(e),V.call(e),e.internalMap_bievda$_0=t,e.equality_bievda$_0=t.equality,e}function Y(t){return t=t||Object.create(V.prototype),Z(new nt(W()),t),t}function X(t,e,n){if(void 0===e&&(e=0),Y(n=n||Object.create(V.prototype)),!(0<=t)){throw new io.kotlin.IllegalArgumentException("Negative initial capacity".toString())}if(0<=e)return n;throw new io.kotlin.IllegalArgumentException("Non-positive load factor".toString())}function Q(){this.map_biaydw$_0=null}function tt(t,e,n){return void 0===e&&(e=0),n=n||Object.create(Q.prototype),R.call(n),Q.call(n),n.map_biaydw$_0=X(t,e),n}function et(t,e){return e=e||Object.create(Q.prototype),R.call(e),Q.call(e),e.map_biaydw$_0=t,e}function nt(t){this.equality_mb5kdg$_0=t,this.backingMap_0=Object.create(null),this.size_mb5kdg$_0=0}function rt(t){this.this$InternalHashCodeMap=t,this.state=-1,this.keys=Object.keys(t.backingMap_0),this.keyIndex=-1,this.chain=null,this.itemIndex=-1,this.lastEntry=null}function it(){}function ot(){this.head_bqz7u3$_0=null,this.map_bqz7u3$_0=null}function at(t,e){A.call(this,t,e),this.next_8be2vx$=null,this.prev_8be2vx$=null}function st(t){this.$outer=t,R.call(this)}function ut(t){this.$outer=t,this.last_0=null,this.next_0=null,this.next_0=this.$outer.$outer.head_bqz7u3$_0}function lt(t){return Y(t=t||Object.create(ot.prototype)),ot.call(t),t.map_bqz7u3$_0=Y(),t}function ct(t,e,n){return void 0===e&&(e=0),X(t,e,n=n||Object.create(ot.prototype)),ot.call(n),n.map_bqz7u3$_0=Y(),n}function pt(){}function ft(t){return t=t||Object.create(pt.prototype),et(lt(),t),pt.call(t),t}function ht(t,e){return e=e||Object.create(pt.prototype),et(lt(),e),pt.call(e),e.addAll_brywnq$(t),e}function dt(t,e,n){return void 0===e&&(e=0),n=n||Object.create(pt.prototype),et(ct(t,e),n),pt.call(n),n}function _t(){}function mt(){}function $t(t){mt.call(this),this.outputStream=t}function yt(){mt.call(this),this.buffer=""}function gt(){yt.call(this)}function vt(t){void 0===t&&(t=null),n.call(this),this.message_lqgip$_0=t,this.cause_lqgip$_0=null,ro.captureStack(n,this),this.name="Error"}function bt(t){void 0===t&&(t=null),n.call(this),this.message_ujvw20$_0=t,this.cause_ujvw20$_0=null,ro.captureStack(n,this),this.name="Exception"}function xt(t){void 0===t&&(t=null),bt.call(this,t),this.name="RuntimeException"}function wt(t){void 0===t&&(t=null),xt.call(this,t),this.name="IllegalArgumentException"}function Ct(t){void 0===t&&(t=null),xt.call(this,t),this.name="IllegalStateException"}function St(t){void 0===t&&(t=null),xt.call(this,t),this.name="IndexOutOfBoundsException"}function kt(t){void 0===t&&(t=null),xt.call(this,t),this.name="UnsupportedOperationException"}function Nt(t){void 0===t&&(t=null),xt.call(this,t),this.name="NumberFormatException"}function It(t){void 0===t&&(t=null),xt.call(this,t),this.name="NullPointerException"}function Et(t){void 0===t&&(t=null),xt.call(this,t),this.name="ClassCastException"}function Ot(t){void 0===t&&(t=null),bt.call(this,t),this.name="NoSuchElementException"}function zt(t,e){return 0<=Tt(t,e)}function Lt(t,e){return 0<=At(t,ro.unboxChar(e))}function Tt(t,e){var n,r,i,o,a,s,u,l;if(null==e){r=(n=qt(t)).first,i=n.last,o=n.step;for(var c=r;c<=i;c+=o)if(null==t[c])return c}else{s=(a=qt(t)).first,u=a.last,l=a.step;for(var p=s;p<=u;p+=l)if(ro.equals(e,t[p]))return p}return-1}function At(t,e){var n,r,i,o;r=(n=Mt(t)).first,i=n.last,o=n.step;for(var a=r;a<=i;a+=o)if(ro.unboxChar(e)===ro.unboxChar(t[a]))return a;return-1}function jt(t,e){var n,r;if(null==e)for(n=Vt(qt(t)).iterator();n.hasNext();){var i=n.next();if(null==t[i])return i}else for(r=Vt(qt(t)).iterator();r.hasNext();){var o=r.next();if(ro.equals(e,t[o]))return o}return-1}function Pt(t){if(0===t.length)throw new Ot("Array is empty.");if(1!==t.length)throw new wt("Array has more than one element.");return t[0]}function qt(t){return new Cn(0,Rt(t))}function Mt(t){return new Cn(0,Kt(t))}function Rt(t){return t.length-1|0}function Kt(t){return t.length-1|0}function Bt(t,e){var n;for(n=0;n!==t.length;++n){var r=t[n];e.add_11rb$(r)}return e}function Dt(t){return new K(t)}function Ft(t){if(ro.isType(t,Ue))return Ht(t);var e=t.iterator();if(!e.hasNext())throw new Ot("Collection is empty.");for(var n=e.next();e.hasNext();)n=e.next();return n}function Ht(t){if(t.isEmpty())throw new Ot("List is empty.");return t.get_za3lpa$(jr(t))}function Ut(t){if(ro.isType(t,Ue))return Jt(t);var e=t.iterator();if(!e.hasNext())throw new Ot("Collection is empty.");var n=e.next();if(e.hasNext())throw new wt("Collection has more than one element.");return n}function Jt(t){var e;if(0===(e=t.size))throw new Ot("List is empty.");if(1!==e)throw new wt("List has more than one element.");return t.get_za3lpa$(0)}function Wt(t){var e=(t.size/2|0)-1|0;if(!(e<0))for(var n=jr(t),r=0;r<=e;r++){var i=t.get_za3lpa$(r);t.set_wxm5ur$(r,t.get_za3lpa$(n)),t.set_wxm5ur$(n,i),n=n-1|0}}function Vt(t){if(ro.isType(t,Fe)&&t.size<=1)return Yt(t);var e=Xt(t);return Wt(e),e}function Gt(t,e){var n;for(n=t.iterator();n.hasNext();){var r=n.next();e.add_11rb$(r)}return e}function Zt(t){return Gt(t,tt(Kr(qr(t,12))))}function Yt(t){var e;return ro.isType(t,Fe)?0===(e=t.size)?Lr():1===e?k(ro.isType(t,Ue)?t.get_za3lpa$(0):t.iterator().next()):Qt(t):Pr(Xt(t))}function Xt(t){return ro.isType(t,Fe)?Qt(t):Gt(t,B())}function Qt(t){return D(t)}function te(t){var e;return ro.isType(t,Fe)?0===(e=t.size)?fi():1===e?N(ro.isType(t,Ue)?t.get_za3lpa$(0):t.iterator().next()):Gt(t,dt(Kr(t.size))):di(Gt(t,ft()))}function ee(t){return ro.isType(t,Fe)?ht(t):Gt(t,ft())}function ne(t,e,n,r,i,o,a,s){var u;void 0===n&&(n=", "),void 0===r&&(r=""),void 0===i&&(i=""),void 0===o&&(o=-1),void 0===a&&(a="..."),void 0===s&&(s=null),e.append_gw00v9$(r);var l=0;for(u=t.iterator();u.hasNext();){var c=u.next();if(1<(l=l+1|0)&&e.append_gw00v9$(n),!(o<0||l<=o))break;mi(e,c,s)}return 0<=o&&o<l&&e.append_gw00v9$(a),e.append_gw00v9$(i),e}function re(t,e,n,r,i,o,a){return void 0===e&&(e=", "),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=-1),void 0===o&&(o="..."),void 0===a&&(a=null),ne(t,new Pe,e,n,r,i,o,a).toString()}function ie(t){return new io.kotlin.sequences.Sequence_ms0qmx$$f((e=t,function(){return e.iterator()}));var e}function oe(t,e){return yn().fromClosedRange_qt1dr2$(t,e,-1)}function ae(t,e){return t<e?e:t}function se(t,e){return e<t?e:t}function ue(t,e,n){if(n<e)throw new wt("Cannot coerce value to an empty range: maximum "+n+" is less than minimum "+e+".");return t<e?e:n<t?n:t}function le(t,e){if(0<=e)return 0===e?Wr():ro.isType(t,ei)?t.take_za3lpa$(e):new ii(t,e);var n="Requested element count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(n.toString())}function ce(t,e){var n;for(n=t.iterator();n.hasNext();){var r=n.next();e.add_11rb$(r)}return e}function pe(t){return Pr(fe(t))}function fe(t){return ce(t,B())}function he(t,e){return new Yr(t,e)}function de(t,e){if(0<=e)return t.substring(0,se(e,t.length));var n="Requested character count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(n.toString())}function _e(){}function me(t){if(!new Cn(2,36).contains_mef7kx$(t))throw new wt("radix "+t+" was not in valid range 2..36");return t}function $e(t,e){var n;n=48<=ro.unboxChar(t)&&ro.unboxChar(t)<=57?ro.unboxChar(t)-48:65<=ro.unboxChar(t)&&ro.unboxChar(t)<=90?ro.unboxChar(t)-65+10|0:97<=ro.unboxChar(t)&&ro.unboxChar(t)<=122?ro.unboxChar(t)-97+10|0:-1;return e<=n?-1:n}function ye(t){throw new Nt("Invalid number format: '"+t+"'")}function ge(t){return t!=t}function ve(t){return t===r.POSITIVE_INFINITY||t===r.NEGATIVE_INFINITY}function be(t){this.value=t}function xe(t,e){ke(),this.pattern=t,this.options=te(e);var n,r=io.kotlin.collections.ArrayList_init_ww73n8$(io.kotlin.collections.collectionSizeOrDefault_ba2ldo$(e,10));for(n=e.iterator();n.hasNext();){var i=n.next();r.add_11rb$(i.value)}this.nativePattern_0=new RegExp(t,re(r,"")+"g")}function we(t){return t.next()}function Ce(){(Se=this).patternEscape_0=new RegExp("[-\\\\^$*+?.()|[\\]{}]","g"),this.replacementEscape_0=new RegExp("\\$","g")}F.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"EqualityComparator",interfaces:[]},G.prototype.add_11rb$=function(t){throw new kt("Add is not supported on entries")},G.prototype.clear=function(){this.$outer.clear()},G.prototype.contains_11rb$=function(t){return this.$outer.containsEntry_8hxqw4$(t)},G.prototype.iterator=function(){return this.$outer.internalMap_bievda$_0.iterator()},G.prototype.remove_11rb$=function(t){return!!this.contains_11rb$(t)&&(this.$outer.remove_11rb$(t.key),!0)},Object.defineProperty(G.prototype,"size",{get:function(){return this.$outer.size}}),G.$metadata$={kind:ro.Kind.CLASS,simpleName:"EntrySet",interfaces:[R]},V.prototype.clear=function(){this.internalMap_bievda$_0.clear()},V.prototype.containsKey_11rb$=function(t){return this.internalMap_bievda$_0.contains_11rb$(t)},V.prototype.containsValue_11rc$=function(t){var e,n=this.internalMap_bievda$_0;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next();if(this.equality_bievda$_0.equals_oaftn8$(i.value,t)){e=!0;break t}}e=!1}while(0);return e},Object.defineProperty(V.prototype,"entries",{get:function(){var t;return null==this._entries_bievda$_0&&(this._entries_bievda$_0=this.createEntrySet()),null!=(t=this._entries_bievda$_0)?t:ro.throwNPE()}}),V.prototype.createEntrySet=function(){return new G(this)},V.prototype.get_11rb$=function(t){return this.internalMap_bievda$_0.get_11rb$(t)},V.prototype.put_xwzc9p$=function(t,e){return this.internalMap_bievda$_0.put_xwzc9p$(t,e)},V.prototype.remove_11rb$=function(t){return this.internalMap_bievda$_0.remove_11rb$(t)},Object.defineProperty(V.prototype,"size",{get:function(){return this.internalMap_bievda$_0.size}}),V.$metadata$={kind:ro.Kind.CLASS,simpleName:"HashMap",interfaces:[T]},Q.prototype.add_11rb$=function(t){return null==this.map_biaydw$_0.put_xwzc9p$(t,this)},Q.prototype.clear=function(){this.map_biaydw$_0.clear()},Q.prototype.contains_11rb$=function(t){return this.map_biaydw$_0.containsKey_11rb$(t)},Q.prototype.isEmpty=function(){return this.map_biaydw$_0.isEmpty()},Q.prototype.iterator=function(){return this.map_biaydw$_0.keys.iterator()},Q.prototype.remove_11rb$=function(t){return null!=this.map_biaydw$_0.remove_11rb$(t)},Object.defineProperty(Q.prototype,"size",{get:function(){return this.map_biaydw$_0.size}}),Q.$metadata$={kind:ro.Kind.CLASS,simpleName:"HashSet",interfaces:[R]},Object.defineProperty(nt.prototype,"equality",{get:function(){return this.equality_mb5kdg$_0}}),Object.defineProperty(nt.prototype,"size",{get:function(){return this.size_mb5kdg$_0},set:function(t){this.size_mb5kdg$_0=t}}),nt.prototype.put_xwzc9p$=function(t,e){var n=this.equality.getHashCode_s8jyv4$(t),r=this.getChainOrNull_0(n);if(null==r)this.backingMap_0[n]=[new A(t,e)];else{var i=this.findEntryInChain_0(r,t);if(null!=i)return i.setValue_11rc$(e);r.push(new A(t,e))}return this.size=this.size+1|0,null},nt.prototype.remove_11rb$=function(t){var e,n,r=this.equality.getHashCode_s8jyv4$(t);if(null==(e=this.getChainOrNull_0(r)))return null;var i=e;n=i.length-1|0;for(var o=0;o<=n;o++){var a=i[o];if(this.equality.equals_oaftn8$(t,a.key))return 1===i.length?(i.length=0,delete this.backingMap_0[r]):i.splice(o,1),this.size=this.size-1|0,a.value}return null},nt.prototype.clear=function(){this.backingMap_0=Object.create(null),this.size=0},nt.prototype.contains_11rb$=function(t){return null!=this.getEntry_0(t)},nt.prototype.get_11rb$=function(t){var e;return null!=(e=this.getEntry_0(t))?e.value:null},nt.prototype.getEntry_0=function(t){var e;return null!=(e=this.getChainOrNull_0(this.equality.getHashCode_s8jyv4$(t)))?this.findEntryInChain_0(e,t):null},nt.prototype.findEntryInChain_0=function(t,e){var n;t:do{var r;for(r=0;r!==t.length;++r){var i=t[r];if(this.equality.equals_oaftn8$(i.key,e)){n=i;break t}}n=null}while(0);return n},rt.prototype.computeNext_0=function(){var t;return null!=this.chain&&(this.itemIndex=this.itemIndex+1|0,this.itemIndex<(null!=(t=this.chain)?t:ro.throwNPE()).length)?0:(this.keyIndex=this.keyIndex+1|0,this.keyIndex<this.keys.length?(this.chain=this.this$InternalHashCodeMap.backingMap_0[this.keys[this.keyIndex]],this.itemIndex=0):(this.chain=null,1))},rt.prototype.hasNext=function(){return-1===this.state&&(this.state=this.computeNext_0()),0===this.state},rt.prototype.next=function(){var t;if(!this.hasNext())throw new Ot;var e=(null!=(t=this.chain)?t:ro.throwNPE())[this.itemIndex];return this.lastEntry=e,this.state=-1,e},rt.prototype.remove=function(){var t;if(null==this.lastEntry){throw new io.kotlin.IllegalStateException("Required value was null.".toString())}this.this$InternalHashCodeMap.remove_11rb$((null!=(t=this.lastEntry)?t:ro.throwNPE()).key),this.lastEntry=null,this.itemIndex=this.itemIndex-1|0},rt.$metadata$={kind:ro.Kind.CLASS,interfaces:[en]},nt.prototype.iterator=function(){return new rt(this)},nt.prototype.getChainOrNull_0=function(t){var e=this.backingMap_0[t];return void 0!==e?e:null},nt.$metadata$={kind:ro.Kind.CLASS,simpleName:"InternalHashCodeMap",interfaces:[it]},it.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"InternalMap",interfaces:[De]},at.$metadata$={kind:ro.Kind.CLASS,simpleName:"ChainEntry",interfaces:[A]},ut.prototype.hasNext=function(){return null!==this.next_0},ut.prototype.next=function(){var t;if(!this.hasNext())throw new Ot;var e=null!=(t=this.next_0)?t:ro.throwNPE(),n=(this.last_0=e).next_8be2vx$;return this.$outer.$outer,this.next_0=n!==this.$outer.$outer.head_bqz7u3$_0?n:null,e},ut.prototype.remove=function(){var t,e;if(null==this.last_0){throw new io.kotlin.IllegalStateException("Check failed.".toString())}this.$outer.$outer.remove_w3vk1v$_0(null!=(t=this.last_0)?t:ro.throwNPE()),this.$outer.$outer.map_bqz7u3$_0.remove_11rb$((null!=(e=this.last_0)?e:ro.throwNPE()).key),this.last_0=null},ut.$metadata$={kind:ro.Kind.CLASS,simpleName:"EntryIterator",interfaces:[en]},st.prototype.add_11rb$=function(t){throw new kt("Add is not supported on entries")},st.prototype.clear=function(){this.$outer.clear()},st.prototype.contains_11rb$=function(t){return this.$outer.containsEntry_8hxqw4$(t)},st.prototype.iterator=function(){return new ut(this)},st.prototype.remove_11rb$=function(t){return!!this.contains_11rb$(t)&&(this.$outer.remove_11rb$(t.key),!0)},Object.defineProperty(st.prototype,"size",{get:function(){return this.$outer.size}}),st.$metadata$={kind:ro.Kind.CLASS,simpleName:"EntrySet",interfaces:[R]},ot.prototype.addToEnd_w3vk1v$_0=function(t){if(null!=t.next_8be2vx$||null!=t.prev_8be2vx$){throw new io.kotlin.IllegalStateException("Check failed.".toString())}var e=this.head_bqz7u3$_0;if(null==e)((this.head_bqz7u3$_0=t).next_8be2vx$=t).prev_8be2vx$=t;else{var n=e.prev_8be2vx$;if(null==n){throw new io.kotlin.IllegalStateException("Required value was null.".toString())}var r=n;t.prev_8be2vx$=r,(t.next_8be2vx$=e).prev_8be2vx$=t,r.next_8be2vx$=t}},ot.prototype.remove_w3vk1v$_0=function(t){var e,n;t.next_8be2vx$===t?this.head_bqz7u3$_0=null:(this.head_bqz7u3$_0===t&&(this.head_bqz7u3$_0=t.next_8be2vx$),(null!=(e=t.next_8be2vx$)?e:ro.throwNPE()).prev_8be2vx$=t.prev_8be2vx$,(null!=(n=t.prev_8be2vx$)?n:ro.throwNPE()).next_8be2vx$=t.next_8be2vx$),t.next_8be2vx$=null,t.prev_8be2vx$=null},ot.prototype.clear=function(){this.map_bqz7u3$_0.clear(),this.head_bqz7u3$_0=null},ot.prototype.containsKey_11rb$=function(t){return this.map_bqz7u3$_0.containsKey_11rb$(t)},ot.prototype.containsValue_11rc$=function(t){var e,n;if(null==(e=this.head_bqz7u3$_0))return!1;var r=e;do{if(ro.equals(r.value,t))return!0;r=null!=(n=r.next_8be2vx$)?n:ro.throwNPE()}while(r!==this.head_bqz7u3$_0);return!1},ot.prototype.createEntrySet=function(){return new st(this)},ot.prototype.get_11rb$=function(t){var e;return null!=(e=this.map_bqz7u3$_0.get_11rb$(t))?e.value:null},ot.prototype.put_xwzc9p$=function(t,e){var n=this.map_bqz7u3$_0.get_11rb$(t);if(null!=n)return n.setValue_11rc$(e);var r=new at(t,e);return this.map_bqz7u3$_0.put_xwzc9p$(t,r),this.addToEnd_w3vk1v$_0(r),null},ot.prototype.remove_11rb$=function(t){var e=this.map_bqz7u3$_0.remove_11rb$(t);return null!=e?(this.remove_w3vk1v$_0(e),e.value):null},Object.defineProperty(ot.prototype,"size",{get:function(){return this.map_bqz7u3$_0.size}}),ot.$metadata$={kind:ro.Kind.CLASS,simpleName:"LinkedHashMap",interfaces:[V,Ge]},pt.$metadata$={kind:ro.Kind.CLASS,simpleName:"LinkedHashSet",interfaces:[Q]},_t.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"RandomAccess",interfaces:[]},mt.prototype.println=function(){this.print_s8jyv4$("\n")},mt.prototype.println_s8jyv4$=function(t){this.print_s8jyv4$(t),this.println()},mt.prototype.flush=function(){},mt.$metadata$={kind:ro.Kind.CLASS,simpleName:"BaseOutput",interfaces:[]},$t.prototype.print_s8jyv4$=function(t){return this.outputStream.write(String(t))},$t.$metadata$={kind:ro.Kind.CLASS,simpleName:"NodeJsOutput",interfaces:[mt]},yt.prototype.print_s8jyv4$=function(t){this.buffer+=String(t)},yt.prototype.flush=function(){this.buffer=""},yt.$metadata$={kind:ro.Kind.CLASS,simpleName:"BufferedOutput",interfaces:[mt]},gt.prototype.print_s8jyv4$=function(t){var e=String(t),n=Ti(e,10);0<=n&&(this.buffer=this.buffer+e.substring(0,n),this.flush(),e=e.substring(n+1|0)),this.buffer=this.buffer+e},gt.prototype.flush=function(){console.log(this.buffer),this.buffer=""},gt.$metadata$={kind:ro.Kind.CLASS,simpleName:"BufferedOutputToConsoleLog",interfaces:[yt]},Object.defineProperty(vt.prototype,"message",{get:function(){return this.message_lqgip$_0}}),Object.defineProperty(vt.prototype,"cause",{get:function(){return this.cause_lqgip$_0}}),vt.$metadata$={kind:ro.Kind.CLASS,simpleName:"Error",interfaces:[n]},Object.defineProperty(bt.prototype,"message",{get:function(){return this.message_ujvw20$_0}}),Object.defineProperty(bt.prototype,"cause",{get:function(){return this.cause_ujvw20$_0}}),bt.$metadata$={kind:ro.Kind.CLASS,simpleName:"Exception",interfaces:[n]},xt.$metadata$={kind:ro.Kind.CLASS,simpleName:"RuntimeException",interfaces:[bt]},wt.$metadata$={kind:ro.Kind.CLASS,simpleName:"IllegalArgumentException",interfaces:[xt]},Ct.$metadata$={kind:ro.Kind.CLASS,simpleName:"IllegalStateException",interfaces:[xt]},St.$metadata$={kind:ro.Kind.CLASS,simpleName:"IndexOutOfBoundsException",interfaces:[xt]},kt.$metadata$={kind:ro.Kind.CLASS,simpleName:"UnsupportedOperationException",interfaces:[xt]},Nt.$metadata$={kind:ro.Kind.CLASS,simpleName:"NumberFormatException",interfaces:[xt]},It.$metadata$={kind:ro.Kind.CLASS,simpleName:"NullPointerException",interfaces:[xt]},Et.$metadata$={kind:ro.Kind.CLASS,simpleName:"ClassCastException",interfaces:[xt]},Ot.$metadata$={kind:ro.Kind.CLASS,simpleName:"NoSuchElementException",interfaces:[bt]},_e.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Serializable",interfaces:[]},be.$metadata$={kind:ro.Kind.CLASS,simpleName:"MatchGroup",interfaces:[]},be.prototype.component1=function(){return this.value},be.prototype.copy_61zpoe$=function(t){return new be(void 0===t?this.value:t)},be.prototype.toString=function(){return"MatchGroup(value="+ro.toString(this.value)+")"},be.prototype.hashCode=function(){var t=0;return t=31*t+ro.hashCode(this.value)|0},be.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&ro.equals(this.value,t.value)},xe.prototype.matches_6bul2c$=function(t){Le(this.nativePattern_0);var e=this.nativePattern_0.exec(t.toString());return null!=e&&0===e.index&&this.nativePattern_0.lastIndex===t.length},xe.prototype.containsMatchIn_6bul2c$=function(t){return Le(this.nativePattern_0),this.nativePattern_0.test(t.toString())},xe.prototype.find_905azu$=function(t,e){return void 0===e&&(e=0),ze(this.nativePattern_0,t.toString(),e)},xe.prototype.findAll_905azu$=function(t,e){return void 0===e&&(e=0),ui((n=t,r=e,i=this,function(){return i.find_905azu$(n,r)}),we);var n,r,i},xe.prototype.matchEntire_6bul2c$=function(t){return Ni(this.pattern,94)&&Ii(this.pattern,36)?this.find_905azu$(t):new xe("^"+xi(bi(this.pattern,[94]),[36])+"$",this.options).find_905azu$(t)},xe.prototype.replace_x2uqeu$=function(t,e){return t.toString().replace(this.nativePattern_0,e)},xe.prototype.replace_20wsma$=ro.defineInlineFunction("kotlin.kotlin.text.Regex.replace_20wsma$",function(t,e){var n=this.find_905azu$(t);if(null==n)return t.toString();var r=0,i=t.length,o=io.kotlin.text.StringBuilder_init_za3lpa$(i);do{var a=null!=n?n:ro.throwNPE();o.append_ezbsdh$(t,r,a.range.start),o.append_gw00v9$(e(a)),r=a.range.endInclusive+1|0,n=a.next()}while(r<i&&null!=n);return r<i&&o.append_ezbsdh$(t,r,i),o.toString()}),xe.prototype.replaceFirst_x2uqeu$=function(t,e){var n,r=this.options,i=io.kotlin.collections.ArrayList_init_ww73n8$(io.kotlin.collections.collectionSizeOrDefault_ba2ldo$(r,10));for(n=r.iterator();n.hasNext();){var o=n.next();i.add_11rb$(o.value)}var a=re(i,"");return t.toString().replace(new RegExp(this.pattern,a),e)},xe.prototype.split_905azu$=function(t,e){var n;if(void 0===e&&(e=0),!(0<=e)){var r="Limit must be non-negative, but was "+e;throw new io.kotlin.IllegalArgumentException(r.toString())}var i=this.findAll_905azu$(t),o=0===e?i:le(i,e-1|0),a=io.kotlin.collections.ArrayList_init_ww73n8$(),s=0;for(n=o.iterator();n.hasNext();){var u=n.next();a.add_11rb$(ro.subSequence(t,s,u.range.start).toString()),s=u.range.endInclusive+1|0}return a.add_11rb$(ro.subSequence(t,s,t.length).toString()),a},xe.prototype.toString=function(){return this.nativePattern_0.toString()},Ce.prototype.fromLiteral_61zpoe$=function(t){return Ne(this.escape_61zpoe$(t))},Ce.prototype.escape_61zpoe$=function(t){return t.replace(this.patternEscape_0,"\\$&")},Ce.prototype.escapeReplacement_61zpoe$=function(t){return t.replace(this.replacementEscape_0,"$$$$")},Ce.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var Se=null;function ke(){return null===Se&&new Ce,Se}function Ne(t){return new xe(t,fi())}function Ie(t,e,n,r){this.closure$match=t,this.this$findNext=e,this.closure$input=n,this.closure$range=r,this.range_kul0al$_0=r,this.groups_kul0al$_0=new Oe(t),this.groupValues__0=null}function Ee(t){this.closure$match=t,ar.call(this)}function Oe(t){this.closure$match=t,or.call(this)}function ze(t,e,n){t.lastIndex=n;var r=t.exec(e);return null==r?null:new Ie(r,t,e,new Cn(r.index,t.lastIndex-1|0))}function Le(t){t.lastIndex=0}function Te(t,e,n){return void 0===n&&(n=!1),n?Ae(t,0,e,0,e.length,n):t.startsWith(e,0)}function Ae(t,e,n,r,i,o){return void 0===o&&(o=!1),ki(t,e,n,r,i,o)}function je(){}function Pe(t){void 0===t&&(t=""),this.string_0=t}function qe(t){var e;return e=typeof t,ro.equals(e,"string")?String:ro.equals(e,"number")?Number:ro.equals(e,"boolean")?Boolean:Object.getPrototypeOf(t).constructor}function Me(t){var e;return(ro.isType(e=t,Re)?e:ro.throwCCE()).jClass_8be2vx$}function Re(t){var e,n;this.jClass_8be2vx$=t,this.metadata_0=this.jClass_8be2vx$.$metadata$,this.hashCode_0=null!=(n=null!=(e=this.simpleName)?ro.hashCode(e):null)?n:0}function Ke(){}function Be(){}function De(){}function Fe(){}function He(){}function Ue(){}function Je(){}function We(){}function Ve(){}function Ge(){}function Ze(){}function Ye(){}function Xe(){}function Qe(){}function tn(){}function en(){}function nn(){}function rn(){}function on(){}function an(){}function sn(){}function un(){}function ln(){}function cn(){}function pn(){}function fn(){}function hn(t,e,n){un.call(this),this.step=n,this.finalElement_0=e,this.hasNext_0=0<this.step?t<=e:e<=t,this.next_0=this.hasNext_0?t:this.finalElement_0}function dn(t,e,n){ln.call(this),this.step=n,this.finalElement_0=e,this.hasNext_0=0<this.step.compareTo_11rb$(ro.Long.fromInt(0))?t.compareTo_11rb$(e)<=0:0<=t.compareTo_11rb$(e),this.next_0=this.hasNext_0?t:this.finalElement_0}xe.$metadata$={kind:ro.Kind.CLASS,simpleName:"Regex",interfaces:[]},Object.defineProperty(Ie.prototype,"range",{get:function(){return this.range_kul0al$_0}}),Object.defineProperty(Ie.prototype,"value",{get:function(){var t;return null!=(t=this.closure$match[0])?t:ro.throwNPE()}}),Object.defineProperty(Ie.prototype,"groups",{get:function(){return this.groups_kul0al$_0}}),Object.defineProperty(Ee.prototype,"size",{get:function(){return this.closure$match.length}}),Ee.prototype.get_za3lpa$=function(t){var e;return null!=(e=this.closure$match[t])?e:""},Ee.$metadata$={kind:ro.Kind.CLASS,interfaces:[ar]},Object.defineProperty(Ie.prototype,"groupValues",{get:function(){var t;return null==this.groupValues__0&&(this.groupValues__0=new Ee(this.closure$match)),null!=(t=this.groupValues__0)?t:ro.throwNPE()}}),Ie.prototype.next=function(){return ze(this.this$findNext,this.closure$input,this.closure$range.isEmpty()?this.closure$range.start+1|0:this.closure$range.endInclusive+1|0)},Object.defineProperty(Oe.prototype,"size",{get:function(){return this.closure$match.length}}),Oe.prototype.iterator=function(){return he(ie(Ar(this)),(e=this,function(t){return e.get_za3lpa$(t)})).iterator();var e},Oe.prototype.get_za3lpa$=function(t){var e;return null!=(e=this.closure$match[t])?new be(e):null},Oe.$metadata$={kind:ro.Kind.CLASS,interfaces:[or,Ki]},Ie.$metadata$={kind:ro.Kind.CLASS,interfaces:[Bi]},je.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Appendable",interfaces:[]},Object.defineProperty(Pe.prototype,"length",{get:function(){return this.string_0.length}}),Pe.prototype.charCodeAt=function(t){return this.string_0.charCodeAt(t)},Pe.prototype.subSequence_vux9f0$=function(t,e){return this.string_0.substring(t,e)},Pe.prototype.append_s8itvh$=function(t){return this.string_0+=String.fromCharCode(ro.unboxChar(t)),this},Pe.prototype.append_gw00v9$=function(t){return this.string_0+=ro.toString(t),this},Pe.prototype.append_ezbsdh$=function(t,e,n){return this.string_0+=ro.toString(t).substring(e,n),this},Pe.prototype.append_s8jyv4$=function(t){return this.string_0+=ro.toString(t),this},Pe.prototype.reverse=function(){return this.string_0=this.string_0.split("").reverse().join(""),this},Pe.prototype.toString=function(){return this.string_0},Pe.$metadata$={kind:ro.Kind.CLASS,simpleName:"StringBuilder",interfaces:[Ke,je]},Object.defineProperty(Re.prototype,"simpleName",{get:function(){var t;return null!=(t=this.metadata_0)?t.simpleName:null}}),Object.defineProperty(Re.prototype,"annotations",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"constructors",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"isAbstract",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"isCompanion",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"isData",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"isFinal",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"isInner",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"isOpen",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"isSealed",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"members",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"nestedClasses",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"objectInstance",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"qualifiedName",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"supertypes",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"typeParameters",{get:function(){throw new io.kotlin.NotImplementedError}}),Object.defineProperty(Re.prototype,"visibility",{get:function(){throw new io.kotlin.NotImplementedError}}),Re.prototype.equals=function(t){return ro.isType(t,Re)&&ro.equals(this.jClass_8be2vx$,t.jClass_8be2vx$)},Re.prototype.hashCode=function(){return this.hashCode_0},Re.prototype.isInstance_s8jyv4$=function(t){return ro.isType(t,this.jClass_8be2vx$)},Re.prototype.toString=function(){return"class "+ro.toString(this.simpleName)},Re.$metadata$={kind:ro.Kind.CLASS,simpleName:"KClassImpl",interfaces:[Dn]},Ke.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"CharSequence",interfaces:[]},Be.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Iterable",interfaces:[]},De.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableIterable",interfaces:[Be]},Fe.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Collection",interfaces:[Be]},He.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableCollection",interfaces:[De,Fe]},Ue.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"List",interfaces:[Fe]},Je.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableList",interfaces:[He,Ue]},We.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Set",interfaces:[Fe]},Ve.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableSet",interfaces:[He,We]},Ge.prototype.getOrDefault_xwzc9p$=function(t,e){return null==null||ro.isType(null,i)?null:ro.throwCCE()},Ze.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Entry",interfaces:[]},Ge.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Map",interfaces:[]},Ye.prototype.remove_xwzc9p$=function(t,e){return!0},Xe.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableEntry",interfaces:[Ze]},Ye.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableMap",interfaces:[Ge]},Qe.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Function",interfaces:[]},tn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Iterator",interfaces:[]},en.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableIterator",interfaces:[tn]},nn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"ListIterator",interfaces:[tn]},rn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MutableListIterator",interfaces:[en,nn]},on.prototype.next=function(){return this.nextByte()},on.$metadata$={kind:ro.Kind.CLASS,simpleName:"ByteIterator",interfaces:[tn]},an.prototype.next=function(){return ro.toBoxedChar(this.nextChar())},an.$metadata$={kind:ro.Kind.CLASS,simpleName:"CharIterator",interfaces:[tn]},sn.prototype.next=function(){return this.nextShort()},sn.$metadata$={kind:ro.Kind.CLASS,simpleName:"ShortIterator",interfaces:[tn]},un.prototype.next=function(){return this.nextInt()},un.$metadata$={kind:ro.Kind.CLASS,simpleName:"IntIterator",interfaces:[tn]},ln.prototype.next=function(){return this.nextLong()},ln.$metadata$={kind:ro.Kind.CLASS,simpleName:"LongIterator",interfaces:[tn]},cn.prototype.next=function(){return this.nextFloat()},cn.$metadata$={kind:ro.Kind.CLASS,simpleName:"FloatIterator",interfaces:[tn]},pn.prototype.next=function(){return this.nextDouble()},pn.$metadata$={kind:ro.Kind.CLASS,simpleName:"DoubleIterator",interfaces:[tn]},fn.prototype.next=function(){return this.nextBoolean()},fn.$metadata$={kind:ro.Kind.CLASS,simpleName:"BooleanIterator",interfaces:[tn]},hn.prototype.hasNext=function(){return this.hasNext_0},hn.prototype.nextInt=function(){var t=this.next_0;if(t===this.finalElement_0){if(!this.hasNext_0)throw new Ot;this.hasNext_0=!1}else this.next_0=this.next_0+this.step|0;return t},hn.$metadata$={kind:ro.Kind.CLASS,simpleName:"IntProgressionIterator",interfaces:[un]},dn.prototype.hasNext=function(){return this.hasNext_0},dn.prototype.nextLong=function(){var t=this.next_0;if(ro.equals(t,this.finalElement_0)){if(!this.hasNext_0)throw new Ot;this.hasNext_0=!1}else this.next_0=this.next_0.add(this.step);return t},dn.$metadata$={kind:ro.Kind.CLASS,simpleName:"LongProgressionIterator",interfaces:[ln]};function _n(t,e,n){if(yn(),0===n)throw new wt("Step must be non-zero");this.first=t,this.last=Mn(t,e,n),this.step=n}function mn(){$n=this}_n.prototype.iterator=function(){return new hn(this.first,this.last,this.step)},_n.prototype.isEmpty=function(){return 0<this.step?this.first>this.last:this.first<this.last},_n.prototype.equals=function(t){return ro.isType(t,_n)&&(this.isEmpty()&&t.isEmpty()||this.first===t.first&&this.last===t.last&&this.step===t.step)},_n.prototype.hashCode=function(){return this.isEmpty()?-1:(31*((31*this.first|0)+this.last|0)|0)+this.step|0},_n.prototype.toString=function(){return 0<this.step?this.first.toString()+".."+this.last+" step "+this.step:this.first.toString()+" downTo "+this.last+" step "+-this.step},mn.prototype.fromClosedRange_qt1dr2$=function(t,e,n){return new _n(t,e,n)},mn.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var $n=null;function yn(){return null===$n&&new mn,$n}function gn(t,e,n){if(xn(),ro.equals(n,ro.Long.ZERO))throw new wt("Step must be non-zero");this.first=t,this.last=Rn(t,e,n),this.step=n}function vn(){bn=this}_n.$metadata$={kind:ro.Kind.CLASS,simpleName:"IntProgression",interfaces:[Be]},gn.prototype.iterator=function(){return new dn(this.first,this.last,this.step)},gn.prototype.isEmpty=function(){return 0<this.step.compareTo_11rb$(ro.Long.fromInt(0))?0<this.first.compareTo_11rb$(this.last):this.first.compareTo_11rb$(this.last)<0},gn.prototype.equals=function(t){return ro.isType(t,gn)&&(this.isEmpty()&&t.isEmpty()||ro.equals(this.first,t.first)&&ro.equals(this.last,t.last)&&ro.equals(this.step,t.step))},gn.prototype.hashCode=function(){return this.isEmpty()?-1:ro.Long.fromInt(31).multiply(ro.Long.fromInt(31).multiply(this.first.xor(this.first.shiftRightUnsigned(32))).add(this.last.xor(this.last.shiftRightUnsigned(32)))).add(this.step.xor(this.step.shiftRightUnsigned(32))).toInt()},gn.prototype.toString=function(){return 0<this.step.compareTo_11rb$(ro.Long.fromInt(0))?this.first.toString()+".."+this.last+" step "+this.step:this.first.toString()+" downTo "+this.last+" step "+this.step.unaryMinus()},vn.prototype.fromClosedRange_b9bd0d$=function(t,e,n){return new gn(t,e,n)},vn.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var bn=null;function xn(){return null===bn&&new vn,bn}function wn(){}gn.$metadata$={kind:ro.Kind.CLASS,simpleName:"LongProgression",interfaces:[Be]},wn.prototype.contains_mef7kx$=function(t){return 0<=ro.compareTo(t,this.start)&&ro.compareTo(t,this.endInclusive)<=0},wn.prototype.isEmpty=function(){return 0<ro.compareTo(this.start,this.endInclusive)},wn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"ClosedRange",interfaces:[]};function Cn(t,e){Nn(),_n.call(this,t,e,1)}function Sn(){(kn=this).EMPTY=new Cn(1,0)}Object.defineProperty(Cn.prototype,"start",{get:function(){return this.first}}),Object.defineProperty(Cn.prototype,"endInclusive",{get:function(){return this.last}}),Cn.prototype.contains_mef7kx$=function(t){return this.first<=t&&t<=this.last},Cn.prototype.isEmpty=function(){return this.first>this.last},Cn.prototype.equals=function(t){return ro.isType(t,Cn)&&(this.isEmpty()&&t.isEmpty()||this.first===t.first&&this.last===t.last)},Cn.prototype.hashCode=function(){return this.isEmpty()?-1:(31*this.first|0)+this.last|0},Cn.prototype.toString=function(){return this.first.toString()+".."+this.last},Sn.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var kn=null;function Nn(){return null===kn&&new Sn,kn}function In(t,e){zn(),gn.call(this,t,e,ro.Long.ONE)}function En(){(On=this).EMPTY=new In(ro.Long.ONE,ro.Long.ZERO)}Cn.$metadata$={kind:ro.Kind.CLASS,simpleName:"IntRange",interfaces:[wn,_n]},Object.defineProperty(In.prototype,"start",{get:function(){return this.first}}),Object.defineProperty(In.prototype,"endInclusive",{get:function(){return this.last}}),In.prototype.contains_mef7kx$=function(t){return this.first.compareTo_11rb$(t)<=0&&t.compareTo_11rb$(this.last)<=0},In.prototype.isEmpty=function(){return 0<this.first.compareTo_11rb$(this.last)},In.prototype.equals=function(t){return ro.isType(t,In)&&(this.isEmpty()&&t.isEmpty()||ro.equals(this.first,t.first)&&ro.equals(this.last,t.last))},In.prototype.hashCode=function(){return this.isEmpty()?-1:ro.Long.fromInt(31).multiply(this.first.xor(this.first.shiftRightUnsigned(32))).add(this.last.xor(this.last.shiftRightUnsigned(32))).toInt()},In.prototype.toString=function(){return this.first.toString()+".."+this.last},En.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var On=null;function zn(){return null===On&&new En,On}function Ln(){Tn=this}In.$metadata$={kind:ro.Kind.CLASS,simpleName:"LongRange",interfaces:[wn,gn]},Ln.prototype.toString=function(){return"kotlin.Unit"},Ln.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Unit",interfaces:[]};var Tn=null;function An(t,e){var n=t%e;return 0<=n?n:n+e|0}function jn(t,e){var n=t.modulo(e);return 0<=n.compareTo_11rb$(ro.Long.fromInt(0))?n:n.add(e)}function Pn(t,e,n){return An(An(t,n)-An(e,n)|0,n)}function qn(t,e,n){return jn(jn(t,n).subtract(jn(e,n)),n)}function Mn(t,e,n){if(0<n)return e-Pn(e,t,n)|0;if(n<0)return e+Pn(t,e,-n)|0;throw new wt("Step is zero.")}function Rn(t,e,n){if(0<n.compareTo_11rb$(ro.Long.fromInt(0)))return e.subtract(qn(e,t,n));if(n.compareTo_11rb$(ro.Long.fromInt(0))<0)return e.add(qn(t,e,n.unaryMinus()));throw new wt("Step is zero.")}function Kn(){}function Bn(){}function Dn(){}function Fn(){}function Hn(){}function Un(){}function Jn(){}function Wn(){}function Vn(){}function Gn(){}function Zn(){}function Yn(){}function Xn(){}function Qn(){}function tr(){}function er(){}function nr(){}function rr(){}function ir(){}Kn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KAnnotatedElement",interfaces:[]},Bn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KCallable",interfaces:[Kn]},Dn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KClass",interfaces:[Fn,Kn,Hn]},Fn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KClassifier",interfaces:[]},Hn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KDeclarationContainer",interfaces:[]},Un.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KFunction",interfaces:[Qe,Bn]},Wn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Accessor",interfaces:[]},Vn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Getter",interfaces:[Un,Wn]},Jn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KProperty",interfaces:[Bn]},Zn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Setter",interfaces:[Un,Wn]},Gn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KMutableProperty",interfaces:[Jn]},Xn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Getter",interfaces:[Vn]},Yn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KProperty0",interfaces:[Jn]},tr.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Setter",interfaces:[Zn]},Qn.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KMutableProperty0",interfaces:[Gn,Yn]},nr.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Getter",interfaces:[Vn]},er.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KProperty1",interfaces:[Jn]},ir.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Setter",interfaces:[Zn]},rr.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"KMutableProperty1",interfaces:[Gn,er]};function or(){}function ar(){fr(),or.call(this)}function sr(t,e,n){ar.call(this),this.list_0=t,this.fromIndex_0=e,this._size_0=0,fr().checkRangeIndexes_cub51b$(this.fromIndex_0,n,this.list_0.size),this._size_0=n-this.fromIndex_0|0}function ur(t){this.$outer=t,this.index_0=0}function lr(t,e){this.$outer=t,ur.call(this,this.$outer),fr().checkPositionIndex_6xvm5r$(e,this.$outer.size),this.index_0=e}function cr(){pr=this}or.prototype.contains_11rb$=function(t){var e;t:do{var n;for(n=this.iterator();n.hasNext();){var r=n.next();if(ro.equals(r,t)){e=!0;break t}}e=!1}while(0);return e},or.prototype.containsAll_brywnq$=function(t){var e;t:do{var n;for(n=t.iterator();n.hasNext();){var r=n.next();if(!this.contains_11rb$(r)){e=!1;break t}}e=!0}while(0);return e},or.prototype.isEmpty=function(){return 0===this.size},or.prototype.toString=function(){return re(this,", ","[","]",void 0,void 0,(e=this,function(t){return t===e?"(this Collection)":ro.toString(t)}));var e},or.prototype.toArray=function(){return C(this)},or.prototype.toArray_ro6dgy$=function(t){return S(this,t)},or.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractCollection",interfaces:[Fe]},ar.prototype.iterator=function(){return new ur(this)},ar.prototype.indexOf_11rb$=function(t){var e;t:do{var n,r=0;for(n=this.iterator();n.hasNext();){var i=n.next();if(ro.equals(i,t)){e=r;break t}r=r+1|0}e=-1}while(0);return e},ar.prototype.lastIndexOf_11rb$=function(t){var e;t:do{for(var n=this.listIterator_za3lpa$(this.size);n.hasPrevious();)if(ro.equals(n.previous(),t)){e=n.nextIndex();break t}e=-1}while(0);return e},ar.prototype.listIterator=function(){return new lr(this,0)},ar.prototype.listIterator_za3lpa$=function(t){return new lr(this,t)},ar.prototype.subList_vux9f0$=function(t,e){return new sr(this,t,e)},sr.prototype.get_za3lpa$=function(t){return fr().checkElementIndex_6xvm5r$(t,this._size_0),this.list_0.get_za3lpa$(this.fromIndex_0+t|0)},Object.defineProperty(sr.prototype,"size",{get:function(){return this._size_0}}),sr.$metadata$={kind:ro.Kind.CLASS,simpleName:"SubList",interfaces:[_t,ar]},ar.prototype.equals=function(t){return t===this||!!ro.isType(t,Ue)&&fr().orderedEquals_e92ka7$(this,t)},ar.prototype.hashCode=function(){return fr().orderedHashCode_nykoif$(this)},ur.prototype.hasNext=function(){return this.index_0<this.$outer.size},ur.prototype.next=function(){var t,e;if(!this.hasNext())throw new Ot;return t=this.index_0,this.index_0=t+1|0,e=t,this.$outer.get_za3lpa$(e)},ur.$metadata$={kind:ro.Kind.CLASS,simpleName:"IteratorImpl",interfaces:[tn]},lr.prototype.hasPrevious=function(){return 0<this.index_0},lr.prototype.nextIndex=function(){return this.index_0},lr.prototype.previous=function(){if(!this.hasPrevious())throw new Ot;return this.$outer.get_za3lpa$((this.index_0=this.index_0-1|0,this.index_0))},lr.prototype.previousIndex=function(){return this.index_0-1|0},lr.$metadata$={kind:ro.Kind.CLASS,simpleName:"ListIteratorImpl",interfaces:[nn,ur]},cr.prototype.checkElementIndex_6xvm5r$=function(t,e){if(t<0||e<=t)throw new St("index: "+t+", size: "+e)},cr.prototype.checkPositionIndex_6xvm5r$=function(t,e){if(t<0||e<t)throw new St("index: "+t+", size: "+e)},cr.prototype.checkRangeIndexes_cub51b$=function(t,e,n){if(t<0||n<e)throw new St("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(e<t)throw new wt("fromIndex: "+t+" > toIndex: "+e)},cr.prototype.orderedHashCode_nykoif$=function(t){var e,n,r=1;for(e=t.iterator();e.hasNext();){var i=e.next();r=(31*r|0)+(null!=(n=null!=i?ro.hashCode(i):null)?n:0)|0}return r},cr.prototype.orderedEquals_e92ka7$=function(t,e){var n;if(t.size!==e.size)return!1;var r=e.iterator();for(n=t.iterator();n.hasNext();){var i=n.next(),o=r.next();if(!ro.equals(i,o))return!1}return!0},cr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var pr=null;function fr(){return null===pr&&new cr,pr}function hr(){vr(),this._keys_gfqcsa$_0=null,this._values_gfqcsa$_0=null}function dr(t){this.this$AbstractMap=t,br.call(this)}function _r(t){this.closure$entryIterator=t}function mr(t){this.this$AbstractMap=t,or.call(this)}function $r(t){this.closure$entryIterator=t}function yr(){gr=this}ar.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractList",interfaces:[Ue,or]},hr.prototype.containsKey_11rb$=function(t){return null!=this.implFindEntry_cbwyw1$_0(t)},hr.prototype.containsValue_11rc$=function(t){var e,n=this.entries;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next();if(ro.equals(i.value,t)){e=!0;break t}}e=!1}while(0);return e},hr.prototype.containsEntry_8hxqw4$=function(t){if(!ro.isType(t,Ze))return!1;var e=t.key,n=t.value,r=(ro.isType(this,io.kotlin.collections.Map)?this:ro.throwCCE()).get_11rb$(e);if(!ro.equals(n,r))return!1;var i=null==r;i&&(i=!(ro.isType(this,io.kotlin.collections.Map)?this:ro.throwCCE()).containsKey_11rb$(e));return!i},hr.prototype.equals=function(t){if(t===this)return!0;if(!ro.isType(t,Ge))return!1;if(this.size!==t.size)return!1;var e,n=t.entries;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next();if(!this.containsEntry_8hxqw4$(i)){e=!1;break t}}e=!0}while(0);return e},hr.prototype.get_11rb$=function(t){var e;return null!=(e=this.implFindEntry_cbwyw1$_0(t))?e.value:null},hr.prototype.hashCode=function(){return ro.hashCode(this.entries)},hr.prototype.isEmpty=function(){return 0===this.size},Object.defineProperty(hr.prototype,"size",{get:function(){return this.entries.size}}),dr.prototype.contains_11rb$=function(t){return this.this$AbstractMap.containsKey_11rb$(t)},_r.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},_r.prototype.next=function(){return this.closure$entryIterator.next().key},_r.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},dr.prototype.iterator=function(){return new _r(this.this$AbstractMap.entries.iterator())},Object.defineProperty(dr.prototype,"size",{get:function(){return this.this$AbstractMap.size}}),dr.$metadata$={kind:ro.Kind.CLASS,interfaces:[br]},Object.defineProperty(hr.prototype,"keys",{get:function(){var t;return null==this._keys_gfqcsa$_0&&(this._keys_gfqcsa$_0=new dr(this)),null!=(t=this._keys_gfqcsa$_0)?t:ro.throwNPE()}}),hr.prototype.toString=function(){return re(this.entries,", ","{","}",void 0,void 0,(e=this,function(t){return e.toString_pmt6ib$_0(t)}));var e},hr.prototype.toString_pmt6ib$_0=function(t){return this.toString_w3q7ga$_0(t.key)+"="+this.toString_w3q7ga$_0(t.value)},hr.prototype.toString_w3q7ga$_0=function(t){return t===this?"(this Map)":ro.toString(t)},mr.prototype.contains_11rb$=function(t){return this.this$AbstractMap.containsValue_11rc$(t)},$r.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},$r.prototype.next=function(){return this.closure$entryIterator.next().value},$r.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},mr.prototype.iterator=function(){return new $r(this.this$AbstractMap.entries.iterator())},Object.defineProperty(mr.prototype,"size",{get:function(){return this.this$AbstractMap.size}}),mr.$metadata$={kind:ro.Kind.CLASS,interfaces:[or]},Object.defineProperty(hr.prototype,"values",{get:function(){var t;return null==this._values_gfqcsa$_0&&(this._values_gfqcsa$_0=new mr(this)),null!=(t=this._values_gfqcsa$_0)?t:ro.throwNPE()}}),hr.prototype.implFindEntry_cbwyw1$_0=function(t){var e,n=this.entries;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next();if(ro.equals(i.key,t)){e=i;break t}}e=null}while(0);return e},yr.prototype.entryHashCode_9fthdn$=function(t){var e,n,r,i;return(null!=(n=null!=(e=t.key)?ro.hashCode(e):null)?n:0)^(null!=(i=null!=(r=t.value)?ro.hashCode(r):null)?i:0)},yr.prototype.entryToString_9fthdn$=function(t){return ro.toString(t.key)+"="+ro.toString(t.value)},yr.prototype.entryEquals_js7fox$=function(t,e){return!!ro.isType(e,Ze)&&(ro.equals(t.key,e.key)&&ro.equals(t.value,e.value))},yr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var gr=null;function vr(){return null===gr&&new yr,gr}function br(){Cr(),or.call(this)}function xr(){wr=this}hr.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractMap",interfaces:[Ge]},br.prototype.equals=function(t){return t===this||!!ro.isType(t,We)&&Cr().setEquals_y8f7en$(this,t)},br.prototype.hashCode=function(){return Cr().unorderedHashCode_nykoif$(this)},xr.prototype.unorderedHashCode_nykoif$=function(t){var e,n=0;for(e=t.iterator();e.hasNext();){var r,i=e.next();n=n+(null!=(r=null!=i?ro.hashCode(i):null)?r:0)|0}return n},xr.prototype.setEquals_y8f7en$=function(t,e){return t.size===e.size&&t.containsAll_brywnq$(e)},xr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var wr=null;function Cr(){return null===wr&&new xr,wr}function Sr(){kr=this}br.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractSet",interfaces:[We,or]},Sr.prototype.hasNext=function(){return!1},Sr.prototype.hasPrevious=function(){return!1},Sr.prototype.nextIndex=function(){return 0},Sr.prototype.previousIndex=function(){return-1},Sr.prototype.next=function(){throw new Ot},Sr.prototype.previous=function(){throw new Ot},Sr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"EmptyIterator",interfaces:[nn]};var kr=null;function Nr(){return null===kr&&new Sr,kr}function Ir(){(Er=this).serialVersionUID_0=new ro.Long(-1478467534,-1720727600)}Ir.prototype.equals=function(t){return ro.isType(t,Ue)&&t.isEmpty()},Ir.prototype.hashCode=function(){return 1},Ir.prototype.toString=function(){return"[]"},Object.defineProperty(Ir.prototype,"size",{get:function(){return 0}}),Ir.prototype.isEmpty=function(){return!0},Ir.prototype.contains_11rb$=function(t){return!1},Ir.prototype.containsAll_brywnq$=function(t){return t.isEmpty()},Ir.prototype.get_za3lpa$=function(t){throw new St("Empty list doesn't contain element at index "+t+".")},Ir.prototype.indexOf_11rb$=function(t){return-1},Ir.prototype.lastIndexOf_11rb$=function(t){return-1},Ir.prototype.iterator=function(){return Nr()},Ir.prototype.listIterator=function(){return Nr()},Ir.prototype.listIterator_za3lpa$=function(t){if(0!==t)throw new St("Index: "+t);return Nr()},Ir.prototype.subList_vux9f0$=function(t,e){if(0===t&&0===e)return this;throw new St("fromIndex: "+t+", toIndex: "+e)},Ir.prototype.readResolve_0=function(){return Or()},Ir.$metadata$={kind:ro.Kind.OBJECT,simpleName:"EmptyList",interfaces:[_t,_e,Ue]};var Er=null;function Or(){return null===Er&&new Ir,Er}function zr(t,e){this.values=t,this.isVarargs=e}function Lr(){return Or()}function Tr(t){return 0===t.length?B():D(new zr(t,!0))}function Ar(t){return new Cn(0,t.size-1|0)}function jr(t){return t.size-1|0}function Pr(t){var e;return 0===(e=t.size)?Lr():1===e?k(t.get_za3lpa$(0)):t}function qr(t,e){return ro.isType(t,Fe)?t.size:e}function Mr(t,e){return ro.isType(t,We)?t:ro.isType(t,Fe)?ro.isType(e,Fe)&&e.size<2?t:2<(n=t).size&&ro.isType(n,K)?Zt(t):t:Zt(t);var n}Object.defineProperty(zr.prototype,"size",{get:function(){return this.values.length}}),zr.prototype.isEmpty=function(){return 0===this.values.length},zr.prototype.contains_11rb$=function(t){return zt(this.values,t)},zr.prototype.containsAll_brywnq$=function(t){var e;t:do{var n;for(n=t.iterator();n.hasNext();){var r=n.next();if(!this.contains_11rb$(r)){e=!1;break t}}e=!0}while(0);return e},zr.prototype.iterator=function(){return ro.arrayIterator(this.values)},zr.prototype.toArray=function(){var t=this.values;return this.isVarargs?t:t.slice()},zr.$metadata$={kind:ro.Kind.CLASS,simpleName:"ArrayAsCollection",interfaces:[Fe]};var Rr;function Kr(t){return t<3?t+1|0:t<Rr?t+(t/3|0)|0:f.MAX_VALUE}function Br(t,e){return Dr(t,e,!0)}function Dr(t,e,n){for(var r={v:!1},i=t.iterator();i.hasNext();)e(i.next())===n&&(i.remove(),r.v=!0);return r.v}function Fr(t,e){return function(t,e,n){var r,i,o;if(!ro.isType(t,_t))return Dr(ro.isType(r=t,De)?r:ro.throwCCE(),e,n);var a=0;i=jr(t);for(var s=0;s<=i;s++){var u=t.get_za3lpa$(s);e(u)!==n&&(a!==s&&t.set_wxm5ur$(a,u),a=a+1|0)}{if(a<t.size){for(o=oe(jr(t),a).iterator();o.hasNext();){var l=o.next();t.removeAt_za3lpa$(l)}return!0}return!1}}(t,e,!0)}function Hr(t,e){var n,r=Mr(e,t);return(ro.isType(n=t,io.kotlin.collections.MutableCollection)?n:ro.throwCCE()).retainAll_brywnq$(r)}function Ur(){}function Jr(t){this.closure$iterator=t}function Wr(){return Zr()}function Vr(){Gr=this}Ur.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Sequence",interfaces:[]},Jr.prototype.iterator=function(){return this.closure$iterator()},Jr.$metadata$={kind:ro.Kind.CLASS,interfaces:[Ur]},Vr.prototype.iterator=function(){return Nr()},Vr.prototype.drop_za3lpa$=function(t){return Zr()},Vr.prototype.take_za3lpa$=function(t){return Zr()},Vr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"EmptySequence",interfaces:[ei,Ur]};var Gr=null;function Zr(){return null===Gr&&new Vr,Gr}function Yr(t,e){this.sequence_0=t,this.transformer_0=e}function Xr(t){this.this$TransformingSequence=t,this.iterator=t.sequence_0.iterator()}function Qr(t,e,n){this.sequence_0=t,this.transformer_0=e,this.iterator_0=n}function ti(t){this.this$FlatteningSequence=t,this.iterator=t.sequence_0.iterator(),this.itemIterator=null}function ei(){}function ni(t,e,n){if(this.sequence_0=t,this.startIndex_0=e,this.endIndex_0=n,!(0<=this.startIndex_0)){var r="startIndex should be non-negative, but is "+this.startIndex_0;throw new io.kotlin.IllegalArgumentException(r.toString())}if(!(0<=this.endIndex_0)){var i="endIndex should be non-negative, but is "+this.endIndex_0;throw new io.kotlin.IllegalArgumentException(i.toString())}if(!(this.endIndex_0>=this.startIndex_0)){var o="endIndex should be not less than startIndex, but was "+this.endIndex_0+" < "+this.startIndex_0;throw new io.kotlin.IllegalArgumentException(o.toString())}}function ri(t){this.this$SubSequence=t,this.iterator=t.sequence_0.iterator(),this.position=0}function ii(t,e){if(this.sequence_0=t,this.count_0=e,!(0<=this.count_0)){var n="count must be non-negative, but was "+this.count_0+".";throw new io.kotlin.IllegalArgumentException(n.toString())}}function oi(t){this.left=t.count_0,this.iterator=t.sequence_0.iterator()}function ai(t,e){this.getInitialValue_0=t,this.getNextValue_0=e}function si(t){this.this$GeneratorSequence=t,this.nextItem=null,this.nextState=-2}function ui(t,e){return new ai(t,e)}function li(){(ci=this).serialVersionUID_0=new ro.Long(1993859828,793161749)}Xr.prototype.next=function(){return this.this$TransformingSequence.transformer_0(this.iterator.next())},Xr.prototype.hasNext=function(){return this.iterator.hasNext()},Xr.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},Yr.prototype.iterator=function(){return new Xr(this)},Yr.prototype.flatten_1tglza$=function(t){return new Qr(this.sequence_0,this.transformer_0,t)},Yr.$metadata$={kind:ro.Kind.CLASS,simpleName:"TransformingSequence",interfaces:[Ur]},ti.prototype.next=function(){var t;if(!this.ensureItemIterator_0())throw new Ot;return(null!=(t=this.itemIterator)?t:ro.throwNPE()).next()},ti.prototype.hasNext=function(){return this.ensureItemIterator_0()},ti.prototype.ensureItemIterator_0=function(){var t;for(!1===(null!=(t=this.itemIterator)?t.hasNext():null)&&(this.itemIterator=null);null==this.itemIterator;){if(!this.iterator.hasNext())return!1;var e=this.iterator.next(),n=this.this$FlatteningSequence.iterator_0(this.this$FlatteningSequence.transformer_0(e));if(n.hasNext())return this.itemIterator=n,!0}return!0},ti.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},Qr.prototype.iterator=function(){return new ti(this)},Qr.$metadata$={kind:ro.Kind.CLASS,simpleName:"FlatteningSequence",interfaces:[Ur]},ei.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"DropTakeSequence",interfaces:[Ur]},Object.defineProperty(ni.prototype,"count_0",{get:function(){return this.endIndex_0-this.startIndex_0|0}}),ni.prototype.drop_za3lpa$=function(t){return t>=this.count_0?Wr():new ni(this.sequence_0,this.startIndex_0+t|0,this.endIndex_0)},ni.prototype.take_za3lpa$=function(t){return t>=this.count_0?this:new ni(this.sequence_0,this.startIndex_0,this.startIndex_0+t|0)},ri.prototype.drop_0=function(){for(;this.position<this.this$SubSequence.startIndex_0&&this.iterator.hasNext();)this.iterator.next(),this.position=this.position+1|0},ri.prototype.hasNext=function(){return this.drop_0(),this.position<this.this$SubSequence.endIndex_0&&this.iterator.hasNext()},ri.prototype.next=function(){if(this.drop_0(),this.position>=this.this$SubSequence.endIndex_0)throw new Ot;return this.position=this.position+1|0,this.iterator.next()},ri.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},ni.prototype.iterator=function(){return new ri(this)},ni.$metadata$={kind:ro.Kind.CLASS,simpleName:"SubSequence",interfaces:[ei,Ur]},ii.prototype.drop_za3lpa$=function(t){return t>=this.count_0?Wr():new ni(this.sequence_0,t,this.count_0)},ii.prototype.take_za3lpa$=function(t){return t>=this.count_0?this:new ii(this.sequence_0,t)},oi.prototype.next=function(){if(0===this.left)throw new Ot;return this.left=this.left-1|0,this.iterator.next()},oi.prototype.hasNext=function(){return 0<this.left&&this.iterator.hasNext()},oi.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},ii.prototype.iterator=function(){return new oi(this)},ii.$metadata$={kind:ro.Kind.CLASS,simpleName:"TakeSequence",interfaces:[ei,Ur]},si.prototype.calcNext_0=function(){var t,e;e=-2===this.nextState?this.this$GeneratorSequence.getInitialValue_0():this.this$GeneratorSequence.getNextValue_0(null!=(t=this.nextItem)?t:ro.throwNPE()),this.nextItem=e,this.nextState=null==this.nextItem?0:1},si.prototype.next=function(){var t;if(this.nextState<0&&this.calcNext_0(),0===this.nextState)throw new Ot;var e=ro.isType(t=this.nextItem,i)?t:ro.throwCCE();return this.nextState=-1,e},si.prototype.hasNext=function(){return this.nextState<0&&this.calcNext_0(),1===this.nextState},si.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},ai.prototype.iterator=function(){return new si(this)},ai.$metadata$={kind:ro.Kind.CLASS,simpleName:"GeneratorSequence",interfaces:[Ur]},li.prototype.equals=function(t){return ro.isType(t,We)&&t.isEmpty()},li.prototype.hashCode=function(){return 0},li.prototype.toString=function(){return"[]"},Object.defineProperty(li.prototype,"size",{get:function(){return 0}}),li.prototype.isEmpty=function(){return!0},li.prototype.contains_11rb$=function(t){return!1},li.prototype.containsAll_brywnq$=function(t){return t.isEmpty()},li.prototype.iterator=function(){return Nr()},li.prototype.readResolve_0=function(){return pi()},li.$metadata$={kind:ro.Kind.OBJECT,simpleName:"EmptySet",interfaces:[_e,We]};var ci=null;function pi(){return null===ci&&new li,ci}function fi(){return pi()}function hi(t){return Bt(t,tt(Kr(t.length)))}function di(t){var e;return 0===(e=t.size)?fi():1===e?N(t.iterator().next()):t}function _i(t,e,n){if(void 0===n&&(n=!1),ro.unboxChar(t)===ro.unboxChar(e))return!0;if(!n)return!1;var r=ro.unboxChar(t),i=ro.unboxChar(String.fromCharCode(ro.toBoxedChar(r)).toUpperCase().charCodeAt(0)),o=ro.unboxChar(e);if(i===ro.unboxChar(String.fromCharCode(ro.toBoxedChar(o)).toUpperCase().charCodeAt(0)))return!0;var a=ro.unboxChar(t),s=ro.unboxChar(String.fromCharCode(ro.toBoxedChar(a)).toLowerCase().charCodeAt(0)),u=ro.unboxChar(e);return s===ro.unboxChar(String.fromCharCode(ro.toBoxedChar(u)).toLowerCase().charCodeAt(0))}function mi(t,e,n){null!=n?t.append_gw00v9$(n(e)):null==e||ro.isCharSequence(e)?t.append_gw00v9$(e):ro.isChar(e)?t.append_s8itvh$(e):t.append_gw00v9$(ro.toString(e))}function $i(t){return yi(t,10)}function yi(t,e){var n;me(e);var r,i,o,a=t.length;if(0===a)return null;var s=ro.unboxChar(t.charCodeAt(0));if(ro.unboxChar(s)<48){if(1===a)return null;if(r=1,45===ro.unboxChar(s))i=!0,o=f.MIN_VALUE;else{if(43!==ro.unboxChar(s))return null;i=!1,o=-2147483647}}else r=0,i=!1,o=-2147483647;var u=o/e|0,l=0;n=a-1|0;for(var c=r;c<=n;c++){var p=$e(ro.unboxChar(t.charCodeAt(c)),e);if(p<0)return null;if(l<u)return null;if((l=ro.imul(l,e))<(o+p|0))return null;l=l-p|0}return i?l:-l}function gi(t){return vi(t,10)}function vi(t,e){var n;me(e);var r,i,o,a=t.length;if(0===a)return null;var s=ro.unboxChar(t.charCodeAt(0));if(ro.unboxChar(s)<48){if(1===a)return null;if(r=1,45===ro.unboxChar(s))i=!0,o=new ro.Long(0,-2147483648);else{if(43!==ro.unboxChar(s))return null;i=!1,o=new ro.Long(1,-2147483648)}}else r=0,i=!1,o=new ro.Long(1,-2147483648);var u=o.div(ro.Long.fromInt(e)),l=ro.Long.ZERO;n=a-1|0;for(var c=r;c<=n;c++){var p=$e(ro.unboxChar(t.charCodeAt(c)),e);if(p<0)return null;if(l.compareTo_11rb$(u)<0)return null;if((l=l.multiply(ro.Long.fromInt(e))).compareTo_11rb$(o.add(ro.Long.fromInt(p)))<0)return null;l=l.subtract(ro.Long.fromInt(p))}return i?l:l.unaryMinus()}function bi(t,e){var n,r,i=ro.isCharSequence(n=t)?n:ro.throwCCE();t:do{var o,a,s,u;a=(o=io.kotlin.text.get_indices_gw00vp$(i)).first,s=o.last,u=o.step;for(var l=a;l<=s;l+=u)if(!Lt(e,ro.unboxChar(ro.toBoxedChar(i.charCodeAt(l))))){r=ro.subSequence(i,l,i.length);break t}r=""}while(0);return r.toString()}function xi(t,e){var n,r,i=ro.isCharSequence(n=t)?n:ro.throwCCE();t:do{var o;for(o=io.kotlin.ranges.reversed_zf1xzc$(io.kotlin.text.get_indices_gw00vp$(i)).iterator();o.hasNext();){var a=o.next();if(!Lt(e,ro.unboxChar(ro.toBoxedChar(i.charCodeAt(a))))){r=ro.subSequence(i,0,a+1|0).toString();break t}}r=""}while(0);return r.toString()}function wi(t){this.this$iterator=t,an.call(this),this.index_0=0}function Ci(t){return t.length-1|0}function Si(t,e){return ro.subSequence(t,e.start,e.endInclusive+1|0).toString()}function ki(t,e,n,r,i,o){var a;if(r<0||e<0||e>(t.length-i|0)||r>(n.length-i|0))return!1;a=i-1|0;for(var s=0;s<=a;s++)if(!_i(ro.unboxChar(t.charCodeAt(e+s|0)),ro.unboxChar(n.charCodeAt(r+s|0)),o))return!1;return!0}function Ni(t,e,n){return void 0===n&&(n=!1),0<t.length&&_i(ro.unboxChar(t.charCodeAt(0)),ro.unboxChar(e),n)}function Ii(t,e,n){return void 0===n&&(n=!1),0<t.length&&_i(ro.unboxChar(t.charCodeAt(Ci(t))),ro.unboxChar(e),n)}function Ei(t,e,n){return void 0===n&&(n=!1),n||"string"!=typeof t||"string"!=typeof e?ki(t,0,e,0,e.length,n):Te(t,e)}function Oi(t,e,n,r){var i,o;return void 0===n&&(n=Ci(t)),void 0===r&&(r=!1),null!=(o=null!=(i=function(t,e,n,r,i){var o;if(!r&&1===e.length&&"string"==typeof t){var a,s=ro.unboxChar(Pt(e));if(i){var u=ro.unboxChar(s);a=t.lastIndexOf(String.fromCharCode(ro.toBoxedChar(u)),n)}else{var l=ro.unboxChar(s);a=t.indexOf(String.fromCharCode(ro.toBoxedChar(l)),n)}return a<0?null:Ui(a,ro.toBoxedChar(s))}for(o=(i?oe(se(n,Ci(t)),0):new Cn(ae(n,0),Ci(t))).iterator();o.hasNext();){var c,p=o.next(),f=ro.unboxChar(t.charCodeAt(p));t:do{var h,d,_,m;d=(h=io.kotlin.collections.get_indices_355ntz$(e)).first,_=h.last,m=h.step;for(var $=d;$<=_;$+=m)if(_i(ro.unboxChar(ro.toBoxedChar(e[$])),ro.unboxChar(f),r)){c=$;break t}c=-1}while(0);var y=c;if(0<=y)return Ui(p,ro.toBoxedChar(e[y]))}return null}(t,e,n,r,!0))?i.first:null)?o:-1}function zi(t,e,n,r,i,o){var a,s;void 0===o&&(o=!1);var u=o?oe(se(n,Ci(t)),ae(r,0)):new Cn(ae(n,0),se(r,t.length));if("string"==typeof t&&"string"==typeof e)for(a=u.iterator();a.hasNext();){var l=a.next();if(Ae(e,0,t,l,e.length,i))return l}else for(s=u.iterator();s.hasNext();){var c=s.next();if(ki(e,0,t,c,e.length,i))return c}return-1}function Li(t,e,n,r){return void 0===n&&(n=0),void 0===r&&(r=!1),r||"string"!=typeof t?zi(t,e,n,t.length,r):t.indexOf(e,n)}function Ti(t,e,n,r){var i;if(void 0===n&&(n=Ci(t)),void 0===r&&(r=!1),r||"string"!=typeof t)i=Oi(t,[ro.unboxChar(e)],n,r);else{var o=ro.unboxChar(e);i=t.lastIndexOf(String.fromCharCode(ro.toBoxedChar(o)),n)}return i}function Ai(t,e,n,r){return void 0===n&&(n=Ci(t)),void 0===r&&(r=!1),r||"string"!=typeof t?zi(t,e,n,0,r,!0):t.lastIndexOf(e,n)}function ji(t,e,n,r){this.input_0=t,this.startIndex_0=e,this.limit_0=n,this.getNextMatch_0=r}function Pi(t){this.this$DelimitedRangesSequence=t,this.nextState=-1,this.currentStartIndex=ue(t.startIndex_0,0,t.input_0.length),this.nextSearchIndex=this.currentStartIndex,this.nextItem=null,this.counter=0}function qi(r,i){return function(t,e){var n;return null!=(n=function(t,e,n,r,i){var o,a;if(!r&&1===e.size){var s=Ut(e),u=i?Ai(t,s,n):Li(t,s,n);return u<0?null:Ui(u,s)}var l=i?oe(se(n,Ci(t)),0):new Cn(ae(n,0),t.length);if("string"==typeof t)for(o=l.iterator();o.hasNext();){var c,p=o.next();t:do{var f;for(f=e.iterator();f.hasNext();){var h=f.next();if(Ae(h,0,t,p,h.length,r)){c=h;break t}}c=null}while(0);if(null!=c)return Ui(p,c)}else for(a=l.iterator();a.hasNext();){var d,_=a.next();t:do{var m;for(m=e.iterator();m.hasNext();){var $=m.next();if(ki($,0,t,_,$.length,r)){d=$;break t}}d=null}while(0);if(null!=d)return Ui(_,d)}return null}(t,r,e,i,!1))?Ui(n.first,n.second.length):null}}function Mi(t,e,n,r){return void 0===n&&(n=!1),void 0===r&&(r=0),he(function(t,e,n,r,i){if(void 0===n&&(n=0),void 0===r&&(r=!1),void 0===i&&(i=0),0<=i)return new ji(t,n,i,qi(Dt(e),r));var o="Limit must be non-negative, but was "+i+".";throw new io.kotlin.IllegalArgumentException(o.toString())}(t,e,void 0,n,r),(i=t,function(t){return Si(i,t)}));var i}function Ri(t){return Mi(t,["\r\n","\n","\r"])}wi.prototype.nextChar=function(){var t,e;return t=this.index_0,this.index_0=t+1|0,e=t,this.this$iterator.charCodeAt(e)},wi.prototype.hasNext=function(){return this.index_0<this.this$iterator.length},wi.$metadata$={kind:ro.Kind.CLASS,interfaces:[an]},Pi.prototype.calcNext_0=function(){if(this.nextSearchIndex<0)this.nextState=0,this.nextItem=null;else{if(0<this.this$DelimitedRangesSequence.limit_0&&(this.counter=this.counter+1|0,this.counter>=this.this$DelimitedRangesSequence.limit_0)||this.nextSearchIndex>this.this$DelimitedRangesSequence.input_0.length)this.nextItem=new Cn(this.currentStartIndex,Ci(this.this$DelimitedRangesSequence.input_0)),this.nextSearchIndex=-1;else{var t=this.this$DelimitedRangesSequence.getNextMatch_0(this.this$DelimitedRangesSequence.input_0,this.nextSearchIndex);if(null==t)this.nextItem=new Cn(this.currentStartIndex,Ci(this.this$DelimitedRangesSequence.input_0)),this.nextSearchIndex=-1;else{var e=t,n=e.component1(),r=e.component2();this.nextItem=new Cn(this.currentStartIndex,n-1|0),this.currentStartIndex=n+r|0,this.nextSearchIndex=this.currentStartIndex+(0===r?1:0)|0}}this.nextState=1}},Pi.prototype.next=function(){var t;if(-1===this.nextState&&this.calcNext_0(),0===this.nextState)throw new Ot;var e=ro.isType(t=this.nextItem,Cn)?t:ro.throwCCE();return this.nextItem=null,this.nextState=-1,e},Pi.prototype.hasNext=function(){return-1===this.nextState&&this.calcNext_0(),1===this.nextState},Pi.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},ji.prototype.iterator=function(){return new Pi(this)},ji.$metadata$={kind:ro.Kind.CLASS,simpleName:"DelimitedRangesSequence",interfaces:[Ur]};function Ki(){}function Bi(){}function Di(t){this.match=t}Ki.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MatchGroupCollection",interfaces:[Fe]},Object.defineProperty(Bi.prototype,"destructured",{get:function(){return new Di(this)}}),Di.prototype.component1=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component1",function(){return this.match.groupValues.get_za3lpa$(1)}),Di.prototype.component2=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component2",function(){return this.match.groupValues.get_za3lpa$(2)}),Di.prototype.component3=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component3",function(){return this.match.groupValues.get_za3lpa$(3)}),Di.prototype.component4=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component4",function(){return this.match.groupValues.get_za3lpa$(4)}),Di.prototype.component5=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component5",function(){return this.match.groupValues.get_za3lpa$(5)}),Di.prototype.component6=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component6",function(){return this.match.groupValues.get_za3lpa$(6)}),Di.prototype.component7=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component7",function(){return this.match.groupValues.get_za3lpa$(7)}),Di.prototype.component8=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component8",function(){return this.match.groupValues.get_za3lpa$(8)}),Di.prototype.component9=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component9",function(){return this.match.groupValues.get_za3lpa$(9)}),Di.prototype.component10=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component10",function(){return this.match.groupValues.get_za3lpa$(10)}),Di.prototype.toList=function(){return this.match.groupValues.subList_vux9f0$(1,this.match.groupValues.size)},Di.$metadata$={kind:ro.Kind.CLASS,simpleName:"Destructured",interfaces:[]},Bi.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MatchResult",interfaces:[]};function Fi(t){void 0===t&&(t="An operation is not implemented."),vt.call(this,t),this.name="NotImplementedError"}function Hi(t,e){this.first=t,this.second=e}function Ui(t,e){return new Hi(t,e)}Fi.$metadata$={kind:ro.Kind.CLASS,simpleName:"NotImplementedError",interfaces:[vt]},Hi.prototype.toString=function(){return"("+this.first+", "+this.second+")"},Hi.$metadata$={kind:ro.Kind.CLASS,simpleName:"Pair",interfaces:[_e]},Hi.prototype.component1=function(){return this.first},Hi.prototype.component2=function(){return this.second},Hi.prototype.copy_xwzc9p$=function(t,e){return new Hi(void 0===t?this.first:t,void 0===e?this.second:e)},Hi.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+ro.hashCode(this.first)|0)+ro.hashCode(this.second)|0},Hi.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&ro.equals(this.first,t.first)&&ro.equals(this.second,t.second)};var Ji=io.kotlin||(io.kotlin={}),Wi=Ji.js||(Ji.js={});io.arrayIterator=function(t,e){if(null==e)return new o(t);if(ro.equals(e,"BooleanArray"))return s(t);if(ro.equals(e,"ByteArray"))return l(t);if(ro.equals(e,"ShortArray"))return p(t);if(ro.equals(e,"CharArray"))return d(t);if(ro.equals(e,"IntArray"))return m(t);if(ro.equals(e,"LongArray"))return x(t);if(ro.equals(e,"FloatArray"))return y(t);if(ro.equals(e,"DoubleArray"))return v(t);throw new Ct("Unsupported type argument for arrayIterator: "+ro.toString(e))},io.booleanArrayIterator=s,io.byteArrayIterator=l,io.shortArrayIterator=p,io.charArrayIterator=d,io.intArrayIterator=m,io.floatArrayIterator=y,io.doubleArrayIterator=v,io.longArrayIterator=x,io.subSequence=function(t,e,n){return"string"==typeof t?t.substring(e,n):t.subSequence_vux9f0$(e,n)},io.captureStack=function(t,e){Error.captureStackTrace?Error.captureStackTrace(e,Me(ro.getKClassFromExpression(e))):e.stack=(new Error).stack},io.BoxedChar=w;var Vi=Ji.text||(Ji.text={}),Gi=Ji.collections||(Ji.collections={});Gi.copyToArray=function(t){return void 0!==t.toArray?t.toArray():C(t)},Gi.copyToArrayImpl=C,Gi.copyToExistingArrayImpl=S,Gi.listOf_mh5how$=k,Gi.setOf_mh5how$=N,Gi.AbstractMutableCollection=I,Gi.AbstractMutableList=E,T.SimpleEntry_init_trwmqg$=function(t,e){return e=e||Object.create(A.prototype),A.call(e,t.key,t.value),e},T.SimpleEntry=A,Gi.AbstractMutableMap=T,Gi.AbstractMutableSet=R,Gi.ArrayList_init_ww73n8$=B,Gi.ArrayList_init_mqih57$=D,Gi.ArrayList=K,Object.defineProperty(F,"HashCode",{get:W}),Gi.EqualityComparator=F,Gi.HashMap_init_va96d4$=Z,Gi.HashMap_init_q3lmfv$=Y,Gi.HashMap_init_xf5xz2$=X,Gi.HashMap=V,Gi.HashSet_init_287e2$=function(t){return t=t||Object.create(Q.prototype),R.call(t),Q.call(t),t.map_biaydw$_0=Y(),t},Gi.HashSet_init_2wofer$=tt,Gi.HashSet_init_nn01ho$=et,Gi.HashSet=Q,Gi.InternalHashCodeMap=nt,Gi.InternalMap=it,Gi.LinkedHashMap_init_q3lmfv$=lt,Gi.LinkedHashMap_init_xf5xz2$=ct,Gi.LinkedHashMap=ot,Gi.LinkedHashSet_init_287e2$=ft,Gi.LinkedHashSet_init_mqih57$=ht,Gi.LinkedHashSet_init_2wofer$=dt,Gi.LinkedHashSet=pt,Gi.RandomAccess=_t;var Zi=Ji.io||(Ji.io={});Zi.NodeJsOutput=$t,Zi.BufferedOutput=yt,Zi.BufferedOutputToConsoleLog=gt,Zi.println_s8jyv4$=function(t){U.println_s8jyv4$(t)},io.throwNPE=function(t){throw new It(t)},io.throwCCE=function(){throw new Et("Illegal cast")},io.throwISE=function(t){throw new Ct(t)},Ji.Error=vt,Ji.Exception=bt,Ji.RuntimeException=xt,Ji.IllegalArgumentException=wt,Ji.IllegalStateException=Ct,Ji.IndexOutOfBoundsException=St,Ji.UnsupportedOperationException=kt,Ji.NumberFormatException=Nt,Ji.NullPointerException=It,Ji.ClassCastException=Et,Ji.NoSuchElementException=Ot,Gi.contains_mjy6jw$=zt,Gi.contains_o2f9me$=Lt,Gi.get_lastIndex_m7z4lg$=Rt,Gi.get_lastIndex_355ntz$=Kt,Gi.indexOf_mjy6jw$=Tt,Gi.indexOf_o2f9me$=At,Gi.get_indices_m7z4lg$=qt,Gi.get_indices_355ntz$=Mt,Gi.reversed_7wnvza$=Vt,Gi.lastIndexOf_mjy6jw$=jt,Gi.single_355ntz$=Pt;var Yi=Ji.ranges||(Ji.ranges={});Yi.downTo_dqglrj$=oe,Gi.emptyList_287e2$=Lr,Gi.mapCapacity_za3lpa$=Kr,Yi.coerceAtLeast_dqglrj$=ae,Gi.toCollection_5n4o2z$=Bt,Gi.collectionSizeOrDefault_ba2ldo$=qr,Gi.asList_us0mfu$=Dt,Gi.get_lastIndex_55thoc$=jr,Gi.first_2p1efm$=function(t){if(t.isEmpty())throw new Ot("List is empty.");return t.get_za3lpa$(0)},Gi.last_7wnvza$=Ft,Gi.last_2p1efm$=Ht,Gi.single_7wnvza$=Ut,Gi.single_2p1efm$=Jt,Gi.drop_ba2ldo$=function(t,e){var n,r,i,o,a;if(!(0<=e)){var s="Requested element count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(s.toString())}if(0===e)return Yt(t);if(ro.isType(t,Fe)){var u=t.size-e|0;if(u<=0)return Lr();if(1===u)return k(Ft(t));if(a=B(u),ro.isType(t,Ue)){if(ro.isType(t,_t)){n=t.size-1|0;for(var l=e;l<=n;l++)a.add_11rb$(t.get_za3lpa$(l))}else for(r=t.listIterator_za3lpa$(e);r.hasNext();){var c=r.next();a.add_11rb$(c)}return a}}else a=B();var p=0;for(i=t.iterator();i.hasNext();){var f=i.next();p=(o=p)+1|0,e<=o&&a.add_11rb$(f)}return Pr(a)},Gi.toList_7wnvza$=Yt,Gi.reverse_vvxzk3$=Wt,Gi.toCollection_5cfyqp$=Gt,Gi.toHashSet_7wnvza$=Zt,Gi.toMutableList_7wnvza$=Xt,Gi.toMutableList_4c7yge$=Qt,Gi.toSet_7wnvza$=te,Gi.intersect_q4559j$=function(t,e){var n=ee(t);return Hr(n,e),n},Gi.toMutableSet_7wnvza$=ee,Gi.joinTo_gcc71v$=ne,Gi.joinToString_fmv235$=re,Gi.asSequence_7wnvza$=ie,Yi.reversed_zf1xzc$=function(t){return yn().fromClosedRange_qt1dr2$(t.last,t.first,-t.step)},Yi.until_dqglrj$=function(t,e){return e<=f.MIN_VALUE?Nn().EMPTY:new Cn(t,e-1|0)},Yi.coerceAtMost_dqglrj$=se,Yi.coerceIn_e4yvb3$=ue;var Xi=Ji.sequences||(Ji.sequences={});Xi.Sequence=Ur,Xi.take_wuwhe2$=le,Xi.toCollection_gtszxp$=ce,Xi.toList_veqyi0$=pe,Xi.toMutableList_veqyi0$=fe,Xi.map_z5avom$=he,Vi.get_lastIndex_gw00vp$=Ci,Vi.first_gw00vp$=function(t){if(0===t.length)throw new Ot("Char sequence is empty.");return ro.unboxChar(t.charCodeAt(0))},Vi.iterator_gw00vp$=function(t){return new wi(t)},Vi.get_indices_gw00vp$=function(t){return new Cn(0,t.length-1|0)},Vi.last_gw00vp$=function(t){if(0===t.length)throw new Ot("Char sequence is empty.");return ro.unboxChar(t.charCodeAt(Ci(t)))},Vi.drop_6ic1pp$=function(t,e){if(0<=e)return t.substring(se(e,t.length));var n="Requested character count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(n.toString())},Vi.dropLast_6ic1pp$=function(t,e){if(0<=e)return de(t,ae(t.length-e|0,0));var n="Requested character count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(n.toString())},Vi.take_6ic1pp$=de,Ji.Serializable=_e,Vi.toInt_pdl1vz$=function(t){var e;return null!=(e=$i(t))?e:ye(t)},Vi.toLong_pdl1vz$=function(t){var e;return null!=(e=gi(t))?e:ye(t)},Vi.toLong_6ic1pp$=function(t,e){var n;return null!=(n=vi(t,e))?n:ye(t)},Vi.checkRadix_za3lpa$=me,Vi.digitOf_xvg9q0$=$e,Ji.isNaN_yrwdxr$=ge,Ji.isInfinite_yrwdxr$=ve,Ji.isFinite_yrwdxr$=function(t){return!ve(t)&&!ge(t)},Vi.MatchGroup=be,Vi.StringBuilder_init_za3lpa$=function(t,e){return e=e||Object.create(Pe.prototype),Pe.call(e),e},Object.defineProperty(xe,"Companion",{get:ke}),Vi.Regex=xe,Vi.Regex_61zpoe$=Ne,Wi.reset_xjqeni$=Le,Vi.startsWith_7epoxm$=Te,Vi.endsWith_7epoxm$=function(t,e,n){return void 0===n&&(n=!1),n?Ae(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)},Vi.regionMatches_h3ii2q$=Ae,Vi.Appendable=je,Vi.StringBuilder=Pe,Wi.get_jsClass_irb06o$=qe,Wi.get_js_1yb8b7$=Me;var Qi=Ji.reflect||(Ji.reflect={}),to=Qi.js||(Qi.js={});(to.internal||(to.internal={})).KClassImpl=Re,io.getKClassFromExpression=function(t){return function(t){var e,n=t.$metadata$;if(null!=n)if(null==n.$kClass$){var r=new Re(t);n.$kClass$=r,e=r}else e=n.$kClass$;else e=new Re(t);return e}(qe(t))},Ji.CharSequence=Ke,Gi.Iterable=Be,Gi.MutableIterable=De,Gi.Collection=Fe,Gi.MutableCollection=He,Gi.List=Ue,Gi.MutableList=Je,Gi.Set=We,Gi.MutableSet=Ve,Ge.Entry=Ze,Gi.Map=Ge,Ye.MutableEntry=Xe,Gi.MutableMap=Ye,Ji.Function=Qe,Gi.Iterator=tn,Gi.MutableIterator=en,Gi.ListIterator=nn,Gi.MutableListIterator=rn,Gi.ByteIterator=on,Gi.CharIterator=an,Gi.ShortIterator=sn,Gi.IntIterator=un,Gi.LongIterator=ln,Gi.FloatIterator=cn,Gi.DoubleIterator=pn,Gi.BooleanIterator=fn,Yi.IntProgressionIterator=hn,Yi.LongProgressionIterator=dn,Object.defineProperty(_n,"Companion",{get:yn}),Yi.IntProgression=_n,Object.defineProperty(gn,"Companion",{get:xn}),Yi.LongProgression=gn,Yi.ClosedRange=wn,Object.defineProperty(Cn,"Companion",{get:Nn}),Yi.IntRange=Cn,Object.defineProperty(In,"Companion",{get:zn}),Yi.LongRange=In,Object.defineProperty(Ji,"Unit",{get:function(){return null===Tn&&new Ln,Tn}});var eo=Ji.internal||(Ji.internal={});eo.getProgressionLastElement_cub51b$=Mn,eo.getProgressionLastElement_e84ct6$=Rn,Qi.KAnnotatedElement=Kn,Qi.KCallable=Bn,Qi.KClass=Dn,Qi.KClassifier=Fn,Qi.KDeclarationContainer=Hn,Qi.KFunction=Un,Jn.Accessor=Wn,Jn.Getter=Vn,Qi.KProperty=Jn,Gn.Setter=Zn,Qi.KMutableProperty=Gn,Yn.Getter=Xn,Qi.KProperty0=Yn,Qn.Setter=tr,Qi.KMutableProperty0=Qn,er.Getter=nr,Qi.KProperty1=er,rr.Setter=ir,Qi.KMutableProperty1=rr,Gi.AbstractCollection=or,Object.defineProperty(ar,"Companion",{get:fr}),Gi.AbstractList=ar,Object.defineProperty(hr,"Companion",{get:vr}),Gi.AbstractMap=hr,Object.defineProperty(br,"Companion",{get:Cr}),Gi.AbstractSet=br,Object.defineProperty(Gi,"EmptyIterator",{get:Nr}),Object.defineProperty(Gi,"EmptyList",{get:Or}),Gi.listOf_i5x0yv$=function(t){return 0<t.length?Dt(t):Lr()},Gi.arrayListOf_i5x0yv$=Tr,Gi.get_indices_gzk92b$=Ar,Gi.optimizeReadOnlyList_qzupvv$=Pr,Gi.convertToSetForSetOperationWith_wo44v8$=Mr,Gi.removeAll_uhyeqt$=Br,Gi.removeAll_qafx1e$=Fr,Gi.retainAll_ipc267$=Hr,Xi.Sequence_ms0qmx$$f=Jr,Xi.emptySequence_287e2$=Wr,Xi.TransformingSequence=Yr,Xi.FlatteningSequence=Qr,Xi.DropTakeSequence=ei,Xi.SubSequence=ni,Xi.TakeSequence=ii,Xi.generateSequence_c6s9hp$=ui,Object.defineProperty(Gi,"EmptySet",{get:pi}),Gi.emptySet_287e2$=fi,Gi.hashSetOf_i5x0yv$=hi,Gi.optimizeReadOnlySet_94kdbt$=di,Vi.equals_4lte5s$=_i,Vi.appendElement_k2zgzt$=mi,Vi.toIntOrNull_pdl1vz$=$i,Vi.toIntOrNull_6ic1pp$=yi,Vi.toLongOrNull_pdl1vz$=gi,Vi.toLongOrNull_6ic1pp$=vi,Vi.trimStart_wqw3xr$=bi,Vi.trimEnd_wqw3xr$=xi,Vi.substring_i511yc$=Si,Vi.removePrefix_gsj5wt$=function(t,e){return Ei(t,e)?t.substring(e.length):t},Vi.regionMatchesImpl_4c7s8r$=ki,Vi.startsWith_sgbm27$=Ni,Vi.endsWith_sgbm27$=Ii,Vi.startsWith_li3zpu$=Ei,Vi.lastIndexOfAny_junqau$=Oi,Vi.indexOf_l5u8uk$=Li,Vi.lastIndexOf_8eortd$=Ti,Vi.lastIndexOf_l5u8uk$=Ai,Vi.splitToSequence_ip8yn$=Mi,Vi.lineSequence_gw00vp$=Ri,Vi.lines_gw00vp$=function(t){return pe(Ri(t))},Vi.MatchGroupCollection=Ki,Bi.Destructured=Di,Vi.MatchResult=Bi,Ji.NotImplementedError=Fi,Ji.Pair=Hi,Ji.to_ujzrz7$=Ui,hr.prototype.getOrDefault_xwzc9p$=Ge.prototype.getOrDefault_xwzc9p$,T.prototype.remove_xwzc9p$=Ye.prototype.remove_xwzc9p$,Object.defineProperty(Ie.prototype,"destructured",Object.getOwnPropertyDescriptor(Bi.prototype,"destructured")),Ye.prototype.getOrDefault_xwzc9p$=Ge.prototype.getOrDefault_xwzc9p$;var no="undefined"!=typeof process&&process.versions&&!!process.versions.node;U=no?new $t(process.stdout):new gt,new i,new i,Rr=1+(f.MAX_VALUE/2|0)|0,new i}()}),"undefined"==typeof kotlin)throw new Error("Error loading module 'venus_main'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'venus_main'.");var venus_main=function(t,Q){"use strict";var f=Q.kotlin.text.lines_gw00vp$,h=Q.kotlin.collections.drop_ba2ldo$,s=Q.kotlin.text.startsWith_7epoxm$,c=Q.kotlin.collections.listOf_mh5how$,$=Error,y=Q.kotlin.ranges.IntRange,g=Q.kotlin.text.iterator_gw00vp$,v=Q.kotlin.NumberFormatException,b=Q.kotlin.io.println_s8jyv4$,tt=Q.kotlin.collections.ArrayList_init_ww73n8$,u=Q.kotlin.collections.intersect_q4559j$,l=Q.kotlin.collections.HashSet_init_287e2$,p=Q.kotlin,d=Q.kotlin.Pair,e=Q.kotlin.text.Regex_61zpoe$,i=Q.kotlin.Enum,_=Q.kotlin.collections.listOf_i5x0yv$,m=Q.kotlin.text.startsWith_sgbm27$,o=Q.kotlin.text.endsWith_7epoxm$,a=Q.kotlin.collections.first_2p1efm$,x=Q.kotlin.text.StringBuilder,w=Q.kotlin.ranges.until_dqglrj$,C=Q.kotlin.text.removePrefix_gsj5wt$,et=Q.kotlin.collections.HashMap_init_q3lmfv$,S=Q.kotlin.text.toInt_pdl1vz$,n=Q.kotlin.js.internal.IntCompanionObject,r=Q.kotlin.NotImplementedError,k=(Q.kotlin.Exception,Q.kotlin.text.drop_6ic1pp$),N=Q.kotlin.text.toLong_pdl1vz$,I=Q.kotlin.text.first_gw00vp$,E=Q.kotlin.text.take_6ic1pp$,O=Q.kotlin.text.toLong_6ic1pp$,z=Q.kotlin.text.last_gw00vp$,L=Q.kotlin.text.dropLast_6ic1pp$,T=Q.kotlin.collections.toList_7wnvza$,A=Q.kotlin.collections.emptyList_287e2$;function j(){P=this}(U.prototype=Object.create($.prototype)).constructor=U,(Jt.prototype=Object.create(i.prototype)).constructor=Jt,(Re.prototype=Object.create(Me.prototype)).constructor=Re,(De.prototype=Object.create(Me.prototype)).constructor=De,(Ue.prototype=Object.create(Me.prototype)).constructor=Ue,(Ve.prototype=Object.create(Me.prototype)).constructor=Ve,(Ye.prototype=Object.create(Me.prototype)).constructor=Ye,(tn.prototype=Object.create(Me.prototype)).constructor=tn,(rn.prototype=Object.create(Me.prototype)).constructor=rn,(sn.prototype=Object.create(Me.prototype)).constructor=sn,(cn.prototype=Object.create(Me.prototype)).constructor=cn,(hn.prototype=Object.create(Me.prototype)).constructor=hn,(mn.prototype=Object.create(Me.prototype)).constructor=mn,(gn.prototype=Object.create(Me.prototype)).constructor=gn,(xn.prototype=Object.create(Me.prototype)).constructor=xn,(Sn.prototype=Object.create(Me.prototype)).constructor=Sn,(In.prototype=Object.create(Me.prototype)).constructor=In,(zn.prototype=Object.create(Me.prototype)).constructor=zn,(An.prototype=Object.create(Me.prototype)).constructor=An,(qn.prototype=Object.create(Me.prototype)).constructor=qn,(Kn.prototype=Object.create(Me.prototype)).constructor=Kn,(Fn.prototype=Object.create(Me.prototype)).constructor=Fn,(Jn.prototype=Object.create(Me.prototype)).constructor=Jn,(Gn.prototype=Object.create(Me.prototype)).constructor=Gn,(Xn.prototype=Object.create(Me.prototype)).constructor=Xn,(er.prototype=Object.create(Me.prototype)).constructor=er,(ir.prototype=Object.create(Me.prototype)).constructor=ir,(sr.prototype=Object.create(Me.prototype)).constructor=sr,(cr.prototype=Object.create(Me.prototype)).constructor=cr,(hr.prototype=Object.create(Me.prototype)).constructor=hr,(mr.prototype=Object.create(Me.prototype)).constructor=mr,(gr.prototype=Object.create(Me.prototype)).constructor=gr,(xr.prototype=Object.create(Me.prototype)).constructor=xr,(Sr.prototype=Object.create(Me.prototype)).constructor=Sr,(Ir.prototype=Object.create(Me.prototype)).constructor=Ir,(zr.prototype=Object.create(Me.prototype)).constructor=zr,(_i.prototype=Object.create(i.prototype)).constructor=_i,(Ui.prototype=Object.create(Gi.prototype)).constructor=Ui,(Wi.prototype=Object.create(Gi.prototype)).constructor=Wi,(Qi.prototype=Object.create(Gi.prototype)).constructor=Qi,(ro.prototype=Object.create(Gi.prototype)).constructor=ro,(oo.prototype=Object.create(Gi.prototype)).constructor=oo,(so.prototype=Object.create(Gi.prototype)).constructor=so,(lo.prototype=Object.create(Gi.prototype)).constructor=lo,(Ko.prototype=Object.create(Mo.prototype)).constructor=Ko,(jo.prototype=Object.create(Ko.prototype)).constructor=jo,(Po.prototype=Object.create(Ko.prototype)).constructor=Po,(Ro.prototype=Object.create(Mo.prototype)).constructor=Ro,(Bo.prototype=Object.create(Mo.prototype)).constructor=Bo,(Do.prototype=Object.create(Ko.prototype)).constructor=Do,(Fo.prototype=Object.create(Ro.prototype)).constructor=Fo,(fs.prototype=Object.create($.prototype)).constructor=fs,j.prototype.assemble_61zpoe$=function(t){var e=new D(t).run(),n=e.component1(),r=e.component2(),i=e.component3();return i.isEmpty()?new F(n,r).run():new B(n,i)},j.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Assembler",interfaces:[]};var P=null;function q(){return null===P&&new j,P}function M(t,e){this.lineNo=t,this.line=e}function R(t,e){this.debug=t,this.LineTokens=e}function K(t,e,n){this.prog=t,this.talInstructions=e,this.errors=n}function B(t,e){this.prog=t,this.errors=e}function D(t){this.text_0=t,this.prog_0=new Bi,this.currentTextOffset_0=Ki().TEXT_BEGIN,this.currentDataOffset_0=Ki().STATIC_BEGIN,this.inTextSegment_0=!0,this.talInstructions_0=tt(),this.currentLineNumber_0=0,this.errors_0=tt()}function F(t,e){this.prog=t,this.talInstructions=e,this.errors_0=tt()}function H(t){return t.get_za3lpa$(0).toLowerCase()}function U(){Q.captureStack($,this),this.name="AssemblerError",this.line=null}function nt(t,e){return void 0===t&&(t=null),e=e||Object.create(U.prototype),$.call(e),e.message_hbbkcz$_0=t,e.cause_hbbkcz$_0=null,U.call(e),e}function J(t,e,n){return n=n||Object.create(U.prototype),$.call(n),n.message_hbbkcz$_0=e.message,n.cause_hbbkcz$_0=null,n.line=t,n}function W(){(V=this).charPatn_0="'(?:\\\\.|[^\\\\'])'",this.strPatn_0='"(?:\\\\.|[^\\\\""])*?"',this.otherTokenPatn_0='[^:() \\t,#""\']+',this.tokenPatn_0='(\'(?:\\\\.|[^\\\\\'])\'|"(?:\\\\.|[^\\\\""])*?"|[^:() \\t,#""\']+)',this.labelPatn_0='([^:() \\t,#""\']+)\\s*:',this.baseRegPatn_0='\\(\\s*([^:() \\t,#""\']+)\\s*\\)',this.tokenRE_0=e('(#.*)|([^:() \\t,#""\']+)\\s*:|(\'(?:\\\\.|[^\\\\\'])\'|"(?:\\\\.|[^\\\\""])*?"|[^:() \\t,#""\']+)|\\(\\s*([^:() \\t,#""\']+)\\s*\\)|([\'""])')}M.$metadata$={kind:Q.Kind.CLASS,simpleName:"DebugInfo",interfaces:[]},M.prototype.component1=function(){return this.lineNo},M.prototype.component2=function(){return this.line},M.prototype.copy_19mbxw$=function(t,e){return new M(void 0===t?this.lineNo:t,void 0===e?this.line:e)},M.prototype.toString=function(){return"DebugInfo(lineNo="+Q.toString(this.lineNo)+", line="+Q.toString(this.line)+")"},M.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+Q.hashCode(this.lineNo)|0)+Q.hashCode(this.line)|0},M.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.lineNo,t.lineNo)&&Q.equals(this.line,t.line)},R.$metadata$={kind:Q.Kind.CLASS,simpleName:"DebugInstruction",interfaces:[]},R.prototype.component1=function(){return this.debug},R.prototype.component2=function(){return this.LineTokens},R.prototype.copy_pvgeif$=function(t,e){return new R(void 0===t?this.debug:t,void 0===e?this.LineTokens:e)},R.prototype.toString=function(){return"DebugInstruction(debug="+Q.toString(this.debug)+", LineTokens="+Q.toString(this.LineTokens)+")"},R.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+Q.hashCode(this.debug)|0)+Q.hashCode(this.LineTokens)|0},R.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.debug,t.debug)&&Q.equals(this.LineTokens,t.LineTokens)},K.$metadata$={kind:Q.Kind.CLASS,simpleName:"PassOneOutput",interfaces:[]},K.prototype.component1=function(){return this.prog},K.prototype.component2=function(){return this.talInstructions},K.prototype.component3=function(){return this.errors},K.prototype.copy_i5jkjd$=function(t,e,n){return new K(void 0===t?this.prog:t,void 0===e?this.talInstructions:e,void 0===n?this.errors:n)},K.prototype.toString=function(){return"PassOneOutput(prog="+Q.toString(this.prog)+", talInstructions="+Q.toString(this.talInstructions)+", errors="+Q.toString(this.errors)+")"},K.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+Q.hashCode(this.prog)|0)+Q.hashCode(this.talInstructions)|0)+Q.hashCode(this.errors)|0},K.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.prog,t.prog)&&Q.equals(this.talInstructions,t.talInstructions)&&Q.equals(this.errors,t.errors)},B.$metadata$={kind:Q.Kind.CLASS,simpleName:"AssemblerOutput",interfaces:[]},B.prototype.component1=function(){return this.prog},B.prototype.component2=function(){return this.errors},B.prototype.copy_1p4zh8$=function(t,e){return new B(void 0===t?this.prog:t,void 0===e?this.errors:e)},B.prototype.toString=function(){return"AssemblerOutput(prog="+Q.toString(this.prog)+", errors="+Q.toString(this.errors)+")"},B.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+Q.hashCode(this.prog)|0)+Q.hashCode(this.errors)|0},B.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.prog,t.prog)&&Q.equals(this.errors,t.errors)},D.prototype.run=function(){return this.doPassOne_0(),new K(this.prog_0,this.talInstructions_0,this.errors_0)},D.prototype.doPassOne_0=function(){var t,e,n;for(t=f(this.text_0).iterator();t.hasNext();){var r=t.next();try{this.currentLineNumber_0=this.currentLineNumber_0+1|0;var i=this.getOffset(),o=G().lexLine_61zpoe$(r),a=o.component1(),s=o.component2();for(e=a.iterator();e.hasNext();){var u=e.next();if(null!=this.prog_0.addLabel_bm4lxs$(u,i))throw nt("label "+u+" defined twice")}var l=s.isEmpty();if(l||(l=0===s.get_za3lpa$(0).length),l)continue;if(this.isAssemblerDirective_0(s.get_za3lpa$(0)))this.parseAssemblerDirective_0(s.get_za3lpa$(0),h(s,1));else for(n=this.replacePseudoInstructions_0(s).iterator();n.hasNext();){var c=n.next(),p=new M(this.currentLineNumber_0,r);this.talInstructions_0.add_11rb$(new R(p,c)),this.currentTextOffset_0=this.currentTextOffset_0+4|0}}catch(t){if(!Q.isType(t,U))throw t;this.errors_0.add_11rb$(J(this.currentLineNumber_0,t))}}},D.prototype.getOffset=function(){return this.inTextSegment_0?this.currentTextOffset_0:this.currentDataOffset_0},D.prototype.isAssemblerDirective_0=function(t){return s(t,".")},D.prototype.replacePseudoInstructions_0=function(e){try{return qe(H(e)).pw.invoke_qa4inh$(e,this)}catch(t){if(Q.isType(t,$))return c(e);throw t}},D.prototype.parseAssemblerDirective_0=function(t,e){var n,r,i,o;if(Q.equals(t,".data"))this.inTextSegment_0=!1;else if(Q.equals(t,".text"))this.inTextSegment_0=!0;else if(Q.equals(t,".byte"))for(n=e.iterator();n.hasNext();){var a=as(n.next());if(!new y(-127,255).contains_mef7kx$(a))throw nt("invalid byte "+a+" too big");this.prog_0.addToData_s8j3t7$(Q.toByte(a)),this.currentDataOffset_0=this.currentDataOffset_0+1|0}else if(Q.equals(t,".string")||Q.equals(t,".asciiz")){Ar(e,1);try{r=JSON.parse(e.get_za3lpa$(0))}catch(t){throw Q.isType(t,$)?nt("couldn't parse "+e.get_za3lpa$(0)+" as a string"):t}for(i=g(r);i.hasNext();){var s=i.next();if(!new y(0,127).contains_mef7kx$(0|Q.unboxChar(s)))throw nt("unexpected non-ascii character: "+String.fromCharCode(Q.unboxChar(s)));this.prog_0.addToData_s8j3t7$(Q.toByte(0|Q.unboxChar(s))),this.currentDataOffset_0=this.currentDataOffset_0+1|0}this.prog_0.addToData_s8j3t7$(0),this.currentDataOffset_0=this.currentDataOffset_0+1|0}else if(Q.equals(t,".word"))for(o=e.iterator();o.hasNext();){var u=o.next();try{var l=as(u);this.prog_0.addToData_s8j3t7$(Q.toByte(l)),this.prog_0.addToData_s8j3t7$(Q.toByte(l>>8)),this.prog_0.addToData_s8j3t7$(Q.toByte(l>>16)),this.prog_0.addToData_s8j3t7$(Q.toByte(l>>24))}catch(t){if(!Q.isType(t,v))throw t;this.prog_0.addDataRelocation_3m52m6$(this.prog_0.symbolPart_61zpoe$(u),this.prog_0.labelOffsetPart_61zpoe$(u),this.currentDataOffset_0-Ki().STATIC_BEGIN|0),this.prog_0.addToData_s8j3t7$(0),this.prog_0.addToData_s8j3t7$(0),this.prog_0.addToData_s8j3t7$(0),this.prog_0.addToData_s8j3t7$(0)}this.currentDataOffset_0=this.currentDataOffset_0+4|0}else if(Q.equals(t,".space")){Ar(e,1);try{for(var c=as(e.get_za3lpa$(0)),p=1;p<=c;p++)this.prog_0.addToData_s8j3t7$(0);this.currentDataOffset_0=this.currentDataOffset_0+c|0}catch(t){throw Q.isType(t,v)?nt(e.get_za3lpa$(0)+" not a valid argument"):t}}else if(Q.equals(t,".globl")){var f,h=Q.getCallableRef("makeLabelGlobal",function(t,e){return t.makeLabelGlobal_61zpoe$(e)}.bind(null,this.prog_0));for(f=e.iterator();f.hasNext();){h(f.next())}}else if(Q.equals(t,".align")){Ar(e,1);var d=as(e.get_za3lpa$(0));if(d<0||8<d)throw nt(".align argument must be between 0 and 8, inclusive");for(var _=(1<<d)-1|0;0!=(this.currentDataOffset_0&_);)this.prog_0.addToData_s8j3t7$(0),this.currentDataOffset_0=this.currentDataOffset_0+1|0}else if(Q.equals(t,".equiv")||Q.equals(t,".equ")||Q.equals(t,".set")){Ar(e,2);var m=this.prog_0.addEqu_puj7f4$(e.get_za3lpa$(0),e.get_za3lpa$(1));if(Q.equals(t,".equiv")&&null!=m)throw nt("attempt to redefine "+e.get_za3lpa$(0))}else{if(!Q.equals(t,".float")&&!Q.equals(t,".double"))throw nt("unknown assembler directive "+t);b("Warning: "+t+" not currently supported!")}},D.prototype.addRelocation_j8eou1$=function(t,e,n){return this.prog_0.addRelocation_f5izfr$(t,this.prog_0.symbolPart_61zpoe$(n),this.prog_0.labelOffsetPart_61zpoe$(n),e)},D.$metadata$={kind:Q.Kind.CLASS,simpleName:"AssemblerPassOne",interfaces:[]},F.prototype.run=function(){var t;for(this.resolveEquivs_0(this.prog),t=this.talInstructions.iterator();t.hasNext();){var e=t.next(),n=e.component1(),r=e.component2();try{this.addInstruction_0(r),this.prog.addDebugInfo_wkjugy$(n)}catch(t){if(!Q.isType(t,U))throw t;var i=n.component1();this.errors_0.add_11rb$(J(i,t))}}return new B(this.prog,this.errors_0)},F.prototype.addInstruction_0=function(t){var e=t.isEmpty();if(e||(e=0===t.get_za3lpa$(0).length),!e){var n=H(t),r=Xi().get_61zpoe$(n),i=r.format.fill();r.parser.invoke_5czv3h$(this.prog,i,h(t,1)),this.prog.add_4vgyas$(i)}},F.prototype.resolveEquivs_0=function(t){var e,n=u(t.labels.keys,t.equivs.keys);if(!n.isEmpty())throw nt("conflicting definitions for "+n);var r=l();for(e=t.equivs.keys.iterator();e.hasNext();){var i=e.next();if(!t.labels.keys.contains_11rb$(i)){var o=t.labels,a=this.findDefn_0(i,t,r);o.put_xwzc9p$(i,a)}}},F.prototype.findDefn_0=function(t,e,n){var r,i;if(n.contains_11rb$(t))throw nt("circularity in definition of "+t);var o=null!=(r=e.equivs.get_11rb$(t))?r:Q.throwNPE();if(ss(o))return as(o);if(e.labels.keys.contains_11rb$(o))return null!=(i=e.labels.get_11rb$(o))?i:Q.throwNPE();if(e.equivs.keys.contains_11rb$(o)){n.add_11rb$(t);var a=this.findDefn_0(o,e,n);return n.remove_11rb$(t),a}throw nt("undefined symbol: "+o)},F.$metadata$={kind:Q.Kind.CLASS,simpleName:"AssemblerPassTwo",interfaces:[]},U.prototype.toString=function(){return null==this.line?$.prototype.toString.call(this):$.prototype.toString.call(this)+" on line "+Q.toString(this.line)},Object.defineProperty(U.prototype,"message",{get:function(){return this.message_hbbkcz$_0}}),Object.defineProperty(U.prototype,"cause",{get:function(){return this.cause_hbbkcz$_0}}),U.$metadata$={kind:Q.Kind.CLASS,simpleName:"AssemblerError",interfaces:[$]},W.prototype.lexLine_61zpoe$=function(t){var e,n,r,i,o,a=tt(),s=tt();for(e=this.tokenRE_0.findAll_905azu$(t).iterator();e.hasNext();){var u=e.next().groups;if(null!=u.get_za3lpa$(1))p.Unit;else{if(null!=u.get_za3lpa$(2)&&!s.isEmpty())throw nt("label "+(null!=(n=u.get_za3lpa$(2))?n:Q.throwNPE()).value+" in the middle of an instruction");if(null!=u.get_za3lpa$(2))a.add_11rb$((null!=(r=u.get_za3lpa$(2))?r:Q.throwNPE()).value);else if(null!=u.get_za3lpa$(3))s.add_11rb$((null!=(i=u.get_za3lpa$(3))?i:Q.throwNPE()).value);else{if(null==u.get_za3lpa$(4))throw nt("unclosed string");s.add_11rb$("("+(null!=(o=u.get_za3lpa$(4))?o:Q.throwNPE()).value+")")}}}return new d(a,s)},W.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Lexer",interfaces:[]};var V=null;function G(){return null===V&&new W,V}function Z(t,e){this.lineNumber=t,this.message=e}function Y(){Ut=this}Z.$metadata$={kind:Q.Kind.CLASS,simpleName:"LintError",interfaces:[]},Z.prototype.component1=function(){return this.lineNumber},Z.prototype.component2=function(){return this.message},Z.prototype.copy_19mbxw$=function(t,e){return new Z(void 0===t?this.lineNumber:t,void 0===e?this.message:e)},Z.prototype.toString=function(){return"LintError(lineNumber="+Q.toString(this.lineNumber)+", message="+Q.toString(this.message)+")"},Z.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+Q.hashCode(this.lineNumber)|0)+Q.hashCode(this.message)|0},Z.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.lineNumber,t.lineNumber)&&Q.equals(this.message,t.message)},Y.prototype.lint=function(t){var e,n,r,i=q().assemble_61zpoe$(t).component2(),o=tt();for(e=i.iterator();e.hasNext();){var a=e.next();o.add_11rb$(new Z(null!=(n=a.line)?n:-1,null!=(r=a.message)?r:""))}return Q.kotlin.collections.copyToArray(o)},Y.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Linter",interfaces:[]};var X,rt,it,ot,at,st,ut,lt,ct,pt,ft,ht,dt,_t,mt,$t,yt,gt,vt,bt,xt,wt,Ct,St,kt,Nt,It,Et,Ot,zt,Lt,Tt,At,jt,Pt,qt,Mt,Rt,Kt,Bt,Dt,Ft,Ht,Ut=null;function Jt(t,e,n){i.call(this),this.pw=n,this.name$=t,this.ordinal$=e}function Wt(){Wt=function(){},X=new Jt("beqz",0,Be()),rt=new Jt("bgez",1,He()),it=new Jt("bgt",2,We()),ot=new Jt("bgtu",3,Ze()),at=new Jt("bgtz",4,Qe()),st=new Jt("ble",5,nn()),ut=new Jt("bleu",6,an()),lt=new Jt("blez",7,ln()),ct=new Jt("bltz",8,fn()),pt=new Jt("bnez",9,_n()),ft=new Jt("call",10,yn()),ht=new Jt("jal",11,Cn()),dt=new Jt("jalr",12,Nn()),_t=new Jt("j",13,bn()),mt=new Jt("jr",14,On()),$t=new Jt("la",15,Tn()),yt=new Jt("lb",16,Rn()),gt=new Jt("lbu",17,Rn()),vt=new Jt("lh",18,Rn()),bt=new Jt("lhu",19,Rn()),xt=new Jt("li",20,Pn()),wt=new Jt("lw",21,Rn()),Ct=new Jt("mv",22,Dn()),St=new Jt("neg",23,Un()),kt=new Jt("nop",24,Vn()),Nt=new Jt("not",25,Yn()),It=new Jt("ret",26,tr()),Et=new Jt("sb",27,Or()),Ot=new Jt("seqz",28,ar()),zt=new Jt("sgtz",29,_r()),Lt=new Jt("sh",30,Or()),Tt=new Jt("sltz",31,br()),At=new Jt("snez",32,Nr()),jt=new Jt("sw",33,Or()),Pt=new Jt("tail",34,Tr()),qt=new Jt("seq",35,rr()),Mt=new Jt("sge",36,lr()),Rt=new Jt("sgeu",37,lr()),Kt=new Jt("sgt",38,fr()),Bt=new Jt("sgtu",39,fr()),Dt=new Jt("sle",40,yr()),Ft=new Jt("sleu",41,yr()),Ht=new Jt("sne",42,Cr())}function Vt(){return Wt(),X}function Gt(){return Wt(),rt}function Zt(){return Wt(),it}function Yt(){return Wt(),ot}function Xt(){return Wt(),at}function Qt(){return Wt(),st}function te(){return Wt(),ut}function ee(){return Wt(),lt}function ne(){return Wt(),ct}function re(){return Wt(),pt}function ie(){return Wt(),ft}function oe(){return Wt(),ht}function ae(){return Wt(),dt}function se(){return Wt(),_t}function ue(){return Wt(),mt}function le(){return Wt(),$t}function ce(){return Wt(),yt}function pe(){return Wt(),gt}function fe(){return Wt(),vt}function he(){return Wt(),bt}function de(){return Wt(),xt}function _e(){return Wt(),wt}function me(){return Wt(),Ct}function $e(){return Wt(),St}function ye(){return Wt(),kt}function ge(){return Wt(),Nt}function ve(){return Wt(),It}function be(){return Wt(),Et}function xe(){return Wt(),Ot}function we(){return Wt(),zt}function Ce(){return Wt(),Lt}function Se(){return Wt(),Tt}function ke(){return Wt(),At}function Ne(){return Wt(),jt}function Ie(){return Wt(),Pt}function Ee(){return Wt(),qt}function Oe(){return Wt(),Mt}function ze(){return Wt(),Rt}function Le(){return Wt(),Kt}function Te(){return Wt(),Bt}function Ae(){return Wt(),Dt}function je(){return Wt(),Ft}function Pe(){return Wt(),Ht}function qe(t){switch(t){case"beqz":return Vt();case"bgez":return Gt();case"bgt":return Zt();case"bgtu":return Yt();case"bgtz":return Xt();case"ble":return Qt();case"bleu":return te();case"blez":return ee();case"bltz":return ne();case"bnez":return re();case"call":return ie();case"jal":return oe();case"jalr":return ae();case"j":return se();case"jr":return ue();case"la":return le();case"lb":return ce();case"lbu":return pe();case"lh":return fe();case"lhu":return he();case"li":return de();case"lw":return _e();case"mv":return me();case"neg":return $e();case"nop":return ye();case"not":return ge();case"ret":return ve();case"sb":return be();case"seqz":return xe();case"sgtz":return we();case"sh":return Ce();case"sltz":return Se();case"snez":return ke();case"sw":return Ne();case"tail":return Ie();case"seq":return Ee();case"sge":return Oe();case"sgeu":return ze();case"sgt":return Le();case"sgtu":return Te();case"sle":return Ae();case"sleu":return je();case"sne":return Pe();default:Q.throwISE("No enum constant venus.assembler.PseudoDispatcher."+t)}}function Me(){}function Re(){Me.call(Ke=this)}Jt.$metadata$={kind:Q.Kind.CLASS,simpleName:"PseudoDispatcher",interfaces:[i]},Jt.values=function(){return[Vt(),Gt(),Zt(),Yt(),Xt(),Qt(),te(),ee(),ne(),re(),ie(),oe(),ae(),se(),ue(),le(),ce(),pe(),fe(),he(),de(),_e(),me(),$e(),ye(),ge(),ve(),be(),xe(),we(),Ce(),Se(),ke(),Ne(),Ie(),Ee(),Oe(),ze(),Le(),Te(),Ae(),je(),Pe()]},Jt.valueOf_61zpoe$=qe,Me.$metadata$={kind:Q.Kind.CLASS,simpleName:"PseudoWriter",interfaces:[]},Re.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["beq",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},Re.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BEQZ",interfaces:[Me]};var Ke=null;function Be(){return null===Ke&&new Re,Ke}function De(){Me.call(Fe=this)}De.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["bge",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},De.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BGEZ",interfaces:[Me]};var Fe=null;function He(){return null===Fe&&new De,Fe}function Ue(){Me.call(Je=this)}Ue.prototype.invoke_qa4inh$=function(t,e){return Ar(t,4),c(_(["blt",t.get_za3lpa$(2),t.get_za3lpa$(1),t.get_za3lpa$(3)]))},Ue.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BGT",interfaces:[Me]};var Je=null;function We(){return null===Je&&new Ue,Je}function Ve(){Me.call(Ge=this)}Ve.prototype.invoke_qa4inh$=function(t,e){return Ar(t,4),c(_(["bltu",t.get_za3lpa$(2),t.get_za3lpa$(1),t.get_za3lpa$(3)]))},Ve.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BGTU",interfaces:[Me]};var Ge=null;function Ze(){return null===Ge&&new Ve,Ge}function Ye(){Me.call(Xe=this)}Ye.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["blt","x0",t.get_za3lpa$(1),t.get_za3lpa$(2)]))},Ye.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BGTZ",interfaces:[Me]};var Xe=null;function Qe(){return null===Xe&&new Ye,Xe}function tn(){Me.call(en=this)}tn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,4),c(_(["bge",t.get_za3lpa$(2),t.get_za3lpa$(1),t.get_za3lpa$(3)]))},tn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BLE",interfaces:[Me]};var en=null;function nn(){return null===en&&new tn,en}function rn(){Me.call(on=this)}rn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,4),c(_(["bgeu",t.get_za3lpa$(2),t.get_za3lpa$(1),t.get_za3lpa$(3)]))},rn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BLEU",interfaces:[Me]};var on=null;function an(){return null===on&&new rn,on}function sn(){Me.call(un=this)}sn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["bge","x0",t.get_za3lpa$(1),t.get_za3lpa$(2)]))},sn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BLEZ",interfaces:[Me]};var un=null;function ln(){return null===un&&new sn,un}function cn(){Me.call(pn=this)}cn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["blt",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},cn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BLTZ",interfaces:[Me]};var pn=null;function fn(){return null===pn&&new cn,pn}function hn(){Me.call(dn=this)}hn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["bne",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},hn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BNEZ",interfaces:[Me]};var dn=null;function _n(){return null===dn&&new hn,dn}function mn(){Me.call($n=this)}mn.prototype.invoke_qa4inh$=function(t,e){Ar(t,2);var n=_(["auipc","x6","0"]);e.addRelocation_j8eou1$(Ja,e.getOffset(),t.get_za3lpa$(1));var r=_(["jalr","x1","x6","0"]);return e.addRelocation_j8eou1$(Ga,e.getOffset()+4|0,t.get_za3lpa$(1)),_([n,r])},mn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"CALL",interfaces:[Me]};var $n=null;function yn(){return null===$n&&new mn,$n}function gn(){Me.call(vn=this)}gn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,2),c(_(["jal","x0",t.get_za3lpa$(1)]))},gn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"J",interfaces:[Me]};var vn=null;function bn(){return null===vn&&new gn,vn}function xn(){Me.call(wn=this)}xn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,2),c(_(["jal","x1",t.get_za3lpa$(1)]))},xn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"JAL",interfaces:[Me]};var wn=null;function Cn(){return null===wn&&new xn,wn}function Sn(){Me.call(kn=this)}Sn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,2),c(_(["jalr","x1",t.get_za3lpa$(1),"0"]))},Sn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"JALR",interfaces:[Me]};var kn=null;function Nn(){return null===kn&&new Sn,kn}function In(){Me.call(En=this)}In.prototype.invoke_qa4inh$=function(t,e){return Ar(t,2),c(_(["jalr","x0",t.get_za3lpa$(1),"0"]))},In.$metadata$={kind:Q.Kind.OBJECT,simpleName:"JR",interfaces:[Me]};var En=null;function On(){return null===En&&new In,En}function zn(){Me.call(Ln=this)}zn.prototype.invoke_qa4inh$=function(t,e){Ar(t,3);var n=_(["auipc",t.get_za3lpa$(1),"0"]);e.addRelocation_j8eou1$(Ja,e.getOffset(),t.get_za3lpa$(2));var r=_(["addi",t.get_za3lpa$(1),t.get_za3lpa$(1),"0"]);return e.addRelocation_j8eou1$(Ga,e.getOffset()+4|0,t.get_za3lpa$(2)),_([n,r])},zn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"LA",interfaces:[Me]};var Ln=null;function Tn(){return null===Ln&&new zn,Ln}function An(){Me.call(jn=this)}An.prototype.invoke_qa4inh$=function(t,e){var n;if(Ar(t,3),!ss(t.get_za3lpa$(2)))return c(_(["addi",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]));try{n=as(t.get_za3lpa$(2))}catch(t){throw Q.isType(t,v)?nt("immediate to li too large or NaN"):t}var r=n;if(new y(-2048,2047).contains_mef7kx$(r))return c(_(["addi",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]));var i=r+2048>>>12,o=r-(i<<12)|0,a=_(["lui",t.get_za3lpa$(1),i.toString()]),s=_(["addi",t.get_za3lpa$(1),t.get_za3lpa$(1),o.toString()]);return _([a,s])},An.$metadata$={kind:Q.Kind.OBJECT,simpleName:"LI",interfaces:[Me]};var jn=null;function Pn(){return null===jn&&new An,jn}function qn(){Me.call(Mn=this)}qn.prototype.invoke_qa4inh$=function(t,e){if(4===t.size){if(m(t.get_za3lpa$(3),40)){var n=t.get_za3lpa$(0),r=t.get_za3lpa$(1),i=t.get_za3lpa$(2),o=t.get_za3lpa$(3),a=t.get_za3lpa$(3).length-1|0;return c(_([n,r,i,o.substring(1,a)]))}return c(t)}Ar(t,3);var s=_(["auipc",t.get_za3lpa$(1),"0"]);e.addRelocation_j8eou1$(Ja,e.getOffset(),t.get_za3lpa$(2));var u=_([t.get_za3lpa$(0),t.get_za3lpa$(1),"0",t.get_za3lpa$(1)]);return e.addRelocation_j8eou1$(Ga,e.getOffset()+4|0,t.get_za3lpa$(2)),_([s,u])},qn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Load",interfaces:[Me]};var Mn=null;function Rn(){return null===Mn&&new qn,Mn}function Kn(){Me.call(Bn=this)}Kn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["addi",t.get_za3lpa$(1),t.get_za3lpa$(2),"0"]))},Kn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"MV",interfaces:[Me]};var Bn=null;function Dn(){return null===Bn&&new Kn,Bn}function Fn(){Me.call(Hn=this)}Fn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["sub",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},Fn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NEG",interfaces:[Me]};var Hn=null;function Un(){return null===Hn&&new Fn,Hn}function Jn(){Me.call(Wn=this)}Jn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,1),c(_(["addi","x0","x0","0"]))},Jn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NOP",interfaces:[Me]};var Wn=null;function Vn(){return null===Wn&&new Jn,Wn}function Gn(){Me.call(Zn=this)}Gn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["xori",t.get_za3lpa$(1),t.get_za3lpa$(2),"-1"]))},Gn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NOT",interfaces:[Me]};var Zn=null;function Yn(){return null===Zn&&new Gn,Zn}function Xn(){Me.call(Qn=this)}Xn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,1),c(_(["jalr","x0","x1","0"]))},Xn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"RET",interfaces:[Me]};var Qn=null;function tr(){return null===Qn&&new Xn,Qn}function er(){Me.call(nr=this)}er.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=_(["sub",t.get_za3lpa$(1),t.get_za3lpa$(2),t.get_za3lpa$(3)]),r=_(["sltiu",t.get_za3lpa$(1),t.get_za3lpa$(1),"1"]);return _([n,r])},er.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SEQ",interfaces:[Me]};var nr=null;function rr(){return null===nr&&new er,nr}function ir(){Me.call(or=this)}ir.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["sltiu",t.get_za3lpa$(1),t.get_za3lpa$(2),"1"]))},ir.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SEQZ",interfaces:[Me]};var or=null;function ar(){return null===or&&new ir,or}function sr(){Me.call(ur=this)}sr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=o(t.get_za3lpa$(0),"u")?"u":"",r=_(["slt"+n,t.get_za3lpa$(1),t.get_za3lpa$(2),t.get_za3lpa$(3)]),i=_(["xori",t.get_za3lpa$(1),t.get_za3lpa$(1),"1"]);return _([r,i])},sr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SGE",interfaces:[Me]};var ur=null;function lr(){return null===ur&&new sr,ur}function cr(){Me.call(pr=this)}cr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=o(t.get_za3lpa$(0),"u")?"u":"";return c(_(["slt"+n,t.get_za3lpa$(1),t.get_za3lpa$(3),t.get_za3lpa$(2)]))},cr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SGT",interfaces:[Me]};var pr=null;function fr(){return null===pr&&new cr,pr}function hr(){Me.call(dr=this)}hr.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["slt",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},hr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SGTZ",interfaces:[Me]};var dr=null;function _r(){return null===dr&&new hr,dr}function mr(){Me.call($r=this)}mr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=o(t.get_za3lpa$(0),"u")?"u":"",r=_(["slt"+n,t.get_za3lpa$(1),t.get_za3lpa$(3),t.get_za3lpa$(2)]),i=_(["xori",t.get_za3lpa$(1),t.get_za3lpa$(1),"1"]);return _([r,i])},mr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SLE",interfaces:[Me]};var $r=null;function yr(){return null===$r&&new mr,$r}function gr(){Me.call(vr=this)}gr.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["slt",t.get_za3lpa$(1),t.get_za3lpa$(2),"x0"]))},gr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SLTZ",interfaces:[Me]};var vr=null;function br(){return null===vr&&new gr,vr}function xr(){Me.call(wr=this)}xr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=_(["sub",t.get_za3lpa$(1),t.get_za3lpa$(2),t.get_za3lpa$(3)]),r=_(["sltu",t.get_za3lpa$(1),"x0",t.get_za3lpa$(1)]);return _([n,r])},xr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SNE",interfaces:[Me]};var wr=null;function Cr(){return null===wr&&new xr,wr}function Sr(){Me.call(kr=this)}Sr.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["sltu",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},Sr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SNEZ",interfaces:[Me]};var kr=null;function Nr(){return null===kr&&new Sr,kr}function Ir(){Me.call(Er=this)}Ir.prototype.invoke_qa4inh$=function(e,n){Ar(e,4);var t,r=m(e.get_za3lpa$(3),40),i=e.get_za3lpa$(2);if(r){var o=e.get_za3lpa$(3),a=e.get_za3lpa$(3).length-1|0;t=o.substring(1,a)}else t=e.get_za3lpa$(3);var s=t;try{return as(i),c(_([e.get_za3lpa$(0),e.get_za3lpa$(1),i,s]))}catch(t){if(!Q.isType(t,v))throw t;if(r)return n.addRelocation_j8eou1$(qa,n.getOffset(),i),c(_([e.get_za3lpa$(0),e.get_za3lpa$(1),"0",s]))}var u=_(["auipc",s,"0"]);n.addRelocation_j8eou1$(Ja,n.getOffset(),i);var l=_([e.get_za3lpa$(0),e.get_za3lpa$(1),"0",s]);return n.addRelocation_j8eou1$(Xa,n.getOffset()+4|0,i),_([u,l])},Ir.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Store",interfaces:[Me]};var Er=null;function Or(){return null===Er&&new Ir,Er}function zr(){Me.call(Lr=this)}zr.prototype.invoke_qa4inh$=function(t,e){Ar(t,2);var n=_(["auipc","x6","0"]);e.addRelocation_j8eou1$(Ja,e.getOffset(),t.get_za3lpa$(1));var r=_(["jalr","x0","x6","0"]);return e.addRelocation_j8eou1$(Ga,e.getOffset()+4|0,t.get_za3lpa$(1)),_([n,r])},zr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"TAIL",interfaces:[Me]};var Lr=null;function Tr(){return null===Lr&&new zr,Lr}function Ar(t,e){if(t.size!==e)throw nt("wrong # of arguments")}function jr(){if(Hi().strict)throw nt("can't use this instruction in strict mode")}function Pr(){(qr=this).sim=this.sim,this.timer_0=null,this.TIMEOUT_CYCLES_8be2vx$=100,this.TIMEOUT_TIME_8be2vx$=10}Pr.prototype.openSimulator=function(){this.assemble_y4putb$(this.getText_8be2vx$())&&Br().renderSimulator_vo69o7$(this.sim)},Pr.prototype.openEditor=function(){this.runEnd_8be2vx$(),Br().renderEditor()},Pr.prototype.getText_8be2vx$=function(){var t;return(Q.isType(t=document.getElementById("asm-editor"),HTMLTextAreaElement)?t:Q.throwCCE()).value},Pr.prototype.assemble_y4putb$=function(t){var e=q().assemble_61zpoe$(t),n=e.component1(),r=e.component2();if(!r.isEmpty())return Br().displayError_k2a3eh$(a(r)),!1;try{var i=di().link_1l4nab$(c(n));return this.sim=new ps(i),!0}catch(t){if(Q.isType(t,U))return Br().displayError_k2a3eh$(t),!1;throw t}},Pr.prototype.run=function(){this.currentlyRunning_8be2vx$()?this.runEnd_8be2vx$():(Br().setRunButtonSpinning_6taknv$(!0),this.timer_0=window.setTimeout(Q.getCallableRef("runStart",function(t){return t.runStart_8be2vx$()}.bind(null,Mr())),this.TIMEOUT_TIME_8be2vx$),this.sim.step())},Pr.prototype.reset=function(){this.openSimulator()},Pr.prototype.toggleBreakpoint=function(t){var e=this.sim.toggleBreakpointAt_za3lpa$(t);Br().renderBreakpointAt_fzusl$(t,e)},Pr.prototype.runStart_8be2vx$=function(){for(var t=0;t<this.TIMEOUT_CYCLES_8be2vx$;){if(this.sim.isDone()||this.sim.atBreakpoint())return this.runEnd_8be2vx$(),void Br().updateAll();this.sim.step(),t=t+1|0}this.timer_0=window.setTimeout(Q.getCallableRef("runStart",function(t){return t.runStart_8be2vx$()}.bind(null,Mr())),this.TIMEOUT_TIME_8be2vx$)},Pr.prototype.runEnd_8be2vx$=function(){var t;Br().setRunButtonSpinning_6taknv$(!1),null!=(t=this.timer_0)&&Q.getCallableRef("clearTimeout",function(t,e){return t.clearTimeout(e)}.bind(null,window))(t),this.timer_0=null},Pr.prototype.step=function(){var t=this.sim.step();Br().updateFromDiffs_mwsh3f$(t),Br().updateControlButtons()},Pr.prototype.undo=function(){var t=this.sim.undo();Br().updateFromDiffs_mwsh3f$(t),Br().updateControlButtons()},Pr.prototype.openMemoryTab=function(){Br().renderMemoryTab()},Pr.prototype.openRegisterTab=function(){Br().renderRegisterTab()},Pr.prototype.currentlyRunning_8be2vx$=function(){return null!=this.timer_0},Pr.prototype.saveRegister=function(t,e){if(!this.currentlyRunning_8be2vx$())try{var n=t.value;this.sim.setRegNoUndo_vux9f0$(e,as(n))}catch(t){if(!Q.isType(t,v))throw t}Br().updateRegister_ydzd23$(e,this.sim.getReg_za3lpa$(e))},Pr.prototype.updateRegMemDisplay=function(){Br().updateRegMemDisplay()},Pr.prototype.moveMemoryJump=function(){Br().moveMemoryJump()},Pr.prototype.moveMemoryUp=function(){Br().moveMemoryUp()},Pr.prototype.moveMemoryDown=function(){Br().moveMemoryDown()},Pr.prototype.getInstructionDump=function(){var t,e,n,r,i=new x;e=(t=w(0,this.sim.linkedProgram.prog.insts.size)).first,n=t.last,r=t.step;for(var o=e;o<=n;o+=r){var a=this.sim.linkedProgram.prog.insts.get_za3lpa$(o),s=Br().toHex_za3lpa$(a.get_12yce4$($i()));i.append_gw00v9$(C(s,"0x")),i.append_gw00v9$("\n")}return i.toString()},Pr.prototype.dump=function(){var t;Br().clearConsole(),Br().printConsole_kcmwxo$(this.getInstructionDump()),(Q.isType(t=document.getElementById("console-output"),HTMLTextAreaElement)?t:Q.throwCCE()).select(),document.execCommand("copy")&&window.alert("Successfully copied machine code to clipboard")},Pr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Driver",interfaces:[]};var qr=null;function Mr(){return null===qr&&new Pr,qr}function Rr(){(Kr=this).activeRegister_0=null,this.activeInstruction_0=null,this.activeMemoryAddress_0=0,this.sim_0=this.sim_0,this.displayType_0="hex",this.MEMORY_CONTEXT=6,this.hexMap_0=_([Q.toBoxedChar(48),Q.toBoxedChar(49),Q.toBoxedChar(50),Q.toBoxedChar(51),Q.toBoxedChar(52),Q.toBoxedChar(53),Q.toBoxedChar(54),Q.toBoxedChar(55),Q.toBoxedChar(56),Q.toBoxedChar(57),Q.toBoxedChar(97),Q.toBoxedChar(98),Q.toBoxedChar(99),Q.toBoxedChar(100),Q.toBoxedChar(101),Q.toBoxedChar(102)])}Rr.prototype.renderSimulator_vo69o7$=function(t){this.tabSetVisibility_0("simulator","block"),this.tabSetVisibility_0("editor","none"),this.sim_0=t,this.setRunButtonSpinning_6taknv$(!1),this.renderProgramListing_0(),this.clearConsole(),this.updateAll()},Rr.prototype.renderEditor=function(){this.tabSetVisibility_0("simulator","none"),this.tabSetVisibility_0("editor","block")},Rr.prototype.tabSetVisibility_0=function(t,e){var n,r,i=Q.isType(n=document.getElementById(t+"-tab-view"),HTMLElement)?n:Q.throwCCE(),o=Q.isType(r=document.getElementById(t+"-tab"),HTMLElement)?r:Q.throwCCE();i.style.display=e,Q.equals(e,"none")?o.classList.remove("is-active"):o.classList.add("is-active")},Rr.prototype.displayError_k2a3eh$=function(t){alert(t.message)},Rr.prototype.renderProgramListing_0=function(){var t,e,n,r;this.clearProgramListing(),e=(t=w(0,this.sim_0.linkedProgram.prog.insts.size)).first,n=t.last,r=t.step;for(var i=e;i<=n;i+=r){var o=this.sim_0.linkedProgram.dbg.get_za3lpa$(i).component2().component2(),a=this.sim_0.linkedProgram.prog.insts.get_za3lpa$(i);this.addToProgramListing_7upses$(i,a,o)}},Rr.prototype.updateAll=function(){this.updatePC_za3lpa$(this.sim_0.getPC()),this.updateMemory_0(this.activeMemoryAddress_0),this.updateControlButtons();for(var t=0;t<=31;t++)this.updateRegister_ydzd23$(t,this.sim_0.getReg_za3lpa$(t))},Rr.prototype.updateFromDiffs_mwsh3f$=function(t){var e;for(e=t.iterator();e.hasNext();){var n=e.next();Q.isType(n,ys)?this.updateRegister_ydzd23$(n.id,n.v,!0):Q.isType(n,$s)?this.updatePC_za3lpa$(n.pc):Q.isType(n,ms)?this.updateMemory_0(n.addr):b("diff not yet implemented")}},Rr.prototype.clearProgramListing=function(){this.getElement_61zpoe$("program-listing-body").innerHTML=""},Rr.prototype.addToProgramListing_7upses$=function(t,e,n){var r,i,o,a=Q.isType(r=this.getElement_61zpoe$("program-listing-body"),HTMLTableSectionElement)?r:Q.throwCCE(),s=Q.isType(i=a.insertRow(),HTMLTableRowElement)?i:Q.throwCCE();s.id="instruction-"+t,s.onclick=(o=t,function(t){Mr().toggleBreakpoint(o)});var u=this.toHex_za3lpa$(e.get_12yce4$($i())),l=s.insertCell(0),c=document.createTextNode(u);l.appendChild(c);var p=s.insertCell(1),f=document.createTextNode(Xi().get_4vgyas$(e).disasm.invoke_4vgyas$(e));p.appendChild(f);var h=s.insertCell(2),d=document.createTextNode(n);h.appendChild(d)},Rr.prototype.getElement_61zpoe$=function(t){var e;return Q.isType(e=document.getElementById(t),HTMLElement)?e:Q.throwCCE()},Rr.prototype.updateRegister_ydzd23$=function(t,e,n){var r,i,o,a,s;void 0===n&&(n=!1);var u=Q.isType(r=this.getElement_61zpoe$("reg-"+t+"-val"),HTMLInputElement)?r:Q.throwCCE();i=this.displayType_0,o=Q.equals(i,"Hex")?this.toHex_za3lpa$(e):Q.equals(i,"Decimal")?e.toString():Q.equals(i,"Unsigned")?this.toUnsigned_0(e):Q.equals(i,"ASCII")?this.toAscii_0(e):this.toHex_za3lpa$(e),u.value=o,n&&(null!=(s=null!=(a=this.activeRegister_0)?a.classList:null)&&s.remove("is-modified"),u.classList.add("is-modified"),this.activeRegister_0=u)},Rr.prototype.updatePC_za3lpa$=function(t){var e,n,r,i,o=t/4|0;null!=(n=null!=(e=this.activeInstruction_0)?e.classList:null)&&n.remove("is-selected");var a=null==(r=document.getElementById("instruction-"+o))||Q.isType(r,HTMLElement)?r:Q.throwCCE();null!=(i=null!=a?a.classList:null)&&i.add("is-selected"),null!=a&&a.scrollIntoView(!1),this.activeInstruction_0=a},Rr.prototype.printConsole_kcmwxo$=function(t){var e,n=Q.isType(e=this.getElement_61zpoe$("console-output"),HTMLTextAreaElement)?e:Q.throwCCE();n.value=n.value+t.toString()},Rr.prototype.clearConsole=function(){var t;(Q.isType(t=this.getElement_61zpoe$("console-output"),HTMLTextAreaElement)?t:Q.throwCCE()).value=""},Rr.prototype.setRunButtonSpinning_6taknv$=function(t){var e=this.getElement_61zpoe$("simulator-run");t?(e.classList.add("is-loading"),this.disableControlButtons()):(e.classList.remove("is-loading"),this.updateControlButtons())},Rr.prototype.setButtonDisabled_0=function(t,e){var n;(Q.isType(n=this.getElement_61zpoe$(t),HTMLButtonElement)?n:Q.throwCCE()).disabled=e},Rr.prototype.updateControlButtons=function(){this.setButtonDisabled_0("simulator-reset",!this.sim_0.canUndo()),this.setButtonDisabled_0("simulator-undo",!this.sim_0.canUndo()),this.setButtonDisabled_0("simulator-step",this.sim_0.isDone()),this.setButtonDisabled_0("simulator-run",this.sim_0.isDone())},Rr.prototype.disableControlButtons=function(){this.setButtonDisabled_0("simulator-reset",!0),this.setButtonDisabled_0("simulator-undo",!0),this.setButtonDisabled_0("simulator-step",!0)},Rr.prototype.renderBreakpointAt_fzusl$=function(t,e){var n=this.getElement_61zpoe$("instruction-"+t);e?n.classList.add("is-breakpoint"):n.classList.remove("is-breakpoint")},Rr.prototype.renderMemoryTab=function(){this.tabSetVisibility_0("memory","block"),this.tabSetVisibility_0("register","none")},Rr.prototype.renderRegisterTab=function(){this.tabSetVisibility_0("register","block"),this.tabSetVisibility_0("memory","none")},Rr.prototype.updateMemory_0=function(t){var e,n=t>>2<<2;this.mustMoveMemoryDisplay_0(n)&&(this.activeMemoryAddress_0=n),e=this.MEMORY_CONTEXT;for(var r=-6;r<=e;r++){var i=this.getElement_61zpoe$("mem-row-"+r),o=this.activeMemoryAddress_0+(4*r|0)|0;this.renderMemoryRow_0(i,o)}},Rr.prototype.mustMoveMemoryDisplay_0=function(t){return!new y(-6,this.MEMORY_CONTEXT).contains_mef7kx$(this.activeMemoryAddress_0-t>>2)},Rr.prototype.renderMemoryRow_0=function(t,e){var n,r,i,o,a,s=Q.isType(n=t.childNodes[0],HTMLTableCellElement)?n:Q.throwCCE();if(0<=e){s.innerText=this.toHex_za3lpa$(e);for(var u=1;u<=4;u++){var l=Q.isType(r=t.childNodes[u],HTMLTableCellElement)?r:Q.throwCCE(),c=this.sim_0.loadByte_za3lpa$(e+u-1|0);i=this.displayType_0,o=Q.equals(i,"Hex")?this.byteToHex_0(c):Q.equals(i,"Decimal")?this.byteToDec_0(c):Q.equals(i,"Unsigned")?this.byteToUnsign_0(c):Q.equals(i,"ASCII")?this.toAscii_0(c):this.byteToHex_0(c),l.innerText=o}}else{s.innerText="----------";for(var p=1;p<=4;p++){(Q.isType(a=t.childNodes[p],HTMLTableCellElement)?a:Q.throwCCE()).innerText="--"}}},Rr.prototype.byteToHex_0=function(t){var e=Q.unboxChar(this.hexMap_0.get_za3lpa$(t>>>4)),n=Q.unboxChar(this.hexMap_0.get_za3lpa$(15&t));return String.fromCharCode(Q.unboxChar(e))+String.fromCharCode(Q.unboxChar(n))},Rr.prototype.byteToDec_0=function(t){return Q.toByte(t).toString()},Rr.prototype.byteToUnsign_0=function(t){return t.toString()},Rr.prototype.toHex_za3lpa$=function(t){var e={v:Q.Long.fromInt(t)},n={v:""};for(var r=0;r<=7;r++){var i=Q.unboxChar(this.hexMap_0.get_za3lpa$(e.v.and(Q.Long.fromInt(15)).toInt())),o=Q.unboxChar(i);n.v=String.fromCharCode(Q.toBoxedChar(o))+n.v,e.v=e.v.shiftRightUnsigned(4)}return"0x"+n.v},Rr.prototype.toUnsigned_0=function(t){return 0<=t?t.toString():Q.Long.fromInt(t).add(new Q.Long(0,1)).toString()},Rr.prototype.toAscii_0=function(t){return t<0||255<t?this.toHex_za3lpa$(t):t<32||126<t?"<22>":"'"+String.fromCharCode(Q.unboxChar(Q.toChar(t)))+"'"},Rr.prototype.updateRegMemDisplay=function(){var t,e=Q.isType(t=this.getElement_61zpoe$("display-settings"),HTMLSelectElement)?t:Q.throwCCE();this.displayType_0=e.value,this.updateAll()},Rr.prototype.moveMemoryJump=function(){var t,e,n=Q.isType(t=this.getElement_61zpoe$("address-jump"),HTMLSelectElement)?t:Q.throwCCE(),r=n.value;e=Q.equals(r,"Text")?Ki().TEXT_BEGIN:Q.equals(r,"Data")?Ki().STATIC_BEGIN:Q.equals(r,"Heap")?Ki().HEAP_BEGIN:Q.equals(r,"Stack")?Ki().STACK_BEGIN:Ki().TEXT_BEGIN,this.activeMemoryAddress_0=e,this.updateMemory_0(this.activeMemoryAddress_0),n.selectedIndex=0},Rr.prototype.moveMemoryBy_0=function(t){var e=4*t|0;(this.activeMemoryAddress_0+e|0)<0||(this.activeMemoryAddress_0=this.activeMemoryAddress_0+e|0,this.updateMemory_0(this.activeMemoryAddress_0))},Rr.prototype.moveMemoryUp=function(){this.moveMemoryBy_0(this.MEMORY_CONTEXT)},Rr.prototype.moveMemoryDown=function(){this.moveMemoryBy_0(-6)},Rr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Renderer",interfaces:[]};var Kr=null;function Br(){return null===Kr&&new Rr,Kr}function Dr(t,e){this.programName=t,this.dbg=e}function Fr(){this.prog=new Bi,this.dbg=tt(),this.startPC=null}function Hr(t,e,n,r){this.relocator=t,this.offset=e,this.label=n,this.labelOffset=r}function Ur(t,e,n){this.offset=t,this.label=e,this.labelOffset=n}function Jr(){hi=this}Dr.$metadata$={kind:Q.Kind.CLASS,simpleName:"ProgramDebugInfo",interfaces:[]},Dr.prototype.component1=function(){return this.programName},Dr.prototype.component2=function(){return this.dbg},Dr.prototype.copy_swyff8$=function(t,e){return new Dr(void 0===t?this.programName:t,void 0===e?this.dbg:e)},Dr.prototype.toString=function(){return"ProgramDebugInfo(programName="+Q.toString(this.programName)+", dbg="+Q.toString(this.dbg)+")"},Dr.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+Q.hashCode(this.programName)|0)+Q.hashCode(this.dbg)|0},Dr.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.programName,t.programName)&&Q.equals(this.dbg,t.dbg)},Fr.$metadata$={kind:Q.Kind.CLASS,simpleName:"LinkedProgram",interfaces:[]},Hr.$metadata$={kind:Q.Kind.CLASS,simpleName:"RelocationInfo",interfaces:[]},Hr.prototype.component1=function(){return this.relocator},Hr.prototype.component2=function(){return this.offset},Hr.prototype.component3=function(){return this.label},Hr.prototype.component4=function(){return this.labelOffset},Hr.prototype.copy_tca7p$=function(t,e,n,r){return new Hr(void 0===t?this.relocator:t,void 0===e?this.offset:e,void 0===n?this.label:n,void 0===r?this.labelOffset:r)},Hr.prototype.toString=function(){return"RelocationInfo(relocator="+Q.toString(this.relocator)+", offset="+Q.toString(this.offset)+", label="+Q.toString(this.label)+", labelOffset="+Q.toString(this.labelOffset)+")"},Hr.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+Q.hashCode(this.relocator)|0)+Q.hashCode(this.offset)|0)+Q.hashCode(this.label)|0)+Q.hashCode(this.labelOffset)|0},Hr.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.relocator,t.relocator)&&Q.equals(this.offset,t.offset)&&Q.equals(this.label,t.label)&&Q.equals(this.labelOffset,t.labelOffset)},Ur.$metadata$={kind:Q.Kind.CLASS,simpleName:"DataRelocationInfo",interfaces:[]},Ur.prototype.component1=function(){return this.offset},Ur.prototype.component2=function(){return this.label},Ur.prototype.component3=function(){return this.labelOffset},Ur.prototype.copy_jl0c9m$=function(t,e,n){return new Ur(void 0===t?this.offset:t,void 0===e?this.label:e,void 0===n?this.labelOffset:n)},Ur.prototype.toString=function(){return"DataRelocationInfo(offset="+Q.toString(this.offset)+", label="+Q.toString(this.label)+", labelOffset="+Q.toString(this.labelOffset)+")"},Ur.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+Q.hashCode(this.offset)|0)+Q.hashCode(this.label)|0)+Q.hashCode(this.labelOffset)|0},Ur.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.offset,t.offset)&&Q.equals(this.label,t.label)&&Q.equals(this.labelOffset,t.labelOffset)},Jr.prototype.link_1l4nab$=function(t){var e,n,r,i,o,a,s,u,l=new Fr,c=et(),p=tt(),f=tt(),h=0,d=0;for(e=t.iterator();e.hasNext();){var _=e.next();for(n=_.labels.entries.iterator();n.hasNext();){var m=n.next(),$=m.key,y=m.value,g=(y>=Ki().STATIC_BEGIN?d:h)+y|0;if(_.isGlobalLabel_61zpoe$($)){if(null!=c.put_xwzc9p$($,g))throw nt("label "+$+" defined global in two different files");Q.equals($,"main")&&(l.startPC=g)}}var v,b,x=_.insts,w=Q.getCallableRef("add",function(t,e){return t.add_4vgyas$(e)}.bind(null,l.prog));for(v=x.iterator();v.hasNext();){w(v.next())}for(b=_.debugInfo.iterator();b.hasNext();){var C=b.next();l.dbg.add_11rb$(new Dr(_.name,C))}var S,k=_.dataSegment,N=Q.getCallableRef("addToData",function(t,e){return t.addToData_s8j3t7$(e)}.bind(null,l.prog));for(S=k.iterator();S.hasNext();){N(S.next())}for(r=_.relocationTable.iterator();r.hasNext();){var I=r.next(),E=I.component1(),O=I.component2(),z=I.component3(),L=I.component4(),T=h+O|0,A=l.prog.insts.get_za3lpa$(T/4|0);if(Q.equals(z,""))E.invoke_6r4k1d$(A,T,L);else{var j=_.labels.get_11rb$(z);null!=j?E.invoke_6r4k1d$(A,T,j+L|0):p.add_11rb$(new Hr(E,T,z,L))}}for(i=_.dataRelocationTable.iterator();i.hasNext();){var P=i.next(),q=P.component1(),M=P.component2(),R=P.component3(),K=_.labels.get_11rb$(M),B=d+q|0;if(null!=K){var D=K+R|0;l.prog.overwriteData_6t1wet$(B,Q.toByte(D)),l.prog.overwriteData_6t1wet$(B+1|0,Q.toByte(D>>8)),l.prog.overwriteData_6t1wet$(B+2|0,Q.toByte(D>>16)),l.prog.overwriteData_6t1wet$(B+3|0,Q.toByte(D>>24))}else f.add_11rb$(new Ur(B,M,R))}h=h+_.textSize|0,d=d+_.dataSize|0}for(o=p.iterator();o.hasNext();){var F=o.next(),H=F.component1(),U=F.component2(),J=F.component3();if(null==(a=c.get_11rb$(J)))throw nt("label "+J+" used but not defined");var W=a,V=l.prog.insts.get_za3lpa$(U/4|0);H.invoke_6r4k1d$(V,U,W)}for(s=f.iterator();s.hasNext();){var G=s.next(),Z=G.component1(),Y=G.component2();if(null==(u=c.get_11rb$(Y)))throw nt("label "+Y+" used but not defined");var X=u;l.prog.overwriteData_6t1wet$(Z,Q.toByte(X)),l.prog.overwriteData_6t1wet$(Z+1|0,Q.toByte(X>>8)),l.prog.overwriteData_6t1wet$(Z+2|0,Q.toByte(X>>16)),l.prog.overwriteData_6t1wet$(Z+3|0,Q.toByte(X>>24))}return l},Jr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Linker",interfaces:[]};var Wr,Vr,Gr,Zr,Yr,Xr,Qr,ti,ei,ni,ri,ii,oi,ai,si,ui,li,ci,pi,fi,hi=null;function di(){return null===hi&&new Jr,hi}function _i(t,e,n,r){i.call(this),this.lo=n,this.hi=r,this.name$=t,this.ordinal$=e}function mi(){mi=function(){},Wr=new _i("ENTIRE",0,0,32),Vr=new _i("OPCODE",1,0,7),Gr=new _i("RD",2,7,12),Zr=new _i("FUNCT3",3,12,15),Yr=new _i("RS1",4,15,20),Xr=new _i("RS2",5,20,25),Qr=new _i("FUNCT7",6,25,32),ti=new _i("IMM_11_0",7,20,32),ei=new _i("IMM_4_0",8,7,12),ni=new _i("IMM_11_5",9,25,32),ri=new _i("IMM_11_B",10,7,8),ii=new _i("IMM_4_1",11,8,12),oi=new _i("IMM_10_5",12,25,31),ai=new _i("IMM_12",13,31,32),si=new _i("IMM_31_12",14,12,32),ui=new _i("IMM_19_12",15,12,20),li=new _i("IMM_11_J",16,20,21),ci=new _i("IMM_10_1",17,21,31),pi=new _i("IMM_20",18,31,32),fi=new _i("SHAMT",19,20,25)}function $i(){return mi(),Wr}function yi(){return mi(),Vr}function gi(){return mi(),Gr}function vi(){return mi(),Zr}function bi(){return mi(),Yr}function xi(){return mi(),Xr}function wi(){return mi(),Qr}function Ci(){return mi(),ti}function Si(){return mi(),ei}function ki(){return mi(),ni}function Ni(){return mi(),ri}function Ii(){return mi(),ii}function Ei(){return mi(),oi}function Oi(){return mi(),ai}function zi(){return mi(),si}function Li(){return mi(),ui}function Ti(){return mi(),li}function Ai(){return mi(),ci}function ji(){return mi(),pi}function Pi(){return mi(),fi}function qi(t){this.encoding_0=t,this.length=4}function Mi(){(Ri=this).STACK_BEGIN=2147483632,this.HEAP_BEGIN=268468224,this.STATIC_BEGIN=268435456,this.TEXT_BEGIN=0}_i.$metadata$={kind:Q.Kind.CLASS,simpleName:"InstructionField",interfaces:[i]},_i.values=function(){return[$i(),yi(),gi(),vi(),bi(),xi(),wi(),Ci(),Si(),ki(),Ni(),Ii(),Ei(),Oi(),zi(),Li(),Ti(),Ai(),ji(),Pi()]},_i.valueOf_61zpoe$=function(t){switch(t){case"ENTIRE":return $i();case"OPCODE":return yi();case"RD":return gi();case"FUNCT3":return vi();case"RS1":return bi();case"RS2":return xi();case"FUNCT7":return wi();case"IMM_11_0":return Ci();case"IMM_4_0":return Si();case"IMM_11_5":return ki();case"IMM_11_B":return Ni();case"IMM_4_1":return Ii();case"IMM_10_5":return Ei();case"IMM_12":return Oi();case"IMM_31_12":return zi();case"IMM_19_12":return Li();case"IMM_11_J":return Ti();case"IMM_10_1":return Ai();case"IMM_20":return ji();case"SHAMT":return Pi();default:Q.throwISE("No enum constant venus.riscv.InstructionField."+t)}},qi.prototype.get_12yce4$=function(t){var e=Q.Long.ONE.shiftLeft(t.hi).subtract(Q.Long.ONE.shiftLeft(t.lo)).toInt();return(this.encoding_0&e)>>>t.lo},qi.prototype.set_olc5hu$=function(t,e){var n=Q.Long.ONE.shiftLeft(t.hi).subtract(Q.Long.ONE.shiftLeft(t.lo)).toInt();this.encoding_0=this.encoding_0&~n,this.encoding_0=this.encoding_0|e<<t.lo&n},qi.prototype.toString=function(){return this.encoding_0.toString()},qi.$metadata$={kind:Q.Kind.CLASS,simpleName:"MachineCode",interfaces:[]},Mi.$metadata$={kind:Q.Kind.OBJECT,simpleName:"MemorySegments",interfaces:[]};var Ri=null;function Ki(){return null===Ri&&new Mi,Ri}function Bi(t){void 0===t&&(t="anonymous"),this.name=t,this.insts=tt(),this.debugInfo=tt(),this.labels=et(),this.equivs=et(),this.relocationTable=tt(),this.dataRelocationTable=tt(),this.dataSegment=tt(),this.textSize=0,this.dataSize=0,this.globalLabels_0=l(),this.SYM_PATN_0=e("(.*?)(?:([-+])(?:(\\d+)|(.*)))?$")}function Di(){(Fi=this).strict=!0}Bi.prototype.add_4vgyas$=function(t){this.insts.add_11rb$(t),this.textSize=this.textSize+t.length|0},Bi.prototype.addToData_s8j3t7$=function(t){this.dataSegment.add_11rb$(t),this.dataSize=this.dataSize+1|0},Bi.prototype.overwriteData_6t1wet$=function(t,e){this.dataSegment.set_wxm5ur$(t,e)},Bi.prototype.addDebugInfo_wkjugy$=function(t){for(;this.debugInfo.size<this.insts.size;)this.debugInfo.add_11rb$(t)},Bi.prototype.addLabel_bm4lxs$=function(t,e){return this.labels.put_xwzc9p$(t,e)},Bi.prototype.addEqu_puj7f4$=function(t,e){return this.equivs.put_xwzc9p$(t,e)},Bi.prototype.symbolPart_61zpoe$=function(t){var e=this.SYM_PATN_0.find_905azu$(t);if(null==e)throw nt("bad symbol reference: "+t);return e.groupValues.get_za3lpa$(1)},Bi.prototype.labelOffsetPart_61zpoe$=function(t){var e,n,r=this.SYM_PATN_0.find_905azu$(t);if(null==r)throw nt("ill-formed symbol reference: "+t);var i=r.destructured,o=i.match.groupValues.get_za3lpa$(2),a=i.match.groupValues.get_za3lpa$(3),s=i.match.groupValues.get_za3lpa$(4);if(Q.equals(o,""))return 0;if(!Q.equals(a,""))return S(o+a);var u,l=this.labels;if(!(Q.isType(u=l,Q.kotlin.collections.Map)?u:Q.throwCCE()).containsKey_11rb$(s))throw nt("undefined symbol: "+s);return Q.equals(o,"-")?-(null!=(e=this.labels.get_11rb$(s))?e:Q.throwNPE()):null!=(n=this.labels.get_11rb$(s))?n:Q.throwNPE()},Bi.prototype.getLabelOffset_61zpoe$=function(t){var e=this.labels.get_11rb$(t);return null!=e?e-this.textSize|0:null},Bi.prototype.getImmediate_nc2td$=function(e,t,n){var r,i;try{i=as(e)}catch(t){if(!Q.isType(t,v))throw t;var o=this.symbolPart_61zpoe$(e),a=this.labelOffsetPart_61zpoe$(e),s=!Q.equals(o,"");if(s){var u,l=this.labels;s=!(Q.isType(u=l,Q.kotlin.collections.Map)?u:Q.throwCCE()).containsKey_11rb$(o)}if(s)throw nt("undefined symbol: "+o);i=(Q.equals(o,"")?0:null!=(r=this.labels.get_11rb$(o))?r:Q.throwNPE())+a|0}var c=i;if(!new y(t,n).contains_mef7kx$(c))throw nt("immediate "+e+" (= "+c+") out of range (should be between "+t+" and "+n+")");return c},Bi.prototype.addRelocation_f5izfr$=function(t,e,n,r){return void 0===r&&(r=this.textSize),this.relocationTable.add_11rb$(new Hr(t,r,e,n))},Bi.prototype.addDataRelocation_3m52m6$=function(t,e,n){return void 0===n&&(n=this.textSize),this.dataRelocationTable.add_11rb$(new Ur(n,t,e))},Bi.prototype.makeLabelGlobal_61zpoe$=function(t){this.globalLabels_0.add_11rb$(t)},Bi.prototype.isGlobalLabel_61zpoe$=function(t){return this.globalLabels_0.contains_11rb$(t)},Bi.prototype.dump=function(){return this.insts},Bi.$metadata$={kind:Q.Kind.CLASS,simpleName:"Program",interfaces:[]},Di.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Settings",interfaces:[]};var Fi=null;function Hi(){return null===Fi&&new Di,Fi}function Ui(t,e,n,r,i){void 0===i&&(i=Ji),Gi.call(this,t,new jo(e,n),sa(),new Ho(r),Yo(),ho())}function Ji(t,e){throw new r("no rv64")}function Wi(t,e,n,r,i){void 0===i&&(i=Vi),Gi.call(this,t,new Po(e,n),ha(),new Jo(r),Yo(),$o())}function Vi(t,e){throw new r("no rv64")}function Gi(t,e,n,r,i,o){Xi(),this.name=t,this.format=e,this.parser=n,this.impl32=r,this.impl64=i,this.disasm=o,Xi().allInstructions_0.add_11rb$(this)}function Zi(){(Yi=this).allInstructions_0=Q.kotlin.collections.ArrayList_init_ww73n8$()}Ui.$metadata$={kind:Q.Kind.CLASS,simpleName:"BTypeInstruction",interfaces:[Gi]},Wi.$metadata$={kind:Q.Kind.CLASS,simpleName:"ITypeInstruction",interfaces:[Gi]},Zi.prototype.get_4vgyas$=function(t){var e,n,r,i=this.allInstructions_0,o=Q.kotlin.collections.ArrayList_init_ww73n8$();for(n=i.iterator();n.hasNext();){var a=n.next();a.format.length===t.length&&o.add_11rb$(a)}t:do{var s;for(s=o.iterator();s.hasNext();){var u=s.next();if(u.format.matches_4vgyas$(t)){r=u;break t}}r=null}while(0);if(null==(e=r))throw hs("instruction not found for "+t);return e},Zi.prototype.get_61zpoe$=function(t){var e,n,r=this.allInstructions_0;t:do{var i;for(i=r.iterator();i.hasNext();){var o=i.next();if(Q.equals(o.name,t)){n=o;break t}}n=null}while(0);if(null==(e=n))throw nt("instruction with name "+t+" not found");return e},Zi.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var Yi=null;function Xi(){return null===Yi&&new Zi,Yi}function Qi(t,e,n,r,i,o,a){void 0===i&&(i=to),void 0===o&&(o=eo),void 0===a&&(a=no),Gi.call(this,t,new Po(e,n),$a(),new Vo(r,i),Yo(),bo())}function to(t){return t}function eo(t,e){throw new r("no rv64")}function no(t){return t}function ro(t,e,n,r,i,o){void 0===o&&(o=io),Gi.call(this,t,new Bo(e,n,r),va(),new Xo(i),Yo(),Co())}function io(t,e){throw new r("no rv64")}function oo(t,e,n,r,i){void 0===i&&(i=ao),Gi.call(this,t,new Do(e,n),Ca(),new ta(r),Yo(),Io())}function ao(t,e,n){throw new r("no rv64")}function so(t,e,n,r,i){void 0===i&&(i=uo),Gi.call(this,t,new Bo(19,e,n),Na(),new na(r),Yo(),zo())}function uo(t,e){throw new r("no rv64")}function lo(t,e,n,r){void 0===r&&(r=co),Gi.call(this,t,new Fo(e),Oa(),new Qo(n),new Qo(r),Ao())}function co(t,e){throw new r("no rv64")}function po(){fo=this}Gi.prototype.toString=function(){return this.name},Gi.$metadata$={kind:Q.Kind.CLASS,simpleName:"Instruction",interfaces:[]},Qi.$metadata$={kind:Q.Kind.CLASS,simpleName:"LoadTypeInstruction",interfaces:[Gi]},ro.$metadata$={kind:Q.Kind.CLASS,simpleName:"RTypeInstruction",interfaces:[Gi]},oo.$metadata$={kind:Q.Kind.CLASS,simpleName:"STypeInstruction",interfaces:[Gi]},so.$metadata$={kind:Q.Kind.CLASS,simpleName:"ShiftImmediateInstruction",interfaces:[Gi]},lo.$metadata$={kind:Q.Kind.CLASS,simpleName:"UTypeInstruction",interfaces:[Gi]},po.prototype.invoke_4vgyas$=function(t){return Xi().get_4vgyas$(t).name+" x"+t.get_12yce4$(bi())+" x"+t.get_12yce4$(xi())+" "+Uo(t)},po.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BTypeDisassembler",interfaces:[yo]};var fo=null;function ho(){return null===fo&&new po,fo}function _o(){mo=this}_o.prototype.invoke_4vgyas$=function(t){return Xi().get_4vgyas$(t).name+" x"+t.get_12yce4$(gi())+" x"+t.get_12yce4$(bi())+" "+ra(t.get_12yce4$(Ci()),12)},_o.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ITypeDisassembler",interfaces:[yo]};var mo=null;function $o(){return null===mo&&new _o,mo}function yo(){}function go(){vo=this}yo.$metadata$={kind:Q.Kind.INTERFACE,simpleName:"InstructionDisassembler",interfaces:[]},go.prototype.invoke_4vgyas$=function(t){var e=Xi().get_4vgyas$(t).name,n=t.get_12yce4$(bi());return e+" x"+t.get_12yce4$(gi())+" "+ra(t.get_12yce4$(Ci()),12)+"(x"+n+")"},go.$metadata$={kind:Q.Kind.OBJECT,simpleName:"LoadDisassembler",interfaces:[yo]};var vo=null;function bo(){return null===vo&&new go,vo}function xo(){wo=this}xo.prototype.invoke_4vgyas$=function(t){return Xi().get_4vgyas$(t).name+" x"+t.get_12yce4$(gi())+" x"+t.get_12yce4$(bi())+" x"+t.get_12yce4$(xi())},xo.$metadata$={kind:Q.Kind.OBJECT,simpleName:"RTypeDisassembler",interfaces:[yo]};var wo=null;function Co(){return null===wo&&new xo,wo}function So(t){this.disasm_0=t}function ko(){No=this}So.prototype.invoke_4vgyas$=function(t){return this.disasm_0(t)},So.$metadata$={kind:Q.Kind.CLASS,simpleName:"RawDisassembler",interfaces:[yo]},ko.prototype.invoke_4vgyas$=function(t){var e=Xi().get_4vgyas$(t).name,n=t.get_12yce4$(bi());return e+" x"+t.get_12yce4$(xi())+" "+ea(t)+"(x"+n+")"},ko.$metadata$={kind:Q.Kind.OBJECT,simpleName:"STypeDisassembler",interfaces:[yo]};var No=null;function Io(){return null===No&&new ko,No}function Eo(){Oo=this}Eo.prototype.invoke_4vgyas$=function(t){return Xi().get_4vgyas$(t).name+" x"+t.get_12yce4$(gi())+" x"+t.get_12yce4$(bi())+" "+t.get_12yce4$(Pi())},Eo.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ShiftImmediateDisassembler",interfaces:[yo]};var Oo=null;function zo(){return null===Oo&&new Eo,Oo}function Lo(){To=this}Lo.prototype.invoke_4vgyas$=function(t){return Xi().get_4vgyas$(t).name+" x"+t.get_12yce4$(gi())+" "+t.get_12yce4$(zi())},Lo.$metadata$={kind:Q.Kind.OBJECT,simpleName:"UTypeDisassembler",interfaces:[yo]};var To=null;function Ao(){return null===To&&new Lo,To}function jo(t,e){Ko.call(this,t,e)}function Po(t,e){Ko.call(this,t,e)}function qo(t,e){this.ifield=t,this.required=e}function Mo(t,e){this.length=t,this.ifields=e}function Ro(t){Mo.call(this,4,c(new qo(yi(),t)))}function Ko(t,e){Mo.call(this,4,_([new qo(yi(),t),new qo(vi(),e)]))}function Bo(t,e,n){Mo.call(this,4,_([new qo(yi(),t),new qo(vi(),e),new qo(wi(),n)]))}function Do(t,e){Ko.call(this,t,e)}function Fo(t){Ro.call(this,t)}function Ho(t){this.cond_0=t}function Uo(t){var e=t.get_12yce4$(Ni()),n=t.get_12yce4$(Ii()),r=t.get_12yce4$(Ei()),i=t.get_12yce4$(Oi()),o=0;return ra(o=ia(o=ia(o=ia(o=ia(o,e,11,12),n,1,5),r,5,11),i,12,13),13)}function Jo(t){this.eval_0=t}function Wo(){}function Vo(t,e){this.load_0=t,this.postLoad_0=e}function Go(){Zo=this}jo.$metadata$={kind:Q.Kind.CLASS,simpleName:"BTypeFormat",interfaces:[Ko]},Po.$metadata$={kind:Q.Kind.CLASS,simpleName:"ITypeFormat",interfaces:[Ko]},qo.$metadata$={kind:Q.Kind.CLASS,simpleName:"FieldEqual",interfaces:[]},qo.prototype.component1=function(){return this.ifield},qo.prototype.component2=function(){return this.required},qo.prototype.copy_olc5hu$=function(t,e){return new qo(void 0===t?this.ifield:t,void 0===e?this.required:e)},qo.prototype.toString=function(){return"FieldEqual(ifield="+Q.toString(this.ifield)+", required="+Q.toString(this.required)+")"},qo.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+Q.hashCode(this.ifield)|0)+Q.hashCode(this.required)|0},qo.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Q.equals(this.ifield,t.ifield)&&Q.equals(this.required,t.required)},Mo.prototype.matches_4vgyas$=function(t){var e,n=this.ifields;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next(),o=i.component1(),a=i.component2();if(t.get_12yce4$(o)!==a){e=!1;break t}}e=!0}while(0);return e},Mo.prototype.fill=function(){var t,e=new qi(0);for(t=this.ifields.iterator();t.hasNext();){var n=t.next(),r=n.component1(),i=n.component2();e.set_olc5hu$(r,i)}return e},Mo.$metadata$={kind:Q.Kind.CLASS,simpleName:"InstructionFormat",interfaces:[]},Ro.$metadata$={kind:Q.Kind.CLASS,simpleName:"OpcodeFormat",interfaces:[Mo]},Ko.$metadata$={kind:Q.Kind.CLASS,simpleName:"OpcodeFunct3Format",interfaces:[Mo]},Bo.$metadata$={kind:Q.Kind.CLASS,simpleName:"RTypeFormat",interfaces:[Mo]},Do.$metadata$={kind:Q.Kind.CLASS,simpleName:"STypeFormat",interfaces:[Ko]},Fo.$metadata$={kind:Q.Kind.CLASS,simpleName:"UTypeFormat",interfaces:[Ro]},Ho.prototype.invoke_23eu0x$=function(t,e){var n=t.get_12yce4$(bi()),r=t.get_12yce4$(xi()),i=Uo(t),o=e.getReg_za3lpa$(n),a=e.getReg_za3lpa$(r);this.cond_0(o,a)?e.incrementPC_za3lpa$(i):e.incrementPC_za3lpa$(t.length)},Ho.$metadata$={kind:Q.Kind.CLASS,simpleName:"BTypeImplementation32",interfaces:[Wo]},Jo.prototype.invoke_23eu0x$=function(t,e){var n=t.get_12yce4$(bi()),r=ra(t.get_12yce4$(Ci()),12),i=t.get_12yce4$(gi()),o=e.getReg_za3lpa$(n);e.setReg_vux9f0$(i,this.eval_0(o,r)),e.incrementPC_za3lpa$(t.length)},Jo.$metadata$={kind:Q.Kind.CLASS,simpleName:"ITypeImplementation32",interfaces:[Wo]},Wo.$metadata$={kind:Q.Kind.INTERFACE,simpleName:"InstructionImplementation",interfaces:[]},Vo.prototype.invoke_23eu0x$=function(t,e){var n=t.get_12yce4$(bi()),r=t.get_12yce4$(gi()),i=e.getReg_za3lpa$(n),o=ra(t.get_12yce4$(Ci()),12);e.setReg_vux9f0$(r,this.postLoad_0(this.load_0(e,i+o|0))),e.incrementPC_za3lpa$(t.length)},Vo.$metadata$={kind:Q.Kind.CLASS,simpleName:"LoadImplementation32",interfaces:[Wo]},Go.prototype.invoke_23eu0x$=function(t,e){throw new r("no implementation available")},Go.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NoImplementation",interfaces:[Wo]};var Zo=null;function Yo(){return null===Zo&&new Go,Zo}function Xo(t){this.eval_0=t}function Qo(t){this.eval_0=t}function ta(t){this.store_0=t}function ea(t){var e=t.get_12yce4$(ki()),n=t.get_12yce4$(Si()),r=0;return ra(r=ia(r=ia(r,e,5,12),n,0,5),12)}function na(t){this.eval_0=t}function ra(t,e){return t<<32-e>>32-e}function ia(t,e,n,r){return Q.Long.ONE.shiftLeft(r).subtract(Q.Long.ONE.shiftLeft(n)).inv().toInt()&t|e<<n}function oa(){(aa=this).B_TYPE_MIN=-2048,this.B_TYPE_MAX=2047}Xo.prototype.invoke_23eu0x$=function(t,e){var n=t.get_12yce4$(bi()),r=t.get_12yce4$(xi()),i=t.get_12yce4$(gi()),o=e.getReg_za3lpa$(n),a=e.getReg_za3lpa$(r);e.setReg_vux9f0$(i,this.eval_0(o,a)),e.incrementPC_za3lpa$(t.length)},Xo.$metadata$={kind:Q.Kind.CLASS,simpleName:"RTypeImplementation32",interfaces:[Wo]},Qo.prototype.invoke_23eu0x$=function(t,e){this.eval_0(t,e)},Qo.$metadata$={kind:Q.Kind.CLASS,simpleName:"RawImplementation",interfaces:[Wo]},ta.prototype.invoke_23eu0x$=function(t,e){var n=t.get_12yce4$(bi()),r=t.get_12yce4$(xi()),i=ea(t),o=e.getReg_za3lpa$(n),a=e.getReg_za3lpa$(r);this.store_0(e,o+i|0,a),e.incrementPC_za3lpa$(t.length)},ta.$metadata$={kind:Q.Kind.CLASS,simpleName:"STypeImplementation32",interfaces:[Wo]},na.prototype.invoke_23eu0x$=function(t,e){var n=t.get_12yce4$(bi()),r=t.get_12yce4$(Pi()),i=t.get_12yce4$(gi()),o=e.getReg_za3lpa$(n);e.setReg_vux9f0$(i,this.eval_0(o,r)),e.incrementPC_za3lpa$(t.length)},na.$metadata$={kind:Q.Kind.CLASS,simpleName:"ShiftImmediateImplementation32",interfaces:[Wo]},oa.prototype.invoke_5czv3h$=function(t,e,n){var r;za(n.size,3),e.set_olc5hu$(bi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(xi(),La(n.get_za3lpa$(1)));var i=n.get_za3lpa$(2);if(null==(r=t.getLabelOffset_61zpoe$(i)))throw nt("could not find label "+i);var o=r;if(!new y(this.B_TYPE_MIN,this.B_TYPE_MAX).contains_mef7kx$(o))throw nt("branch to "+i+" too far");e.set_olc5hu$(Ni(),o>>11),e.set_olc5hu$(Ii(),o>>1),e.set_olc5hu$(Oi(),o>>12),e.set_olc5hu$(Ei(),o>>5)},oa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BTypeParser",interfaces:[da]};var aa=null;function sa(){return null===aa&&new oa,aa}function ua(){(la=this).B_TYPE_MIN=-2048,this.B_TYPE_MAX=2047}ua.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,0)},ua.$metadata$={kind:Q.Kind.OBJECT,simpleName:"DoNothingParser",interfaces:[da]};var la=null;function ca(){return null===la&&new ua,la}function pa(){(fa=this).I_TYPE_MIN=-2048,this.I_TYPE_MAX=2047}pa.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(1))),ss(n.get_za3lpa$(2))?e.set_olc5hu$(Ci(),t.getImmediate_nc2td$(n.get_za3lpa$(2),this.I_TYPE_MIN,this.I_TYPE_MAX)):t.addRelocation_f5izfr$(Aa,t.symbolPart_61zpoe$(n.get_za3lpa$(2)),t.labelOffsetPart_61zpoe$(n.get_za3lpa$(2)))},pa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ITypeParser",interfaces:[da]};var fa=null;function ha(){return null===fa&&new pa,fa}function da(){}function _a(){(ma=this).I_TYPE_MIN=-2048,this.I_TYPE_MAX=2047}da.$metadata$={kind:Q.Kind.INTERFACE,simpleName:"InstructionParser",interfaces:[]},_a.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(2))),e.set_olc5hu$(Ci(),t.getImmediate_nc2td$(n.get_za3lpa$(1),this.I_TYPE_MIN,this.I_TYPE_MAX))},_a.$metadata$={kind:Q.Kind.OBJECT,simpleName:"LoadParser",interfaces:[da]};var ma=null;function $a(){return null===ma&&new _a,ma}function ya(){ga=this}ya.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(1))),e.set_olc5hu$(xi(),La(n.get_za3lpa$(2)))},ya.$metadata$={kind:Q.Kind.OBJECT,simpleName:"RTypeParser",interfaces:[da]};var ga=null;function va(){return null===ga&&new ya,ga}function ba(t){this.eval_0=t}function xa(){(wa=this).S_TYPE_MIN=-2048,this.S_TYPE_MAX=2047}ba.prototype.invoke_5czv3h$=function(t,e,n){this.eval_0(t,e,n)},ba.$metadata$={kind:Q.Kind.CLASS,simpleName:"RawParser",interfaces:[da]},xa.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3);var r=t.getImmediate_nc2td$(n.get_za3lpa$(1),this.S_TYPE_MIN,this.S_TYPE_MAX);e.set_olc5hu$(bi(),La(n.get_za3lpa$(2))),e.set_olc5hu$(xi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(Si(),r),e.set_olc5hu$(ki(),r>>5)},xa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"STypeParser",interfaces:[da]};var wa=null;function Ca(){return null===wa&&new xa,wa}function Sa(){(ka=this).SHIFT_MIN=0,this.SHIFT_MAX=31}Sa.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(1))),e.set_olc5hu$(Pi(),t.getImmediate_nc2td$(n.get_za3lpa$(2),this.SHIFT_MIN,this.SHIFT_MAX))},Sa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ShiftImmediateParser",interfaces:[da]};var ka=null;function Na(){return null===ka&&new Sa,ka}function Ia(){(Ea=this).U_TYPE_MIN=0,this.U_TYPE_MAX=1048575}Ia.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,2),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(zi(),t.getImmediate_nc2td$(n.get_za3lpa$(1),this.U_TYPE_MIN,this.U_TYPE_MAX))},Ia.$metadata$={kind:Q.Kind.OBJECT,simpleName:"UTypeParser",interfaces:[da]};var Ea=null;function Oa(){return null===Ea&&new Ia,Ea}function za(t,e){if(t!==e)throw nt("got "+t+" arguments but expected "+e)}function La(t){var e;if(s(t,"x")){var n=S(k(t,1));if(new y(0,31).contains_mef7kx$(n))return n;throw nt("register "+t+" not recognized")}if(Q.equals(t,"zero"))e=0;else if(Q.equals(t,"ra"))e=1;else if(Q.equals(t,"sp"))e=2;else if(Q.equals(t,"gp"))e=3;else if(Q.equals(t,"tp"))e=4;else if(Q.equals(t,"t0"))e=5;else if(Q.equals(t,"t1"))e=6;else if(Q.equals(t,"t2"))e=7;else if(Q.equals(t,"s0")||Q.equals(t,"fp"))e=8;else if(Q.equals(t,"s1"))e=9;else if(Q.equals(t,"a0"))e=10;else if(Q.equals(t,"a1"))e=11;else if(Q.equals(t,"a2"))e=12;else if(Q.equals(t,"a3"))e=13;else if(Q.equals(t,"a4"))e=14;else if(Q.equals(t,"a5"))e=15;else if(Q.equals(t,"a6"))e=16;else if(Q.equals(t,"a7"))e=17;else if(Q.equals(t,"s2"))e=18;else if(Q.equals(t,"s3"))e=19;else if(Q.equals(t,"s4"))e=20;else if(Q.equals(t,"s5"))e=21;else if(Q.equals(t,"s6"))e=22;else if(Q.equals(t,"s7"))e=23;else if(Q.equals(t,"s8"))e=24;else if(Q.equals(t,"s9"))e=25;else if(Q.equals(t,"s10"))e=26;else if(Q.equals(t,"s11"))e=27;else if(Q.equals(t,"t3"))e=28;else if(Q.equals(t,"t4"))e=29;else if(Q.equals(t,"t5"))e=30;else{if(!Q.equals(t,"t6"))throw nt("register "+t+" not recognized");e=31}return e}function Ta(){ja=this}Ta.prototype.invoke_tubppg$=function(t,e,n){if(!new y(-2048,2047).contains_mef7kx$(n))throw nt("immediate value out of range: "+n);t.set_olc5hu$(Ci(),n)},Ta.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ImmAbsRelocator32",interfaces:[ts]};var Aa,ja=null;function Pa(){Ma=this}Pa.prototype.invoke_tubppg$=function(t,e,n){if(!new y(-2048,2047).contains_mef7kx$(n))throw nt("immediate value out of range: "+n);t.set_olc5hu$(Si(),n),t.set_olc5hu$(ki(),n>>5)},Pa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ImmAbsStoreRelocator32",interfaces:[ts]};var qa,Ma=null;function Ra(){Ba=this}Ra.prototype.invoke_tubppg$=function(t,e,n){var r=n-e|0;t.set_olc5hu$(ji(),r>>20),t.set_olc5hu$(Ai(),r>>1),t.set_olc5hu$(Li(),r>>12),t.set_olc5hu$(Ti(),r>>11)},Ra.$metadata$={kind:Q.Kind.OBJECT,simpleName:"JALRelocator32",interfaces:[ts]};var Ka,Ba=null;function Da(){Fa=this}Da.prototype.invoke_nuphlu$=function(t,e,n){throw new r("no relocator64 for "+t)},Da.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NoRelocator64",interfaces:[es]};var Fa=null;function Ha(){return null===Fa&&new Da,Fa}function Ua(){Wa=this}Ua.prototype.invoke_tubppg$=function(t,e,n){t.set_olc5hu$(zi(),n-e+2048>>12)},Ua.$metadata$={kind:Q.Kind.OBJECT,simpleName:"PCRelHiRelocator32",interfaces:[ts]};var Ja,Wa=null;function Va(){Za=this}Va.prototype.invoke_tubppg$=function(t,e,n){t.set_olc5hu$(Ci(),n-(e-4)|0)},Va.$metadata$={kind:Q.Kind.OBJECT,simpleName:"PCRelLoRelocator32",interfaces:[ts]};var Ga,Za=null;function Ya(){Qa=this}Ya.prototype.invoke_tubppg$=function(t,e,n){var r=n-(e-4)|0;t.set_olc5hu$(Si(),r),t.set_olc5hu$(ki(),r>>5)},Ya.$metadata$={kind:Q.Kind.OBJECT,simpleName:"PCRelLoStoreRelocator32",interfaces:[ts]};var Xa,Qa=null;function ts(){}function es(){}function ns(t,e){this.relocator32_0=t,this.relocator64_0=e}function rs(t,e){return Q.primitiveCompareTo(t^n.MIN_VALUE,e^n.MIN_VALUE)}function is(t,e){return t.xor(new Q.Long(0,-2147483648)).compareTo_11rb$(e.xor(new Q.Long(0,-2147483648)))}function os(t){var e=t.get_12yce4$(ji()),n=t.get_12yce4$(Ai()),r=t.get_12yce4$(Ti()),i=t.get_12yce4$(Li()),o=0;return ra(o=ia(o=ia(o=ia(o=ia(o,e,20,21),n,1,11),r,11,12),i,12,20),21)}function as(t){var e,n,r;if(r=t,39===Q.unboxChar(I(r))&&39===Q.unboxChar(z(r)))return function(e){var t=L(k(e,1),1);if(Q.equals(t,"\\'"))return 39;if(Q.equals(t,'"'))return 34;var n='"'+t+'"';try{var r=JSON.parse(n);if(0===r.length)throw new v("character literal "+e+" is empty");if(1<r.length)throw new v("character literal "+e+" too long");return 0|Q.unboxChar(r.charCodeAt(0))}catch(t){throw Q.isType(t,$)?new v("could not parse character literal "+e):t}}(t);if(s(t,"0x"))e=16;else if(s(t,"0b"))e=2;else if(s(k(t,1),"0x"))e=16;else{if(!s(k(t,1),"0b"))return N(t).toInt();e=2}var i=e,o=43===(n=Q.unboxChar(I(t)))||45===n?1:0,a=E(t,o)+k(t,o+2|0);return O(a,i).toInt()}function ss(t){try{return as(t),!0}catch(t){if(Q.isType(t,v))return!1;throw t}}function us(){}function ls(){this.diffs_0=tt()}function cs(){this.memory_0=et()}function ps(t){var e,n,r;for(this.linkedProgram=t,this.state_0=new ds,this.maxpc_0=Ki().TEXT_BEGIN,this.cycles_0=0,this.history_0=new ls,this.preInstruction_0=tt(),this.postInstruction_0=tt(),this.breakpoints_0=null,e=this.linkedProgram.prog.insts.iterator();e.hasNext();){var i=e.next();this.state_0.mem.storeWord_vux9f0$(this.maxpc_0,i.get_12yce4$($i())),this.maxpc_0=this.maxpc_0+i.length|0}var o=Ki().STATIC_BEGIN;for(n=this.linkedProgram.prog.dataSegment.iterator();n.hasNext();){var a=n.next();this.state_0.mem.storeByte_vux9f0$(o,a),o=o+1|0}this.state_0.pc=null!=(r=this.linkedProgram.startPC)?r:Ki().TEXT_BEGIN,this.state_0.setReg_vux9f0$(2,Ki().STACK_BEGIN),this.state_0.setReg_vux9f0$(3,Ki().STATIC_BEGIN);var s,u=this.linkedProgram.prog.insts.size,l=Array(u);s=l.length-1|0;for(var c=0;c<=s;c++)l[c]=!1;this.breakpoints_0=l}function fs(){Q.captureStack($,this),this.name="SimulatorError"}function hs(t,e){return void 0===t&&(t=null),e=e||Object.create(fs.prototype),$.call(e),e.message_3ylwkb$_0=t,e.cause_3ylwkb$_0=null,fs.call(e),e}function ds(){this.regs_0=Q.newArray(32,0),this.mem=new cs,this.pc=0,this.heapEnd=Ki().HEAP_BEGIN}function _s(t){this.heapEnd=t}function ms(t,e){this.addr=t,this.value=e}function $s(t){this.pc=t}function ys(t,e){this.id=t,this.v=e}ts.$metadata$={kind:Q.Kind.INTERFACE,simpleName:"Relocator32",interfaces:[]},es.$metadata$={kind:Q.Kind.INTERFACE,simpleName:"Relocator64",interfaces:[]},ns.prototype.invoke_6r4k1d$=function(t,e,n,r){void 0===r&&(r=!1),r?this.relocator64_0.invoke_nuphlu$(t,Q.numberToLong(e),Q.numberToLong(n)):this.relocator32_0.invoke_tubppg$(t,Q.numberToInt(e),Q.numberToInt(n))},ns.$metadata$={kind:Q.Kind.CLASS,simpleName:"Relocator",interfaces:[]},us.$metadata$={kind:Q.Kind.INTERFACE,simpleName:"Diff",interfaces:[]},ls.prototype.add_mwsh3f$=function(t){return this.diffs_0.add_11rb$(T(t))},ls.prototype.pop=function(){return this.diffs_0.removeAt_za3lpa$(this.diffs_0.size-1|0)},ls.prototype.isEmpty=function(){return this.diffs_0.isEmpty()},ls.$metadata$={kind:Q.Kind.CLASS,simpleName:"History",interfaces:[]},cs.prototype.loadByte_za3lpa$=function(t){var e,n,r;return null!=(r=null!=(n=null!=(e=this.memory_0.get_11rb$(t))?e:null)?255&n:null)?r:0},cs.prototype.loadHalfWord_za3lpa$=function(t){return this.loadByte_za3lpa$(t+1|0)<<8|this.loadByte_za3lpa$(t)},cs.prototype.loadWord_za3lpa$=function(t){return this.loadHalfWord_za3lpa$(t+2|0)<<16|this.loadHalfWord_za3lpa$(t)},cs.prototype.storeByte_vux9f0$=function(t,e){this.memory_0.put_xwzc9p$(t,Q.toByte(e))},cs.prototype.storeHalfWord_vux9f0$=function(t,e){this.storeByte_vux9f0$(t,e),this.storeByte_vux9f0$(t+1|0,e>>8)},cs.prototype.storeWord_vux9f0$=function(t,e){this.storeHalfWord_vux9f0$(t,e),this.storeHalfWord_vux9f0$(t+2|0,e>>16)},cs.$metadata$={kind:Q.Kind.CLASS,simpleName:"Memory",interfaces:[]},ps.prototype.isDone=function(){return this.getPC()>=this.maxpc_0},ps.prototype.run=function(){for(;!this.isDone();)this.step(),this.cycles_0=this.cycles_0+1|0},ps.prototype.step=function(){this.preInstruction_0.clear(),this.postInstruction_0.clear();var t=this.getNextInstruction_0();return Xi().get_4vgyas$(t).impl32.invoke_23eu0x$(t,this),this.history_0.add_mwsh3f$(this.preInstruction_0),T(this.postInstruction_0)},ps.prototype.undo=function(){var t;if(!this.canUndo())return A();var e=this.history_0.pop();for(t=e.iterator();t.hasNext();){t.next().invoke_gdqidk$(this.state_0)}return e},ps.prototype.canUndo=function(){return!this.history_0.isEmpty()},ps.prototype.getReg_za3lpa$=function(t){return this.state_0.getReg_za3lpa$(t)},ps.prototype.setReg_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ys(t,this.state_0.getReg_za3lpa$(t))),this.state_0.setReg_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ys(t,this.state_0.getReg_za3lpa$(t)))},ps.prototype.setRegNoUndo_vux9f0$=function(t,e){this.state_0.setReg_vux9f0$(t,e)},ps.prototype.toggleBreakpointAt_za3lpa$=function(t){return this.breakpoints_0[t]=!this.breakpoints_0[t],this.breakpoints_0[t]},ps.prototype.atBreakpoint=function(){return this.breakpoints_0[this.state_0.pc/4|0]},ps.prototype.getPC=function(){return this.state_0.pc},ps.prototype.setPC_za3lpa$=function(t){this.preInstruction_0.add_11rb$(new $s(this.state_0.pc)),this.state_0.pc=t,this.postInstruction_0.add_11rb$(new $s(this.state_0.pc))},ps.prototype.incrementPC_za3lpa$=function(t){var e;this.preInstruction_0.add_11rb$(new $s(this.state_0.pc)),(e=this.state_0).pc=e.pc+t|0,this.postInstruction_0.add_11rb$(new $s(this.state_0.pc))},ps.prototype.loadByte_za3lpa$=function(t){return this.state_0.mem.loadByte_za3lpa$(t)},ps.prototype.loadHalfWord_za3lpa$=function(t){return this.state_0.mem.loadHalfWord_za3lpa$(t)},ps.prototype.loadWord_za3lpa$=function(t){return this.state_0.mem.loadWord_za3lpa$(t)},ps.prototype.storeByte_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t))),this.state_0.mem.storeByte_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t)))},ps.prototype.storeHalfWord_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t))),this.state_0.mem.storeHalfWord_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t)))},ps.prototype.storeWord_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t))),this.state_0.mem.storeWord_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t)))},ps.prototype.getHeapEnd=function(){return this.state_0.heapEnd},ps.prototype.addHeapSpace_za3lpa$=function(t){var e;this.preInstruction_0.add_11rb$(new _s(this.state_0.heapEnd)),(e=this.state_0).heapEnd=e.heapEnd+t|0,this.postInstruction_0.add_11rb$(new _s(this.state_0.heapEnd))},ps.prototype.getInstructionLength_0=function(t){if(3!=(3&t))return 2;if(31!=(31&t))return 4;if(31==(63&t))return 6;if(63==(127&t))return 8;throw hs("instruction lengths > 8 not supported")},ps.prototype.getNextInstruction_0=function(){var t=this.loadHalfWord_za3lpa$(this.getPC());if(4!==this.getInstructionLength_0(t))throw hs("instruction length != 4 not supported");return new qi(this.loadHalfWord_za3lpa$(this.getPC()+2|0)<<16|t)},ps.$metadata$={kind:Q.Kind.CLASS,simpleName:"Simulator",interfaces:[]},Object.defineProperty(fs.prototype,"message",{get:function(){return this.message_3ylwkb$_0}}),Object.defineProperty(fs.prototype,"cause",{get:function(){return this.cause_3ylwkb$_0}}),fs.$metadata$={kind:Q.Kind.CLASS,simpleName:"SimulatorError",interfaces:[$]},ds.prototype.getReg_za3lpa$=function(t){return this.regs_0[t]},ds.prototype.setReg_vux9f0$=function(t,e){0!==t&&(this.regs_0[t]=e)},ds.$metadata$={kind:Q.Kind.CLASS,simpleName:"SimulatorState",interfaces:[]},_s.prototype.invoke_gdqidk$=function(t){t.heapEnd=this.heapEnd},_s.$metadata$={kind:Q.Kind.CLASS,simpleName:"HeapSpaceDiff",interfaces:[us]},ms.prototype.invoke_gdqidk$=function(t){t.mem.storeWord_vux9f0$(this.addr,this.value)},ms.$metadata$={kind:Q.Kind.CLASS,simpleName:"MemoryDiff",interfaces:[us]},$s.prototype.invoke_gdqidk$=function(t){t.pc=this.pc},$s.$metadata$={kind:Q.Kind.CLASS,simpleName:"PCDiff",interfaces:[us]},ys.prototype.invoke_gdqidk$=function(t){t.setReg_vux9f0$(this.id,this.v)},ys.$metadata$={kind:Q.Kind.CLASS,simpleName:"RegisterDiff",interfaces:[us]};var gs=t.venus||(t.venus={}),vs=gs.assembler||(gs.assembler={});Object.defineProperty(vs,"Assembler",{get:q}),vs.DebugInfo=M,vs.DebugInstruction=R,vs.PassOneOutput=K,vs.AssemblerOutput=B,vs.AssemblerPassOne=D,vs.AssemblerPassTwo=F,vs.AssemblerError_init_pdl1vj$=nt,vs.AssemblerError_init_h1fdkt$=J,vs.AssemblerError=U,Object.defineProperty(vs,"Lexer",{get:G}),vs.LintError=Z,Object.defineProperty(vs,"Linter",{get:function(){return null===Ut&&new Y,Ut}}),Object.defineProperty(Jt,"beqz",{get:Vt}),Object.defineProperty(Jt,"bgez",{get:Gt}),Object.defineProperty(Jt,"bgt",{get:Zt}),Object.defineProperty(Jt,"bgtu",{get:Yt}),Object.defineProperty(Jt,"bgtz",{get:Xt}),Object.defineProperty(Jt,"ble",{get:Qt}),Object.defineProperty(Jt,"bleu",{get:te}),Object.defineProperty(Jt,"blez",{get:ee}),Object.defineProperty(Jt,"bltz",{get:ne}),Object.defineProperty(Jt,"bnez",{get:re}),Object.defineProperty(Jt,"call",{get:ie}),Object.defineProperty(Jt,"jal",{get:oe}),Object.defineProperty(Jt,"jalr",{get:ae}),Object.defineProperty(Jt,"j",{get:se}),Object.defineProperty(Jt,"jr",{get:ue}),Object.defineProperty(Jt,"la",{get:le}),Object.defineProperty(Jt,"lb",{get:ce}),Object.defineProperty(Jt,"lbu",{get:pe}),Object.defineProperty(Jt,"lh",{get:fe}),Object.defineProperty(Jt,"lhu",{get:he}),Object.defineProperty(Jt,"li",{get:de}),Object.defineProperty(Jt,"lw",{get:_e}),Object.defineProperty(Jt,"mv",{get:me}),Object.defineProperty(Jt,"neg",{get:$e}),Object.defineProperty(Jt,"nop",{get:ye}),Object.defineProperty(Jt,"not",{get:ge}),Object.defineProperty(Jt,"ret",{get:ve}),Object.defineProperty(Jt,"sb",{get:be}),Object.defineProperty(Jt,"seqz",{get:xe}),Object.defineProperty(Jt,"sgtz",{get:we}),Object.defineProperty(Jt,"sh",{get:Ce}),Object.defineProperty(Jt,"sltz",{get:Se}),Object.defineProperty(Jt,"snez",{get:ke}),Object.defineProperty(Jt,"sw",{get:Ne}),Object.defineProperty(Jt,"tail",{get:Ie}),Object.defineProperty(Jt,"seq",{get:Ee}),Object.defineProperty(Jt,"sge",{get:Oe}),Object.defineProperty(Jt,"sgeu",{get:ze}),Object.defineProperty(Jt,"sgt",{get:Le}),Object.defineProperty(Jt,"sgtu",{get:Te}),Object.defineProperty(Jt,"sle",{get:Ae}),Object.defineProperty(Jt,"sleu",{get:je}),Object.defineProperty(Jt,"sne",{get:Pe}),vs.PseudoDispatcher=Jt,vs.PseudoWriter=Me;var bs=vs.pseudos||(vs.pseudos={});Object.defineProperty(bs,"BEQZ",{get:Be}),Object.defineProperty(bs,"BGEZ",{get:He}),Object.defineProperty(bs,"BGT",{get:We}),Object.defineProperty(bs,"BGTU",{get:Ze}),Object.defineProperty(bs,"BGTZ",{get:Qe}),Object.defineProperty(bs,"BLE",{get:nn}),Object.defineProperty(bs,"BLEU",{get:an}),Object.defineProperty(bs,"BLEZ",{get:ln}),Object.defineProperty(bs,"BLTZ",{get:fn}),Object.defineProperty(bs,"BNEZ",{get:_n}),Object.defineProperty(bs,"CALL",{get:yn}),Object.defineProperty(bs,"J",{get:bn}),Object.defineProperty(bs,"JAL",{get:Cn}),Object.defineProperty(bs,"JALR",{get:Nn}),Object.defineProperty(bs,"JR",{get:On}),Object.defineProperty(bs,"LA",{get:Tn}),Object.defineProperty(bs,"LI",{get:Pn}),Object.defineProperty(bs,"Load",{get:Rn}),Object.defineProperty(bs,"MV",{get:Dn}),Object.defineProperty(bs,"NEG",{get:Un}),Object.defineProperty(bs,"NOP",{get:Vn}),Object.defineProperty(bs,"NOT",{get:Yn}),Object.defineProperty(bs,"RET",{get:tr}),Object.defineProperty(bs,"SEQ",{get:rr}),Object.defineProperty(bs,"SEQZ",{get:ar}),Object.defineProperty(bs,"SGE",{get:lr}),Object.defineProperty(bs,"SGT",{get:fr}),Object.defineProperty(bs,"SGTZ",{get:_r}),Object.defineProperty(bs,"SLE",{get:yr}),Object.defineProperty(bs,"SLTZ",{get:br}),Object.defineProperty(bs,"SNE",{get:Cr}),Object.defineProperty(bs,"SNEZ",{get:Nr}),Object.defineProperty(bs,"Store",{get:Or}),Object.defineProperty(bs,"TAIL",{get:Tr}),bs.checkArgsLength_udy8vv$=Ar,bs.checkStrictMode=jr;var xs=gs.glue||(gs.glue={});Object.defineProperty(xs,"Driver",{get:Mr}),Object.defineProperty(xs,"Renderer",{get:Br});var ws=gs.linker||(gs.linker={});ws.ProgramDebugInfo=Dr,ws.LinkedProgram=Fr,ws.RelocationInfo=Hr,ws.DataRelocationInfo=Ur,Object.defineProperty(ws,"Linker",{get:di}),Object.defineProperty(_i,"ENTIRE",{get:$i}),Object.defineProperty(_i,"OPCODE",{get:yi}),Object.defineProperty(_i,"RD",{get:gi}),Object.defineProperty(_i,"FUNCT3",{get:vi}),Object.defineProperty(_i,"RS1",{get:bi}),Object.defineProperty(_i,"RS2",{get:xi}),Object.defineProperty(_i,"FUNCT7",{get:wi}),Object.defineProperty(_i,"IMM_11_0",{get:Ci}),Object.defineProperty(_i,"IMM_4_0",{get:Si}),Object.defineProperty(_i,"IMM_11_5",{get:ki}),Object.defineProperty(_i,"IMM_11_B",{get:Ni}),Object.defineProperty(_i,"IMM_4_1",{get:Ii}),Object.defineProperty(_i,"IMM_10_5",{get:Ei}),Object.defineProperty(_i,"IMM_12",{get:Oi}),Object.defineProperty(_i,"IMM_31_12",{get:zi}),Object.defineProperty(_i,"IMM_19_12",{get:Li}),Object.defineProperty(_i,"IMM_11_J",{get:Ti}),Object.defineProperty(_i,"IMM_10_1",{get:Ai}),Object.defineProperty(_i,"IMM_20",{get:ji}),Object.defineProperty(_i,"SHAMT",{get:Pi});var Cs=gs.riscv||(gs.riscv={});Cs.InstructionField=_i,Cs.MachineCode=qi,Object.defineProperty(Cs,"MemorySegments",{get:Ki}),Cs.Program=Bi,Object.defineProperty(Cs,"Settings",{get:Hi});var Ss=Cs.insts||(Cs.insts={}),ks=Ss.dsl||(Ss.dsl={});ks.BTypeInstruction=Ui,ks.ITypeInstruction=Wi,Object.defineProperty(Gi,"Companion",{get:Xi}),ks.Instruction=Gi,ks.LoadTypeInstruction=Qi,ks.RTypeInstruction=ro,ks.STypeInstruction=oo,ks.ShiftImmediateInstruction=so,ks.UTypeInstruction=lo;var Ns=ks.disasms||(ks.disasms={});Object.defineProperty(Ns,"BTypeDisassembler",{get:ho}),Object.defineProperty(Ns,"ITypeDisassembler",{get:$o}),Ns.InstructionDisassembler=yo,Object.defineProperty(Ns,"LoadDisassembler",{get:bo}),Object.defineProperty(Ns,"RTypeDisassembler",{get:Co}),Ns.RawDisassembler=So,Object.defineProperty(Ns,"STypeDisassembler",{get:Io}),Object.defineProperty(Ns,"ShiftImmediateDisassembler",{get:zo}),Object.defineProperty(Ns,"UTypeDisassembler",{get:Ao});var Is=ks.formats||(ks.formats={});Is.BTypeFormat=jo,Is.ITypeFormat=Po,Is.FieldEqual=qo,Is.InstructionFormat=Mo,Is.OpcodeFormat=Ro,Is.OpcodeFunct3Format=Ko,Is.RTypeFormat=Bo,Is.STypeFormat=Do,Is.UTypeFormat=Fo;var Es=ks.impls||(ks.impls={});Es.BTypeImplementation32=Ho,Es.constructBranchImmediate_4vgyas$=Uo,Es.ITypeImplementation32=Jo,Es.InstructionImplementation=Wo,Es.LoadImplementation32=Vo,Object.defineProperty(Es,"NoImplementation",{get:Yo}),Es.RTypeImplementation32=Xo,Es.RawImplementation=Qo,Es.STypeImplementation32=ta,Es.constructStoreImmediate_4vgyas$=ea,Es.ShiftImmediateImplementation32=na,Es.signExtend_6xvm5r$=ra,Es.setBitslice_r9yya9$=ia;var Os=ks.parsers||(ks.parsers={});Object.defineProperty(Os,"BTypeParser",{get:sa}),Object.defineProperty(Os,"DoNothingParser",{get:ca}),Object.defineProperty(Os,"ITypeParser",{get:ha}),Os.InstructionParser=da,Object.defineProperty(Os,"LoadParser",{get:$a}),Object.defineProperty(Os,"RTypeParser",{get:va}),Os.RawParser=ba,Object.defineProperty(Os,"STypeParser",{get:Ca}),Object.defineProperty(Os,"ShiftImmediateParser",{get:Na}),Object.defineProperty(Os,"UTypeParser",{get:Oa}),Os.checkArgsLength_6xvm5r$=za,Os.regNameToNumber_y4putb$=La;var zs=ks.relocators||(ks.relocators={});Object.defineProperty(zs,"NoRelocator64",{get:Ha}),zs.Relocator32=ts,zs.Relocator64=es,zs.Relocator=ns,ks.compareUnsigned_6xvm5r$=rs,ks.compareUnsignedLong_cfj5zr$=is,Cs.userStringToInt_61zpoe$=as,Cs.isNumeral_61zpoe$=ss;var Ls=gs.simulator||(gs.simulator={});Ls.Diff=us,Ls.History=ls,Ls.Memory=cs,Ls.Simulator=ps,Ls.SimulatorError_init_pdl1vj$=hs,Ls.SimulatorError=fs,Ls.SimulatorState=ds;var Ts=Ls.diffs||(Ls.diffs={});return Ts.HeapSpaceDiff=_s,Ts.MemoryDiff=ms,Ts.PCDiff=$s,Ts.RegisterDiff=ys,new ro("add",51,0,0,function(t,e){return t+e|0},function(t,e){return t.add(e)}),new Wi("addi",19,0,function(t,e){return t+e|0},function(t,e){return t.add(e)}),new ro("and",51,7,0,function(t,e){return t&e},function(t,e){return t.and(e)}),new Wi("andi",19,7,function(t,e){return t&e},function(t,e){return t.and(e)}),new lo("auipc",23,function(t,e){var n=t.get_12yce4$(zi())<<12;e.setReg_vux9f0$(t.get_12yce4$(gi()),e.getPC()+n|0),e.incrementPC_za3lpa$(t.length)},Q.getCallableRef("invoke",function(t,e,n){return t.invoke_23eu0x$(e,n)}.bind(null,Yo()))),new Ui("beq",99,0,function(t,e){return t===e},function(t,e){return Q.equals(t,e)}),new Ui("bge",99,5,function(t,e){return e<=t},function(t,e){return 0<=t.compareTo_11rb$(e)}),new Ui("bgeu",99,7,function(t,e){return 0<=rs(t,e)},function(t,e){return 0<=is(t,e)}),new Ui("blt",99,4,function(t,e){return t<e},function(t,e){return t.compareTo_11rb$(e)<0}),new Ui("bltu",99,6,function(t,e){return rs(t,e)<0},function(t,e){return is(t,e)<0}),new Ui("bne",99,1,function(t,e){return t!==e},function(t,e){return!Q.equals(t,e)}),new ro("div",51,4,1,function(t,e){return 0===e?-1:t===n.MIN_VALUE&&-1===e?t:t/e|0}),new ro("divu",51,5,1,function(t,e){var n=Q.Long.fromInt(t).shiftLeft(32).shiftRightUnsigned(32),r=Q.Long.fromInt(e).shiftLeft(32).shiftRightUnsigned(32);return Q.equals(r,Q.Long.ZERO)?t:n.div(r).toInt()}),Aa=new ns((null===ja&&new Ta,ja),Ha()),qa=new ns((null===Ma&&new Pa,Ma),Ha()),Ka=new ns((null===Ba&&new Ra,Ba),Ha()),Ja=new ns((null===Wa&&new Ua,Wa),Ha()),Ga=new ns((null===Za&&new Va,Za),Ha()),Xa=new ns((null===Qa&&new Ya,Qa),Ha()),new Gi("ecall",new Mo(4,c(new qo($i(),115))),ca(),new Qo(function(t,e){var n,r,i=e.getReg_za3lpa$(10);1===i?(r=e.getReg_za3lpa$(11),Br().printConsole_kcmwxo$(r)):4===i?function(t){var e=t.getReg_za3lpa$(11),n=t.loadByte_za3lpa$(e);for(e=e+1|0;0!==n;)Br().printConsole_kcmwxo$(Q.toBoxedChar(Q.toChar(n))),n=t.loadByte_za3lpa$(e),e=e+1|0}(e):9===i?(o=e,a=o.getReg_za3lpa$(11),a<0||(o.setReg_vux9f0$(10,o.getHeapEnd()),o.addHeapSpace_za3lpa$(a))):10===i?e.setPC_za3lpa$(Ki().STATIC_BEGIN):11===i?(n=e.getReg_za3lpa$(11),Br().printConsole_kcmwxo$(Q.toBoxedChar(Q.toChar(n)))):17===i?function(t){t.setPC_za3lpa$(Ki().STATIC_BEGIN);var e=t.getReg_za3lpa$(11);Br().printConsole_kcmwxo$("Exited with error code "+e+"\n")}(e):Br().printConsole_kcmwxo$("Invalid ecall "+i),e.incrementPC_za3lpa$(t.length);var o,a}),Yo(),new So(function(t){return"ecall"})),new Gi("jal",new Ro(111),new ba(function(t,e,n){za(n.size,2),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),t.addRelocation_f5izfr$(Ka,n.get_za3lpa$(1),0)}),new Qo(function(t,e){var n=t.get_12yce4$(gi()),r=os(t);e.setReg_vux9f0$(n,e.getPC()+t.length|0),e.incrementPC_za3lpa$(r)}),Yo(),new So(function(t){return"jal x"+t.get_12yce4$(gi())+" "+os(t)})),new Gi("jalr",new Po(103,0),new ba(function(t,n,r){try{ha().invoke_5czv3h$(t,n,r)}catch(e){if(!Q.isType(e,U))throw e;try{$a().invoke_5czv3h$(t,n,r)}catch(t){throw Q.isType(t,U)?e:t}}}),new Qo(function(t,e){var n=t.get_12yce4$(gi()),r=t.get_12yce4$(bi()),i=ra(t.get_12yce4$(Ci()),12),o=e.getReg_za3lpa$(r);e.setReg_vux9f0$(n,e.getPC()+t.length|0),e.setPC_za3lpa$(o+i>>1<<1)}),Yo(),new So(function(t){return"jalr x"+t.get_12yce4$(gi())+" x"+t.get_12yce4$(bi())+" "+ra(t.get_12yce4$(Ci()),12)})),new Qi("lb",3,0,Q.getCallableRef("loadByte",function(t,e){return t.loadByte_za3lpa$(e)}),function(t){return ra(t,8)}),new Qi("lbu",3,4,Q.getCallableRef("loadByte",function(t,e){return t.loadByte_za3lpa$(e)})),new Qi("lh",3,1,Q.getCallableRef("loadHalfWord",function(t,e){return t.loadHalfWord_za3lpa$(e)}),function(t){return ra(t,16)}),new Qi("lhu",3,5,Q.getCallableRef("loadHalfWord",function(t,e){return t.loadHalfWord_za3lpa$(e)})),new lo("lui",55,function(t,e){var n=t.get_12yce4$(zi())<<12;e.setReg_vux9f0$(t.get_12yce4$(gi()),n),e.incrementPC_za3lpa$(t.length)}),new Qi("lw",3,2,Q.getCallableRef("loadWord",function(t,e){return t.loadWord_za3lpa$(e)})),new ro("mul",51,0,1,function(t,e){return Q.imul(t,e)},function(t,e){return t.multiply(e)}),new ro("mulh",51,1,1,function(t,e){var n=Q.Long.fromInt(t),r=Q.Long.fromInt(e);return n.multiply(r).shiftRightUnsigned(32).toInt()}),new ro("mulhsu",51,2,1,function(t,e){var n=Q.Long.fromInt(t),r=Q.Long.fromInt(e).shiftLeft(32).shiftRightUnsigned(32);return n.multiply(r).shiftRightUnsigned(32).toInt()}),new ro("mulhu",51,3,1,function(t,e){var n=Q.Long.fromInt(t).shiftLeft(32).shiftRightUnsigned(32),r=Q.Long.fromInt(e).shiftLeft(32).shiftRightUnsigned(32);return n.multiply(r).shiftRightUnsigned(32).toInt()}),new ro("or",51,6,0,function(t,e){return t|e},function(t,e){return t.or(e)}),new Wi("ori",19,6,function(t,e){return t|e},function(t,e){return t.or(e)}),new ro("rem",51,6,1,function(t,e){return 0===e?t:t===n.MIN_VALUE&&-1===e?0:t%e}),new ro("remu",51,7,1,function(t,e){var n=Q.Long.fromInt(t).shiftLeft(32).shiftRightUnsigned(32),r=Q.Long.fromInt(e).shiftLeft(32).shiftRightUnsigned(32);return 0===e?t:n.modulo(r).toInt()}),new oo("sb",35,0,Q.getCallableRef("storeByte",function(t,e,n){return t.storeByte_vux9f0$(e,n)})),new oo("sh",35,1,Q.getCallableRef("storeHalfWord",function(t,e,n){return t.storeHalfWord_vux9f0$(e,n)})),new ro("sll",51,1,0,function(t,e){var n=31&e;return 0===n?t:t<<n},function(t,e){var n=63&e.toInt();return 0===n?t:t.shiftLeft(n)}),new so("slli",1,0,function(t,e){return 0===e?t:t<<e}),new ro("slt",51,2,0,function(t,e){return t<e?1:0},function(t,e){return t.compareTo_11rb$(e)<0?Q.Long.ONE:Q.Long.ZERO}),new Wi("slti",19,2,function(t,e){return t<e?1:0},function(t,e){return t.compareTo_11rb$(e)<0?Q.Long.ONE:Q.Long.ZERO}),new Wi("sltiu",19,3,function(t,e){return rs(t,e)<0?1:0},function(t,e){return is(t,e)<0?Q.Long.ONE:Q.Long.ZERO}),new ro("sltu",51,3,0,function(t,e){return rs(t,e)<0?1:0},function(t,e){return is(t,e)<0?Q.Long.ONE:Q.Long.ZERO}),new ro("sra",51,5,32,function(t,e){var n=31&e;return 0===n?t:t>>n},function(t,e){var n=63&e.toInt();return 0===n?t:t.shiftRight(n)}),new so("srai",5,32,function(t,e){return 0===e?t:t>>e}),new ro("srl",51,5,0,function(t,e){var n=31&e;return 0===n?t:t>>>n},function(t,e){var n=63&e.toInt();return 0===n?t:t.shiftRightUnsigned(n)}),new so("srli",5,0,function(t,e){return 0===e?t:t>>>e}),new ro("sub",51,0,32,function(t,e){return t-e|0},function(t,e){return t.subtract(e)}),new oo("sw",35,2,Q.getCallableRef("storeWord",function(t,e,n){return t.storeWord_vux9f0$(e,n)})),new ro("xor",51,4,0,function(t,e){return t^e},function(t,e){return t.xor(e)}),new Wi("xori",19,4,function(t,e){return t^e},function(t,e){return t.xor(e)}),t}(void 0===venus_main?{}:venus_main,kotlin); |