@orbit-software/sdk 1.10.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/dist/esm/Overlay.d.ts +2 -0
- package/dist/esm/app/helpers.d.ts +2 -0
- package/dist/esm/app/ui/assets/IconBack.d.ts +1 -0
- package/dist/esm/app/ui/assets/IconClosePlain.d.ts +3 -0
- package/dist/esm/app/ui/components/AvatarProgress.d.ts +13 -0
- package/dist/esm/app/ui/components/ClosableModal.d.ts +11 -0
- package/dist/esm/app/ui/components/IconBalance.d.ts +3 -0
- package/dist/esm/app/ui/components/InputSwitch.d.ts +9 -0
- package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +2 -0
- package/dist/esm/app/ui/components/Inventory/context.d.ts +10 -0
- package/dist/esm/app/ui/components/XsButton.d.ts +6 -0
- package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/app/utils.d.ts +2 -0
- package/dist/esm/boolean-D78EXBUO.mjs +1986 -0
- package/dist/esm/bootstrap.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconAd.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconAddCircle.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconCurrencyStar.d.ts +3 -0
- package/dist/esm/features/profile/assets/IconDrag.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconEdit.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconGame.d.ts +2 -0
- package/dist/esm/features/profile/assets/IconNoSign.d.ts +1 -0
- package/dist/esm/features/profile/assets/IconProfile.d.ts +1 -0
- package/dist/esm/features/profile/assets/moneyTongue.json.d.ts +3 -0
- package/dist/esm/features/profile/assets/newspaper.json.d.ts +3 -0
- package/dist/esm/features/profile/assets/profileBgGradients.d.ts +6 -0
- package/dist/esm/features/profile/components/Avatars.d.ts +8 -0
- package/dist/esm/features/profile/components/BalanceConfetti.d.ts +6 -0
- package/dist/esm/features/profile/components/BuyMenu.d.ts +8 -0
- package/dist/esm/features/profile/components/CircleParticles.d.ts +10 -0
- package/dist/esm/features/profile/components/FormattedXP.d.ts +8 -0
- package/dist/esm/features/profile/components/LevelInfoModal.d.ts +9 -0
- package/dist/esm/features/profile/components/ModalContainer.d.ts +6 -0
- package/dist/esm/features/profile/components/OverlayProfile.d.ts +8 -0
- package/dist/esm/features/profile/components/Profile.d.ts +3 -0
- package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +9 -0
- package/dist/esm/features/profile/components/Ribbon.d.ts +6 -0
- package/dist/esm/features/profile/components/StarParticles.d.ts +10 -0
- package/dist/esm/features/profile/components/TaskCard.d.ts +21 -0
- package/dist/esm/features/profile/components/XpProgress.d.ts +14 -0
- package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +5 -0
- package/dist/esm/gaussian-splat-compression-CzzkTP3L.mjs +1632 -0
- package/dist/esm/hooks/useForceRerender.d.ts +1 -0
- package/dist/esm/hooks/useMiniApp.d.ts +3 -0
- package/dist/esm/howler-Mh6LB0k5.mjs +572 -0
- package/dist/esm/i18n/index.d.ts +2 -0
- package/dist/esm/i18n/locales/translations/en.json.d.ts +213 -0
- package/dist/esm/i18n/locales/translations/ru.json.d.ts +210 -0
- package/dist/esm/launcherSrc/App.d.ts +2 -0
- package/dist/esm/launcherSrc/api/client.d.ts +3 -0
- package/dist/esm/launcherSrc/api/types.d.ts +181 -0
- package/dist/esm/launcherSrc/api/userApi.d.ts +22 -0
- package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +2 -0
- package/dist/esm/launcherSrc/app/contexts/SnackbarContext.d.ts +18 -0
- package/dist/esm/launcherSrc/app/helpers.d.ts +5 -0
- package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +1 -0
- package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +7 -0
- package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +3 -0
- package/dist/esm/launcherSrc/app/hooks.d.ts +11 -0
- package/dist/esm/launcherSrc/app/store.d.ts +19 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +1 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +2 -0
- package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +13 -0
- package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +10 -0
- package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +3 -0
- package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +9 -0
- package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +16 -0
- package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +21 -0
- package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +4 -0
- package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +8 -0
- package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +10 -0
- package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +9 -0
- package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +7 -0
- package/dist/esm/launcherSrc/app/ui/components/XpProgress.d.ts +13 -0
- package/dist/esm/launcherSrc/app/ui/components/XsButton.d.ts +6 -0
- package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/launcherSrc/app/utils.d.ts +13 -0
- package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +2 -0
- package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +1 -0
- package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +1 -0
- package/dist/esm/launcherSrc/features/admin/components/Admin.d.ts +3 -0
- package/dist/esm/launcherSrc/features/admin/components/OverlayControl.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +1 -0
- package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +4 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +2 -0
- package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GamePage.d.ts +6 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GameReview.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/components/GamePage/GameReviews.d.ts +9 -0
- package/dist/esm/launcherSrc/features/games/components/Games.d.ts +3 -0
- package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +3 -0
- package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +10 -0
- package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +13 -0
- package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +34 -0
- package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +10 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +6 -0
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +3 -0
- package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +10 -0
- package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +1 -0
- package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +18 -0
- package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +1 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +1 -0
- package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +2 -0
- package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +7 -0
- package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +15 -0
- package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +5 -0
- package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +50 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +9 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/AvatarCreation.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/Avatars.d.ts +11 -0
- package/dist/esm/launcherSrc/features/profile/components/Avatars/EditAvatarButton.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +8 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyOption.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/DailyModal.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FIllBirthdate.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillCountry.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillEmail.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfile.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/FIllProfile/FillProfileLayout.d.ts +4 -0
- package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +9 -0
- package/dist/esm/launcherSrc/features/profile/components/Profile.d.ts +3 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileGames.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/ProfileTrophies.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/Tasks/TaskCard.d.ts +24 -0
- package/dist/esm/launcherSrc/features/profile/components/Tasks/Tasks.d.ts +2 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +6 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/ConfettiParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +10 -0
- package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +26 -0
- package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +131 -0
- package/dist/esm/launcherSrc/features/profile/redux/shopSlice.d.ts +18 -0
- package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +1 -0
- package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +12 -0
- package/dist/esm/launcherSrc/features/profile/services/shopService.d.ts +2 -0
- package/dist/esm/launcherSrc/i18n/index.d.ts +2 -0
- package/dist/esm/launcherSrc/index.d.ts +0 -0
- package/dist/esm/launcherSrc/setupTests.d.ts +0 -0
- package/dist/esm/launcherSrc/utils/openTelegramLinkFixed.d.ts +1 -0
- package/dist/esm/navmesh-BbINhDrO.mjs +1336 -0
- package/dist/esm/opentype-PR7hcvG5.mjs +4286 -0
- package/dist/esm/physics-B9pWoHiG.mjs +4375 -0
- package/dist/esm/process-DGf1Bnd3.mjs +2274 -0
- package/dist/esm/sdk-4y_oRGP7.mjs +76474 -0
- package/dist/esm/sdk.d.ts +130 -0
- package/dist/esm/sdk.mjs +9 -0
- package/dist/esm/sdk.umd.js +8382 -0
- package/dist/esm/stores/profileStore.d.ts +16 -0
- package/dist/esm/ui-C32u2WA-.mjs +2678 -0
- package/dist/esm/utils/global.d.ts +1 -0
- package/dist/umd/sdk.umd.js +8382 -0
- package/dist/umd_react/sdk_react.umd.js +8562 -0
- package/index.html +13 -0
- package/package.json +96 -0
|
@@ -0,0 +1,2678 @@
|
|
|
1
|
+
var Xr = ((Pt) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(Pt, { get: (vt, te) => (typeof require < "u" ? require : vt)[te] }) : Pt)(function(Pt) {
|
|
2
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
3
|
+
throw new Error('Dynamic require of "' + Pt + '" is not supported');
|
|
4
|
+
}), zn = (Pt, vt) => () => (vt || Pt((vt = { exports: {} }).exports, vt), vt.exports), qn = zn((Pt, vt) => {
|
|
5
|
+
var te = (() => {
|
|
6
|
+
var ee = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
|
|
7
|
+
return typeof __filename < "u" && (ee = ee || __filename), function(Je = {}) {
|
|
8
|
+
var g = Je, Ke, re;
|
|
9
|
+
g.ready = new Promise((t, e) => {
|
|
10
|
+
Ke = t, re = e;
|
|
11
|
+
}), function(t) {
|
|
12
|
+
t.Id = t.Id || [], t.Id.push(function() {
|
|
13
|
+
t.MakeSWCanvasSurface = function(e) {
|
|
14
|
+
var r = e, o = typeof OffscreenCanvas < "u" && r instanceof OffscreenCanvas;
|
|
15
|
+
if (!(typeof HTMLCanvasElement < "u" && r instanceof HTMLCanvasElement || o || (r = document.getElementById(e), r))) throw "Canvas with id " + e + " was not found";
|
|
16
|
+
return (e = t.MakeSurface(r.width, r.height)) && (e.ie = r), e;
|
|
17
|
+
}, t.MakeCanvasSurface || (t.MakeCanvasSurface = t.MakeSWCanvasSurface), t.MakeSurface = function(e, r) {
|
|
18
|
+
var o = { width: e, height: r, colorType: t.ColorType.RGBA_8888, alphaType: t.AlphaType.Unpremul, colorSpace: t.ColorSpace.SRGB }, i = e * r * 4, c = t._malloc(i);
|
|
19
|
+
return (o = t.Surface._makeRasterDirect(o, c, 4 * e)) && (o.ie = null, o.Pe = e, o.Me = r, o.Ne = i, o.re = c, o.getCanvas().clear(t.TRANSPARENT)), o;
|
|
20
|
+
}, t.MakeRasterDirectSurface = function(e, r, o) {
|
|
21
|
+
return t.Surface._makeRasterDirect(e, r.byteOffset, o);
|
|
22
|
+
}, t.Surface.prototype.flush = function(e) {
|
|
23
|
+
if (t.Fd(this.Ed), this._flush(), this.ie) {
|
|
24
|
+
var r = new Uint8ClampedArray(t.HEAPU8.buffer, this.re, this.Ne);
|
|
25
|
+
r = new ImageData(r, this.Pe, this.Me), e ? this.ie.getContext("2d").putImageData(r, 0, 0, e[0], e[1], e[2] - e[0], e[3] - e[1]) : this.ie.getContext("2d").putImageData(r, 0, 0);
|
|
26
|
+
}
|
|
27
|
+
}, t.Surface.prototype.dispose = function() {
|
|
28
|
+
this.re && t._free(this.re), this.delete();
|
|
29
|
+
}, t.Fd = t.Fd || function() {
|
|
30
|
+
}, t.je = t.je || function() {
|
|
31
|
+
return null;
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}(g), function(t) {
|
|
35
|
+
t.Id = t.Id || [], t.Id.push(function() {
|
|
36
|
+
function e(l, h, b) {
|
|
37
|
+
return l && l.hasOwnProperty(h) ? l[h] : b;
|
|
38
|
+
}
|
|
39
|
+
function r(l) {
|
|
40
|
+
var h = Gt(rt);
|
|
41
|
+
return rt[h] = l, h;
|
|
42
|
+
}
|
|
43
|
+
function o(l) {
|
|
44
|
+
return l.naturalHeight || l.videoHeight || l.displayHeight || l.height;
|
|
45
|
+
}
|
|
46
|
+
function i(l) {
|
|
47
|
+
return l.naturalWidth || l.videoWidth || l.displayWidth || l.width;
|
|
48
|
+
}
|
|
49
|
+
function c(l, h, b, _) {
|
|
50
|
+
return l.bindTexture(l.TEXTURE_2D, h), _ || b.alphaType !== t.AlphaType.Premul || l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), h;
|
|
51
|
+
}
|
|
52
|
+
function s(l, h, b) {
|
|
53
|
+
b || h.alphaType !== t.AlphaType.Premul || l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1), l.bindTexture(l.TEXTURE_2D, null);
|
|
54
|
+
}
|
|
55
|
+
t.GetWebGLContext = function(l, h) {
|
|
56
|
+
if (!l) throw "null canvas passed into makeWebGLContext";
|
|
57
|
+
var b = { alpha: e(h, "alpha", 1), depth: e(h, "depth", 1), stencil: e(h, "stencil", 8), antialias: e(h, "antialias", 0), premultipliedAlpha: e(h, "premultipliedAlpha", 1), preserveDrawingBuffer: e(h, "preserveDrawingBuffer", 0), preferLowPowerToHighPerformance: e(h, "preferLowPowerToHighPerformance", 0), failIfMajorPerformanceCaveat: e(h, "failIfMajorPerformanceCaveat", 0), enableExtensionsByDefault: e(h, "enableExtensionsByDefault", 1), explicitSwapControl: e(h, "explicitSwapControl", 0), renderViaOffscreenBackBuffer: e(h, "renderViaOffscreenBackBuffer", 0) };
|
|
58
|
+
if (b.majorVersion = h && h.majorVersion ? h.majorVersion : typeof WebGL2RenderingContext < "u" ? 2 : 1, b.explicitSwapControl) throw "explicitSwapControl is not supported";
|
|
59
|
+
return l = Tn(l, b), l ? (Mr(l), R.Qd.getExtension("WEBGL_debug_renderer_info"), l) : 0;
|
|
60
|
+
}, t.deleteContext = function(l) {
|
|
61
|
+
R === mt[l] && (R = null), typeof JSEvents == "object" && JSEvents.tf(mt[l].Qd.canvas), mt[l] && mt[l].Qd.canvas && (mt[l].Qd.canvas.Ke = void 0), mt[l] = null;
|
|
62
|
+
}, t._setTextureCleanup({ deleteTexture: function(l, h) {
|
|
63
|
+
var b = rt[h];
|
|
64
|
+
b && mt[l].Qd.deleteTexture(b), rt[h] = null;
|
|
65
|
+
} }), t.MakeWebGLContext = function(l) {
|
|
66
|
+
if (!this.Fd(l)) return null;
|
|
67
|
+
var h = this._MakeGrContext();
|
|
68
|
+
if (!h) return null;
|
|
69
|
+
h.Ed = l;
|
|
70
|
+
var b = h.delete.bind(h);
|
|
71
|
+
return h.delete = (function() {
|
|
72
|
+
t.Fd(this.Ed), b();
|
|
73
|
+
}).bind(h), R.te = h;
|
|
74
|
+
}, t.MakeGrContext = t.MakeWebGLContext, t.GrDirectContext.prototype.getResourceCacheLimitBytes = function() {
|
|
75
|
+
t.Fd(this.Ed), this._getResourceCacheLimitBytes();
|
|
76
|
+
}, t.GrDirectContext.prototype.getResourceCacheUsageBytes = function() {
|
|
77
|
+
t.Fd(this.Ed), this._getResourceCacheUsageBytes();
|
|
78
|
+
}, t.GrDirectContext.prototype.releaseResourcesAndAbandonContext = function() {
|
|
79
|
+
t.Fd(this.Ed), this._releaseResourcesAndAbandonContext();
|
|
80
|
+
}, t.GrDirectContext.prototype.setResourceCacheLimitBytes = function(l) {
|
|
81
|
+
t.Fd(this.Ed), this._setResourceCacheLimitBytes(l);
|
|
82
|
+
}, t.MakeOnScreenGLSurface = function(l, h, b, _, A, C) {
|
|
83
|
+
return !this.Fd(l.Ed) || (h = A === void 0 || C === void 0 ? this._MakeOnScreenGLSurface(l, h, b, _) : this._MakeOnScreenGLSurface(l, h, b, _, A, C), !h) ? null : (h.Ed = l.Ed, h);
|
|
84
|
+
}, t.MakeRenderTarget = function() {
|
|
85
|
+
var l = arguments[0];
|
|
86
|
+
if (!this.Fd(l.Ed)) return null;
|
|
87
|
+
if (arguments.length === 3) {
|
|
88
|
+
var h = this._MakeRenderTargetWH(l, arguments[1], arguments[2]);
|
|
89
|
+
if (!h) return null;
|
|
90
|
+
} else if (arguments.length === 2) {
|
|
91
|
+
if (h = this._MakeRenderTargetII(l, arguments[1]), !h) return null;
|
|
92
|
+
} else return null;
|
|
93
|
+
return h.Ed = l.Ed, h;
|
|
94
|
+
}, t.MakeWebGLCanvasSurface = function(l, h, b) {
|
|
95
|
+
h = h || null;
|
|
96
|
+
var _ = l, A = typeof OffscreenCanvas < "u" && _ instanceof OffscreenCanvas;
|
|
97
|
+
if (!(typeof HTMLCanvasElement < "u" && _ instanceof HTMLCanvasElement || A || (_ = document.getElementById(l), _))) throw "Canvas with id " + l + " was not found";
|
|
98
|
+
if (l = this.GetWebGLContext(_, b), !l || 0 > l) throw "failed to create webgl context: err " + l;
|
|
99
|
+
return l = this.MakeWebGLContext(l), h = this.MakeOnScreenGLSurface(l, _.width, _.height, h), h || (h = _.cloneNode(!0), _.parentNode.replaceChild(h, _), h.classList.add("ck-replaced"), t.MakeSWCanvasSurface(h));
|
|
100
|
+
}, t.MakeCanvasSurface = t.MakeWebGLCanvasSurface, t.Surface.prototype.makeImageFromTexture = function(l, h) {
|
|
101
|
+
return t.Fd(this.Ed), l = r(l), (h = this._makeImageFromTexture(this.Ed, l, h)) && (h.de = l), h;
|
|
102
|
+
}, t.Surface.prototype.makeImageFromTextureSource = function(l, h, b) {
|
|
103
|
+
h || (h = { height: o(l), width: i(l), colorType: t.ColorType.RGBA_8888, alphaType: b ? t.AlphaType.Premul : t.AlphaType.Unpremul }), h.colorSpace || (h.colorSpace = t.ColorSpace.SRGB), t.Fd(this.Ed);
|
|
104
|
+
var _ = R.Qd;
|
|
105
|
+
return b = c(_, _.createTexture(), h, b), R.version === 2 ? _.texImage2D(_.TEXTURE_2D, 0, _.RGBA, h.width, h.height, 0, _.RGBA, _.UNSIGNED_BYTE, l) : _.texImage2D(_.TEXTURE_2D, 0, _.RGBA, _.RGBA, _.UNSIGNED_BYTE, l), s(_, h), this._resetContext(), this.makeImageFromTexture(b, h);
|
|
106
|
+
}, t.Surface.prototype.updateTextureFromSource = function(l, h, b) {
|
|
107
|
+
if (l.de) {
|
|
108
|
+
t.Fd(this.Ed);
|
|
109
|
+
var _ = l.getImageInfo(), A = R.Qd, C = c(A, rt[l.de], _, b);
|
|
110
|
+
R.version === 2 ? A.texImage2D(A.TEXTURE_2D, 0, A.RGBA, i(h), o(h), 0, A.RGBA, A.UNSIGNED_BYTE, h) : A.texImage2D(A.TEXTURE_2D, 0, A.RGBA, A.RGBA, A.UNSIGNED_BYTE, h), s(A, _, b), this._resetContext(), rt[l.de] = null, l.de = r(C), _.colorSpace = l.getColorSpace(), h = this._makeImageFromTexture(this.Ed, l.de, _), b = l.Dd.Hd, A = l.Dd.Ld, l.Dd.Hd = h.Dd.Hd, l.Dd.Ld = h.Dd.Ld, h.Dd.Hd = b, h.Dd.Ld = A, h.delete(), _.colorSpace.delete();
|
|
111
|
+
}
|
|
112
|
+
}, t.MakeLazyImageFromTextureSource = function(l, h, b) {
|
|
113
|
+
h || (h = { height: o(l), width: i(l), colorType: t.ColorType.RGBA_8888, alphaType: b ? t.AlphaType.Premul : t.AlphaType.Unpremul }), h.colorSpace || (h.colorSpace = t.ColorSpace.SRGB);
|
|
114
|
+
var _ = { makeTexture: function() {
|
|
115
|
+
var A = R, C = A.Qd, m = c(C, C.createTexture(), h, b);
|
|
116
|
+
return A.version === 2 ? C.texImage2D(C.TEXTURE_2D, 0, C.RGBA, h.width, h.height, 0, C.RGBA, C.UNSIGNED_BYTE, l) : C.texImage2D(C.TEXTURE_2D, 0, C.RGBA, C.RGBA, C.UNSIGNED_BYTE, l), s(C, h, b), r(m);
|
|
117
|
+
}, freeSrc: function() {
|
|
118
|
+
} };
|
|
119
|
+
return l.constructor.name === "VideoFrame" && (_.freeSrc = function() {
|
|
120
|
+
l.close();
|
|
121
|
+
}), t.Image._makeFromGenerator(h, _);
|
|
122
|
+
}, t.Fd = function(l) {
|
|
123
|
+
return l ? Mr(l) : !1;
|
|
124
|
+
}, t.je = function() {
|
|
125
|
+
return R && R.te && !R.te.isDeleted() ? R.te : null;
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
}(g), function(t) {
|
|
129
|
+
function e(a) {
|
|
130
|
+
return (i(255 * a[3]) << 24 | i(255 * a[0]) << 16 | i(255 * a[1]) << 8 | i(255 * a[2]) << 0) >>> 0;
|
|
131
|
+
}
|
|
132
|
+
function r(a) {
|
|
133
|
+
if (a && a._ck) return a;
|
|
134
|
+
if (a instanceof Float32Array) {
|
|
135
|
+
for (var n = Math.floor(a.length / 4), u = new Uint32Array(n), f = 0; f < n; f++) u[f] = e(a.slice(4 * f, 4 * (f + 1)));
|
|
136
|
+
return u;
|
|
137
|
+
}
|
|
138
|
+
if (a instanceof Uint32Array) return a;
|
|
139
|
+
if (a instanceof Array && a[0] instanceof Float32Array) return a.map(e);
|
|
140
|
+
}
|
|
141
|
+
function o(a) {
|
|
142
|
+
if (a === void 0) return 1;
|
|
143
|
+
var n = parseFloat(a);
|
|
144
|
+
return a && a.indexOf("%") !== -1 ? n / 100 : n;
|
|
145
|
+
}
|
|
146
|
+
function i(a) {
|
|
147
|
+
return Math.round(Math.max(0, Math.min(a || 0, 255)));
|
|
148
|
+
}
|
|
149
|
+
function c(a, n) {
|
|
150
|
+
n && n._ck || t._free(a);
|
|
151
|
+
}
|
|
152
|
+
function s(a, n, u) {
|
|
153
|
+
if (!a || !a.length) return B;
|
|
154
|
+
if (a && a._ck) return a.byteOffset;
|
|
155
|
+
var f = t[n].BYTES_PER_ELEMENT;
|
|
156
|
+
return u || (u = t._malloc(a.length * f)), t[n].set(a, u / f), u;
|
|
157
|
+
}
|
|
158
|
+
function l(a) {
|
|
159
|
+
var n = { Nd: B, count: a.length, colorType: t.ColorType.RGBA_F32 };
|
|
160
|
+
if (a instanceof Float32Array) n.Nd = s(a, "HEAPF32"), n.count = a.length / 4;
|
|
161
|
+
else if (a instanceof Uint32Array) n.Nd = s(a, "HEAPU32"), n.colorType = t.ColorType.RGBA_8888;
|
|
162
|
+
else if (a instanceof Array) {
|
|
163
|
+
if (a && a.length) {
|
|
164
|
+
for (var u = t._malloc(16 * a.length), f = 0, y = u / 4, v = 0; v < a.length; v++) for (var P = 0; 4 > P; P++) t.HEAPF32[y + f] = a[v][P], f++;
|
|
165
|
+
a = u;
|
|
166
|
+
} else a = B;
|
|
167
|
+
n.Nd = a;
|
|
168
|
+
} else throw "Invalid argument to copyFlexibleColorArray, Not a color array " + typeof a;
|
|
169
|
+
return n;
|
|
170
|
+
}
|
|
171
|
+
function h(a) {
|
|
172
|
+
if (!a) return B;
|
|
173
|
+
var n = U.toTypedArray();
|
|
174
|
+
if (a.length) {
|
|
175
|
+
if (a.length === 6 || a.length === 9) return s(a, "HEAPF32", k), a.length === 6 && t.HEAPF32.set(Yn, 6 + k / 4), k;
|
|
176
|
+
if (a.length === 16) return n[0] = a[0], n[1] = a[1], n[2] = a[3], n[3] = a[4], n[4] = a[5], n[5] = a[7], n[6] = a[12], n[7] = a[13], n[8] = a[15], k;
|
|
177
|
+
throw "invalid matrix size";
|
|
178
|
+
}
|
|
179
|
+
if (a.m11 === void 0) throw "invalid matrix argument";
|
|
180
|
+
return n[0] = a.m11, n[1] = a.m21, n[2] = a.m41, n[3] = a.m12, n[4] = a.m22, n[5] = a.m42, n[6] = a.m14, n[7] = a.m24, n[8] = a.m44, k;
|
|
181
|
+
}
|
|
182
|
+
function b(a) {
|
|
183
|
+
if (!a) return B;
|
|
184
|
+
var n = Y.toTypedArray();
|
|
185
|
+
if (a.length) {
|
|
186
|
+
if (a.length !== 16 && a.length !== 6 && a.length !== 9) throw "invalid matrix size";
|
|
187
|
+
return a.length === 16 ? s(a, "HEAPF32", J) : (n.fill(0), n[0] = a[0], n[1] = a[1], n[3] = a[2], n[4] = a[3], n[5] = a[4], n[7] = a[5], n[10] = 1, n[12] = a[6], n[13] = a[7], n[15] = a[8], a.length === 6 && (n[12] = 0, n[13] = 0, n[15] = 1), J);
|
|
188
|
+
}
|
|
189
|
+
if (a.m11 === void 0) throw "invalid matrix argument";
|
|
190
|
+
return n[0] = a.m11, n[1] = a.m21, n[2] = a.m31, n[3] = a.m41, n[4] = a.m12, n[5] = a.m22, n[6] = a.m32, n[7] = a.m42, n[8] = a.m13, n[9] = a.m23, n[10] = a.m33, n[11] = a.m43, n[12] = a.m14, n[13] = a.m24, n[14] = a.m34, n[15] = a.m44, J;
|
|
191
|
+
}
|
|
192
|
+
function _(a, n) {
|
|
193
|
+
return s(a, "HEAPF32", n || gt);
|
|
194
|
+
}
|
|
195
|
+
function A(a, n, u, f) {
|
|
196
|
+
var y = Ht.toTypedArray();
|
|
197
|
+
return y[0] = a, y[1] = n, y[2] = u, y[3] = f, gt;
|
|
198
|
+
}
|
|
199
|
+
function C(a) {
|
|
200
|
+
for (var n = new Float32Array(4), u = 0; 4 > u; u++) n[u] = t.HEAPF32[a / 4 + u];
|
|
201
|
+
return n;
|
|
202
|
+
}
|
|
203
|
+
function m(a, n) {
|
|
204
|
+
return s(a, "HEAPF32", n || N);
|
|
205
|
+
}
|
|
206
|
+
function S(a, n) {
|
|
207
|
+
return s(a, "HEAPF32", n || Ye);
|
|
208
|
+
}
|
|
209
|
+
t.Color = function(a, n, u, f) {
|
|
210
|
+
return f === void 0 && (f = 1), t.Color4f(i(a) / 255, i(n) / 255, i(u) / 255, f);
|
|
211
|
+
}, t.ColorAsInt = function(a, n, u, f) {
|
|
212
|
+
return f === void 0 && (f = 255), (i(f) << 24 | i(a) << 16 | i(n) << 8 | i(u) << 0 & 268435455) >>> 0;
|
|
213
|
+
}, t.Color4f = function(a, n, u, f) {
|
|
214
|
+
return f === void 0 && (f = 1), Float32Array.of(a, n, u, f);
|
|
215
|
+
}, Object.defineProperty(t, "TRANSPARENT", { get: function() {
|
|
216
|
+
return t.Color4f(0, 0, 0, 0);
|
|
217
|
+
} }), Object.defineProperty(t, "BLACK", { get: function() {
|
|
218
|
+
return t.Color4f(0, 0, 0, 1);
|
|
219
|
+
} }), Object.defineProperty(t, "WHITE", { get: function() {
|
|
220
|
+
return t.Color4f(1, 1, 1, 1);
|
|
221
|
+
} }), Object.defineProperty(t, "RED", { get: function() {
|
|
222
|
+
return t.Color4f(1, 0, 0, 1);
|
|
223
|
+
} }), Object.defineProperty(t, "GREEN", { get: function() {
|
|
224
|
+
return t.Color4f(0, 1, 0, 1);
|
|
225
|
+
} }), Object.defineProperty(t, "BLUE", { get: function() {
|
|
226
|
+
return t.Color4f(0, 0, 1, 1);
|
|
227
|
+
} }), Object.defineProperty(t, "YELLOW", { get: function() {
|
|
228
|
+
return t.Color4f(1, 1, 0, 1);
|
|
229
|
+
} }), Object.defineProperty(t, "CYAN", { get: function() {
|
|
230
|
+
return t.Color4f(0, 1, 1, 1);
|
|
231
|
+
} }), Object.defineProperty(t, "MAGENTA", { get: function() {
|
|
232
|
+
return t.Color4f(1, 0, 1, 1);
|
|
233
|
+
} }), t.getColorComponents = function(a) {
|
|
234
|
+
return [Math.floor(255 * a[0]), Math.floor(255 * a[1]), Math.floor(255 * a[2]), a[3]];
|
|
235
|
+
}, t.parseColorString = function(a, n) {
|
|
236
|
+
if (a = a.toLowerCase(), a.startsWith("#")) {
|
|
237
|
+
switch (n = 255, a.length) {
|
|
238
|
+
case 9:
|
|
239
|
+
n = parseInt(a.slice(7, 9), 16);
|
|
240
|
+
case 7:
|
|
241
|
+
var u = parseInt(a.slice(1, 3), 16), f = parseInt(a.slice(3, 5), 16), y = parseInt(a.slice(5, 7), 16);
|
|
242
|
+
break;
|
|
243
|
+
case 5:
|
|
244
|
+
n = 17 * parseInt(a.slice(4, 5), 16);
|
|
245
|
+
case 4:
|
|
246
|
+
u = 17 * parseInt(a.slice(1, 2), 16), f = 17 * parseInt(a.slice(2, 3), 16), y = 17 * parseInt(a.slice(3, 4), 16);
|
|
247
|
+
}
|
|
248
|
+
return t.Color(u, f, y, n / 255);
|
|
249
|
+
}
|
|
250
|
+
return a.startsWith("rgba") ? (a = a.slice(5, -1), a = a.split(","), t.Color(+a[0], +a[1], +a[2], o(a[3]))) : a.startsWith("rgb") ? (a = a.slice(4, -1), a = a.split(","), t.Color(+a[0], +a[1], +a[2], o(a[3]))) : a.startsWith("gray(") || a.startsWith("hsl") || !n || (a = n[a], a === void 0) ? t.BLACK : a;
|
|
251
|
+
}, t.multiplyByAlpha = function(a, n) {
|
|
252
|
+
return a = a.slice(), a[3] = Math.max(0, Math.min(a[3] * n, 1)), a;
|
|
253
|
+
}, t.Malloc = function(a, n) {
|
|
254
|
+
var u = t._malloc(n * a.BYTES_PER_ELEMENT);
|
|
255
|
+
return { _ck: !0, length: n, byteOffset: u, Xd: null, subarray: function(f, y) {
|
|
256
|
+
return f = this.toTypedArray().subarray(f, y), f._ck = !0, f;
|
|
257
|
+
}, toTypedArray: function() {
|
|
258
|
+
return this.Xd && this.Xd.length ? this.Xd : (this.Xd = new a(t.HEAPU8.buffer, u, n), this.Xd._ck = !0, this.Xd);
|
|
259
|
+
} };
|
|
260
|
+
}, t.Free = function(a) {
|
|
261
|
+
t._free(a.byteOffset), a.byteOffset = B, a.toTypedArray = null, a.Xd = null;
|
|
262
|
+
};
|
|
263
|
+
var k = B, U, J = B, Y, gt = B, Ht, ft, N = B, Vr, Tt = B, Nr, Ve = B, Yr, Ne = B, Ce, Qt = B, zr, Ye = B, qr, Jr = B, Yn = Float32Array.of(0, 0, 1), B = 0;
|
|
264
|
+
t.onRuntimeInitialized = function() {
|
|
265
|
+
function a(n, u, f, y, v, P, T) {
|
|
266
|
+
P || (P = 4 * y.width, y.colorType === t.ColorType.RGBA_F16 ? P *= 2 : y.colorType === t.ColorType.RGBA_F32 && (P *= 4));
|
|
267
|
+
var M = P * y.height, x = v ? v.byteOffset : t._malloc(M);
|
|
268
|
+
if (T ? !n._readPixels(y, x, P, u, f, T) : !n._readPixels(y, x, P, u, f)) return v || t._free(x), null;
|
|
269
|
+
if (v) return v.toTypedArray();
|
|
270
|
+
switch (y.colorType) {
|
|
271
|
+
case t.ColorType.RGBA_8888:
|
|
272
|
+
case t.ColorType.RGBA_F16:
|
|
273
|
+
n = new Uint8Array(t.HEAPU8.buffer, x, M).slice();
|
|
274
|
+
break;
|
|
275
|
+
case t.ColorType.RGBA_F32:
|
|
276
|
+
n = new Float32Array(t.HEAPU8.buffer, x, M).slice();
|
|
277
|
+
break;
|
|
278
|
+
default:
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
return t._free(x), n;
|
|
282
|
+
}
|
|
283
|
+
Ht = t.Malloc(Float32Array, 4), gt = Ht.byteOffset, Y = t.Malloc(Float32Array, 16), J = Y.byteOffset, U = t.Malloc(Float32Array, 9), k = U.byteOffset, zr = t.Malloc(Float32Array, 12), Ye = zr.byteOffset, qr = t.Malloc(Float32Array, 12), Jr = qr.byteOffset, ft = t.Malloc(Float32Array, 4), N = ft.byteOffset, Vr = t.Malloc(Float32Array, 4), Tt = Vr.byteOffset, Nr = t.Malloc(Float32Array, 3), Ve = Nr.byteOffset, Yr = t.Malloc(Float32Array, 3), Ne = Yr.byteOffset, Ce = t.Malloc(Int32Array, 4), Qt = Ce.byteOffset, t.ColorSpace.SRGB = t.ColorSpace._MakeSRGB(), t.ColorSpace.DISPLAY_P3 = t.ColorSpace._MakeDisplayP3(), t.ColorSpace.ADOBE_RGB = t.ColorSpace._MakeAdobeRGB(), t.GlyphRunFlags = { IsWhiteSpace: t._GlyphRunFlags_isWhiteSpace }, t.Path.MakeFromCmds = function(n) {
|
|
284
|
+
var u = s(n, "HEAPF32"), f = t.Path._MakeFromCmds(u, n.length);
|
|
285
|
+
return c(u, n), f;
|
|
286
|
+
}, t.Path.MakeFromVerbsPointsWeights = function(n, u, f) {
|
|
287
|
+
var y = s(n, "HEAPU8"), v = s(u, "HEAPF32"), P = s(f, "HEAPF32"), T = t.Path._MakeFromVerbsPointsWeights(y, n.length, v, u.length, P, f && f.length || 0);
|
|
288
|
+
return c(y, n), c(v, u), c(P, f), T;
|
|
289
|
+
}, t.Path.prototype.addArc = function(n, u, f) {
|
|
290
|
+
return n = m(n), this._addArc(n, u, f), this;
|
|
291
|
+
}, t.Path.prototype.addCircle = function(n, u, f, y) {
|
|
292
|
+
return this._addCircle(n, u, f, !!y), this;
|
|
293
|
+
}, t.Path.prototype.addOval = function(n, u, f) {
|
|
294
|
+
return f === void 0 && (f = 1), n = m(n), this._addOval(n, !!u, f), this;
|
|
295
|
+
}, t.Path.prototype.addPath = function() {
|
|
296
|
+
var n = Array.prototype.slice.call(arguments), u = n[0], f = !1;
|
|
297
|
+
if (typeof n[n.length - 1] == "boolean" && (f = n.pop()), n.length === 1) this._addPath(u, 1, 0, 0, 0, 1, 0, 0, 0, 1, f);
|
|
298
|
+
else if (n.length === 2) n = n[1], this._addPath(u, n[0], n[1], n[2], n[3], n[4], n[5], n[6] || 0, n[7] || 0, n[8] || 1, f);
|
|
299
|
+
else if (n.length === 7 || n.length === 10) this._addPath(u, n[1], n[2], n[3], n[4], n[5], n[6], n[7] || 0, n[8] || 0, n[9] || 1, f);
|
|
300
|
+
else return null;
|
|
301
|
+
return this;
|
|
302
|
+
}, t.Path.prototype.addPoly = function(n, u) {
|
|
303
|
+
var f = s(n, "HEAPF32");
|
|
304
|
+
return this._addPoly(f, n.length / 2, u), c(f, n), this;
|
|
305
|
+
}, t.Path.prototype.addRect = function(n, u) {
|
|
306
|
+
return n = m(n), this._addRect(n, !!u), this;
|
|
307
|
+
}, t.Path.prototype.addRRect = function(n, u) {
|
|
308
|
+
return n = S(n), this._addRRect(n, !!u), this;
|
|
309
|
+
}, t.Path.prototype.addVerbsPointsWeights = function(n, u, f) {
|
|
310
|
+
var y = s(n, "HEAPU8"), v = s(u, "HEAPF32"), P = s(f, "HEAPF32");
|
|
311
|
+
this._addVerbsPointsWeights(y, n.length, v, u.length, P, f && f.length || 0), c(y, n), c(v, u), c(P, f);
|
|
312
|
+
}, t.Path.prototype.arc = function(n, u, f, y, v, P) {
|
|
313
|
+
return n = t.LTRBRect(n - f, u - f, n + f, u + f), v = (v - y) / Math.PI * 180 - 360 * !!P, P = new t.Path(), P.addArc(n, y / Math.PI * 180, v), this.addPath(P, !0), P.delete(), this;
|
|
314
|
+
}, t.Path.prototype.arcToOval = function(n, u, f, y) {
|
|
315
|
+
return n = m(n), this._arcToOval(n, u, f, y), this;
|
|
316
|
+
}, t.Path.prototype.arcToRotated = function(n, u, f, y, v, P, T) {
|
|
317
|
+
return this._arcToRotated(n, u, f, !!y, !!v, P, T), this;
|
|
318
|
+
}, t.Path.prototype.arcToTangent = function(n, u, f, y, v) {
|
|
319
|
+
return this._arcToTangent(n, u, f, y, v), this;
|
|
320
|
+
}, t.Path.prototype.close = function() {
|
|
321
|
+
return this._close(), this;
|
|
322
|
+
}, t.Path.prototype.conicTo = function(n, u, f, y, v) {
|
|
323
|
+
return this._conicTo(n, u, f, y, v), this;
|
|
324
|
+
}, t.Path.prototype.computeTightBounds = function(n) {
|
|
325
|
+
this._computeTightBounds(N);
|
|
326
|
+
var u = ft.toTypedArray();
|
|
327
|
+
return n ? (n.set(u), n) : u.slice();
|
|
328
|
+
}, t.Path.prototype.cubicTo = function(n, u, f, y, v, P) {
|
|
329
|
+
return this._cubicTo(n, u, f, y, v, P), this;
|
|
330
|
+
}, t.Path.prototype.dash = function(n, u, f) {
|
|
331
|
+
return this._dash(n, u, f) ? this : null;
|
|
332
|
+
}, t.Path.prototype.getBounds = function(n) {
|
|
333
|
+
this._getBounds(N);
|
|
334
|
+
var u = ft.toTypedArray();
|
|
335
|
+
return n ? (n.set(u), n) : u.slice();
|
|
336
|
+
}, t.Path.prototype.lineTo = function(n, u) {
|
|
337
|
+
return this._lineTo(n, u), this;
|
|
338
|
+
}, t.Path.prototype.moveTo = function(n, u) {
|
|
339
|
+
return this._moveTo(n, u), this;
|
|
340
|
+
}, t.Path.prototype.offset = function(n, u) {
|
|
341
|
+
return this._transform(1, 0, n, 0, 1, u, 0, 0, 1), this;
|
|
342
|
+
}, t.Path.prototype.quadTo = function(n, u, f, y) {
|
|
343
|
+
return this._quadTo(n, u, f, y), this;
|
|
344
|
+
}, t.Path.prototype.rArcTo = function(n, u, f, y, v, P, T) {
|
|
345
|
+
return this._rArcTo(n, u, f, y, v, P, T), this;
|
|
346
|
+
}, t.Path.prototype.rConicTo = function(n, u, f, y, v) {
|
|
347
|
+
return this._rConicTo(n, u, f, y, v), this;
|
|
348
|
+
}, t.Path.prototype.rCubicTo = function(n, u, f, y, v, P) {
|
|
349
|
+
return this._rCubicTo(n, u, f, y, v, P), this;
|
|
350
|
+
}, t.Path.prototype.rLineTo = function(n, u) {
|
|
351
|
+
return this._rLineTo(n, u), this;
|
|
352
|
+
}, t.Path.prototype.rMoveTo = function(n, u) {
|
|
353
|
+
return this._rMoveTo(n, u), this;
|
|
354
|
+
}, t.Path.prototype.rQuadTo = function(n, u, f, y) {
|
|
355
|
+
return this._rQuadTo(n, u, f, y), this;
|
|
356
|
+
}, t.Path.prototype.stroke = function(n) {
|
|
357
|
+
return n = n || {}, n.width = n.width || 1, n.miter_limit = n.miter_limit || 4, n.cap = n.cap || t.StrokeCap.Butt, n.join = n.join || t.StrokeJoin.Miter, n.precision = n.precision || 1, this._stroke(n) ? this : null;
|
|
358
|
+
}, t.Path.prototype.transform = function() {
|
|
359
|
+
if (arguments.length === 1) {
|
|
360
|
+
var n = arguments[0];
|
|
361
|
+
this._transform(n[0], n[1], n[2], n[3], n[4], n[5], n[6] || 0, n[7] || 0, n[8] || 1);
|
|
362
|
+
} else if (arguments.length === 6 || arguments.length === 9) n = arguments, this._transform(n[0], n[1], n[2], n[3], n[4], n[5], n[6] || 0, n[7] || 0, n[8] || 1);
|
|
363
|
+
else throw "transform expected to take 1 or 9 arguments. Got " + arguments.length;
|
|
364
|
+
return this;
|
|
365
|
+
}, t.Path.prototype.trim = function(n, u, f) {
|
|
366
|
+
return this._trim(n, u, !!f) ? this : null;
|
|
367
|
+
}, t.Image.prototype.encodeToBytes = function(n, u) {
|
|
368
|
+
var f = t.je();
|
|
369
|
+
return n = n || t.ImageFormat.PNG, u = u || 100, f ? this._encodeToBytes(n, u, f) : this._encodeToBytes(n, u);
|
|
370
|
+
}, t.Image.prototype.makeShaderCubic = function(n, u, f, y, v) {
|
|
371
|
+
return v = h(v), this._makeShaderCubic(n, u, f, y, v);
|
|
372
|
+
}, t.Image.prototype.makeShaderOptions = function(n, u, f, y, v) {
|
|
373
|
+
return v = h(v), this._makeShaderOptions(n, u, f, y, v);
|
|
374
|
+
}, t.Image.prototype.readPixels = function(n, u, f, y, v) {
|
|
375
|
+
var P = t.je();
|
|
376
|
+
return a(this, n, u, f, y, v, P);
|
|
377
|
+
}, t.Canvas.prototype.clear = function(n) {
|
|
378
|
+
t.Fd(this.Ed), n = _(n), this._clear(n);
|
|
379
|
+
}, t.Canvas.prototype.clipRRect = function(n, u, f) {
|
|
380
|
+
t.Fd(this.Ed), n = S(n), this._clipRRect(n, u, f);
|
|
381
|
+
}, t.Canvas.prototype.clipRect = function(n, u, f) {
|
|
382
|
+
t.Fd(this.Ed), n = m(n), this._clipRect(n, u, f);
|
|
383
|
+
}, t.Canvas.prototype.concat = function(n) {
|
|
384
|
+
t.Fd(this.Ed), n = b(n), this._concat(n);
|
|
385
|
+
}, t.Canvas.prototype.drawArc = function(n, u, f, y, v) {
|
|
386
|
+
t.Fd(this.Ed), n = m(n), this._drawArc(n, u, f, y, v);
|
|
387
|
+
}, t.Canvas.prototype.drawAtlas = function(n, u, f, y, v, P, T) {
|
|
388
|
+
if (n && y && u && f && u.length === f.length) {
|
|
389
|
+
t.Fd(this.Ed), v || (v = t.BlendMode.SrcOver);
|
|
390
|
+
var M = s(u, "HEAPF32"), x = s(f, "HEAPF32"), W = f.length / 4, V = s(r(P), "HEAPU32");
|
|
391
|
+
if (T && "B" in T && "C" in T) this._drawAtlasCubic(n, x, M, V, W, v, T.B, T.C, y);
|
|
392
|
+
else {
|
|
393
|
+
let d = t.FilterMode.Linear, w = t.MipmapMode.None;
|
|
394
|
+
T && (d = T.filter, "mipmap" in T && (w = T.mipmap)), this._drawAtlasOptions(n, x, M, V, W, v, d, w, y);
|
|
395
|
+
}
|
|
396
|
+
c(M, u), c(x, f), c(V, P);
|
|
397
|
+
}
|
|
398
|
+
}, t.Canvas.prototype.drawCircle = function(n, u, f, y) {
|
|
399
|
+
t.Fd(this.Ed), this._drawCircle(n, u, f, y);
|
|
400
|
+
}, t.Canvas.prototype.drawColor = function(n, u) {
|
|
401
|
+
t.Fd(this.Ed), n = _(n), u !== void 0 ? this._drawColor(n, u) : this._drawColor(n);
|
|
402
|
+
}, t.Canvas.prototype.drawColorInt = function(n, u) {
|
|
403
|
+
t.Fd(this.Ed), this._drawColorInt(n, u || t.BlendMode.SrcOver);
|
|
404
|
+
}, t.Canvas.prototype.drawColorComponents = function(n, u, f, y, v) {
|
|
405
|
+
t.Fd(this.Ed), n = A(n, u, f, y), v !== void 0 ? this._drawColor(n, v) : this._drawColor(n);
|
|
406
|
+
}, t.Canvas.prototype.drawDRRect = function(n, u, f) {
|
|
407
|
+
t.Fd(this.Ed), n = S(n, Ye), u = S(u, Jr), this._drawDRRect(n, u, f);
|
|
408
|
+
}, t.Canvas.prototype.drawImage = function(n, u, f, y) {
|
|
409
|
+
t.Fd(this.Ed), this._drawImage(n, u, f, y || null);
|
|
410
|
+
}, t.Canvas.prototype.drawImageCubic = function(n, u, f, y, v, P) {
|
|
411
|
+
t.Fd(this.Ed), this._drawImageCubic(n, u, f, y, v, P || null);
|
|
412
|
+
}, t.Canvas.prototype.drawImageOptions = function(n, u, f, y, v, P) {
|
|
413
|
+
t.Fd(this.Ed), this._drawImageOptions(n, u, f, y, v, P || null);
|
|
414
|
+
}, t.Canvas.prototype.drawImageNine = function(n, u, f, y, v) {
|
|
415
|
+
t.Fd(this.Ed), u = s(u, "HEAP32", Qt), f = m(f), this._drawImageNine(n, u, f, y, v || null);
|
|
416
|
+
}, t.Canvas.prototype.drawImageRect = function(n, u, f, y, v) {
|
|
417
|
+
t.Fd(this.Ed), m(u, N), m(f, Tt), this._drawImageRect(n, N, Tt, y, !!v);
|
|
418
|
+
}, t.Canvas.prototype.drawImageRectCubic = function(n, u, f, y, v, P) {
|
|
419
|
+
t.Fd(this.Ed), m(u, N), m(f, Tt), this._drawImageRectCubic(n, N, Tt, y, v, P || null);
|
|
420
|
+
}, t.Canvas.prototype.drawImageRectOptions = function(n, u, f, y, v, P) {
|
|
421
|
+
t.Fd(this.Ed), m(u, N), m(f, Tt), this._drawImageRectOptions(n, N, Tt, y, v, P || null);
|
|
422
|
+
}, t.Canvas.prototype.drawLine = function(n, u, f, y, v) {
|
|
423
|
+
t.Fd(this.Ed), this._drawLine(n, u, f, y, v);
|
|
424
|
+
}, t.Canvas.prototype.drawOval = function(n, u) {
|
|
425
|
+
t.Fd(this.Ed), n = m(n), this._drawOval(n, u);
|
|
426
|
+
}, t.Canvas.prototype.drawPaint = function(n) {
|
|
427
|
+
t.Fd(this.Ed), this._drawPaint(n);
|
|
428
|
+
}, t.Canvas.prototype.drawParagraph = function(n, u, f) {
|
|
429
|
+
t.Fd(this.Ed), this._drawParagraph(n, u, f);
|
|
430
|
+
}, t.Canvas.prototype.drawPatch = function(n, u, f, y, v) {
|
|
431
|
+
if (24 > n.length) throw "Need 12 cubic points";
|
|
432
|
+
if (u && 4 > u.length) throw "Need 4 colors";
|
|
433
|
+
if (f && 8 > f.length) throw "Need 4 shader coordinates";
|
|
434
|
+
t.Fd(this.Ed);
|
|
435
|
+
let P = s(n, "HEAPF32"), T = u ? s(r(u), "HEAPU32") : B, M = f ? s(f, "HEAPF32") : B;
|
|
436
|
+
y || (y = t.BlendMode.Modulate), this._drawPatch(P, T, M, y, v), c(M, f), c(T, u), c(P, n);
|
|
437
|
+
}, t.Canvas.prototype.drawPath = function(n, u) {
|
|
438
|
+
t.Fd(this.Ed), this._drawPath(n, u);
|
|
439
|
+
}, t.Canvas.prototype.drawPicture = function(n) {
|
|
440
|
+
t.Fd(this.Ed), this._drawPicture(n);
|
|
441
|
+
}, t.Canvas.prototype.drawPoints = function(n, u, f) {
|
|
442
|
+
t.Fd(this.Ed);
|
|
443
|
+
var y = s(u, "HEAPF32");
|
|
444
|
+
this._drawPoints(n, y, u.length / 2, f), c(y, u);
|
|
445
|
+
}, t.Canvas.prototype.drawRRect = function(n, u) {
|
|
446
|
+
t.Fd(this.Ed), n = S(n), this._drawRRect(n, u);
|
|
447
|
+
}, t.Canvas.prototype.drawRect = function(n, u) {
|
|
448
|
+
t.Fd(this.Ed), n = m(n), this._drawRect(n, u);
|
|
449
|
+
}, t.Canvas.prototype.drawRect4f = function(n, u, f, y, v) {
|
|
450
|
+
t.Fd(this.Ed), this._drawRect4f(n, u, f, y, v);
|
|
451
|
+
}, t.Canvas.prototype.drawShadow = function(n, u, f, y, v, P, T) {
|
|
452
|
+
t.Fd(this.Ed);
|
|
453
|
+
var M = s(v, "HEAPF32"), x = s(P, "HEAPF32");
|
|
454
|
+
u = s(u, "HEAPF32", Ve), f = s(f, "HEAPF32", Ne), this._drawShadow(n, u, f, y, M, x, T), c(M, v), c(x, P);
|
|
455
|
+
}, t.getShadowLocalBounds = function(n, u, f, y, v, P, T) {
|
|
456
|
+
return n = h(n), f = s(f, "HEAPF32", Ve), y = s(y, "HEAPF32", Ne), this._getShadowLocalBounds(n, u, f, y, v, P, N) ? (u = ft.toTypedArray(), T ? (T.set(u), T) : u.slice()) : null;
|
|
457
|
+
}, t.Canvas.prototype.drawTextBlob = function(n, u, f, y) {
|
|
458
|
+
t.Fd(this.Ed), this._drawTextBlob(n, u, f, y);
|
|
459
|
+
}, t.Canvas.prototype.drawVertices = function(n, u, f) {
|
|
460
|
+
t.Fd(this.Ed), this._drawVertices(n, u, f);
|
|
461
|
+
}, t.Canvas.prototype.getDeviceClipBounds = function(n) {
|
|
462
|
+
this._getDeviceClipBounds(Qt);
|
|
463
|
+
var u = Ce.toTypedArray();
|
|
464
|
+
return n ? n.set(u) : n = u.slice(), n;
|
|
465
|
+
}, t.Canvas.prototype.getLocalToDevice = function() {
|
|
466
|
+
this._getLocalToDevice(J);
|
|
467
|
+
for (var n = J, u = Array(16), f = 0; 16 > f; f++) u[f] = t.HEAPF32[n / 4 + f];
|
|
468
|
+
return u;
|
|
469
|
+
}, t.Canvas.prototype.getTotalMatrix = function() {
|
|
470
|
+
this._getTotalMatrix(k);
|
|
471
|
+
for (var n = Array(9), u = 0; 9 > u; u++) n[u] = t.HEAPF32[k / 4 + u];
|
|
472
|
+
return n;
|
|
473
|
+
}, t.Canvas.prototype.makeSurface = function(n) {
|
|
474
|
+
return n = this._makeSurface(n), n.Ed = this.Ed, n;
|
|
475
|
+
}, t.Canvas.prototype.readPixels = function(n, u, f, y, v) {
|
|
476
|
+
return t.Fd(this.Ed), a(this, n, u, f, y, v);
|
|
477
|
+
}, t.Canvas.prototype.saveLayer = function(n, u, f, y) {
|
|
478
|
+
return u = m(u), this._saveLayer(n || null, u, f || null, y || 0);
|
|
479
|
+
}, t.Canvas.prototype.writePixels = function(n, u, f, y, v, P, T, M) {
|
|
480
|
+
if (n.byteLength % (u * f)) throw "pixels length must be a multiple of the srcWidth * srcHeight";
|
|
481
|
+
t.Fd(this.Ed);
|
|
482
|
+
var x = n.byteLength / (u * f);
|
|
483
|
+
P = P || t.AlphaType.Unpremul, T = T || t.ColorType.RGBA_8888, M = M || t.ColorSpace.SRGB;
|
|
484
|
+
var W = x * u;
|
|
485
|
+
return x = s(n, "HEAPU8"), u = this._writePixels({ width: u, height: f, colorType: T, alphaType: P, colorSpace: M }, x, W, y, v), c(x, n), u;
|
|
486
|
+
}, t.ColorFilter.MakeBlend = function(n, u, f) {
|
|
487
|
+
return n = _(n), f = f || t.ColorSpace.SRGB, t.ColorFilter._MakeBlend(n, u, f);
|
|
488
|
+
}, t.ColorFilter.MakeMatrix = function(n) {
|
|
489
|
+
if (!n || n.length !== 20) throw "invalid color matrix";
|
|
490
|
+
var u = s(n, "HEAPF32"), f = t.ColorFilter._makeMatrix(u);
|
|
491
|
+
return c(u, n), f;
|
|
492
|
+
}, t.ContourMeasure.prototype.getPosTan = function(n, u) {
|
|
493
|
+
return this._getPosTan(n, N), n = ft.toTypedArray(), u ? (u.set(n), u) : n.slice();
|
|
494
|
+
}, t.ImageFilter.prototype.getOutputBounds = function(n, u, f) {
|
|
495
|
+
return n = m(n, N), u = h(u), this._getOutputBounds(n, u, Qt), u = Ce.toTypedArray(), f ? (f.set(u), f) : u.slice();
|
|
496
|
+
}, t.ImageFilter.MakeDropShadow = function(n, u, f, y, v, P) {
|
|
497
|
+
return v = _(v, gt), t.ImageFilter._MakeDropShadow(n, u, f, y, v, P);
|
|
498
|
+
}, t.ImageFilter.MakeDropShadowOnly = function(n, u, f, y, v, P) {
|
|
499
|
+
return v = _(v, gt), t.ImageFilter._MakeDropShadowOnly(n, u, f, y, v, P);
|
|
500
|
+
}, t.ImageFilter.MakeImage = function(n, u, f, y) {
|
|
501
|
+
if (f = m(f, N), y = m(y, Tt), "B" in u && "C" in u) return t.ImageFilter._MakeImageCubic(n, u.B, u.C, f, y);
|
|
502
|
+
let v = u.filter, P = t.MipmapMode.None;
|
|
503
|
+
return "mipmap" in u && (P = u.mipmap), t.ImageFilter._MakeImageOptions(n, v, P, f, y);
|
|
504
|
+
}, t.ImageFilter.MakeMatrixTransform = function(n, u, f) {
|
|
505
|
+
if (n = h(n), "B" in u && "C" in u) return t.ImageFilter._MakeMatrixTransformCubic(n, u.B, u.C, f);
|
|
506
|
+
let y = u.filter, v = t.MipmapMode.None;
|
|
507
|
+
return "mipmap" in u && (v = u.mipmap), t.ImageFilter._MakeMatrixTransformOptions(n, y, v, f);
|
|
508
|
+
}, t.Paint.prototype.getColor = function() {
|
|
509
|
+
return this._getColor(gt), C(gt);
|
|
510
|
+
}, t.Paint.prototype.setColor = function(n, u) {
|
|
511
|
+
u = u || null, n = _(n), this._setColor(n, u);
|
|
512
|
+
}, t.Paint.prototype.setColorComponents = function(n, u, f, y, v) {
|
|
513
|
+
v = v || null, n = A(n, u, f, y), this._setColor(n, v);
|
|
514
|
+
}, t.Path.prototype.getPoint = function(n, u) {
|
|
515
|
+
return this._getPoint(n, N), n = ft.toTypedArray(), u ? (u[0] = n[0], u[1] = n[1], u) : n.slice(0, 2);
|
|
516
|
+
}, t.Picture.prototype.makeShader = function(n, u, f, y, v) {
|
|
517
|
+
return y = h(y), v = m(v), this._makeShader(n, u, f, y, v);
|
|
518
|
+
}, t.Picture.prototype.cullRect = function(n) {
|
|
519
|
+
this._cullRect(N);
|
|
520
|
+
var u = ft.toTypedArray();
|
|
521
|
+
return n ? (n.set(u), n) : u.slice();
|
|
522
|
+
}, t.PictureRecorder.prototype.beginRecording = function(n, u) {
|
|
523
|
+
return n = m(n), this._beginRecording(n, !!u);
|
|
524
|
+
}, t.Surface.prototype.getCanvas = function() {
|
|
525
|
+
var n = this._getCanvas();
|
|
526
|
+
return n.Ed = this.Ed, n;
|
|
527
|
+
}, t.Surface.prototype.makeImageSnapshot = function(n) {
|
|
528
|
+
return t.Fd(this.Ed), n = s(n, "HEAP32", Qt), this._makeImageSnapshot(n);
|
|
529
|
+
}, t.Surface.prototype.makeSurface = function(n) {
|
|
530
|
+
return t.Fd(this.Ed), n = this._makeSurface(n), n.Ed = this.Ed, n;
|
|
531
|
+
}, t.Surface.prototype.Oe = function(n, u) {
|
|
532
|
+
return this.ce || (this.ce = this.getCanvas()), requestAnimationFrame((function() {
|
|
533
|
+
t.Fd(this.Ed), n(this.ce), this.flush(u);
|
|
534
|
+
}).bind(this));
|
|
535
|
+
}, t.Surface.prototype.requestAnimationFrame || (t.Surface.prototype.requestAnimationFrame = t.Surface.prototype.Oe), t.Surface.prototype.Le = function(n, u) {
|
|
536
|
+
this.ce || (this.ce = this.getCanvas()), requestAnimationFrame((function() {
|
|
537
|
+
t.Fd(this.Ed), n(this.ce), this.flush(u), this.dispose();
|
|
538
|
+
}).bind(this));
|
|
539
|
+
}, t.Surface.prototype.drawOnce || (t.Surface.prototype.drawOnce = t.Surface.prototype.Le), t.PathEffect.MakeDash = function(n, u) {
|
|
540
|
+
if (u || (u = 0), !n.length || n.length % 2 === 1) throw "Intervals array must have even length";
|
|
541
|
+
var f = s(n, "HEAPF32");
|
|
542
|
+
return u = t.PathEffect._MakeDash(f, n.length, u), c(f, n), u;
|
|
543
|
+
}, t.PathEffect.MakeLine2D = function(n, u) {
|
|
544
|
+
return u = h(u), t.PathEffect._MakeLine2D(n, u);
|
|
545
|
+
}, t.PathEffect.MakePath2D = function(n, u) {
|
|
546
|
+
return n = h(n), t.PathEffect._MakePath2D(n, u);
|
|
547
|
+
}, t.Shader.MakeColor = function(n, u) {
|
|
548
|
+
return u = u || null, n = _(n), t.Shader._MakeColor(n, u);
|
|
549
|
+
}, t.Shader.Blend = t.Shader.MakeBlend, t.Shader.Color = t.Shader.MakeColor, t.Shader.MakeLinearGradient = function(n, u, f, y, v, P, T, M) {
|
|
550
|
+
M = M || null;
|
|
551
|
+
var x = l(f), W = s(y, "HEAPF32");
|
|
552
|
+
T = T || 0, P = h(P);
|
|
553
|
+
var V = ft.toTypedArray();
|
|
554
|
+
return V.set(n), V.set(u, 2), n = t.Shader._MakeLinearGradient(N, x.Nd, x.colorType, W, x.count, v, T, P, M), c(x.Nd, f), y && c(W, y), n;
|
|
555
|
+
}, t.Shader.MakeRadialGradient = function(n, u, f, y, v, P, T, M) {
|
|
556
|
+
M = M || null;
|
|
557
|
+
var x = l(f), W = s(y, "HEAPF32");
|
|
558
|
+
return T = T || 0, P = h(P), n = t.Shader._MakeRadialGradient(n[0], n[1], u, x.Nd, x.colorType, W, x.count, v, T, P, M), c(x.Nd, f), y && c(W, y), n;
|
|
559
|
+
}, t.Shader.MakeSweepGradient = function(n, u, f, y, v, P, T, M, x, W) {
|
|
560
|
+
W = W || null;
|
|
561
|
+
var V = l(f), d = s(y, "HEAPF32");
|
|
562
|
+
return T = T || 0, M = M || 0, x = x || 360, P = h(P), n = t.Shader._MakeSweepGradient(n, u, V.Nd, V.colorType, d, V.count, v, M, x, T, P, W), c(V.Nd, f), y && c(d, y), n;
|
|
563
|
+
}, t.Shader.MakeTwoPointConicalGradient = function(n, u, f, y, v, P, T, M, x, W) {
|
|
564
|
+
W = W || null;
|
|
565
|
+
var V = l(v), d = s(P, "HEAPF32");
|
|
566
|
+
x = x || 0, M = h(M);
|
|
567
|
+
var w = ft.toTypedArray();
|
|
568
|
+
return w.set(n), w.set(f, 2), n = t.Shader._MakeTwoPointConicalGradient(N, u, y, V.Nd, V.colorType, d, V.count, T, x, M, W), c(V.Nd, v), P && c(d, P), n;
|
|
569
|
+
}, t.Vertices.prototype.bounds = function(n) {
|
|
570
|
+
this._bounds(N);
|
|
571
|
+
var u = ft.toTypedArray();
|
|
572
|
+
return n ? (n.set(u), n) : u.slice();
|
|
573
|
+
}, t.Id && t.Id.forEach(function(n) {
|
|
574
|
+
n();
|
|
575
|
+
});
|
|
576
|
+
}, t.computeTonalColors = function(a) {
|
|
577
|
+
var n = s(a.ambient, "HEAPF32"), u = s(a.spot, "HEAPF32");
|
|
578
|
+
this._computeTonalColors(n, u);
|
|
579
|
+
var f = { ambient: C(n), spot: C(u) };
|
|
580
|
+
return c(n, a.ambient), c(u, a.spot), f;
|
|
581
|
+
}, t.LTRBRect = function(a, n, u, f) {
|
|
582
|
+
return Float32Array.of(a, n, u, f);
|
|
583
|
+
}, t.XYWHRect = function(a, n, u, f) {
|
|
584
|
+
return Float32Array.of(a, n, a + u, n + f);
|
|
585
|
+
}, t.LTRBiRect = function(a, n, u, f) {
|
|
586
|
+
return Int32Array.of(a, n, u, f);
|
|
587
|
+
}, t.XYWHiRect = function(a, n, u, f) {
|
|
588
|
+
return Int32Array.of(a, n, a + u, n + f);
|
|
589
|
+
}, t.RRectXY = function(a, n, u) {
|
|
590
|
+
return Float32Array.of(a[0], a[1], a[2], a[3], n, u, n, u, n, u, n, u);
|
|
591
|
+
}, t.MakeAnimatedImageFromEncoded = function(a) {
|
|
592
|
+
a = new Uint8Array(a);
|
|
593
|
+
var n = t._malloc(a.byteLength);
|
|
594
|
+
return t.HEAPU8.set(a, n), (a = t._decodeAnimatedImage(n, a.byteLength)) ? a : null;
|
|
595
|
+
}, t.MakeImageFromEncoded = function(a) {
|
|
596
|
+
a = new Uint8Array(a);
|
|
597
|
+
var n = t._malloc(a.byteLength);
|
|
598
|
+
return t.HEAPU8.set(a, n), (a = t._decodeImage(n, a.byteLength)) ? a : null;
|
|
599
|
+
};
|
|
600
|
+
var Zt = null;
|
|
601
|
+
t.MakeImageFromCanvasImageSource = function(a) {
|
|
602
|
+
var n = a.width, u = a.height;
|
|
603
|
+
Zt || (Zt = document.createElement("canvas")), Zt.width = n, Zt.height = u;
|
|
604
|
+
var f = Zt.getContext("2d", { willReadFrequently: !0 });
|
|
605
|
+
return f.drawImage(a, 0, 0), a = f.getImageData(0, 0, n, u), t.MakeImage({ width: n, height: u, alphaType: t.AlphaType.Unpremul, colorType: t.ColorType.RGBA_8888, colorSpace: t.ColorSpace.SRGB }, a.data, 4 * n);
|
|
606
|
+
}, t.MakeImage = function(a, n, u) {
|
|
607
|
+
var f = t._malloc(n.length);
|
|
608
|
+
return t.HEAPU8.set(n, f), t._MakeImage(a, f, n.length, u);
|
|
609
|
+
}, t.MakeVertices = function(a, n, u, f, y, v) {
|
|
610
|
+
var P = y && y.length || 0, T = 0;
|
|
611
|
+
return u && u.length && (T |= 1), f && f.length && (T |= 2), v === void 0 || v || (T |= 4), a = new t._VerticesBuilder(a, n.length / 2, P, T), s(n, "HEAPF32", a.positions()), a.texCoords() && s(u, "HEAPF32", a.texCoords()), a.colors() && s(r(f), "HEAPU32", a.colors()), a.indices() && s(y, "HEAPU16", a.indices()), a.detach();
|
|
612
|
+
}, function(a) {
|
|
613
|
+
a.Id = a.Id || [], a.Id.push(function() {
|
|
614
|
+
function n(d) {
|
|
615
|
+
return d && (d.dir = d.dir === 0 ? a.TextDirection.RTL : a.TextDirection.LTR), d;
|
|
616
|
+
}
|
|
617
|
+
function u(d) {
|
|
618
|
+
if (!d || !d.length) return [];
|
|
619
|
+
for (var w = [], H = 0; H < d.length; H += 5) {
|
|
620
|
+
var z = a.LTRBRect(d[H], d[H + 1], d[H + 2], d[H + 3]), _t = a.TextDirection.LTR;
|
|
621
|
+
d[H + 4] === 0 && (_t = a.TextDirection.RTL), w.push({ rect: z, dir: _t });
|
|
622
|
+
}
|
|
623
|
+
return a._free(d.byteOffset), w;
|
|
624
|
+
}
|
|
625
|
+
function f(d) {
|
|
626
|
+
return d = d || {}, d.weight === void 0 && (d.weight = a.FontWeight.Normal), d.width = d.width || a.FontWidth.Normal, d.slant = d.slant || a.FontSlant.Upright, d;
|
|
627
|
+
}
|
|
628
|
+
function y(d) {
|
|
629
|
+
if (!d || !d.length) return B;
|
|
630
|
+
for (var w = [], H = 0; H < d.length; H++) {
|
|
631
|
+
var z = v(d[H]);
|
|
632
|
+
w.push(z);
|
|
633
|
+
}
|
|
634
|
+
return s(w, "HEAPU32");
|
|
635
|
+
}
|
|
636
|
+
function v(d) {
|
|
637
|
+
if (M[d]) return M[d];
|
|
638
|
+
var w = ct(d) + 1, H = a._malloc(w);
|
|
639
|
+
return ut(d, I, H, w), M[d] = H;
|
|
640
|
+
}
|
|
641
|
+
function P(d) {
|
|
642
|
+
if (d._colorPtr = _(d.color), d._foregroundColorPtr = B, d._backgroundColorPtr = B, d._decorationColorPtr = B, d.foregroundColor && (d._foregroundColorPtr = _(d.foregroundColor, x)), d.backgroundColor && (d._backgroundColorPtr = _(d.backgroundColor, W)), d.decorationColor && (d._decorationColorPtr = _(d.decorationColor, V)), Array.isArray(d.fontFamilies) && d.fontFamilies.length ? (d._fontFamiliesPtr = y(d.fontFamilies), d._fontFamiliesLen = d.fontFamilies.length) : (d._fontFamiliesPtr = B, d._fontFamiliesLen = 0), d.locale) {
|
|
643
|
+
var w = d.locale;
|
|
644
|
+
d._localePtr = v(w), d._localeLen = ct(w) + 1;
|
|
645
|
+
} else d._localePtr = B, d._localeLen = 0;
|
|
646
|
+
if (Array.isArray(d.shadows) && d.shadows.length) {
|
|
647
|
+
w = d.shadows;
|
|
648
|
+
var H = w.map(function(dt) {
|
|
649
|
+
return dt.color || a.BLACK;
|
|
650
|
+
}), z = w.map(function(dt) {
|
|
651
|
+
return dt.blurRadius || 0;
|
|
652
|
+
});
|
|
653
|
+
d._shadowLen = w.length;
|
|
654
|
+
for (var _t = a._malloc(8 * w.length), ze = _t / 4, qe = 0; qe < w.length; qe++) {
|
|
655
|
+
var Kr = w[qe].offset || [0, 0];
|
|
656
|
+
a.HEAPF32[ze] = Kr[0], a.HEAPF32[ze + 1] = Kr[1], ze += 2;
|
|
657
|
+
}
|
|
658
|
+
d._shadowColorsPtr = l(H).Nd, d._shadowOffsetsPtr = _t, d._shadowBlurRadiiPtr = s(z, "HEAPF32");
|
|
659
|
+
} else d._shadowLen = 0, d._shadowColorsPtr = B, d._shadowOffsetsPtr = B, d._shadowBlurRadiiPtr = B;
|
|
660
|
+
Array.isArray(d.fontFeatures) && d.fontFeatures.length ? (w = d.fontFeatures, H = w.map(function(dt) {
|
|
661
|
+
return dt.name;
|
|
662
|
+
}), z = w.map(function(dt) {
|
|
663
|
+
return dt.value;
|
|
664
|
+
}), d._fontFeatureLen = w.length, d._fontFeatureNamesPtr = y(H), d._fontFeatureValuesPtr = s(z, "HEAPU32")) : (d._fontFeatureLen = 0, d._fontFeatureNamesPtr = B, d._fontFeatureValuesPtr = B), Array.isArray(d.fontVariations) && d.fontVariations.length ? (w = d.fontVariations, H = w.map(function(dt) {
|
|
665
|
+
return dt.axis;
|
|
666
|
+
}), z = w.map(function(dt) {
|
|
667
|
+
return dt.value;
|
|
668
|
+
}), d._fontVariationLen = w.length, d._fontVariationAxesPtr = y(H), d._fontVariationValuesPtr = s(z, "HEAPF32")) : (d._fontVariationLen = 0, d._fontVariationAxesPtr = B, d._fontVariationValuesPtr = B);
|
|
669
|
+
}
|
|
670
|
+
function T(d) {
|
|
671
|
+
a._free(d._fontFamiliesPtr), a._free(d._shadowColorsPtr), a._free(d._shadowOffsetsPtr), a._free(d._shadowBlurRadiiPtr), a._free(d._fontFeatureNamesPtr), a._free(d._fontFeatureValuesPtr), a._free(d._fontVariationAxesPtr), a._free(d._fontVariationValuesPtr);
|
|
672
|
+
}
|
|
673
|
+
a.Paragraph.prototype.getRectsForRange = function(d, w, H, z) {
|
|
674
|
+
return d = this._getRectsForRange(d, w, H, z), u(d);
|
|
675
|
+
}, a.Paragraph.prototype.getRectsForPlaceholders = function() {
|
|
676
|
+
var d = this._getRectsForPlaceholders();
|
|
677
|
+
return u(d);
|
|
678
|
+
}, a.Paragraph.prototype.getGlyphInfoAt = function(d) {
|
|
679
|
+
return n(this._getGlyphInfoAt(d));
|
|
680
|
+
}, a.Paragraph.prototype.getClosestGlyphInfoAtCoordinate = function(d, w) {
|
|
681
|
+
return n(this._getClosestGlyphInfoAtCoordinate(d, w));
|
|
682
|
+
}, a.TypefaceFontProvider.prototype.registerFont = function(d, w) {
|
|
683
|
+
if (d = a.Typeface.MakeFreeTypeFaceFromData(d), !d) return null;
|
|
684
|
+
w = v(w), this._registerFont(d, w);
|
|
685
|
+
}, a.ParagraphStyle = function(d) {
|
|
686
|
+
if (d.disableHinting = d.disableHinting || !1, d.ellipsis) {
|
|
687
|
+
var w = d.ellipsis;
|
|
688
|
+
d._ellipsisPtr = v(w), d._ellipsisLen = ct(w) + 1;
|
|
689
|
+
} else d._ellipsisPtr = B, d._ellipsisLen = 0;
|
|
690
|
+
return d.heightMultiplier == null && (d.heightMultiplier = -1), d.maxLines = d.maxLines || 0, d.replaceTabCharacters = d.replaceTabCharacters || !1, w = (w = d.strutStyle) || {}, w.strutEnabled = w.strutEnabled || !1, w.strutEnabled && Array.isArray(w.fontFamilies) && w.fontFamilies.length ? (w._fontFamiliesPtr = y(w.fontFamilies), w._fontFamiliesLen = w.fontFamilies.length) : (w._fontFamiliesPtr = B, w._fontFamiliesLen = 0), w.fontStyle = f(w.fontStyle), w.fontSize == null && (w.fontSize = -1), w.heightMultiplier == null && (w.heightMultiplier = -1), w.halfLeading = w.halfLeading || !1, w.leading = w.leading || 0, w.forceStrutHeight = w.forceStrutHeight || !1, d.strutStyle = w, d.textAlign = d.textAlign || a.TextAlign.Start, d.textDirection = d.textDirection || a.TextDirection.LTR, d.textHeightBehavior = d.textHeightBehavior || a.TextHeightBehavior.All, d.textStyle = a.TextStyle(d.textStyle), d.applyRoundingHack = d.applyRoundingHack !== !1, d;
|
|
691
|
+
}, a.TextStyle = function(d) {
|
|
692
|
+
return d.color || (d.color = a.BLACK), d.decoration = d.decoration || 0, d.decorationThickness = d.decorationThickness || 0, d.decorationStyle = d.decorationStyle || a.DecorationStyle.Solid, d.textBaseline = d.textBaseline || a.TextBaseline.Alphabetic, d.fontSize == null && (d.fontSize = -1), d.letterSpacing = d.letterSpacing || 0, d.wordSpacing = d.wordSpacing || 0, d.heightMultiplier == null && (d.heightMultiplier = -1), d.halfLeading = d.halfLeading || !1, d.fontStyle = f(d.fontStyle), d;
|
|
693
|
+
};
|
|
694
|
+
var M = {}, x = a._malloc(16), W = a._malloc(16), V = a._malloc(16);
|
|
695
|
+
a.ParagraphBuilder.Make = function(d, w) {
|
|
696
|
+
return P(d.textStyle), w = a.ParagraphBuilder._Make(d, w), T(d.textStyle), w;
|
|
697
|
+
}, a.ParagraphBuilder.MakeFromFontProvider = function(d, w) {
|
|
698
|
+
return P(d.textStyle), w = a.ParagraphBuilder._MakeFromFontProvider(d, w), T(d.textStyle), w;
|
|
699
|
+
}, a.ParagraphBuilder.MakeFromFontCollection = function(d, w) {
|
|
700
|
+
return P(d.textStyle), w = a.ParagraphBuilder._MakeFromFontCollection(d, w), T(d.textStyle), w;
|
|
701
|
+
}, a.ParagraphBuilder.ShapeText = function(d, w, H) {
|
|
702
|
+
let z = 0;
|
|
703
|
+
for (let _t of w) z += _t.length;
|
|
704
|
+
if (z !== d.length) throw "Accumulated block lengths must equal text.length";
|
|
705
|
+
return a.ParagraphBuilder._ShapeText(d, w, H);
|
|
706
|
+
}, a.ParagraphBuilder.prototype.pushStyle = function(d) {
|
|
707
|
+
P(d), this._pushStyle(d), T(d);
|
|
708
|
+
}, a.ParagraphBuilder.prototype.pushPaintStyle = function(d, w, H) {
|
|
709
|
+
P(d), this._pushPaintStyle(d, w, H), T(d);
|
|
710
|
+
}, a.ParagraphBuilder.prototype.addPlaceholder = function(d, w, H, z, _t) {
|
|
711
|
+
H = H || a.PlaceholderAlignment.Baseline, z = z || a.TextBaseline.Alphabetic, this._addPlaceholder(d || 0, w || 0, H, z, _t || 0);
|
|
712
|
+
}, a.ParagraphBuilder.prototype.setWordsUtf8 = function(d) {
|
|
713
|
+
var w = s(d, "HEAPU32");
|
|
714
|
+
this._setWordsUtf8(w, d && d.length || 0), c(w, d);
|
|
715
|
+
}, a.ParagraphBuilder.prototype.setWordsUtf16 = function(d) {
|
|
716
|
+
var w = s(d, "HEAPU32");
|
|
717
|
+
this._setWordsUtf16(w, d && d.length || 0), c(w, d);
|
|
718
|
+
}, a.ParagraphBuilder.prototype.setGraphemeBreaksUtf8 = function(d) {
|
|
719
|
+
var w = s(d, "HEAPU32");
|
|
720
|
+
this._setGraphemeBreaksUtf8(w, d && d.length || 0), c(w, d);
|
|
721
|
+
}, a.ParagraphBuilder.prototype.setGraphemeBreaksUtf16 = function(d) {
|
|
722
|
+
var w = s(d, "HEAPU32");
|
|
723
|
+
this._setGraphemeBreaksUtf16(w, d && d.length || 0), c(w, d);
|
|
724
|
+
}, a.ParagraphBuilder.prototype.setLineBreaksUtf8 = function(d) {
|
|
725
|
+
var w = s(d, "HEAPU32");
|
|
726
|
+
this._setLineBreaksUtf8(w, d && d.length || 0), c(w, d);
|
|
727
|
+
}, a.ParagraphBuilder.prototype.setLineBreaksUtf16 = function(d) {
|
|
728
|
+
var w = s(d, "HEAPU32");
|
|
729
|
+
this._setLineBreaksUtf16(w, d && d.length || 0), c(w, d);
|
|
730
|
+
};
|
|
731
|
+
});
|
|
732
|
+
}(g), t.Id = t.Id || [], t.Id.push(function() {
|
|
733
|
+
t.Path.prototype.op = function(a, n) {
|
|
734
|
+
return this._op(a, n) ? this : null;
|
|
735
|
+
}, t.Path.prototype.simplify = function() {
|
|
736
|
+
return this._simplify() ? this : null;
|
|
737
|
+
};
|
|
738
|
+
}), t.Id = t.Id || [], t.Id.push(function() {
|
|
739
|
+
t.Canvas.prototype.drawText = function(a, n, u, f, y) {
|
|
740
|
+
var v = ct(a), P = t._malloc(v + 1);
|
|
741
|
+
ut(a, I, P, v + 1), this._drawSimpleText(P, v, n, u, y, f), t._free(P);
|
|
742
|
+
}, t.Canvas.prototype.drawGlyphs = function(a, n, u, f, y, v) {
|
|
743
|
+
if (!(2 * a.length <= n.length)) throw "Not enough positions for the array of gyphs";
|
|
744
|
+
t.Fd(this.Ed);
|
|
745
|
+
let P = s(a, "HEAPU16"), T = s(n, "HEAPF32");
|
|
746
|
+
this._drawGlyphs(a.length, P, T, u, f, y, v), c(T, n), c(P, a);
|
|
747
|
+
}, t.Font.prototype.getGlyphBounds = function(a, n, u) {
|
|
748
|
+
var f = s(a, "HEAPU16"), y = t._malloc(16 * a.length);
|
|
749
|
+
return this._getGlyphWidthBounds(f, a.length, B, y, n || null), n = new Float32Array(t.HEAPU8.buffer, y, 4 * a.length), c(f, a), u ? (u.set(n), t._free(y), u) : (a = Float32Array.from(n), t._free(y), a);
|
|
750
|
+
}, t.Font.prototype.getGlyphIDs = function(a, n, u) {
|
|
751
|
+
n || (n = a.length);
|
|
752
|
+
var f = ct(a) + 1, y = t._malloc(f);
|
|
753
|
+
return ut(a, I, y, f), a = t._malloc(2 * n), n = this._getGlyphIDs(y, f - 1, n, a), t._free(y), 0 > n ? (t._free(a), null) : (y = new Uint16Array(t.HEAPU8.buffer, a, n), u ? (u.set(y), t._free(a), u) : (u = Uint16Array.from(y), t._free(a), u));
|
|
754
|
+
}, t.Font.prototype.getGlyphIntercepts = function(a, n, u, f) {
|
|
755
|
+
var y = s(a, "HEAPU16"), v = s(n, "HEAPF32");
|
|
756
|
+
return this._getGlyphIntercepts(y, a.length, !(a && a._ck), v, n.length, !(n && n._ck), u, f);
|
|
757
|
+
}, t.Font.prototype.getGlyphWidths = function(a, n, u) {
|
|
758
|
+
var f = s(a, "HEAPU16"), y = t._malloc(4 * a.length);
|
|
759
|
+
return this._getGlyphWidthBounds(f, a.length, y, B, n || null), n = new Float32Array(t.HEAPU8.buffer, y, a.length), c(f, a), u ? (u.set(n), t._free(y), u) : (a = Float32Array.from(n), t._free(y), a);
|
|
760
|
+
}, t.FontMgr.FromData = function() {
|
|
761
|
+
if (!arguments.length) return null;
|
|
762
|
+
var a = arguments;
|
|
763
|
+
if (a.length === 1 && Array.isArray(a[0]) && (a = arguments[0]), !a.length) return null;
|
|
764
|
+
for (var n = [], u = [], f = 0; f < a.length; f++) {
|
|
765
|
+
var y = new Uint8Array(a[f]), v = s(y, "HEAPU8");
|
|
766
|
+
n.push(v), u.push(y.byteLength);
|
|
767
|
+
}
|
|
768
|
+
return n = s(n, "HEAPU32"), u = s(u, "HEAPU32"), a = t.FontMgr._fromData(n, u, a.length), t._free(n), t._free(u), a;
|
|
769
|
+
}, t.Typeface.MakeFreeTypeFaceFromData = function(a) {
|
|
770
|
+
a = new Uint8Array(a);
|
|
771
|
+
var n = s(a, "HEAPU8");
|
|
772
|
+
return (a = t.Typeface._MakeFreeTypeFaceFromData(n, a.byteLength)) ? a : null;
|
|
773
|
+
}, t.Typeface.prototype.getGlyphIDs = function(a, n, u) {
|
|
774
|
+
n || (n = a.length);
|
|
775
|
+
var f = ct(a) + 1, y = t._malloc(f);
|
|
776
|
+
return ut(a, I, y, f), a = t._malloc(2 * n), n = this._getGlyphIDs(y, f - 1, n, a), t._free(y), 0 > n ? (t._free(a), null) : (y = new Uint16Array(t.HEAPU8.buffer, a, n), u ? (u.set(y), t._free(a), u) : (u = Uint16Array.from(y), t._free(a), u));
|
|
777
|
+
}, t.TextBlob.MakeOnPath = function(a, n, u, f) {
|
|
778
|
+
if (a && a.length && n && n.countPoints()) {
|
|
779
|
+
if (n.countPoints() === 1) return this.MakeFromText(a, u);
|
|
780
|
+
f || (f = 0);
|
|
781
|
+
var y = u.getGlyphIDs(a);
|
|
782
|
+
y = u.getGlyphWidths(y);
|
|
783
|
+
var v = [];
|
|
784
|
+
n = new t.ContourMeasureIter(n, !1, 1);
|
|
785
|
+
for (var P = n.next(), T = new Float32Array(4), M = 0; M < a.length && P; M++) {
|
|
786
|
+
var x = y[M];
|
|
787
|
+
if (f += x / 2, f > P.length()) {
|
|
788
|
+
if (P.delete(), P = n.next(), !P) {
|
|
789
|
+
a = a.substring(0, M);
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
f = x / 2;
|
|
793
|
+
}
|
|
794
|
+
P.getPosTan(f, T);
|
|
795
|
+
var W = T[2], V = T[3];
|
|
796
|
+
v.push(W, V, T[0] - x / 2 * W, T[1] - x / 2 * V), f += x / 2;
|
|
797
|
+
}
|
|
798
|
+
return a = this.MakeFromRSXform(a, v, u), P && P.delete(), n.delete(), a;
|
|
799
|
+
}
|
|
800
|
+
}, t.TextBlob.MakeFromRSXform = function(a, n, u) {
|
|
801
|
+
var f = ct(a) + 1, y = t._malloc(f);
|
|
802
|
+
return ut(a, I, y, f), a = s(n, "HEAPF32"), u = t.TextBlob._MakeFromRSXform(y, f - 1, a, u), t._free(y), u || null;
|
|
803
|
+
}, t.TextBlob.MakeFromRSXformGlyphs = function(a, n, u) {
|
|
804
|
+
var f = s(a, "HEAPU16");
|
|
805
|
+
return n = s(n, "HEAPF32"), u = t.TextBlob._MakeFromRSXformGlyphs(f, 2 * a.length, n, u), c(f, a), u || null;
|
|
806
|
+
}, t.TextBlob.MakeFromGlyphs = function(a, n) {
|
|
807
|
+
var u = s(a, "HEAPU16");
|
|
808
|
+
return n = t.TextBlob._MakeFromGlyphs(u, 2 * a.length, n), c(u, a), n || null;
|
|
809
|
+
}, t.TextBlob.MakeFromText = function(a, n) {
|
|
810
|
+
var u = ct(a) + 1, f = t._malloc(u);
|
|
811
|
+
return ut(a, I, f, u), a = t.TextBlob._MakeFromText(f, u - 1, n), t._free(f), a || null;
|
|
812
|
+
}, t.MallocGlyphIDs = function(a) {
|
|
813
|
+
return t.Malloc(Uint16Array, a);
|
|
814
|
+
};
|
|
815
|
+
}), t.Id = t.Id || [], t.Id.push(function() {
|
|
816
|
+
t.MakePicture = function(a) {
|
|
817
|
+
a = new Uint8Array(a);
|
|
818
|
+
var n = t._malloc(a.byteLength);
|
|
819
|
+
return t.HEAPU8.set(a, n), (a = t._MakePicture(n, a.byteLength)) ? a : null;
|
|
820
|
+
};
|
|
821
|
+
}), t.Id = t.Id || [], t.Id.push(function() {
|
|
822
|
+
t.RuntimeEffect.Make = function(a, n) {
|
|
823
|
+
return t.RuntimeEffect._Make(a, { onError: n || function(u) {
|
|
824
|
+
console.log("RuntimeEffect error", u);
|
|
825
|
+
} });
|
|
826
|
+
}, t.RuntimeEffect.MakeForBlender = function(a, n) {
|
|
827
|
+
return t.RuntimeEffect._MakeForBlender(a, { onError: n || function(u) {
|
|
828
|
+
console.log("RuntimeEffect error", u);
|
|
829
|
+
} });
|
|
830
|
+
}, t.RuntimeEffect.prototype.makeShader = function(a, n) {
|
|
831
|
+
var u = !a._ck, f = s(a, "HEAPF32");
|
|
832
|
+
return n = h(n), this._makeShader(f, 4 * a.length, u, n);
|
|
833
|
+
}, t.RuntimeEffect.prototype.makeShaderWithChildren = function(a, n, u) {
|
|
834
|
+
var f = !a._ck, y = s(a, "HEAPF32");
|
|
835
|
+
u = h(u);
|
|
836
|
+
for (var v = [], P = 0; P < n.length; P++) v.push(n[P].Dd.Hd);
|
|
837
|
+
return n = s(v, "HEAPU32"), this._makeShaderWithChildren(y, 4 * a.length, f, n, v.length, u);
|
|
838
|
+
}, t.RuntimeEffect.prototype.makeBlender = function(a) {
|
|
839
|
+
var n = !a._ck, u = s(a, "HEAPF32");
|
|
840
|
+
return this._makeBlender(u, 4 * a.length, n);
|
|
841
|
+
};
|
|
842
|
+
});
|
|
843
|
+
}(g);
|
|
844
|
+
var Xe = Object.assign({}, g), Te = "./this.program", Qe = typeof window == "object", Ot = typeof importScripts == "function", Ze = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string", Q = "", Se, ne, oe;
|
|
845
|
+
if (Ze) {
|
|
846
|
+
var tr = Xr("fs"), Fe = Xr("path");
|
|
847
|
+
Q = Ot ? Fe.dirname(Q) + "/" : __dirname + "/", Se = (t, e) => (t = t.startsWith("file://") ? new URL(t) : Fe.normalize(t), tr.readFileSync(t, e ? void 0 : "utf8")), oe = (t) => (t = Se(t, !0), t.buffer || (t = new Uint8Array(t)), t), ne = (t, e, r, o = !0) => {
|
|
848
|
+
t = t.startsWith("file://") ? new URL(t) : Fe.normalize(t), tr.readFile(t, o ? void 0 : "utf8", (i, c) => {
|
|
849
|
+
i ? r(i) : e(o ? c.buffer : c);
|
|
850
|
+
});
|
|
851
|
+
}, !g.thisProgram && 1 < process.argv.length && (Te = process.argv[1].replace(/\\/g, "/")), process.argv.slice(2), g.inspect = () => "[Emscripten Module object]";
|
|
852
|
+
} else (Qe || Ot) && (Ot ? Q = self.location.href : typeof document < "u" && document.currentScript && (Q = document.currentScript.src), ee && (Q = ee), Q.indexOf("blob:") !== 0 ? Q = Q.substr(0, Q.replace(/[?#].*/, "").lastIndexOf("/") + 1) : Q = "", Se = (t) => {
|
|
853
|
+
var e = new XMLHttpRequest();
|
|
854
|
+
return e.open("GET", t, !1), e.send(null), e.responseText;
|
|
855
|
+
}, Ot && (oe = (t) => {
|
|
856
|
+
var e = new XMLHttpRequest();
|
|
857
|
+
return e.open("GET", t, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);
|
|
858
|
+
}), ne = (t, e, r) => {
|
|
859
|
+
var o = new XMLHttpRequest();
|
|
860
|
+
o.open("GET", t, !0), o.responseType = "arraybuffer", o.onload = () => {
|
|
861
|
+
o.status == 200 || o.status == 0 && o.response ? e(o.response) : r();
|
|
862
|
+
}, o.onerror = r, o.send(null);
|
|
863
|
+
});
|
|
864
|
+
var Qr = g.print || console.log.bind(console), wt = g.printErr || console.error.bind(console);
|
|
865
|
+
Object.assign(g, Xe), Xe = null, g.thisProgram && (Te = g.thisProgram);
|
|
866
|
+
var jt;
|
|
867
|
+
g.wasmBinary && (jt = g.wasmBinary), g.noExitRuntime, typeof WebAssembly != "object" && ke("no native wasm support detected");
|
|
868
|
+
var ie, D, er = !1, ht, I, At, Rt, E, O, F, rr;
|
|
869
|
+
function nr() {
|
|
870
|
+
var t = ie.buffer;
|
|
871
|
+
g.HEAP8 = ht = new Int8Array(t), g.HEAP16 = At = new Int16Array(t), g.HEAP32 = E = new Int32Array(t), g.HEAPU8 = I = new Uint8Array(t), g.HEAPU16 = Rt = new Uint16Array(t), g.HEAPU32 = O = new Uint32Array(t), g.HEAPF32 = F = new Float32Array(t), g.HEAPF64 = rr = new Float64Array(t);
|
|
872
|
+
}
|
|
873
|
+
var K, or = [], ir = [], ar = [];
|
|
874
|
+
function Zr() {
|
|
875
|
+
var t = g.preRun.shift();
|
|
876
|
+
or.unshift(t);
|
|
877
|
+
}
|
|
878
|
+
var St = 0, Ut = null;
|
|
879
|
+
function ke(t) {
|
|
880
|
+
throw g.onAbort && g.onAbort(t), t = "Aborted(" + t + ")", wt(t), er = !0, t = new WebAssembly.RuntimeError(t + ". Build with -sASSERTIONS for more info."), re(t), t;
|
|
881
|
+
}
|
|
882
|
+
function ur(t) {
|
|
883
|
+
return t.startsWith("data:application/octet-stream;base64,");
|
|
884
|
+
}
|
|
885
|
+
var It;
|
|
886
|
+
if (It = "canvaskit.wasm", !ur(It)) {
|
|
887
|
+
var cr = It;
|
|
888
|
+
It = g.locateFile ? g.locateFile(cr, Q) : Q + cr;
|
|
889
|
+
}
|
|
890
|
+
function sr(t) {
|
|
891
|
+
if (t == It && jt) return new Uint8Array(jt);
|
|
892
|
+
if (oe) return oe(t);
|
|
893
|
+
throw "both async and sync fetching of the wasm failed";
|
|
894
|
+
}
|
|
895
|
+
function tn(t) {
|
|
896
|
+
if (!jt && (Qe || Ot)) {
|
|
897
|
+
if (typeof fetch == "function" && !t.startsWith("file://")) return fetch(t, { credentials: "same-origin" }).then((e) => {
|
|
898
|
+
if (!e.ok) throw "failed to load wasm binary file at '" + t + "'";
|
|
899
|
+
return e.arrayBuffer();
|
|
900
|
+
}).catch(() => sr(t));
|
|
901
|
+
if (ne) return new Promise((e, r) => {
|
|
902
|
+
ne(t, (o) => e(new Uint8Array(o)), r);
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
return Promise.resolve().then(() => sr(t));
|
|
906
|
+
}
|
|
907
|
+
function lr(t, e, r) {
|
|
908
|
+
return tn(t).then((o) => WebAssembly.instantiate(o, e)).then((o) => o).then(r, (o) => {
|
|
909
|
+
wt("failed to asynchronously prepare wasm: " + o), ke(o);
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
function en(t, e) {
|
|
913
|
+
var r = It;
|
|
914
|
+
return jt || typeof WebAssembly.instantiateStreaming != "function" || ur(r) || r.startsWith("file://") || Ze || typeof fetch != "function" ? lr(r, t, e) : fetch(r, { credentials: "same-origin" }).then((o) => WebAssembly.instantiateStreaming(o, t).then(e, function(i) {
|
|
915
|
+
return wt("wasm streaming compile failed: " + i), wt("falling back to ArrayBuffer instantiation"), lr(r, t, e);
|
|
916
|
+
}));
|
|
917
|
+
}
|
|
918
|
+
var xe = (t) => {
|
|
919
|
+
for (; 0 < t.length; ) t.shift()(g);
|
|
920
|
+
}, fr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Ft = (t, e, r) => {
|
|
921
|
+
var o = e + r;
|
|
922
|
+
for (r = e; t[r] && !(r >= o); ) ++r;
|
|
923
|
+
if (16 < r - e && t.buffer && fr) return fr.decode(t.subarray(e, r));
|
|
924
|
+
for (o = ""; e < r; ) {
|
|
925
|
+
var i = t[e++];
|
|
926
|
+
if (i & 128) {
|
|
927
|
+
var c = t[e++] & 63;
|
|
928
|
+
if ((i & 224) == 192) o += String.fromCharCode((i & 31) << 6 | c);
|
|
929
|
+
else {
|
|
930
|
+
var s = t[e++] & 63;
|
|
931
|
+
i = (i & 240) == 224 ? (i & 15) << 12 | c << 6 | s : (i & 7) << 18 | c << 12 | s << 6 | t[e++] & 63, 65536 > i ? o += String.fromCharCode(i) : (i -= 65536, o += String.fromCharCode(55296 | i >> 10, 56320 | i & 1023));
|
|
932
|
+
}
|
|
933
|
+
} else o += String.fromCharCode(i);
|
|
934
|
+
}
|
|
935
|
+
return o;
|
|
936
|
+
}, ae = {};
|
|
937
|
+
function Me(t) {
|
|
938
|
+
for (; t.length; ) {
|
|
939
|
+
var e = t.pop();
|
|
940
|
+
t.pop()(e);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
function Wt(t) {
|
|
944
|
+
return this.fromWireType(E[t >> 2]);
|
|
945
|
+
}
|
|
946
|
+
var Bt = {}, kt = {}, ue = {}, dr = void 0;
|
|
947
|
+
function ce(t) {
|
|
948
|
+
throw new dr(t);
|
|
949
|
+
}
|
|
950
|
+
function at(t, e, r) {
|
|
951
|
+
function o(l) {
|
|
952
|
+
l = r(l), l.length !== t.length && ce("Mismatched type converter count");
|
|
953
|
+
for (var h = 0; h < t.length; ++h) pt(t[h], l[h]);
|
|
954
|
+
}
|
|
955
|
+
t.forEach(function(l) {
|
|
956
|
+
ue[l] = e;
|
|
957
|
+
});
|
|
958
|
+
var i = Array(e.length), c = [], s = 0;
|
|
959
|
+
e.forEach((l, h) => {
|
|
960
|
+
kt.hasOwnProperty(l) ? i[h] = kt[l] : (c.push(l), Bt.hasOwnProperty(l) || (Bt[l] = []), Bt[l].push(() => {
|
|
961
|
+
i[h] = kt[l], ++s, s === c.length && o(i);
|
|
962
|
+
}));
|
|
963
|
+
}), c.length === 0 && o(i);
|
|
964
|
+
}
|
|
965
|
+
function se(t) {
|
|
966
|
+
switch (t) {
|
|
967
|
+
case 1:
|
|
968
|
+
return 0;
|
|
969
|
+
case 2:
|
|
970
|
+
return 1;
|
|
971
|
+
case 4:
|
|
972
|
+
return 2;
|
|
973
|
+
case 8:
|
|
974
|
+
return 3;
|
|
975
|
+
default:
|
|
976
|
+
throw new TypeError(`Unknown type size: ${t}`);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
var hr = void 0;
|
|
980
|
+
function $(t) {
|
|
981
|
+
for (var e = ""; I[t]; ) e += hr[I[t++]];
|
|
982
|
+
return e;
|
|
983
|
+
}
|
|
984
|
+
var Dt = void 0;
|
|
985
|
+
function G(t) {
|
|
986
|
+
throw new Dt(t);
|
|
987
|
+
}
|
|
988
|
+
function rn(t, e, r = {}) {
|
|
989
|
+
var o = e.name;
|
|
990
|
+
if (t || G(`type "${o}" must have a positive integer typeid pointer`), kt.hasOwnProperty(t)) {
|
|
991
|
+
if (r.af) return;
|
|
992
|
+
G(`Cannot register type '${o}' twice`);
|
|
993
|
+
}
|
|
994
|
+
kt[t] = e, delete ue[t], Bt.hasOwnProperty(t) && (e = Bt[t], delete Bt[t], e.forEach((i) => i()));
|
|
995
|
+
}
|
|
996
|
+
function pt(t, e, r = {}) {
|
|
997
|
+
if (!("argPackAdvance" in e)) throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
998
|
+
rn(t, e, r);
|
|
999
|
+
}
|
|
1000
|
+
function Re(t) {
|
|
1001
|
+
G(t.Dd.Jd.Gd.name + " instance already deleted");
|
|
1002
|
+
}
|
|
1003
|
+
var Ie = !1;
|
|
1004
|
+
function pr() {
|
|
1005
|
+
}
|
|
1006
|
+
function yr(t) {
|
|
1007
|
+
--t.count.value, t.count.value === 0 && (t.Ld ? t.Pd.Td(t.Ld) : t.Jd.Gd.Td(t.Hd));
|
|
1008
|
+
}
|
|
1009
|
+
function mr(t, e, r) {
|
|
1010
|
+
return e === r ? t : r.Md === void 0 ? null : (t = mr(t, e, r.Md), t === null ? null : r.Te(t));
|
|
1011
|
+
}
|
|
1012
|
+
var gr = {}, $t = [];
|
|
1013
|
+
function Be() {
|
|
1014
|
+
for (; $t.length; ) {
|
|
1015
|
+
var t = $t.pop();
|
|
1016
|
+
t.Dd.$d = !1, t.delete();
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
var Vt = void 0, Nt = {};
|
|
1020
|
+
function nn(t, e) {
|
|
1021
|
+
for (e === void 0 && G("ptr should not be undefined"); t.Md; ) e = t.ge(e), t = t.Md;
|
|
1022
|
+
return Nt[e];
|
|
1023
|
+
}
|
|
1024
|
+
function le(t, e) {
|
|
1025
|
+
return e.Jd && e.Hd || ce("makeClassHandle requires ptr and ptrType"), !!e.Pd != !!e.Ld && ce("Both smartPtrType and smartPtr must be specified"), e.count = { value: 1 }, Yt(Object.create(t, { Dd: { value: e } }));
|
|
1026
|
+
}
|
|
1027
|
+
function Yt(t) {
|
|
1028
|
+
return typeof FinalizationRegistry > "u" ? (Yt = (e) => e, t) : (Ie = new FinalizationRegistry((e) => {
|
|
1029
|
+
yr(e.Dd);
|
|
1030
|
+
}), Yt = (e) => {
|
|
1031
|
+
var r = e.Dd;
|
|
1032
|
+
return r.Ld && Ie.register(e, { Dd: r }, e), e;
|
|
1033
|
+
}, pr = (e) => {
|
|
1034
|
+
Ie.unregister(e);
|
|
1035
|
+
}, Yt(t));
|
|
1036
|
+
}
|
|
1037
|
+
function Et() {
|
|
1038
|
+
}
|
|
1039
|
+
function vr(t) {
|
|
1040
|
+
if (t === void 0) return "_unknown";
|
|
1041
|
+
t = t.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
1042
|
+
var e = t.charCodeAt(0);
|
|
1043
|
+
return 48 <= e && 57 >= e ? `_${t}` : t;
|
|
1044
|
+
}
|
|
1045
|
+
function De(t, e) {
|
|
1046
|
+
return t = vr(t), { [t]: function() {
|
|
1047
|
+
return e.apply(this, arguments);
|
|
1048
|
+
} }[t];
|
|
1049
|
+
}
|
|
1050
|
+
function Ge(t, e, r) {
|
|
1051
|
+
if (t[e].Kd === void 0) {
|
|
1052
|
+
var o = t[e];
|
|
1053
|
+
t[e] = function() {
|
|
1054
|
+
return t[e].Kd.hasOwnProperty(arguments.length) || G(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${t[e].Kd})!`), t[e].Kd[arguments.length].apply(this, arguments);
|
|
1055
|
+
}, t[e].Kd = [], t[e].Kd[o.Yd] = o;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
function Le(t, e, r) {
|
|
1059
|
+
g.hasOwnProperty(t) ? ((r === void 0 || g[t].Kd !== void 0 && g[t].Kd[r] !== void 0) && G(`Cannot register public name '${t}' twice`), Ge(g, t, t), g.hasOwnProperty(r) && G(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), g[t].Kd[r] = e) : (g[t] = e, r !== void 0 && (g[t].sf = r));
|
|
1060
|
+
}
|
|
1061
|
+
function on(t, e, r, o, i, c, s, l) {
|
|
1062
|
+
this.name = t, this.constructor = e, this.ae = r, this.Td = o, this.Md = i, this.We = c, this.ge = s, this.Te = l, this.ef = [];
|
|
1063
|
+
}
|
|
1064
|
+
function He(t, e, r) {
|
|
1065
|
+
for (; e !== r; ) e.ge || G(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.ge(t), e = e.Md;
|
|
1066
|
+
return t;
|
|
1067
|
+
}
|
|
1068
|
+
function an(t, e) {
|
|
1069
|
+
return e === null ? (this.ue && G(`null is not a valid ${this.name}`), 0) : (e.Dd || G(`Cannot pass "${je(e)}" as a ${this.name}`), e.Dd.Hd || G(`Cannot pass deleted object as a pointer of type ${this.name}`), He(e.Dd.Hd, e.Dd.Jd.Gd, this.Gd));
|
|
1070
|
+
}
|
|
1071
|
+
function un(t, e) {
|
|
1072
|
+
if (e === null) {
|
|
1073
|
+
if (this.ue && G(`null is not a valid ${this.name}`), this.le) {
|
|
1074
|
+
var r = this.ve();
|
|
1075
|
+
return t !== null && t.push(this.Td, r), r;
|
|
1076
|
+
}
|
|
1077
|
+
return 0;
|
|
1078
|
+
}
|
|
1079
|
+
if (e.Dd || G(`Cannot pass "${je(e)}" as a ${this.name}`), e.Dd.Hd || G(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.ke && e.Dd.Jd.ke && G(`Cannot convert argument of type ${e.Dd.Pd ? e.Dd.Pd.name : e.Dd.Jd.name} to parameter type ${this.name}`), r = He(e.Dd.Hd, e.Dd.Jd.Gd, this.Gd), this.le) switch (e.Dd.Ld === void 0 && G("Passing raw pointer to smart pointer is illegal"), this.kf) {
|
|
1080
|
+
case 0:
|
|
1081
|
+
e.Dd.Pd === this ? r = e.Dd.Ld : G(`Cannot convert argument of type ${e.Dd.Pd ? e.Dd.Pd.name : e.Dd.Jd.name} to parameter type ${this.name}`);
|
|
1082
|
+
break;
|
|
1083
|
+
case 1:
|
|
1084
|
+
r = e.Dd.Ld;
|
|
1085
|
+
break;
|
|
1086
|
+
case 2:
|
|
1087
|
+
if (e.Dd.Pd === this) r = e.Dd.Ld;
|
|
1088
|
+
else {
|
|
1089
|
+
var o = e.clone();
|
|
1090
|
+
r = this.ff(r, et(function() {
|
|
1091
|
+
o.delete();
|
|
1092
|
+
})), t !== null && t.push(this.Td, r);
|
|
1093
|
+
}
|
|
1094
|
+
break;
|
|
1095
|
+
default:
|
|
1096
|
+
G("Unsupporting sharing policy");
|
|
1097
|
+
}
|
|
1098
|
+
return r;
|
|
1099
|
+
}
|
|
1100
|
+
function cn(t, e) {
|
|
1101
|
+
return e === null ? (this.ue && G(`null is not a valid ${this.name}`), 0) : (e.Dd || G(`Cannot pass "${je(e)}" as a ${this.name}`), e.Dd.Hd || G(`Cannot pass deleted object as a pointer of type ${this.name}`), e.Dd.Jd.ke && G(`Cannot convert argument of type ${e.Dd.Jd.name} to parameter type ${this.name}`), He(e.Dd.Hd, e.Dd.Jd.Gd, this.Gd));
|
|
1102
|
+
}
|
|
1103
|
+
function yt(t, e, r, o, i, c, s, l, h, b, _) {
|
|
1104
|
+
this.name = t, this.Gd = e, this.ue = r, this.ke = o, this.le = i, this.df = c, this.kf = s, this.Ee = l, this.ve = h, this.ff = b, this.Td = _, i || e.Md !== void 0 ? this.toWireType = un : (this.toWireType = o ? an : cn, this.Od = null);
|
|
1105
|
+
}
|
|
1106
|
+
function br(t, e, r) {
|
|
1107
|
+
g.hasOwnProperty(t) || ce("Replacing nonexistant public symbol"), g[t].Kd !== void 0 && r !== void 0 ? g[t].Kd[r] = e : (g[t] = e, g[t].Yd = r);
|
|
1108
|
+
}
|
|
1109
|
+
var sn = (t, e) => {
|
|
1110
|
+
var r = [];
|
|
1111
|
+
return function() {
|
|
1112
|
+
if (r.length = 0, Object.assign(r, arguments), t.includes("j")) {
|
|
1113
|
+
var o = g["dynCall_" + t];
|
|
1114
|
+
o = r.length ? o.apply(null, [e].concat(r)) : o.call(null, e);
|
|
1115
|
+
} else o = K.get(e).apply(null, r);
|
|
1116
|
+
return o;
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
function q(t, e) {
|
|
1120
|
+
t = $(t);
|
|
1121
|
+
var r = t.includes("j") ? sn(t, e) : K.get(e);
|
|
1122
|
+
return typeof r != "function" && G(`unknown function pointer with signature ${t}: ${e}`), r;
|
|
1123
|
+
}
|
|
1124
|
+
var _r = void 0;
|
|
1125
|
+
function Pr(t) {
|
|
1126
|
+
t = Wr(t);
|
|
1127
|
+
var e = $(t);
|
|
1128
|
+
return bt(t), e;
|
|
1129
|
+
}
|
|
1130
|
+
function zt(t, e) {
|
|
1131
|
+
function r(c) {
|
|
1132
|
+
i[c] || kt[c] || (ue[c] ? ue[c].forEach(r) : (o.push(c), i[c] = !0));
|
|
1133
|
+
}
|
|
1134
|
+
var o = [], i = {};
|
|
1135
|
+
throw e.forEach(r), new _r(`${t}: ` + o.map(Pr).join([", "]));
|
|
1136
|
+
}
|
|
1137
|
+
function fe(t, e, r, o, i) {
|
|
1138
|
+
var c = e.length;
|
|
1139
|
+
2 > c && G("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1140
|
+
var s = e[1] !== null && r !== null, l = !1;
|
|
1141
|
+
for (r = 1; r < e.length; ++r) if (e[r] !== null && e[r].Od === void 0) {
|
|
1142
|
+
l = !0;
|
|
1143
|
+
break;
|
|
1144
|
+
}
|
|
1145
|
+
var h = e[0].name !== "void", b = c - 2, _ = Array(b), A = [], C = [];
|
|
1146
|
+
return function() {
|
|
1147
|
+
if (arguments.length !== b && G(`function ${t} called with ${arguments.length} arguments, expected ${b} args!`), C.length = 0, A.length = s ? 2 : 1, A[0] = i, s) {
|
|
1148
|
+
var m = e[1].toWireType(C, this);
|
|
1149
|
+
A[1] = m;
|
|
1150
|
+
}
|
|
1151
|
+
for (var S = 0; S < b; ++S) _[S] = e[S + 2].toWireType(C, arguments[S]), A.push(_[S]);
|
|
1152
|
+
if (S = o.apply(null, A), l) Me(C);
|
|
1153
|
+
else for (var k = s ? 1 : 2; k < e.length; k++) {
|
|
1154
|
+
var U = k === 1 ? m : _[k - 2];
|
|
1155
|
+
e[k].Od !== null && e[k].Od(U);
|
|
1156
|
+
}
|
|
1157
|
+
return m = h ? e[0].fromWireType(S) : void 0, m;
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
function de(t, e) {
|
|
1161
|
+
for (var r = [], o = 0; o < t; o++) r.push(O[e + 4 * o >> 2]);
|
|
1162
|
+
return r;
|
|
1163
|
+
}
|
|
1164
|
+
function wr() {
|
|
1165
|
+
this.Sd = [void 0], this.Ce = [];
|
|
1166
|
+
}
|
|
1167
|
+
var Z = new wr();
|
|
1168
|
+
function Oe(t) {
|
|
1169
|
+
t >= Z.be && --Z.get(t).Fe === 0 && Z.Je(t);
|
|
1170
|
+
}
|
|
1171
|
+
var tt = (t) => (t || G("Cannot use deleted val. handle = " + t), Z.get(t).value), et = (t) => {
|
|
1172
|
+
switch (t) {
|
|
1173
|
+
case void 0:
|
|
1174
|
+
return 1;
|
|
1175
|
+
case null:
|
|
1176
|
+
return 2;
|
|
1177
|
+
case !0:
|
|
1178
|
+
return 3;
|
|
1179
|
+
case !1:
|
|
1180
|
+
return 4;
|
|
1181
|
+
default:
|
|
1182
|
+
return Z.Ie({ Fe: 1, value: t });
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
function ln(t, e, r) {
|
|
1186
|
+
switch (e) {
|
|
1187
|
+
case 0:
|
|
1188
|
+
return function(o) {
|
|
1189
|
+
return this.fromWireType((r ? ht : I)[o]);
|
|
1190
|
+
};
|
|
1191
|
+
case 1:
|
|
1192
|
+
return function(o) {
|
|
1193
|
+
return this.fromWireType((r ? At : Rt)[o >> 1]);
|
|
1194
|
+
};
|
|
1195
|
+
case 2:
|
|
1196
|
+
return function(o) {
|
|
1197
|
+
return this.fromWireType((r ? E : O)[o >> 2]);
|
|
1198
|
+
};
|
|
1199
|
+
default:
|
|
1200
|
+
throw new TypeError("Unknown integer type: " + t);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
function qt(t, e) {
|
|
1204
|
+
var r = kt[t];
|
|
1205
|
+
return r === void 0 && G(e + " has unknown type " + Pr(t)), r;
|
|
1206
|
+
}
|
|
1207
|
+
function je(t) {
|
|
1208
|
+
if (t === null) return "null";
|
|
1209
|
+
var e = typeof t;
|
|
1210
|
+
return e === "object" || e === "array" || e === "function" ? t.toString() : "" + t;
|
|
1211
|
+
}
|
|
1212
|
+
function fn(t, e) {
|
|
1213
|
+
switch (e) {
|
|
1214
|
+
case 2:
|
|
1215
|
+
return function(r) {
|
|
1216
|
+
return this.fromWireType(F[r >> 2]);
|
|
1217
|
+
};
|
|
1218
|
+
case 3:
|
|
1219
|
+
return function(r) {
|
|
1220
|
+
return this.fromWireType(rr[r >> 3]);
|
|
1221
|
+
};
|
|
1222
|
+
default:
|
|
1223
|
+
throw new TypeError("Unknown float type: " + t);
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
function dn(t, e, r) {
|
|
1227
|
+
switch (e) {
|
|
1228
|
+
case 0:
|
|
1229
|
+
return r ? function(o) {
|
|
1230
|
+
return ht[o];
|
|
1231
|
+
} : function(o) {
|
|
1232
|
+
return I[o];
|
|
1233
|
+
};
|
|
1234
|
+
case 1:
|
|
1235
|
+
return r ? function(o) {
|
|
1236
|
+
return At[o >> 1];
|
|
1237
|
+
} : function(o) {
|
|
1238
|
+
return Rt[o >> 1];
|
|
1239
|
+
};
|
|
1240
|
+
case 2:
|
|
1241
|
+
return r ? function(o) {
|
|
1242
|
+
return E[o >> 2];
|
|
1243
|
+
} : function(o) {
|
|
1244
|
+
return O[o >> 2];
|
|
1245
|
+
};
|
|
1246
|
+
default:
|
|
1247
|
+
throw new TypeError("Unknown integer type: " + t);
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
var ut = (t, e, r, o) => {
|
|
1251
|
+
if (!(0 < o)) return 0;
|
|
1252
|
+
var i = r;
|
|
1253
|
+
o = r + o - 1;
|
|
1254
|
+
for (var c = 0; c < t.length; ++c) {
|
|
1255
|
+
var s = t.charCodeAt(c);
|
|
1256
|
+
if (55296 <= s && 57343 >= s) {
|
|
1257
|
+
var l = t.charCodeAt(++c);
|
|
1258
|
+
s = 65536 + ((s & 1023) << 10) | l & 1023;
|
|
1259
|
+
}
|
|
1260
|
+
if (127 >= s) {
|
|
1261
|
+
if (r >= o) break;
|
|
1262
|
+
e[r++] = s;
|
|
1263
|
+
} else {
|
|
1264
|
+
if (2047 >= s) {
|
|
1265
|
+
if (r + 1 >= o) break;
|
|
1266
|
+
e[r++] = 192 | s >> 6;
|
|
1267
|
+
} else {
|
|
1268
|
+
if (65535 >= s) {
|
|
1269
|
+
if (r + 2 >= o) break;
|
|
1270
|
+
e[r++] = 224 | s >> 12;
|
|
1271
|
+
} else {
|
|
1272
|
+
if (r + 3 >= o) break;
|
|
1273
|
+
e[r++] = 240 | s >> 18, e[r++] = 128 | s >> 12 & 63;
|
|
1274
|
+
}
|
|
1275
|
+
e[r++] = 128 | s >> 6 & 63;
|
|
1276
|
+
}
|
|
1277
|
+
e[r++] = 128 | s & 63;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
return e[r] = 0, r - i;
|
|
1281
|
+
}, ct = (t) => {
|
|
1282
|
+
for (var e = 0, r = 0; r < t.length; ++r) {
|
|
1283
|
+
var o = t.charCodeAt(r);
|
|
1284
|
+
127 >= o ? e++ : 2047 >= o ? e += 2 : 55296 <= o && 57343 >= o ? (e += 4, ++r) : e += 3;
|
|
1285
|
+
}
|
|
1286
|
+
return e;
|
|
1287
|
+
}, Ar = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, hn = (t, e) => {
|
|
1288
|
+
for (var r = t >> 1, o = r + e / 2; !(r >= o) && Rt[r]; ) ++r;
|
|
1289
|
+
if (r <<= 1, 32 < r - t && Ar) return Ar.decode(I.subarray(t, r));
|
|
1290
|
+
for (r = "", o = 0; !(o >= e / 2); ++o) {
|
|
1291
|
+
var i = At[t + 2 * o >> 1];
|
|
1292
|
+
if (i == 0) break;
|
|
1293
|
+
r += String.fromCharCode(i);
|
|
1294
|
+
}
|
|
1295
|
+
return r;
|
|
1296
|
+
}, pn = (t, e, r) => {
|
|
1297
|
+
if (r === void 0 && (r = 2147483647), 2 > r) return 0;
|
|
1298
|
+
r -= 2;
|
|
1299
|
+
var o = e;
|
|
1300
|
+
r = r < 2 * t.length ? r / 2 : t.length;
|
|
1301
|
+
for (var i = 0; i < r; ++i) At[e >> 1] = t.charCodeAt(i), e += 2;
|
|
1302
|
+
return At[e >> 1] = 0, e - o;
|
|
1303
|
+
}, yn = (t) => 2 * t.length, mn = (t, e) => {
|
|
1304
|
+
for (var r = 0, o = ""; !(r >= e / 4); ) {
|
|
1305
|
+
var i = E[t + 4 * r >> 2];
|
|
1306
|
+
if (i == 0) break;
|
|
1307
|
+
++r, 65536 <= i ? (i -= 65536, o += String.fromCharCode(55296 | i >> 10, 56320 | i & 1023)) : o += String.fromCharCode(i);
|
|
1308
|
+
}
|
|
1309
|
+
return o;
|
|
1310
|
+
}, gn = (t, e, r) => {
|
|
1311
|
+
if (r === void 0 && (r = 2147483647), 4 > r) return 0;
|
|
1312
|
+
var o = e;
|
|
1313
|
+
r = o + r - 4;
|
|
1314
|
+
for (var i = 0; i < t.length; ++i) {
|
|
1315
|
+
var c = t.charCodeAt(i);
|
|
1316
|
+
if (55296 <= c && 57343 >= c) {
|
|
1317
|
+
var s = t.charCodeAt(++i);
|
|
1318
|
+
c = 65536 + ((c & 1023) << 10) | s & 1023;
|
|
1319
|
+
}
|
|
1320
|
+
if (E[e >> 2] = c, e += 4, e + 4 > r) break;
|
|
1321
|
+
}
|
|
1322
|
+
return E[e >> 2] = 0, e - o;
|
|
1323
|
+
}, vn = (t) => {
|
|
1324
|
+
for (var e = 0, r = 0; r < t.length; ++r) {
|
|
1325
|
+
var o = t.charCodeAt(r);
|
|
1326
|
+
55296 <= o && 57343 >= o && ++r, e += 4;
|
|
1327
|
+
}
|
|
1328
|
+
return e;
|
|
1329
|
+
}, bn = {};
|
|
1330
|
+
function he(t) {
|
|
1331
|
+
var e = bn[t];
|
|
1332
|
+
return e === void 0 ? $(t) : e;
|
|
1333
|
+
}
|
|
1334
|
+
var pe = [];
|
|
1335
|
+
function Er() {
|
|
1336
|
+
function t(e) {
|
|
1337
|
+
e.$$$embind_global$$$ = e;
|
|
1338
|
+
var r = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e;
|
|
1339
|
+
return r || delete e.$$$embind_global$$$, r;
|
|
1340
|
+
}
|
|
1341
|
+
if (typeof globalThis == "object") return globalThis;
|
|
1342
|
+
if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && t(global) ? $$$embind_global$$$ = global : typeof self == "object" && t(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object")) return $$$embind_global$$$;
|
|
1343
|
+
throw Error("unable to get global object.");
|
|
1344
|
+
}
|
|
1345
|
+
function _n(t) {
|
|
1346
|
+
var e = pe.length;
|
|
1347
|
+
return pe.push(t), e;
|
|
1348
|
+
}
|
|
1349
|
+
function Pn(t, e) {
|
|
1350
|
+
for (var r = Array(t), o = 0; o < t; ++o) r[o] = qt(O[e + 4 * o >> 2], "parameter " + o);
|
|
1351
|
+
return r;
|
|
1352
|
+
}
|
|
1353
|
+
var Cr = [];
|
|
1354
|
+
function wn(t) {
|
|
1355
|
+
var e = Array(t + 1);
|
|
1356
|
+
return function(r, o, i) {
|
|
1357
|
+
e[0] = r;
|
|
1358
|
+
for (var c = 0; c < t; ++c) {
|
|
1359
|
+
var s = qt(O[o + 4 * c >> 2], "parameter " + c);
|
|
1360
|
+
e[c + 1] = s.readValueFromPointer(i), i += s.argPackAdvance;
|
|
1361
|
+
}
|
|
1362
|
+
return r = new (r.bind.apply(r, e))(), et(r);
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
var Tr = {};
|
|
1366
|
+
function An(t) {
|
|
1367
|
+
var e = t.getExtension("ANGLE_instanced_arrays");
|
|
1368
|
+
e && (t.vertexAttribDivisor = function(r, o) {
|
|
1369
|
+
e.vertexAttribDivisorANGLE(r, o);
|
|
1370
|
+
}, t.drawArraysInstanced = function(r, o, i, c) {
|
|
1371
|
+
e.drawArraysInstancedANGLE(r, o, i, c);
|
|
1372
|
+
}, t.drawElementsInstanced = function(r, o, i, c, s) {
|
|
1373
|
+
e.drawElementsInstancedANGLE(r, o, i, c, s);
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
1376
|
+
function En(t) {
|
|
1377
|
+
var e = t.getExtension("OES_vertex_array_object");
|
|
1378
|
+
e && (t.createVertexArray = function() {
|
|
1379
|
+
return e.createVertexArrayOES();
|
|
1380
|
+
}, t.deleteVertexArray = function(r) {
|
|
1381
|
+
e.deleteVertexArrayOES(r);
|
|
1382
|
+
}, t.bindVertexArray = function(r) {
|
|
1383
|
+
e.bindVertexArrayOES(r);
|
|
1384
|
+
}, t.isVertexArray = function(r) {
|
|
1385
|
+
return e.isVertexArrayOES(r);
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
function Cn(t) {
|
|
1389
|
+
var e = t.getExtension("WEBGL_draw_buffers");
|
|
1390
|
+
e && (t.drawBuffers = function(r, o) {
|
|
1391
|
+
e.drawBuffersWEBGL(r, o);
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
var Sr = 1, ye = [], st = [], me = [], Jt = [], rt = [], lt = [], ge = [], mt = [], xt = [], Mt = [], Fr = {}, kr = {}, xr = 4;
|
|
1395
|
+
function j(t) {
|
|
1396
|
+
ve || (ve = t);
|
|
1397
|
+
}
|
|
1398
|
+
function Gt(t) {
|
|
1399
|
+
for (var e = Sr++, r = t.length; r < e; r++) t[r] = null;
|
|
1400
|
+
return e;
|
|
1401
|
+
}
|
|
1402
|
+
function Tn(t, e) {
|
|
1403
|
+
t.be || (t.be = t.getContext, t.getContext = function(o, i) {
|
|
1404
|
+
return i = t.be(o, i), o == "webgl" == i instanceof WebGLRenderingContext ? i : null;
|
|
1405
|
+
});
|
|
1406
|
+
var r = 1 < e.majorVersion ? t.getContext("webgl2", e) : t.getContext("webgl", e);
|
|
1407
|
+
return r ? Sn(r, e) : 0;
|
|
1408
|
+
}
|
|
1409
|
+
function Sn(t, e) {
|
|
1410
|
+
var r = Gt(mt), o = { handle: r, attributes: e, version: e.majorVersion, Qd: t };
|
|
1411
|
+
return t.canvas && (t.canvas.Ke = o), mt[r] = o, (typeof e.Ue > "u" || e.Ue) && Fn(o), r;
|
|
1412
|
+
}
|
|
1413
|
+
function Mr(t) {
|
|
1414
|
+
return R = mt[t], g.qf = p = R && R.Qd, !(t && !p);
|
|
1415
|
+
}
|
|
1416
|
+
function Fn(t) {
|
|
1417
|
+
if (!t.bf) {
|
|
1418
|
+
t.bf = !0;
|
|
1419
|
+
var e = t.Qd;
|
|
1420
|
+
An(e), En(e), Cn(e), e.ze = e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"), e.De = e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"), 2 <= t.version && (e.Ae = e.getExtension("EXT_disjoint_timer_query_webgl2")), (2 > t.version || !e.Ae) && (e.Ae = e.getExtension("EXT_disjoint_timer_query")), e.rf = e.getExtension("WEBGL_multi_draw"), (e.getSupportedExtensions() || []).forEach(function(r) {
|
|
1421
|
+
r.includes("lose_context") || r.includes("debug") || e.getExtension(r);
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
var R, ve, Ue = {}, Rr = () => {
|
|
1426
|
+
if (!We) {
|
|
1427
|
+
var t = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _: Te || "./this.program" }, e;
|
|
1428
|
+
for (e in Ue) Ue[e] === void 0 ? delete t[e] : t[e] = Ue[e];
|
|
1429
|
+
var r = [];
|
|
1430
|
+
for (e in t) r.push(`${e}=${t[e]}`);
|
|
1431
|
+
We = r;
|
|
1432
|
+
}
|
|
1433
|
+
return We;
|
|
1434
|
+
}, We, kn = [null, [], []];
|
|
1435
|
+
function Ir(t) {
|
|
1436
|
+
p.bindVertexArray(ge[t]);
|
|
1437
|
+
}
|
|
1438
|
+
function Br(t, e) {
|
|
1439
|
+
for (var r = 0; r < t; r++) {
|
|
1440
|
+
var o = E[e + 4 * r >> 2];
|
|
1441
|
+
p.deleteVertexArray(ge[o]), ge[o] = null;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
var be = [];
|
|
1445
|
+
function Dr(t, e, r, o) {
|
|
1446
|
+
p.drawElements(t, e, r, o);
|
|
1447
|
+
}
|
|
1448
|
+
function Lt(t, e, r, o) {
|
|
1449
|
+
for (var i = 0; i < t; i++) {
|
|
1450
|
+
var c = p[r](), s = c && Gt(o);
|
|
1451
|
+
c ? (c.name = s, o[s] = c) : j(1282), E[e + 4 * i >> 2] = s;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
function Gr(t, e) {
|
|
1455
|
+
Lt(t, e, "createVertexArray", ge);
|
|
1456
|
+
}
|
|
1457
|
+
function Lr(t, e, r) {
|
|
1458
|
+
if (e) {
|
|
1459
|
+
var o = void 0;
|
|
1460
|
+
switch (t) {
|
|
1461
|
+
case 36346:
|
|
1462
|
+
o = 1;
|
|
1463
|
+
break;
|
|
1464
|
+
case 36344:
|
|
1465
|
+
r != 0 && r != 1 && j(1280);
|
|
1466
|
+
return;
|
|
1467
|
+
case 34814:
|
|
1468
|
+
case 36345:
|
|
1469
|
+
o = 0;
|
|
1470
|
+
break;
|
|
1471
|
+
case 34466:
|
|
1472
|
+
var i = p.getParameter(34467);
|
|
1473
|
+
o = i ? i.length : 0;
|
|
1474
|
+
break;
|
|
1475
|
+
case 33309:
|
|
1476
|
+
if (2 > R.version) {
|
|
1477
|
+
j(1282);
|
|
1478
|
+
return;
|
|
1479
|
+
}
|
|
1480
|
+
o = 2 * (p.getSupportedExtensions() || []).length;
|
|
1481
|
+
break;
|
|
1482
|
+
case 33307:
|
|
1483
|
+
case 33308:
|
|
1484
|
+
if (2 > R.version) {
|
|
1485
|
+
j(1280);
|
|
1486
|
+
return;
|
|
1487
|
+
}
|
|
1488
|
+
o = t == 33307 ? 3 : 0;
|
|
1489
|
+
}
|
|
1490
|
+
if (o === void 0) switch (i = p.getParameter(t), typeof i) {
|
|
1491
|
+
case "number":
|
|
1492
|
+
o = i;
|
|
1493
|
+
break;
|
|
1494
|
+
case "boolean":
|
|
1495
|
+
o = i ? 1 : 0;
|
|
1496
|
+
break;
|
|
1497
|
+
case "string":
|
|
1498
|
+
j(1280);
|
|
1499
|
+
return;
|
|
1500
|
+
case "object":
|
|
1501
|
+
if (i === null) switch (t) {
|
|
1502
|
+
case 34964:
|
|
1503
|
+
case 35725:
|
|
1504
|
+
case 34965:
|
|
1505
|
+
case 36006:
|
|
1506
|
+
case 36007:
|
|
1507
|
+
case 32873:
|
|
1508
|
+
case 34229:
|
|
1509
|
+
case 36662:
|
|
1510
|
+
case 36663:
|
|
1511
|
+
case 35053:
|
|
1512
|
+
case 35055:
|
|
1513
|
+
case 36010:
|
|
1514
|
+
case 35097:
|
|
1515
|
+
case 35869:
|
|
1516
|
+
case 32874:
|
|
1517
|
+
case 36389:
|
|
1518
|
+
case 35983:
|
|
1519
|
+
case 35368:
|
|
1520
|
+
case 34068:
|
|
1521
|
+
o = 0;
|
|
1522
|
+
break;
|
|
1523
|
+
default:
|
|
1524
|
+
j(1280);
|
|
1525
|
+
return;
|
|
1526
|
+
}
|
|
1527
|
+
else {
|
|
1528
|
+
if (i instanceof Float32Array || i instanceof Uint32Array || i instanceof Int32Array || i instanceof Array) {
|
|
1529
|
+
for (t = 0; t < i.length; ++t) switch (r) {
|
|
1530
|
+
case 0:
|
|
1531
|
+
E[e + 4 * t >> 2] = i[t];
|
|
1532
|
+
break;
|
|
1533
|
+
case 2:
|
|
1534
|
+
F[e + 4 * t >> 2] = i[t];
|
|
1535
|
+
break;
|
|
1536
|
+
case 4:
|
|
1537
|
+
ht[e + t >> 0] = i[t] ? 1 : 0;
|
|
1538
|
+
}
|
|
1539
|
+
return;
|
|
1540
|
+
}
|
|
1541
|
+
try {
|
|
1542
|
+
o = i.name | 0;
|
|
1543
|
+
} catch (c) {
|
|
1544
|
+
j(1280), wt("GL_INVALID_ENUM in glGet" + r + "v: Unknown object returned from WebGL getParameter(" + t + ")! (error: " + c + ")");
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
break;
|
|
1549
|
+
default:
|
|
1550
|
+
j(1280), wt("GL_INVALID_ENUM in glGet" + r + "v: Native code calling glGet" + r + "v(" + t + ") and it returns " + i + " of type " + typeof i + "!");
|
|
1551
|
+
return;
|
|
1552
|
+
}
|
|
1553
|
+
switch (r) {
|
|
1554
|
+
case 1:
|
|
1555
|
+
r = o, O[e >> 2] = r, O[e + 4 >> 2] = (r - O[e >> 2]) / 4294967296;
|
|
1556
|
+
break;
|
|
1557
|
+
case 0:
|
|
1558
|
+
E[e >> 2] = o;
|
|
1559
|
+
break;
|
|
1560
|
+
case 2:
|
|
1561
|
+
F[e >> 2] = o;
|
|
1562
|
+
break;
|
|
1563
|
+
case 4:
|
|
1564
|
+
ht[e >> 0] = o ? 1 : 0;
|
|
1565
|
+
}
|
|
1566
|
+
} else j(1281);
|
|
1567
|
+
}
|
|
1568
|
+
var Kt = (t) => {
|
|
1569
|
+
var e = ct(t) + 1, r = Ae(e);
|
|
1570
|
+
return r && ut(t, I, r, e), r;
|
|
1571
|
+
};
|
|
1572
|
+
function Hr(t) {
|
|
1573
|
+
return t.slice(-1) == "]" && t.lastIndexOf("[");
|
|
1574
|
+
}
|
|
1575
|
+
function _e(t) {
|
|
1576
|
+
return t -= 5120, t == 0 ? ht : t == 1 ? I : t == 2 ? At : t == 4 ? E : t == 6 ? F : t == 5 || t == 28922 || t == 28520 || t == 30779 || t == 30782 ? O : Rt;
|
|
1577
|
+
}
|
|
1578
|
+
function $e(t, e, r, o, i) {
|
|
1579
|
+
t = _e(t);
|
|
1580
|
+
var c = 31 - Math.clz32(t.BYTES_PER_ELEMENT), s = xr;
|
|
1581
|
+
return t.subarray(i >> c, i + o * (r * ({ 5: 3, 6: 4, 8: 2, 29502: 3, 29504: 4, 26917: 2, 26918: 2, 29846: 3, 29847: 4 }[e - 6402] || 1) * (1 << c) + s - 1 & -s) >> c);
|
|
1582
|
+
}
|
|
1583
|
+
function L(t) {
|
|
1584
|
+
var e = p.Re;
|
|
1585
|
+
if (e) {
|
|
1586
|
+
var r = e.fe[t];
|
|
1587
|
+
return typeof r == "number" && (e.fe[t] = r = p.getUniformLocation(e, e.Ge[t] + (0 < r ? "[" + r + "]" : ""))), r;
|
|
1588
|
+
}
|
|
1589
|
+
j(1282);
|
|
1590
|
+
}
|
|
1591
|
+
var Ct = [], Xt = [], Pe = (t) => t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0), Or = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], jr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1592
|
+
function xn(t) {
|
|
1593
|
+
var e = Array(ct(t) + 1);
|
|
1594
|
+
return ut(t, e, 0, e.length), e;
|
|
1595
|
+
}
|
|
1596
|
+
var Mn = (t, e, r, o) => {
|
|
1597
|
+
function i(m, S, k) {
|
|
1598
|
+
for (m = typeof m == "number" ? m.toString() : m || ""; m.length < S; ) m = k[0] + m;
|
|
1599
|
+
return m;
|
|
1600
|
+
}
|
|
1601
|
+
function c(m, S) {
|
|
1602
|
+
return i(m, S, "0");
|
|
1603
|
+
}
|
|
1604
|
+
function s(m, S) {
|
|
1605
|
+
function k(J) {
|
|
1606
|
+
return 0 > J ? -1 : 0 < J ? 1 : 0;
|
|
1607
|
+
}
|
|
1608
|
+
var U;
|
|
1609
|
+
return (U = k(m.getFullYear() - S.getFullYear())) === 0 && (U = k(m.getMonth() - S.getMonth())) === 0 && (U = k(m.getDate() - S.getDate())), U;
|
|
1610
|
+
}
|
|
1611
|
+
function l(m) {
|
|
1612
|
+
switch (m.getDay()) {
|
|
1613
|
+
case 0:
|
|
1614
|
+
return new Date(m.getFullYear() - 1, 11, 29);
|
|
1615
|
+
case 1:
|
|
1616
|
+
return m;
|
|
1617
|
+
case 2:
|
|
1618
|
+
return new Date(m.getFullYear(), 0, 3);
|
|
1619
|
+
case 3:
|
|
1620
|
+
return new Date(m.getFullYear(), 0, 2);
|
|
1621
|
+
case 4:
|
|
1622
|
+
return new Date(m.getFullYear(), 0, 1);
|
|
1623
|
+
case 5:
|
|
1624
|
+
return new Date(m.getFullYear() - 1, 11, 31);
|
|
1625
|
+
case 6:
|
|
1626
|
+
return new Date(m.getFullYear() - 1, 11, 30);
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
function h(m) {
|
|
1630
|
+
var S = m.Vd;
|
|
1631
|
+
for (m = new Date(new Date(m.Wd + 1900, 0, 1).getTime()); 0 < S; ) {
|
|
1632
|
+
var k = m.getMonth(), U = (Pe(m.getFullYear()) ? Or : jr)[k];
|
|
1633
|
+
if (S > U - m.getDate()) S -= U - m.getDate() + 1, m.setDate(1), 11 > k ? m.setMonth(k + 1) : (m.setMonth(0), m.setFullYear(m.getFullYear() + 1));
|
|
1634
|
+
else {
|
|
1635
|
+
m.setDate(m.getDate() + S);
|
|
1636
|
+
break;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
return k = new Date(m.getFullYear() + 1, 0, 4), S = l(new Date(m.getFullYear(), 0, 4)), k = l(k), 0 >= s(S, m) ? 0 >= s(k, m) ? m.getFullYear() + 1 : m.getFullYear() : m.getFullYear() - 1;
|
|
1640
|
+
}
|
|
1641
|
+
var b = E[o + 40 >> 2];
|
|
1642
|
+
o = { nf: E[o >> 2], mf: E[o + 4 >> 2], pe: E[o + 8 >> 2], we: E[o + 12 >> 2], qe: E[o + 16 >> 2], Wd: E[o + 20 >> 2], Rd: E[o + 24 >> 2], Vd: E[o + 28 >> 2], uf: E[o + 32 >> 2], lf: E[o + 36 >> 2], pf: b && b ? Ft(I, b) : "" }, r = r ? Ft(I, r) : "", b = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
1643
|
+
for (var _ in b) r = r.replace(new RegExp(_, "g"), b[_]);
|
|
1644
|
+
var A = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), C = "January February March April May June July August September October November December".split(" ");
|
|
1645
|
+
b = { "%a": (m) => A[m.Rd].substring(0, 3), "%A": (m) => A[m.Rd], "%b": (m) => C[m.qe].substring(0, 3), "%B": (m) => C[m.qe], "%C": (m) => c((m.Wd + 1900) / 100 | 0, 2), "%d": (m) => c(m.we, 2), "%e": (m) => i(m.we, 2, " "), "%g": (m) => h(m).toString().substring(2), "%G": (m) => h(m), "%H": (m) => c(m.pe, 2), "%I": (m) => (m = m.pe, m == 0 ? m = 12 : 12 < m && (m -= 12), c(m, 2)), "%j": (m) => {
|
|
1646
|
+
for (var S = 0, k = 0; k <= m.qe - 1; S += (Pe(m.Wd + 1900) ? Or : jr)[k++]) ;
|
|
1647
|
+
return c(m.we + S, 3);
|
|
1648
|
+
}, "%m": (m) => c(m.qe + 1, 2), "%M": (m) => c(m.mf, 2), "%n": () => `
|
|
1649
|
+
`, "%p": (m) => 0 <= m.pe && 12 > m.pe ? "AM" : "PM", "%S": (m) => c(m.nf, 2), "%t": () => " ", "%u": (m) => m.Rd || 7, "%U": (m) => c(Math.floor((m.Vd + 7 - m.Rd) / 7), 2), "%V": (m) => {
|
|
1650
|
+
var S = Math.floor((m.Vd + 7 - (m.Rd + 6) % 7) / 7);
|
|
1651
|
+
if (2 >= (m.Rd + 371 - m.Vd - 2) % 7 && S++, S) S == 53 && (k = (m.Rd + 371 - m.Vd) % 7, k == 4 || k == 3 && Pe(m.Wd) || (S = 1));
|
|
1652
|
+
else {
|
|
1653
|
+
S = 52;
|
|
1654
|
+
var k = (m.Rd + 7 - m.Vd - 1) % 7;
|
|
1655
|
+
(k == 4 || k == 5 && Pe(m.Wd % 400 - 1)) && S++;
|
|
1656
|
+
}
|
|
1657
|
+
return c(S, 2);
|
|
1658
|
+
}, "%w": (m) => m.Rd, "%W": (m) => c(Math.floor((m.Vd + 7 - (m.Rd + 6) % 7) / 7), 2), "%y": (m) => (m.Wd + 1900).toString().substring(2), "%Y": (m) => m.Wd + 1900, "%z": (m) => {
|
|
1659
|
+
m = m.lf;
|
|
1660
|
+
var S = 0 <= m;
|
|
1661
|
+
return m = Math.abs(m) / 60, (S ? "+" : "-") + ("0000" + (m / 60 * 100 + m % 60)).slice(-4);
|
|
1662
|
+
}, "%Z": (m) => m.pf, "%%": () => "%" }, r = r.replace(/%%/g, "\0\0");
|
|
1663
|
+
for (_ in b) r.includes(_) && (r = r.replace(new RegExp(_, "g"), b[_](o)));
|
|
1664
|
+
return r = r.replace(/\0\0/g, "%"), _ = xn(r), _.length > e ? 0 : (ht.set(_, t), _.length - 1);
|
|
1665
|
+
};
|
|
1666
|
+
dr = g.InternalError = class extends Error {
|
|
1667
|
+
constructor(t) {
|
|
1668
|
+
super(t), this.name = "InternalError";
|
|
1669
|
+
}
|
|
1670
|
+
};
|
|
1671
|
+
for (var Ur = Array(256), we = 0; 256 > we; ++we) Ur[we] = String.fromCharCode(we);
|
|
1672
|
+
hr = Ur, Dt = g.BindingError = class extends Error {
|
|
1673
|
+
constructor(t) {
|
|
1674
|
+
super(t), this.name = "BindingError";
|
|
1675
|
+
}
|
|
1676
|
+
}, Et.prototype.isAliasOf = function(t) {
|
|
1677
|
+
if (!(this instanceof Et && t instanceof Et)) return !1;
|
|
1678
|
+
var e = this.Dd.Jd.Gd, r = this.Dd.Hd, o = t.Dd.Jd.Gd;
|
|
1679
|
+
for (t = t.Dd.Hd; e.Md; ) r = e.ge(r), e = e.Md;
|
|
1680
|
+
for (; o.Md; ) t = o.ge(t), o = o.Md;
|
|
1681
|
+
return e === o && r === t;
|
|
1682
|
+
}, Et.prototype.clone = function() {
|
|
1683
|
+
if (this.Dd.Hd || Re(this), this.Dd.ee) return this.Dd.count.value += 1, this;
|
|
1684
|
+
var t = Yt, e = Object, r = e.create, o = Object.getPrototypeOf(this), i = this.Dd;
|
|
1685
|
+
return t = t(r.call(e, o, { Dd: { value: { count: i.count, $d: i.$d, ee: i.ee, Hd: i.Hd, Jd: i.Jd, Ld: i.Ld, Pd: i.Pd } } })), t.Dd.count.value += 1, t.Dd.$d = !1, t;
|
|
1686
|
+
}, Et.prototype.delete = function() {
|
|
1687
|
+
this.Dd.Hd || Re(this), this.Dd.$d && !this.Dd.ee && G("Object already scheduled for deletion"), pr(this), yr(this.Dd), this.Dd.ee || (this.Dd.Ld = void 0, this.Dd.Hd = void 0);
|
|
1688
|
+
}, Et.prototype.isDeleted = function() {
|
|
1689
|
+
return !this.Dd.Hd;
|
|
1690
|
+
}, Et.prototype.deleteLater = function() {
|
|
1691
|
+
return this.Dd.Hd || Re(this), this.Dd.$d && !this.Dd.ee && G("Object already scheduled for deletion"), $t.push(this), $t.length === 1 && Vt && Vt(Be), this.Dd.$d = !0, this;
|
|
1692
|
+
}, g.getInheritedInstanceCount = function() {
|
|
1693
|
+
return Object.keys(Nt).length;
|
|
1694
|
+
}, g.getLiveInheritedInstances = function() {
|
|
1695
|
+
var t = [], e;
|
|
1696
|
+
for (e in Nt) Nt.hasOwnProperty(e) && t.push(Nt[e]);
|
|
1697
|
+
return t;
|
|
1698
|
+
}, g.flushPendingDeletes = Be, g.setDelayFunction = function(t) {
|
|
1699
|
+
Vt = t, $t.length && Vt && Vt(Be);
|
|
1700
|
+
}, yt.prototype.Xe = function(t) {
|
|
1701
|
+
return this.Ee && (t = this.Ee(t)), t;
|
|
1702
|
+
}, yt.prototype.ye = function(t) {
|
|
1703
|
+
this.Td && this.Td(t);
|
|
1704
|
+
}, yt.prototype.argPackAdvance = 8, yt.prototype.readValueFromPointer = Wt, yt.prototype.deleteObject = function(t) {
|
|
1705
|
+
t !== null && t.delete();
|
|
1706
|
+
}, yt.prototype.fromWireType = function(t) {
|
|
1707
|
+
function e() {
|
|
1708
|
+
return this.le ? le(this.Gd.ae, { Jd: this.df, Hd: r, Pd: this, Ld: t }) : le(this.Gd.ae, { Jd: this, Hd: t });
|
|
1709
|
+
}
|
|
1710
|
+
var r = this.Xe(t);
|
|
1711
|
+
if (!r) return this.ye(t), null;
|
|
1712
|
+
var o = nn(this.Gd, r);
|
|
1713
|
+
if (o !== void 0) return o.Dd.count.value === 0 ? (o.Dd.Hd = r, o.Dd.Ld = t, o.clone()) : (o = o.clone(), this.ye(t), o);
|
|
1714
|
+
if (o = this.Gd.We(r), o = gr[o], !o) return e.call(this);
|
|
1715
|
+
o = this.ke ? o.Qe : o.pointerType;
|
|
1716
|
+
var i = mr(r, this.Gd, o.Gd);
|
|
1717
|
+
return i === null ? e.call(this) : this.le ? le(o.Gd.ae, { Jd: o, Hd: i, Pd: this, Ld: t }) : le(o.Gd.ae, { Jd: o, Hd: i });
|
|
1718
|
+
}, _r = g.UnboundTypeError = function(t, e) {
|
|
1719
|
+
var r = De(e, function(o) {
|
|
1720
|
+
this.name = e, this.message = o, o = Error(o).stack, o !== void 0 && (this.stack = this.toString() + `
|
|
1721
|
+
` + o.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
1722
|
+
});
|
|
1723
|
+
return r.prototype = Object.create(t.prototype), r.prototype.constructor = r, r.prototype.toString = function() {
|
|
1724
|
+
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
1725
|
+
}, r;
|
|
1726
|
+
}(Error, "UnboundTypeError"), Object.assign(wr.prototype, { get(t) {
|
|
1727
|
+
return this.Sd[t];
|
|
1728
|
+
}, has(t) {
|
|
1729
|
+
return this.Sd[t] !== void 0;
|
|
1730
|
+
}, Ie(t) {
|
|
1731
|
+
var e = this.Ce.pop() || this.Sd.length;
|
|
1732
|
+
return this.Sd[e] = t, e;
|
|
1733
|
+
}, Je(t) {
|
|
1734
|
+
this.Sd[t] = void 0, this.Ce.push(t);
|
|
1735
|
+
} }), Z.Sd.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), Z.be = Z.Sd.length, g.count_emval_handles = function() {
|
|
1736
|
+
for (var t = 0, e = Z.be; e < Z.Sd.length; ++e) Z.Sd[e] !== void 0 && ++t;
|
|
1737
|
+
return t;
|
|
1738
|
+
};
|
|
1739
|
+
for (var p, X = 0; 32 > X; ++X) be.push(Array(X));
|
|
1740
|
+
var Rn = new Float32Array(288);
|
|
1741
|
+
for (X = 0; 288 > X; ++X) Ct[X] = Rn.subarray(0, X + 1);
|
|
1742
|
+
var In = new Int32Array(288);
|
|
1743
|
+
for (X = 0; 288 > X; ++X) Xt[X] = In.subarray(0, X + 1);
|
|
1744
|
+
var Bn = { Q: function() {
|
|
1745
|
+
return 0;
|
|
1746
|
+
}, Ab: () => {
|
|
1747
|
+
}, Cb: function() {
|
|
1748
|
+
return 0;
|
|
1749
|
+
}, xb: () => {
|
|
1750
|
+
}, yb: () => {
|
|
1751
|
+
}, R: function() {
|
|
1752
|
+
}, zb: () => {
|
|
1753
|
+
}, v: function(t) {
|
|
1754
|
+
var e = ae[t];
|
|
1755
|
+
delete ae[t];
|
|
1756
|
+
var r = e.ve, o = e.Td, i = e.Be, c = i.map((s) => s.$e).concat(i.map((s) => s.hf));
|
|
1757
|
+
at([t], c, (s) => {
|
|
1758
|
+
var l = {};
|
|
1759
|
+
return i.forEach((h, b) => {
|
|
1760
|
+
var _ = s[b], A = h.Ye, C = h.Ze, m = s[b + i.length], S = h.gf, k = h.jf;
|
|
1761
|
+
l[h.Ve] = { read: (U) => _.fromWireType(A(C, U)), write: (U, J) => {
|
|
1762
|
+
var Y = [];
|
|
1763
|
+
S(k, U, m.toWireType(Y, J)), Me(Y);
|
|
1764
|
+
} };
|
|
1765
|
+
}), [{ name: e.name, fromWireType: function(h) {
|
|
1766
|
+
var b = {}, _;
|
|
1767
|
+
for (_ in l) b[_] = l[_].read(h);
|
|
1768
|
+
return o(h), b;
|
|
1769
|
+
}, toWireType: function(h, b) {
|
|
1770
|
+
for (var _ in l) if (!(_ in b)) throw new TypeError(`Missing field: "${_}"`);
|
|
1771
|
+
var A = r();
|
|
1772
|
+
for (_ in l) l[_].write(A, b[_]);
|
|
1773
|
+
return h !== null && h.push(o, A), A;
|
|
1774
|
+
}, argPackAdvance: 8, readValueFromPointer: Wt, Od: o }];
|
|
1775
|
+
});
|
|
1776
|
+
}, pb: function() {
|
|
1777
|
+
}, Gb: function(t, e, r, o, i) {
|
|
1778
|
+
var c = se(r);
|
|
1779
|
+
e = $(e), pt(t, { name: e, fromWireType: function(s) {
|
|
1780
|
+
return !!s;
|
|
1781
|
+
}, toWireType: function(s, l) {
|
|
1782
|
+
return l ? o : i;
|
|
1783
|
+
}, argPackAdvance: 8, readValueFromPointer: function(s) {
|
|
1784
|
+
if (r === 1) var l = ht;
|
|
1785
|
+
else if (r === 2) l = At;
|
|
1786
|
+
else if (r === 4) l = E;
|
|
1787
|
+
else throw new TypeError("Unknown boolean type size: " + e);
|
|
1788
|
+
return this.fromWireType(l[s >> c]);
|
|
1789
|
+
}, Od: null });
|
|
1790
|
+
}, k: function(t, e, r, o, i, c, s, l, h, b, _, A, C) {
|
|
1791
|
+
_ = $(_), c = q(i, c), l && (l = q(s, l)), b && (b = q(h, b)), C = q(A, C);
|
|
1792
|
+
var m = vr(_);
|
|
1793
|
+
Le(m, function() {
|
|
1794
|
+
zt(`Cannot construct ${_} due to unbound types`, [o]);
|
|
1795
|
+
}), at([t, e, r], o ? [o] : [], function(S) {
|
|
1796
|
+
if (S = S[0], o) var k = S.Gd, U = k.ae;
|
|
1797
|
+
else U = Et.prototype;
|
|
1798
|
+
S = De(m, function() {
|
|
1799
|
+
if (Object.getPrototypeOf(this) !== J) throw new Dt("Use 'new' to construct " + _);
|
|
1800
|
+
if (Y.Ud === void 0) throw new Dt(_ + " has no accessible constructor");
|
|
1801
|
+
var Ht = Y.Ud[arguments.length];
|
|
1802
|
+
if (Ht === void 0) throw new Dt(`Tried to invoke ctor of ${_} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(Y.Ud).toString()}) parameters instead!`);
|
|
1803
|
+
return Ht.apply(this, arguments);
|
|
1804
|
+
});
|
|
1805
|
+
var J = Object.create(U, { constructor: { value: S } });
|
|
1806
|
+
S.prototype = J;
|
|
1807
|
+
var Y = new on(_, S, J, C, k, c, l, b);
|
|
1808
|
+
Y.Md && (Y.Md.he === void 0 && (Y.Md.he = []), Y.Md.he.push(Y)), k = new yt(_, Y, !0, !1, !1), U = new yt(_ + "*", Y, !1, !1, !1);
|
|
1809
|
+
var gt = new yt(_ + " const*", Y, !1, !0, !1);
|
|
1810
|
+
return gr[t] = { pointerType: U, Qe: gt }, br(m, S), [k, U, gt];
|
|
1811
|
+
});
|
|
1812
|
+
}, f: function(t, e, r, o, i, c, s) {
|
|
1813
|
+
var l = de(r, o);
|
|
1814
|
+
e = $(e), c = q(i, c), at([], [t], function(h) {
|
|
1815
|
+
function b() {
|
|
1816
|
+
zt(`Cannot call ${_} due to unbound types`, l);
|
|
1817
|
+
}
|
|
1818
|
+
h = h[0];
|
|
1819
|
+
var _ = `${h.name}.${e}`;
|
|
1820
|
+
e.startsWith("@@") && (e = Symbol[e.substring(2)]);
|
|
1821
|
+
var A = h.Gd.constructor;
|
|
1822
|
+
return A[e] === void 0 ? (b.Yd = r - 1, A[e] = b) : (Ge(A, e, _), A[e].Kd[r - 1] = b), at([], l, function(C) {
|
|
1823
|
+
if (C = [C[0], null].concat(C.slice(1)), C = fe(_, C, null, c, s), A[e].Kd === void 0 ? (C.Yd = r - 1, A[e] = C) : A[e].Kd[r - 1] = C, h.Gd.he) for (let m of h.Gd.he) m.constructor.hasOwnProperty(e) || (m.constructor[e] = C);
|
|
1824
|
+
return [];
|
|
1825
|
+
}), [];
|
|
1826
|
+
});
|
|
1827
|
+
}, t: function(t, e, r, o, i, c) {
|
|
1828
|
+
var s = de(e, r);
|
|
1829
|
+
i = q(o, i), at([], [t], function(l) {
|
|
1830
|
+
l = l[0];
|
|
1831
|
+
var h = `constructor ${l.name}`;
|
|
1832
|
+
if (l.Gd.Ud === void 0 && (l.Gd.Ud = []), l.Gd.Ud[e - 1] !== void 0) throw new Dt(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
1833
|
+
return l.Gd.Ud[e - 1] = () => {
|
|
1834
|
+
zt(`Cannot construct ${l.name} due to unbound types`, s);
|
|
1835
|
+
}, at([], s, function(b) {
|
|
1836
|
+
return b.splice(1, 0, null), l.Gd.Ud[e - 1] = fe(h, b, null, i, c), [];
|
|
1837
|
+
}), [];
|
|
1838
|
+
});
|
|
1839
|
+
}, b: function(t, e, r, o, i, c, s, l) {
|
|
1840
|
+
var h = de(r, o);
|
|
1841
|
+
e = $(e), c = q(i, c), at([], [t], function(b) {
|
|
1842
|
+
function _() {
|
|
1843
|
+
zt(`Cannot call ${A} due to unbound types`, h);
|
|
1844
|
+
}
|
|
1845
|
+
b = b[0];
|
|
1846
|
+
var A = `${b.name}.${e}`;
|
|
1847
|
+
e.startsWith("@@") && (e = Symbol[e.substring(2)]), l && b.Gd.ef.push(e);
|
|
1848
|
+
var C = b.Gd.ae, m = C[e];
|
|
1849
|
+
return m === void 0 || m.Kd === void 0 && m.className !== b.name && m.Yd === r - 2 ? (_.Yd = r - 2, _.className = b.name, C[e] = _) : (Ge(C, e, A), C[e].Kd[r - 2] = _), at([], h, function(S) {
|
|
1850
|
+
return S = fe(A, S, b, c, s), C[e].Kd === void 0 ? (S.Yd = r - 2, C[e] = S) : C[e].Kd[r - 2] = S, [];
|
|
1851
|
+
}), [];
|
|
1852
|
+
});
|
|
1853
|
+
}, o: function(t, e, r) {
|
|
1854
|
+
t = $(t), at([], [e], function(o) {
|
|
1855
|
+
return o = o[0], g[t] = o.fromWireType(r), [];
|
|
1856
|
+
});
|
|
1857
|
+
}, Fb: function(t, e) {
|
|
1858
|
+
e = $(e), pt(t, { name: e, fromWireType: function(r) {
|
|
1859
|
+
var o = tt(r);
|
|
1860
|
+
return Oe(r), o;
|
|
1861
|
+
}, toWireType: function(r, o) {
|
|
1862
|
+
return et(o);
|
|
1863
|
+
}, argPackAdvance: 8, readValueFromPointer: Wt, Od: null });
|
|
1864
|
+
}, j: function(t, e, r, o) {
|
|
1865
|
+
function i() {
|
|
1866
|
+
}
|
|
1867
|
+
r = se(r), e = $(e), i.values = {}, pt(t, { name: e, constructor: i, fromWireType: function(c) {
|
|
1868
|
+
return this.constructor.values[c];
|
|
1869
|
+
}, toWireType: function(c, s) {
|
|
1870
|
+
return s.value;
|
|
1871
|
+
}, argPackAdvance: 8, readValueFromPointer: ln(e, r, o), Od: null }), Le(e, i);
|
|
1872
|
+
}, c: function(t, e, r) {
|
|
1873
|
+
var o = qt(t, "enum");
|
|
1874
|
+
e = $(e), t = o.constructor, o = Object.create(o.constructor.prototype, { value: { value: r }, constructor: { value: De(`${o.name}_${e}`, function() {
|
|
1875
|
+
}) } }), t.values[r] = o, t[e] = o;
|
|
1876
|
+
}, T: function(t, e, r) {
|
|
1877
|
+
r = se(r), e = $(e), pt(t, { name: e, fromWireType: function(o) {
|
|
1878
|
+
return o;
|
|
1879
|
+
}, toWireType: function(o, i) {
|
|
1880
|
+
return i;
|
|
1881
|
+
}, argPackAdvance: 8, readValueFromPointer: fn(e, r), Od: null });
|
|
1882
|
+
}, r: function(t, e, r, o, i, c) {
|
|
1883
|
+
var s = de(e, r);
|
|
1884
|
+
t = $(t), i = q(o, i), Le(t, function() {
|
|
1885
|
+
zt(`Cannot call ${t} due to unbound types`, s);
|
|
1886
|
+
}, e - 1), at([], s, function(l) {
|
|
1887
|
+
return l = [l[0], null].concat(l.slice(1)), br(t, fe(t, l, null, i, c), e - 1), [];
|
|
1888
|
+
});
|
|
1889
|
+
}, x: function(t, e, r, o, i) {
|
|
1890
|
+
e = $(e), i === -1 && (i = 4294967295), i = se(r);
|
|
1891
|
+
var c = (l) => l;
|
|
1892
|
+
if (o === 0) {
|
|
1893
|
+
var s = 32 - 8 * r;
|
|
1894
|
+
c = (l) => l << s >>> s;
|
|
1895
|
+
}
|
|
1896
|
+
r = e.includes("unsigned") ? function(l, h) {
|
|
1897
|
+
return h >>> 0;
|
|
1898
|
+
} : function(l, h) {
|
|
1899
|
+
return h;
|
|
1900
|
+
}, pt(t, { name: e, fromWireType: c, toWireType: r, argPackAdvance: 8, readValueFromPointer: dn(e, i, o !== 0), Od: null });
|
|
1901
|
+
}, n: function(t, e, r) {
|
|
1902
|
+
function o(c) {
|
|
1903
|
+
c >>= 2;
|
|
1904
|
+
var s = O;
|
|
1905
|
+
return new i(s.buffer, s[c + 1], s[c]);
|
|
1906
|
+
}
|
|
1907
|
+
var i = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array][e];
|
|
1908
|
+
r = $(r), pt(t, { name: r, fromWireType: o, argPackAdvance: 8, readValueFromPointer: o }, { af: !0 });
|
|
1909
|
+
}, m: function(t, e, r, o, i, c, s, l, h, b, _, A) {
|
|
1910
|
+
r = $(r), c = q(i, c), l = q(s, l), b = q(h, b), A = q(_, A), at([t], [e], function(C) {
|
|
1911
|
+
return C = C[0], [new yt(r, C.Gd, !1, !1, !0, C, o, c, l, b, A)];
|
|
1912
|
+
});
|
|
1913
|
+
}, S: function(t, e) {
|
|
1914
|
+
e = $(e);
|
|
1915
|
+
var r = e === "std::string";
|
|
1916
|
+
pt(t, { name: e, fromWireType: function(o) {
|
|
1917
|
+
var i = O[o >> 2], c = o + 4;
|
|
1918
|
+
if (r) for (var s = c, l = 0; l <= i; ++l) {
|
|
1919
|
+
var h = c + l;
|
|
1920
|
+
if (l == i || I[h] == 0) {
|
|
1921
|
+
if (s = s ? Ft(I, s, h - s) : "", b === void 0) var b = s;
|
|
1922
|
+
else b += "\0", b += s;
|
|
1923
|
+
s = h + 1;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
else {
|
|
1927
|
+
for (b = Array(i), l = 0; l < i; ++l) b[l] = String.fromCharCode(I[c + l]);
|
|
1928
|
+
b = b.join("");
|
|
1929
|
+
}
|
|
1930
|
+
return bt(o), b;
|
|
1931
|
+
}, toWireType: function(o, i) {
|
|
1932
|
+
i instanceof ArrayBuffer && (i = new Uint8Array(i));
|
|
1933
|
+
var c = typeof i == "string";
|
|
1934
|
+
c || i instanceof Uint8Array || i instanceof Uint8ClampedArray || i instanceof Int8Array || G("Cannot pass non-string to std::string");
|
|
1935
|
+
var s = r && c ? ct(i) : i.length, l = Ae(4 + s + 1), h = l + 4;
|
|
1936
|
+
if (O[l >> 2] = s, r && c) ut(i, I, h, s + 1);
|
|
1937
|
+
else if (c) for (c = 0; c < s; ++c) {
|
|
1938
|
+
var b = i.charCodeAt(c);
|
|
1939
|
+
255 < b && (bt(h), G("String has UTF-16 code units that do not fit in 8 bits")), I[h + c] = b;
|
|
1940
|
+
}
|
|
1941
|
+
else for (c = 0; c < s; ++c) I[h + c] = i[c];
|
|
1942
|
+
return o !== null && o.push(bt, l), l;
|
|
1943
|
+
}, argPackAdvance: 8, readValueFromPointer: Wt, Od: function(o) {
|
|
1944
|
+
bt(o);
|
|
1945
|
+
} });
|
|
1946
|
+
}, K: function(t, e, r) {
|
|
1947
|
+
if (r = $(r), e === 2) var o = hn, i = pn, c = yn, s = () => Rt, l = 1;
|
|
1948
|
+
else e === 4 && (o = mn, i = gn, c = vn, s = () => O, l = 2);
|
|
1949
|
+
pt(t, { name: r, fromWireType: function(h) {
|
|
1950
|
+
for (var b = O[h >> 2], _ = s(), A, C = h + 4, m = 0; m <= b; ++m) {
|
|
1951
|
+
var S = h + 4 + m * e;
|
|
1952
|
+
(m == b || _[S >> l] == 0) && (C = o(C, S - C), A === void 0 ? A = C : (A += "\0", A += C), C = S + e);
|
|
1953
|
+
}
|
|
1954
|
+
return bt(h), A;
|
|
1955
|
+
}, toWireType: function(h, b) {
|
|
1956
|
+
typeof b != "string" && G(`Cannot pass non-string to C++ string type ${r}`);
|
|
1957
|
+
var _ = c(b), A = Ae(4 + _ + e);
|
|
1958
|
+
return O[A >> 2] = _ >> l, i(b, A + 4, _ + e), h !== null && h.push(bt, A), A;
|
|
1959
|
+
}, argPackAdvance: 8, readValueFromPointer: Wt, Od: function(h) {
|
|
1960
|
+
bt(h);
|
|
1961
|
+
} });
|
|
1962
|
+
}, w: function(t, e, r, o, i, c) {
|
|
1963
|
+
ae[t] = { name: $(e), ve: q(r, o), Td: q(i, c), Be: [] };
|
|
1964
|
+
}, e: function(t, e, r, o, i, c, s, l, h, b) {
|
|
1965
|
+
ae[t].Be.push({ Ve: $(e), $e: r, Ye: q(o, i), Ze: c, hf: s, gf: q(l, h), jf: b });
|
|
1966
|
+
}, Hb: function(t, e) {
|
|
1967
|
+
e = $(e), pt(t, { cf: !0, name: e, argPackAdvance: 0, fromWireType: function() {
|
|
1968
|
+
}, toWireType: function() {
|
|
1969
|
+
} });
|
|
1970
|
+
}, Eb: () => !0, tb: () => {
|
|
1971
|
+
throw 1 / 0;
|
|
1972
|
+
}, y: function(t, e, r) {
|
|
1973
|
+
t = tt(t), e = qt(e, "emval::as");
|
|
1974
|
+
var o = [], i = et(o);
|
|
1975
|
+
return O[r >> 2] = i, e.toWireType(o, t);
|
|
1976
|
+
}, Y: function(t, e, r, o, i) {
|
|
1977
|
+
t = pe[t], e = tt(e), r = he(r);
|
|
1978
|
+
var c = [];
|
|
1979
|
+
return O[o >> 2] = et(c), t(e, r, c, i);
|
|
1980
|
+
}, q: function(t, e, r, o) {
|
|
1981
|
+
t = pe[t], e = tt(e), r = he(r), t(e, r, null, o);
|
|
1982
|
+
}, d: Oe, H: function(t) {
|
|
1983
|
+
return t === 0 ? et(Er()) : (t = he(t), et(Er()[t]));
|
|
1984
|
+
}, p: function(t, e) {
|
|
1985
|
+
var r = Pn(t, e), o = r[0];
|
|
1986
|
+
e = o.name + "_$" + r.slice(1).map(function(s) {
|
|
1987
|
+
return s.name;
|
|
1988
|
+
}).join("_") + "$";
|
|
1989
|
+
var i = Cr[e];
|
|
1990
|
+
if (i !== void 0) return i;
|
|
1991
|
+
var c = Array(t - 1);
|
|
1992
|
+
return i = _n((s, l, h, b) => {
|
|
1993
|
+
for (var _ = 0, A = 0; A < t - 1; ++A) c[A] = r[A + 1].readValueFromPointer(b + _), _ += r[A + 1].argPackAdvance;
|
|
1994
|
+
for (s = s[l].apply(s, c), A = 0; A < t - 1; ++A) r[A + 1].Se && r[A + 1].Se(c[A]);
|
|
1995
|
+
if (!o.cf) return o.toWireType(h, s);
|
|
1996
|
+
}), Cr[e] = i;
|
|
1997
|
+
}, s: function(t, e) {
|
|
1998
|
+
return t = tt(t), e = tt(e), et(t[e]);
|
|
1999
|
+
}, l: function(t) {
|
|
2000
|
+
4 < t && (Z.get(t).Fe += 1);
|
|
2001
|
+
}, G: function(t, e, r, o) {
|
|
2002
|
+
t = tt(t);
|
|
2003
|
+
var i = Tr[e];
|
|
2004
|
+
return i || (i = wn(e), Tr[e] = i), i(t, r, o);
|
|
2005
|
+
}, C: function() {
|
|
2006
|
+
return et([]);
|
|
2007
|
+
}, g: function(t) {
|
|
2008
|
+
return et(he(t));
|
|
2009
|
+
}, z: function() {
|
|
2010
|
+
return et({});
|
|
2011
|
+
}, jb: function(t) {
|
|
2012
|
+
return t = tt(t), !t;
|
|
2013
|
+
}, u: function(t) {
|
|
2014
|
+
var e = tt(t);
|
|
2015
|
+
Me(e), Oe(t);
|
|
2016
|
+
}, i: function(t, e, r) {
|
|
2017
|
+
t = tt(t), e = tt(e), r = tt(r), t[e] = r;
|
|
2018
|
+
}, h: function(t, e) {
|
|
2019
|
+
return t = qt(t, "_emval_take_value"), t = t.readValueFromPointer(e), et(t);
|
|
2020
|
+
}, mb: function() {
|
|
2021
|
+
return -52;
|
|
2022
|
+
}, nb: function() {
|
|
2023
|
+
}, a: () => {
|
|
2024
|
+
ke("");
|
|
2025
|
+
}, Db: () => performance.now(), ub: (t) => {
|
|
2026
|
+
var e = I.length;
|
|
2027
|
+
if (t >>>= 0, 2147483648 < t) return !1;
|
|
2028
|
+
for (var r = 1; 4 >= r; r *= 2) {
|
|
2029
|
+
var o = e * (1 + 0.2 / r);
|
|
2030
|
+
o = Math.min(o, t + 100663296);
|
|
2031
|
+
var i = Math;
|
|
2032
|
+
o = Math.max(t, o);
|
|
2033
|
+
t: {
|
|
2034
|
+
i = i.min.call(i, 2147483648, o + (65536 - o % 65536) % 65536) - ie.buffer.byteLength + 65535 >>> 16;
|
|
2035
|
+
try {
|
|
2036
|
+
ie.grow(i), nr();
|
|
2037
|
+
var c = 1;
|
|
2038
|
+
break t;
|
|
2039
|
+
} catch {
|
|
2040
|
+
}
|
|
2041
|
+
c = void 0;
|
|
2042
|
+
}
|
|
2043
|
+
if (c) return !0;
|
|
2044
|
+
}
|
|
2045
|
+
return !1;
|
|
2046
|
+
}, kb: function() {
|
|
2047
|
+
return R ? R.handle : 0;
|
|
2048
|
+
}, vb: (t, e) => {
|
|
2049
|
+
var r = 0;
|
|
2050
|
+
return Rr().forEach(function(o, i) {
|
|
2051
|
+
var c = e + r;
|
|
2052
|
+
for (i = O[t + 4 * i >> 2] = c, c = 0; c < o.length; ++c) ht[i++ >> 0] = o.charCodeAt(c);
|
|
2053
|
+
ht[i >> 0] = 0, r += o.length + 1;
|
|
2054
|
+
}), 0;
|
|
2055
|
+
}, wb: (t, e) => {
|
|
2056
|
+
var r = Rr();
|
|
2057
|
+
O[t >> 2] = r.length;
|
|
2058
|
+
var o = 0;
|
|
2059
|
+
return r.forEach(function(i) {
|
|
2060
|
+
o += i.length + 1;
|
|
2061
|
+
}), O[e >> 2] = o, 0;
|
|
2062
|
+
}, J: () => 52, lb: function() {
|
|
2063
|
+
return 52;
|
|
2064
|
+
}, Bb: () => 52, ob: function() {
|
|
2065
|
+
return 70;
|
|
2066
|
+
}, P: (t, e, r, o) => {
|
|
2067
|
+
for (var i = 0, c = 0; c < r; c++) {
|
|
2068
|
+
var s = O[e >> 2], l = O[e + 4 >> 2];
|
|
2069
|
+
e += 8;
|
|
2070
|
+
for (var h = 0; h < l; h++) {
|
|
2071
|
+
var b = I[s + h], _ = kn[t];
|
|
2072
|
+
b === 0 || b === 10 ? ((t === 1 ? Qr : wt)(Ft(_, 0)), _.length = 0) : _.push(b);
|
|
2073
|
+
}
|
|
2074
|
+
i += l;
|
|
2075
|
+
}
|
|
2076
|
+
return O[o >> 2] = i, 0;
|
|
2077
|
+
}, $: function(t) {
|
|
2078
|
+
p.activeTexture(t);
|
|
2079
|
+
}, aa: function(t, e) {
|
|
2080
|
+
p.attachShader(st[t], lt[e]);
|
|
2081
|
+
}, ba: function(t, e, r) {
|
|
2082
|
+
p.bindAttribLocation(st[t], e, r ? Ft(I, r) : "");
|
|
2083
|
+
}, ca: function(t, e) {
|
|
2084
|
+
t == 35051 ? p.se = e : t == 35052 && (p.Zd = e), p.bindBuffer(t, ye[e]);
|
|
2085
|
+
}, _: function(t, e) {
|
|
2086
|
+
p.bindFramebuffer(t, me[e]);
|
|
2087
|
+
}, ac: function(t, e) {
|
|
2088
|
+
p.bindRenderbuffer(t, Jt[e]);
|
|
2089
|
+
}, Mb: function(t, e) {
|
|
2090
|
+
p.bindSampler(t, xt[e]);
|
|
2091
|
+
}, da: function(t, e) {
|
|
2092
|
+
p.bindTexture(t, rt[e]);
|
|
2093
|
+
}, uc: Ir, xc: Ir, ea: function(t, e, r, o) {
|
|
2094
|
+
p.blendColor(t, e, r, o);
|
|
2095
|
+
}, fa: function(t) {
|
|
2096
|
+
p.blendEquation(t);
|
|
2097
|
+
}, ga: function(t, e) {
|
|
2098
|
+
p.blendFunc(t, e);
|
|
2099
|
+
}, Wb: function(t, e, r, o, i, c, s, l, h, b) {
|
|
2100
|
+
p.blitFramebuffer(t, e, r, o, i, c, s, l, h, b);
|
|
2101
|
+
}, ha: function(t, e, r, o) {
|
|
2102
|
+
2 <= R.version ? r && e ? p.bufferData(t, I, o, r, e) : p.bufferData(t, e, o) : p.bufferData(t, r ? I.subarray(r, r + e) : e, o);
|
|
2103
|
+
}, ia: function(t, e, r, o) {
|
|
2104
|
+
2 <= R.version ? r && p.bufferSubData(t, e, I, o, r) : p.bufferSubData(t, e, I.subarray(o, o + r));
|
|
2105
|
+
}, bc: function(t) {
|
|
2106
|
+
return p.checkFramebufferStatus(t);
|
|
2107
|
+
}, N: function(t) {
|
|
2108
|
+
p.clear(t);
|
|
2109
|
+
}, Z: function(t, e, r, o) {
|
|
2110
|
+
p.clearColor(t, e, r, o);
|
|
2111
|
+
}, O: function(t) {
|
|
2112
|
+
p.clearStencil(t);
|
|
2113
|
+
}, rb: function(t, e, r, o) {
|
|
2114
|
+
return p.clientWaitSync(Mt[t], e, (r >>> 0) + 4294967296 * o);
|
|
2115
|
+
}, ja: function(t, e, r, o) {
|
|
2116
|
+
p.colorMask(!!t, !!e, !!r, !!o);
|
|
2117
|
+
}, ka: function(t) {
|
|
2118
|
+
p.compileShader(lt[t]);
|
|
2119
|
+
}, la: function(t, e, r, o, i, c, s, l) {
|
|
2120
|
+
2 <= R.version ? p.Zd || !s ? p.compressedTexImage2D(t, e, r, o, i, c, s, l) : p.compressedTexImage2D(t, e, r, o, i, c, I, l, s) : p.compressedTexImage2D(t, e, r, o, i, c, l ? I.subarray(l, l + s) : null);
|
|
2121
|
+
}, ma: function(t, e, r, o, i, c, s, l, h) {
|
|
2122
|
+
2 <= R.version ? p.Zd || !l ? p.compressedTexSubImage2D(t, e, r, o, i, c, s, l, h) : p.compressedTexSubImage2D(t, e, r, o, i, c, s, I, h, l) : p.compressedTexSubImage2D(t, e, r, o, i, c, s, h ? I.subarray(h, h + l) : null);
|
|
2123
|
+
}, Ub: function(t, e, r, o, i) {
|
|
2124
|
+
p.copyBufferSubData(t, e, r, o, i);
|
|
2125
|
+
}, na: function(t, e, r, o, i, c, s, l) {
|
|
2126
|
+
p.copyTexSubImage2D(t, e, r, o, i, c, s, l);
|
|
2127
|
+
}, oa: function() {
|
|
2128
|
+
var t = Gt(st), e = p.createProgram();
|
|
2129
|
+
return e.name = t, e.oe = e.me = e.ne = 0, e.xe = 1, st[t] = e, t;
|
|
2130
|
+
}, pa: function(t) {
|
|
2131
|
+
var e = Gt(lt);
|
|
2132
|
+
return lt[e] = p.createShader(t), e;
|
|
2133
|
+
}, qa: function(t) {
|
|
2134
|
+
p.cullFace(t);
|
|
2135
|
+
}, ra: function(t, e) {
|
|
2136
|
+
for (var r = 0; r < t; r++) {
|
|
2137
|
+
var o = E[e + 4 * r >> 2], i = ye[o];
|
|
2138
|
+
i && (p.deleteBuffer(i), i.name = 0, ye[o] = null, o == p.se && (p.se = 0), o == p.Zd && (p.Zd = 0));
|
|
2139
|
+
}
|
|
2140
|
+
}, cc: function(t, e) {
|
|
2141
|
+
for (var r = 0; r < t; ++r) {
|
|
2142
|
+
var o = E[e + 4 * r >> 2], i = me[o];
|
|
2143
|
+
i && (p.deleteFramebuffer(i), i.name = 0, me[o] = null);
|
|
2144
|
+
}
|
|
2145
|
+
}, sa: function(t) {
|
|
2146
|
+
if (t) {
|
|
2147
|
+
var e = st[t];
|
|
2148
|
+
e ? (p.deleteProgram(e), e.name = 0, st[t] = null) : j(1281);
|
|
2149
|
+
}
|
|
2150
|
+
}, dc: function(t, e) {
|
|
2151
|
+
for (var r = 0; r < t; r++) {
|
|
2152
|
+
var o = E[e + 4 * r >> 2], i = Jt[o];
|
|
2153
|
+
i && (p.deleteRenderbuffer(i), i.name = 0, Jt[o] = null);
|
|
2154
|
+
}
|
|
2155
|
+
}, Nb: function(t, e) {
|
|
2156
|
+
for (var r = 0; r < t; r++) {
|
|
2157
|
+
var o = E[e + 4 * r >> 2], i = xt[o];
|
|
2158
|
+
i && (p.deleteSampler(i), i.name = 0, xt[o] = null);
|
|
2159
|
+
}
|
|
2160
|
+
}, ta: function(t) {
|
|
2161
|
+
if (t) {
|
|
2162
|
+
var e = lt[t];
|
|
2163
|
+
e ? (p.deleteShader(e), lt[t] = null) : j(1281);
|
|
2164
|
+
}
|
|
2165
|
+
}, Vb: function(t) {
|
|
2166
|
+
if (t) {
|
|
2167
|
+
var e = Mt[t];
|
|
2168
|
+
e ? (p.deleteSync(e), e.name = 0, Mt[t] = null) : j(1281);
|
|
2169
|
+
}
|
|
2170
|
+
}, ua: function(t, e) {
|
|
2171
|
+
for (var r = 0; r < t; r++) {
|
|
2172
|
+
var o = E[e + 4 * r >> 2], i = rt[o];
|
|
2173
|
+
i && (p.deleteTexture(i), i.name = 0, rt[o] = null);
|
|
2174
|
+
}
|
|
2175
|
+
}, vc: Br, yc: Br, va: function(t) {
|
|
2176
|
+
p.depthMask(!!t);
|
|
2177
|
+
}, wa: function(t) {
|
|
2178
|
+
p.disable(t);
|
|
2179
|
+
}, xa: function(t) {
|
|
2180
|
+
p.disableVertexAttribArray(t);
|
|
2181
|
+
}, ya: function(t, e, r) {
|
|
2182
|
+
p.drawArrays(t, e, r);
|
|
2183
|
+
}, sc: function(t, e, r, o) {
|
|
2184
|
+
p.drawArraysInstanced(t, e, r, o);
|
|
2185
|
+
}, qc: function(t, e, r, o, i) {
|
|
2186
|
+
p.ze.drawArraysInstancedBaseInstanceWEBGL(t, e, r, o, i);
|
|
2187
|
+
}, oc: function(t, e) {
|
|
2188
|
+
for (var r = be[t], o = 0; o < t; o++) r[o] = E[e + 4 * o >> 2];
|
|
2189
|
+
p.drawBuffers(r);
|
|
2190
|
+
}, za: Dr, tc: function(t, e, r, o, i) {
|
|
2191
|
+
p.drawElementsInstanced(t, e, r, o, i);
|
|
2192
|
+
}, rc: function(t, e, r, o, i, c, s) {
|
|
2193
|
+
p.ze.drawElementsInstancedBaseVertexBaseInstanceWEBGL(t, e, r, o, i, c, s);
|
|
2194
|
+
}, ic: function(t, e, r, o, i, c) {
|
|
2195
|
+
Dr(t, o, i, c);
|
|
2196
|
+
}, Aa: function(t) {
|
|
2197
|
+
p.enable(t);
|
|
2198
|
+
}, Ba: function(t) {
|
|
2199
|
+
p.enableVertexAttribArray(t);
|
|
2200
|
+
}, Sb: function(t, e) {
|
|
2201
|
+
return (t = p.fenceSync(t, e)) ? (e = Gt(Mt), t.name = e, Mt[e] = t, e) : 0;
|
|
2202
|
+
}, Ca: function() {
|
|
2203
|
+
p.finish();
|
|
2204
|
+
}, Da: function() {
|
|
2205
|
+
p.flush();
|
|
2206
|
+
}, ec: function(t, e, r, o) {
|
|
2207
|
+
p.framebufferRenderbuffer(t, e, r, Jt[o]);
|
|
2208
|
+
}, fc: function(t, e, r, o, i) {
|
|
2209
|
+
p.framebufferTexture2D(t, e, r, rt[o], i);
|
|
2210
|
+
}, Ea: function(t) {
|
|
2211
|
+
p.frontFace(t);
|
|
2212
|
+
}, Fa: function(t, e) {
|
|
2213
|
+
Lt(t, e, "createBuffer", ye);
|
|
2214
|
+
}, gc: function(t, e) {
|
|
2215
|
+
Lt(t, e, "createFramebuffer", me);
|
|
2216
|
+
}, hc: function(t, e) {
|
|
2217
|
+
Lt(t, e, "createRenderbuffer", Jt);
|
|
2218
|
+
}, Ob: function(t, e) {
|
|
2219
|
+
Lt(t, e, "createSampler", xt);
|
|
2220
|
+
}, Ga: function(t, e) {
|
|
2221
|
+
Lt(t, e, "createTexture", rt);
|
|
2222
|
+
}, wc: Gr, zc: Gr, Yb: function(t) {
|
|
2223
|
+
p.generateMipmap(t);
|
|
2224
|
+
}, Ha: function(t, e, r) {
|
|
2225
|
+
r ? E[r >> 2] = p.getBufferParameter(t, e) : j(1281);
|
|
2226
|
+
}, Ia: function() {
|
|
2227
|
+
var t = p.getError() || ve;
|
|
2228
|
+
return ve = 0, t;
|
|
2229
|
+
}, Ja: function(t, e) {
|
|
2230
|
+
Lr(t, e, 2);
|
|
2231
|
+
}, Zb: function(t, e, r, o) {
|
|
2232
|
+
t = p.getFramebufferAttachmentParameter(t, e, r), (t instanceof WebGLRenderbuffer || t instanceof WebGLTexture) && (t = t.name | 0), E[o >> 2] = t;
|
|
2233
|
+
}, I: function(t, e) {
|
|
2234
|
+
Lr(t, e, 0);
|
|
2235
|
+
}, Ka: function(t, e, r, o) {
|
|
2236
|
+
t = p.getProgramInfoLog(st[t]), t === null && (t = "(unknown error)"), e = 0 < e && o ? ut(t, I, o, e) : 0, r && (E[r >> 2] = e);
|
|
2237
|
+
}, La: function(t, e, r) {
|
|
2238
|
+
if (r) if (t >= Sr) j(1281);
|
|
2239
|
+
else if (t = st[t], e == 35716) t = p.getProgramInfoLog(t), t === null && (t = "(unknown error)"), E[r >> 2] = t.length + 1;
|
|
2240
|
+
else if (e == 35719) {
|
|
2241
|
+
if (!t.oe) for (e = 0; e < p.getProgramParameter(t, 35718); ++e) t.oe = Math.max(t.oe, p.getActiveUniform(t, e).name.length + 1);
|
|
2242
|
+
E[r >> 2] = t.oe;
|
|
2243
|
+
} else if (e == 35722) {
|
|
2244
|
+
if (!t.me) for (e = 0; e < p.getProgramParameter(t, 35721); ++e) t.me = Math.max(t.me, p.getActiveAttrib(t, e).name.length + 1);
|
|
2245
|
+
E[r >> 2] = t.me;
|
|
2246
|
+
} else if (e == 35381) {
|
|
2247
|
+
if (!t.ne) for (e = 0; e < p.getProgramParameter(t, 35382); ++e) t.ne = Math.max(t.ne, p.getActiveUniformBlockName(t, e).length + 1);
|
|
2248
|
+
E[r >> 2] = t.ne;
|
|
2249
|
+
} else E[r >> 2] = p.getProgramParameter(t, e);
|
|
2250
|
+
else j(1281);
|
|
2251
|
+
}, _b: function(t, e, r) {
|
|
2252
|
+
r ? E[r >> 2] = p.getRenderbufferParameter(t, e) : j(1281);
|
|
2253
|
+
}, Ma: function(t, e, r, o) {
|
|
2254
|
+
t = p.getShaderInfoLog(lt[t]), t === null && (t = "(unknown error)"), e = 0 < e && o ? ut(t, I, o, e) : 0, r && (E[r >> 2] = e);
|
|
2255
|
+
}, Jb: function(t, e, r, o) {
|
|
2256
|
+
t = p.getShaderPrecisionFormat(t, e), E[r >> 2] = t.rangeMin, E[r + 4 >> 2] = t.rangeMax, E[o >> 2] = t.precision;
|
|
2257
|
+
}, Na: function(t, e, r) {
|
|
2258
|
+
r ? e == 35716 ? (t = p.getShaderInfoLog(lt[t]), t === null && (t = "(unknown error)"), E[r >> 2] = t ? t.length + 1 : 0) : e == 35720 ? (t = p.getShaderSource(lt[t]), E[r >> 2] = t ? t.length + 1 : 0) : E[r >> 2] = p.getShaderParameter(lt[t], e) : j(1281);
|
|
2259
|
+
}, M: function(t) {
|
|
2260
|
+
var e = Fr[t];
|
|
2261
|
+
if (!e) {
|
|
2262
|
+
switch (t) {
|
|
2263
|
+
case 7939:
|
|
2264
|
+
e = p.getSupportedExtensions() || [], e = e.concat(e.map(function(o) {
|
|
2265
|
+
return "GL_" + o;
|
|
2266
|
+
})), e = Kt(e.join(" "));
|
|
2267
|
+
break;
|
|
2268
|
+
case 7936:
|
|
2269
|
+
case 7937:
|
|
2270
|
+
case 37445:
|
|
2271
|
+
case 37446:
|
|
2272
|
+
(e = p.getParameter(t)) || j(1280), e = e && Kt(e);
|
|
2273
|
+
break;
|
|
2274
|
+
case 7938:
|
|
2275
|
+
e = p.getParameter(7938), e = 2 <= R.version ? "OpenGL ES 3.0 (" + e + ")" : "OpenGL ES 2.0 (" + e + ")", e = Kt(e);
|
|
2276
|
+
break;
|
|
2277
|
+
case 35724:
|
|
2278
|
+
e = p.getParameter(35724);
|
|
2279
|
+
var r = e.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
2280
|
+
r !== null && (r[1].length == 3 && (r[1] += "0"), e = "OpenGL ES GLSL ES " + r[1] + " (" + e + ")"), e = Kt(e);
|
|
2281
|
+
break;
|
|
2282
|
+
default:
|
|
2283
|
+
j(1280);
|
|
2284
|
+
}
|
|
2285
|
+
Fr[t] = e;
|
|
2286
|
+
}
|
|
2287
|
+
return e;
|
|
2288
|
+
}, ib: function(t, e) {
|
|
2289
|
+
if (2 > R.version) return j(1282), 0;
|
|
2290
|
+
var r = kr[t];
|
|
2291
|
+
if (r) return 0 > e || e >= r.length ? (j(1281), 0) : r[e];
|
|
2292
|
+
switch (t) {
|
|
2293
|
+
case 7939:
|
|
2294
|
+
return r = p.getSupportedExtensions() || [], r = r.concat(r.map(function(o) {
|
|
2295
|
+
return "GL_" + o;
|
|
2296
|
+
})), r = r.map(function(o) {
|
|
2297
|
+
return Kt(o);
|
|
2298
|
+
}), r = kr[t] = r, 0 > e || e >= r.length ? (j(1281), 0) : r[e];
|
|
2299
|
+
default:
|
|
2300
|
+
return j(1280), 0;
|
|
2301
|
+
}
|
|
2302
|
+
}, Oa: function(t, e) {
|
|
2303
|
+
if (e = e ? Ft(I, e) : "", t = st[t]) {
|
|
2304
|
+
var r = t, o = r.fe, i = r.He, c;
|
|
2305
|
+
if (!o) for (r.fe = o = {}, r.Ge = {}, c = 0; c < p.getProgramParameter(r, 35718); ++c) {
|
|
2306
|
+
var s = p.getActiveUniform(r, c), l = s.name;
|
|
2307
|
+
s = s.size;
|
|
2308
|
+
var h = Hr(l);
|
|
2309
|
+
h = 0 < h ? l.slice(0, h) : l;
|
|
2310
|
+
var b = r.xe;
|
|
2311
|
+
for (r.xe += s, i[h] = [s, b], l = 0; l < s; ++l) o[b] = l, r.Ge[b++] = h;
|
|
2312
|
+
}
|
|
2313
|
+
if (r = t.fe, o = 0, i = e, c = Hr(e), 0 < c && (o = parseInt(e.slice(c + 1)) >>> 0, i = e.slice(0, c)), (i = t.He[i]) && o < i[0] && (o += i[1], r[o] = r[o] || p.getUniformLocation(t, e))) return o;
|
|
2314
|
+
} else j(1281);
|
|
2315
|
+
return -1;
|
|
2316
|
+
}, Kb: function(t, e, r) {
|
|
2317
|
+
for (var o = be[e], i = 0; i < e; i++) o[i] = E[r + 4 * i >> 2];
|
|
2318
|
+
p.invalidateFramebuffer(t, o);
|
|
2319
|
+
}, Lb: function(t, e, r, o, i, c, s) {
|
|
2320
|
+
for (var l = be[e], h = 0; h < e; h++) l[h] = E[r + 4 * h >> 2];
|
|
2321
|
+
p.invalidateSubFramebuffer(t, l, o, i, c, s);
|
|
2322
|
+
}, Tb: function(t) {
|
|
2323
|
+
return p.isSync(Mt[t]);
|
|
2324
|
+
}, Pa: function(t) {
|
|
2325
|
+
return (t = rt[t]) ? p.isTexture(t) : 0;
|
|
2326
|
+
}, Qa: function(t) {
|
|
2327
|
+
p.lineWidth(t);
|
|
2328
|
+
}, Ra: function(t) {
|
|
2329
|
+
t = st[t], p.linkProgram(t), t.fe = 0, t.He = {};
|
|
2330
|
+
}, mc: function(t, e, r, o, i, c) {
|
|
2331
|
+
p.De.multiDrawArraysInstancedBaseInstanceWEBGL(t, E, e >> 2, E, r >> 2, E, o >> 2, O, i >> 2, c);
|
|
2332
|
+
}, nc: function(t, e, r, o, i, c, s, l) {
|
|
2333
|
+
p.De.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(t, E, e >> 2, r, E, o >> 2, E, i >> 2, E, c >> 2, O, s >> 2, l);
|
|
2334
|
+
}, Sa: function(t, e) {
|
|
2335
|
+
t == 3317 && (xr = e), p.pixelStorei(t, e);
|
|
2336
|
+
}, pc: function(t) {
|
|
2337
|
+
p.readBuffer(t);
|
|
2338
|
+
}, Ta: function(t, e, r, o, i, c, s) {
|
|
2339
|
+
if (2 <= R.version) if (p.se) p.readPixels(t, e, r, o, i, c, s);
|
|
2340
|
+
else {
|
|
2341
|
+
var l = _e(c);
|
|
2342
|
+
p.readPixels(t, e, r, o, i, c, l, s >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
2343
|
+
}
|
|
2344
|
+
else (s = $e(c, i, r, o, s)) ? p.readPixels(t, e, r, o, i, c, s) : j(1280);
|
|
2345
|
+
}, $b: function(t, e, r, o) {
|
|
2346
|
+
p.renderbufferStorage(t, e, r, o);
|
|
2347
|
+
}, Xb: function(t, e, r, o, i) {
|
|
2348
|
+
p.renderbufferStorageMultisample(t, e, r, o, i);
|
|
2349
|
+
}, Pb: function(t, e, r) {
|
|
2350
|
+
p.samplerParameterf(xt[t], e, r);
|
|
2351
|
+
}, Qb: function(t, e, r) {
|
|
2352
|
+
p.samplerParameteri(xt[t], e, r);
|
|
2353
|
+
}, Rb: function(t, e, r) {
|
|
2354
|
+
p.samplerParameteri(xt[t], e, E[r >> 2]);
|
|
2355
|
+
}, Ua: function(t, e, r, o) {
|
|
2356
|
+
p.scissor(t, e, r, o);
|
|
2357
|
+
}, Va: function(t, e, r, o) {
|
|
2358
|
+
for (var i = "", c = 0; c < e; ++c) {
|
|
2359
|
+
var s = o ? E[o + 4 * c >> 2] : -1, l = E[r + 4 * c >> 2];
|
|
2360
|
+
s = l ? Ft(I, l, 0 > s ? void 0 : s) : "", i += s;
|
|
2361
|
+
}
|
|
2362
|
+
p.shaderSource(lt[t], i);
|
|
2363
|
+
}, Wa: function(t, e, r) {
|
|
2364
|
+
p.stencilFunc(t, e, r);
|
|
2365
|
+
}, Xa: function(t, e, r, o) {
|
|
2366
|
+
p.stencilFuncSeparate(t, e, r, o);
|
|
2367
|
+
}, Ya: function(t) {
|
|
2368
|
+
p.stencilMask(t);
|
|
2369
|
+
}, Za: function(t, e) {
|
|
2370
|
+
p.stencilMaskSeparate(t, e);
|
|
2371
|
+
}, _a: function(t, e, r) {
|
|
2372
|
+
p.stencilOp(t, e, r);
|
|
2373
|
+
}, $a: function(t, e, r, o) {
|
|
2374
|
+
p.stencilOpSeparate(t, e, r, o);
|
|
2375
|
+
}, ab: function(t, e, r, o, i, c, s, l, h) {
|
|
2376
|
+
if (2 <= R.version) if (p.Zd) p.texImage2D(t, e, r, o, i, c, s, l, h);
|
|
2377
|
+
else if (h) {
|
|
2378
|
+
var b = _e(l);
|
|
2379
|
+
p.texImage2D(t, e, r, o, i, c, s, l, b, h >> 31 - Math.clz32(b.BYTES_PER_ELEMENT));
|
|
2380
|
+
} else p.texImage2D(t, e, r, o, i, c, s, l, null);
|
|
2381
|
+
else p.texImage2D(t, e, r, o, i, c, s, l, h ? $e(l, s, o, i, h) : null);
|
|
2382
|
+
}, bb: function(t, e, r) {
|
|
2383
|
+
p.texParameterf(t, e, r);
|
|
2384
|
+
}, cb: function(t, e, r) {
|
|
2385
|
+
p.texParameterf(t, e, F[r >> 2]);
|
|
2386
|
+
}, db: function(t, e, r) {
|
|
2387
|
+
p.texParameteri(t, e, r);
|
|
2388
|
+
}, eb: function(t, e, r) {
|
|
2389
|
+
p.texParameteri(t, e, E[r >> 2]);
|
|
2390
|
+
}, jc: function(t, e, r, o, i) {
|
|
2391
|
+
p.texStorage2D(t, e, r, o, i);
|
|
2392
|
+
}, fb: function(t, e, r, o, i, c, s, l, h) {
|
|
2393
|
+
if (2 <= R.version) if (p.Zd) p.texSubImage2D(t, e, r, o, i, c, s, l, h);
|
|
2394
|
+
else if (h) {
|
|
2395
|
+
var b = _e(l);
|
|
2396
|
+
p.texSubImage2D(t, e, r, o, i, c, s, l, b, h >> 31 - Math.clz32(b.BYTES_PER_ELEMENT));
|
|
2397
|
+
} else p.texSubImage2D(t, e, r, o, i, c, s, l, null);
|
|
2398
|
+
else b = null, h && (b = $e(l, s, i, c, h)), p.texSubImage2D(t, e, r, o, i, c, s, l, b);
|
|
2399
|
+
}, gb: function(t, e) {
|
|
2400
|
+
p.uniform1f(L(t), e);
|
|
2401
|
+
}, hb: function(t, e, r) {
|
|
2402
|
+
if (2 <= R.version) e && p.uniform1fv(L(t), F, r >> 2, e);
|
|
2403
|
+
else {
|
|
2404
|
+
if (288 >= e) for (var o = Ct[e - 1], i = 0; i < e; ++i) o[i] = F[r + 4 * i >> 2];
|
|
2405
|
+
else o = F.subarray(r >> 2, r + 4 * e >> 2);
|
|
2406
|
+
p.uniform1fv(L(t), o);
|
|
2407
|
+
}
|
|
2408
|
+
}, Uc: function(t, e) {
|
|
2409
|
+
p.uniform1i(L(t), e);
|
|
2410
|
+
}, Vc: function(t, e, r) {
|
|
2411
|
+
if (2 <= R.version) e && p.uniform1iv(L(t), E, r >> 2, e);
|
|
2412
|
+
else {
|
|
2413
|
+
if (288 >= e) for (var o = Xt[e - 1], i = 0; i < e; ++i) o[i] = E[r + 4 * i >> 2];
|
|
2414
|
+
else o = E.subarray(r >> 2, r + 4 * e >> 2);
|
|
2415
|
+
p.uniform1iv(L(t), o);
|
|
2416
|
+
}
|
|
2417
|
+
}, Wc: function(t, e, r) {
|
|
2418
|
+
p.uniform2f(L(t), e, r);
|
|
2419
|
+
}, Xc: function(t, e, r) {
|
|
2420
|
+
if (2 <= R.version) e && p.uniform2fv(L(t), F, r >> 2, 2 * e);
|
|
2421
|
+
else {
|
|
2422
|
+
if (144 >= e) for (var o = Ct[2 * e - 1], i = 0; i < 2 * e; i += 2) o[i] = F[r + 4 * i >> 2], o[i + 1] = F[r + (4 * i + 4) >> 2];
|
|
2423
|
+
else o = F.subarray(r >> 2, r + 8 * e >> 2);
|
|
2424
|
+
p.uniform2fv(L(t), o);
|
|
2425
|
+
}
|
|
2426
|
+
}, Tc: function(t, e, r) {
|
|
2427
|
+
p.uniform2i(L(t), e, r);
|
|
2428
|
+
}, Sc: function(t, e, r) {
|
|
2429
|
+
if (2 <= R.version) e && p.uniform2iv(L(t), E, r >> 2, 2 * e);
|
|
2430
|
+
else {
|
|
2431
|
+
if (144 >= e) for (var o = Xt[2 * e - 1], i = 0; i < 2 * e; i += 2) o[i] = E[r + 4 * i >> 2], o[i + 1] = E[r + (4 * i + 4) >> 2];
|
|
2432
|
+
else o = E.subarray(r >> 2, r + 8 * e >> 2);
|
|
2433
|
+
p.uniform2iv(L(t), o);
|
|
2434
|
+
}
|
|
2435
|
+
}, Rc: function(t, e, r, o) {
|
|
2436
|
+
p.uniform3f(L(t), e, r, o);
|
|
2437
|
+
}, Qc: function(t, e, r) {
|
|
2438
|
+
if (2 <= R.version) e && p.uniform3fv(L(t), F, r >> 2, 3 * e);
|
|
2439
|
+
else {
|
|
2440
|
+
if (96 >= e) for (var o = Ct[3 * e - 1], i = 0; i < 3 * e; i += 3) o[i] = F[r + 4 * i >> 2], o[i + 1] = F[r + (4 * i + 4) >> 2], o[i + 2] = F[r + (4 * i + 8) >> 2];
|
|
2441
|
+
else o = F.subarray(r >> 2, r + 12 * e >> 2);
|
|
2442
|
+
p.uniform3fv(L(t), o);
|
|
2443
|
+
}
|
|
2444
|
+
}, Pc: function(t, e, r, o) {
|
|
2445
|
+
p.uniform3i(L(t), e, r, o);
|
|
2446
|
+
}, Oc: function(t, e, r) {
|
|
2447
|
+
if (2 <= R.version) e && p.uniform3iv(L(t), E, r >> 2, 3 * e);
|
|
2448
|
+
else {
|
|
2449
|
+
if (96 >= e) for (var o = Xt[3 * e - 1], i = 0; i < 3 * e; i += 3) o[i] = E[r + 4 * i >> 2], o[i + 1] = E[r + (4 * i + 4) >> 2], o[i + 2] = E[r + (4 * i + 8) >> 2];
|
|
2450
|
+
else o = E.subarray(r >> 2, r + 12 * e >> 2);
|
|
2451
|
+
p.uniform3iv(L(t), o);
|
|
2452
|
+
}
|
|
2453
|
+
}, Nc: function(t, e, r, o, i) {
|
|
2454
|
+
p.uniform4f(L(t), e, r, o, i);
|
|
2455
|
+
}, Mc: function(t, e, r) {
|
|
2456
|
+
if (2 <= R.version) e && p.uniform4fv(L(t), F, r >> 2, 4 * e);
|
|
2457
|
+
else {
|
|
2458
|
+
if (72 >= e) {
|
|
2459
|
+
var o = Ct[4 * e - 1], i = F;
|
|
2460
|
+
r >>= 2;
|
|
2461
|
+
for (var c = 0; c < 4 * e; c += 4) {
|
|
2462
|
+
var s = r + c;
|
|
2463
|
+
o[c] = i[s], o[c + 1] = i[s + 1], o[c + 2] = i[s + 2], o[c + 3] = i[s + 3];
|
|
2464
|
+
}
|
|
2465
|
+
} else o = F.subarray(r >> 2, r + 16 * e >> 2);
|
|
2466
|
+
p.uniform4fv(L(t), o);
|
|
2467
|
+
}
|
|
2468
|
+
}, Ac: function(t, e, r, o, i) {
|
|
2469
|
+
p.uniform4i(L(t), e, r, o, i);
|
|
2470
|
+
}, Bc: function(t, e, r) {
|
|
2471
|
+
if (2 <= R.version) e && p.uniform4iv(L(t), E, r >> 2, 4 * e);
|
|
2472
|
+
else {
|
|
2473
|
+
if (72 >= e) for (var o = Xt[4 * e - 1], i = 0; i < 4 * e; i += 4) o[i] = E[r + 4 * i >> 2], o[i + 1] = E[r + (4 * i + 4) >> 2], o[i + 2] = E[r + (4 * i + 8) >> 2], o[i + 3] = E[r + (4 * i + 12) >> 2];
|
|
2474
|
+
else o = E.subarray(r >> 2, r + 16 * e >> 2);
|
|
2475
|
+
p.uniform4iv(L(t), o);
|
|
2476
|
+
}
|
|
2477
|
+
}, Cc: function(t, e, r, o) {
|
|
2478
|
+
if (2 <= R.version) e && p.uniformMatrix2fv(L(t), !!r, F, o >> 2, 4 * e);
|
|
2479
|
+
else {
|
|
2480
|
+
if (72 >= e) for (var i = Ct[4 * e - 1], c = 0; c < 4 * e; c += 4) i[c] = F[o + 4 * c >> 2], i[c + 1] = F[o + (4 * c + 4) >> 2], i[c + 2] = F[o + (4 * c + 8) >> 2], i[c + 3] = F[o + (4 * c + 12) >> 2];
|
|
2481
|
+
else i = F.subarray(o >> 2, o + 16 * e >> 2);
|
|
2482
|
+
p.uniformMatrix2fv(L(t), !!r, i);
|
|
2483
|
+
}
|
|
2484
|
+
}, Dc: function(t, e, r, o) {
|
|
2485
|
+
if (2 <= R.version) e && p.uniformMatrix3fv(L(t), !!r, F, o >> 2, 9 * e);
|
|
2486
|
+
else {
|
|
2487
|
+
if (32 >= e) for (var i = Ct[9 * e - 1], c = 0; c < 9 * e; c += 9) i[c] = F[o + 4 * c >> 2], i[c + 1] = F[o + (4 * c + 4) >> 2], i[c + 2] = F[o + (4 * c + 8) >> 2], i[c + 3] = F[o + (4 * c + 12) >> 2], i[c + 4] = F[o + (4 * c + 16) >> 2], i[c + 5] = F[o + (4 * c + 20) >> 2], i[c + 6] = F[o + (4 * c + 24) >> 2], i[c + 7] = F[o + (4 * c + 28) >> 2], i[c + 8] = F[o + (4 * c + 32) >> 2];
|
|
2488
|
+
else i = F.subarray(o >> 2, o + 36 * e >> 2);
|
|
2489
|
+
p.uniformMatrix3fv(L(t), !!r, i);
|
|
2490
|
+
}
|
|
2491
|
+
}, Ec: function(t, e, r, o) {
|
|
2492
|
+
if (2 <= R.version) e && p.uniformMatrix4fv(L(t), !!r, F, o >> 2, 16 * e);
|
|
2493
|
+
else {
|
|
2494
|
+
if (18 >= e) {
|
|
2495
|
+
var i = Ct[16 * e - 1], c = F;
|
|
2496
|
+
o >>= 2;
|
|
2497
|
+
for (var s = 0; s < 16 * e; s += 16) {
|
|
2498
|
+
var l = o + s;
|
|
2499
|
+
i[s] = c[l], i[s + 1] = c[l + 1], i[s + 2] = c[l + 2], i[s + 3] = c[l + 3], i[s + 4] = c[l + 4], i[s + 5] = c[l + 5], i[s + 6] = c[l + 6], i[s + 7] = c[l + 7], i[s + 8] = c[l + 8], i[s + 9] = c[l + 9], i[s + 10] = c[l + 10], i[s + 11] = c[l + 11], i[s + 12] = c[l + 12], i[s + 13] = c[l + 13], i[s + 14] = c[l + 14], i[s + 15] = c[l + 15];
|
|
2500
|
+
}
|
|
2501
|
+
} else i = F.subarray(o >> 2, o + 64 * e >> 2);
|
|
2502
|
+
p.uniformMatrix4fv(L(t), !!r, i);
|
|
2503
|
+
}
|
|
2504
|
+
}, Fc: function(t) {
|
|
2505
|
+
t = st[t], p.useProgram(t), p.Re = t;
|
|
2506
|
+
}, Gc: function(t, e) {
|
|
2507
|
+
p.vertexAttrib1f(t, e);
|
|
2508
|
+
}, Hc: function(t, e) {
|
|
2509
|
+
p.vertexAttrib2f(t, F[e >> 2], F[e + 4 >> 2]);
|
|
2510
|
+
}, Ic: function(t, e) {
|
|
2511
|
+
p.vertexAttrib3f(t, F[e >> 2], F[e + 4 >> 2], F[e + 8 >> 2]);
|
|
2512
|
+
}, Jc: function(t, e) {
|
|
2513
|
+
p.vertexAttrib4f(t, F[e >> 2], F[e + 4 >> 2], F[e + 8 >> 2], F[e + 12 >> 2]);
|
|
2514
|
+
}, kc: function(t, e) {
|
|
2515
|
+
p.vertexAttribDivisor(t, e);
|
|
2516
|
+
}, lc: function(t, e, r, o, i) {
|
|
2517
|
+
p.vertexAttribIPointer(t, e, r, o, i);
|
|
2518
|
+
}, Kc: function(t, e, r, o, i, c) {
|
|
2519
|
+
p.vertexAttribPointer(t, e, r, !!o, i, c);
|
|
2520
|
+
}, Lc: function(t, e, r, o) {
|
|
2521
|
+
p.viewport(t, e, r, o);
|
|
2522
|
+
}, qb: function(t, e, r, o) {
|
|
2523
|
+
p.waitSync(Mt[t], e, (r >>> 0) + 4294967296 * o);
|
|
2524
|
+
}, W: On, F: Gn, E: jn, X: Ln, Ib: Vn, V: Wn, U: Nn, A: $n, B: Un, D: Hn, L: Dn, sb: (t, e, r, o) => Mn(t, e, r, o) };
|
|
2525
|
+
(function() {
|
|
2526
|
+
function t(r) {
|
|
2527
|
+
if (D = r = r.exports, ie = D.Yc, nr(), K = D._c, ir.unshift(D.Zc), St--, g.monitorRunDependencies && g.monitorRunDependencies(St), St == 0 && Ut) {
|
|
2528
|
+
var o = Ut;
|
|
2529
|
+
Ut = null, o();
|
|
2530
|
+
}
|
|
2531
|
+
return r;
|
|
2532
|
+
}
|
|
2533
|
+
var e = { a: Bn };
|
|
2534
|
+
if (St++, g.monitorRunDependencies && g.monitorRunDependencies(St), g.instantiateWasm) try {
|
|
2535
|
+
return g.instantiateWasm(e, t);
|
|
2536
|
+
} catch (r) {
|
|
2537
|
+
wt("Module.instantiateWasm callback failed with error: " + r), re(r);
|
|
2538
|
+
}
|
|
2539
|
+
return en(e, function(r) {
|
|
2540
|
+
t(r.instance);
|
|
2541
|
+
}).catch(re), {};
|
|
2542
|
+
})();
|
|
2543
|
+
var bt = g._free = (t) => (bt = g._free = D.$c)(t), Ae = g._malloc = (t) => (Ae = g._malloc = D.ad)(t), Wr = (t) => (Wr = D.bd)(t);
|
|
2544
|
+
g.__embind_initialize_bindings = () => (g.__embind_initialize_bindings = D.cd)();
|
|
2545
|
+
var nt = (t, e) => (nt = D.dd)(t, e), ot = () => (ot = D.ed)(), it = (t) => (it = D.fd)(t);
|
|
2546
|
+
g.dynCall_viji = (t, e, r, o, i) => (g.dynCall_viji = D.gd)(t, e, r, o, i), g.dynCall_vijiii = (t, e, r, o, i, c, s) => (g.dynCall_vijiii = D.hd)(t, e, r, o, i, c, s), g.dynCall_viiiiij = (t, e, r, o, i, c, s, l) => (g.dynCall_viiiiij = D.id)(t, e, r, o, i, c, s, l), g.dynCall_jii = (t, e, r) => (g.dynCall_jii = D.jd)(t, e, r), g.dynCall_vij = (t, e, r, o) => (g.dynCall_vij = D.kd)(t, e, r, o), g.dynCall_iiij = (t, e, r, o, i) => (g.dynCall_iiij = D.ld)(t, e, r, o, i), g.dynCall_iiiij = (t, e, r, o, i, c) => (g.dynCall_iiiij = D.md)(t, e, r, o, i, c), g.dynCall_viij = (t, e, r, o, i) => (g.dynCall_viij = D.nd)(t, e, r, o, i), g.dynCall_viiij = (t, e, r, o, i, c) => (g.dynCall_viiij = D.od)(t, e, r, o, i, c), g.dynCall_ji = (t, e) => (g.dynCall_ji = D.pd)(t, e), g.dynCall_iij = (t, e, r, o) => (g.dynCall_iij = D.qd)(t, e, r, o), g.dynCall_jiiiiii = (t, e, r, o, i, c, s) => (g.dynCall_jiiiiii = D.rd)(t, e, r, o, i, c, s), g.dynCall_jiiiiji = (t, e, r, o, i, c, s, l) => (g.dynCall_jiiiiji = D.sd)(t, e, r, o, i, c, s, l), g.dynCall_iijj = (t, e, r, o, i, c) => (g.dynCall_iijj = D.td)(t, e, r, o, i, c), g.dynCall_iiiji = (t, e, r, o, i, c) => (g.dynCall_iiiji = D.ud)(t, e, r, o, i, c), g.dynCall_iiji = (t, e, r, o, i) => (g.dynCall_iiji = D.vd)(t, e, r, o, i), g.dynCall_iijjiii = (t, e, r, o, i, c, s, l, h) => (g.dynCall_iijjiii = D.wd)(t, e, r, o, i, c, s, l, h), g.dynCall_vijjjii = (t, e, r, o, i, c, s, l, h, b) => (g.dynCall_vijjjii = D.xd)(t, e, r, o, i, c, s, l, h, b), g.dynCall_jiji = (t, e, r, o, i) => (g.dynCall_jiji = D.yd)(t, e, r, o, i), g.dynCall_viijii = (t, e, r, o, i, c, s) => (g.dynCall_viijii = D.zd)(t, e, r, o, i, c, s), g.dynCall_iiiiij = (t, e, r, o, i, c, s) => (g.dynCall_iiiiij = D.Ad)(t, e, r, o, i, c, s), g.dynCall_iiiiijj = (t, e, r, o, i, c, s, l, h) => (g.dynCall_iiiiijj = D.Bd)(t, e, r, o, i, c, s, l, h), g.dynCall_iiiiiijj = (t, e, r, o, i, c, s, l, h, b) => (g.dynCall_iiiiiijj = D.Cd)(t, e, r, o, i, c, s, l, h, b);
|
|
2547
|
+
function Dn(t, e, r, o, i) {
|
|
2548
|
+
var c = ot();
|
|
2549
|
+
try {
|
|
2550
|
+
K.get(t)(e, r, o, i);
|
|
2551
|
+
} catch (s) {
|
|
2552
|
+
if (it(c), s !== s + 0) throw s;
|
|
2553
|
+
nt(1, 0);
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
function Gn(t, e, r) {
|
|
2557
|
+
var o = ot();
|
|
2558
|
+
try {
|
|
2559
|
+
return K.get(t)(e, r);
|
|
2560
|
+
} catch (i) {
|
|
2561
|
+
if (it(o), i !== i + 0) throw i;
|
|
2562
|
+
nt(1, 0);
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
function Ln(t, e, r, o, i) {
|
|
2566
|
+
var c = ot();
|
|
2567
|
+
try {
|
|
2568
|
+
return K.get(t)(e, r, o, i);
|
|
2569
|
+
} catch (s) {
|
|
2570
|
+
if (it(c), s !== s + 0) throw s;
|
|
2571
|
+
nt(1, 0);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
function Hn(t, e, r, o) {
|
|
2575
|
+
var i = ot();
|
|
2576
|
+
try {
|
|
2577
|
+
K.get(t)(e, r, o);
|
|
2578
|
+
} catch (c) {
|
|
2579
|
+
if (it(i), c !== c + 0) throw c;
|
|
2580
|
+
nt(1, 0);
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
function On(t, e) {
|
|
2584
|
+
var r = ot();
|
|
2585
|
+
try {
|
|
2586
|
+
return K.get(t)(e);
|
|
2587
|
+
} catch (o) {
|
|
2588
|
+
if (it(r), o !== o + 0) throw o;
|
|
2589
|
+
nt(1, 0);
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
function jn(t, e, r, o) {
|
|
2593
|
+
var i = ot();
|
|
2594
|
+
try {
|
|
2595
|
+
return K.get(t)(e, r, o);
|
|
2596
|
+
} catch (c) {
|
|
2597
|
+
if (it(i), c !== c + 0) throw c;
|
|
2598
|
+
nt(1, 0);
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
function Un(t, e, r) {
|
|
2602
|
+
var o = ot();
|
|
2603
|
+
try {
|
|
2604
|
+
K.get(t)(e, r);
|
|
2605
|
+
} catch (i) {
|
|
2606
|
+
if (it(o), i !== i + 0) throw i;
|
|
2607
|
+
nt(1, 0);
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
function Wn(t, e, r, o, i, c, s, l, h, b) {
|
|
2611
|
+
var _ = ot();
|
|
2612
|
+
try {
|
|
2613
|
+
return K.get(t)(e, r, o, i, c, s, l, h, b);
|
|
2614
|
+
} catch (A) {
|
|
2615
|
+
if (it(_), A !== A + 0) throw A;
|
|
2616
|
+
nt(1, 0);
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
function $n(t, e) {
|
|
2620
|
+
var r = ot();
|
|
2621
|
+
try {
|
|
2622
|
+
K.get(t)(e);
|
|
2623
|
+
} catch (o) {
|
|
2624
|
+
if (it(r), o !== o + 0) throw o;
|
|
2625
|
+
nt(1, 0);
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
function Vn(t, e, r, o, i, c, s) {
|
|
2629
|
+
var l = ot();
|
|
2630
|
+
try {
|
|
2631
|
+
return K.get(t)(e, r, o, i, c, s);
|
|
2632
|
+
} catch (h) {
|
|
2633
|
+
if (it(l), h !== h + 0) throw h;
|
|
2634
|
+
nt(1, 0);
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
function Nn(t) {
|
|
2638
|
+
var e = ot();
|
|
2639
|
+
try {
|
|
2640
|
+
K.get(t)();
|
|
2641
|
+
} catch (r) {
|
|
2642
|
+
if (it(e), r !== r + 0) throw r;
|
|
2643
|
+
nt(1, 0);
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
var Ee;
|
|
2647
|
+
Ut = function t() {
|
|
2648
|
+
Ee || $r(), Ee || (Ut = t);
|
|
2649
|
+
};
|
|
2650
|
+
function $r() {
|
|
2651
|
+
function t() {
|
|
2652
|
+
if (!Ee && (Ee = !0, g.calledRun = !0, !er)) {
|
|
2653
|
+
if (xe(ir), Ke(g), g.onRuntimeInitialized && g.onRuntimeInitialized(), g.postRun) for (typeof g.postRun == "function" && (g.postRun = [g.postRun]); g.postRun.length; ) {
|
|
2654
|
+
var e = g.postRun.shift();
|
|
2655
|
+
ar.unshift(e);
|
|
2656
|
+
}
|
|
2657
|
+
xe(ar);
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
if (!(0 < St)) {
|
|
2661
|
+
if (g.preRun) for (typeof g.preRun == "function" && (g.preRun = [g.preRun]); g.preRun.length; ) Zr();
|
|
2662
|
+
xe(or), 0 < St || (g.setStatus ? (g.setStatus("Running..."), setTimeout(function() {
|
|
2663
|
+
setTimeout(function() {
|
|
2664
|
+
g.setStatus("");
|
|
2665
|
+
}, 1), t();
|
|
2666
|
+
}, 1)) : t());
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
if (g.preInit) for (typeof g.preInit == "function" && (g.preInit = [g.preInit]); 0 < g.preInit.length; ) g.preInit.pop()();
|
|
2670
|
+
return $r(), Je.ready;
|
|
2671
|
+
};
|
|
2672
|
+
})();
|
|
2673
|
+
typeof Pt == "object" && typeof vt == "object" ? vt.exports = te : typeof define == "function" && define.amd && define([], () => te);
|
|
2674
|
+
});
|
|
2675
|
+
const Jn = qn();
|
|
2676
|
+
export {
|
|
2677
|
+
Jn as default
|
|
2678
|
+
};
|