@pie-players/pie-section-player 0.3.74 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +862 -866
- package/custom-elements.json +3922 -0
- package/dist/browser/assets/{evaluation-worker-DkU_wGh3.js → evaluation-worker-0xRDVTJx.js} +98934 -88735
- package/dist/browser/chunks/PUA-tLuTiQ7--f2b27953.js +1 -1
- package/dist/browser/chunks/ToolCoordinator-0a6c4088.js +1 -0
- package/dist/browser/chunks/accents-BTUYmhn9-cafeb96e.js +1 -1
- package/dist/browser/chunks/accents-b-i-CngHZsLL-e0eb98fd.js +1 -1
- package/dist/browser/chunks/arabic-BzEHMVZD-30ac1ade.js +1 -1
- package/dist/browser/chunks/arrows-VjxlU-jv-2e17c192.js +1 -1
- package/dist/browser/chunks/attribute-coercion-b93b482c.js +1 -0
- package/dist/browser/chunks/braille-BeWC_Ruq-a3bb8ef9.js +1 -1
- package/dist/browser/chunks/braille-d-Dk6J96GO-d832bfbf.js +1 -1
- package/dist/browser/chunks/browser-a3c32178.js +17 -16
- package/dist/browser/chunks/calculator-element-271c142f.js +11 -8
- package/dist/browser/chunks/calligraphic-Cew9cU3x-04cf0735.js +1 -1
- package/dist/browser/chunks/catalog-context-46d3e50e.js +1 -0
- package/dist/browser/chunks/catalog-owner-d602f784.js +1 -0
- package/dist/browser/chunks/cherokee-Cny3FYho-4da7d2f3.js +1 -1
- package/dist/browser/chunks/classPrivateFieldGet2-338e0179.js +1 -1
- package/dist/browser/chunks/classPrivateMethodInitSpec-563cd0a5.js +1 -0
- package/dist/browser/chunks/cyrillic-CfCDulXU-5550df0b.js +1 -1
- package/dist/browser/chunks/cyrillic-ss-lU7bNGG9-12eb0188.js +1 -1
- package/dist/browser/chunks/devanagari-CDIz2h-r-18c38725.js +1 -1
- package/dist/browser/chunks/dist-41b39e7f.js +1 -1
- package/dist/browser/chunks/dist-59132a53.js +1 -1
- package/dist/browser/chunks/dist-60d7afef.js +1 -1
- package/dist/browser/chunks/dist-ca9b9622.js +1 -1
- package/dist/browser/chunks/double-struck-BpJEQk8y-500ce8dd.js +1 -1
- package/dist/browser/chunks/focus-trap-44913bf3.js +1 -1
- package/dist/browser/chunks/fraktur-rLEq9DEH-44cc14d8.js +1 -1
- package/dist/browser/chunks/greek-BlraJTyL-90ce8924.js +1 -1
- package/dist/browser/chunks/greek-ss-D-EN2PK0-91610739.js +1 -1
- package/dist/browser/chunks/hebrew-GiQZeybp-b583f555.js +1 -1
- package/dist/browser/chunks/latin-b-BhEnC7R2-d13e06ff.js +1 -1
- package/dist/browser/chunks/latin-bi-DqiIKv3U-1dec8705.js +1 -1
- package/dist/browser/chunks/latin-i-B1xtwaE1-21637466.js +1 -1
- package/dist/browser/chunks/latin-xfWFlLkD-5bcea5cf.js +1 -1
- package/dist/browser/chunks/logger-8b07fb72.js +1 -1
- package/dist/browser/chunks/marrows-DD1NgMQi-15b63755.js +1 -1
- package/dist/browser/chunks/math-DpWn1mbG-38eeb914.js +1 -1
- package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -1
- package/dist/browser/chunks/{mathjax-D2JHb_R_-64780dc5.js → mathjax-BKrHE4xs-3ca05bf6.js} +41 -41
- package/dist/browser/chunks/monospace-D116QD2a-98d484fd.js +1 -1
- package/dist/browser/chunks/monospace-ex-DcXpouKS-456b403c.js +1 -1
- package/dist/browser/chunks/monospace-l-Ct5wkMDs-f34a4a9e.js +1 -1
- package/dist/browser/chunks/mshapes-DCp86WSX-c0055952.js +1 -1
- package/dist/browser/chunks/nl-NL-364d61b9.js +1 -1
- package/dist/browser/chunks/nl-NL-8b7e6d4b.js +1 -1
- package/dist/browser/chunks/phonetics-BwOCw2Y9-d2e3af59.js +1 -1
- package/dist/browser/chunks/phonetics-ss-CRtMn02f-579b6135.js +1 -1
- package/dist/browser/chunks/pie-api-client-687c319a.js +1 -1
- package/dist/browser/chunks/provider-4c704118.js +1 -1
- package/dist/browser/chunks/runtime-YFqnU6ic-d5c0cb49.js +8605 -0
- package/dist/browser/chunks/sans-serif-BYPZKlE9-2efdbcd9.js +1 -1
- package/dist/browser/chunks/sans-serif-b-B0kRKiC--b5530dce.js +1 -1
- package/dist/browser/chunks/sans-serif-bi-DXWul6mu-5370dba4.js +1 -1
- package/dist/browser/chunks/sans-serif-ex-Boux1kMP-aa178f31.js +1 -1
- package/dist/browser/chunks/sans-serif-i-676RFaSO-2db54474.js +1 -1
- package/dist/browser/chunks/sans-serif-r-DrN9xdZt-0fc72eea.js +1 -1
- package/dist/browser/chunks/script-0ohehnXc-526904f4.js +1 -1
- package/dist/browser/chunks/shapes-BG47NodJ-d59b0eca.js +1 -1
- package/dist/browser/chunks/{src-BcptuNS5-ed25d7fd.js → src-D_1goyPT-8cca0246.js} +81 -82
- package/dist/browser/chunks/{sre-engine-wf9s43gg-f09289c5.js → sre-0162a7a9.js} +18 -18
- package/dist/browser/chunks/sre-engine-ace23548.js +1 -0
- package/dist/browser/chunks/sre-engine-bj997w4b-891a4cbe.js +1 -0
- package/dist/browser/chunks/sre-locales-112320af.js +1 -0
- package/dist/browser/chunks/symbols-BqnUxf_t-83087e87.js +1 -1
- package/dist/browser/chunks/symbols-b-i-eg9k5hmF-9c461ac2.js +1 -1
- package/dist/browser/chunks/term-lookup-632cf6b1.js +1 -0
- package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +7 -6
- package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +6 -6
- package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +5 -5
- package/dist/browser/chunks/tool-dictionary-cecff3b4.js +3 -3
- package/dist/browser/chunks/tool-graph-cb0338e8.js +6 -6
- package/dist/browser/chunks/tool-host-contract-fae1c415.js +1 -0
- package/dist/browser/chunks/tool-instance-id-76ac45e2.js +1 -0
- package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +3 -3
- package/dist/browser/chunks/tool-periodic-table-43b133b8.js +13 -16
- package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +3 -3
- package/dist/browser/chunks/tool-protractor-23f77028.js +6 -6
- package/dist/browser/chunks/tool-ruler-1d9a03a6.js +12 -9
- package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +27 -33
- package/dist/browser/chunks/toolbar-registration-helpers-a7ab1ad4.js +194 -0
- package/dist/browser/chunks/variants-2LRNhOUP-966fc49d.js +1 -1
- package/dist/browser/pie-section-player.js +210 -100
- package/dist/chunks/nl-NL-364d61b9.js +35 -30
- package/dist/chunks/{sre-engine-wf9s43gg-f09289c5.js → sre-engine-bj997w4b-891a4cbe.js} +1 -1
- package/dist/component-definitions.d.ts +0 -2
- package/dist/components/shared/card-media-region.d.ts +3 -4
- package/dist/components/shared/composition.d.ts +3 -1
- package/dist/components/shared/framework-error-latch.d.ts +34 -0
- package/dist/components/shared/host-element.d.ts +10 -0
- package/dist/components/shared/kernel-host-default-body.d.ts +14 -0
- package/dist/components/shared/layout-host-methods.d.ts +12 -27
- package/dist/components/shared/missing-tool-providers.d.ts +6 -12
- package/dist/components/shared/player-preload.d.ts +4 -9
- package/dist/components/shared/section-player-backend-delivery.d.ts +1 -1
- package/dist/components/shared/section-player-card-context.d.ts +5 -4
- package/dist/components/shared/section-player-host-runtime.d.ts +32 -21
- package/dist/components/shared/section-player-layout-context.d.ts +77 -0
- package/dist/components/shared/section-player-own-event.d.ts +10 -0
- package/dist/components/shared/section-player-runtime-callbacks.d.ts +1 -1
- package/dist/components/shared/section-player-shell-layout.svelte.d.ts +3 -11
- package/dist/components/shared/section-player-view-state.d.ts +6 -2
- package/dist/components/shared/toolkit-ready-wait.d.ts +16 -0
- package/dist/contracts/host-hooks.d.ts +0 -7
- package/dist/contracts/runtime-host-contract.d.ts +0 -5
- package/dist/controllers/SectionController.d.ts +21 -6
- package/dist/controllers/types.d.ts +8 -1
- package/dist/item-section/index.d.ts +22 -0
- package/dist/item-section/index.js +37 -0
- package/dist/pie-section-player.d.ts +4 -6
- package/dist/pie-section-player.js +24965 -25463
- package/dist/policies/index.d.ts +1 -19
- package/dist/policies/index.js +6 -14
- package/dist/policies/types.d.ts +0 -4
- package/package.json +17 -55
- package/dist/browser/chunks/ToolCoordinator-cc2dc319.js +0 -1
- package/dist/browser/chunks/nds-icon-button-d602f784.js +0 -194
- package/dist/browser/chunks/pie-tool-calculator-cortex-0626bc24.js +0 -9
- package/dist/browser/chunks/pie-tool-calculator-geogebra-561236cb.js +0 -9
- package/dist/browser/chunks/runtime-C7H1jS4E-64772f5e.js +0 -8413
- package/dist/browser/chunks/tool-host-contract-b93b482c.js +0 -1
- package/dist/components/item-shell-element.d.ts +0 -1
- package/dist/components/shared/shell-registration.d.ts +0 -55
- package/dist/contracts/layout-contract.d.ts +0 -17
- package/dist/contracts/layout-contract.js +0 -0
- package/dist/contracts/layout-parity-metadata.d.ts +0 -4
- package/dist/contracts/layout-parity-metadata.js +0 -87
- package/dist/contracts/public-events.d.ts +0 -92
- package/dist/contracts/public-events.js +0 -12
- package/dist/policies/guards.d.ts +0 -2
- /package/dist/browser/chunks/{ItemToolBar-wr2myaah-2ce4b643.js → ItemToolBar-66hcwmfw-3bcb82a3.js} +0 -0
- /package/dist/chunks/{ItemToolBar-wr2myaah-1287ba31.js → ItemToolBar-66hcwmfw-1287ba31.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i,n as c}from"./mathjax-D2JHb_R_-64780dc5.js";c.dynamicSetup("","cyrillic-ss",i({CYSS:{"sans-serif":{1024:[.851,0,.597],1025:[.849,0,.597],1026:[.694,.022,.819],1027:[.851,0,.542],1028:[.716,.022,.639],1029:[.716,.022,.555],1030:[.695,0,.278],1031:[.849,0,.278,{ic:.003}],1032:[.694,.022,.472],1033:[.694,0,1.037],1034:[.694,0,1.021],1035:[.694,0,.764],1036:[.851,0,.694],1037:[.851,0,.694],1038:[.889,0,.667],1039:[.694,.195,.694],1040:[.694,0,.667],1041:[.694,0,.667],1042:[.694,0,.667],1043:[.694,0,.542],1044:[.694,.195,.728],1045:[.694,0,.597],1046:[.694,0,1.111],1047:[.716,.022,.611],1048:[.694,0,.694],1049:[.889,0,.694],1050:[.694,0,.694],1051:[.694,0,.711],1052:[.694,0,.875],1053:[.694,0,.694],1054:[.716,.022,.736],1055:[.694,0,.694],1056:[.694,0,.639],1057:[.716,.022,.639],1058:[.694,0,.68],1059:[.694,0,.667],1060:[.694,0,.833],1061:[.694,0,.667],1062:[.694,.195,.711],1063:[.694,0,.694],1064:[.694,0,1.083],1065:[.694,.195,1.1],1066:[.694,0,.868],1067:[.694,0,.889],1068:[.694,0,.667],1069:[.716,.022,.639],1070:[.716,.022,1.041],1071:[.694,0,.646],1072:[.461,.011,.48],1073:[.722,.011,.5],1074:[.445,0,.48],1075:[.445,0,.404],1076:[.445,.162,.539],1077:[.461,.011,.444],1078:[.445,0,.739],1079:[.461,.011,.444],1080:[.445,0,.537],1081:[.639,0,.537],1082:[.445,0,.489],1083:[.445,0,.528],1084:[.445,0,.669],1085:[.445,0,.517],1086:[.461,.011,.5],1087:[.445,0,.517],1088:[.455,.195,.517],1089:[.461,.011,.444],1090:[.445,0,.458],1091:[.445,.205,.461],1092:[.722,.195,.766],1093:[.445,0,.461,{ic:.004}],1094:[.445,.162,.548],1095:[.445,0,.537],1096:[.445,0,.766],1097:[.445,.162,.778],1098:[.445,0,.59],1099:[.445,0,.683],1100:[.445,0,.48],1101:[.461,.011,.444],1102:[.461,.011,.73],1103:[.445,0,.515],1104:[.64,.011,.444],1105:[.66,.011,.444],1106:[.722,.195,.489],1107:[.64,0,.39],1108:[.461,.011,.439],1109:[.461,.011,.383],1110:[.679,0,.239],1111:[.66,0,.239,{ic:.023}],1112:[.679,.205,.267],1113:[.445,0,.755],1114:[.445,0,.765],1115:[.722,0,.517],1116:[.64,0,.489],1117:[.64,0,.537],1118:[.639,.205,.461],1119:[.445,.162,.537],1120:[.716,.022,.916],1121:[.467,.022,.819],1122:[.75,0,.778],1123:[.639,0,.5],1124:[.716,.022,.944],1125:[.461,.011,.68],1126:[.694,0,.844],1127:[.445,0,.672],1128:[.694,0,1.177,{ic:.003}],1129:[.445,0,.936,{ic:.008}],1130:[.694,0,.944],1131:[.445,0,.794],1132:[.694,0,1.277],1133:[.445,0,1.086],1134:[.843,.205,.546],1135:[.553,.205,.435],1136:[.694,0,.778],1137:[.722,.195,.639],1138:[.716,.022,.736],1139:[.467,.022,.5],1140:[.694,0,.722],1141:[.455,0,.492],1142:[.851,0,.722],1143:[.64,0,.492],1146:[.757,.063,.944],1147:[.496,.046,.611],1148:[.911,.022,.916],1149:[.661,.022,.819],1150:[.889,.022,.916],1151:[.64,.022,.819],1152:[.716,.218,.639],1153:[.522,.205,.439],1154:[.212,.213,.389],1155:[.661,-.51,0,{dx:.001}],1156:[.661,-.467,0,{dx:.261}],1157:[.738,-.508,0,{dx:.265}],1158:[.738,-.508,0,{dx:.292}],1160:[.802,.302,0],1161:[.854,.354,0],1162:[.889,.195,.694],1163:[.639,.162,.537],1164:[.694,0,.778],1165:[.639,0,.5],1166:[.694,0,.639],1167:[.455,.195,.517,{ic:.028}],1168:[.889,0,.555],1169:[.545,0,.404],1170:[.694,0,.542],1171:[.445,0,.404],1172:[.694,.217,.708],1173:[.445,.205,.536],1174:[.694,.195,1.111],1175:[.445,.162,.739],1176:[.716,.217,.611],1177:[.461,.217,.444],1178:[.694,.195,.694],1179:[.445,.162,.489],1180:[.694,0,.798],1181:[.445,0,.621],1182:[.694,0,.694],1183:[.722,0,.517],1184:[.694,0,.896],1185:[.445,0,.598],1186:[.694,.195,.711],1187:[.445,.162,.548],1188:[.694,0,.896],1189:[.445,0,.647],1190:[.694,.217,1.041],1191:[.445,.205,.762],1192:[.716,.095,.778],1193:[.462,.094,.5],1194:[.716,.217,.639],1195:[.461,.217,.444],1196:[.694,.195,.68],1197:[.445,.162,.458],1198:[.694,0,.667],1199:[.445,.195,.461],1200:[.694,0,.667],1201:[.445,.195,.461],1202:[.694,.195,.667],1203:[.445,.162,.461],1204:[.694,.195,.912],1205:[.445,.162,.675],1206:[.694,.195,.711],1207:[.445,.162,.548],1208:[.694,0,.694],1209:[.445,0,.537],1210:[.694,0,.694],1211:[.722,0,.517],1212:[.716,.022,.794],1213:[.461,.011,.548],1214:[.716,.21,.794],1215:[.461,.212,.548],1216:[.694,0,.278],1217:[.889,0,1.111],1218:[.639,0,.739],1219:[.694,.217,.694],1220:[.445,.205,.517],1221:[.694,.195,.728],1222:[.445,.162,.539],1223:[.694,.217,.694],1224:[.445,.205,.537],1225:[.694,.195,.711],1226:[.445,.162,.548],1227:[.694,.195,.694],1228:[.445,.162,.537],1229:[.694,.195,.891],1230:[.445,.162,.68],1232:[.889,0,.667],1233:[.639,.011,.48],1234:[.849,0,.667],1235:[.66,.011,.48],1236:[.694,0,.861],1237:[.461,.011,.722],1238:[.889,0,.597],1239:[.639,.011,.444],1240:[.716,.022,.669],1241:[.455,.011,.458],1242:[.849,.022,.667],1243:[.66,.011,.458],1244:[.85,0,1.111],1245:[.66,0,.739],1246:[.849,.022,.611],1247:[.66,.011,.444],1248:[.694,.022,.546],1249:[.445,.205,.435],1250:[.85,0,.694],1251:[.682,0,.537],1252:[.849,0,.694],1253:[.66,0,.537],1254:[.849,.022,.736],1255:[.66,.011,.5],1256:[.716,.022,.736],1257:[.461,.011,.5],1258:[.849,.022,.736],1259:[.66,.011,.5],1260:[.849,.022,.639],1261:[.66,.011,.444],1262:[.85,0,.667],1263:[.682,.205,.461],1264:[.849,0,.667],1265:[.66,.205,.461],1266:[.851,0,.667],1267:[.64,.205,.461,{ic:.012}],1268:[.849,0,.694],1269:[.66,0,.537],1270:[.694,.195,.542],1271:[.445,.162,.404],1272:[.849,0,.889],1273:[.66,0,.683],1276:[.694,.217,.667],1277:[.445,.205,.461],1278:[.694,0,.667],1279:[.445,0,.461,{ic:.004}],1298:[.694,.217,.711],1299:[.445,.205,.528],1306:[.716,.125,.736],1307:[.455,.195,.517],1308:[.694,0,.944],1309:[.445,0,.683]}},CYSSB:{"bold-sans-serif":{1024:[.938,0,.642],1025:[.882,0,.642],1026:[.689,.022,.733,{ic:.113}],1027:[.938,0,.58],1028:[.717,.022,.703],1029:[.717,.022,.611],1030:[.694,0,.331],1031:[.871,0,.325,{ic:.025}],1032:[.694,.022,.519],1033:[.694,0,1.155],1034:[.694,0,1.115],1035:[.689,0,.834],1036:[.938,0,.764],1037:[.938,0,.764],1038:[.901,0,.733],1039:[.694,.195,.764],1040:[.694,0,.733],1041:[.694,0,.733],1042:[.694,0,.733],1043:[.694,0,.58],1044:[.694,.195,.844],1045:[.692,0,.642],1046:[.694,0,1.219],1047:[.717,.022,.672],1048:[.694,0,.734],1049:[.901,0,.734],1050:[.694,0,.764],1051:[.694,0,.755],1052:[.694,0,.978],1053:[.694,0,.764],1054:[.717,.022,.794],1055:[.691,0,.734],1056:[.694,0,.703],1057:[.706,.011,.703],1058:[.689,0,.733],1059:[.694,0,.733],1060:[.694,0,.794],1061:[.694,0,.733],1062:[.694,.195,.804],1063:[.694,0,.764],1064:[.694,0,1.197],1065:[.694,.195,1.347],1066:[.694,0,.943],1067:[.694,0,.978],1068:[.694,0,.733],1069:[.717,.022,.703],1070:[.717,.022,1.14],1071:[.694,0,.703],1072:[.46,.011,.525],1073:[.698,.011,.55],1074:[.443,0,.525],1075:[.444,0,.433],1076:[.443,.157,.636],1077:[.46,.011,.511],1078:[.445,.001,.805],1079:[.46,.011,.489],1080:[.443,0,.592],1081:[.651,0,.592],1082:[.443,0,.53],1083:[.443,0,.598],1084:[.443,0,.744],1085:[.443,0,.561],1086:[.46,.011,.55],1087:[.443,0,.561],1088:[.454,.188,.561],1089:[.46,.011,.489],1090:[.443,0,.489],1091:[.443,.199,.5],1092:[.699,.188,.836],1093:[.443,0,.5],1094:[.443,.157,.629],1095:[.443,0,.592],1096:[.443,0,.836],1097:[.443,.157,.873],1098:[.443,0,.642],1099:[.443,0,.744],1100:[.443,0,.525],1101:[.46,.011,.489],1102:[.46,.011,.8],1103:[.443,0,.555],1104:[.667,.011,.511],1105:[.656,.011,.511],1106:[.699,.192,.53],1107:[.652,0,.433],1108:[.46,.011,.483],1109:[.454,.011,.396],1110:[.632,0,.24],1111:[.63,0,.256,{ic:.032}],1112:[.632,.162,.269],1113:[.443,0,.853],1114:[.443,0,.846],1115:[.699,0,.561],1116:[.652,0,.53],1117:[.667,0,.592],1118:[.692,.199,.5],1119:[.443,.157,.592],1120:[.716,.022,1.008],1121:[.466,.021,.916],1122:[.75,0,.855],1123:[.68,0,.55],1124:[.717,.022,1.048],1125:[.46,.011,.745],1126:[.694,0,1.016],1127:[.443,0,.833],1128:[.694,0,1.393],1129:[.443,0,1.123],1130:[.693,0,1.121],1131:[.443,0,.866],1132:[.694,0,1.459],1133:[.443,0,1.187],1134:[.852,.209,.598],1135:[.557,.209,.476],1136:[.694,0,.855],1137:[.699,.189,.703],1138:[.717,.022,.794],1139:[.466,.021,.55],1140:[.694,0,.794],1141:[.454,0,.562],1142:[.927,0,.794],1143:[.663,0,.562],1146:[.775,.08,1.039],1147:[.515,.066,.672],1148:[.925,.022,1.008],1149:[.668,.021,.916],1150:[.903,.022,1.008],1151:[.646,.021,.916],1152:[.717,.224,.703],1153:[.506,.204,.483],1154:[.228,.233,.428],1155:[.689,-.528,0,{dx:.001}],1156:[.69,-.495,0,{dx:.287}],1157:[.752,-.527,0,{dx:.295}],1158:[.752,-.527,0,{dx:.318}],1160:[.835,.335,0],1161:[.94,.44,0],1162:[.91,.194,.764],1163:[.673,.162,.592],1164:[.695,0,.855],1165:[.668,0,.55],1166:[.694,0,.703],1167:[.469,.194,.561,{ic:.048}],1168:[.865,0,.596],1169:[.597,0,.433],1170:[.694,0,.58],1171:[.459,0,.433],1172:[.694,.217,.794],1173:[.458,.206,.586],1174:[.694,.195,1.219],1175:[.46,.161,.815],1176:[.717,.213,.672],1177:[.46,.206,.489],1178:[.694,.194,.764],1179:[.458,.162,.53],1180:[.694,0,.886],1181:[.458,0,.707],1182:[.694,0,.764],1183:[.722,0,.51],1184:[.694,0,.925],1185:[.46,0,.63],1186:[.694,.194,.764],1187:[.458,.162,.608],1188:[.694,0,.974],1189:[.459,0,.703],1190:[.691,.217,1.116],1191:[.458,.206,.838],1192:[.717,.101,.855],1193:[.46,.096,.55],1194:[.706,.213,.703],1195:[.46,.206,.489],1196:[.689,.194,.733],1197:[.458,.162,.489],1198:[.694,0,.733],1199:[.46,.194,.5],1200:[.694,0,.733],1201:[.46,.194,.5],1202:[.694,.194,.733],1203:[.458,.162,.504],1204:[.694,.194,1.011],1205:[.458,.162,.764],1206:[.694,.194,.804],1207:[.458,.162,.629],1208:[.694,0,.764],1209:[.458,0,.592],1210:[.694,0,.764],1211:[.722,0,.561],1212:[.717,.023,.882],1213:[.475,.011,.674],1214:[.717,.213,.882],1215:[.475,.213,.674],1216:[.694,0,.325],1217:[.929,0,1.219],1218:[.692,.001,.805],1219:[.694,.217,.764],1220:[.459,.206,.561],1221:[.694,.194,.844,{ic:.004}],1222:[.458,.162,.662],1223:[.694,.217,.764],1224:[.458,.206,.592],1225:[.694,.194,.804],1226:[.458,.162,.609],1227:[.694,.194,.764],1228:[.458,.162,.592],1229:[.694,.194,1.018],1230:[.458,.162,.782],1232:[.96,0,.733],1233:[.692,.011,.525],1234:[.881,0,.733],1235:[.634,.011,.525],1236:[.694,0,.947],1237:[.458,.01,.794],1238:[.929,0,.642],1239:[.692,.011,.511],1240:[.717,.022,.758],1241:[.454,.011,.504],1242:[.897,.022,.758],1243:[.634,.011,.504],1244:[.85,0,1.219],1245:[.638,.001,.805],1246:[.873,.022,.672],1247:[.634,.011,.489],1248:[.694,.022,.598],1249:[.458,.206,.476],1250:[.844,0,.734],1251:[.632,0,.592],1252:[.85,0,.734],1253:[.634,0,.592],1254:[.882,.022,.794],1255:[.635,.011,.55],1256:[.717,.022,.794],1257:[.46,.011,.55],1258:[.898,.022,.794],1259:[.643,.011,.55],1260:[.877,.022,.703],1261:[.634,.011,.489],1262:[.872,0,.733],1263:[.632,.199,.5],1264:[.878,0,.733],1265:[.634,.199,.5],1266:[.925,0,.733],1267:[.677,.199,.5],1268:[.85,0,.764],1269:[.634,0,.592],1270:[.694,.194,.58],1271:[.459,.161,.433],1272:[.85,0,.978],1273:[.634,0,.744],1276:[.694,.217,.733],1277:[.458,.206,.5],1278:[.694,0,.733],1279:[.458,0,.5],1298:[.694,.217,.755],1299:[.458,.206,.598],1306:[.717,.111,.794],1307:[.454,.157,.527],1308:[.694,0,1.039],1309:[.444,0,.699]}},CYSSI:{"sans-serif-italic":{1024:[.851,0,.597,{ic:.093}],1025:[.849,0,.597,{ic:.093}],1026:[.694,.022,.819,{ic:.032}],1027:[.851,0,.542,{ic:.105}],1028:[.716,.022,.639,{ic:.084}],1029:[.716,.022,.555,{ic:.052}],1030:[.694,0,.278,{ic:.054}],1031:[.849,0,.278,{ic:.183}],1032:[.694,.022,.472,{ic:.064}],1033:[.694,0,1.037],1034:[.694,0,1.021],1035:[.694,0,.764,{ic:.014}],1036:[.851,0,.694,{ic:.098}],1037:[.851,0,.694,{ic:.054}],1038:[.889,0,.667,{ic:.135}],1039:[.694,.195,.694,{ic:.054}],1040:[.694,0,.667],1041:[.694,0,.667,{ic:.035}],1042:[.694,0,.667,{ic:.028}],1043:[.694,0,.542,{ic:.105}],1044:[.694,.195,.728,{ic:.037}],1045:[.694,0,.597,{ic:.093}],1046:[.694,0,1.111,{ic:.097}],1047:[.716,.022,.611,{ic:.047}],1048:[.694,0,.694,{ic:.054}],1049:[.889,0,.694,{ic:.054}],1050:[.694,0,.694,{ic:.098}],1051:[.694,0,.711,{ic:.054}],1052:[.694,0,.875,{ic:.048}],1053:[.694,0,.694,{ic:.054}],1054:[.716,.022,.736,{ic:.027}],1055:[.694,0,.694,{ic:.054}],1056:[.694,0,.639,{ic:.052}],1057:[.716,.022,.639,{ic:.084}],1058:[.694,0,.68,{ic:.111}],1059:[.694,0,.667,{ic:.135}],1060:[.694,0,.833,{ic:.028}],1061:[.694,0,.667,{ic:.096}],1062:[.694,.195,.711,{ic:.037}],1063:[.694,0,.694,{ic:.053}],1064:[.694,0,1.083,{ic:.053}],1065:[.694,.195,1.1,{ic:.036}],1066:[.694,0,.868],1067:[.694,0,.889,{ic:.047}],1068:[.694,0,.667],1069:[.716,.022,.639,{ic:.016}],1070:[.716,.022,1.041,{ic:.027}],1071:[.694,0,.646,{ic:.051}],1072:[.461,.011,.48],1073:[.723,.011,.5,{ic:.085}],1074:[.445,0,.48,{ic:.017}],1075:[.445,0,.404,{ic:.07}],1076:[.445,.162,.539,{ic:.002}],1077:[.461,.011,.444,{ic:.028}],1078:[.445,0,.739,{ic:.061}],1079:[.461,.011,.444,{ic:.029}],1080:[.445,0,.537,{ic:.013}],1081:[.639,0,.537,{ic:.037}],1082:[.445,0,.489,{ic:.061}],1083:[.445,0,.528,{ic:.013}],1084:[.445,0,.669,{ic:.014}],1085:[.445,0,.517,{ic:.012}],1086:[.461,.011,.5,{ic:.021}],1087:[.445,0,.517,{ic:.012}],1088:[.455,.195,.517,{ic:.018}],1089:[.461,.011,.444,{ic:.056}],1090:[.445,0,.458,{ic:.07}],1091:[.445,.205,.461,{ic:.083}],1092:[.722,.195,.766,{ic:.019}],1093:[.445,0,.461,{ic:.083}],1094:[.445,.162,.548,{ic:.002}],1095:[.445,0,.537,{ic:.013}],1096:[.445,0,.766,{ic:.013}],1097:[.445,.162,.778,{ic:.001}],1098:[.445,0,.59],1099:[.445,0,.683,{ic:.013}],1100:[.445,0,.48],1101:[.461,.011,.444,{ic:.017}],1102:[.461,.011,.73,{ic:.022}],1103:[.445,0,.515,{ic:.013}],1104:[.64,.011,.444,{ic:.032}],1105:[.659,.011,.444,{ic:.06}],1106:[.722,.195,.489,{ic:.094}],1107:[.64,0,.39,{ic:.084}],1108:[.461,.011,.439,{ic:.055}],1109:[.461,.011,.383,{ic:.053}],1110:[.679,0,.239,{ic:.069}],1111:[.659,0,.239,{ic:.162}],1112:[.679,.205,.267,{ic:.064}],1113:[.445,0,.755],1114:[.445,0,.765],1115:[.722,0,.517,{ic:.011}],1116:[.64,0,.489,{ic:.061}],1117:[.64,0,.537,{ic:.013}],1118:[.639,.205,.461,{ic:.083}],1119:[.445,.162,.537,{ic:.013}],1120:[.716,.022,.916,{ic:.026}],1121:[.467,.022,.819],1122:[.75,0,.778],1123:[.639,0,.5],1124:[.716,.022,.944,{ic:.085}],1125:[.461,.011,.68,{ic:.051}],1126:[.694,0,.844],1127:[.445,0,.672],1128:[.694,0,1.177,{ic:.002}],1129:[.445,0,.936,{ic:.007}],1130:[.694,0,.944],1131:[.445,0,.794],1132:[.694,0,1.277],1133:[.445,0,1.086],1134:[.843,.205,.546,{ic:.091}],1135:[.553,.205,.435,{ic:.076}],1136:[.694,0,.778,{ic:.075}],1137:[.722,.195,.639,{ic:.068}],1138:[.716,.022,.736,{ic:.027}],1139:[.467,.022,.5,{ic:.021}],1140:[.694,0,.722,{ic:.12}],1141:[.455,0,.492,{ic:.077}],1142:[.851,0,.722,{ic:.12}],1143:[.64,0,.492,{ic:.077}],1146:[.757,.063,.944,{ic:.031}],1147:[.496,.046,.611,{ic:.024}],1148:[.911,.022,.916,{ic:.026}],1149:[.661,.022,.819],1150:[.889,.022,.916,{ic:.026}],1151:[.64,.022,.819],1152:[.716,.218,.639,{ic:.084}],1153:[.522,.205,.439,{ic:.066}],1154:[.212,.213,.389,{ic:.026}],1155:[.661,-.51,0,{dx:-.123}],1156:[.661,-.467,0,{dx:.151}],1157:[.738,-.508,0,{dx:.126}],1158:[.738,-.508,0,{dx:.154}],1160:[.802,.302,0],1161:[.854,.354,0],1162:[.889,.195,.694,{ic:.054}],1163:[.639,.162,.537,{ic:.037}],1164:[.694,0,.778],1165:[.639,0,.5],1166:[.694,0,.639,{ic:.052}],1167:[.455,.195,.517,{ic:.036}],1168:[.889,0,.555,{ic:.148}],1169:[.545,0,.404,{ic:.092}],1170:[.694,0,.542,{ic:.105}],1171:[.445,0,.404,{ic:.07}],1172:[.694,.217,.708],1173:[.445,.205,.536],1174:[.694,.195,1.111,{ic:.097}],1175:[.445,.162,.739,{ic:.061}],1176:[.716,.217,.611,{ic:.047}],1177:[.461,.217,.444,{ic:.029}],1178:[.694,.195,.694,{ic:.098}],1179:[.445,.162,.489,{ic:.061}],1180:[.694,0,.798,{ic:.099}],1181:[.445,0,.621,{ic:.061}],1182:[.694,0,.694,{ic:.098}],1183:[.722,0,.517,{ic:.061}],1184:[.694,0,.896,{ic:.097}],1185:[.445,0,.598,{ic:.062}],1186:[.694,.195,.711,{ic:.037}],1187:[.445,.162,.548,{ic:.002}],1188:[.694,0,.896,{ic:.111}],1189:[.445,0,.647,{ic:.07}],1190:[.694,.217,1.041],1191:[.445,.205,.762],1192:[.716,.095,.778,{ic:.023}],1193:[.461,.094,.5,{ic:.019}],1194:[.716,.217,.639,{ic:.084}],1195:[.461,.217,.444,{ic:.056}],1196:[.694,.195,.68,{ic:.111}],1197:[.445,.162,.458,{ic:.07}],1198:[.694,0,.667,{ic:.148}],1199:[.445,.195,.461,{ic:.094}],1200:[.694,0,.667,{ic:.148}],1201:[.445,.195,.461,{ic:.093}],1202:[.694,.195,.667,{ic:.096}],1203:[.445,.162,.461,{ic:.083}],1204:[.694,.195,.912,{ic:.037}],1205:[.445,.162,.675,{ic:.002}],1206:[.694,.195,.711,{ic:.036}],1207:[.445,.162,.548,{ic:.002}],1208:[.694,0,.694,{ic:.053}],1209:[.445,0,.537,{ic:.013}],1210:[.694,0,.694],1211:[.722,0,.517],1212:[.716,.022,.794,{ic:.062}],1213:[.461,.011,.548,{ic:.028}],1214:[.716,.21,.794,{ic:.062}],1215:[.461,.212,.548,{ic:.028}],1216:[.694,0,.278,{ic:.054}],1217:[.889,0,1.111,{ic:.097}],1218:[.639,0,.739,{ic:.061}],1219:[.694,.217,.694,{ic:.098}],1220:[.445,.205,.517,{ic:.061}],1221:[.694,.195,.728,{ic:.037}],1222:[.445,.162,.539,{ic:.001}],1223:[.694,.217,.694,{ic:.054}],1224:[.445,.206,.537,{ic:.013}],1225:[.694,.195,.711,{ic:.037}],1226:[.445,.162,.548,{ic:.002}],1227:[.694,.195,.694,{ic:.053}],1228:[.445,.162,.537,{ic:.013}],1229:[.694,.195,.891,{ic:.031}],1230:[.445,.162,.68,{ic:.003}],1232:[.889,0,.667,{ic:.018}],1233:[.639,.011,.48,{ic:.076}],1234:[.849,0,.667],1235:[.659,.011,.48,{ic:.052}],1236:[.694,0,.861,{ic:.092}],1237:[.461,.011,.722,{ic:.03}],1238:[.889,0,.597,{ic:.093}],1239:[.639,.011,.444,{ic:.084}],1240:[.716,.022,.669,{ic:.041}],1241:[.455,.011,.458,{ic:.018}],1242:[.849,.022,.667,{ic:.04}],1243:[.659,.011,.458,{ic:.053}],1244:[.849,0,1.111,{ic:.097}],1245:[.659,0,.739,{ic:.061}],1246:[.849,.022,.611,{ic:.047}],1247:[.659,.011,.444,{ic:.06}],1248:[.694,.022,.546,{ic:.113}],1249:[.445,.205,.435,{ic:.059}],1250:[.85,0,.694,{ic:.054}],1251:[.682,0,.537,{ic:.046}],1252:[.849,0,.694,{ic:.054}],1253:[.66,0,.537,{ic:.013}],1254:[.849,.022,.736,{ic:.027}],1255:[.659,.011,.5,{ic:.031}],1256:[.716,.022,.736,{ic:.027}],1257:[.461,.011,.5,{ic:.021}],1258:[.849,.022,.736,{ic:.027}],1259:[.659,.011,.5,{ic:.031}],1260:[.849,.022,.639,{ic:.016}],1261:[.659,.011,.444,{ic:.06}],1262:[.85,0,.667,{ic:.135}],1263:[.682,.205,.461,{ic:.086}],1264:[.849,0,.667,{ic:.135}],1265:[.66,.205,.461,{ic:.083}],1266:[.851,0,.667,{ic:.135}],1267:[.64,.205,.461,{ic:.15}],1268:[.849,0,.694,{ic:.053}],1269:[.659,0,.537,{ic:.013}],1270:[.694,.195,.542,{ic:.105}],1271:[.445,.162,.404,{ic:.07}],1272:[.85,0,.889,{ic:.047}],1273:[.66,0,.683,{ic:.013}],1276:[.694,.217,.667,{ic:.096}],1277:[.445,.205,.461,{ic:.083}],1278:[.694,0,.667,{ic:.096}],1279:[.445,0,.461,{ic:.083}],1298:[.694,.217,.711,{ic:.054}],1299:[.445,.206,.528,{ic:.013}],1306:[.716,.125,.736,{ic:.027}],1307:[.455,.195,.517,{ic:.015}],1308:[.694,0,.944,{ic:.135}],1309:[.445,0,.683,{ic:.083}]}},CYSSBI:{"sans-serif-bold-italic":{1024:[.938,0,.642,{ic:.084}],1025:[.882,0,.642,{ic:.084}],1026:[.689,.022,.733,{ic:.194}],1027:[.938,0,.58,{ic:.101}],1028:[.717,.022,.703,{ic:.082}],1029:[.717,.022,.611,{ic:.045}],1030:[.694,0,.331,{ic:.055}],1031:[.871,0,.325,{ic:.204}],1032:[.694,.022,.519,{ic:.055}],1033:[.694,0,1.155,{ic:.022}],1034:[.694,0,1.115,{ic:.018}],1035:[.689,0,.834,{ic:.032}],1036:[.938,0,.764,{ic:.085}],1037:[.938,0,.764,{ic:.085}],1038:[.901,0,.733,{ic:.13}],1039:[.694,.195,.764,{ic:.055}],1040:[.694,0,.733],1041:[.694,0,.733,{ic:.025}],1042:[.694,0,.733,{ic:.048}],1043:[.694,0,.58,{ic:.101}],1044:[.694,.195,.844,{ic:.016}],1045:[.692,0,.642,{ic:.084}],1046:[.694,0,1.219,{ic:.085}],1047:[.717,.022,.672,{ic:.074}],1048:[.694,0,.734,{ic:.085}],1049:[.901,0,.734,{ic:.085}],1050:[.694,0,.764,{ic:.085}],1051:[.694,0,.755,{ic:.104}],1052:[.694,0,.978,{ic:.054}],1053:[.694,0,.764,{ic:.055}],1054:[.717,.022,.794,{ic:.052}],1055:[.691,0,.734,{ic:.084}],1056:[.694,0,.703,{ic:.052}],1057:[.706,.011,.703,{ic:.073}],1058:[.689,0,.733,{ic:.105}],1059:[.694,0,.733,{ic:.13}],1060:[.694,0,.794,{ic:.043}],1061:[.694,0,.733,{ic:.085}],1062:[.694,.195,.804,{ic:.015}],1063:[.694,0,.764,{ic:.06}],1064:[.694,0,1.197,{ic:.065}],1065:[.694,.195,1.347],1066:[.694,0,.943,{ic:.017}],1067:[.694,0,.978,{ic:.058}],1068:[.694,0,.733,{ic:.017}],1069:[.717,.022,.703,{ic:.075}],1070:[.717,.022,1.14,{ic:.052}],1071:[.694,0,.703,{ic:.058}],1072:[.46,.011,.525,{ic:.008}],1073:[.698,.011,.55,{ic:.056}],1074:[.443,0,.525,{ic:.016}],1075:[.444,0,.433,{ic:.052}],1076:[.443,.157,.636],1077:[.46,.011,.511,{ic:.03}],1078:[.445,.001,.805,{ic:.054}],1079:[.46,.011,.489,{ic:.028}],1080:[.443,0,.592,{ic:.008}],1081:[.651,0,.592,{ic:.016}],1082:[.443,0,.53,{ic:.062}],1083:[.443,0,.598,{ic:.008}],1084:[.443,0,.744,{ic:.004}],1085:[.443,0,.561,{ic:.008}],1086:[.46,.011,.55,{ic:.033}],1087:[.443,0,.561,{ic:.008}],1088:[.454,.188,.561,{ic:.018}],1089:[.46,.011,.489,{ic:.038}],1090:[.443,0,.489,{ic:.05}],1091:[.443,.199,.5,{ic:.064}],1092:[.699,.188,.836,{ic:.026}],1093:[.443,0,.5,{ic:.059}],1094:[.443,.157,.629],1095:[.443,0,.592,{ic:.008}],1096:[.443,0,.836],1097:[.443,.157,.873],1098:[.443,0,.642],1099:[.443,0,.744,{ic:.003}],1100:[.443,0,.525],1101:[.46,.011,.489,{ic:.032}],1102:[.46,.011,.8,{ic:.024}],1103:[.443,0,.555,{ic:.017}],1104:[.667,.011,.511,{ic:.03}],1105:[.656,.011,.511,{ic:.057}],1106:[.699,.192,.53,{ic:.107}],1107:[.652,0,.433,{ic:.095}],1108:[.46,.011,.483,{ic:.035}],1109:[.454,.011,.396,{ic:.056}],1110:[.632,0,.24,{ic:.069}],1111:[.63,0,.256,{ic:.166}],1112:[.632,.162,.269,{ic:.069}],1113:[.443,0,.853],1114:[.443,0,.846],1115:[.699,0,.561,{ic:.022}],1116:[.652,0,.53,{ic:.062}],1117:[.667,0,.592,{ic:.008}],1118:[.692,.199,.5,{ic:.077}],1119:[.443,.157,.592,{ic:.008}],1120:[.716,.022,1.008,{ic:.071}],1121:[.466,.021,.916],1122:[.75,0,.855],1123:[.68,0,.55],1124:[.717,.022,1.048,{ic:.084}],1125:[.46,.011,.745,{ic:.023}],1126:[.694,0,1.016],1127:[.443,0,.833],1128:[.694,0,1.393],1129:[.443,0,1.123],1130:[.693,0,1.121],1131:[.443,0,.866],1132:[.694,0,1.459],1133:[.443,0,1.187],1134:[.852,.209,.598,{ic:.071}],1135:[.557,.209,.476,{ic:.028}],1136:[.694,0,.855,{ic:.065}],1137:[.699,.189,.703,{ic:.046}],1138:[.717,.022,.794,{ic:.052}],1139:[.466,.021,.55,{ic:.039}],1140:[.694,0,.794,{ic:.115}],1141:[.454,0,.562,{ic:.057}],1142:[.927,0,.794,{ic:.115}],1143:[.663,0,.562,{ic:.057}],1146:[.775,.08,1.039,{ic:.047}],1147:[.515,.066,.672,{ic:.028}],1148:[.925,.022,1.008,{ic:.07}],1149:[.668,.021,.916],1150:[.903,.022,1.008,{ic:.07}],1151:[.646,.021,.916],1152:[.717,.224,.703,{ic:.077}],1153:[.506,.204,.483,{ic:.052}],1154:[.228,.233,.428,{ic:.027}],1155:[.689,-.528,0,{dx:-.129}],1156:[.69,-.495,0,{dx:.172}],1157:[.752,-.527,0,{dx:.149}],1158:[.752,-.527,0,{dx:.18}],1160:[.835,.335,0],1161:[.94,.44,0],1162:[.91,.194,.764,{ic:.055}],1163:[.673,.162,.592,{ic:.037}],1164:[.695,0,.855],1165:[.668,0,.55],1166:[.694,0,.703,{ic:.052}],1167:[.469,.194,.561,{ic:.054}],1168:[.865,0,.596,{ic:.138}],1169:[.597,0,.433,{ic:.099}],1170:[.694,0,.58,{ic:.101}],1171:[.459,0,.433,{ic:.068}],1172:[.694,.217,.794,{ic:.015}],1173:[.458,.206,.586],1174:[.694,.195,1.219,{ic:.085}],1175:[.46,.161,.815,{ic:.072}],1176:[.717,.213,.672,{ic:.074}],1177:[.46,.206,.489,{ic:.028}],1178:[.694,.194,.764,{ic:.085}],1179:[.458,.162,.53,{ic:.081}],1180:[.694,0,.886,{ic:.12}],1181:[.458,0,.707,{ic:.054}],1182:[.694,0,.764,{ic:.115}],1183:[.722,0,.51,{ic:.051}],1184:[.694,0,.925,{ic:.115}],1185:[.46,0,.63,{ic:.051}],1186:[.694,.194,.764,{ic:.055}],1187:[.458,.162,.608],1188:[.694,0,.974,{ic:.106}],1189:[.459,0,.703,{ic:.077}],1190:[.691,.217,1.116,{ic:.074}],1191:[.458,.206,.838],1192:[.717,.101,.855,{ic:.024}],1193:[.46,.096,.55,{ic:.016}],1194:[.706,.213,.703,{ic:.073}],1195:[.46,.206,.489,{ic:.038}],1196:[.689,.194,.733,{ic:.105}],1197:[.458,.162,.489,{ic:.068}],1198:[.694,0,.733,{ic:.143}],1199:[.46,.194,.5,{ic:.097}],1200:[.694,0,.733,{ic:.143}],1201:[.46,.194,.5,{ic:.097}],1202:[.694,.194,.733,{ic:.085}],1203:[.458,.162,.504,{ic:.073}],1204:[.694,.194,1.011,{ic:.015}],1205:[.458,.162,.764],1206:[.694,.194,.804,{ic:.02}],1207:[.458,.162,.629],1208:[.694,0,.764,{ic:.06}],1209:[.458,0,.592,{ic:.028}],1210:[.694,0,.764],1211:[.722,0,.561,{ic:.039}],1212:[.717,.023,.882,{ic:.107}],1213:[.475,.011,.674,{ic:.047}],1214:[.717,.213,.882,{ic:.107}],1215:[.475,.213,.674,{ic:.047}],1216:[.694,0,.325,{ic:.061}],1217:[.929,0,1.219,{ic:.085}],1218:[.692,.001,.805,{ic:.054}],1219:[.694,.217,.764,{ic:.115}],1220:[.459,.206,.561,{ic:.089}],1221:[.694,.194,.844,{ic:.025}],1222:[.458,.162,.662,{ic:.003}],1223:[.694,.217,.764,{ic:.055}],1224:[.458,.206,.592,{ic:.028}],1225:[.694,.194,.804,{ic:.015}],1226:[.458,.162,.609,{ic:.006}],1227:[.694,.194,.764,{ic:.06}],1228:[.458,.162,.592,{ic:.028}],1229:[.694,.194,1.018,{ic:.014}],1230:[.458,.162,.782,{ic:.002}],1232:[.96,0,.733,{ic:.042}],1233:[.692,.011,.525,{ic:.065}],1234:[.881,0,.733],1235:[.634,.011,.525,{ic:.033}],1236:[.694,0,.947,{ic:.085}],1237:[.458,.01,.794],1238:[.929,0,.642,{ic:.115}],1239:[.692,.011,.511,{ic:.086}],1240:[.717,.022,.758,{ic:.066}],1241:[.454,.011,.504,{ic:.04}],1242:[.897,.022,.758,{ic:.066}],1243:[.634,.011,.504,{ic:.04}],1244:[.85,0,1.219,{ic:.085}],1245:[.638,.001,.805,{ic:.054}],1246:[.873,.022,.672,{ic:.074}],1247:[.634,.011,.489,{ic:.038}],1248:[.694,.022,.598,{ic:.112}],1249:[.458,.206,.476,{ic:.06}],1250:[.844,0,.734,{ic:.085}],1251:[.632,0,.592,{ic:.008}],1252:[.85,0,.734,{ic:.085}],1253:[.634,0,.592,{ic:.008}],1254:[.882,.022,.794,{ic:.052}],1255:[.635,.011,.55,{ic:.033}],1256:[.717,.022,.794,{ic:.052}],1257:[.46,.011,.55,{ic:.034}],1258:[.898,.022,.794,{ic:.052}],1259:[.643,.011,.55,{ic:.034}],1260:[.877,.022,.703,{ic:.075}],1261:[.634,.011,.489,{ic:.043}],1262:[.872,0,.733,{ic:.13}],1263:[.632,.199,.5,{ic:.08}],1264:[.878,0,.733,{ic:.13}],1265:[.634,.199,.5,{ic:.064}],1266:[.925,0,.733,{ic:.13}],1267:[.677,.199,.5,{ic:.091}],1268:[.85,0,.764,{ic:.06}],1269:[.634,0,.592,{ic:.008}],1270:[.694,.194,.58,{ic:.101}],1271:[.459,.161,.433,{ic:.068}],1272:[.85,0,.978,{ic:.058}],1273:[.634,0,.744,{ic:.003}],1276:[.694,.217,.733,{ic:.085}],1277:[.458,.206,.5,{ic:.077}],1278:[.694,0,.733,{ic:.085}],1279:[.458,0,.5,{ic:.077}],1298:[.694,.217,.755,{ic:.104}],1299:[.458,.206,.598,{ic:.028}],1306:[.717,.111,.794,{ic:.037}],1307:[.454,.157,.527,{ic:.039}],1308:[.694,0,1.039,{ic:.131}],1309:[.444,0,.699,{ic:.079}]}}},"NCM"),{},["MJX-NCM-CYSS","MJX-NCM-CYSSB","MJX-NCM-CYSSI","MJX-NCM-CYSSBI"]);
|
|
1
|
+
import{i,n as c}from"./mathjax-BKrHE4xs-3ca05bf6.js";c.dynamicSetup("","cyrillic-ss",i({CYSS:{"sans-serif":{1024:[.851,0,.597],1025:[.849,0,.597],1026:[.694,.022,.819],1027:[.851,0,.542],1028:[.716,.022,.639],1029:[.716,.022,.555],1030:[.695,0,.278],1031:[.849,0,.278,{ic:.003}],1032:[.694,.022,.472],1033:[.694,0,1.037],1034:[.694,0,1.021],1035:[.694,0,.764],1036:[.851,0,.694],1037:[.851,0,.694],1038:[.889,0,.667],1039:[.694,.195,.694],1040:[.694,0,.667],1041:[.694,0,.667],1042:[.694,0,.667],1043:[.694,0,.542],1044:[.694,.195,.728],1045:[.694,0,.597],1046:[.694,0,1.111],1047:[.716,.022,.611],1048:[.694,0,.694],1049:[.889,0,.694],1050:[.694,0,.694],1051:[.694,0,.711],1052:[.694,0,.875],1053:[.694,0,.694],1054:[.716,.022,.736],1055:[.694,0,.694],1056:[.694,0,.639],1057:[.716,.022,.639],1058:[.694,0,.68],1059:[.694,0,.667],1060:[.694,0,.833],1061:[.694,0,.667],1062:[.694,.195,.711],1063:[.694,0,.694],1064:[.694,0,1.083],1065:[.694,.195,1.1],1066:[.694,0,.868],1067:[.694,0,.889],1068:[.694,0,.667],1069:[.716,.022,.639],1070:[.716,.022,1.041],1071:[.694,0,.646],1072:[.461,.011,.48],1073:[.722,.011,.5],1074:[.445,0,.48],1075:[.445,0,.404],1076:[.445,.162,.539],1077:[.461,.011,.444],1078:[.445,0,.739],1079:[.461,.011,.444],1080:[.445,0,.537],1081:[.639,0,.537],1082:[.445,0,.489],1083:[.445,0,.528],1084:[.445,0,.669],1085:[.445,0,.517],1086:[.461,.011,.5],1087:[.445,0,.517],1088:[.455,.195,.517],1089:[.461,.011,.444],1090:[.445,0,.458],1091:[.445,.205,.461],1092:[.722,.195,.766],1093:[.445,0,.461,{ic:.004}],1094:[.445,.162,.548],1095:[.445,0,.537],1096:[.445,0,.766],1097:[.445,.162,.778],1098:[.445,0,.59],1099:[.445,0,.683],1100:[.445,0,.48],1101:[.461,.011,.444],1102:[.461,.011,.73],1103:[.445,0,.515],1104:[.64,.011,.444],1105:[.66,.011,.444],1106:[.722,.195,.489],1107:[.64,0,.39],1108:[.461,.011,.439],1109:[.461,.011,.383],1110:[.679,0,.239],1111:[.66,0,.239,{ic:.023}],1112:[.679,.205,.267],1113:[.445,0,.755],1114:[.445,0,.765],1115:[.722,0,.517],1116:[.64,0,.489],1117:[.64,0,.537],1118:[.639,.205,.461],1119:[.445,.162,.537],1120:[.716,.022,.916],1121:[.467,.022,.819],1122:[.75,0,.778],1123:[.639,0,.5],1124:[.716,.022,.944],1125:[.461,.011,.68],1126:[.694,0,.844],1127:[.445,0,.672],1128:[.694,0,1.177,{ic:.003}],1129:[.445,0,.936,{ic:.008}],1130:[.694,0,.944],1131:[.445,0,.794],1132:[.694,0,1.277],1133:[.445,0,1.086],1134:[.843,.205,.546],1135:[.553,.205,.435],1136:[.694,0,.778],1137:[.722,.195,.639],1138:[.716,.022,.736],1139:[.467,.022,.5],1140:[.694,0,.722],1141:[.455,0,.492],1142:[.851,0,.722],1143:[.64,0,.492],1146:[.757,.063,.944],1147:[.496,.046,.611],1148:[.911,.022,.916],1149:[.661,.022,.819],1150:[.889,.022,.916],1151:[.64,.022,.819],1152:[.716,.218,.639],1153:[.522,.205,.439],1154:[.212,.213,.389],1155:[.661,-.51,0,{dx:.001}],1156:[.661,-.467,0,{dx:.261}],1157:[.738,-.508,0,{dx:.265}],1158:[.738,-.508,0,{dx:.292}],1160:[.802,.302,0],1161:[.854,.354,0],1162:[.889,.195,.694],1163:[.639,.162,.537],1164:[.694,0,.778],1165:[.639,0,.5],1166:[.694,0,.639],1167:[.455,.195,.517,{ic:.028}],1168:[.889,0,.555],1169:[.545,0,.404],1170:[.694,0,.542],1171:[.445,0,.404],1172:[.694,.217,.708],1173:[.445,.205,.536],1174:[.694,.195,1.111],1175:[.445,.162,.739],1176:[.716,.217,.611],1177:[.461,.217,.444],1178:[.694,.195,.694],1179:[.445,.162,.489],1180:[.694,0,.798],1181:[.445,0,.621],1182:[.694,0,.694],1183:[.722,0,.517],1184:[.694,0,.896],1185:[.445,0,.598],1186:[.694,.195,.711],1187:[.445,.162,.548],1188:[.694,0,.896],1189:[.445,0,.647],1190:[.694,.217,1.041],1191:[.445,.205,.762],1192:[.716,.095,.778],1193:[.462,.094,.5],1194:[.716,.217,.639],1195:[.461,.217,.444],1196:[.694,.195,.68],1197:[.445,.162,.458],1198:[.694,0,.667],1199:[.445,.195,.461],1200:[.694,0,.667],1201:[.445,.195,.461],1202:[.694,.195,.667],1203:[.445,.162,.461],1204:[.694,.195,.912],1205:[.445,.162,.675],1206:[.694,.195,.711],1207:[.445,.162,.548],1208:[.694,0,.694],1209:[.445,0,.537],1210:[.694,0,.694],1211:[.722,0,.517],1212:[.716,.022,.794],1213:[.461,.011,.548],1214:[.716,.21,.794],1215:[.461,.212,.548],1216:[.694,0,.278],1217:[.889,0,1.111],1218:[.639,0,.739],1219:[.694,.217,.694],1220:[.445,.205,.517],1221:[.694,.195,.728],1222:[.445,.162,.539],1223:[.694,.217,.694],1224:[.445,.205,.537],1225:[.694,.195,.711],1226:[.445,.162,.548],1227:[.694,.195,.694],1228:[.445,.162,.537],1229:[.694,.195,.891],1230:[.445,.162,.68],1232:[.889,0,.667],1233:[.639,.011,.48],1234:[.849,0,.667],1235:[.66,.011,.48],1236:[.694,0,.861],1237:[.461,.011,.722],1238:[.889,0,.597],1239:[.639,.011,.444],1240:[.716,.022,.669],1241:[.455,.011,.458],1242:[.849,.022,.667],1243:[.66,.011,.458],1244:[.85,0,1.111],1245:[.66,0,.739],1246:[.849,.022,.611],1247:[.66,.011,.444],1248:[.694,.022,.546],1249:[.445,.205,.435],1250:[.85,0,.694],1251:[.682,0,.537],1252:[.849,0,.694],1253:[.66,0,.537],1254:[.849,.022,.736],1255:[.66,.011,.5],1256:[.716,.022,.736],1257:[.461,.011,.5],1258:[.849,.022,.736],1259:[.66,.011,.5],1260:[.849,.022,.639],1261:[.66,.011,.444],1262:[.85,0,.667],1263:[.682,.205,.461],1264:[.849,0,.667],1265:[.66,.205,.461],1266:[.851,0,.667],1267:[.64,.205,.461,{ic:.012}],1268:[.849,0,.694],1269:[.66,0,.537],1270:[.694,.195,.542],1271:[.445,.162,.404],1272:[.849,0,.889],1273:[.66,0,.683],1276:[.694,.217,.667],1277:[.445,.205,.461],1278:[.694,0,.667],1279:[.445,0,.461,{ic:.004}],1298:[.694,.217,.711],1299:[.445,.205,.528],1306:[.716,.125,.736],1307:[.455,.195,.517],1308:[.694,0,.944],1309:[.445,0,.683]}},CYSSB:{"bold-sans-serif":{1024:[.938,0,.642],1025:[.882,0,.642],1026:[.689,.022,.733,{ic:.113}],1027:[.938,0,.58],1028:[.717,.022,.703],1029:[.717,.022,.611],1030:[.694,0,.331],1031:[.871,0,.325,{ic:.025}],1032:[.694,.022,.519],1033:[.694,0,1.155],1034:[.694,0,1.115],1035:[.689,0,.834],1036:[.938,0,.764],1037:[.938,0,.764],1038:[.901,0,.733],1039:[.694,.195,.764],1040:[.694,0,.733],1041:[.694,0,.733],1042:[.694,0,.733],1043:[.694,0,.58],1044:[.694,.195,.844],1045:[.692,0,.642],1046:[.694,0,1.219],1047:[.717,.022,.672],1048:[.694,0,.734],1049:[.901,0,.734],1050:[.694,0,.764],1051:[.694,0,.755],1052:[.694,0,.978],1053:[.694,0,.764],1054:[.717,.022,.794],1055:[.691,0,.734],1056:[.694,0,.703],1057:[.706,.011,.703],1058:[.689,0,.733],1059:[.694,0,.733],1060:[.694,0,.794],1061:[.694,0,.733],1062:[.694,.195,.804],1063:[.694,0,.764],1064:[.694,0,1.197],1065:[.694,.195,1.347],1066:[.694,0,.943],1067:[.694,0,.978],1068:[.694,0,.733],1069:[.717,.022,.703],1070:[.717,.022,1.14],1071:[.694,0,.703],1072:[.46,.011,.525],1073:[.698,.011,.55],1074:[.443,0,.525],1075:[.444,0,.433],1076:[.443,.157,.636],1077:[.46,.011,.511],1078:[.445,.001,.805],1079:[.46,.011,.489],1080:[.443,0,.592],1081:[.651,0,.592],1082:[.443,0,.53],1083:[.443,0,.598],1084:[.443,0,.744],1085:[.443,0,.561],1086:[.46,.011,.55],1087:[.443,0,.561],1088:[.454,.188,.561],1089:[.46,.011,.489],1090:[.443,0,.489],1091:[.443,.199,.5],1092:[.699,.188,.836],1093:[.443,0,.5],1094:[.443,.157,.629],1095:[.443,0,.592],1096:[.443,0,.836],1097:[.443,.157,.873],1098:[.443,0,.642],1099:[.443,0,.744],1100:[.443,0,.525],1101:[.46,.011,.489],1102:[.46,.011,.8],1103:[.443,0,.555],1104:[.667,.011,.511],1105:[.656,.011,.511],1106:[.699,.192,.53],1107:[.652,0,.433],1108:[.46,.011,.483],1109:[.454,.011,.396],1110:[.632,0,.24],1111:[.63,0,.256,{ic:.032}],1112:[.632,.162,.269],1113:[.443,0,.853],1114:[.443,0,.846],1115:[.699,0,.561],1116:[.652,0,.53],1117:[.667,0,.592],1118:[.692,.199,.5],1119:[.443,.157,.592],1120:[.716,.022,1.008],1121:[.466,.021,.916],1122:[.75,0,.855],1123:[.68,0,.55],1124:[.717,.022,1.048],1125:[.46,.011,.745],1126:[.694,0,1.016],1127:[.443,0,.833],1128:[.694,0,1.393],1129:[.443,0,1.123],1130:[.693,0,1.121],1131:[.443,0,.866],1132:[.694,0,1.459],1133:[.443,0,1.187],1134:[.852,.209,.598],1135:[.557,.209,.476],1136:[.694,0,.855],1137:[.699,.189,.703],1138:[.717,.022,.794],1139:[.466,.021,.55],1140:[.694,0,.794],1141:[.454,0,.562],1142:[.927,0,.794],1143:[.663,0,.562],1146:[.775,.08,1.039],1147:[.515,.066,.672],1148:[.925,.022,1.008],1149:[.668,.021,.916],1150:[.903,.022,1.008],1151:[.646,.021,.916],1152:[.717,.224,.703],1153:[.506,.204,.483],1154:[.228,.233,.428],1155:[.689,-.528,0,{dx:.001}],1156:[.69,-.495,0,{dx:.287}],1157:[.752,-.527,0,{dx:.295}],1158:[.752,-.527,0,{dx:.318}],1160:[.835,.335,0],1161:[.94,.44,0],1162:[.91,.194,.764],1163:[.673,.162,.592],1164:[.695,0,.855],1165:[.668,0,.55],1166:[.694,0,.703],1167:[.469,.194,.561,{ic:.048}],1168:[.865,0,.596],1169:[.597,0,.433],1170:[.694,0,.58],1171:[.459,0,.433],1172:[.694,.217,.794],1173:[.458,.206,.586],1174:[.694,.195,1.219],1175:[.46,.161,.815],1176:[.717,.213,.672],1177:[.46,.206,.489],1178:[.694,.194,.764],1179:[.458,.162,.53],1180:[.694,0,.886],1181:[.458,0,.707],1182:[.694,0,.764],1183:[.722,0,.51],1184:[.694,0,.925],1185:[.46,0,.63],1186:[.694,.194,.764],1187:[.458,.162,.608],1188:[.694,0,.974],1189:[.459,0,.703],1190:[.691,.217,1.116],1191:[.458,.206,.838],1192:[.717,.101,.855],1193:[.46,.096,.55],1194:[.706,.213,.703],1195:[.46,.206,.489],1196:[.689,.194,.733],1197:[.458,.162,.489],1198:[.694,0,.733],1199:[.46,.194,.5],1200:[.694,0,.733],1201:[.46,.194,.5],1202:[.694,.194,.733],1203:[.458,.162,.504],1204:[.694,.194,1.011],1205:[.458,.162,.764],1206:[.694,.194,.804],1207:[.458,.162,.629],1208:[.694,0,.764],1209:[.458,0,.592],1210:[.694,0,.764],1211:[.722,0,.561],1212:[.717,.023,.882],1213:[.475,.011,.674],1214:[.717,.213,.882],1215:[.475,.213,.674],1216:[.694,0,.325],1217:[.929,0,1.219],1218:[.692,.001,.805],1219:[.694,.217,.764],1220:[.459,.206,.561],1221:[.694,.194,.844,{ic:.004}],1222:[.458,.162,.662],1223:[.694,.217,.764],1224:[.458,.206,.592],1225:[.694,.194,.804],1226:[.458,.162,.609],1227:[.694,.194,.764],1228:[.458,.162,.592],1229:[.694,.194,1.018],1230:[.458,.162,.782],1232:[.96,0,.733],1233:[.692,.011,.525],1234:[.881,0,.733],1235:[.634,.011,.525],1236:[.694,0,.947],1237:[.458,.01,.794],1238:[.929,0,.642],1239:[.692,.011,.511],1240:[.717,.022,.758],1241:[.454,.011,.504],1242:[.897,.022,.758],1243:[.634,.011,.504],1244:[.85,0,1.219],1245:[.638,.001,.805],1246:[.873,.022,.672],1247:[.634,.011,.489],1248:[.694,.022,.598],1249:[.458,.206,.476],1250:[.844,0,.734],1251:[.632,0,.592],1252:[.85,0,.734],1253:[.634,0,.592],1254:[.882,.022,.794],1255:[.635,.011,.55],1256:[.717,.022,.794],1257:[.46,.011,.55],1258:[.898,.022,.794],1259:[.643,.011,.55],1260:[.877,.022,.703],1261:[.634,.011,.489],1262:[.872,0,.733],1263:[.632,.199,.5],1264:[.878,0,.733],1265:[.634,.199,.5],1266:[.925,0,.733],1267:[.677,.199,.5],1268:[.85,0,.764],1269:[.634,0,.592],1270:[.694,.194,.58],1271:[.459,.161,.433],1272:[.85,0,.978],1273:[.634,0,.744],1276:[.694,.217,.733],1277:[.458,.206,.5],1278:[.694,0,.733],1279:[.458,0,.5],1298:[.694,.217,.755],1299:[.458,.206,.598],1306:[.717,.111,.794],1307:[.454,.157,.527],1308:[.694,0,1.039],1309:[.444,0,.699]}},CYSSI:{"sans-serif-italic":{1024:[.851,0,.597,{ic:.093}],1025:[.849,0,.597,{ic:.093}],1026:[.694,.022,.819,{ic:.032}],1027:[.851,0,.542,{ic:.105}],1028:[.716,.022,.639,{ic:.084}],1029:[.716,.022,.555,{ic:.052}],1030:[.694,0,.278,{ic:.054}],1031:[.849,0,.278,{ic:.183}],1032:[.694,.022,.472,{ic:.064}],1033:[.694,0,1.037],1034:[.694,0,1.021],1035:[.694,0,.764,{ic:.014}],1036:[.851,0,.694,{ic:.098}],1037:[.851,0,.694,{ic:.054}],1038:[.889,0,.667,{ic:.135}],1039:[.694,.195,.694,{ic:.054}],1040:[.694,0,.667],1041:[.694,0,.667,{ic:.035}],1042:[.694,0,.667,{ic:.028}],1043:[.694,0,.542,{ic:.105}],1044:[.694,.195,.728,{ic:.037}],1045:[.694,0,.597,{ic:.093}],1046:[.694,0,1.111,{ic:.097}],1047:[.716,.022,.611,{ic:.047}],1048:[.694,0,.694,{ic:.054}],1049:[.889,0,.694,{ic:.054}],1050:[.694,0,.694,{ic:.098}],1051:[.694,0,.711,{ic:.054}],1052:[.694,0,.875,{ic:.048}],1053:[.694,0,.694,{ic:.054}],1054:[.716,.022,.736,{ic:.027}],1055:[.694,0,.694,{ic:.054}],1056:[.694,0,.639,{ic:.052}],1057:[.716,.022,.639,{ic:.084}],1058:[.694,0,.68,{ic:.111}],1059:[.694,0,.667,{ic:.135}],1060:[.694,0,.833,{ic:.028}],1061:[.694,0,.667,{ic:.096}],1062:[.694,.195,.711,{ic:.037}],1063:[.694,0,.694,{ic:.053}],1064:[.694,0,1.083,{ic:.053}],1065:[.694,.195,1.1,{ic:.036}],1066:[.694,0,.868],1067:[.694,0,.889,{ic:.047}],1068:[.694,0,.667],1069:[.716,.022,.639,{ic:.016}],1070:[.716,.022,1.041,{ic:.027}],1071:[.694,0,.646,{ic:.051}],1072:[.461,.011,.48],1073:[.723,.011,.5,{ic:.085}],1074:[.445,0,.48,{ic:.017}],1075:[.445,0,.404,{ic:.07}],1076:[.445,.162,.539,{ic:.002}],1077:[.461,.011,.444,{ic:.028}],1078:[.445,0,.739,{ic:.061}],1079:[.461,.011,.444,{ic:.029}],1080:[.445,0,.537,{ic:.013}],1081:[.639,0,.537,{ic:.037}],1082:[.445,0,.489,{ic:.061}],1083:[.445,0,.528,{ic:.013}],1084:[.445,0,.669,{ic:.014}],1085:[.445,0,.517,{ic:.012}],1086:[.461,.011,.5,{ic:.021}],1087:[.445,0,.517,{ic:.012}],1088:[.455,.195,.517,{ic:.018}],1089:[.461,.011,.444,{ic:.056}],1090:[.445,0,.458,{ic:.07}],1091:[.445,.205,.461,{ic:.083}],1092:[.722,.195,.766,{ic:.019}],1093:[.445,0,.461,{ic:.083}],1094:[.445,.162,.548,{ic:.002}],1095:[.445,0,.537,{ic:.013}],1096:[.445,0,.766,{ic:.013}],1097:[.445,.162,.778,{ic:.001}],1098:[.445,0,.59],1099:[.445,0,.683,{ic:.013}],1100:[.445,0,.48],1101:[.461,.011,.444,{ic:.017}],1102:[.461,.011,.73,{ic:.022}],1103:[.445,0,.515,{ic:.013}],1104:[.64,.011,.444,{ic:.032}],1105:[.659,.011,.444,{ic:.06}],1106:[.722,.195,.489,{ic:.094}],1107:[.64,0,.39,{ic:.084}],1108:[.461,.011,.439,{ic:.055}],1109:[.461,.011,.383,{ic:.053}],1110:[.679,0,.239,{ic:.069}],1111:[.659,0,.239,{ic:.162}],1112:[.679,.205,.267,{ic:.064}],1113:[.445,0,.755],1114:[.445,0,.765],1115:[.722,0,.517,{ic:.011}],1116:[.64,0,.489,{ic:.061}],1117:[.64,0,.537,{ic:.013}],1118:[.639,.205,.461,{ic:.083}],1119:[.445,.162,.537,{ic:.013}],1120:[.716,.022,.916,{ic:.026}],1121:[.467,.022,.819],1122:[.75,0,.778],1123:[.639,0,.5],1124:[.716,.022,.944,{ic:.085}],1125:[.461,.011,.68,{ic:.051}],1126:[.694,0,.844],1127:[.445,0,.672],1128:[.694,0,1.177,{ic:.002}],1129:[.445,0,.936,{ic:.007}],1130:[.694,0,.944],1131:[.445,0,.794],1132:[.694,0,1.277],1133:[.445,0,1.086],1134:[.843,.205,.546,{ic:.091}],1135:[.553,.205,.435,{ic:.076}],1136:[.694,0,.778,{ic:.075}],1137:[.722,.195,.639,{ic:.068}],1138:[.716,.022,.736,{ic:.027}],1139:[.467,.022,.5,{ic:.021}],1140:[.694,0,.722,{ic:.12}],1141:[.455,0,.492,{ic:.077}],1142:[.851,0,.722,{ic:.12}],1143:[.64,0,.492,{ic:.077}],1146:[.757,.063,.944,{ic:.031}],1147:[.496,.046,.611,{ic:.024}],1148:[.911,.022,.916,{ic:.026}],1149:[.661,.022,.819],1150:[.889,.022,.916,{ic:.026}],1151:[.64,.022,.819],1152:[.716,.218,.639,{ic:.084}],1153:[.522,.205,.439,{ic:.066}],1154:[.212,.213,.389,{ic:.026}],1155:[.661,-.51,0,{dx:-.123}],1156:[.661,-.467,0,{dx:.151}],1157:[.738,-.508,0,{dx:.126}],1158:[.738,-.508,0,{dx:.154}],1160:[.802,.302,0],1161:[.854,.354,0],1162:[.889,.195,.694,{ic:.054}],1163:[.639,.162,.537,{ic:.037}],1164:[.694,0,.778],1165:[.639,0,.5],1166:[.694,0,.639,{ic:.052}],1167:[.455,.195,.517,{ic:.036}],1168:[.889,0,.555,{ic:.148}],1169:[.545,0,.404,{ic:.092}],1170:[.694,0,.542,{ic:.105}],1171:[.445,0,.404,{ic:.07}],1172:[.694,.217,.708],1173:[.445,.205,.536],1174:[.694,.195,1.111,{ic:.097}],1175:[.445,.162,.739,{ic:.061}],1176:[.716,.217,.611,{ic:.047}],1177:[.461,.217,.444,{ic:.029}],1178:[.694,.195,.694,{ic:.098}],1179:[.445,.162,.489,{ic:.061}],1180:[.694,0,.798,{ic:.099}],1181:[.445,0,.621,{ic:.061}],1182:[.694,0,.694,{ic:.098}],1183:[.722,0,.517,{ic:.061}],1184:[.694,0,.896,{ic:.097}],1185:[.445,0,.598,{ic:.062}],1186:[.694,.195,.711,{ic:.037}],1187:[.445,.162,.548,{ic:.002}],1188:[.694,0,.896,{ic:.111}],1189:[.445,0,.647,{ic:.07}],1190:[.694,.217,1.041],1191:[.445,.205,.762],1192:[.716,.095,.778,{ic:.023}],1193:[.461,.094,.5,{ic:.019}],1194:[.716,.217,.639,{ic:.084}],1195:[.461,.217,.444,{ic:.056}],1196:[.694,.195,.68,{ic:.111}],1197:[.445,.162,.458,{ic:.07}],1198:[.694,0,.667,{ic:.148}],1199:[.445,.195,.461,{ic:.094}],1200:[.694,0,.667,{ic:.148}],1201:[.445,.195,.461,{ic:.093}],1202:[.694,.195,.667,{ic:.096}],1203:[.445,.162,.461,{ic:.083}],1204:[.694,.195,.912,{ic:.037}],1205:[.445,.162,.675,{ic:.002}],1206:[.694,.195,.711,{ic:.036}],1207:[.445,.162,.548,{ic:.002}],1208:[.694,0,.694,{ic:.053}],1209:[.445,0,.537,{ic:.013}],1210:[.694,0,.694],1211:[.722,0,.517],1212:[.716,.022,.794,{ic:.062}],1213:[.461,.011,.548,{ic:.028}],1214:[.716,.21,.794,{ic:.062}],1215:[.461,.212,.548,{ic:.028}],1216:[.694,0,.278,{ic:.054}],1217:[.889,0,1.111,{ic:.097}],1218:[.639,0,.739,{ic:.061}],1219:[.694,.217,.694,{ic:.098}],1220:[.445,.205,.517,{ic:.061}],1221:[.694,.195,.728,{ic:.037}],1222:[.445,.162,.539,{ic:.001}],1223:[.694,.217,.694,{ic:.054}],1224:[.445,.206,.537,{ic:.013}],1225:[.694,.195,.711,{ic:.037}],1226:[.445,.162,.548,{ic:.002}],1227:[.694,.195,.694,{ic:.053}],1228:[.445,.162,.537,{ic:.013}],1229:[.694,.195,.891,{ic:.031}],1230:[.445,.162,.68,{ic:.003}],1232:[.889,0,.667,{ic:.018}],1233:[.639,.011,.48,{ic:.076}],1234:[.849,0,.667],1235:[.659,.011,.48,{ic:.052}],1236:[.694,0,.861,{ic:.092}],1237:[.461,.011,.722,{ic:.03}],1238:[.889,0,.597,{ic:.093}],1239:[.639,.011,.444,{ic:.084}],1240:[.716,.022,.669,{ic:.041}],1241:[.455,.011,.458,{ic:.018}],1242:[.849,.022,.667,{ic:.04}],1243:[.659,.011,.458,{ic:.053}],1244:[.849,0,1.111,{ic:.097}],1245:[.659,0,.739,{ic:.061}],1246:[.849,.022,.611,{ic:.047}],1247:[.659,.011,.444,{ic:.06}],1248:[.694,.022,.546,{ic:.113}],1249:[.445,.205,.435,{ic:.059}],1250:[.85,0,.694,{ic:.054}],1251:[.682,0,.537,{ic:.046}],1252:[.849,0,.694,{ic:.054}],1253:[.66,0,.537,{ic:.013}],1254:[.849,.022,.736,{ic:.027}],1255:[.659,.011,.5,{ic:.031}],1256:[.716,.022,.736,{ic:.027}],1257:[.461,.011,.5,{ic:.021}],1258:[.849,.022,.736,{ic:.027}],1259:[.659,.011,.5,{ic:.031}],1260:[.849,.022,.639,{ic:.016}],1261:[.659,.011,.444,{ic:.06}],1262:[.85,0,.667,{ic:.135}],1263:[.682,.205,.461,{ic:.086}],1264:[.849,0,.667,{ic:.135}],1265:[.66,.205,.461,{ic:.083}],1266:[.851,0,.667,{ic:.135}],1267:[.64,.205,.461,{ic:.15}],1268:[.849,0,.694,{ic:.053}],1269:[.659,0,.537,{ic:.013}],1270:[.694,.195,.542,{ic:.105}],1271:[.445,.162,.404,{ic:.07}],1272:[.85,0,.889,{ic:.047}],1273:[.66,0,.683,{ic:.013}],1276:[.694,.217,.667,{ic:.096}],1277:[.445,.205,.461,{ic:.083}],1278:[.694,0,.667,{ic:.096}],1279:[.445,0,.461,{ic:.083}],1298:[.694,.217,.711,{ic:.054}],1299:[.445,.206,.528,{ic:.013}],1306:[.716,.125,.736,{ic:.027}],1307:[.455,.195,.517,{ic:.015}],1308:[.694,0,.944,{ic:.135}],1309:[.445,0,.683,{ic:.083}]}},CYSSBI:{"sans-serif-bold-italic":{1024:[.938,0,.642,{ic:.084}],1025:[.882,0,.642,{ic:.084}],1026:[.689,.022,.733,{ic:.194}],1027:[.938,0,.58,{ic:.101}],1028:[.717,.022,.703,{ic:.082}],1029:[.717,.022,.611,{ic:.045}],1030:[.694,0,.331,{ic:.055}],1031:[.871,0,.325,{ic:.204}],1032:[.694,.022,.519,{ic:.055}],1033:[.694,0,1.155,{ic:.022}],1034:[.694,0,1.115,{ic:.018}],1035:[.689,0,.834,{ic:.032}],1036:[.938,0,.764,{ic:.085}],1037:[.938,0,.764,{ic:.085}],1038:[.901,0,.733,{ic:.13}],1039:[.694,.195,.764,{ic:.055}],1040:[.694,0,.733],1041:[.694,0,.733,{ic:.025}],1042:[.694,0,.733,{ic:.048}],1043:[.694,0,.58,{ic:.101}],1044:[.694,.195,.844,{ic:.016}],1045:[.692,0,.642,{ic:.084}],1046:[.694,0,1.219,{ic:.085}],1047:[.717,.022,.672,{ic:.074}],1048:[.694,0,.734,{ic:.085}],1049:[.901,0,.734,{ic:.085}],1050:[.694,0,.764,{ic:.085}],1051:[.694,0,.755,{ic:.104}],1052:[.694,0,.978,{ic:.054}],1053:[.694,0,.764,{ic:.055}],1054:[.717,.022,.794,{ic:.052}],1055:[.691,0,.734,{ic:.084}],1056:[.694,0,.703,{ic:.052}],1057:[.706,.011,.703,{ic:.073}],1058:[.689,0,.733,{ic:.105}],1059:[.694,0,.733,{ic:.13}],1060:[.694,0,.794,{ic:.043}],1061:[.694,0,.733,{ic:.085}],1062:[.694,.195,.804,{ic:.015}],1063:[.694,0,.764,{ic:.06}],1064:[.694,0,1.197,{ic:.065}],1065:[.694,.195,1.347],1066:[.694,0,.943,{ic:.017}],1067:[.694,0,.978,{ic:.058}],1068:[.694,0,.733,{ic:.017}],1069:[.717,.022,.703,{ic:.075}],1070:[.717,.022,1.14,{ic:.052}],1071:[.694,0,.703,{ic:.058}],1072:[.46,.011,.525,{ic:.008}],1073:[.698,.011,.55,{ic:.056}],1074:[.443,0,.525,{ic:.016}],1075:[.444,0,.433,{ic:.052}],1076:[.443,.157,.636],1077:[.46,.011,.511,{ic:.03}],1078:[.445,.001,.805,{ic:.054}],1079:[.46,.011,.489,{ic:.028}],1080:[.443,0,.592,{ic:.008}],1081:[.651,0,.592,{ic:.016}],1082:[.443,0,.53,{ic:.062}],1083:[.443,0,.598,{ic:.008}],1084:[.443,0,.744,{ic:.004}],1085:[.443,0,.561,{ic:.008}],1086:[.46,.011,.55,{ic:.033}],1087:[.443,0,.561,{ic:.008}],1088:[.454,.188,.561,{ic:.018}],1089:[.46,.011,.489,{ic:.038}],1090:[.443,0,.489,{ic:.05}],1091:[.443,.199,.5,{ic:.064}],1092:[.699,.188,.836,{ic:.026}],1093:[.443,0,.5,{ic:.059}],1094:[.443,.157,.629],1095:[.443,0,.592,{ic:.008}],1096:[.443,0,.836],1097:[.443,.157,.873],1098:[.443,0,.642],1099:[.443,0,.744,{ic:.003}],1100:[.443,0,.525],1101:[.46,.011,.489,{ic:.032}],1102:[.46,.011,.8,{ic:.024}],1103:[.443,0,.555,{ic:.017}],1104:[.667,.011,.511,{ic:.03}],1105:[.656,.011,.511,{ic:.057}],1106:[.699,.192,.53,{ic:.107}],1107:[.652,0,.433,{ic:.095}],1108:[.46,.011,.483,{ic:.035}],1109:[.454,.011,.396,{ic:.056}],1110:[.632,0,.24,{ic:.069}],1111:[.63,0,.256,{ic:.166}],1112:[.632,.162,.269,{ic:.069}],1113:[.443,0,.853],1114:[.443,0,.846],1115:[.699,0,.561,{ic:.022}],1116:[.652,0,.53,{ic:.062}],1117:[.667,0,.592,{ic:.008}],1118:[.692,.199,.5,{ic:.077}],1119:[.443,.157,.592,{ic:.008}],1120:[.716,.022,1.008,{ic:.071}],1121:[.466,.021,.916],1122:[.75,0,.855],1123:[.68,0,.55],1124:[.717,.022,1.048,{ic:.084}],1125:[.46,.011,.745,{ic:.023}],1126:[.694,0,1.016],1127:[.443,0,.833],1128:[.694,0,1.393],1129:[.443,0,1.123],1130:[.693,0,1.121],1131:[.443,0,.866],1132:[.694,0,1.459],1133:[.443,0,1.187],1134:[.852,.209,.598,{ic:.071}],1135:[.557,.209,.476,{ic:.028}],1136:[.694,0,.855,{ic:.065}],1137:[.699,.189,.703,{ic:.046}],1138:[.717,.022,.794,{ic:.052}],1139:[.466,.021,.55,{ic:.039}],1140:[.694,0,.794,{ic:.115}],1141:[.454,0,.562,{ic:.057}],1142:[.927,0,.794,{ic:.115}],1143:[.663,0,.562,{ic:.057}],1146:[.775,.08,1.039,{ic:.047}],1147:[.515,.066,.672,{ic:.028}],1148:[.925,.022,1.008,{ic:.07}],1149:[.668,.021,.916],1150:[.903,.022,1.008,{ic:.07}],1151:[.646,.021,.916],1152:[.717,.224,.703,{ic:.077}],1153:[.506,.204,.483,{ic:.052}],1154:[.228,.233,.428,{ic:.027}],1155:[.689,-.528,0,{dx:-.129}],1156:[.69,-.495,0,{dx:.172}],1157:[.752,-.527,0,{dx:.149}],1158:[.752,-.527,0,{dx:.18}],1160:[.835,.335,0],1161:[.94,.44,0],1162:[.91,.194,.764,{ic:.055}],1163:[.673,.162,.592,{ic:.037}],1164:[.695,0,.855],1165:[.668,0,.55],1166:[.694,0,.703,{ic:.052}],1167:[.469,.194,.561,{ic:.054}],1168:[.865,0,.596,{ic:.138}],1169:[.597,0,.433,{ic:.099}],1170:[.694,0,.58,{ic:.101}],1171:[.459,0,.433,{ic:.068}],1172:[.694,.217,.794,{ic:.015}],1173:[.458,.206,.586],1174:[.694,.195,1.219,{ic:.085}],1175:[.46,.161,.815,{ic:.072}],1176:[.717,.213,.672,{ic:.074}],1177:[.46,.206,.489,{ic:.028}],1178:[.694,.194,.764,{ic:.085}],1179:[.458,.162,.53,{ic:.081}],1180:[.694,0,.886,{ic:.12}],1181:[.458,0,.707,{ic:.054}],1182:[.694,0,.764,{ic:.115}],1183:[.722,0,.51,{ic:.051}],1184:[.694,0,.925,{ic:.115}],1185:[.46,0,.63,{ic:.051}],1186:[.694,.194,.764,{ic:.055}],1187:[.458,.162,.608],1188:[.694,0,.974,{ic:.106}],1189:[.459,0,.703,{ic:.077}],1190:[.691,.217,1.116,{ic:.074}],1191:[.458,.206,.838],1192:[.717,.101,.855,{ic:.024}],1193:[.46,.096,.55,{ic:.016}],1194:[.706,.213,.703,{ic:.073}],1195:[.46,.206,.489,{ic:.038}],1196:[.689,.194,.733,{ic:.105}],1197:[.458,.162,.489,{ic:.068}],1198:[.694,0,.733,{ic:.143}],1199:[.46,.194,.5,{ic:.097}],1200:[.694,0,.733,{ic:.143}],1201:[.46,.194,.5,{ic:.097}],1202:[.694,.194,.733,{ic:.085}],1203:[.458,.162,.504,{ic:.073}],1204:[.694,.194,1.011,{ic:.015}],1205:[.458,.162,.764],1206:[.694,.194,.804,{ic:.02}],1207:[.458,.162,.629],1208:[.694,0,.764,{ic:.06}],1209:[.458,0,.592,{ic:.028}],1210:[.694,0,.764],1211:[.722,0,.561,{ic:.039}],1212:[.717,.023,.882,{ic:.107}],1213:[.475,.011,.674,{ic:.047}],1214:[.717,.213,.882,{ic:.107}],1215:[.475,.213,.674,{ic:.047}],1216:[.694,0,.325,{ic:.061}],1217:[.929,0,1.219,{ic:.085}],1218:[.692,.001,.805,{ic:.054}],1219:[.694,.217,.764,{ic:.115}],1220:[.459,.206,.561,{ic:.089}],1221:[.694,.194,.844,{ic:.025}],1222:[.458,.162,.662,{ic:.003}],1223:[.694,.217,.764,{ic:.055}],1224:[.458,.206,.592,{ic:.028}],1225:[.694,.194,.804,{ic:.015}],1226:[.458,.162,.609,{ic:.006}],1227:[.694,.194,.764,{ic:.06}],1228:[.458,.162,.592,{ic:.028}],1229:[.694,.194,1.018,{ic:.014}],1230:[.458,.162,.782,{ic:.002}],1232:[.96,0,.733,{ic:.042}],1233:[.692,.011,.525,{ic:.065}],1234:[.881,0,.733],1235:[.634,.011,.525,{ic:.033}],1236:[.694,0,.947,{ic:.085}],1237:[.458,.01,.794],1238:[.929,0,.642,{ic:.115}],1239:[.692,.011,.511,{ic:.086}],1240:[.717,.022,.758,{ic:.066}],1241:[.454,.011,.504,{ic:.04}],1242:[.897,.022,.758,{ic:.066}],1243:[.634,.011,.504,{ic:.04}],1244:[.85,0,1.219,{ic:.085}],1245:[.638,.001,.805,{ic:.054}],1246:[.873,.022,.672,{ic:.074}],1247:[.634,.011,.489,{ic:.038}],1248:[.694,.022,.598,{ic:.112}],1249:[.458,.206,.476,{ic:.06}],1250:[.844,0,.734,{ic:.085}],1251:[.632,0,.592,{ic:.008}],1252:[.85,0,.734,{ic:.085}],1253:[.634,0,.592,{ic:.008}],1254:[.882,.022,.794,{ic:.052}],1255:[.635,.011,.55,{ic:.033}],1256:[.717,.022,.794,{ic:.052}],1257:[.46,.011,.55,{ic:.034}],1258:[.898,.022,.794,{ic:.052}],1259:[.643,.011,.55,{ic:.034}],1260:[.877,.022,.703,{ic:.075}],1261:[.634,.011,.489,{ic:.043}],1262:[.872,0,.733,{ic:.13}],1263:[.632,.199,.5,{ic:.08}],1264:[.878,0,.733,{ic:.13}],1265:[.634,.199,.5,{ic:.064}],1266:[.925,0,.733,{ic:.13}],1267:[.677,.199,.5,{ic:.091}],1268:[.85,0,.764,{ic:.06}],1269:[.634,0,.592,{ic:.008}],1270:[.694,.194,.58,{ic:.101}],1271:[.459,.161,.433,{ic:.068}],1272:[.85,0,.978,{ic:.058}],1273:[.634,0,.744,{ic:.003}],1276:[.694,.217,.733,{ic:.085}],1277:[.458,.206,.5,{ic:.077}],1278:[.694,0,.733,{ic:.085}],1279:[.458,0,.5,{ic:.077}],1298:[.694,.217,.755,{ic:.104}],1299:[.458,.206,.598,{ic:.028}],1306:[.717,.111,.794,{ic:.037}],1307:[.454,.157,.527,{ic:.039}],1308:[.694,0,1.039,{ic:.131}],1309:[.444,0,.699,{ic:.079}]}}},"NCM"),{},["MJX-NCM-CYSS","MJX-NCM-CYSSB","MJX-NCM-CYSSI","MJX-NCM-CYSSBI"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as d,n as x}from"./mathjax-
|
|
1
|
+
import{i as d,n as x}from"./mathjax-BKrHE4xs-3ca05bf6.js";x.dynamicSetup("","devanagari",d({DV:{normal:{2304:[.906,-.683,0,{dx:.044}],2305:[.896,-.683,0,{dx:.028}],2306:[.828,-.718,0,{dx:.147}],2307:[.493,-.054,.252],2308:[1.003,.091,.917],2309:[.68,.091,.917],2310:[.68,.091,1.22],2311:[.68,.227,.72],2312:[.968,.227,.72],2313:[.68,0,.705],2314:[.68,0,.915],2315:[.68,.091,1.042],2316:[.68,.078,1.042],2317:[.922,.151,.709],2318:[1.003,.151,.709],2319:[.68,.151,.709],2320:[1.033,.151,.709],2321:[.922,.091,1.139],2322:[1.003,.091,1.22],2323:[1.033,.091,1.22],2324:[1.033,.091,1.219],2325:[.68,.092,1.041],2326:[.68,.088,.994],2327:[.68,.091,.787],2328:[.68,.088,.869],2329:[.68,.007,.788,{ic:.066}],2330:[.68,.088,.894],2331:[.68,-.008,.861],2332:[.68,.091,.921],2333:[.68,.227,.994],2334:[.68,.088,1.07],2335:[.68,-.043,.735],2336:[.68,-.043,.808],2337:[.68,.007,.788],2338:[.68,-.043,.731],2339:[.68,.088,.922],2340:[.68,.088,.793],2341:[.704,.088,.764],2342:[.68,.033,.68],2343:[.68,.088,.715],2344:[.68,.091,.789],2345:[.68,.091,.789],2346:[.68,.088,.784],2347:[.68,.088,1.025],2348:[.68,.088,.79],2349:[.704,.088,.774],2350:[.68,.088,.774],2351:[.68,.088,.787],2352:[.68,.015,.623],2353:[.68,.015,.623],2354:[.68,.088,.929],2355:[.68,-.063,.979],2356:[.68,.089,.979,{ic:.002}],2357:[.68,.088,.79],2358:[.68,.091,.865],2359:[.68,.088,.784],2360:[.68,.088,.892],2361:[.68,.173,.715],2362:[1.009,-.609,0,{dx:.128}],2363:[1.009,.088,.301,{ic:.066}],2364:[-.081,.204,0,{dx:.277}],2365:[.68,-.08,.435],2366:[.68,.088,.301,{ic:.066}],2367:[.978,.088,.301,{ic:.384}],2368:[.977,.088,.279,{ic:.066}],2369:[.038,.288,0,{dx:.232}],2370:[.024,.314,0,{dx:.074}],2371:[.032,.309,0,{dx:.166}],2372:[.065,.372,0,{dx:.16}],2373:[.922,-.749,0,{dx:0}],2374:[1.003,-.632,0,{dx:.223}],2375:[1.033,-.664,0,{dx:.178}],2376:[1.033,-.664,0,{dx:.184}],2377:[.922,.088,.301,{ic:.066}],2378:[1.003,.088,.301,{ic:.066}],2379:[1.033,.088,.301,{ic:.066}],2380:[1.033,.088,.301,{ic:.066}],2381:[-.024,.309,0,{dx:-.011}],2382:[.68,.088,.26,{ic:.066}],2383:[1.096,.088,.3,{ic:.066}],2384:[.865,-.081,.984],2385:[1.077,-.681,0,{dx:.138}],2386:[-.085,.153,0,{dx:.263}],2387:[.971,-.733,0,{dx:.178}],2388:[.971,-.733,0,{dx:.081}],2389:[1.028,-.737,0,{dx:.039}],2390:[-.048,.221,0,{dx:.328}],2391:[-.048,.388,0,{dx:.328}],2392:[.68,.092,1.041],2393:[.68,.088,.994],2394:[.68,.091,.787],2395:[.68,.091,.921],2396:[.68,.173,.788],2397:[.68,.148,.731],2398:[.68,.088,1.025],2399:[.68,.088,.787],2400:[.68,.088,1.043],2401:[.68,.258,1.042],2402:[.029,.344,0,{dx:.072}],2403:[.029,.431,0,{dx:.074}],2404:[.786,.036,.311],2405:[.786,.036,.498],2406:[.541,-.149,.487],2407:[.68,.025,.409],2408:[.68,.025,.481],2409:[.68,.025,.481],2410:[.67,.002,.646],2411:[.679,.013,.523],2412:[.68,.046,.464],2413:[.661,-.029,.685],2414:[.67,0,.454],2415:[.68,.017,.404],2416:[.437,-.155,.427],2417:[.704,-.582,.338],2418:[.922,.091,.917],2419:[1.009,.091,.917],2420:[1.009,.091,1.139],2421:[1.096,.091,1.138],2422:[.68,.221,.917],2423:[.68,.388,.917],2424:[.68,.028,.765],2425:[.68,.183,.921],2426:[.68,.088,.787],2427:[.68,.091,.8],2428:[.68,.091,.921],2429:[.689,.018,.522],2430:[.68,.173,.788],2431:[.68,.088,.79]}},DVB:{bold:{}},DVI:{italic:{}},DVBI:{"bold-italic":{}}},"NCM"),{},["MJX-NCM-DV","MJX-NCM-DVB","MJX-NCM-DVI","MJX-NCM-DVBI"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as f}from"./rolldown-runtime-1287ba31.js";import{t as c}from"./defineProperty-a20a667d.js";import{t as S}from"./preload-helper-6ad28da3.js";var u=class extends Error{constructor(e,r,t={}){var i=(...a)=>(super(...a),c(this,"code",void 0),c(this,"recoverable",void 0),this);i(r,t.cause===void 0?void 0:{cause:t.cause}),this.name="CortexCalculatorError",this.code=e,this.recoverable=t.recoverable??!0}};function F(e,r,t){return e instanceof u?e:new u(r,t,{cause:e,recoverable:r!=="worker-unavailable"})}var k={basicCalculator:"Basic calculator",scientificCalculator:"Scientific calculator",graphingCalculator:"Graphing calculator",expressionLabel:"{calculator} expression",angleMode:"Angle mode",degrees:"Degrees",radians:"Radians",calculate:"Calculate",calculating:"Calculating",backspace:"Backspace",clear:"Clear",result:"Result: {result}",calculationHistory:"Calculation history",clearHistory:"Clear history",virtualKeyboardBasic:"Basic",virtualKeyboardScientific:"Scientific",virtualKeyboardGraphing:"Graphing",keypad:"Keypad",keypadLayer:"Keypad layer",angleModeDegreesShort:"DEG",angleModeRadiansShort:"RAD",angleModeChanged:"Angle mode {mode}. Previous result cleared.",inserted:"{key}",keySine:"sin, sine",keyCosine:"cos, cosine",keyTangent:"tan, tangent",keyInverseSine:"sin, inverse sine",keyInverseCosine:"cos, inverse cosine",keyInverseTangent:"tan, inverse tangent",keyNaturalLog:"ln, natural logarithm",keyCommonLog:"log, common logarithm",keyLogBaseN:"Logarithm with a chosen base",keyFraction:"Fraction",keySquareRoot:"Square root",keyNthRoot:"Nth root",keyPower:"To the power of",keySquared:"Squared",keyCubed:"Cubed",keyExponential:"e to the power of",keyAbsoluteValue:"Absolute value",keyFactorial:"Factorial",keyPi:"Pi",keyEuler:"e, Euler's number",keyPercent:"Percent",keyOpenParenthesis:"Open parenthesis",keyCloseParenthesis:"Close parenthesis",keyDecimalSeparator:"Decimal separator",keyDigit:"{digit}",keyAdd:"Plus",keySubtract:"Minus",keyMultiply:"Times",keyDivide:"Divided by",keyVariableX:"x, variable x",graphExpressions:"Graph expressions",graphExpressionLabel:"Graph expression {index}, {lineStyle} line",seriesDescription:"Series {index}: {lineStyle} line",showExpression:"Show expression {index}",hideExpression:"Hide expression {index}",show:"Show",hide:"Hide",removeExpression:"Remove expression {index}",remove:"Remove",addExpression:"Add expression",graph:"Graph",viewportControls:"Graph view",zoomIn:"Zoom in",zoomOut:"Zoom out",panLeft:"Pan left",panRight:"Pan right",panUp:"Pan up",panDown:"Pan down",resetView:"Reset view",updatingGraph:"Updating graph",graphSummary:"Graph summary",viewportSummary:"Viewport x from {xMin} to {xMax}, y from {yMin} to {yMax}.",seriesSummary:"Series {index}, {lineStyle}: {expression}",keyboardGraphTrace:"Keyboard graph trace",keyboardTrace:"Keyboard trace",series:"Series",seriesOption:"Series {index}",previousPoint:"Previous point",nextPoint:"Next point",tracePoint:"x {x}, y {y}",noSampledPoint:"No sampled graph point is available.",lineStyleSolid:"solid",lineStyleDashed:"dashed",lineStyleDotted:"dotted",errorInvalidExpression:"Check the expression and try again.",errorUnsupportedExpression:"This expression is not available in this calculator.",errorExpressionTooComplex:"Simplify the expression and try again.",errorEvaluationTimeout:"The calculation took too long and was stopped.",errorInvalidState:"The saved calculator state could not be restored.",errorWorkerUnavailable:"The calculator is temporarily unavailable."},v={basicCalculator:"Eenvoudige rekenmachine",scientificCalculator:"Wetenschappelijke rekenmachine",graphingCalculator:"Grafische rekenmachine",expressionLabel:"Uitdrukking voor {calculator}",angleMode:"Hoekeenheid",degrees:"Graden",radians:"Radialen",calculate:"Bereken",calculating:"Bezig met berekenen",backspace:"Wis teken",clear:"Wissen",result:"Resultaat: {result}",calculationHistory:"Berekeningsgeschiedenis",clearHistory:"Geschiedenis wissen",virtualKeyboardBasic:"Eenvoudig",virtualKeyboardScientific:"Wetenschappelijk",virtualKeyboardGraphing:"Grafisch",keypad:"Toetsenblok",keypadLayer:"Laag van het toetsenblok",angleModeDegreesShort:"GR",angleModeRadiansShort:"RAD",angleModeChanged:"Hoekeenheid {mode}. Vorig resultaat gewist.",inserted:"{key}",keySine:"sin, sinus",keyCosine:"cos, cosinus",keyTangent:"tan, tangens",keyInverseSine:"sin, arcsinus",keyInverseCosine:"cos, arccosinus",keyInverseTangent:"tan, arctangens",keyNaturalLog:"ln, natuurlijke logaritme",keyCommonLog:"log, logaritme met grondtal tien",keyLogBaseN:"Logaritme met gekozen grondtal",keyFraction:"Breuk",keySquareRoot:"Vierkantswortel",keyNthRoot:"N-de wortel",keyPower:"Tot de macht",keySquared:"Kwadraat",keyCubed:"Derde macht",keyExponential:"e tot de macht",keyAbsoluteValue:"Absolute waarde",keyFactorial:"Faculteit",keyPi:"Pi",keyEuler:"e, getal van Euler",keyPercent:"Procent",keyOpenParenthesis:"Haakje openen",keyCloseParenthesis:"Haakje sluiten",keyDecimalSeparator:"Decimaalteken",keyDigit:"{digit}",keyAdd:"Plus",keySubtract:"Min",keyMultiply:"Maal",keyDivide:"Gedeeld door",keyVariableX:"x, variabele x",graphExpressions:"Grafiekuitdrukkingen",graphExpressionLabel:"Grafiekuitdrukking {index}, {lineStyle} lijn",seriesDescription:"Reeks {index}: {lineStyle} lijn",showExpression:"Uitdrukking {index} tonen",hideExpression:"Uitdrukking {index} verbergen",show:"Tonen",hide:"Verbergen",removeExpression:"Uitdrukking {index} verwijderen",remove:"Verwijderen",addExpression:"Uitdrukking toevoegen",graph:"Grafiek",viewportControls:"Grafiekweergave",zoomIn:"Inzoomen",zoomOut:"Uitzoomen",panLeft:"Naar links verschuiven",panRight:"Naar rechts verschuiven",panUp:"Naar boven verschuiven",panDown:"Naar beneden verschuiven",resetView:"Weergave herstellen",updatingGraph:"Grafiek wordt bijgewerkt",graphSummary:"Samenvatting van de grafiek",viewportSummary:"Weergave x van {xMin} tot {xMax}, y van {yMin} tot {yMax}.",seriesSummary:"Reeks {index}, {lineStyle}: {expression}",keyboardGraphTrace:"Grafiek volgen met het toetsenbord",keyboardTrace:"Volgen met het toetsenbord",series:"Reeks",seriesOption:"Reeks {index}",previousPoint:"Vorig punt",nextPoint:"Volgend punt",tracePoint:"x {x}, y {y}",noSampledPoint:"Er is geen bemonsterd grafiekpunt beschikbaar.",lineStyleSolid:"ononderbroken",lineStyleDashed:"gestreepte",lineStyleDotted:"gestippelde",errorInvalidExpression:"Controleer de uitdrukking en probeer het opnieuw.",errorUnsupportedExpression:"Deze uitdrukking is niet beschikbaar in deze rekenmachine.",errorExpressionTooComplex:"Vereenvoudig de uitdrukking en probeer het opnieuw.",errorEvaluationTimeout:"De berekening duurde te lang en is gestopt.",errorInvalidState:"De opgeslagen rekenmachinestatus kon niet worden hersteld.",errorWorkerUnavailable:"De rekenmachine is tijdelijk niet beschikbaar."},C={"invalid-expression":"errorInvalidExpression","unsupported-expression":"errorUnsupportedExpression","expression-too-complex":"errorExpressionTooComplex","evaluation-timeout":"errorEvaluationTimeout","invalid-state":"errorInvalidState","worker-unavailable":"errorWorkerUnavailable"},M={solid:"lineStyleSolid",dashed:"lineStyleDashed",dotted:"lineStyleDotted"},E=new Set(["ar","ckb","dv","fa","he","iw","ks","ku","nqo","ps","sd","syr","ug","ur","yi"]);function b(e){try{return new Intl.Locale(e.replaceAll("_","-")).language.toLowerCase()}catch{return e.replaceAll("_","-").split("-")[0]?.toLowerCase()??"en"}}function P(e){try{return new Intl.NumberFormat(e).format(1.1).includes(",")?",":"."}catch{return"."}}function x(e){try{const r=new Intl.Locale(e.replaceAll("_","-")).textInfo;if(r?.direction==="rtl"||r?.direction==="ltr")return r.direction}catch{}return E.has(b(e))?"rtl":"ltr"}function T(e){return b(e)==="nl"?v:k}function D(e,r){return e.replace(/\{([a-zA-Z][a-zA-Z0-9]*)\}/g,(t,i)=>Object.hasOwn(r,i)?String(r[i]):t)}function G(e,r={},t="auto"){const i=Object.freeze({...T(e),...r}),a=t==="auto"?x(e):t,o=P(e);let l=null,p=0;const d=(n,h={})=>D(i[n],h);return Object.freeze({locale:e,direction:a,messages:i,t:d,formatNumber(n,h=6){try{return(!l||p!==h)&&(p=h,l=new Intl.NumberFormat(e,{maximumSignificantDigits:h,useGrouping:!1})),l.format(n)}catch{return n.toPrecision(h)}},formatResult(n){return o==="."?n:n.replace(".",o)},errorMessage(n){return d(C[n])},lineStyle(n){return d(M[n])}})}var w=k,L=v,H=1024,A={xMin:-10,xMax:10,yMin:-10,yMax:10},j=["square-root"],m=["square-root","power","root","exponential","natural-log","common-log","log-base-n","sine","cosine","tangent","inverse-sine","inverse-cosine","inverse-tangent","absolute-value","factorial"];function s(e){throw new u("invalid-state",e)}function y(e,r,t,i,a){return e===void 0?r:((!Number.isInteger(e)||e<t||e>i)&&s(`${a} must be an integer from ${t} to ${i}.`),e)}function z(e){if(e===void 0)return{...A};(!e||typeof e!="object")&&s("Graph viewport must be an object.");const r=e;return[r.xMin,r.xMax,r.yMin,r.yMax].every(t=>typeof t=="number"&&Number.isFinite(t))||s("Graph viewport bounds must be finite numbers."),(r.xMin>=r.xMax||r.yMin>=r.yMax)&&s("Graph viewport minimums must be less than maximums."),r}function I(e,r){const t=e==="basic"?j:m;if(r===void 0)return new Set(t);(!Array.isArray(r)||!r.every(o=>typeof o=="string"))&&s("allowedFunctions must be an array of function identifiers.");const i=new Set(m);for(const o of r)i.has(o)||s(`Unknown calculator function: ${o}.`);const a=new Set(r);return new Set(t.filter(o=>a.has(o)))}function g(e,r,t){return e===void 0?r:(typeof e!="boolean"&&s(`${t} must be a boolean.`),e)}function R(e){if(e===void 0)return{};(!e||typeof e!="object"||Array.isArray(e))&&s("messages must be an object.");const r={};for(const[t,i]of Object.entries(e))Object.hasOwn(w,t)&&(typeof i!="string"&&s(`messages.${t} must be a string.`),r[t]=i);return r}function N(e,r={}){const t=r.settings??{},i=t.angleMode??"degree";i!=="degree"&&i!=="radian"&&s('angleMode must be "degree" or "radian".');const a=t.graph;a!==void 0&&(!a||typeof a!="object")&&s("graph settings must be an object.");const o=r.restrictedMode===!0,l=typeof r.locale=="string"&&r.locale.trim()?r.locale.trim():"en-US",p=r.theme??"auto";p!=="light"&&p!=="dark"&&p!=="auto"&&s('theme must be "light", "dark", or "auto".');const d=t.direction??"auto";d!=="ltr"&&d!=="rtl"&&d!=="auto"&&s('direction must be "ltr", "rtl", or "auto".');const n=G(l,R(t.messages),d);return Object.freeze({type:e,angleMode:i,calculationPrecision:y(t.calculationPrecision,15,1,21,"calculationPrecision"),displayPrecision:y(t.displayPrecision,10,1,12,"displayPrecision"),historyLimit:y(t.historyLimit,20,0,50,"historyLimit"),evaluationTimeLimitMs:y(t.evaluationTimeLimitMs,1e3,100,2e3,"evaluationTimeLimitMs"),allowedFunctions:I(e,t.allowedFunctions),allowClipboard:!o&&g(t.allowClipboard,!0,"allowClipboard"),restrictedMode:o,locale:l,theme:p,localization:n,graph:Object.freeze({viewport:z(a?.viewport),showAxes:g(a?.showAxes,!0,"graph.showAxes"),showGrid:g(a?.showGrid,!0,"graph.showGrid")})})}var B=f({CortexCalculatorError:()=>u,CortexCalculatorProvider:()=>O,cortexDutchMessages:()=>L,cortexEnglishMessages:()=>w,localeDirection:()=>x}),O=class{constructor(e={}){c(this,"providerId","cortex"),c(this,"providerName","PIE Open-Source Calculator"),c(this,"supportedTypes",["basic","scientific","graphing"]),c(this,"version","1"),c(this,"initialized",!1),c(this,"destroyed",!1),c(this,"instances",new Set),c(this,"onTelemetry",void 0),this.onTelemetry=e.onTelemetry}async initialize(e={}){if(!this.initialized){if(this.destroyed)throw new u("worker-unavailable","This calculator provider has been destroyed.",{recoverable:!1});if(typeof window>"u"||typeof document>"u")throw new u("worker-unavailable","Cortex calculators can only be initialized in a browser.",{recoverable:!1});if(typeof Worker>"u")throw new u("worker-unavailable","This browser does not support module workers.",{recoverable:!1});this.onTelemetry=e.onTelemetry??this.onTelemetry,this.initialized=!0}}async createCalculator(e,r,t={}){if(this.initialized||await this.initialize(),!this.supportsType(e))throw new u("unsupported-expression",`Cortex does not support calculator type: ${e}.`);if(!(r instanceof HTMLElement))throw new u("invalid-state","A valid HTML container is required.");const i=N(e,t),{createCortexCalculator:a}=await S(async()=>{const{createCortexCalculator:l}=await import("./runtime-C7H1jS4E-64772f5e.js");return{createCortexCalculator:l}},[],import.meta.url),o=a(this,r,i,this.onTelemetry,l=>this.instances.delete(l));return this.instances.add(o),o}supportsType(e){return this.supportedTypes.includes(e)}destroy(){if(!this.destroyed){this.destroyed=!0;for(const e of[...this.instances])e.destroy();this.instances.clear(),this.initialized=!1,this.onTelemetry=void 0}}getCapabilities(){return{supportsHistory:!0,supportsGraphing:!0,supportsExpressions:!0,canExport:!0,maxPrecision:21,inputMethods:["keyboard","mouse","touch"]}}};export{u as CortexCalculatorError,O as CortexCalculatorProvider,L as cortexDutchMessages,w as cortexEnglishMessages,P as i,x as localeDirection,F as n,H as r,B as t};
|
|
1
|
+
import{n as f}from"./rolldown-runtime-1287ba31.js";import{t as c}from"./defineProperty-a20a667d.js";import{t as S}from"./preload-helper-6ad28da3.js";var u=class extends Error{constructor(e,r,t={}){var i=(...a)=>(super(...a),c(this,"code",void 0),c(this,"recoverable",void 0),this);i(r,t.cause===void 0?void 0:{cause:t.cause}),this.name="CortexCalculatorError",this.code=e,this.recoverable=t.recoverable??!0}};function F(e,r,t){return e instanceof u?e:new u(r,t,{cause:e,recoverable:r!=="worker-unavailable"})}var k={basicCalculator:"Basic calculator",scientificCalculator:"Scientific calculator",graphingCalculator:"Graphing calculator",expressionLabel:"{calculator} expression",angleMode:"Angle mode",degrees:"Degrees",radians:"Radians",calculate:"Calculate",calculating:"Calculating",backspace:"Backspace",clear:"Clear",result:"Result: {result}",calculationHistory:"Calculation history",clearHistory:"Clear history",virtualKeyboardBasic:"Basic",virtualKeyboardScientific:"Scientific",virtualKeyboardGraphing:"Graphing",keypad:"Keypad",keypadLayer:"Keypad layer",angleModeDegreesShort:"DEG",angleModeRadiansShort:"RAD",angleModeChanged:"Angle mode {mode}. Previous result cleared.",inserted:"{key}",keySine:"sin, sine",keyCosine:"cos, cosine",keyTangent:"tan, tangent",keyInverseSine:"sin, inverse sine",keyInverseCosine:"cos, inverse cosine",keyInverseTangent:"tan, inverse tangent",keyNaturalLog:"ln, natural logarithm",keyCommonLog:"log, common logarithm",keyLogBaseN:"Logarithm with a chosen base",keyFraction:"Fraction",keySquareRoot:"Square root",keyNthRoot:"Nth root",keyPower:"To the power of",keySquared:"Squared",keyCubed:"Cubed",keyExponential:"e to the power of",keyAbsoluteValue:"Absolute value",keyFactorial:"Factorial",keyPi:"Pi",keyEuler:"e, Euler's number",keyPercent:"Percent",keyOpenParenthesis:"Open parenthesis",keyCloseParenthesis:"Close parenthesis",keyDecimalSeparator:"Decimal separator",keyDigit:"{digit}",keyAdd:"Plus",keySubtract:"Minus",keyMultiply:"Times",keyDivide:"Divided by",keyVariableX:"x, variable x",graphExpressions:"Graph expressions",graphExpressionLabel:"Graph expression {index}, {lineStyle} line",seriesDescription:"Series {index}: {lineStyle} line",showExpression:"Show expression {index}",hideExpression:"Hide expression {index}",show:"Show",hide:"Hide",removeExpression:"Remove expression {index}",remove:"Remove",addExpression:"Add expression",graph:"Graph",viewportControls:"Graph view",zoomIn:"Zoom in",zoomOut:"Zoom out",panLeft:"Pan left",panRight:"Pan right",panUp:"Pan up",panDown:"Pan down",resetView:"Reset view",updatingGraph:"Updating graph",graphSummary:"Graph summary",viewportSummary:"Viewport x from {xMin} to {xMax}, y from {yMin} to {yMax}.",seriesSummary:"Series {index}, {lineStyle}: {expression}",keyboardGraphTrace:"Keyboard graph trace",keyboardTrace:"Keyboard trace",series:"Series",seriesOption:"Series {index}",previousPoint:"Previous point",nextPoint:"Next point",tracePoint:"x {x}, y {y}",noSampledPoint:"No sampled graph point is available.",lineStyleSolid:"solid",lineStyleDashed:"dashed",lineStyleDotted:"dotted",errorInvalidExpression:"Check the expression and try again.",errorUnsupportedExpression:"This expression is not available in this calculator.",errorExpressionTooComplex:"Simplify the expression and try again.",errorEvaluationTimeout:"The calculation took too long and was stopped.",errorInvalidState:"The saved calculator state could not be restored.",errorWorkerUnavailable:"The calculator is temporarily unavailable."},v={basicCalculator:"Eenvoudige rekenmachine",scientificCalculator:"Wetenschappelijke rekenmachine",graphingCalculator:"Grafische rekenmachine",expressionLabel:"Uitdrukking voor {calculator}",angleMode:"Hoekeenheid",degrees:"Graden",radians:"Radialen",calculate:"Bereken",calculating:"Bezig met berekenen",backspace:"Wis teken",clear:"Wissen",result:"Resultaat: {result}",calculationHistory:"Berekeningsgeschiedenis",clearHistory:"Geschiedenis wissen",virtualKeyboardBasic:"Eenvoudig",virtualKeyboardScientific:"Wetenschappelijk",virtualKeyboardGraphing:"Grafisch",keypad:"Toetsenblok",keypadLayer:"Laag van het toetsenblok",angleModeDegreesShort:"GR",angleModeRadiansShort:"RAD",angleModeChanged:"Hoekeenheid {mode}. Vorig resultaat gewist.",inserted:"{key}",keySine:"sin, sinus",keyCosine:"cos, cosinus",keyTangent:"tan, tangens",keyInverseSine:"sin, arcsinus",keyInverseCosine:"cos, arccosinus",keyInverseTangent:"tan, arctangens",keyNaturalLog:"ln, natuurlijke logaritme",keyCommonLog:"log, logaritme met grondtal tien",keyLogBaseN:"Logaritme met gekozen grondtal",keyFraction:"Breuk",keySquareRoot:"Vierkantswortel",keyNthRoot:"N-de wortel",keyPower:"Tot de macht",keySquared:"Kwadraat",keyCubed:"Derde macht",keyExponential:"e tot de macht",keyAbsoluteValue:"Absolute waarde",keyFactorial:"Faculteit",keyPi:"Pi",keyEuler:"e, getal van Euler",keyPercent:"Procent",keyOpenParenthesis:"Haakje openen",keyCloseParenthesis:"Haakje sluiten",keyDecimalSeparator:"Decimaalteken",keyDigit:"{digit}",keyAdd:"Plus",keySubtract:"Min",keyMultiply:"Maal",keyDivide:"Gedeeld door",keyVariableX:"x, variabele x",graphExpressions:"Grafiekuitdrukkingen",graphExpressionLabel:"Grafiekuitdrukking {index}, {lineStyle} lijn",seriesDescription:"Reeks {index}: {lineStyle} lijn",showExpression:"Uitdrukking {index} tonen",hideExpression:"Uitdrukking {index} verbergen",show:"Tonen",hide:"Verbergen",removeExpression:"Uitdrukking {index} verwijderen",remove:"Verwijderen",addExpression:"Uitdrukking toevoegen",graph:"Grafiek",viewportControls:"Grafiekweergave",zoomIn:"Inzoomen",zoomOut:"Uitzoomen",panLeft:"Naar links verschuiven",panRight:"Naar rechts verschuiven",panUp:"Naar boven verschuiven",panDown:"Naar beneden verschuiven",resetView:"Weergave herstellen",updatingGraph:"Grafiek wordt bijgewerkt",graphSummary:"Samenvatting van de grafiek",viewportSummary:"Weergave x van {xMin} tot {xMax}, y van {yMin} tot {yMax}.",seriesSummary:"Reeks {index}, {lineStyle}: {expression}",keyboardGraphTrace:"Grafiek volgen met het toetsenbord",keyboardTrace:"Volgen met het toetsenbord",series:"Reeks",seriesOption:"Reeks {index}",previousPoint:"Vorig punt",nextPoint:"Volgend punt",tracePoint:"x {x}, y {y}",noSampledPoint:"Er is geen bemonsterd grafiekpunt beschikbaar.",lineStyleSolid:"ononderbroken",lineStyleDashed:"gestreepte",lineStyleDotted:"gestippelde",errorInvalidExpression:"Controleer de uitdrukking en probeer het opnieuw.",errorUnsupportedExpression:"Deze uitdrukking is niet beschikbaar in deze rekenmachine.",errorExpressionTooComplex:"Vereenvoudig de uitdrukking en probeer het opnieuw.",errorEvaluationTimeout:"De berekening duurde te lang en is gestopt.",errorInvalidState:"De opgeslagen rekenmachinestatus kon niet worden hersteld.",errorWorkerUnavailable:"De rekenmachine is tijdelijk niet beschikbaar."},C={"invalid-expression":"errorInvalidExpression","unsupported-expression":"errorUnsupportedExpression","expression-too-complex":"errorExpressionTooComplex","evaluation-timeout":"errorEvaluationTimeout","invalid-state":"errorInvalidState","worker-unavailable":"errorWorkerUnavailable"},M={solid:"lineStyleSolid",dashed:"lineStyleDashed",dotted:"lineStyleDotted"},E=new Set(["ar","ckb","dv","fa","he","iw","ks","ku","nqo","ps","sd","syr","ug","ur","yi"]);function b(e){try{return new Intl.Locale(e.replaceAll("_","-")).language.toLowerCase()}catch{return e.replaceAll("_","-").split("-")[0]?.toLowerCase()??"en"}}function P(e){try{return new Intl.NumberFormat(e).format(1.1).includes(",")?",":"."}catch{return"."}}function x(e){try{const r=new Intl.Locale(e.replaceAll("_","-")).textInfo;if(r?.direction==="rtl"||r?.direction==="ltr")return r.direction}catch{}return E.has(b(e))?"rtl":"ltr"}function T(e){return b(e)==="nl"?v:k}function D(e,r){return e.replace(/\{([a-zA-Z][a-zA-Z0-9]*)\}/g,(t,i)=>Object.hasOwn(r,i)?String(r[i]):t)}function G(e,r={},t="auto"){const i=Object.freeze({...T(e),...r}),a=t==="auto"?x(e):t,o=P(e);let l=null,p=0;const d=(n,h={})=>D(i[n],h);return Object.freeze({locale:e,direction:a,messages:i,t:d,formatNumber(n,h=6){try{return(!l||p!==h)&&(p=h,l=new Intl.NumberFormat(e,{maximumSignificantDigits:h,useGrouping:!1})),l.format(n)}catch{return n.toPrecision(h)}},formatResult(n){return o==="."?n:n.replace(".",o)},errorMessage(n){return d(C[n])},lineStyle(n){return d(M[n])}})}var w=k,L=v,H=1024,A={xMin:-10,xMax:10,yMin:-10,yMax:10},j=["square-root"],m=["square-root","power","root","exponential","natural-log","common-log","log-base-n","sine","cosine","tangent","inverse-sine","inverse-cosine","inverse-tangent","absolute-value","factorial"];function s(e){throw new u("invalid-state",e)}function y(e,r,t,i,a){return e===void 0?r:((!Number.isInteger(e)||e<t||e>i)&&s(`${a} must be an integer from ${t} to ${i}.`),e)}function z(e){if(e===void 0)return{...A};(!e||typeof e!="object")&&s("Graph viewport must be an object.");const r=e;return[r.xMin,r.xMax,r.yMin,r.yMax].every(t=>typeof t=="number"&&Number.isFinite(t))||s("Graph viewport bounds must be finite numbers."),(r.xMin>=r.xMax||r.yMin>=r.yMax)&&s("Graph viewport minimums must be less than maximums."),r}function I(e,r){const t=e==="basic"?j:m;if(r===void 0)return new Set(t);(!Array.isArray(r)||!r.every(o=>typeof o=="string"))&&s("allowedFunctions must be an array of function identifiers.");const i=new Set(m);for(const o of r)i.has(o)||s(`Unknown calculator function: ${o}.`);const a=new Set(r);return new Set(t.filter(o=>a.has(o)))}function g(e,r,t){return e===void 0?r:(typeof e!="boolean"&&s(`${t} must be a boolean.`),e)}function R(e){if(e===void 0)return{};(!e||typeof e!="object"||Array.isArray(e))&&s("messages must be an object.");const r={};for(const[t,i]of Object.entries(e))Object.hasOwn(w,t)&&(typeof i!="string"&&s(`messages.${t} must be a string.`),r[t]=i);return r}function N(e,r={}){const t=r.settings??{},i=t.angleMode??"degree";i!=="degree"&&i!=="radian"&&s('angleMode must be "degree" or "radian".');const a=t.graph;a!==void 0&&(!a||typeof a!="object")&&s("graph settings must be an object.");const o=r.restrictedMode===!0,l=typeof r.locale=="string"&&r.locale.trim()?r.locale.trim():"en-US",p=r.theme??"auto";p!=="light"&&p!=="dark"&&p!=="auto"&&s('theme must be "light", "dark", or "auto".');const d=t.direction??"auto";d!=="ltr"&&d!=="rtl"&&d!=="auto"&&s('direction must be "ltr", "rtl", or "auto".');const n=G(l,R(t.messages),d);return Object.freeze({type:e,angleMode:i,calculationPrecision:y(t.calculationPrecision,15,1,21,"calculationPrecision"),displayPrecision:y(t.displayPrecision,10,1,12,"displayPrecision"),historyLimit:y(t.historyLimit,20,0,50,"historyLimit"),evaluationTimeLimitMs:y(t.evaluationTimeLimitMs,1e3,100,2e3,"evaluationTimeLimitMs"),allowedFunctions:I(e,t.allowedFunctions),allowClipboard:!o&&g(t.allowClipboard,!0,"allowClipboard"),restrictedMode:o,locale:l,theme:p,localization:n,graph:Object.freeze({viewport:z(a?.viewport),showAxes:g(a?.showAxes,!0,"graph.showAxes"),showGrid:g(a?.showGrid,!0,"graph.showGrid")})})}var B=f({CortexCalculatorError:()=>u,CortexCalculatorProvider:()=>O,cortexDutchMessages:()=>L,cortexEnglishMessages:()=>w,localeDirection:()=>x}),O=class{constructor(e={}){c(this,"providerId","cortex"),c(this,"providerName","PIE Open-Source Calculator"),c(this,"supportedTypes",["basic","scientific","graphing"]),c(this,"version","1"),c(this,"initialized",!1),c(this,"destroyed",!1),c(this,"instances",new Set),c(this,"onTelemetry",void 0),this.onTelemetry=e.onTelemetry}async initialize(e={}){if(!this.initialized){if(this.destroyed)throw new u("worker-unavailable","This calculator provider has been destroyed.",{recoverable:!1});if(typeof window>"u"||typeof document>"u")throw new u("worker-unavailable","Cortex calculators can only be initialized in a browser.",{recoverable:!1});if(typeof Worker>"u")throw new u("worker-unavailable","This browser does not support module workers.",{recoverable:!1});this.onTelemetry=e.onTelemetry??this.onTelemetry,this.initialized=!0}}async createCalculator(e,r,t={}){if(this.initialized||await this.initialize(),!this.supportsType(e))throw new u("unsupported-expression",`Cortex does not support calculator type: ${e}.`);if(!(r instanceof HTMLElement))throw new u("invalid-state","A valid HTML container is required.");const i=N(e,t),{createCortexCalculator:a}=await S(async()=>{const{createCortexCalculator:l}=await import("./runtime-YFqnU6ic-d5c0cb49.js");return{createCortexCalculator:l}},[],import.meta.url),o=a(this,r,i,this.onTelemetry,l=>this.instances.delete(l));return this.instances.add(o),o}supportsType(e){return this.supportedTypes.includes(e)}destroy(){if(!this.destroyed){this.destroyed=!0;for(const e of[...this.instances])e.destroy();this.instances.clear(),this.initialized=!1,this.onTelemetry=void 0}}getCapabilities(){return{supportsHistory:!0,supportsGraphing:!0,supportsExpressions:!0,canExport:!0,maxPrecision:21,inputMethods:["keyboard","mouse","touch"]}}};export{u as CortexCalculatorError,O as CortexCalculatorProvider,L as cortexDutchMessages,w as cortexEnglishMessages,P as i,x as localeDirection,F as n,H as r,B as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as
|
|
1
|
+
import{t as i}from"./defineProperty-a20a667d.js";var d=class{constructor(){i(this,"providerId","desmos"),i(this,"providerName","Desmos"),i(this,"supportedTypes",["basic","scientific","graphing"]),i(this,"version","1.12"),i(this,"initialized",!1),i(this,"apiKey",void 0),i(this,"instances",new Set),i(this,"onTelemetry",void 0)}async emitTelemetry(t,r){try{await this.onTelemetry?.(t,r)}catch(o){console.warn("[DesmosProvider] telemetry callback failed:",o)}}async loadDesmosScript(t){return new Promise((r,o)=>{const e=document.createElement("script"),s=new URL("https://www.desmos.com/api/v1.12/calculator.js");s.searchParams.set("apiKey",t),e.src=s.toString(),e.async=!0,e.onload=()=>{window.Desmos?r():o(new Error("Desmos API loaded but window.Desmos is undefined"))},e.onerror=()=>{o(new Error("Failed to load Desmos API from CDN"))},document.head.appendChild(e)})}async initialize(t={}){if(this.initialized)return;if(this.onTelemetry=t?.onTelemetry,typeof window>"u")throw new Error("Desmos calculators can only be initialized in the browser");this.apiKey=t.apiKey?.trim()||void 0;const r=t.proxyEndpoint?.trim();if(r){const o=Date.now();await this.emitTelemetry("pie-tool-backend-call-start",{toolId:"calculator",backend:"desmos",operation:"proxy-auth-fetch"});try{const e=await fetch(r);if(!e.ok)throw new Error(`Runtime endpoint returned ${e.status}`);const s=await e.json();if(typeof s.apiKey!="string"||!s.apiKey.trim())throw new Error("Runtime endpoint did not return a non-empty apiKey");this.apiKey=s.apiKey.trim(),await this.emitTelemetry("pie-tool-backend-call-success",{toolId:"calculator",backend:"desmos",operation:"proxy-auth-fetch",duration:Date.now()-o})}catch(e){throw await this.emitTelemetry("pie-tool-backend-call-error",{toolId:"calculator",backend:"desmos",operation:"proxy-auth-fetch",duration:Date.now()-o,errorType:"CalculatorProxyAuthError",message:e instanceof Error?e.message:String(e)}),new Error(`[DesmosProvider] Failed to fetch API key from runtime endpoint: ${e instanceof Error?e.message:String(e)}`,{cause:e})}}if(!window.Desmos){const o=this.apiKey;if(!o)throw new Error("[DesmosProvider] An apiKey or proxyEndpoint is required to load Desmos.");const e=Date.now();await this.emitTelemetry("pie-tool-library-load-start",{toolId:"calculator",backend:"desmos",operation:"desmos-script-load"});try{await this.loadDesmosScript(o),await this.emitTelemetry("pie-tool-library-load-success",{toolId:"calculator",backend:"desmos",operation:"desmos-script-load",duration:Date.now()-e})}catch(s){throw await this.emitTelemetry("pie-tool-library-load-error",{toolId:"calculator",backend:"desmos",operation:"desmos-script-load",duration:Date.now()-e,errorType:"ToolLibraryLoadError",message:s instanceof Error?s.message:String(s)}),s}}this.initialized=!0}async createCalculator(t,r,o){if(this.initialized||await this.initialize(),!this.supportsType(t))throw new Error(`Desmos does not support calculator type: ${t}`);const e=new l(this,t,r,o,()=>this.instances.delete(e));return this.instances.add(e),e}supportsType(t){return this.supportedTypes.includes(t)}destroy(){for(const t of[...this.instances])t.destroy();this.instances.clear(),this.initialized=!1,this.apiKey=void 0,this.onTelemetry=void 0}getCapabilities(){return{supportsHistory:!1,supportsGraphing:!0,supportsExpressions:!0,canExport:!0,maxPrecision:15,inputMethods:["keyboard","mouse","touch"]}}},a=["apiKey","proxyEndpoint"];function n(t){for(const r of a)delete t[r]}var l=class{constructor(t,r,o,e,s){if(i(this,"onDestroy",void 0),i(this,"provider",void 0),i(this,"type",void 0),i(this,"Desmos",void 0),i(this,"calculator",void 0),i(this,"container",void 0),i(this,"destroyed",!1),this.onDestroy=s,this.provider=t,this.type=r,this.container=o,this.Desmos=window.Desmos,!this.Desmos)throw new Error("Desmos API not available");this._initializeCalculator(e)}_initializeCalculator(t){const r=this.type==="graphing",o={degreeMode:!0,settingsMenu:r,qwertyKeyboard:!1,notes:r,folders:r,sliders:r,tables:r,...t?.settings||{}};switch(n(o),t?.restrictedMode&&Object.assign(o,{expressionsTopbar:!1,settingsMenu:!1,zoomButtons:!1,links:!1}),this.type){case"graphing":this.calculator=this.Desmos.GraphingCalculator(this.container,o);break;case"scientific":this.calculator=this.Desmos.ScientificCalculator(this.container,o);break;case"basic":this.calculator=this.Desmos.FourFunctionCalculator(this.container,o);break;default:throw new Error(`Unsupported calculator type: ${this.type}`)}}getValue(){if(this.type==="graphing"&&this.calculator.getState){const t=this.calculator.getState();return JSON.stringify(t)}return""}setValue(t){if(this.type==="graphing"&&this.calculator.setState)try{const r=JSON.parse(t);this.calculator.setState(r)}catch(r){console.error("[DesmosCalculator] Failed to set state:",r)}}clear(){this.calculator.setBlank&&this.calculator.setBlank()}async evaluate(t){return this.type==="graphing"?new Promise(r=>{const o=`eval_${Date.now()}`;this.calculator.setExpression({id:o,latex:t}),setTimeout(()=>{const e=this.calculator.HelperExpression({latex:t}).numericValue||t;this.calculator.removeExpression({id:o}),r(String(e))},100)}):t}resize(){this.calculator.resize&&this.calculator.resize()}focus(){try{if(this.type==="graphing"&&typeof this.calculator?.focusFirstExpression=="function"){this.calculator.focusFirstExpression();return}this.container.querySelector('.dcg-mq-editable-field[tabindex="0"], textarea, [contenteditable="true"], [tabindex]:not([tabindex="-1"])')?.focus()}catch(t){console.warn("[DesmosCalculator] focus() failed:",t)}}exportState(){let t={};return this.type==="graphing"&&this.calculator.getState&&(t=this.calculator.getState()),{type:this.type,provider:"desmos",value:this.getValue(),providerState:t}}importState(t){if(t.provider!=="desmos")throw new Error(`Cannot import state from provider: ${t.provider}`);t.providerState&&this.calculator.setState?this.calculator.setState(t.providerState):t.value&&this.setValue(t.value)}destroy(){this.destroyed||(this.destroyed=!0,this.calculator&&this.calculator.destroy&&this.calculator.destroy(),this.container.replaceChildren(),this.onDestroy())}};export{d as DesmosCalculatorProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a}from"./defineProperty-a20a667d.js";var E="https://www.geogebra.org/apps/deployggb.js",p=2e4,I=0,z=class{constructor(){a(this,"providerId","geogebra"),a(this,"providerName","GeoGebra"),a(this,"supportedTypes",["basic","scientific","graphing"]),a(this,"version","6"),a(this,"initialized",!1),a(this,"appletTimeoutMs",p),a(this,"instances",new Set),a(this,"onTelemetry",void 0)}async emitTelemetry(i,t){try{await this.onTelemetry?.(i,t)}catch(r){console.warn("[GeoGebraProvider] telemetry callback failed:",r)}}async loadGeoGebraScript(i){await new Promise((t,r)=>{const e=document.createElement("script");e.src=i,e.async=!0,e.dataset.pieCalculatorProvider="geogebra",e.onload=()=>{window.GGBApplet?t():r(new Error("GeoGebra deploy script loaded but window.GGBApplet is undefined"))},e.onerror=()=>{r(new Error(`Failed to load GeoGebra from ${i}`))},document.head.appendChild(e)})}async initialize(i={}){if(!this.initialized){if(typeof window>"u")throw new Error("GeoGebra calculators can only be initialized in the browser");if(this.onTelemetry=i.onTelemetry,this.appletTimeoutMs=typeof i.appletTimeoutMs=="number"&&i.appletTimeoutMs>0?i.appletTimeoutMs:p,!window.GGBApplet){const t=i.scriptUrl?.trim()||E,r=Date.now();await this.emitTelemetry("pie-tool-library-load-start",{toolId:"calculator",backend:"geogebra",operation:"geogebra-script-load"});try{await this.loadGeoGebraScript(t),await this.emitTelemetry("pie-tool-library-load-success",{toolId:"calculator",backend:"geogebra",operation:"geogebra-script-load",duration:Date.now()-r})}catch(e){throw await this.emitTelemetry("pie-tool-library-load-error",{toolId:"calculator",backend:"geogebra",operation:"geogebra-script-load",duration:Date.now()-r,errorType:"ToolLibraryLoadError",message:e instanceof Error?e.message:String(e)}),e}}this.initialized=!0}}async createCalculator(i,t,r){if(this.initialized||await this.initialize(),!this.supportsType(i))throw new Error(`GeoGebra does not support calculator type: ${i}`);const e=await M.create(this,i,t,r,this.appletTimeoutMs,()=>this.instances.delete(e));return this.instances.add(e),e}supportsType(i){return this.supportedTypes.includes(i)}destroy(){for(const i of[...this.instances])i.destroy();this.instances.clear(),this.initialized=!1,this.appletTimeoutMs=p,this.onTelemetry=void 0}getCapabilities(){return{supportsHistory:!1,supportsGraphing:!0,supportsExpressions:!0,canExport:!0,inputMethods:["keyboard","mouse","touch"]}}},M=class
|
|
1
|
+
import{t as a}from"./defineProperty-a20a667d.js";var E="https://www.geogebra.org/apps/deployggb.js",p=2e4,I=0,z=class{constructor(){a(this,"providerId","geogebra"),a(this,"providerName","GeoGebra"),a(this,"supportedTypes",["basic","scientific","graphing"]),a(this,"version","6"),a(this,"attribution",{label:"Made with GeoGebra®",href:"https://www.geogebra.org/"}),a(this,"initialized",!1),a(this,"appletTimeoutMs",p),a(this,"instances",new Set),a(this,"onTelemetry",void 0)}async emitTelemetry(i,t){try{await this.onTelemetry?.(i,t)}catch(r){console.warn("[GeoGebraProvider] telemetry callback failed:",r)}}async loadGeoGebraScript(i){await new Promise((t,r)=>{const e=document.createElement("script");e.src=i,e.async=!0,e.dataset.pieCalculatorProvider="geogebra",e.onload=()=>{window.GGBApplet?t():r(new Error("GeoGebra deploy script loaded but window.GGBApplet is undefined"))},e.onerror=()=>{r(new Error(`Failed to load GeoGebra from ${i}`))},document.head.appendChild(e)})}async initialize(i={}){if(!this.initialized){if(typeof window>"u")throw new Error("GeoGebra calculators can only be initialized in the browser");if(this.onTelemetry=i.onTelemetry,this.appletTimeoutMs=typeof i.appletTimeoutMs=="number"&&i.appletTimeoutMs>0?i.appletTimeoutMs:p,!window.GGBApplet){const t=i.scriptUrl?.trim()||E,r=Date.now();await this.emitTelemetry("pie-tool-library-load-start",{toolId:"calculator",backend:"geogebra",operation:"geogebra-script-load"});try{await this.loadGeoGebraScript(t),await this.emitTelemetry("pie-tool-library-load-success",{toolId:"calculator",backend:"geogebra",operation:"geogebra-script-load",duration:Date.now()-r})}catch(e){throw await this.emitTelemetry("pie-tool-library-load-error",{toolId:"calculator",backend:"geogebra",operation:"geogebra-script-load",duration:Date.now()-r,errorType:"ToolLibraryLoadError",message:e instanceof Error?e.message:String(e)}),e}}this.initialized=!0}}async createCalculator(i,t,r){if(this.initialized||await this.initialize(),!this.supportsType(i))throw new Error(`GeoGebra does not support calculator type: ${i}`);const e=await M.create(this,i,t,r,this.appletTimeoutMs,()=>this.instances.delete(e));return this.instances.add(e),e}supportsType(i){return this.supportedTypes.includes(i)}destroy(){for(const i of[...this.instances])i.destroy();this.instances.clear(),this.initialized=!1,this.appletTimeoutMs=p,this.onTelemetry=void 0}getCapabilities(){return{supportsHistory:!1,supportsGraphing:!0,supportsExpressions:!0,canExport:!0,inputMethods:["keyboard","mouse","touch"]}}},M=class y{constructor(t,r,e,n){a(this,"container",void 0),a(this,"onDestroy",void 0),a(this,"provider",void 0),a(this,"type",void 0),a(this,"api",null),a(this,"applet",null),a(this,"generatedContainerId",null),a(this,"destroyed",!1),this.container=e,this.onDestroy=n,this.provider=t,this.type=r}static async create(t,r,e,n,h,f){const c=window.GGBApplet;if(!c)throw new Error("GeoGebra API not available");const s=new y(t,r,e,f),o={...n?.settings||{}};delete o.appName,delete o.id,delete o.appletOnLoad;const G=typeof o.width=="number"?o.width:Math.max(e.clientWidth||0,320),v=typeof o.height=="number"?o.height:Math.max(e.clientHeight||0,320);delete o.width,delete o.height;const T=n?.restrictedMode===!0,u=r==="graphing"?"graphing":"scientific",g=`pie-geogebra-${Date.now()}-${++I}`;e.id||(s.generatedContainerId=`${g}-container`,e.id=s.generatedContainerId);const w=()=>{s.generatedContainerId&&e.id===s.generatedContainerId&&(e.id=""),s.generatedContainerId=null};return await new Promise((C,m)=>{let l=!1;const b=setTimeout(()=>{l=!0,e.replaceChildren(),w(),m(new Error(`GeoGebra applet did not initialize within ${h}ms`))},h),S={showMenuBar:!1,showToolBar:!1,showAlgebraInput:!0,showZoomButtons:u==="graphing",...o,enable3d:!1,preventFocus:!0,...T?{showMenuBar:!1,showToolBar:!1,enableFileFeatures:!1,enableCAS:!1,enableRightClick:!1}:{},appName:u,width:G,height:v,id:g,appletOnLoad:d=>{if(clearTimeout(b),l){d.remove?.();return}l=!0,s.api=d,C()}};try{e.replaceChildren(),s.applet=new c(S,!0),s.applet.inject(e.id)}catch(d){clearTimeout(b),l=!0,e.replaceChildren(),w(),m(d)}}),s}getValue(){const t=this.api?.getEditorState?.();return t===void 0?"":JSON.stringify(t)}setValue(t){if(!(!t||!this.api?.setEditorState))try{this.api.setEditorState(JSON.parse(t))}catch(r){console.warn("[GeoGebraCalculator] Failed to restore editor state:",r)}}clear(){this.api?.newConstruction?.()}async evaluate(t){const r=this.api?.evalCommandCAS?.(t);if(typeof r=="string"&&r.length>0)return r;const e=this.api?.evalCommandGetLabels?.(t);return typeof e=="string"&&e.length>0?e:this.api?.evalCommand?.(t)?t:""}resize(){if(!this.api)return;const t=Math.max(this.container.clientWidth||0,1),r=Math.max(this.container.clientHeight||0,1);this.api.setSize?.(t,r),this.api.recalculateEnvironments?.()}focus(){this.container.querySelector('input, textarea, [contenteditable="true"], [tabindex]:not([tabindex="-1"])')?.focus()}exportState(){return{type:this.type,provider:"geogebra",value:this.getValue(),providerState:this.api?.getBase64?.()||""}}importState(t){if(t.provider!=="geogebra")throw new Error(`Cannot import state from provider: ${t.provider}`);typeof t.providerState=="string"&&t.providerState?this.api?.setBase64?.(t.providerState):t.value&&this.setValue(t.value)}destroy(){this.destroyed||(this.destroyed=!0,this.api?.remove?.(),this.api=null,this.applet=null,this.container.replaceChildren(),this.generatedContainerId&&this.container.id===this.generatedContainerId&&(this.container.id=""),this.generatedContainerId=null,this.onDestroy())}};export{z as GeoGebraCalculatorProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as h}from"./defineProperty-a20a667d.js";import{n as P,t as z}from"./logger-8b07fb72.js";var S=e=>{const t=Number(e);return Number.isFinite(t)?t:null},I=e=>[...e].sort((t,r)=>t.time!==r.time?t.time-r.time:t.start!==r.start?t.start-r.start:t.end-r.end),B=e=>{const t=[];let r=0;for(const i of e.split(/\r?\n/)){const o=i.trim();if(o)try{const s=JSON.parse(o);if(s.type&&s.type!=="word")continue;const a=S(s.time);if(a===null)continue;const n=typeof s.value=="string"?s.value:"",d=S(s.start)??r,u=S(s.end)??d+Math.max(1,n.length);r=Math.max(u+1,r),t.push({time:a,type:"word",start:d,end:u,value:n})}catch{}}return I(t)},W=e=>{if(e.length<2)return e;const t=e.map(s=>s.time).filter(s=>s>=0),r=t.length?Math.max(...t):0,i=[];for(let s=1;s<t.length;s+=1){const a=t[s]-t[s-1];a>0&&Number.isFinite(a)&&i.push(a)}const o=i.length>0?[...i].sort((s,a)=>s-a)[Math.floor(i.length/2)]:0;return r>0&&r<100&&e.length>3||o>0&&o<10?e.map(s=>({...s,time:s.time*1e3})):e},N=(e,t)=>{if(!e.length||!t.length)return 0;const r=t.toLowerCase(),i=[];let o=0;for(const s of e){const a=s.value.trim().toLowerCase();if(!a)continue;const n=r.indexOf(a,o);if(n<0)continue;const d=s.start-n;if(d>=0&&i.push(d),o=n+a.length,i.length>=8)break}if(i.length>0){const s=[...i].sort((a,n)=>a-n);return s[Math.floor(s.length/2)]}return Math.max(0,Math.floor(e[0].start))},H=(e,t)=>{if(!e.length||!t.length)return e;const r=t.length;if(Math.max(...e.map(o=>o.end))<=r+2)return e;const i=N(e,t);return i<=0?e:e.map(o=>({...o,start:o.start-i,end:o.end-i}))},D=(e,t)=>{if(!t.length)return e;const r=t.length;return I(e.map(i=>{const o=Math.max(0,Math.min(r,Math.floor(i.start))),s=Math.max(o+1,Math.min(r,Math.floor(i.end)));return{...i,start:o,end:s}}))};function F(e,t){const r=B(e),i=W(r),o=H(i,t);return D(o,t)}function E(e,t="medium"){const r=Number(e??1);return Number.isFinite(r)?r<=.95?"slow":r>=1.5?"fast":t:t}var p=z("server-tts-provider",()=>P());function k(e,t){if(typeof e!="string"||e.length===0)return null;try{const r=typeof t.apiEndpoint=="string"&&/^https?:\/\//i.test(t.apiEndpoint)?t.apiEndpoint:void 0,i=r?new URL(e,r):new URL(e);return i.protocol!=="http:"&&i.protocol!=="https:"?null:i}catch{return null}}function C(e,t){const r=Array.isArray(t.assetOrigins)?t.assetOrigins.filter(i=>typeof i=="string"&&i.length>0).map(i=>{try{return new URL(i).origin}catch{return i}}):[];if(r.length===0){if(typeof t.apiEndpoint=="string"&&/^https?:\/\//i.test(t.apiEndpoint))try{return new URL(t.apiEndpoint).origin===e.origin}catch{return!1}return typeof window<"u"&&typeof window.location?.origin=="string"&&window.location.origin===e.origin}return r.includes(e.origin)}function x(e){const t={};for(const[r,i]of Object.entries(e)){const o=r.toLowerCase();o==="authorization"||o==="proxy-authorization"||o==="cookie"||o.startsWith("x-auth-")||(t[r]=i)}return t}function T(e,t=!0){return e.credentials?!t&&e.credentials==="include"?{}:{credentials:e.credentials}:{}}function O(e,t){const r={};if(!t.includeAuthOnAssetFetch)return r;for(const[i,o]of Object.entries(e))i.toLowerCase()==="authorization"&&(r[i]=o);return r}var L=e=>{const t=(e.providerOptions&&typeof e.providerOptions=="object"?e.providerOptions:{}).__pieTelemetry;return typeof t=="function"?t:void 0},_={pie:3e3,custom:3e3},$=new Set(["polly","google"]),j=e=>{if(!e||R(e)!=="pie")return!1;const t=(e.provider||"polly").toLowerCase();return $.has(t)},A=e=>e.replace(/\/+$/,""),V=e=>{const t=A(e.apiEndpoint),r=(e.provider||"").toLowerCase();return r==="polly"||r==="google"?[`${t}/${r}/voices`,`${t}/voices`]:[`${t}/voices`]},R=e=>e.transportMode==="custom"?"custom":e.transportMode==="pie"?"pie":e.provider==="custom"?"custom":"pie",M=(e,t)=>e.endpointMode?e.endpointMode:t==="custom"?"rootPost":"synthesizePath",q=(e,t)=>e.endpointValidationMode?e.endpointValidationMode:t==="custom"?"none":"voices",J=e=>{const t=e.providerOptions||{};return typeof t.speedRate=="string"?t.speedRate:E(e.rate)},G=e=>{if(!Array.isArray(e))return[];const t=[];let r=0;for(const i of e){if(!i||typeof i!="object")continue;const o=typeof i.type=="string"?i.type:"word",s=typeof i.time=="number"&&Number.isFinite(i.time)?i.time:0,a=typeof i.value=="string"?i.value:"",n=typeof i.start=="number"&&Number.isFinite(i.start)?i.start:null,d=typeof i.end=="number"&&Number.isFinite(i.end)?i.end:null,u=n??r,g=d??u+Math.max(1,a.length||1);r=Math.max(r,g+1),t.push({time:s,type:o,start:u,end:g,value:a})}return t.sort((i,o)=>i.time!==o.time?i.time-o.time:i.start!==o.start?i.start-o.start:i.end-o.end)},K={pie:{id:"pie",resolveSynthesisUrl:e=>{const t=M(e,"pie"),r=A(e.apiEndpoint);return t==="rootPost"?r:`${r}/synthesize`},buildRequestBody:(e,t)=>{const r=t.providerOptions||{},i=typeof t.engine=="string"?t.engine:typeof r.engine=="string"?r.engine:void 0,o=typeof r.sampleRate=="number"&&Number.isFinite(r.sampleRate)?r.sampleRate:void 0,s=r.format==="mp3"||r.format==="ogg"||r.format==="pcm"?r.format:void 0,a=Array.isArray(r.speechMarkTypes)?r.speechMarkTypes.filter(n=>n==="word"||n==="sentence"||n==="ssml"):void 0;return{text:e,provider:t.provider||"polly",voice:t.voice,language:t.language,rate:t.rate,engine:i,sampleRate:o,format:s,speechMarkTypes:a,includeSpeechMarks:!0}},parseResponse:async(e,t,r,i,o)=>{const s=await e.json();return{audio:{kind:"base64",data:s.audio,contentType:s.contentType},speechMarks:Array.isArray(s.speechMarks)?s.speechMarks:[]}}},custom:{id:"custom",resolveSynthesisUrl:e=>{const t=M(e,"custom"),r=A(e.apiEndpoint);return t==="synthesizePath"?`${r}/synthesize`:r},buildRequestBody:(e,t)=>{const r=t.providerOptions||{},i=typeof r.lang_id=="string"?r.lang_id:t.language||"en-US",o=typeof r.cache=="boolean"?r.cache:!0;return{text:e,speedRate:J(t),lang_id:i,langId:i,cache:o}},parseResponse:async(e,t,r,i,o)=>{const s=await e.json(),a=O(r,t);let n=[];const d=G(s.speechMarks);if(d.length>0)n=d;else if(typeof s.word=="string"&&s.word.length>0){const g=k(s.word,t);if(g!==null){const w=C(g,t),c=w?a:x(a),l=await fetch(g.toString(),{headers:c,...T(t,w),signal:i,redirect:"error"});if(l.ok){const f=await l.text();n=F(f,o)}}}const u=k(s.audioContent,t);if(u===null)throw new Error("TTS server returned an invalid audio URL");return{audio:{kind:"url",url:u.toString()},speechMarks:n}}}},X=class{constructor(e,t){h(this,"config",void 0),h(this,"adapter",void 0),h(this,"currentAudio",null),h(this,"pausedState",!1),h(this,"wordTimings",[]),h(this,"highlightInterval",null),h(this,"highlightCursor",-1),h(this,"intentionallyStopped",!1),h(this,"activeSynthesisController",null),h(this,"synthesisRunId",0),h(this,"telemetryReporter",void 0),h(this,"onPlaybackStart",void 0),h(this,"onWordBoundary",void 0),this.config=e,this.adapter=t,this.telemetryReporter=L(e)}async emitTelemetry(e,t){try{await this.telemetryReporter?.(e,t)}catch(r){p.warn("telemetry callback failed:",r)}}async speak(e){this.stop(),this.intentionallyStopped=!1;const t=++this.synthesisRunId,r=new AbortController;this.activeSynthesisController=r;const{audioUrl:i,wordTimings:o}=await this.synthesizeSpeech(e,r.signal,t);if(t!==this.synthesisRunId){URL.revokeObjectURL(i);return}return this.wordTimings=o,this.highlightCursor=-1,new Promise((s,a)=>{const n=new Audio(i);this.currentAudio=n,this.config.volume!==void 0&&(n.volume=Math.max(0,Math.min(1,this.config.volume))),n.onplay=()=>{if(!(t!==this.synthesisRunId||this.currentAudio!==n)){this.pausedState=!1;try{this.onPlaybackStart?.()}catch(d){p.warn("playback-start callback failed:",d)}this.onWordBoundary&&this.wordTimings.length>0&&this.startWordHighlighting()}},n.onended=()=>{this.stopWordHighlighting(),URL.revokeObjectURL(i),this.currentAudio=null,this.wordTimings=[],this.highlightCursor=-1,s()},n.onerror=d=>{this.stopWordHighlighting(),URL.revokeObjectURL(i),this.currentAudio=null,this.wordTimings=[],this.highlightCursor=-1,this.intentionallyStopped?s():a(new Error("Failed to play audio from server"))},n.onpause=()=>{this.stopWordHighlighting(),this.pausedState=!0},n.play().catch(a)})}async synthesizeSpeech(e,t,r){const i=Date.now();await this.emitTelemetry("pie-tool-backend-call-start",{toolId:"tts",backend:this.config.provider||"server",operation:"synthesize-speech"});const o={"Content-Type":"application/json",...this.config.headers};this.config.authToken&&(o.Authorization=`Bearer ${this.config.authToken}`);const s=this.adapter.resolveSynthesisUrl(this.config),a=this.adapter.buildRequestBody(e,this.config),n=await(async()=>{try{return await fetch(s,{method:"POST",headers:o,body:JSON.stringify(a),signal:t,...T(this.config)})}catch(c){throw await this.emitTelemetry("pie-tool-backend-call-error",{toolId:"tts",backend:this.config.provider||"server",operation:"synthesize-speech",duration:Date.now()-i,errorType:"TTSBackendNetworkError",message:c instanceof Error?c.message:String(c)}),c}})();if(!n.ok){const c=await n.text().catch(()=>"");let l={};if(c)try{l=JSON.parse(c)}catch(m){p.warn("non-OK response body was not JSON",{status:n.status,url:s,bodyLength:c.length,parseError:m instanceof Error?m.message:String(m)}),p.debug("non-OK response body",{rawBodyPreview:c.slice(0,500)})}const f=typeof l.message=="string"&&l.message||(typeof l.error?.message=="string"?l.error.message:void 0)||`Server returned ${n.status}`;await this.emitTelemetry("pie-tool-backend-call-error",{toolId:"tts",backend:this.config.provider||"server",operation:"synthesize-speech",duration:Date.now()-i,statusCode:n.status,errorType:"TTSBackendRequestError",message:f}),p.error("synthesize request failed",{status:n.status,url:s,backend:this.config.provider||"server",message:f,textLength:e.length});const y=e.replace(/\s+/g," ").trim().slice(0,120);throw p.debug("synthesize request failed for text",{responseBody:l,textPreview:y.length<e.length?`${y}…`:y}),new Error(f)}const d=await this.adapter.parseResponse(n,this.config,o,t,e);if(r!==this.synthesisRunId||t.aborted)throw new Error("Synthesis superseded by a newer request");let u;if(d.audio.kind==="base64")u=this.base64ToBlob(d.audio.data,d.audio.contentType);else{const c=d.audio.url,l=Date.now();await this.emitTelemetry("pie-tool-backend-call-start",{toolId:"tts",backend:this.config.provider||"server",operation:"fetch-synthesized-audio-asset"});const f=O(o,this.config),y=k(c,this.config);if(y===null)throw await this.emitTelemetry("pie-tool-backend-call-error",{toolId:"tts",backend:this.config.provider||"server",operation:"fetch-synthesized-audio-asset",duration:Date.now()-l,errorType:"TTSAssetInvalidUrl",message:"TTS asset URL rejected (non-http(s) or malformed)"}),new Error("TTS asset URL rejected (non-http(s) or malformed)");const m=C(y,this.config),U=m?f:x(f),v=await(async()=>{try{return await fetch(y.toString(),{headers:U,signal:t,...T(this.config,m),redirect:"error"})}catch(b){throw await this.emitTelemetry("pie-tool-backend-call-error",{toolId:"tts",backend:this.config.provider||"server",operation:"fetch-synthesized-audio-asset",duration:Date.now()-l,errorType:"TTSAssetNetworkError",message:b instanceof Error?b.message:String(b)}),b}})();if(!v.ok)throw await this.emitTelemetry("pie-tool-backend-call-error",{toolId:"tts",backend:this.config.provider||"server",operation:"fetch-synthesized-audio-asset",duration:Date.now()-l,statusCode:v.status,errorType:"TTSAssetFetchError",message:`Failed to download synthesized audio (${v.status})`}),new Error(`Failed to download synthesized audio (${v.status})`);u=await v.blob(),await this.emitTelemetry("pie-tool-backend-call-success",{toolId:"tts",backend:this.config.provider||"server",operation:"fetch-synthesized-audio-asset",duration:Date.now()-l})}const g=URL.createObjectURL(u),w=this.parseSpeechMarks(d.speechMarks);return await this.emitTelemetry("pie-tool-backend-call-success",{toolId:"tts",backend:this.config.provider||"server",operation:"synthesize-speech",duration:Date.now()-i}),{audioUrl:g,wordTimings:w}}base64ToBlob(e,t){const r=atob(e),i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r.charCodeAt(s);const o=new Uint8Array(i);return new Blob([o],{type:t})}parseSpeechMarks(e){return e.filter(t=>t.type==="word").map((t,r)=>({time:t.time,wordIndex:r,charIndex:t.start,length:t.end-t.start,word:t.value}))}startWordHighlighting(){if(this.stopWordHighlighting(),!this.currentAudio||!this.onWordBoundary||this.wordTimings.length===0){p.debug("cannot start word highlighting",{hasAudio:!!this.currentAudio,hasCallback:!!this.onWordBoundary,wordTimingsCount:this.wordTimings.length});return}p.debug("starting word highlighting",{wordTimingsCount:this.wordTimings.length,playbackRate:this.currentAudio.playbackRate}),this.highlightInterval=window.setInterval(()=>{if(!this.currentAudio){this.stopWordHighlighting();return}const e=this.currentAudio.currentTime*1e3,t=this.resolveCurrentWordIndex(e,this.highlightCursor);if(t<0||t===this.highlightCursor)return;this.highlightCursor=t;const r=this.wordTimings[t];p.debug("word boundary",{wordIndex:r.wordIndex,charIndex:r.charIndex,length:r.length,timingMs:r.time,currentTimeMs:e}),this.onWordBoundary?.(r.word,r.charIndex,r.length)},50)}resolveCurrentWordIndex(e,t){const r=this.wordTimings;let i=t<r.length?t:-1;for(i>=0&&e<r[i].time&&(i=-1);i+1<r.length&&r[i+1].time<=e;)i++;return i}stopWordHighlighting(){this.highlightInterval!==null&&(clearInterval(this.highlightInterval),this.highlightInterval=null)}pause(){this.currentAudio&&!this.pausedState&&(this.currentAudio.pause(),this.stopWordHighlighting(),this.pausedState=!0)}resume(){this.currentAudio&&this.pausedState&&(this.currentAudio.play(),this.pausedState=!1,this.onWordBoundary&&this.wordTimings.length>0&&this.startWordHighlighting())}stop(){this.synthesisRunId+=1,this.activeSynthesisController&&(this.activeSynthesisController.abort(),this.activeSynthesisController=null),this.stopWordHighlighting(),this.currentAudio&&(this.intentionallyStopped=!0,this.currentAudio.pause(),this.currentAudio.src&&URL.revokeObjectURL(this.currentAudio.src),this.currentAudio.src="",this.currentAudio=null),this.pausedState=!1,this.wordTimings=[],this.highlightCursor=-1}isPlaying(){return this.currentAudio!==null&&!this.pausedState}isPaused(){return this.pausedState}updateSettings(e){e.rate!==void 0&&(this.config.rate=e.rate,this.config.providerOptions={...this.config.providerOptions||{},speedRate:E(e.rate)}),e.pitch!==void 0&&(this.config.pitch=e.pitch),e.voice!==void 0&&(this.config.voice=e.voice)}},Z=class{constructor(){h(this,"providerId","server-tts"),h(this,"providerName","Server TTS"),h(this,"version","1.0.0"),h(this,"config",null),h(this,"adapter",null),h(this,"telemetryReporter",void 0)}async emitTelemetry(e,t){try{await this.telemetryReporter?.(e,t)}catch(r){p.warn("telemetry callback failed:",r)}}async initialize(e){const t=e;if(!t.apiEndpoint)throw new Error("apiEndpoint is required for ServerTTSProvider");this.config=t,this.telemetryReporter=L(t);const r=R(t);if(this.adapter=K[r],t.validateEndpoint){const i=Date.now();if(await this.emitTelemetry("pie-tool-backend-call-start",{toolId:"tts",backend:t.provider||"server",operation:"validate-endpoint"}),!await this.testAPIAvailability())throw await this.emitTelemetry("pie-tool-backend-call-error",{toolId:"tts",backend:t.provider||"server",operation:"validate-endpoint",duration:Date.now()-i,errorType:"TTSEndpointValidationError",message:`Server TTS API not available at ${t.apiEndpoint}`}),new Error(`Server TTS API not available at ${t.apiEndpoint}`);await this.emitTelemetry("pie-tool-backend-call-success",{toolId:"tts",backend:t.provider||"server",operation:"validate-endpoint",duration:Date.now()-i})}return new X(t,this.adapter)}async testAPIAvailability(){if(!this.config||!this.adapter)return!1;try{const e={...this.config.headers};this.config.authToken&&(e.Authorization=`Bearer ${this.config.authToken}`);const t=new AbortController,r=setTimeout(()=>t.abort(),5e3),i=q(this.config,this.adapter.id);if(i==="none")return clearTimeout(r),!0;const o=i==="voices"?V(this.config):[this.adapter.resolveSynthesisUrl(this.config)],s=i==="voices"?"GET":"OPTIONS";try{let a=!1;for(const n of o){const d=await fetch(n,{method:s,headers:e,signal:t.signal,...T(this.config)});if(a=d.ok||d.status===405,a||d.status!==404)break}return clearTimeout(r),a}catch{return clearTimeout(r),!1}}catch{return!1}}supportsFeature(e){switch(e){case"pause":case"resume":case"wordBoundary":case"voiceSelection":case"rateControl":return!0;case"pitchControl":return!1;default:return!1}}getCapabilities(){const e=this.config?R(this.config):"pie";return{supportsPause:!0,supportsResume:!0,supportsWordBoundary:!0,supportsVoiceSelection:!0,supportsRateControl:!0,supportsPitchControl:!1,supportsSSML:j(this.config),maxTextLength:_[e]}}destroy(){this.config=null,this.adapter=null,this.telemetryReporter=void 0}};export{Z as ServerTTSProvider};
|
|
1
|
+
import{t as l}from"./defineProperty-a20a667d.js";import{r as W,t as N}from"./logger-8b07fb72.js";var A=e=>{const t=Number(e);return Number.isFinite(t)?t:null},I=e=>[...e].sort((t,r)=>t.time!==r.time?t.time-r.time:t.start!==r.start?t.start-r.start:t.end-r.end),H=e=>{const t=[];let r=0;for(const i of e.split(/\r?\n/)){const n=i.trim();if(n)try{const s=JSON.parse(n);if(s.type&&s.type!=="word")continue;const o=A(s.time);if(o===null)continue;const h=typeof s.value=="string"?s.value:"",a=A(s.start)??r,d=A(s.end)??a+Math.max(1,h.length);r=Math.max(d+1,r),t.push({time:o,type:"word",start:a,end:d,value:h})}catch{}}return I(t)},D=e=>{if(e.length<2)return e;const t=e.map(s=>s.time).filter(s=>s>=0),r=t.length?Math.max(...t):0,i=[];for(let s=1;s<t.length;s+=1){const o=t[s]-t[s-1];o>0&&Number.isFinite(o)&&i.push(o)}const n=i.length>0?[...i].sort((s,o)=>s-o)[Math.floor(i.length/2)]:0;return r>0&&r<100&&e.length>3||n>0&&n<10?e.map(s=>({...s,time:s.time*1e3})):e},M=e=>{const t=e.toLowerCase();return t.length===e.length?t:e},F=(e,t,r,i,n)=>{let s=-1;for(let o=e.indexOf(t,r);o>=0&&o<=i+n;o=e.indexOf(t,o+1))(s<0||Math.abs(o-i)<Math.abs(s-i))&&(s=o);return s>=0&&Math.abs(s-i)<=n?s:-1};function L(e,t){if(!e.length||!t.length)return e;const r=M(t),i=new Map;return I(e).map(n=>{const s=i.get(n.type)??{cursor:0,shift:null};i.set(n.type,s);const o=n.value.trim(),h=n.end-n.start,a=n.start-(s.shift??0),d=o?s.shift===null?r.indexOf(M(o),s.cursor):F(r,M(o),s.cursor,a,Math.max(8,o.length)):-1;return d<0?{...n,start:a,end:a+h}:(s.shift=n.start-d,s.cursor=d+o.length,{...n,start:d,end:d+o.length})})}var $=(e,t)=>{if(!t.length)return e;const r=t.length;return I(e.map(i=>{const n=Math.max(0,Math.min(r,Math.floor(i.start))),s=Math.max(n+1,Math.min(r,Math.floor(i.end)));return{...i,start:n,end:s}}))};function j(e,t){const r=H(e),i=L(D(r),t);return $(i,t)}function U(e,t="medium"){const r=Number(e??1);return Number.isFinite(r)?r<=.95?"slow":r>=1.5?"fast":t:t}var f=N("server-tts-provider",W),V="textToSpeech",q=50,G=5e3,J=500,K=120;function R(e,t){if(typeof e!="string"||e.length===0)return null;try{const r=typeof t.apiEndpoint=="string"&&/^https?:\/\//i.test(t.apiEndpoint)?t.apiEndpoint:void 0,i=r?new URL(e,r):new URL(e);return i.protocol!=="http:"&&i.protocol!=="https:"?null:i}catch{return null}}function x(e,t){const r=Array.isArray(t.assetOrigins)?t.assetOrigins.filter(i=>typeof i=="string"&&i.length>0).map(i=>{try{return new URL(i).origin}catch{return i}}):[];if(r.length===0){if(typeof t.apiEndpoint=="string"&&/^https?:\/\//i.test(t.apiEndpoint))try{return new URL(t.apiEndpoint).origin===e.origin}catch{return!1}return typeof window<"u"&&typeof window.location?.origin=="string"&&window.location.origin===e.origin}return r.includes(e.origin)}function P(e){const t={};for(const[r,i]of Object.entries(e)){const n=r.toLowerCase();n==="authorization"||n==="proxy-authorization"||n==="cookie"||n.startsWith("x-auth-")||(t[r]=i)}return t}function S(e,t=!0){return e.credentials?!t&&e.credentials==="include"?{}:{credentials:e.credentials}:{}}function _(e,t){const r={};if(!t.includeAuthOnAssetFetch)return r;for(const[i,n]of Object.entries(e))i.toLowerCase()==="authorization"&&(r[i]=n);return r}var z=e=>{const t=e.providerOptions?.__pieTelemetry;return typeof t=="function"?t:void 0},p=(e,t,r)=>({toolId:V,backend:e.provider||"server",operation:t,...r}),X={pie:3e3,custom:3e3},Y=new Set(["polly","google"]),Q=e=>{if(!e||k(e)!=="pie")return!1;const t=(e.provider||"polly").toLowerCase();return Y.has(t)},E=e=>e.replace(/\/+$/,""),Z=e=>{const t=E(e.apiEndpoint),r=(e.provider||"").toLowerCase();return r==="polly"||r==="google"?[`${t}/${r}/voices`,`${t}/voices`]:[`${t}/voices`]},k=e=>e.transportMode==="custom"?"custom":e.transportMode==="pie"?"pie":e.provider==="custom"?"custom":"pie",O=(e,t)=>e.endpointMode?e.endpointMode:t==="custom"?"rootPost":"synthesizePath",tt=e=>e.endpointValidationMode==="voices"||e.endpointValidationMode==="endpoint"?e.endpointValidationMode:"none",et=new Set(["slow","medium","fast"]),rt=e=>{const t=e.providerOptions?.speedRate;return et.has(t)?t:U(e.rate)},C=e=>{const t=e.providerOptions?.contentLanguage;return typeof t=="string"&&t.trim()?t.trim():void 0},it=e=>{if(!Array.isArray(e))return[];const t=[];let r=0;for(const i of e){if(!i||typeof i!="object")continue;const n=typeof i.type=="string"?i.type:"word",s=typeof i.time=="number"&&Number.isFinite(i.time)?i.time:0,o=typeof i.value=="string"?i.value:"",h=typeof i.start=="number"&&Number.isFinite(i.start)?i.start:null,a=typeof i.end=="number"&&Number.isFinite(i.end)?i.end:null,d=h??r,g=a??d+Math.max(1,o.length||1);r=Math.max(r,g+1),t.push({time:s,type:n,start:d,end:g,value:o})}return t.sort((i,n)=>i.time!==n.time?i.time-n.time:i.start!==n.start?i.start-n.start:i.end-n.end)},st={pie:{id:"pie",resolveSynthesisUrl:e=>{const t=O(e,"pie"),r=E(e.apiEndpoint);return t==="rootPost"?r:`${r}/synthesize`},buildRequestBody:(e,t)=>{const r=t.providerOptions||{},i=typeof t.engine=="string"?t.engine:typeof r.engine=="string"?r.engine:void 0,n=typeof r.sampleRate=="number"&&Number.isFinite(r.sampleRate)?r.sampleRate:void 0,s=r.format==="mp3"||r.format==="ogg"||r.format==="pcm"?r.format:void 0,o=Array.isArray(r.speechMarkTypes)?r.speechMarkTypes.filter(h=>h==="word"||h==="sentence"||h==="ssml"):void 0;return{text:e,provider:t.provider||"polly",voice:t.voice,language:C(t)??t.language,rate:t.rate,engine:i,sampleRate:n,format:s,speechMarkTypes:o,includeSpeechMarks:!0}},parseResponse:async(e,t,r,i,n)=>{const s=await e.json();return{audio:{kind:"base64",data:s.audio,contentType:s.contentType},speechMarks:Array.isArray(s.speechMarks)?L(s.speechMarks,n):[]}}},custom:{id:"custom",resolveSynthesisUrl:e=>{const t=O(e,"custom"),r=E(e.apiEndpoint);return t==="synthesizePath"?`${r}/synthesize`:r},buildRequestBody:(e,t)=>{const r=t.providerOptions||{},i=(typeof r.lang_id=="string"&&r.lang_id.trim()?r.lang_id:void 0)??C(t)??(t.language||"en-US"),n=typeof r.cache=="boolean"?r.cache:!0;return{text:e,speedRate:rt(t),lang_id:i,langId:i,cache:n}},parseResponse:async(e,t,r,i,n)=>{const s=await e.json(),o=_(r,t);let h=[];const a=it(s.speechMarks);if(a.length>0)h=a;else if(typeof s.word=="string"&&s.word.length>0){const g=R(s.word,t);if(g!==null){const y=x(g,t),c=y?o:P(o),u=await fetch(g.toString(),{headers:c,...S(t,y),signal:i,redirect:"error"});if(u.ok){const m=await u.text();h=j(m,n)}}}const d=R(s.audioContent,t);if(d===null)throw new Error("TTS server returned an invalid audio URL");return{audio:{kind:"url",url:d.toString()},speechMarks:h}}}},nt=class{constructor(e,t){l(this,"config",void 0),l(this,"adapter",void 0),l(this,"currentAudio",null),l(this,"pausedState",!1),l(this,"wordTimings",[]),l(this,"highlightInterval",null),l(this,"highlightCursor",-1),l(this,"intentionallyStopped",!1),l(this,"activeSynthesisController",null),l(this,"startCurrentAudio",null),l(this,"synthesisRunId",0),l(this,"telemetryReporter",void 0),l(this,"onPlaybackStart",void 0),l(this,"onWordBoundary",void 0),this.config=e,this.adapter=t,this.telemetryReporter=z(e)}async emitTelemetry(e,t){try{await this.telemetryReporter?.(e,t)}catch(r){f.warn("telemetry callback failed:",r)}}async speak(e){this.stop(),this.intentionallyStopped=!1;const t=++this.synthesisRunId,r=new AbortController;this.activeSynthesisController=r;let i;try{i=await this.synthesizeSpeech(e,r.signal,t)}catch(o){if(t!==this.synthesisRunId||r.signal.aborted)return;throw o}finally{this.activeSynthesisController===r&&(this.activeSynthesisController=null)}const{audioUrl:n,wordTimings:s}=i;if(t!==this.synthesisRunId){URL.revokeObjectURL(n);return}return this.wordTimings=s,this.highlightCursor=-1,new Promise((o,h)=>{const a=new Audio(n);this.currentAudio=a,this.config.volume!==void 0&&(a.volume=Math.max(0,Math.min(1,this.config.volume)));const d=()=>t!==this.synthesisRunId||this.currentAudio!==a;a.onplaying=()=>{if(!d()){this.pausedState=!1;try{this.onPlaybackStart?.({wordBoundaries:this.wordTimings.length>0})}catch(y){f.warn("playback-start callback failed:",y)}this.onWordBoundary&&this.wordTimings.length>0&&this.startWordHighlighting()}},a.onended=()=>{URL.revokeObjectURL(n),d()||this.clearCurrentAudio(),o()},a.onerror=()=>{if(URL.revokeObjectURL(n),d()||this.intentionallyStopped){o();return}this.clearCurrentAudio(),h(new Error("Failed to play audio from server"))},a.onpause=()=>{d()||(this.stopWordHighlighting(),this.pausedState=!0)};const g=()=>{a.play().catch(y=>{y?.name==="AbortError"&&this.pausedState&&this.currentAudio===a||h(y)})};this.startCurrentAudio=g,this.pausedState||g()})}async synthesizeSpeech(e,t,r){const i=Date.now();await this.emitTelemetry("pie-tool-backend-call-start",p(this.config,"synthesize-speech"));const n={"Content-Type":"application/json",...this.config.headers};this.config.authToken&&(n.Authorization=`Bearer ${this.config.authToken}`);const s=this.adapter.resolveSynthesisUrl(this.config),o=this.adapter.buildRequestBody(e,this.config),h=await(async()=>{try{return await fetch(s,{method:"POST",headers:n,body:JSON.stringify(o),signal:t,...S(this.config)})}catch(c){throw t.aborted||await this.emitTelemetry("pie-tool-backend-call-error",p(this.config,"synthesize-speech",{duration:Date.now()-i,errorType:"TTSBackendNetworkError",message:c instanceof Error?c.message:String(c)})),c}})();if(!h.ok){const c=await h.text().catch(()=>"");let u={};if(c)try{u=JSON.parse(c)}catch(w){f.warn("non-OK response body was not JSON",{status:h.status,url:s,bodyLength:c.length,parseError:w instanceof Error?w.message:String(w)}),f.debug("non-OK response body",{rawBodyPreview:c.slice(0,J)})}const m=typeof u.message=="string"&&u.message||(typeof u.error?.message=="string"?u.error.message:void 0)||`Server returned ${h.status}`;await this.emitTelemetry("pie-tool-backend-call-error",p(this.config,"synthesize-speech",{duration:Date.now()-i,statusCode:h.status,errorType:"TTSBackendRequestError",message:m})),f.error("synthesize request failed",{status:h.status,url:s,backend:this.config.provider||"server",message:m,textLength:e.length});const v=e.replace(/\s+/g," ").trim().slice(0,K);throw f.debug("synthesize request failed for text",{responseBody:u,textPreview:v.length<e.length?`${v}…`:v}),new Error(m)}const a=await this.adapter.parseResponse(h,this.config,n,t,e);if(r!==this.synthesisRunId||t.aborted)throw new Error("Synthesis superseded by a newer request");let d;if(a.audio.kind==="base64")d=this.base64ToBlob(a.audio.data,a.audio.contentType);else{const c=a.audio.url,u=Date.now();await this.emitTelemetry("pie-tool-backend-call-start",p(this.config,"fetch-synthesized-audio-asset"));const m=_(n,this.config),v=R(c,this.config);if(v===null)throw await this.emitTelemetry("pie-tool-backend-call-error",p(this.config,"fetch-synthesized-audio-asset",{duration:Date.now()-u,errorType:"TTSAssetInvalidUrl",message:"TTS asset URL rejected (non-http(s) or malformed)"})),new Error("TTS asset URL rejected (non-http(s) or malformed)");const w=x(v,this.config),B=w?m:P(m),T=await(async()=>{try{return await fetch(v.toString(),{headers:B,signal:t,...S(this.config,w),redirect:"error"})}catch(b){throw t.aborted||await this.emitTelemetry("pie-tool-backend-call-error",p(this.config,"fetch-synthesized-audio-asset",{duration:Date.now()-u,errorType:"TTSAssetNetworkError",message:b instanceof Error?b.message:String(b)})),b}})();if(!T.ok)throw await this.emitTelemetry("pie-tool-backend-call-error",p(this.config,"fetch-synthesized-audio-asset",{duration:Date.now()-u,statusCode:T.status,errorType:"TTSAssetFetchError",message:`Failed to download synthesized audio (${T.status})`})),new Error(`Failed to download synthesized audio (${T.status})`);d=await T.blob(),await this.emitTelemetry("pie-tool-backend-call-success",p(this.config,"fetch-synthesized-audio-asset",{duration:Date.now()-u}))}const g=URL.createObjectURL(d),y=this.parseSpeechMarks(a.speechMarks);return await this.emitTelemetry("pie-tool-backend-call-success",p(this.config,"synthesize-speech",{duration:Date.now()-i})),{audioUrl:g,wordTimings:y}}base64ToBlob(e,t){const r=atob(e),i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r.charCodeAt(s);const n=new Uint8Array(i);return new Blob([n],{type:t})}parseSpeechMarks(e){return e.filter(t=>t.type==="word").map((t,r)=>({time:t.time,wordIndex:r,charIndex:t.start,length:t.end-t.start,word:t.value}))}startWordHighlighting(){if(this.stopWordHighlighting(),!this.currentAudio||!this.onWordBoundary||this.wordTimings.length===0){f.debug("cannot start word highlighting",{hasAudio:!!this.currentAudio,hasCallback:!!this.onWordBoundary,wordTimingsCount:this.wordTimings.length});return}f.debug("starting word highlighting",{wordTimingsCount:this.wordTimings.length,playbackRate:this.currentAudio.playbackRate}),this.highlightInterval=window.setInterval(()=>{if(!this.currentAudio){this.stopWordHighlighting();return}const e=this.currentAudio.currentTime*1e3,t=this.resolveCurrentWordIndex(e,this.highlightCursor);if(t<0||t===this.highlightCursor)return;this.highlightCursor=t;const r=this.wordTimings[t];f.debug("word boundary",{wordIndex:r.wordIndex,charIndex:r.charIndex,length:r.length,timingMs:r.time,currentTimeMs:e}),this.onWordBoundary?.(r.word,r.charIndex,r.length)},q)}resolveCurrentWordIndex(e,t){const r=this.wordTimings;let i=t<r.length?t:-1;for(i>=0&&e<r[i].time&&(i=-1);i+1<r.length&&r[i+1].time<=e;)i++;return i}stopWordHighlighting(){this.highlightInterval!==null&&(clearInterval(this.highlightInterval),this.highlightInterval=null)}pause(){if(!this.pausedState){if(this.currentAudio)this.currentAudio.pause(),this.stopWordHighlighting();else if(!this.activeSynthesisController)return;this.pausedState=!0}}resume(){this.pausedState&&(this.pausedState=!1,this.currentAudio&&(this.startCurrentAudio?.(),this.onWordBoundary&&this.wordTimings.length>0&&this.startWordHighlighting()))}clearCurrentAudio(){this.stopWordHighlighting(),this.currentAudio=null,this.wordTimings=[],this.highlightCursor=-1}stop(){this.synthesisRunId+=1,this.startCurrentAudio=null,this.activeSynthesisController&&(this.activeSynthesisController.abort(),this.activeSynthesisController=null),this.stopWordHighlighting(),this.currentAudio&&(this.intentionallyStopped=!0,this.currentAudio.pause(),this.currentAudio.src&&URL.revokeObjectURL(this.currentAudio.src),this.currentAudio.src="",this.currentAudio=null),this.pausedState=!1,this.wordTimings=[],this.highlightCursor=-1}updateSettings(e){e.rate!==void 0&&(this.config.rate=e.rate,this.config.providerOptions={...this.config.providerOptions||{},speedRate:U(e.rate)}),e.pitch!==void 0&&(this.config.pitch=e.pitch),e.voice!==void 0&&(this.config.voice=e.voice),e.providerOptions&&"contentLanguage"in e.providerOptions&&(this.config.providerOptions={...this.config.providerOptions,contentLanguage:e.providerOptions.contentLanguage})}},ht=class{constructor(){l(this,"providerId","server-tts"),l(this,"config",null),l(this,"adapter",null),l(this,"telemetryReporter",void 0)}async emitTelemetry(e,t){try{await this.telemetryReporter?.(e,t)}catch(r){f.warn("telemetry callback failed:",r)}}async initialize(e){const t=e;if(!t.apiEndpoint)throw new Error("apiEndpoint is required for ServerTTSProvider");this.config=t,this.telemetryReporter=z(t);const r=k(t);this.adapter=st[r];const i=tt(t);if(i!=="none"){const n=Date.now();if(await this.emitTelemetry("pie-tool-backend-call-start",p(t,"validate-endpoint")),!await this.testAPIAvailability(i))throw await this.emitTelemetry("pie-tool-backend-call-error",p(t,"validate-endpoint",{duration:Date.now()-n,errorType:"TTSEndpointValidationError",message:`Server TTS API not available at ${t.apiEndpoint}`})),new Error(`Server TTS API not available at ${t.apiEndpoint}`);await this.emitTelemetry("pie-tool-backend-call-success",p(t,"validate-endpoint",{duration:Date.now()-n}))}return new nt(t,this.adapter)}async testAPIAvailability(e){if(!this.config||!this.adapter)return!1;try{const t={...this.config.headers};this.config.authToken&&(t.Authorization=`Bearer ${this.config.authToken}`);const r=new AbortController,i=setTimeout(()=>r.abort(),G),n=e==="voices"?Z(this.config):[this.adapter.resolveSynthesisUrl(this.config)],s=e==="voices"?"GET":"OPTIONS";try{let o=!1;for(const h of n){const a=await fetch(h,{method:s,headers:t,signal:r.signal,...S(this.config)});if(o=a.ok||a.status===405,o||a.status!==404)break}return clearTimeout(i),o}catch{return clearTimeout(i),!1}}catch{return!1}}getCapabilities(){const e=this.config?k(this.config):"pie";return{supportsWordBoundary:!0,supportsSSML:Q(this.config),maxTextLength:X[e]}}destroy(){this.config=null,this.adapter=null,this.telemetryReporter=void 0}};export{ht as ServerTTSProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as s,n as k}from"./mathjax-
|
|
1
|
+
import{i as s,n as k}from"./mathjax-BKrHE4xs-3ca05bf6.js";k.dynamicSetup("","double-struck",s({DS:{normal:{8450:[.704,.019,.722,{sk:.036}],8461:[.685,0,.777,{sk:.011}],8469:[.685,.019,.722,{sk:.022}],8473:[.685,0,.611,{sk:.028}],8474:[.704,.179,.777],8477:[.685,0,.722],8484:[.685,0,.666,{sk:.057}],8508:[.431,0,.517],8509:[.431,.216,.472],8510:[.683,0,.611,{sk:.061}],8511:[.683,0,.667,{sk:.028}],8512:[.683,0,.667,{sk:.021}],8517:[.683,0,.694,{sk:.074}],8518:[.694,.022,.5,{ic:.048,sk:.051}],8519:[.453,.022,.472,{sk:.056}],8520:[.691,0,.279,{ic:.053,sk:.071}],8521:[.691,.216,.379,{ic:.063,sk:.117}],120120:[.704,0,.722,{sk:-.014}],120121:[.685,0,.666],120123:[.685,0,.722,{sk:-.02}],120124:[.685,0,.666],120125:[.685,0,.611,{sk:.03}],120126:[.704,.019,.777],120128:[.685,0,.388],120129:[.685,.075,.5,{sk:.055}],120130:[.685,0,.777,{sk:.015}],120131:[.685,0,.666,{sk:-.148}],120132:[.685,0,.944,{sk:.073}],120134:[.704,.019,.777],120138:[.704,.012,.555,{sk:-.013}],120139:[.685,0,.666],120140:[.685,.019,.722,{sk:.053}],120141:[.685,.019,.722,{sk:.072}],120142:[.685,.019,1,{sk:.048}],120143:[.685,0,.722,{sk:.026}],120144:[.685,0,.722,{sk:.038}],120146:[.453,.022,.5],120147:[.694,.022,.628,{sk:-.169}],120148:[.453,.022,.472],120149:[.694,.022,.5,{sk:.17}],120150:[.453,.022,.472],120151:[.716,0,.389,{sk:.028}],120152:[.453,.216,.5,{sk:-.013}],120153:[.694,0,.572,{sk:-.147}],120154:[.691,0,.279],120155:[.691,.216,.389,{sk:.057}],120156:[.694,0,.544,{sk:-.054}],120157:[.694,0,.279],120158:[.453,0,.722,{sk:.061}],120159:[.453,0,.572,{sk:.06}],120160:[.453,.022,.472],120161:[.453,.194,.628,{sk:.076}],120162:[.453,.194,.5,{sk:-.012}],120163:[.453,0,.544],120164:[.453,.022,.389],120165:[.694,.022,.417,{sk:-.059}],120166:[.431,.022,.528,{sk:.051}],120167:[.431,0,.472,{sk:.051}],120168:[.431,0,.667,{sk:.033}],120169:[.431,0,.472,{sk:.015}],120170:[.431,.216,.472,{sk:.062}],120171:[.431,0,.472,{sk:.038}],120792:[.666,.022,.556],120793:[.644,0,.556],120794:[.666,0,.556],120795:[.666,.022,.556],120796:[.644,0,.556,{sk:.117}],120797:[.644,.022,.556],120798:[.666,.022,.556],120799:[.644,0,.556,{sk:.031}],120800:[.666,.022,.556],120801:[.666,.022,.556]},"double-struck":{305:[.431,0,.279,{sk:.201}],567:[.431,.216,.389,{sk:.181}]}}},"NCM"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d=["a[href]","button:not([disabled])","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","[contenteditable]:not([contenteditable='false'])","[tabindex]:not([tabindex='-1'])"].join(",");function b(t){return!t.matches(d)||t.hasAttribute("disabled")||t.closest("[inert]")?!1:t.offsetParent!==null||t.getClientRects().length>0}function h(t){return t.getAttribute("tabindex")==="-1"?!1:b(t)}function E(t){const e=[],o=a=>{for(const n of Array.from(a.children))n instanceof HTMLElement&&(n.hasAttribute("inert")||(h(n)&&e.push(n),n.shadowRoot?o(n.shadowRoot):o(n)))};return o(t),e}function f(t){return E(t)}function c(t){let e=t.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}function m(t,e){try{if(e&&t.contains(e)){e.focus();return}const o=f(t);if(o.length>0){o[0].focus();return}t.focus?.()}catch{}}function g(t,e={}){const o=typeof document<"u"?c(document):null,a=e.wrap??!0,n=r=>{if(r.key==="Escape"){e.onEscape?.();return}if(r.key!=="Tab")return;const s=f(t);if(!s.length){if(!a)return;r.preventDefault(),t.focus?.();return}const i=t.getRootNode(),l=c(i instanceof ShadowRoot?i:document),u=s.indexOf(l||s[0]);if(r.shiftKey){u<=0&&(a?(r.preventDefault(),s[s.length-1].focus()):e.onTabExit?.("backward",r));return}u===s.length-1&&(a?(r.preventDefault(),s[0].focus()):e.onTabExit?.("forward",r))};return queueMicrotask(()=>m(t,e.initialFocus)),t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n);try{o?.focus?.()}catch{}}}export{b as i,d as n,E as r,g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as k,n as s}from"./mathjax-
|
|
1
|
+
import{i as k,n as s}from"./mathjax-BKrHE4xs-3ca05bf6.js";s.dynamicSetup("","fraktur",k({F:{normal:{120068:[.698,.029,.717,{sk:.085}],120069:[.691,.027,.904,{sk:.032}],8493:[.687,.024,.612,{ic:.001,sk:.064}],120071:[.69,.027,.831],120072:[.687,.024,.662,{sk:.027}],120073:[.686,.155,.611,{ic:.011,sk:.062}],120074:[.695,.025,.785,{sk:-.038}],8460:[.668,.133,.72,{sk:.02}],8465:[.686,.027,.554,{sk:.138}],120077:[.686,.139,.552,{sk:.084}],120078:[.681,.027,.668,{ic:.022,sk:.074}],120079:[.686,.027,.666,{sk:.073}],120080:[.692,.029,1.049,{sk:.138}],120081:[.686,.031,.832,{sk:.121}],120082:[.729,.027,.828,{sk:.048}],120083:[.692,.22,.823,{sk:.102}],120084:[.729,.069,.828,{sk:.042}],8476:[.686,.029,.828,{sk:.08}],120086:[.689,.027,.828,{sk:.017}],120087:[.71,.027,.669,{ic:.007,sk:.032}],120088:[.698,.029,.645,{ic:.021,sk:.013}],120089:[.686,.027,.831,{sk:.061}],120090:[.687,.028,1.046,{ic:.011,sk:.117}],120091:[.69,.027,.719,{sk:.049}],120092:[.687,.219,.834,{sk:.057}],8488:[.729,.139,.602,{sk:.015}],120094:[.472,.037,.5],120095:[.687,.032,.513,{sk:-.096}],120096:[.466,.03,.389,{sk:.025}],120097:[.612,.035,.498],120098:[.468,.032,.4],120099:[.679,.239,.329,{sk:.029}],120100:[.471,.209,.503,{sk:.013}],120101:[.69,.199,.521,{sk:-.117}],120102:[.677,.023,.279],120103:[.675,.203,.28,{sk:-.01}],120104:[.687,.027,.389,{sk:-.042}],120105:[.687,.022,.279,{sk:.025}],120106:[.476,.028,.766,{sk:.022}],120107:[.476,.025,.526],120108:[.482,.029,.488,{sk:.014}],120109:[.539,.215,.5,{sk:.024}],120110:[.481,.225,.489],120111:[.476,.022,.389,{ic:.007}],120112:[.48,.031,.442],120113:[.642,.022,.333,{ic:.016,sk:-.015}],120114:[.476,.027,.517],120115:[.533,.029,.511,{sk:.029}],120116:[.533,.029,.773,{sk:.026}],120117:[.474,.188,.388,{sk:.01}],120118:[.524,.22,.498,{sk:.015}],120119:[.472,.215,.39,{sk:-.01}]},fraktur:{305:[.477,.023,.279,{sk:.272}],567:[.476,.203,.28,{sk:.177}]}},FB:{normal:{120172:[.688,.031,.847,{sk:.082}],120173:[.685,.031,1.043],120174:[.677,.032,.723,{ic:.006,sk:.218}],120175:[.685,.029,.981,{sk:-.033}],120176:[.687,.029,.782,{sk:.207}],120177:[.684,.147,.721,{ic:.013,sk:-.078}],120178:[.692,.027,.927,{sk:.17}],120179:[.684,.127,.85,{sk:.071}],120180:[.683,.025,.654,{sk:.073}],120181:[.681,.142,.652,{sk:-.059}],120182:[.682,.026,.789,{ic:.024,sk:.126}],120183:[.684,.028,.786,{sk:.126}],120184:[.686,.033,1.239,{sk:.038}],120185:[.681,.033,.982,{sk:.024}],120186:[.726,.029,.976,{sk:-.087}],120187:[.685,.223,.977,{sk:.013}],120188:[.726,.082,.976,{sk:-.087}],120189:[.689,.029,.977,{sk:.011}],120190:[.685,.031,.978],120191:[.691,.03,.789,{ic:.009,sk:.153}],120192:[.689,.039,.85,{ic:.021,sk:.104}],120193:[.687,.029,.981],120194:[.682,.03,1.235,{ic:.005,sk:.022}],120195:[.682,.035,.849,{sk:.064}],120196:[.689,.214,.983],120197:[.718,.137,.726,{sk:-.169}],120198:[.472,.032,.602,{sk:.087}],120199:[.691,.032,.589],120200:[.473,.026,.463,{sk:.081}],120201:[.632,.029,.588,{sk:-.105}],120202:[.471,.028,.471,{sk:.048}],120203:[.681,.242,.387,{sk:.072}],120204:[.473,.208,.594,{sk:.111}],120205:[.687,.203,.615,{sk:-.097}],120206:[.686,.026,.331],120207:[.683,.207,.331],120208:[.683,.025,.464,{sk:-.017}],120209:[.682,.024,.336,{sk:.125}],120210:[.476,.031,.921,{sk:-.056}],120211:[.474,.028,.653,{sk:-.071}],120212:[.482,.034,.609,{sk:.029}],120213:[.558,.208,.603,{sk:-.124}],120214:[.485,.212,.595,{sk:.112}],120215:[.473,.026,.459,{sk:.013}],120216:[.48,.035,.522],120217:[.654,.027,.393,{ic:.014,sk:.085}],120218:[.473,.035,.588,{ic:.016,sk:.011}],120219:[.546,.028,.604,{sk:-.142}],120220:[.549,.033,.917,{sk:-.296}],120221:[.471,.188,.458,{sk:.026}],120222:[.559,.222,.589,{sk:-.127}],120223:[.472,.215,.461]},"bold-fraktur":{305:[.478,.026,.331,{sk:.301}],567:[.483,.207,.331,{sk:.476}]}}},"NCM"));
|