 (function(){// Input 0
var ma;
// Input 1
Resources={regexCategories:{IsBasicLatin:[["0000","007F"]],"IsLatin-1Supplement":[["0080","00FF"]],"IsLatinExtended-A":[["0100","017F"]],"IsLatinExtended-B":[["0180","024F"]],IsIPAExtensions:[["0250","02AF"]],IsSpacingModifierLetters:[["02B0","02FF"]],IsCombiningDiacriticalMarks:[["0300","036F"]],IsGreek:[["0370","03FF"]],IsGreekandCoptic:[["0370","03FF"]],IsCyrillic:[["0400","04FF"]],IsCyrillicSupplementary:[["0500","052F"]],IsCyrillicSupplement:[["0500","052F"]],IsArmenian:[["0530","058F"]],IsHebrew:[["0590",
"05FF"]],IsArabic:[["0600","06FF"]],IsSyriac:[["0700","074F"]],IsArabicSupplement:[["0750","077F"]],IsThaana:[["0780","07BF"]],IsNKo:[["07C0","07FF"]],IsSamaritan:[["0800","083F"]],IsMandaic:[["0840","085F"]],IsDevanagari:[["0900","097F"]],IsBengali:[["0980","09FF"]],IsGurmukhi:[["0A00","0A7F"]],IsGujarati:[["0A80","0AFF"]],IsOriya:[["0B00","0B7F"]],IsTamil:[["0B80","0BFF"]],IsTelugu:[["0C00","0C7F"]],IsKannada:[["0C80","0CFF"]],IsMalayalam:[["0D00","0D7F"]],IsSinhala:[["0D80","0DFF"]],IsThai:[["0E00",
"0E7F"]],IsLao:[["0E80","0EFF"]],IsTibetan:[["0F00","0FFF"]],IsMyanmar:[["1000","109F"]],IsGeorgian:[["10A0","10FF"]],IsHangulJamo:[["1100","11FF"]],IsEthiopic:[["1200","137F"]],IsEthiopicSupplement:[["1380","139F"]],IsCherokee:[["13A0","13FF"]],IsUnifiedCanadianAboriginalSyllabics:[["1400","167F"]],IsOgham:[["1680","169F"]],IsRunic:[["16A0","16FF"]],IsTagalog:[["1700","171F"]],IsHanunoo:[["1720","173F"]],IsBuhid:[["1740","175F"]],IsTagbanwa:[["1760","177F"]],IsKhmer:[["1780","17FF"]],IsMongolian:[["1800",
"18AF"]],IsUnifiedCanadianAboriginalSyllabicsExtended:[["18B0","18FF"]],IsLimbu:[["1900","194F"]],IsTaiLe:[["1950","197F"]],IsNewTaiLue:[["1980","19DF"]],IsKhmerSymbols:[["19E0","19FF"]],IsBuginese:[["1A00","1A1F"]],IsTaiTham:[["1A20","1AAF"]],IsBalinese:[["1B00","1B7F"]],IsSundanese:[["1B80","1BBF"]],IsBatak:[["1BC0","1BFF"]],IsLepcha:[["1C00","1C4F"]],IsOlChiki:[["1C50","1C7F"]],IsVedicExtensions:[["1CD0","1CFF"]],IsPhoneticExtensions:[["1D00","1D7F"]],IsPhoneticExtensionsSupplement:[["1D80","1DBF"]],
IsCombiningDiacriticalMarksSupplement:[["1DC0","1DFF"]],IsLatinExtendedAdditional:[["1E00","1EFF"]],IsGreekExtended:[["1F00","1FFF"]],IsGeneralPunctuation:[["2000","206F"]],IsSuperscriptsandSubscripts:[["2070","209F"]],IsCurrencySymbols:[["20A0","20CF"]],IsCombiningMarksforSymbols:[["20D0","20FF"]],IsCombiningDiacriticalMarksforSymbols:[["20D0","20FF"]],IsLetterlikeSymbols:[["2100","214F"]],IsNumberForms:[["2150","218F"]],IsArrows:[["2190","21FF"]],IsMathematicalOperators:[["2200","22FF"]],IsMiscellaneousTechnical:[["2300",
"23FF"]],IsControlPictures:[["2400","243F"]],IsOpticalCharacterRecognition:[["2440","245F"]],IsEnclosedAlphanumerics:[["2460","24FF"]],IsBoxDrawing:[["2500","257F"]],IsBlockElements:[["2580","259F"]],IsGeometricShapes:[["25A0","25FF"]],IsMiscellaneousSymbols:[["2600","26FF"]],IsDingbats:[["2700","27BF"]],"IsMiscellaneousMathematicalSymbols-A":[["27C0","27EF"]],"IsSupplementalArrows-A":[["27F0","27FF"]],IsBraillePatterns:[["2800","28FF"]],"IsSupplementalArrows-B":[["2900","297F"]],"IsMiscellaneousMathematicalSymbols-B":[["2980",
"29FF"]],IsSupplementalMathematicalOperators:[["2A00","2AFF"]],IsMiscellaneousSymbolsandArrows:[["2B00","2BFF"]],IsGlagolitic:[["2C00","2C5F"]],"IsLatinExtended-C":[["2C60","2C7F"]],IsCoptic:[["2C80","2CFF"]],IsGeorgianSupplement:[["2D00","2D2F"]],IsTifinagh:[["2D30","2D7F"]],IsEthiopicExtended:[["2D80","2DDF"]],"IsCyrillicExtended-A":[["2DE0","2DFF"]],IsSupplementalPunctuation:[["2E00","2E7F"]],IsCJKRadicalsSupplement:[["2E80","2EFF"]],IsKangxiRadicals:[["2F00","2FDF"]],IsIdeographicDescriptionCharacters:[["2FF0",
"2FFF"]],IsCJKSymbolsandPunctuation:[["3000","303F"]],IsHiragana:[["3040","309F"]],IsKatakana:[["30A0","30FF"]],IsBopomofo:[["3100","312F"]],IsHangulCompatibilityJamo:[["3130","318F"]],IsKanbun:[["3190","319F"]],IsBopomofoExtended:[["31A0","31BF"]],IsCJKStrokes:[["31C0","31EF"]],IsKatakanaPhoneticExtensions:[["31F0","31FF"]],IsEnclosedCJKLettersandMonths:[["3200","32FF"]],IsCJKCompatibility:[["3300","33FF"]],IsCJKUnifiedIdeographsExtensionA:[["3400","4DBF"]],IsYijingHexagramSymbols:[["4DC0","4DFF"]],
IsCJKUnifiedIdeographs:[["4E00","9FFF"]],IsYiSyllables:[["A000","A48F"]],IsYiRadicals:[["A490","A4CF"]],IsLisu:[["A4D0","A4FF"]],IsVai:[["A500","A63F"]],"IsCyrillicExtended-B":[["A640","A69F"]],IsBamum:[["A6A0","A6FF"]],IsModifierToneLetters:[["A700","A71F"]],"IsLatinExtended-D":[["A720","A7FF"]],IsSylotiNagri:[["A800","A82F"]],IsCommonIndicNumberForms:[["A830","A83F"]],"IsPhags-pa":[["A840","A87F"]],IsSaurashtra:[["A880","A8DF"]],IsDevanagariExtended:[["A8E0","A8FF"]],IsKayahLi:[["A900","A92F"]],
IsRejang:[["A930","A95F"]],"IsHangulJamoExtended-A":[["A960","A97F"]],IsJavanese:[["A980","A9DF"]],IsCham:[["AA00","AA5F"]],"IsMyanmarExtended-A":[["AA60","AA7F"]],IsTaiViet:[["AA80","AADF"]],"IsEthiopicExtended-A":[["AB00","AB2F"]],IsMeeteiMayek:[["ABC0","ABFF"]],IsHangulSyllables:[["AC00","D7AF"]],"IsHangulJamoExtended-B":[["D7B0","D7FF"]],IsHighSurrogates:[["D800","DB7F"]],IsHighPrivateUseSurrogates:[["DB80","DBFF"]],IsLowSurrogates:[["DC00","DFFF"]],IsPrivateUse:[["E000","F8FF"],["F0000","FFFFD"],
["100000","10FFFD"]],IsPrivateUseArea:[["E000","F8FF"]],IsCJKCompatibilityIdeographs:[["F900","FAFF"]],IsAlphabeticPresentationForms:[["FB00","FB4F"]],"IsArabicPresentationForms-A":[["FB50","FDFF"]],IsVariationSelectors:[["FE00","FE0F"]],IsVerticalForms:[["FE10","FE1F"]],IsCombiningHalfMarks:[["FE20","FE2F"]],IsCJKCompatibilityForms:[["FE30","FE4F"]],IsSmallFormVariants:[["FE50","FE6F"]],"IsArabicPresentationForms-B":[["FE70","FEFF"]],IsHalfwidthandFullwidthForms:[["FF00","FFEF"]],IsSpecials:[["FEFF",
"FEFF"],["FFF0","FFFF"]],IsLinearBSyllabary:[["10000","1007F"]],IsLinearBIdeograms:[["10080","100FF"]],IsAegeanNumbers:[["10100","1013F"]],IsAncientGreekNumbers:[["10140","1018F"]],IsAncientSymbols:[["10190","101CF"]],IsPhaistosDisc:[["101D0","101FF"]],IsLycian:[["10280","1029F"]],IsCarian:[["102A0","102DF"]],IsOldItalic:[["10300","1032F"]],IsGothic:[["10330","1034F"]],IsUgaritic:[["10380","1039F"]],IsOldPersian:[["103A0","103DF"]],IsDeseret:[["10400","1044F"]],IsShavian:[["10450","1047F"]],IsOsmanya:[["10480",
"104AF"]],IsCypriotSyllabary:[["10800","1083F"]],IsImperialAramaic:[["10840","1085F"]],IsPhoenician:[["10900","1091F"]],IsLydian:[["10920","1093F"]],IsKharoshthi:[["10A00","10A5F"]],IsOldSouthArabian:[["10A60","10A7F"]],IsAvestan:[["10B00","10B3F"]],IsInscriptionalParthian:[["10B40","10B5F"]],IsInscriptionalPahlavi:[["10B60","10B7F"]],IsOldTurkic:[["10C00","10C4F"]],IsRumiNumeralSymbols:[["10E60","10E7F"]],IsBrahmi:[["11000","1107F"]],IsKaithi:[["11080","110CF"]],IsCuneiform:[["12000","123FF"]],IsCuneiformNumbersandPunctuation:[["12400",
"1247F"]],IsEgyptianHieroglyphs:[["13000","1342F"]],IsBamumSupplement:[["16800","16A3F"]],IsKanaSupplement:[["1B000","1B0FF"]],IsByzantineMusicalSymbols:[["1D000","1D0FF"]],IsMusicalSymbols:[["1D100","1D1FF"]],IsAncientGreekMusicalNotation:[["1D200","1D24F"]],IsTaiXuanJingSymbols:[["1D300","1D35F"]],IsCountingRodNumerals:[["1D360","1D37F"]],IsMathematicalAlphanumericSymbols:[["1D400","1D7FF"]],IsMahjongTiles:[["1F000","1F02F"]],IsDominoTiles:[["1F030","1F09F"]],IsPlayingCards:[["1F0A0","1F0FF"]],
IsEnclosedAlphanumericSupplement:[["1F100","1F1FF"]],IsEnclosedIdeographicSupplement:[["1F200","1F2FF"]],IsMiscellaneousSymbolsAndPictographs:[["1F300","1F5FF"]],IsEmoticons:[["1F600","1F64F"]],IsTransportAndMapSymbols:[["1F680","1F6FF"]],IsAlchemicalSymbols:[["1F700","1F77F"]],IsCJKUnifiedIdeographsExtensionB:[["20000","2A6DF"]],IsCJKUnifiedIdeographsExtensionC:[["2A700","2B73F"]],IsCJKUnifiedIdeographsExtensionD:[["2B740","2B81F"]],IsCJKCompatibilityIdeographsSupplement:[["2F800","2FA1F"]],IsTags:[["E0000",
"E007F"]],IsVariationSelectorsSupplement:[["E0100","E01EF"]],"IsSupplementaryPrivateUseArea-A":[["F0000","FFFFF"]],"IsSupplementaryPrivateUseArea-B":[["100000","10FFFF"]],C:"Cc|Cf|Cn|Co",Cc:[["0","1F"],["7F","9F"]],Cf:[["AD","AD"],["600","604"],["6DD","6DD"],["70F","70F"],["200B","200F"],["202A","202E"],["2060","2064"],["206A","206F"],["FEFF","FEFF"],["FFF9","FFFB"],["110BD","110BD"],["1D173","1D17A"],["E0001","E0001"],["E0020","E007F"]],Cn:[["378","379"],["37F","383"],["38B","38B"],["38D","38D"],
["3A2","3A2"],["528","52F"],["530","530"],["557","558"],["560","560"],["588","588"],["58B","58E"],["590","590"],["5C8","5CF"],["5EB","5EF"],["5F5","5FF"],["605","605"],["61C","61D"],["70E","70E"],["74B","74C"],["7B2","7BF"],["7FB","7FF"],["82E","82F"],["83F","83F"],["85C","85D"],["85F","85F"],["860","89F"],["8A1","8A1"],["8AD","8E3"],["8FF","8FF"],["978","978"],["980","980"],["984","984"],["98D","98E"],["991","992"],["9A9","9A9"],["9B1","9B1"],["9B3","9B5"],["9BA","9BB"],["9C5","9C6"],["9C9","9CA"],
["9CF","9D6"],["9D8","9DB"],["9DE","9DE"],["9E4","9E5"],["9FC","9FF"],["A00","A00"],["A04","A04"],["A0B","A0E"],["A11","A12"],["A29","A29"],["A31","A31"],["A34","A34"],["A37","A37"],["A3A","A3B"],["A3D","A3D"],["A43","A46"],["A49","A4A"],["A4E","A50"],["A52","A58"],["A5D","A5D"],["A5F","A65"],["A76","A7F"],["A80","A80"],["A84","A84"],["A8E","A8E"],["A92","A92"],["AA9","AA9"],["AB1","AB1"],["AB4","AB4"],["ABA","ABB"],["AC6","AC6"],["ACA","ACA"],["ACE","ACF"],["AD1","ADF"],["AE4","AE5"],["AF2","AFF"],
["B00","B00"],["B04","B04"],["B0D","B0E"],["B11","B12"],["B29","B29"],["B31","B31"],["B34","B34"],["B3A","B3B"],["B45","B46"],["B49","B4A"],["B4E","B55"],["B58","B5B"],["B5E","B5E"],["B64","B65"],["B78","B7F"],["B80","B81"],["B84","B84"],["B8B","B8D"],["B91","B91"],["B96","B98"],["B9B","B9B"],["B9D","B9D"],["BA0","BA2"],["BA5","BA7"],["BAB","BAD"],["BBA","BBD"],["BC3","BC5"],["BC9","BC9"],["BCE","BCF"],["BD1","BD6"],["BD8","BE5"],["BFB","BFF"],["C00","C00"],["C04","C04"],["C0D","C0D"],["C11","C11"],
["C29","C29"],["C34","C34"],["C3A","C3C"],["C45","C45"],["C49","C49"],["C4E","C54"],["C57","C57"],["C5A","C5F"],["C64","C65"],["C70","C77"],["C80","C81"],["C84","C84"],["C8D","C8D"],["C91","C91"],["CA9","CA9"],["CB4","CB4"],["CBA","CBB"],["CC5","CC5"],["CC9","CC9"],["CCE","CD4"],["CD7","CDD"],["CDF","CDF"],["CE4","CE5"],["CF0","CF0"],["CF3","CFF"],["D00","D01"],["D04","D04"],["D0D","D0D"],["D11","D11"],["D3B","D3C"],["D45","D45"],["D49","D49"],["D4F","D56"],["D58","D5F"],["D64","D65"],["D76","D78"],
["D80","D81"],["D84","D84"],["D97","D99"],["DB2","DB2"],["DBC","DBC"],["DBE","DBF"],["DC7","DC9"],["DCB","DCE"],["DD5","DD5"],["DD7","DD7"],["DE0","DF1"],["DF5","DFF"],["E00","E00"],["E3B","E3E"],["E5C","E7F"],["E80","E80"],["E83","E83"],["E85","E86"],["E89","E89"],["E8B","E8C"],["E8E","E93"],["E98","E98"],["EA0","EA0"],["EA4","EA4"],["EA6","EA6"],["EA8","EA9"],["EAC","EAC"],["EBA","EBA"],["EBE","EBF"],["EC5","EC5"],["EC7","EC7"],["ECE","ECF"],["EDA","EDB"],["EE0","EFF"],["F48","F48"],["F6D","F70"],
["F98","F98"],["FBD","FBD"],["FCD","FCD"],["FDB","FFF"],["10C6","10C6"],["10C8","10CC"],["10CE","10CF"],["1249","1249"],["124E","124F"],["1257","1257"],["1259","1259"],["125E","125F"],["1289","1289"],["128E","128F"],["12B1","12B1"],["12B6","12B7"],["12BF","12BF"],["12C1","12C1"],["12C6","12C7"],["12D7","12D7"],["1311","1311"],["1316","1317"],["135B","135C"],["137D","137F"],["139A","139F"],["13F5","13FF"],["169D","169F"],["16F1","16FF"],["170D","170D"],["1715","171F"],["1737","173F"],["1754","175F"],
["176D","176D"],["1771","1771"],["1774","177F"],["17DE","17DF"],["17EA","17EF"],["17FA","17FF"],["180F","180F"],["181A","181F"],["1878","187F"],["18AB","18AF"],["18F6","18FF"],["191D","191F"],["192C","192F"],["193C","193F"],["1941","1943"],["196E","196F"],["1975","197F"],["19AC","19AF"],["19CA","19CF"],["19DB","19DD"],["1A1C","1A1D"],["1A5F","1A5F"],["1A7D","1A7E"],["1A8A","1A8F"],["1A9A","1A9F"],["1AAE","1AAF"],["1AB0","1AFF"],["1B4C","1B4F"],["1B7D","1B7F"],["1BF4","1BFB"],["1C38","1C3A"],["1C4A",
"1C4C"],["1C80","1CBF"],["1CC8","1CCF"],["1CF7","1CFF"],["1DE7","1DFB"],["1F16","1F17"],["1F1E","1F1F"],["1F46","1F47"],["1F4E","1F4F"],["1F58","1F58"],["1F5A","1F5A"],["1F5C","1F5C"],["1F5E","1F5E"],["1F7E","1F7F"],["1FB5","1FB5"],["1FC5","1FC5"],["1FD4","1FD5"],["1FDC","1FDC"],["1FF0","1FF1"],["1FF5","1FF5"],["1FFF","1FFF"],["2065","2069"],["2072","2073"],["208F","208F"],["209D","209F"],["20BB","20CF"],["20F1","20FF"],["218A","218F"],["23F4","23FF"],["2427","243F"],["244B","245F"],["2700","2700"],
["2B4D","2B4F"],["2B5A","2BFF"],["2C2F","2C2F"],["2C5F","2C5F"],["2CF4","2CF8"],["2D26","2D26"],["2D28","2D2C"],["2D2E","2D2F"],["2D68","2D6E"],["2D71","2D7E"],["2D97","2D9F"],["2DA7","2DA7"],["2DAF","2DAF"],["2DB7","2DB7"],["2DBF","2DBF"],["2DC7","2DC7"],["2DCF","2DCF"],["2DD7","2DD7"],["2DDF","2DDF"],["2E3C","2E7F"],["2E9A","2E9A"],["2EF4","2EFF"],["2FD6","2FDF"],["2FE0","2FEF"],["2FFC","2FFF"],["3040","3040"],["3097","3098"],["3100","3104"],["312E","312F"],["3130","3130"],["318F","318F"],["31BB",
"31BF"],["31E4","31EF"],["321F","321F"],["32FF","32FF"],["4DB6","4DBF"],["9FCD","9FFF"],["A48D","A48F"],["A4C7","A4CF"],["A62C","A63F"],["A698","A69E"],["A6F8","A6FF"],["A78F","A78F"],["A794","A79F"],["A7AB","A7F7"],["A82C","A82F"],["A83A","A83F"],["A878","A87F"],["A8C5","A8CD"],["A8DA","A8DF"],["A8FC","A8FF"],["A954","A95E"],["A97D","A97F"],["A9CE","A9CE"],["A9DA","A9DD"],["A9E0","A9FF"],["AA37","AA3F"],["AA4E","AA4F"],["AA5A","AA5B"],["AA7C","AA7F"],["AAC3","AADA"],["AAF7","AAFF"],["AB00","AB00"],
["AB07","AB08"],["AB0F","AB10"],["AB17","AB1F"],["AB27","AB27"],["AB2F","AB2F"],["AB30","ABBF"],["ABEE","ABEF"],["ABFA","ABFF"],["D7A4","D7AF"],["D7C7","D7CA"],["D7FC","D7FF"],["FA6E","FA6F"],["FADA","FAFF"],["FB07","FB12"],["FB18","FB1C"],["FB37","FB37"],["FB3D","FB3D"],["FB3F","FB3F"],["FB42","FB42"],["FB45","FB45"],["FBC2","FBD2"],["FD40","FD4F"],["FD90","FD91"],["FDC8","FDCF"],["FDD0","FDEF"],["FDFE","FDFF"],["FE1A","FE1F"],["FE27","FE2F"],["FE53","FE53"],["FE67","FE67"],["FE6C","FE6F"],["FE75",
"FE75"],["FEFD","FEFE"],["FF00","FF00"],["FFBF","FFC1"],["FFC8","FFC9"],["FFD0","FFD1"],["FFD8","FFD9"],["FFDD","FFDF"],["FFE7","FFE7"],["FFEF","FFEF"],["FFF0","FFF8"],["FFFE","FFFF"],["1000C","1000C"],["10027","10027"],["1003B","1003B"],["1003E","1003E"],["1004E","1004F"],["1005E","1007F"],["100FB","100FF"],["10103","10106"],["10134","10136"],["1018B","1018F"],["1019C","101CF"],["101FE","101FF"],["10200","1027F"],["1029D","1029F"],["102D1","102DF"],["102E0","102FF"],["1031F","1031F"],["10324","1032F"],
["1034B","1034F"],["10350","1037F"],["1039E","1039E"],["103C4","103C7"],["103D6","103DF"],["103E0","103FF"],["1049E","1049F"],["104AA","104AF"],["104B0","107FF"],["10806","10807"],["10809","10809"],["10836","10836"],["10839","1083B"],["1083D","1083E"],["10856","10856"],["10860","108FF"],["1091C","1091E"],["1093A","1093E"],["10940","1097F"],["109B8","109BD"],["109C0","109FF"],["10A04","10A04"],["10A07","10A0B"],["10A14","10A14"],["10A18","10A18"],["10A34","10A37"],["10A3B","10A3E"],["10A48","10A4F"],
["10A59","10A5F"],["10A80","10AFF"],["10B36","10B38"],["10B56","10B57"],["10B73","10B77"],["10B80","10BFF"],["10C49","10C4F"],["10C50","10E5F"],["10E7F","10E7F"],["10E80","10FFF"],["1104E","11051"],["11070","1107F"],["110C2","110CF"],["110E9","110EF"],["110FA","110FF"],["11135","11135"],["11144","1114F"],["11150","1117F"],["111C9","111CF"],["111DA","111DF"],["111E0","1167F"],["116B8","116BF"],["116CA","116CF"],["116D0","11FFF"],["1236F","123FF"],["12463","1246F"],["12474","1247F"],["12480","12FFF"],
["1342F","1342F"],["13430","167FF"],["16A39","16A3F"],["16A40","16EFF"],["16F45","16F4F"],["16F7F","16F8E"],["16FA0","1AFFF"],["1B002","1B0FF"],["1B100","1CFFF"],["1D0F6","1D0FF"],["1D127","1D128"],["1D1DE","1D1FF"],["1D246","1D24F"],["1D250","1D2FF"],["1D357","1D35F"],["1D372","1D37F"],["1D380","1D3FF"],["1D455","1D455"],["1D49D","1D49D"],["1D4A0","1D4A1"],["1D4A3","1D4A4"],["1D4A7","1D4A8"],["1D4AD","1D4AD"],["1D4BA","1D4BA"],["1D4BC","1D4BC"],["1D4C4","1D4C4"],["1D506","1D506"],["1D50B","1D50C"],
["1D515","1D515"],["1D51D","1D51D"],["1D53A","1D53A"],["1D53F","1D53F"],["1D545","1D545"],["1D547","1D549"],["1D551","1D551"],["1D6A6","1D6A7"],["1D7CC","1D7CD"],["1D800","1E7FF"],["1E800","1EDFF"],["1EE04","1EE04"],["1EE20","1EE20"],["1EE23","1EE23"],["1EE25","1EE26"],["1EE28","1EE28"],["1EE33","1EE33"],["1EE38","1EE38"],["1EE3A","1EE3A"],["1EE3C","1EE41"],["1EE43","1EE46"],["1EE48","1EE48"],["1EE4A","1EE4A"],["1EE4C","1EE4C"],["1EE50","1EE50"],["1EE53","1EE53"],["1EE55","1EE56"],["1EE58","1EE58"],
["1EE5A","1EE5A"],["1EE5C","1EE5C"],["1EE5E","1EE5E"],["1EE60","1EE60"],["1EE63","1EE63"],["1EE65","1EE66"],["1EE6B","1EE6B"],["1EE73","1EE73"],["1EE78","1EE78"],["1EE7D","1EE7D"],["1EE7F","1EE7F"],["1EE8A","1EE8A"],["1EE9C","1EEA0"],["1EEA4","1EEA4"],["1EEAA","1EEAA"],["1EEBC","1EEEF"],["1EEF2","1EEFF"],["1EF00","1EFFF"],["1F02C","1F02F"],["1F094","1F09F"],["1F0AF","1F0B0"],["1F0BF","1F0C0"],["1F0D0","1F0D0"],["1F0E0","1F0FF"],["1F10B","1F10F"],["1F12F","1F12F"],["1F16C","1F16F"],["1F19B","1F1E5"],
["1F203","1F20F"],["1F23B","1F23F"],["1F249","1F24F"],["1F252","1F2FF"],["1F321","1F32F"],["1F336","1F336"],["1F37D","1F37F"],["1F394","1F39F"],["1F3C5","1F3C5"],["1F3CB","1F3DF"],["1F3F1","1F3FF"],["1F43F","1F43F"],["1F441","1F441"],["1F4F8","1F4F8"],["1F4FD","1F4FF"],["1F53E","1F53F"],["1F544","1F54F"],["1F568","1F5FA"],["1F641","1F644"],["1F650","1F67F"],["1F6C6","1F6FF"],["1F774","1F77F"],["1F780","1FFFD"],["1FFFE","1FFFF"],["2A6D7","2A6DF"],["2A6E0","2A6FF"],["2B735","2B73F"],["2B81E","2B81F"],
["2B820","2F7FF"],["2FA1E","2FA1F"],["2FA20","2FFFD"],["2FFFE","2FFFF"],["30000","3FFFD"],["3FFFE","3FFFF"],["40000","4FFFD"],["4FFFE","4FFFF"],["50000","5FFFD"],["5FFFE","5FFFF"],["60000","6FFFD"],["6FFFE","6FFFF"],["70000","7FFFD"],["7FFFE","7FFFF"],["80000","8FFFD"],["8FFFE","8FFFF"],["90000","9FFFD"],["9FFFE","9FFFF"],["A0000","AFFFD"],["AFFFE","AFFFF"],["B0000","BFFFD"],["BFFFE","BFFFF"],["C0000","CFFFD"],["CFFFE","CFFFF"],["D0000","DFFFD"],["DFFFE","DFFFF"],["E0000","E0000"],["E0002","E001F"],
["E0080","E00FF"],["E01F0","E0FFF"],["E1000","EFFFD"],["EFFFE","EFFFF"],["FFFFE","FFFFF"],["10FFFE","10FFFF"]],Co:[["E000","F8FF"],["F0000","FFFFD"],["100000","10FFFD"]],L:"Ll|Lm|Lo|Lt|Lu",Ll:[["61","7A"],["B5","B5"],["DF","F6"],["F8","FF"],["101","101"],["103","103"],["105","105"],["107","107"],["109","109"],["10B","10B"],["10D","10D"],["10F","10F"],["111","111"],["113","113"],["115","115"],["117","117"],["119","119"],["11B","11B"],["11D","11D"],["11F","11F"],["121","121"],["123","123"],["125","125"],
["127","127"],["129","129"],["12B","12B"],["12D","12D"],["12F","12F"],["131","131"],["133","133"],["135","135"],["137","138"],["13A","13A"],["13C","13C"],["13E","13E"],["140","140"],["142","142"],["144","144"],["146","146"],["148","149"],["14B","14B"],["14D","14D"],["14F","14F"],["151","151"],["153","153"],["155","155"],["157","157"],["159","159"],["15B","15B"],["15D","15D"],["15F","15F"],["161","161"],["163","163"],["165","165"],["167","167"],["169","169"],["16B","16B"],["16D","16D"],["16F","16F"],
["171","171"],["173","173"],["175","175"],["177","177"],["17A","17A"],["17C","17C"],["17E","180"],["183","183"],["185","185"],["188","188"],["18C","18D"],["192","192"],["195","195"],["199","19B"],["19E","19E"],["1A1","1A1"],["1A3","1A3"],["1A5","1A5"],["1A8","1A8"],["1AA","1AB"],["1AD","1AD"],["1B0","1B0"],["1B4","1B4"],["1B6","1B6"],["1B9","1BA"],["1BD","1BF"],["1C6","1C6"],["1C9","1C9"],["1CC","1CC"],["1CE","1CE"],["1D0","1D0"],["1D2","1D2"],["1D4","1D4"],["1D6","1D6"],["1D8","1D8"],["1DA","1DA"],
["1DC","1DD"],["1DF","1DF"],["1E1","1E1"],["1E3","1E3"],["1E5","1E5"],["1E7","1E7"],["1E9","1E9"],["1EB","1EB"],["1ED","1ED"],["1EF","1F0"],["1F3","1F3"],["1F5","1F5"],["1F9","1F9"],["1FB","1FB"],["1FD","1FD"],["1FF","1FF"],["201","201"],["203","203"],["205","205"],["207","207"],["209","209"],["20B","20B"],["20D","20D"],["20F","20F"],["211","211"],["213","213"],["215","215"],["217","217"],["219","219"],["21B","21B"],["21D","21D"],["21F","21F"],["221","221"],["223","223"],["225","225"],["227","227"],
["229","229"],["22B","22B"],["22D","22D"],["22F","22F"],["231","231"],["233","239"],["23C","23C"],["23F","240"],["242","242"],["247","247"],["249","249"],["24B","24B"],["24D","24D"],["24F","293"],["295","2AF"],["371","371"],["373","373"],["377","377"],["37B","37D"],["390","390"],["3AC","3CE"],["3D0","3D1"],["3D5","3D7"],["3D9","3D9"],["3DB","3DB"],["3DD","3DD"],["3DF","3DF"],["3E1","3E1"],["3E3","3E3"],["3E5","3E5"],["3E7","3E7"],["3E9","3E9"],["3EB","3EB"],["3ED","3ED"],["3EF","3F3"],["3F5","3F5"],
["3F8","3F8"],["3FB","3FC"],["430","45F"],["461","461"],["463","463"],["465","465"],["467","467"],["469","469"],["46B","46B"],["46D","46D"],["46F","46F"],["471","471"],["473","473"],["475","475"],["477","477"],["479","479"],["47B","47B"],["47D","47D"],["47F","47F"],["481","481"],["48B","48B"],["48D","48D"],["48F","48F"],["491","491"],["493","493"],["495","495"],["497","497"],["499","499"],["49B","49B"],["49D","49D"],["49F","49F"],["4A1","4A1"],["4A3","4A3"],["4A5","4A5"],["4A7","4A7"],["4A9","4A9"],
["4AB","4AB"],["4AD","4AD"],["4AF","4AF"],["4B1","4B1"],["4B3","4B3"],["4B5","4B5"],["4B7","4B7"],["4B9","4B9"],["4BB","4BB"],["4BD","4BD"],["4BF","4BF"],["4C2","4C2"],["4C4","4C4"],["4C6","4C6"],["4C8","4C8"],["4CA","4CA"],["4CC","4CC"],["4CE","4CF"],["4D1","4D1"],["4D3","4D3"],["4D5","4D5"],["4D7","4D7"],["4D9","4D9"],["4DB","4DB"],["4DD","4DD"],["4DF","4DF"],["4E1","4E1"],["4E3","4E3"],["4E5","4E5"],["4E7","4E7"],["4E9","4E9"],["4EB","4EB"],["4ED","4ED"],["4EF","4EF"],["4F1","4F1"],["4F3","4F3"],
["4F5","4F5"],["4F7","4F7"],["4F9","4F9"],["4FB","4FB"],["4FD","4FD"],["4FF","4FF"],["501","501"],["503","503"],["505","505"],["507","507"],["509","509"],["50B","50B"],["50D","50D"],["50F","50F"],["511","511"],["513","513"],["515","515"],["517","517"],["519","519"],["51B","51B"],["51D","51D"],["51F","51F"],["521","521"],["523","523"],["525","525"],["527","527"],["561","587"],["1D00","1D2B"],["1D6B","1D77"],["1D79","1D9A"],["1E01","1E01"],["1E03","1E03"],["1E05","1E05"],["1E07","1E07"],["1E09","1E09"],
["1E0B","1E0B"],["1E0D","1E0D"],["1E0F","1E0F"],["1E11","1E11"],["1E13","1E13"],["1E15","1E15"],["1E17","1E17"],["1E19","1E19"],["1E1B","1E1B"],["1E1D","1E1D"],["1E1F","1E1F"],["1E21","1E21"],["1E23","1E23"],["1E25","1E25"],["1E27","1E27"],["1E29","1E29"],["1E2B","1E2B"],["1E2D","1E2D"],["1E2F","1E2F"],["1E31","1E31"],["1E33","1E33"],["1E35","1E35"],["1E37","1E37"],["1E39","1E39"],["1E3B","1E3B"],["1E3D","1E3D"],["1E3F","1E3F"],["1E41","1E41"],["1E43","1E43"],["1E45","1E45"],["1E47","1E47"],["1E49",
"1E49"],["1E4B","1E4B"],["1E4D","1E4D"],["1E4F","1E4F"],["1E51","1E51"],["1E53","1E53"],["1E55","1E55"],["1E57","1E57"],["1E59","1E59"],["1E5B","1E5B"],["1E5D","1E5D"],["1E5F","1E5F"],["1E61","1E61"],["1E63","1E63"],["1E65","1E65"],["1E67","1E67"],["1E69","1E69"],["1E6B","1E6B"],["1E6D","1E6D"],["1E6F","1E6F"],["1E71","1E71"],["1E73","1E73"],["1E75","1E75"],["1E77","1E77"],["1E79","1E79"],["1E7B","1E7B"],["1E7D","1E7D"],["1E7F","1E7F"],["1E81","1E81"],["1E83","1E83"],["1E85","1E85"],["1E87","1E87"],
["1E89","1E89"],["1E8B","1E8B"],["1E8D","1E8D"],["1E8F","1E8F"],["1E91","1E91"],["1E93","1E93"],["1E95","1E9D"],["1E9F","1E9F"],["1EA1","1EA1"],["1EA3","1EA3"],["1EA5","1EA5"],["1EA7","1EA7"],["1EA9","1EA9"],["1EAB","1EAB"],["1EAD","1EAD"],["1EAF","1EAF"],["1EB1","1EB1"],["1EB3","1EB3"],["1EB5","1EB5"],["1EB7","1EB7"],["1EB9","1EB9"],["1EBB","1EBB"],["1EBD","1EBD"],["1EBF","1EBF"],["1EC1","1EC1"],["1EC3","1EC3"],["1EC5","1EC5"],["1EC7","1EC7"],["1EC9","1EC9"],["1ECB","1ECB"],["1ECD","1ECD"],["1ECF",
"1ECF"],["1ED1","1ED1"],["1ED3","1ED3"],["1ED5","1ED5"],["1ED7","1ED7"],["1ED9","1ED9"],["1EDB","1EDB"],["1EDD","1EDD"],["1EDF","1EDF"],["1EE1","1EE1"],["1EE3","1EE3"],["1EE5","1EE5"],["1EE7","1EE7"],["1EE9","1EE9"],["1EEB","1EEB"],["1EED","1EED"],["1EEF","1EEF"],["1EF1","1EF1"],["1EF3","1EF3"],["1EF5","1EF5"],["1EF7","1EF7"],["1EF9","1EF9"],["1EFB","1EFB"],["1EFD","1EFD"],["1EFF","1F07"],["1F10","1F15"],["1F20","1F27"],["1F30","1F37"],["1F40","1F45"],["1F50","1F57"],["1F60","1F67"],["1F70","1F7D"],
["1F80","1F87"],["1F90","1F97"],["1FA0","1FA7"],["1FB0","1FB4"],["1FB6","1FB7"],["1FBE","1FBE"],["1FC2","1FC4"],["1FC6","1FC7"],["1FD0","1FD3"],["1FD6","1FD7"],["1FE0","1FE7"],["1FF2","1FF4"],["1FF6","1FF7"],["210A","210A"],["210E","210F"],["2113","2113"],["212F","212F"],["2134","2134"],["2139","2139"],["213C","213D"],["2146","2149"],["214E","214E"],["2184","2184"],["2C30","2C5E"],["2C61","2C61"],["2C65","2C66"],["2C68","2C68"],["2C6A","2C6A"],["2C6C","2C6C"],["2C71","2C71"],["2C73","2C74"],["2C76",
"2C7B"],["2C81","2C81"],["2C83","2C83"],["2C85","2C85"],["2C87","2C87"],["2C89","2C89"],["2C8B","2C8B"],["2C8D","2C8D"],["2C8F","2C8F"],["2C91","2C91"],["2C93","2C93"],["2C95","2C95"],["2C97","2C97"],["2C99","2C99"],["2C9B","2C9B"],["2C9D","2C9D"],["2C9F","2C9F"],["2CA1","2CA1"],["2CA3","2CA3"],["2CA5","2CA5"],["2CA7","2CA7"],["2CA9","2CA9"],["2CAB","2CAB"],["2CAD","2CAD"],["2CAF","2CAF"],["2CB1","2CB1"],["2CB3","2CB3"],["2CB5","2CB5"],["2CB7","2CB7"],["2CB9","2CB9"],["2CBB","2CBB"],["2CBD","2CBD"],
["2CBF","2CBF"],["2CC1","2CC1"],["2CC3","2CC3"],["2CC5","2CC5"],["2CC7","2CC7"],["2CC9","2CC9"],["2CCB","2CCB"],["2CCD","2CCD"],["2CCF","2CCF"],["2CD1","2CD1"],["2CD3","2CD3"],["2CD5","2CD5"],["2CD7","2CD7"],["2CD9","2CD9"],["2CDB","2CDB"],["2CDD","2CDD"],["2CDF","2CDF"],["2CE1","2CE1"],["2CE3","2CE4"],["2CEC","2CEC"],["2CEE","2CEE"],["2CF3","2CF3"],["2D00","2D25"],["2D27","2D27"],["2D2D","2D2D"],["A641","A641"],["A643","A643"],["A645","A645"],["A647","A647"],["A649","A649"],["A64B","A64B"],["A64D",
"A64D"],["A64F","A64F"],["A651","A651"],["A653","A653"],["A655","A655"],["A657","A657"],["A659","A659"],["A65B","A65B"],["A65D","A65D"],["A65F","A65F"],["A661","A661"],["A663","A663"],["A665","A665"],["A667","A667"],["A669","A669"],["A66B","A66B"],["A66D","A66D"],["A681","A681"],["A683","A683"],["A685","A685"],["A687","A687"],["A689","A689"],["A68B","A68B"],["A68D","A68D"],["A68F","A68F"],["A691","A691"],["A693","A693"],["A695","A695"],["A697","A697"],["A723","A723"],["A725","A725"],["A727","A727"],
["A729","A729"],["A72B","A72B"],["A72D","A72D"],["A72F","A731"],["A733","A733"],["A735","A735"],["A737","A737"],["A739","A739"],["A73B","A73B"],["A73D","A73D"],["A73F","A73F"],["A741","A741"],["A743","A743"],["A745","A745"],["A747","A747"],["A749","A749"],["A74B","A74B"],["A74D","A74D"],["A74F","A74F"],["A751","A751"],["A753","A753"],["A755","A755"],["A757","A757"],["A759","A759"],["A75B","A75B"],["A75D","A75D"],["A75F","A75F"],["A761","A761"],["A763","A763"],["A765","A765"],["A767","A767"],["A769",
"A769"],["A76B","A76B"],["A76D","A76D"],["A76F","A76F"],["A771","A778"],["A77A","A77A"],["A77C","A77C"],["A77F","A77F"],["A781","A781"],["A783","A783"],["A785","A785"],["A787","A787"],["A78C","A78C"],["A78E","A78E"],["A791","A791"],["A793","A793"],["A7A1","A7A1"],["A7A3","A7A3"],["A7A5","A7A5"],["A7A7","A7A7"],["A7A9","A7A9"],["A7FA","A7FA"],["FB00","FB06"],["FB13","FB17"],["FF41","FF5A"],["10428","1044F"],["1D41A","1D433"],["1D44E","1D454"],["1D456","1D467"],["1D482","1D49B"],["1D4B6","1D4B9"],["1D4BB",
"1D4BB"],["1D4BD","1D4C3"],["1D4C5","1D4CF"],["1D4EA","1D503"],["1D51E","1D537"],["1D552","1D56B"],["1D586","1D59F"],["1D5BA","1D5D3"],["1D5EE","1D607"],["1D622","1D63B"],["1D656","1D66F"],["1D68A","1D6A5"],["1D6C2","1D6DA"],["1D6DC","1D6E1"],["1D6FC","1D714"],["1D716","1D71B"],["1D736","1D74E"],["1D750","1D755"],["1D770","1D788"],["1D78A","1D78F"],["1D7AA","1D7C2"],["1D7C4","1D7C9"],["1D7CB","1D7CB"]],Lm:[["2B0","2C1"],["2C6","2D1"],["2E0","2E4"],["2EC","2EC"],["2EE","2EE"],["374","374"],["37A",
"37A"],["559","559"],["640","640"],["6E5","6E6"],["7F4","7F5"],["7FA","7FA"],["81A","81A"],["824","824"],["828","828"],["971","971"],["E46","E46"],["EC6","EC6"],["10FC","10FC"],["17D7","17D7"],["1843","1843"],["1AA7","1AA7"],["1C78","1C7D"],["1D2C","1D6A"],["1D78","1D78"],["1D9B","1DBF"],["2071","2071"],["207F","207F"],["2090","209C"],["2C7C","2C7D"],["2D6F","2D6F"],["2E2F","2E2F"],["3005","3005"],["3031","3035"],["303B","303B"],["309D","309E"],["30FC","30FE"],["A015","A015"],["A4F8","A4FD"],["A60C",
"A60C"],["A67F","A67F"],["A717","A71F"],["A770","A770"],["A788","A788"],["A7F8","A7F9"],["A9CF","A9CF"],["AA70","AA70"],["AADD","AADD"],["AAF3","AAF4"],["FF70","FF70"],["FF9E","FF9F"],["16F93","16F9F"]],Lo:[["AA","AA"],["BA","BA"],["1BB","1BB"],["1C0","1C3"],["294","294"],["5D0","5EA"],["5F0","5F2"],["620","63F"],["641","64A"],["66E","66F"],["671","6D3"],["6D5","6D5"],["6EE","6EF"],["6FA","6FC"],["6FF","6FF"],["710","710"],["712","72F"],["74D","7A5"],["7B1","7B1"],["7CA","7EA"],["800","815"],["840",
"858"],["8A0","8A0"],["8A2","8AC"],["904","939"],["93D","93D"],["950","950"],["958","961"],["972","977"],["979","97F"],["985","98C"],["98F","990"],["993","9A8"],["9AA","9B0"],["9B2","9B2"],["9B6","9B9"],["9BD","9BD"],["9CE","9CE"],["9DC","9DD"],["9DF","9E1"],["9F0","9F1"],["A05","A0A"],["A0F","A10"],["A13","A28"],["A2A","A30"],["A32","A33"],["A35","A36"],["A38","A39"],["A59","A5C"],["A5E","A5E"],["A72","A74"],["A85","A8D"],["A8F","A91"],["A93","AA8"],["AAA","AB0"],["AB2","AB3"],["AB5","AB9"],["ABD",
"ABD"],["AD0","AD0"],["AE0","AE1"],["B05","B0C"],["B0F","B10"],["B13","B28"],["B2A","B30"],["B32","B33"],["B35","B39"],["B3D","B3D"],["B5C","B5D"],["B5F","B61"],["B71","B71"],["B83","B83"],["B85","B8A"],["B8E","B90"],["B92","B95"],["B99","B9A"],["B9C","B9C"],["B9E","B9F"],["BA3","BA4"],["BA8","BAA"],["BAE","BB9"],["BD0","BD0"],["C05","C0C"],["C0E","C10"],["C12","C28"],["C2A","C33"],["C35","C39"],["C3D","C3D"],["C58","C59"],["C60","C61"],["C85","C8C"],["C8E","C90"],["C92","CA8"],["CAA","CB3"],["CB5",
"CB9"],["CBD","CBD"],["CDE","CDE"],["CE0","CE1"],["CF1","CF2"],["D05","D0C"],["D0E","D10"],["D12","D3A"],["D3D","D3D"],["D4E","D4E"],["D60","D61"],["D7A","D7F"],["D85","D96"],["D9A","DB1"],["DB3","DBB"],["DBD","DBD"],["DC0","DC6"],["E01","E30"],["E32","E33"],["E40","E45"],["E81","E82"],["E84","E84"],["E87","E88"],["E8A","E8A"],["E8D","E8D"],["E94","E97"],["E99","E9F"],["EA1","EA3"],["EA5","EA5"],["EA7","EA7"],["EAA","EAB"],["EAD","EB0"],["EB2","EB3"],["EBD","EBD"],["EC0","EC4"],["EDC","EDF"],["F00",
"F00"],["F40","F47"],["F49","F6C"],["F88","F8C"],["1000","102A"],["103F","103F"],["1050","1055"],["105A","105D"],["1061","1061"],["1065","1066"],["106E","1070"],["1075","1081"],["108E","108E"],["10D0","10FA"],["10FD","1248"],["124A","124D"],["1250","1256"],["1258","1258"],["125A","125D"],["1260","1288"],["128A","128D"],["1290","12B0"],["12B2","12B5"],["12B8","12BE"],["12C0","12C0"],["12C2","12C5"],["12C8","12D6"],["12D8","1310"],["1312","1315"],["1318","135A"],["1380","138F"],["13A0","13F4"],["1401",
"166C"],["166F","167F"],["1681","169A"],["16A0","16EA"],["1700","170C"],["170E","1711"],["1720","1731"],["1740","1751"],["1760","176C"],["176E","1770"],["1780","17B3"],["17DC","17DC"],["1820","1842"],["1844","1877"],["1880","18A8"],["18AA","18AA"],["18B0","18F5"],["1900","191C"],["1950","196D"],["1970","1974"],["1980","19AB"],["19C1","19C7"],["1A00","1A16"],["1A20","1A54"],["1B05","1B33"],["1B45","1B4B"],["1B83","1BA0"],["1BAE","1BAF"],["1BBA","1BE5"],["1C00","1C23"],["1C4D","1C4F"],["1C5A","1C77"],
["1CE9","1CEC"],["1CEE","1CF1"],["1CF5","1CF6"],["2135","2138"],["2D30","2D67"],["2D80","2D96"],["2DA0","2DA6"],["2DA8","2DAE"],["2DB0","2DB6"],["2DB8","2DBE"],["2DC0","2DC6"],["2DC8","2DCE"],["2DD0","2DD6"],["2DD8","2DDE"],["3006","3006"],["303C","303C"],["3041","3096"],["309F","309F"],["30A1","30FA"],["30FF","30FF"],["3105","312D"],["3131","318E"],["31A0","31BA"],["31F0","31FF"],["3400","4DB5"],["4E00","9FCC"],["A000","A014"],["A016","A48C"],["A4D0","A4F7"],["A500","A60B"],["A610","A61F"],["A62A",
"A62B"],["A66E","A66E"],["A6A0","A6E5"],["A7FB","A801"],["A803","A805"],["A807","A80A"],["A80C","A822"],["A840","A873"],["A882","A8B3"],["A8F2","A8F7"],["A8FB","A8FB"],["A90A","A925"],["A930","A946"],["A960","A97C"],["A984","A9B2"],["AA00","AA28"],["AA40","AA42"],["AA44","AA4B"],["AA60","AA6F"],["AA71","AA76"],["AA7A","AA7A"],["AA80","AAAF"],["AAB1","AAB1"],["AAB5","AAB6"],["AAB9","AABD"],["AAC0","AAC0"],["AAC2","AAC2"],["AADB","AADC"],["AAE0","AAEA"],["AAF2","AAF2"],["AB01","AB06"],["AB09","AB0E"],
["AB11","AB16"],["AB20","AB26"],["AB28","AB2E"],["ABC0","ABE2"],["AC00","D7A3"],["D7B0","D7C6"],["D7CB","D7FB"],["F900","FA6D"],["FA70","FAD9"],["FB1D","FB1D"],["FB1F","FB28"],["FB2A","FB36"],["FB38","FB3C"],["FB3E","FB3E"],["FB40","FB41"],["FB43","FB44"],["FB46","FBB1"],["FBD3","FD3D"],["FD50","FD8F"],["FD92","FDC7"],["FDF0","FDFB"],["FE70","FE74"],["FE76","FEFC"],["FF66","FF6F"],["FF71","FF9D"],["FFA0","FFBE"],["FFC2","FFC7"],["FFCA","FFCF"],["FFD2","FFD7"],["FFDA","FFDC"],["10000","1000B"],["1000D",
"10026"],["10028","1003A"],["1003C","1003D"],["1003F","1004D"],["10050","1005D"],["10080","100FA"],["10280","1029C"],["102A0","102D0"],["10300","1031E"],["10330","10340"],["10342","10349"],["10380","1039D"],["103A0","103C3"],["103C8","103CF"],["10450","1049D"],["10800","10805"],["10808","10808"],["1080A","10835"],["10837","10838"],["1083C","1083C"],["1083F","10855"],["10900","10915"],["10920","10939"],["10980","109B7"],["109BE","109BF"],["10A00","10A00"],["10A10","10A13"],["10A15","10A17"],["10A19",
"10A33"],["10A60","10A7C"],["10B00","10B35"],["10B40","10B55"],["10B60","10B72"],["10C00","10C48"],["11003","11037"],["11083","110AF"],["110D0","110E8"],["11103","11126"],["11183","111B2"],["111C1","111C4"],["11680","116AA"],["12000","1236E"],["13000","1342E"],["16800","16A38"],["16F00","16F44"],["16F50","16F50"],["1B000","1B001"],["1EE00","1EE03"],["1EE05","1EE1F"],["1EE21","1EE22"],["1EE24","1EE24"],["1EE27","1EE27"],["1EE29","1EE32"],["1EE34","1EE37"],["1EE39","1EE39"],["1EE3B","1EE3B"],["1EE42",
"1EE42"],["1EE47","1EE47"],["1EE49","1EE49"],["1EE4B","1EE4B"],["1EE4D","1EE4F"],["1EE51","1EE52"],["1EE54","1EE54"],["1EE57","1EE57"],["1EE59","1EE59"],["1EE5B","1EE5B"],["1EE5D","1EE5D"],["1EE5F","1EE5F"],["1EE61","1EE62"],["1EE64","1EE64"],["1EE67","1EE6A"],["1EE6C","1EE72"],["1EE74","1EE77"],["1EE79","1EE7C"],["1EE7E","1EE7E"],["1EE80","1EE89"],["1EE8B","1EE9B"],["1EEA1","1EEA3"],["1EEA5","1EEA9"],["1EEAB","1EEBB"],["20000","2A6D6"],["2A700","2B734"],["2B740","2B81D"],["2F800","2FA1D"]],Lt:[["1C5",
"1C5"],["1C8","1C8"],["1CB","1CB"],["1F2","1F2"],["1F88","1F8F"],["1F98","1F9F"],["1FA8","1FAF"],["1FBC","1FBC"],["1FCC","1FCC"],["1FFC","1FFC"]],Lu:[["41","5A"],["C0","D6"],["D8","DE"],["100","100"],["102","102"],["104","104"],["106","106"],["108","108"],["10A","10A"],["10C","10C"],["10E","10E"],["110","110"],["112","112"],["114","114"],["116","116"],["118","118"],["11A","11A"],["11C","11C"],["11E","11E"],["120","120"],["122","122"],["124","124"],["126","126"],["128","128"],["12A","12A"],["12C",
"12C"],["12E","12E"],["130","130"],["132","132"],["134","134"],["136","136"],["139","139"],["13B","13B"],["13D","13D"],["13F","13F"],["141","141"],["143","143"],["145","145"],["147","147"],["14A","14A"],["14C","14C"],["14E","14E"],["150","150"],["152","152"],["154","154"],["156","156"],["158","158"],["15A","15A"],["15C","15C"],["15E","15E"],["160","160"],["162","162"],["164","164"],["166","166"],["168","168"],["16A","16A"],["16C","16C"],["16E","16E"],["170","170"],["172","172"],["174","174"],["176",
"176"],["178","179"],["17B","17B"],["17D","17D"],["181","182"],["184","184"],["186","187"],["189","18B"],["18E","191"],["193","194"],["196","198"],["19C","19D"],["19F","1A0"],["1A2","1A2"],["1A4","1A4"],["1A6","1A7"],["1A9","1A9"],["1AC","1AC"],["1AE","1AF"],["1B1","1B3"],["1B5","1B5"],["1B7","1B8"],["1BC","1BC"],["1C4","1C4"],["1C7","1C7"],["1CA","1CA"],["1CD","1CD"],["1CF","1CF"],["1D1","1D1"],["1D3","1D3"],["1D5","1D5"],["1D7","1D7"],["1D9","1D9"],["1DB","1DB"],["1DE","1DE"],["1E0","1E0"],["1E2",
"1E2"],["1E4","1E4"],["1E6","1E6"],["1E8","1E8"],["1EA","1EA"],["1EC","1EC"],["1EE","1EE"],["1F1","1F1"],["1F4","1F4"],["1F6","1F8"],["1FA","1FA"],["1FC","1FC"],["1FE","1FE"],["200","200"],["202","202"],["204","204"],["206","206"],["208","208"],["20A","20A"],["20C","20C"],["20E","20E"],["210","210"],["212","212"],["214","214"],["216","216"],["218","218"],["21A","21A"],["21C","21C"],["21E","21E"],["220","220"],["222","222"],["224","224"],["226","226"],["228","228"],["22A","22A"],["22C","22C"],["22E",
"22E"],["230","230"],["232","232"],["23A","23B"],["23D","23E"],["241","241"],["243","246"],["248","248"],["24A","24A"],["24C","24C"],["24E","24E"],["370","370"],["372","372"],["376","376"],["386","386"],["388","38A"],["38C","38C"],["38E","38F"],["391","3A1"],["3A3","3AB"],["3CF","3CF"],["3D2","3D4"],["3D8","3D8"],["3DA","3DA"],["3DC","3DC"],["3DE","3DE"],["3E0","3E0"],["3E2","3E2"],["3E4","3E4"],["3E6","3E6"],["3E8","3E8"],["3EA","3EA"],["3EC","3EC"],["3EE","3EE"],["3F4","3F4"],["3F7","3F7"],["3F9",
"3FA"],["3FD","42F"],["460","460"],["462","462"],["464","464"],["466","466"],["468","468"],["46A","46A"],["46C","46C"],["46E","46E"],["470","470"],["472","472"],["474","474"],["476","476"],["478","478"],["47A","47A"],["47C","47C"],["47E","47E"],["480","480"],["48A","48A"],["48C","48C"],["48E","48E"],["490","490"],["492","492"],["494","494"],["496","496"],["498","498"],["49A","49A"],["49C","49C"],["49E","49E"],["4A0","4A0"],["4A2","4A2"],["4A4","4A4"],["4A6","4A6"],["4A8","4A8"],["4AA","4AA"],["4AC",
"4AC"],["4AE","4AE"],["4B0","4B0"],["4B2","4B2"],["4B4","4B4"],["4B6","4B6"],["4B8","4B8"],["4BA","4BA"],["4BC","4BC"],["4BE","4BE"],["4C0","4C1"],["4C3","4C3"],["4C5","4C5"],["4C7","4C7"],["4C9","4C9"],["4CB","4CB"],["4CD","4CD"],["4D0","4D0"],["4D2","4D2"],["4D4","4D4"],["4D6","4D6"],["4D8","4D8"],["4DA","4DA"],["4DC","4DC"],["4DE","4DE"],["4E0","4E0"],["4E2","4E2"],["4E4","4E4"],["4E6","4E6"],["4E8","4E8"],["4EA","4EA"],["4EC","4EC"],["4EE","4EE"],["4F0","4F0"],["4F2","4F2"],["4F4","4F4"],["4F6",
"4F6"],["4F8","4F8"],["4FA","4FA"],["4FC","4FC"],["4FE","4FE"],["500","500"],["502","502"],["504","504"],["506","506"],["508","508"],["50A","50A"],["50C","50C"],["50E","50E"],["510","510"],["512","512"],["514","514"],["516","516"],["518","518"],["51A","51A"],["51C","51C"],["51E","51E"],["520","520"],["522","522"],["524","524"],["526","526"],["531","556"],["10A0","10C5"],["10C7","10C7"],["10CD","10CD"],["1E00","1E00"],["1E02","1E02"],["1E04","1E04"],["1E06","1E06"],["1E08","1E08"],["1E0A","1E0A"],
["1E0C","1E0C"],["1E0E","1E0E"],["1E10","1E10"],["1E12","1E12"],["1E14","1E14"],["1E16","1E16"],["1E18","1E18"],["1E1A","1E1A"],["1E1C","1E1C"],["1E1E","1E1E"],["1E20","1E20"],["1E22","1E22"],["1E24","1E24"],["1E26","1E26"],["1E28","1E28"],["1E2A","1E2A"],["1E2C","1E2C"],["1E2E","1E2E"],["1E30","1E30"],["1E32","1E32"],["1E34","1E34"],["1E36","1E36"],["1E38","1E38"],["1E3A","1E3A"],["1E3C","1E3C"],["1E3E","1E3E"],["1E40","1E40"],["1E42","1E42"],["1E44","1E44"],["1E46","1E46"],["1E48","1E48"],["1E4A",
"1E4A"],["1E4C","1E4C"],["1E4E","1E4E"],["1E50","1E50"],["1E52","1E52"],["1E54","1E54"],["1E56","1E56"],["1E58","1E58"],["1E5A","1E5A"],["1E5C","1E5C"],["1E5E","1E5E"],["1E60","1E60"],["1E62","1E62"],["1E64","1E64"],["1E66","1E66"],["1E68","1E68"],["1E6A","1E6A"],["1E6C","1E6C"],["1E6E","1E6E"],["1E70","1E70"],["1E72","1E72"],["1E74","1E74"],["1E76","1E76"],["1E78","1E78"],["1E7A","1E7A"],["1E7C","1E7C"],["1E7E","1E7E"],["1E80","1E80"],["1E82","1E82"],["1E84","1E84"],["1E86","1E86"],["1E88","1E88"],
["1E8A","1E8A"],["1E8C","1E8C"],["1E8E","1E8E"],["1E90","1E90"],["1E92","1E92"],["1E94","1E94"],["1E9E","1E9E"],["1EA0","1EA0"],["1EA2","1EA2"],["1EA4","1EA4"],["1EA6","1EA6"],["1EA8","1EA8"],["1EAA","1EAA"],["1EAC","1EAC"],["1EAE","1EAE"],["1EB0","1EB0"],["1EB2","1EB2"],["1EB4","1EB4"],["1EB6","1EB6"],["1EB8","1EB8"],["1EBA","1EBA"],["1EBC","1EBC"],["1EBE","1EBE"],["1EC0","1EC0"],["1EC2","1EC2"],["1EC4","1EC4"],["1EC6","1EC6"],["1EC8","1EC8"],["1ECA","1ECA"],["1ECC","1ECC"],["1ECE","1ECE"],["1ED0",
"1ED0"],["1ED2","1ED2"],["1ED4","1ED4"],["1ED6","1ED6"],["1ED8","1ED8"],["1EDA","1EDA"],["1EDC","1EDC"],["1EDE","1EDE"],["1EE0","1EE0"],["1EE2","1EE2"],["1EE4","1EE4"],["1EE6","1EE6"],["1EE8","1EE8"],["1EEA","1EEA"],["1EEC","1EEC"],["1EEE","1EEE"],["1EF0","1EF0"],["1EF2","1EF2"],["1EF4","1EF4"],["1EF6","1EF6"],["1EF8","1EF8"],["1EFA","1EFA"],["1EFC","1EFC"],["1EFE","1EFE"],["1F08","1F0F"],["1F18","1F1D"],["1F28","1F2F"],["1F38","1F3F"],["1F48","1F4D"],["1F59","1F59"],["1F5B","1F5B"],["1F5D","1F5D"],
["1F5F","1F5F"],["1F68","1F6F"],["1FB8","1FBB"],["1FC8","1FCB"],["1FD8","1FDB"],["1FE8","1FEC"],["1FF8","1FFB"],["2102","2102"],["2107","2107"],["210B","210D"],["2110","2112"],["2115","2115"],["2119","211D"],["2124","2124"],["2126","2126"],["2128","2128"],["212A","212D"],["2130","2133"],["213E","213F"],["2145","2145"],["2183","2183"],["2C00","2C2E"],["2C60","2C60"],["2C62","2C64"],["2C67","2C67"],["2C69","2C69"],["2C6B","2C6B"],["2C6D","2C70"],["2C72","2C72"],["2C75","2C75"],["2C7E","2C80"],["2C82",
"2C82"],["2C84","2C84"],["2C86","2C86"],["2C88","2C88"],["2C8A","2C8A"],["2C8C","2C8C"],["2C8E","2C8E"],["2C90","2C90"],["2C92","2C92"],["2C94","2C94"],["2C96","2C96"],["2C98","2C98"],["2C9A","2C9A"],["2C9C","2C9C"],["2C9E","2C9E"],["2CA0","2CA0"],["2CA2","2CA2"],["2CA4","2CA4"],["2CA6","2CA6"],["2CA8","2CA8"],["2CAA","2CAA"],["2CAC","2CAC"],["2CAE","2CAE"],["2CB0","2CB0"],["2CB2","2CB2"],["2CB4","2CB4"],["2CB6","2CB6"],["2CB8","2CB8"],["2CBA","2CBA"],["2CBC","2CBC"],["2CBE","2CBE"],["2CC0","2CC0"],
["2CC2","2CC2"],["2CC4","2CC4"],["2CC6","2CC6"],["2CC8","2CC8"],["2CCA","2CCA"],["2CCC","2CCC"],["2CCE","2CCE"],["2CD0","2CD0"],["2CD2","2CD2"],["2CD4","2CD4"],["2CD6","2CD6"],["2CD8","2CD8"],["2CDA","2CDA"],["2CDC","2CDC"],["2CDE","2CDE"],["2CE0","2CE0"],["2CE2","2CE2"],["2CEB","2CEB"],["2CED","2CED"],["2CF2","2CF2"],["A640","A640"],["A642","A642"],["A644","A644"],["A646","A646"],["A648","A648"],["A64A","A64A"],["A64C","A64C"],["A64E","A64E"],["A650","A650"],["A652","A652"],["A654","A654"],["A656",
"A656"],["A658","A658"],["A65A","A65A"],["A65C","A65C"],["A65E","A65E"],["A660","A660"],["A662","A662"],["A664","A664"],["A666","A666"],["A668","A668"],["A66A","A66A"],["A66C","A66C"],["A680","A680"],["A682","A682"],["A684","A684"],["A686","A686"],["A688","A688"],["A68A","A68A"],["A68C","A68C"],["A68E","A68E"],["A690","A690"],["A692","A692"],["A694","A694"],["A696","A696"],["A722","A722"],["A724","A724"],["A726","A726"],["A728","A728"],["A72A","A72A"],["A72C","A72C"],["A72E","A72E"],["A732","A732"],
["A734","A734"],["A736","A736"],["A738","A738"],["A73A","A73A"],["A73C","A73C"],["A73E","A73E"],["A740","A740"],["A742","A742"],["A744","A744"],["A746","A746"],["A748","A748"],["A74A","A74A"],["A74C","A74C"],["A74E","A74E"],["A750","A750"],["A752","A752"],["A754","A754"],["A756","A756"],["A758","A758"],["A75A","A75A"],["A75C","A75C"],["A75E","A75E"],["A760","A760"],["A762","A762"],["A764","A764"],["A766","A766"],["A768","A768"],["A76A","A76A"],["A76C","A76C"],["A76E","A76E"],["A779","A779"],["A77B",
"A77B"],["A77D","A77E"],["A780","A780"],["A782","A782"],["A784","A784"],["A786","A786"],["A78B","A78B"],["A78D","A78D"],["A790","A790"],["A792","A792"],["A7A0","A7A0"],["A7A2","A7A2"],["A7A4","A7A4"],["A7A6","A7A6"],["A7A8","A7A8"],["A7AA","A7AA"],["FF21","FF3A"],["10400","10427"],["1D400","1D419"],["1D434","1D44D"],["1D468","1D481"],["1D49C","1D49C"],["1D49E","1D49F"],["1D4A2","1D4A2"],["1D4A5","1D4A6"],["1D4A9","1D4AC"],["1D4AE","1D4B5"],["1D4D0","1D4E9"],["1D504","1D505"],["1D507","1D50A"],["1D50D",
"1D514"],["1D516","1D51C"],["1D538","1D539"],["1D53B","1D53E"],["1D540","1D544"],["1D546","1D546"],["1D54A","1D550"],["1D56C","1D585"],["1D5A0","1D5B9"],["1D5D4","1D5ED"],["1D608","1D621"],["1D63C","1D655"],["1D670","1D689"],["1D6A8","1D6C0"],["1D6E2","1D6FA"],["1D71C","1D734"],["1D756","1D76E"],["1D790","1D7A8"],["1D7CA","1D7CA"]],M:"Mc|Me|Mn",Mc:[["903","903"],["93B","93B"],["93E","940"],["949","94C"],["94E","94F"],["982","983"],["9BE","9C0"],["9C7","9C8"],["9CB","9CC"],["9D7","9D7"],["A03","A03"],
["A3E","A40"],["A83","A83"],["ABE","AC0"],["AC9","AC9"],["ACB","ACC"],["B02","B03"],["B3E","B3E"],["B40","B40"],["B47","B48"],["B4B","B4C"],["B57","B57"],["BBE","BBF"],["BC1","BC2"],["BC6","BC8"],["BCA","BCC"],["BD7","BD7"],["C01","C03"],["C41","C44"],["C82","C83"],["CBE","CBE"],["CC0","CC4"],["CC7","CC8"],["CCA","CCB"],["CD5","CD6"],["D02","D03"],["D3E","D40"],["D46","D48"],["D4A","D4C"],["D57","D57"],["D82","D83"],["DCF","DD1"],["DD8","DDF"],["DF2","DF3"],["F3E","F3F"],["F7F","F7F"],["102B","102C"],
["1031","1031"],["1038","1038"],["103B","103C"],["1056","1057"],["1062","1064"],["1067","106D"],["1083","1084"],["1087","108C"],["108F","108F"],["109A","109C"],["17B6","17B6"],["17BE","17C5"],["17C7","17C8"],["1923","1926"],["1929","192B"],["1930","1931"],["1933","1938"],["19B0","19C0"],["19C8","19C9"],["1A19","1A1B"],["1A55","1A55"],["1A57","1A57"],["1A61","1A61"],["1A63","1A64"],["1A6D","1A72"],["1B04","1B04"],["1B35","1B35"],["1B3B","1B3B"],["1B3D","1B41"],["1B43","1B44"],["1B82","1B82"],["1BA1",
"1BA1"],["1BA6","1BA7"],["1BAA","1BAA"],["1BAC","1BAD"],["1BE7","1BE7"],["1BEA","1BEC"],["1BEE","1BEE"],["1BF2","1BF3"],["1C24","1C2B"],["1C34","1C35"],["1CE1","1CE1"],["1CF2","1CF3"],["302E","302F"],["A823","A824"],["A827","A827"],["A880","A881"],["A8B4","A8C3"],["A952","A953"],["A983","A983"],["A9B4","A9B5"],["A9BA","A9BB"],["A9BD","A9C0"],["AA2F","AA30"],["AA33","AA34"],["AA4D","AA4D"],["AA7B","AA7B"],["AAEB","AAEB"],["AAEE","AAEF"],["AAF5","AAF5"],["ABE3","ABE4"],["ABE6","ABE7"],["ABE9","ABEA"],
["ABEC","ABEC"],["11000","11000"],["11002","11002"],["11082","11082"],["110B0","110B2"],["110B7","110B8"],["1112C","1112C"],["11182","11182"],["111B3","111B5"],["111BF","111C0"],["116AC","116AC"],["116AE","116AF"],["116B6","116B6"],["16F51","16F7E"],["1D165","1D166"],["1D16D","1D172"]],Me:[["488","489"],["20DD","20E0"],["20E2","20E4"],["A670","A672"]],Mn:[["300","36F"],["483","487"],["591","5BD"],["5BF","5BF"],["5C1","5C2"],["5C4","5C5"],["5C7","5C7"],["610","61A"],["64B","65F"],["670","670"],["6D6",
"6DC"],["6DF","6E4"],["6E7","6E8"],["6EA","6ED"],["711","711"],["730","74A"],["7A6","7B0"],["7EB","7F3"],["816","819"],["81B","823"],["825","827"],["829","82D"],["859","85B"],["8E4","8FE"],["900","902"],["93A","93A"],["93C","93C"],["941","948"],["94D","94D"],["951","957"],["962","963"],["981","981"],["9BC","9BC"],["9C1","9C4"],["9CD","9CD"],["9E2","9E3"],["A01","A02"],["A3C","A3C"],["A41","A42"],["A47","A48"],["A4B","A4D"],["A51","A51"],["A70","A71"],["A75","A75"],["A81","A82"],["ABC","ABC"],["AC1",
"AC5"],["AC7","AC8"],["ACD","ACD"],["AE2","AE3"],["B01","B01"],["B3C","B3C"],["B3F","B3F"],["B41","B44"],["B4D","B4D"],["B56","B56"],["B62","B63"],["B82","B82"],["BC0","BC0"],["BCD","BCD"],["C3E","C40"],["C46","C48"],["C4A","C4D"],["C55","C56"],["C62","C63"],["CBC","CBC"],["CBF","CBF"],["CC6","CC6"],["CCC","CCD"],["CE2","CE3"],["D41","D44"],["D4D","D4D"],["D62","D63"],["DCA","DCA"],["DD2","DD4"],["DD6","DD6"],["E31","E31"],["E34","E3A"],["E47","E4E"],["EB1","EB1"],["EB4","EB9"],["EBB","EBC"],["EC8",
"ECD"],["F18","F19"],["F35","F35"],["F37","F37"],["F39","F39"],["F71","F7E"],["F80","F84"],["F86","F87"],["F8D","F97"],["F99","FBC"],["FC6","FC6"],["102D","1030"],["1032","1037"],["1039","103A"],["103D","103E"],["1058","1059"],["105E","1060"],["1071","1074"],["1082","1082"],["1085","1086"],["108D","108D"],["109D","109D"],["135D","135F"],["1712","1714"],["1732","1734"],["1752","1753"],["1772","1773"],["17B4","17B5"],["17B7","17BD"],["17C6","17C6"],["17C9","17D3"],["17DD","17DD"],["180B","180D"],["18A9",
"18A9"],["1920","1922"],["1927","1928"],["1932","1932"],["1939","193B"],["1A17","1A18"],["1A56","1A56"],["1A58","1A5E"],["1A60","1A60"],["1A62","1A62"],["1A65","1A6C"],["1A73","1A7C"],["1A7F","1A7F"],["1B00","1B03"],["1B34","1B34"],["1B36","1B3A"],["1B3C","1B3C"],["1B42","1B42"],["1B6B","1B73"],["1B80","1B81"],["1BA2","1BA5"],["1BA8","1BA9"],["1BAB","1BAB"],["1BE6","1BE6"],["1BE8","1BE9"],["1BED","1BED"],["1BEF","1BF1"],["1C2C","1C33"],["1C36","1C37"],["1CD0","1CD2"],["1CD4","1CE0"],["1CE2","1CE8"],
["1CED","1CED"],["1CF4","1CF4"],["1DC0","1DE6"],["1DFC","1DFF"],["20D0","20DC"],["20E1","20E1"],["20E5","20F0"],["2CEF","2CF1"],["2D7F","2D7F"],["2DE0","2DFF"],["302A","302D"],["3099","309A"],["A66F","A66F"],["A674","A67D"],["A69F","A69F"],["A6F0","A6F1"],["A802","A802"],["A806","A806"],["A80B","A80B"],["A825","A826"],["A8C4","A8C4"],["A8E0","A8F1"],["A926","A92D"],["A947","A951"],["A980","A982"],["A9B3","A9B3"],["A9B6","A9B9"],["A9BC","A9BC"],["AA29","AA2E"],["AA31","AA32"],["AA35","AA36"],["AA43",
"AA43"],["AA4C","AA4C"],["AAB0","AAB0"],["AAB2","AAB4"],["AAB7","AAB8"],["AABE","AABF"],["AAC1","AAC1"],["AAEC","AAED"],["AAF6","AAF6"],["ABE5","ABE5"],["ABE8","ABE8"],["ABED","ABED"],["FB1E","FB1E"],["FE00","FE0F"],["FE20","FE26"],["101FD","101FD"],["10A01","10A03"],["10A05","10A06"],["10A0C","10A0F"],["10A38","10A3A"],["10A3F","10A3F"],["11001","11001"],["11038","11046"],["11080","11081"],["110B3","110B6"],["110B9","110BA"],["11100","11102"],["11127","1112B"],["1112D","11134"],["11180","11181"],
["111B6","111BE"],["116AB","116AB"],["116AD","116AD"],["116B0","116B5"],["116B7","116B7"],["16F8F","16F92"],["1D167","1D169"],["1D17B","1D182"],["1D185","1D18B"],["1D1AA","1D1AD"],["1D242","1D244"],["E0100","E01EF"]],N:"Nd|Nl|No",Nd:[["30","39"],["660","669"],["6F0","6F9"],["7C0","7C9"],["966","96F"],["9E6","9EF"],["A66","A6F"],["AE6","AEF"],["B66","B6F"],["BE6","BEF"],["C66","C6F"],["CE6","CEF"],["D66","D6F"],["E50","E59"],["ED0","ED9"],["F20","F29"],["1040","1049"],["1090","1099"],["17E0","17E9"],
["1810","1819"],["1946","194F"],["19D0","19D9"],["1A80","1A89"],["1A90","1A99"],["1B50","1B59"],["1BB0","1BB9"],["1C40","1C49"],["1C50","1C59"],["A620","A629"],["A8D0","A8D9"],["A900","A909"],["A9D0","A9D9"],["AA50","AA59"],["ABF0","ABF9"],["FF10","FF19"],["104A0","104A9"],["11066","1106F"],["110F0","110F9"],["11136","1113F"],["111D0","111D9"],["116C0","116C9"],["1D7CE","1D7FF"]],Nl:[["16EE","16F0"],["2160","2182"],["2185","2188"],["3007","3007"],["3021","3029"],["3038","303A"],["A6E6","A6EF"],["10140",
"10174"],["10341","10341"],["1034A","1034A"],["103D1","103D5"],["12400","12462"]],No:[["B2","B3"],["B9","B9"],["BC","BE"],["9F4","9F9"],["B72","B77"],["BF0","BF2"],["C78","C7E"],["D70","D75"],["F2A","F33"],["1369","137C"],["17F0","17F9"],["19DA","19DA"],["2070","2070"],["2074","2079"],["2080","2089"],["2150","215F"],["2189","2189"],["2460","249B"],["24EA","24FF"],["2776","2793"],["2CFD","2CFD"],["3192","3195"],["3220","3229"],["3248","324F"],["3251","325F"],["3280","3289"],["32B1","32BF"],["A830",
"A835"],["10107","10133"],["10175","10178"],["1018A","1018A"],["10320","10323"],["10858","1085F"],["10916","1091B"],["10A40","10A47"],["10A7D","10A7E"],["10B58","10B5F"],["10B78","10B7F"],["10E60","10E7E"],["11052","11065"],["1D360","1D371"],["1F100","1F10A"]],P:"Pc|Pd|Pe|Pf|Pi|Po|Ps",Pc:[["5F","5F"],["203F","2040"],["2054","2054"],["FE33","FE34"],["FE4D","FE4F"],["FF3F","FF3F"]],Pd:[["2D","2D"],["58A","58A"],["5BE","5BE"],["1400","1400"],["1806","1806"],["2010","2015"],["2E17","2E17"],["2E1A","2E1A"],
["2E3A","2E3B"],["301C","301C"],["3030","3030"],["30A0","30A0"],["FE31","FE32"],["FE58","FE58"],["FE63","FE63"],["FF0D","FF0D"]],Pe:[["29","29"],["5D","5D"],["7D","7D"],["F3B","F3B"],["F3D","F3D"],["169C","169C"],["2046","2046"],["207E","207E"],["208E","208E"],["232A","232A"],["2769","2769"],["276B","276B"],["276D","276D"],["276F","276F"],["2771","2771"],["2773","2773"],["2775","2775"],["27C6","27C6"],["27E7","27E7"],["27E9","27E9"],["27EB","27EB"],["27ED","27ED"],["27EF","27EF"],["2984","2984"],
["2986","2986"],["2988","2988"],["298A","298A"],["298C","298C"],["298E","298E"],["2990","2990"],["2992","2992"],["2994","2994"],["2996","2996"],["2998","2998"],["29D9","29D9"],["29DB","29DB"],["29FD","29FD"],["2E23","2E23"],["2E25","2E25"],["2E27","2E27"],["2E29","2E29"],["3009","3009"],["300B","300B"],["300D","300D"],["300F","300F"],["3011","3011"],["3015","3015"],["3017","3017"],["3019","3019"],["301B","301B"],["301E","301F"],["FD3F","FD3F"],["FE18","FE18"],["FE36","FE36"],["FE38","FE38"],["FE3A",
"FE3A"],["FE3C","FE3C"],["FE3E","FE3E"],["FE40","FE40"],["FE42","FE42"],["FE44","FE44"],["FE48","FE48"],["FE5A","FE5A"],["FE5C","FE5C"],["FE5E","FE5E"],["FF09","FF09"],["FF3D","FF3D"],["FF5D","FF5D"],["FF60","FF60"],["FF63","FF63"]],Pf:[["BB","BB"],["2019","2019"],["201D","201D"],["203A","203A"],["2E03","2E03"],["2E05","2E05"],["2E0A","2E0A"],["2E0D","2E0D"],["2E1D","2E1D"],["2E21","2E21"]],Pi:[["AB","AB"],["2018","2018"],["201B","201C"],["201F","201F"],["2039","2039"],["2E02","2E02"],["2E04","2E04"],
["2E09","2E09"],["2E0C","2E0C"],["2E1C","2E1C"],["2E20","2E20"]],Po:[["21","23"],["25","27"],["2A","2A"],["2C","2C"],["2E","2F"],["3A","3B"],["3F","40"],["5C","5C"],["A1","A1"],["A7","A7"],["B6","B7"],["BF","BF"],["37E","37E"],["387","387"],["55A","55F"],["589","589"],["5C0","5C0"],["5C3","5C3"],["5C6","5C6"],["5F3","5F4"],["609","60A"],["60C","60D"],["61B","61B"],["61E","61F"],["66A","66D"],["6D4","6D4"],["700","70D"],["7F7","7F9"],["830","83E"],["85E","85E"],["964","965"],["970","970"],["AF0","AF0"],
["DF4","DF4"],["E4F","E4F"],["E5A","E5B"],["F04","F12"],["F14","F14"],["F85","F85"],["FD0","FD4"],["FD9","FDA"],["104A","104F"],["10FB","10FB"],["1360","1368"],["166D","166E"],["16EB","16ED"],["1735","1736"],["17D4","17D6"],["17D8","17DA"],["1800","1805"],["1807","180A"],["1944","1945"],["1A1E","1A1F"],["1AA0","1AA6"],["1AA8","1AAD"],["1B5A","1B60"],["1BFC","1BFF"],["1C3B","1C3F"],["1C7E","1C7F"],["1CC0","1CC7"],["1CD3","1CD3"],["2016","2017"],["2020","2027"],["2030","2038"],["203B","203E"],["2041",
"2043"],["2047","2051"],["2053","2053"],["2055","205E"],["2CF9","2CFC"],["2CFE","2CFF"],["2D70","2D70"],["2E00","2E01"],["2E06","2E08"],["2E0B","2E0B"],["2E0E","2E16"],["2E18","2E19"],["2E1B","2E1B"],["2E1E","2E1F"],["2E2A","2E2E"],["2E30","2E39"],["3001","3003"],["303D","303D"],["30FB","30FB"],["A4FE","A4FF"],["A60D","A60F"],["A673","A673"],["A67E","A67E"],["A6F2","A6F7"],["A874","A877"],["A8CE","A8CF"],["A8F8","A8FA"],["A92E","A92F"],["A95F","A95F"],["A9C1","A9CD"],["A9DE","A9DF"],["AA5C","AA5F"],
["AADE","AADF"],["AAF0","AAF1"],["ABEB","ABEB"],["FE10","FE16"],["FE19","FE19"],["FE30","FE30"],["FE45","FE46"],["FE49","FE4C"],["FE50","FE52"],["FE54","FE57"],["FE5F","FE61"],["FE68","FE68"],["FE6A","FE6B"],["FF01","FF03"],["FF05","FF07"],["FF0A","FF0A"],["FF0C","FF0C"],["FF0E","FF0F"],["FF1A","FF1B"],["FF1F","FF20"],["FF3C","FF3C"],["FF61","FF61"],["FF64","FF65"],["10100","10102"],["1039F","1039F"],["103D0","103D0"],["10857","10857"],["1091F","1091F"],["1093F","1093F"],["10A50","10A58"],["10A7F",
"10A7F"],["10B39","10B3F"],["11047","1104D"],["110BB","110BC"],["110BE","110C1"],["11140","11143"],["111C5","111C8"],["12470","12473"]],Ps:[["28","28"],["5B","5B"],["7B","7B"],["F3A","F3A"],["F3C","F3C"],["169B","169B"],["201A","201A"],["201E","201E"],["2045","2045"],["207D","207D"],["208D","208D"],["2329","2329"],["2768","2768"],["276A","276A"],["276C","276C"],["276E","276E"],["2770","2770"],["2772","2772"],["2774","2774"],["27C5","27C5"],["27E6","27E6"],["27E8","27E8"],["27EA","27EA"],["27EC","27EC"],
["27EE","27EE"],["2983","2983"],["2985","2985"],["2987","2987"],["2989","2989"],["298B","298B"],["298D","298D"],["298F","298F"],["2991","2991"],["2993","2993"],["2995","2995"],["2997","2997"],["29D8","29D8"],["29DA","29DA"],["29FC","29FC"],["2E22","2E22"],["2E24","2E24"],["2E26","2E26"],["2E28","2E28"],["3008","3008"],["300A","300A"],["300C","300C"],["300E","300E"],["3010","3010"],["3014","3014"],["3016","3016"],["3018","3018"],["301A","301A"],["301D","301D"],["FD3E","FD3E"],["FE17","FE17"],["FE35",
"FE35"],["FE37","FE37"],["FE39","FE39"],["FE3B","FE3B"],["FE3D","FE3D"],["FE3F","FE3F"],["FE41","FE41"],["FE43","FE43"],["FE47","FE47"],["FE59","FE59"],["FE5B","FE5B"],["FE5D","FE5D"],["FF08","FF08"],["FF3B","FF3B"],["FF5B","FF5B"],["FF5F","FF5F"],["FF62","FF62"]],S:"Sc|Sk|Sm|So",Sc:[["24","24"],["A2","A5"],["58F","58F"],["60B","60B"],["9F2","9F3"],["9FB","9FB"],["AF1","AF1"],["BF9","BF9"],["E3F","E3F"],["17DB","17DB"],["20A0","20BA"],["A838","A838"],["FDFC","FDFC"],["FE69","FE69"],["FF04","FF04"],
["FFE0","FFE1"],["FFE5","FFE6"]],Sk:[["5E","5E"],["60","60"],["A8","A8"],["AF","AF"],["B4","B4"],["B8","B8"],["2C2","2C5"],["2D2","2DF"],["2E5","2EB"],["2ED","2ED"],["2EF","2FF"],["375","375"],["384","385"],["1FBD","1FBD"],["1FBF","1FC1"],["1FCD","1FCF"],["1FDD","1FDF"],["1FED","1FEF"],["1FFD","1FFE"],["309B","309C"],["A700","A716"],["A720","A721"],["A789","A78A"],["FBB2","FBC1"],["FF3E","FF3E"],["FF40","FF40"],["FFE3","FFE3"]],Sm:[["2B","2B"],["3C","3E"],["7C","7C"],["7E","7E"],["AC","AC"],["B1",
"B1"],["D7","D7"],["F7","F7"],["3F6","3F6"],["606","608"],["2044","2044"],["2052","2052"],["207A","207C"],["208A","208C"],["2118","2118"],["2140","2144"],["214B","214B"],["2190","2194"],["219A","219B"],["21A0","21A0"],["21A3","21A3"],["21A6","21A6"],["21AE","21AE"],["21CE","21CF"],["21D2","21D2"],["21D4","21D4"],["21F4","22FF"],["2308","230B"],["2320","2321"],["237C","237C"],["239B","23B3"],["23DC","23E1"],["25B7","25B7"],["25C1","25C1"],["25F8","25FF"],["266F","266F"],["27C0","27C4"],["27C7","27E5"],
["27F0","27FF"],["2900","2982"],["2999","29D7"],["29DC","29FB"],["29FE","2AFF"],["2B30","2B44"],["2B47","2B4C"],["FB29","FB29"],["FE62","FE62"],["FE64","FE66"],["FF0B","FF0B"],["FF1C","FF1E"],["FF5C","FF5C"],["FF5E","FF5E"],["FFE2","FFE2"],["FFE9","FFEC"],["1D6C1","1D6C1"],["1D6DB","1D6DB"],["1D6FB","1D6FB"],["1D715","1D715"],["1D735","1D735"],["1D74F","1D74F"],["1D76F","1D76F"],["1D789","1D789"],["1D7A9","1D7A9"],["1D7C3","1D7C3"],["1EEF0","1EEF1"]],So:[["A6","A6"],["A9","A9"],["AE","AE"],["B0",
"B0"],["482","482"],["60E","60F"],["6DE","6DE"],["6E9","6E9"],["6FD","6FE"],["7F6","7F6"],["9FA","9FA"],["B70","B70"],["BF3","BF8"],["BFA","BFA"],["C7F","C7F"],["D79","D79"],["F01","F03"],["F13","F13"],["F15","F17"],["F1A","F1F"],["F34","F34"],["F36","F36"],["F38","F38"],["FBE","FC5"],["FC7","FCC"],["FCE","FCF"],["FD5","FD8"],["109E","109F"],["1390","1399"],["1940","1940"],["19DE","19FF"],["1B61","1B6A"],["1B74","1B7C"],["2100","2101"],["2103","2106"],["2108","2109"],["2114","2114"],["2116","2117"],
["211E","2123"],["2125","2125"],["2127","2127"],["2129","2129"],["212E","212E"],["213A","213B"],["214A","214A"],["214C","214D"],["214F","214F"],["2195","2199"],["219C","219F"],["21A1","21A2"],["21A4","21A5"],["21A7","21AD"],["21AF","21CD"],["21D0","21D1"],["21D3","21D3"],["21D5","21F3"],["2300","2307"],["230C","231F"],["2322","2328"],["232B","237B"],["237D","239A"],["23B4","23DB"],["23E2","23F3"],["2400","2426"],["2440","244A"],["249C","24E9"],["2500","25B6"],["25B8","25C0"],["25C2","25F7"],["2600",
"266E"],["2670","26FF"],["2701","2767"],["2794","27BF"],["2800","28FF"],["2B00","2B2F"],["2B45","2B46"],["2B50","2B59"],["2CE5","2CEA"],["2E80","2E99"],["2E9B","2EF3"],["2F00","2FD5"],["2FF0","2FFB"],["3004","3004"],["3012","3013"],["3020","3020"],["3036","3037"],["303E","303F"],["3190","3191"],["3196","319F"],["31C0","31E3"],["3200","321E"],["322A","3247"],["3250","3250"],["3260","327F"],["328A","32B0"],["32C0","32FE"],["3300","33FF"],["4DC0","4DFF"],["A490","A4C6"],["A828","A82B"],["A836","A837"],
["A839","A839"],["AA77","AA79"],["FDFD","FDFD"],["FFE4","FFE4"],["FFE8","FFE8"],["FFED","FFEE"],["FFFC","FFFD"],["10137","1013F"],["10179","10189"],["10190","1019B"],["101D0","101FC"],["1D000","1D0F5"],["1D100","1D126"],["1D129","1D164"],["1D16A","1D16C"],["1D183","1D184"],["1D18C","1D1A9"],["1D1AE","1D1DD"],["1D200","1D241"],["1D245","1D245"],["1D300","1D356"],["1F000","1F02B"],["1F030","1F093"],["1F0A0","1F0AE"],["1F0B1","1F0BE"],["1F0C1","1F0CF"],["1F0D1","1F0DF"],["1F110","1F12E"],["1F130","1F16B"],
["1F170","1F19A"],["1F1E6","1F202"],["1F210","1F23A"],["1F240","1F248"],["1F250","1F251"],["1F300","1F320"],["1F330","1F335"],["1F337","1F37C"],["1F380","1F393"],["1F3A0","1F3C4"],["1F3C6","1F3CA"],["1F3E0","1F3F0"],["1F400","1F43E"],["1F440","1F440"],["1F442","1F4F7"],["1F4F9","1F4FC"],["1F500","1F53D"],["1F540","1F543"],["1F550","1F567"],["1F5FB","1F640"],["1F645","1F64F"],["1F680","1F6C5"],["1F700","1F773"]],Z:"Zl|Zp|Zs",Zl:[["2028","2028"]],Zp:[["2029","2029"]],Zs:[["20","20"],["A0","A0"],["1680",
"1680"],["180E","180E"],["2000","200A"],["202F","202F"],["205F","205F"],["3000","3000"]],"~i":[["3A","3A"],["41","5A"],["5F","5F"],["61","7A"],["C0","D6"],["D8","F6"],["F8","2FF"],["370","37D"],["37F","1FFF"],["200C","200D"],["2070","218F"],["2C00","2FEF"],["3001","D7FF"],["F900","FDCF"],["FDF0","FFFD"],["10000","EFFFF"]],"~c":[["2D","2E"],["30","3A"],["41","5A"],["5F","5F"],["61","7A"],["B7","B7"],["C0","D6"],["D8","F6"],["F8","37D"],["37F","1FFF"],["200C","200D"],["203F","2040"],["2070","218F"],
["2C00","2FEF"],["3001","D7FF"],["F900","FDCF"],["FDF0","FFFD"],["10000","EFFFF"]],w:"Ll|Lm|Lo|Lt|Lu|Mc|Me|Mn|Nd|Nl|No|Sc|Sk|Sm|So"},functions:{"http://www.w3.org/2005/xpath-functions":{QName:[2],abs:[1],"accumulator-after":[1],"accumulator-before":[1],"adjust-date-to-timezone":[1,2],"adjust-dateTime-to-timezone":[1,2],"adjust-time-to-timezone":[1,2],"analyze-string":[2,3],apply:[2],"available-environment-variables":[0],"available-system-properties":[0],avg:[1],"base-uri":[0,1],"boolean":[1],ceiling:[1],
"codepoint-equal":[2],"codepoints-to-string":[1],"collation-key":[1,2],collection:[0,1],compare:[2,3],concat:[3],contains:[2,3],"contains-token":[2,3],"copy-of":[0,1],count:[1],current:[0],"current-date":[0],"current-dateTime":[0],"current-group":[0],"current-grouping-key":[0],"current-merge-group":[0,1],"current-merge-key":[0],"current-output-uri":[0],"current-time":[0],data:[0,1],dateTime:[2],"day-from-date":[1],"day-from-dateTime":[1],"days-from-duration":[1],"deep-equal":[2,3],"default-collation":[0],
"default-language":[0],"distinct-values":[1,2],doc:[1],"doc-available":[1],document:[1,2],"document-uri":[0,1],"element-available":[1],"element-with-id":[1,2],empty:[1],"encode-for-uri":[1],"ends-with":[2,3],"environment-variable":[1],error:[0,1,2,3],"escape-html-uri":[1],"exactly-one":[1],exists:[1],"false":[0],filter:[2],floor:[1],"fold-left":[3],"fold-right":[3],"for-each":[2],"for-each-pair":[3],"format-date":[2,5],"format-dateTime":[2,5],"format-integer":[2,3],"format-number":[2,3],"format-time":[2,
5],"function-arity":[1],"function-available":[1,2],"function-lookup":[2],"function-name":[1],"generate-id":[0,1],"has-children":[0,1],head:[1],"hours-from-dateTime":[1],"hours-from-duration":[1],"hours-from-time":[1],id:[1,2],idref:[1,2],"implicit-timezone":[0],"in-scope-prefixes":[1],"index-of":[2,3],innermost:[1],"insert-before":[3],"iri-to-uri":[1],"json-doc":[1,2],"json-to-xml":[1,2],key:[2,3],lang:[1,2],last:[0],"load-xquery-module":[1,2],"local-name":[0,1],"local-name-from-QName":[1],"lower-case":[1],
matches:[2,3],max:[1,2],min:[1,2],"minutes-from-dateTime":[1],"minutes-from-duration":[1],"minutes-from-time":[1],"month-from-date":[1],"month-from-dateTime":[1],"months-from-duration":[1],name:[0,1],"namespace-uri":[0,1],"namespace-uri-for-prefix":[2],"namespace-uri-from-QName":[1],nilled:[0,1],"node-name":[0,1],"normalize-space":[0,1],"normalize-unicode":[1,2],not:[1],number:[0,1],"one-or-more":[1],outermost:[1],"parse-ietf-date":[1],"parse-json":[1,2],"parse-xml":[1],"parse-xml-fragment":[1],path:[0,
1],position:[0],"prefix-from-QName":[1],put:[2],"random-number-generator":[0,1],"regex-group":[1],remove:[2],replace:[3,4],"resolve-QName":[2],"resolve-uri":[1,2],reverse:[1],root:[0,1],round:[1,2],"round-half-to-even":[1,2],"seconds-from-dateTime":[1],"seconds-from-duration":[1],"seconds-from-time":[1],serialize:[1,2],"serialize-json":[1,2],snapshot:[0,1],sort:[1,3],"starts-with":[2,3],"static-base-uri":[0],"stream-available":[1],string:[0,1],"string-join":[1,2],"string-length":[0,1],"string-to-codepoints":[1],
subsequence:[2,3],substring:[2,3],"substring-after":[2,3],"substring-before":[2,3],sum:[1,2],"system-property":[1],tail:[1],"timezone-from-date":[1],"timezone-from-dateTime":[1],"timezone-from-time":[1],tokenize:[1,2,3],trace:[1,2],transform:[1],translate:[3],"true":[0],"type-available":[1],unordered:[1],"unparsed-entity-public-id":[1,2],"unparsed-entity-uri":[1,2],"unparsed-text":[1,2],"unparsed-text-available":[1,2],"unparsed-text-lines":[1,2],"upper-case":[1],"uri-collection":[0,1],"xml-to-json":[1,
2],"year-from-date":[1],"year-from-dateTime":[1],"years-from-duration":[1],"zero-or-one":[1]},"http://www.w3.org/2005/xpath-functions/array":{append:[2],filter:[2],flatten:[1],"fold-left":[3],"fold-right":[3],"for-each":[2],"for-each-pair":[3],get:[2],head:[1],"insert-before":[3],join:[1],remove:[2],reverse:[1],size:[1],sort:[1,2],subarray:[2,3],tail:[1]},"http://www.w3.org/2005/xpath-functions/map":{contains:[2],entry:[2],"for-each":[2],get:[2],keys:[1],merge:[1],put:[3],remove:[2],size:[1]},"http://www.w3.org/2005/xpath-functions/math":{acos:[1],
asin:[1],atan:[1],atan2:[2],cos:[1],exp:[1],exp10:[1],log:[1],log10:[1],pi:[0],pow:[2],sin:[1],sqrt:[1],tan:[1]},"http://www.w3.org/2001/XMLSchema":{numeric:[1],string:[1],"boolean":[1],duration:[1],dateTime:[1],date:[1],time:[1],gYearMonth:[1],gMonth:[1],gMonthDay:[1],gYear:[1],gDay:[1],hexBinary:[1],base64Binary:[1],anyURI:[1],QName:[1],untypedAtomic:[1],decimal:[1],"float":[1],"double":[1],integer:[1],nonPositiveInteger:[1],negativeInteger:[1],"long":[1],"int":[1],"short":[1],"byte":[1],nonNegativeInteger:[1],
positiveInteger:[1],unsignedLong:[1],unsignedInt:[1],unsignedShort:[1],unsignedByte:[1],yearMonthDuration:[1],dayTimeDuration:[1],dateTimeStamp:[1],normalizedString:[1],token:[1],language:[1],Name:[1],NMTOKEN:[1],NCName:[1],ID:[1],IDREF:[1],ENTITY:[1],NMTOKENS:[1],ENTITIES:[1],IDREFS:[1],error:[1]},"http://saxonica.com/ns/interactiveXSLT":{apply:[2],call:[3],contains:[2],eval:[1],event:[0],get:[2],location:[0],page:[0],"query-params":[0],source:[0],style:[1],window:[0]}},elements:{accept:{},accumulator:{},
"accumulator-rule":{},"analyze-string":{},"apply-imports":{},"apply-templates":{},assert:{},attribute:{},"attribute-set":{},"break":{},"call-template":{},"catch":{},"character-map":{},choose:{},comment:{},"context-item":{},copy:{},"copy-of":{},"decimal-format":{},document:{},element:{},evaluate:{},expose:{},fallback:{},"for-each":{},"for-each-group":{},fork:{},"function":{},"global-context-item":{},"if":{},"import":{},include:{},iterate:{},key:{},map:{},"map-entry":{},"matching-substring":{},merge:{},
"merge-action":{},"merge-key":{},"merge-source":{},message:{},mode:{},namespace:{},"namespace-alias":{},"next-iteration":{},"next-match":{},"non-matching-substring":{},number:{},"on-completion":{},"on-empty":{},"on-non-empty":{},otherwise:{},output:{},"output-character":{},override:{},"package":{},param:{},"perform-sort":{},"preserve-space":{},"processing-instruction":{},"result-document":{},sequence:{},sort:{},"source-document":{},"strip-space":{},stylesheet:{},template:{},text:{},transform:{},"try":{},
"use-package":{},"value-of":{},variable:{},when:{},"where-populated":{},"with-param":{}},compiler:{}};
// Input 2
const na=function(){let a;return{getPlatform:function(){return a},Cj:function(c){a=c},bh:function(){return a.name},dh:function(){return a.edition},createDocument:function(){return a.createDocument()},Jg:function(c,n,v,M){return a.decodeBuffer(c,n,v,M)},ni:function(c){return a.encodeToBase64(c)},$g:function(){return a.getDefaultDeliverMessage()},ra:function(){return a.inBrowser()},Pb:function(c){return a.isHTMLElement(c)},dj:function(c,n){return a.makeBuffer(c,n)},Rb:function(c,n=!0,v=null){return a.parseXmlFromString(c,
n,v)},ve:function(c){return a.readFile(c)},gg:function(c,n){return a.readFileSync(c,n)},vj:function(c,n){return a.readFilePromise(c,n)},xe:function(c){return a.resource(c)},fc:function(c){return a.resourcePromise(c)},pb:function(c,n){return a.resolveUri(c,n)},ua:function(c){return a.saxonPrint(c)},newURL:function(c,n){return a.newURL(c,n)},Nf:function(c){return a.fileURL(c)},Ef:function(){return a.baseURL()},Lh:function(c,n,v){return a.writeFileSync(c,n,v)},Kh:function(c,n,v){return a.writeFileAsync(c,
n,v)},Ji:function(){return a.getStdOut()},Ck:function(c){return a.assignChecksums(c)},crypto:function(c){return a.crypto(c)},ji:function(c){return a.cryptoPromise(c)},Lj:function(){return a.xdmDTlocale()},Ki:function(){return a.globalObject},addEventListener:function(c,n,v,M){return a.addEventListener(c,n,v,M)}}}();
// Input 3
let oa=0;function pa(){return oa}function ra(){oa=0}
class F extends Error{constructor(a="SaxonJS run-time error",c="FORG0001",n=null){super();this.name="XError";this.message=a;this.code=c;n?this.setExpr(n):this.xsltModule=this.xsltLineNr=null;this.jsStack=Error().stack;this.errorObject=null;this.isGlobal=!1;this.context=null;oa++}toString(){return this.name+":"+this.message+"; code:"+this.code}setExpr(a){function c(n,v){for(;n;){if(n[v])return n[v];n=n.parentNode}return null}this.xsltLineNr=c(a,"line");this.xsltModule=c(a,"module")}getStackTrace(){return typeof this.context?
this.context.getStackTrace():""}getMessage(){let a="Error "+this.code;this.xsltLineNr!=null&&(a+=" at "+this.xsltModule+"#"+this.xsltLineNr);return a+="\n  "+this.message}getRawMessage(){return this.message}getErrorCode(){return this.code}getOriginatingModule(){return this.xsltModule}getOriginatingLineNr(){return this.xsltLineNr}};
// Input 4
const sa=function(){function a(k){M("Internal error: "+k+"\n"+Error().stack);throw new F("Internal error: "+k,"SXJS0004");}function c(k){if(k===null)return"#null";if(typeof k==="undefined")return"#undefined";let q;if(k.showValue)return k.showValue();if(k.N)return"expression "+k.N;if(g&&g.U(k)){if(g.me(k))return"attribute @"+k.name+"='"+k.value+"'";if(g.Dd(k))return"ns:"+k.prefix+"="+k.uri;q={1:"element <"+k.tagName+">",2:"attribute @"+k.name,3:"text:"+(k.nodeValue?k.nodeValue.substring(0,8):"''"),
7:"pi: "+k.target+"("+k.tagName+")",8:"comment ("+k.nodeValue+")",9:"document "+(k._saxonDocumentNumber?"#"+k._saxonDocumentNumber:"(No nr / #0)"),11:"docFrag"}[k.nodeType];if(k.nodeType==="9"||k.nodeType==="11"){var y;for(y=0;y<k.childNodes.length;y++)q+="~>"+c(k.childNodes[y])}return q}if(k.code)return"atomic:"+k.code+"('"+k.toString()+"')";if(typeof k==="object"&&"length"in k){if(k.length===1)return c(k[0]);q="(";for(y=0;y<k.length&&y<3;y++)y!==0&&(q+=","),q+=c(k[y]);k.length>=4&&(q+=",...("+k.length+
")");return q+")"}return typeof k==="function"?k.toString():"("+typeof k+") "+k}function n(k){return"{'N':'"+k.N+"','C':["+(k.C||[]).map(q=>n(q)).join(",")+"]}"}function v(k,q){for(;k;){if(k[q])return k[q];k=k.parentNode}return null}function M(k,q=1,y){let K=l;y&&(K=y);q<=K&&na.ua(k)}let g,l=1;Error.stackTraceLimit=100;return{assert:function(k,q="assertion failed"){k||a(q)},ka:a,location:function(k){return v(k,"module")+"#"+v(k,"line")},wj:function(k){g=k},ua:M,showValue:c,Ah:function(k){return k.showValue?
k.showValue():g&&g.U(k)?c(k):k.code?"atomic:"+k.code+"('"+k.toString()+"')":k.Ei?k.toString():"("+typeof k+") "+k},Ej:function(k){if(!k)return"null expr";let q=k.N||"?";for(let y in k)k.hasOwnProperty(y)&&!["C","N","parentNode","ELAB","PUSH"].includes(y)&&(q+=" "+y+"="+k[y]);k.C&&(q+=" ("+k.C.map(y=>y.N).join(",")+")");return q+=" at "+this.location(k)},nl:n,getLogLevel:function(){return l},setLogLevel:function(k){typeof k=="number"&&(l=k)}}}();
// Input 5
let ta=function(){function a(){function g(l){if(!(this instanceof g))return l===void 0?a():new g(l);if(l instanceof g)this.ia=l.ia,this.e=l.e,this.c=l.c.slice();else{if(typeof l!=="string"){if(g.jg===!0)throw TypeError("[big.js] Invalid number");l=l===0&&1/l<0?"-0":String(l)}var k,q;if(!M.test(l))throw Error("[big.js] Invalid number");this.ia=l.charAt(0)=="-"?(l=l.slice(1),-1):1;(k=l.indexOf("."))>-1&&(l=l.replace(".",""));(q=l.search(/e/i))>0?(k<0&&(k=q),k+=+l.slice(q+1),l=l.substring(0,q)):k<0&&
(k=l.length);var y=l.length;for(q=0;q<y&&l.charAt(q)=="0";)++q;if(q==y)this.c=[this.e=0];else{for(;y>0&&l.charAt(--y)=="0";);this.e=k-q-1;this.c=[];for(k=0;q<=y;)this.c[k++]=+l.charAt(q++)}}this.constructor=g}g.prototype=v;g.sc=20;g.wd=1;g.rf=-7;g.wf=21;g.jg=!1;return g}function c(g,l,k,q){var y=g.c;k===void 0&&(k=g.constructor.wd);if(k!==0&&k!==1&&k!==2&&k!==3)throw Error("[big.js] Invalid rounding mode");if(l<1)q=k===3&&(q||!!y[0])||l===0&&(k===1&&y[0]>=5||k===2&&(y[0]>5||y[0]===5&&(q||y[1]!==void 0))),
y.length=1,q?(g.e=g.e-l+1,y[0]=1):y[0]=g.e=0;else if(l<y.length){q=k===1&&y[l]>=5||k===2&&(y[l]>5||y[l]===5&&(q||y[l+1]!==void 0||y[l-1]&1))||k===3&&(q||!!y[0]);y.length=l--;if(q)for(;++y[l]>9;)y[l]=0,l--||(++g.e,y.unshift(1));for(l=y.length;!y[--l];)y.pop()}return g}function n(g,l,k){var q=g.e,y=g.c.join(""),K=y.length;if(l)y=y.charAt(0)+(K>1?"."+y.slice(1):"")+(q<0?"e":"e+")+q;else if(q<0){for(;++q;)y="0"+y;y="0."+y}else if(q>0)if(++q>K)for(q-=K;q--;)y+="0";else q<K&&(y=y.slice(0,q)+"."+y.slice(q));
else K>1&&(y=y.charAt(0)+"."+y.slice(1));return g.ia<0&&k?"-"+y:y}let v={},M=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;v.abs=function(){var g=new this.constructor(this);g.ia=1;return g};v.cmp=function(g){var l=this.c,k=(g=new this.constructor(g)).c,q=this.ia,y=g.ia,K=this.e,D=g.e;if(!l[0]||!k[0])return l[0]?q:k[0]?-y:0;if(q!=y)return q;g=q<0;if(K!=D)return K>D^g?1:-1;y=(K=l.length)<(D=k.length)?K:D;for(q=-1;++q<y;)if(l[q]!=k[q])return l[q]>k[q]^g?1:-1;return K==D?0:K>D^g?1:-1};v.Mb=function(g){var l=
this.constructor,k=this.c,q=(g=new l(g)).c,y=this.ia==g.ia?1:-1,K=l.sc;if(K!==~~K||K<0||K>1E6)throw Error("[big.js] Invalid decimal places");if(!q[0])throw Error("[big.js] Division by zero");if(!k[0])return g.ia=y,g.c=[g.e=0],g;var D,u=q.slice(),f=D=q.length,E=k.length,J=k.slice(0,D),z=J.length,b=g,d=b.c=[],h=0,t=K+(b.e=this.e-g.e)+1;b.ia=y;y=t<0?0:t;for(u.unshift(0);z++<D;)J.push(0);do{for(K=0;K<10;K++){if(D!=(z=J.length))var m=D>z?1:-1;else{var L=-1;for(m=0;++L<D;)if(q[L]!=J[L]){m=q[L]>J[L]?1:-1;
break}}if(m<0){for(g=z==D?q:u;z;){if(J[--z]<g[z]){for(L=z;L&&!J[--L];)J[L]=9;--J[L];J[z]+=10}J[z]-=g[z]}for(;!J[0];)J.shift()}else break}d[h++]=m?K:++K;J[0]&&m?J[z]=k[f]||0:J=[k[f]]}while((f++<E||J[0]!==void 0)&&y--);d[0]||h==1||(d.shift(),b.e--,t--);h>t&&c(b,t,l.wd,J[0]!==void 0);return b};v.Tg=function(g){return this.cmp(g)===0};v.Qk=function(g){return this.cmp(g)>0};v.Rk=function(g){return this.cmp(g)>-1};v.cj=function(){var g=ta(2).pow(52);return this.cmp(g)<0};v.al=function(g){return this.cmp(g)<
1};v.Hd=v.sub=function(g){var l=this.constructor;var k=this.ia,q=(g=new l(g)).ia;if(k!=q)return g.ia=-q,this.pd(g);var y=this.c.slice();var K=this.e;var D=g.c,u=g.e;if(!y[0]||!D[0])return D[0]?g.ia=-q:y[0]?g=new l(this):g.ia=1,g;if(k=K-u){(l=k<0)?(k=-k,K=y):(u=K,K=D);K.reverse();for(q=k;q--;)K.push(0);K.reverse()}else for(K=((l=y.length<D.length)?y:D).length,k=q=0;q<K;q++)if(y[q]!=D[q]){l=y[q]<D[q];break}l&&(K=y,y=D,D=K,g.ia=-g.ia);if((q=(K=D.length)-(l=y.length))>0)for(;q--;)y[l++]=0;for(q=l;K>k;){if(y[--K]<
D[K]){for(l=K;l&&!y[--l];)y[l]=9;--y[l];y[K]+=10}y[K]-=D[K]}for(;y[--q]===0;)y.pop();for(;y[0]===0;)y.shift(),--u;y[0]||(g.ia=1,y=[u=0]);g.c=y;g.e=u;return g};v.af=function(g){var l=this,k=l.constructor,q=l.ia,y=(g=new k(g)).ia;if(!g.c[0])throw Error("[big.js] Division by zero");l.ia=g.ia=1;var K=g.cmp(l)==1;l.ia=q;g.ia=y;if(K)return new k(l);q=k.sc;y=k.wd;k.sc=k.wd=0;l=l.Mb(g);k.sc=q;k.wd=y;return this.Hd(l.Ub(g))};v.pd=v.add=function(g){var l=this.constructor;g=new l(g);if(this.ia!=g.ia)return g.ia=
-g.ia,this.Hd(g);var k=this.e;var q=this.c,y=g.e,K=g.c;if(!q[0]||!K[0])return K[0]||(q[0]?g=new l(this):g.ia=this.ia),g;q=q.slice();if(l=k-y){l>0?(y=k,k=K):(l=-l,k=q);for(k.reverse();l--;)k.push(0);k.reverse()}q.length-K.length<0&&(k=K,K=q,q=k);l=K.length;for(k=0;l;q[l]%=10)k=(q[--l]=q[l]+K[l]+k)/10|0;k&&(q.unshift(k),++y);for(l=q.length;q[--l]===0;)q.pop();g.c=q;g.e=y;return g};v.pow=function(g){var l=this,k=new l.constructor("1"),q=k,y=g<0;if(g!==~~g||g<-1E6||g>1E6)throw Error("[big.js] Invalid exponent");
for(y&&(g=-g);;){g&1&&(q=q.Ub(l));g>>=1;if(!g)break;l=l.Ub(l)}return y?k.Mb(q):q};v.ob=function(g,l){if(g!==~~g||g<1||g>1E6)throw Error("[big.js] Invalid precision");return c(new this.constructor(this),g,l)};v.round=function(g,l){if(g===void 0)g=0;else if(g!==~~g||g<-1E6||g>1E6)throw Error("[big.js] Invalid decimal places");return c(new this.constructor(this),g+this.e+1,l)};v.sqrt=function(){var g=this.constructor;var l=this.ia;var k=this.e,q=new g("0.5");if(!this.c[0])return new g(this);if(l<0)throw Error("[big.js] No square root");
l=Math.sqrt(this+"");if(l===0||l===1/0){var y=this.c.join("");y.length+k&1||(y+="0");l=Math.sqrt(y);k=((k+1)/2|0)-(k<0||k&1);y=new g((l==1/0?"5e":(l=l.toExponential()).slice(0,l.indexOf("e")+1))+k)}else y=new g(l+"");k=y.e+(g.sc+=4);do l=y,y=q.Ub(l.pd(this.Mb(l)));while(l.c.slice(0,k).join("")!==y.c.slice(0,k).join(""));return c(y,(g.sc-=4)+y.e+1,g.wd)};v.Ub=v.fl=function(g){var l=this.c,k=(g=new this.constructor(g)).c,q=l.length,y=k.length,K=this.e,D=g.e;g.ia=this.ia==g.ia?1:-1;if(!l[0]||!k[0])return g.c=
[g.e=0],g;g.e=K+D;if(q<y){var u=l;l=k;k=u;D=q;q=y;y=D}for(u=Array(D=q+y);D--;)u[D]=0;for(K=y;K--;){y=0;for(D=q+K;D>K;)y=u[D]+k[K]*l[D-K-1]+y,u[D--]=y%10,y=y/10|0;u[D]=y}y?++g.e:u.shift();for(K=u.length;!u[--K];)u.pop();g.c=u;return g};v.toExponential=function(g,l){var k=this,q=k.c[0];if(g!==void 0){if(g!==~~g||g<0||g>1E6)throw Error("[big.js] Invalid decimal places");for(k=c(new k.constructor(k),++g,l);k.c.length<g;)k.c.push(0)}return n(k,!0,!!q)};v.toFixed=function(g,l){var k=this,q=k.c[0];if(g!==
void 0){if(g!==~~g||g<0||g>1E6)throw Error("[big.js] Invalid decimal places");k=c(new k.constructor(k),g+k.e+1,l);for(g=g+k.e+1;k.c.length<g;)k.c.push(0)}return n(k,!1,!!q)};v.toJSON=v.toString=function(){var g=this.constructor;return n(this,this.e<=g.rf||this.e>=g.wf,!!this.c[0])};v.toNumber=function(){var g=Number(n(this,!0,!0));if(this.constructor.jg===!0&&!this.Tg(g.toString()))throw Error("[big.js] Imprecise conversion");return g};v.toPrecision=function(g,l){var k=this,q=k.constructor,y=k.c[0];
if(g!==void 0){if(g!==~~g||g<1||g>1E6)throw Error("[big.js] Invalid precision");for(k=c(new q(k),g,l);k.c.length<g;)k.c.push(0)}return n(k,g<=k.e||k.e<=q.rf||k.e>=q.wf,!!y)};v.valueOf=function(){var g=this.constructor;if(g.jg===!0)throw Error("[big.js] valueOf disallowed");return n(this,this.e<=g.rf||this.e>=g.wf,!0)};return a()}();
// Input 6
const ua={ci:function(a){if(a<32&&![9,10,13].includes(a)||a>55295&&a<57344||a>65533&&a<65536||a>1114111)throw new F("Invalid XML character 0x"+a.toString(16),"FOCH0001");return a},ce:function(a,c){return ua.$f(a)||ua.$f(c)?(a=ua.ei(a,c),a<0?-1:a===0?0:1):a<c?-1:a===c?0:1},ei:function(a,c){a=ua.La(a.toString());c=ua.La(c.toString());let n=0;for(;;){if(n===a.length)return n===c.length?0:-1;if(n===c.length)return 1;if(a[n]!==c[n])return a[n]-c[n];n++}},$b:function(a){return String.fromCodePoint(...a.map(ua.ci))},
$f:function(a){return Array.from(a).some(c=>c.codePointAt(0)>65535)},La:function(a){return Array.from(a).map(c=>c.codePointAt(0))},Hb:function(a){return a.replace(/[ \n\r\t]+/g," ").replace(/^[ ]|[ ]$/g,"")}};
// Input 7
const xa={Rc:"http://www.w3.org/1999/XSL/Transform",Ma:"http://www.w3.org/2005/xpath-functions",lh:"http://www.w3.org/2005/xpath-functions/math",map:"http://www.w3.org/2005/xpath-functions/map",He:"http://www.w3.org/2005/xpath-functions/array",xml:"http://www.w3.org/XML/1998/namespace",jc:"http://www.w3.org/2001/XMLSchema",sl:"http://www.w3.org/2001/XMLSchema-instance",ri:"http://www.w3.org/2005/xqt-errors",hd:"http://saxonica.com/ns/interactiveXSLT",kh:"http://saxonica.com/ns/globalJS",qb:"http://saxon.sf.net/",
ui:"http://ns.saxonica.com/xslt/export",withPrefix:{xsl:"http://www.w3.org/1999/XSL/Transform",fn:"http://www.w3.org/2005/xpath-functions",math:"http://www.w3.org/2005/xpath-functions/math",map:"http://www.w3.org/2005/xpath-functions/map",array:"http://www.w3.org/2005/xpath-functions/array",xml:"http://www.w3.org/XML/1998/namespace",xs:"http://www.w3.org/2001/XMLSchema",xsi:"http://www.w3.org/2001/XMLSchema-instance",err:"http://www.w3.org/2005/xqt-errors",ixsl:"http://saxonica.com/ns/interactiveXSLT",
js:"http://saxonica.com/ns/globalJS",saxon:"http://saxon.sf.net/",ex:"http://ns.saxonica.com/xslt/export"},pg:"http://ns.saxonica.com/anonymous-type"};
// Input 8
const ya=function(){function a(){n===null&&(n=na.xe("regexCategories"));return n}function c(l,k,q=null,y=null){function K(p,I){function A(Y){for(Y=Y.toString(16);Y.length<4;)Y="0"+Y;return"\\u"+(v&&Y.length>4?"{"+Y+"}":Y)}function x(Y,da,Z){if(Z){Z=Y;Y=[];Z[0][0]!==0&&Y.push([0,Z[0][0]-1]);for(var la=1;la<Z.length;la++){const ka=Z[la-1][1]+1,G=Z[la][0]-1;G>=ka&&Y.push([ka,G])}Z=Z[Z.length-1][1];(v||Z<65535)&&Y.push([Z+1,v?1114111:65535])}Z="";for(la=0;la<Y.length;la++)if(v||Y[la][1]<65536)Z+=A(Y[la][0]),
Y[la][1]>Y[la][0]&&(Z+="-"+A(Y[la][1]));Y=Z;da||(Y="["+Y+"]");return Y}function N(Y){return Y.sort(function(da,Z){return da[0]-Z[0]})}function P(Y,da,Z,la){const ka=[];Array.isArray(Y)||u("Ranges must be array");Y.forEach(function(G){ka.push([parseInt(G[0],16),parseInt(G[1],16)])});Z&&la&&N(ka);return x(ka,da,Z)}const T=p.charAt(I+1);"nrt\\|.-^?*+{}()[]pPsSiIcCdDwW$".indexOf(T)<0&&(t!==0||!/[0-9]/.test(T))&&u("\\"+T+" is not allowed in XPath regular expressions");switch(T){case "p":case "P":const Y=
p.indexOf("}",I);p=p.substring(I+3,Y);D("x")&&(p=p.replace(/[ \n\r\t]+/g,""));const da=a();(I=da[p])||u("Unknown category "+p);let Z;p.length===1?(Z=[],I.split("|").forEach(function(G){Z=Z.concat(da[G])})):Z=I;E+=P(Z,t>0,T==="P",p.length===1);I=Y;break;case "d":E+=P(a().Nd,t>0,!1,!1);I++;break;case "i":E+=x(J,t>0,!1);I++;break;case "c":E+=x(z,t>0,!1);I++;break;case "I":E+=x(J,t>0,!0);I++;break;case "C":E+=x(z,t>0,!0);I++;break;case "w":case "W":const la=a();let ka=[];la.w.split("|").forEach(function(G){ka=
ka.concat(la[G])});E+=P(ka,t>0,T==="W",!0);I++;break;case "-":t>0&&(E+="\\");E+=T;I++;break;default:/[0-9]/.test(T)?t>0?u("Numeric escape within charclass"):(d[parseInt(T,10)]||u("No capturing expression #"+T),E+="\\"+T,h<=9&&/[0-9]/.test(p.charAt(I+2))&&(E+="(?:)"),I++):(E+="\\"+T,I++)}return{output:E,i:I}}function D(p){return k.indexOf(p)>=0}function u(p){throw new F("Invalid XPath regular expression: "+p,"FORX0002");}let f=0;k=k?k.toString():"";if(!v&&q&&ua.$f(q))throw new F("Cannot handle non-BMP characters with regular expressions in this browser",
"SXJS0002");q=(D("i")?"i":"")+(D("m")?"m":"")+(D("g")?"g":"")+(v?"u":"");if(D("j"))return new RegExp(l,k.replace("j",""));if(D("q"))return new RegExp(l.replace(/[\[\]\/\{\}\(\)\*\+\?\.\\^$|]/g,"\\$&"),q);let E="";const J=[[58,58],[65,90],[95,95],[97,122],[192,214],[216,246],[248,767],[880,893],[895,8191],[8204,8205],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],z=[[45,46],[48,58],[65,90],[95,95],[97,122],[183,183],[192,214],[216,246],[248,893],[895,8191],[8204,
8205],[8255,8256],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],b=[],d=[];let h=1,t=0,m=!1;var L=!1;for(var V=0;V<l.length;V++){const p=l.charAt(V);switch(p){case "[":t>0&&u("Nested square brackets");var ea=!1,B=!1;for(var Q=V+2;Q<l.length-3;Q++){if(!ea&&l.substring(Q,Q+2)==="-["){ea=l.substring(V+1,Q);let I;for(B=Q+2;B<l.length;B++)if(l.charAt(B)==="]"&&l.charAt(B-1)!=="\\"){I=l.substring(Q+2,B+1);break}ea==="^"&&u("Invalid subtraction");l=l.substring(0,V)+"(?!["+
I+")["+ea+"]"+l.substring(B+2);V--;B=!0;break}else if(!ea&&l.charAt(Q)==="]")break;ea=l.charAt(Q)==="\\"&&!ea}if(B){m=!0;break}l.charAt(V+1)==="]"?u("Character group is empty"):l.substring(V,V+3)==="[^]"&&u("Invalid character group [^]");t++;E+=p;break;case "]":t===0&&u("Unmatched ']'");t--;E+=p;L=!0;break;case "(":t===0&&(Q=!0,V+2<l.length&&l.charAt(V+1)==="?"&&(l.charAt(V+2)===":"||m&&l.charAt(V+2)==="!"?Q=!1:u("'(?' must be followed by ':'")),b.push(Q?h++:-1),L=!1,Q&&f++);E+=p;break;case ")":t===
0&&(b.length===0&&u("Unmatched ')'"),L=b.pop(),L>0&&(d[L]=!0));E+=p;L=!0;break;case ".":E=t===0&&D("s")?E+"[^]":E+p;L=!0;break;case "{":t===0&&(L||u("'{' not allowed here"),L=l.indexOf("}",V+1),(L<0||!/^[0-9]+(,[0-9]*)?$/.test(l.substring(V+1,L)))&&u("Invalid quantifier {"+l.substring(V+1,L+1)),L=!1);E+=p;break;case " ":case "\n":case "\r":case "\t":if(!D("x")||t>0)E+=p;L=!0;break;case "\\":if(D("q"))E+="\\\\";else if(V+1<l.length)D("x")&&/\s/.test(l.charAt(V+1))&&V++,V=K(l,V),E=V.output,V=V.i;else throw new F("No character for escape code in XPath regex",
"FORX0002");L=!0;break;default:L=!0,E+=p}}t>0&&u("Unmatched '['");b.length!==0&&u("Unmatched '(");y&&y(f);try{return new RegExp(E,q)}catch(p){if(/^[imsxjqg]*$/.test(k))throw new F("Invalid regular expression /"+l+"/: "+p.message.substring(/Invalid |Range out/.test(p.message)?p.message.lastIndexOf(":"):0),"FORX0002");throw new F("Invalid regex flags: "+k,"FORX0001");}}let n=null,v=!1;try{v="\ud83d\ude80".match(new RegExp(/./,"gu")).length===1}catch(l){v=!1}let M=null,g=null;return{zf:function(){M=
c("^\\i\\c*$","");g=c("^\\c+$","")},oj:a,ue:c,hi:function(l,k,q){k=k.toString();if(/j/.test(k))return l;if(/q/.test(k))return l.replace(/\$/g,"$$$$");if(/(^|[^\\])\$([^0-9]|$)/.test(l)||/(^|[^\\])\\([^\\$]|$)/.test(l))throw new F("Invalid replacement string: "+l,"FORX0004");let y=k=!1,K="";for(let D=0;D<l.length;D++){const u=l.charAt(D);switch(u){case "\\":k&&(K+=u);k=!k;break;case "$":k?(K+="$$",k=!k):y=!0;break;case "0":y?(K+="$&",y=!1):K+=u;break;case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":y?
parseInt(u,10)<=q&&(K+="$"+u,y=!1):K+=u;break;default:K+=u}}return K},Db:function(l){return M.test(l)&&!/:/.test(l)},Yi:function(l){return M.test(l)},Xi:function(l){return g.test(l)},Wk:function(l){return l.match(/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})?$/)!==null},hh:function(l){return M.test(l)&&/^[^:]+(:[^:]+)?$/.test(l)},trim:function(l){return l.replace(/^[ \t\r\n]+|[ \t\r\n]+$/g,"")},collapse:function(l){return this.trim(l).replace(/[ \t\r\n]+/g," ")},og:function(l){var k=l.indexOf(";");if(k>=0){let q=
l.substring(0,k);k=l.substring(k+1);if(!q.match(/^[smixq]*$/))throw new F("Illegal flags for regular expression: "+l,"FORX0001");if(!k.match(/^[j]*$/))throw new F("Illegal extension flags for regular expression: "+l,"FORX0001");return q+k}if(!l.match(/^[smijxq]*$/))throw new F("Illegal flags for regular expression: "+l,"FORX0001");return l}}}();
// Input 9
class Aa{constructor(a){sa.assert(this.g().test(a));this.code=a}getCode(){return this.code}getType(){return"atomic"}g(){return/.*/}toString(){return""}compareTo(){return null}equals(){return!0}hashCode(){return""}matchKey(){return this.code+"_"+this.toString()}isNumeric(){return/^A[DFO]/.test(this.code)}isStringLike(){return/^A[SUZ]/.test(this.code)}showValue(){return Da.kd(this.code)+"('"+this.toString()+"')"}}
class Fa extends Aa{isNumeric(){return!0}getType(){switch(this.code){case "AO":return"double";case "AF":return"float";case "AD":return"decimal";case "ADI":return"integer";case "ADIN":return"nonPositiveInteger";case "ADINN":return"negativeInteger";case "ADIL":return"long";case "ADILI":return"int";case "ADILIS":return"short";case "ADILISB":return"byte";case "ADIP":return"nonNegativeInteger";case "ADIPP":return"positiveInteger";case "ADIPL":return"unsignedLong";case "ADIPLI":return"unsignedInt";case "ADIPLIS":return"unsignedShort";
case "ADIPLISB":return"unsignedByte";default:return sa.ua("Unexpected numeric code: "+this.code,1),"numeric"}}toDouble(){return new Ga(this.toNumber())}toNumber(){return NaN}toBig(){return new ta(this.toNumber())}}
class Ha extends Aa{constructor(a,c="AS"){super(c);this.value=String(a||"");this.j=0}g(){return/^A(S|Z$|U$)/}getType(){switch(this.code){case "AS":return"string";case "ASN":return"normalizedString";case "ASNT":return"token";case "ASNTL":return"language";case "ASNTK":return"NMTOKEN";case "ASNTN":return"Name";case "ASNTNC":return"NCName";case "ASNTNCI":return"ID";case "ASNTNCR":return"IDREF";case "ASNTNCE":return"ENTITY";case "AU":return"anyURI";case "AZ":return"untypedAtomic";default:return sa.ua("Unexpected string code: "+
this.code,1),"string"}}toString(){return this.value}compareTo(a){return a instanceof Ha?ua.ce(this.value,a.value):Ka(this.code,a.code)}equals(a){return this.compareTo(a)===0}hashCode(){if(this.value.length<=6)return this.value;let a=this.j;const c=this.value.length;if(a===0&&c>0){for(let n=0;n<c;n++)a=31*a+this.value.charCodeAt(n++);this.j=a&=16777215}return Ma(a)}matchKey(){return"s"+this.toString()}}function Na(a){return a.reduce((c,n)=>c+n.toString(16).padStart(2,"0"),"").toUpperCase()}
class Pa extends Aa{constructor(a,c="AX"){super(c);if(!(a instanceof Uint8Array))throw new F("Supplied value is not a Uint8Array","FORG0001");this.value=a}getType(){return this.code==="AX"?"hexBinary":"base64Binary"}g(){return/^A[X2]$/}toUint8Array(){return this.value}toString(){if(this.code==="AX")var a=Na(this.value);else{{a=this.value;var c=0;let l=0,k=[];if(a.length===0)a="";else{do{var n=a[c++];var v=a[c++];var M=a[c++];var g=n<<16|v<<8|M;n=g>>18&63;v=g>>12&63;M=g>>6&63;g&=63;k[l++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(n)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(v)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(M)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)}while(c<a.length);c=k.join("");a=a.length%3;a=(a?c.slice(0,a-3):c)+"===".slice(a||3)}}}return a}compareTo(a){return a instanceof Pa&&this.code===a.code?ua.ce(Na(this.value),Na(a.value)):Ka(this.code,a.code)}equals(a){if(a instanceof Pa&&this.code===a.code){const c=a.value;
return this.value.length===c.length&&this.value.every((n,v)=>n===c[v])}return Ka(this.code,a.code)}hashCode(){return(new Ha(Na(this.value.slice(0,8)))).hashCode()}matchKey(){return(this.code==="AX"?"h":"i")+this.toString()}}
class Ga extends Fa{constructor(a,c="AO"){super(c);this.value=a;if(typeof a!=="number")throw new F(`Supplied value is not a number: "${a}"`,"FORG0001");}g(){return/^A[OF]$/}toString(){if(this.value===0)return 1/this.value<0?"-0":"0";if(this.value===Number.POSITIVE_INFINITY)return"INF";if(this.value===Number.NEGATIVE_INFINITY)return"-INF";var a=this.value,c=Math.abs(a);if(c>=1E6||c<1E-6){c=a.toExponential();const n=c.indexOf("e");a=c.substring(0,n);c=c.substring(n+1);this.code==="AF"&&(a=parseFloat(a),
a=(a<0?a-5E-8:a+5E-8).toString(),a=a.substring(0,a.indexOf(".")+8),a=a.replace(/\.?0+$/,""));a.includes(".")||(a+=".0");return a+"E"+c.replace("+","")}return this.code==="AF"&&a%1!==0?(c=(a<0?a-5E-8:a+5E-8).toString(),c=c.substring(0,c.indexOf(".")+6),c.replace(/0+$/,"")):a.toString()}equals(a){return this.compareTo(a)===0}compareTo(a){return a.isNumeric()?(a=a.toNumber(),this.code==="AF"&&Math.fround&&(a=Math.fround(a)),this.value<a?-1:this.value===a?0:1):Ka(this.code,a.code)}hg(a){return a instanceof
Ga||a instanceof Qa?this.value===a.value||isNaN(this.value)&&isNaN(a.value):a instanceof Ra?Da.XS.decimal.cast(this).equals(a):!1}hashCode(){return isNaN(this.value)?"NaN":isFinite(this.value)?Ma(this.value):this.value<0?"-INF":"INF"}matchKey(){return"n"+this.hashCode()}toNumber(){return this.value}toDouble(){return this}abs(){return new Ga(Math.abs(this.value),this.code)}bf(){return new Ga(-this.value,this.code)}Ff(){return new Ga(Math.ceil(this.value),this.code)}floor(){return new Ga(Math.floor(this.value),
this.code)}round(a){a===0?a=Math.round(this.value):(a=Math.pow(10,-a),a*=Math.round(this.value/a));return new Ga(a,this.code)}ff(a){return isFinite(this.value)?(a=(new Ra(ta(this.value))).ff(a),a.toNumber()===0&&this.value<0&&(a=Da.XS.double.fromString("-0")),Da.codes[this.code].cast(a)):this}}
class Qa extends Fa{constructor(a){super("ADI");if(typeof a!=="number")throw new F(`Supplied value is not a number: "${a}"`,"FORG0001");this.value=Math.trunc(a)}g(){return/^ADI/}toString(){return this.value.toString()}equals(a){return this.compareTo(a)===0}compareTo(a){return a.isNumeric()?this.value-a.toNumber():Ka(this.code,a.code)}hashCode(){return Ma(this.value)}hg(a){return a instanceof Ga||a instanceof Qa?this.value===a.value:a instanceof Ra?Da.XS.decimal.cast(this).equals(a):!1}matchKey(){return"n"+
this.hashCode()}toDouble(){return new Ga(this.value)}toNumber(){return this.value}toBig(){return new ta(this.value)}abs(){return new Qa(Math.abs(this.value))}bf(){return new Qa(-this.value)}Ff(){return this}floor(){return this}round(a){return a<0?(a=Math.pow(10,-a),new Qa(Math.round(this.value/a)*a)):this}ff(a){return a<0?(a=Math.pow(10,-a),new Qa(parseInt(ta(this.value).Mb(a).round(0,2).Ub(a),10))):this}}
class Ra extends Fa{constructor(a,c="AD"){super(c);try{this.value=new ta(a)}catch(n){throw new F(`Supplied value is not a valid decimal: "${a}"`,"FORG0001");}}g(){return/^AD/}toString(){return this.value.toFixed()}equals(a){return this.compareTo(a)===0}compareTo(a){return a instanceof Ra?this.value.cmp(a.value):/^AD/.test(a.code)?this.value.cmp(a.toBig()):a.isNumeric()?this.value.cmp(new ta(a.toDouble())):Ka(this.code,a.code)}hashCode(){const a=this.value;return a.af(ta(1)).Tg(ta(0))&&a.abs().cj()?
this.toNumber().toString(36):this.toString().substring(0,8)}hg(a){return a instanceof Ga||a instanceof Qa?this.compareTo(Da.XS.decimal.cast(a))===0:a instanceof Ra?this.compareTo(a)===0:!1}matchKey(){return"n"+this.hashCode()}toBig(){return this.value}toDouble(){return new Ga(parseFloat(this.value.toFixed()))}toNumber(){return parseFloat(this.value.toFixed())}abs(){return new Ra(this.value.abs(),this.code)}bf(){const a=ta(this.value);a.ia=-a.ia;return new Ra(a,this.code==="AD"?"AD":"ADI")}Ff(){return new Ra(this.value.round(0,
this.value.ia<0?0:3),this.code)}floor(){return new Ra(this.value.round(0,this.value.ia<0?3:0),this.code)}round(a){function c(g,l){g=new ta(g);g.e+=l;return g}let n=this.value,v=0;a<0&&(v=a,a=0,n=c(n,v));const M=n.ia>0?ta(0):this.floor().abs();n=n.pd(M).round(a,1).Hd(M);v!==0&&(n=c(n,-v));return new Ra(n,this.code==="AD"?"AD":"ADI")}ff(a){a<0?(a=ta(10).pow(-a),a=this.value.Mb(a).round(0,2).Ub(a)):a=this.value.round(a,2);return new Ra(a,this.code==="AD"?"AD":"ADI")}}
class Sa extends Aa{constructor(a){super("AB");if(typeof a!=="boolean")throw new F(`Supplied value is not a boolean: "${a}"`,"FORG0001");this.value=a}getType(){return"boolean"}g(){return/^AB$/}toString(){return this.value.toString()}toBoolean(){return this.value}compareTo(a){return a instanceof Sa?(this.value?1:0)-(a.value?1:0):Ka(this.code,a.code)}equals(a){return this.compareTo(a)===0}hashCode(){return this.value.toString()}matchKey(){return"b"+this.toString()}}
class Ua extends Aa{constructor(a,c,n){super("AQ");this.prefix=a=a?a:"";this.uri=c=c?c:"";this.local=n;if(a===""||ya.Db(a)){if(!ya.Db(n))throw new F("Invalid local name: '"+n+"' (prefix='"+a+"', uri='"+c+"')","FORG0001");if(a!==""&&c==="")throw new F("For no namespace URI, invalid prefix: '"+a+"'","FORG0001");}else throw new F("Invalid prefix: '"+a+"'","FORG0001");}getType(){return"QName"}getPrefix(){return this.prefix}getURI(){return this.uri}getLocal(){return this.local}g(){return/^AQ$/}toEQName(){return"Q{"+
this.uri+"}"+this.local}toString(){return(this.prefix.length>0?this.prefix+":":"")+this.local}equals(a){return a instanceof Ua?a instanceof Ua&&this.local===a.local&&this.uri===a.uri:Ka(this.code,a.code)}compareTo(){throw new F("QNames are not ordered","FORG0006");}hashCode(){return this.uri.substring(this.uri.length-3)+":"+(new Ha(this.local)).hashCode()}matchKey(){return"q"+this.toEQName()}dd(a){return this.uri===a}withPrefix(a){return new Ua(a,this.uri,this.local)}}
function Va(a,c){c=c.substring(0,c.length-1);if(a.UTCdate.getUTCMilliseconds()===0)c=c.replace(".000","");else for(;c.charAt(c.length-1)==="0";)c=c.substring(0,c.length-1);c=c.replace(/^-0?0?/,"-");return c=c.replace(/^\+0?0?/,"")}function Wa(a){if(a=a.timezoneOffset){const c=Math.abs(a);return(a<0?"-":"+")+(100+Math.floor(c/60)).toString().substring(1)+":"+(100+c%60).toString().substring(1)}return a===0?"Z":""}
function Xa(a,c){return c instanceof Ya&&(c.code.startsWith(a.code)||a.code.startsWith(c.code))?+a.UTCdate.getTime()-c.UTCdate.getTime():Ka(a.code,c.code)}function ab(a,c){return Da.XS.dateTime.fromDate(new Date(a.UTCdate.getTime()+c*60*1E3),a.timezoneOffset)}
function cb(a,c){let n=a.toString(),v=parseInt(n.substring(5,7),10),M=parseInt(n.substring(8,10),10),g=parseInt(n.substring(0,4),10)+Math.floor((v+c-1)/12),l=g<0;c=(v+c-1)%12+1;for(c<=0&&(c+=12);!Da.aj([g,c,M,0,0,0]);)--M;return Da.codes[a.code].fromString((l?"-"+(1E4+-g).toString().substring(1):(1E4+g).toString().substring(1))+"-"+(100+c).toString().substring(1)+"-"+(100+M).toString().substring(1)+n.substring(10))}
class Ya extends Aa{constructor(a,c,n="AM"){super(n);this.UTCdate=a;this.timezoneOffset=c;if(!(a instanceof Date))throw new F(`Supplied value is not a Date: "${a}"`,"FORG0001");if(c&&typeof c!=="number")throw new F(`Timezone offset is not a number: ${c}`,"FORG0001");}g(){return/^A([AGHIJKMT]|MP)$/}getType(){switch(this.code){case "AA":return"date";case "AM":return"dateTime";case "AT":return"time";case "AMP":return"dateTimeStamp";case "AG":return"gYear";case "AH":return"gYearMonth";case "AI":return"gMonth";
case "AJ":return"gMonthDay";case "AK":return"gDay";default:return sa.ua("Unexpected date code: "+this.code,1),"dateTime"}}getUTCDate(){return this.UTCdate}getTimezoneOffset(){return this.timezoneOffset}proxy(){var a=new Date;a=this.timezoneOffset||this.timezoneOffset===0?this.timezoneOffset:-a.getTimezoneOffset();return new Date(this.UTCdate.getTime()+a*60*1E3)}toString(){const a=Va(this,this.proxy().toISOString()),c=a.charAt(0)==="-"?1:0;return function(n){switch(n){case "AM":case "AMP":return a;
case "AA":return a.substring(0,10+c);case "AT":return a.substring(11+c);case "AH":return a.substring(0,7+c);case "AG":return a.substring(0,4+c);case "AJ":return"-"+a.substring(4+c,10+c);case "AI":return"-"+a.substring(4+c,7+c);case "AK":return"--"+a.substring(7+c,10+c);default:throw"type not recognised "+n;}}(this.code)+Wa(this)}compareTo(a){return/^A[GHIJK]/.test(this.code)||/^A[GHIJK]/.test(a.code)?Ka(this.code,a.code):Xa(this,a)}equals(a){return Xa(this,a)===0}hashCode(){return Ma(this.UTCdate.getTime()-
1454346732296)}matchKey(){return"t"+this.hashCode()}}function db(a){function c(v,M){M.forEach(function(g){g!==1E3?(n.push(Math.floor(v/g)),v%=g):n.push(v/g)})}let n=[];c(Math.abs(a.months),[12,1]);c(Math.abs(a.milliseconds),[864E5,36E5,6E4,1E3]);return n}function eb(a){a=a.months+a.milliseconds;return a<0?-1:a>0?1:0}
class fb extends Aa{constructor(a,c,n="AR"){super(n);this.months=a;this.milliseconds=c;if(typeof a!=="number")throw new F(`Supplied month is not a number: "${a}"`,"FORG0001");if(typeof c!=="number")throw new F(`Supplied milliseconds is not a number: "${c}"`,"FORG0001");if(a>0&&c<0||a<0&&c>0)throw new F("Months/milliseconds must both be negative or both be positive","FORG0001");}g(){return/^AR[DY]?$/}getType(){switch(this.code){case "AR":return"duration";case "ARD":return"dayTimeDuration";case "ARY":return"yearMonthDuration";
default:return sa.ua("Unexpected duration code: "+this.code,1),"duration"}}getMonthsPart(){return this.months}getMillisecondsPart(){return this.milliseconds}toString(){let a,c=eb(this);c===0?a=this.code==="ARY"?"P0M":"PT0S":(a=c<0?"-P":"P",db(this).forEach(function(n,v){v===3&&(a+="T");n!==0&&(v===6?a+=n/1E3+"S":a+=n+"YMDHMS".split("")[v])}),a=a.replace(/T$/,""));return a}compareTo(a){if(a instanceof fb){if(Da.XS.yearMonthDuration.matches(this)&&Da.XS.yearMonthDuration.matches(a))return this.months-
a.months;if(Da.XS.dayTimeDuration.matches(this)&&Da.XS.dayTimeDuration.matches(a))return this.milliseconds-a.milliseconds;throw new F("Cannot compare durations that mix months and seconds","XPTY0004");}return Ka(this.code,a.code)}equals(a){return a instanceof fb?a instanceof fb&&this.months===a.months&&this.milliseconds===a.milliseconds:Ka(this.code,a.code)}hashCode(){return this.months.toString()+":"+this.milliseconds.toString()}matchKey(){return"d"+this.hashCode()}}
function Ma(a){return Number.isInteger(a)&&Math.abs(a)<4503599627370496?a.toString(36):Da.XS.decimal.fromNumber(a).toString().substring(0,8)}function Ka(a,c){throw new F(`Cannot compare ${Da.kd(a)} with ${Da.kd(c)}`,"XPTY0004");};
// Input 10
const Da=function(){function a(){function w(S,W,qa,aa){const za=G[qa],wa=ka[S]=G[W]={name:S,code:W,gb:za,matches:Ca=>Ca instanceof Aa&&Ca.code.startsWith(W),Zc:function(Ca){if(!aa(Ca))return l(Ca.toString(),W);Ca.code=W;return Ca},fromString:function(Ca){return wa.Zc(za.fromString(Ca))},cast:function(Ca){return wa.Zc(za.cast(Ca))}}}function e(S,W,qa){const aa=W.replace(/.$/,"");w(S,W,aa,qa);const za=ka[S],wa=G[aa];za.fromString=function(Ca){return/INF|NaN/.test(Ca)?l(Ca,W,null,"FOCA0002"):za.Zc(wa.fromString(Ca))};
za.fromNumber=function(Ca){{Ca=wa.fromNumber(Ca);const Ea=Ca.toNumber();isFinite(Ea)?qa(Ca)?Ca.code=W:Ca=l(Ca.toString(),W):Ca=l(Ca.toString(),W,null,"FOCA0002")}return Ca}}function r(S,W,qa,aa){const za=W.replace(/.$/,"");w(S,W,za,qa);const wa=G[W],Ca=G[za];wa.Zc=function(Ea){Ea=aa(Ea.toString());return qa(Ea)?new Ha(Ea,W):l(Ea,W)};wa.fromString=function(Ea){return wa.Zc(Ca.fromString(aa(Ea)))}}function H(S,W,qa){w(S,W,"AR",qa);const aa=ka[S];aa.fromString=function(za){return b(za,W)};aa.fromMonthsMilliseconds=
function(za,wa){za=da.fromMonthsMilliseconds(za,wa);if(!qa(za))throw new F(`Values supplied to fromMonthsMilliseconds are not valid for ${d(W)}`,"FORG0001");return aa.Zc(za)};aa.Zg=W==="ARY"?void 0:function(za){return new fb(0,za*60*1E3,"ARD")};aa.cast=function(za){return da.matches(za)?new fb(W==="ARY"?za.months:0,W==="ARD"?za.milliseconds:0,W):fa.string.matches(za)||fa.untypedAtomic.matches(za)?b(za.toString(),W):aa.Zc(da.cast(za))}}function C(S,W){return function(qa){qa=qa.toNumber();return qa>=
S&&qa<=W}}for(var O in ka){const S=ka[O];G[S.code]=S}K("gYear","AG");K("gYearMonth","AH");K("gMonth","AI");K("gMonthDay","AJ");K("gDay","AK");e("nonPositiveInteger","ADIN",S=>S.toNumber()<=0);e("negativeInteger","ADINN",S=>S.toNumber()<0);e("long","ADIL",function(S){S=S.toBig();return S.cmp(ta("-9223372036854775808"))>=0&&S.cmp(ta("9223372036854775807"))<=0});e("int","ADILI",C(-2147483648,2147483647));e("short","ADILIS",C(-32768,32767));e("byte","ADILISB",C(-128,127));e("nonNegativeInteger","ADIP",
S=>S.toNumber()>=0);e("positiveInteger","ADIPP",S=>S.toNumber()>0);e("unsignedLong","ADIPL",function(S){return S.toNumber()>=0&&S.toBig().cmp(ta("18446744073709551615"))<=0});e("unsignedInt","ADIPLI",function(S){return S.toNumber()>=0&&S.toBig().cmp(ta("4294967295"))<=0});e("unsignedShort","ADIPLIS",C(0,65535));e("unsignedByte","ADIPLISB",C(0,255));O=()=>!0;r("normalizedString","ASN",O,S=>S.replace(/[ \r\t\n]/g," "));r("token","ASNT",O,ua.Hb);r("language","ASNTL",S=>/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/.test(S),
ua.Hb);r("NMTOKEN","ASNTK",ya.Xi,ua.Hb);r("Name","ASNTN",ya.Yi,ua.Hb);r("NCName","ASNTNC",ya.Db,ua.Hb);r("ID","ASNTNCI",ya.Db,ua.Hb);r("IDREF","ASNTNCR",ya.Db,ua.Hb);r("ENTITY","ASNTNCE",ya.Db,ua.Hb);H("yearMonthDuration","ARY",S=>S.milliseconds===0);H("dayTimeDuration","ARD",S=>S.months===0);fa.language=ka.language;fa.NCName=ka.NCName;fa.dayTimeDuration=ka.dayTimeDuration;fa.yearMonthDuration=ka.yearMonthDuration;fa.gYearMonth=ka.gYearMonth;fa.gYear=ka.gYear;fa.gMonthDay=ka.gMonthDay;fa.gMonth=ka.gMonth;
fa.gDay=ka.gDay;fa.ENTITY=ka.ENTITY;fa.ID=ka.ID;fa.IDREF=ka.IDREF;fa.NMTOKEN=ka.NMTOKEN;fa.Name=ka.Name;fa.byte=ka["byte"];fa.int=ka["int"];fa.long=ka["long"];fa.negativeInteger=ka.negativeInteger;fa.nonNegativeInteger=ka.nonNegativeInteger;fa.nonPositiveInteger=ka.nonPositiveInteger;fa.normalizedString=ka.normalizedString;fa.positiveInteger=ka.positiveInteger;fa.short=ka["short"];fa.token=ka.token;fa.unsignedByte=ka.unsignedByte;fa.unsignedInt=ka.unsignedInt;fa.unsignedLong=ka.unsignedLong;fa.unsignedShort=
ka.unsignedShort;a=function(){}}function c(w,e){return e?-w:w}function n(w,e){return e*(w===void 0?0:Math.round(parseFloat(w)*1E3))}function v(w,e){return e*(w===void 0?0:parseInt(w,10))}function M(w){return w.gb&&!["ADI","ARY","ARD"].includes(w.code)?M(w.gb):w}function g(w,e){throw new F(`Casting from ${d(w.code)} to ${d(e)} is not allowed`,"XPTY0004");}function l(w,e,r=null,H="FORG0001"){throw new F(`Supplied value "${w}" is not a valid ${d(e)}${r?` (${r})`:""}`,H);}function k(w,e){w=ya.trim(w);
/.\.$/.test(w)&&(w+="0");if(/^[-+]?([0-9]+(\.[0-9]*)?|\.[0-9]+)([Ee][-+]?[0-9]+)?$/.test(w))return parseFloat(w);if(/^NaN$/.test(w))return NaN;if(/^-INF$/.test(w))return-Infinity;if(/^(\+)?INF$/.test(w))return Infinity;e&&l(w,"AO");return NaN}function q(w){w=w.replace(/\s/g,"");/^(....)*$/.test(w)||l(w,"A2","length must be a multiple of 4");/^[A-Za-z0-9+/]*=?=?$/.test(w)||l(w,"A2","only [A-Za-z0-9+/] allowed, or '=' at the end");/^([^=]*|.*[AQgw]==|.*[AEIMQUYcgkosw048]=)$/.test(w)||l(w,"A2","invalid characters before '='");
let e,r,H=0,C=[];if(w.length===0)return new Uint8Array(0);do{var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(w.charAt(H++));var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(w.charAt(H++));e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(w.charAt(H++));r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(w.charAt(H++));var W=O<<18|S<<12|e<<6|r;O=W>>16&255;S=W>>8&255;W&=255;e===64?
C.push(O):r===64?C.push(O,S):C.push(O,S,W)}while(H<w.length);return new Uint8Array(C)}function y(w){w=ya.trim(w);/^([a-fA-F0-9][a-fA-F0-9])*$/.test(w)||l(w,"AX");return(w=w.match(/../g))?new Uint8Array(w.map(e=>parseInt(e,16))):new Uint8Array(0)}function K(w,e){ka[w]=G[e]={name:w,code:e,matches:r=>r instanceof Ya&&r.code.startsWith(e),fromString:r=>E(r,e),fromDate:(r,H)=>new Ya(r,H,e),cast:r=>{if(r instanceof Ya&&r.code.startsWith(e))return r;if(fa.dateTime.matches(r)||fa.date.matches(r)){const H=
G[e];return H.fromString(H.fromDate(r.UTCdate,r.timezoneOffset).toString())}return/^A[SZ]/.test(r.code)?E(r.value,e):g(r,e)}}}function D(w){if(w.indexOf(".",w.length-4)!==-1){w=w.split(".");let e=w[1];for(;e.length<3;)e+="0";w=w[0]+"."+e}return w}function u(w){const e=w[0],r=w[1],H=w[2],C=w[3],O=w[4];w=w[5];return!(r<1||r>12||H<1||H>[31,e%4!==0||e%100===0&&e%400!==0?28:29,31,30,31,30,31,31,30,31,30,31][r-1]||C>=24||O>=60||w>=60)}function f(w,e){w=w.split(/[\-T:]/).map(function(H){return parseFloat(H)});
const r=w[0];if(r<-9999||r>9999)throw new F("Year "+r+" is out of range","FODT0001");if(!u(w))return l(e,"AM")}function E(w,e){var r=w.match(U[e]);if(r===null)return l(w,e);const H=r[2]?r[2]:"";var C=ba[e](r[1])+H;/24:00:00(\.0+)?([Z+\-]|$)/.test(C)&&(C=e==="AT"?C.substring(0,10)+"T00:00:00":ab(E(C.substring(0,10),"AA"),1440)+"T00:00:00");r=C.charAt(0)==="-";f(r?C.substring(1,20):C.substring(0,19),w);w=(r?C.substring(1):C).split(/[\-T:]/).map(function(O){return parseFloat(O)});C=w[5];r=r?-w[0]:w[0];
C=new Date(Date.UTC(r,w[1]-1,w[2],w[3],w[4],C,Math.round((C-Math.floor(C))*1E3)));w[0]<100&&C.setUTCFullYear(r);C=H===""?z(C):z(C,J(H));return new Ya(C,J(H),e)}function J(w){if(w==="")return null;if(w==="Z")return 0;var e=w.split(":");const r=/^-.*/.test(e[0]),H=Math.abs(parseInt(e[0],10));e=parseInt(e[1],10);if(H>14||e>59)throw new F("Invalid timezone "+w,"FORG0001");return(r?-1:1)*(H*60+e)}function z(w,e=null){const r=new Date;return new Date(w.getTime()-(e==null?-r.getTimezoneOffset():e)*60*1E3)}
function b(w,e){const r=w.match(U[e]);if(r===null||!/\d/.test(w)||/T$/.test(w))return l(w,e);const H=ha[ca[e][0]](r,w);w=ha[ca[e][1]](r,w);return new fb(H,w,e)}function d(w){const e=G[w];return e?"xs:"+e.name:w}const h={name:"anyAtomicType",code:"A",matches:function(w){return w instanceof Aa}},t={name:"untypedAtomic",code:"AZ",fromString:function(w){return new Ha(w,"AZ")},matches:function(w){return w.code==="AZ"},cast:function(w){return new Ha(w.toString(),"AZ")}},m={name:"string",code:"AS",fromString:function(w){return new Ha(w,
"AS")},matches:function(w){return/^AS/.test(w.code)},cast:function(w){return new Ha(w.toString(),"AS")}},L={name:"anyURI",code:"AU",fromString:function(w){w=w.replace(/[ \r\t\n]+/g," ").replace(/^[ ]|[ ]$/g,"");return new Ha(w,"AU")},matches:function(w){return w.code==="AU"},cast:function(w){return w instanceof Ha?fa.anyURI.fromString(w.toString()):g(w,"AU")}},V={name:"double",code:"AO",fromString:function(w){return new Ga(k(w,!0))},ie:function(w){return new Ga(k(w,!1))},fromNumber:function(w){return new Ga(w)},
matches:function(w){return w.code==="AO"},cast:function(w){return w===null||typeof w=="undefined"?fa.double.fromNumber(NaN):fa.string.matches(w)||fa.untypedAtomic.matches(w)?fa.double.fromString(w.toString()):w.isNumeric()?fa.double.fromNumber(w.toNumber()):fa.boolean.matches(w)?fa.double.fromNumber(w.toBoolean()?1:0):g(w,"AO")},NaN:null};V.NaN=V.fromNumber(NaN);const ea={name:"decimal",code:"AD",fromString:function(w){w=ya.trim(w).replace(/^\+/,"");return/^[-+]?([0-9]+(\.[0-9]*)?|\.[0-9]+)$/.test(w)?
new Ra(new ta(w)):l(w,"AD")},hb:function(w){return new Ra(w)},fromNumber:function(w){return isFinite(w)?new Ra(new ta(w)):l(w,"AD",null,"FOCA0002")},matches:function(w){return w instanceof Ra||w instanceof Qa},cast:function(w){switch(w.code.substring(0,2)){case "AD":return new Ra(w.value,"AD");case "AS":case "AZ":return fa.decimal.fromString(w.toString());case "AO":case "AF":return fa.decimal.fromNumber(w.toNumber());case "AB":return fa.decimal.fromString(w.toBoolean()?"1":"0");default:return g(w,
"AD")}}},B={name:"float",code:"AF",fromString:function(w){return fa.float.fromNumber(k(w,!0))},fromNumber:function(w){Math.fround&&(w=Math.fround(w));return new Ga(w,"AF")},matches:function(w){return w.code==="AF"},cast:function(w){return fa.float.fromNumber(fa.double.cast(w).toNumber())}},Q={name:"boolean",code:"AB",Tc:new Sa(!0),Ud:new Sa(!1),fromString:function(w){switch(ya.trim(w)){case "true":case "1":return this.Tc;case "false":case "0":return this.Ud;default:return l(w,"AB")}},fromBoolean:function(w){return w?
this.Tc:this.Ud},matches:function(w){return w instanceof Sa},cast:function(w){switch(w.code.substring(0,2)){case "AS":case "AZ":return fa.boolean.fromString(w.toString());case "AD":case "AF":case "AO":return w=w.toNumber(),fa.boolean.fromBoolean(w!==0&&!isNaN(w));case "AB":return w;default:return g(w,"AB")}}},p={name:"integer",code:"ADI",gb:"decimal",matches:function(w){return/^ADI/.test(w.code)},fromString:function(w){return/^\s*[-+]?[0-9]+\s*$/.test(w)?w.length>9?new Ra(w,"ADI"):new Qa(parseInt(w,
10)):l(w,"ADI")},fromNumber:function(w){if(!isFinite(w))return l(w,"ADI",null,"FOCA0002");w=Math.trunc(w);return Math.abs(w)>Number.MAX_SAFE_INTEGER?new Ra(new ta(w),"ADI"):new Qa(w)},hb:function(w){return new Ra(w,"ADI")},fromByteArray:function(w,e,r,H,C){function O(S,W,qa,aa){let za=new ta(0);if(aa)for(W=W+qa-1;W>=0;W--)za=za.Ub(256).pd(S[W]);else for(aa=W;aa<W+qa;aa++)za=za.Ub(256).pd(S[aa]);return za}C&&w[H?r-1:0]>=128?(w=w.slice(e,e+r),H&&w.reverse(),w[0]&=127,r=O(w,0,r,!1).Hd((new ta(2)).pow(r*
8-1))):r=O(w,e,r,H);return new Ra(r,"ADI")},valid:function(w){return w.value.af(1)===0},cast:function(w){switch(w.code.substring(0,2)){case "AS":case "AZ":return fa.integer.fromString(w.toString());case "AF":case "AO":return fa.integer.fromNumber(w.toNumber());case "AD":return fa.integer.hb(w.toBig().round(0,0));case "AB":return fa.integer.fromNumber(w.toBoolean()?1:0);default:return g(w,"AB")}},Ik:function(w){return typeof w==="number"?fa.integer.fromNumber(w):typeof w==="boolean"?fa.integer.fromNumber(w?
1:0):typeof w==="string"?fa.integer.fromString(w):fa.integer.fromString(w.toString())}},I={name:"numeric",code:"Anumeric",dl:["double","decimal","float"],matches:function(w){return w instanceof Ga||w instanceof Qa||w instanceof Ra},cast:function(w){return fa.string.matches(w)||fa.untypedAtomic.matches(w)?fa.double.fromString(w.toString()):fa.numeric.matches(w)?w:fa.boolean.matches(w)?fa.double.fromNumber(w.toBoolean()?1:0):g(w,"Anumeric")},Id:function(w){const e=fa.double;return w===null?e.fromNumber(Number.NaN):
fa.boolean.matches(w)?e.fromNumber(w.toBoolean()?1:0):fa.numeric.matches(w)?e.cast(w):fa.string.matches(w)||fa.untypedAtomic.matches(w)?e.ie(w.toString()):e.fromNumber(Number.NaN)}},A={name:"QName",code:"AQ",matches:function(w){return w instanceof Ua},fromParts:function(w,e,r){return new Ua(w,e,r)},fromString:function(w,e){w=ya.trim(w);if(w.substring(0,2)==="Q{")return fa.QName.fromEQName(w);if(!ya.hh(w))return l(w,"AQ");w=w.split(":");if(w.length===1)return fa.QName.fromParts("",e(""),w[0]);e=e(w[0]);
if(e===null)throw new F("Undeclared prefix: "+w[0],"FONS0004");return fa.QName.fromParts(w[0],e,w[1])},fromEQName:function(w){var e=w.indexOf("{");const r=w.indexOf("}");if(!(e===-1&&r===-1||e>-1&&r>-1))throw new F("Invalid EQName: "+w,"FORG0001");e=ua.Hb(w.substring(e+1,r));if(e==="http://www.w3.org/2000/xmlns/")throw new F("Use of reserved namespace: "+e,"XQST0070");const H=e===xa.xml?"xml":"";if(/{/.test(e))throw new F("Invalid URI: "+e,"FORG0001");return fa.QName.fromParts(H,e,w.substring(r+1))},
cast:function(w,e){if(fa.string.matches(w)||fa.untypedAtomic.matches(w)){let r=ya.trim(w.toString());if(r.substring(0,2)==="Q{")return fa.QName.fromEQName(r);if(e)return fa.QName.fromString(w.toString(),e);throw new F("Casting to QName from lexical QName form requires a namespace resolver","XPTY0117");}return fa.QName.matches(w)?w:g(w,"AQ")}},x={name:"notation",code:"AN",fromString:function(w){return this.cast(w)},matches:function(){return!1},cast:function(){throw new F("Casting to xs:NOTATION is not possible",
"XPST0080");}},N={name:"dateTime",code:"AM",matches:function(w){return/^AM/.test(w.code)},fromString:function(w){return E(w,"AM")},fromDate:function(w,e=null){return new Ya(w,e,"AM")},fromUTCDate:function(w,e=null){return e==null?fa.dateTime.fromDate(z(w),null):fa.dateTime.fromDate(w,e)},cast:function(w){switch(w.code.substring(0,2)){case "AM":return w;case "AA":return fa.dateTime.fromDate(w.UTCdate,w.timezoneOffset);case "AS":case "AZ":return fa.dateTime.fromString(w.toString());default:return g(w,
"AM")}}},P={name:"date",code:"AA",matches:function(w){return w.code==="AA"},fromString:function(w){return E(w,"AA")},fromDate:function(w,e=null){w=(new Ya(w,e,"AA")).toString();const r=w.charAt(0)==="-"?11:10;w=fa.dateTime.fromString(w.substring(0,r)+"T00:00:00"+w.substring(r));return new Ya(w.UTCdate,e,"AA")},fromUTCDate:function(w,e=null){return e==null?fa.date.fromDate(z(w),null):fa.date.fromDate(w,e)},cast:function(w){switch(w.code.substring(0,2)){case "AM":return fa.date.fromDate(w.UTCdate,w.timezoneOffset);
case "AA":return w;case "AS":case "AZ":return fa.date.fromString(w.toString());default:return g(w,"AA")}}},T={name:"time",code:"AT",matches:function(w){return w.code==="AT"},fromString:function(w){return E(w,"AT")},fromDate:function(w,e=null){w=new Ya(w,e,"AT");w=fa.dateTime.fromString("1972-01-01T"+w.toString());return new Ya(w.UTCdate,e,"AT")},fromUTCDate:function(w,e=null){return e==null?fa.time.fromDate(z(w),null):fa.time.fromDate(w,e)},cast:function(w){switch(w.code.substring(0,2)){case "AM":return fa.time.fromDate(w.UTCdate,
w.timezoneOffset);case "AT":return w;case "AS":case "AZ":return fa.time.fromString(w.toString());default:return g(w,"AT")}}},Y={name:"dateTimeStamp",code:"AMP",matches:function(w){return w.code==="AMP"},fromString:function(w){return E(w,"AMP")},fromDate:function(w,e=null){if(e==null)throw new F("Timezone offset must not be null for dateTimeStamp.fromDate()","FORG0001");return new Ya(w,e,"AMP")},fromUTCDate:function(w,e=null){return e==null?fa.dateTimeStamp.fromDate(w,0):fa.dateTimeStamp.fromDate(w,
e)},cast:function(w){switch(w.code.substring(0,2)){case "AM":return w.code==="AMP"?w:w.timezoneOffset==null?l(w.toString(),"AMP"):fa.dateTimeStamp.fromDate(w.UTCdate,w.timezoneOffset);case "AA":return w.timezoneOffset==null?l(w.toString(),"AMP"):fa.dateTimeStamp.fromDate(w.UTCdate,w.timezoneOffset);case "AS":case "AZ":return fa.dateTimeStamp.fromString(w.toString());default:return g(w,"AMP")}}},da={name:"duration",code:"AR",matches:function(w){return/^AR/.test(w.code)},fromString:function(w){return b(w,
"AR")},fromMonthsMilliseconds:function(w,e){return new fb(w,e,"AR")},cast:function(w){return fa.duration.matches(w)?w:fa.string.matches(w)||fa.untypedAtomic.matches(w)?fa.duration.fromString(w.toString()):g(w,"AR")}},Z={name:"hexBinary",code:"AX",matches:function(w){return w.code==="AX"},fromString:function(w){return new Pa(y(w),"AX")},fromUint8Array:function(w){return new Pa(w,"AX")},fromUtf8EncodedString:function(w){return new Pa((new TextEncoder).encode(w),"AX")},cast:function(w){return w instanceof
Pa?new Pa(w.value,"AX"):fa.string.matches(w)||fa.untypedAtomic.matches(w)?new Pa(y(w.toString()),"AX"):g(w,"AX")}},la={name:"base64Binary",code:"A2",matches:function(w){return w.code==="A2"},fromString:function(w){return new Pa(q(w),"A2")},fromUint8Array:function(w){return new Pa(w,"A2")},cast:function(w){return w instanceof Pa?new Pa(w.value,"A2"):fa.string.matches(w)||fa.untypedAtomic.matches(w)?new Pa(q(w.toString()),"A2"):g(w,"A2")},fromUtf8EncodedString:function(w){return new Pa((new TextEncoder).encode(w),
"A2")}},ka={anyAtomicType:h,untypedAtomic:t,string:m,anyURI:L,"double":V,decimal:ea,"float":B,"boolean":Q,integer:p,NOTATION:x,numeric:I,QName:A,dateTime:N,date:P,time:T,dateTimeStamp:Y,duration:da,hexBinary:Z,base64Binary:la},G={},U={AM:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,AA:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2})(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,AT:/^\s*([0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,
AMP:/^\s*(-?[0-9]+-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|([+\-])[0-9]{2}:[0-9]{2})\s*$/,AH:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2})(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,AG:/^\s*(-?[1-9][0-9]{4,}|-?[0-9]{4})(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,AJ:/^\s*--([0-9]{2}-[0-9]{2})(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,AI:/^\s*--([0-9]{2})(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,AK:/^\s*---([0-9]{2})(Z|([+\-])[0-9]{2}:[0-9]{2})?\s*$/,AR:/^\s*-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]+)?)S)?)?\s*$/,
ARD:/^\s*-?P(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]+)?)S)?)?\s*$/,ARY:/^\s*-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?\s*$/},ba={AM:function(w){return D(w)},AA:function(w){return w+"T00:00:00"},AT:function(w){return"1972-01-01T"+D(w)},AMP:function(w){return D(w)},AH:function(w){return w+"-01T00:00:00"},AG:function(w){return w+"-01-01T00:00:00"},AJ:function(w){return"1972-"+w+"T00:00:00"},AI:function(w){return"1972-"+w+"-01T00:00:00"},AK:function(w){return"1972-01-"+w+"T00:00:00"}},
ha=[function(w,e){return c(v(w[1],12)+v(w[2],1),e.match(/^\s*-.*/))},function(w,e){return c(v(w[3],864E5)+v(w[4],36E5)+v(w[5],6E4)+n(w[6],1),e.match(/^\s*-.*/))},function(w,e){return c(v(w[1],864E5)+v(w[2],36E5)+v(w[3],6E4)+n(w[4],1),e.match(/^\s*-.*/))},function(){return 0}],ca={AR:[0,1],ARD:[3,2],ARY:[0,3]};let fa={anyAtomicType:h,anyURI:L,base64Binary:la,boolean:Q,date:P,dateTime:N,dateTimeStamp:Y,dayTimeDuration:null,decimal:ea,double:V,duration:da,float:B,gDay:null,gMonth:null,gMonthDay:null,
gYear:null,gYearMonth:null,hexBinary:Z,integer:p,language:null,NCName:null,NOTATION:x,numeric:I,QName:A,string:m,time:T,untypedAtomic:t,yearMonthDuration:null,ENTITY:null,ID:null,IDREF:null,NMTOKEN:null,Name:null,byte:null,int:null,long:null,negativeInteger:null,nonNegativeInteger:null,nonPositiveInteger:null,normalizedString:null,positiveInteger:null,short:null,token:null,unsignedByte:null,unsignedInt:null,unsignedLong:null,unsignedShort:null};return{zf:a,ma:function(w){return h.matches(w)},aj:u,
tj:M,Zf:function(w,e,r,H){if(w instanceof Ra||e instanceof Ra)return p.hb(H(w.toBig(),e.toBig()));r=r(w.toNumber(),e.toNumber());return Math.abs(r)<4503599627370496?p.fromNumber(r):p.hb(H(w.toBig(),e.toBig()))},kd:d,fg:function(w,e){const r=Da.codes[e];if(r.matches(w))return w;if(fa.decimal.matches(w)?/^A[OFD]$/.test(e):fa.float.matches(w)&&/^A[OF]$/.test(e))return r.cast(w);throw new F(`Incompatible operands: ${d(w.code)} (${w.toString()}) and ${d(e)}`,"XPTY0004");},type:ka,codes:G,XS:fa}}();
// Input 11
const gb=function(){function a(D,u){return q.matches(D)&&q.matches(u)?q:k}function c(D="FOAR0001"){throw new F("Division by zero",D);}function n(D="FOAR0002"){throw new F("Numeric overflow/underflow",D);}function v(D,u,f){throw new F(`Arithmetic operation ${f} not available for`+` operands ${Da.kd(D.code)} and ${Da.kd(u.code)}`,"XPTY0004");}function M(D,u,f){function E(m){return/^A[AMT]/.test(m.code)}let J,z,b;const d=g.untypedAtomic,h=g.dayTimeDuration,t=g.yearMonthDuration;if(d.matches(D))return D=
g.double.fromString(D.value),M(D,u,f);if(d.matches(u))return u=g.double.fromString(u.value),M(D,u,f);(h.matches(D)||t.matches(D))&&g.numeric.matches(u)?(b="u"+f+"n",J=D.code,z=u.code):(h.matches(u)||t.matches(u))&&g.numeric.matches(D)?(b="n"+f+"u",J=D.code,z=u.code):q.matches(D)&&q.matches(u)?(b="i"+f+"i",J=z="ADI"):l.matches(D)||l.matches(u)?(b="d"+f+"d",J=z="AO"):y.matches(D)||y.matches(u)?(b="f"+f+"f",J=z="AF"):k.matches(D)||k.matches(u)?(b="c"+f+"c",J=z="AD"):E(D)&&E(u)?(b="t"+f+"t",J=D.code,
z=u.code):E(D)&&(h.matches(u)||t.matches(u))?(b="t"+f+"u",J=D.code,z=u.code):(h.matches(D)||t.matches(D))&&E(u)?(b="u"+f+"t",J=D.code,z=u.code):h.matches(D)&&h.matches(u)||t.matches(D)&&t.matches(u)?(b="u"+f+"u",J=z=D.code):v(f,D,u);K[b]||v(f,D,u);return K[b](Da.fg(D,J),Da.fg(u,z))}const g=Da.XS,l=g.double,k=g.decimal,q=g.integer,y=g.float,K={"d+d":function(D,u){D=D.toNumber();u=u.toNumber();return l.fromNumber(D+u)},"d-d":function(D,u){D=D.toNumber();u=u.toNumber();return l.fromNumber(D-u)},"d*d":function(D,
u){D=D.toNumber();u=u.toNumber();return l.fromNumber(D*u)},"d/d":function(D,u){D=D.toNumber();u=u.toNumber();return l.fromNumber(D/u)},"d%d":function(D,u){const f=D.toNumber();u=u.toNumber();return!isFinite(f)||isNaN(u)||u===0?l.fromNumber(NaN):isFinite(u)&&f!==0?l.fromNumber(f%u):D},"d~d":function(D,u){D=D.toNumber();u=u.toNumber();u===0&&c();(!isFinite(D)&&isFinite(u)||isNaN(D)||isNaN(u))&&n();u=Math.trunc(D/u);isFinite(u)||n();return Math.abs(u)<4503599627370496?q.fromNumber(u):l.fromNumber(u)},
"f+f":function(D,u){D=D.toNumber();u=u.toNumber();return y.fromNumber(D+u)},"f-f":function(D,u){D=D.toNumber();u=u.toNumber();return y.fromNumber(D-u)},"f*f":function(D,u){D=D.toNumber();u=u.toNumber();return y.fromNumber(D*u)},"f/f":function(D,u){D=D.toNumber();u=u.toNumber();return y.fromNumber(D/u)},"f%f":function(D,u){const f=D.toNumber();u=u.toNumber();if(!isFinite(f)||isNaN(u)||u===0)return y.fromNumber(NaN);if(!isFinite(u)||f===0)return D;D=f%u;isFinite(D)||c();return y.fromNumber(D)},"f~f":function(D,
u){D=D.toNumber();u=u.toNumber();u===0&&c();(!isFinite(D)&&isFinite(u)||isNaN(D)||isNaN(u))&&n();u=Math.trunc(D/u);isFinite(u)||n();return Math.abs(u)<4503599627370496?q.fromNumber(u):y.fromNumber(u)},"i+i":function(D,u){return Da.Zf(D,u,(f,E)=>f+E,(f,E)=>f.pd(E))},"i-i":function(D,u){return Da.Zf(D,u,(f,E)=>f-E,(f,E)=>f.Hd(E))},"i*i":function(D,u){return Da.Zf(D,u,(f,E)=>f*E,(f,E)=>f.Ub(E))},"i/i":function(D,u){u.equals(Da.XS.integer.fromNumber(0))&&c();D=D.toBig();u=u.toBig();return k.hb(D.Mb(u))},
"i%i":function(D,u){var f=D.toNumber();const E=u.toNumber();if(!isFinite(f)||isNaN(E)||E===0)return E===0&&c(),q.fromNumber(NaN);if(!isFinite(E)||f===0)return D;f=D.toNumber()%u.toNumber();isFinite(f)||c();return Math.abs(f)<4503599627370496?q.fromNumber(f):q.hb(ta(D.toBig().af(u.toBig())))},"i~i":function(D,u){const f=D.toNumber()/u.toNumber();isFinite(f)||c();return Math.abs(f)<4503599627370496?q.fromNumber(Math.trunc(f)):q.hb(ta(D.toBig().Mb(u.toBig())).round(0,0))},"c+c":function(D,u){const f=
D.toBig(),E=u.toBig();return a(D,u).hb(f.pd(E))},"c-c":function(D,u){const f=D.toBig(),E=u.toBig();return a(D,u).hb(f.Hd(E))},"c*c":function(D,u){const f=D.toBig(),E=u.toBig();return a(D,u).hb(f.Ub(E))},"c/c":function(D,u){try{const f=D.toBig(),E=u.toBig();return k.hb(f.Mb(E))}catch(f){c()}},"c%c":function(D,u){try{const f=D.toBig(),E=u.toBig();return k.hb(f.af(E))}catch(f){c()}},"c~c":function(D,u){try{const f=D.toBig(),E=u.toBig(),J=f.Mb(E).round(0,0);return q.hb(J)}catch(f){c()}},"a+a":function(D,
u){return M(D,u,"+")},"a-a":function(D,u){return M(D,u,"-")},"a*a":function(D,u){return M(D,u,"*")},"a/a":function(D,u){return M(D,u,"/")},"a%a":function(D,u){return M(D,u,"%")},"a~a":function(D,u){return M(D,u,"~")},"u+u":function(D,u){const f=g.dayTimeDuration,E=g.yearMonthDuration;f.matches(D)&&f.matches(u)||E.matches(D)&&E.matches(u)||v(D,u,"+");return E.matches(D)?E.fromMonthsMilliseconds(D.months+u.months,0):f.fromMonthsMilliseconds(0,D.milliseconds+u.milliseconds)},"u-u":function(D,u){const f=
g.dayTimeDuration,E=g.yearMonthDuration;f.matches(D)&&f.matches(u)||E.matches(D)&&E.matches(u)||v(D,u,"-");return E.matches(D)?E.fromMonthsMilliseconds(D.months-u.months,0):f.fromMonthsMilliseconds(0,D.milliseconds-u.milliseconds)},"u*n":function(D,u){const f=g.dayTimeDuration,E=g.yearMonthDuration;f.matches(D)||E.matches(D)||v(D,u,"*");u=u.toNumber();if(!isFinite(u))throw new F("Cannot multiply duration by "+isNaN(u)?"NaN":"+/-INF",isNaN(u)?"FOCA0005":"FODT0002");return E.matches(D)?E.fromMonthsMilliseconds(Math.round(D.months*
u),0):f.fromMonthsMilliseconds(0,Math.round(D.milliseconds*u))},"n*u":function(D,u){return gb["u*n"](u,D)},"u/n":function(D,u){const f=g.dayTimeDuration,E=g.yearMonthDuration;f.matches(D)||E.matches(D)||v(D,u,"/");u=u.toNumber();u===0&&c("FODT0002");if(isNaN(u))throw new F("Cannot divide duration by NaN","FOCA0005");u=E.matches(D)?D.months/u:D.milliseconds/u;isFinite(u)||n("FODT0002");return E.matches(D)?E.fromMonthsMilliseconds(Math.round(u),0):f.fromMonthsMilliseconds(0,Math.round(u))},"u/u":function(D,
u){var f=g.dayTimeDuration;const E=g.yearMonthDuration;f.matches(D)&&f.matches(u)||E.matches(D)&&E.matches(u)||v(D,u,"/");f=new ta(0);D=new ta(E.matches(D)?D.months:D.milliseconds);u=new ta(E.matches(u)?u.months:u.milliseconds);u.cmp(f)===0&&c();try{return k.hb(D.Mb(u))}catch(J){n()}},"t+u":function(D,u){const f=g.dayTimeDuration,E=g.yearMonthDuration;f.matches(u)||E.matches(u)||v(D,u,"+");return f.matches(u)?Da.codes[D.code].fromDate(new Date(D.UTCdate.getTime()+u.milliseconds),D.timezoneOffset):
cb(D,u.months)},"u+t":function(D,u){return gb["t+u"](u,D)},"t-u":function(D,u){const f=g.dayTimeDuration,E=g.yearMonthDuration;f.matches(u)||E.matches(u)||v(D,u,"-");return f.matches(u)?Da.codes[D.code].fromDate(new Date(D.UTCdate.getTime()-u.milliseconds),D.timezoneOffset):cb(D,-u.months)},"t-t":function(D,u){return g.dayTimeDuration.fromMonthsMilliseconds(0,D.UTCdate.getTime()-u.UTCdate.getTime())}};return K}();
// Input 12
function hb(a){function c(){function g(D){throw new F("In alphaCode '"+a+"' @ "+v+": "+D);}function l(D){const u=v>=a.length?-1:a.charAt(v++);u!==D&&g("Expected '"+D+"', found '"+u+"'")}function k(){let D=0,u=v;for(;v<a.length;)switch(a.charAt(v++)){case "{":D++;break;case "}":D--;break;case "]":case ",":if(D===0)return a.substring(u,--v);break;case " ":if(D===0)return a.substring(u,v-1)}return a.substring(u,v)}typeof a!=="string"&&sa.ka("No input to alphaParser");const q={};M.push(v);var y=a.charAt(v);
/[01+?*]/.test(y)?(v++,n.Od(q,"o",y)):n.Od(q,"o","1");if((y=k())&&!/^[ANFE]/.test(y))throw sa.ka("Invalid alphaCode '"+a+"'");for(n.Od(q,"p",y);v<a.length;)switch(y=a.charAt(v),y){case "]":case ",":return y=a.substring(M.pop(),v),n.Od(q,"code",y),q;case " ":v++;break;case "n":case "c":v++;var K=k();/^~/.test(K)&&(K="Q{http://www.w3.org/2001/XMLSchema}"+K.substring(1));n.Od(q,y,K);break;case "k":case "r":case "v":case "e":v++;l("[");K=c();l("]");n.Dj(q,y,K);break;case "a":case "m":case "u":case "i":case "d":v++;
l("[");K=[];if(a.charAt(v)==="]")v++,n.zh(q,y,K);else for(;;){const D=c();K.push(D);if(a.charAt(v)===",")v++;else{l("]");n.zh(q,y,K);break}}break;case "t":g("Tuple types not yet implemented");break;default:g("Expected one of n|c|t|k|r|v|a|u, found '"+y+"'")}y=a.substring(M.pop(),v);n.Od(q,"code",y);M.pop();return q}var n=ib;let v=0;const M=[];this.g=c}const ib={bl:function(){return{}},Od:function(a,c,n){a[c]=n},Dj:function(a,c,n){a[c]=n},zh:function(a,c,n){a[c]=n}};
function jb(a){return(new hb(a)).g()}function kb(a){let c=(a.o||"1")+a.p;a.n&&(c+=" n"+a.n);a.c&&(c+=" c"+a.c);a.k&&(c+=" k["+kb(a.k)+"]");a.v&&(c+=" v["+kb(a.v)+"]");a.r&&(c+=" r["+kb(a.r)+"]");if(a.a){c+=" a";for(var n=0;n<a.a.length;n++)c+=(n===0?"[":",")+kb(a.a[n]);c+="]"}if(a.m){c+=" m";for(n=0;n<a.m.length;n++)c+=(n===0?"[":",")+kb(a.m[n]);c+="]"}return c}
function lb(a,c){if(a.startsWith(c))return c;if(c.startsWith(a))return a;let n=Math.min(a.length,c.length);for(;n>0;){if(a.substring(0,n)===c.substring(0,n))return a.substring(0,n);n--}return""};
// Input 13
const pb=function(){function a(q,y){if(y==="")return q.eb;const K=y.charAt(0);return q.za.hasOwnProperty(K)?a(q.za[K],y.substring(1)):[]}function c(q,y){const K=a(q,q.options.hash(y));for(let D=0;D<K.length;D++)if(q.options.Lc(K[D].k,y))return K[D];return null}function n(q,y,K,D){if(D===""){for(D=0;D<q.eb.length;D++)if(q.options.Lc(q.eb[D].k,y)){q.eb[D]={k:y,v:K};return}q.eb.push({k:y,v:K})}else{const u=D.charAt(0);let f;q.za.hasOwnProperty(u)?f=q.za[u]:(f=new g(q.options),f.id=l++,q.za[u]=f);n(f,
y,K,D.substring(1))}}function v(q,y,K,D){const u=new g(q.options);let f=!1;if(D==="")u.eb=q.eb.map(function(J){return q.options.Lc(J.k,y)?(f=!0,{k:y,v:K}):J}),f||u.eb.push({k:y,v:K}),u.za=q.za;else{const J=D.charAt(0);for(var E in q.za)q.za.hasOwnProperty(E)&&(E===J?(u.za[E]=v(q.za[E],y,K,D.substring(1)),f=!0):u.za[E]=q.za[E]);f||(E=new g(q.options),E=v(E,y,K,D.substring(1)),u.za[J]=E);u.eb=q.eb}return u}function M(q,y,K){const D=new g(q.options);if(K==="")D.eb=q.eb.filter(function(u){return!q.options.Lc(u.k,
y)}),D.za=q.za;else{const u=K.charAt(0);for(const f in q.za)q.za.hasOwnProperty(f)&&(D.za[f]=f===u?M(q.za[f],y,K.substring(1)):q.za[f]);D.eb=q.eb}return D}function g(q=null){this.eb=[];this.za={};this.options=q||{hash:k.hash,Lc:k.Lc}}let l=0,k={hash:function(q){return q.hashCode()},Lc:function(q,y){try{return q.isNumeric()?q.hg(y):q.equals(y)&&(q.timezoneOffset!==void 0&&q.timezoneOffset!==null)===(y.timezoneOffset!==void 0&&y.timezoneOffset!==null)}catch(K){return!1}}};g.prototype={eb:[],za:{},options:k,
containsKey:function(q){return c(this,q)!==null},get:function(q){q=c(this,q);return q===null?[]:q.v},evaluate:function(q){q=c(this,q[0][0]);return q===null?nb:ob(q.v)},inSituPut:function(q,y){n(this,q,y,this.options.hash(q))},put:function(q,y){return v(this,q,y,this.options.hash(q))},remove:function(q){return M(this,q,this.options.hash(q))},forAllPairs:function(q){this.eb.forEach(q);for(let y in this.za)this.za.hasOwnProperty(y)&&this.za[y].forAllPairs(q)},keys:function(){const q=[];this.forAllPairs(function(y){q.push(y.k)});
return q},conforms:function(q,y,K){const D=this;return ob(D.keys()).every(function(u){let f=D.get(u);return q(u)&&K(f.length)&&ob(f).every(y)})},showValue:function(){let q="HashTrie map{",y="";this.forAllPairs(function(K){q+=y;y=", ";q+=sa.showValue(K.k);q+=": ";q+=sa.showValue(K.v)});return q+="}"}};return g}();
// Input 14
class qb{constructor(a){Array.isArray(a)||sa.ka("XdmArray value must be an array. Supplied:"+a);this.value=a}get(a){if(typeof a!="number")throw new F("Array subscript is not numeric","XPTY0004");if(a<1||a>this.value.length)throw new F("Array index ("+a+") out of bounds (1 to "+this.value.length+")","FOAY0001");return this.value[a-1]}evaluate(a){return ob(this.value[a[0][0]-1])}size(){return this.value.length}showValue(){let a="[";for(let c=0;c<this.value.length&&c<3;c++)c!==0&&(a+=","),a+=sa.showValue(this.value[c]);
this.value.length>=4&&(a+=",...("+this.value.length+")");return a+"]"}flatten(a){for(let c=0;c<this.value.length;c++){const n=this.value[c];for(let v=0;v<n.length;v++)a(n[v])}}conforms(a,c,n){var v=Da.XS.integer.fromNumber(this.value.length);if(!a(v))return!1;for(a=0;a<this.value.length;a++)if(v=this.value[a],!n(v.length)||!ob(v).every(c))return!1;return!0}};
// Input 15
const rb={xa:null,kc:null,uf:null,De:null,Xb:null,vd:null,Yb:null,yg:null,vf:null,zg:null,tg:null,Ya:null,Qh:null,tc:null,vg:null,tf:null,Xd:null,sg:null,wg:null,rg:null,xg:null,Wd:null,Vd:null,Ce:null,Ee:null,xf:null,qf:null,Be:null};function sb(a){if(/^[01?+*]/.test(a)){var c=a.charAt(0);var n=a.substring(1)}else c="1",n=a;n=tb(n);c=new vb(n,wb(c));c._alphaCode=a;return c}function xb(a){const c=yb(a);return new vb(c,wb(a.o))}function Ab(a){sa.assert(a instanceof Bb);return new vb(a,2)}
function Cb(){function a(n,v){return new vb(n,v)}function c(n,v){return a(new Db(Da.codes[n]),wb(v))}Fb=new Gb;Hb=new Ib;Jb=new Kb;Lb=new Mb;Nb=new Ob;Pb=new Qb;Rb=new Sb;Tb=new Ub;Vb=new Wb(9);Xb=new Wb(1);Yb=new Wb(2);Zb=new Wb(3);$b=new Wb(8);ac=new Wb(7);bc=new Wb(13);cc=new Db(Da.XS.double);dc=new Db(Da.XS.float);ec=new Db(Da.XS.string);fc=new Db(Da.XS.decimal);gc=new Db(Da.XS.integer);hc=new Db(Da.XS.dayTimeDuration);ic=new Db(Da.XS.anyAtomicType);jc.NMTOKENS=Da.type.NMTOKEN;jc.IDREFS=Da.type.IDREF;
jc.ENTITIES=Da.type.ENTITY;Object.assign(rb,{xa:a(kc,7),kc:a(kc,2),uf:a(kc,3),De:c("A","1"),Xb:c("A","?"),vd:c("A","*"),Yb:c("AS","1"),yg:c("AZ","1"),vf:c("AZ","?"),zg:c("AZ","*"),tg:c("AS","?"),Ya:c("AB","1"),Qh:c("AB","?"),tc:c("ADI","1"),vg:c("AD","1"),tf:c("ADI","?"),Xd:c("AO","1"),sg:c("AO","?"),wg:c("AF","1"),rg:c("AU","?"),xg:c("AQ","1"),Wd:a(Hb,3),Vd:a(Hb,7),Ce:c("ADI","*"),Ee:a(Nb,2),xf:a(Pb,2),qf:a(Nb,7),Be:a(Tb,1)})}function lc(a,c){return new vb(a.itemType,c)}
function mc(a,c){var n=a.cardinality;return new vb(a.itemType,n===1||c===1?1:c===2?n:n===2?c:nc(n)||nc(c)?7:n===6&&c===6?6:7)}
class vb{constructor(a,c){this.itemType=a;this.cardinality=c;this.g=this._alphaCode=null}V(){if(!this.g)if(this._alphaCode)this.g=jb(this._alphaCode);else{const a=Object.assign(this.itemType.V()||{});a.o=oc(this.cardinality);this.g=a}return this.g}fa(){this._alphaCode||(this._alphaCode=this.g?kb(this.g):(oc(this.cardinality)||"1")+this.itemType.fa());return this._alphaCode}matches(a){let c;switch(a.length){case 0:c=nc(this.cardinality);break;case 1:c=this.cardinality!==1;break;default:c=pc(this.cardinality)}if(!c)return!1;
const n=this.itemType.ga();return a.every(v=>n(v))}toString(){return this.itemType instanceof Ub&&this.cardinality===1?"empty-sequence()":this.itemType.toString()+oc(this.cardinality)}equals(a){return this.fa()===a.fa()}};
// Input 16
const yc=function(){class a{constructor(q,y){this.rb=q;this.J=q.alphaTree;this.arity=y;this.resultType=this.J.r?xb(this.J.r):sb("*");this.j=[];if(q.variadic){q=xb(this.J.a[0]);for(let K=0;K<y;K++)this.j.push(q)}else for(q=0;q<y;q++)this.j[q]=xb(this.J.a[q])}Ei(){return this.arity}bc(){return null}evaluate(){sa.ka("Not implemented");return nb}oc(){return this.bc()?this.bc().toEQName()+"#"+this.arity:"anonymous function (arity "+this.arity+")"}showValue(){return this.oc()}g(q,y){y=y&&y.name==="apply";
if(q.length!==this.arity)throw new F("Too "+(q.length<this.arity?"few":"many")+" arguments in call to "+this.oc()+": required "+this.arity+", supplied "+q.length,y?"FOAP0001":"XPTY0004");y=[];for(let K=0;K<q.length;K++)y[K]=qc.Hf(q[K],this.j[K],()=>"dynamic call of "+this.oc());return y}ha(q){return ob(qc.Hf(q,this.resultType,()=>"result of dynamic call of "+this.oc()))}Ve(){return new rc(this.j,this.resultType)}}class c extends a{constructor(q,y,K,D,u){super(q,K);this.name=y;this.ea=[xa.lh,xa.map,
xa.He,xa.qb,xa.hd].includes(y.uri)?qc.ti:qc.si;this.O=D;if(q.defaultToDot&&K===0||["accumulator-after","accumulator-before","lang"].includes(y.local))this.B=sc(u)}bc(){return this.name}evaluate(q,y,K){var D=this.bc().local;if(D==="current")throw new F("current() function cannot be evaluated dynamically","XTDE1360");if(D==="current-output-uri")return nb;if(D==="regex-group")return tc("");let u=y;this.B&&(u=y.X(),u.focus=uc(this.B));y=["string-length","normalize-space"].includes(D);const f=this.rb.defaultToDot;
D=D==="number";if((y||f||D)&&q.length===0){vc(u,"XPDY0002",". (dot)");K=sc(u);if(y||D)K=qc.Jb(K).next();y&&(K=Da.XS.string.cast(K));q.push([K])}else q=this.g(q,K);return this.ea(this.bc(),q,u,this.O)}}const n={NMTOKENS:"NMTOKEN",IDREFS:"IDREF",ENTITIES:"ENTITY"};class v extends a{constructor(q,y,K){super(q,1);this.name=y;if(q=n[y.local]){const D=Da.type[q].fromString;sa.assert(D);this.evaluate=u=>{u=this.g(u,K)[0][0].toString();u=ua.Hb(u).split(" ");return ob(u.map(D))}}else if(y.local==="QName"){const D=
qc.Sd(K,!0);this.evaluate=u=>{u=this.g(u,K)[0][0].toString();return wc(Da.XS.QName.fromString(u,D))}}else{const D=Da.type[y.local].cast;sa.assert(D);this.evaluate=u=>wc(D(this.g(u,K)[0][0]))}}bc(){return this.name}}class M extends a{constructor(q,y){super(q,q.alphaTree.a.length);this.R=q.componentBinding;this.B=y.fixed.Ja[this.R];this.body=qc.aa(this.B.actor,"body");this.name=Da.XS.QName.fromEQName(this.B.actor.name);this.O=qc.ib(this.B.actor,"u")}bc(){return this.name}evaluate(q,y,K){q=this.g(q,
K);y=y.X(!0);xc(y);this.O||(y.oa="function");y.ab={};y.Wa=null;y.focus=null;y.pa=this.B;for(K=0;K<q.length;K++)y.na[K]=q[K];return qc.evaluate(this.body,y)}}class g extends a{constructor(q,y,K){super(q,q.alphaTree.a.length);this.body=qc.aa(y,"body");this.O=y.C;this.B=K}evaluate(q,y,K){q=this.g(q,K);y=y.X(!0);xc(y);y.oa="function";y.ab={};y.Wa=null;y.focus=null;y.na=this.B.na.slice();y.pa=this.B.pa;K=this.O;for(let D=0;D<q.length;D++)y.na[parseInt(K[D].slot,10)]=q[D];return qc.evaluate(this.body,y)}}
class l extends a{constructor(q,y,K){super(q,q.alphaTree.a.length);this.O=y;this.la=K}oc(){return"partially-applied "+this.O.oc()}evaluate(q,y,K){const D=[];for(let u=0;u<this.O.arity;u++)if(D[u]=this.la[u]||q.shift(),!D[u])throw new F("Too few arguments in call of "+this.oc(),"XPTY0004");return this.O.evaluate(D,y,K)}}class k extends a{constructor(q,y){super(q,q.alphaTree.p==="F"?q.alphaTree.a.length:1);this.B=y}oc(){return"coerced "+this.B.oc()}evaluate(q,y,K){q=this.g(q,K);return this.ha(this.B.evaluate(q,
y,K).expand())}}return{XdmFunction:a,Ae:c,pf:v,sf:M,Ph:g,Oh:l,qg:k}}();
// Input 17
class zc{constructor(a){this.value=a}showValue(){return"XDMValue "+sa.showValue(this.value)}};
// Input 18
class Ac{constructor(a){this.value=a}containsKey(a){return typeof this.value[a]!=="undefined"}get(a){return Bc(this.value[a])}showValue(){return"JSValue "+sa.showValue(this.value)}};
// Input 19
const Cc=Da.XS,Dc=Object.getPrototypeOf(function*(){}).prototype,Ec=Object.getPrototypeOf(Dc);
function Fc(a){switch(typeof a){case "undefined":return[];case "string":return Cc.untypedAtomic.fromString(a);case "number":return Cc.double.fromNumber(a);case "boolean":return Cc.boolean.fromBoolean(a);case "function":return new Ac(a);case "object":if(Cc.anyAtomicType.matches(a)||Gc.U(a))return a;if(a instanceof qb)return a;if(a instanceof yc.XdmFunction||a instanceof pb)return a;if(a instanceof Ac)return a;if(a instanceof Date)return Cc.dateTime.fromString(a.toISOString());if(a instanceof Uint8Array)return Cc.hexBinary.fromUint8Array(a);
if(Array.isArray(a)){const c=[];a.forEach(function(n){c.push(Bc(n))});return new qb(c)}return a===null?[]:a instanceof zc?a.value:new Ac(a);default:return new Ac(a)}}function Hc(a){const c=[];a.forEach(function(n){n=Fc(n);Array.isArray(n)&&n.length===0||c.push(n)});return c}
function Ic(a){if(a instanceof qb){const c=[];a.value.forEach(n=>c.push(Jc(n)));return new qb(c)}if(a instanceof Ac){const c=a.value;if(typeof c!=="object"||c instanceof Uint8Array)return a;a=new pb;for(const n in c)if(c.hasOwnProperty(n)){const v=Bc(n)[0],M=Bc(c[n]);a.inSituPut(v,Kc(M))}return a}return a}function Jc(a){const c=[];a.forEach(function(n){n=Ic(n);Array.isArray(n)&&n.length===0||c.push(n)});return c}
function Lc(a,c){if(Array.isArray(a))throw new F("convertItemToJS() called for an array","SXJS0004");if(a===null)return null;if(Cc.string.matches(a)||Cc.anyURI.matches(a)||Cc.duration.matches(a)||Cc.hexBinary.matches(a)||Cc.base64Binary.matches(a)||Cc.untypedAtomic.matches(a))return a.toString();if(Cc.numeric.matches(a))return a.toNumber();if(Cc.boolean.matches(a))return a.toBoolean();if(Cc.dateTime.matches(a)||Cc.date.matches(a)||Cc.dateTimeStamp.matches(a)||Cc.time.matches(a)||Cc.gYearMonth.matches(a)||
Cc.gYear.matches(a)||Cc.gMonthDay.matches(a)||Cc.gMonth.matches(a)||Cc.gDay.matches(a))return a.toString();if(Cc.QName.matches(a))return a.toEQName();if(Gc.U(a))return a;if(a instanceof qb){const n=[];a.value.length!==0&&a.value.forEach(function(v){n.push(Mc(v,c))});return n}if(a instanceof pb){if(c){const n={};a.forAllPairs(function(v){n[v.k.toString()]=Mc(v.v,c)});return n}return new zc(a)}return a instanceof zc?a:a instanceof Ac?a.value:new zc(a)}
function Nc(a,c){const n=[];if(a.length===0)return null;if(a.length===1)return Lc(a[0],c);a.forEach(function(v){n.push(Lc(v,c))});return n}function Oc(a,c){function n(g){return Mc(g,!0)}if(c==="iterator")return a.mapOneToOne(n);if(c==="xdm")return a.expand();const v=[];let M;for(;(M=a.next())!=null;)v.push(n(M));switch(c){case "iterator":return ob(v);case "array":return v;default:return v.length===0?null:v.length===1?v[0]:v}}
function Pc(a){if(Ec.isPrototypeOf(a)){a=new Qc(a);for(var c=[],n=a.next();n!=null;)c.push(Pc(n)),n=a.next();return Kc(Bc(c))}if(Array.isArray(a)){c=[];for(n of a)c.push(Pc(n));return Kc(Bc([c]))}if(a instanceof Map){c=new pb;for(const [v,M]of a.entries())a=Pc(v),n=Pc(M),c.inSituPut(a[0],n);return Bc(c)}return Kc(Bc(a))}function Bc(a){if(Array.isArray(a))return Hc(a);a=Fc(a);return Array.isArray(a)&&a.length===0?[]:[a]}function Kc(a){sa.assert(Array.isArray(a));return Jc(a)}
function Mc(a,c=!1){return Array.isArray(a)?Nc(a,c):Lc(a,c)};
// Input 20
const Rc=Da.XS,Sc=Object.getPrototypeOf(function*(){}).prototype,Tc=Object.getPrototypeOf(Sc);
class Uc{*[Symbol.iterator](){let a=this.next();for(;a!=null;)yield Mc(a,!0),a=this.next()}filter(a){return new Vc(this,a)}next(){sa.ka("next()");return null}itemAt(a){let c=1,n;for(;(n=this.next())!==null;)if(c++===a)return n;return null}mapOneToOne(a){return new Wc(this,a)}mapOneToMany(a){return new Xc(this,a)}forEachItem(a){let c;for(;(c=this.next())!==null;)a(c)}some(a){let c;for(;(c=this.next())!==null;)if(a(c))return!0;return!1}every(a){let c;for(;(c=this.next())!==null;)if(!a(c))return!1;return!0}count(){let a=
0;this.forEachItem(function(){a++});return a}expand(){const a=[];this.forEachItem(function(c){a.push(c)});return a}showValue(){return"Iterator"}}class Yc extends Uc{constructor(a){super();this.g=a}next(){const a=this.g;this.g=null;return a}itemAt(a){return a===1?this.g:null}peek(){return this.g}expand(){return this.g===null?[]:[this.g]}showValue(){return"Singleton of "+sa.showValue(this.g)}}
class Zc extends Uc{next(){return null}peek(){return null}expand(){return[]}count(){return 0}filter(){return this}itemAt(){return null}mapOneToOne(){return this}mapOneToMany(){return this}forEachItem(){}some(){return!1}every(){return!0}showValue(){return"EmptyIter"}}
class $c extends Uc{constructor(a){super();Array.isArray(a)||sa.ka("ForArrayIter expects array. Supplied value: "+sa.showValue(a));this.g=a;this.j=0}next(){return this.j<this.g.length?this.g[this.j++]:null}peek(){return this.j<this.g.length?this.g[this.j]:null}expand(){return this.g}count(){return this.g.length}itemAt(a){return this.g[a-1]}showValue(){return"ForArray "+this.g}}class Qc extends Uc{constructor(a){super();this.g=a}next(){const a=this.g.next();return a.done?null:a.value}}
class ad{constructor(a){this.g=a}saxonIterator(){return this.g}*[Symbol.iterator](){let a=this.g.next();for(;a!=null;)yield Mc(a,!0),a=this.g.next()}}class bd extends Uc{constructor(a){super();this.g=a}next(){var a=this.g.next();if(a===null)return null;a=Array.isArray(a)?Bc([a]):Bc(a);a=Kc(a);return Tc.isPrototypeOf(a[0])?Pc(a[0]):a[0]}}
class Vc extends Uc{constructor(a,c){super();this.g=a;(this.j=c)||sa.ka("Filter iterator undefined predicate")}next(){for(;;){const a=this.g.next();if(!a)return null;const c=this.j(a);if(c==="done")return null;if(c)return a}}}
class Xc extends Uc{constructor(a,c){super();this.B=a;this.j=c;this.g=null}next(){for(;;){if(this.g!==null){var a=this.g.next();if(a)return a}a=this.B.next();if(a===null)return null;(this.g=this.j(a))&&!this.g.next&&sa.ka("Result of mapper is not an iterator, mapper = "+this.j)}}}
class Wc extends Uc{constructor(a,c){super();this.g=a;this.B=0;typeof a==="object"&&"next"in a||sa.ka("Base not an iterator");this.j=c}next(){for(;;){var a=this.g.next();if(a===null)return null;if(a=this.j(a,this.B++))return a}}}class cd extends Uc{constructor(a,c){super();this.g=a;this.j=c}next(){const a=this.g;return a?(this.g=this.j(a),a):null}peek(){return this.g}}
class dd extends Uc{constructor(a){super();Array.isArray(a)||sa.ka("Join iterator expects array");this.g=a}next(){for(;;){if(this.g.length===0)return null;const a=this.g[0].next();if(a===null)this.g.shift();else return a}}}
class ed extends Uc{constructor(a,c,n){super();this.g=fd(a);this.j=fd(c);this.B=n;this.current=null}next(){var a=this.g.peek();const c=this.j.peek();return a&&c?(a=this.B(a,c),a<0?this.current=this.g.next():a>0?this.current=this.j.next():(this.current=this.g.next(),this.j.next()),this.current):a?this.current=this.g.next():c?this.current=this.j.next():this.current=null}}
class gd extends Uc{constructor(a,c,n){super();this.g=fd(a);this.j=fd(c);this.B=n;this.current=null}next(){let a=this.g.peek(),c=this.j.peek();for(;a&&c;){const n=this.B(a,c);if(n<0)this.g.next(),a=this.g.peek();else if(n>0)this.j.next(),c=this.j.peek();else return this.current=this.g.next(),this.j.next(),this.current}return this.current=null}}
class hd extends Uc{constructor(a,c,n){super();this.g=fd(a);this.j=fd(c);this.B=n;this.current=null}next(){let a=this.g.peek();for(var c=this.j.peek();a&&c;){c=this.B(a,c);if(c<0)return this.current=this.g.next();c>0?this.j.next():(this.g.next(),this.j.next(),a=this.g.peek());c=this.j.peek()}return a&&!c?this.current=this.g.next():this.current=null}}function fd(a){return"peek"in a?a:new id(a)}
class id extends Uc{constructor(a){super();this.j=a;this.g=a.next()}next(){const a=this.g;a&&(this.g=this.j.next());return a}peek(){return this.g}showValue(){return"LookAhead of "+this.j.showValue()}}
class jd extends Uc{constructor(a){super();this.g=a;this.j=-1;this.position=0;this.current=null}next(){this.position++;this.current=this.g.next();this.current===null&&(this.position=-1);return this.current}last(){if(this.j<0)if(this.g instanceof ob)this.j=this.g.expand().length;else{const a=[];let c;for(;(c=this.g.next())!==null;)a.push(c);this.j=this.position+a.length;this.g=ob(a)}return this.j}showValue(){return"Tracker of "+this.g.showValue()}}
class kd extends Uc{constructor(a){super();this.current=a;this.position=1}next(){return null}last(){return 1}}class ld extends Uc{constructor(a){super();this.g=a}next(){const a=this.g.next();return a.done?null:a.value}}class md extends Uc{constructor(a,c,n){super();this.g=a;this.j=n;for(this.B=1;!(this.B++>=c);)if(this.g.next()==null){this.j=Number.NEGATIVE_INFINITY;break}}next(){return this.B++<=this.j?this.g.next():null}}const nb=new Zc;function wc(a){return new Yc(a)}
function nd(a){return new dd(a)}function uc(a){return new kd(a)}function od(a){return new jd(a)}function ob(a){return new $c(a)}function tc(a){return new Yc(Rc.string.fromString(a))}function pd(a){return new Yc(Rc.integer.fromNumber(a))}function qd(a){return new Yc(Rc.double.fromNumber(a))}function rd(a){return new Yc(Rc.decimal.hb(a))}function sd(a){return new Yc(Rc.boolean.fromBoolean(a))}var td={};td.Pj=Uc;td.Vj=hd;td.Empty=nb;td.Wj=Zc;td.Yj=Vc;td.ForArray=ob;td.Zj=$c;td.$j=ld;td.ck=gd;td.dk=Qc;
td.ek=ad;td.fk=nd;td.gk=dd;td.hk=id;td.kk=Xc;td.lk=Wc;td.Singleton=wc;td.pk=Yc;td.qk=uc;td.rk=kd;td.sk=cd;td.tk=md;td.Tracker=od;td.wk=jd;td.zk=ed;td.Bk=bd;td.oneBoolean=sd;td.jl=rd;td.oneDouble=qd;td.oneFloat=function(a){return new Yc(Rc.float.fromNumber(a))};td.oneInteger=pd;td.oneString=tc;
// Input 21
// Input 22
class ud{constructor(a,c,n=null){this.prefix=a===null?"":a;this.uri=c===null?"":c;this.parentNode=n===null?null:n;this.nodeType=13}}class vd{constructor(a,c,n){this.qname=a;this.value=c;this.parent=n;this.nodeType=2;this.name=a.toString();this.namespaceURI=a.uri;this.localName=a.local;this.prefix=a.prefix}};
// Input 23
const Gc=function(){function a(g){return g?g.nodeType===9?g:a(g.ownerDocument):null}const c=Da.XS;let n=1;const v={Vc:function(g){switch(g.nodeType){case 9:case 11:return nb;case 2:return g.parent?new cd(g.parent,l=>l.parentNode):nb;default:return(g=g.parentNode)?new cd(g,l=>l.parentNode):nb}},Sa:function(g){return nd([wc(g),v.Vc(g)])},Fa:function(g){if(g.nodeType===1){const l=g.attributes,k=g.ownerDocument.documentElement&&na.Pb(g.ownerDocument.documentElement),q=[];for(let y=0;y<l.length;y++){const K=
l[y].name;if(K.substring(0,5)!=="xmlns"||K.length!==5&&K.charAt(5)!==":")k&&l[y].localName.substring(0,4)==="xml:"?q.push(new vd(c.QName.fromParts("xml",xa.xml,l[y].localName.substring(4)),l[y].value,g)):q.push(new vd(c.QName.fromParts(l[y].prefix,l[y].namespaceURI,l[y].localName),l[y].value,g))}return ob(q)}return nb},Ia:function(g){function l(k){return new cd(k.firstChild,q=>q.nextSibling)}if(g===null)return nb;switch(g.nodeType){case 9:return l(g).filter(function(k){return!(k.nodeType===7&&k.target===
"xml"||k.nodeType===3||k.nodeType===4)});case 11:case 1:return l(g);default:return nb}},Se:function(g){return v.Ia(g).mapOneToMany(function(l){return v.he(l)})},he:function(g){return nd([wc(g),v.Se(g)])},Wg:function(g){switch(g.nodeType){case 9:case 11:return nb;case 2:case 13:return g=Gc.Va(g),g===null?nb:nd([v.Se(g),v.Wg(g)]);default:return v.Sa(g).mapOneToMany(function(l){return v.Xg(l).mapOneToMany(v.he)})}},Xg:function(g){switch(g.nodeType){case 9:case 11:case 2:case 13:return nb;default:return new cd(g.nextSibling,
l=>l.nextSibling)}},jb:function(g){return g.nodeType===1?ob(Gc.Ec(g).map(function(l){return new ud(l.prefix,l.uri,g)})):nb},parent:function(g){return wc(Gc.Va(g))},eg:function(g){return v.Sa(g).mapOneToMany(function(l){return v.Jc(l).mapOneToMany(function(k){return ob(v.he(k).expand().reverse())})})},Jc:function(g){switch(g.nodeType){case 9:case 11:case 2:case 13:return nb;default:return new cd(g.previousSibling,l=>l.previousSibling)}},self:function(g){return wc(g)}},M={Ha:v,Cg:{ancestor:v.Vc,"ancestor-or-self":v.Sa,
attribute:v.Fa,child:v.Ia,descendant:v.Se,"descendant-or-self":v.he,following:v.Wg,"following-sibling":v.Xg,namespace:v.jb,parent:v.parent,preceding:v.eg,"preceding-sibling":v.Jc,self:v.self},Ac:a,cc:function(g){return v.Sa(g).expand().pop()},dc:function(g){g._saxonDocumentNumber||(g._saxonDocumentNumber=n++);return g},ki:function(g){return Gc.dc(g)._saxonDocumentNumber},$:function(g){if(!g||!g.nodeType)return null;switch(g.nodeType){case 1:return c.QName.fromParts(g.prefix,g.namespaceURI,g.localName);
case 2:if(g.prefix==="xml")return c.QName.fromParts(g.prefix,xa.xml,g.localName);if(!g.qname)throw new F("ATTRIBUTE_NODE not local","SXJS0004");return g.qname;case 7:return c.QName.fromParts("","",g.target);case 13:return g.prefix?c.QName.fromParts("","",g.prefix):null;default:return null}},Tk:function(g,l){if(!g||!g.nodeType)return!1;switch(g.nodeType){case 1:case 2:return g.localName===l;case 7:return g.target===l;case 13:return g.prefix===l;default:return!1}},dd:function(g,l){if(!g||!g.nodeType)return!1;
switch(g.nodeType){case 1:return(g.namespaceURI||"")===l;case 2:return g.prefix==="xml"?xa.xml===l:g.namespaceURI===l;default:return l===""}},bd:function(g,l=null){let k=[];for(g=g.firstChild;g!==null;)g.nodeType!==1||l&&l!==g.tagName||k.push(g),g=g.nextSibling;return k},firstElementChild:function(g,l){for(g=g.firstChild;g!==null;){if(g.nodeType===1&&(!l||l===g.tagName))return g;g=g.nextSibling}return null},ed:function(g){const l=g.expand();if(l.length>1){let k=!0,q=!0,y=!0;l.forEach(K=>{Gc.U(K)?
(y=!1,Gc.Va(K)?k=!1:K._saxonDocumentNumber?k=!1:Gc.dc(K)):q=!1});if(!q&&!y)throw new F("Cannot sort a sequence including both nodes and non-nodes","XPTY0018");k||y||l.sort(Gc.mb);return ob(l).mapOneToOne(function(K,D){return D>0&&Gc.isSameNode(K,l[D-1])?null:K})}return ob(l)},mb:function(g,l){if(Gc.isSameNode(g,l))return 0;var k=Gc.Va(g),q=Gc.Va(l);if(k===null)return q===null?(k=Gc.dc,k(g)._saxonDocumentNumber-k(l)._saxonDocumentNumber):g===q?-1:Gc.mb(g,q);if(q===null)return l===k?1:Gc.mb(k,l);if(k===
q){q=g.nodeType;var y=l.nodeType;if(q===2){if(y===2){k=k.attributes;for(q=0;q<k.length;q++){y=c.QName.fromParts(k[q].prefix,k[q].namespaceURI,k[q].localName);if(y.equals(Gc.$(g)))return-1;if(y.equals(Gc.$(l)))return 1}throw new F("Att not found in parent","SXJS0004");}return y===13?1:-1}if(q===13)return y===13?g.prefix<l.prefix?-1:1:-1;if(y===2||y===13)return 1;k=g;for(q=l;;){k=k.previousSibling;if(!k)return-1;if(k===l)return 1;q=q.previousSibling;if(!q)return 1;if(q===g)return-1}}else{if(g===q)return-1;
if(l===k)return 1;y=v.Vc(k).count();const K=v.Vc(q).count();return y===K?Gc.mb(k,q):y>K?Gc.mb(k,l):Gc.mb(g,q)}},Va:function(g){return Gc.me(g)?g.parent:g.parentNode},Re:function(g,l,k){g.setAttributeNS("http://www.w3.org/2000/xmlns/",l===""?"xmlns":"xmlns:"+l,k)},Ec:function(g,l=v.Sa){let k=[{prefix:"xml",uri:xa.xml}],q={xml:!0};for(g=l(g);(l=g.next())!==null;)if(l.nodeType===1){var y=Gc.$(l);y.prefix===""&&y.uri===""&&(q[""]=!0);l=l.attributes;for(y=0;y<l.length;y++){var K=l[y].name;K.substring(0,
5)==="xmlns"&&(K.length!==5||q[""]?K.charAt(5)===":"&&(K=K.substring(6),q[K]||(q[K]=!0,k.push({prefix:K,uri:l[y].value}))):(q[""]=!0,l[y].value!==""&&k.push({prefix:"",uri:l[y].value})))}}else break;return k},Li:function(g){if(g.Sh){a:{g=g.Sh;for(l in g)if(g.hasOwnProperty(l)){var l=!1;break a}l=!0}return!l}l=g.attributes;for(g=0;g<l.length;g++){let k=l[g].name;if(k.substring(0,5)==="xmlns"&&(k.length===5||k.charAt(5)===":"))return!0}return!1},fh:function(g){for(g=g.firstChild;g!==null;){if(g.nodeType===
1&&Gc.Li(g)||!Gc.fh(g))return!1;g=g.nextSibling}return!0},Uk:function(g){return(g=g.attributes.getNamedItem("xmlns"))&&g.value===""},Hi:function(g,l){for(;g&&g.nodeType===1;){if(g.hasAttribute(l))return g.getAttribute(l);g=g.parentNode}return null},Ii:function(g,l,k){for(;g&&g.nodeType===1;){if(g.hasAttributeNS(l,k))return g.getAttributeNS(l,k);g=g.parentNode}return null},getAttribute:function(g,l,k){return g.hasAttribute(l)?g.getAttribute(l):arguments.length>2?k:null},Nk:function(g,l){return parseInt(g.getAttribute(l),
10)},yj:function(g,l,k){const q=c.QName;if(/:/.test(l))return q.fromString(l,function(y){return y==="xml"?xa.xml:g.lookupNamespaceURI(y)});k=k?g.lookupNamespaceURI(null)||"":"";return q.fromParts("",k,l)},me:function(g){return g instanceof vd},Dd:function(g){return g instanceof ud},Ze:function(g){return g instanceof abstractNode&&(g.nodeType===9||g.nodeType===11)},ag:function(g){return g instanceof abstractNode&&g.nodeType===1},U:function(g){return g instanceof abstractNode&&!(g.nodeType===7&&g.target===
"xml")||Gc.me(g)||Gc.Dd(g)},Yk:function(g){return g instanceof abstractNode&&g.nodeType===7},isSameNode:function(g,l){return g===l||Gc.Dd(g)&&Gc.Dd(l)&&g.parentNode&&l.parentNode&&g.parentNode===l.parentNode&&g.prefix===l.prefix||Gc.me(g)&&Gc.me(l)&&g.parent&&l.parent&&g.parent===l.parent&&Gc.$(g).equals(Gc.$(l))},Zi:function(g,l){return g===l||g===9&&l===11||l===9&&g===11},Zk:function(g){return g instanceof abstractNode&&(g.nodeType===3||g.nodeType===4)},fd:function(g){return g.startsWith("blob:")||
g.startsWith("data:")||/^(?:[A-Za-z][A-Za-z0-9+.-]+:)?\/\//i.test(g)},baseURI:function(g){function l(k){const q=Gc.Va(k);k=q?Gc.baseURI(q):k._saxonBaseUri?k._saxonBaseUri:null;k!=null&&k.indexOf("\\")>=0&&(k=k.replaceAll("\\","/"),k.length>1&&k[1]===":"&&(k="file:///"+k));return k}if(g===null||Gc.Dd(g))return null;if(g.nodeType===1&&g.hasAttribute("xml:base")){const k=g.getAttribute("xml:base");return Gc.fd(k)?k:l(g)?na.pb(k.toString(),l(g)).toString():null}return l(g)}};sa.wj(M);return M}();
// Input 24
function wd(a,c){a.g=c}function xd(a,c){a._alphaCode=c.replace(/^[01?*+]/,"")}function yd(a){return/^N/.test(a.V().p)}function zd(a){return a instanceof Mb}
class Bb{constructor(){this.g=this._alphaCode=null}ga(){return()=>!0}V(){if(!this.g)if(this._alphaCode)this.g=jb(this._alphaCode);else return null;return this.g}fa(){if(!this._alphaCode)if(this.g)xd(this,kb(this.g));else return null;return this._alphaCode}ma(a="A"){return this.V().p.startsWith(a)}isNumeric(){return zd(this)||/^A[ODF]/.test(this.V().p.substring(0))}gd(){return/^F/.test(this.V().p)}Vi(){return!0}J(){return null}B(){return null}O(){return null}toString(){return this.fa()}equals(a){return this.fa()===a.fa()}}
class Gb extends Bb{constructor(){super();xd(this,"");this.g={p:""}}ga(){return()=>!0}toString(){return"item()"}}var Fb;const kc=new Gb;class Ib extends Bb{constructor(){super();xd(this,"N");this.g={p:"N"}}ga(){return a=>Gc.U(a)}toString(){return"node()"}}var Hb;class Kb extends Bb{constructor(){super();xd(this,"N u[NT,NP,NC,NE]");this.g={p:"N",u:[{p:"NT"},{p:"NP"},{p:"NC"},{p:"NE"}]}}ga(){return a=>Gc.U(a)&&[1,3,4,8,7].includes(a.nodeType)}toString(){return"node()"}}var Jb;
function Ad(a){switch(a){case 9:return Vb;case 1:return Xb;case 2:return Yb;case 8:return $b;case 3:case 4:return Zb;case 7:return ac;case 13:return bc;default:throw new F("Unknown node kind "+a);}}function Bd(a){switch(a){case 1:return"NE";case 3:return"NT";case 2:return"NA";case 9:return"ND";case 8:return"NC";case 4:return"NT";case 7:return"NP";case 13:return"NN";case 0:return"N";default:throw new F("Unknown node kind "+a+" in NodeKindTest");}}
class Wb extends Bb{constructor(a){super();this.kind=a;a=Bd(a);xd(this,a);this.g={p:a}}ga(){switch(this.kind){case 9:return a=>Gc.U(a)&&(a.nodeType===9||a.nodeType===11);case 3:case 4:return a=>Gc.U(a)&&(a.nodeType===3||a.nodeType===4);default:return a=>Gc.U(a)&&a.nodeType===this.kind}}toString(){switch(this.kind){case 9:return"document-node()";case 1:return"element(*)";case 2:return"attribute(*)";case 8:return"comment()";case 3:case 4:return"text()";case 7:return"processing-instruction()";case 13:return"namespace-node()";
case 0:return"node()";default:throw new F("Unknown node kind "+this.kind+" in NodeKindTest");}}}var Vb,Xb,Yb,$b,Zb,ac,bc;class Cd extends Wb{constructor(a,c){super(a);this.name=c;a=Bd(a);xd(this,a+" n"+c.toEQName());this.g={p:a,n:c.toEQName()}}ga(){const a=this.name;return c=>{var n;if(n=Gc.U(c)&&c.nodeType===this.kind)n=(c=Gc.$(c))&&a.equals(c);return n}}toString(){return super.toString().replace(/\(\*?\)/,"("+this.V().n+")")}}
class Dd extends Wb{constructor(a,c){super(a);this.localName=c;a=Bd(a);xd(this,a+" n*:"+c);this.g={p:a,n:"*:"+c}}ga(){return a=>Gc.U(a)&&a.nodeType===this.kind&&Gc.$(a).local===this.localName}toString(){return super.toString().replace(/\(\*?\)/,"(*:"+this.localName+")")}}
class Ed extends Wb{constructor(a,c){super(a);this.uri=c;a=Bd(a);xd(this,a+" nQ{"+c+"}*");this.g={p:a,n:"Q{"+c+"}*"}}ga(){return a=>Gc.U(a)&&a.nodeType===this.kind&&Gc.$(a).uri===this.uri}toString(){return super.toString().replace(/\(\*?\)/,"Q{"+this.uri+"}*)")}}
class Fd extends Wb{constructor(a){super(9);this.j=a;xd(this,"ND e["+a.fa()+"]");this.g={p:"ND",e:a.V()}}ga(){return a=>Gc.U(a)&&(a.nodeType===9||a.nodeType===11)&&this.j.ga()(a.firstChild)}toString(){return"document-node("+this.j.toString()+")"}}class Db extends Bb{constructor(a){super();this.Qc=a;xd(this,a.code);this.g={p:a.code}}ga(){return a=>this.Qc.matches(a)}toString(){return"xs:"+this.Qc.name}}
class Mb extends Bb{constructor(){super();xd(this,"A m[AO,AD,AF]");this.g={p:"A",m:[{p:"AO"},{p:"AD"},{p:"AF"}]}}ga(){return a=>/^A[ODF]/.test(a.code)}toString(){return"xs:numeric"}}var Lb;class Ub extends Bb{fa(){return"E"}V(){return{p:"E"}}ga(){return()=>!1}toString(){return"xs:error"}}var Tb;
class Gd extends Bb{constructor(){super();this.j=[];this.resultType=null}Eb(a){if(!(a instanceof Gd))return Hd.Wb;if(a instanceof Qb||a instanceof Sb)return Hd.Ib;if(!(a instanceof rc||a instanceof Id||a instanceof Jd))return Hd.lc;if(this.j.length!==a.j.length)return Hd.Wb;const c=function(v,M,g){return v.map((l,k)=>g(l,M[k]))}(this.j,a.j,Hd.yh),n=Hd.yh(this.resultType,a.resultType);return c.every(v=>v===Hd.sb)&&n===Hd.sb?Hd.sb:c.every(v=>[Hd.sb,Hd.lc].includes(v)&&[Hd.sb,Hd.Ib].includes(n))?Hd.Ib:
c.every(v=>[Hd.sb,Hd.Ib].includes(v)&&[Hd.sb,Hd.lc].includes(n))?Hd.lc:Hd.ug}We(){return rb.xa}}class Ob extends Gd{constructor(){super();xd(this,"F");this.g={p:"F"}}ga(){return a=>a instanceof yc.XdmFunction||a instanceof qb||a instanceof pb||a instanceof Ac}Eb(a){return a instanceof Ob?Hd.sb:/^F/.test(a.V().p)?Hd.Ib:Hd.Wb}toString(){return"function(*)"}}var Nb;function Kd(a,c){let n=[];c.forEach(v=>{n.push(a.j[v])});return new rc(n,a.resultType)}
class rc extends Gd{constructor(a,c){super();sa.assert(c instanceof vb);sa.assert(a.every(n=>n instanceof vb));this.j=a;this.resultType=c;xd(this,"F a["+a.map(n=>n.fa()).join(",")+"] r["+c.fa()+"]");wd(this,{p:"F",a:a.map(n=>n.V()),r:c.V()})}ga(){const a=this;return function(c){return c instanceof qb?a.j.length===1&&a.j[0].cardinality===2&&c.conforms(a.j[0].itemType.ga(),a.resultType.itemType.ga(),Ld(a.resultType.cardinality)):c instanceof pb?a.j.length===1&&a.j[0].cardinality===2&&a.j[0].itemType instanceof
Db&&c.conforms(()=>!0,a.resultType.itemType.ga(),Ld(a.resultType.cardinality)):c instanceof yc.XdmFunction?(c=a.Eb(c.Ve()),[Hd.sb,Hd.Ib].includes(c)):!1}}yc(){return this.j}We(){return this.resultType}toString(){return"(function("+this.j.map(a=>a.toString()).join(",")+") as "+this.resultType.toString()+")"}}
class Qb extends Gd{constructor(){super();xd(this,"FM");this.g={p:"FM"}}yc(){return[Ab(this.B())]}B(){return ic}O(){return rb.xa}ga(){return a=>a instanceof pb||a instanceof Ac}toString(){return"map(*)"}}var Pb;
class Id extends Gd{constructor(a,c){super();sa.assert(a instanceof Bb);sa.assert(c instanceof vb);this.R=a;this.valueType=c;xd(this,"FM k["+a.fa()+"] v["+c.fa()+"]");this.g={p:"FM",k:a.V(),v:c.V()}}ga(){return a=>a instanceof pb&&a.conforms(this.R.ga(),this.valueType.itemType.ga(),Ld(this.valueType.cardinality))}toString(){return"map("+this.R.toString()+","+this.valueType.toString()+")"}yc(){return[Ab(this.B())]}B(){return this.R}O(){return this.valueType}We(){return this.valueType}}
class Sb extends Gd{constructor(){super();xd(this,"FA");this.g={p:"FA"}}ga(){return a=>a instanceof qb}toString(){return"array(*)"}yc(){return[rb.tc]}J(){return rb.xa}}var Rb;class Jd extends Gd{constructor(a){super();sa.assert(a instanceof vb);this.R=a;xd(this,"FA v["+a.fa()+"]");this.g={p:"FA",v:a.V()}}ga(){return a=>a instanceof qb&&a.value.every(c=>this.R.matches(c))}toString(){return"array("+this.R.toString()+")"}yc(){return[rb.tc]}J(){return this.R}We(){return this.R}}
class Md extends Bb{constructor(a,c){super();this.j=a;this.R=c;var n=a.V();const v=c.V();n=lb(n.p,v.p);xd(this,n+" u["+a.fa()+","+c.fa()+"]");this.g={p:n,u:[a.V(),c.V()]}}ga(){const a=this.j.ga(),c=this.R.ga();return n=>a(n)||c(n)}B(){const a=this.j.B(),c=this.R.B();return new Md(a,c)}J(){const a=this.j.J(),c=this.R.J(),n=a.cardinality;return n===c.cardinality?new vb(new Md(a.itemType,c.itemType),n):rb.xa}}
class Nd extends Bb{constructor(a,c){super();this.j=a;this.R=c;var n=a.V();const v=c.V();n=n.p.startsWith(v.p)?n.p:v.p.startsWith(n.p)?v.p:n.p.charAt(0)===v.p.charAt(0)?n.p.charAt(0):"";xd(this,n+" i["+a.fa()+","+c.fa()+"]");this.g={p:n,i:[a.V(),c.V()]}}ga(){const a=this.j.ga(),c=this.R.ga();return n=>a(n)&&c(n)}}
class Od extends Bb{constructor(a,c){super();this.j=a;this.R=c;var n=a.V();const v=c.V();n=n.p.startsWith(v.p)?n.p:v.p.startsWith(n.p)?v.p:n.p.charAt(0)===v.p.charAt(0)?n.p.charAt(0):"";xd(this,n+" d["+a.fa()+","+c.fa()+"]");this.g={p:n,d:[a.V(),c.V()]}}ga(){const a=this.j.ga(),c=this.R.ga();return n=>a(n)&&!c(n)}}const Pd={};function tb(a){var c=Pd[a];if(c)return c;c=jb(a);c=yb(c);return Pd[a]=c}
function yb(a){var c=a.p;if(c==="")return Fb;if(a.u)return c=yb(a.u[0]),a.u.slice(1).reduce((n,v)=>new Md(n,yb(v)),c);if(a.i)return c=yb(a.i[0]),a.i.slice(1).reduce((n,v)=>new Nd(n,yb(v)),c);if(a.d)return new Od(yb(a.d[0]),yb(a.d[1]));switch(c.charAt(0)){case "A":if(a.n==="Q{http://www.w3.org/2001/XMLSchema}numeric")return Lb;if(a.m){a=a.m;if(a.length===3&&a.some(n=>n.p==="AO")&&a.some(n=>n.p==="AD")&&a.some(n=>n.p==="AF"))return Lb;sa.ka("Unhandled atomic union type")}else return new Db(Da.codes[c]);
break;case "F":switch(c){case "FA":return a.v?new Jd(xb(a.v)):Rb;case "FM":return a.k&&a.v?new Id(yb(a.k),xb(a.v)):Pb;default:return a.a?(c=a.a.map(xb),a=a.r?xb(a.r):rb.xa,new rc(c,a)):Nb}case "N":if(c==="N")return Hb;c={ND:9,NE:1,NA:2,NT:3,NC:8,NP:7,NN:13}[c];return a.n?(a=a.n,/\}\*$/.test(a)?new Ed(c,a.substring(2,a.length-2)):/^\*:/.test(a)?new Dd(c,a.substring(2)):new Cd(c,Da.XS.QName.fromEQName(a))):a.e?(a=yb(a.e),new Fd(a)):new Wb(c);case "E":return Tb}}
const Qd={IDREFS:"ASNTNCR",ENTITIES:"ASNTNCE",NMTOKENS:"ASNTK"},jc={};var ic,cc,dc,ec,fc,gc,hc;
// Input 25
const Hd=function(){function a(k,q){sa.assert(k instanceof Bb);sa.assert(q instanceof Bb);const y=k.fa()+"<>"+q.fa(),K=l[y];if(K)return K;k=M(k,q);return l[y]=k}function c(k,q){sa.assert(k instanceof Bb);sa.assert(q instanceof Bb);switch(a(k,q)){case 0:case 1:return k;case 2:return q;case 3:case 4:return k=k.V(),q=q.V(),yb({p:lb(k.p,q.p),u:[k,q]})}}function n(k,q){sa.assert(k instanceof Bb);sa.assert(q instanceof Bb);switch(a(k,q)){case 0:case 1:return q;case 2:return k;case 3:return k=k.V(),q=q.V(),
yb({p:k.p.startsWith(q.p)?k.p:q.p.startsWith(k.p)?q.p:k.p.charAt(0)===q.p.charAt(0)?k.p.charAt(0):"",i:[k,q]});case 4:return Tb}}function v(k,q){return k===0&&q===0?0:k!==0&&k!==1||q!==0&&q!==1?k!==0&&k!==2||q!==0&&q!==2?k===4||q===4?4:3:2:1}function M(k,q){function y(z,b){return(z||"")===(b||"")?0:z&&!b?2:b&&!z?1:4}function K(z){return z===1?2:z===2?1:z}function D(z){return z.n||z.e||z.u||z.i||z.d}var u=k.V();const f=q.V(),E=k.fa(),J=q.fa();if(u.p==="F"){if(!(k instanceof Gd&&q instanceof Gd))return 3;
sa.assert(k.Eb);return k.Eb(q)}if(E===J)return 0;if(k instanceof Ub)return 2;if(q instanceof Ub)return 1;if(zd(k))return zd(q)?0:/^A[ODF]/.test(f.p)?1:f.p==="A"||f.p===""?2:4;if(zd(q))return K(M(q,k));if(u.p===f.p){if(yd(k))return u.u&&f.u?3:u.e&&f.e?y(u.e,f.e):u.n&&f.n?y(u.n,f.n):D(u)&&D(f)?4:D(u)&&!D(f)?2:D(f)&&!D(u)?1:0;if(k.ma())return 0;if(u.p==="FA")return k=k.J?k.J():rb.xa,q=q.J?q.J():rb.xa,g(k,q);if(u.p==="FM")return u=a(k.B(),q.B()),q=g(k.O(),q.O()),v(u,q);if(!(k instanceof Gd&&q instanceof
Gd))return 3;sa.assert(k.Eb);return k.Eb(q)}return u.p.startsWith(f.p)?u.u?3:2:f.p.startsWith(u.p)?u.u?3:1:4}function g(k,q){sa.assert(k instanceof vb);sa.assert(q instanceof vb);var y=k.cardinality;var K=q.cardinality;y=y===K?Hd.sb:(y|K)===y?Hd.Ib:(y|K)===K?Hd.lc:(y|K)===0?Hd.Wb:Hd.ug;k=a(k.itemType,q.itemType);return v(y,k)}const l={};return{sb:0,Ib:1,lc:2,ug:3,Wb:4,Eb:a,$i:function(k,q){sa.assert(k instanceof Bb);sa.assert(q instanceof Bb);k=a(k,q);return k===0||k===2},Uj:c,Gd:function(k){sa.assert(k.length>
0);return k.slice(1).reduce((q,y)=>c(q,y),k[0])},Mi:function(k){sa.assert(k.length>0);return k.slice(1).reduce((q,y)=>n(q,y),k[0])},yh:g}}();
// Input 26
function pc(a){return(a&4)!==0}function nc(a){return(a&1)!==0}function Rd(a){let c=0;a.forEach(n=>c|=n);c===5&&(c=7);return c}function wb(a){return{0:1,1:2,"?":3,"+":6,"*":7}[a]}function Sd(a,c){return(nc(a)&&nc(c)?1:0)+(a!==1||c!==1?2:0)+(a===1&&!pc(c)||c===1&&!pc(a)?0:4)}function Td(a){switch(a){case "1":return c=>c===1;case "0":return c=>c===0;case "?":return c=>c<2;case "+":return c=>c>0;case "*":return()=>!0}}
function Ld(a){switch(a){case 1:return c=>c===0;case 2:return c=>c===1;case 4:return c=>c>1;case 3:return c=>c<2;case 6:return c=>c>0;default:return()=>!0}}function oc(a){switch(a){case 3:return"?";case 2:return"";case 7:return"*";case 6:return"+";case 4:return"+";case 1:return"0";default:return"*"}};
// Input 27
function Ud(a,c,n){a=a.expand();c=c.expand();a=ob(a);c=ob(c);let v,M;for(;;){v=a.next();M=c.next();if(v===null)return M===null;if(M===null||!Vd(v,M,n))return!1}}
function Vd(a,c,n){var v=Gc.Ha;if(a===c)return!0;if(Gc.U(a)){if(!Gc.U(c)||!Gc.Zi(a.nodeType,c.nodeType))return!1;switch(a.nodeType){case 9:case 11:return Ud(v.Ia(a),v.Ia(c));case 1:if(!Gc.$(a).equals(Gc.$(c)))return!1;const M=v.Fa(a).expand();if(M.length!==v.Fa(c).count())return!1;for(let g=0;g<M.length;g++){const l=M[g],k=Gc.$(l),q=k.uri?k.uri:null;if(!c.hasAttributeNS(q,k.local)||c.getAttributeNS(q,k.local)!==l.value)return!1}return Ud(v.Ia(a),v.Ia(c),n);case 2:return Gc.$(a).equals(Gc.$(c))&&a.value===
c.value;case 13:return a.prefix===c.prefix&&a.uri===c.uri;case 7:return a.target===c.target&&(n?n(a.textContent,c.textContent):a.textContent===c.textContent);case 3:case 4:case 8:return n?n(a.textContent,c.textContent):a.textContent===c.textContent;default:throw new F("Unknown node type "+a.nodeType,"SXJS0003");}}else{if(a instanceof qb){if(!(c instanceof qb&&c.value.length===a.value.length))return!1;for(v=0;v<a.value.length;v++)if(!Ud(ob(a.value[v]),ob(c.value[v]),n))return!1;return!0}if(a instanceof
pb){if(!(c instanceof pb))return!1;n=a.keys();v=c.keys();return n.length!==v.length?!1:ob(n).every(function(M){return c.containsKey(M)&&Ud(ob(a.get(M)),ob(c.get(M)))})}if(a instanceof yc.XdmFunction||c instanceof yc.XdmFunction)throw new F("Function types, other than map(*) or array(*) cannot be tested for equality","FOTY0015");if(Wd.pc(a)&&Wd.pc(c))return!0;if(n&&a.isStringLike()&&c.isStringLike())return n(a.value,c.value);try{return a.equals(c)}catch(M){return!1}}}
function Xd(a,c,n){let v=a.next(),M=c.next();for(;;){if(v===null)return M===null?0:-1;if(M===null)return 1;if(n)if(Vd(v,M,n.equals))v=a.next(),M=c.next();else return Wd.pc(v)?-1:/^AS/.test(v.code)&&/^AS/.test(M.code)?n.compare(v.value,M.value):v.compareTo(M);else if(Vd(v,M))v=a.next(),M=c.next();else return Wd.pc(v)?-1:v.compareTo(M)}};
// Input 28
const Wd=function(){function a(A,x){return A.equals(x)}function c(A,x){return A.compareTo(x)}function n(A){return A===null}function v(A){return(I.double.matches(A)||I.float.matches(A))&&isNaN(A.toNumber())}function M(A,x){return function(N,P){return x(N)||x(P)?x(N)?x(P):!1:A(N,P)}}function g(A,x){return function(N,P){return x(N)||x(P)?x(N)?x(P)?0:-1:1:A(N,P)}}function l(A){return g(A,n)}function k(A,x){return A===null?NaN:I.numeric.matches(A)?A.toNumber():x?I.double.fromString(A.toString()).toNumber():
I.double.ie(A.toString()).toNumber()}function q(A){return function(x,N){x=k(x,A);N=k(N,A);return isNaN(x)?isNaN(N)?0:-1:isNaN(N)?1:x-N}}function y(A){return function(x,N){x=k(x,A);N=k(N,A);return isNaN(x)?isNaN(N):isNaN(N)?!1:x-N===0}}function K(A,x){return function(N,P){N=N.toString();P=P.toString();var T=A(N.toLowerCase(),P.toLowerCase());if(T===0){for(T=0;T<N.length;T++)if(N.charAt(T)!==P.charAt(T))return x===(N.charAt(T)===N.charAt(T).toLowerCase())?-1:1;return 0}return T}}function D(A){return function(x,
N){return x.isStringLike()&&N.isStringLike()?A(x.value,N.value):x.equals(N)}}function u(A){return function(x,N){return x.isStringLike()&&N.isStringLike()?A(x.value,N.value):x.compareTo(N)}}function f(A,x){const N=A.split("|");if(N[0]==="DESC"){const Y=f(A.slice(5),x);return{equals:Y.equals,compare:function(da,Z){return Y.compare(Z,da)}}}const P={equals:null,compare:null};let T;switch(N[0]){case "NC":return P.equals=y(!1),P.compare=q(!1),P;case "QUNC":return P.equals=y(!0),P.compare=q(!0),P;case "DblSC":return P.equals=
M(a,v),P.compare=l(g(c,v)),P;case "CCC":return P.equals=D(B().equals),P.compare=l(u(B().compare)),P;case "TEXT":return A=N[1]||"http://www.w3.org/2005/xpath-functions/collation/codepoint",T=L(A,x),ea(T,A),P.equals=M(function(Y,da){return T.equals(Y.toString(),da.toString())},n),P.compare=l(function(Y,da){return u(T.compare)(I.string.cast(Y),I.string.cast(da))}),P;case "CAVC":case "DecSC":case "GAC":case "AtSC":case "CalVC":return{equals:M(a,n),compare:l(g(c,v))};case "EQC":return P.equals=M(a,n),
P.compare=function(Y,da){return P.equals(Y,da)?0:1},P;case "CAC":return A=N[1]||"http://www.w3.org/2005/xpath-functions/collation/codepoint",T=L(A,x),ea(T,A),P.equals=function(Y,da){return T.equals(Y.toString(),da.toString())},P.compare=function(Y,da){return T.compare(Y.toString(),da.toString())},P;default:throw new F("Unknown comparer "+A,"SXJS0003");}}function E(A,x){const N=x.fixed.ea;let P=null;A.comp&&(P=A.comp,P=P.replace(/^DESC\|/,""));let T=N.nc(N.aa(A,"collation"),x).next(),Y=N.nc(N.aa(A,
"order"),x).next(),da=N.nc(N.aa(A,"lang"),x).next(),Z=N.nc(N.aa(A,"caseOrder"),x).next();A=N.nc(N.aa(A,"dataType"),x).next();Z=T===null&&Z!==null?Z.toString():"#default";try{da=T===null&&da!==null&&da.toString()!==""?I.language.fromString(da.toString()):null}catch(la){throw new F("@lang: "+la.message,"XTDE0030");}P==="CalVC"&&(A=null);Y=Y===null?"ascending":Y.toString();A=A===null?null:A.toString();T=T===null?da===null?"http://www.w3.org/2005/xpath-functions/collation/codepoint":"http://www.w3.org/2013/collation/UCA?lang="+
da.toString():T.toString();return{zd:P,collation:T,order:Y,lang:da,Ke:Z,dataType:A}}function J(A,x){return z(E(A,x),x)}function z(A,x){function N(T){return A.order==="descending"?function(Y,da){return T(da,Y)}:T}x=L(A.collation,x);ea(x,A.collation);x=x.compare;const P=A.Ke!=="#default"?K(x,A.Ke==="lower-first"):u(x);if(A.dataType==="number")return N(q(!1));if(A.dataType==="text")return N(l(function(T,Y){return P(I.string.cast(T),I.string.cast(Y))}));if(A.zd){x=A.zd;if(x==="DblSC")return N(l(g(c,v)));
if(x==="CalVC"||x==="DecSC")return N(l(c));if(x==="CCC")return N(l(P))}return N(P)}function b(A,x){switch(A){case "=":case "eq":return x===0;case "<":case "lt":return x<0;case ">":case "gt":return x>0;case ">=":case "ge":return x>=0;case "<=":case "le":return x<=0;case "!=":case "ne":return x!==0;default:throw new F("Unknown operator "+A,"SXJS0003");}}function d(A,x){return A.map(function(N){var P=x.fixed.ea;N=P.aa(N,"dataType");P=N===null?null:P.evaluate(N,x).next();return P==="number"?function(T){return T===
null?null:I.double.ie(T.toString())}:P==="text"?function(T){return T===null?null:I.string.cast(T)}:function(T){return T}})}function h(A,x){return A.substring(0,x.length)===x}function t(A,x){return A.substring(A.length-x.length)===x}function m(A,x){return x&&(x=x.next())?x.toString():A.collation||qc.Wf(A,"defaultCollation")}function L(A,x){x=A?h(A,"http://www.w3.org/2013/collation/UCA")&&A.length>36?V(A,A.substring(37),x):h(A,"http://saxon.sf.net/collation")&&A.length>29?V(A,A.substring(30),x):x.fixed.options.uc[A]:
B();if(!x)throw new F("Unrecognized collation "+A,"FOCH0002");return x}function V(A,x){if(x==="")x=B();else if(x==="strength=secondary"||x==="strength=2")x=Q();else{const N={};x.split(";").forEach(function(T){T=T.split("=");N[T[0]]=T[1]});x={};if(N.fallback==="no")throw new F("Unsupported collation "+A,"FOCH0002");if(N.strength)if(N.strength==="primary"||N.strength==="1")x.sensitivity="base";else if(N.strength==="secondary"||N.strength==="2")x.sensitivity="accent";else if(N.strength==="tertiary"||
N.strength==="3")x.sensitivity="variant";else if(N.strength==="quaternary"||N.strength==="4"||N.strength==="identical"||N.strength==="5")x.sensitivity="variant",x.ignorePunctuation=!1;if(N.caseFirst){let T=N.caseFirst;["upper","lower","false"].includes(T)||(T="false");x.caseFirst=T}N.numeric==="yes"&&(x.numeric=!0);N.alternate==="blanked"&&(x.ignorePunctuation=!0);const P=new Intl.Collator(N.lang,x);x={equals:function(T,Y){return P.compare(T,Y)===0},compare:function(T,Y){return P.compare(T,Y)},startsWith:function(T,
Y){return T.length<Y.length?!1:P.compare(T.substring(0,Y.length),Y)===0},endsWith:function(T,Y){return T.length<Y.length?!1:P.compare(T.substring(T.length-Y.length),Y)===0},indexOf:function(T,Y){if(T.length<Y.length)return-1;for(let da=0;da<=T.length-Y.length;da++)if(P.compare(T.substring(da,da+Y.length),Y)===0)return da;return-1},contains:function(T,Y){if(T.length<Y.length)return!1;for(let da=0;da<=T.length-Y.length;da++)if(P.compare(T.substring(da,da+Y.length),Y)===0)return!0;return!1},collationKey:function(T){return T}}}if(!x)throw new F("Unrecognized collation "+
A,"FOCH0002");return x}function ea(A,x){if(!A.hasOwnProperty("compare")||!A.hasOwnProperty("equals"))throw new F("Collation "+x+" cannot be used for sorting","XTDE1035");}function B(){return{equals:function(A,x){return A===x},compare:function(A,x){return ua.ce(A,x)},contains:function(A,x){return A.indexOf(x)!==-1},startsWith:function(A,x){return h(A,x)},endsWith:function(A,x){return t(A,x)},indexOf:function(A,x){return A.indexOf(x)},collationKey:function(A){return A}}}function Q(){function A(x){return x?
(x+"").toUpperCase():""}return{equals:function(x,N){return A(x)===A(N)},compare:function(x,N){return ua.ce(A(x),A(N))},contains:function(x,N){return A(x).indexOf(A(N))!==-1},startsWith:function(x,N){return h(A(x),A(N))},endsWith:function(x,N){return t(A(x),A(N))},indexOf:function(x,N){return A(x).indexOf(A(N))},collationKey:function(x){return A(x)}}}function p(A){return{equals:function(x,N){return A(x)===A(N)},compare:function(x,N){return ua.ce(A(x),A(N))},contains:function(x,N){return A(x).indexOf(A(N))!==
-1},startsWith:function(x,N){return h(A(x),A(N))},endsWith:function(x,N){return t(A(x),A(N))},indexOf:function(x,N){return A(x).indexOf(A(N))},collationKey:function(x){return A(x)}}}const I=Da.XS;return{$d:f,Yh:J,Bg:function(){function A(x){return x.toUpperCase()}return p(function(x){return x?(x+"").replace(/[a-z]/g,A):""})},Le:Q,di:u,Hg:B,Wc:"http://www.w3.org/2005/xpath-functions/collation/codepoint",fi:z,oi:D,Yg:"http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind",gc:function(A,x,N,
P,T,Y=!1){sa.assert(P.equals&&P.compare);const da=I.numeric.matches,Z=I.untypedAtomic.matches,la=(ba,ha)=>Z(ba)?Y&&da(ha)?I.numeric.Id(ba):Z(ha)?I.string.cast(ba):da(ha)?I.double.cast(ba):ha.code==="AQ"?Da.XS.QName.cast(ba,qc.Sd(T,!1)):Da.codes[ha.code].cast(ba):ba,ka=N==="="?P.equals:N==="!="?(ba,ha)=>!P.equals(ba,ha):(ba,ha)=>b(N,P.compare(ba,ha));let G;for(var U;(G=A.next())!==null;){const ba=ob(x);for(;(U=ba.next())!==null;){const ha=la(G,U);U=la(U,G);if(!(da(ha)&&isNaN(ha.value)||da(U)&&isNaN(U.value))&&
ka(ha,U))return sd(!0)}}return sd(!1)},Di:function(A){return{equals:function(x,N){const P=I.numeric.matches;return P(x)||P(N)?I.numeric.Id(x).toNumber()===I.numeric.Id(N).toNumber():A.equals(x,N)},compare:A.compare}},Te:function(A,x,N){return L(m(A,x),N)},Tf:L,Nb:function(A,x,N,P){x=m(A,x);P=L(x,P)[N];if(!P)throw new F("Collation "+x+" has no "+N+" method","FOCH0002",A);return P},Fi:d,Yf:"http://www.w3.org/2005/xpath-functions/collation/html-ascii-case-insensitive",pc:v,Fj:E,Gj:function(A){const x=
qc.Pa(A),N=qc.Aa(A,"sortKey");return P=>{const T=od(x(P)),Y=[],da=N.map(U=>J(U,P)),Z=N.map(qc.Pa),la=d(N,P),ka=P.X(!1);ka.oa="sort key";ka.focus=T;let G=0;T.forEachItem(function(U){const ba=N.map(function(ha,ca){return la[ca](Z[ca](ka).next())});Y.push({item:U,keys:ba,Jd:G++})});Y.sort(function(U,ba){for(let ca=0;ca<da.length;ca++){var ha=U.keys[ca];const fa=ba.keys[ca];if(ha!==null||fa!==null){if(ha===null||fa===null)return ha===null?-1:1;ha=da[ca](ha,fa);if(ha!==0)return ha}}return U.Jd>ba.Jd?1:
U.Jd===ba.Jd?0:-1});return ob(Y.map(U=>U.item))}},kf:b,Fh:function(A,x){switch(A){case "=":case "eq":return x;case "!=":case "ne":return!x;case "<":case "lt":case ">":case "gt":case ">=":case "ge":case "<=":case "le":throw new F("Operator "+A+" not allowed for unordered types","SXJS0003");default:throw new F("Unknown operator "+A,"SXJS0003");}},lf:function(A,x=null){function N(Z){return Z.isStringLike()?T(Z.matchKey()):Z.matchKey()}const P=new pb,T=A.collationKey;if(!T)throw new F("Collation is unsuitable for keys and grouping",
"XTDE1110");const Y={Lc:function(Z,la){return Ud(ob(Z),ob(la),A.equals)},hash:function(Z){return Z.map(N).join()}},da={Lc:function(Z,la){return N(Z)===N(la)},hash:function(Z){return N(Z)}};P.options=x?Y:da;return P},Ij:"http://www.w3.org/2013/collation/UCA",Mh:"http://www.w3.org/xslts/collation/caseblind"}}();
// Input 29
const Yd=function(){function a(g,l,k){function q(u,f){function E(J){return J instanceof ud?"a namespace":"an attribute"}if(f)throw new F("Cannot create "+E(u)+" node on element '"+v.$(g)+"' after creating children","XTDE0410");if(g.nodeType===11||g.nodeType===9)throw new F("Cannot add "+E(u)+" to a document node","XTDE0420");}function y(u,f){var E=f._saxonIsLocal?f._saxonIsLocal:!1;if(f instanceof qb)f.value.forEach(function(z){z.forEach(function(b){y(u,b)})});else{if(f instanceof pb)throw new F("A map can't be a child of an XML node",
k.fixed.options.language==="XSLT"?"XTDE0450":"XPTY0004");if(f instanceof yc.XdmFunction)throw new F("A function can't be a child of an XML node",k.fixed.options.language==="XSLT"?"XTDE0450":"XPTY0004");v.U(f)?D=!1:(f=v.Ac(k.ca).createTextNode((D?" ":"")+f.toString()),D=!0);if(u.nodeType===1||u.nodeType===11){if(f.nodeType!==10)if(v.Dd(f))if(na.Pb(u))u.appendChild(u.ownerDocument.importNode(f,!0));else if(q(f,K),f.prefix===""){if(u.namespaceURI==="")throw new F("Cannot add a default namespace to a no-namespace element",
"XTDE0440");if(u.hasAttributeNS("","xmlns")){if(u.getAttributeNS("","xmlns")!==f.uri)throw new F("Cannot have two different default namespaces","XTDE0430");}else na.Pb(u)||u.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",f.uri)}else{E="xmlns:"+f.prefix;var J=f.uri;f.uri==="~"&&xa.withPrefix[f.prefix]!==null&&(J=xa.withPrefix[f.prefix]);if(u.hasAttributeNS("http://www.w3.org/2000/xmlns/",f.prefix)&&u.getAttributeNS("http://www.w3.org/2000/xmlns/",f.prefix)!==J)throw new F("Cannot have two namespaces with the same prefix '"+
f.prefix+"'","XTDE0430");u.setAttributeNS("http://www.w3.org/2000/xmlns/",E,J)}else if(f.nodeType===2){q(f,K);if(f.namespaceURI!==""&&(E=f.name.split(":"),E.length!==2||u.lookupNamespaceURI(E[0])!==f.namespaceURI))if(E.length===2&&u.lookupNamespaceURI(E[0])===null)u.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+E[0],f.namespaceURI);else for(J=E.length===2?E[0]:"ns";;)if(u.lookupNamespaceURI(J)===null){u.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+J,f.namespaceURI);f.name=J+":"+
E[E.length-1];break}else J+="_1";u.setAttributeNS(f.namespaceURI===""?null:f.namespaceURI,f.name,f.value)}else if(f.nodeType===3||f.nodeType===4)f.nodeValue&&f.nodeValue!==""&&(E=u.lastChild,!E||E.nodeType!==3&&E.nodeType!==4?u.appendChild(n(f,k,"")):E.nodeValue+=f.nodeValue),K=!0;else if(f.nodeType===9||f.nodeType===11)M.Ia(f).forEachItem(function(z){y(u,z)});else{K=!0;if(!(na.ra()&&k.ca===window.document||f.nodeType!==1||na.Pb(f))){J=f.prefix||"";const z=f.lookupNamespaceURI(J)||"",b=f.namespaceURI||
"";z!==b&&v.Re(f,J,b);!f.lookupNamespaceURI(null)&&u.lookupNamespaceURI(null)&&v.Re(f,"","")}E&&na.Pb(u)===na.Pb(f)||(f=n(f,k,"c"));u.appendChild(f);f._saxonIsLocal=!1}}else if(u.nodeType===9)f!==null&&(u.documentElement=f);else throw new F("Unknown parent node type "+u.nodeType,"SXJS0003");}}k||sa.ka("No context in makeComplexContent for "+sa.showValue(g));let K=!1,D=!1;l.forEachItem(function(u){y(g,u)})}function c(g,l){l&&l.indexOf("l")>=0&&(g._saxonIsLocal=!0);return g}function n(g,l,k){var q=
k&&k.indexOf("c")>=0;if(v.U(g)){let y,K;const D=function(u,f){k&&k.indexOf("m")>=0&&(f._saxonOriginal=u)};switch(g.nodeType){case 9:case 11:return q=v.dc(l.ca.createDocumentFragment()),q._saxonBaseUri=g._saxonBaseUri,q._saxonDocUri=g._saxonDocUri,a(q,M.Ia(g).mapOneToOne(function(u){return n(u,l,k)}),l),D(g,q),c(q,k);case 13:return new ud(g.prefix,g.uri);case 1:return K=v.$(g),y=l.createElement(K.uri,K.toString()),!q||na.ra()&&na.Pb(y)&&l.ca===window.document||v.Ec(g).forEach(function(u){v.Re(y,u.prefix,
u.uri)}),M.Fa(g).forEachItem(function(u){y.setAttributeNS(u.namespaceURI===""?null:u.namespaceURI,u.name,u.value)}),M.Ia(g).forEachItem(function(u){u=n(u,l,k);u.nodeType===1&&v.$(u).uri===""&&K.uri!==""&&v.Re(u,"","");y.appendChild(u)}),y._saxonBaseUri=v.baseURI(g),D(g,y),c(y,k);case 10:return null;case 2:return new vd(v.$(g),g.value,null);default:return y=na.ra()?window.document.importNode(g,!0):g.cloneNode(l.ca,g,!0),D(g,y),c(y,k)}}else return g}const v=Gc,M=v.Ha;return{fj:a}}();
// Input 30
const Zd=function(){function a(c){const n=Gc.Ha,v={"p.any":function(){return function(){return!0}},"p.never":function(){return function(){return!1}},"p.booleanExp":function(M){const g=qc.Pa(M);return function(l,k){k=k.X();k.focus=uc(l);return qc.Ad(g(k))}},"p.genNode":function(M){const g=qc.Pa(M);let l;if(M.C[0].N==="slash"){M=qc.ii(M.C[0]);let k=M.C[0];for(;["filter","subscript"].includes(k.N);)k=k.C[0];k.N==="axis"&&k.name==="child"&&(k.name="self",l=qc.cb(M))}return function(k,q){if(!Gc.U(k))return!1;
const y=Gc.Ha.Sa(k);let K;for(var D;;){K=y.next();if(K==null)return!Gc.Ze(D)&&l?(q=q.X(!1),q.focus=uc(D),q.ec=[],l(q).some(u=>Gc.isSameNode(u,k))):!1;D=q.X(!1);D.focus=uc(K);D.ec=[];if(g(D).some(u=>Gc.isSameNode(u,k)))return!0;D=K}}},"p.genPos":function(M){const g=tb(M.test).ga(),l=qc.Pa(M);return function(k,q){if(!g(k))return!1;const y=q.fixed.ea;q=q.X(!1);var K=n.Ia(Gc.Va(k)).filter(g);q.focus=od(K);for(q.ec=[];(K=q.focus.next())!=null;)if(K===k&&y.Ad(l(q)))return!0;return!1}},"p.nodeSet":function(M){const g=
qc.Pa(M);return function(l,k){return g(k).some(q=>q===l)}},"p.nodeTest":function(M){return tb(M.test).ga()},"p.simPos":function(M){const g=tb(M.test).ga(),l=parseInt(M.pos,10);return function(k){return g(k)&&n.Jc(k).filter(g).count()===l-1}},"p.venn":function(M){const g=M.C,l=a(g[0]),k=a(g[1]);M=M.op;switch(M){case "union":return function(q,y){return l(q,y)||k(q,y)};case "intersect":return function(q,y){return l(q,y)&&k(q,y)};case "except":return function(q,y){return l(q,y)&&!k(q,y)};default:throw new F("unknown op "+
M,"SXJS0003");}},"p.withCurrent":function(M){const g=a(M.C[0]);return function(l,k){k=k.X(!0);k.na[0]=[l];return g(l,k)}},"p.withPredicate":function(M){M=M.C;const g=a(M[0]),l=qc.cb(M[1]);return function(k,q){if(!g(k,q))return!1;q=q.X(!1);q.focus=uc(k);q.ec=[];return qc.Ad(l(q))}},"p.withUpper":function(M){const g=M.C,l=a(g[0]),k=a(g[1]),q=M.axis;return q==="parent"?M.upFirst==="true"?function(y,K){const D=Gc.Va(y);return D&&k(D,K)&&l(y,K)}:function(y,K){const D=Gc.Va(y);return D&&l(y,K)&&k(D,K)}:
function(y,K){if(!l(y,K))return!1;y=Gc.Cg[q](y);let D;for(;(D=y.next())!==null;)if(k(D,K))return!0;return!1}}}[c.N];if(v)return v(c);throw new F("Unimplemented pattern "+c.N,"SXJS0002");}return{jd:a,matches:function(c,n,v){v.nb.push(null);c=c(n,v);v.nb.pop();return c}}}();
// Input 31
const $d=function(){function a(v,M,g,l){function k(h){const t=[];for(let m=h.length-1;m>=0;m--)t.push({Kd:h[m],action:h[m].C[1],pattern:Zd.jd(h[m].C[0])});return t}function q(h){h._saxonAccumulators||(h._saxonAccumulators={});h._saxonAccumulators[g]={};let t=y(J,h);t&&(d=D(t,h));h._saxonAccumulators[g].pre=d;n.Ia(h).forEachItem(q);(t=y(z,h))&&(d=D(t,h));h._saxonAccumulators[g].post=d}function y(h,t){for(let m=0,L=h.length;m<L;m++)if(Zd.matches(h[m].pattern,t,b))return h[m];return null}function K(h){return{visibility:"PRIVATE",
Oa:h,actor:h,Je:h.binds.split(" ").map(function(t){return parseInt(t,10)})}}function D(h,t){const m=l.X(!0);m.focus=uc(t);m.na=[d];m.pa=K(M);m.oa="accumulator";return u.evaluate(h.action,m).expand()}const u=l.fixed.ea,f=u.Aa(M,"pre")[0],E=u.Aa(M,"post")[0],J=k(u.Aa(f,"accRule")),z=k(u.Aa(E,"accRule")),b=l.X(!0);b.focus=uc(v);b.na=[];b.pa=K(M);let d=u.evaluate(u.aa(M,"init"),b).expand();q(v)}function c(v,M,g,l,k){const q=l.fixed.ea.fe(v,l).yb[M];if(!q)throw new F("Unknown accumulator "+M,"XTDE3340");
if(l.ze&&!l.ze.some(function(y){return y===M}))throw new F("Inapplicable accumulator "+M,"XTDE3362");if(!Gc.U(g))throw new F("Cannot evaluate accumulator: context item is not a node","XTTE3360");if(g.nodeType===2||g.nodeType===13)throw new F("Accumulators are not available on attribute or namespace nodes","XTTE3360");if(g._saxonOriginal)return c(v,M,g._saxonOriginal,l,k);v=q.mg;if(!g._saxonAccumulators||!g._saxonAccumulators.hasOwnProperty(v)){const y=Gc.cc(g);y._saxonAccumulators||(y._saxonAccumulators=
{});y._saxonAccumulators[v]||(y._saxonAccumulators[v]={});if(y._saxonAccumulators[v]["under construction"])throw new F("Circular definition of accumulator "+v,"XTDE3400");y._saxonAccumulators[v]["under construction"]=1;a(y,q.Wh,v,l);delete y._saxonAccumulators[v]["under construction"]}return g._saxonAccumulators[v][k]}const n=Gc.Ha;return{Vh:function(v,M,g,l){return c(v,M,g,l,"pre")},Uh:function(v,M,g,l){return c(v,M,g,l,"post")}}}();
// Input 32
const ae=function(){function a(K,D,u,f,E=null){const J=q.string.fromString(D);if(K&&K.containsKey(J)){K=K.get(J);if(u==="function"){D=new rc([rb.Yb],rb.Yb);if(K.length===1&&D.ga()(K[0]))return K[0];throw new F("Option "+J+" must be a function(xs:string) as xs:string","XPTY0004");}if(K.length===1&&Da.type[u].matches(K[0])){if(E&&E.indexOf(K[0].value)<0)throw new F("Invalid value "+J+"="+K[0],"FOJS0005");return K[0].value}throw new F("Invalid option: "+D+": must be "+u,"XPTY0004");}return f}function c(K,
D){function u(m){throw new F(m,"FOJS0001");}function f(){return t=E()}function E(){for(t="";;){if(h>=K.length)return["eof"];var m=K.charAt(h++);if(!/[ \n\r\t]/.test(m))break}switch(m){case "[":case "{":case "]":case "}":case ":":case ",":return[m];case '"':for(m=!1;;){const L=K.charAt(h++);if(L!=='"'||m)t+=L,m=L==="\\"&&!m;else return["string",t];h>=K.length&&u("Unclosed quotes in string literal")}case "-":case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":for(t+=
m;h<K.length;)if(m=K.charAt(h++),/[0-9\-+.eE]/.test(m))t+=m;else{h--;break}return["number",/^-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?$/.test(t)?t:u("Invalid JSON number "+t)];case "t":case "f":case "n":for(t+=m;;)if(m=K.charAt(h),m>="a"&&m<="z"){if(t+=m,++h>=K.length)break}else break;if(["true","false","null"].includes(t))return[t];u("Unknown constant "+t);break;default:return u("Unexpected character '"+m+"' ("+ua.La(m)+") at position "+h),-1}}function J(m){t[0]!==m&&u("Expected "+m+", found "+
t[0])}function z(m){return t[0]===m?(f(),!0):!1}function b(m){return t[0]===m?(f(),!0):t[0]===","?(f(),!1):u("Expected ',' or '"+m+"', found '"+t[0]+"'")}function d(){switch(t[0]){case "[":f();D.Dh();if(!z("]")){do d();while(!b("]"))}D.Rg();break;case "{":f();D.Eh();if(!z("}")){do J("string"),D.Ng(t[1]),f(),J(":"),f(),d();while(!b("}"))}D.Sg();break;case "string":D.Qg(t[1]);f();break;case "number":D.Pg(t[1]);f();break;case "true":case "false":D.Mg(t[0]);f();break;case "null":D.Og();f();break;default:u("Unexpected token "+
t[0])}}K=K.replace(/^[\uFEFF]/,"");let h=0,t=null;t=f();d();J("eof");return D.result()}function n(K){try{return JSON.parse('"'+K+'"')}catch(D){throw new F(D.toString(),"FOJS0001");}}function v(K,D){const u=D.ub,f=D.xd;let E;E=f?J=>{J=M(J);return f.evaluate([[Da.XS.string.fromString(J)]],u).next().toString()}:()=>"\ufffd";K=K.replace(/[\x00-\x08\x0B\x0C\x0E-\x0F\x80-\x9F\uFFFF]/g,E);return K=K.replace(/[\uD800-\uDFFF]+/g,J=>{let z="";for(let b=0;b<J.length;b++){const d=J.charAt(b);z+=b%2===1===d<"\udc00"||
b===J.length-1&&d<"\udc00"?E(d):d}return z})}function M(K){for(K=K.charCodeAt(0).toString(16);K.length<4;)K="0"+K;return"\\u"+K.toUpperCase()}function g(K,D){this.g=[];this.J=[];this.ub=D;a(K,"liberal","boolean",!1);this.xd=a(K,"fallback","function",null);this.B=a(K,"escape","boolean",!1);this.O=a(K,"duplicates","string","use-first",["reject","use-first","use-last"]);if(this.B&&this.xd)throw new F("parse-json: cannot use fallback with escape:true()","FOJS0005");}function l(K,D){this.g=[];this.O=[];
this.J=[];this.ub=D;a(K,"liberal","boolean",!1);if(a(K,"validate","boolean",!1))throw new F("json-to-xml: validate option not supported in a non-schema-aware processor","FOJS0004");this.xd=a(K,"fallback","function",null);this.B=a(K,"escape","boolean",!1);this.R=a(K,"duplicates","string","use-first",["reject","use-first","retain"]);if(this.B&&this.xd)throw new F("json-to-xml: cannot use fallback with escape:true()","FOJS0005");}const k=xa.Ma,q=Da.XS,y=Gc.Ha;g.prototype={g:[],J:[],ub:null,B:!1,xd:null,
O:"use-first",R:function(K){return this.B?JSON.stringify(K).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,M):v(K,this)},peek:function(){return this.g[this.g.length-1]},j:function(K){if(this.g.length===0)this.g.push(K);else if(this.peek()instanceof qb)this.peek().value.push(K);else{const D=this.peek(),u=q.string.fromString(this.J.pop());if(D.containsKey(u))switch(this.O){case "reject":throw new F("json-to-xml: duplicate key '"+u.toString()+"'","FOJS0003");case "use-first":return}D.inSituPut(u,
K)}},Og:function(){this.j([])},Mg:function(K){this.j([q.boolean.fromString(K)])},Pg:function(K){this.j([q.double.fromNumber(parseFloat(K))])},Qg:function(K){this.j([q.string.fromString(this.R(n(K)))])},Ng:function(K){this.J.push(this.R(n(K)))},Dh:function(){this.g.push(new qb([]))},Rg:function(){this.j([this.g.pop()])},Eh:function(){this.g.push(new pb)},Sg:function(){this.j([this.g.pop()])},result:function(){return this.peek()[0]!==void 0?this.peek()[0]:null}};l.prototype={g:[],O:[{}],J:[],ub:null,
xd:null,B:!1,R:"use-first",ha:function(K){return this.B?JSON.stringify(K).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,M):v(K,this)},peek:function(){return this.g[this.g.length-1]},j:function(K){if(this.g.length===0)K.setAttribute("xmlns",k),this.g.push(K);else{const D=this.peek();if(D.tagName==="map"){const u=this.O.pop(),f=this.J[this.J.length-1];if(u in f)switch(this.R){case "reject":throw new F("parse-json: duplicate key '"+u.toString()+"'","FOJS0003");case "use-first":return}f[u]=
K;K.setAttribute("key",u);this.B&&/\\/.test(u.toString())&&K.setAttribute("escaped-key","true")}D.appendChild(K)}},Og:function(){const K=this.ub.ca.createElementNS(k,"null");this.j(K)},Mg:function(K){const D=this.ub.ca.createElementNS(k,"boolean");D.appendChild(this.ub.ca.createTextNode(K.toString()));this.j(D)},Pg:function(K){const D=this.ub.ca.createElementNS(k,"number");D.appendChild(this.ub.ca.createTextNode(K.toString()));this.j(D)},Qg:function(K){const D=this.ub.ca.createElementNS(k,"string");
if(K!==""){K=this.ha(n(K));const u=this.ub.ca.createTextNode(K);this.B&&/\\/.test(K)&&D.setAttribute("escaped","true");D.appendChild(u)}this.j(D)},Ng:function(K){this.O.push(this.ha(n(K)))},Dh:function(){const K=this.ub.ca.createElementNS(k,"array");this.g.push(K)},Rg:function(){this.j(this.g.pop())},Eh:function(){const K=this.ub.ca.createElementNS(k,"map");this.g.push(K);this.J.push({})},Sg:function(){this.J.pop();this.j(this.g.pop())},result:function(){return this.peek()}};return{nd:function(K,
D,u){return c(K,new g(D,u))},qj:function(K,D,u){return c(K,new l(D,u))},Mj:function(K,D){function u(m){throw new F("Invalid input to xml-to-json(): "+m,"FOJS0006");}function f(m){d.bd(m).length!==0&&u("node "+m.tagName+" must have no element children")}function E(m){y.Ia(m).filter(function(L){return(L.nodeType===3||L.nodeType===4)&&L.nodeValue&&ya.trim(L.nodeValue)!==""}).next()&&u("node "+m.tagName+" must have no text content")}function J(m){try{return q.boolean.fromString(m).toBoolean()}catch(L){u("invalid boolean: '"+
m+"'")}}function z(m){try{JSON.parse('"'+m+'"')}catch(L){throw new F("invalid escape sequence: "+L.toString(),"FOJS0007");}}function b(m,L=0){const V=L===0,ea=h?" ".repeat(L*3):"";if(m.nodeType===9||m.nodeType===11){var B=d.bd(m);B.length!==1&&u("document node has "+B.length+" element children");return b(B[0],L)}if(m.nodeType===1){let Q=!1;if(m.namespaceURI===k){let p=d.Va(m)!==null&&d.Va(m).localName==="map";y.Fa(m).forEachItem(function(I){if(I.name.indexOf(":")<0||I.namespaceURI===k)I.name==="key"||
I.name==="escaped-key"?I.name==="escaped-key"?(p||V||u("@escaped-key is allowed only on children of map, or on root element"),J(I.value)&&z(m.getAttribute("key"))):p||V||u("@key is allowed only on children of map, or on root element"):I.name==="escaped"?(m.localName!=="string"&&u("@escaped is allowed only on string"),Q=J(I.value)):u("invalid attribute "+I.name)});switch(m.localName){case "null":return y.Ia(m).filter(function(T){return T.nodeType!==8&&T.nodeType!==7}).next()&&u("null element must have no content"),
"null";case "string":f(m);B=m.textContent;if(Q)t&&(B=B.replace(/^\//g,"\\/")),B=B.replace(/^"/g,'\\"').replace(/^[\b]/g,"\\b").replace(/^\f/g,"\\f").replace(/^\n/g,"\\n").replace(/^\r/g,"\\r").replace(/^\t/g,"\\t").replace(/([^\\])"/g,'$1\\"').replace(/([^\\])[\b]/g,"$1\\b").replace(/([^\\])\f/g,"$1\\f").replace(/([^\\])\n/g,"$1\\n").replace(/([^\\])\r/g,"$1\\r").replace(/([^\\])\t/g,"$1\\t").replace(/([^\\])\//g,"$1\\/").replace(/[\u0001-\u001F\u007F-\u009F]/g,M),z(B);else return t?JSON.stringify(B).replace(/\//g,
"\\/"):JSON.stringify(B);return'"'+B+'"';case "number":f(m);try{B=q.double.fromString(m.textContent)}catch(T){u("invalid number")}isFinite(B.toNumber())||u("NaN and INF not allowed");return B.toString();case "boolean":return f(m),J(m.textContent),q.boolean.fromString(m.textContent).toString();case "array":E(m);let I=h?"[\n":"[",A=h?ea:"";d.bd(m).forEach(function(T){I+=A+b(T,L+1);A=h?`,\n${ea}`:","});return I+"]";case "map":E(m);let x=h?"{\n":"{",N=h?ea:"";const P={};d.bd(m).forEach(function(T){T.hasAttribute("key")||
u("child element of map must have a key");const Y=d.getAttribute(T,"key");let da=Y;const Z=d.getAttribute(T,"escaped-key");let la=!1;Z&&J(Z)&&(la=!0,da=n(Y));P[da]&&u("duplicate key '"+Y+"'");P[da]=!0;x+=N+(la?'"'+Y+'"':JSON.stringify(Y).replace(/\//g,"\\/"))+":"+b(T,L+1);N=h?`,\n${ea}`:","});return h?(B=L>0?" ".repeat((L-1)*3):"",x+`\n${B}}`):x+"}";default:u("unknown local name "+m.localName)}}else u("wrong namespace "+m.namespaceURI)}else d.U(m)||u("not a node"),Error.g&&Error.g(),u("wrong node kind "+
m.nodeType)}const d=Gc,h=a(D,"indent","boolean",!1),t=a(D,"escape-solidus","boolean",!0);return b(K)}}}();
// Input 33
function sc(a){return be(a)?null:a.focus.current}function vc(a,c,n,v=null){if(be(a))throw new F("Focus for "+n+" is absent",c,v);}function xc(a){a.Xc=null;a.Yc=null;a.vb=null}function be(a){return!a.focus||!a.focus.current}
class ce{constructor(){this.depth=0;this.masterDocument=this.j=this.ca=this.pa=this.focus=null;this.oa=!1;this.nb=[];this.fixed={Ta:{},kb:{},td:null,ic:[],Ga:null};this.Gc=new pb;this.tunnelParams=new pb;this.Wa=null;this.ab={};this.vb=this.Yc=this.Xc=this.de=this.Oe=null;this.ec=[];this.ze=null;this.na=[];this.qc={};this.Ye=!1;this.g=null}toString(){let a="{";this.Gc.forAllPairs(c=>a+=c.k+":("+c.v+"),");a+="}";return"context: "+sc(this)+" localParams: "+a}X(a){const c=new ce;c.depth=this.depth+1;
c.focus=this.focus;c.pa=this.pa;c.ca=this.ca;c.masterDocument=this.masterDocument;c.ab=this.ab;c.Wa=this.Wa;c.Oe=this.Oe;c.Xc=this.Xc;c.ec=this.ec;c.Yc=this.Yc;c.fixed=this.fixed;c.oa=this.oa;c.nb=this.nb;c.de=this.de;c.ze=this.ze;c.qc=this.qc;c.Ye=this.Ye;c.g=this;a?(c.Gc=new pb,c.tunnelParams=new pb,c.na=[],c.vb=null):(c.Gc=this.Gc,c.tunnelParams=this.tunnelParams,c.na=this.na,c.vb=this.vb);return c}createElement(a,c){const n=Gc.Ac(this.ca),v=n.documentElement;a===""&&v&&na.Pb(v)?c=n.createElement(c):
a==="http://www.w3.org/1999/xhtml"&&v&&na.Pb(v)?(a=c.indexOf(":"),c=n.createElement(a===-1?c:c.substring(a+1))):c=n.createElementNS(a,c);return c}getStackTrace(){let a="";be(this)||(a="    Processing "+sa.showValue(this.focus.current)+"\n");try{let c=this.pa.actor,n;c.N==="mode"?(n="template rule",c=this.Wa.action):n=c.N+" "+c.name;a+="    at "+n+" in "+qc.Wf(c,"module")+"#"+qc.Wf(c,"line")}catch(c){a=""}this.g&&(a+="\n"+this.g.getStackTrace());return a}};
// Input 34
const ee=function(){function a(f){if(f){var E=f.PUSH;if(!E)if(E=u[f.N])f.PUSH=E=E(f);else{const J=qc.cb(f);f.PUSH=E=function(z,b){J(z).forEachItem(d=>b.append(d))}}return E}}function c(f){let E=f.N;f.parentNode&&(E=c(f.parentNode)+"/"+E);return E}function n(f){if(f.C){const E=f.C.map(a);return function(J,z){E.forEach(b=>b(J,z))}}return()=>{}}function v(f,E,J,z,b,d){if(Gc.U(f))switch(f.nodeType){case 9:case 11:J.lb=Gc.baseURI(f);g(f,J,b,d);break;case 1:if(f.hasAttribute("xml:base")){const h=f.getAttribute("xml:base");
J.lb=Gc.fd(h)?h:na.pb(h.toString(),qc.Da(z,E)).toString()}else J.lb=Gc.baseURI(f);g(f,J,b,d);break;case 3:case 4:J.text(f.nodeValue);break;case 7:J.sa(f.target,f.data);break;case 8:J.ta(f.textContent);break;default:J.append(f)}else J.append(f)}function M(f,E,J){switch(f.nodeType){case 9:case 11:E.Ca(J?{BASE_URI:J}:{});f=f.childNodes;for(J=0;J<f.length;++J)M(f[J],E,null);E.wa();break;case 1:let z={};Gc.Ha.jb(f).forEachItem(function(d){d.prefix!=="xml"&&(z[d.prefix]=d.uri)});let b=new de;Gc.Ha.Fa(f).forEachItem(function(d){b.set(d.qname,
{value:d.value,fb:0})});E.ja(Gc.$(f),b,z,{});f=f.childNodes;for(J=0;J<f.length;++J)M(f[J],E,null);E.endElement();break;case 3:case 4:E.text(f.nodeValue,0);break;case 7:E.sa(f.target,f.data,0);break;case 8:E.ta(f.textContent,0)}}function g(f,E,J,z=!1){switch(f.nodeType){case 9:case 11:z&&(E.Ic=f);E.Ca();f=f.childNodes;for(var b=0;b<f.length;++b)g(f[b],E,J,z);E.wa();break;case 1:z&&(E.Ic=f);E.ja(Gc.$(f));Gc.Ha.Fa(f).forEachItem(function(d){const h=Gc.$(d);E.Fa(h,d.value)});J&&Gc.Ha.jb(f).forEachItem(function(d){E.jb(d.prefix,
d.uri)});f=f.childNodes;for(b=0;b<f.length;++b)g(f[b],E,J,z);E.endElement();break;case 3:case 4:z&&(E.Ic=f);E.text(f.nodeValue);break;case 7:z&&(E.Ic=f);E.sa(f.target,f.data);break;case 8:z&&(E.Ic=f),E.ta(f.textContent)}}function l(f){return(f=f.next())?f.toString():""}function k(f,E,J,z,b){E=J&&J.indexOf("c")>=0;if(Gc.U(f))switch(f.nodeType){case 9:case 11:b.lb=Gc.baseURI(f);b.Ca();z();b.wa();break;case 1:J=Gc.$(f);b.lb=Gc.baseURI(f);b.ja(J);E&&Gc.Ec(f).forEach(function(d){b.jb(d.prefix,d.uri)});
z();b.Ic=null;b.endElement();break;case 2:z=Gc.$(f);b.Fa(z,f.value);break;case 3:case 4:b.text(f.textContent);break;case 8:b.ta(f.textContent);break;case 7:b.sa(f.target,f.data);break;case 13:b.jb(f.prefix,f.uri);break;default:throw new F("Unknown node kind "+f.nodeType,"SXJS0003");}else b.append(f)}function q(f,E,J,z,b){const d=Da.XS.string.fromString;J=ya.og(J);E=ya.ue(E,J+"g",f);if(!z&&E.test(""))throw new F("Regular expression matches zero-length string","FORX0003");z=[];let h=0,t=0;for(;(J=E.exec(f))!==
null;)if((J.index>h||J.index===h&&b)&&z.push({Hc:!1,string:d(f.substring(h,J.index))}),z.push({Hc:!0,groups:J,string:d(J[0])}),h=E.lastIndex,J[0].length===0&&E.lastIndex++,t++>f.length*10)throw new F("analyze-string looping???","SXJS0004");f.length>h&&z.push({Hc:!1,string:d(f.substring(h,f.length))});return z}function y(f){const E=f.N==="compAtt",J=qc.cb(qc.aa(f,"name")),z=qc.cb(qc.aa(f,"namespace"));return b=>{function d(){throw new F((E?"Attribute":"Element")+" name '"+h+"' is not a lexical QName",
E?"XTDE0850":"XTDE0820",f);}let h=ya.trim(J(b).next().toString());if(z){b=(b=z(b).next())?b.value:"";if(!qc.Kj(b))throw new F((E?"Attribute":"Element")+" namespace '"+b+"' is invalid",E?"XTDE0865":"XTDE0835",f);var t=Da.XS.QName;if(b===""&&h.includes(":"))t=t.fromParts("","",h.replace(/^.*:/,""));else if(h.includes(":")){const m=h.split(":");m[0]!==""&&m[1]!==""||d();t=t.fromParts(m[0],b,m[1])}else t=b===""?t.fromParts("","",h):t.fromParts(E?"ns0":"",b,h)}else{if(E&&h==="xmlns")throw new F("Attribute must not be named xmlns",
"XTDE0855",f);try{t=qc.kg(f,h,!E)}catch(m){if(m instanceof F){if(m.code==="XTDE0290")throw new F((E?"Attribute":"Element")+" name '"+h+"' has an unbound prefix",E?"XTDE0860":"XTDE0830",f);m.code==="FORG0001"&&d()}throw m;}}if(t.uri==="http://www.w3.org/2000/xmlns/")throw new F("Disallowed namespace "+t.uri,E?"XTDE0865":"XTDE0835",f);return t}}class K{constructor(){}Ca(){}wa(){}ja(){}Fa(){}jb(){}endElement(){}text(){}ta(){}sa(){}append(){}close(){}}class D extends K{constructor(f){super();this.j=f;
this.ha=[];this.tb=[];this.lb=null;this.g=0;this.Za=this.J=null;this.O={};this.Na=null;this.B=this.la=!1;this.ya={};this.Ic=null}qa(f,E,J){var z=this.O[f];if(z&&z!==E)if(J==="ns"){if(this.ya[f])throw new F("Two conflicting bindings for prefix '"+f+"'","XTDE0430");if(this.J.prefix===f){for(z=f+"_9";this.O[z];)z+="9";this.J=Da.XS.QName.fromParts(z,this.J.uri,this.J.local);this.O[z]=this.J.uri}this.O[f]=E}else return f===""&&(f="NULL"),this.qa(f+"0",E,J);J==="ns"&&(this.ya[f]=E);if(J==="elem"&&E==="")for(z=
this.ha.length-1;z>=0;z--)if(this.ha[z][0]===""){this.O[""]="";break}if(f!==""||E!==""){z=!1;for(let b=this.ha.length-1;b>=0;b--){const d=this.ha[b];if(d[0]===f){d[1]===E&&(z=!0);break}}if(!z){if(this.ya[f]&&this.ya[f]!==E)return this.qa(f+"0",E,J);this.O[f]=E}}return f}Ca(){this.g===0&&(this.j.Ca({BASE_URI:this.lb,ORIGINAL_NODE:this.Ic}),this.ha=[]);this.R();this.g++;this.B=this.la=!1}wa(){this.g--;this.g===0&&this.j.wa();this.B=!1}ja(f){this.R();this.g++;this.la=!0;this.J=f;this.Za=new de;this.O=
{};this.ya={};this.qa(f.prefix,f.uri,"elem");this.Na=this.Ic;this.B=!1}Fa(f,E){if(this.g===0)this.j.append(new vd(f,E,null));else{if(!this.la){if(this.J)throw new F("Cannot write attribute ("+f.toEQName()+"="+E+") after writing child nodes (level="+this.g+", start tag = "+this.J+")","XTDE0410");throw new F("Cannot attach an attribute ("+f.toEQName()+"="+E+") to a document node","XTDE0420");}if(f.uri!==""){["","xmlns"].includes(f.prefix)&&(f=f.withPrefix("ns_"));const J=this.qa(f.prefix,f.uri,"att");
J!==f.prefix&&(f=f.withPrefix(J))}this.Za.set(f,{value:E,fb:0})}}jb(f,E){if(this.g===0)this.j.append(new ud(f,E));else{if(!this.la)throw new F("Cannot write namespace after writing child nodes","XTDE0410");if(f===""&&this.J.uri==="")throw new F("Cannot add default namespace declaration to a no-namespace element","XTDE0440");this.qa(f,E,"ns")}}endElement(){this.R();this.j.endElement();this.g--;let f=this.tb.pop();for(;f-- >0;)this.ha.pop();this.B=!1}text(f,E){if(f.length>0||this.g===0)this.R(),this.j.text(f,
E||{});this.B=!1}ta(f){this.R();this.j.ta(f);this.B=!1}sa(f,E){this.R();this.j.sa(f,E);this.B=!1}append(f){if(Gc.U(f)){if(this.g===0)this.j.append(f,{});else switch(f.nodeType){case 2:this.Fa(Gc.$(f),f.value);break;case 13:this.jb(f.prefix,f.uri);break;case 9:case 11:this.g===0?M(f,this.j,this.lb):Gc.Ha.Ia(f).forEachItem(E=>this.append(E));break;default:this.R(),g(f,this,!0,!1)}this.B=!1}else if(this.g===0)this.j.append(f,{}),this.B=!1;else if(Da.ma(f))this.R(),this.text((this.B?" ":"")+f.toString(),
{}),this.B=!0;else if(qc.isArray(f)){f=f.value;for(let E=0;E<f.length;E++){const J=f[E];for(let z=0;z<J.length;z++)this.append(J[z])}}else{if(qc.gd(f))throw new F("Cannot attach a "+(qc.isMap(f)?"map":"function")+" to an XDM tree","XTDE0450");sa.ka("Cannot add item to tree "+sa.showValue(f))}}close(){this.j.close()}R(){if(this.la){var f={};this.lb&&(f.BASE_URI=this.lb);this.Na&&(f.ORIGINAL_NODE=this.Na,this.Na=null);this.j.ja(this.J,this.Za,this.O,f);this.la=!1;f=0;for(let [E,J]of Object.entries(this.O))this.ha.push([E,
J]),f++;this.tb.push(f)}}}const u={analyzeString:function(f){const E=qc.cb(qc.aa(f,"select")),J=qc.cb(qc.aa(f,"regex")),z=qc.cb(qc.aa(f,"flags")),b=a(qc.aa(f,"matching")),d=a(qc.aa(f,"nonMatching"));return(h,t)=>{try{let m=E(h).next();if(m===null)return nb;m=m.toString();const L=J(h).next().toString(),V=z(h).next().toString(),ea=q(m,L,V,!0,!1),B=h.X(!1),Q=ea.map(p=>p.string);B.focus=od(ob(Q));B.focus.forEachItem(()=>{const p=ea[B.focus.position-1];p.Hc?b&&(B.ec=p.groups,b(B,t)):d&&(B.ec=[],d(B,t))})}catch(m){if(m instanceof
F&&m.code==="FORX0002")throw new F(m.message,"XTDE1140");if(m instanceof F&&m.code==="FORX0001")throw new F(m.message,"XTDE1145");throw m;}}},applyImports:function(f){return function(E,J){const z=E.ab.mode;if(!z)throw new F("applyImports: no current mode","XTDE0560",f);vc(E,"XTDE0560","xsl:apply-imports",f);const b=E.X(!0);b.pa=E.ab;qc.Ie(f,E,b);b.focus=E.focus;return z.Zh(b,J)}},applyT:function(f){const E=qc.Pa(f),J=qc.cb(qc.aa(f,"separator"));return function(z,b){let d;const h=z.X(!0);if(qc.ib(f,
"c"))d=z.ab.mode,["function","globalVariable","globalParam"].includes(z.pa.actor.N)&&(d=qc.fe(f,z).Hh),h.pa=z.ab;else{var t=qc.Xf(f,z,"mode");d=t.mode;if(d.oh)throw new F("Mode "+d.Fe.name+" only handles typed nodes","XTTE3100",f);h.pa=t}qc.Ie(f,z,h);t=J?J(z).next():null;h.focus=od(E(z));d.zb(h,b,t)}},att:function(f){const E=f.name,J=E.split(":");let z;z=f.nsuri?J.length===2?Da.XS.QName.fromParts(J[0],f.nsuri,J[1]):Da.XS.QName.fromParts("",f.nsuri,E):Da.XS.QName.fromString(E,qc.Sd(f,!1));const b=
qc.Pa(f);return function(d,h){d=l(b(d));h.Fa(z,d)}},"break":function(f){const E=n(f);return function(J,z){E(J,z);J.focus.position=-999}},callT:function(f){return function(E,J){const z=qc.Xf(f,E,"template"),b=E.X(!0);b.vb=null;b.pa=z;qc.Gf(z.actor,b);qc.Ie(f,E,b);E=z.actor;E.C&&n(E)(b,J)}},choose:function(f){f=f.C;const E=[],J=[];for(let z=0;z<f.length;z+=2)E.push(qc.cb(f[z])),J.push(a(f[z+1]));return function(z,b){for(let d=0;d<E.length;d++)if(qc.Ad(E[d](z))){J[d](z,b);break}}},comment:function(f){const E=
qc.Pa(f);return function(J,z){J=l(E(J)).replace(/--/g,"- -").replace(/-$/,"- ");z.ta(J)}},compAtt:function(f){const E=qc.cb(qc.aa(f,"select")),J=y(f);return function(z,b){const d=J(z);z=l(E(z));b.Fa(d,z)}},compElem:function(f){const E=a(qc.aa(f,"content")),J=y(f);return function(z,b){f.baseUri&&(b.lb=f.baseUri);const d=J(z);b.ja(d);E(z,b);b.endElement()}},copy:function(f){const E=n(f);return function(J,z){vc(J,"XTTE0945","xsl:copy",f);k(sc(J),J,f.flags,()=>E(J,z),z)}},copyOf:function(f){const E=qc.ib(f,
"c"),J=qc.ib(f,"m"),z=qc.Pa(f);n(f);return function(b,d){z(b).forEachItem(h=>v(h,b,d,f,E,J))}},doc:function(f){const E=n(f);return function(J,z){z.lb=qc.Da(f,J);z.Ca();E(J,z);z.wa()}},elem:function(f){const E=f.name,J=E.split(":"),z=n(f);let b;b=typeof f.nsuri!=="undefined"?J.length===2?Da.XS.QName.fromParts(J[0],f.nsuri,J[1]):Da.XS.QName.fromParts("",f.nsuri,E):Da.XS.QName.fromString(E,qc.Sd(f,!0));return function(d,h){f.baseUri&&(h.lb=f.baseUri);h.ja(b);if(f.namespaces){const m=f.namespaces.toString().split(" ");
for(let L=0;L<m.length;L++){var t=m[L];const V=t.indexOf("=");let ea=V===-1?t:t.substring(0,V);t=V===-1?"":t.substring(V+1);ea==="#"&&(ea="");ea!=="xml"&&(t=t!==""?t:qc.Sd(f,!0)(ea),h.jb(ea,t))}}z(d,h);h.endElement()}},empty:function(){return function(){}},forEach:function(f){const E=qc.Pa(f),J=a(f.C[1]),z=qc.cb(qc.aa(f,"separator"));return function(b,d){const h=b.X(!1);h.focus=od(E(b));h.Wa=null;if(z){let t=!0;const m=z(b).next();h.focus.forEachItem(()=>{t?t=!1:d.text(m.value,{});J(h,d)})}else h.focus.forEachItem(()=>
J(h,d))}},forEachGroup:function(f){const E=qc.cb(qc.aa(f,"select")),J=ee.mi(qc.aa(f,"content"));return(z,b)=>{function d(B){const Q=[];h.forEachItem(function(p){B(Q,p)});return Q}const h=od(E(z)),t=z.X(!1);t.focus=h;var m={starting:function(){const B=Zd.jd(qc.aa(f,"match"));return d(function(Q,p){h.position===1||Zd.matches(B,p,t)?Q.push({group:[p]}):Q[Q.length-1].group.push(p)})},ending:function(){const B=Zd.jd(qc.aa(f,"match"));let Q=!1;return d(function(p,I){h.position===1||Q?p.push({group:[I]}):
p[p.length-1].group.push(I);Q=Zd.matches(B,I,t)})},adjacent:function(){var B=qc.aa(f,"collation");B=B?qc.evaluate(B,z).next().toString():Wd.Wc;const Q=Wd.Tf(B,z),p=qc.aa(f,"key");let I=null;return d(function(A,x){const N=qc.evaluate(p,t).expand();h.position!==1&&Ud(ob(N),ob(I),Q.equals)?A[A.length-1].group.push(x):(A.push({group:[x],key:N}),I=N)})},by:function(){var B=qc.aa(f,"collation");B=B?qc.evaluate(B,z).next().toString():Wd.Wc;B=Wd.Tf(B,z);const Q=Wd.lf(B,!1),p=qc.aa(f,"key");return d(function(I,
A){let x,N=[];qc.evaluate(p,t).forEachItem(function(P){Q.containsKey(P)?(x=Q.get(P),N.findIndex(function(T){return T===x})<0&&(I[x].group.push(A),N.push(x))):(x=I.length,I.push({group:[A],key:[P]}),Q.inSituPut(P,x),N.push(x))})})},by_c:function(){var B=qc.aa(f,"collation");B=B?qc.evaluate(B,z).next().toString():Wd.Wc;B=Wd.Tf(B,z);const Q=qc.aa(f,"key"),p=Wd.lf(B,!0);return d(function(I,A){let x,N=qc.evaluate(Q,t).expand();p.containsKey(N)?(x=p.get(N),I[x].group.push(A)):(x=I.length,I.push({group:[A],
key:N}),p.inSituPut(N,x))})}};m.adjacent_c=m.adjacent;var L=f.algorithm+(qc.ib(f,"c")?"_c":"");let V;try{V=m[L]()}catch(B){if(B instanceof F&&B.code==="FOCH0002")throw new F("Unknown collation:"+B.message,"XTDE1110");throw B;}const ea=qc.Aa(f,"sortKey");if(ea.length>0){m=od(ob(V));const B=z.X(!1);B.focus=m;const Q=ea.map(function(p){return Wd.Yh(p,z)});m.forEachItem(function(p,I){p.Bh=ea.map(function(A){const x=B.focus;x.current=p.group[0];x.position=I+1;B.Xc=p.group;B.Yc=p.key;return qc.Pa(A)(B).next()})});
V.sort(function(p,I){for(let A=0;A<Q.length;A++){const x=Q[A](p.Bh[A],I.Bh[A]);if(x<0)return-1;if(x>0)return 1}return 0})}m=z.X(!1);m.focus=od(ob(V));for(L=0;m.focus.next()!==null;){const B=V[L++],Q=m.focus;Q.current=B.group[0];Q.position=L;m.Xc=B.group;m.Yc=B.key;J(m,b)}}},iterate:function(f){const E=(f.C[1].C||[]).map(qc.cb),J=qc.Pa(f),z=a(qc.aa(f,"action")),b=a(qc.aa(f,"on-completion"));return function(d,h){E.map(L=>L(d));var t=d.X(!1);t.focus=od(J(d));t.Wa=null;let m=!1;for(;t.focus.next()!==
null;)if(z(t,h),t.focus.position===-999){m=!0;break}!m&&b&&(t=d.X(!1),t.focus=null,b(t,h))}},let:function(f){const E=qc.Pa(f),J=a(f.C[1]),z=parseInt(f.slot,10);return function(b,d){const h=b.oa;b.oa="variable";const t=E(b).expand();b.oa=h;b.na[z]=t;J(b,d)}},nextIteration:function(f){const E=qc.Aa(f,"withParam").map(J=>({select:qc.Pa(J),slot:parseInt(J.slot,10)}));return function(J){E.forEach(z=>z.value=z.select(J).expand());E.forEach(z=>J.na[z.slot]=z.value)}},nextMatch:function(f){return function(E,
J){const z=E.ab.mode;if(!z)throw new F("next-match: no current mode","XTDE0560",f);if(!E.Wa)throw new F("next-match: no current template","XTDE0560",f);if(be(E))throw new F("next-match: no context item","XTDE0560",f);const b=E.X(!0);b.pa=E.ab;qc.Ie(f,E,b);return z.lj(b,J)}},procInst:function(f){const E=qc.Pa(f),J=qc.Lg(f);return function(z,b){const d=E(z).next().toString();if(!ya.Db(d))throw new F("The name of a processing-instruction must be a valid NCName; supplied value: "+d.toString(),"XTDE0890",
f);if(/^[Xx][Mm][Ll]$/.test(d))throw new F("The name of a processing-instruction must not be 'xml'","XTDE0890",f);z=J(z);z=l(z).replace(/\?>/g,"? >").replace(/^\s+/,"");b.sa(d,z)}},sequence:n,sourceDoc:function(f){const E=qc.cb(qc.aa(f,"href")),J=a(f.C[1]);return function(z,b){const d=z.X(!1);var h=E===null?"":E(z).next().toString();h=na.pb(h,qc.Da(f,z));h=fe.xc(h,z);z=z.fixed.ye;z!==null&&(h=z(h));d.focus=uc(h);d.Wa=null;J(d,b)}},useAS:function(f){return function(E,J){const z=qc.Xf(f,E,"attributeSet"),
b=z.actor;E=E.X(!0);E.oa="attribute set";E.pa=z;b.C&&n(b)(E,J)}},valueOf:function(f){const E=qc.Pa(f);let J={};qc.ib(f,"d")&&(J.DISABLE_ESCAPING=!0);return function(z,b){z=l(E(z));b.text(z,J)}}};return{Df:q,mi:a,Mk:function(f){return new ge(f)},zc:function(f){return new D(f)},push:function(f,E,J){if(typeof J==="undefined")throw sa.ua(Error().stack,1,E.fixed.Ga),new F("No output for "+c(f));if(u[f.N]){var z=a(f);try{z(E,J)}catch(b){throw b instanceof F&&!b.xsltLineNr&&b.setExpr(f),b;}}else{z=qc.cb(f);
try{const b=z(E);let d;for(;(d=b.next())!=null;)J.append(d)}catch(b){throw b instanceof F&&!b.xsltLineNr&&b.setExpr(f),b;}}},th:M,ef:v,ig:k}}();
// Input 35
class he{Ca(){}wa(){}ja(){}endElement(){}text(){}ta(){}sa(){}append(){}close(){}}function ie(a,c){a.g=c;return a}class je extends he{constructor(){super();this.g=null}Ca(a={}){this.g.Ca(a)}wa(){this.g.wa()}ja(a,c,n,v={}){this.g.ja(a,c,n,v)}endElement(){this.g.endElement()}text(a,c={}){this.g.text(a,c)}ta(a,c={}){this.g.ta(a,c)}sa(a,c,n={}){this.g.sa(a,c,n)}append(a,c={}){this.g.append(a,c)}close(){this.g.close()}}function ke(a,c){a.j===0?a.Fb.push(c):a.mc.appendChild(c)}
class ge extends he{constructor(a){super();this.ad=(this.la=a)?Gc.Ac(a.ca):na.createDocument();this.Fb=[];this.mc=null;this.j=0;this.J=null}Ca(a={}){if(this.j++===0){const c=this.mc=this.ad.createDocumentFragment();a.BASE_URI&&(c._saxonBaseUri=a.BASE_URI);this.Fb.push(c)}else throw new F("Builder.startDoc() not at top level");}wa(){--this.j===0&&(this.mc=null)}ja(a,c,n,v={}){const M=this.ad.createElementNS(a.uri,a.toString());v.BASE_URI&&(M._saxonBaseUri=v.BASE_URI);v.ORIGINAL_NODE&&(M._saxonOriginal=
v.ORIGINAL_NODE);v.CALLBACK&&v.CALLBACK(M);ke(this,M);this.mc=M;this.j++;this.J=null;c.forEach((g,l)=>{M.setAttributeNS(l.uri,l.toString(),g.value)});for(let g in n)n.hasOwnProperty(g)&&(a=n[g],g===""?M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",a):M.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+g,a))}endElement(){--this.j===0?this.mc=null:this.mc=this.mc.parentNode;this.J=null}text(a){this.J?this.J.appendData(a):(a=this.ad.createTextNode(a),ke(this,a),this.j>0&&(this.J=a))}ta(a){ke(this,
this.ad.createComment(a));this.J=null}sa(a,c){ke(this,this.ad.createProcessingInstruction(a,c));this.J=null}append(a){if(this.j!==0)throw new F("Builder.append() not at top level");this.Fb.push(a)}result(){return this.Fb}close(){super.close()}}
function le(a){if(a.done)throw new F("Cannot write to the principal output destination as it has already been closed","XTDE1490");if(a.ng)throw new F("Cannot write to the principal output destination as it has already been used by xsl:result-document","XTDE1490");a.Jh=!0}
class me extends je{constructor(a){super();this.done=this.ng=this.Jh=!1;this.g=a}Ca(a={}){super.Ca(a)}wa(){super.wa()}ja(a,c,n,v={}){le(this);super.ja(a,c,n,v)}endElement(){super.endElement()}text(a,c={}){le(this);super.text(a,c)}ta(a,c={}){le(this);super.ta(a,c)}sa(a,c,n={}){le(this);super.sa(a,c,n)}append(a,c={}){le(this);super.append(a,c)}close(){this.done=!0;this.g&&super.close()}}function ne(a){return new ge(a)}
class oe{constructor(a){this.gb=a}createDocumentFragment(){return this.gb.createDocumentFragment()}createElementNS(a,c){const n=this.gb.documentElement;a===""&&n&&na.Pb(n)?c=this.gb.createElement(c):a==="http://www.w3.org/1999/xhtml"&&n&&na.Pb(n)?(a=c.indexOf(":"),c=this.gb.createElement(a===-1?c:c.substring(a+1))):c=this.gb.createElementNS(a,c);return c}createTextNode(a){return this.gb.createTextNode(a)}createComment(a){return this.gb.createComment(a)}createProcessingInstruction(a,c){return this.gb.createProcessingInstruction(a,
c)}}function pe(a,c={}){a.J||(a.j=!1,a.g.Ca(c),a.J=!0,a.B=!0)}function qe(a,c){if(c!=null)if(Da.ma(c))a.j&&a.text(" ",{}),a.text(c.toString(),{}),a.j=!0;else if(c instanceof qb)c.flatten(n=>qe(a,n));else{if(c instanceof yc.XdmFunction)throw new F("Cannot add a function item to an XDM node tree","SENR0001");if(c instanceof pb)throw new F("Cannot add a map to an XDM node tree","SENR0001");ee.th(c,a);a.j=!1}}
class re extends je{constructor(a){super();this.g=a;this.j=this.J=this.B=!1}Ca(a={}){pe(this,a);this.B=!1}wa(){this.j=!1;this.g.wa()}ja(a,c,n,v={}){pe(this,v);this.g.ja(a,c,n,v)}endElement(){this.g.endElement();this.j=!1}text(a,c={}){pe(this,c);super.text(a,c);this.j=!1}ta(a,c={}){pe(this,c);super.ta(a,c);this.j=!1}sa(a,c,n={}){pe(this,n);super.sa(a,c,n);this.j=!1}append(a,c={}){pe(this,c);qe(this,a)}close(){this.B&&this.wa();super.close()}}
function se(a,c={}){a.J||(a.g.Ca(c),a.J=!0,a.j=!0);a.B||a.g.append(a.O,{});a.B=!1}
class te extends je{constructor(a,c){super();this.g=a;this.J=this.j=!1;this.B=!0;this.O=Da.XS.string.fromString(c)}Ca(a={}){se(this,a);this.j=!1}wa(){this.g.wa()}ja(a,c,n,v={}){se(this,v);this.g.ja(a,c,n,v)}endElement(){this.g.endElement()}text(a,c={}){se(this,c);super.text(a,c)}ta(a,c={}){se(this,c);super.ta(a,c)}sa(a,c,n={}){se(this,n);super.sa(a,c,n)}append(a,c={}){if(qc.isArray(a))a.flatten(n=>this.append(n,c));else{if(a instanceof yc.XdmFunction)throw new F("Cannot add a function item to an XDM node tree",
"SENR0001");if(a instanceof pb)throw new F("Cannot add a map to an XDM node tree","SENR0001");Da.ma(a)?(se(this,c),this.g.append(a,c)):(se(this,c),ee.th(a,this))}}close(){this.j&&this.wa();super.close()}}function ue(a,c){return a.g.findIndex(n=>n.equals(c))}class de{constructor(){this.g=[];this.j=[]}get(a){a=ue(this,a);return a<0?void 0:this.j[a]}set(a,c){const n=ue(this,a);n>=0?this.j[n]=c:(this.g.push(a),this.j.push(c))}forEach(a){for(let c=0;c<this.g.length;c++)a(this.j[c],this.g[c])}};
// Input 36
const ve=function(){function a(G,U,ba){function ha(ca,fa){function w(H){return C=>H[C]}const e={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&#34;","\n":"&#10;","\r":"&#13;","\t":"&#9;"},r={"<":"&lt;",">":"&gt;","&":"&amp;"};return fa?ca.replace(/&|<|>|"|\n|\r|\t/g,w(e)):ca.replace(/&|<|>/g,w(r))}if(ba){ba="";G=G.split("\x00");for(let ca=0;ca<G.length;ca++)ba+=ca%2===1?G[ca]:ha(G[ca],U);return ba}return ha(G,U)}function c(G,U){return U.toUpperCase()==="ISO-8859-1"?G<=255:U.toUpperCase()==="US-ASCII"?G<=
127:!0}function n(G,U){return function(ba){var ha=!0;for(var ca=0;ca<ba.length;ca++){var fa=ba.charCodeAt(ca);if(fa>=G.min&&fa<=G.max){ha=!1;break}}if(ha)return ba;ha="";ca=!1;for(fa=0;fa<ba.length;fa++){let w=ba.charAt(fa),e=ba.charCodeAt(fa),r=55296<=e&&e<=56320;r&&(e=ba.codePointAt(fa));G.va[e]?(U&&!ca&&(ha+="\x00",ca=!0),ha+=G.va[e],r&&fa++):(U&&ca&&(ha+="\x00",ca=!1),ha+=w)}return ha}}function v(G){return G.uri===""||G.uri==="http://www.w3.org/1999/xhtml"}function M(G){return["http://www.w3.org/1999/xhtml",
"http://www.w3.org/2000/svg","http://www.w3.org/1998/Math/MathML"].includes(G)}function g(G,U){return(U={action:["form"],archive:["object"],background:["body"],cite:["blockquote","del","ins","q"],classid:["object"],codebase:["applet","object"],data:["object"],datasrc:"button div input object select span table textarea".split(" "),"for":["script"],formaction:["button","input"],href:["a","area","base","link"],icon:["command"],longdesc:["frame","iframe","img"],manifest:["html"],name:["a"],poster:["video"],
profile:["head"],src:"audio embed frame iframe img input script source track video".split(" "),usemap:["img","input","object"]}[U.local])&&U.includes(G.local)}function l(G,U,ba=null){switch(G.method){case "xml":U=new L(G,U);if(G.version&&G.version!=="1.0")throw new F("Serializer does not support the requested XML version: "+G.version,"SESU0013");b(G);if(G["undeclare-prefixes"])throw new F("Cannot undeclare prefixes with XML 1.0 serializer","SEPM0010");G.indent&&(U=u(G,U));U=f(G,U);U=E(G,U);U=J(G,
U);return D(G,U);case "html":return d(G,U);case "text":return b(G),U=new la(G,U),U=f(G,U),U=E(G,U),D(G,U);case "xhtml":return d(G,U);case "json":return b(G),G.indent?new Y(G,U,ba):new T(G,U,ba);case "adaptive":return new da(G,U,ba);default:return new Z(G,U)}}function k(G,U,ba){function ha(H,C){C=C.trim();if(["yes","true","1"].includes(C))return!0;if(["no","false","0"].includes(C))return!1;throw new F("Value of "+H+" must be yes(=true, 1) or no(=false, 0)","SEPM0016");}function ca(H){return function(C,
O){O=O.trim();return O.split(/\s+/).map(function(S){/^Q\{/.test(S)||/:/.test(S)||(S="Q{}"+S);return/^Q\{/.test(S)?S:t.QName.fromString(S,H).toEQName()})}}function fa(H){return function(C,O){O=O.trim();if(H.includes(O))return O;throw new F("Value of "+C+"("+O+"): must be one of "+H.join("|"),"SEPM0016");}}function w(H){return function(C,O){if(H.test(O))return O;throw new F("Invalid value for "+C+": must match the pattern "+H,"SEPM0016");}}function e(H,C){return C}function r(H,C){C=C.trim();if(/[0-9]+/.test(C))return C*
1;throw new F("Value of "+H+" must be an integer (Actual value is "+sa.showValue(C)+")","SEPM0016");}ba={"allow-duplicate-names":ha,"build-tree":ha,"byte-order-mark":ha,"cdata-section-elements":ca(ba),"doctype-public":w(/[\sa-zA-Z0-9\-'()+,.:=?;!*#@$_%\/]*/),"doctype-system":w(/[^']*|[^"]*/),encoding:w(/[\x21-\x7e]+/),"escape-uri-attributes":ha,"html-version":function(H,C){if(/[0-9]+(\.[0-9]+)?/.test(C))return C*1;throw new F("Value of "+H+" must be a decimal number","SEPM0016");},"include-content-type":ha,
indent:ha,"item-separator":e,"json-node-output-method":fa(["xml","xhtml","html","text"]),"media-type":e,method:function(H,C){return function(O,S){S=S.trim();!/^Q\{/.test(S)&&/:/.test(S)&&(S=t.QName.fromString(S,C).toEQName());if(H.includes(S))return S;throw new F("Value of "+O+"("+S+"): must be one of "+H.join("|"),"SEPM0016");}}("xml xhtml html text json adaptive Q{http://saxonica.com/ns/interactiveXSLT}append-content Q{http://saxonica.com/ns/interactiveXSLT}insert-before Q{http://saxonica.com/ns/interactiveXSLT}insert-after Q{http://saxonica.com/ns/interactiveXSLT}replace-content Q{http://saxonica.com/ns/interactiveXSLT}replace-element".split(" "),
ba),"normalization-form":fa("NFC NFD NFKC NFKD fully-normalized none".split(" ")),"omit-xml-declaration":ha,standalone:function(H,C){return C.trim()==="omit"?null:ha(H,C)},"suppress-indentation":ca(ba),"undeclare-prefixes":ha,"use-character-maps":ca(ba),version:e,"Q{http://saxon.sf.net/}indent-spaces":r,"Q{http://saxon.sf.net/}line-length":r,"Q{http://saxon.sf.net/}stylesheet-version":r};/^\{/.test(G)&&(G="Q"+G);if(typeof U!=="string")throw new F("Value of "+G+" must be supplied as a string","SEPM0016");
if(ba[G])return ba[G](G,U);if(!/^Q\{/.test(G))throw new F("Unknown serialization parameter "+G,"SEPM0017");}function q(G,U,ba){function ha(e,r,H){if(!Array.isArray(r))throw new F("Value of "+e+" must be an array","SEPM0016");return(H||[]).concat(r)}function ca(e,r){if(typeof r!=="boolean")throw new F("Value of "+e+" must be boolean","SEPM0016");return r}function fa(e,r){if(typeof r!=="number")throw new F("Value of "+e+" must be an integer (actual value is "+sa.showValue(r)+")","SEPM0016");return r}
const w={"allow-duplicate-names":ca,"build-tree":ca,"byte-order-mark":ca,"cdata-section-elements":ha,"escape-uri-attributes":ca,"html-version":function(e,r){if(typeof r!=="number")throw new F("Value of "+e+" must be a decimal number","SEPM0016");return r},"include-content-type":ca,indent:ca,"omit-xml-declaration":ca,standalone:function(e,r){return r===null?null:ca(e,r)},"suppress-indentation":ha,"undeclare-prefixes":ca,"use-character-maps":function(e,r,H){H&&Array.isArray(H)&&sa.ka("Problem with existing character map supplied to overrideParam");
if(typeof r!=="object")throw new F("Value of "+e+" must be an object","SEPM0016");if(r.va===void 0)throw new F("Value of "+e+" must be a character map object","SEPM0016");(e=H)?y(e,r):e=r;return e},"Q{http://saxon.sf.net/}indent-spaces":fa,"Q{http://saxon.sf.net/}line-length":fa,"Q{http://saxon.sf.net/}stylesheet-version":fa};/^{/.test(G)&&(G="Q"+G);return w[G]?w[G](G,U,ba):k(G,U.toString())}function y(G,U){U.min<G.min&&(G.min=U.min);U.max>G.max&&(G.max=U.max);for(let ba in U.va)U.va.hasOwnProperty(ba)&&
(G.va[ba]=U.va[ba])}function K(G,U){let ba={};G.forEach(function(ha,ca){let fa=U.Dg[ha];if(!fa)throw new F("Unknown character map "+ha,"SEPM0016");ca===0?ba=fa:y(ba,fa)});return ba}function D(G,U){return G["item-separator"]&&G["item-separator"]!=="#absent"?new te(U,G["item-separator"]):new re(U)}function u(G,U){const ba=G["Q{http://saxon.sf.net/}indent-spaces"],ha=G["suppress-indentation"];return ie(G.method==="xml"?new V(ba,ha):new I(ba,ha),U)}function f(G,U){G["normalization-form"]&&G["normalization-form"]!==
"none"&&(U=ie(new ea(G["normalization-form"]),U));return U}function E(G,U){G["use-character-maps"]&&(U=ie(new B(G["use-character-maps"]),U));return U}function J(G,U){G["cdata-section-elements"]&&(U=ie(new Q(G["cdata-section-elements"],G.encoding||"UTF-8",G["normalization-form"]&&G["normalization-form"]!=="none"?G["normalization-form"]:null),U));return U}function z(G,U){return G[U]===void 0||G[U]}function b(G){if(G.encoding&&!["UTF-8","UTF-16","ISO-646","ISO-8859-1","US-ASCII"].includes(G.encoding.toUpperCase()))throw new F("Serializer does not support the requested encoding: "+
G.encoding,"SESU0007");}function d(G,U){var ba=G.method==="xhtml";U=ba?new x(G,U):new p(G,U);if(ba&&G.version&&G.version!=="1.0")throw new F("Serializer does not support the requested XML version: "+G.version,"SESU0013");if((ba=ba?G["html-version"]:G["html-version"]||G.version)&&ba*1!==5)throw new F("Serializer does not support the requested HTML version: "+ba,"SESU0013");b(G);z(G,"indent")&&(U=u(G,U));U=f(G,U);U=E(G,U);U=J(G,U);U=ie(new A,U);z(G,"escape-uri-attributes")&&(U=ie(new N,U));z(G,"include-content-type")&&
(U=ie(new P(G),U));return D(G,U)}function h(G,U=null,ba=null,ha=null){function ca(r,H){switch(r.nodeType){case 9:case 11:H.Ca(e);r=r.childNodes;for(var C=0;C<r.length;++C)ca(r[C],H);H.wa();break;case 1:let O={};Gc.Ha.jb(r).forEachItem(function(W){O[W.prefix]=W.uri});let S=new de;Gc.Ha.Fa(r).forEachItem(function(W){S.set(W.qname,{value:W.value,fb:{}})});H.ja(Gc.$(r),S,O,e);r=r.childNodes;for(C=0;C<r.length;++C)ca(r[C],H);H.endElement();break;case 2:if(H instanceof da)H.text(Gc.$(r)+'="'+r.value+'"',
e);else throw new F("Cannot serialize free-standing attribute node","SENR0001");break;case 13:if(H instanceof da)C=r.prefix,H.text(C?"xmlns:"+C:'xmlns="'+r.uri+'"',e);else throw new F("Cannot serialize free-standing namespace node","SENR0001");break;case 3:case 4:H.text(r.nodeValue,e);break;case 7:H.sa(r.target,r.nodeValue,e);break;case 8:H.ta(r.nodeValue,e)}}function fa(r,H){Array.isArray(r)?r.forEach(C=>{fa(C,H)}):Gc.U(r)?ca(r,H):H.append(r,e)}let w;ba||(w="",ba={write:function(r){w+=r}});ba.write||
sa.ka("writer supplied to Serialize.serialize() is not a writeable stream");U||={};U=l(U,ba,ha);let e={};G&&fa(G,U);U.close();return w}const t=Da.XS;class m extends he{constructor(G,U){super();this.g=U||null;this.Ka=G}close(){this.g.end&&!this.g.isTTY&&this.g.end()}}class L extends m{constructor(G,U){super(G,U);this.B=this.J=this.ya=this.la=this.tb=!1;this.Za=[];this.O=[];this.Yd=0;this.Uc=G.encoding||"UTF-8"}Ca(){}wa(){}close(){this.J||this.R();super.close()}ja(G,U,ba){function ha(fa){throw new F("When "+
fa+" is specified, there must only be one top-level element node","SEPM0004");}this.J||(this.R(),this.Na(G),this.la&&!this.ya&&this.Ka.indent===!0&&this.g.write("\n"),this.J=!0);this.O.length===0&&(this.Yd++>0&&this.Ka.standalone!==void 0&&this.Ka.standalone!==null&&ha("standalone"),this.Yd>1&&this.Ka["doctype-system"]&&ha("doctype-system"));const ca=this.O.length===0?{}:this.O[this.O.length-1];this.Za.push(G);this.O.push(ba);this.B&&this.ha();this.g.write("<"+this.j(G.toString(),!1));this.Bi(ba,
ca);this.be(G,U);this.B=!0}endElement(){const G=this.Za.pop();this.O.pop();this.B?(this.g.write("/>"),this.B=!1):this.g.write("</"+G.toString()+">")}text(G,U={}){this.J||this.R();this.B&&this.ha();this.g.write(U.DISABLE_ESCAPING?this.j(G,!1):this.j(a(G,!1,!1),!0))}ta(G){this.J||this.R();this.B&&this.ha();this.g.write("\x3c!--"+this.j(G,!1)+"--\x3e")}sa(G,U){this.J||this.R();this.B&&this.ha();this.g.write("<?"+this.j(G,!1)+(U.length>0?" "+this.j(U,!1):"")+"?>")}append(G,U={}){this.text(G.toString(),
U)}R(){this.tb||this.wi()}ha(){this.g.write(">");this.B=!1}Bi(G,U){let ba=[];for(let ha in G)if(U[ha]!==G[ha]){let ca="";ha!=="xml"&&(ca=ha===""?' xmlns="'+a(G[ha],!0,!1)+'"':" xmlns:"+ha+'="'+a(G[ha],!0,!1)+'"');ca!==""&&ba.push(ca)}ba.sort();ba.forEach(ha=>this.g.write(ha))}be(G,U){if(U){const ba=this;U.forEach((ha,ca)=>{ba.ae(ca,ha)})}}ae(G,U){const ba=U.fb.USE_NULL_MARKERS===!0;U=U.fb.DISABLE_ESCAPING?this.j(U.value,!1):this.j(a(U.value,!0,ba),!0);this.g.write(" "+this.j(G.toString(),!1)+'="'+
U+'"')}wi(){var G=this.Uc.toUpperCase();this.Ka["byte-order-mark"]&&G==="UTF-8"&&this.g.write("\ufeff");this.tb=!0;G=this.Ka["omit-xml-declaration"]===!0&&G==="UTF-8";this.la=!G;let U=this.Ka.standalone;if(G&&U!==void 0&&U!==null)throw new F("Serializer values of 'standalone' and 'omit-xml-declaration' conflict","SEPM0009");G||this.g.write('<?xml version="1.0" encoding="'+this.Uc+'"'+(U!==void 0&&U!==null?' standalone="'+(U?"yes":"no")+'"':"")+"?>")}Na(G){let U=this.Ka["doctype-system"]||null,ba=
this.Ka["doctype-public"]||null;U!==null&&(this.la&&this.g.write("\n"),this.g.write("<!DOCTYPE "+this.j(G.toString(),!1)+"\n"),G=U.includes('"')?"'"+U+"'":'"'+U+'"',ba===null?this.g.write(" SYSTEM "+this.j(G,!1)+">\n"):this.g.write(' PUBLIC "'+this.j(ba,!1)+'" '+this.j(G,!1)+">\n"),this.ya=!0)}j(G,U){function ba(ca){if(U)return"&#"+ca+";";throw new F("Character "+String.fromCodePoint(ca)+" (decimal "+ca+") is not available in the chosen encoding","SERE0008");}const ha=this.Uc;return function(ca){let fa=
"";var w=0;const e=ca.length;if(e===0)return"";for(;w<e;){let H=w;for(;H<e;){var r=ca.charCodeAt(H);if(r===9||r===10)H++;else if(r<32)break;else if(r<127)H++;else if(r<160||r===8232||55296<=r&&r<=56320||!c(r,ha))break;else H++}if(H>=e)return w===0?ca:fa+ca.substring(w,H);H>w&&(fa+=ca.substring(w,H));r=ca.charCodeAt(H);w=ca.charAt(H);if(r===0)throw new F("Null marker","ZZZZ9999");r<160||r===8232?fa+=U?ba(r):w:55296<=r&&r<=56320?(r=ca.codePointAt(H++),fa+=c(r,ha)?w+ca.charAt(H):ba(r)):c(r,ha)||(fa+=
ba(r));w=++H;if(w>=e)return fa}}(G)}}class V extends je{constructor(G,U){super();this.J=0;this.Yd=G||3;this.Na="\n               ";this.B=this.O=this.ha=!1;this.Za=U||null;this.j=-1;this.ya=null;this.tb={}}ja(G,U,ba,ha={}){this.O||this.B?this.la():this.R();if(this.j<0){let ca=U.get(t.QName.fromParts("",xa.xml,"space"));ca&&ca.value==="preserve"&&(this.j=this.J)}this.J++;this.Za&&this.j===-1&&this.Za.indexOf(G.toEQName())>=0&&(this.j=this.J);this.g.ja(G,U,ba,ha);this.O=this.ha=!0;this.B=!1}endElement(){this.J--;
this.B&&!this.ha?this.la():this.O&&!this.B?this.ya=null:this.R();this.g.endElement();this.ha=!1;this.B=!0;this.O=!1;this.J===this.j-1&&(this.j=-1)}text(G,U={}){const ba=!this.ha||G.indexOf("\n")>=0;this.j<0&&ya.trim(G)===""&&ba?(this.ya=G,this.tb=U):(this.R(),G.indexOf("\n")>=0&&(this.ha=!1),this.g.text(G,U),this.B=this.O=!1)}ta(G,U={}){this.B?this.la():this.R();this.g.ta(G,U);this.B=this.O=!1}sa(G,U,ba={}){this.B?this.la():this.R();this.g.sa(G,U,ba);this.B=this.O=!1}la(){this.j>=0?this.R():this.be()}be(){this.ya=
null;let G=this.J*this.Yd;if(G+1>this.Na.length){let U=5*this.Yd;G+1>this.Na.length+U&&(U+=G+1);for(let ba=0;ba<U;ba++)this.Na+=" "}this.g.text(this.Na.substring(0,G+1),{DISABLE_ESCAPING:!0});this.ha=!1}R(){this.ya&&(this.g.text(this.ya,this.tb),this.ya=null,this.tb={})}}class ea extends je{constructor(G){super();this.j=G;if(!String.prototype.normalize)throw new F("normalization-form: not supported on this JavaScript platform","SESU0011");if(G==="fully-normalized")throw new F("Serializer does not support the requested normalization-form: fully-normalized",
"SESU0011");}ja(G,U,ba,ha={}){let ca=new de,fa=this.j;U.forEach(function(w,e){let r="";if(w.fb.USE_NULL_MARKERS){const H=w.value.split("\x00");for(let C=0;C<H.length;C++)r+=C%2===1?H[C]:H[C].normalize(fa),r+="\x00"}else r=w.fb.NO_NORMALIZATION?w.value:w.value.normalize(fa);ca.set(e,{value:r,fb:w.fb})});this.g.ja(G,ca,ba,ha)}text(G,U={}){this.g.text(U.NO_NORMALIZATION?G:G.normalize(this.j),U)}}class B extends je{constructor(G){super();this.va=G||null}ja(G,U,ba,ha={}){let ca=n(this.va,!0),fa=new de;
U.forEach(function(w,e){var r=fa.set;{var H=w.value;let C=w.fb;C.DISABLE_ESCAPING||C.NO_CHARACTER_MAP?w={value:H,fb:C}:(w=ca(H),w!==H?(H=Object.assign({},C),H.USE_NULL_MARKERS=!0,w={value:w,fb:H}):w={value:w,fb:C})}r.call(fa,e,w)});this.g.ja(G,fa,ba,ha)}text(G,U={}){if(U.DISABLE_ESCAPING||U.NO_CHARACTER_MAP)this.g.text(G,U);else{const w=this.va;let e="";var ba=!1,ha=!0;for(var ca=0;ca<G.length;ca++){var fa=G.charCodeAt(ca);if(fa>=w.min&&fa<=w.max){ha=!1;break}}if(ha)e=G;else for(ha=0;ha<G.length;ha++){ca=
G.charAt(ha);fa=G.charCodeAt(ha);const r=55296<=fa&&fa<=56320;r&&(fa=G.codePointAt(ha));w.va[fa]?(ba||(e!==""&&(this.g.text(e,U),e=""),ba=!0),e+=w.va[fa],r&&ha++):(ba&&(ba=Object.assign({},U),ba.DISABLE_ESCAPING=!0,ba.NO_NORMALIZATION=!0,this.g.text(e,ba),e="",ba=!1),e+=ca)}ba?(G=Object.assign({},U),G.DISABLE_ESCAPING=!0,G.NO_NORMALIZATION=!0,this.g.text(e,G)):this.g.text(e,U)}}}class Q extends je{constructor(G,U,ba){super();this.la=G||null;this.R=U;this.O=ba;this.B=[];this.j="";this.J={};if(ba===
"fully-normalized")throw new F("Serializer does not support the requested normalization-form: fully-normalized","SESU0011");}ja(G,U,ba,ha={}){this.flush();this.B.push(G.toEQName());this.g.ja(G,U,ba,ha)}endElement(){this.flush();this.B.pop();this.g.endElement()}text(G,U={}){this.la.indexOf(this.B.length===0?null:this.B[this.B.length-1])>=0?U.DISABLE_ESCAPING?(this.flush(),this.g.text(G,U)):(this.j+=G,this.J=U):this.g.text(G,U)}ta(G,U={}){this.flush();this.g.ta(G,U)}sa(G,U,ba={}){this.flush();this.g.sa(G,
U,ba)}flush(){if(this.j!==""){const U=this.O?this.j.normalize(this.O):this.j,ba=U.length;for(var G=0;G<ba;){let ha=G;for(;ha<ba;)if(c(U.charCodeAt(ha),this.R))ha++;else break;ha>G&&this.ha(U.substring(G,ha));ha<ba&&(G=Object.assign({},this.J),G.DISABLE_ESCAPING=!1,G.NO_CHARACTER_MAP=!0,G.NO_NORMALIZATION=!0,this.g.text(U.charAt(ha),G));G=++ha}this.j="";this.J={}}}ha(G){let U=Object.assign({},this.J);U.DISABLE_ESCAPING=!0;U.NO_CHARACTER_MAP=!0;U.NO_NORMALIZATION=!0;this.g.text("<![CDATA[",U);let ba=
0,ha=G.length;for(;ba<ha;){let ca=G.substring(ba,ha).indexOf("]]\x3e");ca>=0?(this.g.text(G.substring(ba,ca+2)+"]]\x3e<![CDATA[",U),ba=ca+2):(this.g.text(G.substring(ba,ha)+"]]\x3e",U),ba=ha)}}}class p extends L{constructor(G,U){super(G,U);this.qa=-1E6;this.Jf="area base br col embed hr img input link meta param source track wbr".split(" ");this.ud={"*":["hidden","autofocus","itemscope"],audio:["autoplay","controls","loop","muted"],button:["disabled","formnovalidate"],details:["open"],dialog:["open"],
fieldset:["disabled"],form:["novalidate"],img:["ismap"],input:"checked disabled multiple readonly required formnovalidate".split(" "),iframe:["allowfullscreen","allowpaymentrequest"],ol:["reversed"],optgroup:["disabled"],option:["selected","disabled"],script:["defer","async","nomodule"],select:["multiple","disabled","required"],textarea:["disabled","readonly","required"],track:["default"],video:["autoplay","controls","loop","muted","playsinline"]}}ja(G,U,ba,ha={}){super.ja(G,U,ba,ha);G.dd("")&&["script",
"style"].includes(G.local.toLowerCase())&&(this.qa=0);this.qa++}endElement(){let G=this.Za.pop();this.qa--;this.qa===0&&(this.qa=-1E6);this.O.pop();this.B&&(this.g.write(">"),this.B=!1);this.Jf.includes(G.local.toLowerCase())&&v(G)||this.g.write("</"+G.toString()+">")}text(G,U={}){this.qa>0&&!U.DISABLE_ESCAPING?(U=Object.assign({},U),U.DISABLE_ESCAPING=!0,super.text(G,U)):super.text(G,U)}sa(G,U){this.J||this.R();this.B&&this.ha();if(U.indexOf(">")>=0)throw new F("A processing instruction in HTML must not contain a > character",
"SERE0015");this.g.write("<?"+this.j(G,!1)+" "+this.j(U,!1)+">")}R(){this.tb||(this.Ka["byte-order-mark"]&&this.Ka.encoding==="UTF-8"&&this.g.write("\ufeff"),this.tb=!0)}be(G,U){if(U){const ba=this;U.forEach((ha,ca)=>{G.dd("")&&this.li(G,ca,ha.value)?ba.g.write(" "+ca.toString()):ba.ae(ca,ha)})}}Na(G){let U=this.Ka["doctype-system"]||null,ba=this.Ka["doctype-public"]||null;U===null&&ba===null?v(G)&&G.local.toLowerCase()==="html"&&(this.la&&this.g.write("\n"),this.g.write("<!DOCTYPE "+G.toString()+
">\n"),this.ya=!0):U===null?(G=v(G)&&G.local.toLowerCase()==="html"?G.toString():"html",this.la&&this.g.write("\n"),this.g.write("<!DOCTYPE "+G+"\n"),this.g.write('  PUBLIC "'+ba+'">\n'),this.ya=!0):super.Na(G.local.toLowerCase()==="html"?G:t.QName.fromParts("","","html"))}li(G,U,ba){U=U.local.toLowerCase();G=G.local.toLowerCase();return U===ba.toLowerCase()&&(this.ud[G]&&this.ud[G].includes(U)||this.ud["*"].includes(U))}}class I extends V{constructor(G,U){super(G,U);this.Jf="pre script style textarea title xmp".split(" ");
this.ae="a abbr acronym applet area audio b basefont bdi bdo big br button canvas cite code data datalist del dfn em embed font i iframe img input ins kbd label map mark math meter noscript object output picture progress q ruby s samp script select small span strike strong sub sup svg template textarea time tt u var video wbr".split(" ");this.qa=this.Uc=!1;this.ud=[]}ja(G,U,ba,ha={}){this.Uc=this.ae.includes(G.local.toLowerCase())&&v(G);this.O||this.B?this.la():this.R();this.J++;this.j<0&&this.Jf.includes(G.local.toLowerCase())&&
v(G)&&(this.j=this.J);this.Za&&this.j===-1&&this.Za.indexOf(G.toEQName())>=0&&(this.j=this.J);this.g.ja(G,U,ba,ha);this.O=this.ha=!0;this.Uc=this.qa=this.B=!1;this.ud.push(G)}endElement(){let G=this.ud.pop();this.J--;this.B&&!this.ha?this.la():this.R();this.g.endElement();this.ha=!1;this.B=!0;this.O=!1;this.qa=this.ae.includes(G.local.toLowerCase())&&v(G);this.J===this.j-1&&(this.j=-1)}text(G,U={}){super.text(G,U);this.j<0&&ya.trim(G)===""||(this.qa=!1)}ta(G,U={}){super.ta(G,U);this.qa=!1}sa(G,U,
ba={}){super.sa(G,U,ba);this.qa=!1}la(){this.j>=0||this.Uc||this.qa?this.R():this.be()}}class A extends je{ja(G,U,ba,ha={}){for(let ca in ba)M(ba[ca])&&delete ba[ca];M(G.uri)&&(G.prefix!==""&&(G=t.QName.fromParts("",G.uri,G.local)),ba[""]=G.uri);U.forEach((ca,fa)=>{M(fa.uri)&&(ba[fa.prefix]=fa.uri)});super.ja(G,U,ba,ha)}}class x extends L{constructor(G,U){super(G,U);this.qa="area base br col embed hr img input link meta param source track wbr".split(" ")}endElement(){this.O.pop();let G=this.Za.pop();
this.B&&this.qa.includes(G.local)&&v(G)?(this.g.write(" />"),this.B=!1):(this.B&&super.ha(),this.g.write("</"+G.toString()+">"))}text(G,U={}){(this.J||ya.trim(G)!=="")&&super.text(G,U)}Na(G){let U=this.Ka["doctype-system"]||null;U===null&&v(G)&&G.local.toLowerCase()==="html"?(this.la&&this.g.write("\n"),this.g.write("<!DOCTYPE "+G.toString()+">\n"),this.ya=!0):U!==null&&super.Na(G)}}class N extends je{ja(G,U,ba,ha){let ca=!1;U.forEach((fa,w)=>ca=ca||g(G,w));if(ca){const fa=new de;U.forEach((w,e)=>
{if(g(G,e)){const r=qc.escape(w.value.normalize("NFC"),H=>H<32||H>126);w=Object.assign({},w.fb);w.DISABLE_ESCAPING=!1;w.NO_CHARACTER_MAP=!0;w.NO_NORMALIZATION=!0;fa.set(e,{value:r,fb:w})}else fa.set(e,w)});super.ja(G,fa,ba,ha)}else super.ja(G,U,ba,ha)}}class P extends je{constructor(G){super();this.B=G;this.j=!1}ja(G,U,ba,ha={}){if(G.local.toLowerCase()==="meta"&&v(G)){let ca=this.j;U.forEach(function(fa,w){w.toString().toLowerCase()==="http-equiv"&&fa.value.trim().toLowerCase()==="content-type"&&
(ca=!0)});this.j=ca}this.j||(super.ja(G,U,ba,ha),G.local.toLowerCase()==="head"&&v(G)&&(U=new de,U.set(t.QName.fromParts("","","http-equiv"),{value:"Content-Type",fb:{}}),U.set(t.QName.fromParts("","","content"),{value:(this.B["media-type"]||"text/html")+"; charset="+(this.B.encoding||"UTF-8"),fb:{}}),this.g.ja(t.QName.fromParts("",G.uri,"meta"),U,{},{}),this.g.endElement()))}endElement(){this.j?this.j=!1:this.g.endElement()}}class T extends ge{constructor(G,U,ba){super(ba);this.B=G;this.g=U;this.va=
G["use-character-maps"]||null}close(){this.tb(this.result());this.g.end&&this.g.end();super.close()}Na(G){this.B["normalization-form"]&&this.B["normalization-form"]!=="none"&&(G=G.normalize(this.B["normalization-form"]));const U=this.B.encoding||"UTF-8",ba="escape-solidus"in this.B?this.B["escape-solidus"]:!0;let ha="";for(let ca=0;ca<G.length;ca++){let fa=G.charCodeAt(ca),w=G.charAt(ca);switch(w){case '"':ha+='\\"';break;case "\b":ha+="\\b";break;case "\f":ha+="\\f";break;case "\n":ha+="\\n";break;
case "\r":ha+="\\r";break;case "\t":ha+="\\t";break;case "\\":ha+="\\\\";break;case "/":ha=ba?ha+"\\/":ha+"/";break;default:ha=fa<=31||fa>=127&&fa<=159||!c(fa,U)?ha+("\\u"+("0000"+fa.toString(16).toUpperCase()).slice(-4)):ha+w}}return ha}qa(G){let U='"';if(this.va){const fa=this.va;let w="",e=!1;var ba=!0;for(var ha=0;ha<G.length;ha++){var ca=G.charCodeAt(ha);if(ca>=fa.min&&ca<=fa.max){ba=!1;break}}if(ba)w=G;else for(ba=0;ba<G.length;ba++){ha=G.charAt(ba);ca=G.charCodeAt(ba);const r=55296<=ca&&ca<=
56320;r&&(ca=G.codePointAt(ba));fa.va[ca]?(e||(w!==""&&(U+=this.Na(w),w=""),e=!0),w+=fa.va[ca],r&&ba++):(e&&(U+=w,w="",e=!1),w+=ha)}U=e?U+w:U+this.Na(w)}else U+=this.Na(G);return U+'"'}tb(G){function U(ca){switch(ca.length){case 0:ha.g.write("null");break;case 1:ba(ca[0]);break;default:throw new F("Cannot output a sequence of length "+ca.length+" as JSON","SERE0023");}}function ba(ca){var fa=Da.XS;if(Da.ma(ca))if(fa.boolean.matches(ca))ha.g.write(ca.toString());else if(fa.numeric.matches(ca)){ca=
ca.toString();if(["NaN","INF","-INF"].includes(ca))throw new F("Cannot output INF or NaN as JSON","SERE0020");ha.g.write(ca)}else ha.g.write(ha.qa(ca.toString()));else if(Gc.U(ca)){fa=Object.assign({},ha.B);fa.method=fa["json-node-output-method"]||"xml";fa["item-separator"]=null;fa["omit-xml-declaration"]=!0;fa.encoding="UTF-8";const w=new ka;h(ca,fa,w,ha.la);ha.g.write(ha.qa(w.toString()))}else if(qc.isArray(ca))if(ca=ca.value,ca.length===0)ha.g.write("[]");else{ha.ha("[");U(ca[0]);for(fa=1;fa<ca.length;fa++)ha.R(),
U(ca[fa]);ha.O("]")}else if(ca instanceof pb){let w=!0;ha.ha("{");const e={};ca.forAllPairs(r=>{w?w=!1:ha.R();const H=ha.qa(r.k.toString());if(!ha.B["allow-duplicate-names"]){if(e[H])throw new F("Duplicate key '"+H+"' in serialized JSON map","SERE0022");e[H]=!0}ha.g.write(H);ha.Za();U(r.v)});ha.O("}")}else throw new F("Cannot output as JSON: "+sa.showValue(ca),"SERE0021");}const ha=this;U(G)}ha(G){this.g.write(G)}O(G){this.g.write(G)}R(){this.g.write(",")}Za(){this.g.write(":")}}class Y extends T{constructor(G,
U,ba){super(G,U,ba);this.j=0;this.ya=G["Q{http://saxon.sf.net/}indent-spaces"]||3}ha(G){super.ha(G);this.j++;this.g.write("\n".padEnd(this.j*this.ya+1," "))}O(G){this.j--;this.g.write("\n".padEnd(this.j*this.ya+1," "));super.O(G)}R(){super.R();this.g.write("\n".padEnd(this.j*this.ya+1," "))}Za(){this.g.write(": ")}}class da extends ge{constructor(G,U,ba){super(ba);this.B=G;this.g=U;this.la=ba;this.va=G["use-character-maps"]||null}close(){function G(e,r){for(let H in["fn","math","map","array","xs"])if(xa.withPrefix[H]===
e)return H+":"+r;return"Q{"+e+"}"+r}function U(e){return ca.va?n(ca.va,!1)(e):e}function ba(e,r){if(e.length===1)ha(e[0],r);else{r.write("(");let H=!0;for(let C=0;C<e.length;C++)H?H=!1:r.write(","),ha(e[C],r);r.write(")")}}function ha(e,r){if(Gc.U(e))switch(e.nodeType){case 9:case 11:case 1:case 7:case 8:case 3:case 4:var H=Object.assign({},ca.B);H.method="xml";H["item-separator"]=null;H.encoding="UTF-8";var C=new ka;l(H,C,ca.la).append(e);r.write(C.toString());break;case 2:r.write(Gc.$(e)+'="'+e.value+
'"',{});break;case 13:r.write("*** Namespace Node ****",{})}else if(Da.ma(e))H=e.code,H==="AB"?r.write(e.toBoolean()?"true()":"false()"):e.isStringLike()?(H=e.toString(),/"/.test(H)?r.write("'"+U(H.replace(/'/g,"''"))+"'"):r.write('"'+U(e.toString().replace(/"/g,'""'))+'"')):/^AD/.test(H)?r.write(e.toString()):/^A[OF]/.test(H)?r.write(e.toString()):r.write(`${Da.kd(H)} ("${e.toString()}")`);else if(e instanceof qb){e=e.value;r.write("[");H=!0;for(C=0;C<e.length;C++)H?H=!1:r.write(","),ba(e[C],r);
r.write("]")}else if(e instanceof pb){r.write("map{");let O=!0;e.forAllPairs(S=>{O?O=!1:r.write(",");ha(S.k,r);r.write(":");ba(S.v,r)});r.write("}")}else e instanceof yc.XdmFunction?e.local?r.write(G(e.uri,e.local)+"#"+e.arity):r.write("(anonymous function)#"+e.arity):r.write("JS: "+sa.showValue(e))}const ca=this;let fa=this.result(),w=!0;for(let e=0;e<fa.length;e++){const r=fa[e];w?w=!1:this.g.write(this.B["item-separator"]||" ");ha(r,this.g)}this.g.end&&this.g.end();super.close()}}class Z extends je{constructor(G,
U){super();this.j=G;this.J=U;this.pending=[];this.B=!1}Ca(G={}){this.pending.push(function(U){U.Ca(G)})}ja(G,U,ba,ha={}){if(!this.B){const ca=this.j["Q{http://saxon.sf.net/}stylesheet-version"];let fa="xml";G.local==="html"&&G.uri==="http://www.w3.org/1999/xhtml"?fa=ca===10?"xml":"xhtml":G.local.toLowerCase()==="html"&&G.uri===""&&(fa="html");this.j=Object.assign({},this.j);this.j.method=fa;this.g=l(this.j,this.J);this.g instanceof Z&&sa.ka("cannot create committed serializer: "+JSON.stringify(this.j));
this.pending.forEach(w=>w(this.g));this.B=!0;this.pending=[]}super.ja(G,U,ba,ha)}text(G,U={}){this.B?super.text(G,U):this.pending.push(function(ba){ba.text(G,U)})}ta(G,U={}){this.B?super.ta(G,U):this.pending.push(function(ba){ba.ta(G,U)})}sa(G,U,ba={}){this.B?super.sa(G,U,ba):this.pending.push(function(ha){ha.sa(G,U,ba)})}append(G,U={}){this.B?super.append(G,U):this.pending.push(function(ba){ba.append(G,U)})}wa(){this.B?super.wa():this.pending.push(function(G){G.wa()})}close(){this.B||(this.j.method=
"xml",this.g=l(this.j,this.J),this.pending.forEach(G=>G(this.g)));super.close()}}class la extends m{constructor(G,U){super(G,U);this.j=!1}text(G){this.j||this.B();this.g.write(G)}append(G){this.j||this.B();this.g.write(G.toString())}B(){this.Ka["byte-order-mark"]&&this.Ka.encoding==="UTF-8"&&this.g.write("\ufeff");this.j=!0}}class ka{constructor(){this.ia=""}write(G){this.ia+=G}toString(){return this.ia}}return{serialize:h,eh:l,yf:ka,df:function(G,U,ba=null){function ha(e,r="SEPM0017"){throw new F("Serialization params: "+
e,r);}function ca(e,r=[]){const H=Gc.$(e);Gc.Ha.Fa(e).forEachItem(function(C){C=Gc.$(C);C.uri!==""||r.includes(C.local)||ha("attribute @"+C.local+" must not appear on element "+H.toString())})}function fa(e,r){let H=Gc.getAttribute(e,r,null);H===null&&ha("attribute @"+r+" is missing on element "+Gc.$(e).toString());return H}Gc.$(G).local!=="serialization-parameters"&&ha("root element name must be 'serialization-parameters'",ba||"SEPM0017");Gc.$(G).uri!=="http://www.w3.org/2010/xslt-xquery-serialization"&&
ha("root element namespace must be http://www.w3.org/2010/xslt-xquery-serialization",ba||"SEPM0017");ca(G);let w=[];Gc.bd(G).forEach(function(e){if(Gc.dd(e,"http://www.w3.org/2010/xslt-xquery-serialization")){var r=Gc.$(e).local;let H;w.includes(r)&&ha("duplicated parameter "+r,"SEPM0019");w.push(r);r==="use-character-maps"?(ca(e),H={min:0,max:0,va:{}},Gc.bd(e).forEach(function(C){if(Gc.dd(C,"http://www.w3.org/2010/xslt-xquery-serialization")&&Gc.$(C).local==="character-map"){ca(C,["character","map-string"]);
const O=fa(C,"character");O.length>1&&ha("keys in a character map must all be one-character strings. Found "+O);const S=O.codePointAt(0);C=fa(C,"map-string");H.va[S]!==void 0?ha("character map contains two entries for the character "+O,"SEPM0019"):(H.va[S]=C,H.min===0?H.min=S:S<H.min&&(H.min=S),S>H.max&&(H.max=S))}else ha("invalid child of use-character-maps: "+Gc.$(C).toString())}),H.min>55296&&(H.min=55296)):(ca(e,["value"]),H=fa(e,"value"),H=k(r,H,function(C){return e.lookupNamespaceURI(C)}));
typeof H!=="undefined"&&(U[r]=q(r,H,U[r]))}else Gc.dd(e,"")&&ha("element in no namespace: "+Gc.$(e).local),r=Gc.$(e).toEQName(),w.includes(r)&&ha("duplicated parameter "+r,"SEPM0019"),w.push(r)})},cf:q,nf:k,mf:function(G,U,ba){G=k(G,U);return K(G,ba)},pj:K,ej:function(G){function U(fa,w="SEPM0017"){throw new F("Serialization params: "+fa,w);}let ba=0,ha=0,ca={};for(let [fa,w]of Object.entries(G)){G=fa;G.length>1&&U("keys in a character map must all be one-character strings. Found "+G);const e=G.codePointAt(0);
ca[e]!==void 0&&U("character map contains two entries for the character "+G,"SEPM0019");ca[e]=w;ba===0?ba=e:e<ba&&(ba=e);e>ha&&(ha=e);ba>55296&&(ba=55296)}return{min:ba,max:ha,va:ca}}}}();
// Input 37
const fe=function(){function a(f,E,J,z){const b=new AbortController;if(J!==0){const d=new DOMException("Request aborted by timeout","TimeoutError");setTimeout(()=>b.abort(d),J)}J=na.newURL(f);if(J.protocol!=="file:"||na.ra()){J=new Headers;J.append("Accept","application/xml, text/xml;q=0.9, application/xhtml+xml;q=0.8, */*;q=0.7");let d;E=fetch(f,{method:"GET",headers:J,signal:b.signal}).catch(()=>{if(b.signal.aborted){if(b.signal.reason.name==="TimeoutError")throw new F("Document fetch timeout: "+
f,"SXJS0008");throw new F("Document fetch aborted: "+f,"SXJS0008");}throw new F("Document fetch failed: "+f,"SXJS0009");}).then(h=>{const t=h.headers;t.has("Content-Type")&&(d=t.get("Content-Type"));return h.arrayBuffer()}).then(h=>({contentType:d,arrayBuffer:h})).then(E,E)}else E=na.vj(J,{signal:b.signal}).then(d=>({buffer:d})).catch(d=>{throw new F("Failed to read file "+f+" ("+d.message+")","SXJS0009");}).then(E,E);z.fixed.ic.push(E);return b}function c(f,E,J,z,b){function d(h){sa.ua("Add to response pool "+
f,2,b.fixed.Ga);J[f]=h;E(J)}if(!J[f]||J[f]instanceof F)return a(f,d,z,b);sa.ua("Doc already in pool "+f,2,b.fixed.Ga);E(J);return null}function n(f,E,J,z,b){J=J==="xml"?E.fixed.Ta:E.fixed.kb;E=E.fixed.Sb;var d=J[f];if(!d||d instanceof F){d=E[f];if(!d){try{d=z()}catch(h){d=h}E[f]=d}d=b(d);J[f]=d}if(d instanceof F)throw d;return d}function v(f){let E;f[0]===255&&f[1]===254?E="utf-16le":f[0]===254&&f[1]===255?E="utf-16be":f[0]===239&&f[1]===187&&f[2]===191&&(E="utf-8");return E}function M(f){let E;f.includes("encoding=")&&
(f=f.slice(f.indexOf("encoding=")).toLowerCase(),f.includes("iso-8859-1")||f.includes("us-ascii")?E="iso-8859-1":f.includes("utf-16")?E="utf-16le":f.includes("utf-8")&&(E="utf-8"));return E}function g(f,E,J,z){let b,d;try{if(z&&z.includes("charset=")){const t=z.split(/\s*(?:;|$)\s*/);for(const m of t)m.includes("charset=")&&(b=m.substring(8))}if(!b){const t=new Uint8Array(f.slice(0,4));b=v(t)}if(!b){const t=f.slice(0,80),m=(new TextDecoder).decode(t);m.startsWith("<?xml ")&&m.includes("?>")&&(b=M(m.slice(0,
m.indexOf("?>"))))}let h=b||K(E)||"utf-8";d=(new TextDecoder(h,{fatal:!0})).decode(f||void 0)}catch(h){throw new F("Failed to decode "+J+" ("+h.message+")","FOUT1190");}return d}function l(f,E){let J;try{J=(new TextDecoder("utf-8",{fatal:!0})).decode(f)}catch(z){throw new F("Failed to decode "+E+" ("+z.message+")","FOUT1190");}return J}function k(f){if(f.indexOf("\x00")>=0)throw new F("External file contains non-XML characters","FOUT1190");return f}function q(f){f.charAt(0)==="\ufeff"&&(f=f.substring(1));
return f}function y(f,E,J){if((f=f[0].next())&&Gc.fd(f.toString()))return f.toString();E=E.fixed.ea.Da(J,E);if(E===null||E==="#UNDEFINED")throw new F("No base URI for relative resolution","FODC0002",J);return f===null?null:na.pb(f.toString(),E)}function K(f){const E={binary:"iso-8859-1",utf16le:"utf-16le",ucs2:"utf-16le","ucs-2":"utf-16le"};return f?E[f.toLowerCase()]||f:f}function D(f){function E(b){if(b.nodeType===11){let d=na.createDocument();b=d.importNode(b,!0);d.appendChild(b);b=d}return b}
function J(b){throw new F(b+" in HTTP request to: "+f.href,"SXJS0006");}if(!f.href)throw new F("'href' must be specified in HTTP request","SXJS0006");f.method||J("'method' must be specified");f.method=f.method.toUpperCase();"status-only"in f&&typeof f["status-only"]!=="boolean"&&J("'status-only' parameter must be of type xs:boolean");"pool"in f&&f.pool!=="xml"&&f.pool!=="text"&&J("'pool' parameter must be either 'xml' or 'text'");"timeout"in f&&(typeof f.timeout!=="number"||f.timeout<0)&&J("'timeout' parameter must be a positive integer");
f.allowedBody=f.method!=="GET"&&f.method!=="HEAD";f.hasData="body"in f||"multipart-bodies"in f;("multipart-bodies"in f||"multipart-headers"in f)&&J("Multipart requests not yet implemented");!f.allowedBody&&f.hasData&&J("Body and multipart body content must be null for "+f.method+" request");"headers"in f||(f.headers={});const z=f["media-type"]||f.headers["content-type"]||"";f.hasData&&z===""&&J("No content type specified");f.hasData&&"media-type"in f&&(f.headers["content-type"]=z);"multipart-bodies"in
f&&!/$multipart\//.test(z)&&J("Content type must be multipart media type for multipart request");("username"in f&&!("password"in f)||!("username"in f)&&"password"in f)&&J("Must set both (or neither) username and password");f.body&&f.body.nodeType===11&&(f.body=E(f.body,z));f.hasData&&(z==="text/xml"||z==="application/xml"||z==="text/xml-external-parsed-entity"||z==="application/xml-external-parsed-entity"||/\+xml$/.test(z)||z==="text/html")&&f.body.nodeType!==9&&J("HTTP request body must be a document node, supplied item is: "+
sa.showValue(f.body));return f}function u(f,E,J,z=!1){var b=new Headers;for(var d in f.headers)f.headers.hasOwnProperty(d)&&b.append(d,f.headers[d]);"username"in f&&(d=na.ni(f.username+":"+f.password),b.append("Authorization","Basic "+d));b={method:f.method,headers:b};E&&(b.signal=E.signal);f.body!==void 0&&(b.body=f.body.nodeType===9?ve.serialize(f.body):f.body);const h=f.href;let t,m;try{t=new Request(h,b),m=fetch(t)}catch(B){m=Promise.reject(B)}const L={};let V,ea;return m.then(B=>{V=B.ok;sa.ua("SaxonJS processing httpRequest response",
2,J.fixed.Ga);const Q=B.headers;Q.has("Content-Type")&&(ea=Q.get("Content-Type"));const p={};Q.forEach((I,A)=>{p[A]=I});L.headers=p;L.status=B.status;L.message=B.statusText;return B.arrayBuffer()}).then(B=>{if(!f["status-only"]&&f.method!=="HEAD"){const p=ea||"";var Q=p.split(/;/)[0];const I=f["override-media-type"]||Q;L["media-type"]=I;Q=na.Rb;switch(I){case "text/xml":case "application/xml":case "text/xml-external-parsed-entity":case "application/xml-external-parsed-entity":B=g(B,null,h,p);B=q(k(B));
L.body=Q(B);L.body._saxonBaseUri=h;L.body._saxonDocUri=h;break;case "text/html":B=l(B,h);L.body=Q(B,!1,I);L.body._saxonBaseUri=h;L.body._saxonDocUri=h;break;default:/\+xml$/.test(I)?(B=g(B,null,h,p),B=q(k(B)),L.body=Q(B),L.body._saxonBaseUri=h,L.body._saxonDocUri=h):(/^text\//.test(I)?(Q=g(B,null,h,p),B=q(k(Q))):B=l(B,h),L.body=B)}if("pool"in f){if(!V)throw new F("Cannot add to pool, unsuccessful HTTP response status: "+L.status,"SXJS0009");if(f.pool==="xml")if(L.body._saxonDocUri)J.fixed.Ta[h]=L.body;
else throw new F("Only documents can be added to the documentPool, HTTP response is not a document","SXJS0009");else J.fixed.kb[h]=B}}return Kc(Bc(L))}).catch(B=>{if(E.signal&&E.signal.aborted&&E.signal.reason.name==="TimeoutError")throw E.signal.reason;throw B;}).catch(B=>{let Q="HTTP request failed: "+h+" ("+B.message+")",p="SXJS0009";B.name==="AbortError"?(Q="HTTP request aborted: "+h+" ("+B.name+": The user aborted a request)",p="SXJS0008"):B.name==="TimeoutError"&&(Q="HTTP request timeout: "+
h+" ("+B.name+": "+B.message+")",p="SXJS0008");throw new F(Q,p);}).catch(B=>{if(z)throw B;let Q="error";E&&E.signal&&E.signal.aborted&&(Q=E.signal.reason.name==="TimeoutError"?"timeout":"abort");var p=B.message;B=B.code;L.status=0;L.message=p+": "+f.href;L.error=B;L.type=Q;return Kc(Bc(L))})}return{Zd:y,yd:function(f,E,J){try{return y(f,E,J)}catch(z){if(z instanceof F&&z.code==="XPTY0004")throw z;throw new F(z.message,"FOUT1170",J);}},Xh:function(f,E,J,z,b){function d(m){--h<=0&&J(m)}let h=f.length,
t={};for(let m=0;m<f.length;m++)f[m]?t[f[m]]=c(f[m],d,E,z,b):h--;return t},Ek:v,Fk:M,Ne:function(f){if(f==="")return null;if(!["utf-8","utf-16","utf-16be","iso-8859-1"].includes(f.toLowerCase()))throw new F("Unrecognized encoding "+f,"FOUT1190");return f},Fg:k,Gg:q,gi:function(f){const E={};f.headers&&(E.headers=f.headers);if(f=f.controller)E.signal=f.signal;return E},Jk:l,xc:function(f,E){if(f.indexOf("#")>=0)throw new F("Fragments not supported in external document URIs","FODC0002");return n(f,
E,"xml",function(){let J;try{J=na.gg(f,!0)}catch(z){if(z instanceof F&&z.code==="FOUT1190")throw new F(z.message,"FODC0002");throw z;}return J},function(J){if(J instanceof F)return J;let z;J.buffer&&!na.ra()?z=na.Jg(J.buffer,null,f,null):J.arrayBuffer?z=g(J.arrayBuffer,null,f,J.contentType):J instanceof String?z=J:z=J.responseText;z=q(k(z));J=Gc.dc(na.Rb(z));J._saxonBaseUri=f;J._saxonDocUri=f;return J})},xi:function(f,E){if(f.indexOf("#")>=0)throw new F("Fragments not supported in text document URIs",
"FOUT1170");return n(f,E,"text",function(){let J;try{J=na.gg(f,!0)}catch(z){if(z instanceof F)throw new F(z.message,"FOUT1170");throw z;}return J},function(J){if(J instanceof F)return J;let z,b=J.buffer||J.arrayBuffer;b?z=l(b,f):J instanceof String?z=J:z=J.responseText;return q(z)})},Mf:function(f,E,J,z){if(f.indexOf("#")>=0)throw new F("Fragments not supported in text document URIs","FOUT1170");return n(f,E,"text",function(){let b;try{b=na.gg(f,!0)}catch(d){if(d instanceof F&&d.code==="FOUT1190")throw d;
throw new F("Cannot retrieve unparsed-text "+f+" "+d.toString(),"FOUT1170",J);}return b},function(b){if(b instanceof F)return b;let d;b.buffer&&!na.ra()?d=na.Jg(b.buffer,z,f,null):b.arrayBuffer?d=g(b.arrayBuffer,z,f,b.contentType):b instanceof String?d=b:d=b.responseText;return q(k(d))})},Ni:function(f,E,J,z,b){let d;return fetch(f,E).then(h=>{if(b&&!h.ok)throw new F("Request failed with status code "+h.status+": "+h.statusText);const t=h.headers;t.has("Content-Type")&&(d=t.get("Content-Type"));return h.arrayBuffer()}).then(h=>
J==="text"||J==="xml"?g(h,z,f,d):l(h,f)).catch(h=>{if(E.signal&&E.signal.aborted&&E.signal.reason.name==="TimeoutError")throw E.signal.reason;throw h;})},Oi:u,gj:function(f,E,J,z){f=Mc(f,!0);D(f);sa.ua("HTTP request prepared",2,z.fixed.Ga);const b=new AbortController;"timeout"in f&&J===0&&(J=f.timeout);if(J!==0){const d=new DOMException("Request aborted by timeout","TimeoutError");setTimeout(()=>b.abort(d),J)}J=u(f,b,z,!1).then(d=>E(d));z.fixed.ic.push(J);return b},sj:D,uj:function(f,E,J,z){let b=
"Failed to read "+J+" ("+(/ENOENT/.test(f.message)?"no such file":f.message)+")";["AbortError","TimeoutError"].includes(f.name)&&(b="Failed to read "+J+" ("+f.name+": "+("TimeoutError"===f.name?f.message:"The user aborted a request")+")",z="SXJS0008");return new F(b,z,E.expr)},renameEncoding:K,renameEncodingForBuffer:function(f){const E={"iso-8859-1":"latin1","iso-646":"ascii","us-ascii":"ascii","utf-16":"utf16le"};return f?E[f.toLowerCase()]||f:f},vh:function(f){try{return f(),sd(!0)}catch(E){if(E instanceof
F&&E.code==="XPTY0004")throw E;return sd(!1)}}}}();
// Input 38
const we=function(){const a={};return{register:function(c,n){a[c]=n},find:function(c){return a[c]},el:a}}();
// Input 39
const xe=function(){function a(B,Q,p,I,A){function x(la){return h.Va(la)===null}function N(la){return la.nodeType===P.nodeType&&(Y===null?!0:h.$(la).equals(Y))}let P;const T=A.fixed.ea;if(Q){if(P=T.evaluate(Q,A).next(),!P||!h.U(P))throw new F("xsl:number/@select must yield a single node","XTTE1000");}else vc(A,"XTTE0990","xsl:number"),P=sc(A);const Y=h.$(P);let da=N;if(p!==null){const la=Zd.jd(p);da=function(ka){return Zd.matches(la,ka,A)}}if(I===null)Q=x;else{const la=Zd.jd(I);Q=function(ka){return x(ka)||
Zd.matches(la,ka,A)}}let Z;switch(B){case "simple":return B=t.Jc(P).filter(N),pd(B.count()+1);case "single":B=t.Sa(P).filter(da).next();Z=t.Sa(P).filter(Q).next();B=B===null?null:t.Sa(B).filter(function(ka){return h.isSameNode(ka,Z)}).next()!==null?B:null;if(B===null)return nb;B=t.Jc(B).filter(da);return pd(B.count()+1);case "multi":B=ob(t.Sa(P).filter(da).expand().reverse());Z=t.Sa(P).filter(Q).next();B=B.filter(function(ka){return t.Sa(ka).filter(function(G){return h.isSameNode(G,Z)}).next()!==
null});const la=m.integer.fromNumber;return B.mapOneToOne(ka=>la(t.Jc(ka).filter(da).count()+1));case "any":return p=function(ka,G){return h.mb(G,ka)},B=new ed(t.eg(P).filter(da),t.Sa(P).filter(da),p),Z=(new ed(t.eg(P).filter(Q),t.Sa(P).filter(Q),p)).next(),Z===null&&sa.ka("from pattern selected empty"),B=B.filter(function(ka){return h.mb(ka,Z)>=0}),B=B.count(),B===0?nb:pd(B);default:return sa.ka("unknown xsl:number/@level "+B),nb}}function c(B,Q,p,I,A,x,N){function P(Y){let da;Y===""&&(Y="1");if(/^[\x01-\x7f]*$/.test(Y))Y=
Y.split(/\b/),da=function(ka){return/\w+/.test(ka)};else{if(Y.length!==ua.La(Y).length)throw new F("Cannot handle non-BMP characters in format-number picture","SXJS0002");const ka=ee.Df(Y,"[\\p{Nd}\\p{Nl}\\p{No}\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}]+","",!0,!1);da=function(G,U){return ka[U].Hc};Y=ka.map(function(G){return G.string.toString()})}const Z={prefix:"",$c:[],Td:""};let la=".";for(let ka=0;ka<Y.length;ka++){const G=Y[ka];da(G,ka)?(Z.$c.push({Eg:G,xh:la}),la="."):(ka===0&&(Z.prefix=G),ka===
Y.length-1?Z.Td=G:ka!==0&&(la=G))}Z.$c.length===0&&(Z.$c.push({Eg:"1",xh:"."}),Z.Td=Z.prefix);return Z}const T=N.fixed.ea;if(x!==null)try{m.language.cast(x)}catch(Y){throw new F("@lang="+x+": invalid language code","XTDE0030");}return function(Y){const da=Q===null?"1":T.evaluate(Q,N).next().toString(),Z=P(da);let la=Z.prefix;Y.forEach(function(ka,G){const U=G>=Z.$c.length?Z.$c[Z.$c.length-1]:Z.$c[G];G!==0&&(la+=U.xh);G=U.Eg;A&&(G+=";o");ka=xe.Qf(ka.toNumber(),G);p!==null&&I!==null&&(ka=xe.Bf(ka,p,
I));la+=ka});la+=Z.Td;return tc(la)}(B.expand())}function n(B,Q,p,I,A){const x=A.fixed.ea;let N=[1];p!==null&&(N=x.evaluate(p,A).next().toString().split(/\s+/).map(function(P){if(!/^-?[0-9]+$/.test(P))throw new F("xsl:number/@start-at must be a sequence of integers. Offending value: "+P,"XTSE0020");return parseInt(P,10)}));if(Q&&I){B=B.next();if(B===null)return null;try{B=m.integer.cast(B.round(0))}catch(P){return null}B=ob([B])}return B.mapOneToOne(function(P,T){P=P.isNumeric()?P.toDouble():m.double.ie(P.toString());
if(P.toNumber()<0)throw new F(`xsl:number/@value is less than zero (${P.toString()})`,"XTDE0980");try{P=m.integer.cast(P.round(0))}catch(Y){throw Y.code="XTDE0980",Y;}T=T>=N.length?N[N.length-1]:N[T];T!==1&&(P=m.integer.fromNumber(P.toNumber()+(T-1)));return P})}function v(B){if(B<1||B>4999)return B.toString();let Q="";const p="m cm d cd c xc l xl x ix v iv i".split(" "),I=[1E3,900,500,400,100,90,50,40,10,9,5,4,1];for(let A=0;A<p.length;A++)for(;B>=I[A];)Q+=p[A],B-=I[A];return Q}function M(B,Q){function p(A){return(A>
I?p(Math.floor((A-1)/I)):"")+Q.charAt((A-1)%I)}if(B<1)return B.toString();const I=Q.length;return p(B)}function g(B,Q){return B<Q.length?Q[B]:B.toString()}function l(B,Q){var p=Math.abs(B);for(p=p<999999?p.toString():ta(p).toFixed();p.length<Q;)p="0"+p;B<0&&(p="-"+p);return p}function k(B,Q="FODF1310"){const p=ua.La(B),I={};let A=!0;var x=0;let N;const P=ya.ue("\\p{Nd}",null);var T=B.search(P);if(T<0)A=!1;else{x=ya.oj().Nd;for(let da=0;da<x.length&&!(N=parseInt(x[da][0],16),N<=p[T]&&p[T]<=N+10);da++);
for(T=0;T<p.length;T++)if(p[T]>=128)if(x=String.fromCharCode(p[T]),P.test(x)){if(N>p[T]||p[T]>N+10)throw new F("Picture string mixes digits from different digit families: "+B,Q);}else if(ya.ue("\\p{N}\\p{L}",null).test(x))throw new F("Picture string is invalid: "+B,Q);const Y=[];x=N-48;p.forEach(function(da){N<=da&&da<=N+10?Y.push(48):Y.push(da)});B=ua.$b(Y)}I.isDecimalDigitPattern=A;I.format=B;I.diff=x;I.zeroDigit=N;return I}function q(B,Q){const p=[];ua.La(B).forEach(function(I){48<=I&&I<=57?p.push(I+
Q):p.push(I)});return ua.$b(p)}function y(B,Q,p,I="",A=!1){let x=0;for(let N=0;N<B.length;N++)if(N===Q[x]){const P=A?N+1:B.length-N;P>0&&(B=B.substring(0,P)+(p?p[A?x:p.length-x-1]:I)+B.substring(P));x++}return B}function K(B,Q,p="FODF1310"){let I=!0;var A=0;if(ua.La(Q).length!==Q.length)throw new F("Cannot handle non-BMP characters in format-integer picture","SXJS0002");/^[\x01-\x7f]*$/.test(Q)||(I=!1);if(I)var x=/[0-9]/.test(Q);else A=k(Q,p),Q=A.format,x=A.isDecimalDigitPattern,A=A.diff;x||(Q="1");
var N=Q;if(!/^(([0-9]|#|[^A-Za-z0-9])+?)$/.test(N))throw new F("The decimal digit pattern in the picture string is invalid: "+N,p);x=N;Q=!0;if(/[^0-9A-Za-z#]/.test(x)){var P=x.match(/[^0-9A-Za-z#]/g);if(P.length>1)for(let T=1;T<P.length;T++)if(P[0]!==P[T]){Q=!1;break}x=x.replace(/[^0-9A-Za-z#]/g,",")}if(/^,|,,|,$/.test(x))throw new F("Grouping in picture string is invalid: "+N,p);if(/[0-9].*#/.test(x))throw new F("Picture string is invalid: "+N,p);p=x.replace(/[#,]/g,"").length;B=l(B,p);if(P){x=ua.La(x).reverse();
p=[];for(N=0;N<x.length;N++)x[N]===44&&p.push(N);N=!0;x.length-p[p.length-1]-1>p[0]&&(N=!1);if(N)for(x=1;x<p.length;x++)if((p[x]+1)%(p[0]+1)!==0){N=!1;break}B=N&&Q?xe.Bf(B,P[0],p[0]):y(B,p,P)}P=B;I||(P=q(P,A));return P}function D(B){const Q="Zero One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve Thirteen Fourteen Fifteen Sixteen Seventeen Eighteen Nineteen".split(" "),p="  Twenty Thirty Forty Fifty Sixty Seventy Eighty Ninety".split(" ");return B<20?Q[B]:B<100?p[Math.floor(B/10)]+(B%
10===0?"":" "+Q[B%10]):B<1E3?D(Math.floor(B/100))+" Hundred"+(B%100===0?"":" and "+D(B%100)):B<1E6?D(Math.floor(B/1E3))+" Thousand"+(B%1E3===0?"":(B%1E3<100?" and ":" ")+D(B%1E3)):B<1E9?D(Math.floor(B/1E6))+" Million"+(B%1E3===0?"":(B%1E3<100?" and ":" ")+D(B%1E6)):B.toString()}function u(B){const Q="Zeroth First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh Twelfth Thirteenth Fourteenth Fifteenth Sixteenth Seventeenth Eighteenth Nineteenth".split(" "),p="  Twent Thirt Fort Fift Sixt Sevent Eight Ninet".split(" ");
return B<20?Q[B]:B<100?p[Math.floor(B/10)]+(B%10===0?"ieth":"y "+Q[B%10]):B<1E3?D(Math.floor(B/100))+" Hundred"+(B%100===0?"th":" and "+u(B%100)):B<1E6?D(Math.floor(B/1E3))+" Thousand"+(B%1E3===0?"th":(B%1E3<100?" and ":" ")+u(B%1E3)):B<1E9?D(Math.floor(B/1E6))+" Million"+(B%1E3===0?"th":(B%1E3<100?" and ":" ")+u(B%1E6)):B.toString()}function f(B){return B%10===1&&B%100!==11?"st":B%10===2&&B%100!==12?"nd":B%10===3&&B%100!==13?"rd":"th"}function E(B,Q,p="FODF1310"){function I(N,P){let T="";for(let Y=
N.charCodeAt(0),da=0;da<P;Y++,da++)T+=String.fromCharCode(Y);return T}var A;let x=null;if((A=Q.lastIndexOf(";"))!==-1){x=Q.substring(A+1);if(!/^([co](\(.+\))?)?[at]?$/.test(x))throw new F("Invalid format modifier in picture string: "+x,p);x=x.charAt(0);Q=Q.substring(0,A)}if(Q==="")throw new F("In the picture string, the picture cannot be empty",p);A=B<0?"-":"";if(x==="o")switch(Q.toString()){case "a":case "A":case "i":case "I":break;case "Ww":return A+u(Math.abs(B));case "W":return A+u(Math.abs(B)).toUpperCase();
case "w":return A+u(Math.abs(B)).toLowerCase();default:return K(B,Q,p)+f(Math.abs(B))}switch(Q.toString()){case "a":return M(B,I("a",26));case "A":return M(B,I("A",26));case "\u03b1":return M(B,I("\u03b1",25));case "\u0391":return M(B,I("\u0391",25));case "i":return v(B);case "I":return v(B).toUpperCase();case "Ww":return A+D(Math.abs(B));case "W":return A+D(Math.abs(B)).toUpperCase();case "w":return A+D(Math.abs(B)).toLowerCase();case "\u2460":return g(B,"\u24ea"+I("\u2460",20)+I("\u3251",15)+I("\u32b1",
15));case "\u2474":return g(B,"0"+I("\u2474",20));case "\u2488":return B===0?"\ud83c\udd00":g(B,"0"+I("\u2488",20));case "\u2776":return g(B,"\u24ff"+I("\u2776",10)+I("\u24eb",10));case "\u2780":return B===0?"\ud83c\udd0b":g(B,"0"+I("\u2780",10));case "\u278a":return B===0?"\ud83c\udd0c":g(B,"0"+I("\u278a",10));case "\u24f5":return g(B,"0"+I("\u24f5",10));case "\u3220":return g(B,"0"+I("\u3220",10));case "\u3280":return g(B,"0"+I("\u3280",10));default:return K(B,Q,p)}}function J(B,Q){return String.fromCharCode(parseInt(B[Q]?
B[Q]:L[Q],10))}function z(B,Q){function p(e){[["$gs","grouping separator"],["$es","exponent separator"],["$ds","decimal separator"],["$pc","non-prefix passive character"],["$pp","percent|permille"],["$od","optional digit"],["$md","mandatory digit"],["$ip","integer part"],["$fp","fractional part"]].forEach(function(r){e=e.replace(r[0],r[1])});throw new F("Invalid picture: "+e,"FODF1310");}const I={};var A=B.indexOf(Q.Qe),x=A>=0;const N=Q.Nh.charCodeAt(0);let P=0,T=0,Y=[];const da=[],Z=[];let la=-1,
ka=-1,G=!1,U=!1;var ba=-1;let ha=0;var ca=x?A:B.length;for(var fa=0;fa<ca;fa++){var w=B.charCodeAt(fa);w>=N&&w<N+10?(ka>0&&p("digit follows $pc"),G?ha++:(P<1&&la<0&&(la=fa),P++,T++)):w===Q.Kg.charCodeAt(0)?(ka>0&&p("digit follows $pc"),G&&p("$od follows $es"),P>0&&p("$od follows $md in $ip"),la<0&&(la=fa,U=!0),T++):w===Q.je.charCodeAt(0)?(Z.length>0&&p("$gs follows $pc"),G&&p("$gs follows $es"),Y.push(fa)):w===Q.od.charCodeAt(0)||w===Q.te.charCodeAt(0)?x?p("$pp before $ds"):(la<0&&p("$pp before any digit"),
ka>0&&p("$pp follows $pc"),G&&p("$pp follows $es"),Z.push(w),ka<0&&(ka=fa),w===Q.od.charCodeAt(0)?I.od=!0:I.te=!0):!x&&la>=0&&w===Q.wc.charCodeAt(0)&&ka<0?G?(Z.push(w),ha>0?ka<0&&(ka=fa):(Z.push(w),G=!1,ba=-1,ka<0&&(ka=fa-1))):(G=!0,ba=fa):la>=0&&x?p("$pc before $ds"):G&&ha===0?(G=!1,ba=-1,Z.push(Q.wc.charCodeAt(0)),Z.push(w),ka<0&&(ka=fa-1)):la>=0?(Z.push(w),ka<0&&(ka=fa)):da.push(w)}if(Y.length>0){const e=x?A:G?ba:ka>0?ka:B.length;Y=Y.map(function(r){return e-r-1}).reverse()}if(Y.length!==0)for(Y[0]===
0&&p("$gs at end of $ip"),ba=0;ba<Y.length-1;ba++)Y[ba]+1===Y[ba+1]&&p("consecutive $gs in $ip");fa=ca=0;w=[];if(x){x=-1;B=B.substring(A+1);for(let e=0;e<B.length;e++){const r=B.charCodeAt(e);r>=N&&r<N+10?G&&ka<0?ha++:x>=0||ka>=0?p("$md follows $od or $pc in $fp"):(ca++,fa++):r===Q.Kg.charCodeAt(0)?((ka>=0||G)&&p("$od follows $pc or $es"),x<0&&(x=e),fa++):r===Q.je.charCodeAt(0)?((ka>=0||G)&&p("$gs follows $pc or $es"),w.push(e-A+1)):r===Q.Qe.charCodeAt(0)?p("more than one $ds"):r===Q.od.charCodeAt(0)||
r===Q.te.charCodeAt(0)?((ka>=0||G)&&p("$pp follows $pc or $es"),Z.push(r),ka=e,r===Q.od.charCodeAt(0)?I.od=!0:I.te=!0):r===Q.wc.charCodeAt(0)&&ka<0?G?(Z.push(r),ha>0?ka<0&&(ka=e):(Z.push(r),G=!1,ba=-1,ka<0&&(ka=e-1))):(G=!0,ba=e):G&&ha===0?(G=!1,ba=-1,Z.push(Q.wc.charCodeAt(0)),Z.push(r),ka<0&&(ka=e-1)):(Z.push(r),ka<0&&(ka=e))}}la<0&&fa===0&&p("mantissa contains no digits");if(w.length!==0)for(w[0]===0&&p("$gs at beginning of $fp"),A=0;A<w.length-1;A++)w[A]+1===w[A+1]&&p("consecutive $gs in $fp");
P===0&&fa===0&&(G?fa=ca=1:P=1);G&&P===0&&U&&(P=1);P===0&&ca===0&&(ca=1);I.$e=P;I.prefix=da;I.Ob=Y;I.sh=U;I.rj=T;I.re=ca;I.qe=fa;I.Rf=w;I.Vg=ha;I.wc=Q.wc?Q.wc:"e";I.Td=Z;return I}function b(B){return Math.floor((B.getTime()-(new Date(Date.UTC(B.getUTCFullYear(),0,1))).getTime())/864E5)+1}function d(B,Q){const p=Q?b(B):B.getUTCDate();B=new Date(Date.UTC(B.getUTCFullYear(),Q?0:B.getUTCMonth(),1));let I=B.getUTCDay();I===0&&(I=7);return I>4&&I+p<=8?d(new Date(B.getTime()-864E5),Q):Math.floor((p+I-2)/
7)+(I<5?1:0)}const h=Gc,t=h.Ha,m=Da.XS,L={"decimal-separator":"46","grouping-separator":"44",digit:"35","minus-sign":"45",percent:"37","per-mille":"8240","zero-digit":"48","exponent-separator":"101","pattern-separator":"59",infinity:"Infinity",NaN:"NaN"},V={Y:"getUTCFullYear",M:"getUTCMonth",D:"getUTCDate",F:"getUTCDay",H:"getUTCHours",m:"getUTCMinutes",s:"getUTCSeconds",f:"getUTCMilliseconds"},ea={d:b,W:function(B){return d(B,!0)},w:function(B){return d(B,!1)},h:function(B){return B.getUTCHours()<
13?B.getUTCHours()===0?12:B.getUTCHours():B.getUTCHours()-12},P:function(B){return B.getUTCHours()<12?"Am":"Pm"},E:function(B){return B.getUTCFullYear()<0?"BC":"AD"}};return{mj:function(B,Q){const p=Q.fixed.ea,I=B.level,A=p.aa(B,"select"),x=p.aa(B,"count");B=p.aa(B,"from");return a(I,A,x,B,Q)},nj:function(B,Q){var p=Q.fixed.ea;const I=p.aa(B,"value"),A=p.aa(B,"format"),x=p.nc(p.aa(B,"gpSep"),Q).next(),N=p.nc(p.aa(B,"gpSize"),Q).next();var P=p.nc(p.aa(B,"ordinal"),Q).next();const T=p.nc(p.aa(B,"lang"),
Q).next();var Y=B.flags||"";B=p.aa(B,"startAt");Y=/1/.test(Y);p=p.evaluate(I,Q);p=n(p,Y,B,!0,Q);P=P?qc.bj(P.toString()):!1;return p===null?tc("NaN"):c(p,A,x,N,P,T,Q)},Qf:E,Bf:function(B,Q,p){let I="";for(let A=0;A<B.length;A++)I+=B.charAt(A),(p===1||(B.length-A)%p===1)&&A<B.length-1&&(I+=Q);return I},zi:function(B,Q,p){const I=B<0?!0:B===0?1/B<0:!1;p={Qe:J(p,"decimal-separator"),je:J(p,"grouping-separator"),Kg:J(p,"digit"),jj:J(p,"minus-sign"),od:J(p,"percent"),te:J(p,"per-mille"),Nh:J(p,"zero-digit"),
wc:J(p,"exponent-separator"),rh:J(p,"pattern-separator"),Qi:p.infinity||L.infinity,kj:p.NaN||L.NaN};if(isNaN(B))return p.kj;Q=Q.includes(p.rh)?Q.split(p.rh):[Q];if(Q.length>2)throw new F("Invalid picture: multiple pattern separators","FODF1310");const A=z(Q.length>1&&B<0?Q[1]:Q[0],p);if(isFinite(B)){if(A.Vg>0){var x=A.$e;var N=A.re;var P=A.qe;var T=A.wc,Y=x===1&&A.sh;Y&&(x=0,N===0&&(N=1,P===0&&(P=1)));var da=A.Vg;B=ta(B);let ka=B.c;var Z=x!==0?x+P:P,la=B.e;ka.length>Z&&(B=ta(B.toPrecision(Z)));(Z=
la!==B.e)&&(x+=1);x>1?B=B.Mb(ta(10).pow(x-1)):x===0&&(B=B.Ub(ta(10)));N=x!==0?x+N:N;for(ka=B.c;ka.length<N;)ka.push(0);N="";if(ka.length>0){if(x===0&&A.sh)N+="0";else for(la=0;la<x;la++)N+=ka[la];!(P>0&&ka.length>x)||Y&&Z||(N+="."+ka.join("").slice(x))}else throw new F("Empty mantissa","SXJS0004");x=N+T+l(B.e,da)}else{P=Math.abs(B);A.od&&(P=Math.abs(B*100));A.te&&(P=Math.abs(B*1E3));P+""==="Infinity"?x=P+"":x=P<999999?P.toString():ta(P).toFixed();P=x.indexOf(".");P<0&&(P=x.length,A.re>0&&(x+="."));
A.qe>=0&&x.substring(P)!=="."&&P!==x.length&&(A.qe>0?(x=ta(x).round(A.qe,1).toString(),x.indexOf(".")<0&&(x+=".0")):x=ta(x).round(0,1).toString());T=x.length-1-P;if(A.re>0)for(;T<A.re;)x+="0",T++;for(;P<A.$e;)x="0"+x,P++;T>0&&A.$e===0&&x.substring(0,P)==="0"&&(x=x.substring(P));x==="0"&&A.$e===0&&A.re===0&&A.qe>0&&(x=".0")}P="";for(T=0;T<10;T++)P+=String.fromCharCode(p.Nh.charCodeAt(0)+T);P+=p.Qe;T="";for(Y=0;Y<x.length;Y++)da=x.charAt(Y),B="0123456789.".indexOf(da),B<0?T+=da:B<P.length&&(T+=P.charAt(B));
P=T;if(A.Ob.length>0||A.Rf.length>0){T=P.indexOf(p.Qe);T<0&&(T=P.length);x=P.substring(0,T);P=P.substring(T);if(A.Ob.length>0){T=!0;for(Y=1;Y<A.Ob.length;Y++)if((A.Ob[Y]+1)%(A.Ob[0]+1)!==0){T=!1;break}T&&A.rj+A.Ob.length-A.Ob[A.Ob.length-1]-1>A.Ob[0]&&(T=!1);x=T?xe.Bf(x,p.je,A.Ob[0]):y(x,A.Ob,null,p.je)}A.Rf.length>0&&(P=y(P,A.Rf,null,p.je,!0));P=x+P}}else P=p.Qi;A.prefix.length>0&&(P=ua.$b(A.prefix)+P);A.Td.length>0&&(P+=ua.$b(A.Td));I&&Q.length===1&&(P=p.jj+P);return P},Cd:function(B,Q,p,I,A){if(/\[/g.test(p)&&
!/\[(\[|[^\]]*\])|\]\]/g.test(p))throw new F("Date format picture '"+p+"' doesn't match required syntax","FOFD1340");let x="";typeof I!=="undefined"&&I!==null&&I.toString()!=="en"&&(x+="[Language: en]");typeof A==="undefined"||A===null||A.toString()==="AD"||/(Q\{\})?ISO/.test(A.toString())||(x+="[Calendar: AD]");return x+p.replace(/\[(\[|[^\]]*\])|\]\]/g,function(N){if(N==="[[")var P="[";else if(N==="]]")P="]";else{var T=N.substring(1,N.length-1).replace(/\s+/g,"");N=T.match(/^([YMDdWwFHhmsfZzPCE])(.*)$/);
if(N===null)throw new F("Date/time component ["+T+"] not recognised","FOFD1340");var Y=N[1];N=N[2]||"";if(B==="date"&&/[HhPmsf]/.test(Y)||B==="time"&&/[YMDdFWwCE]/.test(Y))throw new F("Date/time component ["+T+"] not available in "+B,"FOFD1350");if((T=N.lastIndexOf(","))!==-1){var da=N.substring(T+1).split("-");N=N.substring(0,T);var Z=da[0];da=da[1]||"*";if(Z!=="*"&&Z<1||da!=="*"&&da<1||Z!=="*"&&da!=="*"&&Z>da)throw new F("Invalid width modifier in date/time formatting picture","FOFD1340");}var la=
null;N.length>1&&/[atco]/.test(N.charAt(N.length-1))?(T=N.substring(0,N.length-1),la=N.charAt(N.length-1)):T=N;N=!0;if(!/^[\x01-\x7f]*$/.test(T)){if(T.length!==ua.La(T).length)throw new F("Cannot handle non-BMP characters in date/time formatting picture","SXJS0002");N=!1}if(/[Zz]/.test(Y))if(da=Wa(Q)==="Z"?"+00:00":Wa(Q),Z=Y,Y=T,T=la,da==="")P=Y==="Z"?"J":"";else if(Z=Z==="z"?"GMT":"",T==="t"&&da==="+00:00"&&Y!=="Z"&&Y!=="N")P="Z";else if(Y==="")P=Z+da;else{T=da.match(/^([+\-])([0-9])([0-9]):([0-9]{2})$/);
if(Y==="Z"||Y==="N")if(Y==="Z")P=parseInt(T[1]+T[2]+T[3],10),P=P<-12||P>12||T[4]!=="00"?da:"YXWVUTSRQPONZABCDEFGHIKLM".charAt(P+12);else{if(Y==="N")throw new F("Timezone names not implemented","SXJS0002");}else N&&!/[0-9]+/.test(Y)&&(Y="00:00"),da=0,N||(P=k(Y,"FOFD1340"),Y=P.format,da=P.diff),/[^0-9A-Za-z]/.test(Y)?(P=Y.match(/^([0-9]+)([^0-9A-Za-z])([0-9]+)$/),P=T[1]+(T[2]==="0"&&P[1].length===1?T[3]:T[2]+T[3])+P[2]+T[4]):(P=Y.match(/^[0-9]+$/),P=P[0],P=T[1]+((T[2]!=="0"||P.length!==1&&P.length!==
3?T[2]+T[3]:T[3])+(P.length>2?T[4]:T[4]!=="00"?":"+T[4]:""))),N||(P=q(P,da));P=Z+P}else{P=Q.proxy();var ka=V[Y]?P[V[Y]]():ea[Y]?ea[Y](P):null;if(ka===null)throw new F("Component specifier not implemented: ["+Y+"]","SXJS0002");Y==="M"?ka++:Y==="F"&&ka===0&&(ka=7);T===""&&(T=/[FPCE]/.test(Y)?"n":/[ms]/.test(Y)?"01":"1");if(Y==="f"){la=ka;Y=T;P=Z;Z=da;da=N;N=0;da||(N=k(Y,"FOFD1340"),Y=N.format,N=N.diff);for(T=la.toString();T.length<3;)T="0"+T;la=ua.La(T);T=parseInt(ua.$b(la.reverse()),10);if(!P&&!Z&&
/^[0-9]$/.test(Y))for(;la.length>Y.length;)Y+="#";if(P&&P!=="*"){ka=/^([0-9]*)(#*)$/.exec(Y);Y=ka[1]?ka[1]:"";for(ka=ka[2]?ka[2]:"";P>Y.length;)Y+="0",ka=ka.slice(0,-1);Y+=ka}if(Z)for(Z==="*"&&(Z=la.length);Y.length<Z;)Y+="#";Z=ua.$b(ua.La(Y).reverse());Z=E(T,Z,"FOFD1340");for(Z=ua.$b(ua.La(Z).reverse());Z.length>Y.length;)Z=Z.slice(0,-1);P&&P!=="*"||parseInt(Z,10)!==0||(Z="0");da||(Z=q(Z,N));P=Z}else{if(/[nN]/.test(T))P="January February March April May June July August September October November December".split(" "),
N="Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),la=Y==="M"?P[ka-1]:Y==="F"?N[ka-1]:ka,Y==="F"&&da&&da!=="*"&&da<6&&(la=la.replace(/(ur)?day$/,""),la=la.replace(/nes$/,"s")),T==="n"?la=la.toLowerCase():T==="N"&&(la=la.toUpperCase()),da&&da!=="*"&&(la=la.substring(0,da));else{P=/;/.test(T)?T+";":T;la&&(P+=(P.charAt(P.length-1)===";"?"":";")+la);la=E(ka,P,"FOFD1340");Y==="Y"&&la.charAt(0)==="-"&&(la=la.substring(1));if(Y==="Y"&&/[^iIwWnN]/.test(T.charAt(T.length-1))&&(!Z&&T.length===
2||da==2))for(;la.length>2;)la=la.substring(1);if(Z&&(da=Z==="*"?0:parseInt(Z,10),da>0&&la.length<da))if(/[YMDdWwHhms]/.test(Y)&&/[^iIwWnN]/.test(T.charAt(T.length-1)))for(Y="0",N||(Y=String.fromCharCode(k(P,"FOFD1340").zeroDigit));la.length<da;)la=Y+la;else if(Y==="Y"&&/[iIwWnN]/.test(T.charAt(T.length-1)))for(;la.length<da;)la+=" ";else throw new F("Not implemented min width modification with specifier "+Y+" and format "+T,"SXJS0002");}P=la}}}return P})}}}();
// Input 40
const ye=String.fromCharCode(931),ze=ye+"2";function Ae(a){function c(l,k){k<<=8;for(let q=0;q<l.length;q++)k=(k<<1)+l.charCodeAt(q);return k}function n(l,k,q){return c(l,q)^c(k,q)}function v(l){M^=n(l.N,"http://ns.saxonica.com/xslt/export",g++);for(let k in l)!l.hasOwnProperty(k)||k==="N"||k==="C"||k==="ELAB"||k==="PUSH"||k==="parentNode"||l.N==="catch"&&k==="test"||k===ye||(M^=n(k,"",g),M^=c(l[k],g));l.C&&l.C.forEach(function(k){v(k)});M^=1}let M=0,g=0;v(a);return M}
function Be(a){const c=a[ye]||"unspecified";if(c==="unspecified")throw new F("No checksum found in SEF","SXJS0006");a=Ae(a);if((a<0?4294967295+a+1:a).toString(16)!==c)throw new F("Invalid checksum in SEF: "+c,"SXJS0006");}
function Ce(a){function c(g,l,k){v+=k.toString();v+=g;v+=k.toString();v+=l;return 0}function n(g){c(g.N,"http://ns.saxonica.com/xslt/export",M++);let l=[];for(let k in g)!g.hasOwnProperty(k)||k==="N"||k==="C"||k==="ELAB"||k==="PUSH"||k==="parentNode"||g.N==="catch"&&k==="test"||k===ye||k===ze||k==="PRIMED"||l.push(k);l.sort();l.forEach(k=>{c(k,"",M);k=g[k];v+=M.toString();v+=k});g.C&&g.C.forEach(function(k){n(k)})}let v="",M=0;n(a);return v}
function De(a){return Array.from(new Uint8Array(a)).map(c=>c.toString(16).padStart(2,"0")).join("")}function Ee(a,c){if(De(c)!==a)throw new F("Invalid hash in SEF: "+a,"SXJS0006");};
// Input 41
const Fe=function(){function a(k,q){return k.ob===q.ob?k.Kc===q.Kc?k.Md===q.Md?q.uh-k.uh:k.Md-q.Md:k.Kc-q.Kc:k.ob-q.ob}function c(k,q){return k.ob===q.ob?k.Kc===q.Kc?0:k.Kc-q.Kc:k.ob-q.ob}function n(k,q){function y(K){return K.n?[K.n.replace(/^(\*:|Q\{.*\})/,"")]:K.u?y(K.u[0]).concat(y(K.u[1])):[]}this.Fe=k;this.ph=k.onNo;this.oh=q.ib(k,"t");q.ib(k,"F")&&(this.Lf=!0);this.Ag=(k.C||[]).map(K=>({Kd:K,ob:parseInt(K.prec,10),Kc:parseFloat(K.prio),Md:parseInt(K.seq,10),ij:parseInt(K.minImp,10),uh:parseInt(K.rank,
10),pattern:Zd.jd(q.aa(K,"match")),matches:tb(K.matches||"1"),action:q.aa(K,"action")})).sort(a).reverse();this.Zb={};this.Ag.forEach(K=>{const D=K.matches.V();let u,f=[];/^N[EAP]/.test(D.p)?(u=D.p,D.n&&!/}\*$/.test(D.n)?(u+=" "+D.n.replace(/^(\*:|Q\{.*\})/,""),f=[u]):f=D.u?[...(new Set(y(D)))].map(E=>u+" "+E):[u]):f=["."];f.forEach(E=>{let J=this.Zb[E];J||(this.Zb[E]=J=[]);J.push(K)})})}const v=Da.XS,M=Gc.Ha,g={TC:function(k,q,y,K){if(Gc.U(k))switch(k.nodeType){case 9:case 11:case 1:y=y.X(!1);y.focus=
od(M.Ia(k));q.zb(y,K);break;case 3:case 4:K.append(k);break;case 2:K.text(k.value)}else if(v.anyAtomicType.matches(k))K.text(k.toString());else if(qc.isArray(k)){let D=[];k.value.forEach(u=>{D=D.concat(u)});k=y.X(!1);k.focus=od(ob(D));q.zb(k,K)}},SC:function(k,q,y,K){return ee.ig(k,y,"c",function(){const D=y.X(!1);D.focus=od(M.Fa(k));q.zb(D,K);D.focus=od(M.Ia(k));q.zb(D,K)},K)},DC:function(k,q,y,K){Gc.U(k)&&(K.lb=Gc.baseURI(k));K.append(k)},DS:function(k,q,y,K){if(Gc.U(k))switch(k.nodeType){case 9:case 11:y=
y.X(!1),y.focus=od(M.Ia(k)),q.zb(y,K)}},SS:function(k,q,y,K){if(Gc.U(k))switch(k.nodeType){case 9:case 11:case 1:y=y.X(!1),y.focus=od(M.Fa(k)),q.zb(y,K),y.focus=od(M.Ia(k)),q.zb(y,K)}else if(qc.isArray(k)){let D=[];k.value.forEach(u=>{D=D.concat(u)});k=y.X(!1);k.focus=od(ob(D));q.zb(k,K)}},bubble:function(k,q,y,K){Gc.U(k)?k.nodeType===1&&(y=y.X(!1),y.focus=od(M.parent(k)),q.zb(y,K)):K.append(k)}};g.TO=g.TC;const l={1:"NE",2:"NA",3:"NT",7:"NP",8:"NC",9:"ND",11:"ND",13:"NN"};n.prototype={Fe:null,Ag:null,
ph:"TC",oh:!1,Lf:!1,zb:function(k,q,y){if(y){let K=!0;k.focus.forEachItem(D=>{K?K=!1:q.text(y.value,{});this.Ge(D,k,q)})}else k.focus.forEachItem(K=>this.Ge(K,k,q))},Zh:function(k,q){const y=k.Wa;if(!y)throw new F("No current template rule","XTDE0560");return this.Ge(sc(k),k,q,function(K){return K.ob>=y.ij&&K.ob<y.ob})},lj:function(k,q){const y=k.Wa;if(!y)throw new F("No current template rule","XTDE0560");return this.Ge(sc(k),k,q,function(K){return a(K,y)<0})},yi:function(k,q,y){let K=null,D=null;
const u=this.Lf;var f=[];if(Gc.U(k)){const J=l[k.nodeType];var E=Gc.$(k);if(E=E?E.local:null)E=J+" "+E,this.Zb[E]&&f.push(this.Zb[E]);this.Zb[J]&&f.push(this.Zb[J]);this.Zb.N&&f.push(this.Zb.N)}this.Zb["."]&&f.push(this.Zb["."]);(function(J){J.forEach(z=>{z.forEach(function(b){if(!y||y(b))if(!K||a(b,K)>0||u&&c(b,K)>=0){let d=!1;try{d=Zd.matches(b.pattern,k,q)}catch(h){}d&&(D=K,K=b)}})})})(f);if(this.Lf&&K&&D&&c(K,D)===0&&K.Md!==D.Md)throw f="Multiple templates matched item ("+sa.showValue(k)+"): ",
f+=K.Kd.module+"#"+K.Kd.line,f+=" and "+D.Kd.module+"#"+D.Kd.line,new F(f,"XTDE0540");return K},gh:function(){const k=this.Fe.name;return k&&k.startsWith("Q{"+xa.hd+"}")},Ge:function(k,q,y,K){var D=q.fixed.ea;K=this.yi(k,q,K);if(K!==null)D.Gf(K.Kd,q),q.Wa=K,q.ab=q.pa,K.action||sa.ka("Template rule without action child"),ee.push(K.action,q,y);else{var u;this.gh()?u="bubble":u=this.ph.split("+")[0];if(D=g[u])D(k,this,q,y);else throw new F("No matching template rule for "+sa.showValue(k),"XTDE0555");
}}};return n}();
// Input 42
class Ge{constructor(a,c,n,v){this.principalResult=a;this.resultDocuments=c;this.stylesheetInternal=n;this.masterDocument=v}}class He{constructor(a,c){this.destination=a;this.save=c}}class Ie extends He{constructor(a,c){super(a,function(n,v){c[n.toString()]=v})}};
// Input 43
const Je=function(){function a(b){function d(t){switch(t.nodeType){case 9:t.documentElement&&d(t.documentElement);break;case 11:case 1:var m=Gc.$(t),L=Gc.Hi(t,"xml:space");m=t.nodeType!==11&&h(m.uri,m.local)&&!(L&&L==="preserve");L=t.childNodes;let V=0;for(;V<L.length;){let ea=L[V];if(ea.nodeType===4){const B=Gc.cc(t).createTextNode(ea.nodeValue);t.replaceChild(B,ea);ea=B}ea.nodeType===3||ea.nodeType===4?m&&ya.trim(ea.nodeValue)===""?t.removeChild(ea):V++:(d(ea),V++)}}}let h;if(b)if(b.N==="strip.all")h=
()=>!0;else if(b.N==="strip.none")h=()=>!1;else{let t={},m={},L={},V={},ea={},B=function(p,I,A){p[I]?parseInt(A.ob,10)>parseInt(p[I].ob,10)&&(p[I]=A):p[I]=A};(b.C||[]).forEach(p=>{const I=tb(p.test);I instanceof Cd?(p.PREC=parseInt(p.prec,10),p.PRIO=2,B(t,I.name.toEQName(),p)):I instanceof Ed?(p.PREC=parseInt(p.prec,10),p.PRIO=1,B(m,I.uri,p)):I instanceof Dd?(p.PREC=parseInt(p.prec,10),p.PRIO=1,B(L,I.localName,p)):I instanceof Wb?(p.PREC=parseInt(p.prec,10),p.PRIO=0,B(V,"*",p)):sa.ka("Unrecognised strip-space "+
p.test)});const Q=(p,I)=>{const A=[],x=t["Q{"+p+"}"+I];x&&A.push(x);(p=m[p])&&A.push(p);(I=L[I])&&A.push(I);V["*"]&&A.push(V["*"]);A.sort((N,P)=>{const T=N.PREC,Y=P.PREC;return T===Y?P.PRIO-N.PRIO:Y-T});return A.length>0?A[0].N==="s":!1};h=(p,I)=>{const A="Q{"+p+"}"+I,x=ea[A];if(x)return x==="s";p=Q(p,I);ea[A]=p?"s":"p";return p}}else h=()=>!1;return function(t){d(t);return t}}function c(b,d,h){function t(Z){Z=new me(Z);Q.fixed.Ci=Z;return new ee.zc(Z)}function m(){}function L(){na.ra()&&!h.bg&&K(Q,
h)}var V=qc.Aa(b,"strip")[0]||qc.Aa(b,"strip.all")[0];let ea=null;if(V||na.ra())ea=a(V),d&&ea&&(d=ea(d));h.Gh&&h.Gh(b);const B=h.async,Q=D(b,d,h);Q.fixed.tl=Q.fixed.td.Oa.version;u(Q,function(Z){return Z.N==="globalParam"&&Z.flags&&Z.flags.indexOf("r")!==-1}).map(function(Z){return Z.name}).map(function(Z){if(!Q.fixed.options.stylesheetParams.containsKey(Da.XS.QName.fromEQName(Z)))throw new F("No value has been provided for required stylesheet parameter '"+Z+"'","XTDE0050");});Q.fixed.ye=ea;d&&(Gc.dc(d),
Q.fixed.Ta[d._saxonBaseUri]=d);const p=h.destination||"application",I=h.resultForm||"default";if(h.deliverResultDocument){let Z=h.deliverResultDocument("testURI");["document","serialized","raw"].includes(Z.destination)&&!Z.save&&(h.deliverResultDocument=function(){return new Ie(Z.destination,h.resultDocuments)})}h.deliverResultDocument||(na.ra()?h.deliverResultDocument=function(){return new He("html-page",function(Z,la){h.resultDocuments[Z.toString()]=la})}:h.deliverResultDocument=B?function(){return new He("file",
function(Z,la,ka){la=na.Kh(Z,la,ka);sa.ua("Promising to write to "+Z,2,Q.fixed.Ga);Q.fixed.ic.push(la)})}:function(){return new He("file",function(Z,la,ka){sa.ua("Writing to "+Z,2,Q.fixed.Ga);na.Lh(Z,la,ka)})});let A;const x={};V=Q.fixed.td;var N=V.cg["#unnamed"];if(N){N=N.C;var P,T;for(var Y=0;Y<N.length;Y++){let Z=N[Y].name;Z==="parameter-document"?P=N[Y].value:Z==="Q{http://saxon.sf.net/}parameter-document-base-uri"?T=N[Y].value:x[Z]=Z==="use-character-maps"?ve.mf(Z,N[Y].value,V):ve.nf(Z,N[Y].value)}P&&
T&&(P=na.pb(P,T),P=fe.xc(P,Q),ve.df(P.documentElement,x))}if(h.Ka)for(let [Z,la]of Object.entries(h.Ka))P=Z==="use-character-maps"?Array.isArray(la)?ve.pj(la,V):ve.ej(la):la,x[Z]=ve.cf(Z,P,x[Z]);if(["appendToBody","prependToBody","replaceBody"].includes(p))if(na.ra()){Q.ca=window.document;const Z=ne(Q);m=function(){Z.ad=new oe(Z.ad);const la=t(Z);la.Ca();return la};L=function(){Z.wa();Z.close();const la=Gc.Ha.Ia(Z.result()[0]);if(la){const ka=window.document.body;if(p==="appendToBody")la.forEachItem(function(G){ka.appendChild(G)});
else if(p==="prependToBody"){const G=ka.firstChild;la.forEachItem(function(U){ka.insertBefore(U,G)})}else if(p==="replaceBody"){for(;ka.childNodes.length>0;)ka.removeChild(ka.childNodes[0]);la.forEachItem(function(G){ka.appendChild(G)})}}else throw new F("No result from transformation","SXJS0006");na.ra()&&!h.bg&&K(Q,h)}}else throw new F("Destination="+p+" is allowed only when running in the browser","SXJS0006");else if(["serialized","file","stdout"].includes(p)){let Z;if(p==="stdout")Z=na.Ji();else{let la=
"",ka=!1;Z={write:function(G){ka=!0;la+=G},end:p==="serialized"?function(){if(ka){var G=tc(la);G=Oc(G,I)}else G=null;h.principalResult=G}:function(){var G=x.encoding||"utf-8";ka&&(B?(G=na.Kh(new URL(h.Ab),la,G),Q.fixed.ic.push(G)):na.Lh(new URL(h.Ab),la,G))}}}m=function(){A=ve.eh(x,Z,Q);return t(A)}}else if(["raw","document","application"].includes(p)){let Z=p==="document";p==="application"&&(typeof x["build-tree"]!=="undefined"?Z=x["build-tree"]:Z=!0);const la=ne(Q);m=function(){A=la;Z&&(A=new re(la));
return t(A)};L=function(){if(la.result().length===0)var ka=null;else ka=ob(la.Fb),ka=Oc(ka,I);h.principalResult=ka;na.ra()&&!h.bg&&K(Q,h)}}else throw new F("Invalid SaxonJS.transform() destination: "+p+" : "+typeof p,"SXJS0006");P=h.Ti;if(T=h.Ui)T=T.toString(),/^Q{/.test(T)||(T="Q{}"+T);N=(N=h.Si)?N.toString():b.defaultMode||"";N==="#unnamed"&&(N="");N==="#default"&&(N=b.defaultMode||"");N!==""&&N.indexOf("Q{")<0&&(N="Q{}"+N);V=E(Q,N);if(!V)throw new F("Unknown initial mode "+N,"XTDE0045");Y="Q{"+
xa.Rc+"}initial-template";d||P||T||J(Q,Y)&&(T=Y);let da=h.Ri;if(da){d=h.functionParams?h.functionParams:[];P=d.length;T=z(Q,da.toString(),P);if(!T)throw new F("Unknown initial function "+da+"#"+P,"XTDE0041");if(T.Oa.vis!=="PUBLIC"&&T.Oa.vis!=="FINAL")throw new F("Uninvocable initial function "+da+"#"+P+" with visibility "+T.Oa.vis,"XTDE0041");const Z=T.Oa.C[0];Q.focus={};Q.pa=T;xc(Q);Q.oa="function";Q.ab=V;Q.Wa=null;let la=0;Q.na=d.map(function(ka){var G=Z.C[la++].as;G=sb(G||"*");return qc.Hf(Bc(ka),
G,()=>"function parameter for "+da)});d=m();ee.push(qc.aa(Z,"body"),Q,d);d.close()}else if(T){d=J(Q,T);if(!d)throw new F("Unknown initial template "+T,"XTDE0040");P=d.actor;Q.fixed.Bc?Q.focus=uc(Q.fixed.Bc):(Q.focus=od(nb),Q.focus.next());qc.Gf(P,Q);Q.pa=d;Q.ab=V;n(h,Q);d=m();ee.push(P.C[0],Q,d);d.close()}else{Array.isArray(P)&&ea&&P.filter(Gc.U).map(function(Z){return Gc.Ze(Z)?Z:Z.ownerDocument}).map(function(Z){return ea(Z)});if(V.visibility==="PRIVATE"&&N!==b.defaultMode&&N!=="")throw new F("Uninvokable initial mode "+
N+" with visibility "+V.Oa.vis,"XTDE0045");if(!d&&!P)throw new F("No source input supplied for apply-templates invocation","XTDE0044");T=V.mode;Q.pa=V;Q.focus=od(P?ob(Array.isArray(P)?P:[P]):wc(d));d=T.Fe.useAcc;d!=null&&d!=="#all"&&(Q.ze=d.split(/\s+/));n(h,Q);d=m();T.zb(Q,d);d.close()}L();if(B){function Z(){const la=Q.fixed.ic;Q.fixed.ic=[];return Promise.all(la).then(()=>{if(Q.fixed.ic.length>0)return Z()}).catch(ka=>{throw ka;}).then(()=>Promise.resolve(new Ge(h.principalResult,h.resultDocuments,
b,h.masterDocument)))}h.resultPromise=Z()}}function n(b,d){b.templateParams&&(sa.assert(b.templateParams instanceof pb,"options?templateParams must be an instance of HashTrie. Supplied:"+b.templateParams),d.Gc=b.templateParams);b.tunnelParams&&(sa.assert(b.templateParams instanceof pb,"options?tunnelParams must be an instance of HashTrie. Supplied:"+b.tunnelParams),d.tunnelParams=b.tunnelParams)}function v(b){let d="";for(const h in b)b.hasOwnProperty(h)&&b[h]&&(d+=h+"="+b[h].toString().substring(0,
30)+"("+typeof h+"), ");return d}function M(b){let d=b.stylesheetInternal||null;if(!d){if(b.Gb)var h=na.ve(b.Gb);else if(b.stylesheetText)h=b.stylesheetText;else if(b.hc){if(na.ra())throw new F("Cannot supply stylesheetFileName in browser","SXJS0006");h=na.ve(b.hc)}else throw new F("No stylesheet supplied","SXJS0006");try{d=JSON.parse(h)}catch(m){throw new F("Supplied SEF is not in JSON format","SXJS0006");}}!na.ra()&&ze in d&&(h=Ce(d),h=na.crypto(h),Ee(d[ze],h));y(d,b);d.PRIMED||(Be(d),g(d),d.PRIMED=
!0);h=b.gf||null;let t;h&&(t=b.gf.baseURI||b.Qd)&&(h._saxonBaseUri=t);if(!h){let m;if(b.Oc)t=b.Oc,m=na.ve(t);else if(b.hf)t=b.Qd,m=b.hf;else if(b.Nc){if(na.ra())throw new F("Cannot supply sourceFileName in browser","SXJS0006");t=b.Nc;m=na.ve(t)}m&&(b.Ch==="json"?h=ae.nd(m,null):(h=na.Rb(m),t&&(h._saxonBaseUri=h._saxonDocUri=t)))}c(d,h,b);return new Ge(b.principalResult,b.resultDocuments,d,b.masterDocument)}function g(b){b.C&&b.C.forEach(function(d){d.parentNode=b;g(d)})}function l(b){if(b instanceof
pb)return b;const d=new pb;b&&Object.keys(b).forEach(h=>d.inSituPut(Da.XS.QName.fromEQName(h),Bc(b[h])));return d}function k(b){const d={};for(let [h,t]of Object.entries(b))d[h]=h==="use-character-maps"?t:ve.cf(h,t,null);return d}function q(b,d=!1){const h=(t,m)=>{let L=null;for(let V of m)if(t[V]){if(L)throw new F("The following transform options are mutually exclusive: "+m.toString(),"SXJS0006");L=V}return L};h(b,["stylesheetText","stylesheetInternal","stylesheetLocation","stylesheetFileName"]);
h(b,["sourceNode","sourceText","sourceLocation","sourceFileName"]);return{stylesheetText:b.stylesheetText,stylesheetInternal:b.stylesheetInternal,Gb:b.stylesheetLocation,hc:b.stylesheetFileName,Rd:b.stylesheetBaseURI,gf:b.sourceNode,hf:b.sourceText,Oc:b.sourceLocation,Nc:b.sourceFileName,Ch:b.sourceType||"xml",Qd:b.sourceBaseURI,stylesheetParams:l(b.stylesheetParams),Ui:b.initialTemplate,templateParams:l(b.templateParams),tunnelParams:l(b.tunnelParams),Ri:b.initialFunction,functionParams:b.functionParams,
Si:b.initialMode,Ti:b.initialSelection,Ta:b.documentPool,kb:b.textResourcePool,destination:b.destination,resultForm:b.resultForm,Ka:b.outputProperties,Kf:b.deliverMessage,deliverResultDocument:b.deliverResultDocument,masterDocument:b.masterDocument,Ab:b.baseOutputURI||(b.masterDocument?b.masterDocument._saxonBaseUri:void 0),uc:b.collations,Ig:b.collectionFinder,Ug:b.eventOptions,Ga:b.logLevel,bg:b.nonInteractive,resultDocuments:{},principalResult:void 0,Bc:d?b.globalContextItem:void 0,Gh:d?b.traceInjector:
void 0,async:d?b.async:void 0,oe:d?b.isDynamicStylesheet:void 0,Ed:d?b.isRelocatableStylesheet:void 0,language:d?b.language:void 0,mh:d?b.messages:void 0,Kk:d?b.extraOptions:void 0,ai:d?b.attachEventsTo:void 0}}function y(b,d){if(b.N==="package"){const h=b.target||"not specified",t=b.targetVersion||"",m=b.saxonProduct;let L=b.saxonVersion||"9.8.0.5";m&&!/Saxon/.test(L)&&(L=m+" "+L);d.ml=L;b.relocatable==="true"&&(d.Ed=!0);sa.ua("SEF generated by "+L+" at "+(b.buildDateTime||"2000-01-01"),2,d.Ga);
if(h!=="JS"||t!=="2"&&t!=="3")throw new F("Supplied SEF is not customized for use with SaxonJS. The option -target:JS should be set when generating the export. target is: "+h,"SXJS0006");if(L.charAt(0)==="9")throw new F("For use with SaxonJS 2+, SEF must be generated by SaxonJ-EE 10.0 or later. Supplied SEF is generated by SaxonJ-EE version "+L,"SXJS0006");if(b.expiry&&Da.XS.date.fromString(b.expiry).compareTo(Da.XS.date.fromDate(new Date,0))<0)throw new F("Development license for supplied stylesheet has expired",
"SXJS0006");}else throw new F("Supplied SEF does not have correct format","SXJS0006");}function K(b,d){function h(m,L){let V=null;d.Ug&&(V=d.Ug[L]);const ea=m.mode;na.addEventListener(L,function(B){const Q=B.target;var p=b.X(!0);p.oa=!1;p.de=B;p.focus=od(wc(Bc(Q)[0]));p.pa=m;B=ne(b);B=new ee.zc(B);(p=ea.zb(p,B))&&p.expand()},V,d.ai||null)}const t=b.fixed.Ja;Object.keys(t).forEach(function(m){m=t[m];m.mode&&m.mode.gh()&&(m.name.split("}on")[1]?h(m,m.name.split("}on")[1]):sa.ua("Ignoring invalid event handler name: "+
m.name,2,b.fixed.Ga))})}function D(b,d,h){function t(Q,p){m(b,Q,p)}function m(Q,p,I){Q.N===p&&I(Q);Q.C&&Q.C.forEach(function(A){m(A,p,I)})}function L(Q){return(Q=Q.name)?/^Q\{/.test(Q)?Q:"Q{}"+Q:null}function V(Q,p){function I(A){A=qc.Aa(A,"co");for(let x=0;x<A.length;x++)p(A[x])}I(Q);Q.C&&(Q=Q.C.filter(function(A){return A.N==="overridden"}),Q[0]&&I(Q[0]))}function ea(Q,p){const I=Q.C?Q.C[0]:null;return I===null?Q.base?ea(p.fixed.Ja[parseInt(Q.base,10)].Oa,p):null:I}const B=new ce;B.fixed={Ld:{},
Ab:h.Ab||"",Ja:{},Bb:new Date,Ta:{},ea:qc,Bc:h.Bc||d,oe:h.oe,Ed:h.Ed,Af:0,options:h,md:{},Sb:{},wh:{},staticBaseURI:"",pl:b,kb:{},td:null,ic:[],kl:[],depth:0,Ga:h.Ga||sa.getLogLevel()};if(h.Ta){const Q=h.Ta;Object.keys(Q).forEach(p=>{const I=Q[p];if(Gc.Ze(I))B.fixed.Ta[p]=I;else throw new F("Supplied value for "+p+" is not a document node");})}if(h.kb){const Q=h.kb;Object.keys(Q).forEach(p=>{B.fixed.kb[p]=Q[p].toString()})}h.uc||(h.uc={});h.uc[Wd.Wc]=Wd.Hg();h.uc[Wd.Yg]=Wd.Le();h.uc[Wd.Yf]=Wd.Bg();
h.uc[Wd.Mh]=Wd.Le();t("package",function(Q){const p={name:Q.name,Oa:Q,yb:{},Dg:{},bb:{},cg:{},keys:{},Hh:null};B.fixed.md[p.name]=p;B.fixed.td||(B.fixed.td=p);V(Q,function(I){const A=parseInt(I.id,10);B.fixed.Ja[A]={id:A,visibility:I.vis,Oa:I,qh:p,actor:null,Je:I.binds.split(" ").map(function(x){return parseInt(x,10)})}})});t("package",function(Q){const p=B.fixed.md[Q.name];V(Q,function(T){const Y=B.fixed.Ja[parseInt(T.id,10)];T=Y.actor=ea(T,B);T!==null&&(Y.name=L(T),T.N==="globalVariable"||T.N===
"globalParam"?Y.value=null:T.N==="mode"&&(Y.mode=new Fe(T,qc),L(T)===null&&(p.Hh=Y.mode)),T.parentNode.vis==="ABSTRACT"&&(Y.visibility="ABSTRACT"))});if(qc.Aa(Q,"schema").length>0)throw new F("Package includes xsl:import-schema but SaxonJS is not schema-aware","XTSE1650");var I=qc.Aa(Q,"decimalFormat");for(var A=0;A<I.length;A++){var x=I[A],N=L(x);p.bb[N===null?"Q{}":N]=x}I=qc.Aa(Q,"output");for(A=0;A<I.length;A++)x=I[A],N=x.name?L(x):"#unnamed",p.cg[N]=x;I=qc.Aa(Q,"key");A=Math.floor(Math.random()*
1E8);for(x=0;x<I.length;x++){N=I[x];var P=L(N);p.keys[P]?p.keys[P].Fd.push(N):p.keys[P]={mg:A+"k"+x,Fd:[N]}}I=qc.Aa(Q,"accumulator");A=Math.floor(Math.random()*1E8);for(x=0;x<I.length;x++)N=I[x],P=L(N),p.yb[P]={mg:A+"a"+x,Wh:N};Q=qc.Aa(Q,"charMap");for(I=0;I<Q.length;I++){A=Q[I];x=L(A);let T={min:0,max:0,va:{}};A.C&&(A.C.forEach(function(Y){let da=Number(Y.c);T.min===0?T.min=da:da<T.min&&(T.min=da);da>T.max&&(T.max=da);T.va[da]=Y.s}),T.min>55296&&(T.min=55296));p.Dg[x]=T}});t("glob",function(Q){const p=
B.fixed.Bc;if(Q.use==="req"&&(p===null||p===void 0))throw new F("The stylesheet requires a global context item","XTDE3086");if(Q.use==="pro")B.fixed.Bc=null;else{let I;const A=Q.cxt;A&&(I=tb(A).ga());if(p!==null&&I&&!I(p))throw new F("The global context item must be an instance of "+Q.type,"XTTE0590");}});B.nb=h.Ab?[h.Ab]:[];!h.oe&&h.Ed&&(d="",h.Rd?d=h.Rd:h.Gb?d=h.Gb:h.hc?d=na.Nf(h.hc):na.ra()&&(d=na.Ef()),B.fixed.staticBaseURI=d);h.oe&&h.Ed&&h.Rd&&(B.fixed.staticBaseURI=h.Rd);if(na.ra()){if(B.masterDocument=
h.masterDocument?h.masterDocument:window.document,h.Gb&&!Gc.fd(h.Gb))throw new F("stylesheetLocation should be absolute by now","SXJS0004");}else if(h.masterDocument){if(!Gc.U(h.masterDocument)||![9,11].includes(h.masterDocument.nodeType))throw new F("masterDocument must be a document node","SXJS0004");B.masterDocument=h.masterDocument}B.masterDocument&&!B.masterDocument._saxonBaseUri&&B.masterDocument.baseURI&&(h=B.masterDocument.baseURI,d=h.indexOf("#"),B.masterDocument._saxonBaseUri=d>=0?h.substring(0,
d):h);B.pa=null;B.ca=na.createDocument();B.j=B.ca.createDocumentFragment();B.na=[];B.Gc=new pb;B.tunnelParams=new pb;B.qc={};return B}function u(b,d){const h=[],t=qc.Aa(b.fixed.td.Oa,"co");for(let m=0;m<t.length;m++){const L=b.fixed.Ja[parseInt(t[m].id,10)],V=L.actor;V&&d(V)&&h.push(L)}return h}function f(b,d){const h=qc.Aa(b.fixed.td.Oa,"co");for(let t=0;t<h.length;t++){const m=b.fixed.Ja[parseInt(h[t].id,10)],L=m.actor;if(L&&d(L))return m}}function E(b,d){return f(b,function(h){return h.N==="mode"&&
(h.name?h.name===d:""===d)})}function J(b,d){return f(b,function(h){return h.N==="template"&&h.name===d})}function z(b,d,h){return f(b,function(t){return t.N==="function"&&t.name===d&&qc.Aa(t,"arg").length===h})}return{transform:function(b,d){function h(p){p=na.pb(p.toString(),m);return na.ra()?p:na.Nf(p)}d=!d||d==="sync";sa.ua((d?"Synchronous":"Asynchronous")+" transform with options: "+v(b),2,b.logLevel);let t;try{t=q(b,!1),t.Ka&&(t.Ka=k(t.Ka))}catch(p){if(d)throw p;return Promise.reject(p)}const m=
na.Ef();if(t.Gb)var L=t.Gb=h(t.Gb);else t.hc&&(L=t.hc=h(t.hc));t.Rd=L||t.Rd;if(t.Oc)var V=t.Oc=h(t.Oc);else t.Nc&&(V=t.Nc=h(t.Nc));t.Qd=V||t.Qd;if(d)return M(t);t.async=!0;let ea,B,Q;b=[];ea=t.stylesheetInternal||null;if(!ea)if(L=t.stylesheetText)try{ea=JSON.parse(L)}catch(p){b.push(Promise.reject(new F("Error parsing supplied SEF: "+p,"SXJS0006")))}else t.hc?(L=na.fc({file:t.hc,type:"json"}).then(p=>{ea=JSON.parse(p)}).catch(p=>Promise.reject(new F("Failed to read JSON input "+t.hc+": "+p,"SXJS0006"))),
b.push(L)):t.Gb?(L=na.fc({location:t.Gb,type:"json"}).then(p=>{ea=JSON.parse(p)}).catch(p=>Promise.reject(new F("Failed to read JSON input "+t.Gb+": "+p,"SXJS0006"))),b.push(L)):b.push(Promise.reject(new F("No stylesheet supplied","SXJS0006")));B=t.gf||null;Q=t.Ch||"xml";B&&(L=t.gf.baseURI||t.Qd)&&(B._saxonBaseUri=L);if(!B){L=(I,A)=>{I=na.Rb(I);A&&(I._saxonBaseUri=I._saxonDocUri=A);return I};V=I=>ae.nd(I,null);const p=Q==="xml"?L:V;t.hf?B=p(t.hf,t.Qd):t.Nc?(L=na.fc({file:t.Nc,type:Q}).then(I=>B=p(I,
t.Nc)).catch(I=>Promise.reject(new F(`Failed to read ${Q.toUpperCase()} source input (${I.message})`,"SXJS0006"))),b.push(L)):t.Oc&&(L=na.fc({location:t.Oc,type:Q}).then(I=>{B=p(I,t.Oc)}).catch(I=>Promise.reject(new F(`Failed to read ${Q.toUpperCase()} source input (${I.message})`,"SXJS0006"))),b.push(L))}return Promise.all(b).then(()=>{let p="";ze in ea&&(p=Ce(ea));return na.ji(p)}).then(p=>{ze in ea&&Ee(ea[ze],p)}).then(()=>{a:{var p=ea,I=B,A=t;if(!p)throw new F("No stylesheet supplied","SXJS0006");
try{y(p,A);p.PRIMED||(Be(p),g(p),p.PRIMED=!0);c(p,I,A);var x=A.resultPromise;break a}catch(N){throw console.log("Transformation failure: "+(N.getMessage?N.getMessage():N)),N;}}return x})},checkOptions:q,internalTransform:c}}();
// Input 44
var Ke={},Le={};Ke[0]="<eof>";Ke[1]="|";Ke[2]="/";Ke[3]="@";Ke[48]="~";Ke[4]="[";Ke[5]="(";Ke[6]="=";Ke[7]=",";Ke[8]="//";Ke[9]="or";Ke[10]="and";Ke[11]=">";Ke[12]="<";Ke[13]=">=";Ke[14]="<=";Ke[15]="+";Ke[16]="-";Ke[299]="-";Ke[17]="*";Ke[18]="div";Ke[19]="mod";Ke[20]="is";Ke[21]="$";Ke[22]="!=";Ke[40]="!";Ke[30]="||";Ke[23]="intersect";Ke[24]="except";Ke[25]="return";Ke[26]="then";Ke[27]="else";Ke[29]="to";Ke[31]="in";Ke[32]="some";Ke[33]="every";Ke[34]="satisfies";Ke[35]="<function>(";Ke[36]="<axis>";
Ke[37]="if(";Ke[38]="<<";Ke[39]=">>";Ke[41]="::";Ke[42]=":*";Ke[44]="#";Ke[45]="instance of";Ke[46]="cast as";Ke[47]="treat as";Ke[50]="eq";Ke[51]="ne";Ke[52]="gt";Ke[54]="ge";Ke[53]="lt";Ke[55]="le";Ke[56]="idiv";Ke[57]="castable as";Ke[58]=":=";Ke[71]="as";Ke[75]=":";Ke[76]="=>";Ke[79]="otherwise";Ke[80]="andAlso";Ke[81]="orElse";Ke[201]="<name>";Ke[202]="<string-literal>";Ke[203]="]";Ke[204]=")";Ke[205]=".";Ke[206]="..";Ke[207]="*";Ke[208]="<prefix:*>";Ke[209]="<numeric-literal>";Ke[69]="<node-type>()";
Ke[211]="for";Ke[70]="<*:local-name>";Ke[213]="?";Ke[59]="{";Ke[60]="<keyword> {";Ke[215]="}";Ke[216]="let";Ke[299]="-";function Me(a,c){Le[a]=c;Ke[c]=a}Me("instance of",45);Me("cast as",46);Me("treat as",47);Me("castable as",57);
// Input 45
var Ne={Lk:function(){return null}};for(const a in xa)Ne[a.toUpperCase()]=xa[a];Ne.nk=xa.jc;Ne.Rh=xa.Rc;function Oe(a){a=a.charCodeAt(0);return 65<=a&&a<=90||97<=a&&a<=122}var Pe=ya.Db;function Qe(a){const c=a.charCodeAt(0);return Oe(a)||48<=c&&c<=57}function Re(a,c="XPST0003"){return new F(a,c)}function Se(a="Illegal Argument"){return new F(a,"XPST0003")};
// Input 46
function Te(a,c){a.qa=c;c===0?(a.R=-1,a.la="",a.I=-1):c===Ue&&(a.R=204,a.la=")",a.I=204)}
function Ve(a){a.R=a.j;a.la=a.J;a.J=null;for(a.O=a.g;;){if(a.g>=a.B){a.j=0;break}var c=a.input.charAt(a.g++);switch(c){case "/":if(a.g<a.B&&a.input.charAt(a.g)==="/"){a.g++;a.j=8;return}a.j=2;return;case ":":if(a.g<a.B){a.input.charAt(a.g)===":"?(a.g++,a.j=41):a.input.charAt(a.g)==="="?(a.j=58,a.g++):a.j=75;return}throw new Re("Unexpected colon at start of token");case "@":a.j=3;return;case "~":a.j=48;return;case "?":a.j=213;return;case "[":a.j=4;return;case "]":a.j=203;return;case "{":a.j=59;return;
case "}":a.j=215;return;case "(":if(a.g<a.B&&a.input.charAt(a.g)===":"){a.g++;for(c=1;c>0&&a.g<a.B-1;)a.input.charAt(a.g)==="\n"?We(a):a.input.charAt(a.g)===":"&&a.input.charAt(a.g+1)===")"?(c--,a.g++):a.input.charAt(a.g)==="("&&a.input.charAt(a.g+1)===":"&&(c++,a.g++),a.g++;if(c>0)throw new Re("Unclosed XPath comment");Ve(a)}else a.j=5;return;case ")":a.j=204;return;case "+":a.j=15;return;case "-":a.j=16;return;case "=":if(a.g<a.B&&a.input.charAt(a.g)===">"){a.g++;a.j=76;return}a.j=6;return;case "!":if(a.g<
a.B&&a.input.charAt(a.g)==="="){a.g++;a.j=22;return}a.j=40;return;case "*":(c=a.g<a.B&&a.input.charAt(a.g)===":"&&a.g+1<a.B)&&!(c=a.input.charAt(a.g+1)>127)&&(c=a.input.charAt(a.g+1),c=Oe(c)||c==="_");if(c){a.g++;a.j=70;return}a.j=207;return;case ",":a.j=7;return;case "$":a.j=21;return;case "|":if(a.g<a.B&&a.input.charAt(a.g)==="|"){a.g++;a.j=30;return}a.j=1;return;case "#":a.j=44;return;case "<":if(a.g<a.B&&a.input.charAt(a.g)==="="){a.g++;a.j=14;return}if(a.g<a.B&&a.input.charAt(a.g)==="<"){a.g++;
a.j=38;return}a.j=12;return;case ">":if(a.g<a.B&&a.input.charAt(a.g)==="="){a.g++;a.j=13;return}if(a.g<a.B&&a.input.charAt(a.g)===">"){a.g++;a.j=39;return}a.j=11;return;case ".":if(a.g<a.B){var n=a.input.charAt(a.g);if(n==="."){a.g++;a.j=206;return}if(n==="{"){a.g++;a.J=".";a.j=60;return}}if(a.g===a.B||a.input.charAt(a.g)<"0"||a.input.charAt(a.g)>"9"){a.j=205;return}case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":n=!0;var v=!1,M=!0;a:for(;;){switch(c){case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":v=
!1;break;case ".":if(M)v=M=!1;else{a.g--;break a}break;case "E":case "e":if(n)v=!0,n=!1;else{a.g--;break a}break;case "+":case "-":if(v)v=!1;else{a.g--;break a}break;default:if("a"<=c&&c<="z"||c>127)throw new Re("Separator needed after numeric literal"+Xe(a,a.g));a.g--;break a}if(a.g>=a.B)break;c=a.input.charAt(a.g++)}a.J=a.input.substring(a.O,a.g);a.j=209;return;case '"':case "'":for(a.J="";;){a.g=a.input.indexOf(c,a.g);if(a.g<0)throw a.g=a.O+1,new Re("Unmatched quote in expression");a.J+=a.input.substring(a.O+
1,a.g++);if(a.g<a.B)if(a.input.charAt(a.g)===c)a.J+=c,a.O=a.g,a.g++;else break;else break}if(a.J.indexOf("\n")>=0)for(c=0;c<a.J.length;c++)a.J.charAt(c)==="\n"&&We(a,a.O+c+1);a.j=202;return;case "\n":We(a,a.g);case " ":case "\t":case "\r":a.O=a.g;break;case "\u00b6":case "Q":if(a.g<a.B&&a.input.charAt(a.g)==="{"){n=a.input.indexOf("}",a.g++);if(n<a.g)throw new Re("Missing closing brace in EQName");c=a.input.substring(a.g,n);c=ya.collapse(c);if(c.includes("{"))throw new Re("EQName must not contain opening brace");
a.g=n+1;n=a.g;for(v=!1;a.g<a.B;)if(M=a.input.charAt(a.g),M>128||Qe(M)||M==="_"||M==="."||M==="-")a.g++;else{M==="*"&&n===a.g&&(a.g++,v=!0);break}a.J="Q{"+c+"}"+a.input.substring(n,a.g);a.j=v?208:201;return}default:if(c.charCodeAt(0)<128&&!Oe(c))throw new Re("Invalid character '"+c+"' in expression");case "_":n=!1;a:for(;a.g<a.B;a.g++)switch(c=a.input.charAt(a.g),c){case ":":if(n)break a;else{if(a.R===213||a.R===70){a.J=a.input.substring(a.O,a.g);a.j=201;return}if(a.g+1<a.B){c=a.input.charAt(a.g+1);
if(c===":"){a.J=a.input.substring(a.O,a.g);a.j=36;a.g+=2;return}if(c==="*"){a.J=a.input.substring(a.O,a.g);a.j=208;a.g+=2;return}if(!(c==="_"||c>127||Oe(c))){a.J=a.input.substring(a.O,a.g);a.j=201;return}}n=!0}break;case ".":case "-":if(a.R>150&&a.R!==213&&a.R!==70&&Ye(a.input.substring(a.O,a.g))!==-1&&(a.R!==201||Ye(a.la)===-1)){a.j=Ye(a.input.substring(a.O,a.g));return}case "_":break;default:if(c.charCodeAt(0)<128&&!Qe(c))break a}a.J=a.input.substring(a.O,a.g);a.j=201;return}}}
function Ze(a,c){a.qa=0;a.j=0;a.J=null;a.O=0;a.g=0;a.input=c;a.lineNumber=0;a.ya=0;a.B=c.length;Ve(a);a.next()}function Ye(a){a={or:9,is:20,to:29,"in":31,eq:50,ne:51,le:55,lt:53,gt:52,ge:54,as:71,and:10,div:18,mod:19,idiv:56,then:26,"else":27,"case":67,where:28,union:1,except:24,"return":25,otherwise:79,orElse:81,"default":212,andAlso:80,intersect:23,satisfies:34}[a];return[81,80].includes(a)?-1:a||-1}function We(a,c=-1){a.lineNumber++;a.ya++;a.ha===null&&(a.ha=[]);a.ha.push(c===-1?a.g-1:c)}
function Xe(a,c=null){var n=c?c:a.g;return" at line:"+$e(a,c)+" col:"+af(a,c)+" near '"+a.input.slice(n<5?0:n-5,n+5)+"'"}function bf(a){a.g>a.B&&(a.g=a.B);return a.g<34?a.input.substring(0,a.g):ya.collapse("..."+a.input.substring(a.g-30,a.g)).toString()}function cf(a,c){if(a.ha===null)return c;for(var n=a.ha.length-1;n>=0;n--){var v=a.ha[n];if(c>v)return n+1<<16|c-v}return c}function $e(a,c=null){return c?cf(a,c)>>16:a.lineNumber}function af(a,c=null){return cf(a,c?c:a.ee)&32767}
class df{constructor(){this.I=this.qa=0;this.T=null;this.j=this.ee=0;this.J=null;this.O=0;this.input=null;this.B=this.g=0;this.ya=this.lineNumber=1;this.ha=null;this.R=-1;this.la=""}next(){this.R=this.I;this.la=this.T;this.I=this.j;this.T=this.J;this.T===null&&(this.T="");this.ee=this.O;this.lineNumber=this.ya;switch(this.I){case 201:var a=Ye(this.T);a===-1||this.R<=150||this.R===213||(this.I=a);break;case 207:this.R<=150||this.R===213||(this.I=17)}if(this.I!==215&&(a=this.R,Ve(this),this.I===201&&
this.qa!==ef&&a!==21))switch(this.j){case 5:var c=Ye(this.T);c===-1||a<=150?(this.I=this.Ve(this.T),Ve(this)):this.I=c;break;case 59:this.qa!==ff&&(this.I=60,Ve(this));break;case 41:Ve(this);this.I=36;break;case 44:Ve(this);this.I=43;break;case 42:Ve(this);this.I=208;break;case 21:this.T==="for"?this.I=211:this.T==="some"?this.I=32:this.T==="every"?this.I=33:this.T==="let"&&(this.I=216);break;case 201:a=this.T+" "+this.J,c=Le[a],c!=null&&(this.I=c,this.T=a,Ve(this))}}Ve(a){const c={"if":37,array:69,
attribute:69,comment:69,"document-node":69,element:69,"empty-sequence":69,"function":69,map:69,item:69,"namespace-node":69,node:69,"processing-instruction":69,"schema-attribute":69,"schema-element":69,"switch":69,otherwise:79,text:69,tuple:69,typeswitch:69,union:69}[a];return c?["tuple","union"].includes(a)?35:c:35}}var ef=1,ff=2,Ue=3;
// Input 47
var gf=[!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!1];function hf(a){return"ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace parent preceding preceding-sibling self preceding-or-ancestor".split(" ")[a]}var jf=[1,1,2,1,1,1,1,1,13,1,1,1,1,1],kf=[4,5,9,9,0,1,10,11,9,3,6,7,12];
function lf(a){switch(a){case "self":return 12;case "child":return 3;case "parent":return 9;case "ancestor":return 0;case "attribute":return 2;case "following":return 6;case "namespace":return 8;case "preceding":return 10;case "descendant":return 4;case "ancestor-or-self":return 1;case "following-sibling":return 7;case "preceding-sibling":return 11;case "descendant-or-self":return 5}throw new Re("Unknown axis name: "+a);};
// Input 48
function mf(a,c,n,v="XPTY0004"){this.kind=a;this.j=c;this.g=n;this.errorCode=v}mf.prototype={getErrorCode:function(){return this.errorCode},save:function(){let a=this.kind+"|"+this.g+"|";a+=(this.errorCode==="XPTY0004"?"":this.errorCode)+"|";return a+=this.j}};
// Input 49
function nf(a,c,n={}){a.start(c,n);c.end()}class of{constructor(){this.l=rb.xa}start(a,c={}){a.start(this.K,c);this.role&&a.rd("role",this.role);this.Of&&a.rd("sType",this.l.fa())}Qb(){return!pc(this.l.cardinality)}G(a){nf(this,a)}}ma=of.prototype;ma.K="Expression";ma.Th=null;ma.kind=null;ma.role=null;ma.Of=null;ma.Ba=function(a,c="XPTY0004"){return new mf(this.kind,this.K,a,c)};ma.Ea=function(){throw new Re(sa.Ej(this)+" is not a valid pattern","XTSE0340");};ma.Bd=function(){return this};
class pf extends of{constructor(a,c,n){super();this.Qa=c;this.ba=a;this.da=n;if(this.ba.Ra||this.da.Ra)this.Ra=!0;this.ba.Cb&&this.da.Cb&&(this.Cb=!0)}G(a){super.start(a,this.Qa?{op:Ke[this.Qa]}:{});this.ba.G(a);this.da.G(a);a.end()}}pf.prototype.kind=1;class qf extends of{constructor(a){super();this.g=a;this.g.Ra&&(this.Ra=!0);this.g.Cb&&(this.Cb=!0)}G(a){super.start(a);this.g.G(a);a.end()}}qf.prototype.kind=9;
// Input 50
class rf extends of{constructor(){super();this.l=rb.kc}Ea(){return this}G(a){nf(this,a)}}class sf extends rf{}sf.prototype.K="p.any";class tf extends rf{constructor(a){super();this.message=a;this.role="match";this.l=rb.kc}G(a){nf(this,a,{message:this.message})}}tf.prototype.K="p.warning";class uf extends rf{constructor(a){super();this.g=a;this.l=rb.kc}G(a){super.start(a);this.g.G(a);a.end()}}uf.prototype.K="p.booleanExp";
class vf extends rf{constructor(a){super();sa.assert(a instanceof Bb);this.test=a;this.l=new vb(a,2)}G(a){nf(this,a,{test:this.test.fa()})}}vf.prototype.K="p.nodeTest";class wf extends rf{constructor(a,c){super();this.pattern=a;this.g=c;this.l=a.l;a.code&&(this.code=a.code)}G(a){super.start(a);this.code&&a.rd("code",this.code);this.pattern.G(a);this.g.G(a);a.end()}}wf.prototype.K="p.withPredicate";
class xf extends rf{constructor(a){super();this.g=a;this.l=lc(a.l,2)}G(a){super.start(a);this.g.G(a);a.end()}}xf.prototype.K="p.nodeSet";class yf extends rf{constructor(a){super();this.g=a;this.l=lc(a.l,2)}G(a){super.start(a);this.g.G(a);a.end()}}yf.prototype.K="p.genNode";class zf extends rf{constructor(a,c){super();this.g=c;this.code=a.l.fa();this.l=lc(a.l,2)}G(a){super.start(a,{test:this.code});this.g.G(a);a.end()}}zf.prototype.K="p.genPos";
class Af extends rf{constructor(a,c){super();this.code=a.fa();this.Jd=c;this.l=lc(a,2)}G(a){nf(this,a,{test:this.code,pos:this.Jd})}}Af.prototype.K="p.simPos";class Bf extends rf{constructor(a,c,n){super();this.axis=kf[a];this.gb=c;this.g=n;this.l=c.l}G(a){super.start(a,{axis:hf(this.axis)});this.gb.G(a);this.g.G(a);a.end()}}Bf.prototype.K="p.withUpper";
class Cf extends rf{constructor(a,c,n,v){super();this.Qa=c;this.ba=a;this.da=n;this.l=lc(v,2)}G(a){super.start(a,{op:this.Qa===1?"union":Ke[this.Qa]});this.ba.G(a);this.da.G(a);a.end()}}Cf.prototype.K="p.venn";function Df(a){var c=[];a.ba instanceof Ef?c=Df(a.ba):c.push(a.ba);a.da instanceof Ef?c=c.concat(Df(a.da)):c.push(a.da);return c}class Ef extends Cf{constructor(a,c,n){super(a,1,c,n)}}
class Ff extends rf{constructor(a){super();this.g=a;for(var c of this.g)c.Of=!0}G(a){super.start(a);for(var c of this.g)c.G(a);a.end()}}Ff.prototype.K="UnionExprP";
// Input 51
function Gf(a){return a instanceof Hf&&a.value.length===1&&Lb.ga()(a.value[0])}function If(a,c){return new Hf(a,c)}function Jf(){return new Hf([],rb.Be)}
class Hf extends of{constructor(a,c){super();Array.isArray(a)||sa.ka("Literal value must be array");c instanceof vb&&c.itemType.fa||sa.ka("Literal type must be a SequenceType");a&&(this.value=a,c&&(this.l=c));this.role=null}toString(){return this.value.toString()}G(a){function c(n,v){const M=n.code,g={};switch(M){case "AB":break;case "AQ":g.pre=n.prefix;g.uri=n.uri;g.loc=n.local;break;default:g.val=n.toString()}v&&(g.role=v);switch(M){case "AS":a.start("str",g);break;case "AO":a.start("dbl",g);break;
case "AB":a.start(n.value?"true":"false",g);break;case "AD":a.start("dec",g);break;case "ADI":a.start("int",g);break;case "AQ":a.start("qName",g);break;default:g.type=M,a.start("atomic",g)}a.end()}if(this.value.length===0)a.start("empty",this.role?{role:this.role}:{}),a.end();else if(this.value.length===1)c(this.value[0],this.role);else{let n={count:this.value.length};this.role&&(n.role=this.role);a.start("atomic",n);for(const v of this.value)c(v);a.end()}}}Hf.prototype.K="literal";
Hf.prototype.Cb=!0;class Kf extends Hf{constructor(a){super([Da.XS.string.fromString(a)],rb.Yb);this.l=rb.Yb}};
// Input 52
function Lf(a,c,n,v,M){var g=Mf(a,rb.Xb,a.Ba(0,"XPTY0004"));g=new Nf(g);if(/[lu]/.test(c))g.qd={flags:c+(M?"e":""),as:n.toEQName()};else{sa.assert(c==="a");try{if(a instanceof Hf&&a.value.length===1&&Da.ma(a.value[0])&&v.V().p!=="AQ"){const l=v.Qc.cast(a.value[0]);return new Hf([l],new vb(v,2))}}catch(l){}g.qd={flags:M?"ae":"a",as:v.fa()}}return g}class Nf extends qf{constructor(a){super(a);this.K="cast";this.kind=2;this.qd={}}G(a){super.start(a,this.qd);this.g.G(a);a.end()}}
function Of(a,c,n,v,M){var g=new Pf(a);g=Mf(g,rb.Xb,g.Ba(0,"XPTY0004"));if(/[lu]/.test(c))g.qd={flags:c+(M?"e":""),as:n.toEQName()};else{sa.assert(c==="a");if(a instanceof Hf&&a.value.length===1&&Da.ma(a.value[0])&&v.V().p!=="AQ")try{return v.Qc.cast(a.value[0]),new Hf([Da.XS.boolean.Tc],rb.Ya)}catch(l){return new Hf([Da.XS.boolean.Ud],rb.Ya)}g.qd={flags:M?"ae":"a",as:v.fa()}}return g}
class Pf extends qf{constructor(a){super(a);this.l=rb.Ya;this.K="castable";this.kind=2;this.qd={}}G(a){super.start(a,this.qd);this.g.G(a);a.end()}}class Qf extends qf{constructor(a,c){super(a);this.j=c;this.l=yd(a.l.itemType)?rb.zg:rb.vd}G(a){super.start(a,{diag:this.j});this.g.G(a);a.end()}}Qf.prototype.K="data";
class Rf extends Qf{constructor(a,c,n){super(a,c);this.B=n;yd(a.l.itemType)?this.l=n?rb.vf:rb.yg:this.l=n?rb.Xb:rb.De}G(a){super.start(a,{diag:this.j});this.B&&a.rd("card","?");this.g.G(a);a.end()}}Rf.prototype.K="atomSing";class Sf extends of{constructor(a){super();this.name=a.itemType.name.toEQName();this.l=rb.vf}G(a){nf(this,a,{name:this.name})}}Sf.prototype.K="attVal";
class Tf extends qf{constructor(a,c,n){super(a);this.code=c;this.j=n;this.l=rb.vd}G(a){super.start(a,{to:this.code,diag:this.j});this.g.G(a);a.end()}}Tf.prototype.K="cvUntyped";class Uf extends qf{constructor(a,c){super(a);this.type=c;this.flags="";this.l=new vb(c.itemType,a.l.cardinality)}G(a){super.start(a,{to:this.type.fa().replace(/^[01?*+]/,""),flags:this.flags});this.g.G(a);a.end()}}Uf.prototype.K="convert";
class Vf extends qf{constructor(a,c,n){super(a);this.type=c;this.resultType=a.resultType;this.j=n;this.l=c}G(a){super.start(a,{to:this.type.fa().replace(/^[01?*+]/,""),diag:this.j});this.g.G(a);a.end()}}Vf.prototype.K="fnCoercer";
// Input 53
const Wf="array attribute comment document-node element empty-sequence function if item map namespace-node node processing-instruction schema-attribute schema-element switch text typeswitch".split(" ");class Xf{constructor(a,c){if(a.prefix===""&&Wf.includes(a.local))throw new Re("The unprefixed function name '"+a.local+"' is reserved","XPST0003");this.name=a;this.arity=c}toEQName(){return this.name.toEQName()}toString(){return this.name.toEQName()+"#"+this.arity}};
// Input 54
class Yf extends of{constructor(a,c,n){super();const v=a.name.local;if(a.name.uri===xa.jc){if(v==="NOTATION")throw new F("No constructor function exists for xs:NOTATION","XPST0017");const g=c[0].l;if(g.cardinality===2&&g.itemType.ma()&&g.itemType.Qc&&v===g.itemType.Qc.name)a=c[0];else if(["NMTOKENS","ENTITIES","IDREFS"].includes(v))a=Lf(c[0],"l",a.name,null,!0);else{var M;v==="numeric"?M=Lf(c[0],"u",a.name,null,!0):M=Lf(c[0],"a",null,n.itemType,!0);a=M}return a}this.name=a;this.g=c;this.l=n;switch(v){case "exactly-one":this.l=
lc(c[0].l,2);break;case "head":this.l=lc(c[0].l,nc(c[0].l.cardinality)?3:2);break;case "tail":case "subsequence":this.l=lc(c[0].l,7);break;case "ceiling":case "floor":case "reverse":case "snapshot":this.l=c[0].l;break;case "last":case "position":this.Ra=!0;break;case "string-length":case "normalize-space":c.length===0&&this.g.push(Zf("string",new $f));break;case "fold-left":case "fold-right":this.l=c[2].resultType;break;case "for-each":this.l=lc(c[1].l.itemType.We(),7);break;case "filter":this.l=
lc(c[0].l,7);break;case "current":this.Cb=!0;break;case "boolean":if(c[0].l.equals(rb.Ya))return c[0]}}Ea(){return new xf(this)}Qb(){if(this.name.uri===xa.Ma)return"doc document element-with-id id innermost key outermost".split(" ").includes(this.name.local)?!0:"filter one-or-more subsequence remove tail trace unordered zero-or-more".split(" ").includes(this.name.local)?this.g[0].Qb():!1}G(a){super.start(a,{name:this.name.name.local});for(const c of this.g)c.G(a);a.end()}}Yf.prototype.K="fn";
class ag extends of{constructor(a,c,n){super();this.name=a;this.g=c;this.l=n}G(a){super.start(a,{name:this.name.toEQName()});for(const c of this.g)c.G(a);a.end()}}ag.prototype.K="ifCall";class bg extends of{constructor(a,c,n){super();this.name=a;this.g=c;this.l=n;if(a=a.name.local==="merge")a=c[0],a=!(a instanceof Hf&&a.value.length===0);a&&(this.l=lc(c[0].l,2))}G(a){super.start(a,{name:this.name.toEQName()});for(const c of this.g)c.G(a);a.end()}}bg.prototype.K="ifCall";
class cg extends of{constructor(a,c,n){super();this.name=a;this.g=c;this.l=n}G(a){super.start(a,{name:this.name.toEQName()});for(const c of this.g)c.G(a);a.end()}}cg.prototype.K="ifCall";class dg extends ag{}class eg extends of{constructor(a,c,n){super();this.name=a;this.g=c;this.l=n}G(a){super.start(a,{name:this.name.toEQName()});for(const c of this.g)c.G(a);a.end()}}eg.prototype.K="ifCall";
class fg extends of{constructor(a,c,n){super();this.name=a;this.g=c;this.l=n}G(a){super.start(a,{name:this.name.toEQName()});for(const c of this.g)c.G(a);a.end()}}fg.prototype.K="ifCall";class gg extends fg{constructor(a,c,n){super(a,c,n);const v=new Xf(Da.XS.QName.fromParts("ixsl",xa.hd,"call"),3),M=new Xf(Da.XS.QName.fromParts("ixsl",xa.hd,"window"),0);this.name=v;this.g=[new fg(M,[],rb.kc),new Kf(a.name.local),new hg(c)];this.l=n}}
class ig extends of{constructor(a,c,n,v,M){super();this.name=a;this.Th=c;this.g=n;this.l=v;this.j=M}G(a){super.start(a,{name:this.name.toEQName(),coId:this.j});for(const c of this.g)c.G(a);a.end()}}ig.prototype.K="ufCall";class jg extends of{constructor(a){super();this.name=a.name.name;this.rb=a.rb;this.arity=a.name.arity;this.l=a.l;this.resultType=a.resultType}G(a){nf(this,a,{name:this.name.toEQName(),arity:this.arity,resultType:this.resultType.fa()})}}jg.prototype.K="fnRef";
class kg extends jg{constructor(a){super(a);this.g=0}G(a){nf(this,a,{name:this.name.toEQName(),arity:this.arity,resultType:this.resultType.fa(),bSlot:this.g})}}kg.prototype.K="ufRef";class lg extends of{constructor(){super();this.l=rb.xa}G(a){nf(this,a,{asCode:"*"})}}lg.prototype.K="null";class mg extends of{}mg.prototype.g={};mg.prototype.B={};mg.prototype.j={};
class ng extends of{constructor(){super();this.l=rb.xa;this.slot=this.Ua=this.name=this.Vb=null}cd(){return this.name}toString(){return"$"+this.name+" as "+this.l.toString()}G(a){nf(this,a,{name:this.name,asCode:this.l.fa(),slot:this.slot})}}ng.prototype.K="arg";
class og extends of{constructor(a,c,n){super();this.params=a;this.resultType=c;const v=[];a.forEach(M=>{v.push(M.l)});n=Mf(n,c,this.Ba("body"));this.l=Ab(new rc(v,c));this.arity=a.length;this.body=n;n.role="body"}G(a){super.start(a,{arity:this.arity,name:this.name,as:this.resultType.fa()});for(const c of this.params)c.G(a);this.body.G(a);a.end()}}ma=og.prototype;ma.K="inlineFn";ma.kind=5;
ma.Ba=function(a,c="XPTY0004"){return new mf(this.kind,"("+this.params.map(n=>n.toString()).join(",")+")"+(this.resultType?" as "+this.resultType.toString():""),a,c)};ma.name="inline";ma.Of=!0;
class pg extends of{constructor(a,c,n){super();if(a.l&&a.l.itemType instanceof rc&&a.l.V().a.length!==c.length)throw new F("Partially-applied function requires "+a.arity+" arguments, but "+(c.length<a.arity?"only ":"")+c.length+" were supplied","XPTY0004");this.Ma=a;let v;a instanceof qg?(v=a.resultType,a.rb.jh?this.R=new kg({name:{name:a.name,arity:a.arity},rb:a.rb,l:a.l,resultType:v}):this.R=new jg({name:{name:a.name,arity:a.arity},rb:a.rb,l:a.l,resultType:v})):this.R=a;this.B=[];let M=0,g;if(a.rb){const l=
a.rb.alphaTree,k=a.rb.variadic;c.forEach(q=>{var y=l.a[M];y=g?g:xb(y);q instanceof lg?q.l=y:q=Mf(q,y,this.Ba(M));this.B.push(q);k&&(g=y);M++})}else c.forEach(l=>{this.B.push(l)});a.l.itemType instanceof rc&&(this.l=Ab(Kd(a.l.itemType,n)))}G(a){super.start(a);this.R.G(a);this.B.forEach(c=>{c.G(a)});a.end()}}pg.prototype.K="partialApply";pg.prototype.kind=5;
class rg extends of{constructor(a,c){super();this.key=a;this.value=c;this.l=sb("1FM")}toString(){return"map{"+this.key.toString+" : "+this.value.toString()+"}"}G(a){super.start(a);this.key.G(a);this.value.G(a);a.end()}}rg.prototype.K="map";
class sg extends of{constructor(a){super();this.entries=a;const c=Hd.Gd(a.map(M=>M[0].l.itemType)),n=Hd.Gd(a.map(M=>M[1].l.itemType));a=a.map(M=>M[1].l.cardinality);let v=2;a.some(M=>nc(M))&&(v+=1);a.some(M=>pc(M))&&(v+=4);this.l=Ab(new Id(c,new vb(n,v)))}toString(){let a="map{";this.entries.forEach(c=>{a+=c[0].toString+" : "+c[1].toString()});return a+"}"}G(a){super.start(a);this.entries.forEach(c=>{c[0].G(a);c[1].G(a)});a.end()}}sg.prototype.K="map";
// Input 55
class tg extends of{constructor(a,c){super();sa.assert(!c||c instanceof Bb);this.axis=a;this.K="axis";c=c||Hb;a===2&&c instanceof Ib?c=Yb:a===3&&c instanceof Ib&&(c=Jb);this.g=c;a===9&&c instanceof Ib?this.l=rb.Wd:c?this.l=new vb(c,7):this.l=rb.Vd}wb(){return this.axis}Qb(){return[2,3,4,5,6,7,9,12].includes(this.axis)}Ea(){return new vf(this.g)}G(a){nf(this,a,{name:hf(this.axis),nodeTest:this.l.fa()})}}
class ug extends pf{constructor(a,c){super(a,2,c);this.ba=a=Mf(a,rb.Vd,this.Ba(0,"XPTY0019"));this.l=mc(c.l,a.l.cardinality)}Qb(){return!0}Ea(){if(this.da instanceof Yf||this.da instanceof Hf)throw new Re("Not an axis step for a pattern","XTSE0340");return this.Ra||!this.da.wb||this.da instanceof vg?new yf(this):new Bf(this.da.wb(),this.da.Ea(),this.ba.Ea())}G(a){super.start(a,this.Qa?{op:Ke[this.Qa]}:{});this.ba.G(a);this.da.G(a);a.end()}}ug.prototype.K="slash";
class wg extends of{constructor(){super();this.l=rb.Wd}Ea(){return new vf(Vb)}}wg.prototype.K="root";
// Input 56
const xg={ADI:"i",ADIL:"c",ADILI:"i",ADILIS:"i",ADILISB:"i",ADIN:"c",ADINN:"c",ADIP:"c",ADIPP:"c",ADIPL:"c",ADIPLI:"i",ADIPLIS:"i",ADIPLISB:"i",AD:"c",AO:"d",AF:"f",A:"a",AZ:"a",AT:"t",AA:"t",AM:"t",AMP:"t",AH:"t",AI:"t",AJ:"t",AG:"t",AK:"t",ARD:"u",ARY:"u",E:"a"};var yg={19:"%",18:"/",56:"~",15:"+",16:"-",299:"-",17:"*"};function zg(a,c){c=new Tf(a,"AO",c.save());c.l=a.l.cardinality===2?rb.Xd:rb.sg;return c}
class Ag extends pf{constructor(a,c,n,v){function M(b){return b instanceof Db&&b.Qc.gb?new Db(Da.tj(b.Qc)):b}function g(){throw new Re("Cannot evaluate "+q.toString()+" "+Ke[c]+" "+y.toString(),"XPTY0004");}super(a,c,n);const l=v.pe(),k=a.Ra||n.Ra;l&&(a=Bg(a),n=Bg(n));a=Mf(a,rb.Xb,this.Ba(0));n=Mf(n,rb.Xb,this.Ba(1));let q=M(a.l.itemType),y=M(n.l.itemType);var K=q.V().p,D=y.V().p;l||!/^AS/.test(K)&&!/^AS/.test(D)||g();K!=="AZ"||l||(a=zg(a,this.Ba(0,"FORG0001")),q=cc,K="AO");D!=="AZ"||l||(n=zg(n,this.Ba(1,
"FORG0001")),y=cc,D="AO");var u=xg[K];let f=xg[D];const E=q.isNumeric(),J=y.isNumeric();D=ic;K=nc(a.l.cardinality)||nc(a.l.cardinality);u||="a";f||="a";var z;l?(u=f="d",D=cc):E&&J&&(u==="d"||f==="d"?(u=f="d",D=z=cc):u==="f"||f==="f"?(u=f="f",D=z=dc):u==="c"||f==="c"?(u=f="c",D=z=fc):u==="i"&&f==="i"&&c===18?(u=f="c",D=fc):u!=="i"||f!=="i"||c!==15&&c!==16&&c!==17&&c!==19?u==="i"&&f==="i"&&c===18&&(D=fc):D=gc);c===56&&(D=gc);D.isNumeric()&&z&&(z=new vb(z,3),a=Mf(a instanceof Cg?a.g:a,z,this.Ba(0)),
n=Mf(n instanceof Cg?n.g:n,z,this.Ba(1)));[u,f].includes("a")&&(u=f="a");(q.ma("ARY")&&y.ma("AT")||y.ma("ARY")&&q.ma("AT"))&&g();u==="t"&&f==="t"&&(c===16?D=hc:g());u==="u"&&f==="t"&&(c===15?D=y:g());u==="u"&&f==="u"&&(c===17&&g(),c===18?D=fc:D=q);E&&f==="u"&&c===18&&g();u!=="t"||f!=="u"||c!==16&&c!==15?u==="i"&&f==="u"&&c===17?(u="n",D=y):u!=="u"||f!=="d"&&f!=="i"&&f!=="c"?f!=="u"||u!=="d"&&u!=="i"&&u!=="c"||(u="n",D=y):(D=q,f="n"):D=q;u=u+yg[c]+f;if(!v.pe()&&D.V().p!=="AF"&&!v.Fc&&(v.bi?v.bi===
0:1)&&Gf(a)&&Gf(n)&&(v=a.value[0],z=n.value[0],c!==18||z.toNumber()!==0))return a=gb[u](v,z),If([a],new vb(new Db(Da.codes[a.code]),2));this.ba=a;this.da=n;a.l.equals(n.l)&&(this.l=a.l);D&&(this.l=new vb(D,K?3:2));this.g=u;k&&(this.Ra=!0);l&&(this.K="arith10");this.l||(this.l=rb.De)}Ea(){throw new Re("The arithmetic expression  "+Ke[this.Qa]+" is not a patternXTSE0340");}G(a){super.start(a,this.Qa?{op:Ke[this.Qa],calc:this.g}:{});this.ba.G(a);this.da.G(a);a.end()}}Ag.prototype.K="arith";
// Input 57
const Dg={6:50,22:51,11:52,12:53,13:54,14:55};function Eg(a,c){a=a.V().p;c.V();if(a==="AZ"&&c.isNumeric())return!1;if(a==="A"&&c.ma())return!0;a===""&&c.ma();return!0}function Fg(a){return/^A[BAMT2XQ]/.test(a)}class Gg extends pf{constructor(a,c,n,v){super(a,c,n);a=v.Gi();c="GAC";switch(a){case Wd.Yf:c="CAC"}a.startsWith(Wd.Ij)&&(c="CAC");n.l===rb.xg&&(c="EQC");this.zd=c+"|"+a;this.l=rb.Ya}G(a){super.start(a,{op:Ke[this.Qa],comp:this.zd});this.ba.G(a);this.da.G(a);a.end()}}
class Hg extends Gg{G(a){super.start(a,{op:Ke[this.Qa],comp:this.zd,card:"1:1"});this.ba.G(a);this.da.G(a);a.end()}}
class Ig extends Hg{constructor(a,c,n,v){super(a,c,n,v);a=Mf(a,rb.vd,this.Ba(0));n=Mf(n,rb.vd,this.Ba(1));c=a.l.V();v=n.l.V();var M=c.p;var g=v.p;M===g||[M,g].includes("AZ")||[M,g].includes("A")?M=!0:(/^A[ODF]/.test(M)&&(M="AO"),/^A[ODF]/.test(g)&&(g="AO"),/^A[SU]/.test(M)&&(M="AS"),/^A[SU]/.test(g)&&(g="AS"),M=M==="E"||g==="E"?!0:M===g);if(!M)if(M="Cannot compare items of types "+a.l.itemType.toString()+" and "+n.l.itemType.toString(),/[*?]/.test(c.o)||/[*?]/.test(v.o))sa.ua(M+": the comparison can succeed only if one of the values is an empty sequence",
1,null);else throw new Re(M,"XPTY0004");this.ba=a;this.da=n}}Ig.prototype.K="gc";class Jg extends Hg{}Jg.prototype.K="gc10";
class Kg extends Gg{constructor(a,c,n,v,M=!0){super(a,c,n,v);var g=a.l.itemType,l=n.l.itemType;const k=g.V().p,q=l.V().p;if(!(k==="A"&&l.ma()||q==="A"&&g.ma()||k===""||q===""||g.V().p.startsWith("AM")&&l.V().p.startsWith("AM")||(Fg(k)||Fg(q)?k===q:Eg(g,l)||Eg(l,g))))throw new Re("Cannot compare "+a.l.toString()+" "+Ke[c]+" "+n.l.toString(),"XPTY0004");a=Mf(a,rb.Xb,this.Ba(0));n=Mf(n,rb.Xb,this.Ba(1));if(g=c!==51&&c!==50)g=a.l.itemType.V().p,g=!!/^A[QGHIJK]/.test(g);if(g)throw new Re("Cannot order-compare "+
a.l.toString()+" "+Ke[c]+" "+n.l.toString(),"XPTY0004");if(M){if(Gf(n)&&Da.XS.integer.matches(n.value[0])&&a.l.V().p==="ADI")return new Lg(a,c,n,v);if(n instanceof Kf)return new Mg(a,c,n,v)}this.ba=a;this.da=n}}Kg.prototype.K="vc";class Ng extends Kg{constructor(a,c,n,v){super(a,c,n,v,!1)}G(a){super.start(a,{op:Ke[this.Qa],val:this.da.value[0]});this.ba.G(a);a.end()}}class Lg extends Ng{}Lg.prototype.K="compareToInt";
class Mg extends Ng{G(a){super.start(a,{op:Ke[this.Qa],val:this.da.value[0].toString(),comp:this.zd});this.ba.G(a);a.end()}}Mg.prototype.K="compareToString";class Og extends Gg{constructor(a,c,n,v){super(a,c,n,v);a=Mf(a,rb.Wd,this.Ba(0));n=Mf(n,rb.Wd,this.Ba(0));this.ba=a;this.da=n;this.K=c===38?"precedes":c===39?"follows":"is"}G(a){super.start(a);this.ba.G(a);this.da.G(a);a.end()}};
// Input 58
function Pg(a,c){return a instanceof Yf&&a.name.name.uri===xa.Ma&&a.name.name.local===c}function Qg(a,c){return a instanceof Kg&&a.Qa===c&&Pg(a.ba,"position")&&Pg(a.da,"last")}
class Rg extends of{constructor(a,c){super();if(c){let v=Pg(c,"last")||Qg(c,50);if(v)return new Sg(a);v=v||Qg(c,53);var n=c.Ra||c instanceof Ag;const M=c.Cb;if(!n&&M&&c.l.equals(rb.tc))return new Tg(a,c);n||(n=c.l.itemType.V().p,n=n==="AB"||n.startsWith("N")?!1:n==="A"||/^A[ODF]/.test(n));this.g=a;this.l=a.l;c instanceof Ug?this.l=lc(c.type,this.l.cardinality):c instanceof Hf&&c.value.length===1&&Lb.ga()(c.value[0])&&(this.l=lc(this.l,3));n&&(this.Ra=!0);M&&(this.Cb=!0);this.j=v?new Vg(c.Qa===50?
"1":"0"):c}}wb(){return this.g.wb()}Qb(){return super.Qb()||this.g.Qb()}Ea(){if(!yd(this.l.itemType)){const a=Zf("exists",this);return new uf(a)}return this.Ra&&this.g instanceof tg&&!(this.j instanceof Vg)?new zf(this.g,this.j):this.Ra?new yf(this.Bd()):new wf(this.g.Ea(),this.j)}Bd(){if(this.g instanceof $f)return this.j;this.g=this.g instanceof tg?Wg(new $f,this.g):this.g.Bd();return this}G(a){super.start(a);let c="";this.Cb&&(c+="i");this.Ra&&(c+="p");c!==""&&a.rd("flags",c);this.g.G(a);this.j.G(a);
a.end()}}Rg.prototype.K="filter";class Tg extends Rg{constructor(a,c){super(a,null);if(Gf(c)&&Da.XS.integer.matches(c.value[0])&&c.value[0].value===1)return new Xg(a);this.g=a;this.l=lc(a.l,3);this.j=c;this.Ra=!0}Ea(){return this.g instanceof $f?new tf("Numeric predicates other than 1 in PredicatePatterns never match. Value provided:"+this.j.value.value):this.g instanceof tg?new Af(this.g.l,this.j.value[0].value):new yf(this.Bd())}}Tg.prototype.K="subscript";
class Xg extends Tg{constructor(a){super(a,null);this.g=a;this.Ra=!0;this.l=lc(a.l,3)}Ea(){return yd(this.l.itemType)?this.g instanceof tg?new yf(new Xg(Wg(new $f,this.g))):new yf(this.Bd()):new uf(this)}G(a){super.start(a);this.g.G(a);a.end()}}Xg.prototype.K="first";
class Sg extends Tg{constructor(a){super(a,null);this.g=a;this.Ra=!0;this.l=lc(a.l,3)}Ea(){if(!(this.g instanceof tg))return new yf(this.Bd());if(this.g.axis===3){var a=new tg(7,this.g.g);return new wf(this.g.Ea(),Zf("empty",[a]))}return new Af(this.g.l,1)}G(a){super.start(a);this.g.G(a);a.end()}}Sg.prototype.K="lastOf";class Vg extends of{constructor(a="1"){super();this.test=a;this.l=rb.Ya}G(a){nf(this,a,{test:this.test})}}Vg.prototype.K="isLast";
// Input 59
function Yg(a,c){if(a instanceof wg&&c instanceof tg&&c.wb()===9)return Jf();if(a instanceof ug&&a.ba instanceof wg&&a.da.axis===5&&c instanceof tg&&c.axis===3)return Yg(a.ba,new tg(4,c.g));if(c instanceof ug||c instanceof Zg&&c.g instanceof ug){const n=$g(c);ah(n.ba)instanceof tg&&ah(n.da)instanceof tg&&(a=Wg(a,n.ba),c=n.da)}a=new ug(a,c);return bh(a)?a:yd(a.da.l.itemType)?(a.ba=ch(a.ba),a.da=ch(a.da),new Zg(a)):a}
function bh(a){if(!pc(a.ba.l.cardinality))return a.da.Qb();const c=ah(a.ba);return c instanceof tg&&c.axis===3&&(a=ah(a.da),a instanceof Zg&&(a=a.g),a instanceof tg&&[3,2,4,5,8].includes(a.axis)||a instanceof ug&&bh(a))?!0:!1}function $g(a){return a instanceof Zg?a.g:a}function ah(a){return a instanceof Rg?ah(a.g):a instanceof Zg?ah(a.g):a}var Wg=Yg;function dh(a){return a.Qb()?a:new Zg(a)}var ch=$g;
// Input 60
function eh(a,c,n,v,M={}){sa.assert(c);sa.assert(c instanceof vb);sa.assert(a.l);sa.assert(a.l instanceof vb);var g=c.V(),l=a,k;const q=c.itemType,y=c.cardinality,K=pc(y);var D=null,u=-1;let f=y===7;f||(u=a.l.cardinality,f=(y|u)===y);g=g.p==="";y===1&&(g=!0);g||(D=a.l.itemType,u=a.l.cardinality,g=Hd.Eb(q,D),g===Hd.Wb&&(g=D===Fb?Hd.lc:q===Fb?Hd.Ib:g),g=g===Hd.sb||g===Hd.Ib);if(g&&f)return l;if(M.Kb&&!K&&(pc(u)&&(l=k=new Xg(l),u=3,f=(y|u)===y),!g)){if(q.ma("AS")){try{k=eh(l,rb.uf,n,v)}catch(E){throw E;
}l=Zf("string",k);D=ec;u=2;l.l=rb.Yb;f=(y|u)===y;g=!0}if(zd(q)||q.ma("AO")){try{k=eh(l,rb.uf,n,v)}catch(E){throw E;}l=Zf("number",k);D=cc;u=2;l.l=rb.Xd;f=(y|u)===y;g=!0}}if(!g)if(q.ma()){if(!D.ma()&&u!==1){if(!D.Vi)throw c=new F("An atomic value is required for the "+n.getMessage()+", but the supplied value (type "+D.toString()+") cannot be atomized",D.name==="error()"?"FOER0000":"FOTY0013",a),c;D=!pc(u);u=!pc(y);D?(k=nc(y),l=l instanceof tg&&l.axis===2&&l.l.itemType instanceof Cd?new Sf(l.l):new Rf(l,
v,k)):l=l instanceof tg&&l.axis===2&&l.l.itemType instanceof Cd?new Sf(l.l):new Qf(l,v);k=l;u&&!D&&(k=fh(k,y,v));l=k;D=l.l.itemType;u=l.l.cardinality;f=(y|u)===y}D.ma("AZ")&&(zd(q)||!q.ma("AZ")&&q.V().p!=="A")&&(l=k=gh(l,q,v),g=!0,D=q);D.fa()!=="A"||["A","AZ"].includes(q.fa())||(l=k=gh(l,q,v),D=l.l.itemType);q.ma()&&(q.ma("AO")&&Hd.Eb(D,Lb)!==Hd.Wb?(l=k=new Uf(l,rb.Xd),D=cc,u=-1):q.ma("AF")&&Hd.Eb(D,Lb)!==Hd.Wb&&!Hd.$i(D,cc)&&(l=k=new Uf(l,rb.wg),D=dc,u=-1),q.ma("AS")&&D.ma("AU")&&(g=!0,l=k=new Uf(l,
rb.Yb),D=ec))}else q.gd()&&q.V().p==="F"&&(D.gd()||(l=new hh(l,Nb,v),D=Nb),q instanceof Ob||(g=D.V(),(g.p==="FM"||g.p==="FA")&&q.yc().length===1)||(l=new Vf(l,Ab(q),v)),g=!0);if(g&&f)return l;u===-1&&(u=l.l.cardinality,f||=(y|u)===y);if(f&&u===1)return l;if(u===1&&!nc(y))throw c=new F("An empty sequence is not allowed as the "+n.getMessage(),n.getErrorCode()),c;g=g?Hd.lc:Hd.Eb(D,q);g===Hd.Wb&&(g=D===Fb?Hd.Ib:q===Fb?Hd.lc:g);y===1&&(g=Hd.sb);if(g===Hd.Wb)if(nc(u)&&nc(y))u!==1&&(k=n.If(q,D),sa.ua(k+
". The expression can succeed only if the supplied value is an empty sequence.",1,null));else throw k=n.If(q,D),c=new F(k,D.name==="error()"?"FOER0000":n.getErrorCode()),c;if(g!==Hd.sb&&g!==Hd.lc){if(l.Wi){v=Da.XS.string.fromString(l.getAttribute("val"));if(q.ma()&&c.matches(v))return l;k=n.If(q,D);c=new F(k,n.getErrorCode());throw c;}l=k=ih(l,new vb(q,y),v);f=!0}if(!f){if(l.Wi)throw c=new F("Required cardinality of "+n.getMessage()+" is "+oc(y)+"; supplied value has cardinality "+oc(u),n.getErrorCode()),
c;l=k=fh(l,y,v)}return l}function gh(a,c,n){c=zd(c)?"AO":c.V().p;return new Tf(a,c,n)};
// Input 61
function Zf(a,c){a=new Da.XS.QName.fromParts("fn",xa.Ma,a);c=Array.isArray(c)?c:[c];a=new Xf(a,c.length);return new Yf(a,c,rb.xa)}function Mf(a,c,n){const v=jh(n.errorCode?n.errorCode:"XPTY0004",n.save());return eh(a,c,v,n.save())}function Bg(a){return pc(a.l.cardinality)?new Xg(a):a}
class kh extends of{constructor(a){super();this.value=a;a.length===0?this.l=rb.Be:this.l=new vb(Hd.Gd(a.map(n=>n.l.itemType)),7);let c=!0;a.forEach(n=>{c=c&&n instanceof Hf});c&&(this.g=!0)}G(a){super.start(a);this.g&&a.rd("literal",!0);for(const c of this.value)c.G(a);a.end()}}kh.prototype.K="sequence";
class hg extends of{constructor(a){super();this.value=a;if(a.length===0)this.l=Ab(Rb);else{const c=Hd.Gd(a.map(v=>v.l.itemType));let n=0;a.forEach(v=>n|=v.l.cardinality);this.l=Ab(new Jd(new vb(c,n)))}}G(a){super.start(a);for(const c of this.value)c.G(a);a.end()}}hg.prototype.K="arrayBlock";
class lh extends of{constructor(a,c){super();this.Qa=a;this.K=Ke[a];this.Ua=c;this.action=this.Fb=void 0;this.slot=0;this.Vb=this.value=null;this.l=rb.Ya}cd(){return this.Ua}G(a){super.start(a,{"var":this.Ua.toEQName(),slot:this.slot});this.value.G(a);this.action.G(a);a.end()}}
class vg extends pf{constructor(a,c,n,v=!1){super(a,c,n);this.K=c===1?"union":Ke[c];v=v?"XTSE0340":"XPTY0004";a=Mf(a,rb.Vd,this.Ba(0,v));n=Mf(n,rb.Vd,this.Ba(1,v));a=dh(a);n=dh(n);this.ba=a;this.da=n;sa.assert(a.l);sa.assert(n.l);switch(c){case 24:this.l=a.l;break;case 23:c=a.l.cardinality&n.l.cardinality|3;this.l=new vb(Hd.Mi([a,n].map(M=>M.l.itemType)),c);break;case 1:this.l=new vb(Hd.Gd([a,n].map(M=>M.l.itemType)),Sd(a.l.cardinality,n.l.cardinality))}}Qb(){return!0}wb(){return this.ba.wb&&this.da.wb&&
this.ba.wb()===this.da.wb()?this.ba.wb():-1}Ea(){if(this.Qa===1)return new Ef(this.ba.Ea(),this.da.Ea(),this.l);const a=this.wb();return a===3||a===2||this.ba.Cb||this.da.Cb?new Cf(this.ba.Ea(),this.Qa,this.da.Ea(),this.l):new yf(this)}}class $f extends of{constructor(a=rb.kc){super();this.l=a}G(a){nf(this,a)}Ea(){return new sf}}$f.prototype.K="dot";function mh(a){return a.l.V().p===""?new nh(a):a}class nh extends qf{constructor(a){super(a);this.l=a.l}}nh.prototype.K="homCheck";
function oh(a){return a.global?new ph(a):new qh(a)}class rh extends of{constructor(){super();this.g=null;this.l=rb.xa}}rh.prototype.K="varRef";rh.prototype.Cb=!0;class qh extends rh{constructor(a){super();this.g=a;this.l=a.Vb||rb.xa}cd(){return this.g.Ua}G(a){nf(this,a,{name:this.g.Ua.toEQName(),slot:this.g.slot})}}qh.prototype.K="varRef";
class ph extends rh{constructor(a){super();this.g=a;this.l=a.Vb}cd(){return this.g.Ua}Ea(){return new xf(this)}G(a){nf(this,a,{name:this.g.Ua.toEQName(),bSlot:"?"})}}ph.prototype.K="gVarRef";class sh extends pf{constructor(a,c){super(a,213,c);this.ba=a=Mf(a,rb.qf,this.Ba(0));a.l&&a.l.itemType&&a.l.itemType.resultType&&(this.l=a.l.itemType.resultType)}}sh.prototype.K="lookup";class th extends of{constructor(a){super();this.ba=a=Mf(a,rb.qf,this.Ba(0))}G(a){super.start(a);this.ba.G(a);a.end()}}
th.prototype.K="lookupAll";class uh extends of{constructor(){super();this.l=rb.xa}}uh.prototype.K="currentGroup";class vh extends of{constructor(){super();this.l=rb.vd}}vh.prototype.K="currentGroupingKey";class Zg extends qf{constructor(a){super(a);this.l=a.l}Qb(){return!0}Ea(){return this.g.Ea()}}Zg.prototype.K="docOrder";class wh extends qf{constructor(a){super(a);this.l=a.l}G(a){super.start(a,{flags:this.flags});this.g.G(a);a.end()}}wh.prototype.K="copyOf";wh.prototype.flags="cm";
class Ug extends of{constructor(a,c){super();sa.assert(c instanceof vb);this.ba=a;this.type=c;this.l=rb.Ya}G(a){super.start(a,{of:this.type.fa()});this.ba.G(a);a.end()}}Ug.prototype.K="instance";function ih(a,c,n=null){n||(n=new mf(2,"treat as",0),n.errorCode="XPDY0050",n=n.save());return new hh(fh(a,c.cardinality,n),c.itemType,n)}
class Cg extends qf{constructor(a,c,n){super(a);this.l=new vb(a.l.itemType,c);this.j=c;this.B=n}G(a){super.start(a,{card:this.j===2?"1":oc(this.j),diag:this.B});this.g.G(a);a.end()}}Cg.prototype.K="check";function fh(a,c,n){return c===7?a:a instanceof Hf&&(c|2)===c?a:new Cg(a,c,n)}class hh extends qf{constructor(a,c,n){super(a);this.l=a.l;this.B=c;this.j=n}G(a){super.start(a,{as:this.B.fa(),diag:this.j});this.g.G(a);a.end()}}hh.prototype.K="treat";
// Input 62
function xh(a,c,n){a=[a,If([Da.XS.boolean.Tc],rb.Ya)];return new yh(a,[c,n])}class yh extends of{constructor(a,c){super();this.g=a;this.actions=c;this.Ra=c.some(n=>n.Ra);a=Hd.Gd(c.map(n=>n.l.itemType));c=Rd(c.map(n=>n.l.cardinality));this.l=new vb(a,c)}G(a){super.start(a);let c=0;for(const n of this.g)n.G(a),this.actions[c++].G(a);a.end()}}yh.prototype.K="choose";
// Input 63
class zh extends of{constructor(){super();this.action=this.value=this.Vb=this.Ua=null;this.slot=0}cd(){return this.Ua}g(a){this.action=a;this.l=a.l}j(a){this.value=a;this.Vb=a.l}G(a){super.start(a,{name:this.Ua.toEQName(),slot:this.slot});this.value.G(a);this.action.G(a);a.end()}}class Ah extends zh{j(a){this.value=a;this.Vb=lc(a.l,2);this.action&&(this.l=mc(this.action.l,a.l.cardinality))}g(a){this.action=a;this.value&&(this.l=mc(a.l,this.value.l.cardinality))}}Ah.prototype.K="for";
class Bh extends zh{}Bh.prototype.K="let";
// Input 64
class Ch extends pf{constructor(a,c){super(a,null,c);this.l=rb.Ya}}class Dh extends Ch{}Dh.prototype.K="and";class Eh extends Ch{}Eh.prototype.K="or";
// Input 65
function Fh(a){return Gf(a)&&Da.XS.integer.matches(a.value[0])&&a.value[0].value<1E7}class Gh extends pf{constructor(a,c,n=!1){super(a,null,c);n&&(a=Bg(a),c=Bg(c));this.ba=Mf(a,rb.tf,this.Ba(0));this.da=Mf(c,rb.tf,this.Ba(1));this.l=rb.Ce}}Gh.prototype.K="to";class Hh extends of{constructor(a,c){super();this.g=a;this.j=c;this.l=rb.Ce}G(a){nf(this,a,{from:this.g.value,to:this.j.value})}}Hh.prototype.K="range";
class Ih extends of{constructor(a,c){super();this.g=a;this.next=c;this.l=mc(c.l,a.l.cardinality)}G(a){super.start(a);this.g.G(a);this.next.G(a);a.end()}}Ih.prototype.K="forEach";
// Input 66
// Input 67
var Jh={array:"http://www.w3.org/2005/xpath-functions/array",fn:"http://www.w3.org/2005/xpath-functions",ixsl:"http://saxonica.com/ns/interactiveXSLT",map:"http://www.w3.org/2005/xpath-functions/map",math:"http://www.w3.org/2005/xpath-functions/math",saxon:"http://saxon.sf.net/",xml:"http://www.w3.org/XML/1998/namespace",xs:"http://www.w3.org/2001/XMLSchema",xsl:"http://www.w3.org/1999/XSL/Transform"},Kh={},Lh;for(Lh in Jh)Kh[Jh[Lh]]=Lh;
// Input 68
function Mh(a,c){var n=new Xf(a.name,a.arity),v=rb.xa;switch(a.uri){case xa.map:v=rb.xf;switch(a.name.local){case "get":v=c[0].l.valueType;break;case "merge":v=rb.xf;break;case "entry":v=Ab(new Id(c[0].l,c[1].l))}return new bg(n,c,v);case xa.He:switch(a.name.local){case "_from-sequence":v=Ab(new Jd(c[0].l))}return new cg(n,c,v);case xa.qb:switch(a.name.local){case "apply":a=c[0].l,a=a.itemType?a.itemType:a,v=a.resultType?a.resultType:rb.xa}return new eg(n,c,v)}}
class Nh extends of{constructor(a,c,n){var v=rb.xa;super();this.name=Da.XS.QName.fromParts(Kh[n],n,a);this.arity=c;this.uri=n;this.l=rb.Ee;this.resultType=v}}Nh.prototype.K="function";class Oh{}Oh.prototype.uri=xa.Ma;class Ph extends Oh{constructor(){super()}}Ph.prototype.uri=xa.map;var Qh=new Ph;class Rh extends Oh{constructor(){super()}}Rh.prototype.uri=xa.He;var Sh=new Rh;class Th extends Oh{constructor(){super()}}Th.prototype.uri=xa.qb;class Uh extends Th{}var Vh=new Uh;
// Input 69
const Wh={FUNCTION:0,Qj:1,vk:2,Ak:3,bk:4,Xj:5,jk:6,uk:7,mk:8,xk:9,yk:10,ak:11,EVALUATE_RESULT:12,Sj:13,Oj:14,ik:15,Rj:16,Tj:17},Xh=["doc","id","element-with-id","key","root"];function Yh(a,c,n,v){return Wh[a]+"|"+c+"|"+n+"|"+v}function Zh(a,c,n,v){return{getMessage:function(){return c},If:v,getErrorCode:function(){return a},save:function(){return n}}}
function jh(a,c){const n=qc.zj(c).required;return Zh(a,n,c,function(v,M){return"Required type of "+n+" is "+v.toString()+": actual type is "+M.toString()})}class qg{constructor(a,c){var n=null;this.name=a;this.arity=a.arity;if(c){this.rb=c;n=c.alphaTree;const v=[];let M;c.variadic&&(M=xb(n.a[0]));for(c=0;c<a.arity;c++){const g=M?M:xb(n.a[c]);v.push(g)}n=n.r?xb(n.r):rb.xa;this.l=Ab(new rc(v,n))}n?this.resultType=n:this.resultType=rb.xa;this.l||(this.l=rb.Ee)}}qg.prototype.resultType=rb.xa;
function $h(){function a(){aa=new df;Ea=[];Ca=[];zb=0}function c(R){let X=Oa[R];X||M("No namespace binding for prefix '"+R+"'","XPST0081");return X}function n(R,X=c,ia=()=>""){return Da.XS.QName.fromString(R,ja=>ja===""?ia():X(ja))}function v(){const R=Ke[aa.I];return aa.I===201?'name "'+aa.T+'"':aa.I===-1?"(unknown token)":aa.T&&aa.T!==Ke[aa.I]?`${R} ("${aa.T}")`:/^[a-z]+$/.test(R)?`"${R}"`:R}function M(R,X="XPST0003"){bf(aa);throw new Re(R,X);}function g(R){const X=bf(aa);console.log((R.startsWith("...")?
"near":"in")+" "+X+":\n    "+R)}function l(){try{aa.next()}catch(R){M(R.message)}}function k(R){aa.I!==R&&M('expected "'+Ke[R]+'", found '+v())}function q(R=!1){R=y(R);let X=null;for(;aa.I===7;){X==null&&(X=[],X.push(R));l();const ia=y();X.push(ia)}X!=null&&(R=new kh(X));return R}function y(R=!1){switch(aa.I){case 0:if(R)return Jf();M("Expected an expression, but reached the end of the input");break;case 211:case 216:R=0;var X=aa.I,ia=null,ja=null;do{l();k(21);l();k(201);var va=aa.T,Ba=void 0;X===
211?Ba=new Ah:Ba=new Bh;R++;var Ia=Ba;va=O(va,"");Ia.Ua=va;l();k(X===216?58:31);l();Ca.push(null);Ba.j(y());Ca.pop();r(Ba);ja==null?ia=Ba:ja.g(Ba);ja=Ba}while(aa.I===7);k(25);l();ja.g(y());for(Ba=0;Ba<R;Ba++)Ca.pop();return ia;case 32:case 33:R=0;Ba=aa.I;Ia=ia=null;do l(),k(21),l(),k(201),X=aa.T,R++,va=new lh(Ba,O(X,"")),l(),k(31),l(),X=va,ja=y(),X.value=ja,X.Vb=lc(ja.l,2),r(va),Ia!=null?Ia.action=va:ia=va,Ia=va;while(aa.I===7);k(34);l();Ba=Ia;Ia=y();Ba.action=Ia;for(Ba=0;Ba<R;Ba++)Ca.pop();return ia;
case 37:return l(),Ba=q(),k(204),l(),k(26),l(),R=y(),k(27),l(),ia=y(),xh(Ba,R,ia);default:return u(E(),4)}}function K(){return D(aa.I)}function D(R){switch(R){case 9:case 81:return 4;case 10:case 80:return 5;case 50:case 51:case 55:case 53:case 54:case 52:case 6:case 22:case 14:case 12:case 13:case 11:case 20:case 38:case 39:return 6;case 30:return 7;case 29:return 8;case 15:case 16:return 9;case 17:case 18:case 56:case 19:return 10;case 79:return 11;case 1:return 12;case 23:case 24:return 13;case 45:return 14;
case 47:return 15;case 57:return 16;case 46:return 17;case 76:return 18;case 40:return 20;default:return-1}}function u(R,X){for(;K()>=X;){const $a=aa.I;var ia=K();switch($a){case 45:case 47:l();var ja=m();a:switch($a){case 45:R=new Ug(R,ja);break a;case 47:R=ih(R,ja);break a;default:throw new Se(Ke[$a]);}K()>=ia&&M("Left operand of '"+Ke[aa.I]+"' needs parentheses");break;case 46:case 57:l();var va=void 0;if(aa.I===69&&aa.T==="union")throw new F("Saxon union types not supported");k(201);if(aa.T)a:{try{var Ba=
n(aa.T,wa.xb,wa.ac);break a}catch(bb){M(bb.message,bb.code)}Ba=void 0}else Ba=M("Parser tokenization error NAME");ja=Ba;ja.uri!==xa.jc&&M("Unknown simple type "+aa.T+" in cast (SaxonJS is not schema-aware)");l();var Ia=aa.I===213;Ia&&(aa.I=204,l());const Eb={numeric:"u",ENTITIES:"l",NMTOKENS:"l",IDREFS:"l"}[ja.local]||"a";if(Eb==="a"){["anyType","anyAtomicType","NOTATION"].includes(ja.local)&&M("Casting to xs:"+ja.local+" is not possible (it's an abstract type)","XPST0080");va=Da.type[ja.local];if(!va)throw new F("Cannot find type "+
ja.toEQName());va=new Db(va)}R=($a===57?Of:Lf)(R,Eb,ja,va,Ia);K()>=ia&&M("Left operand of '"+Ke[aa.I]+"' needs parentheses");break;case 76:R=B(R);break;default:Ia=$a===40;l();Ia&&Ea.push(lc(R.l,2));ja=E();for(Ia&&Ea.pop();K()>ia;)ja=u(ja,K());if(!(ia=K()!==ia))a:switch(aa.I){case 50:case 51:case 55:case 53:case 54:case 52:case 6:case 22:case 14:case 12:case 13:case 11:case 20:case 38:case 39:case 29:ia=!1;break a;default:ia=!0}ia||M("Left operand of '"+Ke[aa.I]+"' needs parentheses");R=f(R,$a,ja)}}return R}
function f(R,X,ia){switch(X){case 9:return new Eh(R,ia);case 10:return new Dh(R,ia);case 50:case 51:case 55:case 53:case 54:case 52:return new Kg(R,X,ia,wa);case 6:case 22:case 14:case 12:case 13:case 11:if(wa.pe())X=new Jg(R,X,ia,wa);else{var ja=wa;ia=new Ig(R,X,ia,ja);if(R=ia.ba.l.cardinality===2&&ia.da.l.cardinality===2&&Dg[X]){R=ia.ba.l.itemType;var va=ia.da.l.itemType;const Ba=R.V().p,Ia=va.V().p;R=Fg(Ba)||Fg(Ia)?Ba===Ia:R.isNumeric()&&va.isNumeric()?!0:/^A[SZU]/.test(Ba)&&/^A[SZU]/.test(Ia)}X=
R?new Kg(ia.ba,Dg[X],ia.da,ja):ia}return X;case 20:case 38:case 39:return new Og(R,X,ia,wa);case 29:return ja=new Gh(R,ia,wa.pe()),Fh(ja.ba)&&Fh(ja.da)?(X=ja.ba.value[0],ja=ja.da.value[0],X=X.value>ja.value?Jf():X.value===ja.value?new Hf([X],rb.Ce):new Hh(X,ja)):X=ja,X;case 30:X=[];if(R instanceof Yf&&R.name.name.local==="concat"&&R.name.name.uri===xa.Ma)for(ja of R.g)X.push(ja);else ja=Yh("BINARY_OP",0,"","concat"),va=jh("FOTY0013",ja),R=eh(R,rb.Xb,va,ja,wa),X.push(R);ja=Yh("BINARY_OP",1,"","concat");
va=jh("FOTY0013",ja);ia=eh(ia,rb.Xb,va,ja,wa);X.push(ia);X=Zf("concat",X);X.l=rb.Yb;return X;case 15:case 16:case 17:case 18:case 56:case 19:return new Ag(R,X,ia,wa);case 79:return X=ia,ia=Da.XS.QName.fromParts("vv",xa.pg,"otherwise"),ja=new Bh,ja.Ua=ia,ja.j(R),r(ja),ia=oh(ja),R=[Zf("exists",[ia]),If([Da.XS.boolean.Tc],rb.Ya)],ja.g(new yh(R,[ia,X])),ja;case 1:case 23:case 24:return new vg(R,X,ia,Ta===1);case 81:return ia=Zf("boolean",ia),xh(R,If([Da.XS.boolean.Tc],rb.Ya),ia);case 80:return ia=Zf("boolean",
ia),xh(R,ia,If([Da.XS.boolean.Ud],rb.Ya));default:throw new Se(Ke[X]);}}function E(){switch(aa.I){case 16:l();var R=E();R=J(299,R);break;case 15:l();R=E();R=J(15,R);break;default:for(R=b();aa.I===40;){l();Ea.push(lc(R.l,2));const X=b();Ea.pop();R=new Ih(R,X)}}return R}function J(R,X){if(Gf(X)){const ia=X.value[0];return R===299?If([ia.bf()],X.l):X}return new Ag(If([Da.XS.integer.fromNumber(0)],rb.tc),R,X,wa)}function z(){switch(aa.I){case 36:case 3:case 201:case 208:case 70:case 207:case 69:case 205:case 206:case 35:case 202:case 209:case 5:case 21:case 43:case 4:return!0;
case 60:return["ordered","unordered","map","array"].includes(aa.T);default:return!1}}function b(){var R=aa.ee;switch(aa.I){case 2:return l(),R=new wg,z()?d(R):R;case 8:l();R=new wg;var X=new tg(5,null);R=Wg(R,X);return d(R);default:aa.I===201&&["true","false"].includes(aa.T)&&g("The expression is looking for a child element named '"+aa.T+"' - perhaps "+aa.T+"() was intended? To avoid this warning, use child::"+aa.T+" or ./"+aa.T+".");aa.I===201&&Ye(aa.T)!==-1&&Ta!==1&&(R>0||aa.j!==0)&&(R=aa.T,g("The keyword '"+
R+"' in this context means 'child::"+R+"'. If this was intended, use 'child::"+R+"' or './"+R+"' to avoid this warning."));for(R=h(Ta===1&&zb===0);[2,8].includes(aa.I);){Ea.push(lc(R.l,2));var ia=aa.I;l();X=h(!1);ia===2?R=Wg(R,X):X instanceof tg&&X.axis===3?(X=new tg(4,X.g),R=Wg(R,X)):(ia=new tg(5,null),R=Wg(R,ia),R=Wg(R,X));R=mh(R);Ea.pop()}return R}}function d(R){let X=R;var ia=2;for(Ea.push(lc(R.l,2));;){R=h(!1);Ea.pop();Ea.push(lc(R.l,2));ia===2?(X=Wg(X,R),X=mh(X)):ia===8?(ia=new tg(5,null),ia=
Wg(ia,R),X=Wg(X,ia),X=mh(X)):X=new Ih(X,R);ia=aa.I;if(ia!==2&&ia!==8&&ia!==40)break;l()}Ea.pop();return X}function h(R){R=Q(R);const X=R instanceof tg&&!gf[R.wb()];for(;;)if(aa.I===4)Ea.push(lc(R.l,2)),R=t(R),Ea.pop();else if(aa.I===5)R=P(R,null);else if(aa.I===213)R=T(R);else break;X&&(R=Zf("reverse",R),R.gl=!0);return R}function t(R=null){if(!R)return q(null);l();zb++;const X=t();zb--;k(203);l();return R=new Rg(R,X)}function m(){var R=aa.T==="empty-sequence";const X=L();if(R)return rb.Be;switch(aa.I){case 207:case 17:R=
7;aa.I=204;l();break;case 15:R=6;aa.I=204;l();break;case 213:R=3;aa.I=204;l();break;default:R=2}return new vb(X,R)}function L(){if(aa.I===5){l();var R=L();k(204);l()}else if(aa.I===201){R=null;try{R=n(aa.T,wa.xb,wa.ac)}catch(ia){M(ia.message,ia.code)}{var X=R;let ia=X.uri;ia===""&&(ia=wa.ac());const ja=X.local;R=X.toString();ia===xa.jc?ja==="numeric"?R=Lb:((X=Da.type[ja])||M("Unknown atomic type "+R,"XPST0051"),R=new Db(X)):(M(`Unknown atomic type ${X.toEQName()} (SaxonJS is not schema-aware)`,"XPST0051"),
R=void 0)}l()}else if(aa.I===69)switch(aa.T){case "item":l();k(204);l();R=Fb;break;case "function":R=V();break;case "map":R=ea();break;case "array":R=aa;l();[207,17].includes(R.I)?(l(),k(204),l(),R=Rb):(R=m(),k(204),l(),R=new Jd(R));break;case "empty-sequence":l();k(204);l();R=Tb;break;case "switch":case "typeswitch":M(aa.T+"() is reserved in XPath; it is available only in XQuery");break;default:R=ka()}else{if(Ta===4&&aa.I===208)return R=aa.T,l(),S(1,R);if(Ta===4&&aa.I===70)return l(),k(201),R=aa.T,
l(),W(1,R);if(Ta===4&&aa.I===3){l();if(aa.I===208)return R=aa.T,l(),S(2,R);if(aa.I===70)return l(),k(201),R=aa.T,l(),W(2,R);M("Expected NodeTest after '@'");return ic}M("Expected type name in SequenceType, found "+Ke[aa.I]);return ic}return R}function V(){l();const R=[];if([207,17].includes(aa.I))return l(),k(204),l(),Nb;for(;aa.I!==204;){var X=m();R.push(X);if(aa.I===204)break;else aa.I===7?l():M("Expected ',' or ')' after function argument type, found '"+Ke[aa.I]+"'")}l();if(aa.I===71)return l(),
X=m(),new rc(R,X);R.length>0?M("Result type must be given if an argument type is given: expected 'as (type)'"):M("function() is not allowed for a general function type: must be function(*)");return null}function ea(){var R=aa;l();if([207,17].includes(R.I))return l(),k(204),l(),Pb;R=L();k(7);l();const X=m();k(204);l();return R instanceof Db?new Id(R,X):(M("Key type of a map must be atomic"),null)}function B(R){l();var X=aa.I;if([201,35].includes(X))return ha(R);if(X===21)return X=N(),k(5),P(X,R);if(X===
5)return X=p(),k(5),P(X,R);M("Unexpected "+Ke[X]+" after '=>'");return null}function Q(R){function X(ja){return ja instanceof $f||ja instanceof Rg&&X(ja.g)}switch(aa.I){case 21:return N();case 5:var ia=p();R&&X(ia)&&M("Predicate pattern cannot be parenthesized","XTSE0340");return ia;case 4:return U();case 202:return x(!0);case 209:return I(!0);case 35:return ia=aa.T,zb===0&&Ta===1&&(wa.dg=!0,R?Xh.includes(ia)||ia.includes(":")||M("Function "+ia+"() is not permitted at first position in pattern","XTSE0340"):
M("Function call not at first position in pattern","XTSE0340")),ia=ha(null),wa.dg=!1,ia;case 213:return T(new $f);case 205:return l(),new $f(Ea[Ea.length-1]);case 206:return l(),new tg(9,null);case 69:if(aa.T==="function")return da();case 201:case 208:case 70:case 207:return ia=3,aa.I===69&&["attribute","schema-attribute"].includes(aa.T)?ia=2:aa.I===69&&aa.T==="namespace-node"?ia=8:R&&aa.I===69&&aa.T==="document-node"&&(ia=12),R=la(1),new tg(ia,R);case 3:l();switch(aa.I){case 201:case 208:case 70:case 207:case 69:return ia=
la(2),new tg(2,ia);default:M("@ must be followed by a NodeTest")}break;case 36:try{ia=lf(aa.T)}catch(ja){M(ja.message),ia=3}R=jf[ia];l();switch(aa.I){case 201:case 208:case 70:case 207:case 69:R=la(R);let ja=null;if(ia===2){const va=Hd.Eb(R,new Wb(2));va===Hd.Wb?ja="attribute axis can never yield nodes of type "+R:va===Hd.Ib&&(R=new Wb(2))}ia===3&&R.kind===9&&(ja=R.name+" nodes can never be children");R.kind!==2||[2,12].includes(ia)||(ja="axis "+hf(ia)+" can never yield attribute nodes");if(ja){if(Ta===
1)return new tf(ja);g(ja);return Jf()}return new tg(ia,R);default:M("Unexpected token "+v()+" after axis name")}break;case 60:switch(aa.T){case "map":return G();case "array":return ba();case ".":return Z();case "_":M("Underscore functions not yet implemented")}break;case 43:return e();default:M("Unexpected token "+v()+" at start of expression")}}function p(){l();if(aa.I===204)return l(),Jf();const R=q();k(204);l();return R}function I(){const R=aa.T?A(aa.T):M("Parser tokenization error NUMBER");isNaN(R)&&
M("Invalid numeric literal ("+aa.T+")");l();return If([R],R.code==="AO"?rb.Xd:R.code==="AD"?rb.vg:rb.tc)}function A(R){try{return R.indexOf("e")>=0||R.indexOf("E")>=0?Da.XS.double.fromString(R):R.indexOf(".")>=0?Da.XS.decimal.fromString(R):Da.XS.integer.fromString(R)}catch(X){return NaN}}function x(){var R=new Kf(aa.T);l();return R}function N(){l();k(201);var R=aa.T;l();const X=O(R,"");R=H(X);if(R!=null)var ia=oh(R);else if(X.uri===xa.ri&&Za>0){R=X.local;if("code description value module line-number column-number".split(" ").includes(R))return ia=
new Xf(O("dynamic-error-info",xa.qb),1),ia=new eg(ia,[If([Da.XS.string.fromString(R)],rb.Yb)],rb.xa);M("Unknown error variable "+X.toEQName(),"XPST0008")}else wa.Sf?(ia={Ua:X,cd:function(){return X}},r(ia),ia=oh(ia)):M("No binding for variable "+X.toEQName(),"XPST0008");return ia}function P(R,X){var ia=[];X!=null&&ia.push(X);X=null;l();if(aa.I!==204){for(;;){var ja=w();if(ja==null||ja instanceof lg)X==null&&(X=[]),X.push(ia.length);ia.push(ja);if(aa.I===7)l();else break}k(204)}l();if(X==null){var va=
ia;R instanceof hg?(X=Yh("FUNCTION",1,"XPTY0004","array:get"),ja=jh("XPTY0004",X),va=eh(va[0],rb.tc,ja,X,wa),ia=new Nh("get",2,Sh.uri),R=Mh(ia,[R,va])):(va=new hg(va),ia=new Nh("apply",2,Vh.uri),X=Yh("FUNCTION",0,"XPTY0004","apply"),ja=jh("XPTY0004",X),R=eh(R,rb.Ee,ja,X,wa),R=Mh(ia,[R,va]))}else R=new pg(R,ia,X);return R}function T(R){var X=aa;Te(X,ef);X.I=5;l();const ia=X.I;Te(X,Ue);if(ia===201)X=X.T,Pe(X)||M("The name following '?' must be a valid NCName"),l(),R=new sh(R,new Kf(X));else if(ia===
209)X=X.T?A(X.T):M("Parser tokenization error NUMBER"),(isNaN(X)||X.code!=="ADI")&&M("Number following '?' must be an integer"),l(),R=Y(this,R,If([X],rb.tc));else if([17,207].includes(ia))l(),R=new th(R);else if(ia===5)R=Y(this,R,p());else return M("Unexpected "+Ke[ia]+" after '?'"),null;return R}function Y(R,X,ia){if(pc(X.l.cardinality)){R=new Ah;R.Vb=lc(X.l,2);const ja=O("zibble",""),va=oh(R);R.Ua=ja;R.j(X);r(R);R.g(new sh(va,ia));Ca.pop();return R}return new sh(X,ia)}function da(){var R=aa;const X=
new mg;X.g=[];for(var ia of Ca)X.g.push(ia);X.B=[];X.j=[];La.push(X);l();var ja=[];ia=[];let va=0;for(;R.I!==204;){k(21);l();k(201);var Ba=O(R.T,"");for(var Ia of ja)Ia.equals(Ba)&&M("Duplicate parameter name $"+Ba.toString(),"XQST0039");ja.push(Ba);var $a=rb.xa;l();R.I===71&&(l(),$a=m());const mb=new ng;var Eb=mb;Eb.l=$a;Eb.Vb=$a;mb.name=Ba;mb.Ua=Ba;Eb=mb;Ba=va++;Eb.slot=Ba;ia.push(mb);r(mb);if(R.I===204)break;else R.I===7?l():M("Expected ',' or ')' after function argument, found '"+Ke[R.I]+"'")}Te(R,
ef);l();if(R.I===71){Te(R,ff);l();var bb=m()}k(59);Te(R,0);l();R.I===215?(Ve(R),l(),Ia=Jf()):(Ia=q(),k(215),Ve(R),l(),bb||(bb=Ia.l));bb||(bb=rb.xa);R=ja.length;for(ja=0;ja<R;ja++)Ca.pop();bb=new og(ia,bb,Ia);Ca=X.g;La.pop();return bb}function Z(){var R=aa;const X=new mg;X.g=[];for(var ia of Ca)X.g.push(ia);X.B=[];X.j=[];La.push(X);l();ia=[];var ja=Da.XS.QName.fromParts("saxon",xa.qb,"dot");const va=new ng;var Ba=rb.kc;va.l=Ba;va.Vb=Ba;va.name=ja;va.Ua=ja;va.slot=0;ia.push(va);ja=new Ih(oh(va),q());
k(215);Ve(R);l();R=new og(ia,ja.l,ja);Ca=X.g;La.pop();return R}function la(R){var X=aa.T;switch(aa.I){case 201:l();var ia=X;X=O(ia,R===1?wa.ac():"");R===1&&X.getURI()===""&&wa.ke?(ia=O(ia,"http://www.w3.org/1999/xhtml"),R=new Md(new Cd(R,X),new Cd(R,ia))):R=new Cd(R,X);return R;case 208:return l(),S(R,X);case 70:return l(),X=aa.T,k(201),l(),W(R,X);case 207:return l(),Ad(R);case 69:return ka();default:throw M("Unrecognized node test"),new Re("");}}function ka(){function R(){ia||M("No arguments are allowed in "+
X+"()","XPST0003")}const X=aa.T;let ia=!1;l();aa.I===204&&(ia=!0,l());switch(X){case "item":case "switch":case "typeswitch":return M(X+"() is not allowed in a path expression"),null;case "node":return R(),Hb;case "text":return R(),Zb;case "comment":return R(),$b;case "namespace-node":if(ia)return bc;if(Ta===4&&aa.I===201)return l(),k(204),l(),new Dd(13,"");M("No arguments are allowed in namespace-node()");return null;case "document-node":if(ia)return Vb;if(aa.T!=="element")return M("Argument to document-node() must be an element type"),
null;var ja=ka();k(204);l();return new Fd(Ab(ja));case "processing-instruction":if(ia)return ac;aa.I===202?ja=aa.T?ya.trim(unescape(aa.T)):M("Parser tokenization error STRING_LIITERAL"):aa.I===201?ja=aa.T:M("Processing instruction name must be an NCName or a string literal");Pe(ja)||M("Processing instruction name must be a valid NCName: '"+ja+"' is not");/^[Xx][Mm][Ll]$/.test(ja)&&M("Processing instruction name must not be 'xml'");l();k(204);l();return new Cd(7,Da.XS.QName.fromParts("","",ja));case "attribute":case "element":ja=
X==="element"?1:2;let Ba="";var va=!1;if(ia)return Ad(ja);[207,17].includes(aa.I)?Ba="*":aa.I===201?Ba=aa.T:aa.I===70?(l(),va=!0,Ba=aa.T):(M("Unexpected "+Ke[aa.I]+" after '(' in SequenceType"),Ba="*");l();if(aa.I===204)return l(),Ba==="*"?Ad(ja):va?new Dd(ja,Ba):new Cd(ja,n(Ba,wa.xb,ja===1?wa.ac:()=>""));if(aa.I===7){l();k(201);va=!1;const Ia=n(aa.T,wa.xb,wa.ac);Ia.uri===xa.jc?ja===1?["untyped","anyType"].includes(Ia.local)||(["untypedAtomic","anyAtomicType"].includes(Ia.local)?va=!0:M("Unsupported type annotation "+
aa.T+" (SaxonJS is not schema-aware, so all nodes are untyped)")):["untypedAtomic","anyAtomicType"].includes(Ia.local)||M("Unsupported type annotation "+aa.T+" (SaxonJS is not schema-aware, so all nodes are untyped)"):M("Unsupported type annotation "+aa.T+" (SaxonJS is not schema-aware, so only built-in types are recognized)");l();aa.I===213&&l();k(204);l();if(va)return Tb;if(Ba==="*")return Ad(ja);Ba=n(Ba,wa.xb,ja===1?wa.ac:()=>"");return new Cd(ja,Ba)}M("Expected ')' or ',' in SequenceType");return null;
case "schema-attribute":case "schema-element":return M("Type "+X+"() not allowed: SaxonJS is not schema-aware"),null;default:return M("Unknown node kind "+X),null}}function G(){var R=[];l();var X=[];let ia=!0;if(aa.I!==215)for(;;){var ja=y();k(75);l();const va=y(),Ba=Yh("FUNCTION",0,"","map:entry"),Ia=jh("XPTY0004",Ba);ja=eh(ja,rb.De,Ia,Ba,wa);!ia||ja instanceof Hf?X.indexOf(ja)===-1?X.push(ja):ia=!1:ia=!1;ja=new rg(ja,va);R.push(ja);if(aa.I===215)break;else k(7),l()}Ve(aa);l();if(R.length===0)return Mh(new Nh("_new",
1,Qh.uri),[]);if(R.length===1)return R[0];if(ia){const va=[];R.forEach(Ba=>{va.push([Ba.key,Ba.value])});return new sg(va)}R=new kh(R);X=[];X=new sg([[new Kf("duplicates"),new Kf("reject")],[new Kf("duplicates-error-code"),new Kf("XQDY0137")]]);return Mh(new Nh("merge",2,Qh.uri),[R,X])}function U(){const R=[];l();if(aa.I===203)return l(),new hg(R);for(;;){const X=y();R.push(X);if(aa.I===7)l();else{if(aa.I===203){l();break}M("Expected ',' or ']', found "+Ke[aa.I])}}return new hg(R)}function ba(){l();
const R=new Nh("_from-sequence",1,Sh.uri);if(aa.I===215)return Ve(aa),l(),Mh(R,[Jf()]);const X=q();k(215);Ve(aa);l();return Mh(R,[X])}function ha(R){function X(){if(aa.I===209)return I(!0);if(aa.I===202)return x(aa.T);if(aa.I===21)return N();M("The arguments to a function call in a pattern must be literals or variable references","XTSE0340")}var ia=aa.T,ja=aa.ee;const va=[];R!=null&&va.push(R);R=fa(ia);ia=null;Ta===1&&R.uri===xa.Ma&&["current-group","current-grouping-key","current-merge-group","current-merge-key"].includes(R.local)&&
M(R.local+"() is not permitted in a pattern","XTSE1060");l();if(aa.I!==204){for(;;){var Ba=wa.dg?X():w();if(Ba==null||Ba instanceof lg)ia==null&&(ia=[]),ia.push(va.length);va.push(Ba);if(aa.I===7)l();else break}k(204)}l();Ba=new Xf(R,va.length);if(ia!=null)return ja=wa.Ue().Vf(Ba,wa),ja==null&&M("No function "+R.toString()+"#"+va.length+" is known for partial application","XPST0017"),new pg(ja,va,ia);ia=[];Ba=wa.Ue().bind(Ba,va,wa,ia);return Ba==null?ca(wa,ja,R,va,ia):Ba}function ca(R,X,ia,ja,va){let Ba=
"Cannot find a "+ja.length+"-argument function named "+ia.toEQName()+"()";for(var Ia of va)Ba+=". "+Ia;va=!1;for(Ia=0;Ia<ja.length+5;Ia++)if(Ia!==ja.length){const $a=new Xf(ia,Ia);if(R.Ue().Vf($a,R)){va=!0;break}}va?Ba+=". The namespace URI and local name are recognized, but the number of arguments is wrong":(ja=ia.uri,ia=ja===xa.Rc?ia.local==="original"?"Function name xsl:original is only available within an overriding function":"There are no functions defined in the XSLT namespace":ja===xa.qb?"Most Saxon extension functions are not available under SaxonJS":
ja.startsWith("java:")?"Calls to Java methods are not available under SaxonJS":ja.startsWith("clitype:")?"Calls to .NET methods are not available under SaxonJS":null,ia!=null&&(Ba+=ia));if(R.pe())return Zf("error",[Zf("QName",[new Kf(""),new Kf("XTDE1425")]),new Kf(Ba)]);M(Ba,"XPST0017",X)}function fa(R){let X=null;try{X=n(R,wa.xb,wa.ah)}catch(ia){M(ia.message,ia.code)}return X}function w(){return aa.I===213&&[7,204].includes(aa.j)?(l(),new lg):y()}function e(){var R=aa,X=R.T;const ia=R.ee;var ja=
wa;l();k(209);R=R.T?A(R.T):M("Parser tokenization error NUMBER");isNaN(R)||R.code!=="ADI"?M("Number following '#' is invalid"):(R.value<0||R.value>Number.MAX_SAFE_INTEGER)&&M("Number following '#' is out of range","FOAR0002");R=R.value;l();let va=null;try{va=n(X,ja.xb,ja.ah)}catch(Ia){M(Ia.message,Ia.code)}X=ja.Ue();const Ba=new Xf(va,R);ja=X.Vf(Ba,ja);ja==null&&M("Function "+va.toEQName()+"#"+R+" not found","XPST0017",ia);return ja.rb.jh&&!va.dd(Ne.Rh)?new kg(ja):new jg(ja)}function r(R){R.slot=
Ca.length;Ca.push(R)}function H(R){for(let X=Ca.length-1;X>=0;X--){const ia=Ca[X];if(ia&&ia.cd().equals(R))return ia}}function C(R,X){return n(R,wa.xb,()=>X)}function O(R,X){try{return C(R,X)}catch(ia){M(ia.message,ia.code)}}function S(R,X){if(X.startsWith("Q{"))return new Ed(R,X.substring(2,X.length-2));try{const ia=n(X+":dummy",wa.xb,()=>"");return new Ed(R,ia.getURI())}catch(ia){return M(ia.message,ia.code),null}}function W(R,X){Pe(X)||M("Local name ["+X+"] contains invalid characters");return new Dd(R,
X)}function qa(R,X,ia,ja=!1){this.global=ja;this.Ua=this.name=R;this.Vb=X;this.slot=ia}let aa,za,wa={},Ca=[],Ea=[],Ta=0,Za=0,zb=0;const La=[],Ja={Vf:function(R,X){X=X.getContext();return(X=ai.getFnSignature(R.name,R.arity,X))?new qg(R,X):null},bind:function(R,X,ia){var ja=ia.getContext(),va=ai.getFnSignature(R.name,R.arity,ja);if(va){if(R.name.uri===xa.Ma)switch(R.name.local){case "false":return If([Da.XS.boolean.Ud],rb.Ya);case "true":return If([Da.XS.boolean.Tc],rb.Ya);case "normalize-unicode":X.length===
1&&X.push(new Kf("NFC"));break;case "copy-of":return new wh(X[0]?X[0]:new $f(Ea[Ea.length-1]));case "current-group":return new uh;case "current-grouping-key":return new vh;default:va.defaultToDot&&R.arity===0&&va.arity.includes(0)&&(X.push(new $f(Ea[Ea.length-1])),R.arity++)}else if(va.isIdempotent&&X.length===1)return X[0];ja=[];var Ba;const $a=va.alphaTree;$a&&$a.p==="F"&&!$a.r&&($a.r={p:"",o:"*"});$a&&$a.p==="F"&&$a.a&&$a.r||sa.ka("Bad function signature for "+R.name.local);va.variadic&&(Ba=$a.a[0]);
const Eb=va.collation||-1;for(let bb=0;bb<X.length;bb++){var Ia=Ba?Ba:$a.a[bb];const mb=Yh("FUNCTION",bb,"",R.name.toString()),ub=jh("XPTY0004",mb);bb===Eb?(Ia=eh(X[bb],Ia.o==="?"?rb.tg:rb.Yb,ub,mb,ia),Ia=Zf("resolve-uri",[Ia,Zf("static-base-uri",[])]),Ia.l=rb.rg,ja.push(Ia)):ja.push(eh(X[bb],xb(Ia),ub,mb,ia))}Eb>X.length-1&&ja.push(new Kf(ia.Lb));X=xb($a.r);if(va.isUserFunction)return new ig(R,va["abstract"],ja,X,va.componentBinding);switch(R.name.uri){case xa.Ma:case xa.jc:switch(R.name.local){case "current":Ea[0]&&
(X=Ea[0]);break;case "accumulator-before":case "accumulator-after":if(ja[0]instanceof Kf){va=n(ja[0].value[0].value,ia.xb,()=>"").toEQName();ia=ia.yb[va];if(!ia)throw new F("Unknown accumulator "+va,"XTDE3340");X=sb(ia);ja[0]=new Kf(va)}}return new Yf(R,ja,X);case xa.map:return new bg(R,ja,X);case xa.He:return new cg(R,ja,X);case xa.lh:return new dg(R,ja,X);case xa.qb:return new eg(R,ja,X);case xa.hd:return new fg(R,ja,X);case xa.kh:return new gg(R,ja,X);default:return va.jh?new ig(R,va["abstract"],
ja,X,va.Hk):new eg(R,ja,X)}}else{if(va=ai.getFnSignature(R.name,null,ja))if(va&&!va.alphaTree&&(va.alphaTree=jb(va.sig)),ja=X.length,Ba=va.alphaTree.a.length,ja!==Ba&&(va.variadic?X.length<Ba:!(va.arity||[]).includes(ja)))throw new F("Wrong argument arity "+X.length+" for function "+R.name.local+"()","XPST0017");if(ia.Kb)return Zf("error",[Zf("QName",[new Kf(""),new Kf("XTDE1425")]),new Kf("Unknown function "+R.toString())]);throw new F("Unknown function "+R.toEQName()+"()","XPST0017");}}};wa={ac:()=>
"",Lb:"http://www.w3.org/2005/xpath-functions/collation/codepoint",ke:!1,$a:{},yb:{},Xa:!1,Fc:!1,Sf:!1,Kb:!1,Aj:function(){wa.ac=()=>"";wa.Lb="http://www.w3.org/2005/xpath-functions/collation/codepoint";wa.$a={};wa.yb={};wa.Xa=!1;wa.Fc=!1;wa.Sf=!1;wa.Kb=!1},getContext:function(){return{Xa:wa.Xa,Xk:Ta===1,$a:wa.$a}},Gi:function(){return wa.Lb},ah:function(){return xa.Ma},Ue:function(){return Ja},Ok:function(){return null},Vk:function(){return!1},pe:function(){return wa.Kb},cl:function(){return null}};
let Oa={};qa.prototype.cd=function(){return this.name};return{process:function(R,X,ia,ja,va=!1,Ba=!1,Ia=!1){a();za=R;Ta=X?1:0;R=[];Oa={};wa.Aj();wa.xb=c;X&&(wa.Xa=!0);Ia&&(wa.Sf=!0);if(ja){Za=ja.Xe?1:0;ja.Fc&&(wa.Fc=!0);for(var $a in ja.namespaces)Oa[$a]=ja.namespaces[$a];for(var Eb in ja.Dc){$a=n(Eb,wa.xb,()=>"");const ub=ja.Dc[Eb],li=sb(ub.getAttribute("sType"));R.push(new qa($a,li,ub,!0))}for(var bb in ja.Tb)Eb=n(bb,wa.xb,()=>""),R.push(new qa(Eb,ja.sd[bb],ja.Tb[bb]));Ca=R;wa.yb=ja.yb;ja.ke&&(wa.ke=
ja.ke);ja.Lb&&(wa.Lb=ja.Lb);ja.$a&&(wa.$a=ja.$a);ja.Xa&&(wa.Xa=ja.Xa);ja.Kb&&(wa.Kb=ja.Kb);ja.se&&(Ea=[lc(ja.se,2)]);ja.xpathDefaultNamespace&&(wa.ac=()=>ja.xpathDefaultNamespace);wa.Da=ja.Da?ja.Da:null}bb="";for(const ub in Oa)R=Oa[ub],R=R===xa.withPrefix[ub]?"~":R,bb+=ub+"="+R+" ";Ze(aa,za);let mb;try{mb=q(Ba)}catch(ub){throw ub instanceof F&&ja&&ja.Hj&&(ub.code=ja.Hj,ub.message="Invalid XPath expression supplied to xsl:evaluate {"+za+"}: "+ub.message),ub;}aa.I!==0&&M("Found "+v()+" beyond end of expression");
X?(mb=mb.Ea(),mb instanceof Ef&&ia&&(mb=new Ff(Df(mb)))):ja&&ja.we&&(X=Yh("EVALUATE_RESULT",0,"",null),ia=jh("XPTY0004",X),mb=eh(mb,ja.we,ia,X));X=va?new bi:new ci;mb.G(X);X=X.current;va?(X=X.documentElement,mb.l&&X.setAttribute("sType",mb.l.fa()),bb!==""&&X.setAttribute("ns",bb),ja&&ja.Da&&X.setAttribute("baseUri",ja.Da)):(X=X.C[0],bb!==""&&(X.il=bb),ja&&ja.Da&&(X.lb=ja.Da),Ia&&Ca.length>0&&(X.Ai=Ca.map(ub=>ub.Ua.toEQName())));return X},parseSequenceType:function(R,X,ia){a();wa.xb=X;wa.ac=ia;Ta=
0;Oa={};Ze(aa,R);R=m();aa.I!==0&&M("Unexpected "+v()+" after SequenceType");return R},getTokenizer:function(){return aa}}}const di=$h();function ci(){this.g=[];this.current={C:[]}}ci.prototype={start:function(a,c={}){a={N:a,C:[]};for(const n in c)a[n]=c[n];this.current.C.push(a);this.g.push(this.current);this.current=a},rd:function(a,c){this.current[a]=c},end:function(){this.current=this.g.pop()}};
function bi(){this.j=we.find("SaxonJS").internals.getPlatform().createDocument();this.g=[];this.current=this.j}bi.prototype={start:function(a,c={}){a=this.j.createElement(a);for(const n in c)a.setAttribute(n,c[n]);this.current.appendChild(a);this.g.push(this.current);this.current=a},rd:function(a,c){this.current.setAttribute(a,c)},end:function(){this.current=this.g.pop()}};
// Input 70
const ei={rl:{QuantifiedExpr:"1AB",OrExpr:"1AB",AndExpr:"1AB",ComparisonExpr:"1AB",StringConcatExpr:"1AS",RangeExpr:"*ADI",AdditiveExpr:"?A",MultiplicativeExpr:"?A",IntersectExceptExpr:"*N",InstanceOfExpr:"1AB",CastableExpr:"1AB",UnaryExpr:"?A m[UO,UD,UF]",StringLiteral:"1AS",IntegerLiteral:"1ADI",DecimalLiteral:"1AD",DoubleLiteral:"1AO",NamedFunctionRef:"1F",InlineFunctionExpr:"1F",MapExpr:"1FM",Root:"1ND"},Nj:{"http://www.w3.org/2005/xpath-functions":{QName:{sig:"1F r[1AQ] a[?AS,1AS]"},abs:{sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},
"accumulator-after":{XSLTonly:!0,sig:"1F a[1AS] r[*]"},"accumulator-before":{XSLTonly:!0,sig:"1F a[1AS] r[*]"},"adjust-date-to-timezone":{arity:[1,2],sig:"1F r[?AA] a[?AA,?ARD]"},"adjust-dateTime-to-timezone":{arity:[1,2],sig:"1F r[?AM] a[?AM,?ARD]"},"adjust-time-to-timezone":{arity:[1,2],sig:"1F r[?AT] a[?AT,?ARD]"},"analyze-string":{arity:[2,3],sig:"1F r[1NE nQ{http://www.w3.org/2005/xpath-functions}analyze-string-result] a[?AS,1AS,1AS]"},apply:{sig:"1F a[1F,1FA] r[*]"},"available-environment-variables":{sig:"1F r[*AS] a[]"},
"available-system-properties":{XSLTonly:!0,sig:"1F r[*AQ] a[]"},avg:{sig:"1F r[?A] a[*A]"},"base-uri":{defaultToDot:!0,arity:[0,1],sig:"1F r[?AU] a[?N]"},"boolean":{sig:"1F r[1AB] a[*]"},ceiling:{sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"codepoint-equal":{sig:"1F r[?AB] a[?AS,?AS]"},"codepoints-to-string":{sig:"1F r[1AS] a[*ADI]"},"collation-key":{arity:[1,2],collation:1,sig:"1F r[1A2] a[1AS,1AS]"},collection:{arity:[0,1],sig:"1F a[?AS] r[*]"},compare:{arity:[2,3],collation:2,sig:"1F r[?ADI] a[?AS,?AS,1AS]"},
concat:{arity:[2,Infinity],sig:"1F r[1AS] a[?A,?A]",variadic:!0},contains:{arity:[2,3],collation:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"contains-token":{arity:[2,3],collation:2,sig:"1F r[1AB] a[*AS,1AS,1AS]"},"copy-of":{XSLTonly:!0,defaultToDot:!0,arity:[0,1],sig:"1F a[*] r[*]"},count:{sig:"1F r[1ADI] a[*]"},current:{XSLTonly:!0,sig:"1F r[1] a[]"},"current-date":{sig:"1F r[1AA] a[]"},"current-dateTime":{sig:"1F r[1AMP] a[]"},"current-group":{XSLTonly:!0,sig:"1F a[] r[*]"},"current-grouping-key":{XSLTonly:!0,
sig:"1F r[*A] a[]"},"current-merge-group":{XSLTonly:!0,arity:[0,1],sig:"1F a[1AS] r[*]"},"current-merge-key":{XSLTonly:!0,sig:"1F r[*A] a[]"},"current-output-uri":{XSLTonly:!0,sig:"1F r[?AU] a[]"},"current-time":{sig:"1F r[1AT] a[]"},data:{defaultToDot:!0,arity:[0,1],sig:"1F r[*A] a[*]"},dateTime:{sig:"1F r[?AM] a[?AA,?AT]"},"day-from-date":{sig:"1F r[?ADI] a[?AA]"},"day-from-dateTime":{sig:"1F r[?ADI] a[?AM]"},"days-from-duration":{sig:"1F r[?ADI] a[?AR]"},"deep-equal":{arity:[2,3],collation:2,sig:"1F r[1AB] a[*,*,1AS]"},
"default-collation":{sig:"1F r[1AS] a[]"},"default-language":{sig:"1F r[1ASNTL] a[]"},"distinct-values":{arity:[1,2],collation:1,sig:"1F r[*A] a[*A,1AS]"},doc:{sig:"1F r[?ND] a[?AS]"},"doc-available":{sig:"1F r[1AB] a[?AS]"},document:{XSLTonly:!0,arity:[1,2],sig:"1F r[*N] a[*,1N]"},"document-uri":{defaultToDot:!0,arity:[0,1],sig:"1F r[?AU] a[?N]"},"element-available":{XSLTonly:!0,sig:"1F r[1AB] a[1AS]"},"element-with-id":{defaultToDot:!0,arity:[1,2],sig:"1F r[*NE] a[*AS,1N]"},empty:{sig:"1F r[1AB] a[*]"},
"encode-for-uri":{sig:"1F r[1AS] a[?AS]"},"ends-with":{arity:[2,3],collation:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"environment-variable":{sig:"1F r[?AS] a[1AS]"},error:{arity:[0,1,2,3],sig:"1F r[0E] a[?AQ,1AS,*]"},"escape-html-uri":{sig:"1F r[1AS] a[?AS]"},"exactly-one":{sig:"1F r[1] a[*]"},exists:{sig:"1F r[1AB] a[*]"},"false":{sig:"1F r[1AB] a[]"},filter:{sig:"1F r[*] a[*,1F r[1AB] a[1]]"},floor:{sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"fold-left":{sig:"1F a[*,*,1F a[*,1] r[*]] r[*]"},"fold-right":{sig:"1F a[*,*,1F a[1,*] r[*]] r[*]"},
"for-each":{sig:"1F a[*,1F a[1] r[*]] r[*]"},"for-each-pair":{sig:"1F a[*,*,1F a[1,1] r[*]] r[*]"},"format-date":{arity:[2,5],sig:"1F r[?AS] a[?AA,1AS,?AS,?AS,?AS]"},"format-dateTime":{arity:[2,5],sig:"1F r[?AS] a[?AM,1AS,?AS,?AS,?AS]"},"format-integer":{arity:[2,3],sig:"1F r[1AS] a[?ADI,1AS,?AS]"},"format-number":{arity:[2,3],sig:"1F r[1AS] a[?A m[AO,AD,AF],1AS,?AS]"},"format-time":{arity:[2,5],sig:"1F r[?AS] a[?AT,1AS,?AS,?AS,?AS]"},"function-arity":{sig:"1F r[1ADI] a[1F]"},"function-available":{XSLTonly:!0,
arity:[1,2],sig:"1F r[1AB] a[1AS,1ADI]"},"function-lookup":{sig:"1F r[?F] a[1AQ,1ADI]"},"function-name":{sig:"1F r[?AQ] a[1F]"},"generate-id":{defaultToDot:!0,arity:[0,1],sig:"1F r[1AS] a[?N]"},"has-children":{defaultToDot:!0,arity:[0,1],sig:"1F r[1AB] a[?N]"},head:{sig:"1F r[?] a[*]"},"hours-from-dateTime":{sig:"1F r[?ADI] a[?AM]"},"hours-from-duration":{sig:"1F r[?ADI] a[?AR]"},"hours-from-time":{sig:"1F r[?ADI] a[?AT]"},id:{defaultToDot:!0,arity:[1,2],sig:"1F r[*NE] a[*AS,1N]"},idref:{defaultToDot:!0,
arity:[1,2],sig:"1F r[*N] a[*AS,1N]"},"implicit-timezone":{sig:"1F r[1ARD] a[]"},"in-scope-prefixes":{sig:"1F r[*AS] a[1NE]"},"index-of":{arity:[2,3],collation:2,sig:"1F r[*ADI] a[*A,1A,1AS]"},innermost:{sig:"1F r[*N] a[*N]"},"insert-before":{sig:"1F a[*,1ADI,*] r[*]"},"iri-to-uri":{sig:"1F r[1AS] a[?AS]"},"json-doc":{arity:[1,2],sig:"1F r[?] a[?AS,1FM]"},"json-to-xml":{arity:[1,2],sig:"1F r[?ND] a[?AS,1FM]"},key:{XSLTonly:!0,arity:[2,3],sig:"1F r[*N] a[1AS,*A,1N]"},lang:{defaultToDot:!0,arity:[1,
2],sig:"1F r[1AB] a[?AS,1N]"},last:{sig:"1F r[1ADI] a[]"},"load-xquery-module":{arity:[1,2],sig:"1F r[1FM] a[1AS,1FM]"},"local-name":{defaultToDot:!0,arity:[0,1],sig:"1F r[1AS] a[?N]"},"local-name-from-QName":{sig:"1F r[?ASNTNC] a[?AQ]"},"lower-case":{sig:"1F r[1AS] a[?AS]"},matches:{arity:[2,3],sig:"1F r[1AB] a[?AS,1AS,1AS]"},max:{arity:[1,2],collation:1,sig:"1F r[?A] a[*A,1AS]"},min:{arity:[1,2],collation:1,sig:"1F r[?A] a[*A,1AS]"},"minutes-from-dateTime":{sig:"1F r[?ADI] a[?AM]"},"minutes-from-duration":{sig:"1F r[?ADI] a[?AR]"},
"minutes-from-time":{sig:"1F r[?ADI] a[?AT]"},"month-from-date":{sig:"1F r[?ADI] a[?AA]"},"month-from-dateTime":{sig:"1F r[?ADI] a[?AM]"},"months-from-duration":{sig:"1F r[?ADI] a[?AR]"},name:{defaultToDot:!0,arity:[0,1],sig:"1F r[1AS] a[?N]"},"namespace-uri":{defaultToDot:!0,arity:[0,1],sig:"1F r[1AU] a[?N]"},"namespace-uri-for-prefix":{sig:"1F r[?AU] a[?AS,1NE]"},"namespace-uri-from-QName":{sig:"1F r[?AU] a[?AQ]"},nilled:{defaultToDot:!0,arity:[0,1],sig:"1F r[?AB] a[?N]"},"node-name":{defaultToDot:!0,
arity:[0,1],sig:"1F r[?AQ] a[?N]"},"normalize-space":{arity:[0,1],sig:"1F r[1AS] a[?AS]"},"normalize-unicode":{arity:[1,2],sig:"1F r[1AS] a[?AS,1AS]"},not:{sig:"1F r[1AB] a[*]"},number:{defaultToDot:!0,arity:[0,1],sig:"1F r[1AO] a[?A]"},"one-or-more":{sig:"1F r[+] a[*]"},outermost:{sig:"1F r[*N] a[*N]"},"parse-ietf-date":{sig:"1F r[?AM] a[?AS]"},"parse-json":{arity:[1,2],sig:"1F r[?] a[?AS,1FM]"},"parse-xml":{sig:"1F r[?ND e[NE]] a[?AS]"},"parse-xml-fragment":{sig:"1F r[?ND] a[?AS]"},path:{defaultToDot:!0,
arity:[0,1],sig:"1F r[?AS] a[?N]"},position:{sig:"1F r[1ADI] a[]"},"prefix-from-QName":{sig:"1F r[?ASNTNC] a[?AQ]"},"random-number-generator":{arity:[0,1],sig:"1F r[1FM k[AS] v[1]] a[?A]"},"regex-group":{XSLTonly:!0,sig:"1F r[1AS] a[1ADI]"},remove:{sig:"1F r[*] a[*,1ADI]"},replace:{arity:[3,4],sig:"1F r[1AS] a[?AS,1AS,1AS,1AS]"},"resolve-QName":{sig:"1F r[?AQ] a[?AS,1NE]"},"resolve-uri":{arity:[1,2],sig:"1F r[?AU] a[?AS,1AS]"},reverse:{sig:"1F a[*] r[*]"},root:{defaultToDot:!0,arity:[0,1],sig:"1F r[?N] a[?N]"},
round:{arity:[1,2],sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF],1ADI]"},"round-half-to-even":{arity:[1,2],sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF],1ADI]"},"seconds-from-dateTime":{sig:"1F r[?AD] a[?AM]"},"seconds-from-duration":{sig:"1F r[?AD] a[?AR]"},"seconds-from-time":{sig:"1F r[?AD] a[?AT]"},serialize:{arity:[1,2],sig:"1F r[1AS] a[*,?]"},snapshot:{XSLTonly:!0,defaultToDot:!0,arity:[0,1],sig:"1F a[*] r[*]"},sort:{arity:[1,2,3],collation:1,sig:"1F r[*] a[*,?AS,1F r[*A] a[1]]"},"starts-with":{arity:[2,
3],collation:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"static-base-uri":{sig:"1F r[?AU] a[]"},"stream-available":{XSLTonly:!0,sig:"1F r[1AB] a[?AS]"},string:{defaultToDot:!0,arity:[0,1],sig:"1F r[1AS] a[?]"},"string-join":{arity:[1,2],sig:"1F r[1AS] a[*A,1AS]"},"string-length":{arity:[0,1],sig:"1F r[1ADI] a[?AS]"},"string-to-codepoints":{sig:"1F r[*ADI] a[?AS]"},subsequence:{arity:[2,3],sig:"1F a[*,1AO,1AO] r[*]"},substring:{arity:[2,3],sig:"1F r[1AS] a[?AS,1AO,1AO]"},"substring-after":{arity:[2,3],collation:2,
sig:"1F r[1AS] a[?AS,?AS,1AS]"},"substring-before":{arity:[2,3],collation:2,sig:"1F r[1AS] a[?AS,?AS,1AS]"},sum:{arity:[1,2],sig:"1F r[?A] a[*A,?A]"},"system-property":{XSLTonly:!0,sig:"1F r[1AS] a[1AS]"},tail:{sig:"1F a[*] r[*]"},"timezone-from-date":{sig:"1F r[?ARD] a[?AA]"},"timezone-from-dateTime":{sig:"1F r[?ARD] a[?AM]"},"timezone-from-time":{sig:"1F r[?ARD] a[?AT]"},tokenize:{arity:[1,2,3],sig:"1F r[*AS] a[?AS,1AS,1AS]"},trace:{arity:[1,2],sig:"1F a[*,1AS] r[*]"},transform:{sig:"1F r[1FM] a[1FM]"},
translate:{sig:"1F r[1AS] a[?AS,1AS,1AS]"},"true":{sig:"1F r[1AB] a[]"},"type-available":{XSLTonly:!0,sig:"1F r[1AB] a[1AS]"},unordered:{sig:"1F r[*] a[*]"},"unparsed-entity-public-id":{XSLTonly:!0,arity:[1,2],sig:"1F r[1AS] a[1AS,1N]"},"unparsed-entity-uri":{XSLTonly:!0,arity:[1,2],sig:"1F r[1AU] a[1AS,1N]"},"unparsed-text":{arity:[1,2],sig:"1F r[?AS] a[?AS,1AS]"},"unparsed-text-available":{arity:[1,2],sig:"1F r[1AB] a[?AS,1AS]"},"unparsed-text-lines":{arity:[1,2],sig:"1F r[*AS] a[?AS,1AS]"},"upper-case":{sig:"1F r[1AS] a[?AS]"},
"uri-collection":{arity:[0,1],sig:"1F r[*AU] a[?AS]"},"xml-to-json":{arity:[1,2],sig:"1F r[?AS] a[?N,1FM]"},"year-from-date":{sig:"1F r[?ADI] a[?AA]"},"year-from-dateTime":{sig:"1F r[?ADI] a[?AM]"},"years-from-duration":{sig:"1F r[?ADI] a[?AR]"},"zero-or-one":{sig:"1F r[?] a[*]"}},"http://www.w3.org/2005/xpath-functions/array":{append:{sig:"1F r[1FA] a[1FA,*]"},filter:{sig:"1F r[1FA] a[1FA,1F r[1AB] a[*]]"},flatten:{sig:"1F a[*] r[*]"},"fold-left":{sig:"1F a[1FA,*,1F a[*,*]] r[*]"},"fold-right":{sig:"1F a[1FA,*,1F a[*,*]] r[*]"},
"for-each":{sig:"1F r[1FA] a[1FA,1F a[*]]"},"for-each-pair":{sig:"1F r[1FA] a[1FA,1FA,1F a[*,*]]"},get:{sig:"1F a[1FA,1ADI] r[*]"},head:{sig:"1F a[1FA] r[*]"},"insert-before":{sig:"1F r[1FA] a[1FA,1ADI,*]"},join:{sig:"1F r[1FA] a[*FA]"},put:{sig:"1F r[1FA] a[1FA,1ADI,*]"},remove:{sig:"1F r[1FA] a[1FA,*ADI]"},reverse:{sig:"1F r[1FA] a[1FA]"},size:{sig:"1F r[1ADI] a[1FA]"},sort:{arity:[1,2,3],collation:1,sig:"1F r[1FA] a[1FA,?AS,1F r[*A] a[*]]"},subarray:{arity:[2,3],sig:"1F r[1FA] a[1FA,1ADI,1ADI]"},
tail:{sig:"1F r[1FA] a[1FA]"}},"http://www.w3.org/2005/xpath-functions/map":{contains:{sig:"1F r[1AB] a[1FM,1A]"},entry:{sig:"1F r[1FM] a[1A,*]"},find:{sig:"1F r[1FA] a[*,1A]"},"for-each":{sig:"1F r[*] a[1FM,1F a[1A,*]]"},get:{sig:"1F a[1FM,1A] r[*]"},keys:{sig:"1F r[*A] a[1FM]"},merge:{arity:[1,2],sig:"1F r[1FM] a[*FM,1FM]"},put:{sig:"1F r[1FM] a[1FM,1A,*]"},remove:{sig:"1F r[1FM] a[1FM,*A]"},size:{sig:"1F r[1ADI] a[1FM]"}},"http://www.w3.org/2005/xpath-functions/math":{acos:{sig:"1F r[?AO] a[?AO]"},
asin:{sig:"1F r[?AO] a[?AO]"},atan:{sig:"1F r[?AO] a[?AO]"},atan2:{sig:"1F r[1AO] a[1AO,1AO]"},cos:{sig:"1F r[?AO] a[?AO]"},exp:{sig:"1F r[?AO] a[?AO]"},exp10:{sig:"1F r[?AO] a[?AO]"},log:{sig:"1F r[?AO] a[?AO]"},log10:{sig:"1F r[?AO] a[?AO]"},pi:{sig:"1F r[1AO] a[]"},pow:{sig:"1F r[?AO] a[?AO,1A m[AO,AD,AF]]"},sin:{sig:"1F r[?AO] a[?AO]"},sqrt:{sig:"1F r[?AO] a[?AO]"},tan:{sig:"1F r[?AO] a[?AO]"}}}};
// Input 71
class fi{constructor(){this.g=$h()}compile(a){const c={xs:"http://www.w3.org/2001/XMLSchema",array:"http://www.w3.org/2005/xpath-functions/array",map:"http://www.w3.org/2005/xpath-functions/map",fn:""};return this.g.parseSequenceType(a,n=>c[n],n=>c[n])}};
// Input 72
let gi={},hi=null;function ii(a){hi==null&&(hi={1:"0",2:"1",3:"?",6:"+",4:"+",7:"*"});const c=hi[a];return c===void 0?(console.log("Unexpected cardinality:",a),"*"):c}
function ji(a,c){if(!(a in gi&&c in gi[a]))return null;a=gi[a][c];let n=a.sig;if(!n&&(a.as||a.param)){const v=new fi;n="1F ";a.as?(c=v.compile(a.as),n+="r["+ii(c.cardinality)+(c.itemType._alphaCode===null?"":c.itemType._alphaCode)+"] "):n+="* ";if(a.param){let M=0;n+="a[";a.param.forEach(g=>{M>0&&(n+=",");g=v.compile(g);n+=ii(g.cardinality)+g.itemType._alphaCode;M++});n+="]"}else n+="a[]";a.sig=n}n&&!a.alphaTree&&(a.alphaTree=jb(n));return a}
class ki{addLibrary(a,c){let n=gi[a];n||(n={},gi[a]=n);for(let v in c)v in n||(n[v]={}),c[v]instanceof Function?(n[v].impl=c[v],n[v].api="legacy"):Object.assign(n[v],c[v])}getLibrary(a){return gi[a]}getSignature(a,c){return ji(a,c)}};
// Input 73
(function(){const a=new ki;a.addLibrary(xa.qb,{apply:{sig:"1F r[*] a[1F,1FA]",api:"legacy"},"column-number":{arity:[0,1],sig:"1F r[1ADI] a[1N]",api:"legacy"},"compile-XPath":{arity:[1,2,3],sig:"1F r[1ND] a[1AS,?,?]",api:"legacy"},"compile-GlobalContext":{sig:"1F r[1] a[1FM,1FM,1FM]",api:"legacy"},"discard-document":{sig:"1F r[1ND] a[1ND]",api:"legacy"},"has-uniform-namespaces":{sig:"1F r[1AB] a[1N]",api:"legacy"},"line-number":{arity:[0,1],sig:"1F r[1ADI] a[1N]",api:"legacy"},"marshal-type":{sig:"1F r[1FM] a[1AS]",
api:"legacy"},"message-count":{sig:"1F r[1ADI] a[?AQ]",api:"legacy"},"parse-sequence-type":{arity:[2,3],sig:"1F r[1FM] a[1AS,1NE,?AS]",api:"legacy"},"parse-XPath":{arity:[1,2,3],sig:"1F r[1ND] a[1AS,?AS,?]",api:"legacy"},permute:{sig:"1F r[*] a[*]",api:"legacy"},"system-id":{sig:"1F r[*AU] a[]",api:"legacy"},timestamp:{sig:"1F r[1AMP] a[]",api:"legacy"}});a.addLibrary(xa.hd,{"abort-controller":{arity:[0,1],sig:"1F r[1] a[?ADI]",api:"legacy"},all:{sig:"1F r[1] a[1FA]",api:"legacy"},"all-settled":{sig:"1F r[1] a[1FA]",
api:"legacy"},any:{sig:"1F r[1] a[1FA]",api:"legacy"},apply:{arity:[2,3],sig:"1F r[*] a[1F,1FA,?FM]",api:"legacy"},call:{arity:[3,4],sig:"1F r[*] a[1,1AS,1FA,?FM]",api:"legacy"},"catch":{sig:"1F r[1] a[1,1F]",api:"legacy"},contains:{sig:"1F r[1AB] a[1,1AS]",api:"legacy"},doc:{arity:[1,2],sig:"1F r[1] a[?AS,?]",api:"legacy"},"doc-fetched":{sig:"1F r[1AB] a[?AS]",api:"legacy"},eval:{arity:[1,2],sig:"1F r[*] a[1AS,?FM]",api:"legacy"},event:{sig:"1F r[?] a[]",api:"legacy"},"finally":{sig:"1F r[1] a[1,1F]",
api:"legacy"},get:{arity:[2,3],sig:"1F r[*] a[1,1AS,?FM]",api:"legacy"},"http-request":{arity:[1,2],sig:"1F r[1] a[1FM,?]",api:"legacy"},"js-function":{sig:"1F r[*] a[1F]",api:"legacy"},"json-doc":{arity:[1,2,3],sig:"1F r[1] a[?AS,?FM,?]",api:"legacy"},"json-parse":{arity:[1,2],sig:"1F r[1] a[1AS,?FM]",api:"legacy"},location:{sig:"1F r[1AS] a[]",api:"legacy"},"new":{arity:[2,3],sig:"1F r[1] a[1AS,1FA,?FM]",api:"legacy"},page:{sig:"1F r[1N] a[]",api:"legacy"},"query-params":{sig:"1F r[1FM] a[]",api:"legacy"},
race:{sig:"1F r[1] a[1FA]",api:"legacy"},resolve:{sig:"1F r[1] a[*]",api:"legacy"},sleep:{sig:"1F r[1] a[1ADI]",api:"legacy"},source:{sig:"1F r[?N] a[]",api:"legacy"},style:{sig:"1F r[1FM] a[?N]",api:"legacy"},then:{sig:"1F r[1] a[1,1F]",api:"legacy"},"unparsed-text":{arity:[1,2,3],sig:"1F r[1] a[?AS,?AS,?]",api:"legacy"},"unparsed-text-fetched":{sig:"1F r[1AB] a[?AS]",api:"legacy"},window:{sig:"1F r[1] a[]",api:"legacy"}});a.addLibrary("http://exslt.org/common",{"node-set":{sig:"1F r[?N] a[?N]",
isIdempotent:!0}});return{getLibrary:function(c){return a.getLibrary(c)},addLibrary:function(c){return a.addLibrary(c.namespace,c.signatures)}}})();
// Input 74
var mi=function(){function a(z){var b;var d={};for(b in z){var h=z[b];d[b]=h}return d}function c(){}function n(z){const b={};if(z){z=z.split(" ");for(let h=0;h<z.length;h++){var d=z[h];const t=d.indexOf("="),m=t===-1?d:d.substring(0,t);d=t===-1?"":d.substring(t+1);b[m]=d==="~"?xa.withPrefix[m]:d}}return b}function v(z){const b=[];(z.C||[]).forEach(function(d){d.N==="arg"&&b.push(d)});return b}function M(z,b,d){let h;if(b.globalContext)h=b.globalContext.value.X();else{h=new c;h.init();var t=b.globals;
t&&(h.Dc=t);if(t=b.accumulators)h.yb=t}t=b.language;J&&J.language&&(t=J.language);var m=b.staticContext;m&&m.language&&(t=m.language);m=b.html5Mode;h.ke=m?m:!1;h.Xa=t?t==="XSLT":!1;h.Fc=b.inTry;h.Xe=b.inCatch;h.Kb=b.backwardCompatibility;let L,V;if(t=b.slotMap){m=-1;let ea;for(L in t)ea=t[L],h.Tb[L]=ea,m=ea>m?ea:m;h.ld=m+1}h.Bj(z);if(z=b.slotTypes)for(L in z)h.sd[L]=xb(z[L]);for(V in d)h.namespaces[V]=d[V];h.namespaces[""]="";if(d=b.staticTyping)h.jf=d;if(d=b.xpathDefaultNamespace)h.xpathDefaultNamespace=
d;if(d=b.defaultCollation)h.Lb=d;if(d=b.staticBaseURI)h.staticBaseURI=d;(d=b.contextType)?h.type=new vb(yb(d),2):h.type=h.Xa?null:rb.kc;h.se=h.type;if(b=b.requiredType)h.we=sb(b);return h}function g(z){const b=new c;b.type=rb.kc;b.O(z.params,z.inputConvert);"fn xs map array math saxon ixsl".split(" ").forEach(t=>b.namespaces[t]=Jh[t]);for(var d in z.namespaceContext)b.namespaces[d]=z.namespaceContext[d];z.xpathDefaultNamespace&&(b.xpathDefaultNamespace=z.xpathDefaultNamespace);let h;if(z=z.slotMap){d=
-1;let t;for(h in z)t=z[h],b.Tb[h]=t,d=t>d?t:d;b.ld=d+1}return b}function l(z,b,d){z=di.process(z,b.type==="pattern",b.splitPattern,d,b.language==="XSLT",b.allowEmpty,b.freeVariables);return wc(z)}function k(z,b=!1){const d={"function":{},globalVariable:{},globalParam:{}};for(const t in z){if(z[t].visibility==="PRIVATE")continue;var h=z[t].actor;const m=Gc.U(h)?h.nodeName:h.N,L=Gc.U(h)?h.getAttribute("name"):h.name;switch(m){case "function":if(b&&z[t].visibility!=="PUBLIC"&&z[t].visibility!=="FINAL")break;
h=(Gc.U(h)?Gc.bd(h,"arg"):v(h)).length;d[m][L+"#"+h]=z[t];break;case "globalVariable":case "globalParam":d[m][L]=z[t]}}return d}function q(z,b=!0){const d={N:z.nodeName};var h=z.attributes,t;for(t=0;t<h.length;t++){var m=h[t].name;if(m.substring(0,5)!=="xmlns"||m.length!==5&&m.charAt(5)!==":")d[m]=h[t].value}z=z.childNodes||[];if(z.length!==0){h=[];for(t=0;t<z.length;t++)m=q(z[t],b),b&&(m.parentNode=d),h.push(m);d.C=h}return d}function y(z){z.C&&z.C.forEach(function(b){b.parentNode=z;y(b)})}function K(z,
b,d){z={N:"co",id:z,binds:d,Je:d.split(/\s+/).map(h=>parseInt(h,10)),actor:b,C:[b]};return b.parentNode=z}function D(z){if(!Gc.U(z))return[];let b=[];z.childNodes.forEach(d=>b=b.concat(D(d)));return b}function u(z,b){z.nodeName==="ufRef"?z.setAttribute("bSlot",b[z.getAttribute("name")]):z.hasChildNodes()&&z.childNodes.forEach(d=>u(d,b))}function f(z,b,d){var h=na.ra();d||={};d.params||(d.params={});if(z.freeV){const p=d.params;let I={};z.freeV.forEach(A=>{const x=A.startsWith("Q{}")?p[A.substring(3)]:
p[A];if(!x)throw new F("A value for parameter "+A+" is required","SXJS9999");I[A]=x});d.params=I}var t=d.inputConvert||"strong";const m=g(d);let L=z.C[0];L.parentNode=z;const V={name:"evaluate",Oa:z,bb:{}};z=new ce;z.ca=na.createDocument();z.fixed={Ld:{},Ta:{},kb:{},Sb:{},Af:0,Bb:new Date,bb:{"Q{}":z.ca.createElement("decimal-format")},md:{evaluate:V},staticBaseURI:h?window.location.href:null,ea:qc};d.staticBaseURI&&(z.fixed.staticBaseURI=d.staticBaseURI);let ea,B,Q;if(d.namedDecimalFormats)for(const p in d.namedDecimalFormats){h=
d.namedDecimalFormats[p];ea=z.ca.createElement("decimal-format");for(B in h)Q=h[B],ea.setAttribute(B,["infinity","NaN"].includes(B)?Q:ua.La(Q)[0]);V.bb[/^Q\{/.test(p)?p:"Q{}"+p]=q(ea)}if(d.defaultDecimalFormat){h=d.defaultDecimalFormat;ea=z.ca.createElement("decimal-format");for(B in h)Q=h[B],ea.setAttribute(B,["infinity","NaN"].includes(B)?Q:ua.La(Q)[0]);V.bb["Q{}"]=q(ea)}z.na=m.rc;if(b)if(b instanceof Uc)z.focus=b;else{if(Array.isArray(b)&&b.length>1)throw new F("Context item is a sequence of more than one item",
"XTTE3210");b=Bc(b);t==="strong"&&(b=Kc(b));z.focus=b!=null?uc(b[0]):od(nb)}else z.focus=od(nb);t=qc.evaluate(L,z);return Oc(t,d.resultForm||"default")}const E=Wd.Wc;let J=null;c.prototype={type:void 0,we:void 0,se:void 0,B:[],J:void 0,ld:0,j:1,Tb:{},sd:{},g:{},rc:[],Dc:{},yb:{},jf:!1,Xa:!1,Fc:!1,Xe:!1,dg:!1,Kb:!1,namespaces:{},xpathDefaultNamespace:"",Lb:E,init:function(){this.j=this.ld=0;this.rc=[];this.Tb={};this.sd={};this.jf=!1;this.g={};this.Dc={};this.namespaces={"":"",xml:xa.xml};this.Lb=
E},toString:function(){var z=0,b;for(b in this.Dc)z++;return"CompileContext:\n\t"+(z+" global variables/params")},Bj:function(z){if(z!==void 0&&(z=z.next(),z!=null))for(var b=ob(z.keys()),d;(d=b.next())!=null;){var h=Da.XS.QName.matches(d)?d.toEQName():d.toString();/^Q{/.test(h)||(h="Q{}"+h);const t=this.Tb.hasOwnProperty(h)?this.Tb[h]:this.ld++;this.Tb[h]=t;d=z.get(d);this.rc[t]=d;this.sd[h]=rb.xa}},O:function(z,b){this.init();if(z!==void 0)for(const h in z){let t=h.toString();/^Q{/.test(t)||(t=
"Q{}"+t);var d=this.ld++;this.Tb[t]=d;let m=Bc(z[h]);b==="strong"&&(m=Kc(m));if(this.rc[d]=m)d=m.code,this.sd[t]=d?new vb(Da.codes[d],2):rb.xa}},X:function(){const z=new c;z.type=this.type;z.we=this.we;z.se=this.se;z.B=this.B;z.J=this.J;z.ld=this.ld;z.j=this.j;z.Tb=a(this.Tb);z.sd=a(this.sd);z.jf=this.jf;z.Xa=this.Xa;z.Fc=this.Fc;z.Xe=this.Xe;z.Kb=this.Kb;z.g=a(this.g);z.rc=a(this.rc);z.Dc=this.Dc;z.yb=this.yb;z.namespaces=a(this.namespaces);z.xpathDefaultNamespace=this.xpathDefaultNamespace;z.Lb=
this.Lb;z.$a=this.$a;return z}};return{compile:function(z,b,d,h,t){h=n(b.nsAttribute);d=M(d,b,h);if(!b.globalContext&&(d.$a=k(t.fixed.Ja),t=b.globalFunctions)){h={};let L=0;for(const V in t){var m=t[V];const ea=Gc.U(m);m=ea?m.parentNode:m.parent;const B=ea?m.parentNode:m.parent;h[L++]={actor:m,Oa:B,id:parseInt(ea?B.getAttribute("id"):B.id,10)}}d.$a=k(h)}return l(z,b,d)},compileOnly:function(z,b,d=!1){b||={};b.params||(b.params={});b.freeVariables=!0;var h=g(b);let t=l(z,b,h).next();if(h=t.Ai){let L=
Object.assign({},b);L.freeVariables=!1;L.params={};h.forEach(V=>{L.params[V]="dummy"});b=g(L);t=l(z,L,b).next()}const m={N:"package",name:"evaluate",C:[t]};h&&(m.freeV=h);return d?m:function(L,V={}){return f(m,L,{params:V})}},evaluateOnly:f,compileGlobalContext:function(z,b,d){var h=new c;h.init();h.Dc=z;h.R=b;h.yb=d;z={};d=0;for(let m in b){var t=b[m];const L=Gc.U(t);t=L?t.parentNode:t.parent;const V=L?t.parentNode:t.parent;z[d++]={actor:t,Oa:V,id:parseInt(L?V.getAttribute("id"):V.id,10)}}h.$a=k(z);
return wc(h)},evaluateXDM:function(z,b,d,h){function t(T=""){return L[T]}var m;let L;const V=M(h.params,h,h.namespaces);V.Ja=d.fixed.Ja;V.staticBaseURI||(V.staticBaseURI=d.fixed.staticBaseURI);const ea=d.fixed.Ja;V.$a=k(d.fixed.Ja,h.dynamicEval);z=l(z,h,V).next();const B={N:"package",name:"evaluate"};var Q={name:"evaluate",Oa:B,bb:{}};z.parentNode=B;let p=!1;var I=D(z);if(I.length>0){p=!0;var A=[];for(var x=0;x<I.length;x++)A.push(1001+x);let T=1001;var N=0;const Y=[],da={};I.forEach(Z=>{const la=
K(T,q(Z),"");Z=Z.getAttribute("name")+"#"+Z.getAttribute("arity");la.parentNode=B;V.$a["function"][Z]={actor:la,Oa:null,id:T};da[Z]=N++;ea[T]=la;T++;Y.push(la)});u(z,da);z=q(z);A=K(1E3,z,A.join(" "));A.parentNode=B;ea[1E3]=A;Y.unshift(A);B.C=Y}else Gc.U(z)?z=q(z):y(z),B.C=[K(1E3,z,"")],z.parentNode=B;x=qc.fe(d.pa.actor,d);for(m in x.bb)Q.bb[m]=x.bb[m];I=new ce;I.fixed={Ld:{},Ta:{},Sb:{},kb:{},Af:0,Bb:new Date,bb:{},Ja:d.fixed.Ja,ea:qc,options:d.fixed.options,Ab:d.fixed.Ab,staticBaseURI:d.fixed.staticBaseURI,
ye:null,md:{evaluate:Q}};I.fixed.md[x.name]=x;h.staticBaseURI&&(I.fixed.staticBaseURI=h.staticBaseURI);if(x=h.staticContext){var P=x.decimalFormats;if(P)for(m in P)Q.bb[m]=q(P[m]);if(Q=x.resources)for(m in Q)if(P=Q[m],P.hasOwnProperty("err")){let T=P.err;T=T.replace(/Q{http:\/\/www\.w3\.org\/2005\/xqt-errors\}/,"");I.fixed.kb[m]=I.fixed.Sb[m]=new F(T+" "+P.description,T)}else I.fixed.kb[m]=P;if(Q=x.sources)for(m in Q)if(m!==".")try{const T=Q[m];let Y;if(typeof T=="string"){let da=na.ve(T);da=fe.Gg(fe.Fg(da));
Y=Gc.dc(na.Rb(da));Y._saxonBaseUri=T;Y._saxonDocUri=T}else Y=T;I.fixed.Ta[m]=Y}catch(T){I.fixed.Ta[m]=I.fixed.Sb[m]=T}if(m=x.collectionFinder)L=m,I.fixed.options.Ig=t;m=x.staticBaseURI;typeof m!="undefined"&&(I.fixed.staticBaseURI=m==="#UNDEFINED"?null:m)}h.staticBaseURI&&(I.fixed.staticBaseURI=h.staticBaseURI);I.masterDocument=d.masterDocument;I.ca=na.createDocument();if(b!=null){h=b.next();if(b.next()!=null)throw new F("Context item is a sequence of more than one item","XTTE3210");I.na=[];for(b=
0;b<V.rc.length;b++)I.na[b]=V.rc[b];I.pa=p?A:d.pa;h!=null?(h=uc(h),I.focus=h):I.focus=od(nb);return qc.evaluate(z,I)}return nb},evaluate:function(z,b,d){var h=na.ra();d||={};d.params||(d.params={});var t=d.inputConvert||"strong";const m=g(d);z=l(z,d,m).next();var L={N:"package",name:"evaluate",C:[z]};z.parentNode=L;const V={name:"evaluate",Oa:L,bb:{}};L=new ce;L.ca=na.createDocument();var ea={};ea[Wd.Wc]=Wd.Hg();ea[Wd.Yg]=Wd.Le();ea[Wd.Yf]=Wd.Bg();ea[Wd.Mh]=Wd.Le();L.fixed={Ld:{},options:{uc:ea},
Ta:{},kb:{},Sb:{},Af:0,Bb:new Date,bb:{"Q{}":L.ca.createElement("decimal-format")},md:{evaluate:V},staticBaseURI:h?window.location.href:null,ea:qc};d.staticBaseURI&&(L.fixed.staticBaseURI=d.staticBaseURI);let B,Q;if(d.namedDecimalFormats)for(const p in d.namedDecimalFormats){h=d.namedDecimalFormats[p];ea=L.ca.createElement("decimal-format");for(B in h)Q=h[B],ea.setAttribute(B,["infinity","NaN"].includes(B)?Q:ua.La(Q)[0]);V.bb[/^Q\{/.test(p)?p:"Q{}"+p]=q(ea)}if(d.defaultDecimalFormat){h=d.defaultDecimalFormat;
ea=L.ca.createElement("decimal-format");for(B in h)Q=h[B],ea.setAttribute(B,["infinity","NaN"].includes(B)?Q:ua.La(Q)[0]);V.bb["Q{}"]=q(ea)}L.na=m.rc;if(b)if(b instanceof Uc)L.focus=b;else{if(Array.isArray(b)&&b.length>1)throw new F("Context item is a sequence of more than one item","XTTE3210");b=Bc(b);t==="strong"&&(b=Kc(b));L.focus=b!=null?uc(b[0]):od(nb)}else L.focus=od(nb);t=qc.evaluate(z,L);return Oc(t,d.resultForm||"default")},forceBaseURI:function(z,b){z._saxonBaseUri=b;z._saxonDocUri=b;return z},
getFnSignature:function(z,b,d){function h(V){V.sig||(V.sig="F a["+qc.Aa(V,"arg").map(ea=>ea.as).join(",")+"] r["+V.as+"]");return V.sig}var t=null,m=ei.Nj[z.uri];m&&(t=m[z.local]);if(t&&!d.Xa&&t.XSLTonly)return null;t||z.uri!==xa.jc||(Da.type[z.local]?t={sig:"1F a[?A] r[?"+Da.type[z.local].code+"]"}:Qd[z.local]&&(t={sig:"1F a[1AS] r[*"+Qd[z.local]+"]"}));if(!t&&d.$a&&d.$a["function"]){var L=z.toEQName();if(d=d.$a["function"][L+"#"+b])z=L,t=d.actor,t=Gc.U(t)?{sig:t.getAttribute("sig"),"abstract":d.Oa.getAttribute("vis")===
"ABSTRACT"}:{sig:h(t),"abstract":!1},t.isUserFunction=!0,t.componentBinding=d.id}else if(!t&&d.fixed&&d.fixed.Ja)if(m=`{${z.uri}}${z.local}#${b}`,m in d.fixed.Ld)t=d.fixed.Ld[m];else{const V=z.toEQName();for(L in d.fixed.Ja){const ea=d.fixed.Ja[L].actor;if(ea.N==="function"&&ea.name===V&&v(ea).length===b){t={sig:h(ea),isUserFunction:!0,componentBinding:L};d.fixed.Ld[m]=t;break}}}if(!t)if(z.uri===xa.kh){z=b>0?"*":"";for(t=1;t<b;t++)z+=",*";t={sig:"1F a["+z+"] r[*]",variadic:!0};t.alphaTree=jb(t.sig)}else t=
we.find("ExternalFunctionManager").getSignature(z.uri,z.local);t&&!t.alphaTree&&(t.alphaTree=jb(t.sig));return t&&(z=t.alphaTree.a.length,b!=null&&b!==z&&(t.variadic?b<z:!(t.arity||[]).includes(b)))?null:t},parseNsAttribute:n,sefToJSON:q,setStaticContext:function(z){J=Mc(z.value,!0);z={};const b=J.resources;for(const d in b){const h=b[d];if(h.hasOwnProperty("err")){let t=h.err;t=t.replace(/Q{http:\/\/www\.w3\.org\/2005\/xqt-errors\}/,"");z[d]=new F(t+" "+h.description,t)}else z[d]=h}J.resources=z;
return null},resetStaticContext:function(){return J=null},resetNameBase:function(){}}}();
// Input 75
var ai={evaluateXDM:mi.evaluateXDM,evaluate:mi.evaluate,compileToXML:mi.compile,compile:mi.compileOnly,evaluateOnly:mi.evaluateOnly,compileGlobalContext:mi.compileGlobalContext,forceBaseURI:mi.forceBaseURI,getFnSignature:mi.getFnSignature,sefToJSON:mi.sefToJSON,setStaticContext:mi.setStaticContext,resetStaticContext:mi.resetStaticContext,resetNameBase:mi.resetNameBase};
// Input 76
const ni=function(){function a(v,M={},g=!1){var l=na.xe("compiler");M=Object.assign({},M);M.destination="application";M.initialMode="compile-complete";M.templateParams={"Q{}options":{traceProgress:!1,justStatic:!1}};M.stylesheetInternal=l;M.sourceNode=v;v=Je.transform(M,"sync").principalResult;if(g)return v;g=v=ai.sefToJSON(v.firstChild,!1);l=Ae(g);g[ye]=(l<0?4294967295+l+1:l).toString(16);return v}function c(v,M){if(na.Lj())return v;throw new F(`The ${M} feature requires a license`,"SXJS0006");}
const n={autoResetIndexes:!0};return{atom:function(v,M){if(typeof v==="boolean")v=Da.XS.boolean.fromBoolean(v);else if(typeof v==="number")v=Da.XS.double.fromNumber(v);else if(typeof v==="string")v=Da.XS.string.fromString(v);else if(v instanceof Uint8Array)v=Da.XS.base64Binary.fromUint8Array(v);else throw new F("Value must be boolean, number, string, or Uint8Array","SXJS0006");if(M){const g=Da.type[M];if(g)return g.cast(v);throw new F("Unknown type "+M,"SXJS0006");}return v},Gk:c,compile:function(v,
M={},g=!1){if(na.ra())throw new F("SaxonJS.compile is not available","SXJS0006");return c(a,"SaxonJS.compile")(v,M,g)},getResource:function(v){const M=v.type||"text";let g;if(v.file){var l=na.fc(v);g=na.Nf(v.file)}else if(v.location)if(l=v.location,l instanceof URL||(l=na.newURL(l,na.Ef()),v.location=l.toString()),g=l.href,l.protocol==="file:")l=na.fc(v);else if(["http:","https:"].includes(l.protocol))l=na.fc(v);else return Promise.reject(new F("Unsupported URL protocol "+l.protocol,"SXJS0006"));
else if(v.text)l=Promise.resolve(v.text),v.baseURI&&(g=v.baseURI);else return Promise.reject(new F("No resource supplied","SXJS0006"));M==="xml"?l=l.then(k=>{try{const q=Gc.dc(na.Rb(k));q._saxonBaseUri=q._saxonDocUri=g;return Promise.resolve(q)}catch(q){return Promise.reject(new F("Failed parsing XML in "+g+": "+q.message,q.code))}}):M==="json"&&(l=l.then(k=>{try{return Promise.resolve(ae.nd(k,new pb,new ce))}catch(q){return Promise.reject(new F("Failed parsing JSON in "+g+": "+q.message,q.code))}}));
return l},serialize:function(v,M){v=ve.serialize(v,M);return M&&M.encoding?na.dj(v,M.encoding):v},getProcessorInfo:function(){return{version:3,vendor:"Saxonica",vendorURL:"https://www.saxonica.com/",productName:"SaxonJS",productVersion:"3.0.0-beta2",isSchemaAware:!1,supportsSerialization:!0,supportsBackwardsCompatibility:!0,supportsNamespaceAxis:!0,supportsStreaming:!1,supportsDynamicEvaluation:!0,supportsHigherOrderFunctions:!0,xPathVersion:3.1,xsdVersion:1.1,releaseDate:"2025-06-02",platform:na.bh(),
productEdition:na.dh()}},ql:function(){return{version:"3.0",vendor:"Saxonica","vendor-url":"https://www.saxonica.com/","product-name":"SaxonJS","product-version":"3.0.0-beta2","is-schema-aware":"no","supports-serialization":"yes","supports-backwards-compatibility":"yes","supports-namespace-axis":"yes","supports-streaming":"no","supports-dynamic-evaluation":"yes","supports-higher-order-functions":"yes","xpath-version":"3.1","xsd-version":"1.1"}},vi:function(){return{"release-date":"2025-06-02",
platform:na.bh(),"product-edition":na.dh()}},getConfigurationProperties:function(){const v={};Object.keys(n).forEach(M=>{v[M]=n[M]});return v},getConfigurationProperty:function(v){if(v in n)return n[v]},setConfigurationProperties:function(v){const M={};Object.keys(n).forEach(g=>{M[g]=n[g]});Object.keys(v).forEach(g=>{g==="autoResetIndexes"||g==="nativeGetElementById"?n[g]=!!v[g]:sa.ua("The configuration property "+g+" is unrecognized")});return M},setConfigurationProperty:function(v,M){if(v==="autoResetIndexes"||
v==="nativeGetElementById"){let g=n[v];n[v]=!!M;return g}sa.ua("The configuration property "+v+" is unrecognized")},resetIndexes:function(v){na.ra()&&!v&&(v=window.document);return v&&"_saxonIndexes"in v?(delete v._saxonIndexes,delete v._saxonIndexesBC,delete v._saxonXmlIdIndex,!0):!1}}}();
// Input 77
const oi=function(){function a(b,d,h,t,m=null){d=d.fixed.ea;if(b=b.next()){b=ya.trim(b.toString());if(m&&ya.Db(b))return m==="##local"&&(m=d.Ec(h)[""]||""),"Q{"+m+"}"+b;try{const L=J.QName.fromString(b,d.Sd(h,!1));if(L===null)throw new F("Invalid QName "+b,t,h);return"Q{"+L.uri+"}"+L.local}catch(L){if(L instanceof F&&["FORG0001","XTDE0290"].includes(L.code))throw new F(L.message,t);throw L;}}else return null}function c(b){return(b=b.next())?b.value:""}function n(b){function d(m){return m.replace(/[^A-Za-z]/g,
L=>"0"+L.codePointAt(0))}const h=Gc.Ha;b=h.Sa(b).expand().reverse();let t="";for(let m=0;m<b.length;m++)if(b[m]instanceof ud)t+="N"+d(b[m].prefix);else if(b[m].nodeType===2)t+="A"+d(Gc.$(b[m]).toEQName());else{const L=h.Jc(b[m]).count()+1;t+=xe.Qf(L,m%2===0?"a":"A")}return"d"+Gc.ki(b[0])+t}function v(b,d,h){let t="";b[0].forEachItem(function(L){t+=L.value.trim()+" "});var m=t.trim().split(/\s+/);b=b[1]?b[1].next():E.cc(sc(d));if(!E.U(b))throw new F("Context item is not a node for fn:"+h+"()","XPTY0004");
b.nodeType!==9&&(b=E.cc(b));h=[];d=ni.getConfigurationProperty;if(na.ra()&&b.nodeType===9&&d("nativeGetElementById")){for(const L of m)(m=b.getElementById(L))&&h.push(m);return E.ed(ob(h))}"_saxonXmlIdIndex"in b&&b._saxonXmlIdIndex!==null||(b._saxonXmlIdIndex={},M(b));for(const L of m)L in b._saxonXmlIdIndex&&h.push(...b._saxonXmlIdIndex[L]);return E.ed(ob(h))}function M(b){const d={},h=z.Se(b);let t;for(;(t=h.next())!==null;)if(t.nodeType===1){var m=t.getAttributeNS(xa.xml,"id");m&&(m=m.trim(),m in
d?d[m].push(t):d[m]=[t]);if(m=t.getAttribute("id"))m=m.trim(),m in d?d[m].push(t):d[m]=[t]}b._saxonXmlIdIndex=d}function g(b,d,h){let t=d;b.forEachItem(function(m){t=h(m,t)});return t}function l(b){function d(t){throw new F(t,"FORG0006");}const h=b==="max"?function(t){return t>0}:function(t){return t<0};return function(t,m,L){let V=t[0];m.fixed.ea.ib(L,"i")&&(V=V.filter(function(Z){return!Wd.pc(Z)}));t=Wd.Nb(L,t[1],"compare",m);const ea=Wd.di(t),B=J.untypedAtomic.matches,Q=J.numeric.matches,p=J.double.matches,
I=J.float.matches,A=J.anyURI.matches,x=J.string.matches;t=J.duration.matches;const N=J.yearMonthDuration.matches,P=J.dayTimeDuration.matches;m=J.QName.matches;const T=J.double.cast,Y=J.float.cast,da=J.string.cast;V=V.mapOneToOne(function(Z){return B(Z)?T(Z):Z});L=V.next();if(L===null)return nb;m(L)&&d(b+"() not defined over QName");!t(L)||N(L)||P(L)||d(b+"() not defined over mixed durations");return wc(g(V,L,function(Z,la){(x(Z)&&Q(la)||x(la)&&Q(Z))&&d("Cannot compare string with numeric");(N(Z)&&
!N(la)||P(Z)&&!P(la))&&d("Cannot compare mixed durations");if(Wd.pc(la))return p(Z)?T(la):la;if(Wd.pc(Z))return p(la)?T(Z):Z;p(la)&&!x(Z)?Z=T(Z):p(Z)&&!x(la)?la=T(la):I(la)&&!x(Z)?Z=Y(Z):I(Z)&&!x(la)&&(la=Y(la));A(la)&&x(Z)?la=da(la):A(Z)&&x(la)&&(Z=da(Z));try{return h(ea(Z,la))?Z:la}catch(ka){throw ka instanceof F&&ka.code==="XPTY0004"&&(ka.code="FORG0006"),ka;}}))}}function k(b,d){if(d.length!==2&&d.length!==5)throw new F("Wrong number of arguments ("+d.length+") for  "+b,"XPST0017");}function q(b,
d){b=b[0].next();if(b===null)return nb;if(d==="timezone")return b.timezoneOffset===null?nb:wc(J.dayTimeDuration.Zg(b.timezoneOffset));if(d==="seconds")return d=b.proxy(),rd(d.getUTCSeconds()+d.getUTCMilliseconds()/1E3);b=b.proxy()[d]();d==="getUTCMonth"&&b++;return pd(b)}function y(b,d){b=b[0].next();return b===null?nb:d!==5?pd(db(b)[d]*eb(b)):rd(db(b)[d]*eb(b))}function K(b,d,h){function t(V,ea){return wc(Da.codes[d].fromDate(V,ea))}const m=b[0].next();if(!m)return nb;h=h.fixed.Bb.getTimezoneOffset();
if(b[1]){var L=b[1].next();b=L!==null?L.milliseconds/6E4:null;if(b!==null&&(b<-840||b>840))throw new F("timezone out of bounds "+L,"FODT0003");}else b=-h;L=m.timezoneOffset;if(L===null&&b===null)return wc(m);if(L===null&&b!==null)return t(ab(m,-h-b).UTCdate,b);if(L!==null&&b===null)return t(ab(m,h+L).UTCdate,null);if(L!==null&&b!==null)return t(m.UTCdate,b)}function D(b,d,h,t){let m=b[1].expand();const L=b[2].expand()[0];L instanceof yc.XdmFunction||sa.ka("fold-"+(t?"left":"right")+"() function argument not instance of XdmFunction");
b=b[0].expand();t||(b=b.reverse());b.forEach(V=>{m=L.evaluate(t?[m,[V]]:[[V],m],d,h).expand()});return ob(m)}let u=null,f=null;const E=Gc,J=Da.XS,z=E.Ha;return{abs:function(b){b=b[0].next();return b===null?nb:wc(b.abs())},"accumulator-after":function(b,d,h){b=a(b[0],d,h,"XTDE3340");return ob($d.Uh(h,b,sc(d),d))},"accumulator-before":function(b,d,h){b=a(b[0],d,h,"XTDE3340");return ob($d.Vh(h,b,sc(d),d))},"adjust-date-to-timezone":function(b,d){return K(b,"AA",d)},"adjust-dateTime-to-timezone":function(b,
d){return K(b,"AM",d)},"adjust-time-to-timezone":function(b,d){return K(b,"AT",d)},"analyze-string":function(b,d){const h=c(b[0]);var t=d.ca.createDocumentFragment();const m=xa.Ma,L=d.ca.createElementNS(m,"analyze-string-result");t.appendChild(L);if(h==="")return wc(L);t=b[1].next().toString();b=b[2]?b[2].next().toString():"";ee.Df(h,t,b,!1,!1).forEach(function(V){let ea;if(V.Hc){let Q;V=V.groups;ea=d.ca.createElementNS(m,"match");var B=0;for(let p=1;p<V.length;p++)V[p]&&(Q=V[0].indexOf(V[p],B),Q>
B&&(B=d.ca.createTextNode(V[0].substring(B,Q)),ea.appendChild(B)),B=d.ca.createElementNS(m,"group"),B.setAttribute("nr",p),B.appendChild(d.ca.createTextNode(V[p])),ea.appendChild(B),B=Q+V[p].length);B<V[0].length&&(B=d.ca.createTextNode(V[0].substring(B,Q)),ea.appendChild(B))}else ea=d.ca.createElementNS(m,"non-match"),B=d.ca.createTextNode(V.string),ea.appendChild(B);L.appendChild(ea)});return wc(L)},apply:function(b,d,h){const t=d.fixed.ea,m=b[0].next();b=b[1].next().value;if(m instanceof yc.XdmFunction)return m.evaluate(b,
d,h);m instanceof qb||m instanceof pb||sa.ka("Target of apply() is neither map(*) nor array(*) nor function(*): actual value "+sa.showValue(m));if(b.length>1)throw new F("Too many arguments supplied in dynamic function call to array or map","XPTY0004",h);if(b[0].length!==1)throw new F("Argument supplied in dynamic function call to array or map is not a single item: "+sa.showValue(b),"XPTY0004",h);d=t.Jb(b[0][0]).next();m instanceof qb&&(d=J.numeric.matches(d)?d.toNumber():J.double.cast(d).toNumber());
return ob(m.get(d))},"available-environment-variables":function(){return nb},"available-system-properties":function(){const b=[],d={version:"3.0",vendor:"Saxonica","vendor-url":"https://www.saxonica.com/","product-name":"SaxonJS","product-version":"3.0.0-beta2","is-schema-aware":"no","supports-serialization":"yes","supports-backwards-compatibility":"yes","supports-namespace-axis":"yes","supports-streaming":"no","supports-dynamic-evaluation":"yes","supports-higher-order-functions":"yes","xpath-version":"3.1",
"xsd-version":"1.1"};for(let h in d)d.hasOwnProperty(h)&&b.push(J.QName.fromParts("xsl",xa.Rc,h));return ob(b)},avg:function(b,d){b=b[0].mapOneToOne(d.fixed.ea.Ih);d=b.next();if(d===null)return nb;d={lg:d,count:1};const h=gb["a+a"];try{const t=g(b,d,function(m,L){return{lg:h(L.lg,m),count:L.count+1}});return wc(gb["a/a"](t.lg,J.integer.fromNumber(t.count)))}catch(t){throw new F("Input to avg() contains a mix of numeric and non-numeric values ","FORG0006");}},"base-uri":function(b){return b[0].mapOneToOne(function(d){if(d=
E.baseURI(d)){const h=d.indexOf("#");h>=0&&(d=d.substring(0,h))}return d===null?null:J.anyURI.fromString(d)})},"boolean":function(b,d){return sd(d.fixed.ea.Ad(b[0]))},ceiling:function(b){b=b[0].next();return wc(b===null?null:b.Ff())},"codepoint-equal":function(b){const d=b[0].next();b=b[1].next();return d===null||b===null?nb:sd(d.toString()===b.toString())},"codepoints-to-string":function(b){return tc(ua.$b(b[0].expand().map(d=>d.toNumber())))},"collation-key":function(b,d,h){const t=b[0].next();
b=Wd.Nb(h,b[1],"collationKey",d);return wc(J.base64Binary.fromUtf8EncodedString(b(t.value)))},collection:function(b,d,h){var t=d.fixed.ea;const m=d.fixed.options.Ig;if(m&&typeof m==="function"){let L=null;b[0]&&(b=b[0].next(),b!==null&&(L=na.pb(b.toString(),t.Da(h,d))));t=L?m(L):m();if(typeof t==="undefined")throw new F("No available collection for supplied URI: "+L,"FODC0002",h);t=Bc(t);d=d.fixed.ye;if(d!==null)for(h=0;h<t.length;h++)t[h]=d(t[h]);return Array.isArray(t)?ob(t):wc(t)}if(b[0])throw new F("Unknown collection (no collectionFinder supplied)",
"FODC0002",h);return nb},compare:function(b,d,h){const t=b[0].next(),m=b[1].next();if(t===null||m===null)return nb;b=Wd.Nb(h,b[2],"compare",d);return pd(b(t.value,m.value))},concat:function(b){return tc(b.map(function(d){d=d.next();return d===null?"":J.string.cast(d)}).join(""))},contains:function(b,d,h){const t=c(b[0]),m=c(b[1]);b=Wd.Nb(h,b[2],"contains",d);return sd(b(t,m))},"contains-token":function(b,d,h){function t(V){return L(V,m)}let m=c(b[1]);m=ya.trim(m);if(m==="")return sd(!1);const L=Wd.Nb(h,
b[2],"equals",d);for(;(d=b[0].next())!==null;)if(d.toString().split(/[ \n\r\t]+/).findIndex(t)>=0)return sd(!0);return sd(!1)},"copy-of":function(b,d,h){const t=ne(d),m=ee.zc(t);b[0].forEachItem(L=>ee.ef(L,d,m,h,!0,!0));m.close();return ob(t.Fb)},count:function(b){return pd(b[0].count())},"current-date":function(b,d){return wc(J.date.fromDate(d.fixed.Bb,-d.fixed.Bb.getTimezoneOffset()))},"current-dateTime":function(b,d){return wc(J.dateTimeStamp.fromDate(d.fixed.Bb,-d.fixed.Bb.getTimezoneOffset()))},
"current-group":function(){throw new F("The current-group() function cannot be invoked dynamically","XTDE1061");},"current-grouping-key":function(){throw new F("The current-grouping-key() function cannot be invoked dynamically","XTDE1071");},"current-merge-group":function(b,d){if(d.vb===null)throw new F("There is no current merge group","XTDE3480");if(b[0]){b=b[0].next().value;if(d=d.vb.groups[b])return ob(d);throw new F("Unknown merge source "+b,"XTDE3490");}return ob(d.vb.items)},"current-merge-key":function(b,
d){if(d.vb===null)throw new F("There is no current merge group","XTDE3510");return ob(d.vb.keys)},"current-output-uri":function(b,d){b=d.nb.length===0?null:d.nb[d.nb.length-1];return b==null||d.oa==="function"?nb:wc(b)},"current-time":function(b,d){return wc(J.time.fromDate(d.fixed.Bb,-d.fixed.Bb.getTimezoneOffset()))},data:function(b,d){return b[0].mapOneToMany(d.fixed.ea.Jb)},dateTime:function(b){const d=b[0].next();b=b[1].next();if(d===null||b===null)return nb;let h="";if(d.timezoneOffset!==null)if(b.timezoneOffset===
null)h=Wa(d);else if(d.timezoneOffset!==b.timezoneOffset)throw new F("timezones are incompatible ","FORG0008");return wc(J.dateTime.fromString(d.toString().substring(0,10)+"T"+b.toString()+h))},"day-from-date":function(b){return q(b,"getUTCDate")},"day-from-dateTime":function(b){return q(b,"getUTCDate")},"days-from-duration":function(b){return y(b,2)},"deep-equal":function(b,d,h){d=Wd.Nb(h,b[2],"equals",d);return sd(Ud(b[0],b[1],d))},"default-collation":function(){return tc(Wd.Wc)},"default-language":function(){return wc(J.language.fromString("en"))},
"distinct-values":function(b,d,h){d=Wd.Te(h,b[1],d);const t=Wd.lf(d);return b[0].filter(function(m){if(t.containsKey(m))return!1;t.inSituPut(m,!0);return!0})},doc:function(b,d,h){b=fe.Zd(b,d,h);if(b===null)return nb;try{let t=fe.xc(b,d);const m=d.fixed.ye;m&&(t=m(t));return wc(t)}catch(t){throw t;}},"doc-available":function(b,d,h){const t=fe.Zd(b,d,h);return t===null?sd(!1):fe.vh(function(){fe.xc(t,d)})},document:function(b,d,h){const t=d.fixed.ea;let m,L;if(b[1]&&(m=E.baseURI(b[1].next()),!m))throw new F("No base URI available for second argument of document()",
"XTDE1162");m||(L=t.Da(h,d));const V=d.fixed.ye;return E.ed(b[0].mapOneToMany(function(ea){const B=m?m:E.U(ea)?E.baseURI(ea):L;return t.Jb(ea).mapOneToOne(function(Q){if(B===null)throw new F("No base URI for document('"+Q+"')","XTDE1162");Q=fe.xc(na.pb(Q.toString(),B),d);V!==null&&(Q=V(Q));return Q})}))},"document-uri":function(b){b=b[0].next();return b!==null&&b.nodeType===9&&b._saxonDocUri?wc(J.anyURI.fromString(b._saxonDocUri)):nb},"element-available":function(b,d,h){b=a(b[0],d,h,"XTDE1440","##local").split("}");
if(d=b[0].substring(2)==="http://www.w3.org/1999/XSL/Transform")f==null&&(f=na.xe("elements")),f[b[1]]||(d=!1);return sd(d)},"element-with-id":function(b,d){return v(b,d,"element-with-id")},empty:function(b){return sd(b[0].next()===null)},"encode-for-uri":function(b){b=encodeURIComponent(c(b[0])).replace(/[!'()*]/g,function(d){return"%"+d.charCodeAt(0).toString(16).toUpperCase()});return tc(b)},"ends-with":function(b,d,h){const t=c(b[0]),m=c(b[1]);b=Wd.Nb(h,b[2],"endsWith",d);return sd(b(t,m))},"environment-variable":function(){return nb},
error:function(b){if(b[0]===void 0)throw new F("fn:error() invoked","FOER0000");var d=b[0].next();d=d?d.toEQName():"FOER0000";const h=b[1]?c(b[1]):"";d=new F(h,d);b[2]&&(b=b[2].expand(),d.errorObject=b.length===1?b[0]:b);throw d;},"escape-html-uri":function(b){return tc(qc.escape(c(b[0]),function(d){return d<32||d>126}))},"exactly-one":function(b){b=b[0].expand();if(b.length!==1)throw new F("Required length 1, actual length "+b.length,"FORG0005");return wc(b[0])},exists:function(b){return sd(b[0].next()!==
null)},"false":function(){return sd(!1)},filter:function(b,d,h){const t=b[1].expand()[0];t.evaluate||sa.ka("filter() argument is not a function");return b[0].mapOneToOne(function(m){const L=t.evaluate([[m]],d,h).expand();if(Array.isArray(L)&&L.length!==1||!J.boolean.matches(L[0]))throw new F("Wrong type for function result in filter(). Expecting xs:boolean, supplied value is "+sa.showValue(L),"XPTY0004",h);if(L[0].toBoolean())return m})},floor:function(b){return b[0].mapOneToOne(function(d){return d.floor()})},
"fold-left":function(b,d,h){return D(b,d,h,!0)},"fold-right":function(b,d,h){return D(b,d,h,!1)},"format-date":function(b){k("format-date",b);let d=b[0].next();return d===null?nb:b[2]?tc(xe.Cd("date",d,b[1].next().toString(),b[2].next(),b[3].next(),b[4].next())):tc(xe.Cd("date",d,b[1].next().toString()))},"format-dateTime":function(b){k("format-dateTime",b);let d=b[0].next();return d===null?nb:b[2]?tc(xe.Cd("dateTime",d,b[1].next().toString(),b[2].next(),b[3].next(),b[4].next())):tc(xe.Cd("dateTime",
d,b[1].next().toString()))},"format-integer":function(b){const d=b[0].next();return d===null?tc(""):tc(xe.Qf(d,b[1].next().toString()))},"format-number":function(b,d,h){const t=d.fixed.ea;var m=b[2]?a(b[2],d,h,"FODF1280"):"Q{}";h=t.fe(h,d).bb[m!==null?m:"Q{}"];if(!h)throw new F("Unknown decimal format "+m,"FODF1280");m=b[0].next();m===null?m=Number.NaN:m=m.toDouble().value;return tc(xe.zi(m,b[1].next().toString(),h,d))},"format-time":function(b){k("format-time",b);let d=b[0].next();return d===null?
nb:b[2]?tc(xe.Cd("time",d,b[1].next().toString(),b[2].next(),b[3].next(),b[4].next())):tc(xe.Cd("time",d,b[1].next().toString()))},"for-each":function(b,d,h){const t=d.fixed.ea,m=b[1].expand()[0];if(m instanceof yc.XdmFunction)return b[0].mapOneToMany(function(L){return m.evaluate([[L]],d,h)});if(m instanceof pb)return b[0].mapOneToMany(L=>ob(m.get(t.Jb(L).next())));if(m instanceof qb)return b[0].mapOneToMany(function(L){L=t.Jb(L).next();L=J.numeric.matches(L)?L.toNumber():J.double.cast(L).toNumber();
return ob(m.get(L))});sa.ka("for-each() function object not instance of XdmFunction | XdmArray | XdmMap")},"for-each-pair":function(b,d,h){let t=b[2].expand();if(t.length!==1)throw new F("for-each-pair() must have exactly one function item as the third argument. Supplied length "+t.length,"XPTY0004",h);t=t[0];t instanceof yc.XdmFunction||sa.ka("Function object not instance of XdmFunction");let m=[];const L=b[0];b=b[1];let V=L.next(),ea=b.next();for(;V&&ea;)m=m.concat(t.evaluate([[V],[ea]],d,h).expand()),
V=L.next(),ea=b.next();return ob(m)},"function-arity":function(b){b=b[0].next();return wc(J.integer.fromNumber(b instanceof pb||b instanceof qb?1:b.arity))},"function-available":function(b,d,h){let t=!1;const m=a(b[0],d,h,"XTDE1400",xa.Ma),L=b[1]?b[1].next().toNumber():-1,V=d.fixed.Ja;Object.keys(V).forEach(function(ea){ea=V[ea];ea.name===m&&ea.actor&&ea.actor.N==="function"&&(L<0?t=!0:(ea=qc.Aa(ea.actor,"arg").length,L===ea&&(t=!0)))});t||(b=J.QName.fromEQName(m),u==null&&(u=na.xe("functions")),
t=(d=u[b.uri])&&d[b.local]?b.local==="concat"&&b.uri===xa.Ma&&(L===-1||L>=2)?!0:L>=0?d[b.local].indexOf(L)>=0:!0:!1);return sd(t)},"function-lookup":function(b,d,h){const t=b[0].next();b=b[1].next().toNumber();var m=we.find("SaxonJS").internals.XPath;const L=d.X(!0);L.Xa=!0;m=m.getFnSignature(t,b,L);if(!m)return nb;d=m.isUserFunction?new yc.sf(m,d):t.uri===xa.jc?new yc.pf(m,t,h):new yc.Ae(m,t,b,h,d);return wc(d)},"function-name":function(b){b=b[0].next();if(!(b instanceof yc.XdmFunction))throw new F("Input to function-name() is not an XdmFunction ",
"XXXX9999");return b.bc()&&b.bc().uri!==xa.pg?wc(b.bc()):nb},"generate-id":function(b){b=b[0].next();return tc(b?n(b):"")},"has-children":function(b){return sd(z.Ia(b[0].next()).next()!==null)},head:function(b){return wc(b[0].next())},"hours-from-dateTime":function(b){return q(b,"getUTCHours")},"hours-from-duration":function(b){return y(b,3)},"hours-from-time":function(b){return q(b,"getUTCHours")},id:function(b,d){return v(b,d,"id")},idref:function(){return nb},"implicit-timezone":function(b,d){return wc(J.dayTimeDuration.Zg(-d.fixed.Bb.getTimezoneOffset()))},
"index-of":function(b,d,h){const t=od(b[0]),m=b[1].next();b=Wd.Nb(h,b[2],"equals",d);const L=Wd.oi(b);return t.mapOneToOne(function(V){try{return L(V,m)?J.integer.fromNumber(t.position):null}catch(ea){return null}})},innermost:function(b,d,h){const t=d.fixed.ea.ib(h,"p")?b[0]:E.ed(b[0]);return new ld(function*(){let m=null,L;for(;(L=t.next())!=null;)if(m)if(z.Vc(L).some(V=>V===m))m=L;else{const V=m;m=L;yield V}else m=L;m&&(yield m)}())},"in-scope-prefixes":function(b){b=b[0].next();return ob(E.Ec(b).map(function(d){return J.string.fromString(d.prefix)}))},
"insert-before":function(b){const d=b[1].next().value,h=b[2],t=od(b[0]);return d<1?nd([h,t]):d>t.last()?nd([t,h]):t.mapOneToMany(function(m){return t.position===d?nd([b[2],wc(m)]):wc(m)})},"iri-to-uri":function(b){return tc(qc.escape(c(b[0]),function(d,h){return d<=32||d>126||/[<>"{}|\\^`]/.test(h)}))},"json-doc":function(b,d,h){h=fe.yd(b,d,h);if(!h)return nb;h=fe.xi(h,d);b=b[1]?b[1].next():null;return wc(ae.nd(h,b,d))},"json-to-xml":function(b,d,h){const t=d.fixed.ea;var m=b[0].next();if(m===null)return nb;
b=b[1]?b[1].next():null;m=ae.qj(m.toString(),b,d);b=d.ca.createDocumentFragment();b.appendChild(m);b._saxonBaseUri=t.Da(h,d);return wc(b)},key:function(b,d,h){function t(la){la=P?J.string.cast(la):la;return N.containsKey(la)?(la=ob(N.get(la)),A===I?la:la.filter(function(ka){return z.Sa(ka).filter(function(G){return G===I}).next()!==null})):nb}function m(la){return{visibility:"PRIVATE",Oa:la,qh:ea,actor:la,Je:la.binds.split(" ").map(function(ka){return parseInt(ka,10)})}}const L=d.fixed.ea;var V=a(b[0],
d,h,"XTDE1260");const ea=L.fe(h,d),B=ea.keys[V];if(!B)throw new F("Unknown key "+V,"XTDE1260");const Q=B.mg,p=L.ib(B.Fd[0],"c");let I,A;if(b[2])I=b[2].next(),E.U(I)&&(A=E.cc(I));else{var x=sc(d);E.U(x)&&(A=I=E.cc(x))}if(!A||A.nodeType!==9&&A.nodeType!==11)throw new F("No containing document for key()","XTDE1270",h);"_saxonIndexes"in A||(A._saxonIndexes={},A._saxonIndexesBC={});h=A._saxonIndexes;let N=h[Q];if(N==="under construction")throw new F("Definition of key "+V+" is circular","XTDE0640");let P=
!1;if(N)P=A._saxonIndexesBC[Q];else{V=Wd.Te(B.Fd[0],null,d);N=Wd.lf(V,p);h[Q]="under construction";V=function(ka){return nd([z.self(ka),z.jb(ka),z.Fa(ka)])};x=function(ka){return nd([z.self(ka),z.Fa(ka)])};const la=function(ka){return nd([z.self(ka),z.jb(ka)])};for(let ka=0;ka<B.Fd.length;ka++){var T=B.Fd[ka];const G=/b/.test(T.flags);P=P||G;var Y=void 0;Y=T.C[0];const U=d.X(!0);U.pa=m(T);U.focus=uc(A);if(Y.N==="p.nodeSet")Y=L.evaluate(Y.C[0],U);else{const ba=Zd.jd(Y);Y=z.he(A);var da=L.ib(T,"a"),
Z=L.ib(T,"n");if(da||Z)Y=Y.mapOneToMany(da&&Z?V:da?x:la);Y=Y.filter(function(ha){U.focus=uc(A);return ba(ha,U)})}da=T.C[1];Z=d.X(!0);Z.pa=m(T);for(Z.oa="key";(T=Y.next())!==null;){Z.focus=uc(T);const ba=L.evaluate(da,Z),ha=function(ca,fa){N.containsKey(ca)?N.get(ca).indexOf(fa)<0&&(N.get(ca).push(fa),B.Fd.length>1&&N.get(ca).sort(E.mb)):N.inSituPut(ca,[fa])};if(p)ha(ba.expand(),T);else{let ca;for(;(ca=ba.next())!==null;)Wd.pc(ca)||(G&&(ca=J.string.cast(ca)),ha(ca,T))}}}h[Q]=N;A._saxonIndexesBC[Q]=
P}b=b[1];return p?t(b.expand()):b.mapOneToMany(t)},lang:function(b,d){d=b[1]?b[1].next():sc(d);if(!d)throw new F("No context item for lang()","XPDY0002");if(!E.U(d))throw new F("Context item is not a node in lang()","XPTY0004");b=c(b[0]).toLowerCase();d=z.Sa(d).filter(function(h){return h.nodeType===1&&h.hasAttribute("xml:lang")}).next();if(!d)return sd(!1);d=d.getAttribute("xml:lang").toLowerCase();return sd(b===d||d.length>b.length+1&&d.substring(0,b.length)===b&&d.charAt(b.length)==="-")},last:function(b,
d){vc(d,"XPDY0002","last()");return pd(d.focus.last())},"load-xquery-module":function(){throw new F("No XQuery processor available","FOQM0006");},"local-name":function(b){b=E.$(b[0].next());return tc(b?b.local:"")},"local-name-from-QName":function(b){b=b[0].next();return b===null?nb:wc(Da.type.NCName.fromString(b.local))},"lower-case":function(b){return tc(c(b[0]).toLowerCase())},matches:function(b){const d=c(b[0]);var h=b[1].next().toString();b=ya.og(b[2]?b[2].next().toString():"");h=ya.ue(h,b,d);
return sd(d.search(h)>=0)},max:l("max"),min:l("min"),"minutes-from-dateTime":function(b){return q(b,"getUTCMinutes")},"minutes-from-duration":function(b){return y(b,4)},"minutes-from-time":function(b){return q(b,"getUTCMinutes")},"month-from-date":function(b){return q(b,"getUTCMonth")},"month-from-dateTime":function(b){return q(b,"getUTCMonth")},"months-from-duration":function(b){return y(b,1)},name:function(b){b=E.$(b[0].next());return tc(b?b.toString():"")},"namespace-uri":function(b){b=E.$(b[0].next());
return wc(J.anyURI.fromString(b?b.uri:""))},"namespace-uri-for-prefix":function(b){var d=c(b[0]);b=b[1].next();d=d==="xml"?xa.xml:b.lookupNamespaceURI(d===""?null:d);return d!==null?wc(J.anyURI.fromString(d)):nb},"namespace-uri-from-QName":function(b){b=b[0].next();return b===null?nb:wc(J.anyURI.fromString(b.uri))},nilled:function(b){return(b=b[0].next())&&b.nodeType===1?sd(!1):nb},"node-name":function(b){return wc(E.$(b[0].next()))},"normalize-space":function(b){b=c(b[0]);return tc(ua.Hb(b))},"normalize-unicode":function(b){if(String.prototype.normalize){const d=
c(b[0]);b=b[1]?b[1].next().toString().toUpperCase().trim():"NFC";if(["NFC","NFD","NFKC","NFKD"].includes(b))return tc(d.normalize(b));if(b==="")return tc(d)}throw new F("normalize-unicode(): not supported on this Javascript platform","FOCH0003");},not:function(b,d){return sd(!d.fixed.ea.Ad(b[0]))},number:function(b){return wc(Da.XS.numeric.Id(b[0].next()))},"one-or-more":function(b){b=fd(b[0]);if(b.peek()===null)throw new F("Required length >= 1, actual length zero","FORG0004");return b},outermost:function(b,
d,h){d=d.fixed.ea.ib(h,"p");b=b[0];d||(b=E.ed(b));let t=null;return b.filter(function(m){if(t===null)return t=m,!0;if(z.Vc(m).some(L=>L===t))return!1;t=m;return!0})},"parse-ietf-date":function(b){return b[0].mapOneToOne(function(d){function h(I){return I.length===1?"0"+I:I}function t(){throw new F("Invalid IETF date/time "+d.toString(),"FORG0010");}var m=d.toString().trim().toLowerCase();m=m.replace(/^(monday|tuesday|wednesday|thursday|friday|saturday|sunday|mon|tue|wed|thu|fri|sat|sun),?\s+/,"");
let L;let V,ea;if(/^[a-z]/.test(m))if(L=/^([a-z]{3})(?:\s*-\s*|\s+)(\d\d\d?\d?)\s+([\d:.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?\s+(\d+)$/,m=L.exec(m),m!==null){var B=m[1];var Q=m[2];ea=m[3];var p=m[4];V=m[5]}else t();else L=/^(\d+)(?:\s*-\s*|\s+)([a-z]{3})(?:\s*-\s*|\s+)(\d\d\d?\d?)\s+([\d:.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?$/,m=L.exec(m),m!==null?(Q=m[1],B=m[2],V=m[3],ea=m[4],p=m[5]):t();V.length===2&&(V="19"+V);B="jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec".indexOf(B||
"*");B<0&&t();m={ut:"Z",utc:"Z",gmt:"Z",est:"-05:00",edt:"-04:00",cst:"-06:00",cdt:"-05:00",mst:"-07:00",mdt:"-06:00",pst:"-08:00",pdt:"-07:00"};/^[0-9]:/.test(ea)&&(ea="0"+ea);ea.length===5&&(ea+=":00");p&&(p=/([a-z]+)|([+\-]\d\d?:?(?:\d\d)?)(?:\s*\(\s*([a-z]+)\s*\))?$/.exec(p),(!p[3]||p[3]in m)&&(!p[1]||p[1]in m)||t(),p=p[1]?p[1]:p[2],/^[+\-][0-9]((:|$)|[0-9]{2}$)/.test(p)&&(p=p.charAt(0)+"0"+p.substring(1)),p in m?p=m[p]:p.length===3?p+=":00":p.length===4?p+="00":p.length===5&&(p=p.substring(0,
3)+":"+p.substring(3)));Q=V+"-"+h((B/4+1).toString())+"-"+h(Q)+"T"+ea+(p||"Z");try{return J.dateTime.fromString(Q)}catch(I){throw new F("''"+d.toString()+"'' is not a valid IETF date","FORG0010");}})},"parse-json":function(b,d){const h=b[0].next();if(h===null)return nb;b=b[1]?b[1].next():null;return wc(ae.nd(h.toString(),b,d))},"parse-xml":function(b,d,h){b=b[0].next();if(b===null)return nb;const t=d.fixed.ea;try{const m=na.Rb(b.toString());m._saxonBaseUri=t.Da(h,d);return wc(m)}catch(m){throw new F(m.message,
"FODC0006");}},"parse-xml-fragment":function(b,d,h){const t=d.fixed.ea;return b[0].mapOneToOne(function(m){const L=/^<\?xml(?:\s+version\s*=\s*(['"])1.[0-9]+['"])?\s+encoding\s*=\s*(['"][A-Za-z](?:[A-Za-z0-9._\-])*)['"]\s*\?>/;m=m.toString();if(/^<\?xml/.test(m)&&!L.test(m))throw new F("Invalid XML header for a text declaration","FODC0006");m=m.replace(L,"");let V;try{V=na.Rb("<z>"+m+"</z>")}catch(B){throw new F(B.message,"FODC0006");}const ea=d.ca.createDocumentFragment();z.Ia(V.documentElement).forEachItem(function(B){ea.appendChild(B)});
ea._saxonBaseUri=t.Da(h,d);return ea})},path:function(b){return b[0].mapOneToOne(function(d){function h(t){return z.Jc(t).filter(function(m){return t.nodeType===m.nodeType})}return J.string.fromString(function(t){if([9,11].includes(t.nodeType))return"/";let m="",L=t;for(;L;){t=E.Va(L);if(!t)return[9,11].includes(L.nodeType)?m:"Q{http://www.w3.org/2005/xpath-functions}root()"+m;switch(L.nodeType){case 9:case 11:return m;case 1:const V=E.$(L);m=`/${V.toEQName()}[${1+h(L).filter(ea=>E.$(ea).equals(V)).count()}]${m}`;
break;case 3:case 4:m=`/text()[${1+h(L).count()}]`;break;case 8:m=`/comment()[${1+h(L).count()}]`;break;case 7:m=`/processing-instruction(${L.target})[${1+h(L).filter(ea=>L.target===ea.target).count()}]`;break;case 2:m=`/@${L.name.indexOf(":")<0?L.name:E.$(L).toEQName()}`;break;default:m=`/namespace::${L.prefix!==""?L.prefix:"*[Q{"+xa.Ma+'}local-name()=""]'}`}L=t}}(d))})},"prefix-from-QName":function(b){return b[0].mapOneToOne(function(d){return d.prefix===""?null:J.NCName.fromString(d.prefix)})},
position:function(b,d){vc(d,"XPDY0002","position()");return pd(d.focus.position)},QName:function(b){var d=b[1].next().value;const h=d.split(":"),t=h.length===2?h[0]:"";b=c(b[0]);if(t!==""&&b==="")throw new F("Prefix but no URI for QName()","FOCA0002");if(h.length===2&&t===""||t!==""&&!ya.Db(t))throw new F(d+" not valid for QName()","FOCA0002");d=h.length===2?h[1]:h[0];if(!ya.Db(d))throw new F(d+" not valid local name for QName()","FOCA0002");return wc(J.QName.fromParts(t,b,d))},"random-number-generator":function(b,
d){b=new pb;b.inSituPut(J.string.fromString("number"),[J.double.fromNumber(Math.random())]);var h=J.QName.fromParts("fn",xa.Ma,"random-number-generator"),t=we.find("SaxonJS").internals.XPath,m=t.getFnSignature(h,0,d);h=new yc.Ae(m,h,0,{},d);b.inSituPut(J.string.fromString("next"),[h]);h=J.QName.fromParts("saxon",xa.qb,"permute");m=d.X();m.Xa=!0;t=t.getFnSignature(h,1,m);d=new yc.Ae(t,h,1,{},d);b.inSituPut(J.string.fromString("permute"),[d]);return wc(b)},"regex-group":function(b,d){b=b[0].next().toNumber();
try{return tc(d.ec[b]||"")}catch(h){return tc("")}},remove:function(b){const d=b[1].next().toNumber(),h=od(b[0]);return h.filter(function(){return h.position!==d})},replace:function(b){const d=c(b[0]),h=ya.og(b[3]?c(b[3]):"");let t=0;const m=ya.ue(b[1].next().toString(),h+"g",null,L=>{t=L});if(m.test(""))throw new F("Regular expression matches zero-length string","FORX0003");b=ya.hi(c(b[2]),h,t);return tc(d.replace(m,b))},"resolve-QName":function(b){const d=b[1].next();return b[0].mapOneToOne(function(h){try{return E.yj(d,
h.toString(),!0)}catch(t){throw t instanceof F&&t.code==="FORG0001"&&(t.code=ya.hh(h)?"FONS0004":"FOCA0002"),t;}})},"resolve-uri":function(b,d,h){const t=d.fixed.ea;if(b[1]){let m=b[1].next();d=m?m.toString():t.Da(h,d)}else d=t.Da(h,d);b=b[0].next();if(b===null)return nb;b=b.toString();h=E.fd(b);if(d!==null&&(d=d.replace(/^file:\/(?!\/)/,"file:///"),/#/.test(d)))throw new F("Base URI "+d+" contains a fragment identifier","FORG0002");if(!h&&d!==null&&!E.fd(d))throw new F("resolve-uri: invalid URI (base="+
d+", relative="+b+")","FORG0002");b=h?b:na.pb(b,d).toString();return wc(J.anyURI.fromString(b))},reverse:function(b){return ob(b[0].expand().slice().reverse())},root:function(b){return b[0].mapOneToMany(d=>z.Sa(d)).filter(d=>!E.Va(d))},round:function(b){return b[0].mapOneToOne(d=>d.round(b[1]?Math.min(b[1].next().value,1E4):0))},"round-half-to-even":function(b){return b[0].mapOneToOne(d=>d.ff(b[1]?Math.min(b[1].next().value,1E4):0))},"seconds-from-dateTime":function(b){return q(b,"seconds")},"seconds-from-duration":function(b){return y(b,
5)},"seconds-from-time":function(b){return q(b,"seconds")},serialize:function(b,d){function h(L){L.method="xml";L.indent=!1;L["escape-solidus"]=!0;L["omit-xml-declaration"]=!0}const t=new ve.yf,m={};if(b[1]){const L=b[1].next();if(L===null)h(m);else if(Gc.U(L)){if(!Gc.ag(L))throw new F("Second argument supplied to serialize() is wrong kind of node","XPTY0004");ve.df(L,m,"XPTY0004")}else{if(!(L instanceof pb))throw new F("Second argument supplied to serialize() does not match required type","XPTY0004");
const V=function(ea,B,Q,p,I=!1){const A=Da.XS.string.fromString(ea);if(L.containsKey(A)){let x=L.get(A);if(x.length>0&&qc.isArray(x[0]))if(Q){let N=[];x[0].flatten(P=>N.push(P));x=N}else throw new F("fn:serialize(): supplied value of "+A+" is invalid","XPTY0004");if(x.length!==1&&!Q&&!I||!x.every(N=>N.code==="AZ"||B.matches(N)))throw new F("fn:serialize(): supplied value of "+A+" is invalid","XPTY0004");m[ea]=I&&x.length===0?null:p(Q?x:x[0].code==="AZ"?B.cast(x[0]):x[0])}};"doctype-public doctype-system encoding item-separator json-node-output-method media-type method normalization-form version".split(" ").forEach(ea=>
V(ea,Da.XS.string,!1,B=>B.toString()));"allow-duplicate-names byte-order-mark escape-uri-attributes include-content-type indent escape-solidus omit-xml-declaration undeclare-prefixes".split(" ").forEach(ea=>V(ea,Da.XS.boolean,!1,B=>B.toBoolean()));V("standalone",Da.XS.boolean,!1,ea=>ea.toBoolean(),!0);V("html-version",Da.XS.decimal,!1,ea=>ea.toNumber());["cdata-section-elements","suppress-indentation"].forEach(ea=>V(ea,Da.XS.QName,!0,B=>{let Q="";for(let p=0;p<B.length;p++)Q+=B[p].toEQName()+" ";
return Q}));m["omit-xml-declaration"]===void 0&&(m["omit-xml-declaration"]=!0);(function(ea){var B=Da.XS.string.fromString(ea);if(L.containsKey(B)){var Q=L.get(B);if(Q.length!==1||!Q.every(I=>I instanceof pb))throw new F("fn:serialize(): supplied value of "+B+" is invalid","XPTY0004");Q=Q[0];var p=function(I){return J.string.matches(I)};if(!Q.conforms(p,p,function(I){return I===1}))throw new F("fn:serialize(): supplied value of "+B+" is invalid","XPTY0004");B=Mc(Q,!0);Q={min:0,max:0,va:{}};for(let I in B)if(B.hasOwnProperty(I)){if(I.length>
1)throw new F("fn:serialize(): Keys in a character map must all be one-character strings. Found "+I,"SEPM0016");p=I.codePointAt(0);Q.min===0?Q.min=p:p<Q.min&&(Q.min=p);p>Q.max&&(Q.max=p);Q.va[p]=B[I]}m[ea]=Q}})("use-character-maps")}}else h(m);ve.serialize(b[0].expand(),m,t,d);return tc(t.toString())},snapshot:function(b,d,h){return b[0].mapOneToOne(function(t){function m(x){if(x.length>0){const N=x.pop();ee.ig(N,d,"cm",function(){z.Fa(N).forEachItem(P=>V.append(P));x.length>0?m(x):(p?ee.ig(Q,d,"",
function(){z.Fa(Q).forEachItem(P=>V.append(P));z.jb(Q).forEachItem(P=>V.append(P))},V):ee.ef(t,d,V,h,!0,!0),I=L.mc.lastChild)},V)}}const L=ne(d),V=ee.zc(L);if(!E.Va(t))return ee.ef(t,d,V,h,!0,!0),V.close(),ob(L.Fb).next();const ea=t.nodeType,B=E.$(t);let Q=t;const p=[2,13].includes(ea);p&&(Q=E.Va(Q));V.Ca();let I;const A=z.Vc(Q).expand();A.length>0?m(A):(ee.ef(t,d,V,h,!0,!0),I=L.mc.lastChild);V.wa();I||sa.ka("snapshot: failed to find marked node");switch(ea){case 2:return E.Ha.Fa(I).filter(x=>E.$(x).equals(B)).next();
case 13:return E.Ha.jb(I).filter(x=>E.$(x).equals(B)).next();default:return I}})},sort:function(b,d,h){const t=Wd.Te(h,b[1],d);let m=qc.Jb;if(b[2]){const L=b[2].next();m=function(V){return L.evaluate([[V]],d,h)}}return ob(b[0].expand().slice().sort(function(L,V){return b[1]?Xd(m(L),m(V),t):Xd(m(L),m(V))}))},"starts-with":function(b,d,h){const t=c(b[0]),m=c(b[1]);b=Wd.Nb(h,b[2],"startsWith",d);return sd(b(t,m))},"static-base-uri":function(b,d,h){return(b=d.fixed.ea.Da(h,d))?wc(J.anyURI.fromString(b)):
nb},"stream-available":function(){return sd(!1)},string:function(b,d){d=d.fixed.ea;b=b[0].next();if(!b)return tc("");if(d.isArray(b)||d.isMap(b)||d.gd(b))throw new F("Input to string() is a function item ","FOTY0014");return d.Jb(b).mapOneToOne(function(h){return J.string.cast(h)})},"string-join":function(b){let d="";const h=b[1]?b[1].next().value:"";let t,m=!0;for(;(t=b[0].next())!==null;)m||(d+=h),d+=t.toString(),m=!1;return tc(d)},"string-length":function(b){return pd(ua.La(c(b[0])).length)},"string-to-codepoints":function(b){return ob(ua.La(c(b[0])).map(J.integer.fromNumber))},
subsequence:function(b){const d=Math.round(b[1].next().toNumber()),h=b[2]?d+Math.round(b[2].next().toNumber()):Number.POSITIVE_INFINITY;return new md(b[0],d,h)},substring:function(b){var d=Math.round(b[1].next().toNumber());const h=b[2]?d+Math.round(b[2].next().toNumber()):Number.POSITIVE_INFINITY;b=c(b[0]);b=new ld(b[Symbol.iterator]());d=new md(b,d,h);return tc(d.expand().join(""))},"substring-after":function(b,d,h){let t="";const m=c(b[0]),L=c(b[1]);let V;(V=Wd.Nb(h,b[2],"indexOf",d)(m,L))!==-1&&
(t=m.substring(V+L.length));return tc(t)},"substring-before":function(b,d,h){let t="";const m=c(b[0]),L=c(b[1]);let V;(V=Wd.Nb(h,b[2],"indexOf",d)(m,L))!==-1&&(t=m.substring(0,V));return tc(t)},sum:function(b,d){d=b[0].mapOneToOne(d.fixed.ea.Ih);const h=d.next();if(h===null)return b.length===1?pd(0):b[1];try{return gb["a+a"](h,h),wc(g(d,h,gb["a+a"]))}catch(t){throw t instanceof F&&t.code==="XPTY0004"&&(t.code="FORG0006"),t;}},"system-property":function(b,d,h){b=J.QName.fromEQName(a(b[0],d,h,"XTDE1390"));
d="";b.uri===xa.Rc&&(d={version:"3.0",vendor:"Saxonica","vendor-url":"https://www.saxonica.com/","product-name":"SaxonJS","product-version":"3.0.0-beta2","is-schema-aware":"no","supports-serialization":"yes","supports-backwards-compatibility":"yes","supports-namespace-axis":"yes","supports-streaming":"no","supports-dynamic-evaluation":"yes","supports-higher-order-functions":"yes","xpath-version":"3.1","xsd-version":"1.1"}[b.local]);b.uri===xa.qb&&(d=ni.vi()[b.local]);d||="";return tc(d)},tail:function(b){const d=
od(b[0]);return d.filter(function(){return d.position!==1})},"timezone-from-date":function(b){return q(b,"timezone")},"timezone-from-dateTime":function(b){return q(b,"timezone")},"timezone-from-time":function(b){return q(b,"timezone")},tokenize:function(b){var d=c(b[0]);b[1]||(d=ua.Hb(d));if(d==="")return nb;var h=b[1]?b[1].next().toString():"[ \\n\\r\\t]+";h=ee.Df(d,h,b[2]?b[2].next().toString():"",!1,!0);d=b[1]&&h[0].Hc;const t=h[h.length-1];b=b[1]&&t.Hc;h=h.filter(function(m){return!m.Hc}).map(function(m){return m.string});
d&&h.unshift(J.string.fromString(""));b&&h.push(J.string.fromString(""));return ob(h)},trace:function(b,d){const h=b[0].expand();b=b.length===2?c(b[1]):"";sa.ua("fn:trace: "+(b!==""?b+": ":"")+sa.showValue(h),1,d.fixed.Ga);return ob(h)},transform:function(b,d,h){function t(O){O=J.string.fromString(O);return Y.get(O)}function m(O,S="FOXT0002"){throw new F(O,S);}function L(O,S,W=null){if("matches"in S&&"name"in S){if(S.matches(O))return O;throw new F(W!==null?`The required item type of ${W} is ${S.name}`:
`The required item type is ${S.name}`,"XPTY0004");}return O}function V(O,S){if(O.isStringLike())return O;throw new F(`The required item type of ${S} is string|unTypedAtomic|anyURI`,"XPTY0004");}function ea(O,S,W=qa=>qa){(O=t(O))&&(O=ob(O).peek())&&(da[S]=W(O))}function B(O){return function(S){S instanceof pb||m("The value of the option "+O+" in fn:transform() must be of type map(xs:QName,item()*)","XPTY0004");if(S.conforms(W=>{J.QName.matches(W)||m("The keys of the "+O+" option in fn:transform() must be of type xs:QName. Supplied value:"+
W.toString());return!0},()=>!0,()=>!0))return S}}function Q(O,S){ea(O,S,B(O))}function p(O){O.C&&O.C.forEach(function(S){S.parentNode=O;p(S)})}function I(O,S,W){if(!P.N)throw new F("No XSLT processor is available to support fn:transform(). If using SaxonJS3.rt.js, it does not contain an XSLT compiler ","FOXT0001",h);let qa={stylesheetParams:new pb,tunnelParams:{},functionParams:{},isDynamicStylesheet:!0,destination:"application",initialMode:"compile-complete",templateParams:{"Q{}options":{noXPath:!1}}};
for(let aa in S)aa==="compiler.options"?qa.tunnelParams["Q{}compiler.options"]=S[aa]:qa.templateParams["Q{}options"][aa]=S[aa];qa.stylesheetParams.inSituPut(Da.XS.QName.fromParts("","","staticParameters"),[W]);qa.stylesheetInternal=P;qa.outputProperties={};p(P);P.relocatable==="true"&&(qa.isRelocatableStylesheet=!0);S=Je.checkOptions(qa,!0);Je.internalTransform(P,O,S);return S.principalResult}function A(O){O=N.Jb(O).expand();if(O.length>1)throw new F("Supplied value when atomized is not a single string",
"FOXT0002");return O[0]}var x=we.find("SaxonJS").internals.XPath;const N=d.fixed.ea,P=na.xe("compiler");let T=!1;const Y=b[0].next(),da={stylesheetParams:new pb,templateParams:new pb,tunnelParams:new pb,functionParams:{},outputProperties:{},isDynamicStylesheet:!0,language:"XSLT",messages:[],resultDocuments:{},resultForm:"xdm"};if((b=t("requested-properties"))&&b[0]){!(b.length>1)&&b[0]instanceof pb||m("The value of the 'requested-properties' option for fn:transform() must be of type map(*)");b=b[0];
function O(S,W){m("No processor with property "+S.toEQName()+"="+W+"() available for fn:transform()","FOXT0001")}b.forAllPairs(function(S){let W=S.v[0];switch(S.k.local){case "supports-streaming":(W=W.toBoolean())&&O(S.k,W);break;case "supports-namespace-axis":W=W.toBoolean();O(S.k,W);break;case "supports-backwards-compatibility":(W=W.toBoolean())||O(S.k,W);break;case "product-name":W=W.toString();W!=="SaxonJS"&&O(S.k,W);break;case "vendor":W=W.toString(),W!=="Saxonica"&&O(S.k,W)}})}let Z=t("vendor-options");
Z&&Z[0]?(!(Z.length>1)&&Z[0]instanceof pb||m("The value of the 'vendor-options' option for fn:transform() must be of type map(*)"),Z=Z[0]):Z=null;var la=t("xslt-version")[0];la&&L(la,J.decimal,"xslt-version");ea("stylesheet-location","stylesheetLocation",O=>V(A(O),"stylesheet-location").toString());ea("stylesheet-node","stylesheetNode");ea("stylesheet-text","stylesheetText");ea("package-location","packageLocation",O=>V(A(O),"package-location").toString());ea("package-node","packageNode");ea("package-text",
"packageText");let ka=0;"stylesheetLocation stylesheetNode stylesheetText packageLocation packageNode packageText".split(" ").forEach(O=>{da[O]&&ka++});ka!==1&&m("A stylesheet must be supplied as an option to fn:transform(), by exactly one of 'stylesheet-location', 'stylesheet-node', 'stylesheet-text', 'package-location', 'package-node' or 'package-text'");ea("source-node","sourceNode");ea("global-context-item","globalContextItem");(b=t("source-node")[0])&&!t("global-context-item")[0]&&E.Va(b)&&(da.globalContextItem=
E.cc(b));(b=t("initial-match-selection"))&&b.length>0&&(da.initialSelection=b);ea("initial-template","initialTemplate",O=>L(O,J.QName,"initial-template").toEQName());ea("initial-mode","initialMode",function(O){return["#unnamed","#default"].includes(O.toString())?O.toString():L(O,J.QName,"initial-mode").toEQName()});ea("initial-function","initialFunction",O=>L(O,J.QName,"initial-function").toEQName());ea("static-params","staticParams");ea("base-output-uri","baseOutputURI");ea("stylesheet-base-uri",
"stylesheetBaseURI",O=>O.toString());ea("delivery-format","destination",O=>O.toString());let G=da.destination;G&&!["raw","document","serialized"].includes(G)&&m("The value of the delivery-format option to fn:transform() must be one of 'raw', 'document' or 'serialized'. Supplied value is "+G);G||="document";b=(b=t("enable-messages"))&&b.length===1?b[0].toBoolean():!1;let U=t("enable-assertions");U=U&&U.length===1?U[0].toBoolean():!1;var ba=null,ha=null;if(da.stylesheetNode){var ca=da.stylesheetNode._saxonBaseUri||
"NoStylesheetBaseURI";if(da.stylesheetNode.nodeType===9)ha=da.stylesheetNode.cloneNode(!0);else if(da.stylesheetNode.nodeType===11){ha=na.createDocument();var fa=da.stylesheetNode.childNodes;for(var w=0;w<fa.length;w++)ha.appendChild(fa[w].cloneNode(!0))}else ha=E.cc(da.stylesheetNode),ca==="NoStylesheetBaseURI"&&ha._saxonBaseUri&&(ca=ha._saxonBaseUri),ha=na.createDocument(),ha.appendChild(da.stylesheetNode.cloneNode(!0));ha._saxonBaseUri=ca;ha._saxonDocUri=ca}if(da.stylesheetLocation){ca=N.Da(h,
d);ca=na.pb(da.stylesheetLocation,ca);da.stylesheetLocation=ca;try{ha=fe.xc(ca,d)}catch(O){m("Error fetching stylesheet in fn:transform():"+O.code+" "+O.message)}ha._saxonBaseUri=ca;ha._saxonDocUri=ca}da.stylesheetText&&(ha=na.Rb(da.stylesheetText.toString(),!0),ha._saxonBaseUri="NoStylesheetBaseURI",ha._saxonDocUri="NoStylesheetBaseURI");ha&&da.stylesheetBaseURI&&(ca=N.Da(h,d),ca=na.pb(da.stylesheetBaseURI,ca),ha._saxonBaseUri=ca,ha._saxonDocUri=ca);da.packageNode&&(ca=da.packageNode,E.Ze(ca)?ba=
x.sefToJSON(ca.firstChild):m("The value of the 'package-node' option of fn:transform() must be a single document or element node"));da.packageText&&(ba=JSON.parse(da.packageText.toString()));ha&&(ba=da.staticParams?da.staticParams:new pb,ca=new pb,fa=!1,w=J.QName.fromParts("saxon",xa.qb,"compiler.options"),Z&&Z.containsKey(w)&&(ca=Z.get(w)[0]),w=J.QName.fromParts("saxon",xa.qb,"allowSyntaxExtensions"),Z&&Z.containsKey(w)&&(fa=Z.get(w)[0]),ba=I(ha,{"enable-assertions":U,"compiler.options":ca,allowSyntaxExtensions:fa,
relocatable:!1},ba),ba=x.sefToJSON(ba.firstChild));ba||m("Internal error in fn:transform(): no SEF","FOXT0003");x=ba.version;x=la?la.toNumber()*10:parseFloat(x);la=ni.getProcessorInfo().version;x>la*10&&m("No suitable XSLT processor is available; requested XSLT version in fn:transform() is: "+(x/10).toString());da.sourceNode&&da.initialSelection&&m("Only one of 'source-node' or 'initial-match-selection' must be supplied to fn:transform() for apply-templates invocation");da.initialTemplate&&da.initialMode&&
m("Only one of 'initial-template' or 'initial-mode' should be supplied to fn:transform()");if(da.sourceNode){x=da.sourceNode;var e=x.cloneNode(!0);e._saxonBaseUri=x._saxonBaseUri;e._saxonDocUri=x._saxonDocUri}da.baseOutputURI||(da.baseOutputURI="",T=!0);Q("stylesheet-params","stylesheetParams");Q("template-params","templateParams");Q("tunnel-params","tunnelParams");ea("function-params","functionParams",function(O){sa.assert(O instanceof qb);return O.value});G==="serialized"&&ea("serialization-params",
"outputProperties",O=>Mc(O,!0));da.deliverResultDocument=function(){let O=this;return new He(G,function(S,W){O.resultDocuments[S.toString()]=G==="serialized"?[Da.XS.string.fromString(W)]:Gc.U(W)?[W]:W===null?[]:W})};da.deliverMessage=function(O){na.$g()(O);this.mh.push([O])};let r={};x=ob(t("collections")).peek();x!==null&&(r=Mc(x,!0));da.collectionFinder=function(O){return typeof O==="undefined"?null:r[O]};x=!["raw","serialized"].includes(G);let H,C;try{p(ba);ba.relocatable==="true"&&(da.isRelocatableStylesheet=
!0);if(da.stylesheetNode||da.packageText||da.packageNode)da.stylesheetInternal=ba;C=Je.checkOptions(da,!0);Je.internalTransform(ba,e,C);H=C.principalResult}catch(O){if(O instanceof F&&O.isGlobal)throw new F(O.message,O.code.toString());throw O;}if(H&&x){sa.assert(Array.isArray(H));e=ne(d);const O=ee.zc(e);O.Ca();H.forEach(S=>O.append(S));O.wa();O.close();H=e.Fb}Array.isArray(H)&&H.length===1&&Array.isArray(H[0])&&(H=H[0]);e=C.resultDocuments[""];if(e!==void 0){if(Array.isArray(H)?H.length>0:H!=null)throw new F("A result document on the base output URI has already been created",
"XTDE1490");H=e}e=new pb;H&&e.inSituPut(T?J.string.fromString("output"):C.Ab,Array.isArray(H)?H:[H]);b&&e.inSituPut(J.string.fromString("messages"),[new qb(C.mh)]);for(const O in C.resultDocuments)O!==""&&(sa.ua("xsl:result-document href="+O,2,d.fixed.Ga),e.inSituPut(J.anyURI.fromString(O),C.resultDocuments[O]));return wc(e)},translate:function(b){const d=ua.La(c(b[0])),h=ua.La(c(b[1])),t=ua.La(c(b[2])),m=[];d.forEach(function(L){let V;(V=h.indexOf(L))!==-1?V<t.length&&m.push(t[V]):m.push(L)});return tc(ua.$b(m))},
"true":function(){return sd(!0)},"type-available":function(b,d,h){b=a(b[0],d,h,"XTDE1428").split("}");return sd(b[0]==="Q{http://www.w3.org/2001/XMLSchema"&&(b[1]in Da.type||["untyped","anyType","anySimpleType"].includes(b[1])))},unordered:function(b){return b[0]},"unparsed-entity-public-id":function(){return nb},"unparsed-entity-uri":function(){return nb},"unparsed-text":function(b,d,h){const t=fe.yd(b,d,h);if(!t)return nb;b=fe.Ne(b[1]?c(b[1]):"");return tc(fe.Mf(t,d,h,b))},"unparsed-text-available":function(b,
d,h){return fe.vh(function(){const t=fe.yd(b,d,h);let m=fe.Ne(b[1]?c(b[1]):"");fe.Mf(t,d,h,m)})},"unparsed-text-lines":function(b,d,h){const t=fe.yd(b,d,h);if(!t)return nb;b=fe.Ne(b[1]?c(b[1]):"");d=fe.Mf(t,d,h,b).split(/\r?\n|\r/);d.length>0&&d[d.length-1]===""&&--d.length;return ob(d).mapOneToOne(J.string.fromString)},"upper-case":function(b){return tc(c(b[0]).toUpperCase())},"uri-collection":function(){return nb},"xml-to-json":function(b){const d=b[1]?b[1].next():new pb;return b[0].mapOneToOne(function(h){return J.string.fromString(ae.Mj(h,
d))})},"year-from-date":function(b){return q(b,"getUTCFullYear")},"year-from-dateTime":function(b){return q(b,"getUTCFullYear")},"years-from-duration":function(b){return y(b,0)},"zero-or-one":function(b){b=b[0].expand();if(b.length>1)throw new F("Required length 0-1, actual length "+b.length,"FORG0003");return wc(b[0]?b[0]:null)}}}();
// Input 78
const pi=function(){function a(g,l,k){var q=k.fixed.ea;const y=l.name||"#unnamed";l=q.Aa(l,"sortKey");q=l.map(q.Pa);const K=Wd.Fi(l,k);l=[];const D=k.X(!1);for(D.focus=od(g);(g=D.focus.next())!==null;)k=q.map(function(u,f){var E=D.X(!1);E.focus=uc(D.focus.current);u=u(E);if((E=u.next())&&u.next())throw new F("Multiple values in merge key","XTTE1020");return K[f](E)}),l.push({item:g,keys:k,nh:y});return l}function c(g,l,k){function q(u){const f=y[y.length-1];if(f&&k(f,u)>0)throw new F("Input to xsl:merge is not correctly sorted",
"XTDE2220");y.push(u)}const y=[];let K=0,D=0;for(;;)if(K>=g.length){for(;D<l.length;)q(l[D++]);break}else if(D>=l.length){for(;K<g.length;)q(g[K++]);break}else k(g[K],l[D])<=0?q(g[K++]):q(l[D++]);return y}function n(g,l){return l.fixed.ea.Aa(g,"sortKey").map(function(k){return Wd.Fj(k,l)})}function v(g){return function(l,k){for(let q=0;q<g.length;q++){const y=g[q](l.keys[q],k.keys[q]);if(y!==0)return y}return 0}}function M(g,l,k){var q=null;const y=[];let K={};for(let D=0;D<l.length;D++){const u=
l[D];q=q===null?-1:k(q,u);if(q<0){K={items:[u.item],keys:u.keys,groups:{}};for(q=0;q<g.length;q++)K.groups[g[q].name||"#unnamed"]=[];K.groups[u.nh]=[u.item];y.push(K)}else if(q===0)K.items.push(u.item),K.groups[u.nh].push(u.item);else throw new F("Group Input to xsl:merge is not correctly sorted","XTDE2220");q=u}return y}return{hj:function(g,l){const k=l.fixed.ea;var q=k.Aa(g,"mergeSrc");const y=l.X();y.oa="merge-key";var K=q.map(function(t){return n(t,y)}),D=K[0];for(var u=1;u<K.length;u++)for(var f=
0;f<D.length;f++){var E=D[f],J=K[u][f];const t=E.lang===J.lang||E.lang!==null&&E.lang.equals(J.lang);if(E.order!==J.order||!t||E.Ke!==J.Ke||E.dataType!==J.dataType)throw new F("All merge sources must have compatible merge keys","XTDE2210",g);}K=D.map(function(t){return Wd.fi(t,y)});K=v(K);D=null;for(u=0;u<q.length;u++){f=q[u];E=k.aa(f,"forEachItem");J=k.aa(f,"selectRows");try{if(E){var z=l.X(!1);for(z.focus=od(k.evaluate(E,l));z.focus.next()!==null;){var b=k.evaluate(J,z),d=a(b,f,z);D=D===null?d:
c(D,d,K)}}else{var h=k.evaluate(J,l);const t=a(h,f,l);D=D===null?t:c(D,t,K)}}catch(t){if(t instanceof F&&t.code==="XPTY0004")throw new F(t.message,"XTTE2230",g);throw t;}}if(D===null)return nb;q=M(q,D,K);g=k.aa(g,"action");z=q.map(function(t){return t.items[0]});l=l.X(!1);l.focus=od(ob(z));z=[];for(b=0;b<q.length;b++)for(l.focus.next(),l.vb=q[b],d=k.evaluate(g,l);(h=d.next())!==null;)z.push(h);return ob(z)}}}();
// Input 79
const qi=function(){function a(n,v){for(let M in n)if(M==v)return{k:v,v:n[v]};return null}function c(){}c.prototype={containsKey:function(n){return a(this,n)!==null},forAllPairs:function(n){for(let v in this)this.__proto__.hasOwnProperty(v)||n({k:v,v:this[v]})},get:function(n){const v=a(this,n);if(v===null)throw new F("'"+n+"' is not a permitted key for the given tuple type","XTTE9999");return v.v},keys:function(){const n=[];this.forAllPairs(function(v){n.push(Da.XS.string.fromString(v.k))});return n},
put:function(n,v){const M=new c;let g=!1;for(let l in this)M[l]=this[l],l==n&&(g=!0,M[n]=v);if(!g)throw new F("'"+n+"' is not a permitted key for the given tuple type","XTTE9999");return M},size:function(n){let v=0;n[0].next().forAllPairs(function(){v++});return pd(v)}};return c}();
// Input 80
const qc=function(){function a(){}function c(e){const r=(e.C||[]).map(t);return H=>new ld(function*(){for(const C of r){const O=C(H);let S;for(;(S=O.next())!==null;)yield S}}())}function n(e){function r(W){switch(W){case 1:return"first";case 2:return"second";case 3:return"third";default:return W+"th"}}e=e.split("|");const H=e[0],C=e[1],O=e[2]===""?"XPTY0004":e[2],S=e[3];return{required:function(){switch(parseInt(H,10)){case 0:return r(+C+1)+" argument of "+(S===""?"anonymous function":S+"()");case 1:return r(+C+
1)+" operand of '"+S+"'";case 9:return"operand of '-'";case 2:return"value in '"+S+"' expression";case 3:return S==="saxon:context-item"?"context item":"value of variable $"+S;case 4:const W=S.split("/");return"@"+W[1]+" attribute of "+(W[0]==="LRE"?"a literal result element":W[0]);case 5:return"result of call to "+(S===""?"anonymous function":"function "+S);case 7:return"result of template "+S;case 6:return r(+C+1)+" sort key";case 8:return"value of parameter $"+S;case 11:return"value of the grouping key";
case 12:return"result of xsl:evaluate";case 13:return"the context item";case 14:return"the context item for the "+"ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace parent preceding preceding-sibling self preceding-or-ancestor".split(" ")[C]+" axis";case 15:return"the value of the "+S+" option";case 17:return"document-order sorter";default:return""}}(),code:O}}function v(e){e=e.trim();if(["true","yes","1"].includes(e))return!0;if(["false",
"no","0"].includes(e))return!1;throw new F("Value must be yes|true|1 or no|false|0","XTDE0030");}function M(e){if(ba.U(e))return wc(g(e));if(da(e))return nd(e.value.map(r=>ob(r))).mapOneToMany(M);if(la(e))throw new F("Cannot atomize a "+(Z(e)?"map":"function"),"FOTY0013");return wc(e)}function g(e){const r=ca.string.fromString,H=ca.untypedAtomic.fromString;switch(e.nodeType){case 9:return H(e.documentElement.textContent);case 11:case 1:case 3:case 4:return H(e.textContent||"");case 2:return H(e.value);
case 8:return r(e.textContent);case 7:return r(e.textContent);case 13:return r(e.uri);default:throw new F("Unknown node type "+e.nodeType,"SXJS0003");}}function l(e){return ob(e).mapOneToMany(M).expand()}function k(e){function r(O){throw new F("Effective boolean value is not defined for "+O,"FORG0006");}function H(){if(e.next()!==null)r("an atomic sequence of length > 1");else return!0}var C=e.next();if(C===null)return!1;if(ba.U(C))return!0;if(Da.ma(C)){if(C.code==="AB")return H()&&C.toBoolean();
if(C.isNumeric())return C=C.toNumber(),H()&&!isNaN(C)&&C!==0;if(C.isStringLike())return H()&&C.toString().length!==0;r("type "+Da.kd(C.code))}else Z(C)?r("maps"):da(C)?r("arrays"):la(C)?r("functions"):r("value "+sa.showValue(C))}function q(e,r){const H=gb["i+i"],C=ca.integer.fromNumber(1);return new cd(e,O=>{O=H(O,C);return O.compareTo(r)>0?null:O})}function y(e,r){return e.C?e.C.filter(H=>H.N===r):[]}function K(e,r,H){e=y(e,"withParam");const C=[new pb,new pb];r.tunnelParams.forAllPairs(S=>C[1].inSituPut(S.k,
S.v));const O=r.oa;r.oa="template parameter";e.forEach(function(S){const W=S.name,qa=L(S,"t")?1:0;C[qa].inSituPut(Da.XS.QName.fromEQName(W),d(S)(r).expand())});r.oa=O;H.Gc=C[0];H.tunnelParams=C[1]}function D(e){return!/[ \t\r\n]/.test(e)}function u(e,r,H){if(e){e=e.split(/\r?\n/);for(let O=0;O<e.length;O++)if(e[O]){var C=e[O].split("=");let S=C[0];C=C[1];S==="item-separator"&&(C=C.replace(/%n/g,"\n").replace(/%%/g,"%"));C=S==="parameter-document"?void 0:S==="use-character-maps"?ve.mf(S,C,H):ve.nf(S,
C);typeof C!=="undefined"&&(r[S]=ve.cf(S,C,r[S]))}}}function f(e,r){const H=d(e),C=h(e);return O=>{try{const S=H(O).next(),W=C(O).next();return S===null||W===null?null:r(S,W)}catch(S){T(S,e)}}}function E(e,r){if(r.fixed.staticBaseURI)return r.fixed.staticBaseURI;if(r.fixed.Ed)return null;for(;;){if(e.baseUri)return e.baseUri;e=e.parentNode;if(!e)return null}}function J(e,r,H=!1){var C=ba.Ac(r.ca).createDocumentFragment();C=ba.dc(C);C._saxonBaseUri=E(e,r);const O=r.X(!1);H&&(O.ca=r.masterDocument);
Yd.fj(C,t(e)(O),O);return C}function z(e){const r=d(e),H=h(e),C=e.op;return O=>{const S=r(O),W=H(O).expand();O=Wd.$d(e.comp,O);return Wd.gc(S,W,C,O,e)}}function b(e,r){throw new F("The "+e+" construct is not implemented in SaxonJS","SXJS0002",r);}function d(e){return t(e.C[0])}function h(e){return t(e.C[1])}function t(e){if(e){var r=e.ELAB;r||((r=w[e.N])||sa.ka("Unknown expr: "+e.N+" parent="+e.p),r=e.ELAB=r(e));return r}}function m(e,r){e=e.C||[];for(let H=0;H<e.length;H++){const C=e[H];if(C.role===
r)return C}return null}function L(e,r){return(e=e.flags)?e.indexOf(r)>=0:!1}function V(e){const r={};r.xml=xa.xml;e=ea(e,"ns");if(e!==null){e=e.split(" ");for(let H=0;H<e.length;H++){const C=e[H].split("=");r[C[0]]=C[1]==="~"?xa.withPrefix[C[0]]:C[1]}}return r}function ea(e,r){for(;e;){if(e[r])return e[r];e=e.parentNode}return null}function B(e,r){const H=V(e);return function(C){if(C===""&&!r)return"";const O=H[C];if(O)return O;if(C==="")return"";throw new F("Undeclared prefix: "+C,"XTDE0290",e);
}}function Q(e,r,H){return ca.QName.fromString(r,B(e,H))}function p(e,r,H){if(e!==null&&H>0){const C=ba.getAttribute(e,r);return C!==null&&C!==""?C:p(e.parentNode,r,H-1)}}function I(e,r,H){let C,O=e.bSlot;O?(O=parseInt(O,10),e=r.pa.Je[O],C=r.fixed.Ja[e]):(e=e.coId)?C=r.fixed.Ja[parseInt(e,10)]:sa.ka("No binding slot or component Id for component");C||sa.ka("Target component not found (slot="+O+" id="+e+")");if(C.visibility==="ABSTRACT"&&C.actor.N!=="function")throw new F("Abstract "+C.actor.N+" "+
C.actor.name+" has no implementation","XTDE3052");H&&C.actor.N!==H&&sa.ka("Expected "+H+", found "+C.actor.N);return C}function A(e,r,H,C){e=r.actor;var O=m(e,"body");O=t(O);C=C.X(!0);C.pa=r;xc(C);qc.ib(e,"u")||(C.oa="function");C.ab={};C.Wa=null;C.focus=null;C.ec=[];C.na=H;return O(C)}function x(e,r){for(e=e.parentNode;e.N!=="package";)e=e.parentNode;return r.fixed.md[e.name]}function N(e,r){return t(e)(r)}function P(e){return r=>{const H=ne(r),C=ee.zc(H);ee.push(e,r,C);C.close();return ob(H.Fb)}}
function T(e,r){e instanceof F&&!e.xsltLineNr&&e.setExpr(r);throw e;}function Y(e,r){function H(O){return"Context item for template "+e.name+" must be "+O}if(be(r)&&e.flags.indexOf("o")===-1)throw new F(H("supplied"),"XTTE3090",e);be(r)||e.flags.indexOf("s")!==-1||(r.focus={});let C=e.cxt;if(C&&!be(r)&&!tb(C).ga()(sc(r)))throw new F(H("instance of "+tb(C).toString()),"XTTE0590",e);}function da(e){return e instanceof qb}function Z(e){return e instanceof pb||e instanceof Ac}function la(e){return e instanceof
yc.XdmFunction||da(e)||Z(e)}function ka(e){const r=Object.assign(e);r.ELAB=void 0;e.C&&(r.C=e.C.map(H=>ka(H)));return r}function G(e,r,H){sa.assert(Array.isArray(e));sa.assert(r instanceof vb);const C=r.V();let O=C.p;if(C.o&&!Td(C.o)(e.length))throw new F("Supplied value "+sa.showValue(e)+" does not match required cardinality "+C.o+(H?" in "+H():""),"XPTY0004");if(e.length>0){if(r.itemType.ma()){e=qc.$h(e);const S=Da.XS.untypedAtomic;if(zd(r.itemType))e=e.map(W=>W.isNumeric()?W:S.matches(W)?Da.XS.double.cast(W):
W instanceof Ac?Da.XS.double.fromString(W.value.toString()):W);else{const W=Da.codes[O],qa=W.cast;O!=="A"&&(e=e.map(aa=>S.matches(aa)?qa(aa):aa instanceof Ac?W.fromString(aa.value.toString()):aa));["AO","AF"].includes(O)&&(e=e.map(aa=>aa.isNumeric()?W.cast(aa):aa));"AS"===O&&(e=e.map(aa=>Da.XS.anyURI.matches(aa)?W.cast(aa):aa))}}else if(r.itemType.gd())if(["FM","FA"].includes(O))e=Kc(e);else if(r.itemType instanceof rc){const S=r.itemType.ga();e.every(W=>S(W))||(e=e.map(W=>{if(S(W))return W;if(W instanceof
yc.XdmFunction){var qa=r.itemType;const aa=qa.yc().length;qa={minArgs:aa,maxArgs:aa,sig:qa.fa(),alphaTree:qa.V()};return new yc.qg(qa,W)}return W}))}if(!r.matches(e))throw new F("Supplied value "+sa.showValue(e)+" does not match required type "+r.toString()+(H?" in "+H():""),"XPTY0004");}return e}function U(e){return e.mapOneToMany(function(r){return da(r)?nd(r.value.map(function(H){return U(ob(H))})):wc(r)})}const ba=Gc,ha=ba.Ha,ca=Da.XS;let fa;const w={acFnRef:function(e){const r=ca.QName.fromEQName(e.name),
H=we.find("SaxonJS").internals.XPath;return C=>{C=C.X(!0);C.Xa=!0;if(C=H.getFnSignature(r,1,C))return C=new yc.pf(C,r,e),wc(C);throw new F("Reference to an unknown constructor function "+r+"#1","XPST0017",e);}},among:function(e){const r=d(e),H=h(e);return C=>{const O=r(C).next();return H(C).filter(S=>ba.isSameNode(S,O))}},analyzeString:P,and:function(e){const r=d(e),H=h(e);return C=>sd(k(r(C))&&k(H(C)))},applyImports:P,applyT:P,arith:function(e){const r=gb[e.calc];r||b("arithmetic ("+e.calc+")",e);
const H=f(e,r);return C=>wc(H(C))},arith10:function(e){function r(S){S=S.next();return S===null?ca.double.fromNumber(NaN):S.isStringLike(S)?ca.double.ie(S.toString()):ca.double.cast(S)}const H=d(e),C=h(e),O=gb[e.calc];return S=>wc(O(r(H(S)),r(C(S))))},array:function(e){const r=(e.C||[]).map(t);return H=>{const C=r.map(O=>O(H).expand());return wc(new qb(C))}},arrayBlock:function(e){const r=(e.C||[]).map(t);return H=>{const C=r.map(O=>O(H).expand());return wc(new qb(C))}},atomic:function(e){const r=
Da.codes[e.type].fromString(e.val);return()=>wc(r)},atomSing:function(e){const r=d(e);return e.card?H=>r(H).mapOneToMany(M):H=>{H=r(H).mapOneToMany(M);H=fd(H);if(H.peek()===null)throw H=n(e.diag),new F("The "+H.required+" is empty",H.code,e);return H}},att:P,attVal:function(e){const r=ca.QName.fromEQName(e.name);return H=>{vc(H,"XPDY0002","@"+r,e);H=sc(H);if(!ba.U(H))throw new F("Context item for 'attVal' must be a node","XPTY0020",e);if(H.nodeType!==1)return nb;H=r.uri===""?H.hasAttribute(r.local)?
H.getAttribute(r.local):null:r.uri===xa.xml?H.hasAttribute("xml:"+r.local)?H.getAttribute("xml:"+r.local):null:H.hasAttributeNS(r.uri,r.local)?H.getAttributeNS(r.uri,r.local):null;return H===null?nb:wc(ca.untypedAtomic.fromString(H))}},axis:function(e){const r=tb(e.nodeTest||"").ga(),H=e.name;return C=>{vc(C,"XPDY0002",H+" axis",e);C=sc(C);if(!ba.U(C))throw new F("Context item for "+H+" axis is not a node - supplied:"+sa.showValue(C),"XPTY0020",e);return ba.Cg[H](C).filter(r)}},"break":P,callT:function(e){return r=>
{const H=I(e,r,"template"),C=r.X(!0);C.vb=null;C.pa=H;Y(H.actor,C);K(e,r,C);return d(H.actor)(C)}},cast:function(e){const r=d(e),H=L(e,"e"),C=O=>{O=r(O).next();if(O===null){if(H)return null;throw new F("Empty sequence casting to "+tb(e.as).toString(),"XPTY0004",e);}return O};if(L(e,"a")){const O=jb(e.as),S=O.p==="AQ"?B(e,!0):null,W=Da.codes[O.p].cast;return qa=>{qa=C(qa);if(qa===null)return nb;try{var aa=W(qa,S);return wc(aa)}catch(za){if(za.code==="FORG0001"&&e.diag)throw aa=n(e.diag),new F("Required item type of "+
aa.required+" is "+tb(e.as).toString()+"; supplied value is "+sa.Ah(qa),aa.code,e);if(za.code!==null)throw za;throw new F("Failed to cast "+sa.Ah(qa)+" to type "+tb(e.as).toString(),"XPTY0004",e);}}}if(L(e,"l")){const O=Da.XS.QName.fromEQName(e.as),S=jc[O.local].fromString;sa.assert(O.uri===xa.jc);sa.assert(S);return W=>{W=C(W);if(W===null)return nb;W=ya.collapse(W.toString()).split(" ").map(S);if(W.length===0)throw new F("xs:"+O.local+" value must contain at least one token","FORG0001");return ob(W)}}if(L(e,
"u"))return O=>{O=C(O);return O===null?nb:Da.XS.double.matches(O)||Da.XS.decimal.matches(O)||Da.XS.float.matches(O)?wc(O):wc(Da.XS.double.cast(O))};throw new F("Unknown cast variety "+e.flags);},castable:function(e){const r=d(e),H=L(e,"e");let C;if(L(e,"a")){const O=jb(e.as),S=O.p==="AQ"?B(e,!0):null,W=Da.codes[O.p].cast;C=qa=>{W(qa,S);return!0}}else if(L(e,"l")){e=Da.XS.QName.fromEQName(e.as);const O=jc[e.local].fromString;C=S=>ya.collapse(S.toString()).split(" ").map(O).length>0}else if(L(e,"u"))C=
O=>{Da.XS.double.cast(O);return!0};else throw new F("Unknown castable variety "+e.flags);return O=>{O=r(O);const S=O.next();if(S===null)return sd(H);if(O.next()!==null)return sd(!1);O=M(S).next();try{return sd(C(O))}catch(W){return sd(!1)}}},cfn:function(e){const r=e.name,H=d(e);let C;if(r==="_format-number_1")return C=oi["format-number"],O=>{const S=[H(O),tc(e.pic)];e.hasAttribute("format")&&S.push(tc(e.format));return C(S,O,e)};if(r==="_translate_1")return C=oi.translate,O=>{const S=[H(O),tc(e.a1),
tc(e.a2)];return C(S,O)};sa.ka("Unimplemented: cfn "+r,e)},check:function(e){function r(S){const W=n(e.diag);throw new F("Required cardinality of "+W.required+" is "+C[H]+"; supplied value "+S,W.code,e);}const H=e.card,C={"*":"zero or more","+":"one or more","?":"zero or one",0:"zero",1:"exactly one"},O=d(e);return S=>{S=O(S);if(H==="*")return S;var W=fd(S);S=W.peek();if(S===null){if(H==="?"||H==="0")return nb;r("is empty")}else H==="0"&&r("is not empty (first item "+sa.showValue(S)+")");if(H==="+")return W;
W.next();const qa=W.next();qa!==null&&(W=W.count()+2,r("contains "+W+" items ("+sa.showValue(S)+", "+sa.showValue(qa)+(W>2?",... )":")")));return wc(S)}},choose:function(e){const r=e.C.map(t);return H=>{for(let C=0;C<r.length;C+=2)if(k(r[C](H)))return r[C+1](H);return nb}},coercedFn:function(e){const r=d(e);return H=>r(H)},comment:P,compareToInt:function(e){const r=e.op,H=ca.integer.fromString(e.val),C=d(e);return O=>{O=C(O);const S=O.next();if(S===null)return nb;if(Wd.pc(S))return sd(r==="ne");if(O.next()!==
null)throw new F("Value comparison only applicable to single values","XPTY0004",e);return sd(Wd.kf(r,S.compareTo(H)))}},compareToString:function(e){const r=e.op,H=d(e),C=ca.string.fromString(e.val);return O=>{const S=H(O),W=S.next();if(W===null)return nb;if(S.next()!==null)throw new F("Value comparison only applicable to single values","XPTY0004",e);return e.comp?(O=Wd.$d(e.comp,O),["=","eq","!=","ne"].includes(r)?sd(Wd.Fh(r,O.equals(W,C))):sd(Wd.kf(r,O.compare(W,C)))):sd(Wd.kf(r,W.compareTo(C)))}},
compAtt:P,compElem:P,condCont:function(e){const r=d(e);return H=>{function C(O){if(ba.U(O))switch(O.nodeType){case 9:case 11:case 1:return O.hasChildNodes();default:return g(O).toString()!==""}else return Z(O)?O.keys().length>0:da(O)?O.value.filter(function(S){return S.filter(W=>C(W)).length>0}).length>0:ca.string.cast(O).toString()!==""}return r(H).filter(C)}},condSeq:function(e){function r(C){if(ba.U(C)){if([9,11].includes(C.nodeType))return!C.hasChildNodes();if(C.nodeType===3||C.nodeType===4)return C.nodeValue===
""}else{if(Da.ma(C))return ca.string.cast(C).toString()==="";if(da(C))return!U(wc(C)).some(function(O){return!r(O)})}return!1}const H=e.C.map(C=>({name:C.N,eval:t(C)}));return C=>{let O=[];const S=[];let W=!0;H.map(function(qa){if(qa.name==="onEmpty")W&&(O=qa.eval(C).expand());else if(qa.name==="onNonEmpty"){const aa=O.length;S.unshift(function(){O.splice.apply(O,[aa,0].concat(qa.eval(C).expand()))})}else qa.eval(C).forEachItem(function(aa){r(aa)||(W=!1);O.push(aa)})});W||S.forEach(function(qa){qa()});
return ob(O)}},conditionalSort:function(e){const r=d(e),H=h(e),C=d(e.C[1]);return O=>k(r(O))?H(O):C(O)},consume:function(e){throw new F("Stylesheet uses 'consume' which requires streaming","SXJS0002",e);},convert:function(e){const r=e.to,H=Da.codes[r];H||sa.ka("Unknown to-type "+e.to);const C=d(e);return L(e,"p")?O=>C(O).mapOneToOne(S=>Da.fg(S,r)):O=>C(O).mapOneToOne(H.cast)},copy:P,copyOf:P,currentGroup:function(e){return r=>{if(r&&r.Xc)return ob(r.Xc);throw new F("There is no current group","XTDE1061",
e);}},currentGroupingKey:function(e){return r=>{if(r&&r.Yc)return ob(r.Yc);throw new F("There is no current grouping key","XTDE1071",e);}},cvUntyped:function(e){const r=d(e),H=Da.codes[e.to],C=H.cast,O=H.name==="string";return S=>r(S).mapOneToOne(function(W){if(ca.double.matches(W)&&H.name==="float")throw new F("xs:double may not be promoted to xs:float","XTTE0570",e);if(ca.untypedAtomic.matches(W)||O&&ca.anyURI.matches(W))try{return C(W)}catch(qa){if(qa.code==="FODT0001"||!e.diag)throw qa;W=n(e.diag);
throw new F(qa.message,W.code,e);}else return W})},data:function(e){const r=d(e);return H=>r(H).mapOneToMany(M)},dbl:function(e){const r=ca.double.fromString(e.val);return()=>wc(r)},dec:function(e){const r=ta(e.val);return()=>rd(r)},doc:P,docOrder:function(e){const r=d(e);return H=>ba.ed(r(H))},dot:function(e){return r=>{vc(r,"XPDY0002",". (dot)",e);return wc(sc(r))}},dynCall:function(e){const r=d(e);let H;e.C.length>1&&(H=(e.C.slice(1)||[]).map(t));return C=>{const O=r(C).next();var S=H?H.map(W=>
W(C).expand()):[];if(O instanceof yc.XdmFunction)return O.evaluate(S,C,e);if(S.length>1)throw new F("Too many arguments supplied in dynamic function call to array or map","XPTY0004",e);if(S[0].length!==1)throw new F("Argument supplied in dynamic function call to array or map is not a single item: "+sa.showValue(S),"XPTY0004",e);S=M(S[0][0]).next();O instanceof qb&&(S=ca.numeric.matches(S)?S.toNumber():ca.double.cast(S).toNumber());return O.evaluate([[S]],C,e)}},elem:P,empty:function(){return()=>nb},
emptyTextNodeRemover:function(e){const r=d(e);return H=>r(H).filter(C=>!(ba.U(C)&&(C.nodeType===3||C.nodeType===4)&&C.textContent===""))},error:function(e){return()=>{throw new F(e.message,e.code,e);}},evaluate:function(e){const r={language:"XSLT",contextType:{o:"1",p:"",code:"1"}},H=t(m(e,"xpath")),C=t(m(e,"cxt")),O=t(m(e,"sa")),S=t(m(e,"nsCxt")),W=y(e,"withParam").map(aa=>({name:ca.string.fromString(aa.name),eval:d(aa)})),qa=t(m(e,"wp"));return aa=>{const za=H(aa).next().toString(),wa=C?C(aa):nb;
let Ca=new pb;W.forEach(function(Oa){Ca.inSituPut(Oa.name,Oa.eval(aa).expand())});qa&&qa(aa).next().forAllPairs(function(Oa){if(!ca.QName.matches(Oa.k))throw new F("Parameter names in xsl:evaluate/@with-params map must be QNames:"+Oa.k.toString(),"XTTE3165",e);Ca.inSituPut(Oa.k,Oa.v)});Ca=wc(Ca);if(O){var Ea=O(aa).next().toString();if(v(Ea))throw new F("SaxonJS does not support schema-aware evaluation","XTDE1665",e);}(Ea=e.as)&&(r.requiredType=Ea.toString());(Ea=e.dxns)&&Ea.toString()!=="http://www.w3.org/1999/xhtml"&&
(r.xpathDefaultNamespace=Ea.toString());let Ta={};if(S){Ea=S(aa);var Za=Ea.next();if(Za===null||Ea.next()!==null||!ba.U(Za))throw new F("xsl:evaluate/@namespace-context must evaluate to a single node","XTTE3170",e);Ta[""]="";Gc.Ec(Za).forEach(Oa=>Ta[Oa.prefix]=Oa.uri);r.xpathDefaultNamespace=Ta[""]}else Ta=V(e);const zb={};Za=Ea=!1;const La={};var Ja=m(e,"options");if(Ja){Ja=N(Ja,aa).next();let Oa=ca.string.fromString("var-slots");Ja.containsKey(Oa)&&Ja.get(Oa)[0].forAllPairs(function(R){zb[R.k.toEQName()]=
Mc(R.v)});Oa=ca.string.fromString("allow-empty");Ja.containsKey(Oa)&&(Ea=Ja.get(Oa)[0].toBoolean());Oa=ca.string.fromString("isStatic");Ja.containsKey(Oa)&&(Za=Ja.get(Oa)[0].toBoolean());Oa=ca.string.fromString("staticContext");Ja.containsKey(Oa)&&Ja.get(Oa)[0].forAllPairs(function(R){La[R.k.toString()]=Mc(R.v,!0)})}r.params=Ca;r.namespaces=Ta;r.slotMap=zb;r.allowEmpty=Ea;r.staticTyping=!0;r.isStatic=Za;r.staticContext=La;r.dynamicEval=!0;(Ea=m(e,"baseUri"))&&(r.staticBaseURI=N(Ea,aa).next().toString());
(Ea=ea(e,"defaultCollation"))&&(r.defaultCollation=Ea);return we.find("SaxonJS").internals.XPath.evaluateXDM(za,wa,aa,r)}},every:function(e){const r=parseInt(e.slot,10),H=d(e),C=h(e);return O=>{const S=H(O);return sd(!S.some(function(W){O.na[r]=[W];return!k(C(O))}))}},except:function(e){const r=d(e),H=h(e);return C=>new hd(r(C),H(C),ba.mb)},"false":function(){return()=>sd(!1)},filter:function(e){const r=d(e),H=h(e);return L(e,"i")?C=>{const O=r(C);C=H(C).expand();if(C.length===1&&ca.numeric.matches(C[0])){const S=
C[0].toNumber();if(O instanceof ob)return wc(O.expand()[S-1]||null);const W=od(O);return W.filter(function(){return W.position===S})}return k(ob(C))?O:nb}:C=>{const O=r(C),S=C.X(!1);S.focus=od(O);C=L(e,"p")?function(){const W=H(S).expand();return W.length===1&&ca.numeric.matches(W[0])?S.focus.position===W[0].toNumber():k(ob(W))}:function(){return k(H(S))};return S.focus.filter(C)}},first:function(e){const r=d(e);return H=>wc(r(H).next())},flt:function(e){const r=ca.float.fromString(e.val);return()=>
wc(r)},fn:function(e){const r=oi[e.name];r||b(e.name+"()",e);const H=(e.C||[]).map(t);return C=>{const O=H.map(S=>S(C));return r(O,C,e)}},fnCoercer:function(e){const r=d(e),H=sb(e.to),C=H.itemType,O={alphaTree:H.V()};return S=>r(S).mapOneToOne(function(W){if(!(W instanceof yc.XdmFunction||W instanceof qb||W instanceof pb)){var qa=n(e.diag);throw new F("Required item type of "+qa.required+" is "+H.toString()+"; supplied value is "+sa.showValue(W),qa.code,e);}qa=W instanceof yc.XdmFunction?W.arity:
1;if((C instanceof rc?C.yc():[]).length!==qa)throw qa=n(e.diag),new F("Required item type of "+qa.required+" is "+H.toString()+"; supplied value is "+sa.showValue(W),qa.code,e);return new yc.qg(O,W)})},fnRef:function(e){let r=e.name;r=/^Q{/.test(r)?ca.QName.fromEQName(r):ca.QName.fromParts("",xa.Ma,r);const H=parseInt(e.arity,10),C=we.find("SaxonJS").internals.XPath;return O=>{var S=O.X(!0);S.Xa=!0;if(S=C.getFnSignature(r,H,S))return O=S.isUserFunction?new yc.sf(S,O):r.uri===xa.jc?new yc.pf(S,r,e):
new yc.Ae(S,r,H,e,O),wc(O);throw new F("Reference to an unknown function and/or arity "+r.toEQName()+"#"+H,"XPST0017",e);}},follows:function(e){const r=f(e,function(H,C){return ca.boolean.fromBoolean(ba.mb(H,C)>0)});return H=>wc(r(H))},"for":function(e){const r=parseInt(e.slot,10),H=d(e),C=h(e);return O=>H(O).mapOneToMany(function(S){O.na[r]=[S];return C(O)})},forEach:function(e){const r=d(e),H=h(e);return m(e,"separator")?P(e):C=>{const O=C.X(!1);O.focus=od(r(C));O.Wa=null;return O.focus.mapOneToMany(function(){return H(O)})}},
forEachGroup:P,fork:c,functionCall:function(e){b(e.name+"()",e)},gc:z,gc10:function(e){let r=d(e),H=h(e);return C=>{let O=r(C).expand(),S=H(C).expand();O.length===1&&ca.boolean.matches(O[0])?S=[ca.boolean.fromBoolean(k(ob(S)))]:S.length===1&&ca.boolean.matches(S[0])?O=[ca.boolean.fromBoolean(k(ob(O)))]:(O=l(O),S=l(S));C=Wd.$d(e.comp,C);const W=e.op;W!=="="&&W!=="!="?(O=ob(O).mapOneToOne(Da.XS.numeric.Id).expand(),S=ob(S).mapOneToOne(Da.XS.numeric.Id).expand()):C=Wd.Di(C);return Wd.gc(ob(O),S,W,C,
e,!0)}},gcEE:z,gVarRef:function(e){return r=>{const H=I(e,r),C=H.actor,O=C.name;if(H.value===a)throw r=new F("Circularity in global variable "+O,"XTDE0640"),r.isGlobal=!0,r;if(H.value===null||typeof H.value==="undefined"){if(C.N==="globalParam"){var S=r.fixed.options.stylesheetParams,W=Da.XS.QName.fromEQName(O);if(S.containsKey(W))S=S.get(W),sa.assert(Array.isArray(S)),W=sb(C.as||"*"),S=G(S,W,()=>"stylesheet parameter "+O),sa.assert(Array.isArray(S)),H.value=S;else{if(L(C,"r"))throw new F("Parameter "+
O+" is required","XTDE0050",C);if(L(C,"i"))throw new F("Parameter "+O+" cannot be empty","XTDE0700",C);C.C||(H.value=[])}}if(H.value===null||typeof H.value==="undefined"){S=!C.parentNode.parentNode.parentNode;W=r.X(!0);W.oa="variable";W.nb.push(null);W.ab={};W.Wa=null;W.pa=H;W.focus=S?uc(r.fixed.Bc):null;try{const qa=d(C);H.value=a;H.value=qa(W).expand()}catch(qa){throw qa instanceof F&&(H.value=[],ca.QName.fromEQName(O).uri!==xa.qb+"generated-variable"&&(qa.isGlobal=!0)),qa;}W.nb.pop()}}return ob(H.value)}},
homCheck:function(e){const r=d(e);return H=>{H=fd(r(H));const C=H.peek();if(C===null)return nb;const O=ba.U(C);H=H.filter(function(S){if(ba.U(S)!==O)throw new F("Cannot mix nodes and atomic values in the result of a path expression","XPTY0018",e);return!0});return O?ba.ed(H):H}},ifCall:function(e){const r=ca.QName.fromEQName(e.name);if(r.uri==="http://saxonica.com/ns/interactiveXSLT"&&r.local==="schedule-action"){const C=d(e),O=h(e),S=t(e.C[3]);return W=>{var qa=e.C.length===4;if(e.C.length>4)throw new F("Only attributes @wait, @document and @http-request are available on ixsl:schedule-action in this version of SaxonJS",
"SXJS0002",e);var aa=C(W).next().toNumber(),za=O(W).next();const wa=qa?S(W).next():null;qa=null;const Ca=W.X(!0);xc(Ca);let Ea,Ta,Za;e.C.length<3||e.C[2].N==="empty"?Ea=Ta=Za=null:(Ea=e.C[2],"bSlot"in Ea?(Ta=I(Ea,W,"template"),Za=Ta.actor):Ta=Za=null);be(W)||(Ca.focus=od(wc(sc(W))),Ca.focus.next());Ca.vb=null;Ca.pa=Ta;Ca.oa=!1;wa===null&&Za!==null&&Y(Za,Ca);Ea!=null&&K(Ea,W,Ca);let zb,La;Za===null?(zb=null,La=function(){}):(zb=d(Za),La=function(){zb(Ca).expand()});wa!==null?qa=fe.gj(wa,function(Ja){Ca.focus=
od(wc(Ja[0]));Ca.focus.next();Za!==null&&(Y(Za,Ca),La())},aa,W):za!==null?(za=za.toString().split(" "),qa=za.map(function(Ja){return na.pb(Ja,qc.Da(e,W))}),aa=fe.Xh(qa,W.fixed.Sb,La,aa,W),qa=za.length===1?aa[qa[0]]:aa):aa!==0&&(aa=(Ja=>new Promise(Oa=>setTimeout(Oa,Ja)))(aa).then(()=>La()),W.fixed.ic.push(aa));return qa?wc(qa):nb}}const H=(e.C||[]).map(t);return C=>{const O=H.map(S=>S(C));return fa(r.uri,r.local,O,C,e)}},indexedFilter2:function(e){const r=t(m(e,"base")),H=t(m(e,"use")),C=t(m(e,"search"));
return O=>{const S=Wd.$d(e.comp,O),W=O.X(!1);W.focus=od(r(O));const qa=C(O).expand();return W.focus.filter(function(){const aa=H(W);return Wd.gc(aa,qa,"=",S,e).next().toBoolean()})}},inlineFn:function(e){const r={sig:e.sType,alphaTree:jb(e.sType)};return H=>wc(new yc.Ph(r,e,H))},instance:function(e){const r=d(e),H=sb(e.of);return C=>{C=r(C).expand();return sd(H.matches(C))}},"int":function(e){const r=ca.integer.fromString(e.val);return()=>wc(r)},intersect:function(e){const r=d(e),H=h(e);return C=>
new gd(r(C),H(C),ba.mb)},intRangeTest:function(e){const r=d(e);e=e.C;const H=t(e[1]),C=t(e[2]);return O=>{const S=H(O).next(),W=C(O).next();if(!S||!W)return sd(!1);const qa=S.toNumber(),aa=W.toNumber();O=r(O).some(function(za){za=za.value;return za>=qa&&za<=aa});return sd(O)}},is:function(e){const r=f(e,function(H,C){return ca.boolean.fromBoolean(ba.isSameNode(H,C))});return H=>wc(r(H))},isLast:function(e){const r=e.test==="1";return H=>sd(H.focus.position===H.focus.last()===r)},iterate:P,javaCall:function(e){const r=
ca.QName.fromEQName(e.name),H=(e.C||[]).map(t);return C=>{const O=H.map(S=>S(C));return fa(r.uri,r.local,O,C,e)}},lastOf:function(e){const r=d(e);return H=>{const C=fd(r(H));return C.filter(function(){return C.peek()===null})}},let:function(e){const r=d(e),H=h(e),C=parseInt(e.slot,10);return O=>{const S=O.oa;O.oa="variable";const W=r(O).expand();O.oa=S;O.na[C]=W;return H(O)}},literal:c,lookup:function(e){const r=d(e),H=h(e);return C=>{function O(Ea){aa=aa.concat(za[Ea.toString()])}function S(Ea){aa=
aa.concat(za.get(Ea))}function W(Ea){return function(Ta){if(!ca.integer.matches(Ta))throw new F("Array lookup key must be of type xs:integer; supplied value is "+sa.showValue(Ta),"XPTY0004",e);Ta=Ta.toNumber();if(Ta<1||Ta>Ea.length)throw new F("Array index ("+Ta+") out of bounds (1 to "+Ea.length+")","FOAY0001",e);aa=aa.concat(Ea[Ta-1])}}const qa=r(C);let aa=[],za;C=H(C).expand();const wa=e.tuple;if(wa!=null){const Ea=wa.split(/\s+/);for(var Ca of C)if(Ea.indexOf(Ca.toString())===-1)throw new F("Tuple lookup key must be one of  "+
wa+". Supplied key is "+Ca.toString(),"XPTY0004",e);}for(;(za=qa.next())!==null;)if(qc.isArray(za))Ca=W(za.value),C.forEach(Ca);else if(qc.isMap(za))C.forEach(S);else if(wa!=null&&qc.ih(za))C.forEach(O);else throw new F("The source for a lookup operator (?) must be of type array() or map(); supplied value is "+sa.showValue(za),"XPTY0004",e);return ob(aa)}},lookupAll:function(e){const r=d(e);return H=>{function C(qa){S=S.concat(qa)}function O(qa){S=S.concat(W.get(qa))}H=r(H);let S=[],W;for(;(W=H.next())!==
null;)if(qc.isArray(W))W.value.forEach(C);else if(qc.isMap(W))W.keys().forEach(O);else throw new F("The source for a lookup operator ('?') must be of type array() or map(); supplied value is "+sa.showValue(W),"XPTY0004",e);return ob(S)}},lookupTuple:function(e){const r=d(e),H=e.key;return C=>{C=r(C);let O=[],S;for(;(S=C.next())!==null;)if(H!=null&&qc.ih(S))O=O.concat(S[H]);else throw new F("The source for a lookupTuple operator (?) must be of type tuple(); supplied value is "+sa.showValue(S),"XPTY0004",
e);return ob(O)}},map:function(e){const r=(e.C||[]).map(t);return H=>{const C=new pb;let O=null;r.forEach(function(S){if(O===null)O=S(H).next();else{if(C.containsKey(O))throw new F("Duplicate map constructor entries for key:"+sa.showValue(O),"XQDY0137",e);S=S(H).expand();C.inSituPut(O,S);O=null}});return wc(C)}},merge:function(e){return r=>pi.hj(e,r)},mergeAdj:function(e){const r=d(e);return H=>{const C=[],O=r(H);let S=!1,W;for(;(W=O.next())!==null;){var qa=ba.U(W)&&(W.nodeType===3||W.nodeType===
4);qa&&W.nodeValue===""||(S&&qa?(qa=ba.Ac(H.ca),C.push(qa.createTextNode(C.pop().nodeValue+W.nodeValue))):(S=qa,C.push(W)))}return ob(C)}},message:function(e){const r=t(m(e,"terminate")),H=t(m(e,"error"));return C=>{const O=C.oa;C.oa="variable";var S=r(C).next();let W=H(C).next().toString();try{W=Q(e,W,!0).toEQName()}catch(wa){W="Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}let qa;try{qa=v(S.toString())}catch(wa){throw new F("The terminate attribute of xsl:message must be yes|no|true|false|1|0",
"XTDE0030",e);}S=ne(C);const aa=new re(S);try{var za=ee.zc(aa);za.Ca();ee.push(e.C[0],C,za);za.wa()}catch(wa){aa.append(Da.XS.string.fromString("xsl:message evaluation at "+sa.location(e)+" failed: "+wa))}za=ob(S.Fb).next();C.fixed.options.Kf||(C.fixed.options.Kf=na.$g());try{S=W,C.qc[S]||(C.qc[S]=0),C.qc[S]++,C.fixed.options.Kf(za,W)}catch(wa){}if(qa)throw sa.ua(C.getStackTrace(),1,C.fixed.Ga),C=new F("Terminated with "+za,W,e),C.errorObject=za,C;C.oa=O;return nb}},minus:function(e){const r=d(e);
return H=>r(H).mapOneToOne(C=>C.bf())},namespace:function(e){const r=d(e),H=h(e);return C=>{const O=r(C).next().toString();C=H(C).next().toString();if(O!==""&&!ya.Db(O))throw new F("Prefix "+O+" is not an NCName","XTDE0920",e);if(C==="")throw new F("Namespace is zero-length","XTDE0930",e);if(O==="xmlns")throw new F("Disallowed prefix xmlns","XTDE0920",e);if(C==="http://www.w3.org/2000/xmlns/")throw new F("Disallowed namespace "+C,"XTDE0905",e);if(!D(C))throw new F("Invalid namespace "+C,"XTDE0905",
e);if(O==="xml"!==(C===xa.xml))throw new F("The xml namespace prefix and uri can only be used together","XTDE0925",e);return wc(new ud(O,C))}},nextIteration:P,nextMatch:P,node:function(e){return r=>{const H=parseInt(e.kind,10);var C=e.content.toString();switch(H){case 9:case 1:var O=r.fixed.ea;let S;try{S=na.Rb(C)}catch(W){throw new F(W.message,"FODC0006");}H===1&&(S=S.documentElement);(C=e.baseUri)||(C=O.Da(e,r));S._saxonBaseUri=C;return wc(S);case 3:case 4:return wc(r.ca.createTextNode(C));case 8:return wc(r.ca.createComment(C));
case 2:return O=e.localName,r=e.prefix,wc(new vd(ca.QName.fromParts(r,e.ns,O),C,null));case 13:return r=e.localName?e.localName.toString():"",wc(new ud(r,C));case 7:return O=e.localName?e.localName.toString():"",wc(r.ca.createProcessingInstruction(O,C));default:throw new F("Unknown node type "+H,"SXJS0003");}}},nodeNum:function(e){return r=>xe.mj(e,r)},"null":function(e){return()=>wc(e)},numSeqFmt:function(e){return r=>xe.nj(e,r)},onEmpty:c,onNonEmpty:c,or:function(e){const r=d(e),H=h(e);return C=>
sd(k(r(C))||k(H(C)))},origFC:function(e){e.C||(e.C=[]);const r=e.C.map(t);return H=>{if(!e._target){const S=e.pack,W=Q(e,e.name,!1).toEQName(),qa=e.C.length,aa=H.fixed.Ja;Object.keys(aa).forEach(function(za){za=aa[za];za.qh.name===S&&za.name===W&&za.actor&&za.actor.N==="function"&&y(za.actor,"arg").length===qa&&(e._target=za.id)})}const C=H.fixed.Ja[e._target],O=r.map(S=>S(H).expand());return A(e,C,O,H)}},param:function(e){const r=e.name,H=parseInt(e.slot,10),C=L(e,"t"),O=t(m(e,"select")),S=t(m(e,
"conversion"));return W=>{var qa=C?W.tunnelParams:W.Gc,aa=Da.XS.QName.fromEQName(r);if(qa.containsKey(aa))qa=qa.get(aa),sb(e.as||"*").V().p!==""&&(qa=Kc(qa));else if(O&&!L(e,"r"))aa=W.oa,W.oa="xsl:param",qa=O(W).expand(),W.oa=aa;else throw new F("Required parameter $"+r+" not supplied","XTDE0700",e);sa.assert(Array.isArray(qa));W.na[H]=qa;if(S)try{W.na[H]=S(W).expand()}catch(za){throw new F("Supplied value for parameter $"+r+" could not be converted to required type","XTTE0590",e);}return nb}},partialApply:function(e){const r=
d(e),H=[],C=[];let O=0;const S=e.C.length-1;for(let W=1;W<e.C.length;W++){const qa=e.C[W];qa.N==="null"?(O++,H.push(jb(qa.sT||"*"))):C[W-1]=t(qa)}return W=>{const qa=r(W).next(),aa=[];for(let za=0;za<S;za++)C[za]&&(aa[za]=C[za](W).expand());W={o:"1",p:"F",r:qa.rb.alphaTree.r,a:H};return wc(new yc.Oh({minArgs:O,maxArgs:O,sig:kb(W),alphaTree:W},qa,aa))}},precedes:function(e){const r=f(e,function(H,C){return ca.boolean.fromBoolean(ba.mb(H,C)<0)});return H=>wc(r(H))},procInst:P,qName:function(e){const r=
ca.QName.fromParts(e.pre,e.uri,e.loc);return()=>wc(r)},range:function(e){const r=ca.integer.fromString(e.from),H=ca.integer.fromString(e.to);return()=>q(r,H)},resultDoc:function(e){return r=>{try{if(r.oa)throw new F("Cannot call xsl:result-document while evaluating "+r.oa,"XTDE1480",e);var H=x(e,r);const C={};let O=function(){};const S=m(e,"format");if(S){let La=N(S,r).next().toString();La=Q(e,La,!0).toEQName();const Ja=H.cg[La];if(!Ja)throw new F("Unknown xsl:output format "+La,"XTDE1460");let Oa,
R;for(const X of Ja.C){let ia=X.name;ia==="parameter-document"?Oa=X.value:ia==="Q{http://saxon.sf.net/}parameter-document-base-uri"?R=X.value:C[ia]=ia==="use-character-maps"?ve.mf(ia,X.value,H):ve.nf(ia,X.value)}if(Oa){const X=na.pb(Oa,R);let ia=fe.xc(X,r);ve.df(ia.documentElement,C)}}u(e.global,C,H);u(e.local,C,H);for(const La of e.C){let Ja=La.role.replace(/^Q{\}/,"");if(!["href","format","content","parameter-document"].includes(Ja)){Ja==="output-version"&&(Ja="version");let Oa=N(La,r).next().toString();
Oa=Ja==="use-character-maps"?ve.mf(Ja,Oa,H):ve.nf(Ja,Oa,B(e,!0));typeof Oa!=="undefined"&&(C[Ja]=ve.cf(Ja,Oa,C[Ja]))}}const W=m(e,"Q{}parameter-document");if(W!==null){const La=N(W,r).next().toString(),Ja=na.pb(La,qc.Da(e,r));let Oa=fe.xc(Ja,r);ve.df(Oa.documentElement,C)}const qa=r.fixed.Ab,aa=m(e,"href"),za=aa===null?"":N(aa,r).next().toString();let wa;wa=qa?na.newURL(za,qa):ba.fd(za)?na.newURL(za):za;const Ca=wa.toString();if(r.fixed.Ab&&Ca===r.fixed.Ab.toString()&&r.nb.length>1)throw new F("Cannot revert to the original output destination while writing a secondary result",
"XTDE1490");let Ea,Ta,Za,zb;Za=!na.ra()&&!r.masterDocument||r.fixed.oe?"file":"html-page";if(Za!=="html-page"){if(r.fixed.options.deliverResultDocument){Ea=r.fixed.options.deliverResultDocument(wa);if(!Ea)throw new F("deliverResultDocument() result has no destination");Za=Ea.destination}else throw new F("No deliverResultDocument function supplied");if(typeof r.fixed.Ta[Ca]!=="undefined")throw new F("A result document with URI "+Ca+" is attempting to write to a document already read","XTDE1500",e);
if(r.fixed.wh[Ca])throw new F("A result document with URI "+Ca+" has already been created","XTDE1490",e);r.fixed.wh[Ca]=!0}if(["file","serialized"].includes(Za))zb=new ve.yf,Ta=ve.eh(C,zb,r),O=function(){const La=zb.toString(),Ja=C.encoding||"utf-8";if(!Ea.save)throw new F("deliverResultDocument() result has no save method","SXJS0004",e);Ea.save(wa,La,Ja)};else if(["document","raw"].includes(Za)){const La=ne(r);Ta=Za==="document"?new re(La):La;O=function(){const Ja=ob(La.Fb).next();Ja&&(Ja._saxonBaseUri=
wa.toString());if(!Ea.save)throw new F("deliverResultDocument() result has no save method","SXJS0004",e);Ea.save(wa,Ja)}}else if(Za==="html-page"){let La=C.method||"appendContent";La==="Q{http://saxonica.com/ns/interactiveXSLT}replace-content"?La="replaceContent":La==="Q{http://saxonica.com/ns/interactiveXSLT}replace-element"?La="replaceElement":La==="Q{http://saxonica.com/ns/interactiveXSLT}insert-before"?La="insertBefore":La==="Q{http://saxonica.com/ns/interactiveXSLT}insert-after"&&(La="insertAfter");
let Ja;const Oa=za.charAt(0)==="#"||za.charAt(0)==="?",R=ne(r);Ta=new re(R);r.nb.push(za);const X=J(m(e,"content"),r,Oa),ia=function(ja,va){let Ba=va.parentNode;if(La==="replaceElement"){const Ia=va.nextSibling;Ba.removeChild(va);va=Ia}La==="insertAfter"&&(va=va.nextSibling);ha.Ia(ja).forEachItem(function(Ia){La==="insertBefore"||La==="insertAfter"||La==="replaceElement"?Ba.insertBefore(Ia,va):va.appendChild(Ia)})};if(Oa){if(!r.masterDocument)return sa.ua("Result document href="+za+": no master document available",
1,r.fixed.Ga),nb;if(za==="?.")Ja=sc(r);else if(za.charAt(0)==="?"){const ja=sc(r),va=za.substring(1);H="";na.ra()&&(H="http://www.w3.org/1999/xhtml");const Ba={language:"XSLT",contextType:{o:"1",p:"",code:"1"},xpathDefaultNamespace:H,namespaces:V(e),dynamicEval:!0};try{Ja=we.find("SaxonJS").internals.XPath.evaluateXDM(va,wc(ja),r,Ba)}catch(Ia){throw new F("Error in xsl:result-document/@href ?xpath:"+Ia.message,"SXJS0020",e);}Ja=Ja.expand();if(Ja.length>1)throw new F("xsl:result-document/@href ?xpath yields more than one node",
"SXJS0020",e);Ja=Ja[0]}else Ja=r.masterDocument.getElementById(za.substring(1));if(!Ja)return sa.ua("Result document href="+za+": no such node",1,r.fixed.Ga),nb;if(za==="?."&&Ja!==r.masterDocument&&Ja.ownerDocument!==ba.Ac(r.masterDocument))return sa.ua("Result document href="+za+": current node is not in master document",1,r.fixed.Ga),nb;if(La==="replaceContent")for(;Ja.firstChild;)Ja.removeChild(Ja.firstChild);O=function(){ia(X,Ja);!ni.getConfigurationProperty("autoResetIndexes")&&"_saxonIndexes"in
r.masterDocument||(r.masterDocument._saxonIndexes={},r.masterDocument._saxonIndexesBC={},r.masterDocument._saxonXmlIdIndex=null)}}else throw new F("xsl:result-document/@href value in browser must be '?.' or '#frag'");}else throw new F("Unsupported result-document destination "+Za,"SXJS0002");if(Za!=="html-page"&&(za===""||wa.toString()===qa)){const La=r.fixed.Ci;if(La){if(La.Jh)throw new F("Cannot use xsl:result-document to write to a destination already used for the principal output","XTDE1490");
if(La.ng)throw new F("Cannot write more than one xsl:result-document to the principal output destination","XTDE1490");La.ng=!0}}if(Za!=="html-page"){r.nb.push(wa.toString());const La=m(e,"content"),Ja=ee.zc(Ta);ee.push(La,r,Ja);Ja.close()}O();r.nb.pop();return nb}catch(C){T(C,e)}}},root:function(e){return r=>{vc(r,"XPDY0002","/",e);r=sc(r);if(!ba.U(r))throw new F("Context item for '/' must be a node","XPTY0020",e);const H=ba.cc(r);if(H.nodeType!==9&&H.nodeType!==11)throw new F("Root node for '/' must be a document node",
"XPDY0050",e);return wc(ba.cc(r))}},schedule:function(e){const r=t(m(e,"select")),H=t(m(e,"on-completion")),C=t(m(e,"on-failure"));if(typeof ScheduleImpl==="undefined")throw new F("Promises are an EE feature on Node.js");return ScheduleImpl(e,r,H,C)},sequence:c,slash:function(e){const r=d(e),H=h(e);return C=>{const O=C.X(!1);O.focus=od(r(C));return O.focus.mapOneToMany(()=>H(O))}},some:function(e){const r=parseInt(e.slot,10),H=d(e),C=h(e);return O=>{const S=H(O);return sd(S.some(function(W){O.na[r]=
[W];return k(C(O))}))}},sort:function(e){const r=Wd.Gj(e);return H=>{try{return r(H)}catch(C){if(C instanceof F&&C.code==="FOCH0002")throw new F(C.message,"XTDE1035",e);if(C instanceof F&&C.code==="XPTY0004")throw new F(C.message,"XTDE1030",e);throw C;}}},sourceDoc:P,str:function(e){const r=e.val;return()=>tc(r)},subscript:function(e){const r=d(e),H=h(e);return C=>{var O=r(C);C=H(C).next();if(C.code==="ADI")C=C.value;else if(C.equals(C.round(0)))C=Da.XS.integer.cast(C).value;else return nb;return(O=
O.itemAt(C))?wc(O):nb}},supplied:function(e){const r=parseInt(e.slot,10);return H=>ob(H.na[r])},tail:function(e){const r=parseInt(e.start,10)-1;let H=d(e);return C=>{let O=r;return H(C).filter(function(){return O--<=0})}},tailCallLoop:c,to:function(e){const r=d(e),H=h(e);return C=>{const O=r(C).next();C=H(C).next();return O===null||C===null||O.compareTo(C)>0?nb:q(O,C)}},treat:function(e){const r=tb(e.as),H=r.ga(),C=d(e);return O=>C(O).mapOneToOne(function(S){if(H(S))return S;const W=n(e.diag);throw new F("Required item type of "+
W.required+" is "+r.toString()+"; supplied value is "+sa.showValue(S),W.code,e);})},"true":function(){return()=>sd(!0)},"try":function(e){const r=d(e),H=y(e,"catch");H.forEach(C=>{const O=C.errors.split(" ").map(S=>{if(S==="*")return()=>!0;if(/^\*:/.test(S)){const qa=S.substring(2);return aa=>aa.local===qa}if(/}\*$/.test(S)){const qa=S.substring(2,S.length-2);return aa=>aa.uri===qa}const W=ca.QName.fromEQName(S);return qa=>qa.equals(W)});C.test=O.length===1?O[0]:S=>O.some(W=>W(S))});return C=>{try{return ob(r(C).expand())}catch(O){let S;
if(O instanceof F){if(O.isGlobal)throw O;S=O}else S=O instanceof Error?new F(O.message,"SXJS0021"):new F(O.toString(),"SXJS0021");C.Oe=S;S.xsltLineNr||(S.setExpr(e.C[0]),O instanceof Error&&O.fileName&&(S.xsltModule=O.fileName));let W;W=S.code.match("^Q{")?ca.QName.fromEQName(S.code):ca.QName.fromParts("","http://www.w3.org/2005/xqt-errors",S.code);for(let qa=0;qa<H.length;qa++){const aa=H[qa];if(aa.test(W))return d(aa)(C)}throw S;}}},ufCall:function(e){const r=(e.C||[]).map(t);return H=>{const C=
I(e,H,"function"),O=r.map(S=>S(H).expand());return A(e,C,O,H)}},ufRef:function(e){let r=e.name;r=/^[a-z]+:/.test(r)?Q(e,r,!0):/^Q\{/.test(r)?ca.QName.fromEQName(r):ca.QName.fromParts("",xa.Ma,r);const H=parseInt(e.arity,10),C=we.find("SaxonJS").internals.XPath;return O=>{const S=C.getFnSignature(r,H,O);if(S&&S.isUserFunction)return O=new yc.sf(S,O),wc(O);sa.ka("Named user function "+r+"#"+H+" not found")}},union:function(e){const r=d(e),H=h(e);return C=>new ed(r(C),H(C),ba.mb)},useAS:P,valueOf:P,
varRef:function(e){const r=parseInt(e.slot,10);return H=>ob(H.na[r])},vc:function(e){function r(W){return W===null?null:ca.untypedAtomic.matches(W)?ca.string.cast(W):W}const H=e.op,C=e.onEmpty,O=d(e),S=h(e);return W=>{const qa=O(W),aa=S(W),za=r(qa.next()),wa=r(aa.next());if(za===null||wa===null)return C?sd(C==="1"):nb;if(qa.next()!==null||aa.next()!==null)throw new F("Value comparison only applicable to single values","XPTY0004",e);if(za.isNumeric()&&isNaN(za.value)||wa.isNumeric()&&isNaN(wa.value))return sd(H===
"ne");W=Wd.$d(e.comp,W);return["=","eq","!=","ne"].includes(H)?sd(Wd.Fh(H,W.equals(za,wa))):sd(Wd.kf(H,W.compare(za,wa)))}}};return{aa:m,Ie:K,Jb:M,$h:l,Dk:function(){return"ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace parent preceding preceding-sibling self preceding-or-ancestor".split(" ")},Gf:Y,Aa:y,ii:ka,Hf:G,fe:x,Xf:I,Ad:k,Pa:d,Lg:h,cb:t,escape:function(e,r){let H="";ua.La(e).forEach(function(C){const O=ua.$b([C]);H+=r(C,O)?encodeURIComponent(O):
O});return H},evaluate:N,nc:function(e,r){return e===null?nb:N(e,r)},si:function(e,r,H,C){const O=oi[e.local];O||b(e.toString()+"()",C);return O(r.map(S=>ob(S)),H,C)},ti:function(e,r,H,C){return fa(e.uri,e.local,r.map(O=>ob(O)),H,C)},flatten:U,Uf:function(e){const r=new pb;r.inSituPut(Da.XS.string.fromString("code"),[Da.XS.string.fromString(e.code)]);r.inSituPut(Da.XS.string.fromString("message"),[Da.XS.string.fromString(e.message)]);r.inSituPut(Da.XS.string.fromString("name"),[Da.XS.string.fromString(e.name)]);
r.inSituPut(Da.XS.string.fromString("error"),[new Ac(e)]);return r},Wf:ea,Pk:function(e){if(typeof e!=="undefined")return p(e,"module",20)+"#"+p(e,"line",10)},ib:L,Ec:V,isArray:da,isMap:Z,gd:la,ih:function(e){return e instanceof qi},bj:v,hl:b,zj:n,xj:function(e){fa=e},ll:T,Da:E,kg:Q,Sd:B,Ih:function(e){return e.code==="AZ"?ca.double.cast(e):e},Kj:D}}();
// Input 81
abstractNode=Node;
HostPlatform=function(){function a(M,g=!1){let l=new XMLHttpRequest,k;try{l.open("GET",M,!1),l.setRequestHeader("Accept","application/xml, text/xml;q=0.9, application/xhtml+xml;q=0.8, */*;q=0.7"),l.send(null)}catch(q){throw new F("Get failure "+M,"FODC0002");}if(l.status===200)g?k={responseText:l.responseText,contentType:l.getResponseHeader("Content-Type")}:k=l.responseText;else throw new F("Failed to read file at "+M,"FODC0002");return k}function c(){Math.trunc=Math.trunc||function(M){return M<0?
Math.ceil(M):Math.floor(M)};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(M){if(this===null||typeof this=="undefined")throw new TypeError("Array.prototype.findIndex called on null or undefined");if(typeof M!=="function")throw new TypeError("predicate must be a function");let g=Object(this),l=g.length>>>0,k=arguments[1],q;for(let y=0;y<l;y++)if(q=g[y],M.call(k,q,y,g))return y;return-1},enumerable:!1,configurable:!1,writable:!1});Array.prototype.includes||
Object.defineProperty(Array.prototype,"includes",{value:function(M){if(this===null||typeof this=="undefined")throw new TypeError("Array.prototype.includes called on null or undefined");return this.findIndex(g=>g===M)}});String.prototype.includes||(String.prototype.includes=function(M,g){typeof g!=="number"&&(g=0);return g+M.length>this.length?!1:this.indexOf(M,g)!==-1})}let n=Resources,v;return{name:"Browser",edition:"EE",xdmDTlocale:function(){return!0},init:function(){c()},cryptoPromise:function(M){M=
(new TextEncoder).encode(M);return window.crypto.subtle.digest("SHA-256",M)},inBrowser:function(){return!0},expose:function(M,g){window[g]=M;try{module.exports=M}catch(l){}},encodeToBase64:function(M){return btoa(M)},parseXmlFromString:function(M,g,l=null){M=M.replace(/\r\n|\r(?!\n)/g,"\n");l||="application/xml";try{const q=(new DOMParser).parseFromString(M,l);if(q.getElementsByTagName("parsererror").length===0)var k=!1;else{if(!v)try{v=(new DOMParser).parseFromString("<","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(y){}k=
q.getElementsByTagNameNS(v,"parsererror").length>0}if(k)throw Error(q.getElementsByTagNameNS(v,"parsererror")[0].textContent);return q}catch(q){throw new F("Misplaced or malformed markup"+(q.message?": "+q.message:""),"FODC0002");}},resource:function(M){return n[M]},readFile:function(M){return a(M,!1)},readFileSync:a,resourcePromise:function(M){let g;const l=M.type||"text",k=M.encoding;let q="file";if(M.file)g=Promise.reject(new F("File access not supported in browser ("+M.file+")","SXJS0009"));else if(M.location){let y=
M.location,K=y;y instanceof URL?y=y.toString():K=new URL(y);q=y;K.protocol==="file:"?g=Promise.reject(new F("File access not supported in browser ("+K+")","SXJS0009")):g=fe.Ni(y,fe.gi(M),l,k,!0)}return g.then(y=>{if(l==="text"||l==="xml")y=fe.Fg(y);return Promise.resolve(fe.Gg(y))}).catch(y=>{y=fe.uj(y,M,q,"SXJS0009");return Promise.reject(y)})},resolveUri:function(M,g){try{return(g&&g!==null&&g!==""?M&&M!==""?new URL(M,g):new URL(g):new URL(M)).toString()}catch(l){throw new F("Failed URI resolution: href="+
M+" base="+g+" -- "+l,"FODC0005");}},baseURL:function(){return window.document.baseURI},getDefaultDeliverMessage:function(){return function(M){let g="";qc.Jb(M).expand().forEach(function(l){g+=(g===""?"":" ")+l.toString()});console.log("xsl:message: "+g)}},isHTMLElement:function(M){return M.namespaceURI==="http://www.w3.org/1999/xhtml"},saxonPrint:function(M){console.log(M)},createDocument:function(){return document.implementation.createDocument("","",null)},setDocURI:function(M,g){M._saxonBaseUri=
g;return M},newURL:function(M,g=null){return g!==null?new URL(M,g):new URL(M)},globalObject:window,addEventListener:function(M,g,l,k){const q="httpabort afterprint beforeprint beforeunload hashchange languagechange message offline online pagehide pageshow popstate storage unhandledrejection unload resize".split(" ");k?k.addEventListener(M,g,l):q.indexOf(M)===-1?window.document.addEventListener(M,g,l):window.addEventListener(M,g,l)}}}();
// Input 82
// Input 83
// Input 84
(function(){function a(u,f,E,J,z){switch(u){case xa.Ma+"/math":return g(f,E,J,z);case xa.Ma+"/map":return M(f,E,J,z);case xa.Ma+"/array":return v(f,E,J,z);case xa.hd:return n(f,E,J,z);default:const b=D.getSignature(u,f);if(!b)throw new F("Unknown function Q{"+u+"}"+f,"SXJS0003",z);if(!b.impl)throw new F("No implementation provided for Q{"+u+"}"+f,"SXJS0003",z);if(b.api==="legacy")return b.impl(E,J,z);let d=b.alphaTree;u=[];for(f=0;f<E.length;f++)J=E[f],z=d.a[f],z.o==="1"||z.o==="?"?u.push(Mc(J.next(),
!0)):u.push((new ad(J))[Symbol.iterator]());E=b.impl.call(null,...u);return E instanceof Promise?wc(new Ac(E.then(h=>c(h,d)))):c(E,d)}}function c(u,f){if(u instanceof Uc)return u;f=f.r;if(K.isPrototypeOf(u))return u instanceof ad?u.saxonIterator():new bd(new Qc(u));if(u===null||typeof u==="undefined")return nb;u=Pc(u);if(u.length===1)return u=u[0],f=f.p,f=Da.ma(u)&&f!=="A"?Da.codes[f].cast(u):u,ob([f]);throw new F("Internal error: not handling expanded.length !== 1","SXJS0003");}function n(u,f,E,
J){function z(p,I){for(let A=0;A<I.length;A++){if(p===null)return;try{p=p[I[A]]}catch(x){if(x.code!==null&&typeof x.code!=="undefined")throw x;throw new F("Failed to get property "+I[A],"SXJS0007",J);}if(typeof p==="undefined")return}return p}function b(p){if(typeof p!=="string")throw new F(`Cannot interpolate a ${typeof p}`,"SXJS0017");if(p.indexOf("`")<0)return p.split(".");let I=[""],A=0,x=0,N=!0;for(;x<p.length;){const P=p.substring(x,x+1);switch(P){case "`":N?N=!1:x+1<p.length&&p.substring(x+
1,x+2)==="`"?(I[A]+="`",x++):N=!0;break;case ".":N?(A++,I[A]=""):I[A]+=P;break;default:I[A]+=P}x++}if(!N)throw new F(`Mismatched quotes in ${p}`,"SXJS0018");return I}function d(p,I,A,x){let N;try{N=p.apply(A,I)}catch(P){if(P.code!==null&&typeof P.code!=="undefined")throw P;throw new F("Failed to call method "+p,"SXJS0007",J);}return x?N===null||typeof N==="undefined"?nb:ob(Bc(N)):h(N)}function h(p){var I;p instanceof Uc?I=p:I=p instanceof Uc||Da.ma(p)||qc.gd(p)||Gc.U(p)?wc(p):wc(new Ac(p));return I}
function t(p){return p instanceof Ac&&p.value instanceof Promise}function m(p){return p instanceof Ac?p.value:p}function L(p){if(!(p instanceof qb))throw new F("Failed processing arguments for IXSL function call","SXJS0007",J);const I=[];p.value.length!==0&&p.value.forEach(function(A){if(A.length!==1)throw new F("Failed processing arguments for IXSL function call. With convert-args=false, all members of the XDM array $arguments must be single items","SXJS0007",J);I.push(m(A[0]))});return I}function V(p,
I,A){I=k.string.fromString(I);return p&&p.containsKey(I)?p.get(I)[0].toBoolean():A}function ea(p,I,A){sa.ua("Warning "+p+": "+I,1,A)}function B(p,I,A){if(!I.Ye)throw new F(`${p} can only be called when using ixsl:promise`,"SXJS0007",A);}const Q={"abort-controller":function(p,I,A){I=null;p[0]&&(I=p[0].next(),I!==null&&(I=I.toNumber()));const x=new AbortController;if(I!==null){if(I<0)throw new F("ixsl:abort-controller: supplied timeout is negative: "+I,"SXJS0007",A);const N=new DOMException("Request aborted by timeout",
"TimeoutError");setTimeout(()=>x.abort(N),I)}return h(x)},all:function(p){B("ixsl:all",E,J);const I=[];p[0].next().value.forEach(function(A){I.push(m(A[0]))});p=Promise.all(I).then(A=>{const x=[];A.forEach(function(N){x.push(N.expand())});return wc(new qb(x))});return h(p)},"all-settled":function(p){B("ixsl:all-settled",E,J);const I=[];p[0].next().value.forEach(function(A){I.push(m(A[0]))});p=Promise.allSettled(I).then(A=>{const x=[];A.forEach(function(N){let P=new pb;P.inSituPut(Da.XS.string.fromString("status"),
[Da.XS.string.fromString(N.status)]);N.status==="fulfilled"?P.inSituPut(Da.XS.string.fromString("value"),N.value.expand()):P.inSituPut(Da.XS.string.fromString("reason"),[qc.Uf(N.reason)]);x.push([P])});return wc(new qb(x))});return h(p)},any:function(p){B("ixsl:any",E,J);const I=[];p[0].next().value.forEach(function(A){I.push(m(A[0]))});p=Promise.any(I).then(A=>A);return h(p)},apply:function(p,I,A){var x=p[2]?p[2].next():null;I=V(x,"convert-result",!0);const N=V(x,"convert-args",!0);x=m(p[0].next());
if(typeof x!=="function")throw new F("ixsl:apply: first argument is not a function","SXJS0007",A);p=p[1].next();p=N?Mc(p):L(p);return d(x,p,null,I)},call:function(p,I,A){var x=p[3]?p[3].next():null;I=V(x,"convert-result",!0);x=V(x,"convert-args",!0);var N=m(p[0].next());if(N===null||typeof N=="undefined")throw new F("ixsl:call: specified object is "+N,"SXJS0007",A);const P=p[1].next().toString();var T=b(P);const Y=T.pop();N=z(N,T);if(typeof N=="undefined"||N===null)throw new F("Encountered null or undefined in path to nested object for ixsl:call: '"+
T.join(".")+"'","SXJS0007",A);T=N[Y];if(typeof T==="undefined")throw new F("ixsl:call: object method '"+P+"' not found","SXJS0007",A);if(typeof T!=="function")throw new F("ixsl:call: property '"+P+"' is not a function","SXJS0007",A);p=p[2].next();p=x?Mc(p):L(p);return d(T,p,N,I)},"catch":function(p,I,A){B("ixsl:catch",I,A);try{const x=m(p[0].next());if(!(x instanceof Promise))throw new F("ixsl:catch first argument is not a promise: "+sa.showValue(x),"SXJS0007",A);let N=p[1].expand();if(N.length!==
1)throw new F("ixsl:catch must have exactly one function item as the second argument. Supplied length "+N.length,"SXJS0007",A);const P=N[0];if(!(P instanceof yc.XdmFunction&&P.arity===1))throw new F("ixsl:catch function must return an arity-1 function","SXJS0007",A);const T=x.catch(Y=>{Y=P.evaluate([[qc.Uf(Y)]],I,A).expand();if(Y.length===1){let da=Y[0];if(t(da))return da.value}return ob(Y)});return h(T)}catch(x){return h(Promise.reject(x))}},contains:function(p,I,A){var x=m(p[0].next());I=!0;if(x===
null||typeof x=="undefined")throw new F("ixsl:contains: specified object is "+x,"SXJS0007",A);p=p[1].next().toString();p=b(p);const N=p.pop();x=z(x,p);if(typeof x=="undefined"||x===null)throw new F("Encountered null or undefined in path to nested object for ixsl:contains: '"+p.join(".")+"'","SXJS0007",A);typeof x[N]=="undefined"&&(I=!1);return ob(Bc(I))},doc:function(p,I,A){B("ixsl:doc",I,A);try{const x=fe.Zd(p,I,A);if(!x)return h(Promise.resolve(nb));const N=I.fixed.Ta,P=I.fixed.Sb;if(N[x]&&!(N[x]instanceof
F))return h(Promise.resolve(wc(N[x])));const T=new Headers;T.append("Accept","application/xml, text/xml;q=0.9, application/xhtml+xml;q=0.8, */*;q=0.7");I={location:x,headers:T,expr:A,type:"xml"};if(p[1]){let da=m(p[1].next());if(da!==null){if(!(da instanceof AbortController))throw new F("Object supplied in second argument of ixsl:doc is not an AbortController: "+sa.showValue(da),"SXJS0007",A);I.controller=da}}const Y=na.fc(I).then(da=>{da=Gc.dc(na.Rb(da));da._saxonBaseUri=da._saxonDocUri=x;N[x]=da;
return wc(da)}).catch(da=>{P[x]=N[x]=da;throw da;});return h(Y)}catch(x){return h(Promise.reject(x))}},"doc-fetched":function(p,I,A){p=fe.Zd(p,I,A);if(!p)return sd(!1);I=I.fixed.Ta[p];return sd(I&&!(I instanceof F))},eval:function(p,I,A){I=p[1]?p[1].next():null;I=V(I,"convert-result",!0);p=p[0].next().toString();let x;try{x=(new Function("return ("+p+")"))()}catch(N){throw new F("Failed to process ixsl:eval: "+N.toString(),"SXJS0007",A);}return I?ob(Bc(x)):h(x)},event:function(p,I,A){if(!na.ra())throw new F("ixsl:event is only available in the browser",
"SXJS0007",A);return I.de===null?nb:wc(Bc(I.de)[0])},"finally":function(p,I,A){B("ixsl:finally",I,A);try{const x=m(p[0].next());if(!(x instanceof Promise))throw new F("ixsl:finally first argument is not a promise: "+sa.showValue(x),"SXJS0007",A);let N=p[1].expand();if(N.length!==1)throw new F("ixsl:finally must have exactly one function item as the second argument. Supplied length "+N.length,"SXJS0007",A);const P=N[0];if(!(P instanceof yc.XdmFunction&&P.arity===0))throw new F("ixsl:finally function must return an arity-0 function",
"SXJS0007",A);const T=x.finally(()=>{let Y=P.evaluate([],I,A).expand();if(Y.length===1){let da=Y[0];if(t(da))return da.value}return ob(Y)});return h(T)}catch(x){return h(Promise.reject(x))}},get:function(p,I,A){var x=p[2]?p[2].next():null;x=V(x,"convert-result",!0);var N=p[0].next(),P=m(N);if(P===null||typeof P=="undefined"){if(N instanceof Ac)throw new F("ixsl:get: specified object is "+P,"SXJS0007",A);throw new F("ixsl:get: specified object not found","SXJS0007",A);}p=p[1].next().toString();N=b(p);
const T=N.pop();P=z(P,N);if(typeof P=="undefined"||P===null)throw new F("Encountered null or undefined in path to nested object for ixsl:get: '"+N.join(".")+"'","SXJS0007",A);A=P[T];return x?typeof A=="undefined"?(ea("ixsl:get","object property '"+p+"' not found",I.fixed.Ga),nb):A===null?nb:ob(Bc(A)):h(A)},"http-request":function(p,I){B("ixsl:http-request",I,J);var A=p[0].next();A=Mc(A,!0);fe.sj(A);sa.ua("HTTP request prepared",2,I.fixed.Ga);let x=null;if(p[1]&&(x=m(p[1].next()),x!==null&&!(x instanceof
AbortController)))throw new F("Object supplied in second argument of ixsl:http-request is not an AbortController: "+sa.showValue(x),"SXJS0007",J);if(x===null&&(x=new AbortController,p=0,"timeout"in A&&(p=A.timeout),p!==0)){const N=new DOMException("Request aborted by timeout","TimeoutError");setTimeout(()=>x.abort(N),p)}I=fe.Oi(A,x,I,!0).then(N=>wc(N[0]));return h(I)},"json-parse":function(p,I,A){I=p[1]?p[1].next():null;I=V(I,"convert-result",!1);p=p[0].next().toString();let x;try{x=JSON.parse(p)}catch(N){throw new F("Failed to parse JSON in ixsl:json-parse: "+
N.toString(),"SXJS0007",A);}return I?ob(Bc(x)):wc(new Ac(x))},"json-doc":function(p,I,A){B("ixsl:json-doc",I,A);try{const N=fe.yd(p,I,A);if(!N)return h(Promise.resolve(nb));const P=p[1]?p[1].next():null,T=I.fixed.kb,Y=I.fixed.Sb;if(T[N]&&!(T[N]instanceof F)){var x=ae.nd(T[N],P,I);return h(Promise.resolve(wc(x)))}x={location:N,expr:A,type:"json"};if(p[2]){let Z=m(p[2].next());if(Z!==null){if(!(Z instanceof AbortController))throw new F("Object supplied in third argument of ixsl:json-doc is not an AbortController: "+
sa.showValue(Z),"SXJS0007",A);x.controller=Z}}const da=na.fc(x).then(Z=>{T[N]=Z;Z=ae.nd(Z,P,I);return wc(Z)}).catch(Z=>{Y[N]=T[N]=Z;throw Z;});return h(da)}catch(N){return h(Promise.reject(N))}},location:function(p,I,A){if(!na.ra())throw new F("ixsl:location is only available in the browser","SXJS0007",A);return wc(Bc(window.location.toString())[0])},"new":function(p,I,A){var x=p[2]?p[2].next():null;I=V(x,"convert-result",!1);x=V(x,"convert-args",!0);const N=p[0].next().toString();if(!N.match(q))throw new F("Name is not a valid class name:"+
N,"SXJS0010");p=p[1].next();evalArgName=x?Mc(p):L(p);let P;try{P=(new Function("return ("+`new ${N}(...evalArgName)`+")"))()}catch(T){throw new F("Failed to process ixsl:new: "+T.toString(),"SXJS0007",A);}return I?ob(Bc(P)):h(P)},page:function(p,I){return wc(Bc(I.masterDocument)[0])},"query-params":function(p,I,A){function x(T){return k.string.fromString(decodeURIComponent(T.replace(N," ")))}if(!na.ra())throw new F("ixsl:query-params is only available in the browser","SXJS0007",A);let N=/\+/g;I=/([^&=]+)=?([^&]*)/g;
A=window.location.search.substring(1);let P=new pb;for(;(p=I.exec(A))!==null;){const T=P.get(x(p[1]));T.push(x(p[2]));P.inSituPut(x(p[1]),T)}return wc(P)},race:function(p){B("ixsl:race",E,J);const I=[];p[0].next().value.forEach(function(A){I.push(m(A[0]))});p=Promise.race(I).then(A=>A);return h(p)},resolve:function(p){B("ixsl:resolve",E,J);p=p[0].expand();p.length===1?(p=p[0],p=t(p)?Promise.resolve(p.value):Promise.resolve(wc(p))):p=Promise.resolve(ob(p));return h(p)},sleep:function(p,I,A){B("ixsl:sleep",
I,A);try{const x=p[0].next().value;if(x<0)throw new F("ixsl:sleep supplied arg is negative: "+x,"SXJS0007",A);const N=(new Promise(P=>setTimeout(P,x))).then(()=>nb);return h(N)}catch(x){return h(Promise.reject(x))}},source:function(p,I){p=I.fixed.Bc;return typeof p=="undefined"||p===null?nb:wc(Bc(p)[0])},style:function(p,I,A){if(!na.ra())throw new F("ixsl:style is only available in the browser","SXJS0007",A);p=p[0].next();p=Gc.ag(p)?window.getComputedStyle(p):{};I=new pb;for(A=0;A<p.length;A++){const x=
p.item(A),N=p.getPropertyValue(x);typeof N==="undefined"||N===null?I.inSituPut(k.string.fromString(x),[]):I.inSituPut(k.string.fromString(x),[k.string.fromString(N.toString())])}return wc(I)},then:function(p,I,A){B("ixsl:then",I,A);try{const x=m(p[0].next());if(!(x instanceof Promise))throw new F("ixsl:then first argument is not a promise: "+sa.showValue(x),"SXJS0007",A);let N=p[1].expand();if(N.length!==1)throw new F("ixsl:then must have exactly one function item as the second argument. Supplied length "+
N.length,"SXJS0007",A);const P=N[0];if(!(P instanceof yc.XdmFunction&&P.arity===1))throw new F("ixsl:then function must return an arity-1 function","SXJS0007",A);const T=x.then(Y=>{Y=P.evaluate([Y.expand()],I,A).expand();if(Y.length===1){let da=Y[0];if(t(da))return da.value}return ob(Y)});return h(T)}catch(x){return h(Promise.reject(x))}},"unparsed-text":function(p,I,A){B("ixsl:unparsed-text",I,A);try{const x=fe.yd(p,I,A);if(!x)return h(Promise.resolve(nb));const N=I.fixed.kb,P=I.fixed.Sb;if(N[x]&&
!(N[x]instanceof F))return h(Promise.resolve(tc(N[x])));I={location:x,expr:A,type:"text"};if(p[2]){let da=m(p[2].next());if(da!==null){if(!(da instanceof AbortController))throw new F("Object supplied in third argument of ixsl:unparsed-text is not an AbortController: "+sa.showValue(da),"SXJS0007",A);I.controller=da}}let T=fe.Ne(p[1]?l(p[1]):"");T&&(I.encoding=T);const Y=na.fc(I).then(da=>{N[x]=da;return tc(da)}).catch(da=>{P[x]=N[x]=da;throw da;});return h(Y)}catch(x){return h(Promise.reject(x))}},
"unparsed-text-fetched":function(p,I,A){p=fe.Zd(p,I,A);if(!p)return sd(!1);I=I.fixed.kb[p];return sd(I&&!(I instanceof F))},window:function(){return wc(Bc(na.Ki())[0])},"remove-attribute":function(p,I,A){const x=p[0].next().toString();p=p[1].next();if(p.nodeType!==1||p.ownerDocument!==I.masterDocument)throw new F("Context item for ixsl:remove-attribute must be an element in the master document","SXJS0007",A);I=qc.kg(A,x,!1);I.uri!==""?p.removeAttributeNS(I.uri,I.local):p.removeAttribute(I.local);
return nb},"remove-property":function(p,I,A){const x=p[0].next().toString();var N=m(p[1].next());const P=b(x);p=P.pop();N=z(N,P);if(typeof N=="undefined"||N===null)throw new F("Encountered null or undefined in path to nested object for ixsl:remove-property: '"+P.join(".")+"'","SXJS0007",A);if(typeof N[p]=="undefined")return ea("ixsl:remove-property","'"+x+"' not found for supplied object",I.fixed.Ga),nb;A=N.hasOwnProperty(p);delete N[p]&&A||ea("ixsl:remove-property","'"+x+"' could not be removed for supplied object",
I.fixed.Ga);return nb},"schedule-action":function(p,I,A){throw new F("ixsl:schedule-action - shouldn't be here","SXJS0007",A);},"set-attribute":function(p,I,A){const x=p[0].next().toString(),N=p[1].next().toString();p[2]||vc(I,"SXJS0007","ixsl:set-attribute",A);p=p[2]?p[2].next():sc(I);I=Gc.Ac(I.masterDocument);if(p.nodeType!==1||Gc.Ac(p)!==I)throw new F("Context item for ixsl:set-attribute must be an element in the master document","SXJS0007",A);const P=qc.kg(A,x,!1);P.uri!==""?(P.prefix===""&&Gc.Ec(p).forEach(function(T){T.uri===
P.uri&&(P.prefix=T.prefix)}),p.setAttributeNS(P.uri,P.toString(),N)):p.setAttribute(P.local,N);return nb},"set-property":function(p,I,A){var x=p[0].next().toString();I=!0;p[3]&&(I=Mc(p[3].next()));var N=p[1].next();I=I?Mc(N):m(N);p=m(p[2].next());x=b(x);N=x.pop();p=z(p,x);if(typeof p=="undefined"||p===null)throw new F("Encountered null or undefined in path to nested object for ixsl:set-property: '"+x.join(".")+"'","SXJS0007",A);if(typeof p!=="object")return nb;p[N]=I;return nb},"set-style":function(p,
I,A){if(!na.ra())throw new F("ixsl:set-style is only available in the browser","SXJS0007",A);A=p[0].next().toString();const x=Mc(p[1].next());p=p[2].next();if(!(Gc.ag(p)&&"style"in p))return ea("ixsl:set-style","style '"+A+"' cannot be set for supplied object",I.fixed.Ga),nb;p.style[A]=x;return nb}};if(!Q[u])throw new F("Unknown ixsl function: "+u,"SXJS0003",J);return Q[u](f,E,J)}function v(u,f,E,J){function z(m,L){if(m<1||m>L)throw new F("Array index ("+m+") out of bounds (1 to "+L+")","FOAY0001",
J);}function b(m){return m[0].next().value}function d(m){return wc(new qb(m))}function h(m,L,V,ea){const B=L.fixed.ea;let Q=m[1].expand();const p=m[2].expand()[0],I=Object.keys(L.na).length;if(p instanceof yc.XdmFunction)m=b(m),ea||(m=m.reverse()),m.forEach(A=>{Q=p.evaluate(ea?[Q,A]:[A,Q],L,V).expand()});else{let A;p.N!=="function"&&(A=p);m[0].forEachItem(function(x){const N=L.X(!0);A&&(N.pa=A);xc(N);N.oa="function";N.ab={};N.Wa=null;N.focus=null;ea?(N.na[I]=Q,N.na[I+1]=[x]):(N.na[I]=[x],N.na[I+1]=
Q);Q=B.evaluate(void 0,N).expand()})}return ob(Q)}const t={append:function(m){return d(b(m).concat([m[1].expand()]))},filter:function(m,L,V){const ea=m[1].expand()[0];Object.keys(L.na);m=b(m);if(ea.evaluate){const B=[];m.forEach(function(Q){const p=ea.evaluate([Q],L,V).expand();if(Array.isArray(p)&&p.length!==1||!k.boolean.matches(p[0]))throw new F("Wrong type for function result in filter(). Expecting xs:boolean, supplied value is "+sa.showValue(p),"XPTY0004",V);p[0].toBoolean()&&B.push(Q)});return d(B)}throw new F("Argument supplied to array:filter is not a function",
"XPTY0004",V);},flatten:function(m){return qc.flatten(m[0])},"fold-left":function(m,L,V){return h(m,L,V,!0)},"fold-right":function(m,L,V){return h(m,L,V,!1)},"for-each":function(m,L,V){const ea=m[1].expand()[0];m=b(m);Object.keys(L.na);if(ea.evaluate){const B=[];m.forEach(function(Q){B.push(ea.evaluate([Q],L,V).expand())});return d(B)}},"for-each-pair":function(m,L,V){let ea=m[2].expand();if(ea.length!==1)throw new F("for-each-pair() must have exactly one function item as the third argument. Supplied length "+
ea.length,"XPTY0004",V);ea=ea[0];Object.keys(L.na);const B=[],Q=m[0].next().value[Symbol.iterator]();m=m[1].next().value[Symbol.iterator]();let p=Q.next().value,I=m.next().value;if(ea instanceof yc.XdmFunction)for(;p&&I;)B.push(ea.evaluate([p,I],L,V).expand()),p=Q.next().value,I=m.next().value;return d(B)},"_from-sequence":function(m){const L=[];m[0].forEachItem(function(V){L.push([V])});return d(L)},get:function(m){const L=b(m);m=m[1].next().toNumber();z(m,L.length);return ob(L[m-1])},head:function(m){m=
b(m);z(1,m.length);return ob(m[0])},"insert-before":function(m){const L=b(m),V=m[1].next().toNumber();z(V,L.length+1);m=m[2].expand();return d(L.slice(0,V-1).concat([m]).concat(L.slice(V-1)))},join:function(m){const L=[];m[0].forEachItem(function(V){V.value.forEach(function(ea){L.push(ea)})});return d(L)},put:function(m){const L=b(m),V=m[1].next().toNumber();z(V,L.length);m=m[2].expand();return d(L.slice(0,V-1).concat([m]).concat(L.slice(V)))},remove:function(m){const L=b(m),V=[];m[1].forEachItem(function(ea){ea=
ea.toNumber();z(ea,L.length);V.push(ea-1)});return d(L.filter(function(ea,B){return V.indexOf(B)<0}))},reverse:function(m){return d(b(m).slice().reverse())},size:function(m){return pd(m[0].next().size())},sort:function(m,L,V){const ea=Wd.Te(V,m[1],L);let B=qc.Jb;if(m[2]){const Q=m[2].next();B=function(p){return Q.evaluate([[p]],L,V)}}return d(b(m).slice().sort(function(Q,p){return m[1]?Xd(ob(Q).mapOneToMany(B),ob(p).mapOneToMany(B),ea):Xd(ob(Q).mapOneToMany(B),ob(p).mapOneToMany(B))}))},subarray:function(m){const L=
b(m),V=m[1].next().toNumber();z(V,L.length+1);m=m[2]?m[2].next().toNumber():L.length-V+1;if(m<0)throw new F("Length is negative","FOAY0002");z(V+m,L.length+1);return d(L.slice(V-1,V+m-1))},tail:function(m){m=b(m);z(1,m.length);return d(m.slice(1))},"_to-sequence":function(m){const L=[];b(m).forEach(function(V){V.forEach(function(ea){L.push(ea)})});return ob(L)}};if(!t[u])throw new F("Unknown array function: "+u,"SXJS0003",J);return t[u](f,E,J)}function M(u,f,E,J){const z={contains:function(b){const d=
b[0].next();b=b[1].next();return sd(d.containsKey(b))},create:function(b){const d=new pb;b[0].forEachItem(function(h){h.forAllPairs(function(t){d.inSituPut(t.k,t.v)})});return wc(d)},entry:function(b){const d=new pb;d.inSituPut(b[0].next(),b[1].expand());return wc(d)},find:function(b){function d(L){qc.isArray(L)?L.value.forEach(h):qc.isMap(L)&&(L.containsKey(m)&&t.push(L.get(m)),L.keys().forEach(function(V){h(L.get(V))}))}function h(L){L.forEach(d)}const t=[],m=b[1].next();h(b[0].expand());return wc(new qb(t))},
"for-each":function(b,d,h){const t=b[0].next();if(t instanceof Ac)throw new F("Argument to map:for-each is a JSValue","XPTY0004",h);const m=t.keys(),L=b[1].expand()[0];if(L.evaluate){let V=[];m.forEach(function(ea){V=V.concat(L.evaluate([[ea],t.get(ea)],d,h).expand())});return ob(V)}throw new F("Argument to map:for-each is not a function","XPTY0004",h);},get:function(b){const d=b[0].next();b=b[1].next();return ob(d.get(b))},keys:function(b){b=b[0].next();if(b instanceof Ac)throw new F("Argument to map:keys is a JSValue",
"XPTY0004",J);return ob(b.keys())},merge:function(b){const d=new pb,h=b[1]?b[1].next():null,t=k.string.fromString("duplicates"),m=h&&h.containsKey(t)?h.get(t).toString():"use-first";b[0].forEachItem(function(L){if(L instanceof Ac)throw new F("JSValue supplied to map:merge","XPTY0004",J);L.forAllPairs(function(V){if(!d.containsKey(V.k)||["use-last","unspecified","use-any"].includes(m))d.inSituPut(V.k,V.v);else{if(m==="reject"){var ea=k.string.fromString("duplicates-error-code");ea=h.containsKey(ea)?
h.get(ea).toString():"FOJS0003";throw new F("Duplicate key value '"+V.k.toString()+"'",ea,J);}if(m==="combine"){let B=[];d.get(V.k).forEach(function(Q){B.push(Q)});V.v.forEach(function(Q){B.push(Q)});d.inSituPut(V.k,B)}}})});return wc(d)},_new:function(b){const d=new pb;b[0]&&b[0].forEachItem(function(h){h.forAllPairs(function(t){if(d.containsKey(t.k))throw new F("Duplicate key value '"+t.k.toString()+"'",E.fixed.options.language==="XSLT"?"XTDE3365":"XQDY0137",J);d.inSituPut(t.k,t.v)})});return wc(d)},
put:function(b){const d=b[0].next(),h=b[1].next();b=b[2].expand();if(d instanceof Ac)throw new F("Argument to map:put is a JSValue","XPTY0004",J);return wc(d.put(h,b))},remove:function(b){let d=b[0].next();if(d instanceof Ac)throw new F("Argument to map:remove is a JSValue","XPTY0004",J);b[1].forEachItem(function(h){d=d.remove(h)});return wc(d)},size:function(b){b=b[0].next();if(b instanceof Ac)throw new F("Argument to map:size is a JSValue","XPTY0004",J);let d=0;b.forAllPairs(function(){d++});return pd(d)},
"untyped-contains":function(b){const d=b[0].next();b=b[1].next();return sd(d.containsKey(b))}};if(!z[u])throw new F("Unknown map function: "+u,"SXJS0003",J);return z[u](f,E,J)}function g(u,f,E,J){function z(m){return m===null?(h=!0,Number.NaN):m.toNumber()}function b(){const m=f[0].next();return z(m?m:qc.Pa(J)(E).next())}function d(){const m=f[1].next();return z(m?m:qc.Lg(J)(E).next())}let h=!1;const t=function(){switch(u){case "pi":return Math.PI;case "exp":return Math.exp(b());case "exp10":return Math.pow(10,
b());case "log":return Math.log(b());case "log10":return Math.log(b())/Math.LN10;case "pow":const m=b(),L=d();return m===-1&&(L===Infinity||L===-Infinity)||m===1?1:Math.pow(m,L);case "sqrt":return Math.sqrt(b());case "sin":return Math.sin(b());case "cos":return Math.cos(b());case "tan":return Math.tan(b());case "asin":return Math.asin(b());case "acos":return Math.acos(b());case "atan":return Math.atan(b());case "atan2":return Math.atan2(b(),d());default:throw new F("Unknown math function "+J.name,
"XPST0017",J);}}();return h?nb:qd(t)}function l(u){return(u=u.next())?u.value:""}const k=Da.XS,q=RegExp("^[A-Za-z_][A-Za-z_0-9.]*$"),y=Object.getPrototypeOf(function*(){}).prototype,K=Object.getPrototypeOf(y),D=new ki;D.addLibrary(xa.qb,{apply:oi.apply,"compile-XPath":function(u,f,E){const J=u[0].next().toString();let z,b;u.length>1&&(z=u[1].next(),z=z!==null?Mc(z,!0):{});u.length>2&&(b=u[2]);return we.find("SaxonJS").internals.XPath.compileToXML(J,z,b,E,f)},"compile-GlobalContext":function(u,f,E){let J,
z;J=u[0].next();J=J!==null?Mc(J,!0):{};z=u[1].next();z=z!==null?Mc(z,!0):{};u=u[2].next();u=u!==null?Mc(u,!0):{};return we.find("SaxonJS").internals.XPath.compileGlobalContext(J,z,u,E,f)},"discard-document":function(u,f,E){u=u[0].next();if(u===null||u.nodeType!==9||!u._saxonBaseUri)throw new F("Node supplied to saxon:discard-document() is not a document node","XPTY0004",E);E=u._saxonBaseUri;u=f.fixed.Ta[E];delete f.fixed.Ta[E];delete f.fixed.Sb[E];return wc(u)},doc:oi.doc,"dynamic-error-info":function(u,
f){f=f.Oe;if(f===null)return nb;u=u[0].next().toString();switch(u){case "description":return tc(f.message);case "code":return wc(/^Q\{/.test(f.code)?k.QName.fromString(f.code):k.QName.fromParts("err","http://www.w3.org/2005/xqt-errors",f.code));case "value":return Array.isArray(f.errorObject)?ob(f.errorObject):f.errorObject?wc(f.errorObject):nb;case "module":return tc(f.xsltModule||"");case "line-number":return pd(f.xsltLineNr);case "column-number":return pd(-1);default:throw new F("unknown error info field "+
u,"SXJS0003");}},"has-uniform-namespaces":function(u){return sd(Gc.fh(u[0].next()))},"line-number":function(u){u=u[0].next().$k;return pd(u||-1)},"marshal-type":function(u){u=u[0].next().toString();u=jb(u);return wc(Kc(Bc(u))[0])},"message-count":function(u,f){u=u[0].next();let E=0;if(u)u=u.toEQName(),(E=f.qc[u])||(E=0);else for(let J in f.qc)E+=f.qc[J];return pd(E)},"parse-sequence-type":function(u){var f=u[0].next().toString();const E=u[1].next();u=Gc.Ii(E,xa.ui,"ns");if(u!=null){const J=mi.parseNsAttribute(u);
u=z=>J[z]}else u=J=>E.lookupNamespaceURI(J);f=di.parseSequenceType(f,u,()=>{let J=E;for(;J&&J.nodeType===1;){if(Gc.$(J).uri===xa.Rc&&J.hasAttributeNS("","xpath-default-namespace"))return J.getAttributeNS("","xpath-default-namespace");if(J.hasAttributeNS(xa.Rc,"xpath-default-namespace"))return J.getAttributeNS(xa.Rc,"xpath-default-namespace");J=Gc.Va(J)}});return wc(Kc(Bc(f.V()))[0])},"parse-XPath":function(u){const f=u[0].next().toString();let E="parse";u.length>1&&(E=u[1].next().toString());u=di.process(f,
E==="pattern.parseFast",null,!0);return wc(u)},permute:function(u){let f=[];u[0].expand().forEach(E=>f.push({key:Math.random(),Jj:E}));f=f.sort(function(E,J){return E.key-J.key});u=f.map(E=>E.Jj);return ob(u)},"system-id":function(u,f){u=sc(f);u=Gc.U(u)?Gc.baseURI(u):null;return wc(u===null?null:k.anyURI.fromString(u))},timestamp:function(u,f){return wc(k.dateTimeStamp.fromDate(new Date,-f.fixed.Bb.getTimezoneOffset()))}});D.addLibrary("http://exslt.org/common",{"node-set":function(u){return u[0]}});
qc.xj(a);return{evaluate:a,addLibrary:function(u){D.addLibrary(u.namespace,u.signatures)}}})();
// Input 85
ScheduleImpl=function(a,c,n,v){return M=>{const g=M.X(!1);g.Ye=!0;let l;if(n&&(l=n(g).next(),!(l instanceof yc.XdmFunction)||l.arity!==1&&l.arity!==0))throw new F("ixsl:promise/@on-completion must return an arity-0 or arity-1 function","XPTY0004",a);let k;if(v){k=v(g).next();if(!(k instanceof yc.XdmFunction&&k.arity===1))throw new F("ixsl:promise/@on-failure must return an arity-1 function","XPTY0004",a);let K=new pb;if(!k.Ve().yc()[0].matches([K]))throw new F("ixsl:promise/@on-failure function argument type must include map",
"XPTY0004",a);}let q;try{q=c(g).next()}catch(K){var y=Promise.reject(K)}typeof y==="undefined"&&(y=q instanceof Ac&&q.value instanceof Promise?q.value:Promise.reject(new F("ixsl:promise/@select must return a Promise","XPTY0004",a)));y=y.then(K=>{l&&(K=l.arity===0?[]:[K.expand()],l.evaluate(K,g,a).expand())}).catch(K=>{if(k)k.evaluate([[qc.Uf(K)]],g,a).expand();else throw K;});M.fixed.ic.push(y);return nb}};
// Input 86
(function(){function a(v){c=v;c.init();na.Cj(v)}let c={};const n={atom:ni.atom,getLogLevel:sa.getLogLevel,getProcessorInfo:ni.getProcessorInfo,getResource:ni.getResource,setLogLevel:sa.setLogLevel,serialize:ni.serialize,transform:Je.transform,XPath:{evaluate:ai.evaluate},XError:F,getConfigurationProperties:ni.getConfigurationProperties,getConfigurationProperty:ni.getConfigurationProperty,setConfigurationProperties:ni.setConfigurationProperties,setConfigurationProperty:ni.setConfigurationProperty,
resetIndexes:ni.resetIndexes,registerExtensionFunctions:function(v){(new ki).addLibrary(v.namespace,v.signatures)},Iter:td,JSValue:Ac,XdmArray:qb,XdmFunction:yc,XdmMap:pb,XS:Da.XS,XdmAttributeNode:vd,XdmNamespaceNode:ud,internals:{Atomic:Da,Big:ta,Codepoint:ua,Compare:Wd,Diag:sa,DomUtils:Gc,Expr:qc,Fetch:fe,NsConst:xa,Push:ee,Regex:ya,Serializer:ve,StringWriter:ve.yf,XPath:ai,checkOptions:Je.checkOptions,internalTransform:Je.internalTransform,getPlatform:function(){return c},getErrorCount:pa,resetErrorCount:ra}};
typeof window!=="undefined"||typeof HostPlatform!=="undefined"?(HostPlatform.entryPoint=n,a(HostPlatform),c.expose(n,"SaxonJS")):console.log("Platform binding delayed");Da.zf();ya.zf();Cb();we.register("SaxonJS",n);we.register("ExternalFunctionManager",new ki);return n})();}).call(this);

