/*!@license
* Infragistics.Web.ClientUI infragistics.excel_functions.js 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*     infragistics.ext_core.js
*     infragistics.ext_collections.js
*     infragistics.ext_collectionsExtended.js
*     infragistics.ext_io.js
*     infragistics.ext_text.js
*     infragistics.documents.core_core.js
*     infragistics.excel_core.js
*     infragistics.ext_ui.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.ext_collectionsExtended","./infragistics.ext_io","./infragistics.ext_text","./infragistics.documents.core_core","./infragistics.excel_core","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.excel=$.ig.excel||{};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$af=$$t;var $$0=$.ig.globalDefs.$$0;var $$4=$.ig.globalDefs.$$4;var $$5=$.ig.globalDefs.$$5;var $$7=$.ig.globalDefs.$$7;var $$8=$.ig.globalDefs.$$8;var $$1=$.ig.globalDefs.$$1;var $$v=$.ig.globalDefs.$$v;var $$a4=$.ig.globalDefs.$$a4;var $$6=$.ig.globalDefs.$$6;var $$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["SumElementCallback1:fr","SumElementCallback2:fs"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compare,$x=$.ig.util.replace,$y=$.ig.util.stringFormat,$z=$.ig.util.stringFormat1,$0=$.ig.util.stringFormat2,$1=$.ig.util.stringCompare1,$2=$.ig.util.stringCompare2,$3=$.ig.util.stringCompare3,$4=$.ig.util.compareSimple,$5=$.ig.util.tryParseNumber,$6=$.ig.util.tryParseNumber1,$7=$.ig.util.numberToString,$8=$.ig.util.numberToString1,$9=$.ig.util.parseNumber,$aa=$.ig.util.parseBool,$ab=$.ig.util.tryParseBool,$ac=$.ig.util.isDigit,$ad=$.ig.util.isDigit1,$ae=$.ig.util.isLetter,$af=$.ig.util.isNumber,$ag=$.ig.util.isLetterOrDigit,$ah=$.ig.util.isLower,$ai=$.ig.util.toLowerCase,$aj=$.ig.util.toUpperCase,$ak=$.ig.util.equalsSimple,$al=$.ig.util.tryParseInt32_1,$am=$.ig.util.tryParseInt32_2,$an=$.ig.util.intToString1,$ao=$.ig.util.parseInt32_1,$ap=$.ig.util.parseInt32_2;$d("UltraCalcConditionalFunctionBase_CriteriaEvaluator_Operator:fy",false,false,{Equals:0,NotEquals:1,GreaterThan:2,GreaterThanOrEqual:3,LessThan:4,LessThanOrEqual:5});$d("UltraCalcFunctionConvert_MeasurementUnitCategory:ep",false,false,{Unknown:0,WeightAndMass:1,Distance:2,Time:3,Pressure:4,Force:5,Energy:6,Power:7,Magnetism:8,Temperature:9,LiquidMeasure:10});$c("ErfUtils:a","Object",{init:function(){$.ig.$op.init.call(this)},bb:function(a){var b=new ArrayBuffer(8);var c=new Float64Array(b);var d=new Int32Array(b);c[0]=a;return d[1]},a8:function(a){var b=new ArrayBuffer(8);var c=new Float64Array(b);var d=new Int32Array(b);c[0]=a;d[0]=0;return c[0]},c:function(a){if($.ig.util.isNaN(a)){return NaN}if($.ig.util.isPositiveInfinity(a)){return 1}if($.ig.util.isNegativeInfinity(a)){return-1}var b,c;var d,e,f,g,h,i,j,k;b=$$t.$a.bb(a);c=b&2147483647;if(c<1072365568){if(c<1043333120){if(c<8388608){return(8*a+1.0270333367641007*a)/8}return a+.1283791670955126*a}j=a*a;k=.12837916709551256+j*(-.3250421072470015+j*(-.02848174957559851+j*(-.005770270296489442+j*-23763016656650163e-21)));h=1+j*(.39791722395915535+j*(.0650222499887673+j*(.005081306281875766+j*(.00013249473800432164+j*-3960228278775368e-21))));i=k/h;return a+a*i}if(c<1072955392){h=Math.abs(a)-1;f=-.0023621185607526594+h*(.41485611868374833+h*(-.3722078760357013+h*(.31834661990116175+h*(-.11089469428239668+h*(.035478304325618236+h*-.002166375594868791)))));g=1+h*(.10642088040084423+h*(.540397917702171+h*(.07182865441419627+h*(.12617121980876164+h*(.01363708391202905+h*.011984499846799107)))));if(b>=0){return.8450629115104675+f/g}else{return-.8450629115104675-f/g}}if(c>=1075314688){if(b>=0){return 1-1e-300}else{return 1e-300-1}}a=Math.abs(a);h=1/(a*a);if(c<1074191214){d=-.009864944034847148+h*(-.6938585727071818+h*(-10.558626225323291+h*(-62.375332450326006+h*(-162.39666946257347+h*(-184.60509290671104+h*(-81.2874355063066+h*-9.814329344169145))))));e=1+h*(19.651271667439257+h*(137.65775414351904+h*(434.56587747522923+h*(645.3872717332679+h*(429.00814002756783+h*(108.63500554177944+h*(6.570249770319282+h*-.0604244152148581)))))))}else{d=-.0098649429247001+h*(-.799283237680523+h*(-17.757954917754752+h*(-160.63638485582192+h*(-637.5664433683896+h*(-1025.0951316110772+h*-483.5191916086514)))));e=1+h*(30.33806074348246+h*(325.7925129965739+h*(1536.729586084437+h*(3199.8582195085955+h*(2553.0504064331644+h*(474.52854120695537+h*-22.44095244658582))))))}j=$$t.$a.a8(a);k=Math.exp(-j*j-.5625)*Math.exp((j-a)*(j+a)+d/e);if(b>=0){return 1-k/a}else{return k/a-1}},d:function(a){if($.ig.util.isNaN(a)){return NaN}if($.ig.util.isPositiveInfinity(a)){return 0}if($.ig.util.isNegativeInfinity(a)){return 2}var b,c;var d,e,f,g,h,i,j,k;b=$$t.$a.bb(a);c=b&2147483647;if(c<1072365568){if(c<1013972992){return 1-a}j=a*a;k=.12837916709551256+j*(-.3250421072470015+j*(-.02848174957559851+j*(-.005770270296489442+j*-23763016656650163e-21)));h=1+j*(.39791722395915535+j*(.0650222499887673+j*(.005081306281875766+j*(.00013249473800432164+j*-3960228278775368e-21))));i=k/h;if(b<1070596096){return 1-(a+a*i)}else{k=a*i;k+=a-.5;return.5-k}}if(c<1072955392){h=Math.abs(a)-1;f=-.0023621185607526594+h*(.41485611868374833+h*(-.3722078760357013+h*(.31834661990116175+h*(-.11089469428239668+h*(.035478304325618236+h*-.002166375594868791)))));g=1+h*(.10642088040084423+h*(.540397917702171+h*(.07182865441419627+h*(.12617121980876164+h*(.01363708391202905+h*.011984499846799107)))));if(b>=0){j=1-.8450629115104675;return j-f/g}else{j=.8450629115104675+f/g;return 1+j}}if(c<1077673984){a=Math.abs(a);h=1/(a*a);if(c<1074191213){d=-.009864944034847148+h*(-.6938585727071818+h*(-10.558626225323291+h*(-62.375332450326006+h*(-162.39666946257347+h*(-184.60509290671104+h*(-81.2874355063066+h*-9.814329344169145))))));e=1+h*(19.651271667439257+h*(137.65775414351904+h*(434.56587747522923+h*(645.3872717332679+h*(429.00814002756783+h*(108.63500554177944+h*(6.570249770319282+h*-.0604244152148581)))))))}else{if(b<0&&c>=1075314688){return 2-1e-300}d=-.0098649429247001+h*(-.799283237680523+h*(-17.757954917754752+h*(-160.63638485582192+h*(-637.5664433683896+h*(-1025.0951316110772+h*-483.5191916086514)))));e=1+h*(30.33806074348246+h*(325.7925129965739+h*(1536.729586084437+h*(3199.8582195085955+h*(2553.0504064331644+h*(474.52854120695537+h*-22.44095244658582))))))}j=$$t.$a.a8(a);k=Math.exp(-j*j-.5625)*Math.exp((j-a)*(j+a)+d/e);if(b>0){return k/a}else{return 2-k/a}}else{if(b>0){return 1e-300*1e-300}else{return 2-1e-300}}},$type:new $.ig.Type("ErfUtils",$.ig.$ot)},true);$c("UltraCalcFunctionLoader:b","Object",{init:function(){$.ig.$op.init.call(this)},staticInit:function(){$$t.$b.b()},b:function(){$$a4.$ox.__f=function(a){a._add(new $$t.e);a._add(new $$t.d);a._add(new $$t.f);a._add(new $$t.g);a._add(new $$t.h);a._add(new $$t.i);a._add(new $$t.j);a._add(new $$t.k);a._add(new $$t.l);a._add(new $$t.n);a._add(new $$t.o);a._add(new $$t.p);a._add(new $$t.r);a._add(new $$t.s);a._add(new $$t.q);a._add(new $$t.u);a._add(new $$t.t);a._add(new $$t.bp);a._add(new $$t.bq);a._add(new $$t.br);a._add(new $$t.w);a._add(new $$t.v);a._add(new $$t.x);a._add(new $$t.y);a._add(new $$t.z);a._add(new $$t.ab);a._add(new $$t.aa);a._add(new $$t.ac);a._add(new $$t.ad);a._add(new $$t.ae);a._add(new $$t.af);a._add(new $$t.ag);a._add(new $$t.ah);a._add(new $$t.ai);a._add(new $$t.aj);a._add(new $$t.ak);a._add(new $$t.al);a._add(new $$t.am);a._add(new $$t.ao);a._add(new $$t.an);a._add(new $$t.ap);a._add(new $$t.aq);a._add(new $$t.ar);a._add(new $$t.as);a._add(new $$t.at);a._add(new $$t.m);a._add(new $$t.au);a._add(new $$t.av);a._add(new $$t.aw);a._add(new $$t.ax);a._add(new $$t.c);a._add(new $$t.ay);a._add(new $$t.az);a._add(new $$t.a0);a._add(new $$t.a1);a._add(new $$t.a2);a._add(new $$t.a4);a._add(new $$t.a3);a._add(new $$t.a5);a._add(new $$t.a6);a._add(new $$t.a7);a._add(new $$t.a8);a._add(new $$t.a9);a._add(new $$t.ba);a._add(new $$t.bb);a._add(new $$t.bc);a._add(new $$t.be);a._add(new $$t.bd);a._add(new $$t.bf);a._add(new $$t.bg);a._add(new $$t.bh);a._add(new $$t.bi);a._add(new $$t.bj);a._add(new $$t.bk);a._add(new $$t.bl);a._add(new $$t.bo);a._add(new $$t.bm);a._add(new $$t.bn);a._add(new $$t.bu);a._add(new $$t.bs);a._add(new $$t.bt);a._add(new $$t.bv);a._add(new $$t.bw);a._add(new $$t.bx);a._add(new $$t.by);a._add(new $$t.bz);a._add(new $$t.b0);a._add(new $$t.b1);a._add(new $$t.b2);a._add(new $$t.b3);a._add(new $$t.b5);a._add(new $$t.b4);a._add(new $$t.b6);a._add(new $$t.b7);a._add(new $$t.b9);a._add(new $$t.b8);a._add(new $$t.cb);a._add(new $$t.ca);a._add(new $$t.cc);a._add(new $$t.cd);a._add(new $$t.ce);a._add(new $$t.cf);a._add(new $$t.cg);a._add(new $$t.ch);a._add(new $$t.ci);a._add(new $$t.cj);a._add(new $$t.ck);a._add(new $$t.cl);a._add(new $$t.cm);a._add(new $$t.cn);a._add(new $$t.co);a._add(new $$t.cp);a._add(new $$t.cq);a._add(new $$t.cs);a._add(new $$t.ct);a._add(new $$t.cu);a._add(new $$t.cw);a._add(new $$t.cx);a._add(new $$t.cy);a._add(new $$t.c0);a._add(new $$t.c1);a._add(new $$t.c2);a._add(new $$t.c3);a._add(new $$t.c4);a._add(new $$t.c5);a._add(new $$t.c6);a._add(new $$t.c7);a._add(new $$t.c8);a._add(new $$t.c9);a._add(new $$t.da);a._add(new $$t.db);a._add(new $$t.di);a._add(new $$t.dc);a._add(new $$t.dd);a._add(new $$t.de);a._add(new $$t.df);a._add(new $$t.dk);a._add(new $$t.dl);a._add(new $$t.dj);a._add(new $$t.dg);a._add(new $$t.dh);a._add(new $$t.dm);a._add(new $$t.dn);a._add(new $$t.dp);a._add(new $$t.dq);a._add(new $$t.dr);a._add(new $$t.ds);a._add(new $$t.dt);a._add(new $$t.du);a._add(new $$t.dv);a._add(new $$t.dw);a._add(new $$t.dx);a._add(new $$t.dy);a._add(new $$t.d2);a._add(new $$t.d3);a._add(new $$t.d4);a._add(new $$t.d5);a._add(new $$t.d6);a._add(new $$t.d7);a._add(new $$t.d8);a._add(new $$t.d9);a._add(new $$t.ea);a._add(new $$t.eb);a._add(new $$t.ec);a._add(new $$t.ed);a._add(new $$t.ee);a._add(new $$t.ef);a._add(new $$t.eg);a._add(new $$t.eh);a._add(new $$t.ei);a._add(new $$t.ej);a._add(new $$t.ek);a._add(new $$t.el);a._add(new $$t.em);a._add(new $$t.en);a._add(new $$t.dz);a._add(new $$t.d0);a._add(new $$t.d1);a._add(new $$t.fu);a._add(new $$t.fw);a._add(new $$t.fv);a._add(new $$t.et);a._add(new $$t.eu);a._add(new $$t.ev);a._add(new $$t.ew);a._add(new $$t.ex);a._add(new $$t.ey);a._add(new $$t.ez);a._add(new $$t.e0);a._add(new $$t.e1);a._add(new $$t.e2);a._add(new $$t.e3);a._add(new $$t.e4);a._add(new $$t.e5);a._add(new $$t.e6);a._add(new $$t.e7);a._add(new $$t.e9);a._add(new $$t.fa);a._add(new $$t.fb);a._add(new $$t.fc);a._add(new $$t.fd);a._add(new $$t.fe);a._add(new $$t.ff);a._add(new $$t.fg);a._add(new $$t.fh);a._add(new $$t.fi);a._add(new $$t.fj);a._add(new $$t.fk);a._add(new $$t.fl);a._add(new $$t.fm);a._add(new $$t.fn);a._add(new $$t.fo);a._add(new $$t.fp);a._add(new $$t.ft);a._add(new $$t.fx);$$t.$b.a(a)}},a:function(a){a._add(new $$t.f2);a._add(new $$t.f1);a._add(new $$t.f3);a._add(new $$t.f4);a._add(new $$t.f5);a._add(new $$t.f6);a._add(new $$t.f7);a._add(new $$t.f8);a._add(new $$t.f9);a._add(new $$t.ga);a._add(new $$t.gb);a._add(new $$t.gc);a._add(new $$t.gd);a._add(new $$t.h4);a._add(new $$t.ge);a._add(new $$t.gf);a._add(new $$t.gg);a._add(new $$t.gi);a._add(new $$t.gh);a._add(new $$t.gj);a._add(new $$t.gk);a._add(new $$t.gl);a._add(new $$t.gn);a._add(new $$t.go);a._add(new $$t.gp);a._add(new $$t.gr);a._add(new $$t.gs);a._add(new $$t.gt);a._add(new $$t.gu);a._add(new $$t.gv);a._add(new $$t.gx);a._add(new $$t.gy);a._add(new $$t.gz);a._add(new $$t.g0);a._add(new $$t.g1);a._add(new $$t.g3);a._add(new $$t.g4);a._add(new $$t.g5);a._add(new $$t.g6);a._add(new $$t.g7);a._add(new $$t.g9);a._add(new $$t.ha);a._add(new $$t.hb);a._add(new $$t.hc);a._add(new $$t.hd);a._add(new $$t.he);a._add(new $$t.hf);a._add(new $$t.hg);a._add(new $$t.hh);a._add(new $$t.hi);a._add(new $$t.hj);a._add(new $$t.hk);a._add(new $$t.hl);a._add(new $$t.hm);a._add(new $$t.hn);a._add(new $$t.ho);a._add(new $$t.hq);a._add(new $$t.hr);a._add(new $$t.hs);a._add(new $$t.ht);a._add(new $$t.hu);a._add(new $$t.hv);a._add(new $$t.hw);a._add(new $$t.hx);a._add(new $$t.hy);a._add(new $$t.hz);a._add(new $$t.h0);a._add(new $$t.h1);a._add(new $$t.h2);a._add(new $$t.h3);a._add(new $$t.h5);a._add(new $$t.h6);a._add(new $$t.h7);a._add(new $$t.h8);a._add(new $$t.h9);a._add(new $$t.ia);a._add(new $$t.ib);a._add(new $$t.ic);a._add(new $$t.id);a._add(new $$t.ie);a._add(new $$t.ig);a._add(new $$t.ih);a._add(new $$t.ii);a._add(new $$t.ij);a._add(new $$t.ik);a._add(new $$t.il);a._add(new $$t.im);a._add(new $$t.io);a._add(new $$t.ip);a._add(new $$t.iq);a._add(new $$t.ir);a._add(new $$t.iy);a._add(new $$t.ix);a._add(new $$t.is);a._add(new $$t.iu);a._add(new $$t.iz);a._add(new $$t.i0);a._add(new $$t.i3);a._add(new $$t.iv);a._add(new $$t.iw);a._add(new $$t.i1);a._add(new $$t.i2);a._add(new $$t.it)},$type:new $.ig.Type("UltraCalcFunctionLoader",$.ig.$ot)},true);$c("UltraCalcFunctionConcatenate:c","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new $$6.aj(0);var d=new $$4.x($$a4.$ny.$type,0);for(var e=0;e<b;e++){d.add(a.pop())}for(var f=d.count();f>0;f--){var g=d.__inner[f-1];if(!true&&g.isReference()&&g.toReference().isEnumerable()){var h=g.toReference().references();var j=h.getEnumerator();while(j.moveNext()){var i=j.current();if(i.value().isError()){return new $$a4.ny(i.value().toErrorValue())}c.l(i.value().toString())}}else{if(g.isError()){return new $$a4.ny(g.toErrorValue())}c.l(g.toString())}}return new $$a4.ny(c.toString())},canParameterBeEnumerable:function(a){return true},name:function(){return"concatenate"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionConcatenate",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAverage:d","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,$$t.$d._aj)},canParameterBeEnumerable:function(a){return true},_aj:function(a){return a.count()==0?new $$a4.ny(new $$a4.nx(2)):new $$a4.ny($$a4.$n8.q(a))},name:function(){return"average"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionAverage",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSum:e","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;return $$a4.$n8.f(a,b,$$a4.$n8.b(a,false,false,false),function(d){c+=d})||new $$a4.ny(c)},canParameterBeEnumerable:function(a){return true},name:function(){return"sum"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionSum",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIf:f","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==3){c=a.pop()}var d=a.pop();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(e._toBoolean1()==true){return d}else{if(c==null){return new $$a4.ny(false)}return c}},name:function(){return"if"},minArgs:function(){return 2},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},_s:function(){return true},_v:function(a){if(a==1||a==2){return false}return true},$type:new $.ig.Type("UltraCalcFunctionIf",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAbs:g","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(Math.abs(d))},name:function(){return"abs"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionAbs",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMod:h","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e,f;if(!function(){var g=c._toDouble1(e);e=g.p0;return g.ret}()||!function(){var g=d._toDouble1(f);f=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(e==0){return new $$a4.ny(new $$a4.nx(2))}else{var g=f%e;var h=Math.sign(g);if(h!=0&&h!=Math.sign(e)){g*=-1}return new $$a4.ny(g)}},name:function(){return"mod"},minArgs:function(){return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionMod",$$a4.$ob.$type)},true);$c("UltraCalcFunctionQuotient:i","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e,f;if(!function(){var g=c._toDouble1(e);e=g.p0;return g.ret}()||!function(){var g=d._toDouble1(f);f=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(e==0){return new $$a4.ny(new $$a4.nx(2))}else{return new $$a4.ny((f-f%e)/e)}},name:function(){return"quotient"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionQuotient",$$a4.$ob.$type)},true);$c("UltraCalcFunctionProduct:j","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,$$t.$j._aj)},canParameterBeEnumerable:function(a){return true},_aj:function(a){return new $$a4.ny($$a4.$n8.v(a))},name:function(){return"product"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionProduct",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPower:k","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e,f;if(!function(){var g=c._toDouble1(f);f=g.p0;return g.ret}()||!function(){var g=d._toDouble1(e);e=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(1))}if(true&&e==0){if(f==0){return new $$a4.ny(new $$a4.nx(4))}else if(f<0){return new $$a4.ny(new $$a4.nx(2))}}return new $$a4.ny(Math.pow(e,f))},name:function(){return"power"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionPower",$$a4.$ob.$type)},true);$c("UltraCalcFunctionInt:l","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop()._toDecimal2();return new $$a4.ny($.ig.truncate(Math.floor(c)))},name:function(){return"int"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionInt",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTrunc:m","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b==2){var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}c=d._toInt321()}var e;var f=a.pop();if(f.isError()){return new $$a4.ny(f.toErrorValue())}if(!function(){var g=f._toDouble1(e);e=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}var g=Math.pow(10,c);var h=e*g;h=h>=0?Math.floor(h):Math.ceil(h);h/=g;return new $$a4.ny(h)},name:function(){return"trunc"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionTrunc",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCount:n","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.k(a,b,1485)},canParameterBeEnumerable:function(a){return true},name:function(){return"count"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionCount",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTrue:o","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny(true)},name:function(){return"true"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionTrue",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFalse:p","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny(false)},name:function(){return"false"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionFalse",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNot:q","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}return new $$a4.ny((!c._toBoolean1()))},name:function(){return"not"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionNot",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAnd:r","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=true;var d=false;var e=this._getArguments(a,b,true);for(var g=0;g<e.length;g++){var f=e[g];if(f.isError()){return new $$a4.ny(f.toErrorValue())}try{if(!f._toBoolean1()){c=false}d=true}catch(h){}}if(d){return new $$a4.ny(c)}return new $$a4.ny(new $$a4.nx(1))},canParameterBeEnumerable:function(a){return true},name:function(){return"and"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionAnd",$$a4.$ob.$type)},true);$c("UltraCalcFunctionOr:s","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=false;var d=false;var e=this._getArguments(a,b,true);for(var g=0;g<e.length;g++){var f=e[g];if(f.isError()){return new $$a4.ny(f.toErrorValue())}try{if(f._toBoolean1()){c=true}d=true}catch(h){}}if(d){return new $$a4.ny(c)}return new $$a4.ny(new $$a4.nx(1))},canParameterBeEnumerable:function(a){return true},name:function(){return"or"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionOr",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMin:t","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,$$t.$t._aj)},canParameterBeEnumerable:function(a){return true},_aj:function(a){if(a.count()==0){return new $$a4.ny(0)}var b=a.__inner[0];for(var c=1;c<a.count();c++){if(a.__inner[c]<b){b=a.__inner[c]}}return new $$a4.ny(b)},name:function(){return"min"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionMin",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMax:u","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,$$t.$u._aj)},canParameterBeEnumerable:function(a){return true},_aj:function(a){if(a.count()==0){return new $$a4.ny(0)}var b=a.__inner[0];for(var c=1;c<a.count();c++){if(a.__inner[c]>b){b=a.__inner[c]}}return new $$a4.ny(b)},name:function(){return"max"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionMax",$$a4.$ob.$type)},true);$c("UltraCalcFunctionExp:v","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(1))}var e=Math.exp(d);if(true&&Number.isInfinity(e)){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(e)},name:function(){return"exp"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionExp",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRound:w","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==3){c=a.pop()}var d=a.pop();var e=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var f;if(!function(){var g=d._toDouble1(f);f=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}var g;if(!function(){var h=e._toDouble1(g);g=h.p0;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(true){g=$$a4.$aa.i(g)}var h=0;if(c!=null){if(!function(){var i=c._toDouble1(h);h=i.p0;return i.ret}()){return new $$a4.ny(new $$a4.nx(4))}if($.ig.truncate(h)<0||$.ig.truncate(h)>1){return new $$a4.ny(new $$a4.nx(4))}}return new $$a4.ny($$t.$w._ak(g,$.ig.truncate(f),$.ig.truncate(h)))},name:function(){return"round"},minArgs:function(){return 2},maxArgs:function(){return 2},_aj:function(a,b){return $$t.$w._ak(a,b,0)},_ak:function(a,b,c){if(c==0){return $$a4.$aa.g(a,b)}if(b<=15){return Math.round10N(a,b)}var d=Math.pow(10,b);var e=$$a4.$aa.i(a*d);return Math.round(e)/d},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionRound",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPi:x","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny(3.14159265358979)},name:function(){return"pi"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionPi",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSqrt:y","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()||d<0){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.sqrt(d))},name:function(){return"sqrt"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSqrt",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCos:z","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.cos(d))},name:function(){return"cos"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionCos",$$a4.$ob.$type)},true);$c("UltraCalcFunctionACos:aa","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.acos(d))},name:function(){return"acos"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionACos",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCosh:ab","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.cosh(d))},name:function(){return"cosh"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionCosh",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSin:ac","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.sin(d))},name:function(){return"sin"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSin",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSinh:ad","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.sinh(d))},name:function(){return"sinh"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSinh",$$a4.$ob.$type)},true);$c("UltraCalcFunctionASin:ae","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.asin(d))},name:function(){return"asin"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionASin",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTan:af","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.tan(d))},name:function(){return"tan"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionTan",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTanh:ag","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.tanh(d))},name:function(){return"tanh"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionTanh",$$a4.$ob.$type)},true);$c("UltraCalcFunctionATan:ah","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.atan(d))},name:function(){return"atan"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionATan",$$a4.$ob.$type)},true);$c("UltraCalcFunctionATan2:ai","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e,f;if(!function(){var g=c._toDouble1(f);f=g.p0;return g.ret}()||!function(){var g=d._toDouble1(e);e=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(e==0&&f==0){return new $$a4.ny(new $$a4.nx(2))}return new $$a4.ny(Math.atan2(f,e))},name:function(){return"atan2"},minArgs:function(){
return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionATan2",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFloor:aj","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=1;if(b>1){var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(!function(){var e=d._toDouble1(c);c=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f;if(!function(){var g=e._toDouble1(f);f=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(f==0&&c==0){return new $$a4.ny(0)}if(c==0){return new $$a4.ny(new $$a4.nx(2))}var g=f<0?-1:1;var h=c<0?-1:1;if(true){if(f!=0&&c!=0&&0<g&&h<0){return new $$a4.ny(new $$a4.nx(4))}}var i=Math.floor($$a4.$aa.i(f/c))*c;return new $$a4.ny(i)},name:function(){return"floor"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionFloor",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCeiling:ak","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=1;if(b>1){var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(!function(){var e=d._toDouble1(c);c=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f;if(!function(){var g=e._toDouble1(f);f=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(c==0){return new $$a4.ny(0)}var g=f<0?-1:1;var h=c<0?-1:1;if(true){if(f!=0&&c!=0&&0<g&&h<0){return new $$a4.ny(new $$a4.nx(4))}}var i=Math.ceil($$a4.$aa.i(f/c))*c;return new $$a4.ny(i)},name:function(){return"ceiling"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionCeiling",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRand:al","BuiltInFunctionBase",{init:function(){this._aj=new $$6.s(0);$$a4.$ob.init.call(this)},_aj:null,evaluate:function(a,b){return new $$a4.ny(this._aj.nextDouble())},name:function(){return"rand"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionRand",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLn:am","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(1))}var e=Math.log(d);if(true&&Number.isInfinity(e)){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(e)},name:function(){return"ln"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionLn",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLog10:an","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(1))}if(true&&d==0){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.log10(d))},name:function(){return"log10"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionLog10",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLog:ao","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var e,f;if(c!=null){if(function(){var g=c._toDouble1(e);e=g.p0;return g.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}}else{e=10}if(function(){var g=d._toDouble1(f);f=g.p0;return g.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}if(true&&f==0){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.logBase(f,e))},name:function(){return"log"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionLog",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNPV:ap","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d=0;var e=new Array(b-1);for(var f=0;f<b-1;f++){e[f]=a.pop()}var g;if(!function(){var h=a.pop()._toDouble1(g);g=h.p0;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}g+=1;var h=1;for(var i=e.length;i>0;i--){var j=e[i-1];if(j.isReference()&&j.toReference().isEnumerable()){var k=j.toReference().references();var m=k.getEnumerator();while(m.moveNext()){var l=m.current();var n=l.value();if(n.isError()){return new $$a4.ny(n.toErrorValue())}if(function(){var o=n._toDouble1(c);c=o.p0;return o.ret}()){d+=c/Math.pow(g,h++)}}}else{if(j.isError()){return new $$a4.ny(j.toErrorValue())}if(function(){var o=j._toDouble1(c);c=o.p0;return o.ret}()){d+=c/Math.pow(g,h++)}}}return new $$a4.ny(d)},canParameterBeEnumerable:function(a){return 1<=a},name:function(){return"npv"},minArgs:function(){return 2},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionNPV",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFV:aq","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b==5){var d=a.pop();if(d.isError()){return d}c=d._toInt321()}var e=0;if(b>=4){var f=a.pop();if(f.isError()){return new $$a4.ny(f.toErrorValue())}if(!function(){var g=f._toDouble1(e);e=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}}var g,h,i;var j=a.pop();var k=a.pop();var l=a.pop();if(l.isError()){return l}if(k.isError()){return k}if(j.isError()){return j}if(!function(){var m=j._toDouble1(g);g=m.p0;return m.ret}()||!function(){var m=k._toDouble1(h);h=m.p0;return m.ret}()||!function(){var m=l._toDouble1(i);i=m.p0;return m.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny($$t.$aq._aj(i,h,g,e,c))},_aj:function(a,b,c,d,e){return(c*((Math.pow(1+a,e==0?b:b+1)-1)/a)-(e==0?0:c)+d*Math.pow(1+a,b))*-1},name:function(){return"fv"},minArgs:function(){return 3},maxArgs:function(){return 5},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionFV",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPV:ar","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b==5){c=a.pop()._toInt321()}var d=0;if(b>=4&&!function(){var e=a.pop()._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}var e,f,g;if(!function(){var h=a.pop()._toDouble1(e);e=h.p0;return h.ret}()||!function(){var h=a.pop()._toDouble1(f);f=h.p0;return h.ret}()||!function(){var h=a.pop()._toDouble1(g);g=h.p0;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(c!=0){e*=1+g}return new $$a4.ny((e*(1-Math.pow(1+g,-f))/g+d/Math.pow(1+g,f))*-1)},name:function(){return"pv"},minArgs:function(){return 3},maxArgs:function(){return 5},$type:new $.ig.Type("UltraCalcFunctionPV",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPmt:as","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b==5){c=a.pop()._toInt321()}var d=0;if(b>=4&&!function(){var e=a.pop()._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}var e,f,g;if(!function(){var h=a.pop()._toDouble1(e);e=h.p0;return h.ret}()||!function(){var h=a.pop()._toDouble1(f);f=h.p0;return h.ret}()||!function(){var h=a.pop()._toDouble1(g);g=h.p0;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(d!=0&&g!=0){d=c==0?d*g/(1-Math.pow(g+1,f)):d*g/(1-Math.pow(g+1,f))/(g+1)}if(g!=0){if(c==0){return new $$a4.ny((e*(g/(1-Math.pow(g+1,-f)))-d)*-1)}else{return new $$a4.ny((e/(1+g)*(g/(1-Math.pow(g+1,-f)))-d)*-1)}}return new $$a4.ny((e/f-d)*-1)},name:function(){return"pmt"},minArgs:function(){return 3},maxArgs:function(){return 5},$type:new $.ig.Type("UltraCalcFunctionPmt",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNPer:at","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b==5){c=a.pop()._toInt321()}var d=0;if(b>=4&&!function(){var e=a.pop()._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}var e,f,g;if(!function(){var h=a.pop()._toDouble1(e);e=h.p0;return h.ret}()||!function(){var h=a.pop()._toDouble1(f);f=h.p0;return h.ret}()||f==0||!function(){var h=a.pop()._toDouble1(g);g=h.p0;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(g<=-1){return new $$a4.ny(new $$a4.nx(4))}if(g==0&&f==0){return new $$a4.ny(new $$a4.nx(4))}var h=c;var i=$$a4.$h.nPer(g,f,e,d,h);return new $$a4.ny(i)},name:function(){return"nper"},minArgs:function(){return 3},maxArgs:function(){return 5},$type:new $.ig.Type("UltraCalcFunctionNPer",$$a4.$ob.$type)},true);$c("UltraCalcFunctionEven:au","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}var e=Math.ceil(Math.abs(d));var f=e+Math.abs(Math.ieeeRemainder(e,2));if(d<0){f*=-1}return new $$a4.ny(f)},name:function(){return"even"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionEven",$$a4.$ob.$type)},true);$c("UltraCalcFunctionOdd:av","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d=a.pop();if(d.isError()){return d}if(function(){var e=d._toDouble1(c);c=e.p0;return e.ret}()==false){return new $$a4.ny(new $$a4.nx(4))}var e=Math.ceil(Math.abs(c));var f=Math.abs(Math.ieeeRemainder(e,2));if(f==0){e++}if(c<0){e*=-1}return new $$a4.ny(e)},name:function(){return"odd"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionOdd",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPPmt:aw","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=0;var e=0;var f,g,h,i;if(b==6&&!function(){var j=a.pop()._toDouble1(d);d=j.p0;return j.ret}()||b>=5&&!function(){var j=a.pop()._toDouble1(e);e=j.p0;return j.ret}()||!function(){var j=a.pop()._toDouble1(f);f=j.p0;return j.ret}()||!function(){var j=a.pop()._toDouble1(g);g=j.p0;return j.ret}()||!function(){var j=a.pop()._toDouble1(h);h=j.p0;return j.ret}()||!function(){var j=a.pop()._toDouble1(i);i=j.p0;return j.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(g<=0||h<=0||h>g){return new $$a4.ny(new $$a4.nx(4))}var j=d;c=$$a4.$h.pPmt(i,h,g,f,e,j);return new $$a4.ny(c)},name:function(){return"ppmt"},minArgs:function(){return 4},maxArgs:function(){return 6},$type:new $.ig.Type("UltraCalcFunctionPPmt",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIPmt:ax","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=0;var e,f,g,h;if(b==6&&!function(){var i=a.pop()._toDouble1(c);c=i.p0;return i.ret}()||b>=5&&!function(){var i=a.pop()._toDouble1(d);d=i.p0;return i.ret}()||!function(){var i=a.pop()._toDouble1(e);e=i.p0;return i.ret}()||!function(){var i=a.pop()._toDouble1(f);f=i.p0;return i.ret}()||!function(){var i=a.pop()._toDouble1(g);g=i.p0;return i.ret}()||!function(){var i=a.pop()._toDouble1(h);h=i.p0;return i.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(f<=0||g<=0||g>f){return new $$a4.ny(new $$a4.nx(4))}var i=0;var j=c;i=$$a4.$h.iPmt(h,g,f,e,d,j);return new $$a4.ny(i)},name:function(){return"ipmt"},minArgs:function(){return 4},maxArgs:function(){return 6},$type:new $.ig.Type("UltraCalcFunctionIPmt",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLower:ay","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){if(true){var c=a.pop();if(c.isError()){return c}return new $$a4.ny(c.toString().toLowerCase())}if(a.peek().isString()){return new $$a4.ny(a.pop().toString().toLocaleLowerCase(a._w()))}else{return a.pop()}},name:function(){return"lower"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionLower",$$a4.$ob.$type)},true);$c("UltraCalcFunctionUpper:az","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){if(true){var c=a.pop();if(c.isError()){return c}return new $$a4.ny(c.toString().toUpperCase())}if(a.peek().isString()){return new $$a4.ny(a.pop().toString().toLocaleUpperCase(a._w()))}else{return a.pop()}},name:function(){return"upper"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionUpper",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLeft:a0","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=1;if(b>1){var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}c=d._toInt321();if(c<0){return new $$a4.ny(new $$a4.nx(1))}}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e.toString();return new $$a4.ny(f.substr(0,c>f.length?f.length:c))},name:function(){return"left"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionLeft",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRight:a1","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=1;if(b>1){var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}c=d._toInt321();if(c<0){return new $$a4.ny(new $$a4.nx(1))}}if(c<0){return new $$a4.ny(new $$a4.nx(1))}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e.toString();return new $$a4.ny(f.substr(c>f.length?0:f.length-c))},name:function(){return"right"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionRight",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMid:a2","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b>2){var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}c=d._toInt321();if(c<0){return new $$a4.ny(new $$a4.nx(1))}}var e=1;if(b>1){var f=a.pop();if(f.isError()){return new $$a4.ny(f.toErrorValue())}e=f._toInt321();if(c<1){return new $$a4.ny(new $$a4.nx(1))}}var g=a.pop();if(g.isError()){return new $$a4.ny(g.toErrorValue())}var h=g.toString();if(e>h.length){return new $$a4.ny(String.empty())}else if(e+c-1>h.length){return new $$a4.ny(h.substr(e-1))}else{return new $$a4.ny(h.substr(e-1,c))}},name:function(){return"mid"},minArgs:function(){return 1},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionMid",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTrim:a3","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c.toString().trim();var e=new $$6.aj(1,d.length);var f=false;for(var g=0;g<d.length;g++){var h=d.charAt(g);var i=/\s/i.test(h);if(!f||!i){e.h(h)}f=i}return new $$a4.ny(e.toString())},name:function(){return"trim"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionTrim",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLen:a4","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}return new $$a4.ny(c.toString().length)},name:function(){return"len"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionLen",$$a4.$ob.$type)},true);$c("UltraCalcFunctionValue:a5","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=false;var e=0;if(typeof c.value()==="string"){var f=c.value().trim();if(f.endsWith("kr")){f=f.substr(0,f.length-2)}else if(f.startsWith("R$")||f.startsWith("S/")){f=f.substr(2,f.length-2)}else{f=f.trim($$t.$a5._aj)}d=function(){var g=$$a4.$aa.c(f,a._w(),e);e=g.p2;return g.ret}()}if(!d){d=function(){var g=c._toDouble1(e);e=g.p0;return g.ret}()}return d?new $$a4.ny(e):new $$a4.ny(new $$a4.nx(4))},name:function(){return"value"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionValue",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFind:a6","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b>2){if(a.peek().isError()){return new $$a4.ny(a.pop().toErrorValue())}c=a.pop()._toInt321()-1;if(c<0){return new $$a4.ny(new $$a4.nx(1))}}if(a.peek().isError()){return new $$a4.ny(a.pop().toErrorValue())}var d=a.pop().toString();if(c>d.length-1){return new $$a4.ny(new $$a4.nx(1))}if(a.peek().isError()){return new $$a4.ny(a.pop().toErrorValue())}var e=-1;var f=a.pop().toString();if(f.length==0){e=1}else{e=d.indexOf(f,c)}if(e!=-1){return new $$a4.ny(e+1)}else{return new $$a4.ny(new $$a4.nx(1))}},name:function(){return"find"},minArgs:function(){return 2},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionFind",$$a4.$ob.$type)},true);$c("UltraCalcFunctionReplace:a7","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=a.pop();var f=a.pop();if(f.isError()){return f}if(e.isError()){return e}if(d.isError()){return d}if(c.isError()){return c}var g=c.toString();var h=d._toInt321();var i=e._toInt321()-1;var j=f.toString();if(i<0||i>j.length){return new $$a4.ny(new $$a4.nx(1))}if(h<0){return new $$a4.ny(new $$a4.nx(1))}if(h>j.length-i){h=j.length-i}var k=j.substr(0,i)+g+j.substr(i+h);return new $$a4.ny(k)},name:function(){return"replace"},minArgs:function(){return 4},maxArgs:function(){return 4},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionReplace",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSYD:a8","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop()._toInt321();if(c<=0){return new $$a4.ny(new $$a4.nx(4))}var d=a.pop()._toInt321();if(d<=0){return new $$a4.ny(new $$a4.nx(4))}var e,f;if(!function(){var g=a.pop()._toDouble1(e);e=g.p0;return g.ret}()||!function(){var g=a.pop()._toDouble1(f);f=g.p0;return g.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny((f-e)*(d-c+1)*2/(d*(d+1)))},name:function(){return"syd"},minArgs:function(){return 4},maxArgs:function(){return 4},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSYD",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSLN:a9","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop()._toInt321();if(c==0){return new $$a4.ny(new $$a4.nx(2))}var d,e;if(!function(){var f=a.pop()._toDouble1(d);d=f.p0;return f.ret}()||!function(){var f=a.pop()._toDouble1(e);e=f.p0;return f.ret}()){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny((e-d)/c)},name:function(){return"sln"},minArgs:function(){return 3},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSLN",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDB:ba","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=12;if(b>4){c=a.pop()._toInt321()}var d=a.pop()._toInt321();if(d<=0){return new $$a4.ny(new $$a4.nx(4))}var e;if(!function(){var f=a.pop()._toDouble1(e);e=f.p0;return f.ret}()||e<=0){return new $$a4.ny(new $$a4.nx(4))}var f,g;if(!function(){var h=a.pop()._toDouble1(f);f=h.p0;return h.ret}()||!function(){var h=a.pop()._toDouble1(g);g=h.p0;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}var h=Math.round10N(1-Math.pow(f/g,1/e),3);if(d>e+1){return new $$a4.ny(new $$a4.nx(4))}if(d==e+1&&c==12){return new $$a4.ny(new $$a4.nx(4))}var i=0;var j=0;var k=g;for(var l=1;l<=d;l++){if(l==1){i=k*h*(c/12)}else if(l==e+1&&c<12){i=k*h*(12-c)/12}else{i=k*h}j+=i;k-=i}return new $$a4.ny(i)},name:function(){return"db"},minArgs:function(){return 4},maxArgs:function(){return 5},$type:new $.ig.Type("UltraCalcFunctionDB",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDDB:bb","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=b>4?a.pop():new $$a4.ny(2);var d=a.pop();var e=a.pop();var f=a.pop();var g=a.pop();if(c.isNull()||d.isNull()||e.isNull()||f.isNull()||g.isNull()){return new $$a4.ny(new $$a4.nx(4))}var h,i,j,k,l;if(!function(){var m=c._toDouble1(h);h=m.p0;return m.ret}()||!function(){var m=d._toDouble1(i);i=m.p0;return m.ret}()||!function(){var m=e._toDouble1(j);j=m.p0;return m.ret}()||!function(){var m=f._toDouble1(k);k=m.p0;return m.ret}()||!function(){var m=g._toDouble1(l);l=m.p0;return m.ret}()){return new $$a4.ny(new $$a4.nx(1))}var m=l*Math.pow(1-h/j,i-1);var n=m-m*(1-h/j);if(k>m-n){if(m-k>0){n=m-k}else{n=0}}return new $$a4.ny(n)},name:function(){return"ddb"},minArgs:function(){return 4},maxArgs:function(){return 5},$type:new $.ig.Type("UltraCalcFunctionDDB",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIntRate:bc","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b>4&&!function(){var d=a.pop()._toDouble1(c);c=d.p0;return d.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(c<0||c>4){return new $$a4.ny(new $$a4.nx(4))}var d,e;if(!function(){var f=a.pop()._toDouble1(d);d=f.p0;return f.ret}()||!function(){var f=a.pop()._toDouble1(e);e=f.p0;return f.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(e<=0||d<=0){return new $$a4.ny(new $$a4.nx(4))}var f=a.pop();var g=f._toDateTime1();var h=a.pop();var i=h._toDateTime1();if(i>=g){return new $$a4.ny(new $$a4.nx(4))}var j;var k;if(c==0||c==4){var l=$$t.$bf._aj(i,g,c!=4?false:true);if(function(){var m=l._toDouble1(k);k=m.p0;return m.ret}()==false){return new $$a4.ny(new $$a4.nx(4))}j=360}else{if(c==1){j=365.2422}else if(c==2){j=360}else{j=365}k=$.ig.util.timeSpanDays(g-i)}return new $$a4.ny((d-e)/e*(j/k))},name:function(){return"intrate"},minArgs:function(){return 4},maxArgs:function(){return 5},$type:new $.ig.Type("UltraCalcFunctionIntRate",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDateValue:bd","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d;if(function(){var e=c._aj(c._a0(),d,true,false);d=e.p1;return e.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(d)},name:function(){return"datevalue"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionDateValue",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDate:be","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=a.pop();if(e.isError()){return e}var f;if(function(){var g=e._toDouble1(f);f=g.p0;return g.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}if(d.isError()){return d}var g;if(function(){var h=d._toDouble1(g);g=h.p0;return h.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}if(c.isError()){return c}var h;if(function(){var i=c._toDouble1(h);h=i.p0;return i.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}var i=$.ig.truncate(Math.floor(f));var j=$.ig.truncate(Math.floor(g));var k=$.ig.truncate(Math.floor(h));if(true){var l=1900;if(i<l){i+=l}}while(true){var m=j-1;var n=$a(m,12);if(n>0){i+=n;j=m%12+1}if(1e4<=i){return new $$a4.ny(new $$a4.nx(4))}var o=$$0.$s.daysInMonth(i,j);if(k<=o){break}k-=o;j++}if(true){if(i<1900){return new $$a4.ny(new $$a4.nx(4))}var p=$$a4.$n4._l(a);if(p!=null&&p.dateSystem()==1&&i<1904){return new $$a4.ny(new $$a4.nx(4))}if(1e4<=i){return new $$a4.ny(new $$a4.nx(4))}}else{if(i<0){return new $$a4.ny(new $$a4.nx(4))}}var q=$.ig.Date.prototype.fromValues(i,j,k,0,0,0,0);return new $$a4.ny(q)},name:function(){return"date"},minArgs:function(){return 3},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionDate",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDays360:bf","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=false;if(b>2){if(a.peek().isError()){return new $$a4.ny(a.pop().toErrorValue())}c=a.pop()._toBoolean1()}var d=a.pop()._toDateTime1();var e=a.pop()._toDateTime1();return $$t.$bf._aj(e,d,c)},_aj:function(a,b,c){if(a.getDate()==31){a=$.ig.Date.prototype.fromValues(a.getFullYear(),$.ig.Date.prototype.getMonth(a),30,0,0,0,0)}if(b.getDate()==31){if(!c){if(a.getDate()<30){b=$.ig.Date.prototype.fromValues($.ig.Date.prototype.getMonth(b)<12?b.getFullYear():b.getFullYear()+1,$.ig.Date.prototype.getMonth(b)<12?$.ig.Date.prototype.getMonth(b)+1:1,1,0,0,0,0)}else{b=$.ig.Date.prototype.fromValues(b.getFullYear(),$.ig.Date.prototype.getMonth(b),30,0,0,0,0)}}else{b=$.ig.Date.prototype.fromValues(b.getFullYear(),$.ig.Date.prototype.getMonth(b),30,0,0,0,0)}}return new $$a4.ny(b.getFullYear()*360+$.ig.Date.prototype.getMonth(b)*30+b.getDate()-(a.getFullYear()*360+$.ig.Date.prototype.getMonth(a)*30+a.getDate()))},name:function(){return"days360"},minArgs:function(){return 2},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionDays360",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDay:bg","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}if(true){var d;if(c.isNull()||function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()&&d==0){return new $$a4.ny(0)}}if(c.isString()&&String.isNullOrEmpty(c.toString())){return new $$a4.ny(new $$a4.nx(1))}var e=c._toDateTime1();return new $$a4.ny(e.getDate())},name:function(){return"day"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionDay",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMonth:bh","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}if(true){var d;if(c.isNull()||function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()&&d==0){return new $$a4.ny(1)}}var e=c._toDateTime1();return new $$a4.ny($.ig.Date.prototype.getMonth(e))},name:function(){return"month"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionMonth",$$a4.$ob.$type)},true);$c("UltraCalcFunctionYear:bi","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}if(true){var d;if(c.isNull()||function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()&&d==0){var e=a._r();if(e!=null&&e.dateSystem()==1){return new $$a4.ny(1904)}return new $$a4.ny(1900)}}var f=c._toDateTime1();return new $$a4.ny(f.getFullYear())},name:function(){return"year"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionYear",$$a4.$ob.$type)},true);$c("UltraCalcFunctionHour:bj","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}if(true){var d;if(c.isNull()||function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()&&d==0){return new $$a4.ny(0)}}var e=c._toDateTime1();return new $$a4.ny(e.getHours())},name:function(){return"hour"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionHour",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMinute:bk","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}if(true){var d;if(c.isNull()||function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()&&d==0){return new $$a4.ny(0)}}var e=c._toDateTime1();return new $$a4.ny(e.getMinutes())},name:function(){return"minute"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionMinute",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSecond:bl","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}if(true){var d;if(c.isNull()||function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()&&d==0){return new $$a4.ny(0)}}var e=c._toDateTime1();return new $$a4.ny(e.getSeconds())},name:function(){return"second"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSecond",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNow:bm","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny($$0.$s.now())},name:function(){return"now"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionNow",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTimeValue:bn","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=$.ig.Date.prototype.getTimeOfDay(c._toDateTime1());if(true){var e=$$a4.$ny._ay(d,false);return new $$a4.ny(e)}return new $$a4.ny($.ig.Date.prototype.fromTicks($.ig.util.timeSpanTicks(d)))},name:function(){return"timevalue"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionTimeValue",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTime:bo","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=a.pop();if(e.isError()){return e}if(d.isError()){return d}if(c.isError()){return c}var f=c._toInt321();var g=d._toInt321();var h=e._toInt321();if(true){var i=32767;if(f<0||g<0||h<0||i<f||i<g||i<h){return new $$a4.ny(new $$a4.nx(4))}g+=$a(f,60);f=f%60;h+=$a(g,60);g=g%60;h=h%24}if(true){var j=$.ig.util.timeSpanInit1(h,g,f);var k=$$a4.$ny._ay(j,false);return new $$a4.ny(k)}else{var l=$.ig.Date.prototype.fromValues(1,1,1,h,g,f,0);return new $$a4.ny(l.getTime())}},name:function(){return"time"},minArgs:function(){return 3},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionTime",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMedian:bp","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new $$4.x(Number,0);if(!$$a4.$n4._t(a,b,c,true,true)){return a.pop()}c.sort();if(c.count()==0){return new $$a4.ny(new $$a4.nx(4))}var d;var e=$a(c.count(),2);if(c.count()%2==1){d=c.__inner[e]}else{var f=(c.__inner[e-1]+c.__inner[e])/2;d=f}return new $$a4.ny(d)},canParameterBeEnumerable:function(a){return true},name:function(){return"median"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){
return b==false},$type:new $.ig.Type("UltraCalcFunctionMedian",$$a4.$ob.$type)},true);$c("UltraCalcFunctionVar:bq","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$bq._aj(c,true)})},canParameterBeEnumerable:function(a){return true},_aj:function(a,b){if(a.count()<2){if(!b&&a.count()==1){return new $$a4.ny(0)}return new $$a4.ny(new $$a4.nx(2))}return new $$a4.ny($$a4.$n8.ab(a,b))},name:function(){return"var"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionVar",$$a4.$ob.$type)},true);$c("UltraCalcFunctionStdev:br","UltraCalcFunctionVar",{init:function(){$$t.$bq.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$br._ak(c,true)})},canParameterBeEnumerable:function(a){return true},_ak:function(a,b){if(a.count()<2){if(!b&&a.count()==1){return new $$a4.ny(0)}return new $$a4.ny(new $$a4.nx(2))}var c=$$a4.$n8.r(a);return new $$a4.ny($$a4.$n8.y(c,a.count(),b))},name:function(){return"stdev"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionStdev",$$t.$bq.$type)},true);$c("UltraCalcFunctionType:bs","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d=a.pop();if(d.isError()){c=16}else if(d.isBoolean()){c=4}else if(d.isString()){c=2}else if(d.isArray()){c=64}else{var e;if(!function(){var f=d._toDouble1(e);e=f.p0;return f.ret}()){return new $$a4.ny(new $$a4.nx(1))}c=1}return new $$a4.ny(c)},name:function(){return"type"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionType",$$a4.$ob.$type)},true);$c("UltraCalcFunctionErrorType:bt","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d=a.pop();if(d.isError()){var e=d.toErrorValue();switch(e.code()){case 6:c=1;break;case 2:c=2;break;case 1:c=3;break;case 0:c=4;break;case $$a4.o4.$name:c=5;break;case 4:c=6;break;case 3:c=7;break;default:return new $$a4.ny(new $$a4.nx(3))}return new $$a4.ny(c)}else{return new $$a4.ny(new $$a4.nx(3))}},name:function(){return"errortype"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionErrorType",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNa:bu","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny(new $$a4.nx(3))},name:function(){return"na"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionNa",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsBlank:bv","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny(c.isNull())},name:function(){return"isblank"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsBlank",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsErr:bw","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny(c.isError()&&c.toErrorValue().code()!=3)},name:function(){return"iserr"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsErr",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsError:bx","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny(c.isError())},name:function(){return"iserror"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsError",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsLogical:by","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny(c.isBoolean())},name:function(){return"islogical"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsLogical",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsNa:bz","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny(c.isError()&&c.toErrorValue().code()==3)},name:function(){return"isna"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsNa",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsNonText:b0","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny((!c.isString()))},name:function(){return"isnontext"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsNonText",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsNumber:b1","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.count();var d=a.pop();if(true){if(d.isNull()){return new $$a4.ny(false)}}var e;return new $$a4.ny(function(){var f=d._toDouble1(e);e=f.p0;return f.ret}())},name:function(){return"isnumber"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsNumber",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsRef:b2","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny(c.isReference())},name:function(){return"isref"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsRef",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsText:b3","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();return new $$a4.ny(c.isString())},name:function(){return"istext"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsText",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsEven:b4","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}d=Math.floor(d);return new $$a4.ny(d%2==0)},name:function(){return"iseven"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsEven",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsOdd:b5","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}d=Math.floor(d);var e=$.ig.truncate(d%2);return new $$a4.ny(1==e||-1==e)},name:function(){return"isodd"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsOdd",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIRR:b6","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=1e-7;var d=.1;if(b==2){var e=a.pop();if(!function(){var f=e._toDouble1(d);d=f.p0;return f.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(Math.abs(d)<c){d=.1}}d+=1;var f=a.pop();if(f._s()==false){return new $$a4.ny(new $$a4.nx(1))}var g=0;var h=0;var i=0;for(var j=0;j<20;++j){var k=true;var l=0;var m=false;var n=false;var o=f.toArrayProxy();var q=o.getEnumerator();while(q.moveNext()){var p=q.current();if(!function(){var r=p._toDouble1(i);i=r.p0;return r.ret}()){continue}if(i<0){n=true}else if(0<i){m=true}l++;if(k){g=i;h=0;k=false}else{h=g+h*d;g=i+g*d}}if(l<2||n==false||m==false){return new $$a4.ny(new $$a4.nx(4))}var r=g/h;d-=r;if(Math.abs(r)<c){return new $$a4.ny(d-1)}if(Math.abs(d)<c){return new $$a4.ny(new $$a4.nx(4))}}return new $$a4.ny(new $$a4.nx(4))},canParameterBeEnumerable:function(a){return a==0},name:function(){return"irr"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionIRR",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRate:b7","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=0;var e=0;var f=0;var g=0;var h=.1;if(b<3||b>6){return new $$a4.ny(new $$a4.nx(1))}if(b==6&&!function(){var i=a.pop()._toDouble1(h);h=i.p0;return i.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(b>=5){g=a.pop()._toInt();if(g<0||g>1){return new $$a4.ny(new $$a4.nx(1))}}if(b>=4&&!function(){var i=a.pop()._toDouble1(c);c=i.p0;return i.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(b>=3){if(!function(){var i=a.pop()._toDouble1(d);d=i.p0;return i.ret}()||!function(){var i=a.pop()._toDouble1(e);e=i.p0;return i.ret}()||!function(){var i=a.pop()._toDouble1(f);f=i.p0;return i.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(f<=0){return new $$a4.ny(new $$a4.nx(1))}}var i=function(j){return c+e*(1+j*g)*(Math.pow(1+j,f)-1)/j+d*Math.pow(1+j,f)};var j=function(k){return e*(f*k*Math.pow(1+k,f-1+g)-Math.pow(1+k,f)+1)/(k*k)+f*d*Math.pow(1+k,f-1)};var k=1e-8;var l=h;for(var m=0;m<40;m++){var n=i(l);var o=j(l);if(Math.abs(o)<=5e-324){break}var p=l-n/o;if(Math.abs(p-l)<=k){return new $$a4.ny(p)}l=p}return new $$a4.ny(new $$a4.nx(4))},name:function(){return"rate"},minArgs:function(){return 3},maxArgs:function(){return 6},$type:new $.ig.Type("UltraCalcFunctionRate",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsNull:b8","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isReference()){c=c.toReference().value()}return new $$a4.ny(c.value()==null)},name:function(){return"isnull"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsNull",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNull:b9","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny(null)},name:function(){return"null"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionNull",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsDBNull:ca","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny(a.pop().isDBNull())},name:function(){return"isdbnull"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionIsDBNull",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDBNull:cb","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny(null)},name:function(){return"dbnull"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionDBNull",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDateAdd:cc","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop()._toDateTime1();var d;if(!function(){var e=a.pop()._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}var e=a.pop().toString().toLowerCase().trim();var f=$$a4.$pm.c(e,d,c);return new $$a4.ny(f)},name:function(){return"dateadd"},minArgs:function(){return 3},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionDateAdd",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDateDiff:cd","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=a.pop().toString().toLowerCase().trim();if(c.isNull()||d.isNull()){var f=new $$a4.nx(4);return new $$a4.ny(f)}var g=c._toDateTime1();var h=d._toDateTime1();var i=$$t.$cd._am(a._w(),e,h,g);return new $$a4.ny(i)},_ak:function(a){if(a>=0){return Math.floor(a)}return-Math.floor(-a)},name:function(){return"datediff"},minArgs:function(){return 3},maxArgs:function(){return 3},_aj:function(a){switch(a){case 2:return 2;case 1:return 3;case 0:default:return 1}},_am:function(a,b,c,d){var e=1;var f=$$t.$cd._aj(0);var g=$$a4.$pm.e(b,c,d,e,f);return g},_al:function(a,b,c,d){var e=1;var f=$$t.$cd._aj(0);var g=$$a4.$pm.d(b,c,d,e,f);return g},$type:new $.ig.Type("UltraCalcFunctionDateDiff",$$a4.$ob.$type)},true);$c("UltraCalcFunctionChar:ce","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toInt321();return new $$a4.ny($$6.$g.toChar1(d))},name:function(){return"char"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionChar",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCode:cf","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c.toString();if(d==null||d.length==0){return new $$a4.ny(0)}return new $$a4.ny(d.charAt(0).charCodeAt(0))},name:function(){return"code"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionCode",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFixed:cg","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=2;var e=false;var f=new $$6.aj(1,100);var g;if(2<b){g=a.pop();if(g.isError()){return new $$a4.ny(g.toErrorValue())}e=g._toBoolean1()}if(1<b){g=a.pop();if(g.isError()){return new $$a4.ny(g.toErrorValue())}d=g._toInt()}g=a.pop();if(g.isError()){return new $$a4.ny(g.toErrorValue())}c=g._toDouble3();var h=c.toLocaleString(a._w().name(),{minimumFractionDigits:d,maximumFractionDigits:d,useGrouping:e});if(h==null||h.length==0){h="0"}return new $$a4.ny(h)},name:function(){return"fixed"},minArgs:function(){return 1},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionFixed",$$a4.$ob.$type)},true);$c("UltraCalcFunctionToday:ch","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return new $$a4.ny($$0.$s.today())},name:function(){return"today"},minArgs:function(){return 0},maxArgs:function(){return 0},$type:new $.ig.Type("UltraCalcFunctionToday",$$a4.$ob.$type)},true);$c("UltraCalcFunctionASinh:ci","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}var e=Math.log(d+Math.sqrt(d*d+1));return new $$a4.ny(e)},name:function(){return"asinh"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionASinh",$$a4.$ob.$type)},true);$c("UltraCalcFunctionATanh:cj","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}var e;if(1==d){e=Number.POSITIVE_INFINITY}else if(-1==d){e=Number.NEGATIVE_INFINITY}else{e=Math.log((1+d)/(1-d))/2}return new $$a4.ny(e)},name:function(){return"atanh"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionATanh",$$a4.$ob.$type)},true);$c("UltraCalcFunctionACosh:ck","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(!function(){var e=c._toDouble1(d);d=e.p0;return e.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(d<1){return new $$a4.ny(new $$a4.nx(4))}var e=Math.log(d+Math.sqrt(d*d-1));return new $$a4.ny(e)},name:function(){return"acosh"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionACosh",$$a4.$ob.$type)},true);$c("UltraCalcFunctionEDate:cl","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop()._toDouble3();var d=$.ig.Date.prototype.getDate(a.pop()._toDateTime1());d=$$a4.$pm.b(2,c,d);return new $$a4.ny(d)},name:function(){return"edate"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionEDate",$$a4.$ob.$type)},true);$c("UltraCalcFunctionEOMonth:cm","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop()._toDouble3();var d=$.ig.Date.prototype.getDate(a.pop()._toDateTime1());d=$$a4.$pm.b(2,c,d);d=$.ig.Date.prototype.fromValues(d.getFullYear(),$.ig.Date.prototype.getMonth(d),$$0.$s.daysInMonth(d.getFullYear(),$.ig.Date.prototype.getMonth(d)),0,0,0,0);return new $$a4.ny(d)},name:function(){return"eomonth"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionEOMonth",$$a4.$ob.$type)},true);$c("UltraCalcFunctionWeekDay:cn","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=b==2?a.pop()._toInt321():1;var d=$.ig.Date.prototype.getDate(a.pop()._toDateTime1());if(true){if(d<=$.ig.Date.prototype.fromValues(1900,3,1,0,0,0,0)){d=$.ig.Date.prototype.addDays(d,-1)}}var e=d.getDay();var f=e;switch(c){case 1:f++;break;case 2:if(e==0){f+=7}break;case 3:f+=e!=0?-1:6;break;case 11:case 12:case 13:case 14:case 15:case 16:case 17:f=(f+7-(c-10))%7+1;break;default:return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f)},name:function(){return"weekday"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionWeekDay",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNetWorkDays:co","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b-2,true);var d;var e;var f=function(){var g=$$t.$cq._aj(c,d,e);d=g.p1;e=g.p2;return g.ret}();if(f==false){return e}var g=$.ig.Date.prototype.getDate(a.pop()._toDateTime1());var h=$.ig.Date.prototype.getDate(a.pop()._toDateTime1());var i=1;if(h>g){i=-1;var j=h;h=g;g=j}var k=$$t.$cd._al(a._w(),4,h,g);k+=1;if(k>0){var l=$a(k,7);var m=k%7;k-=l*2;switch(h.getDay()){case 1:case 2:case 3:case 4:case 5:case 6:var n=8-h.getDay();if(m>=n){k-=Math.min(2,n)}else if(m==n-1){k-=Math.min(1,n)}break;case 0:if(m>=1){k-=1}break;default:break}if(d!=null){var p=d.keys().getEnumerator();while(p.moveNext()){var o=p.current();if(o>=h&&o<=g){k-=1}}}k*=i}return new $$a4.ny(k)},canParameterBeEnumerable:function(a){return a==2},name:function(){return"networkdays"},minArgs:function(){return 2},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionNetWorkDays",$$a4.$ob.$type)},true);$c("UltraCalcFunctionWeekNum:cp","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=b==2?a.pop()._toInt321():1;var d;switch(c){case 1:d=0;break;case 2:d=1;break;default:return new $$a4.ny(new $$a4.nx(4))}var e=$.ig.Date.prototype.getDate(a.pop()._toDateTime1());var f=$.ig.Date.prototype.fromValues(e.getFullYear(),1,1,0,0,0,0);var g=f;while(g.getDay()!=d){g=$.ig.Date.prototype.addDays(g,1)}var h=$a($.ig.util.timeSpanDays(e-g),7)+1;if(+f!=+g&&e>=g){h+=1}return new $$a4.ny(h)},name:function(){return"weeknum"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionWeekNum",$$a4.$ob.$type)},true);$c("UltraCalcFunctionWorkDay:cq","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b-2,true);var d;var e;var f=function(){var g=$$t.$cq._aj(c,d,e);d=g.p1;e=g.p2;return g.ret}();if(f==false){return e}var g=a.pop()._toInt321();var h=$.ig.Date.prototype.getDate(a.pop()._toDateTime1());var i=h;var j=Math.abs(g);var k=0;if(g!=0){var l=g<0?-1:1;do{i=$.ig.Date.prototype.addDays(i,l);k+=this._am(i,d)?1:0}while(k<j)}return new $$a4.ny(i)},canParameterBeEnumerable:function(a){return a==2},_am:function(a,b){if($$t.$cq._ak(a)){return false}if(b!=null&&b.containsKey(a)){return false}return true},name:function(){return"workday"},minArgs:function(){return 2},maxArgs:function(){return 3},_aj:function(a,b,c){if(a.length>0){b=new $$4.h($$0.$s.$type,$.ig.$op.$type,1,a.length);for(var e=0;e<a.length;e++){var d=a[e];if(d.isError()){c=new $$a4.ny(d.toErrorValue());return{ret:false,p1:b,p2:c}}var f=$.ig.Date.prototype.getDate(d._toDateTime1());if($$t.$cq._ak(f)==false){if(b.containsKey(f)==false){b.add(f,null)}}}}else{b=null}c=null;return{ret:true,p1:b,p2:c}},_ak:function(a){return $$t.$cq._al(a.getDay())},_al:function(a){return a==6||a==0},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionWorkDay",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDec2XBase:cr","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b==2){var d=a.pop()._toInt321();if(d<=0){return new $$a4.ny(new $$a4.nx(4))}else{c=d}}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e._toInt641();if(f<this._ao()||f>this._ak()){return new $$a4.ny(new $$a4.nx(4))}var g=$$t.$cr._as(f,this._aj(),this._ao(),this._ak());if(c>0){if(g.length<10&&g.length>c){return new $$a4.ny(new $$a4.nx(4))}}else{c=1}while(g.length<c){g=$y("{0}{1}","0",g)}return new $$a4.ny(g)},_ao:function(){},_ak:function(){},_aj:function(){},minArgs:function(){return 1},maxArgs:function(){return 2},_as:function(a,b,c,d){var e=false;if(a<0){a-=c;e=true}a&=d;if(e){a|=-c}var f=String.empty();if(a==0){f="0"}while(a>0){var g=a%b;var h;if(g<10){h=g.toString()}else{g=g-10;h=$u(g+65).toString()}f=$y("{0}{1}",h,f);a=$a(a,b)}return f},$type:new $.ig.Type("UltraCalcFunctionDec2XBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDec2Bin:cs","UltraCalcFunctionDec2XBase",{init:function(){$$t.$cr.init.call(this)},name:function(){return"dec2bin"},_ao:function(){return-512},_ak:function(){return 511},_aj:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionDec2Bin",$$t.$cr.$type)},true);$c("UltraCalcFunctionDec2Hex:ct","UltraCalcFunctionDec2XBase",{init:function(){$$t.$cr.init.call(this)},name:function(){return"dec2hex"},_ao:function(){return-549755813888},_ak:function(){return 549755813887},_aj:function(){return 16},$type:new $.ig.Type("UltraCalcFunctionDec2Hex",$$t.$cr.$type)},true);$c("UltraCalcFunctionDec2Oct:cu","UltraCalcFunctionDec2XBase",{init:function(){$$t.$cr.init.call(this)},name:function(){return"dec2oct"},_ao:function(){return-536870912},_ak:function(){return 536870911},_aj:function(){return 8},$type:new $.ig.Type("UltraCalcFunctionDec2Oct",$$t.$cr.$type)},true);$c("UltraCalcFunctionXBase2Dec:cv","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var $self=this;var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c.toString();if(d.length>this._al()){return new $$a4.ny(new $$a4.nx(4))}var e;var f=function(){var g=$$t.$cv._ak(a._w(),d,$self._aj(),$self._an(),$self._am(),e);e=g.p5;return g.ret}();if(null!=e){return new $$a4.ny(e)}return new $$a4.ny(f)},_an:function(){},_am:function(){},_aj:function(){},_al:function(){},minArgs:function(){return 1},maxArgs:function(){return 1},_ak:function(a,b,c,d,e,f){f=null;b=b.trim();var g=0;var h=b.length;var i=$.ig.util.toCharArray(b);var j=1;var k=$u(0);for(var l=h-1;l>=0;l--){var m=i[l];if(m=="-"){continue}var n;var o=function(){var p=$.ig.util.tryParseInt64_2(m.toString(),$$0.$cd.floatNumber|64,a,n);n=p.p3;return p.ret}();if(o==false){n=m.charCodeAt(0)-65;n+=10}if(n>=c){k=m;continue}g+=n*j;j*=c}if(0!=k.charCodeAt(0)){f=new $$a4.nx(4,$$a4.$k.ef("Error_InvalidNumberSystemDigit",[k,b,c]));return{ret:0,p5:f}}if(e<g){g-=e-d+1}return{ret:g,p5:f}},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionXBase2Dec",$$a4.$ob.$type)},true);$c("UltraCalcFunctionBin2Dec:cw","UltraCalcFunctionXBase2Dec",{init:function(){$$t.$cv.init.call(this)},name:function(){return"bin2dec"},_an:function(){return-512},_am:function(){return 511},_aj:function(){return 2},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionBin2Dec",$$t.$cv.$type)},true);$c("UltraCalcFunctionHex2Dec:cx","UltraCalcFunctionXBase2Dec",{init:function(){$$t.$cv.init.call(this)},name:function(){return"hex2dec"},_an:function(){return-549755813888},_am:function(){return 549755813887},_aj:function(){return 16},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionHex2Dec",$$t.$cv.$type)},true);$c("UltraCalcFunctionOct2Dec:cy","UltraCalcFunctionXBase2Dec",{init:function(){$$t.$cv.init.call(this)},name:function(){return"oct2dec"},_an:function(){return-536870912},_am:function(){return 536870911},_aj:function(){return 8},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionOct2Dec",$$t.$cv.$type)},true);$c("UltraCalcFunctionXBase2XBase:cz","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var $self=this;var c=0;if(b==2){var d=a.pop()._toInt321();if(d<=0){return new $$a4.ny(new $$a4.nx(4))}else{c=d}}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e.toString();if(f.length>this._al()){return new $$a4.ny(new $$a4.nx(4))}var g;var h=function(){var i=$$t.$cv._ak(a._w(),f,$self._ak(),$self._ap(),$self._ao(),g);g=i.p5;return i.ret}();if(null!=g){return new $$a4.ny(g)}if(h<this._an()||this._am()<h){return new $$a4.ny(new $$a4.nx(4))}var i=$$t.$cr._as(h,this._aj(),this._an(),this._am());if(c>0){if(i.length<10&&i.length>c){return new $$a4.ny(new $$a4.nx(4))}}else{c=1}while(i.length<c){i=$y("{0}{1}","0",i)}return new $$a4.ny(i)},_ap:function(){},_ao:function(){},_an:function(){},_am:function(){},_ak:function(){},_aj:function(){},_al:function(){},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionXBase2XBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionBin2Oct:c0","UltraCalcFunctionXBase2XBase",{init:function(){$$t.$cz.init.call(this)},name:function(){return"bin2oct"},_ap:function(){return-512},_ao:function(){return 511},_an:function(){return-536870912},_am:function(){return 536870911},_ak:function(){return 2},_aj:function(){return 8},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionBin2Oct",$$t.$cz.$type)},true);$c("UltraCalcFunctionBin2Hex:c1","UltraCalcFunctionXBase2XBase",{init:function(){$$t.$cz.init.call(this)},name:function(){return"bin2hex"},_ap:function(){return-512},_ao:function(){return 511},_an:function(){return-549755813888},_am:function(){return 549755813887},_ak:function(){return 2},_aj:function(){return 16},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionBin2Hex",$$t.$cz.$type)},true);$c("UltraCalcFunctionOct2Bin:c2","UltraCalcFunctionXBase2XBase",{init:function(){$$t.$cz.init.call(this)},name:function(){return"oct2bin"},_ap:function(){return-536870912},_ao:function(){return 536870911},_an:function(){return-512},_am:function(){return 511},_ak:function(){return 8},_aj:function(){return 2},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionOct2Bin",$$t.$cz.$type)},true);$c("UltraCalcFunctionOct2Hex:c3","UltraCalcFunctionXBase2XBase",{init:function(){$$t.$cz.init.call(this)},name:function(){return"oct2hex"},_ap:function(){return-536870912},_ao:function(){return 536870911},_an:function(){return-549755813888},_am:function(){return 549755813887},_ak:function(){return 8},_aj:function(){return 16},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionOct2Hex",$$t.$cz.$type)},true);$c("UltraCalcFunctionHex2Bin:c4","UltraCalcFunctionXBase2XBase",{init:function(){$$t.$cz.init.call(this)},name:function(){return"hex2bin"},_ap:function(){return-549755813888},_ao:function(){return 549755813887},_an:function(){return-512},_am:function(){return 511},_ak:function(){return 16},_aj:function(){return 2},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionHex2Bin",$$t.$cz.$type)},true);$c("UltraCalcFunctionHex2Oct:c5","UltraCalcFunctionXBase2XBase",{init:function(){$$t.$cz.init.call(this)},name:function(){return"hex2oct"},_ap:function(){return-549755813888},_ao:function(){return 549755813887},_an:function(){return-536870912},_am:function(){return 536870911},_ak:function(){return 16},_aj:function(){return 8},_al:function(){return 10},$type:new $.ig.Type("UltraCalcFunctionHex2Oct",$$t.$cz.$type)},true);$c("UltraCalcFunctionConvert:c6","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop().toString();var d=a.pop().toString();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e._toDouble3();var g=$$t.$eo.d(d);var h=$$t.$eo.d(c);if(g==null||h==null){return new $$a4.ny(new $$a4.nx(3))}var i=h.c();var j=g.c();if(i==0||j==0||i!=j){return new $$a4.ny(new $$a4.nx(3))}d=g.l();c=h.l();f*=g.j();var k;switch(i){case 1:k=$$t.$c6._as(f,d,c);break;case 2:k=$$t.$c6._aj(f,d,c);break;case 3:k=$$t.$c6._ar(f,d,c);break;case 4:k=$$t.$c6._ap(f,d,c);break;case 5:k=$$t.$c6._al(f,d,c);break;case 6:k=$$t.$c6._ak(f,d,c);break;case 7:k=$$t.$c6._ao(f,d,c);break;case 8:k=$$t.$c6._an(f,d,c);break;case 9:k=$$t.$c6._aq(f,d,c);break;case 10:k=$$t.$c6._am(f,d,c);break;default:return new $$a4.ny(new $$a4.nx(3))}k/=h.j();k=$$a4.$aa.i(k);return new $$a4.ny(k)},name:function(){return"convert"},minArgs:function(){return 3},maxArgs:function(){return 3},_ar:function(a,b,c){var d=365.25;var e=24;var f=60;var g=60;var h=0;switch(b){case"yr":h=a*d*e*f*g;break;case"day":h=a*e*f*g;break;case"hr":h=a*f*g;break;case"mn":h=a*g;break;case"sec":h=a;break;default:throw new $$6.d(1,"fromUnit")}var i=$.ig.truncate(Math.round10N(h,0));var j=$.ig.truncate((h-i)*1e3);var k=$.ig.util.timeSpanInit2(0,0,0,i,j);switch(c){case"yr":return $.ig.util.timeSpanTotalDays(k)/d;case"day":return $.ig.util.timeSpanTotalDays(k);case"hr":return $.ig.util.timeSpanTotalHours(k);case"mn":return $.ig.util.timeSpanTotalMinutes(k);case"sec":return $.ig.util.timeSpanTotalSeconds(k);default:throw new $$6.d(1,"toUnit")}},_as:function(a,b,c){var d=14593.9029372064;var e=453.59237;var f=28.349523125;var g=1.66053100460465e-24;var h=0;switch(b){case"sg":h=a*d;break;case"lbm":h=a*e;break;case"ozm":h=a*f;break;case"g":h=a;break;case"u":h=a*g;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"u":return h/g;case"g":return h;case"ozm":return h/f;case"lbm":return h/e;case"sg":return h/d;default:throw new $$6.d(1,"toUnit")}},_aj:function(a,b,c){var d=72913.3858267717;var e=63360;var f=39.3700787401575;var g=36;var h=12;var i=.0138888888888889;var j=.166666666666667;var k=3.93700787401575e-9;var l=0;switch(b){case"Nmi":l=a*d;break;case"mi":l=a*e;break;case"m":l=a*f;break;case"yd":l=a*g;break;case"ft":l=a*h;break;case"in":l=a;break;case"pica":l=a*j;break;case"Pica":l=a*i;break;case"ang":l=a*k;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"ang":return l/k;case"pica":return l/j;case"Pica":return l/i;case"in":return l;case"ft":return l/h;case"yd":return l/g;case"m":return l/f;case"mi":return l/e;case"Nmi":return l/d;default:throw new $$6.d(1,"toUnit")}},_ap:function(a,b,c){var d=760;var e=.0075006168270417;var f=0;switch(b){case"Pa":case"p":f=a*e;break;case"atm":case"at":f=a*d;break;case"mmHg":f=a;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"mmHg":return f;case"Pa":case"p":return f/e;case"atm":case"at":return f/d;default:throw new $$6.d(1,"toUnit")}},_al:function(a,b,c){var d=4.4482216152605;var e=1e-5;var f=0;switch(b){case"lbf":f=a*d;break;case"N":f=a;break;case"dyn":case"dy":f=a*e;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"dyn":case"dy":return f/e;case"N":return f;case"lbf":return f/d;default:throw new $$6.d(1,"toUnit")}},_ak:function(a,b,c){var d=26845195376961.7;var e=36e9;var f=10550558526.2;var g=41868e3;var h=4184e4;var i=1e7;var j=13558179.483314;var k=1.60219000146921e-12;var l;switch(b){case"HPh":case"hh":l=a*d;break;case"Wh":case"wh":l=a*e;break;case"BTU":case"btu":l=a*f;break;case"cal":l=a*g;break;case"c":l=a*h;break;case"J":l=a*i;break;case"flb":l=a*j;break;case"e":l=a;break;
case"eV":case"ev":l=a*k;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"eV":case"ev":return l/k;case"e":return l;case"flb":return l/j;case"J":return l/i;case"c":return l/h;case"cal":return l/g;case"BTU":case"btu":return l/f;case"Wh":case"wh":return l/e;case"HPh":case"hh":return l/d;default:throw new $$6.d(1,"toUnit")}},_ao:function(a,b,c){var d=745.69987158227;var e;switch(b){case"HP":case"h":e=a*d;break;case"W":case"w":e=a;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"W":case"w":return e;case"HP":case"h":return e/d;default:throw new $$6.d(1,"toUnit")}},_an:function(a,b,c){var d=1e4;var e;switch(b){case"T":e=a*d;break;case"ga":e=a;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"ga":return e;case"T":return e/d;default:throw new $$6.d(1,"toUnit")}},_am:function(a,b,c){var d=768;var e=202.884136211058;var f=192;var g=115.291192848466;var h=96;var i=48;var j=6;var k=3;var l;switch(b){case"gal":l=a*d;break;case"l":case"lt":l=a*e;break;case"qt":l=a*f;break;case"uk_pt":l=a*g;break;case"pt":case"us_pt":l=a*h;break;case"cup":l=a*i;break;case"oz":l=a*j;break;case"tbs":l=a*k;break;case"tsp":l=a;break;default:throw new $$6.d(1,"fromUnit")}switch(c){case"tsp":return l;case"tbs":return l/k;case"oz":return l/j;case"cup":return l/i;case"pt":case"us_pt":return l/h;case"uk_pt":return l/g;case"qt":return l/f;case"l":case"lt":return l/e;case"gal":return l/d;default:throw new $$6.d(1,"toUnit")}},_aq:function(a,b,c){b=$$t.$c6._at(b);c=$$t.$c6._at(c);if($w(b,c)==0){return a}var d;switch(b){case"C":switch(c){case"F":return a*9/5+32;case"K":return a+273.15;default:throw new $$6.d(1,"toUnit")}case"F":d=(a-32)/9*5;switch(c){case"C":return d;case"K":return d+273.15;default:throw new $$6.d(1,"toUnit")}case"K":d=a-273.15;switch(c){case"C":return d;case"F":return d*9/5+32;default:throw new $$6.d(1,"toUnit")}default:throw new $$6.d(1,"fromUnit")}},_at:function(a){switch(a){case"C":case"cel":return"C";case"F":case"fah":return"F";case"K":case"kel":return"K";default:throw new $$6.d(1,"unit")}},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionConvert",$$a4.$ob.$type)},true);$c("UltraCalcFunctionConvert_UnitInfo:eo","Object",{k:null,e:false,i:0,b:0,d:function(a){var b=a;var c=1;var d=$$t.$eo.a(b);if(d==0){b=b.substr(1);d=$$t.$eo.a(b);if(d==0){return null}else{var e=function(){var f=$$t.$eo.h(a.substr(0,1),c);c=f.p1;return f.ret}();if(e==false){return null}}}var f=$$t.$eo.g(b);if(f==false&&c!=1){return null}return new $$t.eo(b,f,c,d)},init:function(a,b,c,d){$.ig.$op.init.call(this);this.k=a;this.e=b;this.i=c;this.b=d},l:function(){return this.k},f:function(){return this.e},j:function(){return this.i},c:function(){return this.b},a:function(a){switch(a){case"g":case"sg":case"lbm":case"u":case"ozm":return 1;case"m":case"mi":case"Nmi":case"in":case"ft":case"yd":case"ang":case"pica":case"Pica":return 2;case"yr":case"day":case"hr":case"mn":case"sec":return 3;case"Pa":case"p":case"atm":case"at":case"mmHg":return 4;case"N":case"dyn":case"dy":case"lbf":return 5;case"J":case"e":case"c":case"cal":case"eV":case"ev":case"HPh":case"hh":case"Wh":case"wh":case"flb":case"BTU":case"btu":return 6;case"HP":case"h":case"W":case"w":return 7;case"T":case"ga":return 8;case"C":case"cel":case"F":case"fah":case"K":case"kel":return 9;case"tsp":case"tbs":case"oz":case"cup":case"pt":case"us_pt":case"uk_pt":case"qt":case"gal":case"l":case"lt":return 10}return 0},h:function(a,b){switch(a){case"E":b=1e18;return{ret:true,p1:b};case"P":b=1e15;return{ret:true,p1:b};case"T":b=1e12;return{ret:true,p1:b};case"G":b=1e9;return{ret:true,p1:b};case"M":b=1e6;return{ret:true,p1:b};case"k":b=1e3;return{ret:true,p1:b};case"h":b=100;return{ret:true,p1:b};case"e":b=10;return{ret:true,p1:b};case"d":b=.1;return{ret:true,p1:b};case"c":b=.01;return{ret:true,p1:b};case"m":b=.001;return{ret:true,p1:b};case"u":b=1e-6;return{ret:true,p1:b};case"n":b=1e-9;return{ret:true,p1:b};case"p":b=1e-12;return{ret:true,p1:b};case"f":b=1e-15;return{ret:true,p1:b};case"a":b=1e-18;return{ret:true,p1:b}}b=1;return{ret:false,p1:b}},g:function(a){switch(a){case"g":case"u":return true;case"sg":case"lbm":case"ozm":return false;case"m":case"ang":return true;case"mi":case"Nmi":case"in":case"ft":case"yd":case"pica":case"Pica":return false;case"sec":return true;case"yr":case"day":case"hr":case"mn":return false;case"Pa":case"p":case"atm":case"at":case"mmHg":return true;case"N":case"dyn":case"dy":return true;case"lbf":return false;case"J":case"e":case"c":case"cal":case"eV":case"ev":case"Wh":case"wh":return true;case"HPh":case"hh":case"flb":case"BTU":case"btu":return false;case"HP":case"h":return false;case"W":case"w":return true;case"T":case"ga":return true;case"C":case"cel":case"F":case"fah":return false;case"K":case"kel":return true;case"tsp":case"tbs":case"oz":case"cup":case"pt":case"us_pt":case"uk_pt":case"qt":case"gal":return false;case"l":case"lt":return true}throw new $$6.d(2,"baseUnit must be a unit with no metric prefix","baseUnit")},$type:new $.ig.Type("UltraCalcFunctionConvert_UnitInfo",$.ig.$ot)},true);$c("UltraCalcFunctionDelta:c7","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d;if(b==2){c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}d=c._toDouble3()}else{d=0}c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();var f=e==d?1:0;return new $$a4.ny(f)},name:function(){return"delta"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionDelta",$$a4.$ob.$type)},true);$c("UltraCalcFunctionGeStep:c8","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d;if(b==2){c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}d=c._toDouble3()}else{d=0}c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();var f=e>=d?1:0;return new $$a4.ny(f)},name:function(){return"gestep"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionGeStep",$$a4.$ob.$type)},true);$c("UltraCalcFunctionComplex:c9","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d=b==3?a.pop().toString():"i";if($1(d,"i",4)!=0&&$1(d,"j",4)!=0){return new $$a4.ny(new $$a4.nx(1))}c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=c._toDouble3();var g=new $$t.eq(0,f,e,d);var h=g.toString();return new $$a4.ny(h)},name:function(){return"complex"},minArgs:function(){return 2},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionComplex",$$a4.$ob.$type)},true);$c("UltraCalcFunctionComplex_ComplexNumber:eq","Object",{ai:0,ae:0,am:null,x:false,init:function(a,b,c,d){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$t.$eq.init2.call(this,2,b,c,d,true)},init1:function(a,b,c){var $self=this;$.ig.$op.init.call(this);this.x=function(){var d=$$t.$eq.z(b,c,$self.ai,$self.ae,$self.am);$self.ai=d.p2;$self.ae=d.p3;$self.am=d.p4;return d.ret}()},init2:function(a,b,c,d,e){$.ig.$op.init.call(this);this.ai=b;this.ae=c;this.am=d;this.x=e},aj:function(a){if(arguments.length===1){this.ai=a;return a}else{return this.ai}},af:function(){return this.ae},an:function(a){if(arguments.length===1){if(a!="i"&&a!="j"){throw new $$6.f(0)}this.am=a;return a}else{return this.am}},y:function(){if(Number.isInfinity(this.aj())||$.ig.util.isNaN(this.aj())){return false}if(Number.isInfinity(this.af())||$.ig.util.isNaN(this.af())){return false}return this.x},toString:function(){if(this.y()==false){return"#NUM"}return $$t.$eq.al(this.aj(),this.af(),this.an())},ab:function(){return Math.sqrt(Math.pow(this.aj(),2)+Math.pow(this.af(),2))},ac:function(){if(this.af()==0&&this.aj()==0){throw new $$a4.afa(null,null)}return Math.atan2(this.af(),this.aj())},c:function(){return new $$t.eq(0,this.ai,(-this.ae),this.am)},d:function(){var a=Math.cos(this.aj())*Math.cosh(this.af());var b=-(Math.sin(this.aj())*Math.sinh(this.af()));return new $$t.eq(0,a,b,this.an())},e:function(){var a=Math.pow(2.718281828459045,this.aj());var b=Math.cos(this.af())*a;var c=Math.sin(this.af())*a;var d=new $$t.eq(0,b,c,this.an());return d},ad:function(){var a=Math.pow(this.aj(),2);var b=Math.pow(this.af(),2);var c=a+b;var d=Math.sqrt(c);return d},m:function(){var a=this.ad();var b=Math.log(a);var c=this.ak();var d=new $$t.eq(0,b,c,this.an());return d},n:function(){return $$t.$eq.k(this.m(),$$t.$eq.ag)},o:function(){return $$t.$eq.k(this.m(),$$t.$eq.ah)},u:function(a){var b=this.ad();var c=this.ak();var d=Math.pow(b,a);var e=c*a;var f=d*Math.cos(e);var g=d*Math.sin(e);return new $$t.eq(0,f,g,this.an())},v:function(){var a=Math.sin(this.aj())*Math.cosh(this.af());var b=Math.cos(this.aj())*Math.sinh(this.af());return new $$t.eq(0,a,b,this.an())},w:function(){var a=this.ad();var b=this.ak();var c=Math.sqrt(a);var d=b/2;var e=c*Math.cos(d);var f=c*Math.sin(d);return new $$t.eq(0,e,f,this.an())},ak:function(){return Math.atan2(this.af(),this.aj())},z:function(a,b,c,d,e){b=$x(b," ","");var f=$$t.$eq.b(b);var g=f.length;if(g>2||g<=0){c=0;d=0;e="i";return{ret:false,p2:c,p3:d,p4:e}}var h;var i;var j;if(g==1){i=b;j=function(){var k=$$t.$eq.aa(a,b,d,e);d=k.p2;e=k.p3;return k.ret}();if(j){c=0}else{d=0;j=function(){var k=$$a4.$aa.c(b,a,c);c=k.p2;return k.ret}();if(j==false){return{ret:false,p2:c,p3:d,p4:e}}}}else{h=f[0];i=f[1];j=function(){var k=$$a4.$aa.c(h,a,c);c=k.p2;return k.ret}();if(j==false){d=0;e="i";return{ret:false,p2:c,p3:d,p4:e}}j=function(){var k=$$t.$eq.aa(a,i,d,e);d=k.p2;e=k.p3;return k.ret}();if(j==false){return{ret:false,p2:c,p3:d,p4:e}}}return{ret:true,p2:c,p3:d,p4:e}},aa:function(a,b,c,d){d=b.contains("j")?"j":"i";if(b.contains("i")==false&&b.contains("j")==false){c=0;return{ret:false,p2:c,p3:d}}switch(b){case"i":case"j":case"+i":case"+j":c=1;return{ret:true,p2:c,p3:d};case"-i":case"-j":c=-1;return{ret:true,p2:c,p3:d}}b=$x(b,"i",String.empty());b=$x(b,"j",String.empty());return{ret:function(){var e=$$a4.$aa.c(b,a,c);c=e.p2;return e.ret}(),p2:c,p3:d}},b:function(a){var b=new $$4.x(String,2,1);var c=a.substr(0,1);var d=$.ig.util.toCharArray(a);for(var e=1;e<d.length;e++){var f=d[e];if(f=="-"||f=="+"){var g=d[e-1].toString().toLowerCase();if(g!="e"){b.add(c);c=String.empty()}}c+=f}b.add(c);return b.toArray()},al:function(a,b,c){var d="G";a=$$a4.$aa.i(a);b=$$a4.$aa.i(b);var e;if(a==0&&b==0){e="0"}else if(a!=0&&b==0){e=$8(a,d,null)}else{var f=b>0?"+":"-";var g;if(a!=0){g=$8(a,d,null)}else{g=String.empty();if(f=="+"){f=String.empty()}}b=Math.abs(b);var h=$y("{0}{1}",f,b==1?String.empty():$8(b,d,null));e=$y("{0}{1}{2}",g,h,c)}return e},g:function(){if($$t.$eq.f==null){$$t.$eq.f=new $$t.eq(2,0,0,"i",false)}return $$t.$eq.f},i:function(a,b){if($w(b.an(),a.an())!=0){return $$t.$eq.g()}var c=Math.pow(b.aj(),2)+Math.pow(b.af(),2);var d=(a.aj()*b.aj()+a.af()*b.af())/c;var e=(a.af()*b.aj()-a.aj()*b.af())/c;var f=new $$t.eq(0,d,e,a.an());return f},j:function(a,b){if($w(a.an(),b.an())!=0){return $$t.$eq.g()}var c=a.aj()*b.aj()-a.af()*b.af();var d=a.aj()*b.af()+a.af()*b.aj();var e=new $$t.eq(0,c,d,a.an());return e},k:function(a,b){var c=a.an();var d=a.aj()*b;var e=a.af()*b;return new $$t.eq(0,d,e,c)},h:function(a,b){if($w(a.an(),b.an())!=0){return $$t.$eq.g()}var c=a.aj()+b.aj();var d=a.af()+b.af();var e=new $$t.eq(0,c,d,a.an());return e},l:function(a,b){if($w(a.an(),b.an())!=0){return $$t.$eq.g()}var c=a.aj()-b.aj();var d=a.af()-b.af();var e=new $$t.eq(0,c,d,a.an());return e},$type:new $.ig.Type("UltraCalcFunctionComplex_ComplexNumber",$.ig.$ot)},true);$c("UltraCalcFunctionImAbs:da","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(e.ab())},name:function(){return"imabs"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImAbs",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImaginary:db","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop().toString();var d=new $$t.eq(1,a._w(),c);if(d.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(d.af())},name:function(){return"imaginary"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionImaginary",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImArgument:dc","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(e.ac())},name:function(){return"imargument"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImArgument",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImConjugate:dd","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.c();return new $$a4.ny(f.toString())},name:function(){return"imconjugate"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImConjugate",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImCos:de","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.d();return new $$a4.ny(f.toString())},name:function(){return"imcos"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImCos",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImDiv:df","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=a.pop();if(f.isError()){return f}var g=f.toString();var h=new $$t.eq(1,a._w(),g);if(h.y()==false){return new $$a4.ny(new $$a4.nx(4))}var i=$$t.$eq.i(h,e);if(i.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(i.toString())},name:function(){return"imdiv"},minArgs:function(){return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImDiv",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImExp:dg","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.e();if(f.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f.toString())},name:function(){return"imexp"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImExp",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImLn:dh","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.m();if(f.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f.toString())},name:function(){return"imln"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImLn",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImReal:di","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(e.aj())},name:function(){return"imreal"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImReal",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImSub:dj","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=a.pop();if(f.isError()){return f}var g=f.toString();var h=new $$t.eq(1,a._w(),g);if(h.y()==false){return new $$a4.ny(new $$a4.nx(4))}var i=$$t.$eq.l(h,e);if(i.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(i.toString())},name:function(){return"imsub"},minArgs:function(){return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImSub",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImProduct:dk","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b,true);$$0.$an.reverse(c);var d=null;var e=null;for(var g=0;g<c.length;g++){var f=c[g];if(f.isError()){return new $$a4.ny(f.toErrorValue())}var h=new $$t.eq(1,a._w(),f.toString());if(h.y()==false){return new $$a4.ny(new $$a4.nx(4))}if(e==null){e=h.an()}else if(h.an()!=e){return new $$a4.ny(new $$a4.nx(4))}if(d==null){d=h}else{d=$$t.$eq.j(d,h)}}if(d.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(d.toString())},canParameterBeEnumerable:function(a){return true},name:function(){return"improduct"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionImProduct",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImSum:dl","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b,true);$$0.$an.reverse(c);var d=null;var e=null;for(var g=0;g<c.length;g++){var f=c[g];if(f.isError()){return new $$a4.ny(f.toErrorValue())}var h=new $$t.eq(1,a._w(),f.toString());if(h.y()==false){return new $$a4.ny(new $$a4.nx(4))}if(e==null){e=h.an()}else if(h.an()!=e){return new $$a4.ny(new $$a4.nx(4))}if(d==null){d=h}else{d=$$t.$eq.h(d,h)}}if(d.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(d.toString())},canParameterBeEnumerable:function(a){return true},name:function(){return"imsum"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionImSum",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImLog10:dm","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.n();if(f.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f.toString())},name:function(){return"imlog10"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImLog10",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImLog2:dn","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.o();if(f.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f.toString())},name:function(){return"imlog2"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImLog2",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImSin:dp","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.v();if(f.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f.toString())},name:function(){return"imsin"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImSin",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImSqrt:dq","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();var e=new $$t.eq(1,a._w(),d);if(e.y()==false){return new $$a4.ny(new $$a4.nx(4))}var f=e.w();if(f.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f.toString())},name:function(){return"imsqrt"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImSqrt",$$a4.$ob.$type)},true);$c("UltraCalcFunctionImPower:dr","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();var e=a.pop();if(e.isError()){return e}var f=e.toString();var g=new $$t.eq(1,a._w(),f);if(g.y()==false){return new $$a4.ny(new $$a4.nx(4))}var h=g.u(d);if(h.y()==false){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(h.toString())},name:function(){return"impower"},minArgs:function(){return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionImPower",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDollarFr:ds","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDecimal2();if(d<0){return new $$a4.ny(new $$a4.nx(4))}var e=$.ig.truncate(d);if(e==0){return new $$a4.ny(new $$a4.nx(2))}c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=c._toDouble3();var g=$$a4.$aa.j(f);var h=f-g;h*=e;var i=$$t.$ds._aj(e);h/=i;f=g+h;return new $$a4.ny(f)},_aj:function(a){var b=Math.log10(a);var c=Math.round(b);var d=Math.pow(10,c);if(d<a){d*=10}var e=Math.round10N(d,0);return e},name:function(){return"dollarfr"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionDollarFr",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDollarDe:dt","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDecimal2();if(d<0){return new $$a4.ny(new $$a4.nx(4))}var e=$.ig.truncate(d);if(e==0){return new $$a4.ny(new $$a4.nx(2))}c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=c._toDouble3();var g=$$a4.$aa.j(f);var h=f-g;h/=e;var i=$$t.$ds._aj(e);h*=i;f=g+h;return new $$a4.ny(f)},name:function(){return"dollarde"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionDollarDe",$$a4.$ob.$type)},true);$c("UltraCalcFunctionInfo:du","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c.toString();switch(d){case"system":return new $$a4.ny("pcdos");case"numfile":case"origin":case"recalc":case"release":break;case"memavail":case"memused":case"totmem":break}return new $$a4.ny(new $$a4.nx(3))},name:function(){return"info"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionInfo",$$a4.$ob.$type)},true);$c("UltraCalcFunctionN:dv","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(c.isBoolean()){d=c._toBoolean1()?1:0;return new $$a4.ny(d)}var e=c._getResolvedValue();if($b($$0.$s.$type,e)!==null){return new $$a4.ny(e)}if(typeof e==="string"){return new $$a4.ny(0)}var f=function(){var g=c._toDouble1(d);d=g.p0;return g.ret}();if(f){return new $$a4.ny(d)}return new $$a4.ny(0)},name:function(){return"n"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionN",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFact:dw","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDecimal2();if(d<0){return new $$a4.ny(new $$a4.nx(4))}var e=$.ig.truncate(d);var f=$$t.$dw._aj(e,1);if(Number.isInfinity(f)){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f)},name:function(){return"fact"},minArgs:function(){return 1},maxArgs:function(){return 1},_aj:function(a,b){if(a==0){a=1}var c=1;for(var d=a;d>1;d-=b){c*=d}return c},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionFact",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFactDouble:dx","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDecimal2();if(d<0){return new $$a4.ny(new $$a4.nx(4))}var e=$.ig.truncate(d);var f=$$t.$dw._aj(e,2);if(Number.isInfinity(f)){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(f)},name:function(){return"factdouble"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionFactDouble",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCombin:dy","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDecimal2();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDecimal2();var f=$.ig.truncate(d);var g=$.ig.truncate(e);if(e<0||d<0||g<f){return new $$a4.ny(new $$a4.nx(4))}var h=$$t.$dy._al(g,f,false);if($.ig.util.isNaN(h)){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(h)},_al:function(a,b,c){if(c){a=a+b-1}if(a<=170){var d=$$t.$dw._aj(a,1);var e=$$t.$dw._aj(b,1);var f=a-b;var g=$$t.$dw._aj(f,1);var h=d/(e*g);return h}else{return $$t.$dy._am(a,b)}},_am:function(a,b){if(b>a){return NaN}if($$t.$dy._aj==null){$$t.$dy._aj=new $$4.aa($$0.$aw.$type)}else{$$t.$dy._aj.clear()}if($$t.$dy._ak==null){$$t.$dy._ak=new $$4.aa($$0.$aw.$type)}else{$$t.$dy._ak.clear()}var c=1;while(true){if(b<=0){break}if(b>$a(a,2)){b=a-b}else{$$t.$dy._aj.push(b);$$t.$dy._ak.push(a);a--;b--}}while($$t.$dy._ak.count()>0){var d=$$t.$dy._ak.pop();var e=$$t.$dy._aj.pop();c=d*c/e}return c},name:function(){return"combin"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionCombin",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCombina:dz","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDecimal2();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDecimal2();var f=$.ig.truncate(d);var g=$.ig.truncate(e);if(e<0||d<0||g==0&&f>0){return new $$a4.ny(new $$a4.nx(4))}var h=$$t.$dy._al(g,f,true);if($.ig.util.isNaN(h)){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(h)},name:function(){return"combina"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionCombina",$$a4.$ob.$type)},true);$c("UltraCalcFunctionBinomDist:d0","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toBoolean1();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=$.ig.truncate(c._toDecimal2());c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var g=$.ig.truncate(c._toDecimal2());return $$t.$d0._aj(f,e,d?0:g,g)},_aj:function(a,b,c,d){if(c<0||c>a||b<0||b>1||c>d||d>a){return new $$a4.ny(new $$a4.nx(4))}var e=0;if(a>=1030){var f=Math.pow(10,-12);var g=0;var h=0;var i=c;var j=d;var k=a;var l=b;var m=$.ig.truncate(k*l);var n=c!=d;g++;if(i<=m&&m<=j){h++}var o=1;var p=false;var q=m+1;while(!p&&q<=k){var r=o*(k-q+1)*l/(q*(1-l));g+=r;if(i<=q&&q<=j){h+=r}if(r<=f){p=true}o=r;q++}o=1;p=false;q=m-1;while(!p&&q>=0){var s=o*(q+1)*(1-l)/((k-q)*l);g+=s;if(i<=q&&q<=j){h+=s}if(s<=f){p=true}o=s;q--}e=h/g}else{for(var t=c;t<=d&&!$.ig.util.isNaN(e);t++){e+=$$t.$d0._ak(t,a,b)}}if($.ig.util.isNaN(e)){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(e)},_ak:function(a,b,c){var d=$$t.$dy._al(b,a,false);return d*Math.pow(c,a)*Math.pow(1-c,b-a)},name:function(){return"binomdist"},minArgs:function(){return 4},maxArgs:function(){return 4},$type:new $.ig.Type("UltraCalcFunctionBinomDist",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCritBinom:d1","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=$.ig.truncate(c._toDecimal2());if(f<0||e<=0||e>=1||d<=0||d>=1){return new $$a4.ny(new $$a4.nx(4))}var g=0;if(f>=1030){var h=Math.pow(10,-12);var i=f;var j=e;var k,l;if(d<=.5){k=Math.sqrt(Math.log(1/(d*d)));l=-k+(2.515517+.802853*k+.010328*k*k)/(1+1.432788*k+.189269*k*k+.001308*k*k*k)}else{k=Math.sqrt(Math.log(1/Math.pow(1-d,2)));l=k-(2.515517+.802853*k+.010328*k*k)/(1+1.432788*k+.189269*k*k+.001308*k*k*k)}var m=$.ig.truncate(Math.floor(i*j+l*Math.sqrt(i*j*(1-j))));if(m<0){m=0}else if(m>i){m=i}var n=$.ig.truncate(i*j);var o=0;var p=0;var q=0;o=o+1;if(n==m){p=p+1}if(n<=m){q=q+1}var r=1;var s=false;var t=n+1;while(!s&&t<=i){var u=r*(i-t+1)*j/(t*(1-j));o+=u;if(t==m){p+=u}if(t<=m){q+=u}if(u<=h){s=true}r=u;t=t+1}r=1;s=false;t=n-1;while(!s&&t>=0){var v=r*(t+1)*(1-j)/((i-t)*j);o=o+v;if(t==m){p+=v}if(t<=m){q+=v}if(v<=h){s=true}r=v;t=t-1}var w=p/o;var x=q/o;var y=x-w;while(true){if(y<d&&x>=d){g=m;break}if(y<d&&x<d){var z=w*(i-m)*j/m/(1-j);y=x;x=x+z;w=z;m++}else if(y>d&&x>d){var aa=w*m*(1-j)/(i-m+1)/j;x=y;y=y-w;w=aa;m--}else{break}}}else{var ab=0;for(g=0;g<=f;g++){ab+=$$t.$d0._ak(g,f,e);if(ab>=d){break}}}return new $$a4.ny(g)},name:function(){return"critbinom"},minArgs:function(){return 3},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionCritBinom",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDegrees:d2","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();var e=$$t.$d2._aj(d);return new $$a4.ny(e)},name:function(){return"degrees"},minArgs:function(){return 1},maxArgs:function(){return 1},_aj:function(a){var b=180/Math.PI;return a*b},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionDegrees",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRadians:d3","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();var e=$$t.$d3._aj(d);return new $$a4.ny(e)},name:function(){
return"radians"},minArgs:function(){return 1},maxArgs:function(){return 1},_aj:function(a){var b=Math.PI/180;return a*b},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionRadians",$$a4.$ob.$type)},true);$c("UltraCalcFunctionGcd:d4","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b,true);var d=c[0]._toInt();if(d<0){return new $$a4.ny(new $$a4.nx(4))}var e;if(c.length==1){return new $$a4.ny(d)}for(var f=1;f<c.length;f++){var g=c[f];if(g.isError()){return new $$a4.ny(g.toErrorValue())}e=g._toInt();if(e<0){return new $$a4.ny(new $$a4.nx(4))}d=$$t.$d4._aj(d,e)}return new $$a4.ny(d)},canParameterBeEnumerable:function(a){return true},name:function(){return"gcd"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},_aj:function(a,b){if(b==0){return a}return $$t.$d4._aj(b,a%b)},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionGcd",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLcm:d5","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b,true);var d=c[0]._toInt();if(d<0){return new $$a4.ny(new $$a4.nx(4))}var e;if(c.length==1){return new $$a4.ny(d)}for(var f=1;f<c.length;f++){var g=c[f];if(g.isError()){return new $$a4.ny(g.toErrorValue())}e=g._toInt();if(e<0){return new $$a4.ny(new $$a4.nx(4))}d=$$t.$d5._aj(d,e)}return new $$a4.ny(d)},canParameterBeEnumerable:function(a){return true},name:function(){return"lcm"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},_aj:function(a,b){if(a==0&&b==0){return 0}return $a(a*b,$$t.$d4._aj(a,b))},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionLcm",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMultinomial:d6","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b,true);var d=0;var e=1;for(var f=0;f<c.length;f++){var g=c[f];if(g.isError()){return new $$a4.ny(g.toErrorValue())}var h=g._toInt();if(h<0){return new $$a4.ny(new $$a4.nx(4))}d+=h;e*=$$t.$dw._aj(h,1)}var i=$$t.$dw._aj(d,1);var j=i/e;return new $$a4.ny(j)},canParameterBeEnumerable:function(a){return true},name:function(){return"multinomial"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionMultinomial",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMRound:d7","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e._toDouble3();if(f<0&&d>0||f>0&&d<0){return new $$a4.ny(new $$a4.nx(4))}var g=$$t.$d7._aj(f,d);return new $$a4.ny(g)},name:function(){return"mround"},minArgs:function(){return 2},maxArgs:function(){return 2},_aj:function(a,b){var c=a/b;if(Number.isInfinity(c)||$.ig.util.isNaN(c)){return 0}c+=.5;c=Math.floor(c);return c*b},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionMRound",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRandBetween:d8","BuiltInFunctionBase",{init:function(){this._aj=new $$6.s(0);$$a4.$ob.init.call(this)},_aj:null,evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toInt();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toInt();if(d<e){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(this._aj.next2(e,d+1))},name:function(){return"randbetween"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionRandBetween",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRoman:d9","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d;if(b==2){d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}var e=d._getResolvedValue();if($b($$0.$aq.$type,e)!==null){c=e?0:4}else{c=d._toInt()}}else{c=0}d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}var f=d._toInt();if(f<0||f>3999){return new $$a4.ny(new $$a4.nx(1))}var g=new $$t.er(f);return new $$a4.ny(g.p(c))},name:function(){return"roman"},minArgs:function(){return 1},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionRoman",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRoman_RomanNumeral:er","Object",{k:0,init:function(a){$.ig.$op.init.call(this);if(a<0||a>3999){throw new $$6.d(2,"Number must be between 1 and 3999","number")}this.k=a},l:function(){return this.k},b:function(){if($$t.$er.a==null){$$t.$er.a=new $$4.x($$6.$u.$type.specialize($$0.$aw.$type,String),2,13);$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,1e3,"M"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,900,"CM"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,500,"D"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,400,"CD"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,100,"C"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,90,"XC"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,50,"L"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,40,"XL"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,10,"X"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,9,"IX"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,5,"V"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,4,"IV"));$$t.$er.a.add($$6.$w.a($$0.$aw.$type,String,1,"I"))}return $$t.$er.a},d:function(){if($$t.$er.c==null){$$t.$er.c=new $$4.x($$6.$u.$type.specialize($$0.$aw.$type,String),2,17);$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,1e3,"M"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,950,"LM"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,900,"CM"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,500,"D"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,450,"LD"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,400,"CD"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,100,"C"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,95,"VC"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,90,"XC"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,50,"L"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,45,"VL"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,40,"XL"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,10,"X"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,9,"IX"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,5,"V"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,4,"IV"));$$t.$er.c.add($$6.$w.a($$0.$aw.$type,String,1,"I"))}return $$t.$er.c},f:function(){if($$t.$er.e==null){$$t.$er.e=new $$4.x($$6.$u.$type.specialize($$0.$aw.$type,String),2,21);$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,1e3,"M"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,990,"XM"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,950,"LM"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,900,"CM"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,500,"D"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,490,"XD"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,450,"LD"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,400,"CD"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,100,"C"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,99,"IC"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,95,"VC"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,90,"XC"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,50,"L"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,49,"IL"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,45,"VL"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,40,"XL"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,10,"X"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,9,"IX"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,5,"V"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,4,"IV"));$$t.$er.e.add($$6.$w.a($$0.$aw.$type,String,1,"I"))}return $$t.$er.e},h:function(){if($$t.$er.g==null){$$t.$er.g=new $$4.x($$6.$u.$type.specialize($$0.$aw.$type,String),2,23);$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,1e3,"M"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,995,"VM"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,990,"XM"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,950,"LM"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,900,"CM"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,500,"D"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,495,"VD"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,490,"XD"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,450,"LD"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,400,"CD"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,100,"C"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,99,"IC"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,95,"VC"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,90,"XC"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,50,"L"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,49,"IL"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,45,"VL"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,40,"XL"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,10,"X"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,9,"IX"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,5,"V"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,4,"IV"));$$t.$er.g.add($$6.$w.a($$0.$aw.$type,String,1,"I"))}return $$t.$er.g},j:function(){if($$t.$er.i==null){$$t.$er.i=new $$4.x($$6.$u.$type.specialize($$0.$aw.$type,String),2,25);$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,1e3,"M"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,999,"IM"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,995,"VM"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,990,"XM"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,950,"LM"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,900,"CM"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,500,"D"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,499,"ID"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,495,"VD"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,490,"XD"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,450,"LD"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,400,"CD"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,100,"C"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,99,"IC"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,95,"VC"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,90,"XC"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,50,"L"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,49,"IL"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,45,"VL"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,40,"XL"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,10,"X"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,9,"IX"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,5,"V"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,4,"IV"));$$t.$er.i.add($$6.$w.a($$0.$aw.$type,String,1,"I"))}return $$t.$er.i},toString:function(){return this.p(0)},o:function(a){if(a){return this.p(0)}else{return this.p(4)}},p:function(a){if(this.k==0){return String.empty()}return $$t.$er.m(this.k,a)},m:function(a,b){var c;switch(b){case 0:c=$$t.$er.b();break;case 1:c=$$t.$er.d();break;case 2:c=$$t.$er.f();break;case 3:c=$$t.$er.h();break;case 4:c=$$t.$er.j();break;default:throw new $$6.d(1,"form")}var d=new $$6.aj(0);var e=String.empty();var g=c.getEnumerator();while(g.moveNext()){var f=g.current();while(a>=f._c){a-=f._c;d.l(f._d)}}return d.toString()},$type:new $.ig.Type("UltraCalcFunctionRoman_RomanNumeral",$.ig.$ot)},true);$c("UltraCalcFunctionRoundDown:ea","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toInt();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e._toDouble3();var g=d;var h=Math.pow(10,g);f*=h;f=$$a4.$aa.i(f);f=$$a4.$aa.j(f);f/=h;f=$$a4.$aa.i(f);if(f==-0){f=0}return new $$a4.ny(f)},name:function(){return"rounddown"},minArgs:function(){return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionRoundDown",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRoundUp:eb","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toInt();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f=e._toDouble3();var g=f>=0?1:-1;f=Math.abs(f);var h=Math.pow(10,d);f*=h;f=$$a4.$aa.i(f);f=Math.ceil(f);f/=h;f*=g;f=$$a4.$aa.i(f);if(f==-0){f=0}return new $$a4.ny(f)},name:function(){return"roundup"},minArgs:function(){return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionRoundUp",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSeriesSum:ec","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=this._getArguments(a,b-3,true);$$0.$an.reverse(c);var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}var e=d._toInt();d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}var f=d._toInt();d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}var g=d._toDouble3();var h=f;var i=0;for(var k=0;k<c.length;k++){var j=c[k];if(j.isError()){return new $$a4.ny(j.toErrorValue())}var l=j._toDouble3();var m=l*Math.pow(g,h);i+=m;h+=e}return new $$a4.ny(i)},canParameterBeEnumerable:function(a){return a==3},name:function(){return"seriessum"},minArgs:function(){return 4},maxArgs:function(){return 4},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionSeriesSum",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSign:ed","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();var e;if(d<0){e=-1}else if(d>0){e=1}else{e=0}return new $$a4.ny(e)},name:function(){return"sign"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSign",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSqrtPi:ee","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();if(d<0){return new $$a4.ny(new $$a4.nx(4))}var e=Math.sqrt(Math.PI*d);return new $$a4.ny(e)},name:function(){return"sqrtpi"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionSqrtPi",$$a4.$ob.$type)},true);$c("UltraCalcFunctionChoose:ef","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new $$4.x($$a4.$ny.$type,0);for(var d=0;d<b-1;d++){c.insert(0,a.pop())}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f;if(function(){var g=e._toDouble1(f);f=g.p0;return g.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}var g=$.ig.truncate(Math.floor(f));if(g<1||c.count()<g){return new $$a4.ny(new $$a4.nx(1))}return c.__inner[g-1]},name:function(){return"choose"},minArgs:function(){return 2},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},_s:function(){return true},_v:function(a){if(a==0){return true}return false},$type:new $.ig.Type("UltraCalcFunctionChoose",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRept:eg","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toInt321();if(e<0){return new $$a4.ny(new $$a4.nx(1))}var f=d.toString();if(e==0||String.isNullOrEmpty(f)){return new $$a4.ny(String.empty())}var g=f.length*e;if(32767<g){return new $$a4.ny(new $$a4.nx(1))}var h=new $$6.aj(1,g);for(var i=0;i<e;i++){h.l(f)}return new $$a4.ny(h.toString())},name:function(){return"rept"},minArgs:function(){return 2},maxArgs:function(){return 2},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionRept",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSubtotal:eh","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new Array(b-1);for(var d=c.length-1;d>=0;d--){var e=a.pop();c[d]=e}var f=a.pop();if(f.isError()){return f}var g;if(function(){var h=f._toDouble1(g);g=h.p0;return h.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}var h=$.ig.truncate(g);var i=false;if(h>100){i=true;h-=100}switch(h){case 1:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,$$t.$d._aj);case 2:return $$a4.$n8.l(c,$$a4.$n8.c(a,false,false,i)|2048);case 3:return $$a4.$n8.l(c,$$a4.$n8.c(a,true,false,i)|2048);case 4:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,$$t.$u._aj);case 5:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,$$t.$t._aj);case 6:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,$$t.$j._aj);case 7:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,function(j){return $$t.$br._ak(j,true)});case 8:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,function(j){return $$t.$br._ak(j,false)});case 9:{var j=0;return $$a4.$n8.g(c,$$a4.$n8.b(a,false,false,i)|2048,function(k){j+=k})||new $$a4.ny(j)}case 10:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,function(k){return $$t.$bq._aj(k,true)});case 11:return $$a4.$n8.e(c,$$a4.$n8.b(a,false,false,i)|2048,function(k){return $$t.$bq._aj(k,false)});default:return new $$a4.ny(new $$a4.nx(1))}},canParameterBeEnumerable:function(a){return 1<=a},name:function(){return"subtotal"},minArgs:function(){return 2},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSubtotal",$$a4.$ob.$type)},true);$c("UltraCalcFunctionText:ei","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return d}if(c.isError()){return c}if(c.isBoolean()){return new $$a4.ny(new $$a4.nx(1))}var e=d.toString();var f=c.toString();var g;var h=function(){var i=d._toDouble1(g);g=i.p0;return i.ret}();if(h==false&&d.isString()){var i=this._aj(e);if(i.hasValue()){g=i.value();h=true}else{var j;if(function(){var k=$$0.$s.tryParse(e,j);j=k.p1;return k.ret}()){var k=$$a4.$ny._dateTimeToExcelDate(d._o(),j);if(k.hasValue()){g=k.value();h=true}}}}var l=NaN;if(h){l=g}var m=new $$a4.nd(0,d._o(),f,a._w());var n;if(function(){var o=m.v(l,e,n);n=o.p2;return o.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(n)},name:function(){return"text"},minArgs:function(){return 2},maxArgs:function(){return 2},_aj:function(a){var b=$$t.$ei._al().i(a);if(b.i()==false){return $m(Number,null)}var c=0;var d=0;var e=0;var f=0;var g=b.m().item1("Hours");if(g.d()!=0){if(function(){var h=$al(g.g(),c);c=h.p1;return h.ret}()==false){}}var h=b.m().item1("Minutes");if(h.d()!=0){if(function(){var i=$al(h.g(),d);d=i.p1;return i.ret}()==false){}}var i=b.m().item1("Seconds");if(i.d()!=0){if(function(){var j=$al(i.g(),e);e=j.p1;return j.ret}()==false){}}var j=b.m().item1("Milliseconds");if(j.d()!=0){var k=j.g();while(k.length<4){k+="0"}if(function(){var l=$al(k,f);f=l.p1;return l.ret}()==false){}}var l=b.m().item1("AMPM");if(l.d()!=0){if(c>=12){return $m(Number,null)}if(l.g().startsWith1("P",$$v.$an.j())){c+=12}}return $m(Number,c/24+d/1440+e/86400+f/864e6)},_al:function(){if($$t.$ei._ak==null){var a="(?'Hours'[0-9]{1,4})\\s*";var b="\\s*(?'Minutes'[0-9]?[0-9])\\s*";var c="\\s*(?'Seconds'[0-9]?[0-9])\\s*";var d=".\\s*(?'Milliseconds'[0-9]{0,4})[0-9]*\\s*";var e="(\\s+(?'AMPM'(a|p)m?)\\s*)";var f=$y("({0}{1})",a,e);var g=$z("({0}:{1}(:{2}({3})?)?{4}?)",[a,b,c,d,e]);var h=$z("({0}:{1}{2}{3}?)",[b,c,d,e]);$$t.$ei._ak=new $$8.l($y("^({0}|{1}|{2})$",f,g,h),8|1|32|512)}return $$t.$ei._ak},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionText",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIfError:ej","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=d._getResolvedValue();if($b($$a4.$nx.$type,e)!==null){return c}return new $$a4.ny(e)},name:function(){return"iferror"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionIfError",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCountA:ek","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.k(a,b,673)},canParameterBeEnumerable:function(a){return true},name:function(){return"counta"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionCountA",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSearch:el","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b>2){c=a.pop()}var d=a.pop();var e=a.pop();if(e.isError()){return e}if(d.isError()){return d}if(c!=null&&c.isError()){return c}var f=e.toString();var g=d.toString();var h=0;if(c!=null){var i;if(function(){var j=c._toDouble1(i);i=j.p0;return j.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}h=$.ig.truncate($$a4.$aa.j(i))-1;if(h<0||g.length<=h){return new $$a4.ny(new $$a4.nx(1))}}var j=a._w().compareInfo().indexOf6(g,f,h,1);if(j<0){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(j+1)},name:function(){return"search"},minArgs:function(){return 2},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSearch",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSearchB:em","UltraCalcFunctionSearch",{init:function(){$$t.$el.init.call(this)},name:function(){return"searchb"},$type:new $.ig.Type("UltraCalcFunctionSearchB",$$t.$el.$type)},true);$c("UltraCalcFunctionAveDev:en","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=this._getArguments(a,b,true);var e=new $$4.x(Number,2,d.length);for(var g=0;g<d.length;g++){var f=d[g];if(f==null){continue}if(f.isError()){return new $$a4.ny(f.toErrorValue())}var h;if(function(){var i=f._toDouble1(h);h=i.p0;return i.ret}()){c+=h;e.add(h)}}var i=c/e.count();var j=0;for(var k=0;k<e.count();k++){j+=Math.abs(e.__inner[k]-i)}var l=j/e.count();return new $$a4.ny(l)},name:function(){return"avedev"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionAveDev",$$a4.$ob.$type)},true);$c("UltraCalcConditionalFunctionBase:es","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},doesParameterAllowIntermediateResultArray:function(a,b){if(a==1){return b==false}return false},evaluate:function(a,b){var c=null;if(this._am()&&b==3){c=a.pop()}var d=a.pop();var e=a.pop();if(e.isError()){return e}if(d.isError()){return d}if(c!=null&&c.isError()){return c}if(e.isArrayGroup()||e.isReference()==false&&!e.isArray()){return new $$a4.ny(new $$a4.nx(1))}var f=new $$t.fz(a,d._getResolvedValue());if(c!=null&&(c.isArrayGroup()||c.isReference()==false&&!c.isArray())){return new $$a4.ny(new $$a4.nx(1))}var g=e.toArrayProxy();var h=null;if(c!=null){h=$b($$a4.$z0.$type,c._d(false,false).item(0,0).value());if(h==null){return new $$a4.ny(new $$a4.nx(1))}}var i=new $$t.f0(this,f,g);if(h==null){g._m(false,i.h.runOn(i))}else{var j=h._columnIndex();var k=h._row().index();var l=h._worksheet();var m=l.columns().maxCount()-1;var n=Math.min(m,j+g.getLength(0)-1);var o=l.rows().maxCount()-1;var p=Math.min(o,k+g.getLength(1)-1);var q=l._cx(k,j,p,n);var r=new $$a4.ny(q._c());r._n=c._n;r._y(true);var s=r._d(false,false);s._m(false,i.h.runOn(i))}return this._ak(i.e(),i.g())},minArgs:function(){return 2},maxArgs:function(){if(this._am()){return 3}return 2},_v:function(a){if(a==2){return false}return true},_ak:function(a,b){},_al:function(){return true},_am:function(){return true},_aj:function(a,b,c,d,e){if(e==null&&b%2==1){return new $$a4.ny($$a4.$dk.argumentOrFunctionNotAvailable())}else if(e!=null&&b%2==0){return new $$a4.ny($$a4.$dk.argumentOrFunctionNotAvailable())}var f=0;var g=0;var h=new $$4.x($$6.$u.$type.specialize($$t.$fz.$type,$$a4.$nu.$type),0);while(b>1){var i=a.pop();var j=a.pop();if(j.isArrayGroup()||j.isReference()==false){return new $$a4.ny(new $$a4.nx(1))}var k=j.toArrayProxy();var l=new $$t.fz(a,i._getResolvedValue());if(h.count()==0){f=k.getLength(0);g=k.getLength(1)}else if(f!=k.getLength(0)||g!=k.getLength(1)){return new $$a4.ny(new $$a4.nx(1))}h.add($$6.$w.a($$t.$fz.$type,$$a4.$nu.$type,l,k));b-=2}h.reverse();var m=null;if(e!=null){var n=a.pop();if(n.isArrayGroup()||n.isReference()==false){return new $$a4.ny(new $$a4.nx(1))}m=n.toArrayProxy();if(f!=m.getLength(0)||g!=m.getLength(1)){return new $$a4.ny(new $$a4.nx(1))}}var o=a._w();var p=0;var q=c;var r=null;var s=function(t,u){if(r==null){var v=true;for(var w=0;w<h.count();w++){var x=h.__inner[w];var y=w==0?t:x._d._b(u);if(!h.__inner[w]._c.d(y)){v=false;break}if(w>0&&x._d._g()){$$a4.$nc._ad(y)}}if(v){if(e==null){p++}else{var z=m._b(u);if(z.isError()){r=z.toErrorValue()}else if(z.isBoolean()||z.isString()||z.isNull()){}else{var aa=z._getResolvedValue3(false);var ab;var ac;if(function(){var ad=z._ao(aa,ac,o,ab);ac=ad.p1;ab=ad.p3;return ad.ret}()){p++;q=e(q,ac)}}if(m._g()){$$a4.$nc._ad(z)}}}}};h.__inner[0]._d._m(false,s);if(r!=null){return new $$a4.ny(r)}return d(q,p)},$type:new $.ig.Type("UltraCalcConditionalFunctionBase",$$a4.$ob.$type)},true);$c("UltraCalcConditionalFunctionBase_CriteriaEvaluator:fz","Object",{b:null,f:null,e:null,c:0,g:null,a:null,init:function(a,b){this.c=0;$.ig.$op.init.call(this);var c=a._w();this.f=b!=null?b.toString():null;var d;var e=$b(String,b);if(String.isNullOrEmpty(e)==false){var f=true;var g=null;switch(e.charAt(0)){case"=":this.c=0;g=e.substr(1);break;case"<":f=false;if(e.length>1){switch(e.charAt(1)){case">":this.c=1;g=e.substr(2);break;case"=":this.c=5;g=e.substr(2);break}}if(g==null){this.c=4;g=e.substr(1)}break;case">":f=false;if(e.length>1&&e.charAt(1)=="="){this.c=3;g=e.substr(2)}else{this.c=2;g=e.substr(1)}break;default:g=e;break}this.f=g;var h;if(function(){var i=$$a4.$aa.c(g.trim(),c,h);h=i.p2;return i.ret}()){d=h;if(f==false){this.f=null}}else{if(g.contains("*")||g.contains("?")){var i;this.g=function(){var j=$$a4.$k.eo(g,i);i=j.p1;return j.ret}()}d=g}}else{d=b}this.b=new $$a4.ny(d);this.b._n=new $$a4.aa4(1,a,64);this.e=this.b._getResolvedValue3(false);this.a=$b($$a4.$nx.$type,d)},d:function(a){var b=a._getResolvedValue3(false);if($$a4.$ny._aa(b)){return this.a!=null&&this.a.code()==b.code()}if($$a4.$ny._ac(b)!=$$a4.$ny._ac(this.e)){return false}var c=false;if($$a4.$ny._ag(b)){if(this.f==null){return false}c=true}if($$a4.$ny._u(b)!=$$a4.$ny._u(this.e)){return false}if(this.g!=null){return this.g.i(a._bp(b,a._a0())).i()}var d=$$a4.$ny._a4(a,b,this.b,c?this.f:this.e);switch(this.c){case 0:return d==0;case 1:return d!=0;case 2:return d>0;case 3:return d>=0;case 4:return d<0;case 5:return d<=0;default:return false}},$type:new $.ig.Type("UltraCalcConditionalFunctionBase_CriteriaEvaluator",$.ig.$ot)},true);$c("UltraCalcConditionalFunctionBase_EvaluateHelper:f0","Object",{c:null,b:null,a:null,d:0,f:0,init:function(a,b,c){$.ig.$op.init.call(this);this.b=a;this.c=b;this.a=c},h:function(a,b){var c=this.a._b(b);if(this.c.d(c)){this.f++;if(this.b._al()){var d;if(function(){var e=a._toDouble1(d);d=e.p0;return e.ret}()){this.d+=d}}}if(this.a._g()){$$a4.$nc._ad(c)}},e:function(){return this.d},g:function(){return this.f},$type:new $.ig.Type("UltraCalcConditionalFunctionBase_EvaluateHelper",$.ig.$ot)},true);$c("UltraCalcFunctionAddress:et","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==5){c=a.pop()}var d=null;if(b>=4){d=a.pop()}var e=null;if(b>=3){e=a.pop()}var f=a.pop();var g=a.pop();if(g.isError()){return g}if(f.isError()){return f}if(e!=null&&e.isError()){return e}if(d!=null&&d.isError()){return d}if(c!=null&&c.isError()){return c}var h=g._toInt321();var i=f._toInt321();var j=e==null||e.isNull()?1:e._toInt321();var k=d==null||d.isNull()?true:d._toBoolean1();var l=c==null||c.isNull()?null:c.toString();var m=this._aj(a);var n=$$a4.$n.getMaxRowCount(m);var o=$$a4.$n.getMaxColumnCount(m);if(h<1||n<h){return new $$a4.ny(new $$a4.nx(1))}if(i<1||o<i){return new $$a4.ny(new $$a4.nx(1))}var p;var q;switch(j){case 1:p=false;q=false;break;case 2:p=false;q=true;break;case 3:p=true;q=false;break;case 4:p=true;q=true;break;default:return new $$a4.ny(new $$a4.nx(1))}var r=k?1:0;var s=String.empty();if(l!=null){s+=$$a4.$k.d4(null,l)}if(r==0){if(p){h++}if(q){i++}}s+=$$a4.$zf.u(h-1,i-1,m,p,q,-1,-1,false,r);return new $$a4.ny(s)},_aj:function(a){var b=a._r();if(b!=null){return b.currentFormat()}return 2},name:function(){return"address"},minArgs:function(){return 2},maxArgs:function(){return 5},doesParameterAllowIntermediateResultArray:function(a,b){if(a==3){return false}return true},$type:new $.ig.Type("UltraCalcFunctionAddress",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAreas:eu","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isReference()==false){if(c.isError()){return c}return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(c._b(false).length)},name:function(){return"areas"},minArgs:function(){return 1},maxArgs:function(){return 1},_v:function(a){return false},$type:new $.ig.Type("UltraCalcFunctionAreas",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAverageIf:ev","UltraCalcConditionalFunctionBase",{init:function(){$$t.$es.init.call(this)},_ak:function(a,b){if(b==0){return new $$a4.ny(new $$a4.nx(2))}return new $$a4.ny(a/b)},name:function(){return"averageif"},$type:new $.ig.Type("UltraCalcFunctionAverageIf",$$t.$es.$type)},true);$c("UltraCalcFunctionColumn:ew","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;if(b==0){c=$$t.$ew._aj(a._k())}else{var d=a.pop();if(d.isReference()==false){if(d.isError()){return d}return new $$a4.ny(new $$a4.nx(1))}c=$$t.$ew._aj(d.toReference())}if(c==-1){return new $$a4.ny(new $$a4.nx(0))}return new $$a4.ny(c)},_aj:function(a){var b=$$a4.$pl.u(a);var c=$b($$a4.$z0.$type,b);if(c!=null){return c._columnIndex()+1}var d=$b($$a4.$lz.$type,b);if(d!=null){return d.firstColumn()+1}var e=$b($$4.$g.$type.specialize($$a4.$lz.$type),b);if(e!=null){if(e.count()!=1){return-1}return e.item(0).firstColumn()+1}var f=$b($$a4.$aba.$type,b);if(f!=null){return f._columnIndex()+1}return-1},name:function(){return"column"},minArgs:function(){return 0},maxArgs:function(){return 1},_v:function(a){return false},$type:new $.ig.Type("UltraCalcFunctionColumn",$$a4.$ob.$type)},true);$c("UltraCalcFunctionColumns:ex","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isReference()==false&&c.isError()){return c}var d=c._b(false);if(d.length!=1){return new $$a4.ny(new $$a4.nx(0))}return new $$a4.ny(d[0].getLength(0))},name:function(){return"columns"},minArgs:function(){return 1},maxArgs:function(){return 1},_v:function(a){return false},$type:new $.ig.Type("UltraCalcFunctionColumns",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTwoMatrixFunction:fq","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},_aj:function(a,b){var c;var d;var e;var f=$$t.$fq._an(a,c,d,e);c=f.p1;d=f.p2;e=f.p3;if(c!=null){return new $$a4.ny(c)}return new $$a4.ny($$t.$fq._al(d,e,b))},_ak:function(a,b){b=null;var c;var d;var e=$$t.$fq._an(a,b,c,d);b=e.p1;c=e.p2;d=e.p3;if(b!=null){return{ret:0,p1:b}}var f;var g;var h;var i=$$t.$fq._aq(c,d,f,g,h);f=i.p2;g=i.p3;h=i.p4;var j=g/f;var k=h/f;var l=$$t.$fq._al(c,d,function(m,n){return(m-j)*(n-k)});var m=$$t.$fq._am(c,function(n){return Math.pow(n-j,2)});var n=$$t.$fq._am(d,function(o){return Math.pow(o-k,2)});var o=Math.sqrt(m*n);if(o==0){b=new $$a4.nx(2);return{ret:0,
p1:b}}return{ret:l/o,p1:b}},_an:function(a,b,c,d){b=null;c=null;d=null;var e=a.pop();var f=a.pop();if(f.isError()){b=f.toErrorValue();return{p1:b,p2:c,p3:d}}if(e.isError()){b=e.toErrorValue();return{p1:b,p2:c,p3:d}}var g=f.toArrayProxy();var h=g.getLength(0);var i=g.getLength(1);var j=e.toArrayProxy();var k=j.getLength(0);var l=j.getLength(1);if(h!=k||i!=l){b=new $$a4.nx(3);return{p1:b,p2:c,p3:d}}c=function(){var m=$$a4.$aab.b(g,2,b);b=m.p2;return m.ret}();if(b!=null){return{p1:b,p2:c,p3:d}}d=function(){var m=$$a4.$aab.b(j,2,b);b=m.p2;return m.ret}();return{p1:b,p2:c,p3:d}},_ap:function(a,b,c,d){d=null;b=0;c=0;var e;var f;var g=$$t.$fq._an(a,d,e,f);d=g.p1;e=g.p2;f=g.p3;if(d!=null){return{p1:b,p2:c,p3:d}}var h;var i;var j=$$t.$fq._ao(e,f,h,i,b,c,d);h=j.p2;i=j.p3;b=j.p4;c=j.p5;d=j.p6;return{p1:b,p2:c,p3:d}},_ao:function(a,b,c,d,e,f,g){g=null;e=0;f=0;var h;var i;var j;var k=$$t.$fq._aq(a,b,h,i,j);h=k.p2;i=k.p3;j=k.p4;c=i/h;d=j/h;var l=c;var m=d;var n=$$t.$fq._al(a,b,function(o,p){return(o-l)*(p-m)});var o=$$t.$fq._am(b,function(p){return Math.pow(p-m,2)});if(o==0){g=new $$a4.nx(2);return{p2:c,p3:d,p4:e,p5:f,p6:g}}e=n/o;f=c-e*d;return{p2:c,p3:d,p4:e,p5:f,p6:g}},_aq:function(a,b,c,d,e){var f=a.getLength(0);var g=a.getLength(1);c=f*g;d=0;e=0;for(var h=0;h<f;h++){for(var i=0;i<g;i++){var j=a[h][i];var k=b[h][i];if($.ig.util.isNaN(j)||$.ig.util.isNaN(k)){c--;a[h][i]=NaN;b[h][i]=NaN;continue}d+=j;e+=k}}return{p2:c,p3:d,p4:e}},_am:function(a,b){var c=a.getLength(0);var d=a.getLength(1);var e=0;for(var f=0;f<c;f++){for(var g=0;g<d;g++){var h=a[f][g];if($.ig.util.isNaN(h)){continue}e+=b(h)}}return e},_al:function(a,b,c){var d=a.getLength(0);var e=a.getLength(1);var f=0;for(var g=0;g<d;g++){for(var h=0;h<e;h++){var i=a[g][h];var j=b[g][h];if($.ig.util.isNaN(i)||$.ig.util.isNaN(j)){continue}f+=c(i,j)}}return f},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionTwoMatrixFunction",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCorrel:ey","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){var c;var d;var e;var f=$$t.$fq._an(a,c,d,e);c=f.p1;d=f.p2;e=f.p3;if(c!=null){return new $$a4.ny(c)}var g;var h;var i;var j=$$t.$fq._aq(d,e,g,h,i);g=j.p2;h=j.p3;i=j.p4;var k=function(l){return l*l};var l=$$t.$fq._am(d,k);var m=$$t.$fq._am(e,k);var n=l-h*h/g;var o=m-i*i/g;var p=$$t.$fq._al(d,e,function(q,r){return q*r});var q=p-h*i/g;if(n==0||o==0){return new $$a4.ny(new $$a4.nx(2))}var r=q/(Math.sqrt(n)*Math.sqrt(o));return new $$a4.ny(r)},name:function(){return"correl"},$type:new $.ig.Type("UltraCalcFunctionCorrel",$$t.$fq.$type)},true);$c("UltraCalcFunctionCountIf:ez","UltraCalcConditionalFunctionBase",{init:function(){$$t.$es.init.call(this)},_ak:function(a,b){return new $$a4.ny(b)},name:function(){return"countif"},_al:function(){return false},_am:function(){return false},$type:new $.ig.Type("UltraCalcFunctionCountIf",$$t.$es.$type)},true);$c("UltraCalcFunctionCovar:e0","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){return $$t.$e0._ar(a,b,false)},_ar:function(a,b,c){var d;var e;var f;var g=$$t.$fq._an(a,d,e,f);d=g.p1;e=g.p2;f=g.p3;if(d!=null){return new $$a4.ny(d)}var h;var i;var j;var k=$$t.$fq._aq(e,f,h,i,j);h=k.p2;i=k.p3;j=k.p4;if(h==0||h==1&&c){return new $$a4.ny(new $$a4.nx(2))}var l=i/h;var m=j/h;var n=$$t.$fq._al(e,f,function(o,p){return(o-l)*(p-m)});return new $$a4.ny(n/(h-(c?1:0)))},name:function(){return"covar"},$type:new $.ig.Type("UltraCalcFunctionCovar",$$t.$fq.$type)},true);$c("UltraCalcFunctionForecast:e1","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){var c;var d;var e;var f=$$t.$fq._an(a,c,d,e);c=f.p1;d=f.p2;e=f.p3;var g=a.pop();if(g.isError()){return g}var h=g._toDouble3();if(c!=null){return new $$a4.ny(c)}var i;var j;var k;var l;var m=$$t.$fq._ao(d,e,i,j,k,l,c);i=m.p2;j=m.p3;k=m.p4;l=m.p5;c=m.p6;if(c!=null){return new $$a4.ny(c)}return new $$a4.ny(l+k*h)},name:function(){return"forecast"},minArgs:function(){return 3},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionForecast",$$t.$fq.$type)},true);$c("UltraCalcFunctionLookupBase:e8","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},_al:function(a,b,c,d,e,f,g){var h=a._getResolvedValue();if($$a4.$k.a8(h)){return $m($$0.$aw.$type,null)}if(b){if($$a4.$ny._ag(h)==false){return $m($$0.$aw.$type,null)}var i=a._bp(h,a._a0());if(g==null){return $m($$0.$aw.$type,$$v.$an.d(i,c,a._a0(),1))}var j=g.i(i);if(j.i()&&j.d()==i.length){return $m($$0.$aw.$type,0)}return $m($$0.$aw.$type,-1)}if(d){if(a.isBoolean()==false){return $m($$0.$aw.$type,null)}return $m($$0.$aw.$type,$.ig.util.boolCompare(a._toBoolean1(),e))}var k;var l;if(function(){var m=a._ao(h,k,a._a0(),l);k=m.p1;l=m.p3;return m.ret}()==false){return $m($$0.$aw.$type,null)}return $m($$0.$aw.$type,$4(k,f))},_am:function(a){var b;return function(){var c=$$a4.$k.eo(a,b);b=c.p1;return c.ret}()},_ak:function(a,b,c){var d=b.isString();var e=d?b.toString():null;var f=b.isBoolean();var g=f?b._toBoolean1():false;var h=0;if(f==false&&d==false){var i=b._toDouble1(h);h=i.p0}var j=null;if(d&&c==0){j=$$t.$e8._am(e)}var k=-1;var m=a.getEnumerator();while(m.moveNext()){var l=m.current();var n=l.key();var o=l.value();o._y(true);var p=$$t.$e8._al(o,d,e,f,g,h,j);if(p.hasValue()==false){continue}if(p.value()==0){return n}if(c!=0){if(c<0){if(p.value()>0){k=n}}else{if(p.value()<0){k=n}}}}return k},_aj:function(a,b){b=true;if(a!=null){if(a.isBoolean()){b=a._toBoolean1()}else if(a.isDateTime()){b=true}else{var c;if(function(){var d=a._toDouble1(c);c=d.p0;return d.ret}()){b=c!=0}else{return{ret:false,p1:b}}}}return{ret:true,p1:b}},minArgs:function(){return 3},maxArgs:function(){return 4},_v:function(a){if(a==1){return false}return true},$type:new $.ig.Type("UltraCalcFunctionLookupBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionHLookup:e2","UltraCalcFunctionLookupBase",{init:function(){$$t.$e8.init.call(this)},evaluate:function(a,b){var c=null;if(b==4){c=a.pop()}var d=a.pop();var e=a.pop();var f=a.pop();if(f.isError()){return f}if(e.isError()){return e}if(d.isError()){return d}if(c!=null&&c.isError()){return c}if(f.isArray()||f.isArrayGroup()){return new $$a4.ny(new $$a4.nx(3))}if(f.isNull()){return new $$a4.ny(new $$a4.nx(3))}var g=e._d(false,false);var h;if(function(){var i=d._toDouble1(h);h=i.p0;return i.ret}()==false||h<1){return new $$a4.ny(new $$a4.nx(1))}var i=$.ig.truncate(Math.floor(h))-1;var j;if(function(){var k=$$t.$e8._aj(c,j);j=k.p1;return k.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}var k=g.getLength(0);var l=$$t.$e8._ak(g._i(1,0),f,j?1:0);if(l<0||k<=l){return new $$a4.ny(new $$a4.nx(3))}var m=g.getLength(1);if(m<=i){return new $$a4.ny(new $$a4.nx(0))}var n=g.item(l,i);n._y(true);return new $$a4.ny(n._getResolvedValue())},name:function(){return"hlookup"},$type:new $.ig.Type("UltraCalcFunctionHLookup",$$t.$e8.$type)},true);$c("UltraCalcFunctionHyperlink:e3","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return d}if(c!=null&&c.isError()){return c}var e=d.toString();var f=c==null?e:c.toString();return new $$a4.ny(new $$a4.os(e,f))},name:function(){return"hyperlink"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionHyperlink",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIndex:e4","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==4){c=a.pop()}var d=null;if(b>=3){d=a.pop()}var e=a.pop();var f=a.pop();if(f.isReference()==false&&f.isError()){return f}if(e.isError()){return e}if(d!=null&&d.isError()){return d}if(c!=null&&c.isError()){return c}if(f.isReference()==false){if(f.isString()||f.isBoolean()){return new $$a4.ny(new $$a4.nx(1))}}var g=e._toInt321()-1;var h=(d==null?1:d._toInt321())-1;var i=(c==null?1:c._toInt321())-1;var j=f._b(false);if(j.length<=i){return new $$a4.ny(new $$a4.nx(0))}var k=j[i];var l=k.getLength(0);var m=k.getLength(1);if(d==null&&l>1){if(m==1){h=g;g=0}else{return new $$a4.ny(new $$a4.nx(0))}}if(l<=h||m<=g){return new $$a4.ny(new $$a4.nx(0))}if(h<-1||g<-1){return new $$a4.ny(new $$a4.nx(1))}if(g==-1||h==-1){if(g==-1){if(h==-1){return new $$a4.ny(k._a())}else{var n=function(){var $firstRank;var $ret=new Array($firstRank=1);var $currRet=$ret;for(var $rankInit=0;$rankInit<$firstRank;$rankInit++){$currRet[$rankInit]=new Array(m)}return $ret}();for(var o=0;o<m;o++){n[0][o]=k.item(h,o)}return new $$a4.ny(n)}}else{var p=function(){var $firstRank;var $ret=new Array($firstRank=l);var $currRet=$ret;for(var $rankInit=0;$rankInit<$firstRank;$rankInit++){$currRet[$rankInit]=new Array(1)}return $ret}();for(var q=0;q<l;q++){p[q][0]=k.item(q,g)}return new $$a4.ny(p)}}return k.item(h,g)},name:function(){return"index"},minArgs:function(){return 2},maxArgs:function(){return 4},_v:function(a){if(a==0){return false}return true},$type:new $.ig.Type("UltraCalcFunctionIndex",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIndirect:e5","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return d}if(c!=null&&c.isError()){return c}var e=d.toString();var f=c==null?true:c._toBoolean1();var g=f?1:0;var h=$b($$a4.$aa3.$type,$$a4.$pl.b(a._k()));if(h==null){return new $$a4.ny($$a4.$z3._instance)}var i=$$a4.$zz.f(e,h._row(),h._columnIndex(),h._worksheet(),h._workbook(),g);return new $$a4.ny(i)},name:function(){return"indirect"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionIndirect",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIntercept:e6","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){var c;var d;var e;var f=$$t.$fq._ap(a,d,e,c);d=f.p1;e=f.p2;c=f.p3;if(c!=null){return new $$a4.ny(c)}return new $$a4.ny(e)},name:function(){return"intercept"},$type:new $.ig.Type("UltraCalcFunctionIntercept",$$t.$fq.$type)},true);$c("UltraCalcFunctionLookup:e7","UltraCalcFunctionLookupBase",{init:function(){$$t.$e8.init.call(this)},evaluate:function(a,b){var c=null;if(b==3){c=a.pop()}var d=a.pop();var e=a.pop();if(e.isError()){return e}if(d.isError()){return d}if(c!=null&&c.isError()){return c}if(e.isNull()){return new $$a4.ny(new $$a4.nx(3))}var f=d._d(false,false);var g=f.getLength(0);var h=f.getLength(1);var i=h<g;var j=i?g:h;var k=null;var l=0;var m=0;var n=false;if(c!=null){k=c.toArrayProxy();l=k.getLength(0);m=k.getLength(1);if(l==1){n=false}else if(m==1){n=true}else{return new $$a4.ny(new $$a4.nx(3))}}var o=$$t.$e8._ak(f._i(i?1:0,0),e,1);if(o<0||j<=o){return new $$a4.ny(new $$a4.nx(3))}var p;if(k!=null){if(n){if(l<=o){return new $$a4.ny(new $$a4.nx(3))}p=k.item(o,0)}else{if(m<=o){return new $$a4.ny(new $$a4.nx(3))}p=k.item(0,o)}}else{if(i){p=f.item(o,h-1)}else{p=f.item(g-1,o)}}p._y(true);return new $$a4.ny(p._getResolvedValue())},minArgs:function(){return 2},maxArgs:function(){return 3},name:function(){return"lookup"},doesParameterAllowIntermediateResultArray:function(a,b){if(a==1){return true}return b==false},$type:new $.ig.Type("UltraCalcFunctionLookup",$$t.$e8.$type)},true);$c("UltraCalcFunctionMatch:e9","UltraCalcFunctionLookupBase",{init:function(){$$t.$e8.init.call(this)},evaluate:function(a,b){var c=null;if(b==3){c=a.pop()}var d=a.pop();var e=a.pop();if(e.isError()){return e}if(d.isError()){return d}if(c!=null&&c.isError()){return c}if(e.isNull()){return new $$a4.ny(new $$a4.nx(3))}var f=d._d(false,false);var g=f.getLength(0);var h=f.getLength(1);if(g!=1&&h!=1){return new $$a4.ny(new $$a4.nx(3))}var i=h<g;var j=i?g:h;var k=1;if(c!=null&&function(){var l=c._toDouble1(k);k=l.p0;return l.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}var l=$.ig.truncate($$a4.$aa.j(k));var m=$$t.$e8._ak(f._i(i?1:0,0),e,l);if(m<0||j<=m){return new $$a4.ny(new $$a4.nx(3))}return new $$a4.ny(m+1)},name:function(){return"match"},minArgs:function(){return 2},maxArgs:function(){return 3},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionMatch",$$t.$e8.$type)},true);$c("UltraCalcFunctionMdeterm:fa","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toArrayProxy();var e=d.getLength(0);if(e!=d.getLength(1)){return new $$a4.ny(new $$a4.nx(1))}var f;var g=function(){var h=$$a4.$aab.b(d,0,f);f=h.p2;return h.ret}();if(f!=null){return new $$a4.ny(f)}return new $$a4.ny($$a4.$aab.g(g,e))},name:function(){return"mdeterm"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionMdeterm",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMinverse:fb","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toArrayProxy();var e=d.getLength(0);if(e!=d.getLength(1)){return new $$a4.ny(new $$a4.nx(1))}var f;var g=function(){var h=$$a4.$aab.b(d,0,f);f=h.p2;return h.ret}();if(f!=null){return new $$a4.ny(f)}var h=function(){var i=$$a4.$aab.a(g,e,f);f=i.p2;return i.ret}();if(f!=null){return new $$a4.ny(f)}var i=function(){var $firstRank;var $ret=new Array($firstRank=e);var $currRet=$ret;for(var $rankInit=0;$rankInit<$firstRank;$rankInit++){$currRet[$rankInit]=new Array(e)}return $ret}();for(var j=0;j<e;j++){for(var k=0;k<e;k++){i[j][k]=new $$a4.ny(h[j][k])}}return new $$a4.ny(i)},name:function(){return"minverse"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionMinverse",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMmult:fc","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return d}if(c.isError()){return c}var e=d.toArrayProxy();var f=e.getLength(0);var g=e.getLength(1);var h=c.toArrayProxy();var i=h.getLength(0);var j=h.getLength(1);if(f!=j){return new $$a4.ny(new $$a4.nx(1))}var k;var l=function(){var m=$$a4.$aab.b(e,0,k);k=m.p2;return m.ret}();if(k!=null){return new $$a4.ny(k)}var m=function(){var n=$$a4.$aab.b(h,0,k);k=n.p2;return n.ret}();if(k!=null){return new $$a4.ny(k)}var n=function(){var $firstRank;var $ret=new Array($firstRank=i);var $currRet=$ret;for(var $rankInit=0;$rankInit<$firstRank;$rankInit++){$currRet[$rankInit]=new Array(g)}return $ret}();for(var o=0;o<i;o++){for(var p=0;p<g;p++){var q=0;for(var r=0;r<f;r++){q+=l[r][p]*m[o][r]}n[o][p]=new $$a4.ny(q)}}return new $$a4.ny(n)},name:function(){return"mmult"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionMmult",$$a4.$ob.$type)},true);$c("UltraCalcFunctionOffset:fd","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==5){c=a.pop()}var d=null;if(b>=4){d=a.pop()}var e=a.pop();var f=a.pop();var g=a.pop();if(g.isReference()==false&&g.isError()){return g}if(f.isError()){return f}if(e.isError()){return e}if(d!=null&&d.isError()){return d}if(c!=null&&c.isError()){return c}if(g.isReference()==false){return new $$a4.ny(new $$a4.nx(1))}var h=$$a4.$aav._fromReference(g.toReference());if(h._regions().count()!=1){return new $$a4.ny(new $$a4.nx(1))}var i=h._regions().item(0);var j=f._toInt321();var k=e._toInt321();var l=d==null?i._aa():d._toInt321();var m=c==null?i._ad():c._toInt321();if(l<=0||m<=0){return new $$a4.ny(new $$a4.nx(0))}var n=i.firstRow()+j;var o=i.firstColumn()+k;if(o<0||n<0){return new $$a4.ny(new $$a4.nx(0))}var p=n+l-1;var q=o+m-1;var r=i.worksheet();if(r==null){return new $$a4.ny(new $$a4.nx(0))}var s=r.rows().maxCount()-1;var t=r.columns().maxCount()-1;if(s<p||t<q){return new $$a4.ny(new $$a4.nx(0))}return new $$a4.ny(r._cx(n,o,p,q)._c())},name:function(){return"offset"},minArgs:function(){return 3},maxArgs:function(){return 5},_v:function(a){if(a==0){return false}return true},$type:new $.ig.Type("UltraCalcFunctionOffset",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPearson:fe","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){var c;var d=function(){var e=$$t.$fq._ak(a,c);c=e.p1;return e.ret}();if(c!=null){return new $$a4.ny(c)}return new $$a4.ny(d)},name:function(){return"pearson"},$type:new $.ig.Type("UltraCalcFunctionPearson",$$t.$fq.$type)},true);$c("UltraCalcFunctionRow:ff","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;if(b==0){c=$$t.$ff._aj(a._k())}else{var d=a.pop();if(d.isReference()==false){if(d.isError()){return d}return new $$a4.ny(new $$a4.nx(1))}c=$$t.$ff._aj(d.toReference())}if(c==-1){return new $$a4.ny(new $$a4.nx(0))}return new $$a4.ny(c)},_aj:function(a){var b=$$a4.$pl.u(a);var c=$b($$a4.$z0.$type,b);if(c!=null){return c._row().index()+1}var d=$b($$a4.$lz.$type,b);if(d!=null){return d.firstRow()+1}var e=$b($$4.$g.$type.specialize($$a4.$lz.$type),b);if(e!=null){if(e.count()!=1){return-1}return e.item(0).firstRow()+1}var f=$b($$a4.$aba.$type,b);if(f!=null){return f._rowIndex()+1}return-1},name:function(){return"row"},minArgs:function(){return 0},maxArgs:function(){return 1},_v:function(a){return false},$type:new $.ig.Type("UltraCalcFunctionRow",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRows:fg","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isReference()==false&&c.isError()){return c}var d=c._b(false);if(d.length!=1){return new $$a4.ny(new $$a4.nx(0))}return new $$a4.ny(d[0].getLength(1))},name:function(){return"rows"},minArgs:function(){return 1},maxArgs:function(){return 1},_v:function(a){return false},$type:new $.ig.Type("UltraCalcFunctionRows",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRsq:fh","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){var c;var d=function(){var e=$$t.$fq._ak(a,c);c=e.p1;return e.ret}();if(c!=null){return new $$a4.ny(c)}return new $$a4.ny(d*d)},name:function(){return"rsq"},$type:new $.ig.Type("UltraCalcFunctionRsq",$$t.$fq.$type)},true);$c("UltraCalcFunctionSlope:fi","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){var c;var d;var e;var f=$$t.$fq._ap(a,d,e,c);d=f.p1;e=f.p2;c=f.p3;if(c!=null){return new $$a4.ny(c)}return new $$a4.ny(d)},name:function(){return"slope"},$type:new $.ig.Type("UltraCalcFunctionSlope",$$t.$fq.$type)},true);$c("UltraCalcFunctionSteyx:fj","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){var c;var d;var e;var f=$$t.$fq._an(a,c,d,e);c=f.p1;d=f.p2;e=f.p3;if(c!=null){return new $$a4.ny(c)}var g;var h;var i;var j=$$t.$fq._aq(d,e,g,h,i);g=j.p2;h=j.p3;i=j.p4;if(g<3){return new $$a4.ny(new $$a4.nx(2))}var k=h/g;var l=i/g;var m=$$t.$fq._al(d,e,function(n,o){return(n-k)*(o-l)});var n=$$t.$fq._am(d,function(o){return Math.pow(o-k,2)});var o=$$t.$fq._am(e,function(p){return Math.pow(p-l,2)});if(o==0){return new $$a4.ny(new $$a4.nx(2))}var p=1/(g-2);var q=n-m*m/o;var r=Math.sqrt(p*q);return new $$a4.ny(r)},name:function(){return"steyx"},$type:new $.ig.Type("UltraCalcFunctionSteyx",$$t.$fq.$type)},true);$c("UltraCalcFunctionSumIf:fk","UltraCalcConditionalFunctionBase",{init:function(){$$t.$es.init.call(this)},_ak:function(a,b){return new $$a4.ny(a)},name:function(){return"sumif"},$type:new $.ig.Type("UltraCalcFunctionSumIf",$$t.$es.$type)},true);$c("UltraCalcFunctionSumproduct:fl","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new Array(b);var d=0;var e=0;var f=0;try{for(;f<b;f++){var g=a.pop();if(g.isError()){return g}var h;var i=function(){var j=$$a4.$aab.b(g.toArrayProxy(),1,h);h=j.p2;return j.ret}();if(h!=null){return new $$a4.ny(h)}if(f==0){d=i.getLength(0);e=i.getLength(1)}else{if(d!=i.getLength(0)||e!=i.getLength(1)){return new $$a4.ny(new $$a4.nx(1))}}c[f]=i}}finally{for(f++;f<b;f++){a.pop()}}var j=0;for(var k=0;k<d;k++){for(var l=0;l<e;l++){var m=1;for(var n=0;n<b;n++){m*=c[n][k][l]}j+=m}}return new $$a4.ny(j)},name:function(){return"sumproduct"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSumproduct",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSumx2my2:fm","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){return this._aj(a,function(c,d){return c*c-d*d})},name:function(){return"sumx2my2"},$type:new $.ig.Type("UltraCalcFunctionSumx2my2",$$t.$fq.$type)},true);$c("UltraCalcFunctionSumx2py2:fn","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){return this._aj(a,function(c,d){return c*c+d*d})},name:function(){return"sumx2py2"},$type:new $.ig.Type("UltraCalcFunctionSumx2py2",$$t.$fq.$type)},true);$c("UltraCalcFunctionSumxmy2:fo","UltraCalcFunctionTwoMatrixFunction",{init:function(){$$t.$fq.init.call(this)},evaluate:function(a,b){return this._aj(a,function(c,d){return Math.pow(c-d,2)})},name:function(){return"sumxmy2"},$type:new $.ig.Type("UltraCalcFunctionSumxmy2",$$t.$fq.$type)},true);$c("UltraCalcFunctionTranspose:fp","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}return new $$a4.ny($$a4.$aab.d(c.toArrayProxy()))},name:function(){return"transpose"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionTranspose",$$a4.$ob.$type)},true);$c("UltraCalcFunctionVLookup:ft","UltraCalcFunctionLookupBase",{init:function(){$$t.$e8.init.call(this)},evaluate:function(a,b){var c=null;if(b==4){c=a.pop()}var d=a.pop();var e=a.pop();var f=a.pop();if(f.isError()){return f}if(e.isError()){return e}if(d.isError()){return d}if(c!=null&&c.isError()){return c}if(f.isArray()||f.isArrayGroup()){return new $$a4.ny(new $$a4.nx(3))}if(f.isNull()){return new $$a4.ny(new $$a4.nx(3))}var g=e._d(false,false);var h;if(function(){var i=d._toDouble1(h);h=i.p0;return i.ret}()==false||h<1){return new $$a4.ny(new $$a4.nx(1))}var i=$.ig.truncate(Math.floor(h))-1;var j;if(function(){var k=$$t.$e8._aj(c,j);j=k.p1;return k.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}var k=g.getLength(1);var l=$$t.$e8._ak(g._i(0,0),f,j?1:0);if(l<0||k<=l){return new $$a4.ny(new $$a4.nx(3))}var m=g.getLength(0);if(m<=i){return new $$a4.ny(new $$a4.nx(0))}var n=g.item(i,l);n._y(true);return new $$a4.ny(n._getResolvedValue())},name:function(){return"vlookup"},$type:new $.ig.Type("UltraCalcFunctionVLookup",$$t.$e8.$type)},true);$c("UltraCalcFunctionBinom_Dist:fu","UltraCalcFunctionBinomDist",{init:function(){$$t.$d0.init.call(this)},name:function(){return"binom.dist"},$type:new $.ig.Type("UltraCalcFunctionBinom_Dist",$$t.$d0.$type)},true);$c("UltraCalcFunctionBinom_Inv:fv","UltraCalcFunctionCritBinom",{init:function(){$$t.$d1.init.call(this)},name:function(){return"binom.inv"},$type:new $.ig.Type("UltraCalcFunctionBinom_Inv",$$t.$d1.$type)},true);$c("UltraCalcFunctionBinom_Dist_Range:fw","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;var d=0;if(b==4){c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}d=$.ig.truncate(c._toDecimal2())}c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=$.ig.truncate(c._toDecimal2());c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=c._toDouble3();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var g=$.ig.truncate(c._toDecimal2());if(b==3||d==e){return $$t.$d0._aj(g,f,e,e)}else{return $$t.$d0._aj(g,f,e,d)}},name:function(){return"binom.dist.range"},minArgs:function(){return 3},maxArgs:function(){return 4},$type:new $.ig.Type("UltraCalcFunctionBinom_Dist_Range",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDateDif:fx","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c;c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c.toString().toLowerCase();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=Math.floor(c._toDouble3());c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=Math.floor(c._toDouble3());if(f>e||f<0){return new $$a4.ny($$a4.$dk.valueRangeOverflow())}var g=a._r();var h=$$a4.$ny._excelDateToDateTime(g,f).value();var i=$$a4.$ny._excelDateToDateTime(g,e).value();var j=h.getFullYear();var k=$.ig.Date.prototype.getMonth(h);var l=h.getDate();var m=i.getFullYear();var n=$.ig.Date.prototype.getMonth(i);var o=i.getDate();var p=0;switch(d){case"y":p=m-j;if(n<k||n==k&&o<l){p--}break;case"m":p=m*12+n-(j*12+k);if(o<l){p--}break;case"d":p=$.ig.truncate(e-f);break;case"md":if(l<=o){p=o-l}else{var q=n==1?m-1:m;var r=n==1?12:n-1;var s=$.ig.Date.prototype.fromValues(q,r,1,0,0,0,0);var t=$.ig.util.nullableSubtract($.ig.util.nullableAdd($$a4.$ny._dateTimeToExcelDate(g,s),l),1);p=$.ig.util.nullableSubtract(e,t).value()}break;case"ym":p=n+12-k;if(o<l){p--}p=p%12;break;case"yd":if(k==n&&l<=o){p=o-l}else{var u=n<k||k==n?j+1:j;var v=$.ig.Date.prototype.fromValues(u,n,1,0,0,0,0);var w=$.ig.util.nullableSubtract($.ig.util.nullableAdd($$a4.$ny._dateTimeToExcelDate(g,v),o),1);p=$.ig.util.nullableSubtract(w,f).value()}break;default:return new $$a4.ny($$a4.$dk.valueRangeOverflow())}return new $$a4.ny(p)},name:function(){return"datedif"},minArgs:function(){return 3},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionDateDif",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAverageA:f1","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1249&~1024,$$t.$d._aj)},canParameterBeEnumerable:function(a){return true},name:function(){return"averagea"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionAverageA",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCeilingPrecise:f2","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var e=d._toDouble3();var f=c==null?1:c._toDouble3();if(f<0){f*=-1}if(e==0||f==0){return new $$a4.ny(0)}var g=$$a4.$aa.i(Math.ceil(e/f)*f);return new $$a4.ny(g)},name:function(){return"ceiling.precise"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionCeilingPrecise",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsoCeiling:f3","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var e=d._toDouble3();var f=c==null?1:c._toDouble3();if(f<0){f*=-1}if(e==0||f==0){return new $$a4.ny(0)}var g=$$a4.$aa.i(Math.ceil(e/f)*f);return new $$a4.ny(g)},name:function(){return"iso.ceiling"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionIsoCeiling",$$a4.$ob.$type)},true);$c("UltraCalcFunctionEcmaCeiling:f4","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var e=d._toDouble3();var f=c==null?1:c._toDouble3();if(e==0||f==0){return new $$a4.ny(0)}if(f<0&&e>0){return new $$a4.ny(new $$a4.nx(4))}var g=$$a4.$aa.i(Math.ceil(e/f)*f);return new $$a4.ny(g)},name:function(){return"ecma.ceiling"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionEcmaCeiling",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCeilingMath:f5","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;var d=null;if(b==3){c=a.pop()}if(b>=2){d=a.pop()}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d!=null&&d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var f=e._toDouble3();var g=d==null?1:Math.abs(d._toDouble3());var h=c==null?0:c._toDouble3();if(f==0||g==0){return new $$a4.ny(0)}var i=f/g;if(f<0&&h!=0){i=Math.floor(i)}else{i=Math.ceil(i)}return new $$a4.ny($$a4.$aa.i(i*g))},name:function(){return"ceiling.math"},minArgs:function(){return 1},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionCeilingMath",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFloorPrecise:f6","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var e=d._toDouble3();var f=c==null?1:Math.abs(c._toDouble3());if(e==0||f==0){return new $$a4.ny(0)}var g=$$a4.$aa.i(Math.floor(e/f)*f);return new $$a4.ny(g)},name:function(){return"floor.precise"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionFloorPrecise",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFloorMath:f7","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;var d=null;if(b==3){c=a.pop()}if(b>=2){d=a.pop()}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d!=null&&d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var f=e._toDouble3();var g=d==null?1:Math.abs(d._toDouble3());var h=c==null?0:c._toDouble3();if(f==0||g==0){return new $$a4.ny(0)}var i=f/g;if(f<0&&h!=0){i=Math.ceil(i)}else{i=Math.floor(i)}return new $$a4.ny($$a4.$aa.i(i*g))},name:function(){return"floor.math"},minArgs:function(){return 1},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionFloorMath",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNumberValue:f8","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;var d=null;if(b==3){c=a.pop()}if(b>=2){d=a.pop()}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d!=null&&d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var f=e.toString();var g=d==null?a._w().numberFormat().numberDecimalSeparator():d.toString();var h=c==null?a._w().numberFormat().numberGroupSeparator():c.toString();if(String.isNullOrEmpty(h)||String.isNullOrEmpty(g)){return new $$a4.ny(new $$a4.nx(1))}var i=h.charAt(0);var j=g.charAt(0);if(j==i){return new $$a4.ny(new $$a4.nx(1))}if(String.isNullOrWhiteSpace(f)){return new $$a4.ny(0)}var k=false;var l="";var m="";var n=0;var o=false;var p=0;for(var q=0;q<f.length;q++){var r=f.charAt(q);if(/\s/i.test(r)){}else if(r==j){if(k||n>0){o=true}k=true}else if(r==i){if(k){o=true}}else if(r=="%"){n++}else if("0".charCodeAt(0)<=r.charCodeAt(0)&&r.charCodeAt(0)<="9".charCodeAt(0)){if(n>0){o=true}else{var s=r;if(p==15){s="0"}else if(p>0||s!="0"){p++}if(k){m+=s}else{l+=s}}}else{if(!e.isBoolean()){var t;if(function(){var u=e._toDouble1(t);t=u.p0;return u.ret}()){if(Number.isInfinity(t)){o=true}else{return new $$a4.ny(t)}}}o=true}if(o){break}}if(o){return new $$a4.ny(new $$a4.nx(1))}var u=l.length>0?parseFloat(l):0;if(m.length>0){u+=parseFloat(m)/Math.pow(10,m.length)}if(n>0){u/=Math.pow(10,n*2)}return new $$a4.ny($$a4.$aa.i(u))},name:function(){return"numbervalue"},minArgs:function(){return 1},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionNumberValue",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIfs:f9","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new $$4.x($$a4.$ny.$type,0);while(b>0){c.add(a.pop());b--}for(var d=c.count()-1;d>0;d-=2){var e=c.__inner[d];var f=c.__inner[d-1];if(e.isError()){
return new $$a4.ny(e.toErrorValue())}if(e._toBoolean1()==true){return f}}return new $$a4.ny(new $$a4.nx(3))},name:function(){return"ifs"},minArgs:function(){return 2},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},_s:function(){return true},_v:function(a){if(a%2==1){return false}return true},$type:new $.ig.Type("UltraCalcFunctionIfs",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSwitch:ga","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new $$4.x($$a4.$ny.$type,0);var d=null;if(b%2==0){d=a.pop();b--}while(b>1){c.add(a.pop());b--}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}var f,g,h,i;f=g=h=i=false;var j;if(e.isNull()){f=true;j=null}else if(e.isString()){j=e.toString();h=true}else if(e.isBoolean()){j=e._toBoolean1();g=true}else{var k=e._toDouble3();j=k;if(k==0){f=true}else{i=true}}for(var l=c.count()-1;l>0;l-=2){var m=c.__inner[l];var n=c.__inner[l-1];if(m.isError()){return new $$a4.ny(m.toErrorValue())}var o=false;if(f||i){if(!m.isString()&&!m.isBoolean()){if(m.isNull()){o=f}else{var p;if(function(){var q=m._toDouble1(p);p=q.p0;return q.ret}()){if(f){o=p==0}else{o=p==j}}}}}else if(h){o=m.isString()&&$$v.$an.d(j,m.toString(),a._w(),1)==0}else{o=m.isBoolean()&&m._toBoolean1()==j}if(o){return n}}if(d!=null){if(d.isError()){return new $$a4.ny(d.toErrorValue())}return d}return new $$a4.ny(new $$a4.nx(3))},name:function(){return"switch"},minArgs:function(){return 3},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},_s:function(){return true},_v:function(a){if(a%2==1){return true}return false},$type:new $.ig.Type("UltraCalcFunctionSwitch",$$a4.$ob.$type)},true);$c("UltraCalcFunctionConcatEx:gb","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=new $$4.x($$a4.$ny.$type,0);this._ac(c,a,b,true);var d=new $$6.aj(0);for(var e=0;e<c.count();e++){var f=c.__inner[e];if(f.isError()){return new $$a4.ny(f.toErrorValue())}d.l(f.toString())}if(d.c()>32767){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(d.toString())},name:function(){return"concat"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionConcatEx",$$a4.$ob.$type)},true);$c("UltraCalcFunctionTextJoin:gc","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=$$a4.$n8.p(b-2);var d=b-2;var e=new $$4.x($$a4.$ny.$type,2,d);for(var f=0;f<d;f++){e.add(a.pop())}e.reverse();var g=a.pop();var h=a.pop();if(h.isError()){return new $$a4.ny(h.toErrorValue())}if(g.isError()){return new $$a4.ny(g.toErrorValue())}var i;if(g.isString()){if(!function(){var j=$ab(g.toString(),i);i=j.p1;return j.ret}()){return new $$a4.ny(new $$a4.nx(1))}}else{i=g._toBoolean1()}for(var j=0;j<e.count();j++){$$a4.$n4._ab(c,e.__inner[j],i,false,false)}var k;if(h.isReference()&&h.toReference().isEnumerable()||h.isArray()||h.isArrayGroup()){var l=$$a4.$n8.p(10);$$a4.$n4._ab(l,h,false,false,false);k=new Array(l.count());for(var m=0;m<k.length;m++){k[m]=l.__inner[m].toString()}}else{k=new Array(1);k[0]=h.toString()}var n=new $$6.aj(0);for(var o=0;o<c.count();o++){if(o>0){n.l(k[(o-1)%k.length])}var p=c.__inner[o];if(p.isError()){return new $$a4.ny(p.toErrorValue())}n.l(p.toString())}if(n.c()>32767){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(n.toString())},name:function(){return"textjoin"},minArgs:function(){return 3},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionTextJoin",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCountBlank:gd","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(!c.isReference()){return new $$a4.ny(new $$a4.nx(1))}if(c.isArrayGroup()){return new $$a4.ny(new $$a4.nx(1))}if(c.isArray()){var d=c.toArrayProxy();var e=0;d._m(false,function(f,g){if(!f.isNull()){e++}});var f=d.getLength(0)*d.getLength(1);return new $$a4.ny(f-e)}var g=c.toReference();var h=0;if(g.isEnumerable()){var j=g.references().getEnumerator();while(j.moveNext()){var i=j.current();if(i.value().isNull()){h++}}}else if($b($$a4.$aan.$type,g)!==null){return new $$a4.ny(new $$a4.nx($$a4.o4.$name))}else{h=c.isNull()?1:0}return new $$a4.ny(h)},name:function(){return"countblank"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionCountBlank",$$a4.$ob.$type)},true);$c("UltraCalcFunctionUSDollar:ge","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var e=d._toDouble3();var f=c==null?2:c._toInt();if(f<0){e=$$a4.$aa.g(e,f)}var g=f>0?$y("$#,##0.{0};($#,##0.{0})",$.ig.util.createString2("0",f)):"$#,##0;($#,##0)";var h=new $$a4.nd(0,d._o(),g,a._w());var i;if(function(){var j=h.v(e,null,i);i=j.p2;return j.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}return new $$a4.ny(i)},name:function(){return"usdollar"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionUSDollar",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDollar:gf","UltraCalcFunctionUSDollar",{init:function(){$$t.$ge.init.call(this)},name:function(){return"dollar"},$type:new $.ig.Type("UltraCalcFunctionDollar",$$t.$ge.$type)},true);$c("UltraCalcFunctionExact:gg","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e;if(d.isString()&&c.isString()){e=!$.ig.util.stringCompare1(d.toString(),c.toString(),0)}else{e=d.isSameValue(c)}return new $$a4.ny(e)},name:function(){return"exact"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionExact",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSubstitute:gh","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=null;if(b==4){d=a.pop()}var e=a.pop();var f=a.pop();var g=a.pop();if(g.isError()){return new $$a4.ny(g.toErrorValue())}if(f.isError()){return new $$a4.ny(f.toErrorValue())}if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d!=null){if(d.isError()){return new $$a4.ny(d.toErrorValue())}c=d._toInt();if(c<1){return new $$a4.ny(new $$a4.nx(1))}}var h=g.toString();var i=f.toString();if(!String.isNullOrEmpty(h)&&!String.isNullOrEmpty(i)){var j=e.toString();if(c==0){h=$x(h,i,j)}else{var k=0;while(c>0){k=h.indexOf(i,k);c--;if(c>0&&k>=0){k++}}if(k>=0){var l=k>0?h.substr(0,k):"";var m=k+i.length<h.length?h.substr(k+i.length):"";h=l+j+m}}}return new $$a4.ny(h)},name:function(){return"substitute"},minArgs:function(){return 3},maxArgs:function(){return 4},$type:new $.ig.Type("UltraCalcFunctionSubstitute",$$a4.$ob.$type)},true);$c("UltraCalcFunctionProper:gi","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d;if(c.isNull()){d=null}else{var e=c.toString();var f=new $$6.aj(0);var g=false;var h=a._w();for(var i=0;i<e.length;i++){var j=e.charAt(i);if($ae(j)){if(g){f.h($$v.$an.b(j,h))}else{g=true;f.h($$v.$an.c(j,h))}}else{g=false;f.h(j)}}d=f.toString()}return new $$a4.ny(d)},name:function(){return"proper"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionProper",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMode:gj","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$gj._aj(a,b,false)},_aj:function(a,b,c){var d=$$a4.$n8.p(b);var e=$$a4.$n8.o(b);try{for(var f=0;f<b;f++){d.add(a.pop())}d.reverse();for(var g=0;g<d.count();g++){var h=d.__inner[g];if(h.isError()){return new $$a4.ny(h.toErrorValue())}var i=h.isArray()||h.isArrayGroup()||h.isReference()&&h.toReference().isEnumerable();if(i){var j=$$a4.$n7.c(h,0,1101,e.add.runOn(e));if(j!=null){return j}continue}if(h.isBoolean()||h.isString()||h.isNull()){return new $$a4.ny(new $$a4.nx(1))}e.add(h._toDouble3())}var k=new $$4.h(Number,$$0.$aw.$type,0);var l=0;for(var m=0;m<e.count();m++){var n=e.__inner[m];var o;if(!function(){var p=k.tryGetValue(n,o);o=p.p1;return p.ret}()){k.item(n,1)}else{k.item(n,o+1);if(o+1>l){l=o+1}}}if(l==0){return new $$a4.ny(new $$a4.nx(3))}var p=new $$4.x(Number,0);var r=k.getEnumerator();while(r.moveNext()){var q=r.current();if(q.value()==l){p.add(q.key())}}if(p.count()>1){p.sort2(function(s,t){var u=e.indexOf(s);var v=e.indexOf(t);return $4(u,v)});if(c){var s=function(){var $firstRank;var $ret=new Array($firstRank=1);var $currRet=$ret;for(var $rankInit=0;$rankInit<$firstRank;$rankInit++){$currRet[$rankInit]=new Array(p.count())}return $ret}();for(var t=0;t<p.count();t++){s[0][t]=new $$a4.ny(p.__inner[t])}return new $$a4.ny(s)}}return new $$a4.ny(p.__inner[0])}finally{$$a4.$n8.ac(e);$$a4.$n8.ad(d)}},name:function(){return"mode"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return $$a4.$ob.doesParameterAllowIntermediateResultArray.call(this,a,b)},$type:new $.ig.Type("UltraCalcFunctionMode",$$a4.$ob.$type)},true);$c("UltraCalcFunctionModeMult:gk","UltraCalcFunctionMode",{init:function(){$$t.$gj.init.call(this)},evaluate:function(a,b){return $$t.$gj._aj(a,b,true)},name:function(){return"mode.mult"},$type:new $.ig.Type("UltraCalcFunctionModeMult",$$t.$gj.$type)},true);$c("UltraCalcFunctionModeSngl:gl","UltraCalcFunctionMode",{init:function(){$$t.$gj.init.call(this)},name:function(){return"mode.sngl"},$type:new $.ig.Type("UltraCalcFunctionModeSngl",$$t.$gj.$type)},true);$c("UltraCalcFunctionRankBase:gm","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},_aj:function(a,b,c){var d=true;if(b==3){var e=a.pop();d=!e._toBoolean1()}var f=a.pop();var g=a.pop();if(g.isError()){return new $$a4.ny(g.toErrorValue())}var h=g._toDouble3();var i=f.toArrayProxy();var j=i.getLength(0);var k=i.getLength(1);var l,m,n;l=m=n=0;for(var o=0;o<j;o++){for(var p=0;p<k;p++){var q=i.item(o,p);if(q.isError()){return new $$a4.ny(q.toErrorValue())}if(q.isNull()||q.isString()||q.isBoolean()){l++}else{var r=$4(h,q._toDouble3());if(r<0){m++}else if(r==0){n++}}}}if(n==0){return new $$a4.ny(new $$a4.nx(3))}var s=!d?k*j-(l+m+n):m;var t=s+1;if(c){t+=(n-1)/2}return new $$a4.ny(t)},maxArgs:function(){return 3},minArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionRankBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRank:gn","UltraCalcFunctionRankBase",{init:function(){$$t.$gm.init.call(this)},evaluate:function(a,b){return $$t.$gm._aj(a,b,false)},name:function(){return"rank"},$type:new $.ig.Type("UltraCalcFunctionRank",$$t.$gm.$type)},true);$c("UltraCalcFunctionRankEqual:go","UltraCalcFunctionRankBase",{init:function(){$$t.$gm.init.call(this)},evaluate:function(a,b){return $$t.$gm._aj(a,b,false)},name:function(){return"rank.eq"},$type:new $.ig.Type("UltraCalcFunctionRankEqual",$$t.$gm.$type)},true);$c("UltraCalcFunctionRankAverage:gp","UltraCalcFunctionRankBase",{init:function(){$$t.$gm.init.call(this)},evaluate:function(a,b){return $$t.$gm._aj(a,b,true)},name:function(){return"rank.avg"},$type:new $.ig.Type("UltraCalcFunctionRankAverage",$$t.$gm.$type)},true);$c("UltraCalcFunctionPercentRankBase:gq","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},_aj:function(a,b,c){var d=3;if(b==3){var e=a.pop();d=e._toInt();if(d<1){return new $$a4.ny(new $$a4.nx(4))}}var f=a.pop();var g=a.pop();if(f.isError()){return new $$a4.ny(f.toErrorValue())}var h=f._toDouble3();var i=g.toArrayProxy();var j=i.getLength(0);var k=i.getLength(1);var l,m,n;l=m=n=0;var o=Number.POSITIVE_INFINITY;var p=Number.NEGATIVE_INFINITY;var q,r;q=r=0;for(var s=0;s<j;s++){for(var t=0;t<k;t++){var u=i.item(s,t);if(u.isError()){return new $$a4.ny(u.toErrorValue())}if(u.isNull()||u.isString()||u.isBoolean()){l++}else{var v=u._toDouble3();var w=$4(h,v);if(w==0){if(n==0){m+=r;r=q=0}n++}else if(w<0){if(n==0){w=$4(o,v);if(w==0){q++}else if(w>0){q=1;o=v}}}else{if(n!=0){m++}else{w=$4(v,p);if(w<0){m++}else if(w==0){r++}else{m+=r;r=1;p=v}}}}}}var x=k*j-l;if(x==0){return new $$a4.ny(new $$a4.nx(3))}if(x==n){return new $$a4.ny(x==1?1:0)}var y;if(c){m++;x+=2}if(n==0){if(q==0||r==0){return new $$a4.ny(new $$a4.nx(3))}var z=(m+r-1)/(x-1);var aa=(m+r)/(x-1);var ab=(h-p)/(o-p);y=z+ab*(aa-z)}else if(m==0){y=0}else{y=m/(x-1)}y=$$a4.$aa.k(y,d);return new $$a4.ny(y)},maxArgs:function(){return 3},minArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionPercentRankBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPercentRank:gr","UltraCalcFunctionPercentRankBase",{init:function(){$$t.$gq.init.call(this)},evaluate:function(a,b){return $$t.$gq._aj(a,b,false)},name:function(){return"percentrank"},$type:new $.ig.Type("UltraCalcFunctionPercentRank",$$t.$gq.$type)},true);$c("UltraCalcFunctionPercentRankInclusive:gs","UltraCalcFunctionPercentRankBase",{init:function(){$$t.$gq.init.call(this)},evaluate:function(a,b){return $$t.$gq._aj(a,b,false)},name:function(){return"percentrank.inc"},$type:new $.ig.Type("UltraCalcFunctionPercentRankInclusive",$$t.$gq.$type)},true);$c("UltraCalcFunctionPercentRankExclusive:gt","UltraCalcFunctionPercentRankBase",{init:function(){$$t.$gq.init.call(this)},evaluate:function(a,b){return $$t.$gq._aj(a,b,true)},name:function(){return"percentrank.exc"},$type:new $.ig.Type("UltraCalcFunctionPercentRankExclusive",$$t.$gq.$type)},true);$c("UltraCalcFunctionDevSq:gu","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){if(c.count()==0){return new $$a4.ny(new $$a4.nx(2))}else if(c.count()==1){return new $$a4.ny(0)}var d=$$a4.$n8.r(c);return new $$a4.ny(d)})},name:function(){return"devsq"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionDevSq",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSumSq:gv","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){if(c.count()==0){return new $$a4.ny(0)}var d=0;for(var e=0;e<c.count();e++){d+=c.__inner[e]*c.__inner[e]}return new $$a4.ny(d)})},name:function(){return"sumsq"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionSumSq",$$a4.$ob.$type)},true);$c("UltraCalcFunctionVarBase:gw","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionVarBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionVar_S:gx","UltraCalcFunctionVarBase",{init:function(){$$t.$gw.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$bq._aj(c,true)})},name:function(){return"var.s"},$type:new $.ig.Type("UltraCalcFunctionVar_S",$$t.$gw.$type)},true);$c("UltraCalcFunctionVarA:gy","UltraCalcFunctionVarBase",{init:function(){$$t.$gw.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1249,function(c){return $$t.$bq._aj(c,true)})},name:function(){return"vara"},$type:new $.ig.Type("UltraCalcFunctionVarA",$$t.$gw.$type)},true);$c("UltraCalcFunctionVarP:gz","UltraCalcFunctionVarBase",{init:function(){$$t.$gw.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$bq._aj(c,false)})},name:function(){return"varp"},$type:new $.ig.Type("UltraCalcFunctionVarP",$$t.$gw.$type)},true);$c("UltraCalcFunctionVar_P:g0","UltraCalcFunctionVarBase",{init:function(){$$t.$gw.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$bq._aj(c,false)})},name:function(){return"var.p"},$type:new $.ig.Type("UltraCalcFunctionVar_P",$$t.$gw.$type)},true);$c("UltraCalcFunctionVarPA:g1","UltraCalcFunctionVarBase",{init:function(){$$t.$gw.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1249,function(c){return $$t.$bq._aj(c,false)})},name:function(){return"varpa"},$type:new $.ig.Type("UltraCalcFunctionVarPA",$$t.$gw.$type)},true);$c("UltraCalcFunctionStDevBase:g2","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},minArgs:function(){return 1},maxArgs:function(){return 2147483647},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionStDevBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionStDev_S:g3","UltraCalcFunctionStDevBase",{init:function(){$$t.$g2.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$br._ak(c,true)})},name:function(){return"stdev.s"},$type:new $.ig.Type("UltraCalcFunctionStDev_S",$$t.$g2.$type)},true);$c("UltraCalcFunctionStDevA:g4","UltraCalcFunctionStDevBase",{init:function(){$$t.$g2.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1249,function(c){return $$t.$br._ak(c,true)})},name:function(){return"stdeva"},$type:new $.ig.Type("UltraCalcFunctionStDevA",$$t.$g2.$type)},true);$c("UltraCalcFunctionStDevP:g5","UltraCalcFunctionStDevBase",{init:function(){$$t.$g2.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$br._ak(c,false)})},name:function(){return"stdevp"},$type:new $.ig.Type("UltraCalcFunctionStDevP",$$t.$g2.$type)},true);$c("UltraCalcFunctionStDev_P:g6","UltraCalcFunctionStDevBase",{init:function(){$$t.$g2.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1229,function(c){return $$t.$br._ak(c,false)})},name:function(){return"stdev.p"},$type:new $.ig.Type("UltraCalcFunctionStDev_P",$$t.$g2.$type)},true);$c("UltraCalcFunctionStDevPA:g7","UltraCalcFunctionStDevBase",{init:function(){$$t.$g2.init.call(this)},evaluate:function(a,b){return $$a4.$n8.d(a,b,1249,function(c){return $$t.$br._ak(c,false)})},name:function(){return"stdevpa"},$type:new $.ig.Type("UltraCalcFunctionStDevPA",$$t.$g2.$type)},true);$c("UltraCalcFunctionPercentileBase:g8","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},_aj:function(a,b,c){var d=a.pop();var e=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}var f=d._toDouble3();if(c){if(b){if(f<1||f>=4){return new $$a4.ny(new $$a4.nx(4))}}else{if(f<0||f>=5){return new $$a4.ny(new $$a4.nx(4))}}f=$.ig.truncate(f)/4}else{if(f<0||f>1){return new $$a4.ny(new $$a4.nx(4))}if(b&&(f==0||f==1)){return new $$a4.ny(new $$a4.nx(4))}}var g=new $$4.x(Number,0);var h=$$a4.$n7.c(e,0,1101,g.add.runOn(g));if(h!=null){return h}if(g.count()==0){return new $$a4.ny(new $$a4.nx(4))}var i=1/(g.count()+1);if(b&&(f<i||f+i>1)){return new $$a4.ny(new $$a4.nx(4))}var j=g.__inner[0];if(g.count()>1){if(b){f=(f-i)*(1/(1-i*2))}g.sort();var k=1/(g.count()-1);var l=f%k/k;var m=$.ig.truncate((g.count()-1)*f);j=g.__inner[m];if(m<g.count()-1&&l!=0){j+=(g.__inner[m+1]-g.__inner[m])*l}}return new $$a4.ny(j)},maxArgs:function(){return 2},minArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionPercentileBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPercentile:g9","UltraCalcFunctionPercentileBase",{init:function(){$$t.$g8.init.call(this)},evaluate:function(a,b){return $$t.$g8._aj(a,false,false)},name:function(){return"percentile"},$type:new $.ig.Type("UltraCalcFunctionPercentile",$$t.$g8.$type)},true);$c("UltraCalcFunctionPercentileInclusive:ha","UltraCalcFunctionPercentileBase",{init:function(){$$t.$g8.init.call(this)},evaluate:function(a,b){return $$t.$g8._aj(a,false,false)},name:function(){return"percentile.inc"},$type:new $.ig.Type("UltraCalcFunctionPercentileInclusive",$$t.$g8.$type)},true);$c("UltraCalcFunctionPercentileExclusive:hb","UltraCalcFunctionPercentileBase",{init:function(){$$t.$g8.init.call(this)},evaluate:function(a,b){return $$t.$g8._aj(a,true,false)},name:function(){return"percentile.exc"},$type:new $.ig.Type("UltraCalcFunctionPercentileExclusive",$$t.$g8.$type)},true);$c("UltraCalcFunctionQuartile:hc","UltraCalcFunctionPercentileBase",{init:function(){$$t.$g8.init.call(this)},evaluate:function(a,b){return $$t.$g8._aj(a,false,true)},name:function(){return"quartile"},$type:new $.ig.Type("UltraCalcFunctionQuartile",$$t.$g8.$type)},true);$c("UltraCalcFunctionQuartileInclusive:hd","UltraCalcFunctionPercentileBase",{init:function(){$$t.$g8.init.call(this)},evaluate:function(a,b){return $$t.$g8._aj(a,false,true)},name:function(){return"quartile.inc"},$type:new $.ig.Type("UltraCalcFunctionQuartileInclusive",$$t.$g8.$type)},true);$c("UltraCalcFunctionQuartileExclusive:he","UltraCalcFunctionPercentileBase",{init:function(){$$t.$g8.init.call(this)},evaluate:function(a,b){return $$t.$g8._aj(a,true,true)},name:function(){return"quartile.exc"},$type:new $.ig.Type("UltraCalcFunctionQuartileExclusive",$$t.$g8.$type)},true);$c("UltraCalcFunctionSmall:hf","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},_aj:function(a,b){var c=a.pop();var d=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();var f=new $$4.x(Number,0);var g=$$a4.$n7.c(d,0,1101,f.add.runOn(f));if(g!=null){return g}if(e<1){return new $$a4.ny(new $$a4.nx(4))}if(f.count()==0||e>f.count()){return new $$a4.ny(new $$a4.nx(4))}f.sort();if(b){e=f.count()-e}else{e--}var h=f.__inner[$.ig.truncate(e)];return new $$a4.ny(h)},evaluate:function(a,b){return $$t.$hf._aj(a,false)},maxArgs:function(){return 2},minArgs:function(){return 2},name:function(){return"small"},$type:new $.ig.Type("UltraCalcFunctionSmall",$$a4.$ob.$type)},true);$c("UltraCalcFunctionLarge:hg","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$hf._aj(a,true)},maxArgs:function(){return 2},minArgs:function(){return 2},name:function(){return"large"},$type:new $.ig.Type("UltraCalcFunctionLarge",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSec:hh","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(c<=-134217728||c>=134217728){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(1/Math.cos(c))})},name:function(){return"sec"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSec",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSecH:hi","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(c<=-134217728||c>=134217728){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(1/Math.cosh(c))})},name:function(){return"sech"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionSecH",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCsc:hj","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(c<=-134217728||c>=134217728){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(1/Math.sin(c))})},name:function(){return"csc"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionCsc",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCscH:hk","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(c<=-134217728||c>=134217728){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(1/Math.sinh(c))})},name:function(){return"csch"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionCscH",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCot:hl","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(c<=-134217728||c>=134217728){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(1/Math.tan(c))})},name:function(){return"cot"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionCot",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCotH:hm","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(c<=-134217728||c>=134217728){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(1/Math.tanh(c))})},name:function(){return"coth"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionCotH",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAcot:hn","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){return new $$a4.ny(Math.PI/2-Math.atan(c))})},name:function(){return"acot"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionAcot",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAcotH:ho","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(Math.abs(c)<=1){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(Math.log((c+1)/(c-1))/2)})},name:function(){return"acoth"},minArgs:function(){return 1},maxArgs:function(){return 1},doesParameterAllowIntermediateResultArray:function(a,b){return true},$type:new $.ig.Type("UltraCalcFunctionAcotH",$$a4.$ob.$type)},true);$c("UltraCalcFunctionBitOperation:hp","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var $self=this;return $$a4.$n8.j(a,true,function(c,d){if(c<0||d<0||c%1!=0||d%1!=0||c>=281474976710656||d>=281474976710656){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny($self._al($.ig.truncate(c),$.ig.truncate(d)))})},minArgs:function(){return 2},maxArgs:function(){return 2},_al:function(a,b){},_aj:function(a,b){if(a<0||a%1!=0||a>=281474976710656){return new $$a4.ny(new $$a4.nx(4))}var c=$.ig.truncate(Math.abs(b));if(c>53){return new $$a4.ny(new $$a4.nx(4))}var d=$.ig.truncate(a);if(b<0){d>>=c}else{d<<=c}return new $$a4.ny(d)},$type:new $.ig.Type("UltraCalcFunctionBitOperation",$$a4.$ob.$type)},true);$c("UltraCalcFunctionBitAnd:hq","UltraCalcFunctionBitOperation",{init:function(){$$t.$hp.init.call(this)},_al:function(a,b){return a&b},name:function(){return"bitand"},$type:new $.ig.Type("UltraCalcFunctionBitAnd",$$t.$hp.$type)},true);$c("UltraCalcFunctionBitOr:hr","UltraCalcFunctionBitOperation",{init:function(){$$t.$hp.init.call(this)},_al:function(a,b){return a|b},name:function(){return"bitor"},$type:new $.ig.Type("UltraCalcFunctionBitOr",$$t.$hp.$type)},true);$c("UltraCalcFunctionBitXor:hs","UltraCalcFunctionBitOperation",{init:function(){$$t.$hp.init.call(this)},_al:function(a,b){return a^b},name:function(){return"bitxor"},$type:new $.ig.Type("UltraCalcFunctionBitXor",$$t.$hp.$type)},true);$c("UltraCalcFunctionBitLShift:ht","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.j(a,true,function(c,d){return $$t.$hp._aj(c,d)})},name:function(){return"bitlshift"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionBitLShift",$$a4.$ob.$type)},true);$c("UltraCalcFunctionBitRShift:hu","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.j(a,true,function(c,d){return $$t.$hp._aj(c,-d)})},name:function(){return"bitrshift"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionBitRShift",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFisher:hv","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){if(c<=-1||c>=1){return new $$a4.ny(new $$a4.nx(4))}var d=Math.log((1+c)/(1-c))/2;return new $$a4.ny(d)})},name:function(){return"fisher"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionFisher",$$a4.$ob.$type)},true);$c("UltraCalcFunctionFisherInv:hw","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,true,function(c){return new $$a4.ny(Math.tanh(c))})},name:function(){return"fisherinv"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionFisherInv",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIfNa:hx","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=d._getResolvedValue();if($b($$a4.$nx.$type,e)!==null&&e.code()==3){return c}return new $$a4.ny(e)},maxArgs:function(){return 2},minArgs:function(){return 2},name:function(){return"ifna"},$type:new $.ig.Type("UltraCalcFunctionIfNa",$$a4.$ob.$type)},true);$c("UltraCalcFunctionArabic:hy","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=c.toString();var e=0;if(!String.isNullOrWhiteSpace(d)){d=d.trim();var f=d.charAt(0)=="-";if(f&&d.length==1){return new $$a4.ny(new $$a4.nx(4))}var g=f?1:0;var h=0;for(var i=d.length-1;i>=g;i--){var j=d.charAt(i);var k=-1;switch(j){case"m":case"M":k=1e3;break;case"D":case"d":k=500;break;case"C":case"c":k=100;break;case"L":case"l":k=50;break;case"X":case"x":k=10;break;case"V":case"v":k=5;break;case"I":case"i":k=1;break;default:return new $$a4.ny(new $$a4.nx(1))}e+=h<=k?k:-k;if(k>h){h=k}}if(f){e=-e}}return new $$a4.ny(e)},maxArgs:function(){return 1},minArgs:function(){return 1},name:function(){return"arabic"},$type:new $.ig.Type("UltraCalcFunctionArabic",$$a4.$ob.$type)},true);$c("UltraCalcFunctionXor:hz","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=$$a4.$n8.p(b);try{this._ac(d,a,b,true);if(d.count()==0){return new $$a4.ny(new $$a4.nx(1))}for(var e=0;e<d.count();e++){var f=d.__inner[e];if(f.isError()){return new $$a4.ny(f.toErrorValue())}var g;if(f.isString()){if(!function(){var h=$ab(f.toString(),g);g=h.p1;return h.ret}()){return new $$a4.ny(new $$a4.nx(1))}}else{g=f._toBoolean1()}if(g){c++}}return new $$a4.ny(c%2==0?false:true)}finally{$$a4.$n8.ad(d)}},maxArgs:function(){return 2147483647},minArgs:function(){return 1},name:function(){return"xor"},doesParameterAllowIntermediateResultArray:function(a,b){return b==false},$type:new $.ig.Type("UltraCalcFunctionXor",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSkew:h0","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$h0._aj(a,b,true)},_aj:function(a,b,c){return $$a4.$n8.d(a,b,1229,function(d){if(d.count()<3){return new $$a4.ny(new $$a4.nx(2))}var e=$$a4.$n8.z(d);var f=$$a4.$n8.t(d.count(),e);var g=$$a4.$n8.s(d,f);var h=$$a4.$n8.y(g,d.count(),c);if(h==0){return new $$a4.ny(new $$a4.nx(2))}var i=0;for(var j=0;j<d.count();j++){var k=(d.__inner[j]-f)/h;i+=k*k*k}var l=c?d.count()/((d.count()-1)*(d.count()-2)):1/d.count();return new $$a4.ny(l*i)})},name:function(){return"skew"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionSkew",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSkew_P:h1","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$h0._aj(a,b,false)},name:function(){return"skew.p"},minArgs:function(){return 1},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionSkew_P",$$a4.$ob.$type)},true);$c("UltraCalcFunctionClean:h2","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return c}var d=c.toString();if(!String.isNullOrEmpty(d)){var e=null;var f=false;for(var g=0;g<d.length;g++){var h=d.charAt(g);if(h.charCodeAt(0)<=31){f=true}else{switch(h.charCodeAt(0)){case 129:case 141:case 143:case 144:
case 157:f=true;break;default:f=false;break}}if(f){if(e==null){e=new $$6.aj(1,d.length-1);if(g>0){e.m(d,0,g)}}}else if(e!=null){e.h(h)}}if(e!=null){d=e.toString()}}return new $$a4.ny(d)},maxArgs:function(){return 1},minArgs:function(){return 1},name:function(){return"clean"},$type:new $.ig.Type("UltraCalcFunctionClean",$$a4.$ob.$type)},true);$c("UltraCalcFunctionBase:h3","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==3){c=a.pop()}var d=a.pop();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c!=null&&c.isError()){return new $$a4.ny(c.toErrorValue())}var f=e._toInt641();var g=d._toInt641();var h=c==null?1:c._toInt();if(f<0||f>=9007199254740990){return new $$a4.ny(new $$a4.nx(4))}if(g<2||g>36){return new $$a4.ny(new $$a4.nx(4))}if(h<0||h>255){return new $$a4.ny(new $$a4.nx(4))}var i=new $$6.aj(0);var j=g;while(f>0){var k=f%j;f-=k;var l;if(k<10){l=$u(48+k)}else{l=$u(55+k)}i.w(0,l);f=$.ig.truncate(Math.floor(f/j))}if(i.c()<h){i.x(0,$.ig.util.createString2("0",h-i.c()))}return new $$a4.ny(i.toString())},maxArgs:function(){return 3},minArgs:function(){return 2},name:function(){return"base"},$type:new $.ig.Type("UltraCalcFunctionBase",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDecimal:h4","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=d.toString();var f=c._toInt641();if(e.length>255){return new $$a4.ny(new $$a4.nx(1))}if(f<2||f>36){return new $$a4.ny(new $$a4.nx(4))}if(Math.pow(f,e.length)>0x8000000000000000){var g=1;var h=0;for(var i=e.length-1;i>=0;i--){var j=e.charAt(i);var k;if("0".charCodeAt(0)<=j.charCodeAt(0)&&j.charCodeAt(0)<="9".charCodeAt(0)){k=j.charCodeAt(0)-48}else if("a".charCodeAt(0)<=j.charCodeAt(0)&&j.charCodeAt(0)<="z".charCodeAt(0)){k=j.charCodeAt(0)-87}else if("A".charCodeAt(0)<=j.charCodeAt(0)&&j.charCodeAt(0)<="Z".charCodeAt(0)){k=j.charCodeAt(0)-55}else{k=2147483647}if(k>f){return new $$a4.ny(new $$a4.nx(4))}h+=g*k;g*=f}return new $$a4.ny(h)}else{var l=1;var m=0;for(var n=e.length-1;n>=0;n--){var o=e.charAt(n);var p;if("0".charCodeAt(0)<=o.charCodeAt(0)&&o.charCodeAt(0)<="9".charCodeAt(0)){p=o.charCodeAt(0)-48}else if("a".charCodeAt(0)<=o.charCodeAt(0)&&o.charCodeAt(0)<="z".charCodeAt(0)){p=o.charCodeAt(0)-87}else if("A".charCodeAt(0)<=o.charCodeAt(0)&&o.charCodeAt(0)<="Z".charCodeAt(0)){p=o.charCodeAt(0)-55}else{p=2147483647}if(p>f){return new $$a4.ny(new $$a4.nx(4))}m+=l*p;l*=f}return new $$a4.ny(m)}},maxArgs:function(){return 2},minArgs:function(){return 2},name:function(){return"decimal"},$type:new $.ig.Type("UltraCalcFunctionDecimal",$$a4.$ob.$type)},true);$c("UltraCalcFunctionStandardize:h5","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.i(a,true,function(c,d,e){if(e<=0){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny((c-d)/e)})},maxArgs:function(){return 3},minArgs:function(){return 3},name:function(){return"standardize"},$type:new $.ig.Type("UltraCalcFunctionStandardize",$$a4.$ob.$type)},true);$c("UltraCalcFunctionEffect:h6","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.j(a,false,function(c,d){var e=$.ig.truncate(d);var f=e;if(c<=0||f<1){return new $$a4.ny(new $$a4.nx(4))}var g=Math.pow(1+c/f,f)-1;return new $$a4.ny(g)})},maxArgs:function(){return 2},minArgs:function(){return 2},name:function(){return"effect"},$type:new $.ig.Type("UltraCalcFunctionEffect",$$a4.$ob.$type)},true);$c("UltraCalcFunctionNominal:h7","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.j(a,false,function(c,d){var e=$.ig.truncate(d);var f=e;if(c<=0||f<1){return new $$a4.ny(new $$a4.nx(4))}var g=(Math.pow(c+1,1/f)-1)*f;return new $$a4.ny(g)})},maxArgs:function(){return 2},minArgs:function(){return 2},name:function(){return"nominal"},$type:new $.ig.Type("UltraCalcFunctionNominal",$$a4.$ob.$type)},true);$c("UltraCalcFunctionRRI:h8","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.i(a,true,function(c,d,e){if(c<=0){return new $$a4.ny(new $$a4.nx(4))}var f=Math.pow(e/d,1/c)-1;return new $$a4.ny(f)})},maxArgs:function(){return 3},minArgs:function(){return 3},name:function(){return"rri"},$type:new $.ig.Type("UltraCalcFunctionRRI",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPDuration:h9","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.i(a,true,function(c,d,e){if(c<=0||d<=0||e<=0){return new $$a4.ny(new $$a4.nx(4))}var f=(Math.log(e)-Math.log(d))/Math.log(1+c);return new $$a4.ny(f)})},maxArgs:function(){return 3},minArgs:function(){return 3},name:function(){return"pduration"},$type:new $.ig.Type("UltraCalcFunctionPDuration",$$a4.$ob.$type)},true);$c("UltraCalcFunctionDays:ia","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e,f;if(d.isString()){var g;if(function(){var h=d._aj(d._a0(),g,true,false);g=h.p1;return h.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}e=function(h){return!$k(h)?h.value():-1}($$a4.$ny._dateTimeToExcelDate(d._o(),g))}else{e=d._toDouble3()}if(c.isString()){var h;if(function(){var i=c._aj(c._a0(),h,true,false);h=i.p1;return i.ret}()==false){return new $$a4.ny(new $$a4.nx(1))}f=function(i){return!$k(i)?i.value():-1}($$a4.$ny._dateTimeToExcelDate(c._o(),h))}else{f=c._toDouble3()}var i=2958466;if(f<0||f>=i||e<0||e>=i){return new $$a4.ny(new $$a4.nx(4))}var j=Math.floor(e)-Math.floor(f);return new $$a4.ny(j)},maxArgs:function(){return 2},minArgs:function(){return 2},name:function(){return"days"},$type:new $.ig.Type("UltraCalcFunctionDays",$$a4.$ob.$type)},true);$c("UltraCalcFunctionYearFrac:ib","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=b==3?a.pop():null;var d=a.pop();var e=a.pop();var f,g;if(!function(){var h=e._aj(a._w(),f,false,true);f=h.p1;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}if(!function(){var h=d._aj(a._w(),g,false,true);g=h.p1;return h.ret}()){return new $$a4.ny(new $$a4.nx(4))}var h=c==null?0:c._toInt321();if(h<0||h>4){return new $$a4.ny(new $$a4.nx(4))}var i=$$a4.$oa.d(f,g,h);return new $$a4.ny($$a4.$aa.i(i))},maxArgs:function(){return 3},minArgs:function(){return 2},name:function(){return"yearfrac"},$type:new $.ig.Type("UltraCalcFunctionYearFrac",$$a4.$ob.$type)},true);$c("UltraCalcFunctionProbFunction:ic","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;if(b==4){c=a.pop()._toDecimal2()}var d=a.pop()._toDecimal2();if(b<4){c=d}var e=a.pop().toArrayProxy();var f=a.pop().toArrayProxy();var g=e.getLength(0)*e.getLength(1);var h=f.getLength(0)*f.getLength(1);if(g!=h){return new $$a4.ny(new $$a4.nx(3))}var i=0;var j=0;var k=e.getEnumerator();var l=f.getEnumerator();while(k.moveNext()){l.moveNext();var m=k.current();if(m.isError()){return new $$a4.ny(m.toErrorValue())}var n=l.current();if(n.isError()){return new $$a4.ny(n.toErrorValue())}var o=m._toDecimal2();if(o<0||o>1){return new $$a4.ny(new $$a4.nx(4))}if(o>0){if(n.isString()){return new $$a4.ny(new $$a4.nx(4))}if(n.isBoolean()||m.isBoolean()){return new $$a4.ny(new $$a4.nx(2))}i+=o;var p=n._toDecimal2();if(d<=p&&p<=c){j+=o}}}if(i!=1){return new $$a4.ny(new $$a4.nx(4))}return new $$a4.ny(j)},maxArgs:function(){return 4},minArgs:function(){return 3},name:function(){return"prob"},$type:new $.ig.Type("UltraCalcFunctionProbFunction",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPermutationA:id","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=c._toDouble3();c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();if(e<0||d<0){return new $$a4.ny(new $$a4.nx(4))}var f=Math.pow(e,d);return new $$a4.ny(f)},name:function(){return"permutationa"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionPermutationA",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPermut:ie","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var d=$.ig.truncate(c._toDecimal2());c=a.pop();if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=$.ig.truncate(c._toDecimal2());if(e<0||d<0||d>e){return new $$a4.ny(new $$a4.nx(4))}var f=$$t.$ie._aj(e,d);return new $$a4.ny(f)},name:function(){return"permut"},minArgs:function(){return 2},maxArgs:function(){return 2},_aj:function(a,b){if(b>a){return NaN}var c=1;while(true){if(b==0){break}if(b<0){break}if(b>$a(a,2)){b=a-b}else{c*=a;a--;b--}}return c},$type:new $.ig.Type("UltraCalcFunctionPermut",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPoisson:ig","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=e._toDecimal2();var g=d._toDouble3();var h=c._toBoolean1();if(f<0||f>=1&&g<0){return new $$a4.ny(new $$a4.nx(4))}var i=g;var j=$.ig.truncate(f);var k=0;if(j>170||j*Math.log10(i)>=290){var l=0;var m=0;var n=$.ig.truncate(i);l=l+1;if(n==j){m++}if(h&&n<j){m++}var o=n*2;var p=1;var q=false;var r=n+1;while(!q&&r<=o){var s=p*i/r;l=l+s;if(r==j){m+=s}if(h&&r<j){m+=s}p=s;r=r+1}p=1;q=false;r=n-1;while(!q&&r>=0){var t=p*(r+1)/i;l=l+t;if(r==j){m+=t}if(h&&r<j){m+=t}p=t;r=r-1}k=m/l}else{var u=h?0:j;var v=$$t.$dw._aj(u,1);var w=Math.exp(-i);for(var x=u;x<=j;x++){k+=w*Math.pow(i,x)/v;v*=x+1}}return new $$a4.ny(k)},name:function(){return"poisson"},minArgs:function(){return 3},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionPoisson",$$a4.$ob.$type)},true);$c("UltraCalcFunctionPoissonDist:ih","UltraCalcFunctionPoisson",{init:function(){$$t.$ig.init.call(this)},name:function(){return"poisson.dist"},$type:new $.ig.Type("UltraCalcFunctionPoissonDist",$$t.$ig.$type)},true);$c("UltraCalcFunctionErf:ii","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=0;var d=null;if(b==2){d=a.pop()}var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}else if(e.isBoolean()){return new $$a4.ny(new $$a4.nx(1))}if(b==2){if(d.isError()){return new $$a4.ny(d.toErrorValue())}else if(d.isBoolean()){return new $$a4.ny(new $$a4.nx(1))}c=d._toDouble3()}var f=e._toDouble3();var g=$$t.$a.c(f);if(b==2){g=$$t.$a.c(c)-g}return new $$a4.ny(g)},name:function(){return"erf"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionErf",$$a4.$ob.$type)},true);$c("UltraCalcFunctionErfPrecise:ij","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,false,function(c){return new $$a4.ny($$t.$a.c(c))})},name:function(){return"erf.precise"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionErfPrecise",$$a4.$ob.$type)},true);$c("UltraCalcFunctionErfc:ik","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$a4.$n8.h(a,false,function(c){return new $$a4.ny($$t.$a.d(c))})},name:function(){return"erfc"},minArgs:function(){return 1},maxArgs:function(){return 1},$type:new $.ig.Type("UltraCalcFunctionErfc",$$a4.$ob.$type)},true);$c("UltraCalcFunctionErfcPrecise:il","UltraCalcFunctionErfc",{init:function(){$$t.$ik.init.call(this)},name:function(){return"erfc.precise"},$type:new $.ig.Type("UltraCalcFunctionErfcPrecise",$$t.$ik.$type)},true);$c("UltraCalcFunctionExponDist:im","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=a.pop();if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var f=e._toDouble3();var g=d._toDouble3();var h=c._toBoolean1();if(f<0||g<=0){return new $$a4.ny(new $$a4.nx(4))}var i=Math.exp(-f*g);var j=h?1-i:g*i;return new $$a4.ny(j)},name:function(){return"expondist"},minArgs:function(){return 3},maxArgs:function(){return 3},$type:new $.ig.Type("UltraCalcFunctionExponDist",$$a4.$ob.$type)},true);$c("UltraCalcFunctionExpon_Dist:io","UltraCalcFunctionExponDist",{init:function(){$$t.$im.init.call(this)},name:function(){return"expon.dist"},$type:new $.ig.Type("UltraCalcFunctionExpon_Dist",$$t.$im.$type)},true);$c("UltraCalcFunctionWeibull:ip","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();var e=a.pop();var f=a.pop();if(f.isError()){return new $$a4.ny(f.toErrorValue())}if(e.isError()){return new $$a4.ny(e.toErrorValue())}if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var g=f._toDouble3();var h=e._toDouble3();var i=d._toDouble3();var j=c._toBoolean1();if(g<0||h<=0||i<=0){return new $$a4.ny(new $$a4.nx(4))}var k=Math.exp(-Math.pow(g/i,h));var l=j?1-k:h/Math.pow(i,h)*Math.pow(g,h-1)*k;return new $$a4.ny(l)},name:function(){return"weibull"},minArgs:function(){return 4},maxArgs:function(){return 4},$type:new $.ig.Type("UltraCalcFunctionWeibull",$$a4.$ob.$type)},true);$c("UltraCalcFunctionWeibullDist:iq","UltraCalcFunctionWeibull",{init:function(){$$t.$ip.init.call(this)},name:function(){return"weibull.dist"},$type:new $.ig.Type("UltraCalcFunctionWeibullDist",$$t.$ip.$type)},true);$c("UltraCalcFunctionTrimMean:ir","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}if(c.isError()){return new $$a4.ny(c.toErrorValue())}var e=c._toDouble3();var f=$$a4.$n8.o(10);if(e<0||e>=1){return new $$a4.ny(new $$a4.nx(4))}try{$$a4.$n7.c(d,0,1229,f.add.runOn(f));if(f.count()==0){return new $$a4.ny(new $$a4.nx(4))}var g=$.ig.truncate(e*f.count());g-=g%2;if(g>0){f.sort()}var h=0;for(var i=$a(g,2),j=f.count()-$a(g,2);i<j;i++){h+=f.__inner[i]}var k=$$a4.$n8.t(f.count()-g,h);return new $$a4.ny(k)}finally{$$a4.$n8.ac(f)}},name:function(){return"trimmean"},minArgs:function(){return 2},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionTrimMean",$$a4.$ob.$type)},true);$c("UltraCalcFunctionAverageIfs:is","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$es._aj(a,b,0,function(c,d){return new $$a4.ny(d==0?new $$a4.nx(2):c/d)},function(c,d){return c+d})},name:function(){return"averageifs"},minArgs:function(){return 3},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionAverageIfs",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCell:it","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==2){c=a.pop()}var d=a.pop();if(d.isError()){return new $$a4.ny(d.toErrorValue())}var e=d.toString().toLowerCase();var f=null;var g;var h;var i,j;if(c==null){var k=a._r()._u();if(k._b==null||k._b.workbook()==null){k.e()}if(k._b==null||k._b.workbook()==null){return new $$a4.ny(new $$a4.nx(1))}h=k._b;j=k._c;i=k._d;g=a._r()._bb().i(h.index())}else{f=$b($$a4.$aa3.$type,c.toReference());if(f==null){return new $$a4.ny(new $$a4.nx(1))}g=f._worksheetReference();h=f._worksheet();j=f._columnIndex();i=f._rowIndex()}var l=h!=null?h.rows()._aj(i):null;var m;switch(e){case"address":{var n=$$a4.$zf.u(i,j,h._o(),false,false,-1,-1,false,h._c());if($$a4.$j1.l_op_Equality(a.owningCell(),null)||h!=a.owningCell().worksheet()){var o=g.o($$a4.$p0.a,true);if(o.startsWith("'")&&o.endsWith("'!")){o=o.substr(1,o.length-3);var p=o.indexOf("[");if(p>0){o=o.substr(p)}o+="!"}n=o+n}m=n;break}case"col":{m=j+1;break}case"contents":case"type":{m=$$t.$it._aj(c,f,g,j,l,false);if(e=="type"){if(m==null){m="b"}else{var q=$b(String,m);if(q!=null){m="l"}else{m="v"}}}break}case"filename":{if(!g.j()&&String.isNullOrEmpty(g.e().x())){m=""}else{var r=g.o($$a4.$p0.a,true);if(r!=null&&r.length>0){if(r.charAt(r.length-1)=="!"){r=r.substr(0,r.length-1)}if(r.startsWith("'")&&r.endsWith("'")){r=r.substr(1,r.length-2)}}m=r}break}case"color":case"format":case"parentheses":case"prefix":case"protect":{if(g.j()){m=new $$a4.nx(3)}else{var s=h._b4(l,j);switch(e){case"color":{var t=s._cs();var u=h.workbook()._b2().a(t);var v=u.c(1);m=v!=null&&!String.isNullOrEmpty(v.color())?1:0;break}case"parentheses":{var w=s._cs();var x=h.workbook()._b2().a(w);var y=x.c(0);m=y!=null&&y.hasParentheses()&&!y.hasVerbatimString()?1:0;break}case"prefix":m=$$t.$it._aj(c,f,g,j,l,true);if(typeof m==="string"){switch(s._a4()){case 1:case 7:case 5:case 0:m="'";break;case 2:case 6:m="^";break;case 3:m="'";break;case 4:m="\\";break;default:m="";break}}else{m=""}break;case"protect":m=$j(s._c5(),false)?0:1;break;default:case"format":{var z=s._cs();var aa=h.workbook()._b2().a(z);m=aa.ah();break}}}break}case"row":{m=i+1;break}case"width":{if(g.j()){m=new $$a4.nx(3)}else{var ab=h._fp(j,false);m=$$a4.$aa.f(h._fn(ab))}break}default:m=new $$a4.nx(1);break}return new $$a4.ny(m)},_aj:function(a,b,c,d,e,f){var g;if(e==null){if(a!=null&&c.j()){if(b.value()!=null){g=b.value().value()}else{g=null}}else{g=null}}else{if(!e._bt(d)){g=null}else{if(f){var h=e.getCellFormula(d);if(h!=null){return h}}var i=null;if(b==null){b=e._as(d);if(b._isDirty()&&b._formula()!=null){i=b._formula().evaluateCore(e.worksheet().workbook())}}if(i==null){i=new $$a4.ny(b)}var j=i._bj(false,false);if($b($$a4.$dq.$type,j)!==null){g=j.unformattedString()}else{g=j}}}return g},name:function(){return"cell"},minArgs:function(){return 1},maxArgs:function(){return 2},$type:new $.ig.Type("UltraCalcFunctionCell",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCountIfs:iu","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$es._aj(a,b,0,function(c,d){return new $$a4.ny(d)},null)},name:function(){return"countifs"},minArgs:function(){return 2},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionCountIfs",$$a4.$ob.$type)},true);$c("UltraCalcFunctionCovarianceP:iv","UltraCalcFunctionCovar",{init:function(){$$t.$e0.init.call(this)},evaluate:function(a,b){return $$t.$e0._ar(a,b,false)},name:function(){return"covariance.p"},$type:new $.ig.Type("UltraCalcFunctionCovarianceP",$$t.$e0.$type)},true);$c("UltraCalcFunctionCovarianceS:iw","UltraCalcFunctionCovar",{init:function(){$$t.$e0.init.call(this)},evaluate:function(a,b){return $$t.$e0._ar(a,b,true)},name:function(){return"covariance.s"},$type:new $.ig.Type("UltraCalcFunctionCovarianceS",$$t.$e0.$type)},true);$c("UltraCalcFunctionFormulaText:ix","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();if(!c.isReference()){return new $$a4.ny(new $$a4.nx(3))}var d=c.toReference();var e=d.value();var f=d.formula();if(f==null){return new $$a4.ny(new $$a4.nx(3))}var g;if($b($$a4.$eb.$type,f)!==null){g="{"+f._arrayFormula()._toString()+"}"}else{g=f.formulaString()}return new $$a4.ny(g)},maxArgs:function(){return 1},minArgs:function(){return 1},name:function(){return"formulatext"},$type:new $.ig.Type("UltraCalcFunctionFormulaText",$$a4.$ob.$type)},true);$c("UltraCalcFunctionIsFormula:iy","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=a.pop();var d=false;if(c.isReference()){var e=c.toReference();var f=e.value();d=e.formula()!=null}return new $$a4.ny(d)},maxArgs:function(){return 1},minArgs:function(){return 1},name:function(){return"isformula"},$type:new $.ig.Type("UltraCalcFunctionIsFormula",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMaxIfs:iz","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$es._aj(a,b,-1.7976931348623157e308,function(c,d){return new $$a4.ny(d==0?0:c)},function(c,d){return d>c?d:c})},name:function(){return"maxifs"},minArgs:function(){return 3},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionMaxIfs",$$a4.$ob.$type)},true);$c("UltraCalcFunctionMinIfs:i0","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$es._aj(a,b,1.7976931348623157e308,function(c,d){return new $$a4.ny(d==0?0:c)},function(c,d){return d<c?d:c})},name:function(){return"minifs"},minArgs:function(){return 3},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionMinIfs",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSheet:i1","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==1){c=a.pop()}var d=null;if(b==0){if($$a4.$j1.l_op_Inequality(a.owningCell(),null)){d=a.owningCell().worksheet()}}else if(c.isReference()){var e=c.toReference();d=e._worksheet();if(d==null){return new $$a4.ny(new $$a4.nx($$a4.o4.$name))}}else if(c.isString()){var f=c.toString();if(!a._r().worksheets().exists(f)){return new $$a4.ny(new $$a4.nx(3))}d=c._o().worksheets()._item1(f)}else if(c.isError()){return new $$a4.ny(c.toErrorValue())}else{return new $$a4.ny(new $$a4.nx(3))}if(d==null){return new $$a4.ny(new $$a4.nx(0))}return new $$a4.ny(d.sheetIndex()+1)},maxArgs:function(){return 1},minArgs:function(){return 0},name:function(){return"sheet"},$type:new $.ig.Type("UltraCalcFunctionSheet",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSheets:i2","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){var c=null;if(b==1){c=a.pop()}var d;if(b==0){d=a._r().sheets().count()}else if(c.isReference()){var e=c.toReference();if($b($$a4.$aan.$type,e)!==null){d=new $$a4.nx(1)}else{var f=e._getRegionGroup();if(f.count()==1){d=1}else{var g=2147483647;var h=-2147483648;var j=f.getEnumerator();while(j.moveNext()){var i=j.current();var k=i.worksheet().sheetIndex();if(k<g){g=k}if(k>h){h=k}}d=h-g+1}}}else if(c.isString()||c.isBoolean()){d=new $$a4.nx(1)}else if(c.isError()){d=c.toErrorValue()}else{d=new $$a4.nx(3)}return new $$a4.ny(d)},maxArgs:function(){return 1},minArgs:function(){return 0},name:function(){return"sheets"},$type:new $.ig.Type("UltraCalcFunctionSheets",$$a4.$ob.$type)},true);$c("UltraCalcFunctionSumIfs:i3","BuiltInFunctionBase",{init:function(){$$a4.$ob.init.call(this)},evaluate:function(a,b){return $$t.$es._aj(a,b,0,function(c,d){return new $$a4.ny(c)},function(c,d){return c+d})},name:function(){return"sumifs"},minArgs:function(){return 3},maxArgs:function(){return 2147483647},$type:new $.ig.Type("UltraCalcFunctionSumIfs",$$a4.$ob.$type)},true);if($$t.$b.staticInit&&!$$t.$b.ultraCalcFunctionLoaderStaticInitCalled){$$t.$b.staticInit();$$t.$b.ultraCalcFunctionLoaderStaticInitCalled=true}$$t.$a5._aj=["$","\x80","\xa3","\xa4","\xa5","\u09f2","\u09f3","\u0e3f","\u17db","\u20a0","\u20a1","\u20a2","\u20a3","\u20a4","\u20a6","\u20a7","\u20a8","\u20a9","\u20aa","\u20ab","\u20ac","\u20ad","\u20ae","\u20af","\ufdfc","\ufe69","\uff04","\uffe1","\uffe5","\uffe6"];$$t.$eq.f=null;$$t.$eq.a=["+","-"];$$t.$eq.ag=Math.log10(2.718281828459045);$$t.$eq.ah=Math.logBase(2.718281828459045,2);$$t.$dy._aj=null;$$t.$dy._ak=null;$$t.$er.a=null;$$t.$er.c=null;$$t.$er.e=null;$$t.$er.g=null;$$t.$er.i=null;$$t.$ei._ak=null;if($.ig.excel){$.ig.excel._isNamespace=true}});