1
0
Fork 0
mirror of https://github.com/IRS-Public/direct-file.git synced 2025-06-27 20:25:52 +00:00

fix Modulo and XML

This commit is contained in:
Elijah Wright 2025-06-13 14:48:33 -07:00
parent a58d156d4e
commit 3d6cd5d1f9
6 changed files with 334 additions and 248 deletions

View file

@ -85,11 +85,9 @@
</When>
<Then>
<True />
</When>
</Then>
</Then>
</Case>
<Case>
<When>
<Case>
<When>
<NotEqual>
@ -128,7 +126,7 @@
</When>
<Then>
<True />
</When>
</Then>
</Then>
</Case>
<Case>

View file

@ -1593,6 +1593,9 @@ $c_Lgov_irs_factgraph_FactDictionary.prototype.addMeta__Lgov_irs_factgraph_defin
};
this.Lgov_irs_factgraph_FactDictionary__f_meta = metaConfigTrait
});
$c_Lgov_irs_factgraph_FactDictionary.prototype.getMeta = (function() {
return this.Lgov_irs_factgraph_FactDictionary__f_meta
});
$c_Lgov_irs_factgraph_FactDictionary.prototype.getOptionsPathForEnum = (function(arg) {
var prep0 = $as_T(arg);
return this.getOptionsPathForEnum__T__s_Option(prep0)
@ -1601,9 +1604,6 @@ $c_Lgov_irs_factgraph_FactDictionary.prototype.getDefinition = (function(arg) {
var prep0 = $as_T(arg);
return this.apply__T__Lgov_irs_factgraph_FactDefinition(prep0)
});
$c_Lgov_irs_factgraph_FactDictionary.prototype.getMeta = (function() {
return this.Lgov_irs_factgraph_FactDictionary__f_meta
});
function $as_Lgov_irs_factgraph_FactDictionary(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_FactDictionary) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.FactDictionary"))
}
@ -1857,13 +1857,20 @@ $c_Lgov_irs_factgraph_Graph.prototype.getCollectionPaths__T__sci_Seq = (function
var this$4 = $n(paths);
return this$4
});
$c_Lgov_irs_factgraph_Graph.prototype.explainWithPath = (function(arg) {
var prep0 = $as_Lgov_irs_factgraph_Path(arg);
return this.explain__Lgov_irs_factgraph_Path__Lgov_irs_factgraph_Explanation(prep0)
$c_Lgov_irs_factgraph_Graph.prototype.getDictionary = (function() {
return this.Lgov_irs_factgraph_JSGraph__f_dictionary
});
$c_Lgov_irs_factgraph_Graph.prototype.getVectWithPath = (function(arg) {
$c_Lgov_irs_factgraph_Graph.prototype.delete = (function(arg) {
var prep0 = $as_T(arg);
this.delete__T__V(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.explain = (function(arg) {
var prep0 = $as_T(arg);
return this.explain__T__Lgov_irs_factgraph_Explanation(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.deleteWithPath = (function(arg) {
var prep0 = $as_Lgov_irs_factgraph_Path(arg);
return this.getVect__Lgov_irs_factgraph_Path__Lgov_irs_factgraph_monads_MaybeVector(prep0)
this.delete__Lgov_irs_factgraph_Path__V(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.setWithPath = (function(arg, arg$2) {
var prep0 = $as_Lgov_irs_factgraph_Path(arg);
@ -1873,6 +1880,18 @@ $c_Lgov_irs_factgraph_Graph.prototype.getVect = (function(arg) {
var prep0 = $as_T(arg);
return this.getVect__T__Lgov_irs_factgraph_monads_MaybeVector(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.getVectWithPath = (function(arg) {
var prep0 = $as_Lgov_irs_factgraph_Path(arg);
return this.getVect__Lgov_irs_factgraph_Path__Lgov_irs_factgraph_monads_MaybeVector(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.get = (function(arg) {
var prep0 = $as_T(arg);
return this.get__T__Lgov_irs_factgraph_monads_Result(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.explainWithPath = (function(arg) {
var prep0 = $as_Lgov_irs_factgraph_Path(arg);
return this.explain__Lgov_irs_factgraph_Path__Lgov_irs_factgraph_Explanation(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.set = (function(arg, arg$2) {
var prep0 = $as_T(arg);
this.set__T__O__V(prep0, arg$2)
@ -1881,25 +1900,6 @@ $c_Lgov_irs_factgraph_Graph.prototype.getWithPath = (function(arg) {
var prep0 = $as_Lgov_irs_factgraph_Path(arg);
return this.get__Lgov_irs_factgraph_Path__Lgov_irs_factgraph_monads_Result(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.get = (function(arg) {
var prep0 = $as_T(arg);
return this.get__T__Lgov_irs_factgraph_monads_Result(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.delete = (function(arg) {
var prep0 = $as_T(arg);
this.delete__T__V(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.deleteWithPath = (function(arg) {
var prep0 = $as_Lgov_irs_factgraph_Path(arg);
this.delete__Lgov_irs_factgraph_Path__V(prep0)
});
$c_Lgov_irs_factgraph_Graph.prototype.getDictionary = (function() {
return this.Lgov_irs_factgraph_JSGraph__f_dictionary
});
$c_Lgov_irs_factgraph_Graph.prototype.explain = (function(arg) {
var prep0 = $as_T(arg);
return this.explain__T__Lgov_irs_factgraph_Explanation(prep0)
});
function $as_Lgov_irs_factgraph_Graph(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_Graph) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.Graph"))
}
@ -2320,7 +2320,7 @@ function $c_Lgov_irs_factgraph_compnodes_CompNode$() {
this.Lgov_irs_factgraph_compnodes_CompNode$__f_factories = null;
$n_Lgov_irs_factgraph_compnodes_CompNode$ = this;
$n($m_s_package$().s_package$__f_List);
var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lgov_irs_factgraph_compnodes_CompNodeFactory.getArrayOf().constr)([$m_Lgov_irs_factgraph_compnodes_BooleanNode$False$(), $m_Lgov_irs_factgraph_compnodes_BooleanNode$True$(), $m_Lgov_irs_factgraph_compnodes_DollarNode$(), $m_Lgov_irs_factgraph_compnodes_IntNode$(), $m_Lgov_irs_factgraph_compnodes_DaysNode$(), $m_Lgov_irs_factgraph_compnodes_RationalNode$(), $m_Lgov_irs_factgraph_compnodes_DayNode$(), $m_Lgov_irs_factgraph_compnodes_StringNode$(), $m_Lgov_irs_factgraph_compnodes_TinNode$(), $m_Lgov_irs_factgraph_compnodes_EinNode$(), $m_Lgov_irs_factgraph_compnodes_EmailAddressNode$(), $m_Lgov_irs_factgraph_compnodes_AddressNode$(), $m_Lgov_irs_factgraph_compnodes_BankAccountNode$(), $m_Lgov_irs_factgraph_compnodes_EnumNode$(), $m_Lgov_irs_factgraph_compnodes_MultiEnumNode$(), $m_Lgov_irs_factgraph_compnodes_PhoneNumberNode$(), $m_Lgov_irs_factgraph_compnodes_Add$(), $m_Lgov_irs_factgraph_compnodes_All$(), $m_Lgov_irs_factgraph_compnodes_Any$(), $m_Lgov_irs_factgraph_compnodes_Today$(), $m_Lgov_irs_factgraph_compnodes_AsString$(), $m_Lgov_irs_factgraph_compnodes_AsDecimalString$(), $m_Lgov_irs_factgraph_compnodes_CollectionSize$(), $m_Lgov_irs_factgraph_compnodes_Count$(), $m_Lgov_irs_factgraph_compnodes_Dependency$(), $m_Lgov_irs_factgraph_compnodes_Divide$(), $m_Lgov_irs_factgraph_compnodes_EnumOptionsContains$(), $m_Lgov_irs_factgraph_compnodes_EnumOptionsSize$(), $m_Lgov_irs_factgraph_compnodes_EnumOptionsNode$(), $m_Lgov_irs_factgraph_compnodes_Equal$(), $m_Lgov_irs_factgraph_compnodes_Filter$(), $m_Lgov_irs_factgraph_compnodes_FirstNCollectionItems$(), $m_Lgov_irs_factgraph_compnodes_Find$(), $m_Lgov_irs_factgraph_compnodes_GreaterOf$(), $m_Lgov_irs_factgraph_compnodes_GreaterThan$(), $m_Lgov_irs_factgraph_compnodes_GreaterThanOrEqual$(), $m_Lgov_irs_factgraph_compnodes_IndexOf$(), $m_Lgov_irs_factgraph_compnodes_IsComplete$(), $m_Lgov_irs_factgraph_compnodes_Length$(), $m_Lgov_irs_factgraph_compnodes_LesserOf$(), $m_Lgov_irs_factgraph_compnodes_LessThan$(), $m_Lgov_irs_factgraph_compnodes_LessThanOrEqual$(), $m_Lgov_irs_factgraph_compnodes_Maximum$(), $m_Lgov_irs_factgraph_compnodes_Minimum$(), $m_Lgov_irs_factgraph_compnodes_Multiply$(), $m_Lgov_irs_factgraph_compnodes_Not$(), $m_Lgov_irs_factgraph_compnodes_NotEqual$(), $m_Lgov_irs_factgraph_compnodes_Paste$(), $m_Lgov_irs_factgraph_compnodes_Placeholder$(), $m_Lgov_irs_factgraph_compnodes_Regex$(), $m_Lgov_irs_factgraph_compnodes_Round$(), $m_Lgov_irs_factgraph_compnodes_RoundToInt$(), $m_Lgov_irs_factgraph_compnodes_StepwiseMultiply$(), $m_Lgov_irs_factgraph_compnodes_StripChars$(), $m_Lgov_irs_factgraph_compnodes_Subtract$(), $m_Lgov_irs_factgraph_compnodes_CollectionSum$(), $m_Lgov_irs_factgraph_compnodes_Switch$(), $m_Lgov_irs_factgraph_compnodes_Trim$(), $m_Lgov_irs_factgraph_compnodes_ToUpper$(), $m_Lgov_irs_factgraph_compnodes_TruncateCents$(), $m_Lgov_irs_factgraph_compnodes_transformations_TruncateNameForMeF$()]));
var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lgov_irs_factgraph_compnodes_CompNodeFactory.getArrayOf().constr)([$m_Lgov_irs_factgraph_compnodes_BooleanNode$False$(), $m_Lgov_irs_factgraph_compnodes_BooleanNode$True$(), $m_Lgov_irs_factgraph_compnodes_DollarNode$(), $m_Lgov_irs_factgraph_compnodes_IntNode$(), $m_Lgov_irs_factgraph_compnodes_DaysNode$(), $m_Lgov_irs_factgraph_compnodes_RationalNode$(), $m_Lgov_irs_factgraph_compnodes_DayNode$(), $m_Lgov_irs_factgraph_compnodes_StringNode$(), $m_Lgov_irs_factgraph_compnodes_TinNode$(), $m_Lgov_irs_factgraph_compnodes_EinNode$(), $m_Lgov_irs_factgraph_compnodes_EmailAddressNode$(), $m_Lgov_irs_factgraph_compnodes_AddressNode$(), $m_Lgov_irs_factgraph_compnodes_BankAccountNode$(), $m_Lgov_irs_factgraph_compnodes_EnumNode$(), $m_Lgov_irs_factgraph_compnodes_MultiEnumNode$(), $m_Lgov_irs_factgraph_compnodes_PhoneNumberNode$(), $m_Lgov_irs_factgraph_compnodes_Add$(), $m_Lgov_irs_factgraph_compnodes_All$(), $m_Lgov_irs_factgraph_compnodes_Any$(), $m_Lgov_irs_factgraph_compnodes_Today$(), $m_Lgov_irs_factgraph_compnodes_AsString$(), $m_Lgov_irs_factgraph_compnodes_AsDecimalString$(), $m_Lgov_irs_factgraph_compnodes_CollectionSize$(), $m_Lgov_irs_factgraph_compnodes_Count$(), $m_Lgov_irs_factgraph_compnodes_Dependency$(), $m_Lgov_irs_factgraph_compnodes_Divide$(), $m_Lgov_irs_factgraph_compnodes_EnumOptionsContains$(), $m_Lgov_irs_factgraph_compnodes_EnumOptionsSize$(), $m_Lgov_irs_factgraph_compnodes_EnumOptionsNode$(), $m_Lgov_irs_factgraph_compnodes_Equal$(), $m_Lgov_irs_factgraph_compnodes_Filter$(), $m_Lgov_irs_factgraph_compnodes_FirstNCollectionItems$(), $m_Lgov_irs_factgraph_compnodes_Find$(), $m_Lgov_irs_factgraph_compnodes_GreaterOf$(), $m_Lgov_irs_factgraph_compnodes_GreaterThan$(), $m_Lgov_irs_factgraph_compnodes_GreaterThanOrEqual$(), $m_Lgov_irs_factgraph_compnodes_IndexOf$(), $m_Lgov_irs_factgraph_compnodes_IsComplete$(), $m_Lgov_irs_factgraph_compnodes_Length$(), $m_Lgov_irs_factgraph_compnodes_LesserOf$(), $m_Lgov_irs_factgraph_compnodes_LessThan$(), $m_Lgov_irs_factgraph_compnodes_LessThanOrEqual$(), $m_Lgov_irs_factgraph_compnodes_Maximum$(), $m_Lgov_irs_factgraph_compnodes_Minimum$(), $m_Lgov_irs_factgraph_compnodes_Modulo$(), $m_Lgov_irs_factgraph_compnodes_Multiply$(), $m_Lgov_irs_factgraph_compnodes_Not$(), $m_Lgov_irs_factgraph_compnodes_NotEqual$(), $m_Lgov_irs_factgraph_compnodes_Paste$(), $m_Lgov_irs_factgraph_compnodes_Placeholder$(), $m_Lgov_irs_factgraph_compnodes_Regex$(), $m_Lgov_irs_factgraph_compnodes_Round$(), $m_Lgov_irs_factgraph_compnodes_RoundToInt$(), $m_Lgov_irs_factgraph_compnodes_StepwiseMultiply$(), $m_Lgov_irs_factgraph_compnodes_StripChars$(), $m_Lgov_irs_factgraph_compnodes_Subtract$(), $m_Lgov_irs_factgraph_compnodes_CollectionSum$(), $m_Lgov_irs_factgraph_compnodes_Switch$(), $m_Lgov_irs_factgraph_compnodes_Trim$(), $m_Lgov_irs_factgraph_compnodes_ToUpper$(), $m_Lgov_irs_factgraph_compnodes_TruncateCents$(), $m_Lgov_irs_factgraph_compnodes_transformations_TruncateNameForMeF$()]));
var defaultFactories = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems);
var $$x2 = $m_scm_Map$();
var this$5 = $n(defaultFactories);
@ -20719,9 +20719,15 @@ $c_Lgov_irs_factgraph_Fact.prototype.apply__Lgov_irs_factgraph_PathItem__Lgov_ir
var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lgov_irs_factgraph_PathItem.getArrayOf().constr)([key]));
return $p_Lgov_irs_factgraph_Fact__apply__sci_List__Z__Lgov_irs_factgraph_monads_MaybeVector(this, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems), true)
});
Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "path", {
Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "value", {
"get": (function() {
return this.Lgov_irs_factgraph_Fact__f_path
return this.Lgov_irs_factgraph_Fact__f_value
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "limits", {
"get": (function() {
return this.Lgov_irs_factgraph_Fact__f_limits
}),
"configurable": true
});
@ -20737,9 +20743,9 @@ Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "parent", {
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "value", {
Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "path", {
"get": (function() {
return this.Lgov_irs_factgraph_Fact__f_value
return this.Lgov_irs_factgraph_Fact__f_path
}),
"configurable": true
});
@ -20749,12 +20755,6 @@ Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "meta", {
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_Fact.prototype, "limits", {
"get": (function() {
return this.Lgov_irs_factgraph_Fact__f_limits
}),
"configurable": true
});
function $as_Lgov_irs_factgraph_Fact(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_Fact) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.Fact"))
}
@ -21152,30 +21152,30 @@ $c_Lgov_irs_factgraph_FactDefinition.prototype.apply__Lgov_irs_factgraph_PathIte
var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lgov_irs_factgraph_PathItem.getArrayOf().constr)([key]));
return $p_Lgov_irs_factgraph_FactDefinition__apply__sci_List__Lgov_irs_factgraph_monads_MaybeVector(this, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems))
});
Object.defineProperty($c_Lgov_irs_factgraph_FactDefinition.prototype, "value", {
"get": (function() {
return this.value__Lgov_irs_factgraph_compnodes_CompNode()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_FactDefinition.prototype, "meta", {
"get": (function() {
return this.meta__Lgov_irs_factgraph_Factual$Meta()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_FactDefinition.prototype, "abstractPath", {
"get": (function() {
return this.Lgov_irs_factgraph_FactDefinition__f_path
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_FactDefinition.prototype, "value", {
"get": (function() {
return this.value__Lgov_irs_factgraph_compnodes_CompNode()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_FactDefinition.prototype, "limits", {
"get": (function() {
return this.limits__sci_Seq()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_FactDefinition.prototype, "meta", {
"get": (function() {
return this.meta__Lgov_irs_factgraph_Factual$Meta()
}),
"configurable": true
});
function $as_Lgov_irs_factgraph_FactDefinition(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_FactDefinition) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.FactDefinition"))
}
@ -21323,15 +21323,21 @@ $c_Lgov_irs_factgraph_JSGraph.prototype.jsCheckPersister__sjs_js_Array = (functi
}))));
return $m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(col)
});
Object.defineProperty($c_Lgov_irs_factgraph_JSGraph.prototype, "persister", {
"get": (function() {
return this.Lgov_irs_factgraph_JSGraph__f_persister
}),
"configurable": true
$c_Lgov_irs_factgraph_JSGraph.prototype.toStringDictionary = (function() {
return this.toStringDictionary__sjs_js_Dictionary()
});
$c_Lgov_irs_factgraph_JSGraph.prototype.getFact = (function(arg) {
var prep0 = $as_T(arg);
return this.getFact__T__Lgov_irs_factgraph_Fact(prep0)
$c_Lgov_irs_factgraph_JSGraph.prototype.jsSave = (function() {
return this.jsSave__Lgov_irs_factgraph_SaveReturnValue()
});
$c_Lgov_irs_factgraph_JSGraph.prototype.toJSON = (function(...rest) {
var prep0 = ((rest[0] === (void 0)) ? (-1) : $uI(rest[0]));
return $n(this.Lgov_irs_factgraph_JSGraph__f_persister).toJson__I__T(prep0)
});
$c_Lgov_irs_factgraph_JSGraph.prototype.checkPersister = (function() {
return this.jsCheckPersister__sjs_js_Array()
});
$c_Lgov_irs_factgraph_JSGraph.prototype.save = (function() {
return this.jsSave__Lgov_irs_factgraph_SaveReturnValue()
});
Object.defineProperty($c_Lgov_irs_factgraph_JSGraph.prototype, "dictionary", {
"get": (function() {
@ -21339,26 +21345,11 @@ Object.defineProperty($c_Lgov_irs_factgraph_JSGraph.prototype, "dictionary", {
}),
"configurable": true
});
$c_Lgov_irs_factgraph_JSGraph.prototype.save = (function() {
return this.jsSave__Lgov_irs_factgraph_SaveReturnValue()
});
$c_Lgov_irs_factgraph_JSGraph.prototype.jsSave = (function() {
return this.jsSave__Lgov_irs_factgraph_SaveReturnValue()
});
$c_Lgov_irs_factgraph_JSGraph.prototype.explainAndSolve = (function(arg) {
var prep0 = $as_T(arg);
return this.explainAndSolve__T__sjs_js_Array(prep0)
});
$c_Lgov_irs_factgraph_JSGraph.prototype.toJson = (function(...rest) {
var prep0 = ((rest[0] === (void 0)) ? (-1) : $uI(rest[0]));
return $n(this.Lgov_irs_factgraph_JSGraph__f_persister).toJson__I__T(prep0)
});
$c_Lgov_irs_factgraph_JSGraph.prototype.toJSON = (function(...rest) {
var prep0 = ((rest[0] === (void 0)) ? (-1) : $uI(rest[0]));
return $n(this.Lgov_irs_factgraph_JSGraph__f_persister).toJson__I__T(prep0)
});
$c_Lgov_irs_factgraph_JSGraph.prototype.toStringDictionary = (function() {
return this.toStringDictionary__sjs_js_Dictionary()
Object.defineProperty($c_Lgov_irs_factgraph_JSGraph.prototype, "persister", {
"get": (function() {
return this.Lgov_irs_factgraph_JSGraph__f_persister
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_JSGraph.prototype, "toJson$default$1", {
"get": (function() {
@ -21366,11 +21357,20 @@ Object.defineProperty($c_Lgov_irs_factgraph_JSGraph.prototype, "toJson$default$1
}),
"configurable": true
});
$c_Lgov_irs_factgraph_JSGraph.prototype.getFact = (function(arg) {
var prep0 = $as_T(arg);
return this.getFact__T__Lgov_irs_factgraph_Fact(prep0)
});
$c_Lgov_irs_factgraph_JSGraph.prototype.explainAndSolve = (function(arg) {
var prep0 = $as_T(arg);
return this.explainAndSolve__T__sjs_js_Array(prep0)
});
$c_Lgov_irs_factgraph_JSGraph.prototype.jsCheckPersister = (function() {
return this.jsCheckPersister__sjs_js_Array()
});
$c_Lgov_irs_factgraph_JSGraph.prototype.checkPersister = (function() {
return this.jsCheckPersister__sjs_js_Array()
$c_Lgov_irs_factgraph_JSGraph.prototype.toJson = (function(...rest) {
var prep0 = ((rest[0] === (void 0)) ? (-1) : $uI(rest[0]));
return $n(this.Lgov_irs_factgraph_JSGraph__f_persister).toJson__I__T(prep0)
});
var $d_Lgov_irs_factgraph_JSGraph = new $TypeData().initClass({
Lgov_irs_factgraph_JSGraph: 0
@ -23672,6 +23672,61 @@ function $m_Lgov_irs_factgraph_compnodes_Minimum$() {
};
return $n_Lgov_irs_factgraph_compnodes_Minimum$
}
/** @constructor */
function $c_Lgov_irs_factgraph_compnodes_Modulo$() {
this.Lgov_irs_factgraph_compnodes_Modulo$__f_Key = null;
this.Lgov_irs_factgraph_compnodes_Modulo$__f_operator = null;
$n_Lgov_irs_factgraph_compnodes_Modulo$ = this;
this.Lgov_irs_factgraph_compnodes_Modulo$__f_Key = "Modulo";
this.Lgov_irs_factgraph_compnodes_Modulo$__f_operator = new $c_Lgov_irs_factgraph_compnodes_ModuloOperator()
}
$c_Lgov_irs_factgraph_compnodes_Modulo$.prototype = new $h_O();
$c_Lgov_irs_factgraph_compnodes_Modulo$.prototype.constructor = $c_Lgov_irs_factgraph_compnodes_Modulo$;
/** @constructor */
function $h_Lgov_irs_factgraph_compnodes_Modulo$() {
/*<skip>*/
}
$h_Lgov_irs_factgraph_compnodes_Modulo$.prototype = $c_Lgov_irs_factgraph_compnodes_Modulo$.prototype;
$c_Lgov_irs_factgraph_compnodes_Modulo$.prototype.Key__T = (function() {
return this.Lgov_irs_factgraph_compnodes_Modulo$__f_Key
});
$c_Lgov_irs_factgraph_compnodes_Modulo$.prototype.apply__Lgov_irs_factgraph_compnodes_CompNode__Lgov_irs_factgraph_compnodes_CompNode__Lgov_irs_factgraph_compnodes_IntNode = (function(lhs, rhs) {
if ((lhs instanceof $c_Lgov_irs_factgraph_compnodes_IntNode)) {
var l = $as_Lgov_irs_factgraph_compnodes_IntNode(lhs);
if ((rhs instanceof $c_Lgov_irs_factgraph_compnodes_IntNode)) {
var r = $as_Lgov_irs_factgraph_compnodes_IntNode(rhs);
var lhs$1 = $n(l).Lgov_irs_factgraph_compnodes_IntNode__f_expr;
var rhs$1 = $n(r).Lgov_irs_factgraph_compnodes_IntNode__f_expr;
var op = this.Lgov_irs_factgraph_compnodes_Modulo$__f_operator;
var expr = new $c_Lgov_irs_factgraph_Expression$Binary(lhs$1, rhs$1, op);
return new $c_Lgov_irs_factgraph_compnodes_IntNode(expr)
}
};
var this$4 = $n(lhs);
var $$x1 = $objectGetClass(this$4).getName__T();
var this$5 = $n(rhs);
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), ((("cannot modulate a " + $$x1) + " and a ") + $objectGetClass(this$5).getName__T()))
});
$c_Lgov_irs_factgraph_compnodes_Modulo$.prototype.fromDerivedConfig__Lgov_irs_factgraph_definitions_fact_CompNodeConfigTrait__Lgov_irs_factgraph_Factual__Lgov_irs_factgraph_FactDictionary__Lgov_irs_factgraph_compnodes_CompNode = (function(e, x$2, x$3) {
var lhs = $m_Lgov_irs_factgraph_compnodes_CompNode$().getConfigChildNode__Lgov_irs_factgraph_definitions_fact_CompNodeConfigTrait__T__Lgov_irs_factgraph_Factual__Lgov_irs_factgraph_FactDictionary__Lgov_irs_factgraph_compnodes_CompNode(e, "Left", x$2, x$3);
var rhs = $m_Lgov_irs_factgraph_compnodes_CompNode$().getConfigChildNode__Lgov_irs_factgraph_definitions_fact_CompNodeConfigTrait__T__Lgov_irs_factgraph_Factual__Lgov_irs_factgraph_FactDictionary__Lgov_irs_factgraph_compnodes_CompNode(e, "Right", x$2, x$3);
return this.apply__Lgov_irs_factgraph_compnodes_CompNode__Lgov_irs_factgraph_compnodes_CompNode__Lgov_irs_factgraph_compnodes_IntNode(lhs, rhs)
});
var $d_Lgov_irs_factgraph_compnodes_Modulo$ = new $TypeData().initClass({
Lgov_irs_factgraph_compnodes_Modulo$: 0
}, false, "gov.irs.factgraph.compnodes.Modulo$", {
Lgov_irs_factgraph_compnodes_Modulo$: 1,
O: 1,
Lgov_irs_factgraph_compnodes_CompNodeFactory: 1
});
$c_Lgov_irs_factgraph_compnodes_Modulo$.prototype.$classData = $d_Lgov_irs_factgraph_compnodes_Modulo$;
var $n_Lgov_irs_factgraph_compnodes_Modulo$;
function $m_Lgov_irs_factgraph_compnodes_Modulo$() {
if ((!$n_Lgov_irs_factgraph_compnodes_Modulo$)) {
$n_Lgov_irs_factgraph_compnodes_Modulo$ = new $c_Lgov_irs_factgraph_compnodes_Modulo$()
};
return $n_Lgov_irs_factgraph_compnodes_Modulo$
}
function $p_Lgov_irs_factgraph_compnodes_Multiply$__reduceMultiply__sci_Seq__Lgov_irs_factgraph_compnodes_CompNode($thiz, nodes) {
matchResult1: {
var $$x1;
@ -37579,6 +37634,38 @@ var $d_Lgov_irs_factgraph_compnodes_MinimumOperator = new $TypeData().initClass(
});
$c_Lgov_irs_factgraph_compnodes_MinimumOperator.prototype.$classData = $d_Lgov_irs_factgraph_compnodes_MinimumOperator;
/** @constructor */
function $c_Lgov_irs_factgraph_compnodes_ModuloOperator() {
/*<skip>*/
}
$c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype = new $h_O();
$c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype.constructor = $c_Lgov_irs_factgraph_compnodes_ModuloOperator;
/** @constructor */
function $h_Lgov_irs_factgraph_compnodes_ModuloOperator() {
/*<skip>*/
}
$h_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype = $c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype;
$c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype.apply__Lgov_irs_factgraph_monads_Result__Lgov_irs_factgraph_monads_Thunk__Lgov_irs_factgraph_monads_Result = (function(lhs, rhs) {
return $f_Lgov_irs_factgraph_operators_BinaryOperator__apply__Lgov_irs_factgraph_monads_Result__Lgov_irs_factgraph_monads_Thunk__Lgov_irs_factgraph_monads_Result(this, lhs, rhs)
});
$c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype.explain__Lgov_irs_factgraph_Expression__Lgov_irs_factgraph_Expression__Lgov_irs_factgraph_Factual__Lgov_irs_factgraph_monads_MaybeVector = (function(lhs, rhs, x$3) {
return $f_Lgov_irs_factgraph_operators_BinaryOperator__explain__Lgov_irs_factgraph_Expression__Lgov_irs_factgraph_Expression__Lgov_irs_factgraph_Factual__Lgov_irs_factgraph_monads_MaybeVector(this, lhs, rhs, x$3)
});
$c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype.operation__I__I__I = (function(x, y) {
return $intMod(x, y)
});
$c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype.operation__O__O__O = (function(lhs, rhs) {
return this.operation__I__I__I($uI(lhs), $uI(rhs))
});
var $d_Lgov_irs_factgraph_compnodes_ModuloOperator = new $TypeData().initClass({
Lgov_irs_factgraph_compnodes_ModuloOperator: 0
}, false, "gov.irs.factgraph.compnodes.ModuloOperator", {
Lgov_irs_factgraph_compnodes_ModuloOperator: 1,
O: 1,
Lgov_irs_factgraph_operators_Operator: 1,
Lgov_irs_factgraph_operators_BinaryOperator: 1
});
$c_Lgov_irs_factgraph_compnodes_ModuloOperator.prototype.$classData = $d_Lgov_irs_factgraph_compnodes_ModuloOperator;
/** @constructor */
function $c_Lgov_irs_factgraph_compnodes_MultiEnumContainsOperator() {
/*<skip>*/
}
@ -56163,9 +56250,36 @@ $c_Lgov_irs_factgraph_types_Address.prototype.toString__T = (function() {
var streetLines = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$3, "", "\n", "");
return ((((((((streetLines + "\n") + this.Lgov_irs_factgraph_types_Address__f_city) + ", ") + this.Lgov_irs_factgraph_types_Address__f_stateOrProvence) + " ") + this.Lgov_irs_factgraph_types_Address__f_postalCode) + "\n") + this.Lgov_irs_factgraph_types_Address__f_country)
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "country", {
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "StreetPattern", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_country
return this.Lgov_irs_factgraph_types_Address__f_StreetPattern
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "streetAddress", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_streetAddress
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_Address.prototype.toString = (function() {
return this.toString__T()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "CityPattern", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_CityPattern
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "StreetPatternLength", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_StreetPatternLength
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "stateOrProvence", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_stateOrProvence
}),
"configurable": true
});
@ -56179,15 +56293,9 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "addressErr
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "postalCode", {
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "ZipCodePattern", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_postalCode
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "CityPattern", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_CityPattern
return this.Lgov_irs_factgraph_types_Address__f_ZipCodePattern
}),
"configurable": true
});
@ -56197,15 +56305,9 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "city", {
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "StreetPattern", {
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "postalCode", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_StreetPattern
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "StatePattern", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_StatePattern
return this.Lgov_irs_factgraph_types_Address__f_postalCode
}),
"configurable": true
});
@ -56215,36 +56317,21 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "streetAddr
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "StreetPatternLength", {
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "country", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_StreetPatternLength
return this.Lgov_irs_factgraph_types_Address__f_country
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "ZipCodePattern", {
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "StatePattern", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_ZipCodePattern
return this.Lgov_irs_factgraph_types_Address__f_StatePattern
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_Address.prototype.foreignAddress = (function() {
return this.foreignAddress__Z()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "stateOrProvence", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_stateOrProvence
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Address.prototype, "streetAddress", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Address__f_streetAddress
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_Address.prototype.toString = (function() {
return this.toString__T()
});
function $as_Lgov_irs_factgraph_types_Address(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_Address) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.Address"))
}
@ -56698,6 +56785,12 @@ $c_Lgov_irs_factgraph_types_BankAccount.prototype.productElement__I__O = (functi
}
}
});
Object.defineProperty($c_Lgov_irs_factgraph_types_BankAccount.prototype, "accountType", {
"get": (function() {
return this.Lgov_irs_factgraph_types_BankAccount__f_accountType
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_BankAccount.prototype, "AllowedAccountTypes", {
"get": (function() {
return this.Lgov_irs_factgraph_types_BankAccount__f_AllowedAccountTypes
@ -56710,12 +56803,6 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_BankAccount.prototype, "accoun
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_BankAccount.prototype, "accountType", {
"get": (function() {
return this.Lgov_irs_factgraph_types_BankAccount__f_accountType
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_BankAccount.prototype, "routingNumber", {
"get": (function() {
return this.Lgov_irs_factgraph_types_BankAccount__f_routingNumber
@ -57168,6 +57255,12 @@ $c_Lgov_irs_factgraph_types_Day.prototype.month__I = (function() {
$c_Lgov_irs_factgraph_types_Day.prototype.toString__T = (function() {
return $n(this.Lgov_irs_factgraph_types_Day__f_date).toString__T()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Day.prototype, "month", {
"get": (function() {
return this.month__I()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Day.prototype, "day", {
"get": (function() {
var this$1 = $n(this.Lgov_irs_factgraph_types_Day__f_date);
@ -57182,12 +57275,6 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_Day.prototype, "year", {
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Day.prototype, "month", {
"get": (function() {
return this.month__I()
}),
"configurable": true
});
function $as_Lgov_irs_factgraph_types_Day(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_Day) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.Day"))
}
@ -57525,11 +57612,8 @@ $c_Lgov_irs_factgraph_types_Ein.prototype.productElement__I__O = (function(n) {
$c_Lgov_irs_factgraph_types_Ein.prototype.toString__T = (function() {
return ((this.Lgov_irs_factgraph_types_Ein__f_prefix + "-") + this.Lgov_irs_factgraph_types_Ein__f_serial)
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Ein.prototype, "serial", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Ein__f_serial
}),
"configurable": true
$c_Lgov_irs_factgraph_types_Ein.prototype.toString = (function() {
return this.toString__T()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Ein.prototype, "prefix", {
"get": (function() {
@ -57537,8 +57621,11 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_Ein.prototype, "prefix", {
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_Ein.prototype.toString = (function() {
return this.toString__T()
Object.defineProperty($c_Lgov_irs_factgraph_types_Ein.prototype, "serial", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Ein__f_serial
}),
"configurable": true
});
function $as_Lgov_irs_factgraph_types_Ein(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_Ein) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.Ein"))
@ -57819,12 +57906,12 @@ $c_Lgov_irs_factgraph_types_Enum.prototype.getValue__T = (function() {
};
throw new $c_s_MatchError(x5)
});
$c_Lgov_irs_factgraph_types_Enum.prototype.getEnumOptionsPath = (function() {
return this.Lgov_irs_factgraph_types_Enum__f_enumOptionsPath
});
$c_Lgov_irs_factgraph_types_Enum.prototype.getValue = (function() {
return this.getValue__T()
});
$c_Lgov_irs_factgraph_types_Enum.prototype.getEnumOptionsPath = (function() {
return this.Lgov_irs_factgraph_types_Enum__f_enumOptionsPath
});
function $as_Lgov_irs_factgraph_types_Enum(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_Enum) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.Enum"))
}
@ -58015,15 +58102,15 @@ $c_Lgov_irs_factgraph_types_IpPin.prototype.productElement__I__O = (function(n)
$c_Lgov_irs_factgraph_types_IpPin.prototype.toString__T = (function() {
return ("" + this.Lgov_irs_factgraph_types_IpPin__f_pin)
});
$c_Lgov_irs_factgraph_types_IpPin.prototype.toString = (function() {
return this.toString__T()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_IpPin.prototype, "pin", {
"get": (function() {
return this.Lgov_irs_factgraph_types_IpPin__f_pin
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_IpPin.prototype.toString = (function() {
return this.toString__T()
});
function $as_Lgov_irs_factgraph_types_IpPin(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_IpPin) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.IpPin"))
}
@ -58156,12 +58243,12 @@ $c_Lgov_irs_factgraph_types_MultiEnum.prototype.equals__O__Z = (function(obj) {
$c_Lgov_irs_factgraph_types_MultiEnum.prototype.getValue__sci_Set = (function() {
return this.Lgov_irs_factgraph_types_MultiEnum__f_values
});
$c_Lgov_irs_factgraph_types_MultiEnum.prototype.getEnumOptionsPath = (function() {
return this.Lgov_irs_factgraph_types_MultiEnum__f_enumOptionsPath
});
$c_Lgov_irs_factgraph_types_MultiEnum.prototype.getValue = (function() {
return this.getValue__sci_Set()
});
$c_Lgov_irs_factgraph_types_MultiEnum.prototype.getEnumOptionsPath = (function() {
return this.Lgov_irs_factgraph_types_MultiEnum__f_enumOptionsPath
});
function $as_Lgov_irs_factgraph_types_MultiEnum(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_MultiEnum) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.MultiEnum"))
}
@ -58352,15 +58439,15 @@ $c_Lgov_irs_factgraph_types_Pin.prototype.productElement__I__O = (function(n) {
$c_Lgov_irs_factgraph_types_Pin.prototype.toString__T = (function() {
return ("" + this.Lgov_irs_factgraph_types_Pin__f_pin)
});
$c_Lgov_irs_factgraph_types_Pin.prototype.toString = (function() {
return this.toString__T()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Pin.prototype, "pin", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Pin__f_pin
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_Pin.prototype.toString = (function() {
return this.toString__T()
});
function $as_Lgov_irs_factgraph_types_Pin(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_Pin) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.Pin"))
}
@ -58766,15 +58853,18 @@ $c_Lgov_irs_factgraph_types_Tin.prototype.isATIN__Z = (function() {
return false
}
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "area", {
$c_Lgov_irs_factgraph_types_Tin.prototype.toString = (function() {
return this.toString__T()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "isSSN", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Tin__f_area
return this.isSSN__Z()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "isITIN", {
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "area", {
"get": (function() {
return this.isITIN__Z()
return this.Lgov_irs_factgraph_types_Tin__f_area
}),
"configurable": true
});
@ -58784,32 +58874,29 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "isATIN", {
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "allowAllZeros", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Tin__f_allowAllZeros
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "isSSN", {
"get": (function() {
return this.isSSN__Z()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "group", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Tin__f_group
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "allowAllZeros", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Tin__f_allowAllZeros
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "serial", {
"get": (function() {
return this.Lgov_irs_factgraph_types_Tin__f_serial
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_Tin.prototype.toString = (function() {
return this.toString__T()
Object.defineProperty($c_Lgov_irs_factgraph_types_Tin.prototype, "isITIN", {
"get": (function() {
return this.isITIN__Z()
}),
"configurable": true
});
function $as_Lgov_irs_factgraph_types_Tin(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_types_Tin) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.types.Tin"))
@ -71708,9 +71795,9 @@ $c_Lgov_irs_factgraph_compnodes_TinNode.prototype.extract__Lgov_irs_factgraph_Pa
};
return $m_s_None$()
});
Object.defineProperty($c_Lgov_irs_factgraph_compnodes_TinNode.prototype, "allowAllZeros", {
Object.defineProperty($c_Lgov_irs_factgraph_compnodes_TinNode.prototype, "ValueClass", {
"get": (function() {
return this.Lgov_irs_factgraph_compnodes_TinNode__f_allowAllZeros
return $d_Lgov_irs_factgraph_types_Tin.getClassOf()
}),
"configurable": true
});
@ -71720,16 +71807,16 @@ Object.defineProperty($c_Lgov_irs_factgraph_compnodes_TinNode.prototype, "expr",
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_compnodes_TinNode.prototype, "ValueClass", {
"get": (function() {
return $d_Lgov_irs_factgraph_types_Tin.getClassOf()
}),
"configurable": true
});
$c_Lgov_irs_factgraph_compnodes_TinNode.prototype.extract = (function(arg) {
var prep0 = $as_Lgov_irs_factgraph_PathItem(arg);
return this.extract__Lgov_irs_factgraph_PathItem__s_Option(prep0)
});
Object.defineProperty($c_Lgov_irs_factgraph_compnodes_TinNode.prototype, "allowAllZeros", {
"get": (function() {
return this.Lgov_irs_factgraph_compnodes_TinNode__f_allowAllZeros
}),
"configurable": true
});
function $as_Lgov_irs_factgraph_compnodes_TinNode(obj) {
return (((obj instanceof $c_Lgov_irs_factgraph_compnodes_TinNode) || (obj === null)) ? obj : $throwClassCastException(obj, "gov.irs.factgraph.compnodes.TinNode"))
}
@ -72931,12 +73018,6 @@ $c_Lgov_irs_factgraph_monads_JSEither.prototype.mapLeftRight__sjs_js_Function1__
};
throw new $c_s_MatchError(this)
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_JSEither.prototype, "right", {
"get": (function() {
return this.right__O()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_JSEither.prototype, "left", {
"get": (function() {
return this.left__O()
@ -72946,9 +73027,9 @@ Object.defineProperty($c_Lgov_irs_factgraph_monads_JSEither.prototype, "left", {
$c_Lgov_irs_factgraph_monads_JSEither.prototype.mapLeftRight = (function(arg, arg$2) {
return this.mapLeftRight__sjs_js_Function1__sjs_js_Function1__sjs_js_Object(arg, arg$2)
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_JSEither.prototype, "isLeft", {
Object.defineProperty($c_Lgov_irs_factgraph_monads_JSEither.prototype, "right", {
"get": (function() {
return (!this.isRight__Z())
return this.right__O()
}),
"configurable": true
});
@ -72961,6 +73042,12 @@ Object.defineProperty($c_Lgov_irs_factgraph_monads_JSEither.prototype, "isRight"
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_JSEither.prototype, "isLeft", {
"get": (function() {
return (!this.isRight__Z())
}),
"configurable": true
});
/** @constructor */
function $c_Lgov_irs_factgraph_monads_MaybeVector() {
/*<skip>*/
@ -73366,54 +73453,42 @@ $c_Lgov_irs_factgraph_monads_Result.prototype.typeName__T = (function() {
};
throw new $c_s_MatchError(this)
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "toString", {
"get": (function() {
return this.toString__T()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "asPlaceholder", {
"get": (function() {
return this.asPlaceholder__Lgov_irs_factgraph_monads_Result()
}),
"configurable": true
});
$c_Lgov_irs_factgraph_monads_Result.prototype.orElse = (function(arg) {
var prep0 = $as_F0(arg);
return this.orElse__F0__Lgov_irs_factgraph_monads_Result(prep0)
});
$c_Lgov_irs_factgraph_monads_Result.prototype.getOrElse = (function(arg) {
var prep0 = $as_F0(arg);
return this.getOrElse__F0__O(prep0)
});
$c_Lgov_irs_factgraph_monads_Result.prototype.foreach = (function(arg) {
var prep0 = $as_F1(arg);
this.foreach__F1__V(prep0)
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "typeName", {
"get": (function() {
return this.typeName__T()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "value", {
"get": (function() {
return this.value__s_Option()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "hasValue", {
"get": (function() {
return this.hasValue__Z()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "complete", {
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "get", {
"get": (function() {
return this.complete__Z()
return this.get__O()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "toString", {
"get": (function() {
return this.toString__T()
}),
"configurable": true
});
$c_Lgov_irs_factgraph_monads_Result.prototype.foreach = (function(arg) {
var prep0 = $as_F1(arg);
this.foreach__F1__V(prep0)
});
$c_Lgov_irs_factgraph_monads_Result.prototype.orElse = (function(arg) {
var prep0 = $as_F0(arg);
return this.orElse__F0__Lgov_irs_factgraph_monads_Result(prep0)
});
$c_Lgov_irs_factgraph_monads_Result.prototype.getOrElse = (function(arg) {
var prep0 = $as_F0(arg);
return this.getOrElse__F0__O(prep0)
});
$c_Lgov_irs_factgraph_monads_Result.prototype.map = (function(arg) {
var prep0 = $as_F1(arg);
return this.map__F1__Lgov_irs_factgraph_monads_Result(prep0)
@ -73422,9 +73497,21 @@ $c_Lgov_irs_factgraph_monads_Result.prototype.flatMap = (function(arg) {
var prep0 = $as_F1(arg);
return this.flatMap__F1__Lgov_irs_factgraph_monads_Result(prep0)
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "get", {
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "complete", {
"get": (function() {
return this.get__O()
return this.complete__Z()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "value", {
"get": (function() {
return this.value__s_Option()
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_monads_Result.prototype, "typeName", {
"get": (function() {
return this.typeName__T()
}),
"configurable": true
});
@ -75062,18 +75149,12 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "offi
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "countryCode", {
"get": (function() {
return this.Lgov_irs_factgraph_types_UsPhoneNumber__f_countryCode
}),
"configurable": true
});
$c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype.getFormatted = (function() {
return this.getFormatted__T()
});
Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "areaCode", {
Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "subscriberNumber", {
"get": (function() {
return this.Lgov_irs_factgraph_types_UsPhoneNumber__f_areaCode
return this.Lgov_irs_factgraph_types_UsPhoneNumber__f_subscriberNumber
}),
"configurable": true
});
@ -75083,9 +75164,15 @@ Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "line
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "subscriberNumber", {
Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "countryCode", {
"get": (function() {
return this.Lgov_irs_factgraph_types_UsPhoneNumber__f_subscriberNumber
return this.Lgov_irs_factgraph_types_UsPhoneNumber__f_countryCode
}),
"configurable": true
});
Object.defineProperty($c_Lgov_irs_factgraph_types_UsPhoneNumber.prototype, "areaCode", {
"get": (function() {
return this.Lgov_irs_factgraph_types_UsPhoneNumber__f_areaCode
}),
"configurable": true
});

File diff suppressed because one or more lines are too long

View file

@ -89,6 +89,7 @@ object CompNode:
LessThanOrEqual,
Maximum,
Minimum,
Modulo,
Multiply,
Not,
NotEqual,

View file

@ -9,20 +9,20 @@ object Modulo extends CompNodeFactory:
private val operator = ModuloOperator()
def apply(lhs: CompNode, rhs: CompNode): BooleanNode =
if (lhs.getClass != rhs.getClass)
def apply(lhs: CompNode, rhs: CompNode): IntNode = (lhs, rhs) match
case (l: IntNode, r: IntNode) =>
IntNode(
Expression.Binary(
l.expr,
r.expr,
operator,
),
)
case _ =>
throw new UnsupportedOperationException(
s"cannot modulate a ${lhs.getClass.getName} and a ${rhs.getClass.getName}",
)
BooleanNode(
Expression.Binary(
lhs.expr,
rhs.expr,
operator,
),
)
override def fromDerivedConfig(e: CompNodeConfigTrait)(using Factual)(using
FactDictionary,
): CompNode =
@ -31,5 +31,5 @@ object Modulo extends CompNodeFactory:
this(lhs, rhs)
private final class ModuloOperator extends BinaryOperator[Int, Any, Any]:
override protected def operation(x: Any, y: Any): Int = x % y
private final class ModuloOperator extends BinaryOperator[Int, Int, Int]:
override protected def operation(x: Int, y: Int): Int = x % y

View file

@ -17,7 +17,7 @@ class ModuloSpec extends AnyFunSpec:
"Modulo",
Seq(
new CompNodeConfigElement(
"Dividend",
"Left",
Seq(
new CompNodeConfigElement(
"Int",
@ -27,7 +27,7 @@ class ModuloSpec extends AnyFunSpec:
)
),
new CompNodeConfigElement(
"Modulus",
"Right",
Seq(
new CompNodeConfigElement(
"Int",
@ -40,6 +40,6 @@ class ModuloSpec extends AnyFunSpec:
)
)
assert(node.get(0) == Result.Complete(Int("2")))
assert(node.get(0) == Result.Complete(2))
}
}