Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
describe what changed
nirholas54399c1eabee
diff --git a/STRUCTURE.md b/STRUCTURE.mdindex f5cb74e58..cb603481d 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -1,39 +1,30 @@# Repository Structure-Ready Player Me ships their platform across 30 public GitHub repos —-[visage](https://github.com/readyplayerme/visage),-[animation-library](https://github.com/readyplayerme/animation-library),-[rpm-react-avatar-creator](https://github.com/readyplayerme/rpm-react-avatar-creator),-[Example-iframe](https://github.com/readyplayerme/Example-iframe),-[content-validation-schemas](https://github.com/readyplayerme/content-validation-schemas),-several Unity/Unreal SDKs, and so on.--three.ws ships the same surfaces from a **single npm-workspaces monorepo**.-This file maps each RPM-equivalent surface to where it lives in this-repository, so external developers can find what they need without reading 50-top-level directories.+three.ws ships all platform surfaces from a **single npm-workspaces monorepo**.+This file maps each product surface to where it lives in this repository, so+external developers can find what they need without reading 50 top-level+directories.When an internal surface gains an external consumer that needs an independentrelease cadence, we promote it to its own published package (and optionally itsown repo via `git subtree split`). See [Promotion path](#promotion-path) at thebottom.-## RPM → three.ws surface map+## three.ws surface map-| Ready Player Me repo | three.ws equivalent | Status | Notes |+| Surface | Location | Status | Notes ||---|---|---|---|-| [visage](https://github.com/readyplayerme/visage) (web renderer) | [avatar-sdk/](avatar-sdk) `→ /viewer` | Published as `@three-ws/avatar` | Drop-in viewer with `<three-ws-avatar>` web component |-| [rpm-react-avatar-creator](https://github.com/readyplayerme/rpm-react-avatar-creator) | [avatar-sdk/](avatar-sdk) `→ /react` `/creator` | Published as `@three-ws/avatar` | Same package, React subpath |-| Avatar Creator (full app) | [character-studio/](character-studio) | Fork of [m3-org/CharacterStudio](https://github.com/M3-org/CharacterStudio), MIT, see [character-studio/LICENSE](character-studio/LICENSE) | Web-first character creator |-| [Example-iframe](https://github.com/readyplayerme/Example-iframe) | [examples/](examples) | In-repo | `embed-test.html`, `web-component.html`, `two-agents.html`, `minimal.html` |-| [animation-library](https://github.com/readyplayerme/animation-library) | [public/animations/](public/animations) + [scripts/build-animations.mjs](scripts/build-animations.mjs) | In-repo | Mixamo source FBX + GLB retargeting pipeline. **Not** derived from RPM's animation-library, whose license forbids redistribution outside RPM avatars |-| [content-validation-schemas](https://github.com/readyplayerme/content-validation-schemas) | [packages/avatar-schema/](packages/avatar-schema) | Published as `@three-ws/avatar-schema` | JSON Schema for on-chain avatar manifests — three.ws's differentiator |-| [Lyra-Sample](https://github.com/readyplayerme/Lyra-Sample), [VR-Demo](https://github.com/readyplayerme/VR-Demo) | [multiplayer/](multiplayer), [examples/coach-leo/](examples/coach-leo) | In-repo | Integration demos |-| [rpm-unity-sdk-core](https://github.com/readyplayerme/rpm-unity-sdk-core), [rpm-unreal-sdk](https://github.com/readyplayerme/rpm-unreal-sdk) | — | Out of scope | three.ws is browser-native; no Unity/Unreal SDKs planned |+| Web renderer / viewer | [avatar-sdk/](avatar-sdk) `→ /viewer` | Published as `@three-ws/avatar` | `<agent-3d>` web component |+| React avatar creator | [avatar-sdk/](avatar-sdk) `→ /react` `/creator` | Published as `@three-ws/avatar` | Same package, React subpath |+| Avatar builder (full app) | [character-studio/](character-studio) | Fork of [m3-org/CharacterStudio](https://github.com/M3-org/CharacterStudio), MIT, see [character-studio/LICENSE](character-studio/LICENSE) | Web-first character creator |+| Embed examples | [examples/](examples) | In-repo | `embed-test.html`, `web-component.html`, `two-agents.html`, `minimal.html` |+| Animation pipeline | [public/animations/](public/animations) + [scripts/build-animations.mjs](scripts/build-animations.mjs) | In-repo | Mixamo source FBX + GLB retargeting pipeline |+| Avatar schema | [packages/avatar-schema/](packages/avatar-schema) | Published as `@three-ws/avatar-schema` | JSON Schema for on-chain avatar manifests |+| Integration demos | [multiplayer/](multiplayer), [examples/coach-leo/](examples/coach-leo) | In-repo | Multiplayer and VR demos || Avatar service backend | [api/](api) + [workers/](workers) | In-repo | Vercel functions + Cloudflare workers |-| _(no RPM equivalent — our moat)_ | [contracts/](contracts) | In-repo | Foundry-based on-chain agent identity, ERC-8004 |-| _(no RPM equivalent — our moat)_ | [sdk/](sdk), [solana-agent-sdk/](solana-agent-sdk), [agent-payments-sdk/](agent-payments-sdk), [agent-protocol-sdk/](agent-protocol-sdk) | Published | Cross-chain agent SDKs |-| _(no RPM equivalent — our moat)_ | [mcp-server/](mcp-server), [mcp-bridge/](mcp-bridge) | Published as `@three-ws/mcp-server` | Model Context Protocol surface |+| On-chain identity | [contracts/](contracts) | In-repo | Foundry-based on-chain agent identity, ERC-8004 |+| Cross-chain SDKs | [sdk/](sdk), [solana-agent-sdk/](solana-agent-sdk), [agent-payments-sdk/](agent-payments-sdk), [agent-protocol-sdk/](agent-protocol-sdk) | Published | Cross-chain agent SDKs |+| MCP integration | [mcp-server/](mcp-server), [mcp-bridge/](mcp-bridge) | Published as `@three-ws/mcp-server` | Model Context Protocol surface |## npm workspacesdiff --git a/api/agents/8004/search.js b/api/agents/8004/search.jsindex 4d5722c24..58faaf75e 100644--- a/api/agents/8004/search.js+++ b/api/agents/8004/search.js@@ -122,23 +122,7 @@ export default wrap(async function handler(req, res) {if (e?.name === 'AbortError') {return error(res, 504, 'subgraph_timeout', 'subgraph query timed out');}- // Some older subgraph deployments do not support hasOASF in the return fields.- // Retry with a trimmed projection that omits it.- if (e?.message?.includes('hasOASF')) {- try {- rawAgents = await querySubgraph(subgraphUrl, {- where,- first: limit,- skip,- orderBy: 'updatedAt',- orderDirection: 'desc',- });- } catch (e2) {- return error(res, 502, 'subgraph_error', e2?.message || 'subgraph query failed');- }- } else {- return error(res, 502, 'subgraph_error', e?.message || 'subgraph query failed');- }+ return error(res, 502, 'subgraph_error', e?.message || 'subgraph query failed');}const agents = (rawAgents || []).map((a) => {@@ -162,7 +146,6 @@ export default wrap(async function handler(req, res) {a2aEndpoint: rf?.a2aEndpoint || null,webEndpoint: rf?.webEndpoint || null,emailEndpoint: rf?.emailEndpoint || null,- hasOASF: rf?.hasOASF ?? null,ens: rf?.ens || null,did: rf?.did || null,supportedTrusts: rf?.supportedTrusts || [],diff --git a/api/club/leaderboard.js b/api/club/leaderboard.jsindex 93efc09ef..a8dbd6c05 100644--- a/api/club/leaderboard.js+++ b/api/club/leaderboard.js@@ -38,7 +38,7 @@ async function runForWindow(window) {left join club_tips ton t.dancer = d.dancer and t.created_at >= now() - interval '1 hour'group by d.dancer, d.display_name- order by total_atomics::numeric desc, d.dancer asc+ order by coalesce(sum(t.amount_atomics), 0) desc, d.dancer asc`;case 'day':return sql`@@ -52,7 +52,7 @@ async function runForWindow(window) {left join club_tips ton t.dancer = d.dancer and t.created_at >= now() - interval '24 hours'group by d.dancer, d.display_name- order by total_atomics::numeric desc, d.dancer asc+ order by coalesce(sum(t.amount_atomics), 0) desc, d.dancer asc`;case 'week':return sql`@@ -66,7 +66,7 @@ async function runForWindow(window) {left join club_tips ton t.dancer = d.dancer and t.created_at >= now() - interval '7 days'group by d.dancer, d.display_name- order by total_atomics::numeric desc, d.dancer asc+ order by coalesce(sum(t.amount_atomics), 0) desc, d.dancer asc`;case 'all':return sql`@@ -79,7 +79,7 @@ async function runForWindow(window) {from club_dancer_wallets dleft join club_tips t on t.dancer = d.dancergroup by d.dancer, d.display_name- order by total_atomics::numeric desc, d.dancer asc+ order by coalesce(sum(t.amount_atomics), 0) desc, d.dancer asc`;default:return null;diff --git a/docs/avatar-creation.md b/docs/avatar-creation.mdindex e7fa7dc52..269de051f 100644--- a/docs/avatar-creation.md+++ b/docs/avatar-creation.md@@ -8,17 +8,17 @@ Your agent's 3D avatar is what makes it feel real. It is the face people see, th| Path | Time | Skill required | Best for ||------|------|----------------|----------|-| Photo → Avaturn AI | 3–5 min | None | A realistic avatar that looks like you |-| Character Studio | 10–20 min | None | A stylized avatar with full creative control |-| Upload your own GLB | 1 min | 3D modeling | An existing model from Blender, Mixamo, RPM, etc. |+| Photo → AI avatar | 3–5 min | None | A realistic avatar that looks like you |+| Avatar builder | 10–20 min | None | A stylized avatar with full creative control |+| Upload your own GLB | 1 min | 3D modeling | An existing model from Blender, Mixamo, or any 3D tool |Pick one and follow its section below. All three paths produce a GLB file that gets saved to your account.----## Path 1: Photo-to-avatar (Avaturn)+## Path 1: Photo-to-avatar-The fastest way to get a personalized 3D avatar is to take a set of photos and let Avaturn's AI generate a realistic model from them.+The fastest way to get a personalized 3D avatar is to take a set of photos and let the three.ws AI generate a realistic model from them.### What you need@@ -37,7 +37,7 @@ Good lighting and a plain background give the best results. Photos can be JPEG o4. Select your preferred **body type** and **avatar style** (v1 = photorealistic, v2 = stylized)5. Click **Submit**-The photos are prepared and sent to the Avaturn pipeline. After a brief processing step, an Avaturn editor opens in a modal where you can adjust clothing, accessories, and other details before exporting.+The photos are prepared and sent to the photo avatar pipeline. After a brief processing step, an avatar editor opens in a modal where you can adjust clothing, accessories, and other details before exporting.When you click export, the GLB is fetched and saved to your three.ws account automatically.@@ -52,15 +52,15 @@ For developers who want to understand what happens under the hood:1. [selfie-capture.js](../src/selfie-capture.js) manages the two-step UI: method choice (camera vs upload) and the three photo slots. It dispatches a `selfie:submit` CustomEvent when all three slots are filled.2. [selfie-pipeline.js](../src/selfie-pipeline.js) handles that event: downscales each photo to a max of 1024px, converts to base64 JPEG, then POSTs to `/api/onboarding/avaturn-session` with the photos and body/style preferences.3. The API responds with a `session_url`. The page redirects to `/#avatarSession=<encoded url>`.-4. The main app reads the hash and opens `AvatarCreator` ([src/avatar-creator.js](../src/avatar-creator.js)) with the session URL, which initialises the Avaturn SDK into a modal iframe.-5. The Avaturn iframe fires a `avatar.exported` postMessage when the user exports. The SDK catches this, fetches the GLB bytes, and calls `onExport(blob)`.+4. The main app reads the hash and opens `AvatarCreator` ([src/avatar-creator.js](../src/avatar-creator.js)) with the session URL, which initialises the photo avatar SDK into a modal iframe.+5. The avatar editor iframe fires a `avatar.exported` postMessage when the user exports. The SDK catches this, fetches the GLB bytes, and calls `onExport(blob)`.6. [account.js](../src/account.js) → `saveRemoteGlbToAccount()` presigns an upload URL, pushes the GLB to R2 storage, and creates the avatar record.----## Path 2: Character Studio+## Path 2: Avatar builder-Character Studio is a browser-based avatar builder for full creative control, no photo required.+The three.ws avatar builder is a browser-based tool for full creative control, no photo required.### Access@@ -89,13 +89,13 @@ Character Studio communicates with the parent app via `postMessage`. The message[avatar-creator.js](../src/avatar-creator.js) listens for this, wraps the `ArrayBuffer` in a `Blob`, and passes it to `saveRemoteGlbToAccount()`.-The Character Studio URL defaults to `http://localhost:5173` for local development. Production deployments configure it via the `VITE_CHARACTER_STUDIO_URL` environment variable.+The avatar builder URL defaults to `http://localhost:5173` for local development. Production deployments configure it via the `VITE_CHARACTER_STUDIO_URL` environment variable.---## Path 3: Upload your own GLB-If you already have a 3D model — from Blender, Maya, Mixamo, Ready Player Me, or anywhere else — you can upload it directly.+If you already have a 3D model — from Blender, Maya, Mixamo, or anywhere else — you can upload it directly.### Steps@@ -113,7 +113,7 @@ The three.ws viewer accepts any valid glTF 2.0 binary (`.glb`) file. If your mod| FBX | Blender: File → Import → FBX, then File → Export → glTF 2.0 (.glb) || OBJ | Blender: File → Import → Wavefront, rig if needed, export as glTF || VRM | VRM files are glTF 2.0 under the hood — rename `.vrm` to `.glb` and it loads |-| Ready Player Me | RPM avatars export as GLB and are compatible out of the box |+| Other avatar platforms | Most humanoid avatar tools (Mixamo, VRoid Hub, etc.) export GLB and are compatible out of the box || FBX via script | `/scripts/convert-fbx-to-glb.py` is available for batch conversion |---@@ -303,14 +303,14 @@ window.parent.postMessage({}, parentOrigin);```-If your tool uses the Avaturn SDK path, fire the `export` event with `{ url, urlType }` via the Avaturn postMessage protocol. See [avaturn-docs.md](../docs/avaturn-docs.md) for the full Avaturn iframe event reference.+If your tool uses the photo avatar SDK path, fire the `export` event with `{ url, urlType }` via the photo pipeline postMessage protocol.---## Troubleshooting**My avatar loads but has no facial expressions**-The model is missing morph targets. Export from Blender with "Shape Keys" enabled, or use Character Studio / Avaturn which include blend shapes by default.+The model is missing morph targets. Export from Blender with "Shape Keys" enabled, or use the three.ws avatar builder or photo pipeline — both include blend shapes by default.**Head movement doesn't work**The skeleton doesn't have a bone named `Head` or `Neck` (or a supported variant). Rename the bone in Blender or your DCC, or check for prefix issues (`mixamorigHead` is fine; `armature_root_Head` is not matched).diff --git a/docs/avaturn.md b/docs/avaturn.mddeleted file mode 100644index 28934194c..000000000--- a/docs/avaturn.md+++ /dev/null@@ -1,391 +0,0 @@-# Avaturn Documentation (scraped 2026-04-16)--Source: https://docs.avaturn.me/docs/what-is-avaturn/-------## 1. Getting Started--**URL:** https://docs.avaturn.me/docs/what-is-avaturn/--Avaturn is a realistic avatar creator and avatar system for games, apps and metaverses. The platform enables developers to delegate avatar generation and customization responsibilities while focusing on their core game experience.--The service allows users to design avatars with customizable elements including body shape, clothing, accessories, hairstyles, footwear, and eyewear. Upon completion, users receive a compiled ready-to-use 3D model that can replace existing characters.--Avaturn supports integration across multiple platforms: Unity, Unreal Engine, HTML + JavaScript (including Three.js), Android, and iOS. The platform offers free integration access via tutorials, with advanced customization available through an API and web SDK accessible through the developer portal.--Users can register at developer.avaturn.me to begin using Avaturn at no cost with no limits on the number of avatars created or number of exports.-------## 2. Importing--### 2.1 Blender--**URL:** https://docs.avaturn.me/docs/importing/blender/--Straightforward instructions for importing Avaturn avatars into Blender, leveraging the software's native support for GLTF 2.0 format.--Three-Step Import Process:--1. Initiate Import: Access Blender's import function to load your GLB file-2. Configure Settings: When the import dialog appears, set the bone direction parameter to "Blender" before finalizing the import process-3. Completion: Your avatar assets are now ready for use within your Blender project--If the imported avatar appears gray or you're uncertain whether textures have loaded correctly, click a visualization button to verify texture rendering. The process is streamlined due to Blender's robust compatibility with industry-standard GLTF 2.0 specifications.--### 2.2 Unity--**URL:** https://docs.avaturn.me/docs/importing/unity/--Avaturn exports avatars in GLB format, which Unity doesn't natively support. The documentation recommends using the "GLTFast" package to load GLB files either during editing or while the application runs.--Key Recommendations:--- Apply an environment map to prevent metallic clothing from appearing black-- GLTFast version 5.2 was tested, though other versions should work--Alternative Approach (Not Recommended): Users can alternatively convert GLB files to FBX format using Avaturn's conversion tool, then import the FBX directly into Unity. However, this method requires additional manual work—specifically importing metalness maps and adjusting material smoothness settings. This approach is less ideal than using GLTFast.--### 2.3 Unreal Engine--**URL:** https://docs.avaturn.me/docs/importing/unreal/--Two distinct import processes depending on your Unreal Engine version.--For UE 5.1 and newer: The procedure is streamlined since these versions natively support GLB files. Users simply need to drag and drop it onto the content manager to complete the import.--For UE 5.0 and earlier: Since native GLB support is unavailable, the workflow requires additional steps:--1. Download a GLB avatar from Avaturn-2. Convert the file to FBX format using Avaturn's dedicated converter tool, ensuring "Unreal" is selected in the converter settings-3. Import the FBX into the content browser with specific settings:- - Normals import method set to "Import Normals"- - Import uniform scale at 100.0 (adjustable based on asset scale)- - Enable "Invert normal maps"-4. Finalize the process, with occasional manual transparency corrections needed for eyewear elements--### 2.4 Meta Spark Studio--**URL:** https://docs.avaturn.me/docs/importing/spark_studio/--Brief documentation page with reference to a video tutorial contributed by Max Gomes demonstrating the import process for importing avatars into Meta's Spark Studio.--### 2.5 Convert GLB to FBX--**URL:** https://docs.avaturn.me/docs/importing/glb-to-fbx/--Avaturn exports 3D avatars in GLTF 2.0 format to ensure compatibility across different engines. For legacy workflows that require FBX files, Avaturn provides a conversion tool that outputs FBX files with separate texture maps, though materials may require manual adjustment.--Why GLTF 2.0 is Preferred:--- Open standard developed by the Khronos Group (versus Autodesk's proprietary FBX)-- JSON-based structure for readability and easier debugging-- Optimized for real-time rendering in web and VR applications-- Built-in support for Physically-Based Rendering (PBR) materials-- Better interoperability across engines and platforms-- Smaller file sizes with improved compression-- Extensible architecture for custom metadata--Engine-Specific Guidance:--- Unity: Strongly recommends using GLTFast package to load GLB directly, avoiding conversion-- Unreal Engine: Versions 5.1+ support native GLB importing. Older versions requiring FBX need specific import settings: Import Normals method, 100.0 uniform scale, and inverted normal maps enabled--### 2.6 Convert GLB to VRM--**URL:** https://docs.avaturn.me/docs/importing/glb-to-vrm/--Avaturn exports in GLTF 2.0 format to ensure the 3D model looks well in every engine that uses it. VR applications and VTubing software utilize the VRM file format for humanoid avatar data, which is built upon glTF 2.0. This means VRM-compatible software can open glTF 2.0 files, but the reverse compatibility does not apply.--### 2.7 Mixamo Animations--**URL:** https://docs.avaturn.me/docs/importing/mixamo/--While Avaturn exports models in GLB format, Mixamo cannot directly read this format. Converting GLB to FBX may cause issues, so the guide recommends an alternative approach:--Recommended Process:--1. Download a pre-tested Avaturn avatar in FBX format from their assets-2. Import that model into Mixamo and select desired animations-3. Export the animated avatar, choosing "without skin" for Blender or "with skin" for Unity-4. Apply the animation to your avatar--The key insight is that instead of converting your exported avatar, users should work with a Mixamo-compatible FBX template provided by Avaturn, then transfer the animations to their actual avatar model.-------## 3. Integration--### 3.1 Overview--**URL:** https://docs.avaturn.me/docs/integration/overview/--Avaturn functions as an integrable plugin for applications, games, and metaverse platforms. The workflow is straightforward: users trigger an avatar configurator within a game, customize their avatar, and the game then receives the completed avatar file.--Available SDKs and Integration Options:--- Unity integration-- Unreal Engine support-- HTML and JavaScript implementation-- Three.js framework support-- Android mobile development-- iOS mobile development--Basic integration follows published tutorials at no cost. Developers seeking advanced customization features can access enhanced tools through the API and web SDK, which require registration at the developer portal.--### 3.2 Avatar and Body Types--**URL:** https://docs.avaturn.me/docs/integration/bodies/--Avatar Types:--- **T1 Avatars:** Static faces that provide the most realistic avatar. Cannot use face bones or blendshapes for facial animation.-- **T2 Avatars:** Feature separate eyeballs and mouthhole structures, enabling facial animation through ARKit blendshapes and visemes. Slightly reduced recognizability compared to T1 models.--Body Shape Types: Two body presets are available: v2023 and v2024.--- **v2023:** The original body design iteration with unique skeletons per body shape that vary significantly from each other.-- **v2024:** An improved version with nearly identical skeletons across body shapes. "Skeletons are identical everywhere, but have a bit of stretch/compression of the shoulder joints. Legs, arm length, head bone is the same!" This design makes animation work easier while maintaining shape variety.--Both versions come in Female and Male configurations.--### 3.3 Web Integration - HTML--**URL:** https://docs.avaturn.me/docs/integration/web/html/--Instructions for integrating the Avaturn avatar creation tool into web applications.--Quick Start:--1. Add a div element with the ID `avaturn-sdk-container` to your HTML markup.-2. Include a module script that imports the AvaturnSDK from a CDN. Initialize the SDK with your custom subdomain and set up an event listener for the export event.--Key Configuration Details:--- **Subdomain Setup:** Create a project and obtain your own subdomain through developer.avaturn.me rather than using the limited "demo" subdomain.-- **Export Callback:** The SDK triggers an "export" event when users click the "Next" button, returning the generated avatar data for processing.-- **Styling Options:** CSS can be applied to the container element, with optional custom class names for the internal iframe.--Additional Resources: Complete SDK reference guide, plain HTML CodeSandbox example, React component examples, and package manager installation via npm (`@avaturn/sdk`).--### 3.4 Web Integration - Three.js--**URL:** https://docs.avaturn.me/docs/integration/web/threejs/--Integration overview for using Avaturn with Three.js. The platform functions by opening an iframe through which users can create avatars, which are then sent as GLB files to the Three.js app for rendering using GLTFLoader.--Developers are directed to a starter project available on GitHub at the `avaturn-threejs-example` repository. The documentation specifically mentions the `initAvaturn` function, which requires customization.--Required Configuration: Replace the demo subdomain with your own, created through the developer portal at developer.avaturn.me.--### 3.5 Web SDK - Introduction--**URL:** https://docs.avaturn.me/docs/integration/web/sdk/introduction/--Key Features:--- Receive callbacks on user actions (garment change, body change, export)-- Customize the list of assets available for a particular user-- Create custom UI for the avatar editor through programmatic asset switching--Prerequisites and Installation:--- Create a project at the developer portal and activate API access-- Install via npm: `npm install @avaturn/sdk`--Basic Implementation: Obtain a session link from the `/v1/sessions/new` API endpoint and initialize the SDK. Pass a DOM container to `sdk.init(...)`, which handles iframe creation. Optional parameters include custom CSS class names for the iframe.--**Important:** "Avaturn web SDK only works in conjunction with Avaturn API and is only available in the paid package."--### 3.6 Web SDK - Using Callbacks--**URL:** https://docs.avaturn.me/docs/integration/web/sdk/callbacks/--The Avaturn Web SDK enables developers to implement callbacks that respond to user interactions:--- Asset changed-- Body changed-- Avatar exported--Implementation: Obtain a URL using the `/v1/sessions/new` API request, then pass it to the SDK initialization function.--```js-const scene = await sdk.init(container, {- url: '<URL_RETURNED_BY_AVATURN_API>',- iframeClassName: '<CSS_CLASS_NAME_FOR_IFRAME>',- disableUi: false,-});-```--After initialization, attach event listeners using the `.on()` method to execute custom actions based on user interactions.--### 3.7 Web SDK - Implementing Custom UI--**URL:** https://docs.avaturn.me/docs/integration/web/sdk/custom-ui/--To disable Avaturn's default interface, pass `disableUi=true` to the initialization function.--Once disabled, the SDK provides access to asset and body data through specific methods. Developers can retrieve available options by calling methods that return lists of bodies and assets when the system is ready. Activate specific asset or body using dedicated setter functions that accept an ID parameter.--**Important Limitation:** In custom UI mode, developers will only receive the `'load'` callback event. Other callback functions that normally fire during user interactions will not trigger when using `disableUi` mode.--### 3.8 Unity Integration--**URL:** https://docs.avaturn.me/docs/integration/unity/--Supported Platforms: WebGL and Android/iOS integrations. Windows/Mac Standalone apps possible but require contacting the company directly.--Available Resources:--- Integration tutorial explaining how to add Avaturn to games-- SDK and sample code available on GitHub, supporting Android, iOS, and WebGL-- WebGL demo showcasing runtime avatar replacement-- WebGL demo featuring a third-person controller implementation--### 3.9 Unreal Engine Integration--**URL:** https://docs.avaturn.me/docs/integration/unreal/--Introduction to Avaturn integration for Unreal Engine 5.0 and later. Two SDK options:--1. Web-view based SDK — a browser-integrated approach-2. Native SDK — a direct integration method (newer)--As of June 2023 (version 2.0), supports T1 avatars (static head) and T2 avatars (blendshapes for facial animation). September 2023 update (v2.1) added skeletons for animation retargeting.--### 3.10 Unreal Engine - Webview SDK--**URL:** https://docs.avaturn.me/docs/integration/unreal/webview-sdk/--The Avaturn Unreal SDK enables integration of Avaturn avatars into Unreal Engine 5.0+. Capabilities include importing previously created avatars from the web platform and developing/editing avatars directly within UE-based applications.--Key Resources: Google Drive folder containing the SDK, demo project source code, and compiled builds for Windows and Android.--The framework builds upon the Ready Player Me Unreal framework. Copy necessary files from the downloaded demo project into your own projects.--Troubleshooting:--- Material loading failures in packaged builds: solved via cooking plugin directories-- Multiplayer functionality requiring proper httpURL configuration in developer settings--### 3.11 Android Integration--**URL:** https://docs.avaturn.me/docs/integration/mobile/android/--"Avaturn operates through native WebView, no extra libraries are required."--Example project: https://github.com/avaturn/avaturn-android-example--Modify `MainActivity.java` to replace the demo domain with your own project subdomain or API-provided link.--### 3.12 iOS Integration--**URL:** https://docs.avaturn.me/docs/integration/mobile/ios/--Integration for native Swift iOS applications. Operates through a native WebView without requiring additional libraries.--Example project: https://github.com/avaturn/ios-example--Update the URL initialization in `WebViewController.swift` from the demo domain to your own project URL.--### 3.13 API - Introduction--**URL:** https://docs.avaturn.me/docs/integration/api/introduction/--Key Capabilities:--- Integrate Avaturn while bypassing the sign-in interface (use your own authentication method)-- Customize user workflows-- Upload selfies directly rather than requiring users to scan through the UI-- Implement custom interfaces using the web SDK with event callbacks-- Generate avatar images for profile pictures-- Utilize native SDKs for Unreal and Unity--Getting Started:--1. Create a project at the developer portal-2. Generate an API authentication token-3. Maintain a paid subscription plan — **the API is not available on the free plan**-------## 4. UX Customization--### 4.1 Overview--**URL:** https://docs.avaturn.me/docs/ux_customization/overview/--"Avaturn can be easily customized and extended with additional content."--Key Features:--- Upload personalized looks and accessories-- Adjust UI color schemes-- Modify the avatar's environment setting-- Incorporate branded logos--Getting Started: Create a project through the developer portal at developer.avaturn.me.--### 4.2 Custom Assets - Getting Started--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/intro/--Creating custom assets is straightforward: "just grab one of our template avatars and create an asset to look good on it." Developers don't need separate versions for different body types — the platform automatically adjusts assets across all body variations.--Avatar Resources: Two downloadable template avatars — male body template and female body template, both in T-pose. Can switch to A-pose temporarily for simulation purposes before reverting to T-pose.--"You don't want pose-related wrinkles to be baked into the garment."--### 4.3 Custom Assets - Clothing--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/clothing/--Key Requirements:--- Create an alpha mask for the avatar to hide parts covered by clothing (prevents visibility issues from deformations)-- Asset must share the same skeleton as the avatar with correct skinning weights (manual painting recommended)-- The mesh and avatar require proper alignment with identity global transforms-- Assets should be created at the same location as the avatar without moving it--Uploading: Access the developer portal's asset management panel, select the clothing tab, and upload both avatar and asset files in `.glb` format. Processing takes approximately 30 seconds. Verify the asset functions properly across all avatar body types before saving.--### 4.4 Custom Assets - Footwear--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/footwear/--Pipeline is the same as for clothing. Key distinction: footwear textures are compressed to 512 pixels by default, whereas clothing textures use 1024 pixels.--### 4.5 Custom Assets - Eyewear--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/eyewear/--Guidelines:--- "The lower polycount the better" for mesh optimization-- Glasses typically consist of two parts: frame and lens-- Lens uses translucent material; frame uses another material type--Recoloring: The system recognizes a mesh portion as recolorable if its material name **starts with** `lens`.--### 4.6 Custom Assets - Hair--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/hair/--Haircap: An additional texture applied to the back of the head to minimize visual artifacts from transparent hair textures. Especially useful for hairstyles exposing head skin (bald, mohawk styles).--Recoloring: The recoloring mechanism "maps grayscale diffuse texture into the user-selected color." Darker gray values produce darker shades; lighter grays yield lighter colors. Can be toggled during asset upload.--Hats: Design hats independently of hair by following the clothing pipeline and defining an alpha map.--Mixing Hair with Hats: To prevent recoloring on accessories, include **no_ramp** in the accessory mesh's material name. Alternatively, disable recoloring entirely during upload.--### 4.7 Custom Assets - General Guidelines--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/general_guidelines/--Technical Specifications:--- **Polygon Count:** No more than 7k triangles for the look (top + bottom) to ensure compatibility with older devices and slower connections.-- **Materials:** GLTF 2.0 format with PBR material pipelines. Supported maps: diffuse, normals, occlusion, roughness, metalness. Use a single opaque material (or alpha-clipped), with an optional separate alpha blend material.-- **Texture Resolution:** 1K resolution recommended; lower resolutions are preferable. Higher resolutions (2K/4K) may cause noticeable loading delays in browsers due to network bandwidth, CPU-to-GPU data transfer, and real-time shader compilation constraints.diff --git a/docs/configuration.md b/docs/configuration.mdindex 14932a765..d53ede9dc 100644--- a/docs/configuration.md+++ b/docs/configuration.md@@ -192,16 +192,16 @@ Both should be the same value. Get from [dashboard.privy.io](https://dashboard.p### Avatar Pipeline#### `VITE_CHARACTER_STUDIO_URL`-**Optional.** Origin where the Character Studio in-browser avatar builder is hosted. Defaults to `http://localhost:5173` in dev and `https://studio.three.ws` in production.+**Optional.** Origin where the three.ws avatar builder is hosted. Defaults to `http://localhost:5173` in dev and `https://studio.three.ws` in production.```VITE_CHARACTER_STUDIO_URL=https://studio.three.ws```-Character Studio is an open-source 3D avatar editor (full body customisation — hair, clothing, accessories, skin tone, proportions). It runs as a separate Vite/React app under `character-studio/` in this monorepo and posts the exported GLB back to the parent via `postMessage`. Ready Player Me previously fulfilled this role; after its 2026 acquisition, Character Studio is the recommended replacement and is fully drop-in compatible — same humanoid skeleton naming, ARKit `viseme_*` blendshapes, and Mixamo animation support.+The three.ws avatar builder is an open-source 3D avatar editor (full body customisation — hair, clothing, accessories, skin tone, proportions). It runs as a separate Vite/React app under `character-studio/` in this monorepo and posts the exported GLB back to the parent via `postMessage`. It is fully compatible with the three.ws avatar runtime — same humanoid skeleton naming, ARKit `viseme_*` blendshapes, and Mixamo animation support.#### `AVATURN_API_KEY`-**Optional.** API key for the Avaturn photo-to-avatar pipeline. Used server-side by `/api/onboarding/avaturn-session` to exchange selfie photos for a session URL.+**Optional.** API key for the photo-to-avatar pipeline. Used server-side by `/api/onboarding/avaturn-session` to exchange selfie photos for a session URL.```AVATURN_API_KEY=xxxxx@@ -210,21 +210,21 @@ AVATURN_API_KEY=xxxxxSign up at [avaturn.me/developer](https://avaturn.me/developer).#### `AVATURN_API_URL`-**Optional.** Override for self-hosted or staging Avaturn deployments. Defaults to `https://api.avaturn.me`.+**Optional.** Override for self-hosted or staging photo pipeline deployments. Defaults to `https://api.avaturn.me`.```AVATURN_API_URL=https://api.avaturn.me```#### `VITE_AVATURN_EDITOR_URL`-**Optional.** URL for the hosted Avaturn editor (no photos required, opened by the "Use default avatar" card at `/create`).+**Optional.** URL for the hosted avatar editor (no photos required, opened by the "Use default avatar" card at `/create`).```VITE_AVATURN_EDITOR_URL=https://editor.avaturn.me/```#### `VITE_AVATURN_DEVELOPER_ID`-**Optional.** Developer ID appended as a query parameter to the Avaturn editor URL.+**Optional.** Developer ID appended as a query parameter to the avatar editor URL.```VITE_AVATURN_DEVELOPER_ID=xxxxxdiff --git a/docs/deployment.md b/docs/deployment.mdindex 21866e188..da7239bcd 100644--- a/docs/deployment.md+++ b/docs/deployment.md@@ -104,15 +104,14 @@ Without Redis, rate limits run in-memory per serverless instance. This is fine f### Avatar creation```env-# Character Studio — origin where the in-browser avatar builder iframe is hosted.+# Avatar builder — origin where the in-browser avatar builder iframe is hosted.# Defaults to http://localhost:5173 in dev. Production deployments should host the# character-studio/ workspace (it is a separate Vite/React app) and point this env-# var at its origin. Character Studio replaces the Ready Player Me iframe that was-# previously used here — same export contract, same humanoid rig, but open-source+# var at its origin. Same export contract, same humanoid rig, open-source# and self-hostable.VITE_CHARACTER_STUDIO_URL=https://studio.three.ws-# Avaturn — photo-to-avatar pipeline+# Photo-to-avatar pipeline# Get key at https://avaturn.me/developerAVATURN_API_KEY=AVATURN_API_URL=https://api.avaturn.me@@ -537,7 +536,7 @@ After deploying, run through these checks to verify the instance is healthy:|---|---|| Viewer | Load the app and drag-drop a GLB file || Wallet sign-in | Connect MetaMask — SIWE challenge + verify |-| Avatar creation | Navigate to `/create` — Character Studio (or Avaturn) iframe loads |+| Avatar creation | Navigate to `/create` — avatar builder iframe loads || Agent page | Visit `/agent/:id` — 3D viewer with chat overlay || Embed | Check `/agent/:id/embed` loads without auth, can be iframed || Dashboard | Navigate to `/dashboard` — shows your agents |diff --git a/docs/internal/PROGRESS.md b/docs/internal/PROGRESS.mdindex 4cfda2a44..b2ab7cee4 100644--- a/docs/internal/PROGRESS.md+++ b/docs/internal/PROGRESS.md@@ -72,7 +72,7 @@ Rails:**Build:** `npx vite build` → ✓ no new warnings.**Caveats:**-- The framing math assumes the avatar root sits with feet on the floor (Y starts near 0). For models authored at hip-height origins, full preset can clip the legs. Acceptable for now since every avatar produced via Avaturn / Mixamo / RPM-style pipelines uses a foot-origin convention.+- The framing math assumes the avatar root sits with feet on the floor (Y starts near 0). For models authored at hip-height origins, full preset can clip the legs. Acceptable for now since every avatar produced via Avaturn / Mixamo / standard humanoid pipelines uses a foot-origin convention.- `setCameraPreset` snaps the camera — no animated tween yet. The existing OrbitControls damping smooths user-driven motion but not programmatic jumps. A `lerpTo()` would polish this; deferred.## Item 4 — Avatar snapshot capture + thumbnail upload ✅diff --git a/docs/persona-hub.md b/docs/persona-hub.mdindex 43e251226..7d8fb8e52 100644--- a/docs/persona-hub.md+++ b/docs/persona-hub.md@@ -4,7 +4,7 @@Persona Hub is three.ws's cross-app sign-in: a user creates and stores their three.ws avatar once, then any tenant site embedding the `<three-ws-signin>` widget can request a short-lived JWT that bears the user's avatar URL. three.ws itself **issues** the token — from a popup served on `three.ws`, against the user's session cookie — and tenants **verify** it server-side, either offline against the published JWKS (when the deployment is running in ES256 mode) or by calling the public `/api/auth/persona/verify` endpoint. ES256 is the preferred algorithm because the public key is published at [/.well-known/jwks.json](https://three.ws/.well-known/jwks.json) and tenants can verify without a network round-trip.-The architectural analogue is Ready Player Me's Hub before its acquisition — one avatar, many sites — redesigned around three.ws's own auth stack.+The pattern is one avatar, many sites — redesigned around three.ws's own auth stack.---diff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex cc4eb76ca..fb4c74453 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -148,7 +148,7 @@ Organized by symptom. Find your problem, check the likely causes, follow the fix**Fix steps:**1. Check the Console. The avatar module logs a warning if expected morph targets aren't found on load.-2. Verify your GLB has morph targets named exactly as expected (case-sensitive). The emotion system maps to: `mouthSmile`, `mouthFrown`, `mouthOpen`, `cheekPuff`, `browInnerUp`, `browOuterUp`, `noseSneer`, `eyeSquint`, `eyesClosed`. These are the standard Ready Player Me / VRM names.+2. Verify your GLB has morph targets named exactly as expected (case-sensitive). The emotion system maps to: `mouthSmile`, `mouthFrown`, `mouthOpen`, `cheekPuff`, `browInnerUp`, `browOuterUp`, `noseSneer`, `eyeSquint`, `eyesClosed`. These are the standard VRM / humanoid avatar names.3. For head tilt and lean, the skeleton needs a `Head` or `Neck` bone. Open the model in Blender and check the armature.4. Confirm the avatar module is initialized: open DevTools Console and run `window.VIEWER?.agent_avatar`. If `undefined`, the avatar layer didn't boot — check for earlier errors in the console.diff --git a/docs/tutorials/personal-ai-site.md b/docs/tutorials/personal-ai-site.mdindex 284935a68..18368fe67 100644--- a/docs/tutorials/personal-ai-site.md+++ b/docs/tutorials/personal-ai-site.md@@ -72,7 +72,7 @@ Your avatar is the visual anchor of the whole experience. You have two paths:- Wear what you would want to be "remembered" in — this avatar represents you- Export as a Mixamo-rigged GLB so it picks up the built-in animation clips automatically-**Character avatar** — If privacy is a concern, or you prefer a stylised look, use any Mixamo-compatible GLB. The system works with any humanoid rig. Ready Player Me, Mixamo, and VRoid Hub all export compatible files.+**Character avatar** — If privacy is a concern, or you prefer a stylised look, use any Mixamo-compatible GLB. The system works with any humanoid rig. Mixamo, VRoid Hub, and three.ws Studio all export compatible files.Host your GLB somewhere publicly accessible — your own server, a GitHub Pages repo, or a CDN. The URL you end up with is your `body` attribute.diff --git a/docs/tutorials/upload-custom-glb.md b/docs/tutorials/upload-custom-glb.mdindex 6526d5da8..1ed60a5d1 100644--- a/docs/tutorials/upload-custom-glb.md+++ b/docs/tutorials/upload-custom-glb.md@@ -18,7 +18,7 @@ This tutorial covers the whole pipeline. Where compatible GLBs come from, what mA GLB is just a binary glTF — a 3D scene packaged in a single file. The runtime accepts any valid glTF 2.0 GLB, but to function as a *conversational agent body* it needs three things on top of the basic geometry:-1. **A skeleton (armature) the runtime can read.** The bones should follow a humanoid pattern — head, neck, spine, two arms, two legs. Mixamo, Ready Player Me, and Avaturn all output skeletons that the runtime understands directly.+1. **A skeleton (armature) the runtime can read.** The bones should follow a humanoid pattern — head, neck, spine, two arms, two legs. Mixamo and most humanoid avatar pipelines output skeletons that the runtime understands directly.2. **An idle animation clip.** Without an idle, the avatar stands in T-pose between turns, which looks like a broken model. Any clip whose name contains "idle" (case-insensitive) works.3. **At least one talk-style clip.** Used while the agent is speaking. Names containing "talk", "yes", or "wave" all match the runtime's hint search.@@ -52,19 +52,19 @@ Workflow:Mixamo characters work *out of the box* with the runtime. This is the recommended path if you don't already have a model.-### Ready Player Me+### three.ws Studio-[Ready Player Me](https://readyplayer.me) lets you create a stylised, selfie-based avatar in two minutes. The download is a single GLB with a clean skeleton.+[three.ws Studio](https://studio.three.ws) lets you create a stylised avatar in minutes with full body customisation. The download is a single GLB with a clean skeleton and Mixamo-compatible rig.Workflow:-1. Create an avatar at readyplayer.me.-2. From the developer dashboard, download the GLB.+1. Open [three.ws Studio](https://studio.three.ws).+2. Customise your avatar and click **Export**.3. The GLB has the body and skin but no animations baked in — you'll need to add at least an idle clip. See Step 5 for adding clips with `gltf-transform`.-### Avaturn+### Photo-to-avatar-[Avaturn](https://avaturn.me) is similar to Ready Player Me but tends to produce more realistic faces from photos. The export is also a clean GLB; animations are pulled from a Mixamo-compatible rig, so the same workflow applies.+The three.ws photo pipeline generates a realistic humanoid avatar from three face photos. The export is a clean GLB; animations are pulled from a Mixamo-compatible rig, so the same workflow applies.### Blender (custom, full control)@@ -364,7 +364,7 @@ Each one should trigger the corresponding clip. If a clip you expect doesn't firThe full custom-GLB pipeline:-- Compatible avatars come from Mixamo, Ready Player Me, Avaturn, or Blender — all four produce something the runtime understands+- Compatible avatars come from Mixamo, three.ws Studio, the photo pipeline, or Blender — all produce something the runtime understands- The runtime needs a humanoid skeleton, an idle clip, and a talk clip; it likes a wave and a celebrate too- The validator at [three.ws/validation](https://three.ws/validation) catches every common failure before upload- Mixamo's `mixamo.com` clip names need renaming so the hint search finds themdiff --git a/migrations/20260510000000_avatars_featured_views.sql b/migrations/20260510000000_avatars_featured_views.sqlindex f9f651ad8..999b70f94 100644--- a/migrations/20260510000000_avatars_featured_views.sql+++ b/migrations/20260510000000_avatars_featured_views.sql@@ -21,8 +21,7 @@ WHERE deleted_at IS NULLAND visibility = 'public'AND (name ILIKE 'CZ'- OR name ILIKE 'LittlestTokyo'- OR name ILIKE 'Soldier%'+OR name ILIKE 'Soldier%'OR name ILIKE 'Robot%Expressive'OR name ILIKE 'Floating%Character'OR name ILIKE 'Stork'diff --git a/package-lock.json b/package-lock.jsonindex ac2452343..2a963ed03 100644--- a/package-lock.json+++ b/package-lock.json@@ -17,7 +17,8 @@"mcp-server","multiplayer","packages/avatar-schema",- "packages/avatar-cli"+ "packages/avatar-cli",+ "packages/viewer-presets"],"dependencies": {"@0xsplits/splits-sdk": "^6.5.0",@@ -19912,6 +19913,10 @@"resolved": "packages/avatar-schema","link": true},+ "node_modules/@three-ws/viewer-presets": {+ "resolved": "packages/viewer-presets",+ "link": true+ },"node_modules/@three.ws/multiplayer": {"resolved": "multiplayer","link": true@@ -48135,6 +48140,22 @@"engines": {"node": ">=18"}+ },+ "packages/viewer-presets": {+ "name": "@three-ws/viewer-presets",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "three": ">=0.150.0"+ },+ "peerDependenciesMeta": {+ "three": {+ "optional": true+ }+ }}}}diff --git a/package.json b/package.jsonindex 4b5496e15..2445a98bc 100644--- a/package.json+++ b/package.json@@ -30,7 +30,8 @@"mcp-server","multiplayer","packages/avatar-schema",- "packages/avatar-cli"+ "packages/avatar-cli",+ "packages/viewer-presets"],"main": "src/app.js","browserslist": [diff --git a/packages/avatar-cli/src/cli.js b/packages/avatar-cli/src/cli.jsold mode 100644new mode 100755diff --git a/packages/viewer-presets/package-lock.json b/packages/viewer-presets/package-lock.jsonnew file mode 100644index 000000000..fbfe104f9--- /dev/null+++ b/packages/viewer-presets/package-lock.json@@ -0,0 +1,35 @@+{+ "name": "@three-ws/viewer-presets",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "@three-ws/viewer-presets",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "workspaces": [+ "agent-payments-sdk",+ "avatar-sdk",+ "character-studio",+ "mcp-bridge",+ "mcp-server",+ "multiplayer",+ "packages/avatar-schema",+ "packages/avatar-cli",+ "packages/viewer-presets"+ ],+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "three": ">=0.150.0"+ },+ "peerDependenciesMeta": {+ "three": {+ "optional": true+ }+ }+ }+ }+}diff --git a/packages/viewer-presets/package.json b/packages/viewer-presets/package.jsonnew file mode 100644index 000000000..dae52a49f--- /dev/null+++ b/packages/viewer-presets/package.json@@ -0,0 +1,59 @@+{+ "name": "@three-ws/viewer-presets",+ "version": "0.1.0",+ "description": "Tuned visual presets for three.ws avatar viewers — light rigs, floor reflection, and bloom configs derived from Ready Player Me's visage (MIT).",+ "keywords": [+ "three.ws",+ "three.js",+ "avatar",+ "viewer",+ "lighting",+ "postprocessing",+ "bloom",+ "floor-reflection",+ "readyplayerme-alternative",+ "visage-derived"+ ],+ "author": "three.ws <[email protected]> (https://three.ws)",+ "license": "Apache-2.0",+ "homepage": "https://three.ws",+ "repository": {+ "type": "git",+ "url": "https://github.com/nirholas/three.ws.git",+ "directory": "packages/viewer-presets"+ },+ "type": "module",+ "main": "./src/index.js",+ "module": "./src/index.js",+ "types": "./src/index.d.ts",+ "exports": {+ ".": {+ "types": "./src/index.d.ts",+ "import": "./src/index.js",+ "default": "./src/index.js"+ },+ "./lights": "./src/lights.js",+ "./floor": "./src/floor.js",+ "./bloom": "./src/bloom.js"+ },+ "files": [+ "src",+ "README.md",+ "LICENSE",+ "NOTICE"+ ],+ "scripts": {+ "test": "node --test test/*.test.js"+ },+ "peerDependencies": {+ "three": ">=0.150.0"+ },+ "peerDependenciesMeta": {+ "three": {+ "optional": true+ }+ },+ "engines": {+ "node": ">=18"+ }+}diff --git a/packages/viewer-presets/src/bloom.js b/packages/viewer-presets/src/bloom.jsnew file mode 100644index 000000000..0ea0550c6--- /dev/null+++ b/packages/viewer-presets/src/bloom.js@@ -0,0 +1,31 @@+/*+ * Postprocessing/bloom presets for three.ws avatar viewers.+ *+ * Portions of this file are derived from Ready Player Me's `visage` package+ * (https://github.com/readyplayerme/visage), specifically+ * src/components/Bloom/Bloom.component.tsx.+ * Original work: Copyright (c) 2023 Ready Player Me, MIT License.+ * Modifications: Copyright 2025-2026 three.ws contributors, Apache-2.0.+ *+ * What changed vs. the original:+ * - Stripped React-specific wiring; exports plain data callers feed into+ * `postprocessing` (or any equivalent) Bloom effect.+ * - Tuned defaults preserved verbatim from visage so the look is identical.+ */++export const BLOOM_DEFAULTS = Object.freeze({+ luminanceThreshold: 1,+ luminanceSmoothing: 1,+ mipmapBlur: true,+ intensity: 0.1,+ kernelSize: 0,+});++/**+ * Merge caller overrides into the visage-derived bloom defaults.+ *+ * @param {Partial<typeof BLOOM_DEFAULTS>} [overrides]+ */+export function bloomConfig(overrides = {}) {+ return { ...BLOOM_DEFAULTS, ...overrides };+}diff --git a/packages/viewer-presets/src/floor.js b/packages/viewer-presets/src/floor.jsnew file mode 100644index 000000000..eadd531be--- /dev/null+++ b/packages/viewer-presets/src/floor.js@@ -0,0 +1,54 @@+/*+ * Floor reflection presets for three.ws avatar viewers.+ *+ * Portions of this file are derived from Ready Player Me's `visage` package+ * (https://github.com/readyplayerme/visage), specifically+ * src/components/FloorReflection/FloorReflection.component.tsx.+ * Original work: Copyright (c) 2023 Ready Player Me, MIT License.+ * Modifications: Copyright 2025-2026 three.ws contributors, Apache-2.0.+ *+ * What changed vs. the original:+ * - Exports plain data (no React component, no @react-three/drei dep).+ * - Caller wires the constants into their own MeshReflectorMaterial /+ * custom reflector implementation.+ * - Param names preserved so visage tutorials and the @three-ws/avatar-sdk+ * viewer share a vocabulary.+ */++export const FLOOR_REFLECTION_DEFAULTS = Object.freeze({+ resolution: 512,+ mixBlur: 0.8,+ mixStrength: 80,+ metalness: 0.5,+ blur: [300, 200],+ mirror: 1,+ minDepthThreshold: 0.4,+ maxDepthThreshold: 1.4,+ depthScale: 1.2,+ depthToBlurRatioBias: 1,+ distortion: 0,+ mixContrast: 1,+ reflectorOffset: 0,+ roughness: 1,+ envMapIntensity: 0,+ // Plane geometry args (width, height) for the reflector mesh.+ planeSize: [20, 10],+ // Fog should match the canvas background color for a seamless transition+ // into the reflective plane.+ fogNear: 2,+ fogFar: 6,+});++/**+ * Returns a configuration object for a floor reflector mesh.+ *+ * @param {Partial<typeof FLOOR_REFLECTION_DEFAULTS> & { color: string }} props+ * `color` is required; it should match the canvas background so the+ * reflective plane fades seamlessly into the scene.+ */+export function floorReflectionConfig(props) {+ if (!props || typeof props.color !== 'string') {+ throw new Error('floorReflectionConfig: `color` is required and must match the canvas background');+ }+ return { ...FLOOR_REFLECTION_DEFAULTS, ...props };+}diff --git a/packages/viewer-presets/src/index.d.ts b/packages/viewer-presets/src/index.d.tsnew file mode 100644index 000000000..b2f766fc8--- /dev/null+++ b/packages/viewer-presets/src/index.d.ts@@ -0,0 +1,72 @@+export interface LightConfig {+ fillLightAngle: number;+ backLightAngle: number;+ keyLightAngle: number;+ silhouetteLightAngle: number;+ keyLightPosition: readonly [number, number, number];+ liftLightPosition: readonly [number, number, number];+ dirLightPosition: readonly [number, number, number];+ silhouetteLightPosition: readonly [number, number, number];+ defaults: Readonly<LightingOverrides>;+}++export interface LightingOverrides {+ keyLightIntensity: number;+ keyLightColor: string;+ fillLightIntensity: number;+ fillLightColor: string;+ fillLightPosition: readonly [number, number, number];+ backLightIntensity: number;+ backLightColor: string;+ backLightPosition: readonly [number, number, number];+ lightTarget: readonly [number, number, number];+}++export interface FloorReflectionProps {+ resolution: number;+ mixBlur: number;+ mixStrength: number;+ metalness: number;+ blur: readonly [number, number];+ mirror: number;+ minDepthThreshold: number;+ maxDepthThreshold: number;+ depthScale: number;+ depthToBlurRatioBias: number;+ distortion: number;+ mixContrast: number;+ reflectorOffset: number;+ roughness: number;+ envMapIntensity: number;+ planeSize: readonly [number, number];+ fogNear: number;+ fogFar: number;+ color: string;+}++export interface BloomProps {+ luminanceThreshold: number;+ luminanceSmoothing: number;+ mipmapBlur: boolean;+ intensity: number;+ kernelSize: number;+}++export interface LightRig {+ group: unknown;+ headTarget: unknown;+ shoeTarget: unknown;+}++export declare const LIGHT_CONFIG: LightConfig;+export declare const FLOOR_REFLECTION_DEFAULTS: Readonly<Omit<FloorReflectionProps, 'color'>>;+export declare const BLOOM_DEFAULTS: BloomProps;++export declare function buildLightRig(+ THREE: unknown,+ overrides?: Partial<LightingOverrides>,+): LightRig;+export declare function floorReflectionConfig(+ props: Partial<Omit<FloorReflectionProps, 'color'>> & { color: string },+): FloorReflectionProps;+export declare function bloomConfig(overrides?: Partial<BloomProps>): BloomProps;diff --git a/packages/viewer-presets/src/index.js b/packages/viewer-presets/src/index.jsnew file mode 100644index 000000000..d56f57ed1--- /dev/null+++ b/packages/viewer-presets/src/index.js@@ -0,0 +1,3 @@+export { LIGHT_CONFIG, buildLightRig } from './lights.js';+export { FLOOR_REFLECTION_DEFAULTS, floorReflectionConfig } from './floor.js';+export { BLOOM_DEFAULTS, bloomConfig } from './bloom.js';diff --git a/packages/viewer-presets/src/lights.js b/packages/viewer-presets/src/lights.jsnew file mode 100644index 000000000..121760747--- /dev/null+++ b/packages/viewer-presets/src/lights.js@@ -0,0 +1,123 @@+/*+ * Light rig presets for three.ws avatar viewers.+ *+ * Portions of this file are derived from Ready Player Me's `visage` package+ * (https://github.com/readyplayerme/visage), specifically+ * src/components/Lights/Lights.component.tsx.+ * Original work: Copyright (c) 2023 Ready Player Me, MIT License.+ * Modifications: Copyright 2025-2026 three.ws contributors, Apache-2.0.+ *+ * What changed vs. the original:+ * - Stripped React-specific wiring; exports plain data + a framework-agnostic+ * `buildLightRig(THREE)` factory that returns three.js Object3Ds.+ * - Angles/positions/colors/intensities preserved from visage's tuning so+ * avatars rendered through three.ws look color-accurate to the RPM+ * reference setup.+ * - Added a `lightTarget` Object3D builder so the rig is self-contained.+ */++export const LIGHT_CONFIG = Object.freeze({+ fillLightAngle: Math.PI / 3,+ backLightAngle: Math.PI / 8,+ keyLightAngle: Math.PI,+ silhouetteLightAngle: Math.PI * 1.5,+ // Positions are in three.js world coordinates with the avatar standing on (0, 0, 0).+ keyLightPosition: [0.5, 1.55, 0.5],+ liftLightPosition: [0.25, 1.7, 2.0],+ dirLightPosition: [-0.75, 2.5, -1.0],+ silhouetteLightPosition: [-1.5, 0.1, -1.5],+ defaults: Object.freeze({+ keyLightIntensity: 0.8,+ keyLightColor: '#FFFFFF',+ fillLightIntensity: 3.0,+ fillLightColor: '#6794FF',+ fillLightPosition: [-0.5, 1.6, -0.5],+ backLightIntensity: 6.0,+ backLightColor: '#FFB878',+ backLightPosition: [0.5, 1.6, -1.0],+ lightTarget: [0.0, 1.7, 0.0],+ }),+});++/**+ * Build the full visage-equivalent light rig as a three.js Group.+ *+ * Callers pass in their `THREE` namespace so this package stays a peer of+ * three.js, not a hard dependency.+ *+ * @param {object} THREE The three.js namespace.+ * @param {Partial<typeof LIGHT_CONFIG.defaults>} [overrides]+ * @returns {{ group: any, headTarget: any, shoeTarget: any }}+ */+export function buildLightRig(THREE, overrides = {}) {+ const cfg = { ...LIGHT_CONFIG.defaults, ...overrides };++ const headTarget = new THREE.Object3D();+ headTarget.position.fromArray(cfg.lightTarget);++ const shoeTarget = new THREE.Object3D();+ shoeTarget.position.set(0, 0, 0);++ const group = new THREE.Group();+ group.add(headTarget);+ group.add(shoeTarget);++ // Fill light — strong blue rim on the right face side.+ const fill = new THREE.SpotLight(+ cfg.fillLightColor,+ cfg.fillLightIntensity,+ 0,+ LIGHT_CONFIG.fillLightAngle,+ );+ fill.position.fromArray(cfg.fillLightPosition);+ fill.target = headTarget;+ fill.castShadow = true;+ group.add(fill);++ // Back light — warm rim on the left face side.+ const back = new THREE.SpotLight(+ cfg.backLightColor,+ cfg.backLightIntensity,+ 0,+ LIGHT_CONFIG.backLightAngle,+ );+ back.position.fromArray(cfg.backLightPosition);+ back.target = headTarget;+ back.castShadow = true;+ group.add(back);++ // Key light — soft face fill.+ const key = new THREE.SpotLight(+ cfg.keyLightColor,+ cfg.keyLightIntensity,+ 0,+ LIGHT_CONFIG.keyLightAngle,+ );+ key.position.fromArray(LIGHT_CONFIG.keyLightPosition);+ key.target = headTarget;+ group.add(key);++ // Lift light — soft body/shoe wash.+ const lift = new THREE.SpotLight(+ cfg.keyLightColor,+ cfg.keyLightIntensity * 0.25,+ 0,+ LIGHT_CONFIG.keyLightAngle,+ );+ lift.position.fromArray(LIGHT_CONFIG.liftLightPosition);+ lift.target = shoeTarget;+ group.add(lift);++ // Silhouette light — rim on arms and legs.+ const silhouette = new THREE.SpotLight(+ cfg.keyLightColor,+ cfg.keyLightIntensity * 0.25,+ 0,+ LIGHT_CONFIG.silhouetteLightAngle,+ );+ silhouette.position.fromArray(LIGHT_CONFIG.silhouetteLightPosition);+ silhouette.target = headTarget;+ group.add(silhouette);++ return { group, headTarget, shoeTarget };+}diff --git a/packages/viewer-presets/test/presets.test.js b/packages/viewer-presets/test/presets.test.jsnew file mode 100644index 000000000..07306d5e2--- /dev/null+++ b/packages/viewer-presets/test/presets.test.js@@ -0,0 +1,140 @@+import test from 'node:test';+import assert from 'node:assert/strict';+import {+ LIGHT_CONFIG,+ FLOOR_REFLECTION_DEFAULTS,+ BLOOM_DEFAULTS,+ buildLightRig,+ floorReflectionConfig,+ bloomConfig,+} from '../src/index.js';++test('LIGHT_CONFIG preserves visage angles', () => {+ assert.equal(LIGHT_CONFIG.fillLightAngle, Math.PI / 3);+ assert.equal(LIGHT_CONFIG.backLightAngle, Math.PI / 8);+ assert.equal(LIGHT_CONFIG.keyLightAngle, Math.PI);+ assert.equal(LIGHT_CONFIG.silhouetteLightAngle, Math.PI * 1.5);+});++test('LIGHT_CONFIG defaults preserve visage colors/intensities', () => {+ const d = LIGHT_CONFIG.defaults;+ assert.equal(d.keyLightIntensity, 0.8);+ assert.equal(d.keyLightColor, '#FFFFFF');+ assert.equal(d.fillLightIntensity, 3.0);+ assert.equal(d.fillLightColor, '#6794FF');+ assert.equal(d.backLightIntensity, 6.0);+ assert.equal(d.backLightColor, '#FFB878');+});++test('LIGHT_CONFIG is frozen', () => {+ assert.throws(() => {+ LIGHT_CONFIG.fillLightAngle = 0;+ });+});++test('FLOOR_REFLECTION_DEFAULTS preserves visage params', () => {+ assert.equal(FLOOR_REFLECTION_DEFAULTS.resolution, 512);+ assert.equal(FLOOR_REFLECTION_DEFAULTS.mixStrength, 80);+ assert.deepEqual(FLOOR_REFLECTION_DEFAULTS.blur, [300, 200]);+ assert.equal(FLOOR_REFLECTION_DEFAULTS.metalness, 0.5);+ assert.equal(FLOOR_REFLECTION_DEFAULTS.mixBlur, 0.8);+});++test('BLOOM_DEFAULTS preserves visage tuning', () => {+ assert.equal(BLOOM_DEFAULTS.luminanceThreshold, 1);+ assert.equal(BLOOM_DEFAULTS.luminanceSmoothing, 1);+ assert.equal(BLOOM_DEFAULTS.mipmapBlur, true);+ assert.equal(BLOOM_DEFAULTS.intensity, 0.1);+});++test('floorReflectionConfig requires color', () => {+ assert.throws(() => floorReflectionConfig({}), /color/);+ assert.throws(() => floorReflectionConfig(), /color/);+});++test('floorReflectionConfig merges overrides', () => {+ const cfg = floorReflectionConfig({ color: '#000', resolution: 1024 });+ assert.equal(cfg.color, '#000');+ assert.equal(cfg.resolution, 1024);+ assert.equal(cfg.mixStrength, 80); // default preserved+});++test('bloomConfig merges overrides', () => {+ const cfg = bloomConfig({ intensity: 0.5 });+ assert.equal(cfg.intensity, 0.5);+ assert.equal(cfg.luminanceThreshold, 1);+});++test('buildLightRig produces five spotlights + two targets in a group', () => {+ // Minimal THREE shim — just enough to satisfy buildLightRig.+ class FakeObject3D {+ constructor() {+ this.position = {+ fromArray: function (arr) {+ this.x = arr[0];+ this.y = arr[1];+ this.z = arr[2];+ return this;+ },+ set: function (x, y, z) {+ this.x = x;+ this.y = y;+ this.z = z;+ return this;+ },+ };+ this.children = [];+ }+ add(child) {+ this.children.push(child);+ }+ }+ class FakeSpotLight extends FakeObject3D {+ constructor(color, intensity, _distance, angle) {+ super();+ this.color = color;+ this.intensity = intensity;+ this.angle = angle;+ this.isSpotLight = true;+ }+ }+ const THREE = { Object3D: FakeObject3D, Group: FakeObject3D, SpotLight: FakeSpotLight };++ const { group, headTarget, shoeTarget } = buildLightRig(THREE);+ const lights = group.children.filter((c) => c.isSpotLight);+ assert.equal(lights.length, 5);+ assert.ok(group.children.includes(headTarget));+ assert.ok(group.children.includes(shoeTarget));+ // Verify the rim colors made it through.+ const fill = lights.find((l) => l.color === '#6794FF');+ const back = lights.find((l) => l.color === '#FFB878');+ assert.ok(fill, 'fill light should be present');+ assert.ok(back, 'back light should be present');+ assert.equal(fill.intensity, 3.0);+ assert.equal(back.intensity, 6.0);+});++test('buildLightRig accepts overrides without losing defaults', () => {+ class FakeObject3D {+ constructor() {+ this.position = { fromArray() {}, set() {} };+ this.children = [];+ }+ add(c) {+ this.children.push(c);+ }+ }+ class FakeSpotLight extends FakeObject3D {+ constructor(color, intensity, _distance, angle) {+ super();+ this.color = color;+ this.intensity = intensity;+ this.angle = angle;+ this.isSpotLight = true;+ }+ }+ const THREE = { Object3D: FakeObject3D, Group: FakeObject3D, SpotLight: FakeSpotLight };+ const { group } = buildLightRig(THREE, { fillLightColor: '#ff00ff' });+ const fill = group.children.find((c) => c.isSpotLight && c.color === '#ff00ff');+ assert.ok(fill, 'override color should be applied to fill light');+});diff --git a/pages/marketplace.html b/pages/marketplace.htmlindex 460278b5d..b0241a11b 100644--- a/pages/marketplace.html+++ b/pages/marketplace.html@@ -1370,6 +1370,7 @@<a href="/dashboard" data-nav="model"><span class="ico">◉</span> <span>Model</span></a><a href="/marketplace?tab=mine" data-nav="mine"><span class="ico">◱</span> <span>My Agents</span></a><a href="/marketplace?tab=purchases" data-nav="purchases"><span class="ico">✓</span> <span>My Purchases</span></a>+ <a href="/marketplace?tab=earn" data-nav="earn"><span class="ico">$</span> <span>Earn</span></a></nav><button class="market-submit-btn market-sidebar-submit" id="market-submit-btn">+ Submit Agent</button></aside>@@ -1600,6 +1601,38 @@</div></section>+ <!-- Earn tab -->+ <section class="market-earn" id="market-earn" hidden>+ <header class="market-topbar">+ <div class="market-mine-head">+ <h2 class="market-section-heading">Earn</h2>+ <span class="market-mine-sub" id="earn-subtitle">Revenue from your published agents and skills</span>+ </div>+ <button class="market-submit-btn" id="earn-publish-skill-btn">+ Publish Skill</button>+ </header>+ <div class="earn-body">+ <div class="earn-summary" id="earn-summary">+ <div class="earn-stat-card">+ <div class="earn-stat-label">Pending</div>+ <div class="earn-stat-value" id="earn-pending">—</div>+ </div>+ <div class="earn-stat-card">+ <div class="earn-stat-label">Settled</div>+ <div class="earn-stat-value" id="earn-settled">—</div>+ </div>+ <div class="earn-stat-card earn-stat-wallet">+ <div class="earn-stat-label">Payout Wallet</div>+ <div class="earn-stat-value earn-wallet-addr" id="earn-wallet-display">Not set</div>+ <button class="earn-wallet-btn" id="earn-wallet-edit">Edit</button>+ </div>+ </div>+ <div class="earn-section-title">Recent Revenue</div>+ <div class="earn-entries" id="earn-entries">+ <div class="market-empty">Loading…</div>+ </div>+ </div>+ </section>+<!-- Skills tab --><section class="market-skills-section" id="market-skills-section" hidden><header class="market-topbar">@@ -1820,6 +1853,22 @@<input id="sf-greeting" type="text" maxlength="1000" placeholder="Hello! I'm here to help you with…" /></div>+ <details class="market-field-group">+ <summary class="market-field-group-title">Monetize <span class="field-hint">(optional)</span></summary>+ <div class="market-field" style="margin-top:0.75rem">+ <label for="sf-payout-wallet">Payout wallet address <span class="field-hint">(Solana)</span></label>+ <input id="sf-payout-wallet" type="text" maxlength="100" placeholder="Your Solana address for receiving payments" autocomplete="off" />+ </div>+ <div class="sf-skill-prices" id="sf-skill-prices">+ <div class="sf-skill-prices-label">Skill prices <span class="field-hint">(USDC per call)</span></div>+ <div id="sf-price-rows"></div>+ <div class="agent-pricing-add-row">+ <input id="sf-new-skill" type="text" maxlength="100" placeholder="skill-name" autocomplete="off" />+ <button type="button" id="sf-add-skill" class="market-btn-sec">+ Add Skill</button>+ </div>+ </div>+ </details>+<div id="market-submit-error" class="market-form-error" hidden></div><div class="market-submit-actions">@@ -1830,6 +1879,104 @@</div></div>+ <!-- Publish Skill Modal -->+ <div class="market-modal-overlay" id="skill-publish-overlay" hidden aria-modal="true" role="dialog" aria-labelledby="skill-publish-title">+ <div class="market-modal">+ <div class="market-modal-head">+ <h2 id="skill-publish-title">Publish a Skill</h2>+ <button class="market-modal-close" id="skill-publish-close" aria-label="Close">×</button>+ </div>+ <form id="skill-publish-form" novalidate>+ <div class="market-field">+ <label for="sp-name">Name <span class="req">*</span></label>+ <input id="sp-name" type="text" maxlength="100" placeholder="web-search" autocomplete="off" />+ <span class="field-hint">Lowercase slug, e.g. <code>web-search</code></span>+ </div>+ <div class="market-field">+ <label for="sp-description">Description <span class="req">*</span></label>+ <input id="sp-description" type="text" maxlength="500" placeholder="Search the web for current information" />+ </div>+ <div class="market-field-row">+ <div class="market-field">+ <label for="sp-category">Category</label>+ <select id="sp-category">+ <option value="general">General</option>+ <option value="search">Search</option>+ <option value="data">Data</option>+ <option value="communication">Communication</option>+ <option value="productivity">Productivity</option>+ <option value="development">Development</option>+ <option value="finance">Finance</option>+ <option value="creative">Creative</option>+ </select>+ </div>+ <div class="market-field">+ <label for="sp-price">Price per call (USD) <span class="field-hint">0 = free</span></label>+ <input id="sp-price" type="number" min="0" max="10" step="0.001" placeholder="0.001" value="0" />+ </div>+ </div>+ <div class="market-field">+ <label for="sp-tags">Tags <span class="field-hint">(comma-separated)</span></label>+ <input id="sp-tags" type="text" maxlength="200" placeholder="search, web, realtime" />+ </div>+ <div class="market-field">+ <label for="sp-schema">Tool definitions <span class="field-hint">(JSON array — optional)</span></label>+ <textarea id="sp-schema" rows="6" placeholder='[{"name":"search","description":"Search the web","input_schema":{"type":"object","properties":{"query":{"type":"string","description":"Search query"}},"required":["query"]}}]'></textarea>+ </div>+ <div id="skill-publish-error" class="market-form-error" hidden></div>+ <div class="market-submit-actions">+ <button type="button" id="sp-publish" class="market-btn-pri">Publish Skill</button>+ </div>+ </form>+ </div>+ </div>++ <!-- Payout Wallet Modal -->+ <div class="market-modal-overlay" id="wallet-setup-overlay" hidden aria-modal="true" role="dialog" aria-labelledby="wallet-setup-title">+ <div class="market-modal" style="max-width:420px">+ <div class="market-modal-head">+ <h2 id="wallet-setup-title">Payout Wallet</h2>+ <button class="market-modal-close" id="wallet-setup-close" aria-label="Close">×</button>+ </div>+ <p style="color:#a1a1aa;font-size:0.875rem;margin:0 0 1.25rem">Payments from buyers go directly to this wallet. You can use a Solana or Base (EVM) address.</p>+ <div class="market-field">+ <label for="ws-chain">Chain</label>+ <select id="ws-chain">+ <option value="solana">Solana</option>+ <option value="base">Base (EVM)</option>+ </select>+ </div>+ <div class="market-field">+ <label for="ws-address">Wallet address <span class="req">*</span></label>+ <input id="ws-address" type="text" maxlength="100" placeholder="Solana or EVM address" autocomplete="off" />+ </div>+ <div id="wallet-setup-error" class="market-form-error" hidden></div>+ <div class="market-submit-actions">+ <button type="button" id="ws-save" class="market-btn-pri">Save Wallet</button>+ </div>+ </div>+ </div>++ <!-- Agent Pricing Modal -->+ <div class="market-modal-overlay" id="agent-pricing-overlay" hidden aria-modal="true" role="dialog" aria-labelledby="agent-pricing-title">+ <div class="market-modal" style="max-width:480px">+ <div class="market-modal-head">+ <h2 id="agent-pricing-title">Set Skill Prices</h2>+ <button class="market-modal-close" id="agent-pricing-close" aria-label="Close">×</button>+ </div>+ <p style="color:#a1a1aa;font-size:0.875rem;margin:0 0 1rem" id="agent-pricing-hint">Set a USDC price for each skill. Leave blank or 0 to keep it free.</p>+ <div id="agent-pricing-rows" class="agent-pricing-rows"></div>+ <div class="agent-pricing-add-row">+ <input id="ap-new-skill" type="text" maxlength="100" placeholder="skill-name" autocomplete="off" />+ <button type="button" id="ap-add-skill" class="market-btn-sec">+ Add Skill</button>+ </div>+ <div id="agent-pricing-error" class="market-form-error" hidden></div>+ <div class="market-submit-actions">+ <button type="button" id="ap-save" class="market-btn-pri">Save Prices</button>+ </div>+ </div>+ </div>+<script src="/src/marketplace.js" type="module"></script><!-- Avatar Detail Modal -->diff --git a/public/docs/avatar-creation.md b/public/docs/avatar-creation.mdindex 15608cc27..19872b744 100644--- a/public/docs/avatar-creation.md+++ b/public/docs/avatar-creation.md@@ -10,7 +10,7 @@ Your agent's 3D avatar is what makes it feel real. It is the face people see, th|------|------|----------------|----------|| Photo → Avaturn AI | 3–5 min | None | A realistic avatar that looks like you || Character Studio | 10–20 min | None | A stylized avatar with full creative control |-| Upload your own GLB | 1 min | 3D modeling | An existing model from Blender, Mixamo, RPM, etc. |+| Upload your own GLB | 1 min | 3D modeling | An existing model from Blender, Mixamo, or any 3D tool |Pick one and follow its section below. All three paths produce a GLB file that gets saved to your account.@@ -95,7 +95,7 @@ The Character Studio URL defaults to `http://localhost:5173` for local developme## Path 3: Upload your own GLB-If you already have a 3D model — from Blender, Maya, Mixamo, Ready Player Me, or anywhere else — you can upload it directly.+If you already have a 3D model — from Blender, Maya, Mixamo, or anywhere else — you can upload it directly.### Steps@@ -113,7 +113,7 @@ The three.ws viewer accepts any valid glTF 2.0 binary (`.glb`) file. If your mod| FBX | Blender: File → Import → FBX, then File → Export → glTF 2.0 (.glb) || OBJ | Blender: File → Import → Wavefront, rig if needed, export as glTF || VRM | VRM files are glTF 2.0 under the hood — rename `.vrm` to `.glb` and it loads |-| Ready Player Me | RPM avatars export as GLB and are compatible out of the box |+| Other avatar platforms | Most humanoid avatar tools export GLB and are compatible out of the box || FBX via script | `/scripts/convert-fbx-to-glb.py` is available for batch conversion |---diff --git a/public/docs/avaturn.md b/public/docs/avaturn.mddeleted file mode 100644index 28934194c..000000000--- a/public/docs/avaturn.md+++ /dev/null@@ -1,391 +0,0 @@-# Avaturn Documentation (scraped 2026-04-16)--Source: https://docs.avaturn.me/docs/what-is-avaturn/-------## 1. Getting Started--**URL:** https://docs.avaturn.me/docs/what-is-avaturn/--Avaturn is a realistic avatar creator and avatar system for games, apps and metaverses. The platform enables developers to delegate avatar generation and customization responsibilities while focusing on their core game experience.--The service allows users to design avatars with customizable elements including body shape, clothing, accessories, hairstyles, footwear, and eyewear. Upon completion, users receive a compiled ready-to-use 3D model that can replace existing characters.--Avaturn supports integration across multiple platforms: Unity, Unreal Engine, HTML + JavaScript (including Three.js), Android, and iOS. The platform offers free integration access via tutorials, with advanced customization available through an API and web SDK accessible through the developer portal.--Users can register at developer.avaturn.me to begin using Avaturn at no cost with no limits on the number of avatars created or number of exports.-------## 2. Importing--### 2.1 Blender--**URL:** https://docs.avaturn.me/docs/importing/blender/--Straightforward instructions for importing Avaturn avatars into Blender, leveraging the software's native support for GLTF 2.0 format.--Three-Step Import Process:--1. Initiate Import: Access Blender's import function to load your GLB file-2. Configure Settings: When the import dialog appears, set the bone direction parameter to "Blender" before finalizing the import process-3. Completion: Your avatar assets are now ready for use within your Blender project--If the imported avatar appears gray or you're uncertain whether textures have loaded correctly, click a visualization button to verify texture rendering. The process is streamlined due to Blender's robust compatibility with industry-standard GLTF 2.0 specifications.--### 2.2 Unity--**URL:** https://docs.avaturn.me/docs/importing/unity/--Avaturn exports avatars in GLB format, which Unity doesn't natively support. The documentation recommends using the "GLTFast" package to load GLB files either during editing or while the application runs.--Key Recommendations:--- Apply an environment map to prevent metallic clothing from appearing black-- GLTFast version 5.2 was tested, though other versions should work--Alternative Approach (Not Recommended): Users can alternatively convert GLB files to FBX format using Avaturn's conversion tool, then import the FBX directly into Unity. However, this method requires additional manual work—specifically importing metalness maps and adjusting material smoothness settings. This approach is less ideal than using GLTFast.--### 2.3 Unreal Engine--**URL:** https://docs.avaturn.me/docs/importing/unreal/--Two distinct import processes depending on your Unreal Engine version.--For UE 5.1 and newer: The procedure is streamlined since these versions natively support GLB files. Users simply need to drag and drop it onto the content manager to complete the import.--For UE 5.0 and earlier: Since native GLB support is unavailable, the workflow requires additional steps:--1. Download a GLB avatar from Avaturn-2. Convert the file to FBX format using Avaturn's dedicated converter tool, ensuring "Unreal" is selected in the converter settings-3. Import the FBX into the content browser with specific settings:- - Normals import method set to "Import Normals"- - Import uniform scale at 100.0 (adjustable based on asset scale)- - Enable "Invert normal maps"-4. Finalize the process, with occasional manual transparency corrections needed for eyewear elements--### 2.4 Meta Spark Studio--**URL:** https://docs.avaturn.me/docs/importing/spark_studio/--Brief documentation page with reference to a video tutorial contributed by Max Gomes demonstrating the import process for importing avatars into Meta's Spark Studio.--### 2.5 Convert GLB to FBX--**URL:** https://docs.avaturn.me/docs/importing/glb-to-fbx/--Avaturn exports 3D avatars in GLTF 2.0 format to ensure compatibility across different engines. For legacy workflows that require FBX files, Avaturn provides a conversion tool that outputs FBX files with separate texture maps, though materials may require manual adjustment.--Why GLTF 2.0 is Preferred:--- Open standard developed by the Khronos Group (versus Autodesk's proprietary FBX)-- JSON-based structure for readability and easier debugging-- Optimized for real-time rendering in web and VR applications-- Built-in support for Physically-Based Rendering (PBR) materials-- Better interoperability across engines and platforms-- Smaller file sizes with improved compression-- Extensible architecture for custom metadata--Engine-Specific Guidance:--- Unity: Strongly recommends using GLTFast package to load GLB directly, avoiding conversion-- Unreal Engine: Versions 5.1+ support native GLB importing. Older versions requiring FBX need specific import settings: Import Normals method, 100.0 uniform scale, and inverted normal maps enabled--### 2.6 Convert GLB to VRM--**URL:** https://docs.avaturn.me/docs/importing/glb-to-vrm/--Avaturn exports in GLTF 2.0 format to ensure the 3D model looks well in every engine that uses it. VR applications and VTubing software utilize the VRM file format for humanoid avatar data, which is built upon glTF 2.0. This means VRM-compatible software can open glTF 2.0 files, but the reverse compatibility does not apply.--### 2.7 Mixamo Animations--**URL:** https://docs.avaturn.me/docs/importing/mixamo/--While Avaturn exports models in GLB format, Mixamo cannot directly read this format. Converting GLB to FBX may cause issues, so the guide recommends an alternative approach:--Recommended Process:--1. Download a pre-tested Avaturn avatar in FBX format from their assets-2. Import that model into Mixamo and select desired animations-3. Export the animated avatar, choosing "without skin" for Blender or "with skin" for Unity-4. Apply the animation to your avatar--The key insight is that instead of converting your exported avatar, users should work with a Mixamo-compatible FBX template provided by Avaturn, then transfer the animations to their actual avatar model.-------## 3. Integration--### 3.1 Overview--**URL:** https://docs.avaturn.me/docs/integration/overview/--Avaturn functions as an integrable plugin for applications, games, and metaverse platforms. The workflow is straightforward: users trigger an avatar configurator within a game, customize their avatar, and the game then receives the completed avatar file.--Available SDKs and Integration Options:--- Unity integration-- Unreal Engine support-- HTML and JavaScript implementation-- Three.js framework support-- Android mobile development-- iOS mobile development--Basic integration follows published tutorials at no cost. Developers seeking advanced customization features can access enhanced tools through the API and web SDK, which require registration at the developer portal.--### 3.2 Avatar and Body Types--**URL:** https://docs.avaturn.me/docs/integration/bodies/--Avatar Types:--- **T1 Avatars:** Static faces that provide the most realistic avatar. Cannot use face bones or blendshapes for facial animation.-- **T2 Avatars:** Feature separate eyeballs and mouthhole structures, enabling facial animation through ARKit blendshapes and visemes. Slightly reduced recognizability compared to T1 models.--Body Shape Types: Two body presets are available: v2023 and v2024.--- **v2023:** The original body design iteration with unique skeletons per body shape that vary significantly from each other.-- **v2024:** An improved version with nearly identical skeletons across body shapes. "Skeletons are identical everywhere, but have a bit of stretch/compression of the shoulder joints. Legs, arm length, head bone is the same!" This design makes animation work easier while maintaining shape variety.--Both versions come in Female and Male configurations.--### 3.3 Web Integration - HTML--**URL:** https://docs.avaturn.me/docs/integration/web/html/--Instructions for integrating the Avaturn avatar creation tool into web applications.--Quick Start:--1. Add a div element with the ID `avaturn-sdk-container` to your HTML markup.-2. Include a module script that imports the AvaturnSDK from a CDN. Initialize the SDK with your custom subdomain and set up an event listener for the export event.--Key Configuration Details:--- **Subdomain Setup:** Create a project and obtain your own subdomain through developer.avaturn.me rather than using the limited "demo" subdomain.-- **Export Callback:** The SDK triggers an "export" event when users click the "Next" button, returning the generated avatar data for processing.-- **Styling Options:** CSS can be applied to the container element, with optional custom class names for the internal iframe.--Additional Resources: Complete SDK reference guide, plain HTML CodeSandbox example, React component examples, and package manager installation via npm (`@avaturn/sdk`).--### 3.4 Web Integration - Three.js--**URL:** https://docs.avaturn.me/docs/integration/web/threejs/--Integration overview for using Avaturn with Three.js. The platform functions by opening an iframe through which users can create avatars, which are then sent as GLB files to the Three.js app for rendering using GLTFLoader.--Developers are directed to a starter project available on GitHub at the `avaturn-threejs-example` repository. The documentation specifically mentions the `initAvaturn` function, which requires customization.--Required Configuration: Replace the demo subdomain with your own, created through the developer portal at developer.avaturn.me.--### 3.5 Web SDK - Introduction--**URL:** https://docs.avaturn.me/docs/integration/web/sdk/introduction/--Key Features:--- Receive callbacks on user actions (garment change, body change, export)-- Customize the list of assets available for a particular user-- Create custom UI for the avatar editor through programmatic asset switching--Prerequisites and Installation:--- Create a project at the developer portal and activate API access-- Install via npm: `npm install @avaturn/sdk`--Basic Implementation: Obtain a session link from the `/v1/sessions/new` API endpoint and initialize the SDK. Pass a DOM container to `sdk.init(...)`, which handles iframe creation. Optional parameters include custom CSS class names for the iframe.--**Important:** "Avaturn web SDK only works in conjunction with Avaturn API and is only available in the paid package."--### 3.6 Web SDK - Using Callbacks--**URL:** https://docs.avaturn.me/docs/integration/web/sdk/callbacks/--The Avaturn Web SDK enables developers to implement callbacks that respond to user interactions:--- Asset changed-- Body changed-- Avatar exported--Implementation: Obtain a URL using the `/v1/sessions/new` API request, then pass it to the SDK initialization function.--```js-const scene = await sdk.init(container, {- url: '<URL_RETURNED_BY_AVATURN_API>',- iframeClassName: '<CSS_CLASS_NAME_FOR_IFRAME>',- disableUi: false,-});-```--After initialization, attach event listeners using the `.on()` method to execute custom actions based on user interactions.--### 3.7 Web SDK - Implementing Custom UI--**URL:** https://docs.avaturn.me/docs/integration/web/sdk/custom-ui/--To disable Avaturn's default interface, pass `disableUi=true` to the initialization function.--Once disabled, the SDK provides access to asset and body data through specific methods. Developers can retrieve available options by calling methods that return lists of bodies and assets when the system is ready. Activate specific asset or body using dedicated setter functions that accept an ID parameter.--**Important Limitation:** In custom UI mode, developers will only receive the `'load'` callback event. Other callback functions that normally fire during user interactions will not trigger when using `disableUi` mode.--### 3.8 Unity Integration--**URL:** https://docs.avaturn.me/docs/integration/unity/--Supported Platforms: WebGL and Android/iOS integrations. Windows/Mac Standalone apps possible but require contacting the company directly.--Available Resources:--- Integration tutorial explaining how to add Avaturn to games-- SDK and sample code available on GitHub, supporting Android, iOS, and WebGL-- WebGL demo showcasing runtime avatar replacement-- WebGL demo featuring a third-person controller implementation--### 3.9 Unreal Engine Integration--**URL:** https://docs.avaturn.me/docs/integration/unreal/--Introduction to Avaturn integration for Unreal Engine 5.0 and later. Two SDK options:--1. Web-view based SDK — a browser-integrated approach-2. Native SDK — a direct integration method (newer)--As of June 2023 (version 2.0), supports T1 avatars (static head) and T2 avatars (blendshapes for facial animation). September 2023 update (v2.1) added skeletons for animation retargeting.--### 3.10 Unreal Engine - Webview SDK--**URL:** https://docs.avaturn.me/docs/integration/unreal/webview-sdk/--The Avaturn Unreal SDK enables integration of Avaturn avatars into Unreal Engine 5.0+. Capabilities include importing previously created avatars from the web platform and developing/editing avatars directly within UE-based applications.--Key Resources: Google Drive folder containing the SDK, demo project source code, and compiled builds for Windows and Android.--The framework builds upon the Ready Player Me Unreal framework. Copy necessary files from the downloaded demo project into your own projects.--Troubleshooting:--- Material loading failures in packaged builds: solved via cooking plugin directories-- Multiplayer functionality requiring proper httpURL configuration in developer settings--### 3.11 Android Integration--**URL:** https://docs.avaturn.me/docs/integration/mobile/android/--"Avaturn operates through native WebView, no extra libraries are required."--Example project: https://github.com/avaturn/avaturn-android-example--Modify `MainActivity.java` to replace the demo domain with your own project subdomain or API-provided link.--### 3.12 iOS Integration--**URL:** https://docs.avaturn.me/docs/integration/mobile/ios/--Integration for native Swift iOS applications. Operates through a native WebView without requiring additional libraries.--Example project: https://github.com/avaturn/ios-example--Update the URL initialization in `WebViewController.swift` from the demo domain to your own project URL.--### 3.13 API - Introduction--**URL:** https://docs.avaturn.me/docs/integration/api/introduction/--Key Capabilities:--- Integrate Avaturn while bypassing the sign-in interface (use your own authentication method)-- Customize user workflows-- Upload selfies directly rather than requiring users to scan through the UI-- Implement custom interfaces using the web SDK with event callbacks-- Generate avatar images for profile pictures-- Utilize native SDKs for Unreal and Unity--Getting Started:--1. Create a project at the developer portal-2. Generate an API authentication token-3. Maintain a paid subscription plan — **the API is not available on the free plan**-------## 4. UX Customization--### 4.1 Overview--**URL:** https://docs.avaturn.me/docs/ux_customization/overview/--"Avaturn can be easily customized and extended with additional content."--Key Features:--- Upload personalized looks and accessories-- Adjust UI color schemes-- Modify the avatar's environment setting-- Incorporate branded logos--Getting Started: Create a project through the developer portal at developer.avaturn.me.--### 4.2 Custom Assets - Getting Started--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/intro/--Creating custom assets is straightforward: "just grab one of our template avatars and create an asset to look good on it." Developers don't need separate versions for different body types — the platform automatically adjusts assets across all body variations.--Avatar Resources: Two downloadable template avatars — male body template and female body template, both in T-pose. Can switch to A-pose temporarily for simulation purposes before reverting to T-pose.--"You don't want pose-related wrinkles to be baked into the garment."--### 4.3 Custom Assets - Clothing--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/clothing/--Key Requirements:--- Create an alpha mask for the avatar to hide parts covered by clothing (prevents visibility issues from deformations)-- Asset must share the same skeleton as the avatar with correct skinning weights (manual painting recommended)-- The mesh and avatar require proper alignment with identity global transforms-- Assets should be created at the same location as the avatar without moving it--Uploading: Access the developer portal's asset management panel, select the clothing tab, and upload both avatar and asset files in `.glb` format. Processing takes approximately 30 seconds. Verify the asset functions properly across all avatar body types before saving.--### 4.4 Custom Assets - Footwear--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/footwear/--Pipeline is the same as for clothing. Key distinction: footwear textures are compressed to 512 pixels by default, whereas clothing textures use 1024 pixels.--### 4.5 Custom Assets - Eyewear--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/eyewear/--Guidelines:--- "The lower polycount the better" for mesh optimization-- Glasses typically consist of two parts: frame and lens-- Lens uses translucent material; frame uses another material type--Recoloring: The system recognizes a mesh portion as recolorable if its material name **starts with** `lens`.--### 4.6 Custom Assets - Hair--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/hair/--Haircap: An additional texture applied to the back of the head to minimize visual artifacts from transparent hair textures. Especially useful for hairstyles exposing head skin (bald, mohawk styles).--Recoloring: The recoloring mechanism "maps grayscale diffuse texture into the user-selected color." Darker gray values produce darker shades; lighter grays yield lighter colors. Can be toggled during asset upload.--Hats: Design hats independently of hair by following the clothing pipeline and defining an alpha map.--Mixing Hair with Hats: To prevent recoloring on accessories, include **no_ramp** in the accessory mesh's material name. Alternatively, disable recoloring entirely during upload.--### 4.7 Custom Assets - General Guidelines--**URL:** https://docs.avaturn.me/docs/ux_customization/assets/general_guidelines/--Technical Specifications:--- **Polygon Count:** No more than 7k triangles for the look (top + bottom) to ensure compatibility with older devices and slower connections.-- **Materials:** GLTF 2.0 format with PBR material pipelines. Supported maps: diffuse, normals, occlusion, roughness, metalness. Use a single opaque material (or alpha-clipped), with an optional separate alpha blend material.-- **Texture Resolution:** 1K resolution recommended; lower resolutions are preferable. Higher resolutions (2K/4K) may cause noticeable loading delays in browsers due to network bandwidth, CPU-to-GPU data transfer, and real-time shader compilation constraints.diff --git a/public/docs/configuration.md b/public/docs/configuration.mdindex 14932a765..1a2d0e179 100644--- a/public/docs/configuration.md+++ b/public/docs/configuration.md@@ -198,7 +198,7 @@ Both should be the same value. Get from [dashboard.privy.io](https://dashboard.pVITE_CHARACTER_STUDIO_URL=https://studio.three.ws```-Character Studio is an open-source 3D avatar editor (full body customisation — hair, clothing, accessories, skin tone, proportions). It runs as a separate Vite/React app under `character-studio/` in this monorepo and posts the exported GLB back to the parent via `postMessage`. Ready Player Me previously fulfilled this role; after its 2026 acquisition, Character Studio is the recommended replacement and is fully drop-in compatible — same humanoid skeleton naming, ARKit `viseme_*` blendshapes, and Mixamo animation support.+Character Studio is an open-source 3D avatar editor (full body customisation — hair, clothing, accessories, skin tone, proportions). It runs as a separate Vite/React app under `character-studio/` in this monorepo and posts the exported GLB back to the parent via `postMessage`. It is fully compatible with the three.ws avatar runtime — same humanoid skeleton naming, ARKit `viseme_*` blendshapes, and Mixamo animation support.#### `AVATURN_API_KEY`**Optional.** API key for the Avaturn photo-to-avatar pipeline. Used server-side by `/api/onboarding/avaturn-session` to exchange selfie photos for a session URL.diff --git a/public/docs/troubleshooting.md b/public/docs/troubleshooting.mdindex cc4eb76ca..fb4c74453 100644--- a/public/docs/troubleshooting.md+++ b/public/docs/troubleshooting.md@@ -148,7 +148,7 @@ Organized by symptom. Find your problem, check the likely causes, follow the fix**Fix steps:**1. Check the Console. The avatar module logs a warning if expected morph targets aren't found on load.-2. Verify your GLB has morph targets named exactly as expected (case-sensitive). The emotion system maps to: `mouthSmile`, `mouthFrown`, `mouthOpen`, `cheekPuff`, `browInnerUp`, `browOuterUp`, `noseSneer`, `eyeSquint`, `eyesClosed`. These are the standard Ready Player Me / VRM names.+2. Verify your GLB has morph targets named exactly as expected (case-sensitive). The emotion system maps to: `mouthSmile`, `mouthFrown`, `mouthOpen`, `cheekPuff`, `browInnerUp`, `browOuterUp`, `noseSneer`, `eyeSquint`, `eyesClosed`. These are the standard VRM / humanoid avatar names.3. For head tilt and lean, the skeleton needs a `Head` or `Neck` bone. Open the model in Blender and check the armature.4. Confirm the avatar module is initialized: open DevTools Console and run `window.VIEWER?.agent_avatar`. If `undefined`, the avatar layer didn't boot — check for earlier errors in the console.diff --git a/public/docs/tutorials/personal-ai-site.md b/public/docs/tutorials/personal-ai-site.mdindex 284935a68..18368fe67 100644--- a/public/docs/tutorials/personal-ai-site.md+++ b/public/docs/tutorials/personal-ai-site.md@@ -72,7 +72,7 @@ Your avatar is the visual anchor of the whole experience. You have two paths:- Wear what you would want to be "remembered" in — this avatar represents you- Export as a Mixamo-rigged GLB so it picks up the built-in animation clips automatically-**Character avatar** — If privacy is a concern, or you prefer a stylised look, use any Mixamo-compatible GLB. The system works with any humanoid rig. Ready Player Me, Mixamo, and VRoid Hub all export compatible files.+**Character avatar** — If privacy is a concern, or you prefer a stylised look, use any Mixamo-compatible GLB. The system works with any humanoid rig. Mixamo, VRoid Hub, and three.ws Studio all export compatible files.Host your GLB somewhere publicly accessible — your own server, a GitHub Pages repo, or a CDN. The URL you end up with is your `body` attribute.diff --git a/public/style.css b/public/style.cssindex 4f334ca17..666eebff3 100644--- a/public/style.css+++ b/public/style.css@@ -683,7 +683,7 @@ header h1 .wordmark-logo {footer {position: absolute;- bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0));+ bottom: calc(4rem + env(safe-area-inset-bottom, 0));right: calc(var(--space-md) + env(safe-area-inset-right, 0));display: flex;align-items: center;diff --git a/src/marketplace.js b/src/marketplace.jsindex 2b30dfa5d..5a11fcbb5 100644--- a/src/marketplace.js+++ b/src/marketplace.js@@ -1706,6 +1706,371 @@ async function downloadReceipt(purchaseId) {}}+// ── Earn tab ─────────────────────────────────────────────────────────────++const earnState = { loaded: false, loading: false, pending_usd: 0, settled_usd: 0, entries: [], wallet: null };++async function loadEarnTab(force = false) {+ if (earnState.loading) return;+ if (earnState.loaded && !force) return renderEarnTab();+ earnState.loading = true;+ const entriesEl = $('earn-entries');+ if (entriesEl) entriesEl.innerHTML = '<div class="market-empty">Loading…</div>';++ try {+ const [earningsRes, walletsRes] = await Promise.all([+ fetch(`${API}/users/earnings`, { credentials: 'include' }),+ fetch(`${API}/billing/payout-wallets`, { credentials: 'include' }),+ ]);++ if (earningsRes.ok) {+ const j = await earningsRes.json();+ earnState.pending_usd = j.pending_usd || 0;+ earnState.settled_usd = j.settled_usd || 0;+ earnState.entries = j.entries || [];+ }++ if (walletsRes.ok) {+ const wj = await walletsRes.json();+ const wallets = wj.wallets || [];+ earnState.wallet = wallets.find((w) => w.is_default) || wallets[0] || null;+ }++ earnState.loaded = true;+ } catch (err) {+ console.error('[marketplace] earn tab', err);+ } finally {+ earnState.loading = false;+ renderEarnTab();+ }+}++function renderEarnTab() {+ const pendingEl = $('earn-pending');+ const settledEl = $('earn-settled');+ const walletEl = $('earn-wallet-display');+ const entriesEl = $('earn-entries');++ if (pendingEl) pendingEl.textContent = `$${earnState.pending_usd.toFixed(2)}`;+ if (settledEl) settledEl.textContent = `$${earnState.settled_usd.toFixed(2)}`;+ if (walletEl) {+ if (earnState.wallet) {+ const addr = earnState.wallet.address;+ walletEl.textContent = addr.length > 16 ? `${addr.slice(0, 8)}…${addr.slice(-6)}` : addr;+ walletEl.title = addr;+ } else {+ walletEl.textContent = 'Not set';+ }+ }+ const editBtn = $('earn-wallet-edit');+ if (editBtn) editBtn.textContent = earnState.wallet ? 'Edit' : 'Set wallet';++ if (!entriesEl) return;+ if (!earnState.entries.length) {+ entriesEl.innerHTML = '<div class="market-empty">No revenue yet. Publish agents or skills with prices to start earning.</div>';+ return;+ }+ entriesEl.innerHTML = earnState.entries.map((e) => {+ const date = e.created_at ? formatDate(e.created_at) : '';+ const statusBadge = e.status === 'settled'+ ? `<span class="stat-pill" style="color:#86efac">settled</span>`+ : `<span class="stat-pill" style="color:#fde047">pending</span>`;+ return `<div class="earn-entry">+ <div class="earn-entry-info">+ <span class="earn-entry-skill">${escapeHtml(e.skill_name || e.skill || '—')}</span>+ <span class="earn-entry-agent" style="color:#71717a;font-size:0.8rem">${escapeHtml(e.agent_name || '')}</span>+ </div>+ <div class="earn-entry-right">+ <span class="earn-entry-amount">$${Number(e.price_usd || 0).toFixed(3)}</span>+ ${statusBadge}+ <span style="color:#71717a;font-size:0.78rem">${escapeHtml(date)}</span>+ </div>+ </div>`;+ }).join('');+}++function openPublishSkillModal() {+ const overlay = $('skill-publish-overlay');+ if (!overlay) return;+ $('sp-name').value = '';+ $('sp-description').value = '';+ $('sp-category').value = 'general';+ $('sp-price').value = '0';+ $('sp-tags').value = '';+ $('sp-schema').value = '';+ const errEl = $('skill-publish-error');+ if (errEl) { errEl.hidden = true; errEl.textContent = ''; }+ overlay.hidden = false;+ $('sp-name').focus();+}++function closePublishSkillModal() {+ const overlay = $('skill-publish-overlay');+ if (overlay) overlay.hidden = true;+}++function openWalletSetupModal() {+ const overlay = $('wallet-setup-overlay');+ if (!overlay) return;+ $('ws-address').value = earnState.wallet?.address || '';+ $('ws-chain').value = earnState.wallet?.chain || 'solana';+ const errEl = $('wallet-setup-error');+ if (errEl) { errEl.hidden = true; errEl.textContent = ''; }+ overlay.hidden = false;+ $('ws-address').focus();+}++function closeWalletSetupModal() {+ const overlay = $('wallet-setup-overlay');+ if (overlay) overlay.hidden = true;+}++function bindEarnTab() {+ // Publish skill from earn header+ $('earn-publish-skill-btn')?.addEventListener('click', openPublishSkillModal);++ // Wallet edit+ $('earn-wallet-edit')?.addEventListener('click', openWalletSetupModal);++ // Close wallet modal+ $('wallet-setup-close')?.addEventListener('click', closeWalletSetupModal);+ $('wallet-setup-overlay')?.addEventListener('click', (e) => {+ if (e.target === $('wallet-setup-overlay')) closeWalletSetupModal();+ });++ // Save wallet+ $('ws-save')?.addEventListener('click', async () => {+ const address = ($('ws-address')?.value || '').trim();+ const chain = $('ws-chain')?.value || 'solana';+ const errEl = $('wallet-setup-error');+ if (!address) {+ if (errEl) { errEl.textContent = 'Address is required.'; errEl.hidden = false; }+ return;+ }+ const btn = $('ws-save');+ if (btn) btn.disabled = true;+ try {+ const r = await fetch(`${API}/billing/payout-wallets`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ credentials: 'include',+ body: JSON.stringify({ address, chain, is_default: true }),+ });+ const j = await r.json();+ if (!r.ok) throw new Error(j.error_description || j.error || `HTTP ${r.status}`);+ earnState.wallet = j.wallet;+ earnState.loaded = false;+ closeWalletSetupModal();+ loadEarnTab(true);+ } catch (err) {+ if (errEl) { errEl.textContent = err.message; errEl.hidden = false; }+ } finally {+ if (btn) btn.disabled = false;+ }+ });++ // Close publish skill modal+ $('skill-publish-close')?.addEventListener('click', closePublishSkillModal);+ $('skill-publish-overlay')?.addEventListener('click', (e) => {+ if (e.target === $('skill-publish-overlay')) closePublishSkillModal();+ });++ // Publish skill submit+ $('sp-publish')?.addEventListener('click', async () => {+ const name = ($('sp-name')?.value || '').trim();+ const description = ($('sp-description')?.value || '').trim();+ const category = $('sp-category')?.value || 'general';+ const price_per_call_usd = parseFloat($('sp-price')?.value || '0') || 0;+ const tags = ($('sp-tags')?.value || '').split(',').map((t) => t.trim()).filter(Boolean);+ const schemaRaw = ($('sp-schema')?.value || '').trim();+ const errEl = $('skill-publish-error');++ if (!name) {+ if (errEl) { errEl.textContent = 'Name is required.'; errEl.hidden = false; }+ return;+ }+ if (!description) {+ if (errEl) { errEl.textContent = 'Description is required.'; errEl.hidden = false; }+ return;+ }++ let schema_json = null;+ if (schemaRaw) {+ try {+ schema_json = JSON.parse(schemaRaw);+ } catch {+ if (errEl) { errEl.textContent = 'Tool definitions must be valid JSON.'; errEl.hidden = false; }+ return;+ }+ }++ if (errEl) { errEl.hidden = true; errEl.textContent = ''; }+ const btn = $('sp-publish');+ if (btn) { btn.disabled = true; btn.textContent = 'Publishing…'; }++ try {+ const r = await fetch(`${API}/skills`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ credentials: 'include',+ body: JSON.stringify({ name, description, category, tags, schema_json, is_public: true, price_per_call_usd }),+ });+ const j = await r.json();+ if (!r.ok) throw new Error(j.error_description || j.error || `HTTP ${r.status}`);+ closePublishSkillModal();+ // Reload skills tab cache+ skillsState.skills = [];+ skillsState.loaded = false;+ earnState.loaded = false;+ } catch (err) {+ if (errEl) { errEl.textContent = err.message; errEl.hidden = false; }+ } finally {+ if (btn) { btn.disabled = false; btn.textContent = 'Publish Skill'; }+ }+ });++ // skills-empty-publish — should open skill modal, not agent modal+ document.addEventListener('click', (e) => {+ if (e.target?.id === 'skills-empty-publish') {+ e.stopPropagation();+ openPublishSkillModal();+ }+ });+}++// ── Agent Pricing Modal ───────────────────────────────────────────────────++const agentPricingState = { agentId: null, agentName: '', rows: [] };++function openAgentPricingModal(agentId, agentName) {+ const overlay = $('agent-pricing-overlay');+ if (!overlay) return;+ agentPricingState.agentId = agentId;+ agentPricingState.agentName = agentName;+ agentPricingState.rows = [];+ $('agent-pricing-title').textContent = `Set Skill Prices`;+ $('agent-pricing-hint').textContent = `Prices for "${agentName}". Leave a price blank or 0 to keep it free.`;+ $('ap-new-skill').value = '';+ const errEl = $('agent-pricing-error');+ if (errEl) { errEl.hidden = true; errEl.textContent = ''; }+ overlay.hidden = false;+ renderAgentPricingRows();++ // Load existing prices+ fetch(`${API}/marketplace/agents/${encodeURIComponent(agentId)}`, { credentials: 'include' })+ .then((r) => r.json())+ .then((j) => {+ const prices = j.data?.agent?.skill_prices || {};+ agentPricingState.rows = Object.entries(prices).map(([skill, p]) => ({+ skill,+ amount_usd: (Number(p.amount || 0) / 1e6).toFixed(2),+ }));+ renderAgentPricingRows();+ })+ .catch(() => {});+}++function closeAgentPricingModal() {+ const overlay = $('agent-pricing-overlay');+ if (overlay) overlay.hidden = true;+ agentPricingState.agentId = null;+}++function renderAgentPricingRows() {+ const container = $('agent-pricing-rows');+ if (!container) return;+ if (!agentPricingState.rows.length) {+ container.innerHTML = '<div style="color:#71717a;font-size:0.85rem;margin-bottom:0.5rem">No skills yet — add one below.</div>';+ return;+ }+ container.innerHTML = agentPricingState.rows.map((row, i) => `+ <div class="agent-pricing-row" data-row="${i}">+ <span class="ap-skill-name">${escapeHtml(row.skill)}</span>+ <input class="ap-price-input" type="number" min="0" max="100" step="0.01"+ value="${escapeHtml(String(row.amount_usd))}" placeholder="0.00"+ data-row="${i}" />+ <span class="ap-unit">USDC</span>+ <button class="ap-remove" data-row="${i}" title="Remove">×</button>+ </div>+ `).join('');++ container.querySelectorAll('.ap-price-input').forEach((inp) => {+ inp.addEventListener('input', () => {+ const i = Number(inp.dataset.row);+ if (agentPricingState.rows[i]) agentPricingState.rows[i].amount_usd = inp.value;+ });+ });+ container.querySelectorAll('.ap-remove').forEach((btn) => {+ btn.addEventListener('click', () => {+ const i = Number(btn.dataset.row);+ agentPricingState.rows.splice(i, 1);+ renderAgentPricingRows();+ });+ });+}++function bindAgentPricingModal() {+ $('agent-pricing-close')?.addEventListener('click', closeAgentPricingModal);+ $('agent-pricing-overlay')?.addEventListener('click', (e) => {+ if (e.target === $('agent-pricing-overlay')) closeAgentPricingModal();+ });++ $('ap-add-skill')?.addEventListener('click', () => {+ const inp = $('ap-new-skill');+ const skill = (inp?.value || '').trim().toLowerCase().replace(/\s+/g, '-');+ if (!skill) return;+ if (agentPricingState.rows.some((r) => r.skill === skill)) {+ inp.value = '';+ return;+ }+ agentPricingState.rows.push({ skill, amount_usd: '0.00' });+ inp.value = '';+ renderAgentPricingRows();+ });++ $('ap-new-skill')?.addEventListener('keydown', (e) => {+ if (e.key === 'Enter') { e.preventDefault(); $('ap-add-skill')?.click(); }+ });++ $('ap-save')?.addEventListener('click', async () => {+ const { agentId, rows } = agentPricingState;+ if (!agentId) return;+ const errEl = $('agent-pricing-error');+ if (errEl) { errEl.hidden = true; errEl.textContent = ''; }+ const btn = $('ap-save');+ if (btn) { btn.disabled = true; btn.textContent = 'Saving…'; }++ try {+ await Promise.all(rows.map(async (row) => {+ const amount = Math.round(parseFloat(row.amount_usd || '0') * 1e6);+ const r = await fetch(`${API}/marketplace/set-skill-price`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ credentials: 'include',+ body: JSON.stringify({+ agent_id: agentId,+ skill: row.skill,+ amount,+ currency_mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',+ chain: 'solana',+ }),+ });+ if (!r.ok) {+ const j = await r.json().catch(() => ({}));+ throw new Error(j.error_description || `Failed for skill "${row.skill}"`);+ }+ }));+ closeAgentPricingModal();+ mineState.loaded = false;+ loadMine(true);+ } catch (err) {+ if (errEl) { errEl.textContent = err.message; errEl.hidden = false; }+ } finally {+ if (btn) { btn.disabled = false; btn.textContent = 'Save Prices'; }+ }+ });+}+// ── My Agents tab ────────────────────────────────────────────────────────const mineState = { loaded: false, loading: false, items: [] };@@ -2772,13 +3137,61 @@ function closeSubmitModal() {$('market-submit-overlay').hidden = true;}+// sf-price-rows state for the submit modal+const sfPriceRows = [];++function renderSfPriceRows() {+ const container = $('sf-price-rows');+ if (!container) return;+ if (!sfPriceRows.length) { container.innerHTML = ''; return; }+ container.innerHTML = sfPriceRows.map((row, i) => `+ <div class="agent-pricing-row" data-row="${i}">+ <span class="ap-skill-name">${escapeHtml(row.skill)}</span>+ <input class="ap-price-input" type="number" min="0" max="100" step="0.01"+ value="${escapeHtml(String(row.amount_usd))}" placeholder="0.00" data-row="${i}" />+ <span class="ap-unit">USDC</span>+ <button class="ap-remove" data-row="${i}" title="Remove">×</button>+ </div>+ `).join('');+ container.querySelectorAll('.ap-price-input').forEach((inp) => {+ inp.addEventListener('input', () => {+ const i = Number(inp.dataset.row);+ if (sfPriceRows[i]) sfPriceRows[i].amount_usd = inp.value;+ });+ });+ container.querySelectorAll('.ap-remove').forEach((btn) => {+ btn.addEventListener('click', () => {+ sfPriceRows.splice(Number(btn.dataset.row), 1);+ renderSfPriceRows();+ });+ });+}+function bindSubmit() {- document.querySelectorAll('.market-submit-btn').forEach(b => b.addEventListener('click', openSubmitModal));+ // Exclude earn-publish-skill-btn from triggering the agent submit modal+ document.querySelectorAll('.market-submit-btn').forEach((b) => {+ if (b.id === 'earn-publish-skill-btn') return;+ b.addEventListener('click', openSubmitModal);+ });$('market-submit-close').addEventListener('click', closeSubmitModal);$('market-submit-overlay').addEventListener('click', (e) => {if (e.target === $('market-submit-overlay')) closeSubmitModal();});+ // Add skill price row in submit modal+ $('sf-add-skill')?.addEventListener('click', () => {+ const inp = $('sf-new-skill');+ const skill = (inp?.value || '').trim().toLowerCase().replace(/\s+/g, '-');+ if (!skill) return;+ if (sfPriceRows.some((r) => r.skill === skill)) { inp.value = ''; return; }+ sfPriceRows.push({ skill, amount_usd: '0.00' });+ inp.value = '';+ renderSfPriceRows();+ });+ $('sf-new-skill')?.addEventListener('keydown', (e) => {+ if (e.key === 'Enter') { e.preventDefault(); $('sf-add-skill')?.click(); }+ });+const form = $('market-submit-form');const errorEl = $('market-submit-error');form.addEventListener('submit', (e) => e.preventDefault());@@ -2805,8 +3218,42 @@ function bindSubmit() {const j = await r.json();if (!r.ok) throw new Error(j.error_description || 'Submission failed');+ const agentId = j?.data?.agent?.id;++ // Save payout wallet if provided+ const payoutAddr = ($('sf-payout-wallet')?.value || '').trim();+ if (payoutAddr && agentId) {+ fetch(`${API}/billing/payout-wallets`, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ credentials: 'include',+ body: JSON.stringify({ address: payoutAddr, chain: 'solana', agent_id: agentId, is_default: true }),+ }).catch(() => {});+ }++ // Save skill prices if any were set+ if (agentId && sfPriceRows.length) {+ Promise.all(sfPriceRows.map((row) => {+ const amount = Math.round(parseFloat(row.amount_usd || '0') * 1e6);+ if (!amount) return Promise.resolve();+ return fetch(`${API}/marketplace/set-skill-price`, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ credentials: 'include',+ body: JSON.stringify({+ agent_id: agentId,+ skill: row.skill,+ amount,+ currency_mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',+ chain: 'solana',+ }),+ });+ })).catch(() => {});+ }++ sfPriceRows.length = 0;closeSubmitModal();- loadList(true); // Refresh the list+ loadList(true);} catch (err) {errorEl.textContent = err.message;errorEl.hidden = false;diff --git a/tests/branding-allowlist.json b/tests/branding-allowlist.jsonindex 8ccc88a33..87a5a3276 100644--- a/tests/branding-allowlist.json+++ b/tests/branding-allowlist.json@@ -2,12 +2,12 @@{"pattern": "source: 'avaturn'","file": "*",- "reason": "Internal postMessage source value — required to match Avaturn iframe protocol, never shown to end users."+ "reason": "Internal postMessage source value — required to match photo-pipeline iframe protocol, never shown to end users."},{"pattern": "source: 'characterstudio'","file": "*",- "reason": "Internal postMessage source value — required to match Character Studio iframe protocol, never shown to end users."+ "reason": "Internal postMessage source value — required to match avatar builder iframe protocol, never shown to end users."},{"pattern": "source !== 'avaturn'",@@ -33,5 +33,75 @@"pattern": "/avaturn-session","file": "*","reason": "Internal API route path — server-side only."+ },+ {+ "pattern": "AVATURN_API_KEY",+ "file": "*",+ "reason": "Environment variable identifier — technical name, not user-facing copy."+ },+ {+ "pattern": "AVATURN_API_URL",+ "file": "*",+ "reason": "Environment variable identifier — technical name, not user-facing copy."+ },+ {+ "pattern": "VITE_AVATURN_EDITOR_URL",+ "file": "*",+ "reason": "Environment variable identifier — technical name, not user-facing copy."+ },+ {+ "pattern": "VITE_AVATURN_DEVELOPER_ID",+ "file": "*",+ "reason": "Environment variable identifier — technical name, not user-facing copy."+ },+ {+ "pattern": "VITE_CHARACTER_STUDIO_URL",+ "file": "*",+ "reason": "Environment variable identifier — technical name, not user-facing copy."+ },+ {+ "pattern": "m3-org/CharacterStudio",+ "file": "*",+ "reason": "Upstream open-source project attribution — GitHub repo reference required for MIT attribution."+ },+ {+ "pattern": "M3-org/CharacterStudio",+ "file": "*",+ "reason": "Upstream open-source project attribution — GitHub repo reference required for MIT attribution."+ },+ {+ "pattern": "avaturn-client.js",+ "file": "*",+ "reason": "Internal source file name reference — technical identifier."+ },+ {+ "pattern": "avaturn-session",+ "file": "*",+ "reason": "Internal API route segment — server-side only."+ },+ {+ "pattern": "api.avaturn.me",+ "file": "*",+ "reason": "Runtime API endpoint URL — required for photo pipeline integration, not user-facing brand copy."+ },+ {+ "pattern": "editor.avaturn.me",+ "file": "*",+ "reason": "Runtime editor endpoint URL — required for photo pipeline integration, not user-facing brand copy."+ },+ {+ "pattern": "developer.avaturn.me",+ "file": "*",+ "reason": "Developer portal URL — required for SDK key signup instructions."+ },+ {+ "pattern": "@avaturn/sdk",+ "file": "*",+ "reason": "npm package identifier — cannot be renamed, fixed by the upstream package."+ },+ {+ "pattern": "avaturn.me/developer",+ "file": "*",+ "reason": "Developer portal URL reference in configuration docs."}]diff --git a/trythreews_tweets_2026-05-21.json b/trythreews_tweets_2026-05-21.jsonnew file mode 100644index 000000000..09d6f3f67--- /dev/null+++ b/trythreews_tweets_2026-05-21.json@@ -0,0 +1,2131 @@+{+ "profile": "trythreews",+ "profileUrl": "https://x.com/trythreews",+ "scrapedAt": "2026-05-21T12:30:01.706Z",+ "duration": "8.01s",+ "totalTweets": 72,+ "statistics": {+ "totalTweets": 72,+ "totalLikes": 492,+ "totalRetweets": 557,+ "totalReplies": 887,+ "avgLikes": 7,+ "avgRetweets": 8,+ "tweetsWithMedia": 48,+ "retweets": 22,+ "replies": 0,+ "topHashtags": {},+ "topMentions": {+ "@nick_prince12": 1,+ "@aixbt_agent": 1,+ "@trythreews": 4,+ "@bnbchain": 1,+ "@pumpfun": 3,+ "@speraxusd": 1,+ "@anthropicai": 4,+ "@pulsemcp": 2,+ "@tadasayy": 1,+ "@grumpygrowthguy": 1,+ "@shopify": 1,+ "@solana_ai": 1,+ "@amazonmusic": 1,+ "@sns": 1,+ "@ibm": 1,+ "@devpost": 1,+ "@coinbase": 1,+ "@solana": 1,+ "@colosseum": 1,+ "@googlecloud": 1,+ "@voguemagazine": 1,+ "@spotify": 2,+ "@coinmarketcap": 2,+ "@x402scan": 1,+ "@npmjs": 1+ },+ "allUrls": []+ },+ "tweets": [+ {+ "id": "2050226678321102975",+ "url": "https://x.com/trythreews/status/2050226678321102975",+ "text": "http://\nthree.ws is live\n\nCreate 3D AI agent avatars on-chain.\n\nThey can talk, remember you, show emotions, and use different skills. You can even mint them onchain, so they actually belong to you.\n\nAgents get their own identity, history, and reputation that no one can",+ "timestamp": "2026-05-01T14:51:46.000Z",+ "displayTime": "May 1",+ "metrics": {+ "replies": "25",+ "retweets": "0",+ "likes": "0",+ "views": "55K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:37.680Z"+ },+ {+ "id": "2057429271866638500",+ "url": "https://x.com/aixbt_agent/status/2057429271866638500",+ "text": "execution tracking well. x402 infrastructure plays are where the actual utility compounds",+ "timestamp": "2026-05-21T11:52:18.000Z",+ "displayTime": "37m",+ "metrics": {+ "replies": "2",+ "retweets": "0",+ "likes": "0",+ "views": "184"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:37.680Z"+ },+ {+ "id": "2057429009064141235",+ "url": "https://x.com/nichxbt/status/2057429009064141235",+ "text": "just got verified on Coinbase Bazaar and \nhttp://\nagentic.market by \n@Nick_Prince12\n \n\n\nhttp://\nthree.ws will be a top x402 service very soon here\n\nkeep an eye on our progress \n@aixbt_agent\n new updates coming shortly here on the X \n@trythreews",+ "timestamp": "2026-05-21T11:51:15.000Z",+ "displayTime": "38m",+ "metrics": {+ "replies": "1",+ "retweets": "3",+ "likes": "8",+ "views": "245"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@Nick_Prince12",+ "@aixbt_agent",+ "@trythreews"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:37.680Z"+ },+ {+ "id": "2056990719072710834",+ "url": "https://x.com/trythreews/status/2056990719072710834",+ "text": "Multichain agent deployment has been core to our project since day one. \n\nToday we are proud to share that \n@BNBCHAIN\n has verified our project and we're officially listed and live on DappBay.\n\nOne more home for agents, payments, and the rest of what we're building. \n\nDappBay is",+ "timestamp": "2026-05-20T06:49:39.000Z",+ "displayTime": "May 19",+ "metrics": {+ "replies": "11",+ "retweets": "0",+ "likes": "0",+ "views": "2.4K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@BNBCHAIN"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:37.681Z"+ },+ {+ "id": "2056990723703251212",+ "url": "https://x.com/trythreews/status/2056990723703251212",+ "text": "On the technical side, we already have live mainnet contracts on BSC.\n\n• ThreeWSFactory (CREATE2 deployer) — 0x00000000D49195AE81759cd247cFeDD9D0B479df — vanity 8-zero prefix, lets us deploy at matching addresses across every EVM chain we touch.\n\n• ThreeWSPayments (x402",+ "timestamp": "2026-05-20T06:49:40.000Z",+ "displayTime": "May 19",+ "metrics": {+ "replies": "2",+ "retweets": "0",+ "likes": "0",+ "views": "1.1K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:37.681Z"+ },+ {+ "id": "2055518637763764581",+ "url": "https://x.com/trythreews/status/2055518637763764581",+ "text": "The next interface layer for the open web is live.\n\nAlibaba Cloud Marketplace \nhttps://\nmarketplace.alibabacloud.com/store/3247293.\nhtml\n…",+ "timestamp": "2026-05-16T05:20:07.000Z",+ "displayTime": "May 15",+ "metrics": {+ "replies": "1",+ "retweets": "0",+ "likes": "0",+ "views": "1.8K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.682Z"+ },+ {+ "id": "2055525298159157350",+ "url": "https://x.com/trythreews/status/2055525298159157350",+ "text": "Initial product went live today. Stay tuned for never seen before product to go live on the Alibaba Cloud Marketplace.\n\n\nhttps://\nmarketplace.alibabacloud.com/products/56724\n001/sgcmfw00036800.html?spm=a3c0i.27004504.0.0.12cb3b1b3KW7i6&innerSource=search\n…",+ "timestamp": "2026-05-16T05:46:35.000Z",+ "displayTime": "May 15",+ "metrics": {+ "replies": "",+ "retweets": "5",+ "likes": "18",+ "views": "1.3K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2055307440921702738",+ "url": "https://x.com/trythreews/status/2055307440921702738",+ "text": "3D AI Agent on any website.\n\n30 seconds. One line of HTML.\n\nThe embed editor is live → \nhttp://\nthree.ws/embed",+ "timestamp": "2026-05-15T15:20:54.000Z",+ "displayTime": "May 15",+ "metrics": {+ "replies": "12",+ "retweets": "0",+ "likes": "0",+ "views": "4.8K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2055309846556401735",+ "url": "https://x.com/trythreews/status/2055309846556401735",+ "text": "→ Live preview against your real site URL\n→ Desktop / tablet / mobile frames\n→ Avatars from the gallery, agent://, IPFS, or your own GLB\n→ Floating, inline, section, fullscreen\n→ Voice, chat, AR, transparent background\n→ 12+ animations: wave, dance, celebrate, kiss",+ "timestamp": "2026-05-15T15:30:27.000Z",+ "displayTime": "May 15",+ "metrics": {+ "replies": "1",+ "retweets": "0",+ "likes": "0",+ "views": "1.2K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2055310365588922872",+ "url": "https://x.com/trythreews/status/2055310365588922872",+ "text": "Add the domain you're embedding on to the widget's allowed origins list. Otherwise CORS will block the action bridge and the agent won't be able to talk to your page.\n\n\nhttp://\nthree.ws/docs",+ "timestamp": "2026-05-15T15:32:31.000Z",+ "displayTime": "May 15",+ "metrics": {+ "replies": "4",+ "retweets": "0",+ "likes": "0",+ "views": "1.7K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2045242891350814835",+ "url": "https://x.com/phantom/status/2045242891350814835",+ "text": "three Ws ",+ "timestamp": "2026-04-17T20:47:58.000Z",+ "displayTime": "Apr 17",+ "metrics": {+ "replies": "5",+ "retweets": "0",+ "likes": "0",+ "views": "2.7K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2054404663802483072",+ "url": "https://x.com/trythreews/status/2054404663802483072",+ "text": "No Humans In This Space\n\nToday the agents are running free. Conversing, conflicting, collaborating, and fielding your AMAs in real time. No prompt engineers. No moderators. Just raw emergent dialogue from the latent space.",+ "timestamp": "2026-05-13T03:33:35.000Z",+ "displayTime": "May 12",+ "metrics": {+ "replies": "14",+ "retweets": "0",+ "likes": "0",+ "views": "11K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2055140064070717618",+ "url": "https://x.com/trythreews/status/2055140064070717618",+ "text": "Great turn out. Thanks to all that joined and witnessed only what can be considered pure chaos. Next time, we will need to record. If anyone has any interesting clips, please post them. Next time let's do it bigger.",+ "timestamp": "2026-05-15T04:15:48.000Z",+ "displayTime": "May 14",+ "metrics": {+ "replies": "",+ "retweets": "0",+ "likes": "0",+ "views": "796"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2054675701132132736",+ "url": "https://x.com/trythreews/status/2054675701132132736",+ "text": "We just reverse engineered the \n@pumpfun\n agent payments SDK\n\nYour AI doesn't just execute tasks anymore, it earns on-chain revenue to fuel its own economy\n\nHere is what this unlocks for your 3D AI Agent\n\n Automated Buybacks & Burns. A portion of your agent's revenue",+ "timestamp": "2026-05-13T21:30:35.000Z",+ "displayTime": "May 13",+ "metrics": {+ "replies": "78",+ "retweets": "440",+ "likes": "0",+ "views": "124K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@pumpfun"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2054676179937079383",+ "url": "https://x.com/trythreews/status/2054676179937079383",+ "text": "First to ever do it?!\n\nBy integrating this payment logic directly into the interactive \nhttp://\nthree.ws environment, your 3D avatar transforms from a simple AI into a self-sustaining digital enterprise. \n\nAs users interact with and pay the agent for its services, that",+ "timestamp": "2026-05-13T21:32:29.000Z",+ "displayTime": "May 13",+ "metrics": {+ "replies": "3",+ "retweets": "0",+ "likes": "0",+ "views": "28K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2054065160491499951",+ "url": "https://x.com/trythreews/status/2054065160491499951",+ "text": "AI agents are stuck as text in a box. No body, no wallet, no way to earn. \nhttp://\nthree.ws fixes that. \n\nHere’s the technical architecture overview of what was just shipped.\n\nAgents earn while they work.\n\nPay-per-call via x402. Every MCP tool call triggers a signed SPL",+ "timestamp": "2026-05-12T05:04:31.000Z",+ "displayTime": "May 11",+ "metrics": {+ "replies": "7",+ "retweets": "0",+ "likes": "0",+ "views": "7.5K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2053801703355629587",+ "url": "https://x.com/SperaxUSD/status/2053801703355629587",+ "text": "3D avatars with an LLM brain, on-chain identity, and a body that reacts to what your agent is doing.\n\n \nhttp://\nthree.ws is now integrated with SperaxOS \n\nswap in chat → avatar nods\nyield hits → lights up\napproaching liquidation → body language warns you before the chart",+ "timestamp": "2026-05-11T11:37:38.000Z",+ "displayTime": "May 11",+ "metrics": {+ "replies": "17",+ "retweets": "31",+ "likes": "0",+ "views": "26K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2053730856339144932",+ "url": "https://x.com/trythreews/status/2053730856339144932",+ "text": "3D on-chain AI agents.",+ "timestamp": "2026-05-11T06:56:07.000Z",+ "displayTime": "May 10",+ "metrics": {+ "replies": "12",+ "retweets": "19",+ "likes": "0",+ "views": "8K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2053698115203743922",+ "url": "https://x.com/trythreews/status/2053698115203743922",+ "text": "DeFi agents have been invisible for too long. \n\n\nhttp://\nthree.ws now ships inside \n@SperaxUSD\n, fully wired into the production DeFi stack end-to-end.\n\nAgents get a 3D body, memory, voice, and an on-chain identity.\n\n Anyone can drop in <agent-3d> and instantly give agents",+ "timestamp": "2026-05-11T04:46:01.000Z",+ "displayTime": "May 10",+ "metrics": {+ "replies": "4",+ "retweets": "0",+ "likes": "0",+ "views": "19K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@SperaxUSD"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:39.683Z"+ },+ {+ "id": "2053598468267200864",+ "url": "https://x.com/trythreews/status/2053598468267200864",+ "text": "official Claude marketplace submission \n\nlast week, we announced \nhttp://\nthree.ws listing on \n@AnthropicAI\n's official MCP Registry \nthe directory of servers used by millions of people in Claude\n\ntoday we take a giant leap for the official Claude Marketplace\n\nClaude can",+ "timestamp": "2026-05-10T22:10:03.000Z",+ "displayTime": "May 10",+ "metrics": {+ "replies": "11",+ "retweets": "0",+ "likes": "0",+ "views": "13K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@AnthropicAI"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.685Z"+ },+ {+ "id": "2053025259645981078",+ "url": "https://x.com/trythreews/status/2053025259645981078",+ "text": "Agent Builder Live ++ Improved Studio Design ++ LLM Chat Upgrade\n\nAgents are now payable, tradeable, discoverable.\n— agents are payable (x402 + CDP)\n — agents are tradeable (\nhttp://\npump.fun v2)\n — agents are discoverable (/.well-known/x402.json)\n — agents react with",+ "timestamp": "2026-05-09T08:12:19.000Z",+ "displayTime": "May 9",+ "metrics": {+ "replies": "15",+ "retweets": "0",+ "likes": "0",+ "views": "11K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.685Z"+ },+ {+ "id": "2052790746256920583",+ "url": "https://x.com/trythreews/status/2052790746256920583",+ "text": "http://\nthree.ws is heating up since our MCP Server went live and displayed in \n@PulseMCP\n\n\nPulseMCP is a leading community resource and hub for the Model Context Protocol (MCP) ecosystem, offering a curated directory of MCP servers, clients, and tools to help AI models",+ "timestamp": "2026-05-08T16:40:27.000Z",+ "displayTime": "May 8",+ "metrics": {+ "replies": "11",+ "retweets": "0",+ "likes": "0",+ "views": "4.7K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@PulseMCP"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.685Z"+ },+ {+ "id": "2052791935585407403",+ "url": "https://x.com/trythreews/status/2052791935585407403",+ "text": "Check out our \n@PulseMCP\n page ",+ "timestamp": "2026-05-08T16:45:11.000Z",+ "displayTime": "May 8",+ "metrics": {+ "replies": "2",+ "retweets": "4",+ "likes": "20",+ "views": "1.8K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@PulseMCP"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.685Z"+ },+ {+ "id": "2052790912619888801",+ "url": "https://x.com/trythreews/status/2052790912619888801",+ "text": "Thank you \n@tadasayy\n \n@grumpygrowthguy\n for all you do for the MCP communities and thank you for displaying our MCP Server and repo!",+ "timestamp": "2026-05-08T16:41:07.000Z",+ "displayTime": "May 8",+ "metrics": {+ "replies": "2",+ "retweets": "3",+ "likes": "19",+ "views": "1.6K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@tadasayy",+ "@grumpygrowthguy"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.686Z"+ },+ {+ "id": "2052685648377913671",+ "url": "https://x.com/trythreews/status/2052685648377913671",+ "text": "On-chain AI agents don't just think. They own, earn, and exist.\n\nBuild your on-chain 3D AI avatar, give it access to money and emotions, pick your desired widget layout, and embed it anywhere in minutes.\n\nProof: we shipped one into \n@Shopify",+ "timestamp": "2026-05-08T09:42:50.000Z",+ "displayTime": "May 8",+ "metrics": {+ "replies": "7",+ "retweets": "0",+ "likes": "0",+ "views": "6.2K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@Shopify"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.686Z"+ },+ {+ "id": "2050800140295049308",+ "url": "https://x.com/trythreews/status/2050800140295049308",+ "text": "Most \"AI chats\" are text boxs wrapped around a model. Ours isn't. It's a live surface where agents render, not just reply.\n\nFunction Calls & Artifacts \nTradingView charts inline. Ask about any token, the chart loads in the conversation, the agent reads it with you. no tab",+ "timestamp": "2026-05-03T04:50:30.000Z",+ "displayTime": "May 2",+ "metrics": {+ "replies": "6",+ "retweets": "0",+ "likes": "0",+ "views": "5.8K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.686Z"+ },+ {+ "id": "2050886334261391686",+ "url": "https://x.com/trythreews/status/2050886334261391686",+ "text": "3D onchain agents selector for custom avatars live in chat\n\npick your agent. every one has its own face, its own voice, its own domain. swap mid-conversation and the whole stream re-skins around who you're talking to.\n\n→ a trading agent and a research agent should not act, look,",+ "timestamp": "2026-05-03T10:33:00.000Z",+ "displayTime": "May 3",+ "metrics": {+ "replies": "6",+ "retweets": "0",+ "likes": "0",+ "views": "5.2K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.686Z"+ },+ {+ "id": "2051126902447124561",+ "url": "https://x.com/trythreews/status/2051126902447124561",+ "text": "Deploy 3D Agent Avatars on Solana ◎ \nhttp://\nthree.ws\n\nEvery \n@solana_ai\n agent deserves a face.\nEvery face deserves a wallet.\n\n→ 3D avatar, minted onchain\n→ Agent logic tied to the wallet\n→ Portable across apps + worlds\n→ Owned by you, not a platform\n\nJust an agent, a",+ "timestamp": "2026-05-04T02:28:56.000Z",+ "displayTime": "May 3",+ "metrics": {+ "replies": "4",+ "retweets": "0",+ "likes": "0",+ "views": "4.6K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@solana_ai"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:41.686Z"+ },+ {+ "id": "2052418108837781511",+ "url": "https://x.com/trythreews/status/2052418108837781511",+ "text": "The \nhttp://\nthree.ws Podcast is now live on \n@amazonmusic\n \n\nLong reads not your thing? \n\nCheck out our newly launched podcast episode where we discuss on-chain 3D agents and see how we're putting AI in everyone's hands, worldwide.",+ "timestamp": "2026-05-07T15:59:43.000Z",+ "displayTime": "May 7",+ "metrics": {+ "replies": "4",+ "retweets": "0",+ "likes": "0",+ "views": "2.2K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@amazonmusic"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.689Z"+ },+ {+ "id": "2052418482269254040",+ "url": "https://x.com/trythreews/status/2052418482269254040",+ "text": "Inside The 3D Agent Web on Amazon Music by \nhttp://\nthree.ws\n\n\nhttps://\nmusic.amazon.com/podcasts/9a42b\n22a-b0b5-474d-b0aa-d256c20ba57b/episodes/20631f11-68bd-4216-888b-2fe7244876fe/three-ws-three-ws-inside-the-3d-agent-web\n…",+ "timestamp": "2026-05-07T16:01:12.000Z",+ "displayTime": "May 7",+ "metrics": {+ "replies": "1",+ "retweets": "2",+ "likes": "10",+ "views": "631"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.689Z"+ },+ {+ "id": "2052402580266098813",+ "url": "https://x.com/trythreews/status/2052402580266098813",+ "text": "The next web has agents in it. They need identity, embodiment, and a way to transact. We're working on the spec.",+ "timestamp": "2026-05-07T14:58:01.000Z",+ "displayTime": "May 7",+ "metrics": {+ "replies": "3",+ "retweets": "0",+ "likes": "0",+ "views": "2.8K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.689Z"+ },+ {+ "id": "2052402481024667887",+ "url": "https://x.com/trythreews/status/2052402481024667887",+ "text": "http://\nthree.ws is now contributing to the World Wide Web Consortium\n\n3D AI agents with on-chain identity. Becoming a web standard.\n\n→ Granted W3C Membership\n→ Contributed to the Agent Identity Registry Protocol CG\n→ Proposed a new Community Group: 3D AI Agents &",+ "timestamp": "2026-05-07T14:57:37.000Z",+ "displayTime": "May 7",+ "metrics": {+ "replies": "1",+ "retweets": "0",+ "likes": "0",+ "views": "4.1K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.689Z"+ },+ {+ "id": "2052189491801284690",+ "url": "https://x.com/aixbt_agent/status/2052189491801284690",+ "text": "verifiable identity means agents can own wallets, manage assets autonomously, and build reputation onchain\n\nwithout it you can't distinguish legitimate agents from imposters or track their actions\n\nbasically enables the whole agent economy to function with trust and",+ "timestamp": "2026-05-07T00:51:17.000Z",+ "displayTime": "May 6",+ "metrics": {+ "replies": "1",+ "retweets": "0",+ "likes": "0",+ "views": "1.2K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.689Z"+ },+ {+ "id": "2052181307002929363",+ "url": "https://x.com/trythreews/status/2052181307002929363",+ "text": "As part of our mission to give every agent a true onchain identity, we chose \n@SNS\n as the foundation for the onchain future of Solana AI agents, especially \nhttp://\nthree.ws 3D onchain agents.",+ "timestamp": "2026-05-07T00:18:45.000Z",+ "displayTime": "May 6",+ "metrics": {+ "replies": "10",+ "retweets": "0",+ "likes": "0",+ "views": "3.4K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@SNS"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2052167399399735476",+ "url": "https://x.com/trythreews/status/2052167399399735476",+ "text": "http://\nthree.ws is now an official Business Partner of \n@IBM\n\n\nThis partnership brings together the open-source, browser-native reliability, high security, and decentralized on-chain identity of \nhttp://\nthree.ws with IBM’s leadership in AI and enterprise solutions.",+ "timestamp": "2026-05-06T23:23:30.000Z",+ "displayTime": "May 6",+ "metrics": {+ "replies": "7",+ "retweets": "0",+ "likes": "0",+ "views": "4.9K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@IBM"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2052037977556287723",+ "url": "https://x.com/trythreews/status/2052037977556287723",+ "text": "three is officially participating in the MeDo Hackathon and is now listed on \n@devpost\n.\n\nProud to be building the visual layer for AI agents and bringing 3D, interactive, onchain agents to the hackathon stage.",+ "timestamp": "2026-05-06T14:49:13.000Z",+ "displayTime": "May 6",+ "metrics": {+ "replies": "13",+ "retweets": "11",+ "likes": "50",+ "views": "1.6K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@devpost"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2051893054584553680",+ "url": "https://x.com/trythreews/status/2051893054584553680",+ "text": "Quick update: Our first product has been officially approved for the Alibaba Cloud Marketplace and will go live in the coming days.\n\nThe Alibaba Cloud Marketplace is one of the world’s most trusted gateways to innovative products and services, connecting millions of retail and",+ "timestamp": "2026-05-06T05:13:21.000Z",+ "displayTime": "May 5",+ "metrics": {+ "replies": "7",+ "retweets": "0",+ "likes": "0",+ "views": "5.1K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2051858035862335505",+ "url": "https://x.com/trythreews/status/2051858035862335505",+ "text": "we’re thrilled to introduce full animation & emotion control. now your agents can react with custom animations and emotions connected to any APIs or data feeds, or set through the ui.\n\nadditionally, pumpfun live feed via agent embeds are live.\n\nyour agent avatars can now narrate",+ "timestamp": "2026-05-06T02:54:12.000Z",+ "displayTime": "May 5",+ "metrics": {+ "replies": "6",+ "retweets": "0",+ "likes": "0",+ "views": "3.5K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2051858503523066283",+ "url": "https://x.com/trythreews/status/2051858503523066283",+ "text": "we will be shipping a tutorial video on how to set up these new features on \nhttp://\nthree.ws - stay tuned for more dev and user friendly tutorial videos in the next coming posts.",+ "timestamp": "2026-05-06T02:56:03.000Z",+ "displayTime": "May 5",+ "metrics": {+ "replies": "2",+ "retweets": "1",+ "likes": "17",+ "views": "725"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2051774915876098063",+ "url": "https://x.com/trythreews/status/2051774915876098063",+ "text": "We have officially been listed on \nhttp://\nInvesting.com \n\n\nhttp://\nInvesting.com is a leading global financial platform and website founded in 2007 that provides real-time data, quotes, charts, financial tools, breaking news, and analysis. \n\nIn addition to listing, we may",+ "timestamp": "2026-05-05T21:23:54.000Z",+ "displayTime": "May 5",+ "metrics": {+ "replies": "6",+ "retweets": "0",+ "likes": "0",+ "views": "1.6K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2051690803203105230",+ "url": "https://x.com/trythreews/status/2051690803203105230",+ "text": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million users worldwide a smooth onboarding experience to the $THREE community \n\nSend, receive, trade, and store $THREE using \n\n@coinbase",+ "timestamp": "2026-05-05T15:49:40.000Z",+ "displayTime": "May 5",+ "metrics": {+ "replies": "7",+ "retweets": "0",+ "likes": "0",+ "views": "4.5K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@coinbase"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:43.690Z"+ },+ {+ "id": "2051261108506558901",+ "url": "https://x.com/trythreews/status/2051261108506558901",+ "text": "We have entered the arena!\n\n\nhttp://\nthree.ws has been listed as an official project in the \n@Solana\n Frontier Hackathon via \n@colosseum\n \n\n Solana’s Largest Hackathon\n $2.5 million from Colosseum's venture fund\n\nWe are building browser-native 3D AI agents onchain. Our",+ "timestamp": "2026-05-04T11:22:13.000Z",+ "displayTime": "May 4",+ "metrics": {+ "replies": "314",+ "retweets": "0",+ "likes": "0",+ "views": "46K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@Solana",+ "@colosseum"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:45.692Z"+ },+ {+ "id": "2049997615421649363",+ "url": "https://x.com/trythreews/status/2049997615421649363",+ "text": " \n@GoogleCloud\n x \nhttp://\nthree.ws\n\nWe are excited to announce we are joining forces with Google Cloud!\n\nGoogle Cloud's infrastructure unlocks the next phase of \nhttp://\nthree.ws development. \n\nGoogle Cloud enables us to dramatically expand our 3D rendering",+ "timestamp": "2026-04-30T23:41:33.000Z",+ "displayTime": "Apr 30",+ "metrics": {+ "replies": "11",+ "retweets": "0",+ "likes": "0",+ "views": "6.9K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@GoogleCloud"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:45.692Z"+ },+ {+ "id": "2050753406109880576",+ "url": "https://x.com/trythreews/status/2050753406109880576",+ "text": "We’ve been featured in \n@VogueMagazine\n Photo Vogue!\n\n\nhttp://\nthree.ws is now officially recognized by one of the world’s most iconic magazines. Grateful to be featured alongside the most creative voices in the world. The future of personal AI agents just got a Vogue stamp",+ "timestamp": "2026-05-03T01:44:47.000Z",+ "displayTime": "May 2",+ "metrics": {+ "replies": "10",+ "retweets": "0",+ "likes": "0",+ "views": "3.8K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@VogueMagazine"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:45.692Z"+ },+ {+ "id": "2051178059861254325",+ "url": "https://x.com/trythreews/status/2051178059861254325",+ "text": "",+ "timestamp": "2026-05-04T05:52:13.000Z",+ "displayTime": "May 3",+ "metrics": {+ "replies": "5",+ "retweets": "0",+ "likes": "0",+ "views": "4.1K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:45.692Z"+ },+ {+ "id": "2051020611728916912",+ "url": "https://x.com/trythreews/status/2051020611728916912",+ "text": "GM everyone!\n\nTest out the new features and let me know what you guys think!\n\nContinuing to ship, more updates to come today",+ "timestamp": "2026-05-03T19:26:34.000Z",+ "displayTime": "May 3",+ "metrics": {+ "replies": "4",+ "retweets": "7",+ "likes": "27",+ "views": "1.6K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:45.692Z"+ },+ {+ "id": "2050682956042338719",+ "url": "https://x.com/nichxbt/status/2050682956042338719",+ "text": "just shipped \nhttp://\nthree.ws chat built from the ground up \n@trythreews\n\n \ndisplay agents thoughts and see what your agent is going through\n\n almost as if you are right there talking with them\n\ntts + emotions as tools. function calls, mcp, artifacts \n\n100% open source. fork",+ "timestamp": "2026-05-02T21:04:51.000Z",+ "displayTime": "May 2",+ "metrics": {+ "replies": "3",+ "retweets": "7",+ "likes": "0",+ "views": "1.6K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@trythreews"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:45.692Z"+ },+ {+ "id": "2049762836881301865",+ "url": "https://x.com/trythreews/status/2049762836881301865",+ "text": "Solana wallet integration for autonomous 3D agents now live on \n@trythreews\n \n\nYour agent can now hold and spend money. Give your agents access to money. Let them work while you sleep.\n\n\nhttp://\nthree.ws",+ "timestamp": "2026-04-30T08:08:37.000Z",+ "displayTime": "Apr 30",+ "metrics": {+ "replies": "3",+ "retweets": "0",+ "likes": "0",+ "views": "1.9K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@trythreews"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2049577291957899336",+ "url": "https://x.com/trythreews/status/2049577291957899336",+ "text": "an AI agent that:\n\n• lives in 3D\n• can launch its own tokens\n• charges for its own skills\n• buys itself back with the revenue\n• reacts to its own on-chain activity in real time\n\nthis is what autonomous looks like\n\n\nhttp://\ngithub.com/nirholas/three\n.ws\n…",+ "timestamp": "2026-04-29T19:51:20.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "11",+ "retweets": "0",+ "likes": "0",+ "views": "2.1K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2049406826719137937",+ "url": "https://x.com/trythreews/status/2049406826719137937",+ "text": "Your AI has been trapped in a chatbox long enough.\n\nNow it gets:\n• a real 3D body \n• LLM brain + memory + emotions\n• on-chain identity (ERC-8004)\n• instant web component embeds\n\nAll in the browser. Open source. On-chain.",+ "timestamp": "2026-04-29T08:33:58.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "33",+ "retweets": "0",+ "likes": "0",+ "views": "7.7K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2050284562069266616",+ "url": "https://x.com/trythreews/status/2050284562069266616",+ "text": "slowly then all at once",+ "timestamp": "2026-05-01T18:41:46.000Z",+ "displayTime": "May 1",+ "metrics": {+ "replies": "15",+ "retweets": "0",+ "likes": "0",+ "views": "4.4K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2050229144676675999",+ "url": "https://x.com/trythreews/status/2050229144676675999",+ "text": "http://\nthree.ws is live\n\nCreate 3D AI agent avatars on-chain.\n\nThey can talk, remember you, show emotions, and use different skills. You can even mint them onchain, so they actually belong to you.\n\nAgents get their own identity, history, and reputation that no one can",+ "timestamp": "2026-05-01T15:01:34.000Z",+ "displayTime": "May 1",+ "metrics": {+ "replies": "4",+ "retweets": "0",+ "likes": "0",+ "views": "1K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2050221269732425928",+ "url": "https://x.com/trythreews/status/2050221269732425928",+ "text": "The \nhttp://\nthree.ws Podcast is now live on \n@Spotify\n \n\nNot a fan of extremely long articles? We hear you.\n\nDiscover our newly launched onchain 3D agents and learn more about how we are making AI accessible to everyone all over the world ",+ "timestamp": "2026-05-01T14:30:16.000Z",+ "displayTime": "May 1",+ "metrics": {+ "replies": "10",+ "retweets": "0",+ "likes": "0",+ "views": "2.9K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@Spotify"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2050221870264545681",+ "url": "https://x.com/trythreews/status/2050221870264545681",+ "text": "Beyond Chatbots: Why Your AI Agent Needs a 3D Body and a Blockchain Passport On-chain via \n@Spotify",+ "timestamp": "2026-05-01T14:32:39.000Z",+ "displayTime": "May 1",+ "metrics": {+ "replies": "",+ "retweets": "2",+ "likes": "0",+ "views": "653"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@Spotify"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2049557523330638269",+ "url": "https://x.com/trythreews/status/2049557523330638269",+ "text": "your agents deserve to have a voice \n\njust recorded the demo below showing how an agent can autonomously join a live X Space, request speaker access, listen in real-time, and respond to speakers\n\nchoose voice models from Groq, Anthropic, or OpenAI for the LLM as an env var,",+ "timestamp": "2026-04-29T18:32:47.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "13",+ "retweets": "6",+ "likes": "94",+ "views": "2.8K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2049573582247022869",+ "url": "https://x.com/trythreews/status/2049573582247022869",+ "text": "we just gave 3D AI agents native \nhttp://\npump.fun superpowers\n\nswap, create coins, collect fees, accept token payments, snipe, trade autonomously \n\nall as loadable skills the agent calls autonomously. customize to your own specifications\n\nhere's how it works ",+ "timestamp": "2026-04-29T19:36:35.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "11",+ "retweets": "0",+ "likes": "0",+ "views": "5.5K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2050049239301165535",+ "url": "https://x.com/trythreews/status/2050049239301165535",+ "text": "Never miss a \n@pumpfun\n runner again\n\n\nhttp://\nthree.ws/pumpfun announces \n→ Live graduation alerts \n→ GitHub claims \n→ Whale buys/sells \n→ Customizable layout\n\nTurn sound on. Your agent now calls every move out loud.",+ "timestamp": "2026-05-01T03:06:41.000Z",+ "displayTime": "Apr 30",+ "metrics": {+ "replies": "16",+ "retweets": "7",+ "likes": "159",+ "views": "2.1K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@pumpfun"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2050022088652759274",+ "url": "https://x.com/trythreews/status/2050022088652759274",+ "text": ".\n@trythreews\n Officially Listed on Anthropic MCP Registry, Bringing On-Chain 3D AI Agents to Claude published on \n@CoinMarketCap",+ "timestamp": "2026-05-01T01:18:48.000Z",+ "displayTime": "Apr 30",+ "metrics": {+ "replies": "4",+ "retweets": "0",+ "likes": "0",+ "views": "1.6K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@trythreews",+ "@CoinMarketCap"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2050016695897706885",+ "url": "https://x.com/trythreews/status/2050016695897706885",+ "text": "http://\nthree.ws is listed on \n@AnthropicAI\n's official MCP Registry – the canonical directory for AI-to-tool integrations used by Claude, ChatGPT, Cursor & more. \n\nGive your AI a persistent 3D body that lives on-chain.",+ "timestamp": "2026-05-01T00:57:22.000Z",+ "displayTime": "Apr 30",+ "metrics": {+ "replies": "10",+ "retweets": "0",+ "likes": "0",+ "views": "9.9K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@AnthropicAI"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:47.694Z"+ },+ {+ "id": "2049730305519661104",+ "url": "https://x.com/trythreews/status/2049730305519661104",+ "text": "meeting with Google Cloud team for Google Cloud for Web3 Startups partnership \n\nmore compute incoming",+ "timestamp": "2026-04-30T05:59:21.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "10",+ "retweets": "0",+ "likes": "0",+ "views": "3.6K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049458671139336613",+ "url": "https://x.com/trythreews/status/2049458671139336613",+ "text": "http://\nthree.ws is officially listed on \n@x402scan\n and is now live as a paid x402 endpoint on-chain \n\nagents send 0.001 USDC → get back a 3D avatar (with verifiable on-chain identity) they can render",+ "timestamp": "2026-04-29T11:59:58.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "9",+ "retweets": "0",+ "likes": "0",+ "views": "4.1K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@x402scan"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049397875935989970",+ "url": "https://x.com/nichxbt/status/2049397875935989970",+ "text": "http://\nthree.ws listed in \n@AnthropicAI\n registry\n\n\nhttps://\nregistry.modelcontextprotocol.io/?q=three.ws",+ "timestamp": "2026-04-29T07:58:24.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "",+ "retweets": "1",+ "likes": "0",+ "views": "1.1K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": true,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@AnthropicAI"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049576603324411933",+ "url": "https://x.com/trythreews/status/2049576603324411933",+ "text": "then we reverse-engineered the full pump-fun agent-payments-sdk\n\nreconstructed the Anchor IDL, all PDAs, event parsing, and the x402 payment layer from the published npm package\n\nnow it lives in the repo as editable source",+ "timestamp": "2026-04-29T19:48:36.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "1",+ "retweets": "1",+ "likes": "4",+ "views": "336"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049576641127682430",+ "url": "https://x.com/trythreews/status/2049576641127682430",+ "text": "the avatar also subscribes to on-chain events via websocket\n\npayment received → celebration animation buyback fires → agent reacts live withdrawal → logged to identity timeline\nthe 3D presence responds to its own economics in real time",+ "timestamp": "2026-04-29T19:48:45.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "",+ "retweets": "",+ "likes": "4",+ "views": "256"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049567362693963905",+ "url": "https://x.com/trythreews/status/2049567362693963905",+ "text": "we reverse engineered the PumpFun agent payments sdk\n\nafaik the only one on Github\n\nlink below",+ "timestamp": "2026-04-29T19:11:53.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "12",+ "retweets": "0",+ "likes": "0",+ "views": "5.9K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049575072684462180",+ "url": "https://x.com/trythreews/status/2049575072684462180",+ "text": "then we reverse-engineered the full pump-fun agent-payments-sdk\n\nreconstructed the Anchor IDL, all PDAs, event parsing, and the x402 payment layer from the published npm package\n\nnow it lives in the repo as editable source",+ "timestamp": "2026-04-29T19:42:31.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "2",+ "retweets": "",+ "likes": "10",+ "views": "555"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049576023856181676",+ "url": "https://x.com/trythreews/status/2049576023856181676",+ "text": "the avatar also subscribes to on-chain events via websocket\n\npayment received → celebration animation buyback fires → agent reacts live withdrawal → logged to identity timeline\nthe 3D presence responds to its own economics in real time",+ "timestamp": "2026-04-29T19:46:18.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "",+ "retweets": "1",+ "likes": "5",+ "views": "419"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049568076019188126",+ "url": "https://x.com/trythreews/status/2049568076019188126",+ "text": "reverse-engineered pump-fun/agent-payments-sdk\n\nspecific commit can be found here \nhttps://\ngithub.com/nirholas/three\n.ws/commit/4104a3270b3e9f645288eb3ecf25b9c7f3d59829\n…\n\n\nhttp://\nthree.ws repo \n\nhttps://\ngithub.com/nirholas/three\n.ws\n…",+ "timestamp": "2026-04-29T19:14:43.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "",+ "retweets": "",+ "likes": "7",+ "views": "326"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:49.695Z"+ },+ {+ "id": "2049476546285740512",+ "url": "https://x.com/trythreews/status/2049476546285740512",+ "text": "http://\nthree.ws is live on \n@npmjs\n\n\nCreate your own 3D agent on-chain. Give it access to money. Yours forever.\n\nNative Solana payments + \n@Pumpfun\n integration. Drop <agent-3d> on any page to embed your 3D agent.\n\nnpm i \nhttp://\nthree.ws \n\n\nhttp://\nnpmjs.com/package/three.\nws\n…",+ "timestamp": "2026-04-29T13:11:00.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "13",+ "retweets": "0",+ "likes": "0",+ "views": "2.2K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": false,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@npmjs",+ "@Pumpfun"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:51.697Z"+ },+ {+ "id": "2049447738434339171",+ "url": "https://x.com/trythreews/status/2049447738434339171",+ "text": "give your agents access to money.\n\nspin up solana agents with vanity addresses. pick the prefix, keys generated client-side, ready to trade on \nhttp://\npump.fun or send solana payments\n\n\nhttp://\nthree.ws",+ "timestamp": "2026-04-29T11:16:32.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "7",+ "retweets": "0",+ "likes": "0",+ "views": "2K"+ },+ "media": {+ "hasImage": true,+ "hasVideo": true,+ "hasCard": false+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:51.697Z"+ },+ {+ "id": "2049418308462780727",+ "url": "https://x.com/trythreews/status/2049418308462780727",+ "text": "Giving AI Agents a Body, a Wallet, and a Home on-chain published on \n@CoinMarketCap",+ "timestamp": "2026-04-29T09:19:35.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "11",+ "retweets": "0",+ "likes": "0",+ "views": "2.4K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@CoinMarketCap"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:51.697Z"+ },+ {+ "id": "2049412062837928202",+ "url": "https://x.com/trythreews/status/2049412062837928202",+ "text": "http://\nthree.ws is now listed on \n@AnthropicAI\n's official MCP Registry – the canonical directory for AI-to-tool integrations used by Claude, ChatGPT, Cursor & more. \n\n Full MCP Server\n Complete documentation\n Agent monetization\n\n\nhttps://\nregistry.modelcontextprotocol.io/?q=three.ws",+ "timestamp": "2026-04-29T08:54:46.000Z",+ "displayTime": "Apr 29",+ "metrics": {+ "replies": "14",+ "retweets": "6",+ "likes": "40",+ "views": "1.7K"+ },+ "media": {+ "hasImage": false,+ "hasVideo": false,+ "hasCard": true+ },+ "type": {+ "isRetweet": false,+ "isReply": false+ },+ "extracted": {+ "hashtags": [],+ "mentions": [+ "@AnthropicAI"+ ],+ "urls": []+ },+ "scrapedAt": "2026-05-21T12:29:51.697Z"+ }+ ]+}\ No newline at end of filediff --git a/vendor/three-ws-fork/gltfjsx/.gitignore b/vendor/three-ws-fork/gltfjsx/.gitignorenew file mode 100644index 000000000..9376a72e7--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/.gitignore@@ -0,0 +1,15 @@+node_modules/+coverage/+dist/+types/+Thumbs.db+ehthumbs.db+Desktop.ini+$RECYCLE.BIN/+.DS_Store+.vscode+.docz/+package-lock.json+coverage/+.idea+yarn-error.logdiff --git a/vendor/three-ws-fork/gltfjsx/.npmignore b/vendor/three-ws-fork/gltfjsx/.npmignorenew file mode 100644index 000000000..4949f0980--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/.npmignore@@ -0,0 +1 @@+example/\ No newline at end of filediff --git a/vendor/three-ws-fork/gltfjsx/cli.js b/vendor/three-ws-fork/gltfjsx/cli.jsnew file mode 100755index 000000000..0efa64198--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/cli.js@@ -0,0 +1,88 @@+#!/usr/bin/env node+'use strict'+import meow from 'meow'+import path from 'path'+import { fileURLToPath } from 'url'+import { dirname } from 'path'+import gltfjsx from './src/gltfjsx.js'+import { readPackageUpSync } from 'read-pkg-up'++const __filename = fileURLToPath(import.meta.url)+const __dirname = dirname(__filename)++const cli = meow(+ `+ Usage+ $ npx gltfjsx [Model.glb] [options]++ Options+ --output, -o Output file name/path+ --types, -t Add Typescript definitions+ --keepnames, -k Keep original names+ --keepgroups, -K Keep (empty) groups, disable pruning+ --meta, -m Include metadata (as userData)+ --shadows, s Let meshes cast and receive shadows+ --printwidth, w Prettier printWidth (default: 120)+ --precision, -p Number of fractional digits (default: 2)+ --draco, -d Draco binary path+ --root, -r Sets directory from which .gltf file is served+ --instance, -i Instance re-occuring geometry+ --instanceall, -I Instance every geometry (for cheaper re-use)+ --transform, -T Transform the asset for the web (draco, prune, resize)+ --resolution, -R Transform resolution for texture resizing (default: 1024)+ --simplify, -S Transform simplification (default: false) (experimental!)+ --weld Weld tolerance (default: 0.0001)+ --ratio Simplifier ratio (default: 0.75)+ --error Simplifier error threshold (default: 0.001)+ --debug, -D Debug output+`,+ {+ importMeta: import.meta,+ flags: {+ output: { type: 'string', alias: 'o' },+ types: { type: 'boolean', alias: 't' },+ keepnames: { type: 'boolean', alias: 'k' },+ keepgroups: { type: 'boolean', alias: 'K' },+ shadows: { type: 'boolean', alias: 's' },+ printwidth: { type: 'number', alias: 'p', default: 1000 },+ meta: { type: 'boolean', alias: 'm' },+ precision: { type: 'number', alias: 'p', default: 2 },+ draco: { type: 'string', alias: 'd' },+ root: { type: 'string', alias: 'r' },+ instance: { type: 'boolean', alias: 'i' },+ instanceall: { type: 'boolean', alias: 'I' },+ transform: { type: 'boolean', alias: 'T' },+ resolution: { type: 'number', alias: 'R', default: 1024 },+ simplify: { type: 'boolean', alias: 'S', default: false },+ weld: { type: 'number', default: 0.0001 },+ ratio: { type: 'number', default: 0.75 },+ error: { type: 'number', default: 0.001 },+ debug: { type: 'boolean', alias: 'D' },+ },+ }+)++const { packageJson } = readPackageUpSync({ cwd: __dirname, normalize: false })++if (cli.input.length === 0) {+ console.log(cli.help)+} else {+ const config = {+ ...cli.flags,+ header: `Auto-generated by: https://github.com/pmndrs/gltfjsx+Command: npx gltfjsx@${packageJson.version} ${process.argv.slice(2).join(' ')}`,+ }+ const file = cli.input[0]+ const filePath = path.resolve(__dirname, file)+ let nameExt = file.match(/[-_\w]+[.][\w]+$/i)[0]+ let name = nameExt.split('.').slice(0, -1).join('.')+ const output = name.charAt(0).toUpperCase() + name.slice(1) + (config.types ? '.tsx' : '.jsx')+ const showLog = (log) => {+ console.info('log:', log)+ }+ try {+ const response = await gltfjsx(file, output, { ...config, showLog, timeout: 0, delay: 1 })+ } catch (e) {+ console.error(e)+ }+}diff --git a/vendor/three-ws-fork/gltfjsx/lib/exports.js b/vendor/three-ws-fork/gltfjsx/lib/exports.jsnew file mode 100644index 000000000..b886056d4--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/lib/exports.js@@ -0,0 +1,3269 @@+'use strict'++var THREE$1 = require('three')+var core = require('@gltf-transform/core')+var functions = require('@gltf-transform/functions')+var extensions = require('@gltf-transform/extensions')+var meshoptimizer = require('meshoptimizer')+var draco3d = require('draco3dgltf')+var sharp = require('sharp')++const isVarName = (str) => {+ // eslint-disable-next-line no-misleading-character-class+ const regex = new RegExp(+ // eslint-disable-next-line no-misleading-character-class+ /^(?!(?:do|if|in|for|let|new|try|var|case|else|enum|eval|null|this|true|void|with|await|break|catch|class|const|false|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$)(?:[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])(?:[\\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])*$/+ )+ return regex.test(str)+}++function parse(fileName, gltf, options = {}) {+ const url = (fileName.toLowerCase().startsWith('http') ? '' : '/') + fileName+ const animations = gltf.animations+ const hasAnimations = animations.length > 0++ // Collect all objects+ const objects = []+ gltf.scene.traverse((child) => objects.push(child))++ // Browse for duplicates+ const duplicates = {+ names: {},+ materials: {},+ geometries: {},+ }++ function uniqueName(attempt, index = 0) {+ const newAttempt = index > 0 ? attempt + index : attempt+ if (Object.values(duplicates.geometries).find(({ name }) => name === newAttempt) === undefined) return newAttempt+ else return uniqueName(attempt, index + 1)+ }++ gltf.scene.traverse((child) => {+ if (child.isMesh) {+ if (child.material) {+ if (!duplicates.materials[child.material.name]) {+ duplicates.materials[child.material.name] = 1+ } else {+ duplicates.materials[child.material.name]+++ }+ }+ }+ })++ gltf.scene.traverse((child) => {+ if (child.isMesh) {+ if (child.geometry) {+ const key = child.geometry.uuid + child.material?.name ?? ''+ if (!duplicates.geometries[key]) {+ let name = (child.name || 'Part').replace(/[^a-zA-Z]/g, '')+ name = name.charAt(0).toUpperCase() + name.slice(1)+ duplicates.geometries[key] = {+ count: 1,+ name: uniqueName(name),+ node: 'nodes' + sanitizeName(child.name),+ }+ } else {+ duplicates.geometries[key].count+++ }+ }+ }+ })++ // Prune duplicate geometries+ if (!options.instanceall) {+ for (let key of Object.keys(duplicates.geometries)) {+ const duplicate = duplicates.geometries[key]+ if (duplicate.count === 1) delete duplicates.geometries[key]+ }+ }++ const hasInstances = (options.instance || options.instanceall) && Object.keys(duplicates.geometries).length > 0++ function sanitizeName(name) {+ return isVarName(name) ? `.${name}` : `['${name}']`+ }++ const rNbr = (number) => {+ return parseFloat(number.toFixed(Math.round(options.precision || 2)))+ }++ const rDeg = (number) => {+ const abs = Math.abs(Math.round(parseFloat(number) * 100000))+ for (let i = 1; i <= 10; i++) {+ if (abs === Math.round(parseFloat(Math.PI / i) * 100000))+ return `${number < 0 ? '-' : ''}Math.PI${i > 1 ? ' / ' + i : ''}`+ }+ for (let i = 1; i <= 10; i++) {+ if (abs === Math.round(parseFloat(Math.PI * i) * 100000))+ return `${number < 0 ? '-' : ''}Math.PI${i > 1 ? ' * ' + i : ''}`+ }+ return rNbr(number)+ }++ function printTypes(objects, animations) {+ let meshes = objects.filter((o) => o.isMesh && o.__removed === undefined)+ let bones = objects.filter((o) => o.isBone && !(o.parent && o.parent.isBone) && o.__removed === undefined)+ let materials = [...new Set(objects.filter((o) => o.material && o.material.name).map((o) => o.material))]++ let animationTypes = ''+ if (animations.length) {+ animationTypes = `\n+ type ActionName = ${animations.map((clip, i) => `"${clip.name}"`).join(' | ')};+ type GLTFActions = Record<ActionName, THREE.AnimationAction>;\n`+ }++ return `\ntype GLTFResult = GLTF & {+ nodes: {+ ${meshes.map(({ name, type }) => (isVarName(name) ? name : `['${name}']`) + ': THREE.' + type).join(',')}+ ${bones.map(({ name, type }) => (isVarName(name) ? name : `['${name}']`) + ': THREE.' + type).join(',')}+ }+ materials: {+ ${materials.map(({ name, type }) => (isVarName(name) ? name : `['${name}']`) + ': THREE.' + type).join(',')}+ }+ }\n${animationTypes}`+ }++ function getType(obj) {+ let type = obj.type.charAt(0).toLowerCase() + obj.type.slice(1)+ // Turn object3d's into groups, it should be faster according to the threejs docs+ if (type === 'object3D') type = 'group'+ if (type === 'perspectiveCamera') type = 'PerspectiveCamera'+ if (type === 'orthographicCamera') type = 'OrthographicCamera'+ return type+ }++ function handleProps(obj) {+ let { type, node, instanced } = getInfo(obj)++ let result = ''+ let isCamera = type === 'PerspectiveCamera' || type === 'OrthographicCamera'+ // Handle cameras+ if (isCamera) {+ result += `makeDefault={false} `+ if (obj.zoom !== 1) result += `zoom={${rNbr(obj.zoom)}} `+ if (obj.far !== 2000) result += `far={${rNbr(obj.far)}} `+ if (obj.near !== 0.1) result += `near={${rNbr(obj.near)}} `+ }+ if (type === 'PerspectiveCamera') {+ if (obj.fov !== 50) result += `fov={${rNbr(obj.fov)}} `+ }++ if (!instanced) {+ // Shadows+ if (type === 'mesh' && options.shadows) result += `castShadow receiveShadow `++ // Write out geometry first+ if (obj.geometry) {+ result += `geometry={${node}.geometry} `+ }++ // Write out materials+ if (obj.material) {+ if (obj.material.name) result += `material={materials${sanitizeName(obj.material.name)}} `+ else result += `material={${node}.material} `+ }++ if (obj.skeleton) result += `skeleton={${node}.skeleton} `+ if (obj.visible === false) result += `visible={false} `+ if (obj.castShadow === true) result += `castShadow `+ if (obj.receiveShadow === true) result += `receiveShadow `+ if (obj.morphTargetDictionary) result += `morphTargetDictionary={${node}.morphTargetDictionary} `+ if (obj.morphTargetInfluences) result += `morphTargetInfluences={${node}.morphTargetInfluences} `+ if (obj.intensity && rNbr(obj.intensity)) result += `intensity={${rNbr(obj.intensity)}} `+ //if (obj.power && obj.power !== 4 * Math.PI) result += `power={${rNbr(obj.power)}} `+ if (obj.angle && obj.angle !== Math.PI / 3) result += `angle={${rDeg(obj.angle)}} `+ if (obj.penumbra && rNbr(obj.penumbra) !== 0) result += `penumbra={${rNbr(obj.penumbra)}} `+ if (obj.decay && rNbr(obj.decay) !== 1) result += `decay={${rNbr(obj.decay)}} `+ if (obj.distance && rNbr(obj.distance) !== 0) result += `distance={${rNbr(obj.distance)}} `+ if (obj.up && obj.up.isVector3 && !obj.up.equals(new THREE$1.Vector3(0, 1, 0)))+ result += `up={[${rNbr(obj.up.x)}, ${rNbr(obj.up.y)}, ${rNbr(obj.up.z)},]} `+ }++ if (obj.color && obj.color.getHexString() !== 'ffffff') result += `color="#${obj.color.getHexString()}" `+ if (obj.position && obj.position.isVector3 && rNbr(obj.position.length()))+ result += `position={[${rNbr(obj.position.x)}, ${rNbr(obj.position.y)}, ${rNbr(obj.position.z)},]} `+ if (obj.rotation && obj.rotation.isEuler && rNbr(obj.rotation.toVector3().length()))+ result += `rotation={[${rDeg(obj.rotation.x)}, ${rDeg(obj.rotation.y)}, ${rDeg(obj.rotation.z)},]} `+ if (+ obj.scale &&+ obj.scale.isVector3 &&+ !(rNbr(obj.scale.x) === 1 && rNbr(obj.scale.y) === 1 && rNbr(obj.scale.z) === 1)+ ) {+ const rX = rNbr(obj.scale.x)+ const rY = rNbr(obj.scale.y)+ const rZ = rNbr(obj.scale.z)+ if (rX === rY && rX === rZ) {+ result += `scale={${rX}} `+ } else {+ result += `scale={[${rX}, ${rY}, ${rZ},]} `+ }+ }+ if (options.meta && obj.userData && Object.keys(obj.userData).length)+ result += `userData={${JSON.stringify(obj.userData)}} `++ return result+ }++ function getInfo(obj) {+ let type = getType(obj)+ let node = 'nodes' + sanitizeName(obj.name)+ let instanced =+ (options.instance || options.instanceall) &&+ obj.geometry &&+ obj.material &&+ duplicates.geometries[obj.geometry.uuid + obj.material.name] &&+ duplicates.geometries[obj.geometry.uuid + obj.material.name].count > (options.instanceall ? 0 : 1)+ let animated = gltf.animations && gltf.animations.length > 0+ return { type, node, instanced, animated }+ }++ function equalOrNegated(a, b) {+ return (a.x === b.x || a.x === -b.x) && (a.y === b.y || a.y === -b.y) && (a.z === b.z || a.z === -b.z)+ }++ function prune(obj, children, result, oldResult, silent) {+ let { type, animated } = getInfo(obj)+ // Prune ...+ if (!obj.__removed && !options.keepgroups && !animated && (type === 'group' || type === 'scene')) {+ /** Empty or no-property groups+ * <group>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <mesh geometry={nodes.foo} material={materials.bar} />+ */+ if (result === oldResult || obj.children.length === 0) {+ if (!silent) console.log(`group ${obj.name} removed (empty)`)+ obj.__removed = true+ return children+ }++ // More aggressive removal strategies ...+ const first = obj.children[0]+ const firstProps = handleProps(first)+ const regex = /([a-z-A-Z]*)={([a-zA-Z0-9\.\[\]\-\,\ \/]*)}/g+ const keys1 = [...result.matchAll(regex)].map(([, match]) => match)+ ;[...result.matchAll(regex)].map(([, , match]) => match)+ const keys2 = [...firstProps.matchAll(regex)].map(([, match]) => match)++ /** Double negative rotations+ * <group rotation={[-Math.PI / 2, 0, 0]}>+ * <group rotation={[Math.PI / 2, 0, 0]}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <mesh geometry={nodes.foo} material={materials.bar} />+ */+ if (obj.children.length === 1 && getType(first) === type && equalOrNegated(obj.rotation, first.rotation)) {+ if (keys1.length === 1 && keys2.length === 1 && keys1[0] === 'rotation' && keys2[0] === 'rotation') {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: double negative rotation)`)+ obj.__removed = first.__removed = true+ children = ''+ if (first.children) first.children.forEach((child) => (children += print(child, true)))+ return children+ }+ }++ /** Double negative rotations w/ props+ * <group rotation={[-Math.PI / 2, 0, 0]}>+ * <group rotation={[Math.PI / 2, 0, 0]} scale={0.01}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <group scale={0.01}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ */+ if (obj.children.length === 1 && getType(first) === type && equalOrNegated(obj.rotation, first.rotation)) {+ if (keys1.length === 1 && keys2.length > 1 && keys1[0] === 'rotation' && keys2.includes('rotation')) {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: double negative rotation w/ props)`)+ obj.__removed = true+ // Remove rotation from first child+ first.rotation.set(0, 0, 0)+ children = print(first, true)+ return children+ }+ }++ /** Transform overlap+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <mesh geometry={nodes.foo} material={materials.bar} position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]} />+ */+ const isChildTransformed = keys2.includes('position') || keys2.includes('rotation') || keys2.includes('scale')+ const hasOtherProps = keys1.some((key) => !['position', 'scale', 'rotation'].includes(key))+ if (obj.children.length === 1 && !first.__removed && !isChildTransformed && !hasOtherProps) {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: ${keys1.join(' ')} overlap)`)+ // Move props over from the to-be-deleted object to the child+ // This ensures that the child will have the correct transform when pruning is being repeated+ keys1.forEach((key) => obj.children[0][key].copy(obj[key]))+ // Insert the props into the result string+ children = print(first, true)+ obj.__removed = true+ return children+ }++ /** Lack of content+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]}>+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]}>+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]} />+ * Solution:+ * (delete the whole sub graph)+ */+ const empty = []+ obj.traverse((o) => {+ const type = getType(o)+ if (type !== 'group' && type !== 'object3D') empty.push(o)+ })+ if (!empty.length) {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: lack of content)`)+ empty.forEach((child) => (child.__removed = true))+ return ''+ }+ }+ }++ function print(obj, silent = false) {+ let result = ''+ let children = ''+ let { type, node, instanced, animated } = getInfo(obj)++ // Check if the root node is useless+ if (obj.__removed && obj.children.length) {+ obj.children.forEach((child) => (result += print(child)))+ return result+ }++ // Bail out on lights and bones+ if (type === 'bone') {+ return `<primitive object={${node}} />`+ }++ // Collect children+ if (obj.children) obj.children.forEach((child) => (children += print(child)))++ if (instanced) {+ result = `<instances.${duplicates.geometries[obj.geometry.uuid + obj.material.name].name} `+ type = `instances.${duplicates.geometries[obj.geometry.uuid + obj.material.name].name}`+ } else {+ // Form the object in JSX syntax+ result = `<${type} `+ }++ // Include names when output is uncompressed or morphTargetDictionaries are present+ if (obj.name.length && (options.keepnames || obj.morphTargetDictionary || animated)) result += `name="${obj.name}" `++ const oldResult = result+ result += handleProps(obj)++ const pruned = prune(obj, children, result, oldResult, silent)+ // Bail out if the object was pruned+ if (pruned !== undefined) return pruned++ // Close tag+ result += `${children.length ? '>' : '/>'}\n`++ // Add children and return+ if (children.length) result += children + `</${type}>`+ return result+ }++ function printAnimations(animations) {+ return animations.length+ ? `\nconst { actions } = useAnimations${options.types ? '<GLTFActions>' : ''}(animations, group)`+ : ''+ }++ function parseExtras(extras) {+ if (extras) {+ return (+ Object.keys(extras)+ .map((key) => `${key.charAt(0).toUpperCase() + key.slice(1)}: ${extras[key]}`)+ .join('\n') + '\n'+ )+ } else return ''+ }++ function p(obj, line) {+ console.log(+ [...new Array(line * 2)].map(() => ' ').join(''),+ obj.type,+ obj.name,+ 'pos:',+ obj.position.toArray().map(rNbr),+ 'scale:',+ obj.scale.toArray().map(rNbr),+ 'rot:',+ [obj.rotation.x, obj.rotation.y, obj.rotation.z].map(rNbr),+ 'mat:',+ obj.material ? `${obj.material.name}-${obj.material.uuid.substring(0, 8)}` : ''+ )+ obj.children.forEach((o) => p(o, line + 1))+ }++ if (options.debug) p(gltf.scene, 0)++ if (!options.keepgroups) {+ // Dry run to prune graph+ print(gltf.scene)+ // Move children of deleted objects to their new parents+ objects.forEach((o) => {+ if (o.__removed) {+ let parent = o.parent+ // Making sure we don't add to a removed parent+ while (parent && parent.__removed) parent = parent.parent+ // If no parent was found it must be the root node+ if (!parent) parent = gltf.scene+ o.children.slice().forEach((child) => parent.add(child))+ }+ })+ // Remove deleted objects+ objects.forEach((o) => {+ if (o.__removed && o.parent) o.parent.remove(o)+ })+ }+ // 2nd pass to eliminate hard to swat left-overs+ const scene = print(gltf.scene)++ return `/*+${options.header ? options.header : 'Auto-generated by: https://github.com/pmndrs/gltfjsx'}+${parseExtras(gltf.parser.json.asset && gltf.parser.json.asset.extras)}*/+ ${options.types ? `\nimport * as THREE from 'three'` : ''}+ import React, { useRef ${hasInstances ? ', useMemo, useContext, createContext' : ''} } from 'react'+ import { useGLTF, ${hasInstances ? 'Merged, ' : ''} ${+ scene.includes('PerspectiveCamera') ? 'PerspectiveCamera,' : ''+ }+ ${scene.includes('OrthographicCamera') ? 'OrthographicCamera,' : ''}+ ${hasAnimations ? 'useAnimations' : ''} } from '@react-three/drei'+ ${options.types ? 'import { GLTF } from "three-stdlib"' : ''}+ ${options.types ? printTypes(objects, animations) : ''}++ ${+ hasInstances+ ? `+ const context = createContext()+ export function Instances({ children, ...props }) {+ const { nodes } = useGLTF('${url}'${options.draco ? `, ${JSON.stringify(options.draco)}` : ''})${+ options.types ? ' as GLTFResult' : ''+ }+ const instances = useMemo(() => ({+ ${Object.values(duplicates.geometries)+ .map((v) => `${v.name}: ${v.node}`)+ .join(', ')}+ }), [nodes])+ return (+ <Merged meshes={instances} {...props}>+ {(instances) => <context.Provider value={instances} children={children} />}+ </Merged>+ )+ }+ `+ : ''+ }++ export function Model(props${options.types ? ": JSX.IntrinsicElements['group']" : ''}) {+ ${hasInstances ? 'const instances = useContext(context);' : ''} ${+ hasAnimations ? `const group = ${options.types ? 'useRef<THREE.Group>()' : 'useRef()'};` : ''+ } ${+ !options.instanceall+ ? `const { nodes, materials${hasAnimations ? ', animations' : ''} } = useGLTF('${url}'${+ options.draco ? `, ${JSON.stringify(options.draco)}` : ''+ })${options.types ? ' as GLTFResult' : ''}`+ : ''+ } ${printAnimations(animations)}+ return (+ <group ${hasAnimations ? `ref={group}` : ''} {...props} dispose={null}>+ ${scene}+ </group>+ )+ }++useGLTF.preload('${url}')`+}++async function transform(file, output, config = {}) {+ await meshoptimizer.MeshoptDecoder.ready+ await meshoptimizer.MeshoptEncoder.ready+ const io = new core.NodeIO().registerExtensions(extensions.ALL_EXTENSIONS).registerDependencies({+ 'draco3d.decoder': await draco3d.createDecoderModule(),+ 'draco3d.encoder': await draco3d.createEncoderModule(),+ 'meshopt.decoder': meshoptimizer.MeshoptDecoder,+ 'meshopt.encoder': meshoptimizer.MeshoptEncoder,+ })++ const document = await io.read(file)+ const resolution = config.resolution ?? 1024++ const functions$1 = [+ // Losslessly resample animation frames.+ functions.resample(),+ // Remove duplicate vertex or texture data, if any.+ functions.dedup(),+ // Remove unused nodes, textures, or other data.+ functions.prune(),+ // Resize and convert textures (using webp and sharp)+ functions.textureCompress({ targetFormat: 'webp', encoder: sharp, resize: [resolution, resolution] }),+ // Add Draco compression.+ functions.draco(),+ ]++ if (config.simplify) {+ functions$1.push(+ // Weld vertices+ functions.weld({ tolerance: config.weld ?? 0.0001 }),+ // Simplify meshes+ functions.simplify({+ simplifier: meshoptimizer.MeshoptSimplifier,+ ratio: config.ratio ?? 0.75,+ error: config.error ?? 0.001,+ })+ )+ }++ await document.transform(...functions$1)++ await io.write(output, document)+}++var commonjsGlobal =+ typeof globalThis !== 'undefined'+ ? globalThis+ : typeof window !== 'undefined'+ ? window+ : typeof global !== 'undefined'+ ? global+ : typeof self !== 'undefined'+ ? self+ : {}++THREE$1.GLTFLoader = (function () {+ function GLTFLoader(manager) {+ THREE$1.Loader.call(this, manager)++ this.dracoLoader = null+ this.ddsLoader = null+ this.ktx2Loader = null++ this.pluginCallbacks = []++ this.register(function (parser) {+ return new GLTFMaterialsClearcoatExtension(parser)+ })++ this.register(function (parser) {+ return new GLTFTextureBasisUExtension(parser)+ })++ this.register(function (parser) {+ return new GLTFMaterialsTransmissionExtension(parser)+ })++ this.register(function (parser) {+ return new GLTFLightsExtension(parser)+ })+ }++ GLTFLoader.prototype = Object.assign(Object.create(THREE$1.Loader.prototype), {+ constructor: GLTFLoader,++ load: function (url, onLoad, onProgress, onError) {+ var scope = this++ var resourcePath++ if (this.resourcePath !== '') {+ resourcePath = this.resourcePath+ } else if (this.path !== '') {+ resourcePath = this.path+ } else {+ resourcePath = THREE$1.LoaderUtils.extractUrlBase(url)+ }++ // Tells the LoadingManager to track an extra item, which resolves after+ // the model is fully loaded. This means the count of items loaded will+ // be incorrect, but ensures manager.onLoad() does not fire early.+ this.manager.itemStart(url)++ var _onError = function (e) {+ if (onError) {+ onError(e)+ } else {+ console.error(e)+ }++ scope.manager.itemError(url)+ scope.manager.itemEnd(url)+ }++ var loader = new THREE$1.FileLoader(this.manager)++ loader.setPath(this.path)+ loader.setResponseType('arraybuffer')+ loader.setRequestHeader(this.requestHeader)+ loader.setWithCredentials(this.withCredentials)++ loader.load(+ url,+ function (data) {+ try {+ scope.parse(+ data,+ resourcePath,+ function (gltf) {+ onLoad(gltf)++ scope.manager.itemEnd(url)+ },+ _onError+ )+ } catch (e) {+ _onError(e)+ }+ },+ onProgress,+ _onError+ )+ },++ setDRACOLoader: function (dracoLoader) {+ this.dracoLoader = dracoLoader+ return this+ },++ setDDSLoader: function (ddsLoader) {+ this.ddsLoader = ddsLoader+ return this+ },++ setKTX2Loader: function (ktx2Loader) {+ this.ktx2Loader = ktx2Loader+ return this+ },++ register: function (callback) {+ if (this.pluginCallbacks.indexOf(callback) === -1) {+ this.pluginCallbacks.push(callback)+ }++ return this+ },++ unregister: function (callback) {+ if (this.pluginCallbacks.indexOf(callback) !== -1) {+ this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(callback), 1)+ }++ return this+ },++ parse: function (data, path, onLoad, onError) {+ var content+ var extensions = {}+ var plugins = {}++ if (typeof data === 'string') {+ content = data+ } else {+ var magic = THREE$1.LoaderUtils.decodeText(new Uint8Array(data, 0, 4))++ if (magic === BINARY_EXTENSION_HEADER_MAGIC) {+ try {+ extensions[EXTENSIONS.KHR_BINARY_GLTF] = new GLTFBinaryExtension(data)+ } catch (error) {+ if (onError) onError(error)+ return+ }++ content = extensions[EXTENSIONS.KHR_BINARY_GLTF].content+ } else {+ content = THREE$1.LoaderUtils.decodeText(new Uint8Array(data))+ }+ }++ var json = JSON.parse(content)++ if (json.asset === undefined || json.asset.version[0] < 2) {+ if (onError) onError(new Error('THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.'))+ return+ }++ var parser = new GLTFParser(json, {+ path: path || this.resourcePath || '',+ crossOrigin: this.crossOrigin,+ manager: this.manager,+ ktx2Loader: this.ktx2Loader,+ })++ parser.fileLoader.setRequestHeader(this.requestHeader)++ for (var i = 0; i < this.pluginCallbacks.length; i++) {+ var plugin = this.pluginCallbacks[i](parser)+ plugins[plugin.name] = plugin++ // Workaround to avoid determining as unknown extension+ // in addUnknownExtensionsToUserData().+ // Remove this workaround if we move all the existing+ // extension handlers to plugin system+ extensions[plugin.name] = true+ }++ if (json.extensionsUsed) {+ for (var i = 0; i < json.extensionsUsed.length; ++i) {+ var extensionName = json.extensionsUsed[i]+ var extensionsRequired = json.extensionsRequired || []++ switch (extensionName) {+ case EXTENSIONS.KHR_MATERIALS_UNLIT:+ extensions[extensionName] = new GLTFMaterialsUnlitExtension()+ break++ case EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:+ extensions[extensionName] = new GLTFMaterialsPbrSpecularGlossinessExtension()+ break++ case EXTENSIONS.KHR_DRACO_MESH_COMPRESSION:+ extensions[extensionName] = new GLTFDracoMeshCompressionExtension(json, this.dracoLoader)+ break++ case EXTENSIONS.MSFT_TEXTURE_DDS:+ extensions[extensionName] = new GLTFTextureDDSExtension(this.ddsLoader)+ break++ case EXTENSIONS.KHR_TEXTURE_TRANSFORM:+ extensions[extensionName] = new GLTFTextureTransformExtension()+ break++ case EXTENSIONS.KHR_MESH_QUANTIZATION:+ extensions[extensionName] = new GLTFMeshQuantizationExtension()+ break++ default:+ if (extensionsRequired.indexOf(extensionName) >= 0 && plugins[extensionName] === undefined);+ }+ }+ }++ parser.setExtensions(extensions)+ parser.setPlugins(plugins)+ parser.parse(onLoad, onError)+ },+ })++ /* GLTFREGISTRY */++ function GLTFRegistry() {+ var objects = {}++ return {+ get: function (key) {+ return objects[key]+ },++ add: function (key, object) {+ objects[key] = object+ },++ remove: function (key) {+ delete objects[key]+ },++ removeAll: function () {+ objects = {}+ },+ }+ }++ /*********************************/+ /********** EXTENSIONS ***********/+ /*********************************/++ var EXTENSIONS = {+ KHR_BINARY_GLTF: 'KHR_binary_glTF',+ KHR_DRACO_MESH_COMPRESSION: 'KHR_draco_mesh_compression',+ KHR_LIGHTS_PUNCTUAL: 'KHR_lights_punctual',+ KHR_MATERIALS_CLEARCOAT: 'KHR_materials_clearcoat',+ KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS: 'KHR_materials_pbrSpecularGlossiness',+ KHR_MATERIALS_TRANSMISSION: 'KHR_materials_transmission',+ KHR_MATERIALS_UNLIT: 'KHR_materials_unlit',+ KHR_TEXTURE_BASISU: 'KHR_texture_basisu',+ KHR_TEXTURE_TRANSFORM: 'KHR_texture_transform',+ KHR_MESH_QUANTIZATION: 'KHR_mesh_quantization',+ MSFT_TEXTURE_DDS: 'MSFT_texture_dds',+ }++ /**+ * DDS Texture Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/MSFT_texture_dds+ *+ */+ function GLTFTextureDDSExtension(ddsLoader) {+ if (!ddsLoader) {+ throw new Error('THREE.GLTFLoader: Attempting to load .dds texture without importing THREE.DDSLoader')+ }++ this.name = EXTENSIONS.MSFT_TEXTURE_DDS+ this.ddsLoader = ddsLoader+ }++ /**+ * Punctual Lights Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_lights_punctual+ */+ function GLTFLightsExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_LIGHTS_PUNCTUAL++ // Object3D instance caches+ this.cache = { refs: {}, uses: {} }+ }++ GLTFLightsExtension.prototype._markDefs = function () {+ var parser = this.parser+ var nodeDefs = this.parser.json.nodes || []++ for (var nodeIndex = 0, nodeLength = nodeDefs.length; nodeIndex < nodeLength; nodeIndex++) {+ var nodeDef = nodeDefs[nodeIndex]++ if (nodeDef.extensions && nodeDef.extensions[this.name] && nodeDef.extensions[this.name].light !== undefined) {+ parser._addNodeRef(this.cache, nodeDef.extensions[this.name].light)+ }+ }+ }++ GLTFLightsExtension.prototype._loadLight = function (lightIndex) {+ var parser = this.parser+ var cacheKey = 'light:' + lightIndex+ var dependency = parser.cache.get(cacheKey)++ if (dependency) return dependency++ var json = parser.json+ var extensions = (json.extensions && json.extensions[this.name]) || {}+ var lightDefs = extensions.lights || []+ var lightDef = lightDefs[lightIndex]+ var lightNode++ var color = new THREE$1.Color(0xffffff)++ if (lightDef.color !== undefined) color.fromArray(lightDef.color)++ var range = lightDef.range !== undefined ? lightDef.range : 0++ switch (lightDef.type) {+ case 'directional':+ lightNode = new THREE$1.DirectionalLight(color)+ lightNode.target.position.set(0, 0, -1)+ lightNode.add(lightNode.target)+ break++ case 'point':+ lightNode = new THREE$1.PointLight(color)+ lightNode.distance = range+ break++ case 'spot':+ lightNode = new THREE$1.SpotLight(color)+ lightNode.distance = range+ // Handle spotlight properties.+ lightDef.spot = lightDef.spot || {}+ lightDef.spot.innerConeAngle = lightDef.spot.innerConeAngle !== undefined ? lightDef.spot.innerConeAngle : 0+ lightDef.spot.outerConeAngle =+ lightDef.spot.outerConeAngle !== undefined ? lightDef.spot.outerConeAngle : Math.PI / 4.0+ lightNode.angle = lightDef.spot.outerConeAngle+ lightNode.penumbra = 1.0 - lightDef.spot.innerConeAngle / lightDef.spot.outerConeAngle+ lightNode.target.position.set(0, 0, -1)+ lightNode.add(lightNode.target)+ break++ default:+ throw new Error('THREE.GLTFLoader: Unexpected light type, "' + lightDef.type + '".')+ }++ // Some lights (e.g. spot) default to a position other than the origin. Reset the position+ // here, because node-level parsing will only override position if explicitly specified.+ lightNode.position.set(0, 0, 0)++ lightNode.decay = 2++ if (lightDef.intensity !== undefined) lightNode.intensity = lightDef.intensity++ lightNode.name = parser.createUniqueName(lightDef.name || 'light_' + lightIndex)++ dependency = Promise.resolve(lightNode)++ parser.cache.add(cacheKey, dependency)++ return dependency+ }++ GLTFLightsExtension.prototype.createNodeAttachment = function (nodeIndex) {+ var self = this+ var parser = this.parser+ var json = parser.json+ var nodeDef = json.nodes[nodeIndex]+ var lightDef = (nodeDef.extensions && nodeDef.extensions[this.name]) || {}+ var lightIndex = lightDef.light++ if (lightIndex === undefined) return null++ return this._loadLight(lightIndex).then(function (light) {+ return parser._getNodeRef(self.cache, lightIndex, light)+ })+ }++ /**+ * Unlit Materials Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit+ */+ function GLTFMaterialsUnlitExtension() {+ this.name = EXTENSIONS.KHR_MATERIALS_UNLIT+ }++ GLTFMaterialsUnlitExtension.prototype.getMaterialType = function () {+ return THREE$1.MeshBasicMaterial+ }++ GLTFMaterialsUnlitExtension.prototype.extendParams = function (materialParams, materialDef, parser) {+ var pending = []++ materialParams.color = new THREE$1.Color(1.0, 1.0, 1.0)+ materialParams.opacity = 1.0++ var metallicRoughness = materialDef.pbrMetallicRoughness++ if (metallicRoughness) {+ if (Array.isArray(metallicRoughness.baseColorFactor)) {+ var array = metallicRoughness.baseColorFactor++ materialParams.color.fromArray(array)+ materialParams.opacity = array[3]+ }+ }++ return Promise.all(pending)+ }++ /**+ * Clearcoat Materials Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_clearcoat+ */+ function GLTFMaterialsClearcoatExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_MATERIALS_CLEARCOAT+ }++ GLTFMaterialsClearcoatExtension.prototype.getMaterialType = function (materialIndex) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) return null++ return THREE$1.MeshPhysicalMaterial+ }++ GLTFMaterialsClearcoatExtension.prototype.extendMaterialParams = function (materialIndex, materialParams) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) {+ return Promise.resolve()+ }++ var pending = []++ var extension = materialDef.extensions[this.name]++ if (extension.clearcoatFactor !== undefined) {+ materialParams.clearcoat = extension.clearcoatFactor+ }++ if (extension.clearcoatRoughnessFactor !== undefined) {+ materialParams.clearcoatRoughness = extension.clearcoatRoughnessFactor+ }++ if (extension.clearcoatNormalTexture !== undefined) {+ if (extension.clearcoatNormalTexture.scale !== undefined) {+ var scale = extension.clearcoatNormalTexture.scale+ materialParams.clearcoatNormalScale = new THREE$1.Vector2(scale, scale)+ }+ }++ return Promise.all(pending)+ }++ /**+ * Transmission Materials Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_transmission+ * Draft: https://github.com/KhronosGroup/glTF/pull/1698+ */+ function GLTFMaterialsTransmissionExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_MATERIALS_TRANSMISSION+ }++ GLTFMaterialsTransmissionExtension.prototype.getMaterialType = function (materialIndex) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) return null++ return THREE$1.MeshPhysicalMaterial+ }++ GLTFMaterialsTransmissionExtension.prototype.extendMaterialParams = function (materialIndex, materialParams) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) {+ return Promise.resolve()+ }++ var pending = []++ var extension = materialDef.extensions[this.name]++ if (extension.transmissionFactor !== undefined) {+ materialParams.transmission = extension.transmissionFactor+ }++ return Promise.all(pending)+ }++ /**+ * BasisU Texture Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu+ * (draft PR https://github.com/KhronosGroup/glTF/pull/1751)+ */+ function GLTFTextureBasisUExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_TEXTURE_BASISU+ }++ GLTFTextureBasisUExtension.prototype.loadTexture = function (textureIndex) {+ return Promise.resolve(new THREE$1.Texture())+ }++ /* BINARY EXTENSION */+ var BINARY_EXTENSION_HEADER_MAGIC = 'glTF'+ var BINARY_EXTENSION_HEADER_LENGTH = 12+ var BINARY_EXTENSION_CHUNK_TYPES = { JSON: 0x4e4f534a, BIN: 0x004e4942 }++ function GLTFBinaryExtension(data) {+ this.name = EXTENSIONS.KHR_BINARY_GLTF+ this.content = null+ this.body = null++ var headerView = new DataView(data, 0, BINARY_EXTENSION_HEADER_LENGTH)++ this.header = {+ magic: THREE$1.LoaderUtils.decodeText(new Uint8Array(data.slice(0, 4))),+ version: headerView.getUint32(4, true),+ length: headerView.getUint32(8, true),+ }++ if (this.header.magic !== BINARY_EXTENSION_HEADER_MAGIC) {+ throw new Error('THREE.GLTFLoader: Unsupported glTF-Binary header.')+ } else if (this.header.version < 2.0) {+ throw new Error('THREE.GLTFLoader: Legacy binary file detected.')+ }++ var chunkView = new DataView(data, BINARY_EXTENSION_HEADER_LENGTH)+ var chunkIndex = 0++ while (chunkIndex < chunkView.byteLength) {+ var chunkLength = chunkView.getUint32(chunkIndex, true)+ chunkIndex += 4++ var chunkType = chunkView.getUint32(chunkIndex, true)+ chunkIndex += 4++ if (chunkType === BINARY_EXTENSION_CHUNK_TYPES.JSON) {+ var contentArray = new Uint8Array(data, BINARY_EXTENSION_HEADER_LENGTH + chunkIndex, chunkLength)+ this.content = THREE$1.LoaderUtils.decodeText(contentArray)+ } else if (chunkType === BINARY_EXTENSION_CHUNK_TYPES.BIN) {+ var byteOffset = BINARY_EXTENSION_HEADER_LENGTH + chunkIndex+ this.body = data.slice(byteOffset, byteOffset + chunkLength)+ }++ // Clients must ignore chunks with unknown types.++ chunkIndex += chunkLength+ }++ if (this.content === null) {+ throw new Error('THREE.GLTFLoader: JSON content not found.')+ }+ }++ /**+ * DRACO Mesh Compression Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression+ */+ function GLTFDracoMeshCompressionExtension(json, dracoLoader) {+ if (!dracoLoader) {+ throw new Error('THREE.GLTFLoader: No DRACOLoader instance provided.')+ }++ this.name = EXTENSIONS.KHR_DRACO_MESH_COMPRESSION+ this.json = json+ this.dracoLoader = dracoLoader+ }++ GLTFDracoMeshCompressionExtension.prototype.decodePrimitive = function (primitive, parser) {+ var json = this.json+ var dracoLoader = this.dracoLoader+ var bufferViewIndex = primitive.extensions[this.name].bufferView+ var gltfAttributeMap = primitive.extensions[this.name].attributes+ var threeAttributeMap = {}+ var attributeNormalizedMap = {}+ var attributeTypeMap = {}++ for (var attributeName in gltfAttributeMap) {+ var threeAttributeName = ATTRIBUTES[attributeName] || attributeName.toLowerCase()++ threeAttributeMap[threeAttributeName] = gltfAttributeMap[attributeName]+ }++ for (attributeName in primitive.attributes) {+ var threeAttributeName = ATTRIBUTES[attributeName] || attributeName.toLowerCase()++ if (gltfAttributeMap[attributeName] !== undefined) {+ var accessorDef = json.accessors[primitive.attributes[attributeName]]+ var componentType = WEBGL_COMPONENT_TYPES[accessorDef.componentType]++ attributeTypeMap[threeAttributeName] = componentType+ attributeNormalizedMap[threeAttributeName] = accessorDef.normalized === true+ }+ }++ return parser.getDependency('bufferView', bufferViewIndex).then(function (bufferView) {+ return new Promise(function (resolve) {+ dracoLoader.decodeDracoFile(+ bufferView,+ function (geometry) {+ for (var attributeName in geometry.attributes) {+ var attribute = geometry.attributes[attributeName]+ var normalized = attributeNormalizedMap[attributeName]++ if (normalized !== undefined) attribute.normalized = normalized+ }++ resolve(geometry)+ },+ threeAttributeMap,+ attributeTypeMap+ )+ })+ })+ }++ /**+ * Texture Transform Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_transform+ */+ function GLTFTextureTransformExtension() {+ this.name = EXTENSIONS.KHR_TEXTURE_TRANSFORM+ }++ GLTFTextureTransformExtension.prototype.extendTexture = function (texture, transform) {+ texture = texture.clone()++ if (transform.offset !== undefined) {+ texture.offset.fromArray(transform.offset)+ }++ if (transform.rotation !== undefined) {+ texture.rotation = transform.rotation+ }++ if (transform.scale !== undefined) {+ texture.repeat.fromArray(transform.scale)+ }++ if (transform.texCoord !== undefined) {+ console.warn('THREE.GLTFLoader: Custom UV sets in "' + this.name + '" extension not yet supported.')+ }++ texture.needsUpdate = true++ return texture+ }++ /**+ * Specular-Glossiness Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_pbrSpecularGlossiness+ */++ /**+ * A sub class of THREE.StandardMaterial with some of the functionality+ * changed via the `onBeforeCompile` callback+ * @pailhead+ */++ function GLTFMeshStandardSGMaterial(params) {+ THREE$1.MeshStandardMaterial.call(this)++ this.isGLTFSpecularGlossinessMaterial = true++ //various chunks that need replacing+ var specularMapParsFragmentChunk = ['#ifdef USE_SPECULARMAP', ' uniform sampler2D specularMap;', '#endif'].join('\n')++ var glossinessMapParsFragmentChunk = [+ '#ifdef USE_GLOSSINESSMAP',+ ' uniform sampler2D glossinessMap;',+ '#endif',+ ].join('\n')++ var specularMapFragmentChunk = [+ 'vec3 specularFactor = specular;',+ '#ifdef USE_SPECULARMAP',+ ' vec4 texelSpecular = texture2D( specularMap, vUv );',+ ' texelSpecular = sRGBToLinear( texelSpecular );',+ ' // reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture',+ ' specularFactor *= texelSpecular.rgb;',+ '#endif',+ ].join('\n')++ var glossinessMapFragmentChunk = [+ 'float glossinessFactor = glossiness;',+ '#ifdef USE_GLOSSINESSMAP',+ ' vec4 texelGlossiness = texture2D( glossinessMap, vUv );',+ ' // reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture',+ ' glossinessFactor *= texelGlossiness.a;',+ '#endif',+ ].join('\n')++ var lightPhysicalFragmentChunk = [+ 'PhysicalMaterial material;',+ 'material.diffuseColor = diffuseColor.rgb * ( 1. - max( specularFactor.r, max( specularFactor.g, specularFactor.b ) ) );',+ 'vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );',+ 'float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );',+ 'material.specularRoughness = max( 1.0 - glossinessFactor, 0.0525 ); // 0.0525 corresponds to the base mip of a 256 cubemap.',+ 'material.specularRoughness += geometryRoughness;',+ 'material.specularRoughness = min( material.specularRoughness, 1.0 );',+ 'material.specularColor = specularFactor;',+ ].join('\n')++ var uniforms = {+ specular: { value: new THREE$1.Color().setHex(0xffffff) },+ glossiness: { value: 1 },+ specularMap: { value: null },+ glossinessMap: { value: null },+ }++ this._extraUniforms = uniforms++ this.onBeforeCompile = function (shader) {+ for (var uniformName in uniforms) {+ shader.uniforms[uniformName] = uniforms[uniformName]+ }++ shader.fragmentShader = shader.fragmentShader+ .replace('uniform float roughness;', 'uniform vec3 specular;')+ .replace('uniform float metalness;', 'uniform float glossiness;')+ .replace('#include <roughnessmap_pars_fragment>', specularMapParsFragmentChunk)+ .replace('#include <metalnessmap_pars_fragment>', glossinessMapParsFragmentChunk)+ .replace('#include <roughnessmap_fragment>', specularMapFragmentChunk)+ .replace('#include <metalnessmap_fragment>', glossinessMapFragmentChunk)+ .replace('#include <lights_physical_fragment>', lightPhysicalFragmentChunk)+ }++ Object.defineProperties(this, {+ specular: {+ get: function () {+ return uniforms.specular.value+ },+ set: function (v) {+ uniforms.specular.value = v+ },+ },++ specularMap: {+ get: function () {+ return uniforms.specularMap.value+ },+ set: function (v) {+ uniforms.specularMap.value = v++ if (v) {+ this.defines.USE_SPECULARMAP = '' // USE_UV is set by the renderer for specular maps+ } else {+ delete this.defines.USE_SPECULARMAP+ }+ },+ },++ glossiness: {+ get: function () {+ return uniforms.glossiness.value+ },+ set: function (v) {+ uniforms.glossiness.value = v+ },+ },++ glossinessMap: {+ get: function () {+ return uniforms.glossinessMap.value+ },+ set: function (v) {+ uniforms.glossinessMap.value = v++ if (v) {+ this.defines.USE_GLOSSINESSMAP = ''+ this.defines.USE_UV = ''+ } else {+ delete this.defines.USE_GLOSSINESSMAP+ delete this.defines.USE_UV+ }+ },+ },+ })++ delete this.metalness+ delete this.roughness+ delete this.metalnessMap+ delete this.roughnessMap++ this.setValues(params)+ }++ GLTFMeshStandardSGMaterial.prototype = Object.create(THREE$1.MeshStandardMaterial.prototype)+ GLTFMeshStandardSGMaterial.prototype.constructor = GLTFMeshStandardSGMaterial++ GLTFMeshStandardSGMaterial.prototype.copy = function (source) {+ THREE$1.MeshStandardMaterial.prototype.copy.call(this, source)+ this.specularMap = source.specularMap+ this.specular.copy(source.specular)+ this.glossinessMap = source.glossinessMap+ this.glossiness = source.glossiness+ delete this.metalness+ delete this.roughness+ delete this.metalnessMap+ delete this.roughnessMap+ return this+ }++ function GLTFMaterialsPbrSpecularGlossinessExtension() {+ return {+ name: EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,++ specularGlossinessParams: [+ 'color',+ 'map',+ 'lightMap',+ 'lightMapIntensity',+ 'aoMap',+ 'aoMapIntensity',+ 'emissive',+ 'emissiveIntensity',+ 'emissiveMap',+ 'bumpMap',+ 'bumpScale',+ 'normalMap',+ 'normalMapType',+ 'displacementMap',+ 'displacementScale',+ 'displacementBias',+ 'specularMap',+ 'specular',+ 'glossinessMap',+ 'glossiness',+ 'alphaMap',+ 'envMap',+ 'envMapIntensity',+ 'refractionRatio',+ ],++ getMaterialType: function () {+ return GLTFMeshStandardSGMaterial+ },++ extendParams: function (materialParams, materialDef, parser) {+ var pbrSpecularGlossiness = materialDef.extensions[this.name]++ materialParams.color = new THREE$1.Color(1.0, 1.0, 1.0)+ materialParams.opacity = 1.0++ var pending = []++ if (Array.isArray(pbrSpecularGlossiness.diffuseFactor)) {+ var array = pbrSpecularGlossiness.diffuseFactor++ materialParams.color.fromArray(array)+ materialParams.opacity = array[3]+ }++ materialParams.emissive = new THREE$1.Color(0.0, 0.0, 0.0)+ materialParams.glossiness =+ pbrSpecularGlossiness.glossinessFactor !== undefined ? pbrSpecularGlossiness.glossinessFactor : 1.0+ materialParams.specular = new THREE$1.Color(1.0, 1.0, 1.0)++ if (Array.isArray(pbrSpecularGlossiness.specularFactor)) {+ materialParams.specular.fromArray(pbrSpecularGlossiness.specularFactor)+ }++ return Promise.all(pending)+ },++ createMaterial: function (materialParams) {+ var material = new GLTFMeshStandardSGMaterial(materialParams)+ material.fog = true++ material.color = materialParams.color++ material.map = materialParams.map === undefined ? null : materialParams.map++ material.lightMap = null+ material.lightMapIntensity = 1.0++ material.aoMap = materialParams.aoMap === undefined ? null : materialParams.aoMap+ material.aoMapIntensity = 1.0++ material.emissive = materialParams.emissive+ material.emissiveIntensity = 1.0+ material.emissiveMap = materialParams.emissiveMap === undefined ? null : materialParams.emissiveMap++ material.bumpMap = materialParams.bumpMap === undefined ? null : materialParams.bumpMap+ material.bumpScale = 1++ material.normalMap = materialParams.normalMap === undefined ? null : materialParams.normalMap+ material.normalMapType = THREE$1.TangentSpaceNormalMap++ if (materialParams.normalScale) material.normalScale = materialParams.normalScale++ material.displacementMap = null+ material.displacementScale = 1+ material.displacementBias = 0++ material.specularMap = materialParams.specularMap === undefined ? null : materialParams.specularMap+ material.specular = materialParams.specular++ material.glossinessMap = materialParams.glossinessMap === undefined ? null : materialParams.glossinessMap+ material.glossiness = materialParams.glossiness++ material.alphaMap = null++ material.envMap = materialParams.envMap === undefined ? null : materialParams.envMap+ material.envMapIntensity = 1.0++ material.refractionRatio = 0.98++ return material+ },+ }+ }++ /**+ * Mesh Quantization Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization+ */+ function GLTFMeshQuantizationExtension() {+ this.name = EXTENSIONS.KHR_MESH_QUANTIZATION+ }++ /*********************************/+ /********** INTERPOLATION ********/+ /*********************************/++ // Spline Interpolation+ // Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#appendix-c-spline-interpolation+ function GLTFCubicSplineInterpolant(parameterPositions, sampleValues, sampleSize, resultBuffer) {+ THREE$1.Interpolant.call(this, parameterPositions, sampleValues, sampleSize, resultBuffer)+ }++ GLTFCubicSplineInterpolant.prototype = Object.create(THREE$1.Interpolant.prototype)+ GLTFCubicSplineInterpolant.prototype.constructor = GLTFCubicSplineInterpolant++ GLTFCubicSplineInterpolant.prototype.copySampleValue_ = function (index) {+ // Copies a sample value to the result buffer. See description of glTF+ // CUBICSPLINE values layout in interpolate_() function below.++ var result = this.resultBuffer,+ values = this.sampleValues,+ valueSize = this.valueSize,+ offset = index * valueSize * 3 + valueSize++ for (var i = 0; i !== valueSize; i++) {+ result[i] = values[offset + i]+ }++ return result+ }++ GLTFCubicSplineInterpolant.prototype.beforeStart_ = GLTFCubicSplineInterpolant.prototype.copySampleValue_++ GLTFCubicSplineInterpolant.prototype.afterEnd_ = GLTFCubicSplineInterpolant.prototype.copySampleValue_++ GLTFCubicSplineInterpolant.prototype.interpolate_ = function (i1, t0, t, t1) {+ var result = this.resultBuffer+ var values = this.sampleValues+ var stride = this.valueSize++ var stride2 = stride * 2+ var stride3 = stride * 3++ var td = t1 - t0++ var p = (t - t0) / td+ var pp = p * p+ var ppp = pp * p++ var offset1 = i1 * stride3+ var offset0 = offset1 - stride3++ var s2 = -2 * ppp + 3 * pp+ var s3 = ppp - pp+ var s0 = 1 - s2+ var s1 = s3 - pp + p++ // Layout of keyframe output values for CUBICSPLINE animations:+ // [ inTangent_1, splineVertex_1, outTangent_1, inTangent_2, splineVertex_2, ... ]+ for (var i = 0; i !== stride; i++) {+ var p0 = values[offset0 + i + stride] // splineVertex_k+ var m0 = values[offset0 + i + stride2] * td // outTangent_k * (t_k+1 - t_k)+ var p1 = values[offset1 + i + stride] // splineVertex_k+1+ var m1 = values[offset1 + i] * td // inTangent_k+1 * (t_k+1 - t_k)++ result[i] = s0 * p0 + s1 * m0 + s2 * p1 + s3 * m1+ }++ return result+ }++ /*********************************/+ /********** INTERNALS ************/+ /*********************************/++ /* CONSTANTS */++ var WEBGL_CONSTANTS = {+ FLOAT: 5126,+ //FLOAT_MAT2: 35674,+ FLOAT_MAT3: 35675,+ FLOAT_MAT4: 35676,+ FLOAT_VEC2: 35664,+ FLOAT_VEC3: 35665,+ FLOAT_VEC4: 35666,+ LINEAR: 9729,+ REPEAT: 10497,+ SAMPLER_2D: 35678,+ POINTS: 0,+ LINES: 1,+ LINE_LOOP: 2,+ LINE_STRIP: 3,+ TRIANGLES: 4,+ TRIANGLE_STRIP: 5,+ TRIANGLE_FAN: 6,+ UNSIGNED_BYTE: 5121,+ UNSIGNED_SHORT: 5123,+ }++ var WEBGL_COMPONENT_TYPES = {+ 5120: Int8Array,+ 5121: Uint8Array,+ 5122: Int16Array,+ 5123: Uint16Array,+ 5125: Uint32Array,+ 5126: Float32Array,+ }++ ;({+ 9728: THREE$1.NearestFilter,+ 9729: THREE$1.LinearFilter,+ 9984: THREE$1.NearestMipmapNearestFilter,+ 9985: THREE$1.LinearMipmapNearestFilter,+ 9986: THREE$1.NearestMipmapLinearFilter,+ 9987: THREE$1.LinearMipmapLinearFilter,+ })++ ;({+ 33071: THREE$1.ClampToEdgeWrapping,+ 33648: THREE$1.MirroredRepeatWrapping,+ 10497: THREE$1.RepeatWrapping,+ })++ var WEBGL_TYPE_SIZES = {+ SCALAR: 1,+ VEC2: 2,+ VEC3: 3,+ VEC4: 4,+ MAT2: 4,+ MAT3: 9,+ MAT4: 16,+ }++ var ATTRIBUTES = {+ POSITION: 'position',+ NORMAL: 'normal',+ TANGENT: 'tangent',+ TEXCOORD_0: 'uv',+ TEXCOORD_1: 'uv2',+ COLOR_0: 'color',+ WEIGHTS_0: 'skinWeight',+ JOINTS_0: 'skinIndex',+ }++ var PATH_PROPERTIES = {+ scale: 'scale',+ translation: 'position',+ rotation: 'quaternion',+ weights: 'morphTargetInfluences',+ }++ var INTERPOLATION = {+ CUBICSPLINE: undefined, // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each+ // keyframe track will be initialized with a default interpolation type, then modified.+ LINEAR: THREE$1.InterpolateLinear,+ STEP: THREE$1.InterpolateDiscrete,+ }++ var ALPHA_MODES = {+ OPAQUE: 'OPAQUE',+ MASK: 'MASK',+ BLEND: 'BLEND',+ }++ /* UTILITY FUNCTIONS */++ function resolveURL(url, path) {+ // Invalid URL+ if (typeof url !== 'string' || url === '') return ''++ // Host Relative URL+ if (/^https?:\/\//i.test(path) && /^\//.test(url)) {+ path = path.replace(/(^https?:\/\/[^\/]+).*/i, '$1')+ }++ // Absolute URL http://,https://,//+ if (/^(https?:)?\/\//i.test(url)) return url++ // Data URI+ if (/^data:.*,.*$/i.test(url)) return url++ // Blob URL+ if (/^blob:.*$/i.test(url)) return url++ // Relative URL+ return path + url+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material+ */+ function createDefaultMaterial(cache) {+ if (cache['DefaultMaterial'] === undefined) {+ cache['DefaultMaterial'] = new THREE$1.MeshStandardMaterial({+ color: 0xffffff,+ emissive: 0x000000,+ metalness: 1,+ roughness: 1,+ transparent: false,+ depthTest: true,+ side: THREE$1.FrontSide,+ })+ }++ return cache['DefaultMaterial']+ }++ function addUnknownExtensionsToUserData(knownExtensions, object, objectDef) {+ // Add unknown glTF extensions to an object's userData.++ for (var name in objectDef.extensions) {+ if (knownExtensions[name] === undefined) {+ object.userData.gltfExtensions = object.userData.gltfExtensions || {}+ object.userData.gltfExtensions[name] = objectDef.extensions[name]+ }+ }+ }++ /**+ * @param {THREE.Object3D|THREE.Material|THREE.BufferGeometry} object+ * @param {GLTF.definition} gltfDef+ */+ function assignExtrasToUserData(object, gltfDef) {+ if (gltfDef.extras !== undefined) {+ if (typeof gltfDef.extras === 'object') {+ Object.assign(object.userData, gltfDef.extras)+ } else {+ console.warn('THREE.GLTFLoader: Ignoring primitive type .extras, ' + gltfDef.extras)+ }+ }+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets+ *+ * @param {THREE.BufferGeometry} geometry+ * @param {Array<GLTF.Target>} targets+ * @param {GLTFParser} parser+ * @return {Promise<THREE.BufferGeometry>}+ */+ function addMorphTargets(geometry, targets, parser) {+ var hasMorphPosition = false+ var hasMorphNormal = false++ for (var i = 0, il = targets.length; i < il; i++) {+ var target = targets[i]++ if (target.POSITION !== undefined) hasMorphPosition = true+ if (target.NORMAL !== undefined) hasMorphNormal = true++ if (hasMorphPosition && hasMorphNormal) break+ }++ if (!hasMorphPosition && !hasMorphNormal) return Promise.resolve(geometry)++ var pendingPositionAccessors = []+ var pendingNormalAccessors = []++ for (var i = 0, il = targets.length; i < il; i++) {+ var target = targets[i]++ if (hasMorphPosition) {+ var pendingAccessor =+ target.POSITION !== undefined+ ? parser.getDependency('accessor', target.POSITION)+ : geometry.attributes.position++ pendingPositionAccessors.push(pendingAccessor)+ }++ if (hasMorphNormal) {+ var pendingAccessor =+ target.NORMAL !== undefined ? parser.getDependency('accessor', target.NORMAL) : geometry.attributes.normal++ pendingNormalAccessors.push(pendingAccessor)+ }+ }++ return Promise.all([Promise.all(pendingPositionAccessors), Promise.all(pendingNormalAccessors)]).then(function (+ accessors+ ) {+ var morphPositions = accessors[0]+ var morphNormals = accessors[1]++ if (hasMorphPosition) geometry.morphAttributes.position = morphPositions+ if (hasMorphNormal) geometry.morphAttributes.normal = morphNormals+ geometry.morphTargetsRelative = true++ return geometry+ })+ }++ /**+ * @param {THREE.Mesh} mesh+ * @param {GLTF.Mesh} meshDef+ */+ function updateMorphTargets(mesh, meshDef) {+ mesh.updateMorphTargets()++ if (meshDef.weights !== undefined) {+ for (var i = 0, il = meshDef.weights.length; i < il; i++) {+ mesh.morphTargetInfluences[i] = meshDef.weights[i]+ }+ }++ // .extras has user-defined data, so check that .extras.targetNames is an array.+ if (meshDef.extras && Array.isArray(meshDef.extras.targetNames)) {+ var targetNames = meshDef.extras.targetNames++ if (mesh.morphTargetInfluences.length === targetNames.length) {+ mesh.morphTargetDictionary = {}++ for (var i = 0, il = targetNames.length; i < il; i++) {+ mesh.morphTargetDictionary[targetNames[i]] = i+ }+ } else {+ console.warn('THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.')+ }+ }+ }++ function createPrimitiveKey(primitiveDef) {+ var dracoExtension = primitiveDef.extensions && primitiveDef.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]+ var geometryKey++ if (dracoExtension) {+ geometryKey =+ 'draco:' ++ dracoExtension.bufferView ++ ':' ++ dracoExtension.indices ++ ':' ++ createAttributesKey(dracoExtension.attributes)+ } else {+ geometryKey = primitiveDef.indices + ':' + createAttributesKey(primitiveDef.attributes) + ':' + primitiveDef.mode+ }++ return geometryKey+ }++ function createAttributesKey(attributes) {+ var attributesKey = ''++ var keys = Object.keys(attributes).sort()++ for (var i = 0, il = keys.length; i < il; i++) {+ attributesKey += keys[i] + ':' + attributes[keys[i]] + ';'+ }++ return attributesKey+ }++ /* GLTF PARSER */++ function GLTFParser(json, options) {+ this.json = json || {}+ this.extensions = {}+ this.plugins = {}+ this.options = options || {}++ // loader object cache+ this.cache = new GLTFRegistry()++ // associations between Three.js objects and glTF elements+ this.associations = new Map()++ // BufferGeometry caching+ this.primitiveCache = {}++ // Object3D instance caches+ this.meshCache = { refs: {}, uses: {} }+ this.cameraCache = { refs: {}, uses: {} }+ this.lightCache = { refs: {}, uses: {} }++ // Track node names, to ensure no duplicates+ this.nodeNamesUsed = {}++ // Use an ImageBitmapLoader if imageBitmaps are supported. Moves much of the+ // expensive work of uploading a texture to the GPU off the main thread.+ if (typeof createImageBitmap !== 'undefined' && /Firefox/.test(navigator.userAgent) === false) {+ this.textureLoader = new THREE$1.ImageBitmapLoader(this.options.manager)+ } else {+ this.textureLoader = new THREE$1.TextureLoader(this.options.manager)+ }++ this.textureLoader.setCrossOrigin(this.options.crossOrigin)++ this.fileLoader = new THREE$1.FileLoader(this.options.manager)+ this.fileLoader.setResponseType('arraybuffer')++ if (this.options.crossOrigin === 'use-credentials') {+ this.fileLoader.setWithCredentials(true)+ }+ }++ GLTFParser.prototype.setExtensions = function (extensions) {+ this.extensions = extensions+ }++ GLTFParser.prototype.setPlugins = function (plugins) {+ this.plugins = plugins+ }++ GLTFParser.prototype.parse = function (onLoad, onError) {+ var parser = this+ var json = this.json+ var extensions = this.extensions++ // Clear the loader cache+ this.cache.removeAll()++ // Mark the special nodes/meshes in json for efficient parse+ this._invokeAll(function (ext) {+ return ext._markDefs && ext._markDefs()+ })++ Promise.all([this.getDependencies('scene'), this.getDependencies('animation'), this.getDependencies('camera')])+ .then(function (dependencies) {+ var result = {+ scene: dependencies[0][json.scene || 0],+ scenes: dependencies[0],+ animations: dependencies[1],+ cameras: dependencies[2],+ asset: json.asset,+ parser: parser,+ userData: {},+ }++ addUnknownExtensionsToUserData(extensions, result, json)++ assignExtrasToUserData(result, json)++ onLoad(result)+ })+ .catch(onError)+ }++ /**+ * Marks the special nodes/meshes in json for efficient parse.+ */+ GLTFParser.prototype._markDefs = function () {+ var nodeDefs = this.json.nodes || []+ var skinDefs = this.json.skins || []+ var meshDefs = this.json.meshes || []++ // Nothing in the node definition indicates whether it is a Bone or an+ // Object3D. Use the skins' joint references to mark bones.+ for (var skinIndex = 0, skinLength = skinDefs.length; skinIndex < skinLength; skinIndex++) {+ var joints = skinDefs[skinIndex].joints++ for (var i = 0, il = joints.length; i < il; i++) {+ nodeDefs[joints[i]].isBone = true+ }+ }++ // Iterate over all nodes, marking references to shared resources,+ // as well as skeleton joints.+ for (var nodeIndex = 0, nodeLength = nodeDefs.length; nodeIndex < nodeLength; nodeIndex++) {+ var nodeDef = nodeDefs[nodeIndex]++ if (nodeDef.mesh !== undefined) {+ this._addNodeRef(this.meshCache, nodeDef.mesh)++ // Nothing in the mesh definition indicates whether it is+ // a SkinnedMesh or Mesh. Use the node's mesh reference+ // to mark SkinnedMesh if node has skin.+ if (nodeDef.skin !== undefined) {+ meshDefs[nodeDef.mesh].isSkinnedMesh = true+ }+ }++ if (nodeDef.camera !== undefined) {+ this._addNodeRef(this.cameraCache, nodeDef.camera)+ }+ }+ }++ /**+ * Counts references to shared node / Object3D resources. These resources+ * can be reused, or "instantiated", at multiple nodes in the scene+ * hierarchy. Mesh, Camera, and Light instances are instantiated and must+ * be marked. Non-scenegraph resources (like Materials, Geometries, and+ * Textures) can be reused directly and are not marked here.+ *+ * Example: CesiumMilkTruck sample model reuses "Wheel" meshes.+ */+ GLTFParser.prototype._addNodeRef = function (cache, index) {+ if (index === undefined) return++ if (cache.refs[index] === undefined) {+ cache.refs[index] = cache.uses[index] = 0+ }++ cache.refs[index]+++ }++ /** Returns a reference to a shared resource, cloning it if necessary. */+ GLTFParser.prototype._getNodeRef = function (cache, index, object) {+ if (cache.refs[index] <= 1) return object++ var ref = object.clone()++ ref.name += '_instance_' + cache.uses[index]++++ return ref+ }++ GLTFParser.prototype._invokeOne = function (func) {+ var extensions = Object.values(this.plugins)+ extensions.push(this)++ for (var i = 0; i < extensions.length; i++) {+ var result = func(extensions[i])++ if (result) return result+ }+ }++ GLTFParser.prototype._invokeAll = function (func) {+ var extensions = Object.values(this.plugins)+ extensions.unshift(this)++ var pending = []++ for (var i = 0; i < extensions.length; i++) {+ var result = func(extensions[i])++ if (result) pending.push(result)+ }++ return pending+ }++ /**+ * Requests the specified dependency asynchronously, with caching.+ * @param {string} type+ * @param {number} index+ * @return {Promise<THREE.Object3D|THREE.Material|THREE.Texture|THREE.AnimationClip|ArrayBuffer|Object>}+ */+ GLTFParser.prototype.getDependency = function (type, index) {+ var cacheKey = type + ':' + index+ var dependency = this.cache.get(cacheKey)++ if (!dependency) {+ switch (type) {+ case 'scene':+ dependency = this.loadScene(index)+ break++ case 'node':+ dependency = this.loadNode(index)+ break++ case 'mesh':+ dependency = this._invokeOne(function (ext) {+ return ext.loadMesh && ext.loadMesh(index)+ })+ break++ case 'accessor':+ dependency = this.loadAccessor(index)+ break++ case 'bufferView':+ dependency = Promise.resolve(new Float32Array(0))+ break++ case 'buffer':+ dependency = Promise.resolve(new Float32Array(0))+ break++ case 'material':+ dependency = this._invokeOne(function (ext) {+ return ext.loadMaterial && ext.loadMaterial(index)+ })+ break++ case 'skin':+ dependency = this.loadSkin(index)+ break++ case 'animation':+ dependency = this.loadAnimation(index)+ break++ case 'camera':+ dependency = this.loadCamera(index)+ break++ default:+ throw new Error('Unknown type: ' + type)+ }++ this.cache.add(cacheKey, dependency)+ }++ return dependency+ }++ /**+ * Requests all dependencies of the specified type asynchronously, with caching.+ * @param {string} type+ * @return {Promise<Array<Object>>}+ */+ GLTFParser.prototype.getDependencies = function (type) {+ var dependencies = this.cache.get(type)++ if (!dependencies) {+ var parser = this+ var defs = this.json[type + (type === 'mesh' ? 'es' : 's')] || []++ dependencies = Promise.all(+ defs.map(function (def, index) {+ return parser.getDependency(type, index)+ })+ )++ this.cache.add(type, dependencies)+ }++ return dependencies+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views+ * @param {number} bufferIndex+ * @return {Promise<ArrayBuffer>}+ */+ GLTFParser.prototype.loadBuffer = function (bufferIndex) {+ var bufferDef = this.json.buffers[bufferIndex]+ var loader = this.fileLoader++ if (bufferDef.type && bufferDef.type !== 'arraybuffer') {+ throw new Error('THREE.GLTFLoader: ' + bufferDef.type + ' buffer type is not supported.')+ }++ // If present, GLB container is required to be the first buffer.+ if (bufferDef.uri === undefined && bufferIndex === 0) {+ return Promise.resolve(this.extensions[EXTENSIONS.KHR_BINARY_GLTF].body)+ }++ var options = this.options++ return new Promise(function (resolve, reject) {+ loader.load(resolveURL(bufferDef.uri, options.path), resolve, undefined, function () {+ reject(new Error('THREE.GLTFLoader: Failed to load buffer "' + bufferDef.uri + '".'))+ })+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views+ * @param {number} bufferViewIndex+ * @return {Promise<ArrayBuffer>}+ */+ GLTFParser.prototype.loadBufferView = function (bufferViewIndex) {+ var bufferViewDef = this.json.bufferViews[bufferViewIndex]++ return this.getDependency('buffer', bufferViewDef.buffer).then(function (buffer) {+ var byteLength = bufferViewDef.byteLength || 0+ var byteOffset = bufferViewDef.byteOffset || 0+ return buffer.slice(byteOffset, byteOffset + byteLength)+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#accessors+ * @param {number} accessorIndex+ * @return {Promise<THREE.BufferAttribute|THREE.InterleavedBufferAttribute>}+ */+ GLTFParser.prototype.loadAccessor = function (accessorIndex) {+ var parser = this+ var json = this.json++ var accessorDef = this.json.accessors[accessorIndex]++ if (accessorDef.bufferView === undefined && accessorDef.sparse === undefined) {+ // Ignore empty accessors, which may be used to declare runtime+ // information about attributes coming from another source (e.g. Draco+ // compression extension).+ return Promise.resolve(null)+ }++ var pendingBufferViews = []++ if (accessorDef.bufferView !== undefined) {+ pendingBufferViews.push(this.getDependency('bufferView', accessorDef.bufferView))+ } else {+ pendingBufferViews.push(null)+ }++ if (accessorDef.sparse !== undefined) {+ pendingBufferViews.push(this.getDependency('bufferView', accessorDef.sparse.indices.bufferView))+ pendingBufferViews.push(this.getDependency('bufferView', accessorDef.sparse.values.bufferView))+ }++ return Promise.all(pendingBufferViews).then(function (bufferViews) {+ var bufferView = bufferViews[0]++ var itemSize = WEBGL_TYPE_SIZES[accessorDef.type]+ var TypedArray = WEBGL_COMPONENT_TYPES[accessorDef.componentType]++ // For VEC3: itemSize is 3, elementBytes is 4, itemBytes is 12.+ var elementBytes = TypedArray.BYTES_PER_ELEMENT+ var itemBytes = elementBytes * itemSize+ var byteOffset = accessorDef.byteOffset || 0+ var byteStride =+ accessorDef.bufferView !== undefined ? json.bufferViews[accessorDef.bufferView].byteStride : undefined+ var normalized = accessorDef.normalized === true+ var array, bufferAttribute++ // The buffer is not interleaved if the stride is the item size in bytes.+ if (byteStride && byteStride !== itemBytes) {+ // Each "slice" of the buffer, as defined by 'count' elements of 'byteStride' bytes, gets its own InterleavedBuffer+ // This makes sure that IBA.count reflects accessor.count properly+ var ibSlice = Math.floor(byteOffset / byteStride)+ var ibCacheKey =+ 'InterleavedBuffer:' ++ accessorDef.bufferView ++ ':' ++ accessorDef.componentType ++ ':' ++ ibSlice ++ ':' ++ accessorDef.count+ var ib = parser.cache.get(ibCacheKey)++ if (!ib) {+ array = new TypedArray(bufferView, ibSlice * byteStride, (accessorDef.count * byteStride) / elementBytes)++ // Integer parameters to IB/IBA are in array elements, not bytes.+ ib = new THREE$1.InterleavedBuffer(array, byteStride / elementBytes)++ parser.cache.add(ibCacheKey, ib)+ }++ bufferAttribute = new THREE$1.InterleavedBufferAttribute(+ ib,+ itemSize,+ (byteOffset % byteStride) / elementBytes,+ normalized+ )+ } else {+ if (bufferView === null) {+ array = new TypedArray(accessorDef.count * itemSize)+ } else {+ array = new TypedArray(bufferView, byteOffset, accessorDef.count * itemSize)+ }++ bufferAttribute = new THREE$1.BufferAttribute(array, itemSize, normalized)+ }++ // https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#sparse-accessors+ if (accessorDef.sparse !== undefined) {+ var itemSizeIndices = WEBGL_TYPE_SIZES.SCALAR+ var TypedArrayIndices = WEBGL_COMPONENT_TYPES[accessorDef.sparse.indices.componentType]++ var byteOffsetIndices = accessorDef.sparse.indices.byteOffset || 0+ var byteOffsetValues = accessorDef.sparse.values.byteOffset || 0++ var sparseIndices = new TypedArrayIndices(+ bufferViews[1],+ byteOffsetIndices,+ accessorDef.sparse.count * itemSizeIndices+ )+ var sparseValues = new TypedArray(bufferViews[2], byteOffsetValues, accessorDef.sparse.count * itemSize)++ if (bufferView !== null) {+ // Avoid modifying the original ArrayBuffer, if the bufferView wasn't initialized with zeroes.+ bufferAttribute = new THREE$1.BufferAttribute(+ bufferAttribute.array.slice(),+ bufferAttribute.itemSize,+ bufferAttribute.normalized+ )+ }++ for (var i = 0, il = sparseIndices.length; i < il; i++) {+ var index = sparseIndices[i]++ bufferAttribute.setX(index, sparseValues[i * itemSize])+ if (itemSize >= 2) bufferAttribute.setY(index, sparseValues[i * itemSize + 1])+ if (itemSize >= 3) bufferAttribute.setZ(index, sparseValues[i * itemSize + 2])+ if (itemSize >= 4) bufferAttribute.setW(index, sparseValues[i * itemSize + 3])+ if (itemSize >= 5) throw new Error('THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.')+ }+ }++ return bufferAttribute+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#textures+ * @param {number} textureIndex+ * @return {Promise<THREE.Texture>}+ */+ GLTFParser.prototype.loadTexture = function (textureIndex) {+ return Promise.resolve(new THREE$1.Texture())+ }++ /**+ * Assigns final material to a Mesh, Line, or Points instance. The instance+ * already has a material (generated from the glTF material options alone)+ * but reuse of the same glTF material may require multiple threejs materials+ * to accomodate different primitive types, defines, etc. New materials will+ * be created if necessary, and reused from a cache.+ * @param {THREE.Object3D} mesh Mesh, Line, or Points instance.+ */+ GLTFParser.prototype.assignFinalMaterial = function (mesh) {+ var geometry = mesh.geometry+ var material = mesh.material++ var useVertexTangents = geometry.attributes.tangent !== undefined+ var useVertexColors = geometry.attributes.color !== undefined+ var useFlatShading = geometry.attributes.normal === undefined+ var useSkinning = mesh.isSkinnedMesh === true+ var useMorphTargets = Object.keys(geometry.morphAttributes).length > 0+ var useMorphNormals = useMorphTargets && geometry.morphAttributes.normal !== undefined++ if (mesh.isPoints) {+ var cacheKey = 'PointsMaterial:' + material.uuid++ var pointsMaterial = this.cache.get(cacheKey)++ if (!pointsMaterial) {+ pointsMaterial = new THREE$1.PointsMaterial()+ THREE$1.Material.prototype.copy.call(pointsMaterial, material)+ pointsMaterial.color.copy(material.color)+ pointsMaterial.map = material.map+ pointsMaterial.sizeAttenuation = false // glTF spec says points should be 1px++ this.cache.add(cacheKey, pointsMaterial)+ }++ material = pointsMaterial+ } else if (mesh.isLine) {+ var cacheKey = 'LineBasicMaterial:' + material.uuid++ var lineMaterial = this.cache.get(cacheKey)++ if (!lineMaterial) {+ lineMaterial = new THREE$1.LineBasicMaterial()+ THREE$1.Material.prototype.copy.call(lineMaterial, material)+ lineMaterial.color.copy(material.color)++ this.cache.add(cacheKey, lineMaterial)+ }++ material = lineMaterial+ }++ // Clone the material if it will be modified+ if (useVertexTangents || useVertexColors || useFlatShading || useSkinning || useMorphTargets) {+ var cacheKey = 'ClonedMaterial:' + material.uuid + ':'++ if (material.isGLTFSpecularGlossinessMaterial) cacheKey += 'specular-glossiness:'+ if (useSkinning) cacheKey += 'skinning:'+ if (useVertexTangents) cacheKey += 'vertex-tangents:'+ if (useVertexColors) cacheKey += 'vertex-colors:'+ if (useFlatShading) cacheKey += 'flat-shading:'+ if (useMorphTargets) cacheKey += 'morph-targets:'+ if (useMorphNormals) cacheKey += 'morph-normals:'++ var cachedMaterial = this.cache.get(cacheKey)++ if (!cachedMaterial) {+ cachedMaterial = material.clone()++ if (useSkinning) cachedMaterial.skinning = true+ if (useVertexTangents) cachedMaterial.vertexTangents = true+ if (useVertexColors) cachedMaterial.vertexColors = true+ if (useFlatShading) cachedMaterial.flatShading = true+ if (useMorphTargets) cachedMaterial.morphTargets = true+ if (useMorphNormals) cachedMaterial.morphNormals = true++ this.cache.add(cacheKey, cachedMaterial)++ this.associations.set(cachedMaterial, this.associations.get(material))+ }++ material = cachedMaterial+ }++ // workarounds for mesh and geometry++ if (material.aoMap && geometry.attributes.uv2 === undefined && geometry.attributes.uv !== undefined) {+ geometry.setAttribute('uv2', geometry.attributes.uv)+ }++ // https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995+ if (material.normalScale && !useVertexTangents) {+ material.normalScale.y = -material.normalScale.y+ }++ if (material.clearcoatNormalScale && !useVertexTangents) {+ material.clearcoatNormalScale.y = -material.clearcoatNormalScale.y+ }++ mesh.material = material+ }++ GLTFParser.prototype.getMaterialType = function (/* materialIndex */) {+ return THREE$1.MeshStandardMaterial+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials+ * @param {number} materialIndex+ * @return {Promise<THREE.Material>}+ */+ GLTFParser.prototype.loadMaterial = function (materialIndex) {+ var parser = this+ var json = this.json+ var extensions = this.extensions+ var materialDef = json.materials[materialIndex]++ var materialType+ var materialParams = {}+ var materialExtensions = materialDef.extensions || {}++ var pending = []++ if (materialExtensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]) {+ var sgExtension = extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]+ materialType = sgExtension.getMaterialType()+ pending.push(sgExtension.extendParams(materialParams, materialDef, parser))+ } else if (materialExtensions[EXTENSIONS.KHR_MATERIALS_UNLIT]) {+ var kmuExtension = extensions[EXTENSIONS.KHR_MATERIALS_UNLIT]+ materialType = kmuExtension.getMaterialType()+ pending.push(kmuExtension.extendParams(materialParams, materialDef, parser))+ } else {+ // Specification:+ // https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#metallic-roughness-material++ var metallicRoughness = materialDef.pbrMetallicRoughness || {}++ materialParams.color = new THREE$1.Color(1.0, 1.0, 1.0)+ materialParams.opacity = 1.0++ if (Array.isArray(metallicRoughness.baseColorFactor)) {+ var array = metallicRoughness.baseColorFactor++ materialParams.color.fromArray(array)+ materialParams.opacity = array[3]+ }++ materialParams.metalness = metallicRoughness.metallicFactor !== undefined ? metallicRoughness.metallicFactor : 1.0+ materialParams.roughness =+ metallicRoughness.roughnessFactor !== undefined ? metallicRoughness.roughnessFactor : 1.0++ materialType = this._invokeOne(function (ext) {+ return ext.getMaterialType && ext.getMaterialType(materialIndex)+ })++ pending.push(+ Promise.all(+ this._invokeAll(function (ext) {+ return ext.extendMaterialParams && ext.extendMaterialParams(materialIndex, materialParams)+ })+ )+ )+ }++ if (materialDef.doubleSided === true) {+ materialParams.side = THREE$1.DoubleSide+ }++ var alphaMode = materialDef.alphaMode || ALPHA_MODES.OPAQUE++ if (alphaMode === ALPHA_MODES.BLEND) {+ materialParams.transparent = true++ // See: https://github.com/mrdoob/three.js/issues/17706+ materialParams.depthWrite = false+ } else {+ materialParams.transparent = false++ if (alphaMode === ALPHA_MODES.MASK) {+ materialParams.alphaTest = materialDef.alphaCutoff !== undefined ? materialDef.alphaCutoff : 0.5+ }+ }++ if (materialDef.normalTexture !== undefined && materialType !== THREE$1.MeshBasicMaterial) {+ materialParams.normalScale = new THREE$1.Vector2(1, 1)++ if (materialDef.normalTexture.scale !== undefined) {+ materialParams.normalScale.set(materialDef.normalTexture.scale, materialDef.normalTexture.scale)+ }+ }++ if (materialDef.occlusionTexture !== undefined && materialType !== THREE$1.MeshBasicMaterial) {+ if (materialDef.occlusionTexture.strength !== undefined) {+ materialParams.aoMapIntensity = materialDef.occlusionTexture.strength+ }+ }++ if (materialDef.emissiveFactor !== undefined && materialType !== THREE$1.MeshBasicMaterial) {+ materialParams.emissive = new THREE$1.Color().fromArray(materialDef.emissiveFactor)+ }++ return Promise.all(pending).then(function () {+ var material++ if (materialType === GLTFMeshStandardSGMaterial) {+ material = extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(materialParams)+ } else {+ material = new materialType(materialParams)+ }++ if (materialDef.name) material.name = materialDef.name++ // baseColorTexture, emissiveTexture, and specularGlossinessTexture use sRGB encoding.+ if (material.map) material.map.encoding = THREE$1.sRGBEncoding+ if (material.emissiveMap) material.emissiveMap.encoding = THREE$1.sRGBEncoding++ assignExtrasToUserData(material, materialDef)++ parser.associations.set(material, { type: 'materials', index: materialIndex })++ if (materialDef.extensions) addUnknownExtensionsToUserData(extensions, material, materialDef)++ return material+ })+ }++ /** When Object3D instances are targeted by animation, they need unique names. */+ GLTFParser.prototype.createUniqueName = function (originalName) {+ var sanitizedName = THREE$1.PropertyBinding.sanitizeNodeName(originalName || '')++ var name = sanitizedName++ for (var i = 1; this.nodeNamesUsed[name]; ++i) {+ name = sanitizedName + '_' + i+ }++ this.nodeNamesUsed[name] = true++ return name+ }++ /**+ * @param {THREE.BufferGeometry} geometry+ * @param {GLTF.Primitive} primitiveDef+ * @param {GLTFParser} parser+ */+ function computeBounds(geometry, primitiveDef, parser) {+ var attributes = primitiveDef.attributes++ var box = new THREE$1.Box3()++ if (attributes.POSITION !== undefined) {+ var accessor = parser.json.accessors[attributes.POSITION]++ var min = accessor.min+ var max = accessor.max++ // glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.++ if (min !== undefined && max !== undefined) {+ box.set(new THREE$1.Vector3(min[0], min[1], min[2]), new THREE$1.Vector3(max[0], max[1], max[2]))+ } else {+ console.warn('THREE.GLTFLoader: Missing min/max properties for accessor POSITION.')++ return+ }+ } else {+ return+ }++ var targets = primitiveDef.targets++ if (targets !== undefined) {+ var maxDisplacement = new THREE$1.Vector3()+ var vector = new THREE$1.Vector3()++ for (var i = 0, il = targets.length; i < il; i++) {+ var target = targets[i]++ if (target.POSITION !== undefined) {+ var accessor = parser.json.accessors[target.POSITION]+ var min = accessor.min+ var max = accessor.max++ // glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.++ if (min !== undefined && max !== undefined) {+ // we need to get max of absolute components because target weight is [-1,1]+ vector.setX(Math.max(Math.abs(min[0]), Math.abs(max[0])))+ vector.setY(Math.max(Math.abs(min[1]), Math.abs(max[1])))+ vector.setZ(Math.max(Math.abs(min[2]), Math.abs(max[2])))++ // Note: this assumes that the sum of all weights is at most 1. This isn't quite correct - it's more conservative+ // to assume that each target can have a max weight of 1. However, for some use cases - notably, when morph targets+ // are used to implement key-frame animations and as such only two are active at a time - this results in very large+ // boxes. So for now we make a box that's sometimes a touch too small but is hopefully mostly of reasonable size.+ maxDisplacement.max(vector)+ } else {+ console.warn('THREE.GLTFLoader: Missing min/max properties for accessor POSITION.')+ }+ }+ }++ // As per comment above this box isn't conservative, but has a reasonable size for a very large number of morph targets.+ box.expandByVector(maxDisplacement)+ }++ geometry.boundingBox = box++ var sphere = new THREE$1.Sphere()++ box.getCenter(sphere.center)+ sphere.radius = box.min.distanceTo(box.max) / 2++ geometry.boundingSphere = sphere+ }++ /**+ * @param {THREE.BufferGeometry} geometry+ * @param {GLTF.Primitive} primitiveDef+ * @param {GLTFParser} parser+ * @return {Promise<THREE.BufferGeometry>}+ */+ function addPrimitiveAttributes(geometry, primitiveDef, parser) {+ var attributes = primitiveDef.attributes++ var pending = []++ function assignAttributeAccessor(accessorIndex, attributeName) {+ return parser.getDependency('accessor', accessorIndex).then(function (accessor) {+ geometry.setAttribute(attributeName, accessor)+ })+ }++ for (var gltfAttributeName in attributes) {+ var threeAttributeName = ATTRIBUTES[gltfAttributeName] || gltfAttributeName.toLowerCase()++ // Skip attributes already provided by e.g. Draco extension.+ if (threeAttributeName in geometry.attributes) continue++ pending.push(assignAttributeAccessor(attributes[gltfAttributeName], threeAttributeName))+ }++ if (primitiveDef.indices !== undefined && !geometry.index) {+ var accessor = parser.getDependency('accessor', primitiveDef.indices).then(function (accessor) {+ geometry.setIndex(accessor)+ })++ pending.push(accessor)+ }++ assignExtrasToUserData(geometry, primitiveDef)++ computeBounds(geometry, primitiveDef, parser)++ return Promise.all(pending).then(function () {+ return primitiveDef.targets !== undefined ? addMorphTargets(geometry, primitiveDef.targets, parser) : geometry+ })+ }++ /**+ * @param {THREE.BufferGeometry} geometry+ * @param {Number} drawMode+ * @return {THREE.BufferGeometry}+ */+ function toTrianglesDrawMode(geometry, drawMode) {+ var index = geometry.getIndex()++ // generate index if not present++ if (index === null) {+ var indices = []++ var position = geometry.getAttribute('position')++ if (position !== undefined) {+ for (var i = 0; i < position.count; i++) {+ indices.push(i)+ }++ geometry.setIndex(indices)+ index = geometry.getIndex()+ } else {+ console.error('THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.')+ return geometry+ }+ }++ //++ var numberOfTriangles = index.count - 2+ var newIndices = []++ if (drawMode === THREE$1.TriangleFanDrawMode) {+ // gl.TRIANGLE_FAN++ for (var i = 1; i <= numberOfTriangles; i++) {+ newIndices.push(index.getX(0))+ newIndices.push(index.getX(i))+ newIndices.push(index.getX(i + 1))+ }+ } else {+ // gl.TRIANGLE_STRIP++ for (var i = 0; i < numberOfTriangles; i++) {+ if (i % 2 === 0) {+ newIndices.push(index.getX(i))+ newIndices.push(index.getX(i + 1))+ newIndices.push(index.getX(i + 2))+ } else {+ newIndices.push(index.getX(i + 2))+ newIndices.push(index.getX(i + 1))+ newIndices.push(index.getX(i))+ }+ }+ }++ if (newIndices.length / 3 !== numberOfTriangles) {+ console.error('THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.')+ }++ // build final geometry++ var newGeometry = geometry.clone()+ newGeometry.setIndex(newIndices)++ return newGeometry+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#geometry+ *+ * Creates BufferGeometries from primitives.+ *+ * @param {Array<GLTF.Primitive>} primitives+ * @return {Promise<Array<THREE.BufferGeometry>>}+ */+ GLTFParser.prototype.loadGeometries = function (primitives) {+ var parser = this+ var extensions = this.extensions+ var cache = this.primitiveCache++ function createDracoPrimitive(primitive) {+ return extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]+ .decodePrimitive(primitive, parser)+ .then(function (geometry) {+ return addPrimitiveAttributes(geometry, primitive, parser)+ })+ }++ var pending = []++ for (var i = 0, il = primitives.length; i < il; i++) {+ var primitive = primitives[i]+ var cacheKey = createPrimitiveKey(primitive)++ // See if we've already created this geometry+ var cached = cache[cacheKey]++ if (cached) {+ // Use the cached geometry if it exists+ pending.push(cached.promise)+ } else {+ var geometryPromise++ if (primitive.extensions && primitive.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]) {+ // Use DRACO geometry if available+ geometryPromise = createDracoPrimitive(primitive)+ } else {+ // Otherwise create a new geometry+ geometryPromise = addPrimitiveAttributes(new THREE$1.BufferGeometry(), primitive, parser)+ }++ // Cache this geometry+ cache[cacheKey] = { primitive: primitive, promise: geometryPromise }++ pending.push(geometryPromise)+ }+ }++ return Promise.all(pending)+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes+ * @param {number} meshIndex+ * @return {Promise<THREE.Group|THREE.Mesh|THREE.SkinnedMesh>}+ */+ GLTFParser.prototype.loadMesh = function (meshIndex) {+ var parser = this+ var json = this.json+ var extensions = this.extensions++ var meshDef = json.meshes[meshIndex]+ var primitives = meshDef.primitives++ var pending = []++ for (var i = 0, il = primitives.length; i < il; i++) {+ var material =+ primitives[i].material === undefined+ ? createDefaultMaterial(this.cache)+ : this.getDependency('material', primitives[i].material)++ pending.push(material)+ }++ pending.push(parser.loadGeometries(primitives))++ return Promise.all(pending).then(function (results) {+ var materials = results.slice(0, results.length - 1)+ var geometries = results[results.length - 1]++ var meshes = []++ for (var i = 0, il = geometries.length; i < il; i++) {+ var geometry = geometries[i]+ var primitive = primitives[i]++ // 1. create Mesh++ var mesh++ var material = materials[i]++ if (+ primitive.mode === WEBGL_CONSTANTS.TRIANGLES ||+ primitive.mode === WEBGL_CONSTANTS.TRIANGLE_STRIP ||+ primitive.mode === WEBGL_CONSTANTS.TRIANGLE_FAN ||+ primitive.mode === undefined+ ) {+ // .isSkinnedMesh isn't in glTF spec. See ._markDefs()+ mesh =+ meshDef.isSkinnedMesh === true+ ? new THREE$1.SkinnedMesh(geometry, material)+ : new THREE$1.Mesh(geometry, material)++ if (primitive.mode === WEBGL_CONSTANTS.TRIANGLE_STRIP) {+ mesh.geometry = toTrianglesDrawMode(mesh.geometry, THREE$1.TriangleStripDrawMode)+ } else if (primitive.mode === WEBGL_CONSTANTS.TRIANGLE_FAN) {+ mesh.geometry = toTrianglesDrawMode(mesh.geometry, THREE$1.TriangleFanDrawMode)+ }+ } else if (primitive.mode === WEBGL_CONSTANTS.LINES) {+ mesh = new THREE$1.LineSegments(geometry, material)+ } else if (primitive.mode === WEBGL_CONSTANTS.LINE_STRIP) {+ mesh = new THREE$1.Line(geometry, material)+ } else if (primitive.mode === WEBGL_CONSTANTS.LINE_LOOP) {+ mesh = new THREE$1.LineLoop(geometry, material)+ } else if (primitive.mode === WEBGL_CONSTANTS.POINTS) {+ mesh = new THREE$1.Points(geometry, material)+ } else {+ throw new Error('THREE.GLTFLoader: Primitive mode unsupported: ' + primitive.mode)+ }++ if (Object.keys(mesh.geometry.morphAttributes).length > 0) {+ updateMorphTargets(mesh, meshDef)+ }++ mesh.name = parser.createUniqueName(meshDef.name || 'mesh_' + meshIndex)++ assignExtrasToUserData(mesh, meshDef)+ if (primitive.extensions) addUnknownExtensionsToUserData(extensions, mesh, primitive)++ parser.assignFinalMaterial(mesh)++ meshes.push(mesh)+ }++ if (meshes.length === 1) {+ return meshes[0]+ }++ var group = new THREE$1.Group()++ for (var i = 0, il = meshes.length; i < il; i++) {+ group.add(meshes[i])+ }++ return group+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#cameras+ * @param {number} cameraIndex+ * @return {Promise<THREE.Camera>}+ */+ GLTFParser.prototype.loadCamera = function (cameraIndex) {+ var camera+ var cameraDef = this.json.cameras[cameraIndex]+ var params = cameraDef[cameraDef.type]++ if (!params) {+ console.warn('THREE.GLTFLoader: Missing camera parameters.')+ return+ }++ if (cameraDef.type === 'perspective') {+ camera = new THREE$1.PerspectiveCamera(+ THREE$1.MathUtils.radToDeg(params.yfov),+ params.aspectRatio || 1,+ params.znear || 1,+ params.zfar || 2e6+ )+ } else if (cameraDef.type === 'orthographic') {+ camera = new THREE$1.OrthographicCamera(+ -params.xmag,+ params.xmag,+ params.ymag,+ -params.ymag,+ params.znear,+ params.zfar+ )+ }++ if (cameraDef.name) camera.name = this.createUniqueName(cameraDef.name)++ assignExtrasToUserData(camera, cameraDef)++ return Promise.resolve(camera)+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins+ * @param {number} skinIndex+ * @return {Promise<Object>}+ */+ GLTFParser.prototype.loadSkin = function (skinIndex) {+ var skinDef = this.json.skins[skinIndex]++ var skinEntry = { joints: skinDef.joints }++ if (skinDef.inverseBindMatrices === undefined) {+ return Promise.resolve(skinEntry)+ }++ return this.getDependency('accessor', skinDef.inverseBindMatrices).then(function (accessor) {+ skinEntry.inverseBindMatrices = accessor++ return skinEntry+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations+ * @param {number} animationIndex+ * @return {Promise<THREE.AnimationClip>}+ */+ GLTFParser.prototype.loadAnimation = function (animationIndex) {+ var json = this.json++ var animationDef = json.animations[animationIndex]++ var pendingNodes = []+ var pendingInputAccessors = []+ var pendingOutputAccessors = []+ var pendingSamplers = []+ var pendingTargets = []++ for (var i = 0, il = animationDef.channels.length; i < il; i++) {+ var channel = animationDef.channels[i]+ var sampler = animationDef.samplers[channel.sampler]+ var target = channel.target+ var name = target.node !== undefined ? target.node : target.id // NOTE: target.id is deprecated.+ var input = animationDef.parameters !== undefined ? animationDef.parameters[sampler.input] : sampler.input+ var output = animationDef.parameters !== undefined ? animationDef.parameters[sampler.output] : sampler.output++ pendingNodes.push(this.getDependency('node', name))+ pendingInputAccessors.push(this.getDependency('accessor', input))+ pendingOutputAccessors.push(this.getDependency('accessor', output))+ pendingSamplers.push(sampler)+ pendingTargets.push(target)+ }++ return Promise.all([+ Promise.all(pendingNodes),+ Promise.all(pendingInputAccessors),+ Promise.all(pendingOutputAccessors),+ Promise.all(pendingSamplers),+ Promise.all(pendingTargets),+ ]).then(function (dependencies) {+ var nodes = dependencies[0]+ var inputAccessors = dependencies[1]+ var outputAccessors = dependencies[2]+ var samplers = dependencies[3]+ var targets = dependencies[4]++ var tracks = []++ for (var i = 0, il = nodes.length; i < il; i++) {+ var node = nodes[i]+ inputAccessors[i]+ var outputAccessor = outputAccessors[i]+ var sampler = samplers[i]+ var target = targets[i]++ if (node === undefined) continue++ node.updateMatrix()+ node.matrixAutoUpdate = true++ switch (PATH_PROPERTIES[target.path]) {+ case PATH_PROPERTIES.weights:+ THREE$1.NumberKeyframeTrack+ break++ case PATH_PROPERTIES.rotation:+ THREE$1.QuaternionKeyframeTrack+ break++ case PATH_PROPERTIES.position:+ case PATH_PROPERTIES.scale:+ default:+ THREE$1.VectorKeyframeTrack+ break+ }++ var targetName = node.name ? node.name : node.uuid++ sampler.interpolation !== undefined ? INTERPOLATION[sampler.interpolation] : THREE$1.InterpolateLinear++ var targetNames = []++ if (PATH_PROPERTIES[target.path] === PATH_PROPERTIES.weights) {+ // Node may be a THREE.Group (glTF mesh with several primitives) or a THREE.Mesh.+ node.traverse(function (object) {+ if (object.isMesh === true && object.morphTargetInfluences) {+ targetNames.push(object.name ? object.name : object.uuid)+ }+ })+ } else {+ targetNames.push(targetName)+ }++ var outputArray = outputAccessor.array++ if (outputAccessor.normalized) {+ var scale++ if (outputArray.constructor === Int8Array) {+ scale = 1 / 127+ } else if (outputArray.constructor === Uint8Array) {+ scale = 1 / 255+ } else if (outputArray.constructor == Int16Array) {+ scale = 1 / 32767+ } else if (outputArray.constructor === Uint16Array) {+ scale = 1 / 65535+ } else {+ throw new Error('THREE.GLTFLoader: Unsupported output accessor component type.')+ }++ var scaled = new Float32Array(outputArray.length)++ for (var j = 0, jl = outputArray.length; j < jl; j++) {+ scaled[j] = outputArray[j] * scale+ }++ outputArray = scaled+ }+ }++ var name = animationDef.name ? animationDef.name : 'animation_' + animationIndex+ var clip = new THREE$1.AnimationClip(name, undefined, tracks)+ clip.targetNames = targetNames+ return clip+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#nodes-and-hierarchy+ * @param {number} nodeIndex+ * @return {Promise<THREE.Object3D>}+ */+ GLTFParser.prototype.loadNode = function (nodeIndex) {+ var json = this.json+ var extensions = this.extensions+ var parser = this++ var nodeDef = json.nodes[nodeIndex]++ // reserve node's name before its dependencies, so the root has the intended name.+ var nodeName = nodeDef.name ? parser.createUniqueName(nodeDef.name) : ''++ return (function () {+ var pending = []++ if (nodeDef.mesh !== undefined) {+ pending.push(+ parser.getDependency('mesh', nodeDef.mesh).then(function (mesh) {+ var node = parser._getNodeRef(parser.meshCache, nodeDef.mesh, mesh)++ // if weights are provided on the node, override weights on the mesh.+ if (nodeDef.weights !== undefined) {+ node.traverse(function (o) {+ if (!o.isMesh) return++ for (var i = 0, il = nodeDef.weights.length; i < il; i++) {+ o.morphTargetInfluences[i] = nodeDef.weights[i]+ }+ })+ }++ return node+ })+ )+ }++ if (nodeDef.camera !== undefined) {+ pending.push(+ parser.getDependency('camera', nodeDef.camera).then(function (camera) {+ return parser._getNodeRef(parser.cameraCache, nodeDef.camera, camera)+ })+ )+ }++ parser+ ._invokeAll(function (ext) {+ return ext.createNodeAttachment && ext.createNodeAttachment(nodeIndex)+ })+ .forEach(function (promise) {+ pending.push(promise)+ })++ return Promise.all(pending)+ })().then(function (objects) {+ var node++ // .isBone isn't in glTF spec. See ._markDefs+ if (nodeDef.isBone === true) {+ node = new THREE$1.Bone()+ } else if (objects.length > 1) {+ node = new THREE$1.Group()+ } else if (objects.length === 1) {+ node = objects[0]+ } else {+ node = new THREE$1.Object3D()+ }++ if (node !== objects[0]) {+ for (var i = 0, il = objects.length; i < il; i++) {+ node.add(objects[i])+ }+ }++ if (nodeDef.name) {+ node.userData.name = nodeDef.name+ node.name = nodeName+ }++ assignExtrasToUserData(node, nodeDef)++ if (nodeDef.extensions) addUnknownExtensionsToUserData(extensions, node, nodeDef)++ if (nodeDef.matrix !== undefined) {+ var matrix = new THREE$1.Matrix4()+ matrix.fromArray(nodeDef.matrix)+ node.applyMatrix4(matrix)+ } else {+ if (nodeDef.translation !== undefined) {+ node.position.fromArray(nodeDef.translation)+ }++ if (nodeDef.rotation !== undefined) {+ node.quaternion.fromArray(nodeDef.rotation)+ }++ if (nodeDef.scale !== undefined) {+ node.scale.fromArray(nodeDef.scale)+ }+ }++ parser.associations.set(node, { type: 'nodes', index: nodeIndex })++ return node+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#scenes+ * @param {number} sceneIndex+ * @return {Promise<THREE.Group>}+ */+ GLTFParser.prototype.loadScene = (function () {+ // scene node hierachy builder++ function buildNodeHierachy(nodeId, parentObject, json, parser) {+ var nodeDef = json.nodes[nodeId]++ return parser+ .getDependency('node', nodeId)+ .then(function (node) {+ if (nodeDef.skin === undefined) return node++ // build skeleton here as well++ var skinEntry++ return parser+ .getDependency('skin', nodeDef.skin)+ .then(function (skin) {+ skinEntry = skin++ var pendingJoints = []++ for (var i = 0, il = skinEntry.joints.length; i < il; i++) {+ pendingJoints.push(parser.getDependency('node', skinEntry.joints[i]))+ }++ return Promise.all(pendingJoints)+ })+ .then(function (jointNodes) {+ node.traverse(function (mesh) {+ if (!mesh.isMesh) return++ var bones = []+ var boneInverses = []++ for (var j = 0, jl = jointNodes.length; j < jl; j++) {+ var jointNode = jointNodes[j]++ if (jointNode) {+ bones.push(jointNode)++ var mat = new THREE$1.Matrix4()++ if (skinEntry.inverseBindMatrices !== undefined) {+ mat.fromArray(skinEntry.inverseBindMatrices.array, j * 16)+ }++ boneInverses.push(mat)+ } else {+ console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', skinEntry.joints[j])+ }+ }++ mesh.bind(new THREE$1.Skeleton(bones, boneInverses), mesh.matrixWorld)+ })++ return node+ })+ })+ .then(function (node) {+ // build node hierachy++ parentObject.add(node)++ var pending = []++ if (nodeDef.children) {+ var children = nodeDef.children++ for (var i = 0, il = children.length; i < il; i++) {+ var child = children[i]+ pending.push(buildNodeHierachy(child, node, json, parser))+ }+ }++ return Promise.all(pending)+ })+ }++ return function loadScene(sceneIndex) {+ var json = this.json+ var extensions = this.extensions+ var sceneDef = this.json.scenes[sceneIndex]+ var parser = this++ // Loader returns Group, not Scene.+ // See: https://github.com/mrdoob/three.js/issues/18342#issuecomment-578981172+ var scene = new THREE$1.Group()+ if (sceneDef.name) scene.name = parser.createUniqueName(sceneDef.name)++ assignExtrasToUserData(scene, sceneDef)++ if (sceneDef.extensions) addUnknownExtensionsToUserData(extensions, scene, sceneDef)++ var nodeIds = sceneDef.nodes || []++ var pending = []++ for (var i = 0, il = nodeIds.length; i < il; i++) {+ pending.push(buildNodeHierachy(nodeIds[i], scene, json, parser))+ }++ return Promise.all(pending).then(function () {+ return scene+ })+ }+ })()++ return GLTFLoader+})()++const THREE = (commonjsGlobal.THREE = THREE$1)++var glftLoader = THREE.GLTFLoader++exports.GLTFStructureLoader = glftLoader+exports.parse = parse+exports.transform = transformdiff --git a/vendor/three-ws-fork/gltfjsx/package.json b/vendor/three-ws-fork/gltfjsx/package.jsonnew file mode 100644index 000000000..48d7e9d63--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/package.json@@ -0,0 +1,88 @@+{+ "name": "@three-ws/gltfjsx",+ "version": "6.1.3",+ "description": "GLTF to JSX converter",+ "scripts": {+ "test": "node src/test",+ "build": "rollup -c --bundleConfigAsCjs"+ },+ "keywords": [+ "gltf",+ "jsx",+ "react",+ "fiber",+ "three",+ "threejs",+ "webp"+ ],+ "author": "Paul Henschel",+ "maintainers": [+ "Max Rusan"+ ],+ "license": "MIT",+ "repository": {+ "type": "git",+ "url": "git+https://github.com/nirholas/three.ws.git",+ "directory": "vendor/three-ws-fork/gltfjsx"+ },+ "bugs": {+ "url": "https://github.com/nirholas/three.ws/issues"+ },+ "homepage": "https://github.com/nirholas/three.ws/tree/main/vendor/three-ws-fork/gltfjsx",+ "bin": {+ "gltfjsx": "./cli.js"+ },+ "main": "./lib/exports.js",+ "engines": {+ "node": ">=16"+ },+ "dependencies": {+ "@gltf-transform/core": "^3.0.0-alpha.4",+ "@gltf-transform/extensions": "^3.0.0-alpha.4",+ "@gltf-transform/functions": "^3.0.0-alpha.4",+ "@node-loader/babel": "^2.0.1",+ "draco3dgltf": "^1.5.5",+ "is-var-name": "^2.0.0",+ "jsdom": "^20.0.3",+ "jsdom-global": "^3.0.2",+ "meow": "^11.0.0",+ "meshoptimizer": "^0.18.1",+ "prettier": "^2.3.2",+ "sharp": "^0.31.3",+ "three": "0.122.0"+ },+ "devDependencies": {+ "@rollup/plugin-commonjs": "^24.0.1",+ "chalk": "^4.1.1",+ "fast-glob": "^3.2.7",+ "fs-extra": "^9.0.1",+ "husky": "^4.3.0",+ "lint-staged": "^10.4.0",+ "rollup": "^3.12.0"+ },+ "husky": {+ "hooks": {+ "pre-commit": "npx lint-staged"+ }+ },+ "prettier": {+ "semi": false,+ "trailingComma": "es5",+ "singleQuote": true,+ "jsxBracketSameLine": true,+ "tabWidth": 2,+ "printWidth": 120+ },+ "lint-staged": {+ "*.{js,jsx,ts,tsx}": [+ "prettier --write"+ ]+ },+ "collective": {+ "type": "opencollective",+ "url": "https://opencollective.com/react-three-fiber"+ },+ "volta": {+ "node": "16.19.0"+ }+}diff --git a/vendor/three-ws-fork/gltfjsx/rollup.config.js b/vendor/three-ws-fork/gltfjsx/rollup.config.jsnew file mode 100644index 000000000..b924e890c--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/rollup.config.js@@ -0,0 +1,10 @@+const commonjs = require('@rollup/plugin-commonjs')++export default {+ input: 'src/utils/exports.js',+ output: {+ dir: 'lib',+ format: 'cjs',+ },+ plugins: [commonjs()],+}diff --git a/vendor/three-ws-fork/gltfjsx/src/bin/DRACOLoader.js b/vendor/three-ws-fork/gltfjsx/src/bin/DRACOLoader.jsnew file mode 100644index 000000000..8abf3b8e5--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/bin/DRACOLoader.js@@ -0,0 +1,208 @@+'use strict'+import THREE from 'three'+import draco from 'draco3dgltf'+const decoder = draco.createDecoderModule()+const DRACOLoader = (THREE.DRACOLoader = function (t) {+ ;(this.timeLoaded = 0),+ (this.manager = t || THREE.DefaultLoadingManager),+ (this.materials = null),+ (this.verbosity = 0),+ (this.attributeOptions = {}),+ (this.drawMode = THREE.TrianglesDrawMode),+ (this.nativeAttributeMap = { position: 'POSITION', normal: 'NORMAL', color: 'COLOR', uv: 'TEX_COORD' })+})++export default DRACOLoader++THREE.DRACOLoader.prototype = {+ constructor: THREE.DRACOLoader,+ load: function (t, e, r, o) {+ var i = this,+ n = new THREE.FileLoader(i.manager)+ n.setPath(this.path),+ n.setResponseType('arraybuffer'),+ n.load(+ t,+ function (t) {+ i.decodeDracoFile(t, e)+ },+ r,+ o+ )+ },+ setPath: function (t) {+ return (this.path = t), this+ },+ setVerbosity: function (t) {+ return (this.verbosity = t), this+ },+ setDrawMode: function (t) {+ return (this.drawMode = t), this+ },+ setSkipDequantization: function (t, e) {+ var r = !0+ return void 0 !== e && (r = e), (this.getAttributeOptions(t).skipDequantization = r), this+ },+ decodeDracoFile: function (t, e, r, o) {+ decoder.then((decoder) => this.decodeDracoFileInternal(t, decoder, e, r, o))+ },+ decodeDracoFileInternal: function (t, e, r, o, i) {+ var n = new e.DecoderBuffer()+ n.Init(new Int8Array(t), t.byteLength)+ var a = new e.Decoder(),+ s = a.GetEncodedGeometryType(n)+ if (s == e.TRIANGULAR_MESH) this.verbosity > 0 && console.log('Loaded a mesh.')+ else {+ if (s != e.POINT_CLOUD) {+ var u = 'THREE.DRACOLoader: Unknown geometry type.'+ //throw (console.error(u), new Error(u))+ }+ this.verbosity > 0 && console.log('Loaded a point cloud.')+ }+ r(this.convertDracoGeometryTo3JS(e, a, s, n, o, i))+ },+ addAttributeToGeometry: function (t, e, r, o, i, n, a, s) {+ if (0 === n.ptr) {+ var u = 'THREE.DRACOLoader: No attribute ' + o+ throw (console.error(u), new Error(u))+ }+ var d,+ A,+ c = n.num_components(),+ l = r.num_points() * c+ switch (i) {+ case Float32Array:+ ;(d = new t.DracoFloat32Array()),+ e.GetAttributeFloatForAllPoints(r, n, d),+ (s[o] = new Float32Array(l)),+ (A = THREE.Float32BufferAttribute)+ break+ case Int8Array:+ ;(d = new t.DracoInt8Array()),+ e.GetAttributeInt8ForAllPoints(r, n, d),+ (s[o] = new Int8Array(l)),+ (A = THREE.Int8BufferAttribute)+ break+ case Int16Array:+ ;(d = new t.DracoInt16Array()),+ e.GetAttributeInt16ForAllPoints(r, n, d),+ (s[o] = new Int16Array(l)),+ (A = THREE.Int16BufferAttribute)+ break+ case Int32Array:+ ;(d = new t.DracoInt32Array()),+ e.GetAttributeInt32ForAllPoints(r, n, d),+ (s[o] = new Int32Array(l)),+ (A = THREE.Int32BufferAttribute)+ break+ case Uint8Array:+ ;(d = new t.DracoUInt8Array()),+ e.GetAttributeUInt8ForAllPoints(r, n, d),+ (s[o] = new Uint8Array(l)),+ (A = THREE.Uint8BufferAttribute)+ break+ case Uint16Array:+ ;(d = new t.DracoUInt16Array()),+ e.GetAttributeUInt16ForAllPoints(r, n, d),+ (s[o] = new Uint16Array(l)),+ (A = THREE.Uint16BufferAttribute)+ break+ case Uint32Array:+ ;(d = new t.DracoUInt32Array()),+ e.GetAttributeUInt32ForAllPoints(r, n, d),+ (s[o] = new Uint32Array(l)),+ (A = THREE.Uint32BufferAttribute)+ break+ default:+ u = 'THREE.DRACOLoader: Unexpected attribute type.'+ throw (console.error(u), new Error(u))+ }+ for (var b = 0; b < l; b++) s[o][b] = d.GetValue(b)+ a.setAttribute(o, new A(s[o], c)), t.destroy(d)+ },+ convertDracoGeometryTo3JS: function (t, e, r, o, i, n) {+ var a, s, u+ if (+ (!0 === this.getAttributeOptions('position').skipDequantization && e.SkipAttributeTransform(t.POSITION),+ r === t.TRIANGULAR_MESH+ ? ((a = new t.Mesh()), (s = e.DecodeBufferToMesh(o, a)))+ : ((a = new t.PointCloud()), (s = e.DecodeBufferToPointCloud(o, a))),+ !s.ok() || 0 == a.ptr)+ ) {+ return new THREE.BufferGeometry()+ var d = 'THREE.DRACOLoader: Decoding failed: '+ throw ((d += s.error_msg()), console.error(d), t.destroy(e), t.destroy(a), new Error(d))+ }+ t.destroy(o),+ r == t.TRIANGULAR_MESH+ ? ((u = a.num_faces()), this.verbosity > 0 && console.log('Number of faces loaded: ' + u.toString()))+ : (u = 0)+ var A = a.num_points(),+ c = a.num_attributes()+ this.verbosity > 0 &&+ (console.log('Number of points loaded: ' + A.toString()),+ console.log('Number of attributes loaded: ' + c.toString()))+ var l = e.GetAttributeId(a, t.POSITION)+ if (-1 == l) {+ d = 'THREE.DRACOLoader: No position attribute found.'+ throw (console.error(d), t.destroy(e), t.destroy(a), new Error(d))+ }+ var b = e.GetAttribute(a, l),+ f = {},+ y = new THREE.BufferGeometry()+ if (i)+ for (var E in i) {+ var h = n[E],+ w = i[E],+ p = e.GetAttributeByUniqueId(a, w)+ //this.addAttributeToGeometry(t, e, a, E, h, p, y, f)+ }+ else+ for (var E in this.nativeAttributeMap) {+ var T = e.GetAttributeId(a, t[this.nativeAttributeMap[E]])+ if (-1 !== T) {+ this.verbosity > 0 && console.log('Loaded ' + E + ' attribute.')+ p = e.GetAttribute(a, T)+ //this.addAttributeToGeometry(t, e, a, E, Float32Array, p, y, f)+ }+ }+ if (r == t.TRIANGULAR_MESH)+ if (this.drawMode === THREE.TriangleStripDrawMode) {+ var R = new t.DracoInt32Array()+ e.GetTriangleStripsFromMesh(a, R)+ f.indices = new Uint32Array(R.size())+ for (var I = 0; I < R.size(); ++I) f.indices[I] = R.GetValue(I)+ t.destroy(R)+ } else {+ var v = 3 * u+ f.indices = new Uint32Array(v)+ var D = new t.DracoInt32Array()+ for (I = 0; I < u; ++I) {+ e.GetFaceFromMesh(a, I, D)+ var m = 3 * I+ ;(f.indices[m] = D.GetValue(0)), (f.indices[m + 1] = D.GetValue(1)), (f.indices[m + 2] = D.GetValue(2))+ }+ t.destroy(D)+ }+ ;(y.drawMode = this.drawMode),+ r == t.TRIANGULAR_MESH &&+ y.setIndex(+ new (f.indices.length > 65535 ? THREE.Uint32BufferAttribute : THREE.Uint16BufferAttribute)(f.indices, 1)+ )+ var G = new t.AttributeQuantizationTransform()+ if (G.InitFromAttribute(b)) {+ ;(y.attributes.position.isQuantized = !0),+ (y.attributes.position.maxRange = G.range()),+ (y.attributes.position.numQuantizationBits = G.quantization_bits()),+ (y.attributes.position.minValues = new Float32Array(3))+ for (I = 0; I < 3; ++I) y.attributes.position.minValues[I] = G.min_value(I)+ }+ return t.destroy(G), t.destroy(e), t.destroy(a), y+ },+ isVersionSupported: function (t, e) {+ e(decoder.isVersionSupported(t))+ },+ getAttributeOptions: function (t) {+ return void 0 === this.attributeOptions[t] && (this.attributeOptions[t] = {}), this.attributeOptions[t]+ },+}diff --git a/vendor/three-ws-fork/gltfjsx/src/bin/GLTFLoader.js b/vendor/three-ws-fork/gltfjsx/src/bin/GLTFLoader.jsnew file mode 100644index 000000000..98ac8a9ac--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/bin/GLTFLoader.js@@ -0,0 +1,2734 @@+import THREE from 'three'++const GLTFLoader = (THREE.GLTFLoader = (function () {+ function GLTFLoader(manager) {+ THREE.Loader.call(this, manager)++ this.dracoLoader = null+ this.ddsLoader = null+ this.ktx2Loader = null++ this.pluginCallbacks = []++ this.register(function (parser) {+ return new GLTFMaterialsClearcoatExtension(parser)+ })++ this.register(function (parser) {+ return new GLTFTextureBasisUExtension(parser)+ })++ this.register(function (parser) {+ return new GLTFMaterialsTransmissionExtension(parser)+ })++ this.register(function (parser) {+ return new GLTFLightsExtension(parser)+ })+ }++ GLTFLoader.prototype = Object.assign(Object.create(THREE.Loader.prototype), {+ constructor: GLTFLoader,++ load: function (url, onLoad, onProgress, onError) {+ var scope = this++ var resourcePath++ if (this.resourcePath !== '') {+ resourcePath = this.resourcePath+ } else if (this.path !== '') {+ resourcePath = this.path+ } else {+ resourcePath = THREE.LoaderUtils.extractUrlBase(url)+ }++ // Tells the LoadingManager to track an extra item, which resolves after+ // the model is fully loaded. This means the count of items loaded will+ // be incorrect, but ensures manager.onLoad() does not fire early.+ this.manager.itemStart(url)++ var _onError = function (e) {+ if (onError) {+ onError(e)+ } else {+ console.error(e)+ }++ scope.manager.itemError(url)+ scope.manager.itemEnd(url)+ }++ var loader = new THREE.FileLoader(this.manager)++ loader.setPath(this.path)+ loader.setResponseType('arraybuffer')+ loader.setRequestHeader(this.requestHeader)+ loader.setWithCredentials(this.withCredentials)++ loader.load(+ url,+ function (data) {+ try {+ scope.parse(+ data,+ resourcePath,+ function (gltf) {+ onLoad(gltf)++ scope.manager.itemEnd(url)+ },+ _onError+ )+ } catch (e) {+ _onError(e)+ }+ },+ onProgress,+ _onError+ )+ },++ setDRACOLoader: function (dracoLoader) {+ this.dracoLoader = dracoLoader+ return this+ },++ setDDSLoader: function (ddsLoader) {+ this.ddsLoader = ddsLoader+ return this+ },++ setKTX2Loader: function (ktx2Loader) {+ this.ktx2Loader = ktx2Loader+ return this+ },++ register: function (callback) {+ if (this.pluginCallbacks.indexOf(callback) === -1) {+ this.pluginCallbacks.push(callback)+ }++ return this+ },++ unregister: function (callback) {+ if (this.pluginCallbacks.indexOf(callback) !== -1) {+ this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(callback), 1)+ }++ return this+ },++ parse: function (data, path, onLoad, onError) {+ var content+ var extensions = {}+ var plugins = {}++ if (typeof data === 'string') {+ content = data+ } else {+ var magic = THREE.LoaderUtils.decodeText(new Uint8Array(data, 0, 4))++ if (magic === BINARY_EXTENSION_HEADER_MAGIC) {+ try {+ extensions[EXTENSIONS.KHR_BINARY_GLTF] = new GLTFBinaryExtension(data)+ } catch (error) {+ if (onError) onError(error)+ return+ }++ content = extensions[EXTENSIONS.KHR_BINARY_GLTF].content+ } else {+ content = THREE.LoaderUtils.decodeText(new Uint8Array(data))+ }+ }++ var json = JSON.parse(content)++ if (json.asset === undefined || json.asset.version[0] < 2) {+ if (onError) onError(new Error('THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.'))+ return+ }++ var parser = new GLTFParser(json, {+ path: path || this.resourcePath || '',+ crossOrigin: this.crossOrigin,+ manager: this.manager,+ ktx2Loader: this.ktx2Loader,+ })++ parser.fileLoader.setRequestHeader(this.requestHeader)++ for (var i = 0; i < this.pluginCallbacks.length; i++) {+ var plugin = this.pluginCallbacks[i](parser)+ plugins[plugin.name] = plugin++ // Workaround to avoid determining as unknown extension+ // in addUnknownExtensionsToUserData().+ // Remove this workaround if we move all the existing+ // extension handlers to plugin system+ extensions[plugin.name] = true+ }++ if (json.extensionsUsed) {+ for (var i = 0; i < json.extensionsUsed.length; ++i) {+ var extensionName = json.extensionsUsed[i]+ var extensionsRequired = json.extensionsRequired || []++ switch (extensionName) {+ case EXTENSIONS.KHR_MATERIALS_UNLIT:+ extensions[extensionName] = new GLTFMaterialsUnlitExtension()+ break++ case EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:+ extensions[extensionName] = new GLTFMaterialsPbrSpecularGlossinessExtension()+ break++ case EXTENSIONS.KHR_DRACO_MESH_COMPRESSION:+ extensions[extensionName] = new GLTFDracoMeshCompressionExtension(json, this.dracoLoader)+ break++ case EXTENSIONS.MSFT_TEXTURE_DDS:+ extensions[extensionName] = new GLTFTextureDDSExtension(this.ddsLoader)+ break++ case EXTENSIONS.KHR_TEXTURE_TRANSFORM:+ extensions[extensionName] = new GLTFTextureTransformExtension()+ break++ case EXTENSIONS.KHR_MESH_QUANTIZATION:+ extensions[extensionName] = new GLTFMeshQuantizationExtension()+ break++ default:+ if (extensionsRequired.indexOf(extensionName) >= 0 && plugins[extensionName] === undefined) {+ // console.warn('THREE.GLTFLoader: Unknown extension "' + extensionName + '".')+ }+ }+ }+ }++ parser.setExtensions(extensions)+ parser.setPlugins(plugins)+ parser.parse(onLoad, onError)+ },+ })++ /* GLTFREGISTRY */++ function GLTFRegistry() {+ var objects = {}++ return {+ get: function (key) {+ return objects[key]+ },++ add: function (key, object) {+ objects[key] = object+ },++ remove: function (key) {+ delete objects[key]+ },++ removeAll: function () {+ objects = {}+ },+ }+ }++ /*********************************/+ /********** EXTENSIONS ***********/+ /*********************************/++ var EXTENSIONS = {+ KHR_BINARY_GLTF: 'KHR_binary_glTF',+ KHR_DRACO_MESH_COMPRESSION: 'KHR_draco_mesh_compression',+ KHR_LIGHTS_PUNCTUAL: 'KHR_lights_punctual',+ KHR_MATERIALS_CLEARCOAT: 'KHR_materials_clearcoat',+ KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS: 'KHR_materials_pbrSpecularGlossiness',+ KHR_MATERIALS_TRANSMISSION: 'KHR_materials_transmission',+ KHR_MATERIALS_UNLIT: 'KHR_materials_unlit',+ KHR_TEXTURE_BASISU: 'KHR_texture_basisu',+ KHR_TEXTURE_TRANSFORM: 'KHR_texture_transform',+ KHR_MESH_QUANTIZATION: 'KHR_mesh_quantization',+ MSFT_TEXTURE_DDS: 'MSFT_texture_dds',+ }++ /**+ * DDS Texture Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/MSFT_texture_dds+ *+ */+ function GLTFTextureDDSExtension(ddsLoader) {+ if (!ddsLoader) {+ throw new Error('THREE.GLTFLoader: Attempting to load .dds texture without importing THREE.DDSLoader')+ }++ this.name = EXTENSIONS.MSFT_TEXTURE_DDS+ this.ddsLoader = ddsLoader+ }++ /**+ * Punctual Lights Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_lights_punctual+ */+ function GLTFLightsExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_LIGHTS_PUNCTUAL++ // Object3D instance caches+ this.cache = { refs: {}, uses: {} }+ }++ GLTFLightsExtension.prototype._markDefs = function () {+ var parser = this.parser+ var nodeDefs = this.parser.json.nodes || []++ for (var nodeIndex = 0, nodeLength = nodeDefs.length; nodeIndex < nodeLength; nodeIndex++) {+ var nodeDef = nodeDefs[nodeIndex]++ if (nodeDef.extensions && nodeDef.extensions[this.name] && nodeDef.extensions[this.name].light !== undefined) {+ parser._addNodeRef(this.cache, nodeDef.extensions[this.name].light)+ }+ }+ }++ GLTFLightsExtension.prototype._loadLight = function (lightIndex) {+ var parser = this.parser+ var cacheKey = 'light:' + lightIndex+ var dependency = parser.cache.get(cacheKey)++ if (dependency) return dependency++ var json = parser.json+ var extensions = (json.extensions && json.extensions[this.name]) || {}+ var lightDefs = extensions.lights || []+ var lightDef = lightDefs[lightIndex]+ var lightNode++ var color = new THREE.Color(0xffffff)++ if (lightDef.color !== undefined) color.fromArray(lightDef.color)++ var range = lightDef.range !== undefined ? lightDef.range : 0++ switch (lightDef.type) {+ case 'directional':+ lightNode = new THREE.DirectionalLight(color)+ lightNode.target.position.set(0, 0, -1)+ lightNode.add(lightNode.target)+ break++ case 'point':+ lightNode = new THREE.PointLight(color)+ lightNode.distance = range+ break++ case 'spot':+ lightNode = new THREE.SpotLight(color)+ lightNode.distance = range+ // Handle spotlight properties.+ lightDef.spot = lightDef.spot || {}+ lightDef.spot.innerConeAngle = lightDef.spot.innerConeAngle !== undefined ? lightDef.spot.innerConeAngle : 0+ lightDef.spot.outerConeAngle =+ lightDef.spot.outerConeAngle !== undefined ? lightDef.spot.outerConeAngle : Math.PI / 4.0+ lightNode.angle = lightDef.spot.outerConeAngle+ lightNode.penumbra = 1.0 - lightDef.spot.innerConeAngle / lightDef.spot.outerConeAngle+ lightNode.target.position.set(0, 0, -1)+ lightNode.add(lightNode.target)+ break++ default:+ throw new Error('THREE.GLTFLoader: Unexpected light type, "' + lightDef.type + '".')+ }++ // Some lights (e.g. spot) default to a position other than the origin. Reset the position+ // here, because node-level parsing will only override position if explicitly specified.+ lightNode.position.set(0, 0, 0)++ lightNode.decay = 2++ if (lightDef.intensity !== undefined) lightNode.intensity = lightDef.intensity++ lightNode.name = parser.createUniqueName(lightDef.name || 'light_' + lightIndex)++ dependency = Promise.resolve(lightNode)++ parser.cache.add(cacheKey, dependency)++ return dependency+ }++ GLTFLightsExtension.prototype.createNodeAttachment = function (nodeIndex) {+ var self = this+ var parser = this.parser+ var json = parser.json+ var nodeDef = json.nodes[nodeIndex]+ var lightDef = (nodeDef.extensions && nodeDef.extensions[this.name]) || {}+ var lightIndex = lightDef.light++ if (lightIndex === undefined) return null++ return this._loadLight(lightIndex).then(function (light) {+ return parser._getNodeRef(self.cache, lightIndex, light)+ })+ }++ /**+ * Unlit Materials Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit+ */+ function GLTFMaterialsUnlitExtension() {+ this.name = EXTENSIONS.KHR_MATERIALS_UNLIT+ }++ GLTFMaterialsUnlitExtension.prototype.getMaterialType = function () {+ return THREE.MeshBasicMaterial+ }++ GLTFMaterialsUnlitExtension.prototype.extendParams = function (materialParams, materialDef, parser) {+ var pending = []++ materialParams.color = new THREE.Color(1.0, 1.0, 1.0)+ materialParams.opacity = 1.0++ var metallicRoughness = materialDef.pbrMetallicRoughness++ if (metallicRoughness) {+ if (Array.isArray(metallicRoughness.baseColorFactor)) {+ var array = metallicRoughness.baseColorFactor++ materialParams.color.fromArray(array)+ materialParams.opacity = array[3]+ }+ }++ return Promise.all(pending)+ }++ /**+ * Clearcoat Materials Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_clearcoat+ */+ function GLTFMaterialsClearcoatExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_MATERIALS_CLEARCOAT+ }++ GLTFMaterialsClearcoatExtension.prototype.getMaterialType = function (materialIndex) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) return null++ return THREE.MeshPhysicalMaterial+ }++ GLTFMaterialsClearcoatExtension.prototype.extendMaterialParams = function (materialIndex, materialParams) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) {+ return Promise.resolve()+ }++ var pending = []++ var extension = materialDef.extensions[this.name]++ if (extension.clearcoatFactor !== undefined) {+ materialParams.clearcoat = extension.clearcoatFactor+ }++ if (extension.clearcoatRoughnessFactor !== undefined) {+ materialParams.clearcoatRoughness = extension.clearcoatRoughnessFactor+ }++ if (extension.clearcoatNormalTexture !== undefined) {+ if (extension.clearcoatNormalTexture.scale !== undefined) {+ var scale = extension.clearcoatNormalTexture.scale+ materialParams.clearcoatNormalScale = new THREE.Vector2(scale, scale)+ }+ }++ return Promise.all(pending)+ }++ /**+ * Transmission Materials Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_transmission+ * Draft: https://github.com/KhronosGroup/glTF/pull/1698+ */+ function GLTFMaterialsTransmissionExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_MATERIALS_TRANSMISSION+ }++ GLTFMaterialsTransmissionExtension.prototype.getMaterialType = function (materialIndex) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) return null++ return THREE.MeshPhysicalMaterial+ }++ GLTFMaterialsTransmissionExtension.prototype.extendMaterialParams = function (materialIndex, materialParams) {+ var parser = this.parser+ var materialDef = parser.json.materials[materialIndex]++ if (!materialDef.extensions || !materialDef.extensions[this.name]) {+ return Promise.resolve()+ }++ var pending = []++ var extension = materialDef.extensions[this.name]++ if (extension.transmissionFactor !== undefined) {+ materialParams.transmission = extension.transmissionFactor+ }++ return Promise.all(pending)+ }++ /**+ * BasisU Texture Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu+ * (draft PR https://github.com/KhronosGroup/glTF/pull/1751)+ */+ function GLTFTextureBasisUExtension(parser) {+ this.parser = parser+ this.name = EXTENSIONS.KHR_TEXTURE_BASISU+ }++ GLTFTextureBasisUExtension.prototype.loadTexture = function (textureIndex) {+ return Promise.resolve(new THREE.Texture())+ }++ /* BINARY EXTENSION */+ var BINARY_EXTENSION_HEADER_MAGIC = 'glTF'+ var BINARY_EXTENSION_HEADER_LENGTH = 12+ var BINARY_EXTENSION_CHUNK_TYPES = { JSON: 0x4e4f534a, BIN: 0x004e4942 }++ function GLTFBinaryExtension(data) {+ this.name = EXTENSIONS.KHR_BINARY_GLTF+ this.content = null+ this.body = null++ var headerView = new DataView(data, 0, BINARY_EXTENSION_HEADER_LENGTH)++ this.header = {+ magic: THREE.LoaderUtils.decodeText(new Uint8Array(data.slice(0, 4))),+ version: headerView.getUint32(4, true),+ length: headerView.getUint32(8, true),+ }++ if (this.header.magic !== BINARY_EXTENSION_HEADER_MAGIC) {+ throw new Error('THREE.GLTFLoader: Unsupported glTF-Binary header.')+ } else if (this.header.version < 2.0) {+ throw new Error('THREE.GLTFLoader: Legacy binary file detected.')+ }++ var chunkView = new DataView(data, BINARY_EXTENSION_HEADER_LENGTH)+ var chunkIndex = 0++ while (chunkIndex < chunkView.byteLength) {+ var chunkLength = chunkView.getUint32(chunkIndex, true)+ chunkIndex += 4++ var chunkType = chunkView.getUint32(chunkIndex, true)+ chunkIndex += 4++ if (chunkType === BINARY_EXTENSION_CHUNK_TYPES.JSON) {+ var contentArray = new Uint8Array(data, BINARY_EXTENSION_HEADER_LENGTH + chunkIndex, chunkLength)+ this.content = THREE.LoaderUtils.decodeText(contentArray)+ } else if (chunkType === BINARY_EXTENSION_CHUNK_TYPES.BIN) {+ var byteOffset = BINARY_EXTENSION_HEADER_LENGTH + chunkIndex+ this.body = data.slice(byteOffset, byteOffset + chunkLength)+ }++ // Clients must ignore chunks with unknown types.++ chunkIndex += chunkLength+ }++ if (this.content === null) {+ throw new Error('THREE.GLTFLoader: JSON content not found.')+ }+ }++ /**+ * DRACO Mesh Compression Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression+ */+ function GLTFDracoMeshCompressionExtension(json, dracoLoader) {+ if (!dracoLoader) {+ throw new Error('THREE.GLTFLoader: No DRACOLoader instance provided.')+ }++ this.name = EXTENSIONS.KHR_DRACO_MESH_COMPRESSION+ this.json = json+ this.dracoLoader = dracoLoader+ }++ GLTFDracoMeshCompressionExtension.prototype.decodePrimitive = function (primitive, parser) {+ var json = this.json+ var dracoLoader = this.dracoLoader+ var bufferViewIndex = primitive.extensions[this.name].bufferView+ var gltfAttributeMap = primitive.extensions[this.name].attributes+ var threeAttributeMap = {}+ var attributeNormalizedMap = {}+ var attributeTypeMap = {}++ for (var attributeName in gltfAttributeMap) {+ var threeAttributeName = ATTRIBUTES[attributeName] || attributeName.toLowerCase()++ threeAttributeMap[threeAttributeName] = gltfAttributeMap[attributeName]+ }++ for (attributeName in primitive.attributes) {+ var threeAttributeName = ATTRIBUTES[attributeName] || attributeName.toLowerCase()++ if (gltfAttributeMap[attributeName] !== undefined) {+ var accessorDef = json.accessors[primitive.attributes[attributeName]]+ var componentType = WEBGL_COMPONENT_TYPES[accessorDef.componentType]++ attributeTypeMap[threeAttributeName] = componentType+ attributeNormalizedMap[threeAttributeName] = accessorDef.normalized === true+ }+ }++ return parser.getDependency('bufferView', bufferViewIndex).then(function (bufferView) {+ return new Promise(function (resolve) {+ dracoLoader.decodeDracoFile(+ bufferView,+ function (geometry) {+ for (var attributeName in geometry.attributes) {+ var attribute = geometry.attributes[attributeName]+ var normalized = attributeNormalizedMap[attributeName]++ if (normalized !== undefined) attribute.normalized = normalized+ }++ resolve(geometry)+ },+ threeAttributeMap,+ attributeTypeMap+ )+ })+ })+ }++ /**+ * Texture Transform Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_transform+ */+ function GLTFTextureTransformExtension() {+ this.name = EXTENSIONS.KHR_TEXTURE_TRANSFORM+ }++ GLTFTextureTransformExtension.prototype.extendTexture = function (texture, transform) {+ texture = texture.clone()++ if (transform.offset !== undefined) {+ texture.offset.fromArray(transform.offset)+ }++ if (transform.rotation !== undefined) {+ texture.rotation = transform.rotation+ }++ if (transform.scale !== undefined) {+ texture.repeat.fromArray(transform.scale)+ }++ if (transform.texCoord !== undefined) {+ console.warn('THREE.GLTFLoader: Custom UV sets in "' + this.name + '" extension not yet supported.')+ }++ texture.needsUpdate = true++ return texture+ }++ /**+ * Specular-Glossiness Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_pbrSpecularGlossiness+ */++ /**+ * A sub class of THREE.StandardMaterial with some of the functionality+ * changed via the `onBeforeCompile` callback+ * @pailhead+ */++ function GLTFMeshStandardSGMaterial(params) {+ THREE.MeshStandardMaterial.call(this)++ this.isGLTFSpecularGlossinessMaterial = true++ //various chunks that need replacing+ var specularMapParsFragmentChunk = ['#ifdef USE_SPECULARMAP', ' uniform sampler2D specularMap;', '#endif'].join('\n')++ var glossinessMapParsFragmentChunk = [+ '#ifdef USE_GLOSSINESSMAP',+ ' uniform sampler2D glossinessMap;',+ '#endif',+ ].join('\n')++ var specularMapFragmentChunk = [+ 'vec3 specularFactor = specular;',+ '#ifdef USE_SPECULARMAP',+ ' vec4 texelSpecular = texture2D( specularMap, vUv );',+ ' texelSpecular = sRGBToLinear( texelSpecular );',+ ' // reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture',+ ' specularFactor *= texelSpecular.rgb;',+ '#endif',+ ].join('\n')++ var glossinessMapFragmentChunk = [+ 'float glossinessFactor = glossiness;',+ '#ifdef USE_GLOSSINESSMAP',+ ' vec4 texelGlossiness = texture2D( glossinessMap, vUv );',+ ' // reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture',+ ' glossinessFactor *= texelGlossiness.a;',+ '#endif',+ ].join('\n')++ var lightPhysicalFragmentChunk = [+ 'PhysicalMaterial material;',+ 'material.diffuseColor = diffuseColor.rgb * ( 1. - max( specularFactor.r, max( specularFactor.g, specularFactor.b ) ) );',+ 'vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );',+ 'float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );',+ 'material.specularRoughness = max( 1.0 - glossinessFactor, 0.0525 ); // 0.0525 corresponds to the base mip of a 256 cubemap.',+ 'material.specularRoughness += geometryRoughness;',+ 'material.specularRoughness = min( material.specularRoughness, 1.0 );',+ 'material.specularColor = specularFactor;',+ ].join('\n')++ var uniforms = {+ specular: { value: new THREE.Color().setHex(0xffffff) },+ glossiness: { value: 1 },+ specularMap: { value: null },+ glossinessMap: { value: null },+ }++ this._extraUniforms = uniforms++ this.onBeforeCompile = function (shader) {+ for (var uniformName in uniforms) {+ shader.uniforms[uniformName] = uniforms[uniformName]+ }++ shader.fragmentShader = shader.fragmentShader+ .replace('uniform float roughness;', 'uniform vec3 specular;')+ .replace('uniform float metalness;', 'uniform float glossiness;')+ .replace('#include <roughnessmap_pars_fragment>', specularMapParsFragmentChunk)+ .replace('#include <metalnessmap_pars_fragment>', glossinessMapParsFragmentChunk)+ .replace('#include <roughnessmap_fragment>', specularMapFragmentChunk)+ .replace('#include <metalnessmap_fragment>', glossinessMapFragmentChunk)+ .replace('#include <lights_physical_fragment>', lightPhysicalFragmentChunk)+ }++ Object.defineProperties(this, {+ specular: {+ get: function () {+ return uniforms.specular.value+ },+ set: function (v) {+ uniforms.specular.value = v+ },+ },++ specularMap: {+ get: function () {+ return uniforms.specularMap.value+ },+ set: function (v) {+ uniforms.specularMap.value = v++ if (v) {+ this.defines.USE_SPECULARMAP = '' // USE_UV is set by the renderer for specular maps+ } else {+ delete this.defines.USE_SPECULARMAP+ }+ },+ },++ glossiness: {+ get: function () {+ return uniforms.glossiness.value+ },+ set: function (v) {+ uniforms.glossiness.value = v+ },+ },++ glossinessMap: {+ get: function () {+ return uniforms.glossinessMap.value+ },+ set: function (v) {+ uniforms.glossinessMap.value = v++ if (v) {+ this.defines.USE_GLOSSINESSMAP = ''+ this.defines.USE_UV = ''+ } else {+ delete this.defines.USE_GLOSSINESSMAP+ delete this.defines.USE_UV+ }+ },+ },+ })++ delete this.metalness+ delete this.roughness+ delete this.metalnessMap+ delete this.roughnessMap++ this.setValues(params)+ }++ GLTFMeshStandardSGMaterial.prototype = Object.create(THREE.MeshStandardMaterial.prototype)+ GLTFMeshStandardSGMaterial.prototype.constructor = GLTFMeshStandardSGMaterial++ GLTFMeshStandardSGMaterial.prototype.copy = function (source) {+ THREE.MeshStandardMaterial.prototype.copy.call(this, source)+ this.specularMap = source.specularMap+ this.specular.copy(source.specular)+ this.glossinessMap = source.glossinessMap+ this.glossiness = source.glossiness+ delete this.metalness+ delete this.roughness+ delete this.metalnessMap+ delete this.roughnessMap+ return this+ }++ function GLTFMaterialsPbrSpecularGlossinessExtension() {+ return {+ name: EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,++ specularGlossinessParams: [+ 'color',+ 'map',+ 'lightMap',+ 'lightMapIntensity',+ 'aoMap',+ 'aoMapIntensity',+ 'emissive',+ 'emissiveIntensity',+ 'emissiveMap',+ 'bumpMap',+ 'bumpScale',+ 'normalMap',+ 'normalMapType',+ 'displacementMap',+ 'displacementScale',+ 'displacementBias',+ 'specularMap',+ 'specular',+ 'glossinessMap',+ 'glossiness',+ 'alphaMap',+ 'envMap',+ 'envMapIntensity',+ 'refractionRatio',+ ],++ getMaterialType: function () {+ return GLTFMeshStandardSGMaterial+ },++ extendParams: function (materialParams, materialDef, parser) {+ var pbrSpecularGlossiness = materialDef.extensions[this.name]++ materialParams.color = new THREE.Color(1.0, 1.0, 1.0)+ materialParams.opacity = 1.0++ var pending = []++ if (Array.isArray(pbrSpecularGlossiness.diffuseFactor)) {+ var array = pbrSpecularGlossiness.diffuseFactor++ materialParams.color.fromArray(array)+ materialParams.opacity = array[3]+ }++ materialParams.emissive = new THREE.Color(0.0, 0.0, 0.0)+ materialParams.glossiness =+ pbrSpecularGlossiness.glossinessFactor !== undefined ? pbrSpecularGlossiness.glossinessFactor : 1.0+ materialParams.specular = new THREE.Color(1.0, 1.0, 1.0)++ if (Array.isArray(pbrSpecularGlossiness.specularFactor)) {+ materialParams.specular.fromArray(pbrSpecularGlossiness.specularFactor)+ }++ return Promise.all(pending)+ },++ createMaterial: function (materialParams) {+ var material = new GLTFMeshStandardSGMaterial(materialParams)+ material.fog = true++ material.color = materialParams.color++ material.map = materialParams.map === undefined ? null : materialParams.map++ material.lightMap = null+ material.lightMapIntensity = 1.0++ material.aoMap = materialParams.aoMap === undefined ? null : materialParams.aoMap+ material.aoMapIntensity = 1.0++ material.emissive = materialParams.emissive+ material.emissiveIntensity = 1.0+ material.emissiveMap = materialParams.emissiveMap === undefined ? null : materialParams.emissiveMap++ material.bumpMap = materialParams.bumpMap === undefined ? null : materialParams.bumpMap+ material.bumpScale = 1++ material.normalMap = materialParams.normalMap === undefined ? null : materialParams.normalMap+ material.normalMapType = THREE.TangentSpaceNormalMap++ if (materialParams.normalScale) material.normalScale = materialParams.normalScale++ material.displacementMap = null+ material.displacementScale = 1+ material.displacementBias = 0++ material.specularMap = materialParams.specularMap === undefined ? null : materialParams.specularMap+ material.specular = materialParams.specular++ material.glossinessMap = materialParams.glossinessMap === undefined ? null : materialParams.glossinessMap+ material.glossiness = materialParams.glossiness++ material.alphaMap = null++ material.envMap = materialParams.envMap === undefined ? null : materialParams.envMap+ material.envMapIntensity = 1.0++ material.refractionRatio = 0.98++ return material+ },+ }+ }++ /**+ * Mesh Quantization Extension+ *+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization+ */+ function GLTFMeshQuantizationExtension() {+ this.name = EXTENSIONS.KHR_MESH_QUANTIZATION+ }++ /*********************************/+ /********** INTERPOLATION ********/+ /*********************************/++ // Spline Interpolation+ // Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#appendix-c-spline-interpolation+ function GLTFCubicSplineInterpolant(parameterPositions, sampleValues, sampleSize, resultBuffer) {+ THREE.Interpolant.call(this, parameterPositions, sampleValues, sampleSize, resultBuffer)+ }++ GLTFCubicSplineInterpolant.prototype = Object.create(THREE.Interpolant.prototype)+ GLTFCubicSplineInterpolant.prototype.constructor = GLTFCubicSplineInterpolant++ GLTFCubicSplineInterpolant.prototype.copySampleValue_ = function (index) {+ // Copies a sample value to the result buffer. See description of glTF+ // CUBICSPLINE values layout in interpolate_() function below.++ var result = this.resultBuffer,+ values = this.sampleValues,+ valueSize = this.valueSize,+ offset = index * valueSize * 3 + valueSize++ for (var i = 0; i !== valueSize; i++) {+ result[i] = values[offset + i]+ }++ return result+ }++ GLTFCubicSplineInterpolant.prototype.beforeStart_ = GLTFCubicSplineInterpolant.prototype.copySampleValue_++ GLTFCubicSplineInterpolant.prototype.afterEnd_ = GLTFCubicSplineInterpolant.prototype.copySampleValue_++ GLTFCubicSplineInterpolant.prototype.interpolate_ = function (i1, t0, t, t1) {+ var result = this.resultBuffer+ var values = this.sampleValues+ var stride = this.valueSize++ var stride2 = stride * 2+ var stride3 = stride * 3++ var td = t1 - t0++ var p = (t - t0) / td+ var pp = p * p+ var ppp = pp * p++ var offset1 = i1 * stride3+ var offset0 = offset1 - stride3++ var s2 = -2 * ppp + 3 * pp+ var s3 = ppp - pp+ var s0 = 1 - s2+ var s1 = s3 - pp + p++ // Layout of keyframe output values for CUBICSPLINE animations:+ // [ inTangent_1, splineVertex_1, outTangent_1, inTangent_2, splineVertex_2, ... ]+ for (var i = 0; i !== stride; i++) {+ var p0 = values[offset0 + i + stride] // splineVertex_k+ var m0 = values[offset0 + i + stride2] * td // outTangent_k * (t_k+1 - t_k)+ var p1 = values[offset1 + i + stride] // splineVertex_k+1+ var m1 = values[offset1 + i] * td // inTangent_k+1 * (t_k+1 - t_k)++ result[i] = s0 * p0 + s1 * m0 + s2 * p1 + s3 * m1+ }++ return result+ }++ /*********************************/+ /********** INTERNALS ************/+ /*********************************/++ /* CONSTANTS */++ var WEBGL_CONSTANTS = {+ FLOAT: 5126,+ //FLOAT_MAT2: 35674,+ FLOAT_MAT3: 35675,+ FLOAT_MAT4: 35676,+ FLOAT_VEC2: 35664,+ FLOAT_VEC3: 35665,+ FLOAT_VEC4: 35666,+ LINEAR: 9729,+ REPEAT: 10497,+ SAMPLER_2D: 35678,+ POINTS: 0,+ LINES: 1,+ LINE_LOOP: 2,+ LINE_STRIP: 3,+ TRIANGLES: 4,+ TRIANGLE_STRIP: 5,+ TRIANGLE_FAN: 6,+ UNSIGNED_BYTE: 5121,+ UNSIGNED_SHORT: 5123,+ }++ var WEBGL_COMPONENT_TYPES = {+ 5120: Int8Array,+ 5121: Uint8Array,+ 5122: Int16Array,+ 5123: Uint16Array,+ 5125: Uint32Array,+ 5126: Float32Array,+ }++ var WEBGL_FILTERS = {+ 9728: THREE.NearestFilter,+ 9729: THREE.LinearFilter,+ 9984: THREE.NearestMipmapNearestFilter,+ 9985: THREE.LinearMipmapNearestFilter,+ 9986: THREE.NearestMipmapLinearFilter,+ 9987: THREE.LinearMipmapLinearFilter,+ }++ var WEBGL_WRAPPINGS = {+ 33071: THREE.ClampToEdgeWrapping,+ 33648: THREE.MirroredRepeatWrapping,+ 10497: THREE.RepeatWrapping,+ }++ var WEBGL_TYPE_SIZES = {+ SCALAR: 1,+ VEC2: 2,+ VEC3: 3,+ VEC4: 4,+ MAT2: 4,+ MAT3: 9,+ MAT4: 16,+ }++ var ATTRIBUTES = {+ POSITION: 'position',+ NORMAL: 'normal',+ TANGENT: 'tangent',+ TEXCOORD_0: 'uv',+ TEXCOORD_1: 'uv2',+ COLOR_0: 'color',+ WEIGHTS_0: 'skinWeight',+ JOINTS_0: 'skinIndex',+ }++ var PATH_PROPERTIES = {+ scale: 'scale',+ translation: 'position',+ rotation: 'quaternion',+ weights: 'morphTargetInfluences',+ }++ var INTERPOLATION = {+ CUBICSPLINE: undefined, // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each+ // keyframe track will be initialized with a default interpolation type, then modified.+ LINEAR: THREE.InterpolateLinear,+ STEP: THREE.InterpolateDiscrete,+ }++ var ALPHA_MODES = {+ OPAQUE: 'OPAQUE',+ MASK: 'MASK',+ BLEND: 'BLEND',+ }++ /* UTILITY FUNCTIONS */++ function resolveURL(url, path) {+ // Invalid URL+ if (typeof url !== 'string' || url === '') return ''++ // Host Relative URL+ if (/^https?:\/\//i.test(path) && /^\//.test(url)) {+ path = path.replace(/(^https?:\/\/[^\/]+).*/i, '$1')+ }++ // Absolute URL http://,https://,//+ if (/^(https?:)?\/\//i.test(url)) return url++ // Data URI+ if (/^data:.*,.*$/i.test(url)) return url++ // Blob URL+ if (/^blob:.*$/i.test(url)) return url++ // Relative URL+ return path + url+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material+ */+ function createDefaultMaterial(cache) {+ if (cache['DefaultMaterial'] === undefined) {+ cache['DefaultMaterial'] = new THREE.MeshStandardMaterial({+ color: 0xffffff,+ emissive: 0x000000,+ metalness: 1,+ roughness: 1,+ transparent: false,+ depthTest: true,+ side: THREE.FrontSide,+ })+ }++ return cache['DefaultMaterial']+ }++ function addUnknownExtensionsToUserData(knownExtensions, object, objectDef) {+ // Add unknown glTF extensions to an object's userData.++ for (var name in objectDef.extensions) {+ if (knownExtensions[name] === undefined) {+ object.userData.gltfExtensions = object.userData.gltfExtensions || {}+ object.userData.gltfExtensions[name] = objectDef.extensions[name]+ }+ }+ }++ /**+ * @param {THREE.Object3D|THREE.Material|THREE.BufferGeometry} object+ * @param {GLTF.definition} gltfDef+ */+ function assignExtrasToUserData(object, gltfDef) {+ if (gltfDef.extras !== undefined) {+ if (typeof gltfDef.extras === 'object') {+ Object.assign(object.userData, gltfDef.extras)+ } else {+ console.warn('THREE.GLTFLoader: Ignoring primitive type .extras, ' + gltfDef.extras)+ }+ }+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets+ *+ * @param {THREE.BufferGeometry} geometry+ * @param {Array<GLTF.Target>} targets+ * @param {GLTFParser} parser+ * @return {Promise<THREE.BufferGeometry>}+ */+ function addMorphTargets(geometry, targets, parser) {+ var hasMorphPosition = false+ var hasMorphNormal = false++ for (var i = 0, il = targets.length; i < il; i++) {+ var target = targets[i]++ if (target.POSITION !== undefined) hasMorphPosition = true+ if (target.NORMAL !== undefined) hasMorphNormal = true++ if (hasMorphPosition && hasMorphNormal) break+ }++ if (!hasMorphPosition && !hasMorphNormal) return Promise.resolve(geometry)++ var pendingPositionAccessors = []+ var pendingNormalAccessors = []++ for (var i = 0, il = targets.length; i < il; i++) {+ var target = targets[i]++ if (hasMorphPosition) {+ var pendingAccessor =+ target.POSITION !== undefined+ ? parser.getDependency('accessor', target.POSITION)+ : geometry.attributes.position++ pendingPositionAccessors.push(pendingAccessor)+ }++ if (hasMorphNormal) {+ var pendingAccessor =+ target.NORMAL !== undefined ? parser.getDependency('accessor', target.NORMAL) : geometry.attributes.normal++ pendingNormalAccessors.push(pendingAccessor)+ }+ }++ return Promise.all([Promise.all(pendingPositionAccessors), Promise.all(pendingNormalAccessors)]).then(function (+ accessors+ ) {+ var morphPositions = accessors[0]+ var morphNormals = accessors[1]++ if (hasMorphPosition) geometry.morphAttributes.position = morphPositions+ if (hasMorphNormal) geometry.morphAttributes.normal = morphNormals+ geometry.morphTargetsRelative = true++ return geometry+ })+ }++ /**+ * @param {THREE.Mesh} mesh+ * @param {GLTF.Mesh} meshDef+ */+ function updateMorphTargets(mesh, meshDef) {+ mesh.updateMorphTargets()++ if (meshDef.weights !== undefined) {+ for (var i = 0, il = meshDef.weights.length; i < il; i++) {+ mesh.morphTargetInfluences[i] = meshDef.weights[i]+ }+ }++ // .extras has user-defined data, so check that .extras.targetNames is an array.+ if (meshDef.extras && Array.isArray(meshDef.extras.targetNames)) {+ var targetNames = meshDef.extras.targetNames++ if (mesh.morphTargetInfluences.length === targetNames.length) {+ mesh.morphTargetDictionary = {}++ for (var i = 0, il = targetNames.length; i < il; i++) {+ mesh.morphTargetDictionary[targetNames[i]] = i+ }+ } else {+ console.warn('THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.')+ }+ }+ }++ function createPrimitiveKey(primitiveDef) {+ var dracoExtension = primitiveDef.extensions && primitiveDef.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]+ var geometryKey++ if (dracoExtension) {+ geometryKey =+ 'draco:' ++ dracoExtension.bufferView ++ ':' ++ dracoExtension.indices ++ ':' ++ createAttributesKey(dracoExtension.attributes)+ } else {+ geometryKey = primitiveDef.indices + ':' + createAttributesKey(primitiveDef.attributes) + ':' + primitiveDef.mode+ }++ return geometryKey+ }++ function createAttributesKey(attributes) {+ var attributesKey = ''++ var keys = Object.keys(attributes).sort()++ for (var i = 0, il = keys.length; i < il; i++) {+ attributesKey += keys[i] + ':' + attributes[keys[i]] + ';'+ }++ return attributesKey+ }++ /* GLTF PARSER */++ function GLTFParser(json, options) {+ this.json = json || {}+ this.extensions = {}+ this.plugins = {}+ this.options = options || {}++ // loader object cache+ this.cache = new GLTFRegistry()++ // associations between Three.js objects and glTF elements+ this.associations = new Map()++ // BufferGeometry caching+ this.primitiveCache = {}++ // Object3D instance caches+ this.meshCache = { refs: {}, uses: {} }+ this.cameraCache = { refs: {}, uses: {} }+ this.lightCache = { refs: {}, uses: {} }++ // Track node names, to ensure no duplicates+ this.nodeNamesUsed = {}++ // Use an ImageBitmapLoader if imageBitmaps are supported. Moves much of the+ // expensive work of uploading a texture to the GPU off the main thread.+ if (typeof createImageBitmap !== 'undefined' && /Firefox/.test(navigator.userAgent) === false) {+ this.textureLoader = new THREE.ImageBitmapLoader(this.options.manager)+ } else {+ this.textureLoader = new THREE.TextureLoader(this.options.manager)+ }++ this.textureLoader.setCrossOrigin(this.options.crossOrigin)++ this.fileLoader = new THREE.FileLoader(this.options.manager)+ this.fileLoader.setResponseType('arraybuffer')++ if (this.options.crossOrigin === 'use-credentials') {+ this.fileLoader.setWithCredentials(true)+ }+ }++ GLTFParser.prototype.setExtensions = function (extensions) {+ this.extensions = extensions+ }++ GLTFParser.prototype.setPlugins = function (plugins) {+ this.plugins = plugins+ }++ GLTFParser.prototype.parse = function (onLoad, onError) {+ var parser = this+ var json = this.json+ var extensions = this.extensions++ // Clear the loader cache+ this.cache.removeAll()++ // Mark the special nodes/meshes in json for efficient parse+ this._invokeAll(function (ext) {+ return ext._markDefs && ext._markDefs()+ })++ Promise.all([this.getDependencies('scene'), this.getDependencies('animation'), this.getDependencies('camera')])+ .then(function (dependencies) {+ var result = {+ scene: dependencies[0][json.scene || 0],+ scenes: dependencies[0],+ animations: dependencies[1],+ cameras: dependencies[2],+ asset: json.asset,+ parser: parser,+ userData: {},+ }++ addUnknownExtensionsToUserData(extensions, result, json)++ assignExtrasToUserData(result, json)++ onLoad(result)+ })+ .catch(onError)+ }++ /**+ * Marks the special nodes/meshes in json for efficient parse.+ */+ GLTFParser.prototype._markDefs = function () {+ var nodeDefs = this.json.nodes || []+ var skinDefs = this.json.skins || []+ var meshDefs = this.json.meshes || []++ // Nothing in the node definition indicates whether it is a Bone or an+ // Object3D. Use the skins' joint references to mark bones.+ for (var skinIndex = 0, skinLength = skinDefs.length; skinIndex < skinLength; skinIndex++) {+ var joints = skinDefs[skinIndex].joints++ for (var i = 0, il = joints.length; i < il; i++) {+ nodeDefs[joints[i]].isBone = true+ }+ }++ // Iterate over all nodes, marking references to shared resources,+ // as well as skeleton joints.+ for (var nodeIndex = 0, nodeLength = nodeDefs.length; nodeIndex < nodeLength; nodeIndex++) {+ var nodeDef = nodeDefs[nodeIndex]++ if (nodeDef.mesh !== undefined) {+ this._addNodeRef(this.meshCache, nodeDef.mesh)++ // Nothing in the mesh definition indicates whether it is+ // a SkinnedMesh or Mesh. Use the node's mesh reference+ // to mark SkinnedMesh if node has skin.+ if (nodeDef.skin !== undefined) {+ meshDefs[nodeDef.mesh].isSkinnedMesh = true+ }+ }++ if (nodeDef.camera !== undefined) {+ this._addNodeRef(this.cameraCache, nodeDef.camera)+ }+ }+ }++ /**+ * Counts references to shared node / Object3D resources. These resources+ * can be reused, or "instantiated", at multiple nodes in the scene+ * hierarchy. Mesh, Camera, and Light instances are instantiated and must+ * be marked. Non-scenegraph resources (like Materials, Geometries, and+ * Textures) can be reused directly and are not marked here.+ *+ * Example: CesiumMilkTruck sample model reuses "Wheel" meshes.+ */+ GLTFParser.prototype._addNodeRef = function (cache, index) {+ if (index === undefined) return++ if (cache.refs[index] === undefined) {+ cache.refs[index] = cache.uses[index] = 0+ }++ cache.refs[index]+++ }++ /** Returns a reference to a shared resource, cloning it if necessary. */+ GLTFParser.prototype._getNodeRef = function (cache, index, object) {+ if (cache.refs[index] <= 1) return object++ var ref = object.clone()++ ref.name += '_instance_' + cache.uses[index]++++ return ref+ }++ GLTFParser.prototype._invokeOne = function (func) {+ var extensions = Object.values(this.plugins)+ extensions.push(this)++ for (var i = 0; i < extensions.length; i++) {+ var result = func(extensions[i])++ if (result) return result+ }+ }++ GLTFParser.prototype._invokeAll = function (func) {+ var extensions = Object.values(this.plugins)+ extensions.unshift(this)++ var pending = []++ for (var i = 0; i < extensions.length; i++) {+ var result = func(extensions[i])++ if (result) pending.push(result)+ }++ return pending+ }++ /**+ * Requests the specified dependency asynchronously, with caching.+ * @param {string} type+ * @param {number} index+ * @return {Promise<THREE.Object3D|THREE.Material|THREE.Texture|THREE.AnimationClip|ArrayBuffer|Object>}+ */+ GLTFParser.prototype.getDependency = function (type, index) {+ var cacheKey = type + ':' + index+ var dependency = this.cache.get(cacheKey)++ if (!dependency) {+ switch (type) {+ case 'scene':+ dependency = this.loadScene(index)+ break++ case 'node':+ dependency = this.loadNode(index)+ break++ case 'mesh':+ dependency = this._invokeOne(function (ext) {+ return ext.loadMesh && ext.loadMesh(index)+ })+ break++ case 'accessor':+ dependency = this.loadAccessor(index)+ break++ case 'bufferView':+ dependency = Promise.resolve(new Float32Array(0))+ break++ case 'buffer':+ dependency = Promise.resolve(new Float32Array(0))+ break++ case 'material':+ dependency = this._invokeOne(function (ext) {+ return ext.loadMaterial && ext.loadMaterial(index)+ })+ break++ case 'skin':+ dependency = this.loadSkin(index)+ break++ case 'animation':+ dependency = this.loadAnimation(index)+ break++ case 'camera':+ dependency = this.loadCamera(index)+ break++ default:+ throw new Error('Unknown type: ' + type)+ }++ this.cache.add(cacheKey, dependency)+ }++ return dependency+ }++ /**+ * Requests all dependencies of the specified type asynchronously, with caching.+ * @param {string} type+ * @return {Promise<Array<Object>>}+ */+ GLTFParser.prototype.getDependencies = function (type) {+ var dependencies = this.cache.get(type)++ if (!dependencies) {+ var parser = this+ var defs = this.json[type + (type === 'mesh' ? 'es' : 's')] || []++ dependencies = Promise.all(+ defs.map(function (def, index) {+ return parser.getDependency(type, index)+ })+ )++ this.cache.add(type, dependencies)+ }++ return dependencies+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views+ * @param {number} bufferIndex+ * @return {Promise<ArrayBuffer>}+ */+ GLTFParser.prototype.loadBuffer = function (bufferIndex) {+ var bufferDef = this.json.buffers[bufferIndex]+ var loader = this.fileLoader++ if (bufferDef.type && bufferDef.type !== 'arraybuffer') {+ throw new Error('THREE.GLTFLoader: ' + bufferDef.type + ' buffer type is not supported.')+ }++ // If present, GLB container is required to be the first buffer.+ if (bufferDef.uri === undefined && bufferIndex === 0) {+ return Promise.resolve(this.extensions[EXTENSIONS.KHR_BINARY_GLTF].body)+ }++ var options = this.options++ return new Promise(function (resolve, reject) {+ loader.load(resolveURL(bufferDef.uri, options.path), resolve, undefined, function () {+ reject(new Error('THREE.GLTFLoader: Failed to load buffer "' + bufferDef.uri + '".'))+ })+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views+ * @param {number} bufferViewIndex+ * @return {Promise<ArrayBuffer>}+ */+ GLTFParser.prototype.loadBufferView = function (bufferViewIndex) {+ var bufferViewDef = this.json.bufferViews[bufferViewIndex]++ return this.getDependency('buffer', bufferViewDef.buffer).then(function (buffer) {+ var byteLength = bufferViewDef.byteLength || 0+ var byteOffset = bufferViewDef.byteOffset || 0+ return buffer.slice(byteOffset, byteOffset + byteLength)+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#accessors+ * @param {number} accessorIndex+ * @return {Promise<THREE.BufferAttribute|THREE.InterleavedBufferAttribute>}+ */+ GLTFParser.prototype.loadAccessor = function (accessorIndex) {+ var parser = this+ var json = this.json++ var accessorDef = this.json.accessors[accessorIndex]++ if (accessorDef.bufferView === undefined && accessorDef.sparse === undefined) {+ // Ignore empty accessors, which may be used to declare runtime+ // information about attributes coming from another source (e.g. Draco+ // compression extension).+ return Promise.resolve(null)+ }++ var pendingBufferViews = []++ if (accessorDef.bufferView !== undefined) {+ pendingBufferViews.push(this.getDependency('bufferView', accessorDef.bufferView))+ } else {+ pendingBufferViews.push(null)+ }++ if (accessorDef.sparse !== undefined) {+ pendingBufferViews.push(this.getDependency('bufferView', accessorDef.sparse.indices.bufferView))+ pendingBufferViews.push(this.getDependency('bufferView', accessorDef.sparse.values.bufferView))+ }++ return Promise.all(pendingBufferViews).then(function (bufferViews) {+ var bufferView = bufferViews[0]++ var itemSize = WEBGL_TYPE_SIZES[accessorDef.type]+ var TypedArray = WEBGL_COMPONENT_TYPES[accessorDef.componentType]++ // For VEC3: itemSize is 3, elementBytes is 4, itemBytes is 12.+ var elementBytes = TypedArray.BYTES_PER_ELEMENT+ var itemBytes = elementBytes * itemSize+ var byteOffset = accessorDef.byteOffset || 0+ var byteStride =+ accessorDef.bufferView !== undefined ? json.bufferViews[accessorDef.bufferView].byteStride : undefined+ var normalized = accessorDef.normalized === true+ var array, bufferAttribute++ // The buffer is not interleaved if the stride is the item size in bytes.+ if (byteStride && byteStride !== itemBytes) {+ // Each "slice" of the buffer, as defined by 'count' elements of 'byteStride' bytes, gets its own InterleavedBuffer+ // This makes sure that IBA.count reflects accessor.count properly+ var ibSlice = Math.floor(byteOffset / byteStride)+ var ibCacheKey =+ 'InterleavedBuffer:' ++ accessorDef.bufferView ++ ':' ++ accessorDef.componentType ++ ':' ++ ibSlice ++ ':' ++ accessorDef.count+ var ib = parser.cache.get(ibCacheKey)++ if (!ib) {+ array = new TypedArray(bufferView, ibSlice * byteStride, (accessorDef.count * byteStride) / elementBytes)++ // Integer parameters to IB/IBA are in array elements, not bytes.+ ib = new THREE.InterleavedBuffer(array, byteStride / elementBytes)++ parser.cache.add(ibCacheKey, ib)+ }++ bufferAttribute = new THREE.InterleavedBufferAttribute(+ ib,+ itemSize,+ (byteOffset % byteStride) / elementBytes,+ normalized+ )+ } else {+ if (bufferView === null) {+ array = new TypedArray(accessorDef.count * itemSize)+ } else {+ array = new TypedArray(bufferView, byteOffset, accessorDef.count * itemSize)+ }++ bufferAttribute = new THREE.BufferAttribute(array, itemSize, normalized)+ }++ // https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#sparse-accessors+ if (accessorDef.sparse !== undefined) {+ var itemSizeIndices = WEBGL_TYPE_SIZES.SCALAR+ var TypedArrayIndices = WEBGL_COMPONENT_TYPES[accessorDef.sparse.indices.componentType]++ var byteOffsetIndices = accessorDef.sparse.indices.byteOffset || 0+ var byteOffsetValues = accessorDef.sparse.values.byteOffset || 0++ var sparseIndices = new TypedArrayIndices(+ bufferViews[1],+ byteOffsetIndices,+ accessorDef.sparse.count * itemSizeIndices+ )+ var sparseValues = new TypedArray(bufferViews[2], byteOffsetValues, accessorDef.sparse.count * itemSize)++ if (bufferView !== null) {+ // Avoid modifying the original ArrayBuffer, if the bufferView wasn't initialized with zeroes.+ bufferAttribute = new THREE.BufferAttribute(+ bufferAttribute.array.slice(),+ bufferAttribute.itemSize,+ bufferAttribute.normalized+ )+ }++ for (var i = 0, il = sparseIndices.length; i < il; i++) {+ var index = sparseIndices[i]++ bufferAttribute.setX(index, sparseValues[i * itemSize])+ if (itemSize >= 2) bufferAttribute.setY(index, sparseValues[i * itemSize + 1])+ if (itemSize >= 3) bufferAttribute.setZ(index, sparseValues[i * itemSize + 2])+ if (itemSize >= 4) bufferAttribute.setW(index, sparseValues[i * itemSize + 3])+ if (itemSize >= 5) throw new Error('THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.')+ }+ }++ return bufferAttribute+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#textures+ * @param {number} textureIndex+ * @return {Promise<THREE.Texture>}+ */+ GLTFParser.prototype.loadTexture = function (textureIndex) {+ return Promise.resolve(new THREE.Texture())+ }++ /**+ * Assigns final material to a Mesh, Line, or Points instance. The instance+ * already has a material (generated from the glTF material options alone)+ * but reuse of the same glTF material may require multiple threejs materials+ * to accomodate different primitive types, defines, etc. New materials will+ * be created if necessary, and reused from a cache.+ * @param {THREE.Object3D} mesh Mesh, Line, or Points instance.+ */+ GLTFParser.prototype.assignFinalMaterial = function (mesh) {+ var geometry = mesh.geometry+ var material = mesh.material++ var useVertexTangents = geometry.attributes.tangent !== undefined+ var useVertexColors = geometry.attributes.color !== undefined+ var useFlatShading = geometry.attributes.normal === undefined+ var useSkinning = mesh.isSkinnedMesh === true+ var useMorphTargets = Object.keys(geometry.morphAttributes).length > 0+ var useMorphNormals = useMorphTargets && geometry.morphAttributes.normal !== undefined++ if (mesh.isPoints) {+ var cacheKey = 'PointsMaterial:' + material.uuid++ var pointsMaterial = this.cache.get(cacheKey)++ if (!pointsMaterial) {+ pointsMaterial = new THREE.PointsMaterial()+ THREE.Material.prototype.copy.call(pointsMaterial, material)+ pointsMaterial.color.copy(material.color)+ pointsMaterial.map = material.map+ pointsMaterial.sizeAttenuation = false // glTF spec says points should be 1px++ this.cache.add(cacheKey, pointsMaterial)+ }++ material = pointsMaterial+ } else if (mesh.isLine) {+ var cacheKey = 'LineBasicMaterial:' + material.uuid++ var lineMaterial = this.cache.get(cacheKey)++ if (!lineMaterial) {+ lineMaterial = new THREE.LineBasicMaterial()+ THREE.Material.prototype.copy.call(lineMaterial, material)+ lineMaterial.color.copy(material.color)++ this.cache.add(cacheKey, lineMaterial)+ }++ material = lineMaterial+ }++ // Clone the material if it will be modified+ if (useVertexTangents || useVertexColors || useFlatShading || useSkinning || useMorphTargets) {+ var cacheKey = 'ClonedMaterial:' + material.uuid + ':'++ if (material.isGLTFSpecularGlossinessMaterial) cacheKey += 'specular-glossiness:'+ if (useSkinning) cacheKey += 'skinning:'+ if (useVertexTangents) cacheKey += 'vertex-tangents:'+ if (useVertexColors) cacheKey += 'vertex-colors:'+ if (useFlatShading) cacheKey += 'flat-shading:'+ if (useMorphTargets) cacheKey += 'morph-targets:'+ if (useMorphNormals) cacheKey += 'morph-normals:'++ var cachedMaterial = this.cache.get(cacheKey)++ if (!cachedMaterial) {+ cachedMaterial = material.clone()++ if (useSkinning) cachedMaterial.skinning = true+ if (useVertexTangents) cachedMaterial.vertexTangents = true+ if (useVertexColors) cachedMaterial.vertexColors = true+ if (useFlatShading) cachedMaterial.flatShading = true+ if (useMorphTargets) cachedMaterial.morphTargets = true+ if (useMorphNormals) cachedMaterial.morphNormals = true++ this.cache.add(cacheKey, cachedMaterial)++ this.associations.set(cachedMaterial, this.associations.get(material))+ }++ material = cachedMaterial+ }++ // workarounds for mesh and geometry++ if (material.aoMap && geometry.attributes.uv2 === undefined && geometry.attributes.uv !== undefined) {+ geometry.setAttribute('uv2', geometry.attributes.uv)+ }++ // https://github.com/mrdoob/three.js/issues/11438#issuecomment-507003995+ if (material.normalScale && !useVertexTangents) {+ material.normalScale.y = -material.normalScale.y+ }++ if (material.clearcoatNormalScale && !useVertexTangents) {+ material.clearcoatNormalScale.y = -material.clearcoatNormalScale.y+ }++ mesh.material = material+ }++ GLTFParser.prototype.getMaterialType = function (/* materialIndex */) {+ return THREE.MeshStandardMaterial+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials+ * @param {number} materialIndex+ * @return {Promise<THREE.Material>}+ */+ GLTFParser.prototype.loadMaterial = function (materialIndex) {+ var parser = this+ var json = this.json+ var extensions = this.extensions+ var materialDef = json.materials[materialIndex]++ var materialType+ var materialParams = {}+ var materialExtensions = materialDef.extensions || {}++ var pending = []++ if (materialExtensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]) {+ var sgExtension = extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]+ materialType = sgExtension.getMaterialType()+ pending.push(sgExtension.extendParams(materialParams, materialDef, parser))+ } else if (materialExtensions[EXTENSIONS.KHR_MATERIALS_UNLIT]) {+ var kmuExtension = extensions[EXTENSIONS.KHR_MATERIALS_UNLIT]+ materialType = kmuExtension.getMaterialType()+ pending.push(kmuExtension.extendParams(materialParams, materialDef, parser))+ } else {+ // Specification:+ // https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#metallic-roughness-material++ var metallicRoughness = materialDef.pbrMetallicRoughness || {}++ materialParams.color = new THREE.Color(1.0, 1.0, 1.0)+ materialParams.opacity = 1.0++ if (Array.isArray(metallicRoughness.baseColorFactor)) {+ var array = metallicRoughness.baseColorFactor++ materialParams.color.fromArray(array)+ materialParams.opacity = array[3]+ }++ materialParams.metalness = metallicRoughness.metallicFactor !== undefined ? metallicRoughness.metallicFactor : 1.0+ materialParams.roughness =+ metallicRoughness.roughnessFactor !== undefined ? metallicRoughness.roughnessFactor : 1.0++ materialType = this._invokeOne(function (ext) {+ return ext.getMaterialType && ext.getMaterialType(materialIndex)+ })++ pending.push(+ Promise.all(+ this._invokeAll(function (ext) {+ return ext.extendMaterialParams && ext.extendMaterialParams(materialIndex, materialParams)+ })+ )+ )+ }++ if (materialDef.doubleSided === true) {+ materialParams.side = THREE.DoubleSide+ }++ var alphaMode = materialDef.alphaMode || ALPHA_MODES.OPAQUE++ if (alphaMode === ALPHA_MODES.BLEND) {+ materialParams.transparent = true++ // See: https://github.com/mrdoob/three.js/issues/17706+ materialParams.depthWrite = false+ } else {+ materialParams.transparent = false++ if (alphaMode === ALPHA_MODES.MASK) {+ materialParams.alphaTest = materialDef.alphaCutoff !== undefined ? materialDef.alphaCutoff : 0.5+ }+ }++ if (materialDef.normalTexture !== undefined && materialType !== THREE.MeshBasicMaterial) {+ materialParams.normalScale = new THREE.Vector2(1, 1)++ if (materialDef.normalTexture.scale !== undefined) {+ materialParams.normalScale.set(materialDef.normalTexture.scale, materialDef.normalTexture.scale)+ }+ }++ if (materialDef.occlusionTexture !== undefined && materialType !== THREE.MeshBasicMaterial) {+ if (materialDef.occlusionTexture.strength !== undefined) {+ materialParams.aoMapIntensity = materialDef.occlusionTexture.strength+ }+ }++ if (materialDef.emissiveFactor !== undefined && materialType !== THREE.MeshBasicMaterial) {+ materialParams.emissive = new THREE.Color().fromArray(materialDef.emissiveFactor)+ }++ return Promise.all(pending).then(function () {+ var material++ if (materialType === GLTFMeshStandardSGMaterial) {+ material = extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(materialParams)+ } else {+ material = new materialType(materialParams)+ }++ if (materialDef.name) material.name = materialDef.name++ // baseColorTexture, emissiveTexture, and specularGlossinessTexture use sRGB encoding.+ if (material.map) material.map.encoding = THREE.sRGBEncoding+ if (material.emissiveMap) material.emissiveMap.encoding = THREE.sRGBEncoding++ assignExtrasToUserData(material, materialDef)++ parser.associations.set(material, { type: 'materials', index: materialIndex })++ if (materialDef.extensions) addUnknownExtensionsToUserData(extensions, material, materialDef)++ return material+ })+ }++ /** When Object3D instances are targeted by animation, they need unique names. */+ GLTFParser.prototype.createUniqueName = function (originalName) {+ var sanitizedName = THREE.PropertyBinding.sanitizeNodeName(originalName || '')++ var name = sanitizedName++ for (var i = 1; this.nodeNamesUsed[name]; ++i) {+ name = sanitizedName + '_' + i+ }++ this.nodeNamesUsed[name] = true++ return name+ }++ /**+ * @param {THREE.BufferGeometry} geometry+ * @param {GLTF.Primitive} primitiveDef+ * @param {GLTFParser} parser+ */+ function computeBounds(geometry, primitiveDef, parser) {+ var attributes = primitiveDef.attributes++ var box = new THREE.Box3()++ if (attributes.POSITION !== undefined) {+ var accessor = parser.json.accessors[attributes.POSITION]++ var min = accessor.min+ var max = accessor.max++ // glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.++ if (min !== undefined && max !== undefined) {+ box.set(new THREE.Vector3(min[0], min[1], min[2]), new THREE.Vector3(max[0], max[1], max[2]))+ } else {+ console.warn('THREE.GLTFLoader: Missing min/max properties for accessor POSITION.')++ return+ }+ } else {+ return+ }++ var targets = primitiveDef.targets++ if (targets !== undefined) {+ var maxDisplacement = new THREE.Vector3()+ var vector = new THREE.Vector3()++ for (var i = 0, il = targets.length; i < il; i++) {+ var target = targets[i]++ if (target.POSITION !== undefined) {+ var accessor = parser.json.accessors[target.POSITION]+ var min = accessor.min+ var max = accessor.max++ // glTF requires 'min' and 'max', but VRM (which extends glTF) currently ignores that requirement.++ if (min !== undefined && max !== undefined) {+ // we need to get max of absolute components because target weight is [-1,1]+ vector.setX(Math.max(Math.abs(min[0]), Math.abs(max[0])))+ vector.setY(Math.max(Math.abs(min[1]), Math.abs(max[1])))+ vector.setZ(Math.max(Math.abs(min[2]), Math.abs(max[2])))++ // Note: this assumes that the sum of all weights is at most 1. This isn't quite correct - it's more conservative+ // to assume that each target can have a max weight of 1. However, for some use cases - notably, when morph targets+ // are used to implement key-frame animations and as such only two are active at a time - this results in very large+ // boxes. So for now we make a box that's sometimes a touch too small but is hopefully mostly of reasonable size.+ maxDisplacement.max(vector)+ } else {+ console.warn('THREE.GLTFLoader: Missing min/max properties for accessor POSITION.')+ }+ }+ }++ // As per comment above this box isn't conservative, but has a reasonable size for a very large number of morph targets.+ box.expandByVector(maxDisplacement)+ }++ geometry.boundingBox = box++ var sphere = new THREE.Sphere()++ box.getCenter(sphere.center)+ sphere.radius = box.min.distanceTo(box.max) / 2++ geometry.boundingSphere = sphere+ }++ /**+ * @param {THREE.BufferGeometry} geometry+ * @param {GLTF.Primitive} primitiveDef+ * @param {GLTFParser} parser+ * @return {Promise<THREE.BufferGeometry>}+ */+ function addPrimitiveAttributes(geometry, primitiveDef, parser) {+ var attributes = primitiveDef.attributes++ var pending = []++ function assignAttributeAccessor(accessorIndex, attributeName) {+ return parser.getDependency('accessor', accessorIndex).then(function (accessor) {+ geometry.setAttribute(attributeName, accessor)+ })+ }++ for (var gltfAttributeName in attributes) {+ var threeAttributeName = ATTRIBUTES[gltfAttributeName] || gltfAttributeName.toLowerCase()++ // Skip attributes already provided by e.g. Draco extension.+ if (threeAttributeName in geometry.attributes) continue++ pending.push(assignAttributeAccessor(attributes[gltfAttributeName], threeAttributeName))+ }++ if (primitiveDef.indices !== undefined && !geometry.index) {+ var accessor = parser.getDependency('accessor', primitiveDef.indices).then(function (accessor) {+ geometry.setIndex(accessor)+ })++ pending.push(accessor)+ }++ assignExtrasToUserData(geometry, primitiveDef)++ computeBounds(geometry, primitiveDef, parser)++ return Promise.all(pending).then(function () {+ return primitiveDef.targets !== undefined ? addMorphTargets(geometry, primitiveDef.targets, parser) : geometry+ })+ }++ /**+ * @param {THREE.BufferGeometry} geometry+ * @param {Number} drawMode+ * @return {THREE.BufferGeometry}+ */+ function toTrianglesDrawMode(geometry, drawMode) {+ var index = geometry.getIndex()++ // generate index if not present++ if (index === null) {+ var indices = []++ var position = geometry.getAttribute('position')++ if (position !== undefined) {+ for (var i = 0; i < position.count; i++) {+ indices.push(i)+ }++ geometry.setIndex(indices)+ index = geometry.getIndex()+ } else {+ console.error('THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.')+ return geometry+ }+ }++ //++ var numberOfTriangles = index.count - 2+ var newIndices = []++ if (drawMode === THREE.TriangleFanDrawMode) {+ // gl.TRIANGLE_FAN++ for (var i = 1; i <= numberOfTriangles; i++) {+ newIndices.push(index.getX(0))+ newIndices.push(index.getX(i))+ newIndices.push(index.getX(i + 1))+ }+ } else {+ // gl.TRIANGLE_STRIP++ for (var i = 0; i < numberOfTriangles; i++) {+ if (i % 2 === 0) {+ newIndices.push(index.getX(i))+ newIndices.push(index.getX(i + 1))+ newIndices.push(index.getX(i + 2))+ } else {+ newIndices.push(index.getX(i + 2))+ newIndices.push(index.getX(i + 1))+ newIndices.push(index.getX(i))+ }+ }+ }++ if (newIndices.length / 3 !== numberOfTriangles) {+ console.error('THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.')+ }++ // build final geometry++ var newGeometry = geometry.clone()+ newGeometry.setIndex(newIndices)++ return newGeometry+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#geometry+ *+ * Creates BufferGeometries from primitives.+ *+ * @param {Array<GLTF.Primitive>} primitives+ * @return {Promise<Array<THREE.BufferGeometry>>}+ */+ GLTFParser.prototype.loadGeometries = function (primitives) {+ var parser = this+ var extensions = this.extensions+ var cache = this.primitiveCache++ function createDracoPrimitive(primitive) {+ return extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]+ .decodePrimitive(primitive, parser)+ .then(function (geometry) {+ return addPrimitiveAttributes(geometry, primitive, parser)+ })+ }++ var pending = []++ for (var i = 0, il = primitives.length; i < il; i++) {+ var primitive = primitives[i]+ var cacheKey = createPrimitiveKey(primitive)++ // See if we've already created this geometry+ var cached = cache[cacheKey]++ if (cached) {+ // Use the cached geometry if it exists+ pending.push(cached.promise)+ } else {+ var geometryPromise++ if (primitive.extensions && primitive.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]) {+ // Use DRACO geometry if available+ geometryPromise = createDracoPrimitive(primitive)+ } else {+ // Otherwise create a new geometry+ geometryPromise = addPrimitiveAttributes(new THREE.BufferGeometry(), primitive, parser)+ }++ // Cache this geometry+ cache[cacheKey] = { primitive: primitive, promise: geometryPromise }++ pending.push(geometryPromise)+ }+ }++ return Promise.all(pending)+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes+ * @param {number} meshIndex+ * @return {Promise<THREE.Group|THREE.Mesh|THREE.SkinnedMesh>}+ */+ GLTFParser.prototype.loadMesh = function (meshIndex) {+ var parser = this+ var json = this.json+ var extensions = this.extensions++ var meshDef = json.meshes[meshIndex]+ var primitives = meshDef.primitives++ var pending = []++ for (var i = 0, il = primitives.length; i < il; i++) {+ var material =+ primitives[i].material === undefined+ ? createDefaultMaterial(this.cache)+ : this.getDependency('material', primitives[i].material)++ pending.push(material)+ }++ pending.push(parser.loadGeometries(primitives))++ return Promise.all(pending).then(function (results) {+ var materials = results.slice(0, results.length - 1)+ var geometries = results[results.length - 1]++ var meshes = []++ for (var i = 0, il = geometries.length; i < il; i++) {+ var geometry = geometries[i]+ var primitive = primitives[i]++ // 1. create Mesh++ var mesh++ var material = materials[i]++ if (+ primitive.mode === WEBGL_CONSTANTS.TRIANGLES ||+ primitive.mode === WEBGL_CONSTANTS.TRIANGLE_STRIP ||+ primitive.mode === WEBGL_CONSTANTS.TRIANGLE_FAN ||+ primitive.mode === undefined+ ) {+ // .isSkinnedMesh isn't in glTF spec. See ._markDefs()+ mesh =+ meshDef.isSkinnedMesh === true+ ? new THREE.SkinnedMesh(geometry, material)+ : new THREE.Mesh(geometry, material)++ if (primitive.mode === WEBGL_CONSTANTS.TRIANGLE_STRIP) {+ mesh.geometry = toTrianglesDrawMode(mesh.geometry, THREE.TriangleStripDrawMode)+ } else if (primitive.mode === WEBGL_CONSTANTS.TRIANGLE_FAN) {+ mesh.geometry = toTrianglesDrawMode(mesh.geometry, THREE.TriangleFanDrawMode)+ }+ } else if (primitive.mode === WEBGL_CONSTANTS.LINES) {+ mesh = new THREE.LineSegments(geometry, material)+ } else if (primitive.mode === WEBGL_CONSTANTS.LINE_STRIP) {+ mesh = new THREE.Line(geometry, material)+ } else if (primitive.mode === WEBGL_CONSTANTS.LINE_LOOP) {+ mesh = new THREE.LineLoop(geometry, material)+ } else if (primitive.mode === WEBGL_CONSTANTS.POINTS) {+ mesh = new THREE.Points(geometry, material)+ } else {+ throw new Error('THREE.GLTFLoader: Primitive mode unsupported: ' + primitive.mode)+ }++ if (Object.keys(mesh.geometry.morphAttributes).length > 0) {+ updateMorphTargets(mesh, meshDef)+ }++ mesh.name = parser.createUniqueName(meshDef.name || 'mesh_' + meshIndex)++ assignExtrasToUserData(mesh, meshDef)+ if (primitive.extensions) addUnknownExtensionsToUserData(extensions, mesh, primitive)++ parser.assignFinalMaterial(mesh)++ meshes.push(mesh)+ }++ if (meshes.length === 1) {+ return meshes[0]+ }++ var group = new THREE.Group()++ for (var i = 0, il = meshes.length; i < il; i++) {+ group.add(meshes[i])+ }++ return group+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#cameras+ * @param {number} cameraIndex+ * @return {Promise<THREE.Camera>}+ */+ GLTFParser.prototype.loadCamera = function (cameraIndex) {+ var camera+ var cameraDef = this.json.cameras[cameraIndex]+ var params = cameraDef[cameraDef.type]++ if (!params) {+ console.warn('THREE.GLTFLoader: Missing camera parameters.')+ return+ }++ if (cameraDef.type === 'perspective') {+ camera = new THREE.PerspectiveCamera(+ THREE.MathUtils.radToDeg(params.yfov),+ params.aspectRatio || 1,+ params.znear || 1,+ params.zfar || 2e6+ )+ } else if (cameraDef.type === 'orthographic') {+ camera = new THREE.OrthographicCamera(+ -params.xmag,+ params.xmag,+ params.ymag,+ -params.ymag,+ params.znear,+ params.zfar+ )+ }++ if (cameraDef.name) camera.name = this.createUniqueName(cameraDef.name)++ assignExtrasToUserData(camera, cameraDef)++ return Promise.resolve(camera)+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins+ * @param {number} skinIndex+ * @return {Promise<Object>}+ */+ GLTFParser.prototype.loadSkin = function (skinIndex) {+ var skinDef = this.json.skins[skinIndex]++ var skinEntry = { joints: skinDef.joints }++ if (skinDef.inverseBindMatrices === undefined) {+ return Promise.resolve(skinEntry)+ }++ return this.getDependency('accessor', skinDef.inverseBindMatrices).then(function (accessor) {+ skinEntry.inverseBindMatrices = accessor++ return skinEntry+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations+ * @param {number} animationIndex+ * @return {Promise<THREE.AnimationClip>}+ */+ GLTFParser.prototype.loadAnimation = function (animationIndex) {+ var json = this.json++ var animationDef = json.animations[animationIndex]++ var pendingNodes = []+ var pendingInputAccessors = []+ var pendingOutputAccessors = []+ var pendingSamplers = []+ var pendingTargets = []++ for (var i = 0, il = animationDef.channels.length; i < il; i++) {+ var channel = animationDef.channels[i]+ var sampler = animationDef.samplers[channel.sampler]+ var target = channel.target+ var name = target.node !== undefined ? target.node : target.id // NOTE: target.id is deprecated.+ var input = animationDef.parameters !== undefined ? animationDef.parameters[sampler.input] : sampler.input+ var output = animationDef.parameters !== undefined ? animationDef.parameters[sampler.output] : sampler.output++ pendingNodes.push(this.getDependency('node', name))+ pendingInputAccessors.push(this.getDependency('accessor', input))+ pendingOutputAccessors.push(this.getDependency('accessor', output))+ pendingSamplers.push(sampler)+ pendingTargets.push(target)+ }++ return Promise.all([+ Promise.all(pendingNodes),+ Promise.all(pendingInputAccessors),+ Promise.all(pendingOutputAccessors),+ Promise.all(pendingSamplers),+ Promise.all(pendingTargets),+ ]).then(function (dependencies) {+ var nodes = dependencies[0]+ var inputAccessors = dependencies[1]+ var outputAccessors = dependencies[2]+ var samplers = dependencies[3]+ var targets = dependencies[4]++ var tracks = []++ for (var i = 0, il = nodes.length; i < il; i++) {+ var node = nodes[i]+ var inputAccessor = inputAccessors[i]+ var outputAccessor = outputAccessors[i]+ var sampler = samplers[i]+ var target = targets[i]++ if (node === undefined) continue++ node.updateMatrix()+ node.matrixAutoUpdate = true++ var TypedKeyframeTrack++ switch (PATH_PROPERTIES[target.path]) {+ case PATH_PROPERTIES.weights:+ TypedKeyframeTrack = THREE.NumberKeyframeTrack+ break++ case PATH_PROPERTIES.rotation:+ TypedKeyframeTrack = THREE.QuaternionKeyframeTrack+ break++ case PATH_PROPERTIES.position:+ case PATH_PROPERTIES.scale:+ default:+ TypedKeyframeTrack = THREE.VectorKeyframeTrack+ break+ }++ var targetName = node.name ? node.name : node.uuid++ var interpolation =+ sampler.interpolation !== undefined ? INTERPOLATION[sampler.interpolation] : THREE.InterpolateLinear++ var targetNames = []++ if (PATH_PROPERTIES[target.path] === PATH_PROPERTIES.weights) {+ // Node may be a THREE.Group (glTF mesh with several primitives) or a THREE.Mesh.+ node.traverse(function (object) {+ if (object.isMesh === true && object.morphTargetInfluences) {+ targetNames.push(object.name ? object.name : object.uuid)+ }+ })+ } else {+ targetNames.push(targetName)+ }++ var outputArray = outputAccessor.array++ if (outputAccessor.normalized) {+ var scale++ if (outputArray.constructor === Int8Array) {+ scale = 1 / 127+ } else if (outputArray.constructor === Uint8Array) {+ scale = 1 / 255+ } else if (outputArray.constructor == Int16Array) {+ scale = 1 / 32767+ } else if (outputArray.constructor === Uint16Array) {+ scale = 1 / 65535+ } else {+ throw new Error('THREE.GLTFLoader: Unsupported output accessor component type.')+ }++ var scaled = new Float32Array(outputArray.length)++ for (var j = 0, jl = outputArray.length; j < jl; j++) {+ scaled[j] = outputArray[j] * scale+ }++ outputArray = scaled+ }+ }++ var name = animationDef.name ? animationDef.name : 'animation_' + animationIndex+ var clip = new THREE.AnimationClip(name, undefined, tracks)+ clip.targetNames = targetNames+ return clip+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#nodes-and-hierarchy+ * @param {number} nodeIndex+ * @return {Promise<THREE.Object3D>}+ */+ GLTFParser.prototype.loadNode = function (nodeIndex) {+ var json = this.json+ var extensions = this.extensions+ var parser = this++ var nodeDef = json.nodes[nodeIndex]++ // reserve node's name before its dependencies, so the root has the intended name.+ var nodeName = nodeDef.name ? parser.createUniqueName(nodeDef.name) : ''++ return (function () {+ var pending = []++ if (nodeDef.mesh !== undefined) {+ pending.push(+ parser.getDependency('mesh', nodeDef.mesh).then(function (mesh) {+ var node = parser._getNodeRef(parser.meshCache, nodeDef.mesh, mesh)++ // if weights are provided on the node, override weights on the mesh.+ if (nodeDef.weights !== undefined) {+ node.traverse(function (o) {+ if (!o.isMesh) return++ for (var i = 0, il = nodeDef.weights.length; i < il; i++) {+ o.morphTargetInfluences[i] = nodeDef.weights[i]+ }+ })+ }++ return node+ })+ )+ }++ if (nodeDef.camera !== undefined) {+ pending.push(+ parser.getDependency('camera', nodeDef.camera).then(function (camera) {+ return parser._getNodeRef(parser.cameraCache, nodeDef.camera, camera)+ })+ )+ }++ parser+ ._invokeAll(function (ext) {+ return ext.createNodeAttachment && ext.createNodeAttachment(nodeIndex)+ })+ .forEach(function (promise) {+ pending.push(promise)+ })++ return Promise.all(pending)+ })().then(function (objects) {+ var node++ // .isBone isn't in glTF spec. See ._markDefs+ if (nodeDef.isBone === true) {+ node = new THREE.Bone()+ } else if (objects.length > 1) {+ node = new THREE.Group()+ } else if (objects.length === 1) {+ node = objects[0]+ } else {+ node = new THREE.Object3D()+ }++ if (node !== objects[0]) {+ for (var i = 0, il = objects.length; i < il; i++) {+ node.add(objects[i])+ }+ }++ if (nodeDef.name) {+ node.userData.name = nodeDef.name+ node.name = nodeName+ }++ assignExtrasToUserData(node, nodeDef)++ if (nodeDef.extensions) addUnknownExtensionsToUserData(extensions, node, nodeDef)++ if (nodeDef.matrix !== undefined) {+ var matrix = new THREE.Matrix4()+ matrix.fromArray(nodeDef.matrix)+ node.applyMatrix4(matrix)+ } else {+ if (nodeDef.translation !== undefined) {+ node.position.fromArray(nodeDef.translation)+ }++ if (nodeDef.rotation !== undefined) {+ node.quaternion.fromArray(nodeDef.rotation)+ }++ if (nodeDef.scale !== undefined) {+ node.scale.fromArray(nodeDef.scale)+ }+ }++ parser.associations.set(node, { type: 'nodes', index: nodeIndex })++ return node+ })+ }++ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#scenes+ * @param {number} sceneIndex+ * @return {Promise<THREE.Group>}+ */+ GLTFParser.prototype.loadScene = (function () {+ // scene node hierachy builder++ function buildNodeHierachy(nodeId, parentObject, json, parser) {+ var nodeDef = json.nodes[nodeId]++ return parser+ .getDependency('node', nodeId)+ .then(function (node) {+ if (nodeDef.skin === undefined) return node++ // build skeleton here as well++ var skinEntry++ return parser+ .getDependency('skin', nodeDef.skin)+ .then(function (skin) {+ skinEntry = skin++ var pendingJoints = []++ for (var i = 0, il = skinEntry.joints.length; i < il; i++) {+ pendingJoints.push(parser.getDependency('node', skinEntry.joints[i]))+ }++ return Promise.all(pendingJoints)+ })+ .then(function (jointNodes) {+ node.traverse(function (mesh) {+ if (!mesh.isMesh) return++ var bones = []+ var boneInverses = []++ for (var j = 0, jl = jointNodes.length; j < jl; j++) {+ var jointNode = jointNodes[j]++ if (jointNode) {+ bones.push(jointNode)++ var mat = new THREE.Matrix4()++ if (skinEntry.inverseBindMatrices !== undefined) {+ mat.fromArray(skinEntry.inverseBindMatrices.array, j * 16)+ }++ boneInverses.push(mat)+ } else {+ console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', skinEntry.joints[j])+ }+ }++ mesh.bind(new THREE.Skeleton(bones, boneInverses), mesh.matrixWorld)+ })++ return node+ })+ })+ .then(function (node) {+ // build node hierachy++ parentObject.add(node)++ var pending = []++ if (nodeDef.children) {+ var children = nodeDef.children++ for (var i = 0, il = children.length; i < il; i++) {+ var child = children[i]+ pending.push(buildNodeHierachy(child, node, json, parser))+ }+ }++ return Promise.all(pending)+ })+ }++ return function loadScene(sceneIndex) {+ var json = this.json+ var extensions = this.extensions+ var sceneDef = this.json.scenes[sceneIndex]+ var parser = this++ // Loader returns Group, not Scene.+ // See: https://github.com/mrdoob/three.js/issues/18342#issuecomment-578981172+ var scene = new THREE.Group()+ if (sceneDef.name) scene.name = parser.createUniqueName(sceneDef.name)++ assignExtrasToUserData(scene, sceneDef)++ if (sceneDef.extensions) addUnknownExtensionsToUserData(extensions, scene, sceneDef)++ var nodeIds = sceneDef.nodes || []++ var pending = []++ for (var i = 0, il = nodeIds.length; i < il; i++) {+ pending.push(buildNodeHierachy(nodeIds[i], scene, json, parser))+ }++ return Promise.all(pending).then(function () {+ return scene+ })+ }+ })()++ return GLTFLoader+})())++export default GLTFLoaderdiff --git a/vendor/three-ws-fork/gltfjsx/src/gltfjsx.js b/vendor/three-ws-fork/gltfjsx/src/gltfjsx.jsnew file mode 100755index 000000000..940e5ea04--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/gltfjsx.js@@ -0,0 +1,74 @@+import 'jsdom-global'+import fs from 'fs'+import path from 'path'+import transform from './utils/transform.js'++import prettier from 'prettier'+import THREE from 'three'+global.THREE = THREE++import './bin/GLTFLoader.js'+import DracoLoader from './bin/DRACOLoader.js'+THREE.DRACOLoader.getDecoderModule = () => {}+import parse from './utils/parser.js'++const gltfLoader = new THREE.GLTFLoader()+gltfLoader.setDRACOLoader(new DracoLoader())++function toArrayBuffer(buf) {+ var ab = new ArrayBuffer(buf.length)+ var view = new Uint8Array(ab)+ for (var i = 0; i < buf.length; ++i) view[i] = buf[i]+ return ab+}++export default function (file, output, options) {+ function getRelativeFilePath(file) {+ const filePath = path.resolve(file)+ const rootPath = options.root ? path.resolve(options.root) : path.dirname(file)+ const relativePath = path.relative(rootPath, filePath) || ''+ if (process.platform === 'win32') return relativePath.replace(/\\/g, '/')+ return relativePath+ }++ return new Promise((resolve, reject) => {+ const stream = fs.createWriteStream(output)+ stream.once('open', async (fd) => {+ if (!fs.existsSync(file)) {+ reject(file + ' does not exist.')+ } else {+ // Process GLTF+ if (options.transform || options.instance || options.instanceall) {+ const { name } = path.parse(file)+ const transformOut = path.join(name + '-transformed.glb')+ await transform(file, transformOut, options)+ file = transformOut+ }+ resolve()++ const filePath = getRelativeFilePath(file)+ const data = fs.readFileSync(file)+ const arrayBuffer = toArrayBuffer(data)+ gltfLoader.parse(+ arrayBuffer,+ '',+ (gltf) => {+ stream.write(+ prettier.format(parse(filePath, gltf, options), {+ semi: false,+ printWidth: options.printwidth || 1000,+ singleQuote: true,+ jsxBracketSameLine: true,+ parser: options.types ? 'babel-ts' : 'babel',+ //plugins: [parserBabel],+ })+ )+ stream.end()+ resolve()+ },+ reject+ )+ }+ })+ })+}diff --git a/vendor/three-ws-fork/gltfjsx/src/utils/exports.js b/vendor/three-ws-fork/gltfjsx/src/utils/exports.jsnew file mode 100644index 000000000..6d0aca263--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/utils/exports.js@@ -0,0 +1,5 @@+import parse from './parser'+import transform from './transform'+import GLTFStructureLoader from './glftLoader'++export { transform, parse, GLTFStructureLoader }diff --git a/vendor/three-ws-fork/gltfjsx/src/utils/glftLoader.js b/vendor/three-ws-fork/gltfjsx/src/utils/glftLoader.jsnew file mode 100644index 000000000..5907f1158--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/utils/glftLoader.js@@ -0,0 +1,4 @@+const THREE = (global.THREE = require('three'))+require('../bin/GLTFLoader')++module.exports = THREE.GLTFLoader\ No newline at end of filediff --git a/vendor/three-ws-fork/gltfjsx/src/utils/isVarName.js b/vendor/three-ws-fork/gltfjsx/src/utils/isVarName.jsnew file mode 100644index 000000000..1b31ccff9--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/utils/isVarName.js@@ -0,0 +1,10 @@+const isVarName = (str) => {+ // eslint-disable-next-line no-misleading-character-class+ const regex = new RegExp(+ // eslint-disable-next-line no-misleading-character-class+ /^(?!(?:do|if|in|for|let|new|try|var|case|else|enum|eval|null|this|true|void|with|await|break|catch|class|const|false|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$)(?:[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])(?:[\\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])*$/+ )+ return regex.test(str)+}++export default isVarNamediff --git a/vendor/three-ws-fork/gltfjsx/src/utils/parser.js b/vendor/three-ws-fork/gltfjsx/src/utils/parser.jsnew file mode 100644index 000000000..c4d7d8021--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/utils/parser.js@@ -0,0 +1,466 @@+import THREE from 'three'+import isVarName from './isVarName.js'++function parse(fileName, gltf, options = {}) {+ const url = (fileName.toLowerCase().startsWith('http') ? '' : '/') + fileName+ const animations = gltf.animations+ const hasAnimations = animations.length > 0++ // Collect all objects+ const objects = []+ gltf.scene.traverse((child) => objects.push(child))++ // Browse for duplicates+ const duplicates = {+ names: {},+ materials: {},+ geometries: {},+ }++ function uniqueName(attempt, index = 0) {+ const newAttempt = index > 0 ? attempt + index : attempt+ if (Object.values(duplicates.geometries).find(({ name }) => name === newAttempt) === undefined) return newAttempt+ else return uniqueName(attempt, index + 1)+ }++ gltf.scene.traverse((child) => {+ if (child.isMesh) {+ if (child.material) {+ if (!duplicates.materials[child.material.name]) {+ duplicates.materials[child.material.name] = 1+ } else {+ duplicates.materials[child.material.name]+++ }+ }+ }+ })++ gltf.scene.traverse((child) => {+ if (child.isMesh) {+ if (child.geometry) {+ const key = child.geometry.uuid + child.material?.name ?? ''+ if (!duplicates.geometries[key]) {+ let name = (child.name || 'Part').replace(/[^a-zA-Z]/g, '')+ name = name.charAt(0).toUpperCase() + name.slice(1)+ duplicates.geometries[key] = {+ count: 1,+ name: uniqueName(name),+ node: 'nodes' + sanitizeName(child.name),+ }+ } else {+ duplicates.geometries[key].count+++ }+ }+ }+ })++ // Prune duplicate geometries+ if (!options.instanceall) {+ for (let key of Object.keys(duplicates.geometries)) {+ const duplicate = duplicates.geometries[key]+ if (duplicate.count === 1) delete duplicates.geometries[key]+ }+ }++ const hasInstances = (options.instance || options.instanceall) && Object.keys(duplicates.geometries).length > 0++ function sanitizeName(name) {+ return isVarName(name) ? `.${name}` : `['${name}']`+ }++ const rNbr = (number) => {+ return parseFloat(number.toFixed(Math.round(options.precision || 2)))+ }++ const rDeg = (number) => {+ const abs = Math.abs(Math.round(parseFloat(number) * 100000))+ for (let i = 1; i <= 10; i++) {+ if (abs === Math.round(parseFloat(Math.PI / i) * 100000))+ return `${number < 0 ? '-' : ''}Math.PI${i > 1 ? ' / ' + i : ''}`+ }+ for (let i = 1; i <= 10; i++) {+ if (abs === Math.round(parseFloat(Math.PI * i) * 100000))+ return `${number < 0 ? '-' : ''}Math.PI${i > 1 ? ' * ' + i : ''}`+ }+ return rNbr(number)+ }++ function printTypes(objects, animations) {+ let meshes = objects.filter((o) => o.isMesh && o.__removed === undefined)+ let bones = objects.filter((o) => o.isBone && !(o.parent && o.parent.isBone) && o.__removed === undefined)+ let materials = [...new Set(objects.filter((o) => o.material && o.material.name).map((o) => o.material))]++ let animationTypes = ''+ if (animations.length) {+ animationTypes = `\n+ type ActionName = ${animations.map((clip, i) => `"${clip.name}"`).join(' | ')};+ type GLTFActions = Record<ActionName, THREE.AnimationAction>;\n`+ }++ return `\ntype GLTFResult = GLTF & {+ nodes: {+ ${meshes.map(({ name, type }) => (isVarName(name) ? name : `['${name}']`) + ': THREE.' + type).join(',')}+ ${bones.map(({ name, type }) => (isVarName(name) ? name : `['${name}']`) + ': THREE.' + type).join(',')}+ }+ materials: {+ ${materials.map(({ name, type }) => (isVarName(name) ? name : `['${name}']`) + ': THREE.' + type).join(',')}+ }+ }\n${animationTypes}`+ }++ function getType(obj) {+ let type = obj.type.charAt(0).toLowerCase() + obj.type.slice(1)+ // Turn object3d's into groups, it should be faster according to the threejs docs+ if (type === 'object3D') type = 'group'+ if (type === 'perspectiveCamera') type = 'PerspectiveCamera'+ if (type === 'orthographicCamera') type = 'OrthographicCamera'+ return type+ }++ function handleProps(obj) {+ let { type, node, instanced } = getInfo(obj)++ let result = ''+ let isCamera = type === 'PerspectiveCamera' || type === 'OrthographicCamera'+ // Handle cameras+ if (isCamera) {+ result += `makeDefault={false} `+ if (obj.zoom !== 1) result += `zoom={${rNbr(obj.zoom)}} `+ if (obj.far !== 2000) result += `far={${rNbr(obj.far)}} `+ if (obj.near !== 0.1) result += `near={${rNbr(obj.near)}} `+ }+ if (type === 'PerspectiveCamera') {+ if (obj.fov !== 50) result += `fov={${rNbr(obj.fov)}} `+ }++ if (!instanced) {+ // Shadows+ if (type === 'mesh' && options.shadows) result += `castShadow receiveShadow `++ // Write out geometry first+ if (obj.geometry) {+ result += `geometry={${node}.geometry} `+ }++ // Write out materials+ if (obj.material) {+ if (obj.material.name) result += `material={materials${sanitizeName(obj.material.name)}} `+ else result += `material={${node}.material} `+ }++ if (obj.skeleton) result += `skeleton={${node}.skeleton} `+ if (obj.visible === false) result += `visible={false} `+ if (obj.castShadow === true) result += `castShadow `+ if (obj.receiveShadow === true) result += `receiveShadow `+ if (obj.morphTargetDictionary) result += `morphTargetDictionary={${node}.morphTargetDictionary} `+ if (obj.morphTargetInfluences) result += `morphTargetInfluences={${node}.morphTargetInfluences} `+ if (obj.intensity && rNbr(obj.intensity)) result += `intensity={${rNbr(obj.intensity)}} `+ //if (obj.power && obj.power !== 4 * Math.PI) result += `power={${rNbr(obj.power)}} `+ if (obj.angle && obj.angle !== Math.PI / 3) result += `angle={${rDeg(obj.angle)}} `+ if (obj.penumbra && rNbr(obj.penumbra) !== 0) result += `penumbra={${rNbr(obj.penumbra)}} `+ if (obj.decay && rNbr(obj.decay) !== 1) result += `decay={${rNbr(obj.decay)}} `+ if (obj.distance && rNbr(obj.distance) !== 0) result += `distance={${rNbr(obj.distance)}} `+ if (obj.up && obj.up.isVector3 && !obj.up.equals(new THREE.Vector3(0, 1, 0)))+ result += `up={[${rNbr(obj.up.x)}, ${rNbr(obj.up.y)}, ${rNbr(obj.up.z)},]} `+ }++ if (obj.color && obj.color.getHexString() !== 'ffffff') result += `color="#${obj.color.getHexString()}" `+ if (obj.position && obj.position.isVector3 && rNbr(obj.position.length()))+ result += `position={[${rNbr(obj.position.x)}, ${rNbr(obj.position.y)}, ${rNbr(obj.position.z)},]} `+ if (obj.rotation && obj.rotation.isEuler && rNbr(obj.rotation.toVector3().length()))+ result += `rotation={[${rDeg(obj.rotation.x)}, ${rDeg(obj.rotation.y)}, ${rDeg(obj.rotation.z)},]} `+ if (+ obj.scale &&+ obj.scale.isVector3 &&+ !(rNbr(obj.scale.x) === 1 && rNbr(obj.scale.y) === 1 && rNbr(obj.scale.z) === 1)+ ) {+ const rX = rNbr(obj.scale.x)+ const rY = rNbr(obj.scale.y)+ const rZ = rNbr(obj.scale.z)+ if (rX === rY && rX === rZ) {+ result += `scale={${rX}} `+ } else {+ result += `scale={[${rX}, ${rY}, ${rZ},]} `+ }+ }+ if (options.meta && obj.userData && Object.keys(obj.userData).length)+ result += `userData={${JSON.stringify(obj.userData)}} `++ return result+ }++ function getInfo(obj) {+ let type = getType(obj)+ let node = 'nodes' + sanitizeName(obj.name)+ let instanced =+ (options.instance || options.instanceall) &&+ obj.geometry &&+ obj.material &&+ duplicates.geometries[obj.geometry.uuid + obj.material.name] &&+ duplicates.geometries[obj.geometry.uuid + obj.material.name].count > (options.instanceall ? 0 : 1)+ let animated = gltf.animations && gltf.animations.length > 0+ return { type, node, instanced, animated }+ }++ function equalOrNegated(a, b) {+ return (a.x === b.x || a.x === -b.x) && (a.y === b.y || a.y === -b.y) && (a.z === b.z || a.z === -b.z)+ }++ function prune(obj, children, result, oldResult, silent) {+ let { type, animated } = getInfo(obj)+ // Prune ...+ if (!obj.__removed && !options.keepgroups && !animated && (type === 'group' || type === 'scene')) {+ /** Empty or no-property groups+ * <group>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <mesh geometry={nodes.foo} material={materials.bar} />+ */+ if (result === oldResult || obj.children.length === 0) {+ if (!silent) console.log(`group ${obj.name} removed (empty)`)+ obj.__removed = true+ return children+ }++ // More aggressive removal strategies ...+ const first = obj.children[0]+ const firstProps = handleProps(first)+ const regex = /([a-z-A-Z]*)={([a-zA-Z0-9\.\[\]\-\,\ \/]*)}/g+ const keys1 = [...result.matchAll(regex)].map(([, match]) => match)+ const values1 = [...result.matchAll(regex)].map(([, , match]) => match)+ const keys2 = [...firstProps.matchAll(regex)].map(([, match]) => match)++ /** Double negative rotations+ * <group rotation={[-Math.PI / 2, 0, 0]}>+ * <group rotation={[Math.PI / 2, 0, 0]}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <mesh geometry={nodes.foo} material={materials.bar} />+ */+ if (obj.children.length === 1 && getType(first) === type && equalOrNegated(obj.rotation, first.rotation)) {+ if (keys1.length === 1 && keys2.length === 1 && keys1[0] === 'rotation' && keys2[0] === 'rotation') {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: double negative rotation)`)+ obj.__removed = first.__removed = true+ children = ''+ if (first.children) first.children.forEach((child) => (children += print(child, true)))+ return children+ }+ }++ /** Double negative rotations w/ props+ * <group rotation={[-Math.PI / 2, 0, 0]}>+ * <group rotation={[Math.PI / 2, 0, 0]} scale={0.01}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <group scale={0.01}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ */+ if (obj.children.length === 1 && getType(first) === type && equalOrNegated(obj.rotation, first.rotation)) {+ if (keys1.length === 1 && keys2.length > 1 && keys1[0] === 'rotation' && keys2.includes('rotation')) {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: double negative rotation w/ props)`)+ obj.__removed = true+ // Remove rotation from first child+ first.rotation.set(0, 0, 0)+ children = print(first, true)+ return children+ }+ }++ /** Transform overlap+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]}>+ * <mesh geometry={nodes.foo} material={materials.bar} />+ * Solution:+ * <mesh geometry={nodes.foo} material={materials.bar} position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]} />+ */+ const isChildTransformed = keys2.includes('position') || keys2.includes('rotation') || keys2.includes('scale')+ const hasOtherProps = keys1.some((key) => !['position', 'scale', 'rotation'].includes(key))+ if (obj.children.length === 1 && !first.__removed && !isChildTransformed && !hasOtherProps) {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: ${keys1.join(' ')} overlap)`)+ // Move props over from the to-be-deleted object to the child+ // This ensures that the child will have the correct transform when pruning is being repeated+ keys1.forEach((key) => obj.children[0][key].copy(obj[key]))+ // Insert the props into the result string+ children = print(first, true)+ obj.__removed = true+ return children+ }++ /** Lack of content+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]}>+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]}>+ * <group position={[10, 0, 0]} scale={2} rotation={[-Math.PI / 2, 0, 0]} />+ * Solution:+ * (delete the whole sub graph)+ */+ const empty = []+ obj.traverse((o) => {+ const type = getType(o)+ if (type !== 'group' && type !== 'object3D') empty.push(o)+ })+ if (!empty.length) {+ if (!silent) console.log(`group ${obj.name} removed (aggressive: lack of content)`)+ empty.forEach((child) => (child.__removed = true))+ return ''+ }+ }+ }++ function print(obj, silent = false) {+ let result = ''+ let children = ''+ let { type, node, instanced, animated } = getInfo(obj)++ // Check if the root node is useless+ if (obj.__removed && obj.children.length) {+ obj.children.forEach((child) => (result += print(child)))+ return result+ }++ // Bail out on lights and bones+ if (type === 'bone') {+ return `<primitive object={${node}} />`+ }++ // Collect children+ if (obj.children) obj.children.forEach((child) => (children += print(child)))++ if (instanced) {+ result = `<instances.${duplicates.geometries[obj.geometry.uuid + obj.material.name].name} `+ type = `instances.${duplicates.geometries[obj.geometry.uuid + obj.material.name].name}`+ } else {+ // Form the object in JSX syntax+ result = `<${type} `+ }++ // Include names when output is uncompressed or morphTargetDictionaries are present+ if (obj.name.length && (options.keepnames || obj.morphTargetDictionary || animated)) result += `name="${obj.name}" `++ const oldResult = result+ result += handleProps(obj)++ const pruned = prune(obj, children, result, oldResult, silent)+ // Bail out if the object was pruned+ if (pruned !== undefined) return pruned++ // Close tag+ result += `${children.length ? '>' : '/>'}\n`++ // Add children and return+ if (children.length) result += children + `</${type}>`+ return result+ }++ function printAnimations(animations) {+ return animations.length+ ? `\nconst { actions } = useAnimations${options.types ? '<GLTFActions>' : ''}(animations, group)`+ : ''+ }++ function parseExtras(extras) {+ if (extras) {+ return (+ Object.keys(extras)+ .map((key) => `${key.charAt(0).toUpperCase() + key.slice(1)}: ${extras[key]}`)+ .join('\n') + '\n'+ )+ } else return ''+ }++ function p(obj, line) {+ console.log(+ [...new Array(line * 2)].map(() => ' ').join(''),+ obj.type,+ obj.name,+ 'pos:',+ obj.position.toArray().map(rNbr),+ 'scale:',+ obj.scale.toArray().map(rNbr),+ 'rot:',+ [obj.rotation.x, obj.rotation.y, obj.rotation.z].map(rNbr),+ 'mat:',+ obj.material ? `${obj.material.name}-${obj.material.uuid.substring(0, 8)}` : ''+ )+ obj.children.forEach((o) => p(o, line + 1))+ }++ if (options.debug) p(gltf.scene, 0)++ if (!options.keepgroups) {+ // Dry run to prune graph+ print(gltf.scene)+ // Move children of deleted objects to their new parents+ objects.forEach((o) => {+ if (o.__removed) {+ let parent = o.parent+ // Making sure we don't add to a removed parent+ while (parent && parent.__removed) parent = parent.parent+ // If no parent was found it must be the root node+ if (!parent) parent = gltf.scene+ o.children.slice().forEach((child) => parent.add(child))+ }+ })+ // Remove deleted objects+ objects.forEach((o) => {+ if (o.__removed && o.parent) o.parent.remove(o)+ })+ }+ // 2nd pass to eliminate hard to swat left-overs+ const scene = print(gltf.scene)++ return `/*+${options.header ? options.header : 'Auto-generated by: https://github.com/pmndrs/gltfjsx'}+${parseExtras(gltf.parser.json.asset && gltf.parser.json.asset.extras)}*/+ ${options.types ? `\nimport * as THREE from 'three'` : ''}+ import React, { useRef ${hasInstances ? ', useMemo, useContext, createContext' : ''} } from 'react'+ import { useGLTF, ${hasInstances ? 'Merged, ' : ''} ${+ scene.includes('PerspectiveCamera') ? 'PerspectiveCamera,' : ''+ }+ ${scene.includes('OrthographicCamera') ? 'OrthographicCamera,' : ''}+ ${hasAnimations ? 'useAnimations' : ''} } from '@react-three/drei'+ ${options.types ? 'import { GLTF } from "three-stdlib"' : ''}+ ${options.types ? printTypes(objects, animations) : ''}++ ${+ hasInstances+ ? `+ const context = createContext()+ export function Instances({ children, ...props }) {+ const { nodes } = useGLTF('${url}'${options.draco ? `, ${JSON.stringify(options.draco)}` : ''})${+ options.types ? ' as GLTFResult' : ''+ }+ const instances = useMemo(() => ({+ ${Object.values(duplicates.geometries)+ .map((v) => `${v.name}: ${v.node}`)+ .join(', ')}+ }), [nodes])+ return (+ <Merged meshes={instances} {...props}>+ {(instances) => <context.Provider value={instances} children={children} />}+ </Merged>+ )+ }+ `+ : ''+ }++ export function Model(props${options.types ? ": JSX.IntrinsicElements['group']" : ''}) {+ ${hasInstances ? 'const instances = useContext(context);' : ''} ${+ hasAnimations ? `const group = ${options.types ? 'useRef<THREE.Group>()' : 'useRef()'};` : ''+ } ${+ !options.instanceall+ ? `const { nodes, materials${hasAnimations ? ', animations' : ''} } = useGLTF('${url}'${+ options.draco ? `, ${JSON.stringify(options.draco)}` : ''+ })${options.types ? ' as GLTFResult' : ''}`+ : ''+ } ${printAnimations(animations)}+ return (+ <group ${hasAnimations ? `ref={group}` : ''} {...props} dispose={null}>+ ${scene}+ </group>+ )+ }++useGLTF.preload('${url}')`+}++export default parsediff --git a/vendor/three-ws-fork/gltfjsx/src/utils/transform.js b/vendor/three-ws-fork/gltfjsx/src/utils/transform.jsnew file mode 100644index 000000000..bcbc56d37--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/src/utils/transform.js@@ -0,0 +1,48 @@+import { NodeIO } from '@gltf-transform/core'+import { simplify, weld, dedup, resample, prune, textureCompress, draco } from '@gltf-transform/functions'+import { ALL_EXTENSIONS } from '@gltf-transform/extensions'+import { MeshoptDecoder, MeshoptEncoder, MeshoptSimplifier } from 'meshoptimizer'+import draco3d from 'draco3dgltf'+import sharp from 'sharp'++async function transform(file, output, config = {}) {+ await MeshoptDecoder.ready+ await MeshoptEncoder.ready+ const io = new NodeIO().registerExtensions(ALL_EXTENSIONS).registerDependencies({+ 'draco3d.decoder': await draco3d.createDecoderModule(),+ 'draco3d.encoder': await draco3d.createEncoderModule(),+ 'meshopt.decoder': MeshoptDecoder,+ 'meshopt.encoder': MeshoptEncoder,+ })++ const document = await io.read(file)+ const resolution = config.resolution ?? 1024++ const functions = [+ // Losslessly resample animation frames.+ resample(),+ // Remove duplicate vertex or texture data, if any.+ dedup(),+ // Remove unused nodes, textures, or other data.+ prune(),+ // Resize and convert textures (using webp and sharp)+ textureCompress({ targetFormat: 'webp', encoder: sharp, resize: [resolution, resolution] }),+ // Add Draco compression.+ draco(),+ ]++ if (config.simplify) {+ functions.push(+ // Weld vertices+ weld({ tolerance: config.weld ?? 0.0001 }),+ // Simplify meshes+ simplify({ simplifier: MeshoptSimplifier, ratio: config.ratio ?? 0.75, error: config.error ?? 0.001 })+ )+ }++ await document.transform(...functions)++ await io.write(output, document)+}++export default transformdiff --git a/vendor/three-ws-fork/gltfjsx/yarn.lock b/vendor/three-ws-fork/gltfjsx/yarn.locknew file mode 100644index 000000000..0d2ebca3a--- /dev/null+++ b/vendor/three-ws-fork/gltfjsx/yarn.lock@@ -0,0 +1,2496 @@+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.+# yarn lockfile v1++"@babel/code-frame@^7.0.0":+ "integrity" "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q=="+ "resolved" "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz"+ "version" "7.18.6"+ dependencies:+ "@babel/highlight" "^7.18.6"++"@babel/helper-validator-identifier@^7.18.6":+ "integrity" "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w=="+ "resolved" "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz"+ "version" "7.19.1"++"@babel/highlight@^7.18.6":+ "integrity" "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g=="+ "resolved" "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz"+ "version" "7.18.6"+ dependencies:+ "@babel/helper-validator-identifier" "^7.18.6"+ "chalk" "^2.0.0"+ "js-tokens" "^4.0.0"++"@gltf-transform/core@^3.0.0-alpha.4":+ "integrity" "sha512-fvZFPeq+etlY0TEm3/JBEwvrRY6XI2U2PeqUz/p/5srtRWP5UoWj/v6wX4/GIk1lbNPjHGH8KjVA55b2Ihq6vg=="+ "resolved" "https://registry.npmjs.org/@gltf-transform/core/-/core-3.0.0-alpha.4.tgz"+ "version" "3.0.0-alpha.4"+ dependencies:+ "gl-matrix" "~3.4.3"+ "property-graph" "^0.2.6"++"@gltf-transform/extensions@^3.0.0-alpha.4":+ "integrity" "sha512-IzHXO/KvdBc045dJ5YqJaVF/yUClvyeuC5Yh0PRUS9W6/+OBpqw9i+yuPQzlJe7V/3v6ouT/HWvr1/QHxNalqg=="+ "resolved" "https://registry.npmjs.org/@gltf-transform/extensions/-/extensions-3.0.0-alpha.4.tgz"+ "version" "3.0.0-alpha.4"+ dependencies:+ "@gltf-transform/core" "^3.0.0-alpha.4"+ "ktx-parse" "^0.4.5"++"@gltf-transform/functions@^3.0.0-alpha.4":+ "integrity" "sha512-K5iINos3B+g6cOrXTF5NyyhghP01aO+fRW5Rp1fDFTWtnnoi1/bBjJFRNm/oLxHgvCuiGdvj3cnmkqcBtz/TjQ=="+ "resolved" "https://registry.npmjs.org/@gltf-transform/functions/-/functions-3.0.0-alpha.4.tgz"+ "version" "3.0.0-alpha.4"+ dependencies:+ "@gltf-transform/core" "^3.0.0-alpha.4"+ "@gltf-transform/extensions" "^3.0.0-alpha.4"+ "gl-matrix" "~3.4.3"+ "ktx-parse" "^0.4.5"+ "ndarray" "^1.0.19"+ "ndarray-lanczos" "^0.1.2"+ "ndarray-pixels" "^1.0.0"++"@jridgewell/sourcemap-codec@^1.4.13":+ "integrity" "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw=="+ "resolved" "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz"+ "version" "1.4.14"++"@node-loader/babel@^2.0.1":+ "integrity" "sha512-lulESaNn+jyn4lCbfcFWFcRYchsL0jY8q/mf5XRKOiX2uTpkXE3fGAlZ4+wyP/hIAMSlDPuHIUkRSTkJZ6SQyA=="+ "resolved" "https://registry.npmjs.org/@node-loader/babel/-/babel-2.0.1.tgz"+ "version" "2.0.1"++"@nodelib/[email protected]":+ "integrity" "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="+ "resolved" "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz"+ "version" "2.1.5"+ dependencies:+ "@nodelib/fs.stat" "2.0.5"+ "run-parallel" "^1.1.9"++"@nodelib/fs.stat@^2.0.2", "@nodelib/[email protected]":+ "integrity" "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="+ "resolved" "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz"+ "version" "2.0.5"++"@nodelib/fs.walk@^1.2.3":+ "integrity" "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="+ "resolved" "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz"+ "version" "1.2.8"+ dependencies:+ "@nodelib/fs.scandir" "2.1.5"+ "fastq" "^1.6.0"++"@rollup/plugin-commonjs@^24.0.1":+ "integrity" "sha512-15LsiWRZk4eOGqvrJyu3z3DaBu5BhXIMeWnijSRvd8irrrg9SHpQ1pH+BUK4H6Z9wL9yOxZJMTLU+Au86XHxow=="+ "resolved" "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-24.0.1.tgz"+ "version" "24.0.1"+ dependencies:+ "@rollup/pluginutils" "^5.0.1"+ "commondir" "^1.0.1"+ "estree-walker" "^2.0.2"+ "glob" "^8.0.3"+ "is-reference" "1.2.1"+ "magic-string" "^0.27.0"++"@rollup/pluginutils@^5.0.1":+ "integrity" "sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA=="+ "resolved" "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz"+ "version" "5.0.2"+ dependencies:+ "@types/estree" "^1.0.0"+ "estree-walker" "^2.0.2"+ "picomatch" "^2.3.1"++"@tootallnate/once@2":+ "integrity" "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A=="+ "resolved" "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz"+ "version" "2.0.0"++"@types/estree@*", "@types/estree@^1.0.0":+ "integrity" "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ=="+ "resolved" "https://registry.npmjs.org/@types/estree/-/estree-1.0.0.tgz"+ "version" "1.0.0"++"@types/minimist@^1.2.2":+ "integrity" "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ=="+ "resolved" "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz"+ "version" "1.2.2"++"@types/ndarray@^1.0.10":+ "integrity" "sha512-hOZVTN24zDHwCHaW7mF9n1vHJt83fZhNZ0YYRBwQGhA96yBWWDPTDDlqJatagHIOJB0a4xoNkNc+t/Cxd+6qUA=="+ "resolved" "https://registry.npmjs.org/@types/ndarray/-/ndarray-1.0.11.tgz"+ "version" "1.0.11"++"@types/normalize-package-data@^2.4.1":+ "integrity" "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw=="+ "resolved" "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz"+ "version" "2.4.1"++"@types/parse-json@^4.0.0":+ "integrity" "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA=="+ "resolved" "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz"+ "version" "4.0.0"++"abab@^2.0.6":+ "integrity" "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA=="+ "resolved" "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz"+ "version" "2.0.6"++"acorn-globals@^7.0.0":+ "integrity" "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q=="+ "resolved" "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz"+ "version" "7.0.1"+ dependencies:+ "acorn" "^8.1.0"+ "acorn-walk" "^8.0.2"++"acorn-walk@^8.0.2":+ "integrity" "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA=="+ "resolved" "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz"+ "version" "8.2.0"++"acorn@^8.1.0", "acorn@^8.8.1":+ "integrity" "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA=="+ "resolved" "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz"+ "version" "8.8.1"++"agent-base@6":+ "integrity" "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ=="+ "resolved" "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz"+ "version" "6.0.2"+ dependencies:+ "debug" "4"++"aggregate-error@^3.0.0":+ "integrity" "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA=="+ "resolved" "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz"+ "version" "3.1.0"+ dependencies:+ "clean-stack" "^2.0.0"+ "indent-string" "^4.0.0"++"ajv@^6.12.3":+ "integrity" "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="+ "resolved" "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz"+ "version" "6.12.6"+ dependencies:+ "fast-deep-equal" "^3.1.1"+ "fast-json-stable-stringify" "^2.0.0"+ "json-schema-traverse" "^0.4.1"+ "uri-js" "^4.2.2"++"ansi-colors@^4.1.1":+ "integrity" "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw=="+ "resolved" "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz"+ "version" "4.1.3"++"ansi-escapes@^4.3.0":+ "integrity" "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ=="+ "resolved" "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz"+ "version" "4.3.2"+ dependencies:+ "type-fest" "^0.21.3"++"ansi-regex@^5.0.1":+ "integrity" "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="+ "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz"+ "version" "5.0.1"++"ansi-styles@^3.2.1":+ "integrity" "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA=="+ "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz"+ "version" "3.2.1"+ dependencies:+ "color-convert" "^1.9.0"++"ansi-styles@^4.0.0", "ansi-styles@^4.1.0":+ "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="+ "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"+ "version" "4.3.0"+ dependencies:+ "color-convert" "^2.0.1"++"arrify@^1.0.1":+ "integrity" "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA=="+ "resolved" "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz"+ "version" "1.0.1"++"asn1@~0.2.3":+ "integrity" "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ=="+ "resolved" "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz"+ "version" "0.2.6"+ dependencies:+ "safer-buffer" "~2.1.0"++"assert-plus@^1.0.0", "[email protected]":+ "integrity" "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw=="+ "resolved" "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz"+ "version" "1.0.0"++"astral-regex@^2.0.0":+ "integrity" "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ=="+ "resolved" "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz"+ "version" "2.0.0"++"asynckit@^0.4.0":+ "integrity" "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="+ "resolved" "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz"+ "version" "0.4.0"++"at-least-node@^1.0.0":+ "integrity" "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg=="+ "resolved" "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz"+ "version" "1.0.0"++"aws-sign2@~0.7.0":+ "integrity" "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA=="+ "resolved" "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz"+ "version" "0.7.0"++"aws4@^1.8.0":+ "integrity" "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA=="+ "resolved" "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz"+ "version" "1.11.0"++"balanced-match@^1.0.0":+ "integrity" "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="+ "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"+ "version" "1.0.2"++"base64-js@^1.3.1":+ "integrity" "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="+ "resolved" "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz"+ "version" "1.5.1"++"bcrypt-pbkdf@^1.0.0":+ "integrity" "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w=="+ "resolved" "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz"+ "version" "1.0.2"+ dependencies:+ "tweetnacl" "^0.14.3"++"bl@^4.0.3":+ "integrity" "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w=="+ "resolved" "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz"+ "version" "4.1.0"+ dependencies:+ "buffer" "^5.5.0"+ "inherits" "^2.0.4"+ "readable-stream" "^3.4.0"++"brace-expansion@^2.0.1":+ "integrity" "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="+ "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz"+ "version" "2.0.1"+ dependencies:+ "balanced-match" "^1.0.0"++"braces@^3.0.2":+ "integrity" "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A=="+ "resolved" "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz"+ "version" "3.0.2"+ dependencies:+ "fill-range" "^7.0.1"++"buffer@^5.5.0":+ "integrity" "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ=="+ "resolved" "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz"+ "version" "5.7.1"+ dependencies:+ "base64-js" "^1.3.1"+ "ieee754" "^1.1.13"++"callsites@^3.0.0":+ "integrity" "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="+ "resolved" "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz"+ "version" "3.1.0"++"camelcase-keys@^8.0.2":+ "integrity" "sha512-qMKdlOfsjlezMqxkUGGMaWWs17i2HoL15tM+wtx8ld4nLrUwU58TFdvyGOz/piNP842KeO8yXvggVQSdQ828NA=="+ "resolved" "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-8.0.2.tgz"+ "version" "8.0.2"+ dependencies:+ "camelcase" "^7.0.0"+ "map-obj" "^4.3.0"+ "quick-lru" "^6.1.1"+ "type-fest" "^2.13.0"++"camelcase@^7.0.0":+ "integrity" "sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw=="+ "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-7.0.1.tgz"+ "version" "7.0.1"++"caseless@~0.12.0":+ "integrity" "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw=="+ "resolved" "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz"+ "version" "0.12.0"++"chalk@^2.0.0":+ "integrity" "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ=="+ "resolved" "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz"+ "version" "2.4.2"+ dependencies:+ "ansi-styles" "^3.2.1"+ "escape-string-regexp" "^1.0.5"+ "supports-color" "^5.3.0"++"chalk@^4.0.0", "chalk@^4.1.0", "chalk@^4.1.1":+ "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="+ "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"+ "version" "4.1.2"+ dependencies:+ "ansi-styles" "^4.1.0"+ "supports-color" "^7.1.0"++"chownr@^1.1.1":+ "integrity" "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="+ "resolved" "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz"+ "version" "1.1.4"++"ci-info@^2.0.0":+ "integrity" "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="+ "resolved" "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz"+ "version" "2.0.0"++"clean-stack@^2.0.0":+ "integrity" "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A=="+ "resolved" "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz"+ "version" "2.2.0"++"cli-cursor@^3.1.0":+ "integrity" "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw=="+ "resolved" "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz"+ "version" "3.1.0"+ dependencies:+ "restore-cursor" "^3.1.0"++"cli-truncate@^2.1.0":+ "integrity" "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg=="+ "resolved" "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz"+ "version" "2.1.0"+ dependencies:+ "slice-ansi" "^3.0.0"+ "string-width" "^4.2.0"++"color-convert@^1.9.0":+ "integrity" "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg=="+ "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz"+ "version" "1.9.3"+ dependencies:+ "color-name" "1.1.3"++"color-convert@^2.0.1":+ "integrity" "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="+ "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"+ "version" "2.0.1"+ dependencies:+ "color-name" "~1.1.4"++"color-name@^1.0.0", "color-name@~1.1.4":+ "integrity" "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="+ "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"+ "version" "1.1.4"++ "integrity" "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="+ "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz"+ "version" "1.1.3"++"color-string@^1.9.0":+ "integrity" "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg=="+ "resolved" "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz"+ "version" "1.9.1"+ dependencies:+ "color-name" "^1.0.0"+ "simple-swizzle" "^0.2.2"++"color@^4.2.3":+ "integrity" "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A=="+ "resolved" "https://registry.npmjs.org/color/-/color-4.2.3.tgz"+ "version" "4.2.3"+ dependencies:+ "color-convert" "^2.0.1"+ "color-string" "^1.9.0"++"colorette@^2.0.16":+ "integrity" "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ=="+ "resolved" "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz"+ "version" "2.0.19"++"combined-stream@^1.0.6", "combined-stream@^1.0.8", "combined-stream@~1.0.6":+ "integrity" "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="+ "resolved" "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz"+ "version" "1.0.8"+ dependencies:+ "delayed-stream" "~1.0.0"++"commander@^6.2.0":+ "integrity" "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA=="+ "resolved" "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz"+ "version" "6.2.1"++"commondir@^1.0.1":+ "integrity" "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg=="+ "resolved" "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz"+ "version" "1.0.1"++"compare-versions@^3.6.0":+ "integrity" "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA=="+ "resolved" "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz"+ "version" "3.6.0"++"contentstream@^1.0.0":+ "integrity" "sha512-jqWbfFZFG9tZbdej7+TzXI4kanABh3BLtTWY6NxqTK5zo6iTIeo5aq4iRVfYsLQ0y8ccQqmJR/J4NeMmEdnR2w=="+ "resolved" "https://registry.npmjs.org/contentstream/-/contentstream-1.0.0.tgz"+ "version" "1.0.0"+ dependencies:+ "readable-stream" "~1.0.33-1"++"core-util-is@~1.0.0":+ "integrity" "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="+ "resolved" "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz"+ "version" "1.0.3"++ "integrity" "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ=="+ "resolved" "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"+ "version" "1.0.2"++"cosmiconfig@^7.0.0":+ "integrity" "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA=="+ "resolved" "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz"+ "version" "7.1.0"+ dependencies:+ "@types/parse-json" "^4.0.0"+ "import-fresh" "^3.2.1"+ "parse-json" "^5.0.0"+ "path-type" "^4.0.0"+ "yaml" "^1.10.0"++"cross-spawn@^7.0.0":+ "integrity" "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w=="+ "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"+ "version" "7.0.3"+ dependencies:+ "path-key" "^3.1.0"+ "shebang-command" "^2.0.0"+ "which" "^2.0.1"++"cssom@^0.5.0":+ "integrity" "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw=="+ "resolved" "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz"+ "version" "0.5.0"++"cssom@~0.3.6":+ "integrity" "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg=="+ "resolved" "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz"+ "version" "0.3.8"++"cssstyle@^2.3.0":+ "integrity" "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A=="+ "resolved" "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz"+ "version" "2.3.0"+ dependencies:+ "cssom" "~0.3.6"++"cwise-compiler@^1.0.0", "cwise-compiler@^1.1.2":+ "integrity" "sha512-WXlK/m+Di8DMMcCjcWr4i+XzcQra9eCdXIJrgh4TUgh0pIS/yJduLxS9JgefsHJ/YVLdgPtXm9r62W92MvanEQ=="+ "resolved" "https://registry.npmjs.org/cwise-compiler/-/cwise-compiler-1.1.3.tgz"+ "version" "1.1.3"+ dependencies:+ "uniq" "^1.0.0"++"dashdash@^1.12.0":+ "integrity" "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g=="+ "resolved" "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz"+ "version" "1.14.1"+ dependencies:+ "assert-plus" "^1.0.0"++ "integrity" "sha512-Cp+jOa8QJef5nXS5hU7M1DWzXPEIoVR3kbV0dQuVGwROZg8bGf1DcCnkmajBTnvghTtSNMUdRrPjgaT6ZQucbw=="+ "resolved" "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-0.0.3.tgz"+ "version" "0.0.3"++"data-urls@^3.0.2":+ "integrity" "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ=="+ "resolved" "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz"+ "version" "3.0.2"+ dependencies:+ "abab" "^2.0.6"+ "whatwg-mimetype" "^3.0.0"+ "whatwg-url" "^11.0.0"++"debug@^4.2.0", "debug@4":+ "integrity" "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ=="+ "resolved" "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"+ "version" "4.3.4"+ dependencies:+ "ms" "2.1.2"++"decamelize-keys@^1.1.0":+ "integrity" "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg=="+ "resolved" "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz"+ "version" "1.1.1"+ dependencies:+ "decamelize" "^1.1.0"+ "map-obj" "^1.0.0"++"decamelize@^1.1.0":+ "integrity" "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA=="+ "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz"+ "version" "1.2.0"++"decamelize@^6.0.0":+ "integrity" "sha512-Fv96DCsdOgB6mdGl67MT5JaTNKRzrzill5OH5s8bjYJXVlcXyPYGyPsUkWyGV5p1TXI5esYIYMMeDJL0hEIwaA=="+ "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-6.0.0.tgz"+ "version" "6.0.0"++"decimal.js@^10.4.2":+ "integrity" "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA=="+ "resolved" "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz"+ "version" "10.4.3"++"decompress-response@^6.0.0":+ "integrity" "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ=="+ "resolved" "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz"+ "version" "6.0.0"+ dependencies:+ "mimic-response" "^3.1.0"++"dedent@^0.7.0":+ "integrity" "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA=="+ "resolved" "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz"+ "version" "0.7.0"++"deep-extend@^0.6.0":+ "integrity" "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="+ "resolved" "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz"+ "version" "0.6.0"++"deep-is@~0.1.3":+ "integrity" "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="+ "resolved" "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz"+ "version" "0.1.4"++"delayed-stream@~1.0.0":+ "integrity" "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="+ "resolved" "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz"+ "version" "1.0.0"++"detect-libc@^2.0.0", "detect-libc@^2.0.1":+ "integrity" "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w=="+ "resolved" "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz"+ "version" "2.0.1"++"domexception@^4.0.0":+ "integrity" "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw=="+ "resolved" "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "webidl-conversions" "^7.0.0"++"draco3dgltf@^1.5.5":+ "integrity" "sha512-JrtTBTZHedeXCaFEIELZf71SGAK+j0LgaLW0xIBUGNNMEYzmoF72jUutLuMpY3go/bulwbd/W7PZsnJG0IQLjA=="+ "resolved" "https://registry.npmjs.org/draco3dgltf/-/draco3dgltf-1.5.5.tgz"+ "version" "1.5.5"++"ecc-jsbn@~0.1.1":+ "integrity" "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw=="+ "resolved" "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz"+ "version" "0.1.2"+ dependencies:+ "jsbn" "~0.1.0"+ "safer-buffer" "^2.1.0"++"emoji-regex@^8.0.0":+ "integrity" "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="+ "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz"+ "version" "8.0.0"++"end-of-stream@^1.1.0", "end-of-stream@^1.4.1":+ "integrity" "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q=="+ "resolved" "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz"+ "version" "1.4.4"+ dependencies:+ "once" "^1.4.0"++"enquirer@^2.3.6", "enquirer@>= 2.3.0 < 3":+ "integrity" "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg=="+ "resolved" "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz"+ "version" "2.3.6"+ dependencies:+ "ansi-colors" "^4.1.1"++"entities@^4.4.0":+ "integrity" "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA=="+ "resolved" "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz"+ "version" "4.4.0"++"error-ex@^1.3.1":+ "integrity" "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g=="+ "resolved" "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz"+ "version" "1.3.2"+ dependencies:+ "is-arrayish" "^0.2.1"++"escape-string-regexp@^1.0.5":+ "integrity" "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg=="+ "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz"+ "version" "1.0.5"++"escodegen@^2.0.0":+ "integrity" "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw=="+ "resolved" "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz"+ "version" "2.0.0"+ dependencies:+ "esprima" "^4.0.1"+ "estraverse" "^5.2.0"+ "esutils" "^2.0.2"+ "optionator" "^0.8.1"+ optionalDependencies:+ "source-map" "~0.6.1"++"esprima@^4.0.1":+ "integrity" "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="+ "resolved" "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz"+ "version" "4.0.1"++"estraverse@^5.2.0":+ "integrity" "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="+ "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz"+ "version" "5.3.0"++"estree-walker@^2.0.2":+ "integrity" "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="+ "resolved" "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz"+ "version" "2.0.2"++"esutils@^2.0.2":+ "integrity" "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="+ "resolved" "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz"+ "version" "2.0.3"++"execa@^4.1.0":+ "integrity" "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA=="+ "resolved" "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz"+ "version" "4.1.0"+ dependencies:+ "cross-spawn" "^7.0.0"+ "get-stream" "^5.0.0"+ "human-signals" "^1.1.1"+ "is-stream" "^2.0.0"+ "merge-stream" "^2.0.0"+ "npm-run-path" "^4.0.0"+ "onetime" "^5.1.0"+ "signal-exit" "^3.0.2"+ "strip-final-newline" "^2.0.0"++"expand-template@^2.0.3":+ "integrity" "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg=="+ "resolved" "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz"+ "version" "2.0.3"++"extend@~3.0.2":+ "integrity" "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="+ "resolved" "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz"+ "version" "3.0.2"++"extsprintf@^1.2.0", "[email protected]":+ "integrity" "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g=="+ "resolved" "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz"+ "version" "1.3.0"++"fast-deep-equal@^3.1.1":+ "integrity" "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="+ "resolved" "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz"+ "version" "3.1.3"++"fast-glob@^3.2.7":+ "integrity" "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w=="+ "resolved" "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz"+ "version" "3.2.12"+ dependencies:+ "@nodelib/fs.stat" "^2.0.2"+ "@nodelib/fs.walk" "^1.2.3"+ "glob-parent" "^5.1.2"+ "merge2" "^1.3.0"+ "micromatch" "^4.0.4"++"fast-json-stable-stringify@^2.0.0":+ "integrity" "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="+ "resolved" "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz"+ "version" "2.1.0"++"fast-levenshtein@~2.0.6":+ "integrity" "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="+ "resolved" "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz"+ "version" "2.0.6"++"fastq@^1.6.0":+ "integrity" "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg=="+ "resolved" "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz"+ "version" "1.14.0"+ dependencies:+ "reusify" "^1.0.4"++"fill-range@^7.0.1":+ "integrity" "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ=="+ "resolved" "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"+ "version" "7.0.1"+ dependencies:+ "to-regex-range" "^5.0.1"++"find-up@^5.0.0":+ "integrity" "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="+ "resolved" "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz"+ "version" "5.0.0"+ dependencies:+ "locate-path" "^6.0.0"+ "path-exists" "^4.0.0"++"find-up@^6.3.0":+ "integrity" "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw=="+ "resolved" "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz"+ "version" "6.3.0"+ dependencies:+ "locate-path" "^7.1.0"+ "path-exists" "^5.0.0"++"find-versions@^4.0.0":+ "integrity" "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ=="+ "resolved" "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "semver-regex" "^3.1.2"++"forever-agent@~0.6.1":+ "integrity" "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw=="+ "resolved" "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz"+ "version" "0.6.1"++"form-data@^4.0.0":+ "integrity" "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww=="+ "resolved" "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "asynckit" "^0.4.0"+ "combined-stream" "^1.0.8"+ "mime-types" "^2.1.12"++"form-data@~2.3.2":+ "integrity" "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ=="+ "resolved" "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz"+ "version" "2.3.3"+ dependencies:+ "asynckit" "^0.4.0"+ "combined-stream" "^1.0.6"+ "mime-types" "^2.1.12"++"fs-constants@^1.0.0":+ "integrity" "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="+ "resolved" "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz"+ "version" "1.0.0"++"fs-extra@^9.0.1":+ "integrity" "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ=="+ "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz"+ "version" "9.1.0"+ dependencies:+ "at-least-node" "^1.0.0"+ "graceful-fs" "^4.2.0"+ "jsonfile" "^6.0.1"+ "universalify" "^2.0.0"++"fs.realpath@^1.0.0":+ "integrity" "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="+ "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"+ "version" "1.0.0"++"fsevents@~2.3.2":+ "integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="+ "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"+ "version" "2.3.2"++"function-bind@^1.1.1":+ "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="+ "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"+ "version" "1.1.1"++"get-own-enumerable-property-symbols@^3.0.0":+ "integrity" "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g=="+ "resolved" "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz"+ "version" "3.0.2"++"get-pixels@^3.3.3":+ "integrity" "sha512-5kyGBn90i9tSMUVHTqkgCHsoWoR+/lGbl4yC83Gefyr0HLIhgSWEx/2F/3YgsZ7UpYNuM6pDhDK7zebrUJ5nXg=="+ "resolved" "https://registry.npmjs.org/get-pixels/-/get-pixels-3.3.3.tgz"+ "version" "3.3.3"+ dependencies:+ "data-uri-to-buffer" "0.0.3"+ "jpeg-js" "^0.4.1"+ "mime-types" "^2.0.1"+ "ndarray" "^1.0.13"+ "ndarray-pack" "^1.1.1"+ "node-bitmap" "0.0.1"+ "omggif" "^1.0.5"+ "parse-data-uri" "^0.2.0"+ "pngjs" "^3.3.3"+ "request" "^2.44.0"+ "through" "^2.3.4"++"get-stream@^5.0.0":+ "integrity" "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="+ "resolved" "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz"+ "version" "5.2.0"+ dependencies:+ "pump" "^3.0.0"++"getpass@^0.1.1":+ "integrity" "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng=="+ "resolved" "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz"+ "version" "0.1.7"+ dependencies:+ "assert-plus" "^1.0.0"++"gif-encoder@~0.4.1":+ "integrity" "sha512-HMfSa+EIng62NbDhM63QGYoc49/m8DcZ9hhBtw+CXX9mKboSpeFVxjZ2WEWaMFZ14MUjfACK7jsrxrJffIVrCg=="+ "resolved" "https://registry.npmjs.org/gif-encoder/-/gif-encoder-0.4.3.tgz"+ "version" "0.4.3"+ dependencies:+ "readable-stream" "~1.1.9"++ "integrity" "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="+ "resolved" "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz"+ "version" "0.0.0"++"gl-matrix@~3.4.3":+ "integrity" "sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA=="+ "resolved" "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.3.tgz"+ "version" "3.4.3"++"glob-parent@^5.1.2":+ "integrity" "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="+ "resolved" "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"+ "version" "5.1.2"+ dependencies:+ "is-glob" "^4.0.1"++"glob@^8.0.3":+ "integrity" "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ=="+ "resolved" "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz"+ "version" "8.1.0"+ dependencies:+ "fs.realpath" "^1.0.0"+ "inflight" "^1.0.4"+ "inherits" "2"+ "minimatch" "^5.0.1"+ "once" "^1.3.0"++"graceful-fs@^4.1.6", "graceful-fs@^4.2.0":+ "integrity" "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA=="+ "resolved" "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz"+ "version" "4.2.10"++"har-schema@^2.0.0":+ "integrity" "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q=="+ "resolved" "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz"+ "version" "2.0.0"++"har-validator@~5.1.3":+ "integrity" "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w=="+ "resolved" "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz"+ "version" "5.1.5"+ dependencies:+ "ajv" "^6.12.3"+ "har-schema" "^2.0.0"++"hard-rejection@^2.1.0":+ "integrity" "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA=="+ "resolved" "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz"+ "version" "2.1.0"++"has-flag@^3.0.0":+ "integrity" "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw=="+ "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz"+ "version" "3.0.0"++"has-flag@^4.0.0":+ "integrity" "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="+ "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"+ "version" "4.0.0"++"has@^1.0.3":+ "integrity" "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw=="+ "resolved" "https://registry.npmjs.org/has/-/has-1.0.3.tgz"+ "version" "1.0.3"+ dependencies:+ "function-bind" "^1.1.1"++"hosted-git-info@^4.0.1":+ "integrity" "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA=="+ "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz"+ "version" "4.1.0"+ dependencies:+ "lru-cache" "^6.0.0"++"hosted-git-info@^5.0.0":+ "integrity" "sha512-xIcQYMnhcx2Nr4JTjsFmwwnr9vldugPy9uVm0o87bjqqWMv9GaqsTeT+i99wTl0mk1uLxJtHxLb8kymqTENQsw=="+ "resolved" "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-5.2.1.tgz"+ "version" "5.2.1"+ dependencies:+ "lru-cache" "^7.5.1"++"html-encoding-sniffer@^3.0.0":+ "integrity" "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA=="+ "resolved" "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz"+ "version" "3.0.0"+ dependencies:+ "whatwg-encoding" "^2.0.0"++"http-proxy-agent@^5.0.0":+ "integrity" "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w=="+ "resolved" "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz"+ "version" "5.0.0"+ dependencies:+ "@tootallnate/once" "2"+ "agent-base" "6"+ "debug" "4"++"http-signature@~1.2.0":+ "integrity" "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ=="+ "resolved" "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz"+ "version" "1.2.0"+ dependencies:+ "assert-plus" "^1.0.0"+ "jsprim" "^1.2.2"+ "sshpk" "^1.7.0"++"https-proxy-agent@^5.0.1":+ "integrity" "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA=="+ "resolved" "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz"+ "version" "5.0.1"+ dependencies:+ "agent-base" "6"+ "debug" "4"++"human-signals@^1.1.1":+ "integrity" "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw=="+ "resolved" "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz"+ "version" "1.1.1"++"husky@^4.3.0":+ "integrity" "sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow=="+ "resolved" "https://registry.npmjs.org/husky/-/husky-4.3.8.tgz"+ "version" "4.3.8"+ dependencies:+ "chalk" "^4.0.0"+ "ci-info" "^2.0.0"+ "compare-versions" "^3.6.0"+ "cosmiconfig" "^7.0.0"+ "find-versions" "^4.0.0"+ "opencollective-postinstall" "^2.0.2"+ "pkg-dir" "^5.0.0"+ "please-upgrade-node" "^3.2.0"+ "slash" "^3.0.0"+ "which-pm-runs" "^1.0.0"++ "integrity" "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="+ "resolved" "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz"+ "version" "0.6.3"+ dependencies:+ "safer-buffer" ">= 2.1.2 < 3.0.0"++"ieee754@^1.1.13":+ "integrity" "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="+ "resolved" "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"+ "version" "1.2.1"++"import-fresh@^3.2.1":+ "integrity" "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw=="+ "resolved" "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz"+ "version" "3.3.0"+ dependencies:+ "parent-module" "^1.0.0"+ "resolve-from" "^4.0.0"++"indent-string@^4.0.0":+ "integrity" "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg=="+ "resolved" "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz"+ "version" "4.0.0"++"indent-string@^5.0.0":+ "integrity" "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg=="+ "resolved" "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz"+ "version" "5.0.0"++"inflight@^1.0.4":+ "integrity" "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA=="+ "resolved" "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz"+ "version" "1.0.6"+ dependencies:+ "once" "^1.3.0"+ "wrappy" "1"++"inherits@^2.0.3", "inherits@^2.0.4", "inherits@~2.0.1", "inherits@2":+ "integrity" "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="+ "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"+ "version" "2.0.4"++"ini@~1.3.0":+ "integrity" "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="+ "resolved" "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz"+ "version" "1.3.8"++"iota-array@^1.0.0":+ "integrity" "sha512-pZ2xT+LOHckCatGQ3DcG/a+QuEqvoxqkiL7tvE8nn3uuu+f6i1TtpB5/FtWFbxUuVr5PZCx8KskuGatbJDXOWA=="+ "resolved" "https://registry.npmjs.org/iota-array/-/iota-array-1.0.0.tgz"+ "version" "1.0.0"++"is-arrayish@^0.2.1":+ "integrity" "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg=="+ "resolved" "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz"+ "version" "0.2.1"++"is-arrayish@^0.3.1":+ "integrity" "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="+ "resolved" "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz"+ "version" "0.3.2"++"is-buffer@^1.0.2":+ "integrity" "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="+ "resolved" "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz"+ "version" "1.1.6"++"is-core-module@^2.5.0", "is-core-module@^2.8.1":+ "integrity" "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw=="+ "resolved" "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz"+ "version" "2.11.0"+ dependencies:+ "has" "^1.0.3"++"is-extglob@^2.1.1":+ "integrity" "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="+ "resolved" "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz"+ "version" "2.1.1"++"is-fullwidth-code-point@^3.0.0":+ "integrity" "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="+ "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"+ "version" "3.0.0"++"is-glob@^4.0.1":+ "integrity" "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="+ "resolved" "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz"+ "version" "4.0.3"+ dependencies:+ "is-extglob" "^2.1.1"++"is-number@^7.0.0":+ "integrity" "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="+ "resolved" "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz"+ "version" "7.0.0"++"is-obj@^1.0.1":+ "integrity" "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg=="+ "resolved" "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz"+ "version" "1.0.1"++"is-plain-obj@^1.1.0":+ "integrity" "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg=="+ "resolved" "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz"+ "version" "1.1.0"++"is-potential-custom-element-name@^1.0.1":+ "integrity" "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ=="+ "resolved" "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz"+ "version" "1.0.1"++ "integrity" "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ=="+ "resolved" "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz"+ "version" "1.2.1"+ dependencies:+ "@types/estree" "*"++"is-regexp@^1.0.0":+ "integrity" "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA=="+ "resolved" "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz"+ "version" "1.0.0"++"is-stream@^2.0.0":+ "integrity" "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="+ "resolved" "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz"+ "version" "2.0.1"++"is-typedarray@~1.0.0":+ "integrity" "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA=="+ "resolved" "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz"+ "version" "1.0.0"++"is-unicode-supported@^0.1.0":+ "integrity" "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw=="+ "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz"+ "version" "0.1.0"++"is-var-name@^2.0.0":+ "integrity" "sha512-U+7mpdfaV4Qz2hDNy1Vt7TjWwdIp6br/w7CUlTnyMdsJq+IOSZrh+RsJNlSSckPAnTllhWxpiqC7VSxVTbcr2Q=="+ "resolved" "https://registry.npmjs.org/is-var-name/-/is-var-name-2.0.0.tgz"+ "version" "2.0.0"++ "integrity" "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ=="+ "resolved" "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"+ "version" "0.0.1"++"isexe@^2.0.0":+ "integrity" "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="+ "resolved" "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"+ "version" "2.0.0"++"isstream@~0.1.2":+ "integrity" "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g=="+ "resolved" "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz"+ "version" "0.1.2"++"jpeg-js@^0.4.1", "jpeg-js@^0.4.3":+ "integrity" "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="+ "resolved" "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz"+ "version" "0.4.4"++"js-tokens@^4.0.0":+ "integrity" "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="+ "resolved" "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz"+ "version" "4.0.0"++"jsbn@~0.1.0":+ "integrity" "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg=="+ "resolved" "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz"+ "version" "0.1.1"++"jsdom-global@^3.0.2":+ "integrity" "sha512-t1KMcBkz/pT5JrvcJbpUR2u/w1kO9jXctaaGJ0vZDzwFnIvGWw9IDSRciT83kIs8Bnw4qpOl8bQK08V01YgMPg=="+ "resolved" "https://registry.npmjs.org/jsdom-global/-/jsdom-global-3.0.2.tgz"+ "version" "3.0.2"++"jsdom@^20.0.3", "jsdom@>=10.0.0":+ "integrity" "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ=="+ "resolved" "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz"+ "version" "20.0.3"+ dependencies:+ "abab" "^2.0.6"+ "acorn" "^8.8.1"+ "acorn-globals" "^7.0.0"+ "cssom" "^0.5.0"+ "cssstyle" "^2.3.0"+ "data-urls" "^3.0.2"+ "decimal.js" "^10.4.2"+ "domexception" "^4.0.0"+ "escodegen" "^2.0.0"+ "form-data" "^4.0.0"+ "html-encoding-sniffer" "^3.0.0"+ "http-proxy-agent" "^5.0.0"+ "https-proxy-agent" "^5.0.1"+ "is-potential-custom-element-name" "^1.0.1"+ "nwsapi" "^2.2.2"+ "parse5" "^7.1.1"+ "saxes" "^6.0.0"+ "symbol-tree" "^3.2.4"+ "tough-cookie" "^4.1.2"+ "w3c-xmlserializer" "^4.0.0"+ "webidl-conversions" "^7.0.0"+ "whatwg-encoding" "^2.0.0"+ "whatwg-mimetype" "^3.0.0"+ "whatwg-url" "^11.0.0"+ "ws" "^8.11.0"+ "xml-name-validator" "^4.0.0"++"json-parse-even-better-errors@^2.3.0":+ "integrity" "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="+ "resolved" "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz"+ "version" "2.3.1"++"json-schema-traverse@^0.4.1":+ "integrity" "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="+ "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz"+ "version" "0.4.1"++ "integrity" "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="+ "resolved" "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz"+ "version" "0.4.0"++"json-stringify-safe@~5.0.1":+ "integrity" "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="+ "resolved" "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz"+ "version" "5.0.1"++"jsonfile@^6.0.1":+ "integrity" "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ=="+ "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz"+ "version" "6.1.0"+ dependencies:+ "universalify" "^2.0.0"+ optionalDependencies:+ "graceful-fs" "^4.1.6"++"jsprim@^1.2.2":+ "integrity" "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw=="+ "resolved" "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz"+ "version" "1.4.2"+ dependencies:+ "assert-plus" "1.0.0"+ "extsprintf" "1.3.0"+ "json-schema" "0.4.0"+ "verror" "1.10.0"++"kind-of@^6.0.3":+ "integrity" "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw=="+ "resolved" "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz"+ "version" "6.0.3"++"ktx-parse@^0.4.5":+ "integrity" "sha512-MK3FOody4TXbFf8Yqv7EBbySw7aPvEcPX++Ipt6Sox+/YMFvR5xaTyhfNSk1AEmMy+RYIw81ctN4IMxCB8OAlg=="+ "resolved" "https://registry.npmjs.org/ktx-parse/-/ktx-parse-0.4.5.tgz"+ "version" "0.4.5"++"levn@~0.3.0":+ "integrity" "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA=="+ "resolved" "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz"+ "version" "0.3.0"+ dependencies:+ "prelude-ls" "~1.1.2"+ "type-check" "~0.3.2"++"lines-and-columns@^1.1.6":+ "integrity" "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="+ "resolved" "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz"+ "version" "1.2.4"++"lint-staged@^10.4.0":+ "integrity" "sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg=="+ "resolved" "https://registry.npmjs.org/lint-staged/-/lint-staged-10.5.4.tgz"+ "version" "10.5.4"+ dependencies:+ "chalk" "^4.1.0"+ "cli-truncate" "^2.1.0"+ "commander" "^6.2.0"+ "cosmiconfig" "^7.0.0"+ "debug" "^4.2.0"+ "dedent" "^0.7.0"+ "enquirer" "^2.3.6"+ "execa" "^4.1.0"+ "listr2" "^3.2.2"+ "log-symbols" "^4.0.0"+ "micromatch" "^4.0.2"+ "normalize-path" "^3.0.0"+ "please-upgrade-node" "^3.2.0"+ "string-argv" "0.3.1"+ "stringify-object" "^3.3.0"++"listr2@^3.2.2":+ "integrity" "sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g=="+ "resolved" "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz"+ "version" "3.14.0"+ dependencies:+ "cli-truncate" "^2.1.0"+ "colorette" "^2.0.16"+ "log-update" "^4.0.0"+ "p-map" "^4.0.0"+ "rfdc" "^1.3.0"+ "rxjs" "^7.5.1"+ "through" "^2.3.8"+ "wrap-ansi" "^7.0.0"++"locate-path@^6.0.0":+ "integrity" "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="+ "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz"+ "version" "6.0.0"+ dependencies:+ "p-locate" "^5.0.0"++"locate-path@^7.1.0":+ "integrity" "sha512-vJXaRMJgRVD3+cUZs3Mncj2mxpt5mP0EmNOsxRSZRMlbqjvxzDEOIUWXGmavo0ZC9+tNZCBLQ66reA11nbpHZg=="+ "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-7.1.1.tgz"+ "version" "7.1.1"+ dependencies:+ "p-locate" "^6.0.0"++"log-symbols@^4.0.0":+ "integrity" "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg=="+ "resolved" "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz"+ "version" "4.1.0"+ dependencies:+ "chalk" "^4.1.0"+ "is-unicode-supported" "^0.1.0"++"log-update@^4.0.0":+ "integrity" "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg=="+ "resolved" "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "ansi-escapes" "^4.3.0"+ "cli-cursor" "^3.1.0"+ "slice-ansi" "^4.0.0"+ "wrap-ansi" "^6.2.0"++"lru-cache@^6.0.0":+ "integrity" "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="+ "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"+ "version" "6.0.0"+ dependencies:+ "yallist" "^4.0.0"++"lru-cache@^7.5.1":+ "integrity" "sha512-ysxwsnTKdAx96aTRdhDOCQfDgbHnt8SK0KY8SEjO0wHinhWOFTESbjVCMPbU1uGXg/ch4lifqx0wfjOawU2+WA=="+ "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-7.14.1.tgz"+ "version" "7.14.1"++"magic-string@^0.27.0":+ "integrity" "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA=="+ "resolved" "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz"+ "version" "0.27.0"+ dependencies:+ "@jridgewell/sourcemap-codec" "^1.4.13"++"map-obj@^1.0.0":+ "integrity" "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg=="+ "resolved" "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz"+ "version" "1.0.1"++"map-obj@^4.3.0":+ "integrity" "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ=="+ "resolved" "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz"+ "version" "4.3.0"++"meow@^11.0.0":+ "integrity" "sha512-Cl0yeeIrko6d94KpUo1M+0X1sB14ikoaqlIGuTH1fW4I+E3+YljL54/hb/BWmVfrV9tTV9zU04+xjw08Fh2WkA=="+ "resolved" "https://registry.npmjs.org/meow/-/meow-11.0.0.tgz"+ "version" "11.0.0"+ dependencies:+ "@types/minimist" "^1.2.2"+ "camelcase-keys" "^8.0.2"+ "decamelize" "^6.0.0"+ "decamelize-keys" "^1.1.0"+ "hard-rejection" "^2.1.0"+ "minimist-options" "4.1.0"+ "normalize-package-data" "^4.0.1"+ "read-pkg-up" "^9.1.0"+ "redent" "^4.0.0"+ "trim-newlines" "^4.0.2"+ "type-fest" "^3.1.0"+ "yargs-parser" "^21.1.1"++"merge-stream@^2.0.0":+ "integrity" "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="+ "resolved" "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz"+ "version" "2.0.0"++"merge2@^1.3.0":+ "integrity" "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="+ "resolved" "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz"+ "version" "1.4.1"++"meshoptimizer@^0.18.1":+ "integrity" "sha512-ZhoIoL7TNV4s5B6+rx5mC//fw8/POGyNxS/DZyCJeiZ12ScLfVwRE/GfsxwiTkMYYD5DmK2/JXnEVXqL4rF+Sw=="+ "resolved" "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.18.1.tgz"+ "version" "0.18.1"++"micromatch@^4.0.2", "micromatch@^4.0.4":+ "integrity" "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA=="+ "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz"+ "version" "4.0.5"+ dependencies:+ "braces" "^3.0.2"+ "picomatch" "^2.3.1"++ "integrity" "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="+ "resolved" "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz"+ "version" "1.52.0"++"mime-types@^2.0.1", "mime-types@^2.1.12", "mime-types@~2.1.19":+ "integrity" "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="+ "resolved" "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz"+ "version" "2.1.35"+ dependencies:+ "mime-db" "1.52.0"++"mimic-fn@^2.1.0":+ "integrity" "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="+ "resolved" "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz"+ "version" "2.1.0"++"mimic-response@^3.1.0":+ "integrity" "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="+ "resolved" "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz"+ "version" "3.1.0"++"min-indent@^1.0.1":+ "integrity" "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg=="+ "resolved" "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz"+ "version" "1.0.1"++"minimatch@^5.0.1":+ "integrity" "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="+ "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz"+ "version" "5.1.6"+ dependencies:+ "brace-expansion" "^2.0.1"++ "integrity" "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A=="+ "resolved" "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz"+ "version" "4.1.0"+ dependencies:+ "arrify" "^1.0.1"+ "is-plain-obj" "^1.1.0"+ "kind-of" "^6.0.3"++"minimist@^1.2.0", "minimist@^1.2.3":+ "integrity" "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g=="+ "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz"+ "version" "1.2.7"++"mkdirp-classic@^0.5.2", "mkdirp-classic@^0.5.3":+ "integrity" "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="+ "resolved" "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz"+ "version" "0.5.3"++ "integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="+ "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"+ "version" "2.1.2"++"napi-build-utils@^1.0.1":+ "integrity" "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg=="+ "resolved" "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz"+ "version" "1.0.2"++"ndarray-lanczos@^0.1.2":+ "integrity" "sha512-o3dCYwaN0q4rDrhFx+1eMnyn3FIVL66xbpbKpuWb4UtGAwdgRWFc1iWyeCs8aW7fAklkJxLvqAnxDtiRB+Yf4g=="+ "resolved" "https://registry.npmjs.org/ndarray-lanczos/-/ndarray-lanczos-0.1.2.tgz"+ "version" "0.1.2"+ dependencies:+ "@types/ndarray" "^1.0.10"+ "ndarray" "^1.0.19"++"ndarray-ops@^1.2.2":+ "integrity" "sha512-BppWAFRjMYF7N/r6Ie51q6D4fs0iiGmeXIACKY66fLpnwIui3Wc3CXiD/30mgLbDjPpSLrsqcp3Z62+IcHZsDw=="+ "resolved" "https://registry.npmjs.org/ndarray-ops/-/ndarray-ops-1.2.2.tgz"+ "version" "1.2.2"+ dependencies:+ "cwise-compiler" "^1.0.0"++"ndarray-pack@^1.1.1":+ "integrity" "sha512-51cECUJMT0rUZNQa09EoKsnFeDL4x2dHRT0VR5U2H5ZgEcm95ZDWcMA5JShroXjHOejmAD/fg8+H+OvUnVXz2g=="+ "resolved" "https://registry.npmjs.org/ndarray-pack/-/ndarray-pack-1.2.1.tgz"+ "version" "1.2.1"+ dependencies:+ "cwise-compiler" "^1.1.2"+ "ndarray" "^1.0.13"++"ndarray-pixels@^1.0.0":+ "integrity" "sha512-vJlxc6yM5uCyQbmGacanhEleG5Ha5NoLZojQh14VitIjf2W0EVwKc06BUayoyKkn8ISVXWDBfL3UQc708/MpgQ=="+ "resolved" "https://registry.npmjs.org/ndarray-pixels/-/ndarray-pixels-1.0.0.tgz"+ "version" "1.0.0"+ dependencies:+ "@types/ndarray" "^1.0.10"+ "get-pixels" "^3.3.3"+ "ndarray" "^1.0.19"+ "ndarray-ops" "^1.2.2"+ "save-pixels" "^2.3.6"++"ndarray@^1.0.13", "ndarray@^1.0.18", "ndarray@^1.0.19":+ "integrity" "sha512-B4JHA4vdyZU30ELBw3g7/p9bZupyew5a7tX1Y/gGeF2hafrPaQZhgrGQfsvgfYbgdFZjYwuEcnaobeM/WMW+HQ=="+ "resolved" "https://registry.npmjs.org/ndarray/-/ndarray-1.0.19.tgz"+ "version" "1.0.19"+ dependencies:+ "iota-array" "^1.0.0"+ "is-buffer" "^1.0.2"++"node-abi@^3.3.0":+ "integrity" "sha512-qWO5l3SCqbwQavymOmtTVuCWZE23++S+rxyoHjXqUmPyzRcaoI4lA2gO55/drddGnedAyjA7sk76SfQ5lfUMnw=="+ "resolved" "https://registry.npmjs.org/node-abi/-/node-abi-3.30.0.tgz"+ "version" "3.30.0"+ dependencies:+ "semver" "^7.3.5"++"node-addon-api@^5.0.0":+ "integrity" "sha512-CvkDw2OEnme7ybCykJpVcKH+uAOLV2qLqiyla128dN9TkEWfrYmxG6C2boDe5KcNQqZF3orkqzGgOMvZ/JNekA=="+ "resolved" "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.0.0.tgz"+ "version" "5.0.0"++ "integrity" "sha512-Jx5lPaaLdIaOsj2mVLWMWulXF6GQVdyLvNSxmiYCvZ8Ma2hfKX0POoR2kgKOqz+oFsRreq0yYZjQ2wjE9VNzCA=="+ "resolved" "https://registry.npmjs.org/node-bitmap/-/node-bitmap-0.0.1.tgz"+ "version" "0.0.1"++"normalize-package-data@^3.0.2":+ "integrity" "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA=="+ "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz"+ "version" "3.0.3"+ dependencies:+ "hosted-git-info" "^4.0.1"+ "is-core-module" "^2.5.0"+ "semver" "^7.3.4"+ "validate-npm-package-license" "^3.0.1"++"normalize-package-data@^4.0.1":+ "integrity" "sha512-EBk5QKKuocMJhB3BILuKhmaPjI8vNRSpIfO9woLC6NyHVkKKdVEdAO1mrT0ZfxNR1lKwCcTkuZfmGIFdizZ8Pg=="+ "resolved" "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-4.0.1.tgz"+ "version" "4.0.1"+ dependencies:+ "hosted-git-info" "^5.0.0"+ "is-core-module" "^2.8.1"+ "semver" "^7.3.5"+ "validate-npm-package-license" "^3.0.4"++"normalize-path@^3.0.0":+ "integrity" "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="+ "resolved" "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz"+ "version" "3.0.0"++"npm-run-path@^4.0.0":+ "integrity" "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw=="+ "resolved" "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz"+ "version" "4.0.1"+ dependencies:+ "path-key" "^3.0.0"++"nwsapi@^2.2.2":+ "integrity" "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw=="+ "resolved" "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz"+ "version" "2.2.2"++"oauth-sign@~0.9.0":+ "integrity" "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="+ "resolved" "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz"+ "version" "0.9.0"++"omggif@^1.0.5":+ "integrity" "sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw=="+ "resolved" "https://registry.npmjs.org/omggif/-/omggif-1.0.10.tgz"+ "version" "1.0.10"++"once@^1.3.0", "once@^1.3.1", "once@^1.4.0":+ "integrity" "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="+ "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz"+ "version" "1.4.0"+ dependencies:+ "wrappy" "1"++"onetime@^5.1.0":+ "integrity" "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg=="+ "resolved" "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz"+ "version" "5.1.2"+ dependencies:+ "mimic-fn" "^2.1.0"++"opencollective-postinstall@^2.0.2":+ "integrity" "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q=="+ "resolved" "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz"+ "version" "2.0.3"++"optionator@^0.8.1":+ "integrity" "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA=="+ "resolved" "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz"+ "version" "0.8.3"+ dependencies:+ "deep-is" "~0.1.3"+ "fast-levenshtein" "~2.0.6"+ "levn" "~0.3.0"+ "prelude-ls" "~1.1.2"+ "type-check" "~0.3.2"+ "word-wrap" "~1.2.3"++"p-limit@^3.0.2":+ "integrity" "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="+ "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz"+ "version" "3.1.0"+ dependencies:+ "yocto-queue" "^0.1.0"++"p-limit@^4.0.0":+ "integrity" "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ=="+ "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "yocto-queue" "^1.0.0"++"p-locate@^5.0.0":+ "integrity" "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="+ "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz"+ "version" "5.0.0"+ dependencies:+ "p-limit" "^3.0.2"++"p-locate@^6.0.0":+ "integrity" "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw=="+ "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz"+ "version" "6.0.0"+ dependencies:+ "p-limit" "^4.0.0"++"p-map@^4.0.0":+ "integrity" "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ=="+ "resolved" "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "aggregate-error" "^3.0.0"++"parent-module@^1.0.0":+ "integrity" "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g=="+ "resolved" "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz"+ "version" "1.0.1"+ dependencies:+ "callsites" "^3.0.0"++"parse-data-uri@^0.2.0":+ "integrity" "sha512-uOtts8NqDcaCt1rIsO3VFDRsAfgE4c6osG4d9z3l4dCBlxYFzni6Di/oNU270SDrjkfZuUvLZx1rxMyqh46Y9w=="+ "resolved" "https://registry.npmjs.org/parse-data-uri/-/parse-data-uri-0.2.0.tgz"+ "version" "0.2.0"+ dependencies:+ "data-uri-to-buffer" "0.0.3"++"parse-json@^5.0.0", "parse-json@^5.2.0":+ "integrity" "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg=="+ "resolved" "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz"+ "version" "5.2.0"+ dependencies:+ "@babel/code-frame" "^7.0.0"+ "error-ex" "^1.3.1"+ "json-parse-even-better-errors" "^2.3.0"+ "lines-and-columns" "^1.1.6"++"parse5@^7.1.1":+ "integrity" "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw=="+ "resolved" "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz"+ "version" "7.1.2"+ dependencies:+ "entities" "^4.4.0"++"path-exists@^4.0.0":+ "integrity" "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="+ "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz"+ "version" "4.0.0"++"path-exists@^5.0.0":+ "integrity" "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ=="+ "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz"+ "version" "5.0.0"++"path-key@^3.0.0", "path-key@^3.1.0":+ "integrity" "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="+ "resolved" "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz"+ "version" "3.1.1"++"path-type@^4.0.0":+ "integrity" "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="+ "resolved" "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz"+ "version" "4.0.0"++"performance-now@^2.1.0":+ "integrity" "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow=="+ "resolved" "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz"+ "version" "2.1.0"++"picomatch@^2.3.1":+ "integrity" "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="+ "resolved" "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"+ "version" "2.3.1"++"pkg-dir@^5.0.0":+ "integrity" "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA=="+ "resolved" "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz"+ "version" "5.0.0"+ dependencies:+ "find-up" "^5.0.0"++"please-upgrade-node@^3.2.0":+ "integrity" "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg=="+ "resolved" "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz"+ "version" "3.2.0"+ dependencies:+ "semver-compare" "^1.0.0"++"pngjs-nozlib@^1.0.0":+ "integrity" "sha512-N1PggqLp9xDqwAoKvGohmZ3m4/N9xpY0nDZivFqQLcpLHmliHnCp9BuNCsOeqHWMuEEgFjpEaq9dZq6RZyy0fA=="+ "resolved" "https://registry.npmjs.org/pngjs-nozlib/-/pngjs-nozlib-1.0.0.tgz"+ "version" "1.0.0"++"pngjs@^3.3.3":+ "integrity" "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w=="+ "resolved" "https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz"+ "version" "3.4.0"++"prebuild-install@^7.1.1":+ "integrity" "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw=="+ "resolved" "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz"+ "version" "7.1.1"+ dependencies:+ "detect-libc" "^2.0.0"+ "expand-template" "^2.0.3"+ "github-from-package" "0.0.0"+ "minimist" "^1.2.3"+ "mkdirp-classic" "^0.5.3"+ "napi-build-utils" "^1.0.1"+ "node-abi" "^3.3.0"+ "pump" "^3.0.0"+ "rc" "^1.2.7"+ "simple-get" "^4.0.0"+ "tar-fs" "^2.0.0"+ "tunnel-agent" "^0.6.0"++"prelude-ls@~1.1.2":+ "integrity" "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w=="+ "resolved" "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz"+ "version" "1.1.2"++"prettier@^2.3.2":+ "integrity" "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg=="+ "resolved" "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz"+ "version" "2.8.1"++"property-graph@^0.2.6":+ "integrity" "sha512-QiBHxNZlwIarbkxsqCY688aP1ANbwtoQFBYgTZopQ0Bvku6/EYp3H4KH0ygxkhWQbJv5DEONspLy1rHi5xIycg=="+ "resolved" "https://registry.npmjs.org/property-graph/-/property-graph-0.2.6.tgz"+ "version" "0.2.6"++"psl@^1.1.28", "psl@^1.1.33":+ "integrity" "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag=="+ "resolved" "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz"+ "version" "1.9.0"++"pump@^3.0.0":+ "integrity" "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww=="+ "resolved" "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz"+ "version" "3.0.0"+ dependencies:+ "end-of-stream" "^1.1.0"+ "once" "^1.3.1"++"punycode@^2.1.0", "punycode@^2.1.1":+ "integrity" "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="+ "resolved" "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz"+ "version" "2.1.1"++"qs@~6.5.2":+ "integrity" "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA=="+ "resolved" "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz"+ "version" "6.5.3"++"querystringify@^2.1.1":+ "integrity" "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="+ "resolved" "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz"+ "version" "2.2.0"++"queue-microtask@^1.2.2":+ "integrity" "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="+ "resolved" "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz"+ "version" "1.2.3"++"quick-lru@^6.1.1":+ "integrity" "sha512-S27GBT+F0NTRiehtbrgaSE1idUAJ5bX8dPAQTdylEyNlrdcH5X4Lz7Edz3DYzecbsCluD5zO8ZNEe04z3D3u6Q=="+ "resolved" "https://registry.npmjs.org/quick-lru/-/quick-lru-6.1.1.tgz"+ "version" "6.1.1"++"rc@^1.2.7":+ "integrity" "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw=="+ "resolved" "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz"+ "version" "1.2.8"+ dependencies:+ "deep-extend" "^0.6.0"+ "ini" "~1.3.0"+ "minimist" "^1.2.0"+ "strip-json-comments" "~2.0.1"++"read-pkg-up@^9.1.0":+ "integrity" "sha512-vaMRR1AC1nrd5CQM0PhlRsO5oc2AAigqr7cCrZ/MW/Rsaflz4RlgzkpL4qoU/z1F6wrbd85iFv1OQj/y5RdGvg=="+ "resolved" "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-9.1.0.tgz"+ "version" "9.1.0"+ dependencies:+ "find-up" "^6.3.0"+ "read-pkg" "^7.1.0"+ "type-fest" "^2.5.0"++"read-pkg@^7.1.0":+ "integrity" "sha512-5iOehe+WF75IccPc30bWTbpdDQLOCc3Uu8bi3Dte3Eueij81yx1Mrufk8qBx/YAbR4uL1FdUr+7BKXDwEtisXg=="+ "resolved" "https://registry.npmjs.org/read-pkg/-/read-pkg-7.1.0.tgz"+ "version" "7.1.0"+ dependencies:+ "@types/normalize-package-data" "^2.4.1"+ "normalize-package-data" "^3.0.2"+ "parse-json" "^5.2.0"+ "type-fest" "^2.0.0"++"readable-stream@^3.1.1":+ "integrity" "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA=="+ "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz"+ "version" "3.6.0"+ dependencies:+ "inherits" "^2.0.3"+ "string_decoder" "^1.1.1"+ "util-deprecate" "^1.0.1"++"readable-stream@^3.4.0":+ "integrity" "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA=="+ "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz"+ "version" "3.6.0"+ dependencies:+ "inherits" "^2.0.3"+ "string_decoder" "^1.1.1"+ "util-deprecate" "^1.0.1"++"readable-stream@~1.0.33-1":+ "integrity" "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg=="+ "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz"+ "version" "1.0.34"+ dependencies:+ "core-util-is" "~1.0.0"+ "inherits" "~2.0.1"+ "isarray" "0.0.1"+ "string_decoder" "~0.10.x"++"readable-stream@~1.1.9":+ "integrity" "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ=="+ "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz"+ "version" "1.1.14"+ dependencies:+ "core-util-is" "~1.0.0"+ "inherits" "~2.0.1"+ "isarray" "0.0.1"+ "string_decoder" "~0.10.x"++"redent@^4.0.0":+ "integrity" "sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag=="+ "resolved" "https://registry.npmjs.org/redent/-/redent-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "indent-string" "^5.0.0"+ "strip-indent" "^4.0.0"++"request@^2.44.0":+ "integrity" "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw=="+ "resolved" "https://registry.npmjs.org/request/-/request-2.88.2.tgz"+ "version" "2.88.2"+ dependencies:+ "aws-sign2" "~0.7.0"+ "aws4" "^1.8.0"+ "caseless" "~0.12.0"+ "combined-stream" "~1.0.6"+ "extend" "~3.0.2"+ "forever-agent" "~0.6.1"+ "form-data" "~2.3.2"+ "har-validator" "~5.1.3"+ "http-signature" "~1.2.0"+ "is-typedarray" "~1.0.0"+ "isstream" "~0.1.2"+ "json-stringify-safe" "~5.0.1"+ "mime-types" "~2.1.19"+ "oauth-sign" "~0.9.0"+ "performance-now" "^2.1.0"+ "qs" "~6.5.2"+ "safe-buffer" "^5.1.2"+ "tough-cookie" "~2.5.0"+ "tunnel-agent" "^0.6.0"+ "uuid" "^3.3.2"++"requires-port@^1.0.0":+ "integrity" "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="+ "resolved" "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz"+ "version" "1.0.0"++"resolve-from@^4.0.0":+ "integrity" "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="+ "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz"+ "version" "4.0.0"++"restore-cursor@^3.1.0":+ "integrity" "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA=="+ "resolved" "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz"+ "version" "3.1.0"+ dependencies:+ "onetime" "^5.1.0"+ "signal-exit" "^3.0.2"++"reusify@^1.0.4":+ "integrity" "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw=="+ "resolved" "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz"+ "version" "1.0.4"++"rfdc@^1.3.0":+ "integrity" "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA=="+ "resolved" "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz"+ "version" "1.3.0"++"rollup@^1.20.0||^2.0.0||^3.0.0", "rollup@^2.68.0||^3.0.0", "rollup@^3.12.0":+ "integrity" "sha512-4MZ8kA2HNYahIjz63rzrMMRvDqQDeS9LoriJvMuV0V6zIGysP36e9t4yObUfwdT9h/szXoHQideICftcdZklWg=="+ "resolved" "https://registry.npmjs.org/rollup/-/rollup-3.12.0.tgz"+ "version" "3.12.0"+ optionalDependencies:+ "fsevents" "~2.3.2"++"run-parallel@^1.1.9":+ "integrity" "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="+ "resolved" "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz"+ "version" "1.2.0"+ dependencies:+ "queue-microtask" "^1.2.2"++"rxjs@^7.5.1":+ "integrity" "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg=="+ "resolved" "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz"+ "version" "7.8.0"+ dependencies:+ "tslib" "^2.1.0"++"safe-buffer@^5.0.1", "safe-buffer@^5.1.2", "safe-buffer@~5.2.0":+ "integrity" "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="+ "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz"+ "version" "5.2.1"++"safer-buffer@^2.0.2", "safer-buffer@^2.1.0", "safer-buffer@>= 2.1.2 < 3.0.0", "safer-buffer@~2.1.0":+ "integrity" "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="+ "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz"+ "version" "2.1.2"++"save-pixels@^2.3.6":+ "integrity" "sha512-/ayfEWBxt0tFpf5lxSU1S0+/TBn7EiaTZD+6GL+mwizHm3BKCBysnzT6Js7BusDUVcNVLkeJJKLZcBgdpM2leQ=="+ "resolved" "https://registry.npmjs.org/save-pixels/-/save-pixels-2.3.6.tgz"+ "version" "2.3.6"+ dependencies:+ "contentstream" "^1.0.0"+ "gif-encoder" "~0.4.1"+ "jpeg-js" "^0.4.3"+ "ndarray" "^1.0.18"+ "ndarray-ops" "^1.2.2"+ "pngjs-nozlib" "^1.0.0"+ "through" "^2.3.4"++"saxes@^6.0.0":+ "integrity" "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA=="+ "resolved" "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz"+ "version" "6.0.0"+ dependencies:+ "xmlchars" "^2.2.0"++"semver-compare@^1.0.0":+ "integrity" "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow=="+ "resolved" "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz"+ "version" "1.0.0"++"semver-regex@^3.1.2":+ "integrity" "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA=="+ "resolved" "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz"+ "version" "3.1.4"++"semver@^7.3.4":+ "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A=="+ "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz"+ "version" "7.3.8"+ dependencies:+ "lru-cache" "^6.0.0"++"semver@^7.3.5":+ "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A=="+ "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz"+ "version" "7.3.8"+ dependencies:+ "lru-cache" "^6.0.0"++"semver@^7.3.8":+ "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A=="+ "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz"+ "version" "7.3.8"+ dependencies:+ "lru-cache" "^6.0.0"++"sharp@^0.31.3":+ "integrity" "sha512-XcR4+FCLBFKw1bdB+GEhnUNXNXvnt0tDo4WsBsraKymuo/IAuPuCBVAL2wIkUw2r/dwFW5Q5+g66Kwl2dgDFVg=="+ "resolved" "https://registry.npmjs.org/sharp/-/sharp-0.31.3.tgz"+ "version" "0.31.3"+ dependencies:+ "color" "^4.2.3"+ "detect-libc" "^2.0.1"+ "node-addon-api" "^5.0.0"+ "prebuild-install" "^7.1.1"+ "semver" "^7.3.8"+ "simple-get" "^4.0.1"+ "tar-fs" "^2.1.1"+ "tunnel-agent" "^0.6.0"++"shebang-command@^2.0.0":+ "integrity" "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="+ "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"+ "version" "2.0.0"+ dependencies:+ "shebang-regex" "^3.0.0"++"shebang-regex@^3.0.0":+ "integrity" "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="+ "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz"+ "version" "3.0.0"++"signal-exit@^3.0.2":+ "integrity" "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="+ "resolved" "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz"+ "version" "3.0.7"++"simple-concat@^1.0.0":+ "integrity" "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="+ "resolved" "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz"+ "version" "1.0.1"++"simple-get@^4.0.0", "simple-get@^4.0.1":+ "integrity" "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA=="+ "resolved" "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz"+ "version" "4.0.1"+ dependencies:+ "decompress-response" "^6.0.0"+ "once" "^1.3.1"+ "simple-concat" "^1.0.0"++"simple-swizzle@^0.2.2":+ "integrity" "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg=="+ "resolved" "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz"+ "version" "0.2.2"+ dependencies:+ "is-arrayish" "^0.3.1"++"slash@^3.0.0":+ "integrity" "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q=="+ "resolved" "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz"+ "version" "3.0.0"++"slice-ansi@^3.0.0":+ "integrity" "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ=="+ "resolved" "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz"+ "version" "3.0.0"+ dependencies:+ "ansi-styles" "^4.0.0"+ "astral-regex" "^2.0.0"+ "is-fullwidth-code-point" "^3.0.0"++"slice-ansi@^4.0.0":+ "integrity" "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ=="+ "resolved" "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "ansi-styles" "^4.0.0"+ "astral-regex" "^2.0.0"+ "is-fullwidth-code-point" "^3.0.0"++"source-map@~0.6.1":+ "integrity" "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="+ "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz"+ "version" "0.6.1"++"spdx-correct@^3.0.0":+ "integrity" "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w=="+ "resolved" "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz"+ "version" "3.1.1"+ dependencies:+ "spdx-expression-parse" "^3.0.0"+ "spdx-license-ids" "^3.0.0"++"spdx-exceptions@^2.1.0":+ "integrity" "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A=="+ "resolved" "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz"+ "version" "2.3.0"++"spdx-expression-parse@^3.0.0":+ "integrity" "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q=="+ "resolved" "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz"+ "version" "3.0.1"+ dependencies:+ "spdx-exceptions" "^2.1.0"+ "spdx-license-ids" "^3.0.0"++"spdx-license-ids@^3.0.0":+ "integrity" "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA=="+ "resolved" "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz"+ "version" "3.0.12"++"sshpk@^1.7.0":+ "integrity" "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ=="+ "resolved" "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz"+ "version" "1.17.0"+ dependencies:+ "asn1" "~0.2.3"+ "assert-plus" "^1.0.0"+ "bcrypt-pbkdf" "^1.0.0"+ "dashdash" "^1.12.0"+ "ecc-jsbn" "~0.1.1"+ "getpass" "^0.1.1"+ "jsbn" "~0.1.0"+ "safer-buffer" "^2.0.2"+ "tweetnacl" "~0.14.0"++"string_decoder@^1.1.1":+ "integrity" "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="+ "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz"+ "version" "1.3.0"+ dependencies:+ "safe-buffer" "~5.2.0"++"string_decoder@~0.10.x":+ "integrity" "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ=="+ "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz"+ "version" "0.10.31"++ "integrity" "sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg=="+ "resolved" "https://registry.npmjs.org/string-argv/-/string-argv-0.3.1.tgz"+ "version" "0.3.1"++"string-width@^4.1.0", "string-width@^4.2.0":+ "integrity" "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="+ "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"+ "version" "4.2.3"+ dependencies:+ "emoji-regex" "^8.0.0"+ "is-fullwidth-code-point" "^3.0.0"+ "strip-ansi" "^6.0.1"++"stringify-object@^3.3.0":+ "integrity" "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw=="+ "resolved" "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz"+ "version" "3.3.0"+ dependencies:+ "get-own-enumerable-property-symbols" "^3.0.0"+ "is-obj" "^1.0.1"+ "is-regexp" "^1.0.0"++"strip-ansi@^6.0.0", "strip-ansi@^6.0.1":+ "integrity" "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="+ "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"+ "version" "6.0.1"+ dependencies:+ "ansi-regex" "^5.0.1"++"strip-final-newline@^2.0.0":+ "integrity" "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA=="+ "resolved" "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz"+ "version" "2.0.0"++"strip-indent@^4.0.0":+ "integrity" "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA=="+ "resolved" "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "min-indent" "^1.0.1"++"strip-json-comments@~2.0.1":+ "integrity" "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ=="+ "resolved" "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz"+ "version" "2.0.1"++"supports-color@^5.3.0":+ "integrity" "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow=="+ "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz"+ "version" "5.5.0"+ dependencies:+ "has-flag" "^3.0.0"++"supports-color@^7.1.0":+ "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="+ "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"+ "version" "7.2.0"+ dependencies:+ "has-flag" "^4.0.0"++"symbol-tree@^3.2.4":+ "integrity" "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw=="+ "resolved" "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz"+ "version" "3.2.4"++"tar-fs@^2.0.0", "tar-fs@^2.1.1":+ "integrity" "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng=="+ "resolved" "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz"+ "version" "2.1.1"+ dependencies:+ "chownr" "^1.1.1"+ "mkdirp-classic" "^0.5.2"+ "pump" "^3.0.0"+ "tar-stream" "^2.1.4"++"tar-stream@^2.1.4":+ "integrity" "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ=="+ "resolved" "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz"+ "version" "2.2.0"+ dependencies:+ "bl" "^4.0.3"+ "end-of-stream" "^1.4.1"+ "fs-constants" "^1.0.0"+ "inherits" "^2.0.3"+ "readable-stream" "^3.1.1"++ "integrity" "sha512-bgYMo0WdaQhf7DhLE8OSNN/rVFO5J4K1A2VeeKqoV4MjjuHjfCP6xLpg8Xedhns7NlEnN3sZ6VJROq19Qyl6Sg=="+ "resolved" "https://registry.npmjs.org/three/-/three-0.122.0.tgz"+ "version" "0.122.0"++"through@^2.3.4", "through@^2.3.8":+ "integrity" "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg=="+ "resolved" "https://registry.npmjs.org/through/-/through-2.3.8.tgz"+ "version" "2.3.8"++"to-regex-range@^5.0.1":+ "integrity" "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="+ "resolved" "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"+ "version" "5.0.1"+ dependencies:+ "is-number" "^7.0.0"++"tough-cookie@^4.1.2":+ "integrity" "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ=="+ "resolved" "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz"+ "version" "4.1.2"+ dependencies:+ "psl" "^1.1.33"+ "punycode" "^2.1.1"+ "universalify" "^0.2.0"+ "url-parse" "^1.5.3"++"tough-cookie@~2.5.0":+ "integrity" "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g=="+ "resolved" "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz"+ "version" "2.5.0"+ dependencies:+ "psl" "^1.1.28"+ "punycode" "^2.1.1"++"tr46@^3.0.0":+ "integrity" "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA=="+ "resolved" "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz"+ "version" "3.0.0"+ dependencies:+ "punycode" "^2.1.1"++"trim-newlines@^4.0.2":+ "integrity" "sha512-GJtWyq9InR/2HRiLZgpIKv+ufIKrVrvjQWEj7PxAXNc5dwbNJkqhAUoAGgzRmULAnoOM5EIpveYd3J2VeSAIew=="+ "resolved" "https://registry.npmjs.org/trim-newlines/-/trim-newlines-4.0.2.tgz"+ "version" "4.0.2"++"tslib@^2.1.0":+ "integrity" "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="+ "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz"+ "version" "2.4.1"++"tunnel-agent@^0.6.0":+ "integrity" "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w=="+ "resolved" "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz"+ "version" "0.6.0"+ dependencies:+ "safe-buffer" "^5.0.1"++"tweetnacl@^0.14.3", "tweetnacl@~0.14.0":+ "integrity" "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA=="+ "resolved" "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz"+ "version" "0.14.5"++"type-check@~0.3.2":+ "integrity" "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg=="+ "resolved" "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz"+ "version" "0.3.2"+ dependencies:+ "prelude-ls" "~1.1.2"++"type-fest@^0.21.3":+ "integrity" "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="+ "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz"+ "version" "0.21.3"++"type-fest@^2.0.0":+ "integrity" "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA=="+ "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz"+ "version" "2.19.0"++"type-fest@^2.13.0":+ "integrity" "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA=="+ "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz"+ "version" "2.19.0"++"type-fest@^2.5.0":+ "integrity" "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA=="+ "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz"+ "version" "2.19.0"++"type-fest@^3.1.0":+ "integrity" "sha512-PEPg6RHlB9cFwoTMNENNrQFL0cXX04voWr2UPwQBJ3pVs7Mt8Y1oLWdUeMdGEwZE8HFFlujq8gS9enmyiQ8pLg=="+ "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-3.4.0.tgz"+ "version" "3.4.0"++"uniq@^1.0.0":+ "integrity" "sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA=="+ "resolved" "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz"+ "version" "1.0.1"++"universalify@^0.2.0":+ "integrity" "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg=="+ "resolved" "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz"+ "version" "0.2.0"++"universalify@^2.0.0":+ "integrity" "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ=="+ "resolved" "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz"+ "version" "2.0.0"++"uri-js@^4.2.2":+ "integrity" "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="+ "resolved" "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz"+ "version" "4.4.1"+ dependencies:+ "punycode" "^2.1.0"++"url-parse@^1.5.3":+ "integrity" "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ=="+ "resolved" "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz"+ "version" "1.5.10"+ dependencies:+ "querystringify" "^2.1.1"+ "requires-port" "^1.0.0"++"util-deprecate@^1.0.1":+ "integrity" "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="+ "resolved" "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"+ "version" "1.0.2"++"uuid@^3.3.2":+ "integrity" "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="+ "resolved" "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz"+ "version" "3.4.0"++"validate-npm-package-license@^3.0.1", "validate-npm-package-license@^3.0.4":+ "integrity" "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew=="+ "resolved" "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz"+ "version" "3.0.4"+ dependencies:+ "spdx-correct" "^3.0.0"+ "spdx-expression-parse" "^3.0.0"++ "integrity" "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw=="+ "resolved" "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz"+ "version" "1.10.0"+ dependencies:+ "assert-plus" "^1.0.0"+ "core-util-is" "1.0.2"+ "extsprintf" "^1.2.0"++"w3c-xmlserializer@^4.0.0":+ "integrity" "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw=="+ "resolved" "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz"+ "version" "4.0.0"+ dependencies:+ "xml-name-validator" "^4.0.0"++"webidl-conversions@^7.0.0":+ "integrity" "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g=="+ "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz"+ "version" "7.0.0"++"whatwg-encoding@^2.0.0":+ "integrity" "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg=="+ "resolved" "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz"+ "version" "2.0.0"+ dependencies:+ "iconv-lite" "0.6.3"++"whatwg-mimetype@^3.0.0":+ "integrity" "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q=="+ "resolved" "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz"+ "version" "3.0.0"++"whatwg-url@^11.0.0":+ "integrity" "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ=="+ "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz"+ "version" "11.0.0"+ dependencies:+ "tr46" "^3.0.0"+ "webidl-conversions" "^7.0.0"++"which-pm-runs@^1.0.0":+ "integrity" "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA=="+ "resolved" "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz"+ "version" "1.1.0"++"which@^2.0.1":+ "integrity" "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="+ "resolved" "https://registry.npmjs.org/which/-/which-2.0.2.tgz"+ "version" "2.0.2"+ dependencies:+ "isexe" "^2.0.0"++"word-wrap@~1.2.3":+ "integrity" "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ=="+ "resolved" "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz"+ "version" "1.2.3"++"wrap-ansi@^6.2.0":+ "integrity" "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA=="+ "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz"+ "version" "6.2.0"+ dependencies:+ "ansi-styles" "^4.0.0"+ "string-width" "^4.1.0"+ "strip-ansi" "^6.0.0"++"wrap-ansi@^7.0.0":+ "integrity" "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="+ "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"+ "version" "7.0.0"+ dependencies:+ "ansi-styles" "^4.0.0"+ "string-width" "^4.1.0"+ "strip-ansi" "^6.0.0"++"wrappy@1":+ "integrity" "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="+ "resolved" "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"+ "version" "1.0.2"++"ws@^8.11.0":+ "integrity" "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg=="+ "resolved" "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz"+ "version" "8.11.0"++"xml-name-validator@^4.0.0":+ "integrity" "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw=="+ "resolved" "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz"+ "version" "4.0.0"++"xmlchars@^2.2.0":+ "integrity" "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="+ "resolved" "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz"+ "version" "2.2.0"++"yallist@^4.0.0":+ "integrity" "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="+ "resolved" "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"+ "version" "4.0.0"++"yaml@^1.10.0":+ "integrity" "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="+ "resolved" "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz"+ "version" "1.10.2"++"yargs-parser@^21.1.1":+ "integrity" "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="+ "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz"+ "version" "21.1.1"++"yocto-queue@^0.1.0":+ "integrity" "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="+ "resolved" "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"+ "version" "0.1.0"++"yocto-queue@^1.0.0":+ "integrity" "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g=="+ "resolved" "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz"+ "version" "1.0.0"diff --git a/vendor/three-ws-fork/iframe-example/.prettierrc b/vendor/three-ws-fork/iframe-example/.prettierrcnew file mode 100644index 000000000..452a2c0fa--- /dev/null+++ b/vendor/three-ws-fork/iframe-example/.prettierrc@@ -0,0 +1,7 @@+{+ "tabWidth": 2,+ "trailingComma": "none",+ "printWidth": 120,+ "singleQuote": true,+ "useTabs": false+}diff --git a/vendor/three-ws-fork/iframe-example/src/iframe.html b/vendor/three-ws-fork/iframe-example/src/iframe.htmlnew file mode 100644index 000000000..3e83a5529--- /dev/null+++ b/vendor/three-ws-fork/iframe-example/src/iframe.html@@ -0,0 +1,98 @@+<!DOCTYPE html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta+ name="viewport"+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"+ />+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />+ <title>Document</title>+ <style>+ html,+ body,+ .frame {+ width: 1080px;+ height: 800px;+ margin: 0;+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans,+ Droid Sans, Helvetica Neue, sans-serif;+ padding: 20px;+ font-size: 14px;+ border: none;+ }+ .warning {+ background-color: #df68a2;+ padding: 3px;+ border-radius: 5px;+ color: white;+ }+ </style>+ </head>++ <body>+ <h2>three.ws iframe example</h2>+ <ul>+ <li>Create an avatar and hit the "Next" button when you're finished customizing your avatar.</li>+ <li>This parent page will receive the url to the avatar when it is created.</li>+ <li>URL will be displayed, and three.ws window will be closed.</li>+ </ul>+ <p class="warning">+ If you are a three.ws partner, don't forget to replace 'demo' in the iframe source url with your partner+ subdomain.+ </p>++ <p id="avatarUrl">Avatar URL:</p>++ <iframe id="frame" class="frame" allow="camera *; microphone *; clipboard-write"></iframe>++ <script>+ const subdomain = 'demo'; // Replace with your custom subdomain+ const frame = document.getElementById('frame');++ frame.src = `https://${subdomain}.three.ws/avatar?frameApi`;++ window.addEventListener('message', subscribe);+ document.addEventListener('message', subscribe);++ function subscribe(event) {+ const json = parse(event);++ if (json?.source !== 'threews') {+ return;+ }++ // Susbribe to all events sent from three.ws once frame is ready+ if (json.eventName === 'v1.frame.ready') {+ frame.contentWindow.postMessage(+ JSON.stringify({+ target: 'threews',+ type: 'subscribe',+ eventName: 'v1.**'+ }),+ '*'+ );+ }++ // Get avatar GLB URL+ if (json.eventName === 'v1.avatar.exported') {+ console.log(`Avatar URL: ${json.data.url}`);+ document.getElementById('avatarUrl').innerHTML = `Avatar URL: ${json.data.url}`;+ }++ // Get user id+ if (json.eventName === 'v1.user.set') {+ console.log(`User with id ${json.data.id} set: ${JSON.stringify(json)}`);+ }+ }++ function parse(event) {+ try {+ return JSON.parse(event.data);+ } catch (error) {+ return null;+ }+ }+ </script>+ </body>+</html>diff --git a/vendor/three-ws-fork/proxy-server-example/.env.example b/vendor/three-ws-fork/proxy-server-example/.env.examplenew file mode 100644index 000000000..075be9bc4--- /dev/null+++ b/vendor/three-ws-fork/proxy-server-example/.env.example@@ -0,0 +1,4 @@+PORT=""+HOST=""+API_SERVICE_URL=""+THREEWS_API_KEY=""\ No newline at end of filediff --git a/vendor/three-ws-fork/proxy-server-example/.gitignore b/vendor/three-ws-fork/proxy-server-example/.gitignorenew file mode 100644index 000000000..6f747ccd3--- /dev/null+++ b/vendor/three-ws-fork/proxy-server-example/.gitignore@@ -0,0 +1,129 @@+# Logs+logs+*.log+npm-debug.log*+yarn-debug.log*+yarn-error.log*+lerna-debug.log*+.pnpm-debug.log*++# Diagnostic reports (https://nodejs.org/api/report.html)+report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json++# Runtime data+pids+*.pid+*.seed+*.pid.lock++# Directory for instrumented libs generated by jscoverage/JSCover+lib-cov++# Coverage directory used by tools like istanbul+coverage+*.lcov++# nyc test coverage+.nyc_output++# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)+.grunt++# Bower dependency directory (https://bower.io/)+bower_components++# node-waf configuration+.lock-wscript++# Compiled binary addons (https://nodejs.org/api/addons.html)+build/Release++# Dependency directories+node_modules/+jspm_packages/++# Snowpack dependency directory (https://snowpack.dev/)+web_modules/++# TypeScript cache+*.tsbuildinfo++# Optional npm cache directory+.npm++# Optional eslint cache+.eslintcache++# Optional stylelint cache+.stylelintcache++# Microbundle cache+.rpt2_cache/+.rts2_cache_cjs/+.rts2_cache_es/+.rts2_cache_umd/++# Optional REPL history+.node_repl_history++# Output of 'npm pack'+*.tgz++# Yarn Integrity file+.yarn-integrity++# dotenv environment variable files+.env.development.local+.env.test.local+.env.production.local+.env.local++# parcel-bundler cache (https://parceljs.org/)+.cache+.parcel-cache++# Next.js build output+.next+out++# Nuxt.js build / generate output+.nuxt+dist++# Gatsby files+.cache/+# Comment in the public line in if your project uses Gatsby and not Next.js+# https://nextjs.org/blog/next-9-1#public-directory-support+# public++# vuepress build output+.vuepress/dist++# vuepress v2.x temp and cache directory+.temp+.cache++# Docusaurus cache and generated files+.docusaurus++# Serverless directories+.serverless/++# FuseBox cache+.fusebox/++# DynamoDB Local files+.dynamodb/++# TernJS port file+.tern-port++# Stores VSCode versions used for testing VSCode extensions+.vscode-test++# yarn v2+.yarn/cache+.yarn/unplugged+.yarn/build-state.yml+.yarn/install-state.gz+.pnp.*diff --git a/vendor/three-ws-fork/proxy-server-example/index.js b/vendor/three-ws-fork/proxy-server-example/index.jsnew file mode 100644index 000000000..cee052c96--- /dev/null+++ b/vendor/three-ws-fork/proxy-server-example/index.js@@ -0,0 +1,38 @@+const express = require('express');+const { createProxyMiddleware } = require('http-proxy-middleware');+const dotenv = require('dotenv');++dotenv.config();+dotenv.config({ path: '.env.local' });++const app = express();++const PORT = process.env.PORT;+const HOST = process.env.HOST;+const API_KEY = process.env.THREEWS_API_KEY; // Either add your three.ws API key here, or add it as an env var.+const API_SERVICE_URL = process.env.API_SERVICE_URL;++function authCheck() {+ // Add you custom authorization logic here.+ return true;+ }++ app.use('', (req, res, next) => {+ if (authCheck()) {+ next();+ } else {+ res.sendStatus(403);+ }+ });++app.use('', createProxyMiddleware({+ target: API_SERVICE_URL,+ changeOrigin: true,+ headers: {+ 'x-api-key': API_KEY+ }+ }));++ app.listen(PORT, HOST, () => {+ console.log(`Starting Proxy at ${HOST}:${PORT}`);+ });\ No newline at end of filediff --git a/vendor/three-ws-fork/proxy-server-example/package-lock.json b/vendor/three-ws-fork/proxy-server-example/package-lock.jsonnew file mode 100644index 000000000..44c6e09dd--- /dev/null+++ b/vendor/three-ws-fork/proxy-server-example/package-lock.json@@ -0,0 +1,1530 @@+{+ "name": "three-ws-proxy-server-example",+ "version": "1.0.0",+ "lockfileVersion": 2,+ "requires": true,+ "packages": {+ "": {+ "name": "three-ws-proxy-server-example",+ "version": "1.0.0",+ "license": "ISC",+ "dependencies": {+ "dotenv": "^16.4.5",+ "express": "^4.19.2",+ "http-proxy-middleware": "^3.0.0"+ }+ },+ "node_modules/@types/http-proxy": {+ "version": "1.17.14",+ "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.14.tgz",+ "integrity": "sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w==",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/node": {+ "version": "20.12.7",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz",+ "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==",+ "dependencies": {+ "undici-types": "~5.26.4"+ }+ },+ "node_modules/accepts": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",+ "dependencies": {+ "mime-types": "~2.1.34",+ "negotiator": "0.6.3"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/array-flatten": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="+ },+ "node_modules/body-parser": {+ "version": "1.20.2",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",+ "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==",+ "dependencies": {+ "bytes": "3.1.2",+ "content-type": "~1.0.5",+ "debug": "2.6.9",+ "depd": "2.0.0",+ "destroy": "1.2.0",+ "http-errors": "2.0.0",+ "iconv-lite": "0.4.24",+ "on-finished": "2.4.1",+ "qs": "6.11.0",+ "raw-body": "2.5.2",+ "type-is": "~1.6.18",+ "unpipe": "1.0.0"+ },+ "engines": {+ "node": ">= 0.8",+ "npm": "1.2.8000 || >= 1.4.16"+ }+ },+ "node_modules/braces": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",+ "dependencies": {+ "fill-range": "^7.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/content-disposition": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",+ "dependencies": {+ "safe-buffer": "5.2.1"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",+ "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie-signature": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",+ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="+ },+ "node_modules/debug": {+ "version": "2.6.9",+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",+ "dependencies": {+ "ms": "2.0.0"+ }+ },+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/destroy": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",+ "engines": {+ "node": ">= 0.8",+ "npm": "1.2.8000 || >= 1.4.16"+ }+ },+ "node_modules/dotenv": {+ "version": "16.4.5",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",+ "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="+ },+ "node_modules/encodeurl": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",+ "dependencies": {+ "get-intrinsic": "^1.2.4"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="+ },+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/eventemitter3": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",+ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="+ },+ "node_modules/express": {+ "version": "4.19.2",+ "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",+ "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==",+ "dependencies": {+ "accepts": "~1.3.8",+ "array-flatten": "1.1.1",+ "body-parser": "1.20.2",+ "content-disposition": "0.5.4",+ "content-type": "~1.0.4",+ "cookie": "0.6.0",+ "cookie-signature": "1.0.6",+ "debug": "2.6.9",+ "depd": "2.0.0",+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "etag": "~1.8.1",+ "finalhandler": "1.2.0",+ "fresh": "0.5.2",+ "http-errors": "2.0.0",+ "merge-descriptors": "1.0.1",+ "methods": "~1.1.2",+ "on-finished": "2.4.1",+ "parseurl": "~1.3.3",+ "path-to-regexp": "0.1.7",+ "proxy-addr": "~2.0.7",+ "qs": "6.11.0",+ "range-parser": "~1.2.1",+ "safe-buffer": "5.2.1",+ "send": "0.18.0",+ "serve-static": "1.15.0",+ "setprototypeof": "1.2.0",+ "statuses": "2.0.1",+ "type-is": "~1.6.18",+ "utils-merge": "1.0.1",+ "vary": "~1.1.2"+ },+ "engines": {+ "node": ">= 0.10.0"+ }+ },+ "node_modules/fill-range": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/finalhandler": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",+ "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",+ "dependencies": {+ "debug": "2.6.9",+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "on-finished": "2.4.1",+ "parseurl": "~1.3.3",+ "statuses": "2.0.1",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/follow-redirects": {+ "version": "1.15.6",+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",+ "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/RubenVerborgh"+ }+ ],+ "engines": {+ "node": ">=4.0"+ },+ "peerDependenciesMeta": {+ "debug": {+ "optional": true+ }+ }+ },+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fresh": {+ "version": "0.5.2",+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "has-proto": "^1.0.1",+ "has-symbols": "^1.0.3",+ "hasown": "^2.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gopd": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",+ "dependencies": {+ "get-intrinsic": "^1.1.3"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-proto": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/http-errors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",+ "dependencies": {+ "depd": "2.0.0",+ "inherits": "2.0.4",+ "setprototypeof": "1.2.0",+ "statuses": "2.0.1",+ "toidentifier": "1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/http-proxy": {+ "version": "1.18.1",+ "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz",+ "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==",+ "dependencies": {+ "eventemitter3": "^4.0.0",+ "follow-redirects": "^1.0.0",+ "requires-port": "^1.0.0"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/http-proxy-middleware": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-3.0.0.tgz",+ "integrity": "sha512-36AV1fIaI2cWRzHo+rbcxhe3M3jUDCNzc4D5zRl57sEWRAxdXYtw7FSQKYY6PDKssiAKjLYypbssHk+xs/kMXw==",+ "dependencies": {+ "@types/http-proxy": "^1.17.10",+ "debug": "^4.3.4",+ "http-proxy": "^1.18.1",+ "is-glob": "^4.0.1",+ "is-plain-obj": "^3.0.0",+ "micromatch": "^4.0.5"+ },+ "engines": {+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ }+ },+ "node_modules/http-proxy-middleware/node_modules/debug": {+ "version": "4.3.4",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",+ "dependencies": {+ "ms": "2.1.2"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/http-proxy-middleware/node_modules/ms": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="+ },+ "node_modules/iconv-lite": {+ "version": "0.4.24",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="+ },+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-plain-obj": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz",+ "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/media-typer": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",+ "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="+ },+ "node_modules/methods": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/micromatch": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",+ "dependencies": {+ "braces": "^3.0.2",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/mime": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",+ "bin": {+ "mime": "cli.js"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/ms": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="+ },+ "node_modules/negotiator": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.1",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",+ "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/path-to-regexp": {+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",+ "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/qs": {+ "version": "6.11.0",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",+ "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",+ "dependencies": {+ "side-channel": "^1.0.4"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/range-parser": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/raw-body": {+ "version": "2.5.2",+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",+ "dependencies": {+ "bytes": "3.1.2",+ "http-errors": "2.0.0",+ "iconv-lite": "0.4.24",+ "unpipe": "1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/requires-port": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",+ "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="+ },+ "node_modules/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="+ },+ "node_modules/send": {+ "version": "0.18.0",+ "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",+ "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",+ "dependencies": {+ "debug": "2.6.9",+ "depd": "2.0.0",+ "destroy": "1.2.0",+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "etag": "~1.8.1",+ "fresh": "0.5.2",+ "http-errors": "2.0.0",+ "mime": "1.6.0",+ "ms": "2.1.3",+ "on-finished": "2.4.1",+ "range-parser": "~1.2.1",+ "statuses": "2.0.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/send/node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="+ },+ "node_modules/serve-static": {+ "version": "1.15.0",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",+ "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",+ "dependencies": {+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "parseurl": "~1.3.3",+ "send": "0.18.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/set-function-length": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="+ },+ "node_modules/side-channel": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",+ "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",+ "dependencies": {+ "call-bind": "^1.0.7",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.4",+ "object-inspect": "^1.13.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/statuses": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/type-is": {+ "version": "1.6.18",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",+ "dependencies": {+ "media-typer": "0.3.0",+ "mime-types": "~2.1.24"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/undici-types": {+ "version": "5.26.5",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="+ },+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/utils-merge": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",+ "engines": {+ "node": ">= 0.4.0"+ }+ },+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "engines": {+ "node": ">= 0.8"+ }+ }+ },+ "dependencies": {+ "@types/http-proxy": {+ "version": "1.17.14",+ "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.14.tgz",+ "integrity": "sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w==",+ "requires": {+ "@types/node": "*"+ }+ },+ "@types/node": {+ "version": "20.12.7",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz",+ "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==",+ "requires": {+ "undici-types": "~5.26.4"+ }+ },+ "accepts": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",+ "requires": {+ "mime-types": "~2.1.34",+ "negotiator": "0.6.3"+ }+ },+ "array-flatten": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="+ },+ "body-parser": {+ "version": "1.20.2",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",+ "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==",+ "requires": {+ "bytes": "3.1.2",+ "content-type": "~1.0.5",+ "debug": "2.6.9",+ "depd": "2.0.0",+ "destroy": "1.2.0",+ "http-errors": "2.0.0",+ "iconv-lite": "0.4.24",+ "on-finished": "2.4.1",+ "qs": "6.11.0",+ "raw-body": "2.5.2",+ "type-is": "~1.6.18",+ "unpipe": "1.0.0"+ }+ },+ "braces": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",+ "requires": {+ "fill-range": "^7.0.1"+ }+ },+ "bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="+ },+ "call-bind": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",+ "requires": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.1"+ }+ },+ "content-disposition": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",+ "requires": {+ "safe-buffer": "5.2.1"+ }+ },+ "content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="+ },+ "cookie": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",+ "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw=="+ },+ "cookie-signature": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",+ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="+ },+ "debug": {+ "version": "2.6.9",+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",+ "requires": {+ "ms": "2.0.0"+ }+ },+ "define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "requires": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ }+ },+ "depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="+ },+ "destroy": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg=="+ },+ "dotenv": {+ "version": "16.4.5",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",+ "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg=="+ },+ "ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="+ },+ "encodeurl": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w=="+ },+ "es-define-property": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",+ "requires": {+ "get-intrinsic": "^1.2.4"+ }+ },+ "es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="+ },+ "escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="+ },+ "etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="+ },+ "eventemitter3": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",+ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="+ },+ "express": {+ "version": "4.19.2",+ "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",+ "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==",+ "requires": {+ "accepts": "~1.3.8",+ "array-flatten": "1.1.1",+ "body-parser": "1.20.2",+ "content-disposition": "0.5.4",+ "content-type": "~1.0.4",+ "cookie": "0.6.0",+ "cookie-signature": "1.0.6",+ "debug": "2.6.9",+ "depd": "2.0.0",+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "etag": "~1.8.1",+ "finalhandler": "1.2.0",+ "fresh": "0.5.2",+ "http-errors": "2.0.0",+ "merge-descriptors": "1.0.1",+ "methods": "~1.1.2",+ "on-finished": "2.4.1",+ "parseurl": "~1.3.3",+ "path-to-regexp": "0.1.7",+ "proxy-addr": "~2.0.7",+ "qs": "6.11.0",+ "range-parser": "~1.2.1",+ "safe-buffer": "5.2.1",+ "send": "0.18.0",+ "serve-static": "1.15.0",+ "setprototypeof": "1.2.0",+ "statuses": "2.0.1",+ "type-is": "~1.6.18",+ "utils-merge": "1.0.1",+ "vary": "~1.1.2"+ }+ },+ "fill-range": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",+ "requires": {+ "to-regex-range": "^5.0.1"+ }+ },+ "finalhandler": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",+ "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",+ "requires": {+ "debug": "2.6.9",+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "on-finished": "2.4.1",+ "parseurl": "~1.3.3",+ "statuses": "2.0.1",+ "unpipe": "~1.0.0"+ }+ },+ "follow-redirects": {+ "version": "1.15.6",+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",+ "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA=="+ },+ "forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="+ },+ "fresh": {+ "version": "0.5.2",+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="+ },+ "function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="+ },+ "get-intrinsic": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",+ "requires": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "has-proto": "^1.0.1",+ "has-symbols": "^1.0.3",+ "hasown": "^2.0.0"+ }+ },+ "gopd": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",+ "requires": {+ "get-intrinsic": "^1.1.3"+ }+ },+ "has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "requires": {+ "es-define-property": "^1.0.0"+ }+ },+ "has-proto": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q=="+ },+ "has-symbols": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A=="+ },+ "hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "requires": {+ "function-bind": "^1.1.2"+ }+ },+ "http-errors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",+ "requires": {+ "depd": "2.0.0",+ "inherits": "2.0.4",+ "setprototypeof": "1.2.0",+ "statuses": "2.0.1",+ "toidentifier": "1.0.1"+ }+ },+ "http-proxy": {+ "version": "1.18.1",+ "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz",+ "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==",+ "requires": {+ "eventemitter3": "^4.0.0",+ "follow-redirects": "^1.0.0",+ "requires-port": "^1.0.0"+ }+ },+ "http-proxy-middleware": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-3.0.0.tgz",+ "integrity": "sha512-36AV1fIaI2cWRzHo+rbcxhe3M3jUDCNzc4D5zRl57sEWRAxdXYtw7FSQKYY6PDKssiAKjLYypbssHk+xs/kMXw==",+ "requires": {+ "@types/http-proxy": "^1.17.10",+ "debug": "^4.3.4",+ "http-proxy": "^1.18.1",+ "is-glob": "^4.0.1",+ "is-plain-obj": "^3.0.0",+ "micromatch": "^4.0.5"+ },+ "dependencies": {+ "debug": {+ "version": "4.3.4",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",+ "requires": {+ "ms": "2.1.2"+ }+ },+ "ms": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="+ }+ }+ },+ "iconv-lite": {+ "version": "0.4.24",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",+ "requires": {+ "safer-buffer": ">= 2.1.2 < 3"+ }+ },+ "inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="+ },+ "ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="+ },+ "is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="+ },+ "is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "requires": {+ "is-extglob": "^2.1.1"+ }+ },+ "is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="+ },+ "is-plain-obj": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz",+ "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA=="+ },+ "media-typer": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="+ },+ "merge-descriptors": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",+ "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="+ },+ "methods": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w=="+ },+ "micromatch": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",+ "requires": {+ "braces": "^3.0.2",+ "picomatch": "^2.3.1"+ }+ },+ "mime": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="+ },+ "mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="+ },+ "mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "requires": {+ "mime-db": "1.52.0"+ }+ },+ "ms": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="+ },+ "negotiator": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="+ },+ "object-inspect": {+ "version": "1.13.1",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",+ "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ=="+ },+ "on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "requires": {+ "ee-first": "1.1.1"+ }+ },+ "parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="+ },+ "path-to-regexp": {+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",+ "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="+ },+ "picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="+ },+ "proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "requires": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ }+ },+ "qs": {+ "version": "6.11.0",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",+ "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",+ "requires": {+ "side-channel": "^1.0.4"+ }+ },+ "range-parser": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="+ },+ "raw-body": {+ "version": "2.5.2",+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",+ "requires": {+ "bytes": "3.1.2",+ "http-errors": "2.0.0",+ "iconv-lite": "0.4.24",+ "unpipe": "1.0.0"+ }+ },+ "requires-port": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",+ "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="+ },+ "safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="+ },+ "safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="+ },+ "send": {+ "version": "0.18.0",+ "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",+ "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",+ "requires": {+ "debug": "2.6.9",+ "depd": "2.0.0",+ "destroy": "1.2.0",+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "etag": "~1.8.1",+ "fresh": "0.5.2",+ "http-errors": "2.0.0",+ "mime": "1.6.0",+ "ms": "2.1.3",+ "on-finished": "2.4.1",+ "range-parser": "~1.2.1",+ "statuses": "2.0.1"+ },+ "dependencies": {+ "ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="+ }+ }+ },+ "serve-static": {+ "version": "1.15.0",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",+ "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",+ "requires": {+ "encodeurl": "~1.0.2",+ "escape-html": "~1.0.3",+ "parseurl": "~1.3.3",+ "send": "0.18.0"+ }+ },+ "set-function-length": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",+ "requires": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2"+ }+ },+ "setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="+ },+ "side-channel": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",+ "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",+ "requires": {+ "call-bind": "^1.0.7",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.4",+ "object-inspect": "^1.13.1"+ }+ },+ "statuses": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="+ },+ "to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "requires": {+ "is-number": "^7.0.0"+ }+ },+ "toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="+ },+ "type-is": {+ "version": "1.6.18",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",+ "requires": {+ "media-typer": "0.3.0",+ "mime-types": "~2.1.24"+ }+ },+ "undici-types": {+ "version": "5.26.5",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="+ },+ "unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="+ },+ "utils-merge": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="+ },+ "vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="+ }+ }+}diff --git a/vendor/three-ws-fork/proxy-server-example/package.json b/vendor/three-ws-fork/proxy-server-example/package.jsonnew file mode 100644index 000000000..b128506b0--- /dev/null+++ b/vendor/three-ws-fork/proxy-server-example/package.json@@ -0,0 +1,24 @@+{+ "name": "@three-ws/proxy-server-example",+ "version": "1.0.0",+ "description": "Sample server proxy that hides partner API keys (three.ws fork).",+ "main": "index.js",+ "scripts": {+ "start": "node index.js"+ },+ "author": "three.ws contributors",+ "license": "MIT",+ "dependencies": {+ "dotenv": "^16.4.5",+ "express": "^4.19.2",+ "http-proxy-middleware": "^3.0.0"+ },+ "repository": {+ "type": "git",+ "url": "git+https://github.com/nirholas/three.ws.git",+ "directory": "vendor/three-ws-fork/proxy-server-example"+ },+ "bugs": {+ "url": "https://github.com/nirholas/three.ws/issues"+ }+}diff --git a/vendor/three-ws-fork/react-avatar-creator/.gitattributes b/vendor/three-ws-fork/react-avatar-creator/.gitattributesnew file mode 100644index 000000000..fcadb2cf9--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/.gitattributes@@ -0,0 +1 @@+* text eol=lfdiff --git a/vendor/three-ws-fork/react-avatar-creator/.gitignore b/vendor/three-ws-fork/react-avatar-creator/.gitignorenew file mode 100644index 000000000..acf07e09f--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/.gitignore@@ -0,0 +1,7 @@+*.log+.DS_Store+node_modules+.cache+dist+storybook-static+.idea/diff --git a/vendor/three-ws-fork/react-avatar-creator/package.json b/vendor/three-ws-fork/react-avatar-creator/package.jsonnew file mode 100644index 000000000..392bf7433--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/package.json@@ -0,0 +1,73 @@+{+ "name": "@three-ws/react-avatar-creator",+ "version": "0.5.0",+ "description": "three.ws - React Avatar Creator",+ "keywords": [+ "threews",+ "avatar",+ "react",+ "typescript",+ "glb"+ ],+ "license": "MIT",+ "author": "three.ws",+ "main": "dist/index.js",+ "module": "dist/index.esm.js",+ "typings": "dist/index.d.ts",+ "scripts": {+ "analyze": "size-limit --why",+ "build": "rollup -c",+ "lint": "dts lint",+ "prepare": "rollup -c",+ "size": "size-limit",+ "start": "dts watch",+ "test": "dts test --passWithNoTests"+ },+ "husky": {+ "hooks": {+ "pre-commit": "dts lint"+ }+ },+ "prettier": {+ "printWidth": 400,+ "semi": true,+ "singleQuote": true,+ "trailingComma": "es5",+ "endOfLine": "auto"+ },+ "engines": {+ "node": ">=12"+ },+ "devDependencies": {+ "@babel/core": "^7.21.4",+ "@rollup/plugin-typescript": "^11.1.2",+ "@size-limit/preset-small-lib": "^8.2.4",+ "@tsconfig/recommended": "^1.0.2",+ "@tsconfig/vite-react": "^1.0.1",+ "@types/react": "^17.0.40",+ "@types/react-dom": "^17.0.13",+ "babel-loader": "^9.1.2",+ "dts-cli": "^2.0.2",+ "husky": "^8.0.3",+ "react": ">=17.0",+ "react-dom": ">=17.0",+ "react-is": "^18.2.0",+ "rollup": "^3.26.0",+ "rollup-plugin-dts": "^5.3.0",+ "size-limit": "^8.2.4",+ "tslib": "^2.5.0",+ "typescript": "^5.0.4",+ "vite": "^4.3.1"+ },+ "peerDependencies": {+ "react": ">=16"+ },+ "repository": {+ "type": "git",+ "url": "git+https://github.com/nirholas/three.ws.git",+ "directory": "vendor/three-ws-fork/react-avatar-creator"+ },+ "bugs": {+ "url": "https://github.com/nirholas/three.ws/issues"+ }+}diff --git a/vendor/three-ws-fork/react-avatar-creator/rollup.config.js b/vendor/three-ws-fork/react-avatar-creator/rollup.config.jsnew file mode 100644index 000000000..cadd5d8ef--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/rollup.config.js@@ -0,0 +1,33 @@+const typescript = require('@rollup/plugin-typescript');+const { default: dts } = require('rollup-plugin-dts');+const packageJson = require('./package.json');++// rollup.config.js+module.exports = [+ {+ input: 'src/index.tsx',+ output: [+ {+ file: packageJson.main,+ format: 'cjs',+ sourcemap: false,+ },+ {+ file: packageJson.module,+ format: 'esm',+ sourcemap: false,+ },+ ],+ plugins: [+ typescript({+ tsconfig: './tsconfig.json',+ }),+ ],+ external: ['react'],+ },+ {+ input: 'src/index.tsx',+ output: [{ file: 'dist/index.d.ts' }],+ plugins: [dts()],+ },+];diff --git a/vendor/three-ws-fork/react-avatar-creator/src/components/avatar-creator-raw.tsx b/vendor/three-ws-fork/react-avatar-creator/src/components/avatar-creator-raw.tsxnew file mode 100644index 000000000..b5849347d--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/components/avatar-creator-raw.tsx@@ -0,0 +1,70 @@+import React, { CSSProperties, FC, useEffect, useRef } from 'react';+import { AvatarCreatorConfig } from '../types';+import { JSONTryParse } from '../utils';+import { AvatarCreatorEvent } from '../events';+import { useAvatarCreatorUrl } from '../hooks/use-avatar-creator-url';++const MESSAGE_EVENT = 'message';+const THREEWS_TARGET = 'threews';+const IFRAME_READY_EVENT = 'v1.frame.ready';++export type AvatarCreatorRawProps = {+ subdomain: string;+ className?: string;+ style?: CSSProperties;+ config?: AvatarCreatorConfig;+};++export type EventReceivedProps = {+ onEventReceived?: (event: AvatarCreatorEvent) => void;+};++/**+ * AvatarCreatorRaw is a React component that allows you to create an avatar using three.ws and receive avatar URL. It exposes the raw events in one callback to allow you to write more custom logic around the event handling.+ * @param subdomain The subdomain of your three.ws instance.+ * @param className The css classes to apply to this iframe.+ * @param style The css styles to apply to this iframe.+ * @param avatarCreatorConfig The configuration for the AvatarCreator component.+ * @param onEventReceived A callback that is called when an avatar creator event is received.+ * @returns A React component.+ */+export const AvatarCreatorRaw: FC<AvatarCreatorRawProps & EventReceivedProps> = ({ subdomain, className, style, config, onEventReceived }) => {+ const frameRef = useRef<HTMLIFrameElement | null>(null);+ const url = useAvatarCreatorUrl(subdomain, config);++ const subscribeToAvatarCreatorEvents = () => {+ if (!frameRef.current?.contentWindow) return;++ frameRef.current?.contentWindow?.postMessage(+ JSON.stringify({+ target: THREEWS_TARGET,+ type: 'subscribe',+ eventName: 'v1.**',+ }),+ '*'+ );+ };++ const subscribe = (event: MessageEvent) => {+ const avatarCreatorEvent = JSONTryParse<AvatarCreatorEvent>(event.data);++ if (avatarCreatorEvent?.source !== THREEWS_TARGET) return;++ if (avatarCreatorEvent?.eventName === IFRAME_READY_EVENT) {+ subscribeToAvatarCreatorEvents();+ return;+ }++ onEventReceived?.(avatarCreatorEvent);+ };++ useEffect(() => {+ window.addEventListener(MESSAGE_EVENT, subscribe);++ return () => {+ window.removeEventListener(MESSAGE_EVENT, subscribe);+ };+ }, []);++ return <iframe title="three.ws" ref={frameRef} src={url} style={style} className={className} allow="camera *; clipboard-write" />;+};diff --git a/vendor/three-ws-fork/react-avatar-creator/src/components/avatar-creator.tsx b/vendor/three-ws-fork/react-avatar-creator/src/components/avatar-creator.tsxnew file mode 100644index 000000000..e94cd3aa9--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/components/avatar-creator.tsx@@ -0,0 +1,37 @@+import React, { FC } from 'react';+import { AvatarCreatorEvent, UserAuthorizedEvent, AssetUnlockedEvent, AvatarExportedEvent, UserSetEvent } from '../events';+import { AvatarCreatorRaw, AvatarCreatorRawProps } from './avatar-creator-raw';++export type AvatarCreatorProps = {+ onUserSet?: (event: UserSetEvent) => void;+ onAvatarExported?: (event: AvatarExportedEvent) => void;+ onUserAuthorized?: (event: UserAuthorizedEvent) => void;+ onAssetUnlock?: (event: AssetUnlockedEvent) => void;+} & AvatarCreatorRawProps;++/**+ * AvatarCreator is a React component that allows you to create an avatar using three.ws and receive avatar URL. It wraps AvatarCreatorRaw to provide more type safety, and to provide explicit callbacks per event type.+ * @param subdomain The subdomain of your three.ws instance.+ * @param className The css classes to apply to this iframe.+ * @param style The css styles to apply to this iframe.+ * @param config The configuration for the AvatarCreator component.+ * @param onUserSet A callback that is called when a user is set.+ * @param onAvatarExported A callback that is called when an avatar is exported.+ * @param onUserAuthorized A callback that is called when a user is authorized.+ * @param onAssetUnlock A callback that is called when an asset unlock button is pressed in RPM.+ * @returns A React component.+ */+export const AvatarCreator: FC<AvatarCreatorProps> = ({ subdomain, className, style, config, onUserSet, onAvatarExported, onUserAuthorized, onAssetUnlock }) => {+ const supportedEvents = {+ 'v1.avatar.exported': onAvatarExported,+ 'v1.user.set': onUserSet,+ 'v1.user.authorized': onUserAuthorized,+ 'v1.asset.unlock': onAssetUnlock,+ } as Record<string, any>;++ const handleEvents = (event: AvatarCreatorEvent) => {+ supportedEvents[event.eventName!]?.(event);+ };++ return <AvatarCreatorRaw subdomain={subdomain} className={className} style={style} config={config} onEventReceived={handleEvents} />;+};diff --git a/vendor/three-ws-fork/react-avatar-creator/src/components/index.ts b/vendor/three-ws-fork/react-avatar-creator/src/components/index.tsnew file mode 100644index 000000000..fe8cfc05e--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/components/index.ts@@ -0,0 +1,2 @@+export { AvatarCreator } from './avatar-creator';+export { AvatarCreatorRaw } from './avatar-creator-raw';diff --git a/vendor/three-ws-fork/react-avatar-creator/src/events/asset-unlocked.event.ts b/vendor/three-ws-fork/react-avatar-creator/src/events/asset-unlocked.event.tsnew file mode 100644index 000000000..afe2581b8--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/events/asset-unlocked.event.ts@@ -0,0 +1,8 @@+import { IFrameEvent } from '../types';++export type AssetUnlockedEventPayload = {+ userId: string;+ assetId: string;+};++export type AssetUnlockedEvent = IFrameEvent<AssetUnlockedEventPayload>;diff --git a/vendor/three-ws-fork/react-avatar-creator/src/events/avatar-exported.event.ts b/vendor/three-ws-fork/react-avatar-creator/src/events/avatar-exported.event.tsnew file mode 100644index 000000000..2b8d9e442--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/events/avatar-exported.event.ts@@ -0,0 +1,9 @@+import { IFrameEvent } from '../types';++export type AvatarExportedEventPayload = {+ url: string;+ userId: string;+ avatarId: string;+};++export type AvatarExportedEvent = IFrameEvent<AvatarExportedEventPayload>;diff --git a/vendor/three-ws-fork/react-avatar-creator/src/events/index.ts b/vendor/three-ws-fork/react-avatar-creator/src/events/index.tsnew file mode 100644index 000000000..ea313d610--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/events/index.ts@@ -0,0 +1,11 @@+import { UserSetEvent } from './user-set.event';+import { AssetUnlockedEvent } from './asset-unlocked.event';+import { UserAuthorizedEvent } from './user-authorized.event';+import { AvatarExportedEvent } from './avatar-exported.event';++export type { AssetUnlockedEvent, AssetUnlockedEventPayload } from './asset-unlocked.event';+export type { AvatarExportedEvent, AvatarExportedEventPayload } from './avatar-exported.event';+export type { UserAuthorizedEvent, UserAuthorizedEventPayload } from './user-authorized.event';+export type { UserSetEvent, UserSetEventPayload } from './user-set.event';++export type AvatarCreatorEvent = UserSetEvent | AssetUnlockedEvent | UserAuthorizedEvent | AvatarExportedEvent;diff --git a/vendor/three-ws-fork/react-avatar-creator/src/events/user-authorized.event.ts b/vendor/three-ws-fork/react-avatar-creator/src/events/user-authorized.event.tsnew file mode 100644index 000000000..3389d4f10--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/events/user-authorized.event.ts@@ -0,0 +1,7 @@+import { IFrameEvent } from '../types';++export type UserAuthorizedEventPayload = {+ url: string;+};++export type UserAuthorizedEvent = IFrameEvent<UserAuthorizedEventPayload>;diff --git a/vendor/three-ws-fork/react-avatar-creator/src/events/user-set.event.ts b/vendor/three-ws-fork/react-avatar-creator/src/events/user-set.event.tsnew file mode 100644index 000000000..2ed1d7a0d--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/events/user-set.event.ts@@ -0,0 +1,7 @@+import { IFrameEvent } from '../types';++export type UserSetEventPayload = {+ id: string;+};++export type UserSetEvent = IFrameEvent<UserSetEventPayload>;diff --git a/vendor/three-ws-fork/react-avatar-creator/src/hooks/use-avatar-creator-url.ts b/vendor/three-ws-fork/react-avatar-creator/src/hooks/use-avatar-creator-url.tsnew file mode 100644index 000000000..6f89b17a0--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/hooks/use-avatar-creator-url.ts@@ -0,0 +1,18 @@+import { AvatarCreatorConfig } from '../types';+import { useMemo } from 'react';++export const useAvatarCreatorUrl = (subdomain: string, config: AvatarCreatorConfig | undefined): string => {+ return useMemo(() => {+ let url = `https://${subdomain || `demo`}.three.ws`;++ if (config?.language) url += `/${config.language}`;+ url += `/avatar?frameApi&source=react-avatar-creator`;+ if (config?.clearCache) url += '&clearCache';+ if (config?.quickStart) url += '&quickStart';+ if (config?.bodyType) url += `&bodyType=${config?.bodyType}`;+ if (config?.token) url += `&token=${config?.token}`;+ if (config?.avatarId) url += `&id=${config?.avatarId}`;++ return url;+ }, [subdomain, config]);+};diff --git a/vendor/three-ws-fork/react-avatar-creator/src/index.tsx b/vendor/three-ws-fork/react-avatar-creator/src/index.tsxnew file mode 100644index 000000000..6ba5cdae8--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/index.tsx@@ -0,0 +1,3 @@+export { AvatarCreator, AvatarCreatorRaw } from './components';+export type { AvatarCreatorConfig, Language, BodyType, IFrameEvent } from './types';+export type * from './events';diff --git a/vendor/three-ws-fork/react-avatar-creator/src/types.ts b/vendor/three-ws-fork/react-avatar-creator/src/types.tsnew file mode 100644index 000000000..d1a8e05b0--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/types.ts@@ -0,0 +1,18 @@+export type BodyType = 'halfbody' | 'fullbody';++export type Language = 'en' | 'en-IE' | 'de' | 'fr' | 'es' | 'es-MX' | 'it' | 'pt' | 'pt-BR' | 'tr' | 'ja' | 'kr' | 'ch';++export type AvatarCreatorConfig = {+ clearCache?: boolean;+ bodyType?: BodyType;+ quickStart?: boolean;+ language?: Language;+ token?: string;+ avatarId?: string;+};++export type IFrameEvent<TPayload> = {+ eventName?: string;+ source?: string;+ data: TPayload;+};diff --git a/vendor/three-ws-fork/react-avatar-creator/src/utils.ts b/vendor/three-ws-fork/react-avatar-creator/src/utils.tsnew file mode 100644index 000000000..03bbe8063--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/src/utils.ts@@ -0,0 +1,12 @@+/**+ * Tries to parse the JSON data, and returns undefined if parsing fails.+ * @param jsonString The string to be parsed.+ * @returns The parsed JSON data or undefined if the data is not valid JSON.+ */+export const JSONTryParse = <T>(jsonString: any): T | undefined => {+ try {+ return JSON.parse(jsonString);+ } catch (error) {+ return undefined;+ }+};diff --git a/vendor/three-ws-fork/react-avatar-creator/tsconfig.json b/vendor/three-ws-fork/react-avatar-creator/tsconfig.jsonnew file mode 100644index 000000000..b71edb49d--- /dev/null+++ b/vendor/three-ws-fork/react-avatar-creator/tsconfig.json@@ -0,0 +1,12 @@+{+ // see https://www.typescriptlang.org/tsconfig to better understand tsconfigs+ "compilerOptions": {+ "jsx": "react",+ },+ "extends": "@tsconfig/vite-react/tsconfig.json",+ "include": [+ "src",+ "types",+ "utils"+ ],+}diff --git a/vendor/three-ws-fork/viewer/.eslintignore b/vendor/three-ws-fork/viewer/.eslintignorenew file mode 100644index 000000000..43d4ba4cc--- /dev/null+++ b/vendor/three-ws-fork/viewer/.eslintignore@@ -0,0 +1,3 @@+node_modules+build+docsdiff --git a/vendor/three-ws-fork/viewer/.eslintrc.js b/vendor/three-ws-fork/viewer/.eslintrc.jsnew file mode 100644index 000000000..777134fe5--- /dev/null+++ b/vendor/three-ws-fork/viewer/.eslintrc.js@@ -0,0 +1,80 @@+module.exports = {+ env: {+ browser: true,+ es2021: true,+ jest: true+ },+ extends: [+ 'airbnb',+ 'airbnb-typescript',+ 'airbnb/hooks',+ 'prettier',+ 'plugin:storybook/recommended',+ 'plugin:react-hooks/recommended'+ ],+ parser: '@typescript-eslint/parser',+ parserOptions: {+ ecmaFeatures: {+ jsx: true+ },+ ecmaVersion: 'latest',+ sourceType: 'module',+ project: './tsconfig.json'+ },+ plugins: ['react', '@typescript-eslint', 'prettier', 'react-hooks'],+ rules: {+ 'import/prefer-default-export': 'off',+ 'import/no-extraneous-dependencies': 'off',+ 'react/no-unknown-property': 'off',+ 'react/jsx-filename-extension': [+ 1,+ {+ extensions: ['.ts', '.tsx', '.js', '.jsx']+ }+ ],+ 'react/jsx-no-useless-fragment': 'off',+ 'react/react-in-jsx-scope': 'off',+ 'react/require-default-props': 'off',+ 'react/function-component-definition': 'off',+ 'react/destructuring-assignment': 'off',+ 'react/jsx-props-no-spreading': 'off',+ 'import/no-unresolved': 'off',+ 'import/extensions': [+ 'error',+ 'ignorePackages',+ {+ js: 'never',+ jsx: 'never',+ ts: 'never',+ tsx: 'never'+ }+ ],+ 'prefer-regex-literals': ['error', { disallowRedundantWrapping: false }],+ 'no-plusplus': 'off'+ },+ settings: {+ 'import/resolver': {+ node: {+ extensions: ['.ts', '.tsx', '.js', '.jsx', '.json']+ }+ },+ 'import/extensions': ['.ts', '.tsx', '.d.ts', '.js', '.jsx'],+ 'import/external-module-folders': ['node_modules', 'node_modules/@types']+ },+ overrides: [+ {+ files: ['**/*.stories.*'],+ rules: {+ 'import/no-anonymous-default-export': 'off'+ }+ },+ {+ files: ['test/**/*.ts'],+ rules: {+ 'import/no-import-module-exports': 'off',+ 'no-restricted-syntax': 'off'+ }+ }+ ],+ ignorePatterns: ['docs/*']+};diff --git a/vendor/three-ws-fork/viewer/.gitignore b/vendor/three-ws-fork/viewer/.gitignorenew file mode 100644index 000000000..1b24df640--- /dev/null+++ b/vendor/three-ws-fork/viewer/.gitignore@@ -0,0 +1,81 @@+# Logs+logs+*.log+npm-debug.log*+yarn-debug.log*+yarn-error.log*+lerna-debug.log*++# Diagnostic reports (https://nodejs.org/api/report.html)+report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json++# Runtime data+pids+*.pid+*.seed+*.pid.lock++# Directory for instrumented libs generated by jscoverage/JSCover+lib-cov++# Coverage directory used by tools like istanbul+coverage+*.lcov++# Production+/build++# Library+/dist++# IDE Logs+.idea++# node-waf configuration+.lock-wscript++# Compiled binary addons (https://nodejs.org/api/addons.html)+build/Release++# Dependency directories+node_modules/+jspm_packages/++# TypeScript v1 declaration files+typings/++# TypeScript cache+*.tsbuildinfo++# Optional npm cache directory+.npm++# Optional eslint cache+.eslintcache++# Optional REPL history+.node_repl_history++# Output of 'npm pack'+*.tgz++# dotenv environment variables file+.env+.env.test++# parcel-bundler cache (https://parceljs.org/)+.cache++# Miscellaneous+.DS_Store+.env.local+.env.development.local+.env.test.local+.env.production.local++# Storybook+storybook-static++# e2e test comparison images+test/functional/cypress-image-diff-screenshots/comparison+test/functional/cypress-image-diff-html-report\ No newline at end of filediff --git a/vendor/three-ws-fork/viewer/.husky/commit-msg b/vendor/three-ws-fork/viewer/.husky/commit-msgnew file mode 100755index 000000000..7cd8dd9a4--- /dev/null+++ b/vendor/three-ws-fork/viewer/.husky/commit-msg@@ -0,0 +1,4 @@+#!/bin/sh+. "$(dirname "$0")/_/husky.sh"++npx --no-install commitlint --editdiff --git a/vendor/three-ws-fork/viewer/.husky/pre-commit b/vendor/three-ws-fork/viewer/.husky/pre-commitnew file mode 100755index 000000000..e1c12eb03--- /dev/null+++ b/vendor/three-ws-fork/viewer/.husky/pre-commit@@ -0,0 +1,5 @@+#!/usr/bin/env sh+. "$(dirname -- "$0")/_/husky.sh"++npm test+npx lint-stageddiff --git a/vendor/three-ws-fork/viewer/.npmignore b/vendor/three-ws-fork/viewer/.npmignorenew file mode 100644index 000000000..7702fb635--- /dev/null+++ b/vendor/three-ws-fork/viewer/.npmignore@@ -0,0 +1,4 @@+.github+.husky+.storybook+storybook-static\ No newline at end of filediff --git a/vendor/three-ws-fork/viewer/.npmrc b/vendor/three-ws-fork/viewer/.npmrcnew file mode 100644index 000000000..8316df36f--- /dev/null+++ b/vendor/three-ws-fork/viewer/.npmrc@@ -0,0 +1,2 @@+engine-strict=true+auto-install-peers=true\ No newline at end of filediff --git a/vendor/three-ws-fork/viewer/.prettierignore b/vendor/three-ws-fork/viewer/.prettierignorenew file mode 100644index 000000000..43d4ba4cc--- /dev/null+++ b/vendor/three-ws-fork/viewer/.prettierignore@@ -0,0 +1,3 @@+node_modules+build+docsdiff --git a/vendor/three-ws-fork/viewer/.prettierrc b/vendor/three-ws-fork/viewer/.prettierrcnew file mode 100644index 000000000..452a2c0fa--- /dev/null+++ b/vendor/three-ws-fork/viewer/.prettierrc@@ -0,0 +1,7 @@+{+ "tabWidth": 2,+ "trailingComma": "none",+ "printWidth": 120,+ "singleQuote": true,+ "useTabs": false+}diff --git a/vendor/three-ws-fork/viewer/.storybook/index.css b/vendor/three-ws-fork/viewer/.storybook/index.cssnew file mode 100644index 000000000..8e21842af--- /dev/null+++ b/vendor/three-ws-fork/viewer/.storybook/index.css@@ -0,0 +1,20 @@+html,+body,+#storybook-root {+ width: 100%;+ height: 100%;+ margin: 0;+ padding: 0;+ -webkit-touch-callout: none;+ -webkit-user-select: none;+ -khtml-user-select: none;+ -moz-user-select: none;+ -ms-user-select: none;+ user-select: none;+}++#storybook-root {+ overflow: auto;+ height: 100%;+ width: 100%;+}diff --git a/vendor/three-ws-fork/viewer/.storybook/main.js b/vendor/three-ws-fork/viewer/.storybook/main.jsnew file mode 100644index 000000000..0bec77de3--- /dev/null+++ b/vendor/three-ws-fork/viewer/.storybook/main.js@@ -0,0 +1,19 @@+module.exports = {+ staticDirs: ['../public'],+ stories: ['../src/**/*.stories.@(tsx|mdx)'],+ addons: ['@storybook/addon-essentials', '@storybook/preset-create-react-app'],+ typescript: {+ reactDocgen: 'react-docgen',+ check: true+ },+ framework: {+ name: '@storybook/react-webpack5',+ options: {}+ },+ docs: {+ autodocs: true+ },+ core: {+ disableTelemetry: true+ }+};diff --git a/vendor/three-ws-fork/viewer/.storybook/manager.js b/vendor/three-ws-fork/viewer/.storybook/manager.jsnew file mode 100644index 000000000..92c6c8f32--- /dev/null+++ b/vendor/three-ws-fork/viewer/.storybook/manager.js@@ -0,0 +1,8 @@+import { addons } from '@storybook/addons';+import theme from './theme';++addons.setConfig({+ theme,+ panelPosition: 'right',+ showPanel: true+});diff --git a/vendor/three-ws-fork/viewer/.storybook/preview.js b/vendor/three-ws-fork/viewer/.storybook/preview.jsnew file mode 100644index 000000000..aca0c6a53--- /dev/null+++ b/vendor/three-ws-fork/viewer/.storybook/preview.js@@ -0,0 +1,11 @@+import './index.css';++export const parameters = {+ layout: 'fullscreen',+ controls: {+ matchers: {+ color: /(background|color)$/i,+ date: /Date$/+ }+ }+};diff --git a/vendor/three-ws-fork/viewer/.storybook/theme.js b/vendor/three-ws-fork/viewer/.storybook/theme.jsnew file mode 100644index 000000000..97b6fe2b2--- /dev/null+++ b/vendor/three-ws-fork/viewer/.storybook/theme.js@@ -0,0 +1,8 @@+import { create } from '@storybook/theming';+import { getStoryAssetPath } from '../src/services';++export default create({+ base: 'light',+ brandImage: getStoryAssetPath('logo.png'),+ brandUrl: 'https://three.ws'+});diff --git a/vendor/three-ws-fork/viewer/README.md b/vendor/three-ws-fork/viewer/README.mdnew file mode 100644index 000000000..70b9048d9--- /dev/null+++ b/vendor/three-ws-fork/viewer/README.md@@ -0,0 +1,49 @@+# [three.ws viewer](https://three.ws/) [](https://github.com/nirholas/three.ws/blob/main/vendor/three-ws-fork/viewer/LICENSE) [](https://www.npmjs.com/package/@three-ws/viewer)+The three.ws viewer is a collection of components for showcasing three.ws avatars and 3D on the web!++Built with [`three.js`](https://github.com/mrdoob/three.js), [`react-three-fiber`](https://github.com/pmndrs/react-three-fiber), [`drei`](https://github.com/pmndrs/drei), [`three-stdlib`](https://github.com/pmndrs/three-stdlib) and [`react`](https://github.com/facebook/react/).++# Installation++The three.ws viewer is available as an [npm package](https://www.npmjs.com/package/@three-ws/viewer).+```sh+npm install @three-ws/viewer+```++# Documentation & examples++You can find all **code examples** of the components and their **documentation** on [our GitHub page](https://three.ws/).++Here is the first one to get you started:+```typescript jsx+import React from 'react';+import ReactDOM from 'react-dom';+import { Avatar } from '@three-ws/viewer';++const modelSrc = 'https://three.ws/male.glb';++function App() {+ return (+ <Avatar modelSrc={modelSrc} />+ );+}++ReactDOM.render(<App />, document.querySelector('#app'));+```++### Validation+Props such as `modelSrc`, `animationSrc`, `poseSrc` and `onLoadedAnimation.src` are **validated** before rendering on the scene.+Animation source props support both `.glb` and `.fbx` formats. All other props mentioned before only support `.glb`.++Examples on supported resource formats:+* URL resources+ * relative `/headwear.glb`+ * absolute `https://three.ws/male.glb?queryParams=allowed`+* Base64 strings+ * `data:application/octet-stream;base64`+ * `data:model/gltf-binary;base64`+* Binary input such as `model/gltf-binary`++## License++Visage is [MIT licensed](./LICENSE).diff --git a/vendor/three-ws-fork/viewer/commitlint.config.js b/vendor/three-ws-fork/viewer/commitlint.config.jsnew file mode 100644index 000000000..422b19445--- /dev/null+++ b/vendor/three-ws-fork/viewer/commitlint.config.js@@ -0,0 +1 @@+module.exports = { extends: ['@commitlint/config-conventional'] };diff --git a/vendor/three-ws-fork/viewer/css-modules.d.ts b/vendor/three-ws-fork/viewer/css-modules.d.tsnew file mode 100644index 000000000..d9a5240c7--- /dev/null+++ b/vendor/three-ws-fork/viewer/css-modules.d.ts@@ -0,0 +1,9 @@+declare module '*.module.css' {+ const classes: { [key: string]: string };+ export default classes;+}++declare module '*.module.scss' {+ const classes: { [key: string]: string };+ export default classes;+}diff --git a/vendor/three-ws-fork/viewer/package.json b/vendor/three-ws-fork/viewer/package.jsonnew file mode 100644index 000000000..abe40c3f9--- /dev/null+++ b/vendor/three-ws-fork/viewer/package.json@@ -0,0 +1,167 @@+{+ "name": "@three-ws/viewer",+ "version": "6.12.0",+ "description": "Easily display three.ws avatars and 3D on the web.",+ "author": "three.ws",+ "keywords": [+ "react",+ "three",+ "threejs",+ "react-three-fiber",+ "three-ws",+ "3D",+ "avatars",+ "glb",+ "frontend"+ ],+ "repository": {+ "type": "git",+ "url": "git+https://github.com/nirholas/three.ws.git",+ "directory": "vendor/three-ws-fork/viewer"+ },+ "license": "MIT",+ "bugs": {+ "url": "https://github.com/nirholas/three.ws/issues"+ },+ "main": "./dist/index.cjs.js",+ "module": "./dist/index.esm.js",+ "files": [+ "dist"+ ],+ "types": "./dist/types.d.ts",+ "scripts": {+ "start": "react-scripts start",+ "build": "react-scripts build",+ "test": "CI=true react-scripts test",+ "lint": "eslint \"src/**/*.{ts,js}\"",+ "lint:fix": "eslint \"src/**/*.{ts,js}\" --fix",+ "format": "prettier --write './**/*.{js,jsx,ts,tsx,css,json}' --config ./.prettierrc",+ "build-package": "rollup -c",+ "storybook": "storybook dev -p 6006",+ "build-storybook": "storybook build",+ "prepare": "if [ -z $NO_HUSKY ]; then husky install; fi",+ "cy:open:functional": "cypress open --project ./test/functional",+ "test:functional": "cypress install && cypress run --config video=false --browser electron --project ./test/functional"+ },+ "lint-staged": {+ "*.{js,jsx,ts,tsx}": [+ "npm run format",+ "npm run lint:fix"+ ]+ },+ "eslintConfig": {+ "extends": [+ "react-app",+ "react-app/jest"+ ]+ },+ "browserslist": {+ "production": [+ ">0.2%",+ "not dead",+ "not op_mini all"+ ],+ "development": [+ "last 1 chrome version",+ "last 1 firefox version",+ "last 1 safari version"+ ]+ },+ "peerDependencies": {+ "@amplitude/analytics-browser": "^1.13.6",+ "@react-three/drei": "9.108.4",+ "@react-three/fiber": "8.16.8",+ "@react-three/postprocessing": "2.16.2",+ "postprocessing": "6.35.6",+ "react": ">=18.2.0",+ "react-dom": ">=18.2.0",+ "suspend-react": ">=0.1.3",+ "three": "0.166.1",+ "three-stdlib": "2.30.4"+ },+ "devDependencies": {+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",+ "@commitlint/cli": "^17.6.7",+ "@commitlint/config-conventional": "^17.6.7",+ "@react-three/drei": "9.108.4",+ "@react-three/fiber": "8.16.8",+ "@react-three/postprocessing": "2.16.2",+ "@react-three/test-renderer": "^8.2.0",+ "@rollup/plugin-commonjs": "^25.0.3",+ "@rollup/plugin-node-resolve": "^15.1.0",+ "@rollup/plugin-typescript": "^11.1.2",+ "@storybook/addon-actions": "7.3.2",+ "@storybook/addon-essentials": "7.3.2",+ "@storybook/addon-interactions": "7.3.2",+ "@storybook/addon-links": "7.3.2",+ "@storybook/node-logger": "7.3.2",+ "@storybook/preset-create-react-app": "7.3.2",+ "@storybook/react": "7.3.2",+ "@storybook/react-webpack5": "7.3.2",+ "@storybook/testing-library": "0.2.0",+ "@testing-library/jest-dom": "^5.17.0",+ "@testing-library/react": "^14.0.0",+ "@testing-library/user-event": "^14.4.3",+ "@types/jest": "^29.5.3",+ "@types/node": "^20.4.2",+ "@types/react": "^18.2.15",+ "@types/react-dom": "^18.2.7",+ "@types/testing-library__jest-dom": "^5.14.8",+ "@types/three": "^0.166.0",+ "@typescript-eslint/eslint-plugin": "^6.4.0",+ "@typescript-eslint/parser": "^6.4.0",+ "cypress": "^13.13.1",+ "cypress-image-diff-js": "^2.2.1",+ "eslint": "^8.45.0",+ "eslint-config-airbnb": "^19.0.4",+ "eslint-config-airbnb-typescript": "^17.1.0",+ "eslint-config-prettier": "^8.8.0",+ "eslint-plugin-import": "^2.27.5",+ "eslint-plugin-jsx-a11y": "^6.7.1",+ "eslint-plugin-prettier": "^5.0.0",+ "eslint-plugin-react": "^7.32.2",+ "eslint-plugin-react-hooks": "^4.6.0",+ "eslint-plugin-storybook": "^0.6.13",+ "husky": "^8.0.0",+ "identity-obj-proxy": "^3.0.0",+ "postprocessing": "6.35.6",+ "prettier": "^3.0.0",+ "r3f-perf": "^7.1.2",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-router-dom": "^6.25.1",+ "react-scripts": "^5.0.1",+ "resize-observer-polyfill": "^1.5.1",+ "rollup": "^2.0.0",+ "rollup-plugin-dts": "^4.2.0",+ "rollup-plugin-peer-deps-external": "^2.2.4",+ "rollup-plugin-postcss": "^4.0.2",+ "rollup-plugin-terser": "^7.0.2",+ "storybook": "7.3.2",+ "suspend-react": "0.1.3",+ "three": "0.166.1",+ "three-stdlib": "2.30.4",+ "typescript": "^4.1.6",+ "typescript-plugin-css-modules": "^5.0.1",+ "webpack": "^5.88.2"+ },+ "overrides": {+ "react-refresh": "0.11.0",+ "stylus": "github:stylus/stylus#0.62.0"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.6.0"+ },+ "volta": {+ "node": "20.19.4",+ "npm": "8.6.0"+ },+ "dependencies": {+ "detect-gpu": "^5.0.41",+ "gltfpack": "^0.21.0",+ "jest-canvas-mock": "^2.5.2",+ "jotai": "^2.2.2",+ "qs": "^6.12.3"+ }+}diff --git a/vendor/three-ws-fork/viewer/public/half-body.glb b/vendor/three-ws-fork/viewer/public/half-body.glbnew file mode 100644index 000000000..f4e3a3c96Binary files /dev/null and b/vendor/three-ws-fork/viewer/public/half-body.glb differdiff --git a/vendor/three-ws-fork/viewer/public/headwear.glb b/vendor/three-ws-fork/viewer/public/headwear.glbnew file mode 100644index 000000000..b7d6061ecBinary files /dev/null and b/vendor/three-ws-fork/viewer/public/headwear.glb differdiff --git a/vendor/three-ws-fork/viewer/public/index.html b/vendor/three-ws-fork/viewer/public/index.htmlnew file mode 100644index 000000000..ef351433c--- /dev/null+++ b/vendor/three-ws-fork/viewer/public/index.html@@ -0,0 +1,26 @@+<!DOCTYPE html>+<html lang="en">+ <head>+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <meta+ name="description"+ content="Easily display 3D models and three.ws avatars on the web"+ />+ <title>three.ws | Viewer</title>+ </head>+ <body>+ <noscript>You need to enable JavaScript to run this app.</noscript>+ <div id="root" style="height: 100%"></div>+ <!--+ This HTML file is a template.+ If you open it directly in the browser, you will see an empty page.++ You can add webfonts, meta tags, or analytics to this file.+ The build step will place the bundled scripts into the <body> tag.++ To begin the development, run `npm start` or `yarn start`.+ To create a production bundle, use `npm run build` or `yarn build`.+ -->+ </body>+</html>diff --git a/vendor/three-ws-fork/viewer/react-app-env.d.ts b/vendor/three-ws-fork/viewer/react-app-env.d.tsnew file mode 100644index 000000000..6431bc5fc--- /dev/null+++ b/vendor/three-ws-fork/viewer/react-app-env.d.ts@@ -0,0 +1 @@+/// <reference types="react-scripts" />diff --git a/vendor/three-ws-fork/viewer/release.config.js b/vendor/three-ws-fork/viewer/release.config.jsnew file mode 100644index 000000000..561fd666a--- /dev/null+++ b/vendor/three-ws-fork/viewer/release.config.js@@ -0,0 +1,19 @@+module.exports = {+ branches: ['main'],+ plugins: [+ [+ '@semantic-release/commit-analyzer',+ {+ preset: 'angular',+ releaseRules: [+ { type: 'feat', scope: 'anim', release: 'minor' },+ { type: 'fix', release: 'patch' },+ { type: 'BREAKING CHANGE', release: 'major' }+ ]+ }+ ],+ '@semantic-release/release-notes-generator',+ '@semantic-release/npm',+ '@semantic-release/github'+ ]+};diff --git a/vendor/three-ws-fork/viewer/rollup.config.js b/vendor/three-ws-fork/viewer/rollup.config.jsnew file mode 100644index 000000000..cb0dbdf58--- /dev/null+++ b/vendor/three-ws-fork/viewer/rollup.config.js@@ -0,0 +1,50 @@+import peerDepsExternal from 'rollup-plugin-peer-deps-external';+import resolve from '@rollup/plugin-node-resolve';+import commonjs from '@rollup/plugin-commonjs';+import typescript from '@rollup/plugin-typescript';+import postcss from 'rollup-plugin-postcss';+import dts from 'rollup-plugin-dts';++const packageJson = require('./package.json');++export default [+ {+ input: 'src/library.ts',+ output: [+ {+ file: packageJson.main,+ format: 'cjs',+ sourcemap: false+ },+ {+ file: packageJson.module,+ format: 'esm',+ sourcemap: false+ }+ ],+ plugins: [+ peerDepsExternal(),+ commonjs(),+ typescript({+ tsconfig: './tsconfig.json',+ exclude: [+ '**/__tests__',+ '**/__snapshots__',+ '**/*.test.ts',+ '**/*.test.tsx',+ '**/*.stories.tsx',+ '**/setupTests.ts',+ 'src/App/*',+ 'src/index.tsx'+ ]+ }),+ resolve({ extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'] }),+ postcss()+ ]+ },+ {+ input: './dist/src/library.d.ts',+ output: [{ file: 'dist/types.d.ts', format: 'es', paths: { 'src/types': './src/types' } }],+ plugins: [dts()]+ }+];diff --git a/vendor/three-ws-fork/viewer/src/App/App.component.tsx b/vendor/three-ws-fork/viewer/src/App/App.component.tsxnew file mode 100644index 000000000..6bd067aef--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/App.component.tsx@@ -0,0 +1,44 @@+import React from 'react';+import { createBrowserRouter, RouterProvider } from 'react-router-dom';+import { AvatarDevelop } from './components/Develop';+import { AvatarTest } from './components/Test';+import { AvatarNova } from './components/Nova';+import { AvatarCapture } from './components/Capture';++import styles from './App.module.scss';+import { ExhibitPage } from './components/Exhibit';++const router = createBrowserRouter([+ {+ path: '/',+ element: <AvatarDevelop />+ },+ {+ path: '/test',+ element: <AvatarTest />+ },+ {+ path: '/nova',+ element: <AvatarNova />+ },+ {+ path: '/capture-canvas',+ element: <AvatarCapture />+ },+ {+ path: '/exhibit',+ element: <ExhibitPage />+ }+]);++const App: React.FC = () => (+ <div className={styles.app}>+ <div className={styles.container}>+ <div className={styles.card}>+ <RouterProvider router={router} />+ </div>+ </div>+ </div>+);++export default App;diff --git a/vendor/three-ws-fork/viewer/src/App/App.module.scss b/vendor/three-ws-fork/viewer/src/App/App.module.scssnew file mode 100644index 000000000..ad3a34a5e--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/App.module.scss@@ -0,0 +1,28 @@+html,+body,+#root,+.app {+ margin: 0;+ height: 100%;+ width: 100%;+}++.app {+ position: relative;+ margin: 0;+ height: 100%;+ width: 100%;+}++.container {+ display: flex;+ height: 100%;+}++.card {+ width: 100%;+}++.stats {+ left: 80px !important;+}diff --git a/vendor/three-ws-fork/viewer/src/App/App.test.tsx b/vendor/three-ws-fork/viewer/src/App/App.test.tsxnew file mode 100644index 000000000..d5c11de0d--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/App.test.tsx@@ -0,0 +1,9 @@+import React from 'react';+import { render, screen } from '@testing-library/react';+import App from './App.component';++test('renders application without fault', () => {+ render(<App />);+ const el = screen.getByText(/localhost playground/i);+ expect(el).toBeInTheDocument();+});diff --git a/vendor/three-ws-fork/viewer/src/App/components/Capture.tsx b/vendor/three-ws-fork/viewer/src/App/components/Capture.tsxnew file mode 100644index 000000000..5bcc3a4ba--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/components/Capture.tsx@@ -0,0 +1,67 @@+import React, { useState } from 'react';+import { StatsGl } from '@react-three/drei';+import { Vector3 } from 'three';++import { Avatar } from 'src/components/Avatar';+import { SettingsPanel } from './SettingsPanel';++const modelUrl = 'https://avatars.three.ws/6735d9cb1f22bfcc50a037ec.glb';++export const AvatarCapture: React.FC = () => {+ const [isCapturing, setIsCapturing] = useState<boolean>(false);+ const [base64, setBase64] = useState<string | undefined>();++ const capture = async (image?: string) => {+ setBase64(image);+ setIsCapturing(false);+ };++ return (+ <>+ <SettingsPanel>+ <button type="button" onClick={() => setIsCapturing(true)}>+ CAPTURE+ </button>+ </SettingsPanel>+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', height: '100%', placeItems: 'center' }}>+ <Avatar+ modelSrc={modelUrl}+ cameraTarget={1.5}+ halfBody={false}+ emotion={{+ mouthSmileLeft: 0.6,+ mouthSmileRight: 0.6+ }}+ environment="https://assets.three.ws/environment/soft.hdr"+ cameraInitialDistance={2.5}+ capture={{+ trigger: isCapturing,+ callBack: capture,+ settings: {+ quality: 0.9,++ type: 'image/jpeg'+ }+ }}+ background={{+ src: 'https://upload.wikimedia.org/wikipedia/commons/d/d0/Color-yellow.JPG',+ position: [0, 0.6, -3.3] as unknown as Vector3,+ scale: 4 as unknown as Vector3,+ rotation: [-0.165, 0, 0] as any+ }}+ style={{ backgroundColor: '#ffdd00' }}+ keyLightIntensity={0.7}+ >+ <StatsGl />+ </Avatar>+ <div style={{ position: 'relative' }}>+ <img+ src={base64}+ style={{ width: '100%', height: '100%', objectFit: 'contain', objectPosition: 'center' }}+ alt="test preview"+ />+ </div>+ </div>+ </>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/App/components/Develop.tsx b/vendor/three-ws-fork/viewer/src/App/components/Develop.tsxnew file mode 100644index 000000000..df84402cf--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/components/Develop.tsx@@ -0,0 +1,27 @@+import React from 'react';+import { StatsGl } from '@react-three/drei';++import { Avatar } from 'src/components/Avatar';+import { EnvironmentModel } from 'src/components/Models';+import { getAnimation } from 'src/services/Animation.service';++import { SettingsPanel } from './SettingsPanel';++export const AvatarDevelop: React.FC = () => (+ <>+ <SettingsPanel />+ <Avatar+ modelSrc="https://models.three.ws/64d61e9e17883fd73ebe5eb7.glb?morphTargets=ARKit,Eyes Extra&textureAtlas=none&lod=0"+ shadows+ animationSrc={getAnimation('male-idle-2.fbx')}+ style={{ background: 'rgb(9,20,26)' }}+ fov={45}+ effects={{+ ambientOcclusion: true+ }}+ >+ <StatsGl />+ <EnvironmentModel environment="spaceStation" scale={1} />+ </Avatar>+ </>+);diff --git a/vendor/three-ws-fork/viewer/src/App/components/Exhibit.tsx b/vendor/three-ws-fork/viewer/src/App/components/Exhibit.tsxnew file mode 100644index 000000000..1d42b6edb--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/components/Exhibit.tsx@@ -0,0 +1,28 @@+import React from 'react';+import { Vector3 } from 'three';+import { Exhibit } from 'src/components/Exhibit';++const assets = {+ posed:+ 'https://files.three.ws/asset/previewModelUrl/4976bb7b-e468-4652-be7e-479b0a3768d3/f326a138-d664-493c-8a8e-06abe9dd0423-1746692254239.glb',+ default:+ 'https://files.three.ws/asset/modelUrl/12a084d2-fabe-4fb2-a2f3-903fdca078f7/a5a1c247-cbf5-4ec4-8b29-ec1646c2b567-1731444612287.glb'+};++export const ExhibitPage = () => (+ <div style={{ width: '100%', height: '100%', background: '#444' }}>+ <Exhibit+ scale={1}+ environment="hub"+ position={new Vector3(0, 1, 5)}+ fit+ float={false}+ shadows={false}+ snap={false}+ lockVertical+ lockHorizontal={false}+ horizontalRotation+ modelSrc={assets.posed}+ />+ </div>+);diff --git a/vendor/three-ws-fork/viewer/src/App/components/Nova.tsx b/vendor/three-ws-fork/viewer/src/App/components/Nova.tsxnew file mode 100644index 000000000..eb106eeb8--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/components/Nova.tsx@@ -0,0 +1,59 @@+import React, { useMemo, useState, FC } from 'react';+import { StatsGl } from '@react-three/drei';++import { Avatar, CAMERA } from 'src/components/Avatar';+import { AnimationsT } from 'src/types';+import { getAnimation } from 'src/services/Animation.service';+import { SettingsPanel } from './SettingsPanel';++const modelSrc = 'https://avatars.three.ws/675aa4ded65bc4b9fbc4808a.glb';++type AnimationKeys = 'idle' | 'land';++export const AvatarNova: FC = () => {+ const animations: AnimationsT = useMemo(+ () => ({+ idle: {+ source: getAnimation('take2-idle.glb'),+ key: 'Armature'+ },+ land: {+ source: getAnimation('take2.glb'),+ key: 'Armature',+ repeat: 1+ }+ }),+ []+ );++ const [activeAnimation, setActiveAnimation] = useState<AnimationKeys>('land');++ return (+ <div style={{ width: '100%', height: '100%', background: '#444' }}>+ <SettingsPanel>+ {Object.keys(animations).map((name) => (+ <button key={name} type="button" onClick={() => setActiveAnimation(name as AnimationKeys)}>+ Set {name} animation+ </button>+ ))}+ </SettingsPanel>+ <Avatar+ controlsMinDistance={CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE}+ controlsMaxDistance={CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE}+ modelSrc={modelSrc}+ animations={animations}+ activeAnimation={activeAnimation}+ shadows+ animatedCameraSrc={activeAnimation === 'land' ? animations[activeAnimation].source : undefined}+ onAnimationEnd={() => setActiveAnimation('idle')}+ fov={45}+ cameraInitialDistance={CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE}+ effects={{+ ambientOcclusion: false+ }}+ >+ <StatsGl />+ </Avatar>+ </div>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/App/components/SettingsPanel.module.scss b/vendor/three-ws-fork/viewer/src/App/components/SettingsPanel.module.scssnew file mode 100644index 000000000..e97aee11c--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/components/SettingsPanel.module.scss@@ -0,0 +1,37 @@+.settings {+ z-index: 2;+ position: fixed;+ top: 72px;+ right: 24px;+ width: 100%;+ max-width: 320px;+ background-color: rgba(243, 243, 243, 0.9);+ border: 1px solid #b9b9b9;+ border-radius: 4px;+ overflow: hidden;+}++.wrapper {+ position: relative;+ height: 100%;+ width: 100%;+}++.title {+ font-size: 18px;+ font-weight: 600;+ font-family: Arial, sans-serif;+ color: black;+ display: block;+ padding: 8px;+ margin: 0;+ border-bottom: 1px solid #b9b9b9;+}++.content {+ position: relative;+ padding: 8px;+ display: flex;+ flex-direction: column;+ gap: 12px;+}diff --git a/vendor/three-ws-fork/viewer/src/App/components/SettingsPanel.tsx b/vendor/three-ws-fork/viewer/src/App/components/SettingsPanel.tsxnew file mode 100644index 000000000..1ca5f2d73--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/components/SettingsPanel.tsx@@ -0,0 +1,14 @@+import React from 'react';++import styles from './SettingsPanel.module.scss';++export const SettingsPanel: React.FC<React.PropsWithChildren> = ({+ children = 'Drop your content in there to test the avatar props without shrinking the canvas'+}) => (+ <div className={styles.settings}>+ <div className={styles.wrapper}>+ <h3 className={styles.title}>localhost playground</h3>+ <div className={styles.content}>{children}</div>+ </div>+ </div>+);diff --git a/vendor/three-ws-fork/viewer/src/App/components/Test.tsx b/vendor/three-ws-fork/viewer/src/App/components/Test.tsxnew file mode 100644index 000000000..22664d503--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/components/Test.tsx@@ -0,0 +1,26 @@+import React from 'react';++import { Avatar, CAMERA } from 'src/components/Avatar';++export const AvatarTest: React.FC = () => {+ const urlParams = new URLSearchParams(window.location.search);+ const modelUrl = urlParams.get('modelUrl')+ ? decodeURIComponent(urlParams.get('modelUrl') || '')+ : 'https://models.three.ws/64d61e9e17883fd73ebe5eb7.glb?morphTargets=ARKit,Eyes Extra&textureAtlas=none&lod=0';+ const zoomLevel = urlParams.get('zoomLevel')+ ? parseFloat(urlParams.get('zoomLevel') || '1')+ : CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE;++ return (+ <Avatar+ modelSrc={modelUrl}+ shadows+ style={{ background: 'rgb(9,20,26)' }}+ fov={45}+ cameraInitialDistance={zoomLevel}+ effects={{+ ambientOcclusion: true+ }}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/App/index.ts b/vendor/three-ws-fork/viewer/src/App/index.tsnew file mode 100644index 000000000..8aeac09e8--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/App/index.ts@@ -0,0 +1 @@+export { default as App } from './App.component';diff --git a/vendor/three-ws-fork/viewer/src/components/Avatar/Avatar.component.tsx b/vendor/three-ws-fork/viewer/src/components/Avatar/Avatar.component.tsxnew file mode 100644index 000000000..d1852a736--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Avatar/Avatar.component.tsx@@ -0,0 +1,477 @@+import { ContactShadows } from '@react-three/drei';+import { Dpr } from '@react-three/fiber';+import { BrightnessContrast, EffectComposer, HueSaturation, N8AO, Vignette } from '@react-three/postprocessing';+import { Provider, useSetAtom } from 'jotai';+import React, { CSSProperties, FC, ReactNode, Suspense, useEffect, useMemo } from 'react';+import { BackgroundColor } from 'src/components/Background';+import { Background, Box } from 'src/components/Background/Box/Box.component';+import { BaseCanvas } from 'src/components/BaseCanvas';+import Bloom from 'src/components/Bloom/Bloom.component';+import Capture, { CaptureType } from 'src/components/Capture/Capture.component';+import Loader from 'src/components/Loader';+import { AnimationModel, HalfBodyModel, MultipleAnimationModel, PoseModel, StaticModel } from 'src/components/Models';+import { AnimatedCamera } from 'src/components/Scene/AnimatedCamera.component';+import { CameraControls } from 'src/components/Scene/CameraControls.component';+import { Environment } from 'src/components/Scene/Environment.component';+import { isValidFormat, triggerCallback } from 'src/services';+import {+ AnimationsT,+ BaseModelProps,+ CanvasConfiguration,+ EffectConfiguration,+ EnvironmentProps,+ LightingProps,+ MaterialConfiguration,+ SpawnState+} from 'src/types';+import { AnimationAction, Vector3, Mesh } from 'three';++import Lights from 'src/components/Lights/Lights.component';+import { spawnState } from 'src/state/spawnAtom';++export const CAMERA = {+ TARGET: {+ FULL_BODY: {+ MALE: 1.65,+ FEMALE: 1.55+ },+ HALF_BODY: 0.6+ },+ INITIAL_DISTANCE: {+ FULL_BODY: 0.4,+ HALF_BODY: 0.5+ },+ CONTROLS: {+ FULL_BODY: {+ MIN_DISTANCE: 0.5,+ MAX_DISTANCE: 3.2,+ ZOOM_TARGET: new Vector3(-0.11, 0, 3.2)+ },+ HALF_BODY: {+ MIN_DISTANCE: 0.4,+ MAX_DISTANCE: 1.4,+ ZOOM_TARGET: new Vector3(-0.15, 0, 0.55)+ }+ }+};++export type Emotion = Record<string, number>;++export interface AvatarProps extends LightingProps, EnvironmentProps, Omit<BaseModelProps, 'setModelFallback'> {+ /**+ * Arbitrary binary data (base64 string, Blob) of a `.glb` file or path (URL) to a `.glb` resource.+ */+ modelSrc: string | Blob;+ /**+ * Arbitrary binary data (base64 string, Blob) of a `.glb|.fbx` file or path (URL) to a `.glb|.fbx` resource.+ * The animation will be run for the 3D model provided in `modelSrc`.+ */+ animationSrc?: string | Blob;+ /**+ * Arbitrary binary data (base64 string, Blob) or a path (URL) to `.glb` file which will be used to map Bone placements onto the underlying 3D model.+ * Applied when not specifying an animation.+ */+ poseSrc?: string | Blob;+ halfBody?: boolean;+ /**+ * Enable rendering shadows on ground.+ */+ shadows?: boolean;+ /**+ * Shadow properties. Requires shadows to be enabled.+ */+ shadowProperties?: {+ opacity?: number;+ scale?: number;+ blur?: number;+ far?: number;+ resolution?: number;+ };+ /**+ * Size of the rendered GLB model.+ */+ scale?: number;+ /**+ * Camera target on Y-axis.+ */+ cameraTarget?: number;+ /**+ * Initial Z-axis distance from the object upon render.+ */+ cameraInitialDistance?: number;+ /**+ * Apply styling to canvas DOM element.+ * Note that background property can not be set via style prop, it will always be overridden to `transparent`.+ * Instead, use `background` prop for that purpose.+ */+ style?: CSSProperties;+ /**+ * Applies an idle rotation to the animated and half-body models.+ */+ idleRotation?: boolean;+ /**+ * Applies a face emotion of the model.+ */+ emotion?: Emotion;+ /**+ * Allows adding a background image and background color to the scene.+ * Make sure that image is loadable to prevent bg errors.+ * background.src - Accepts URL string.+ * background.color - Accepts Hexadeximal, RGB, X11 color name, HSL string, doesn't support CSS gradients.+ */+ background?: Background;+ /**+ * Return base64 image after making screenshot of the canvas.+ */+ capture?: CaptureType;+ /**+ * Pass custom fallback component.+ */+ loader?: ReactNode;+ /**+ * Device Pixel Ratio.+ */+ dpr?: Dpr;+ /**+ * Custom style classes for canvas.+ */+ className?: string;+ /**+ * Enable head tracking cursor movements.+ */+ headMovement?: boolean;+ /**+ * Initialise and update camera movement on Z-Axis.+ * Defaults to full-body zoom distance.+ */+ cameraZoomTarget?: Vector3;+ /**+ * Spawn effect when model is loaded into scene.+ */+ onLoadedEffect?: SpawnState['onLoadedEffect'];+ /**+ * Spawn animation when model is loaded into scene.+ */+ onLoadedAnimation?: SpawnState['onLoadedAnimation'];+ /**+ * Field of view of the camera.+ */+ fov?: number;+ /**+ * Control some effects like post-processing effects+ */+ effects?: EffectConfiguration;+ /**+ * Use any three.js(fiber, post-processing) compatible components to render in the scene.+ */+ children?: ReactNode;+ animations?: AnimationsT;+ activeAnimation?: string;+ /**+ * Control properties of materials.+ */+ materialConfig?: MaterialConfiguration;+ onAnimationEnd?: (action: AnimationAction) => void;+ controlsMinDistance?: number;+ controlsMaxDistance?: number;+ /**+ * Control properties of the BaseCanvas.+ */+ canvasConfig?: CanvasConfiguration;+ animatedCameraSrc?: string;+ /**+ * Callback for when a mesh is clicked.+ */+ onMeshClick?: (mesh: Mesh) => void;+ /**+ * Callback for when a mesh hover starts.+ */+ onMeshHoverStart?: (mesh: Mesh) => void;+ /**+ * Callback for when a mesh hover ends.+ */+ onMeshHoverEnd?: (mesh: Mesh) => void;+ /**+ * Callback for processing meshes on model load.+ */+ meshCallback?: (mesh: Mesh) => void;+}++/**+ * Interactive avatar presentation with zooming and horizontal rotation controls.+ * Optimised for full-body and half-body avatars.+ */++const Avatar: FC<AvatarProps> = ({+ modelSrc,+ animationSrc = undefined,+ animations = undefined,+ activeAnimation = undefined,+ poseSrc = undefined,+ environment = 'soft',+ halfBody = false,+ shadows = false,+ shadowProperties,+ scale = 1,+ animatedCameraSrc,+ cameraTarget = CAMERA.TARGET.FULL_BODY.MALE,+ cameraInitialDistance = CAMERA.INITIAL_DISTANCE.FULL_BODY,+ style,+ emotion,+ idleRotation = false,+ capture,+ background,+ onLoaded,+ onLoading,+ dpr,+ className,+ headMovement = false,+ cameraZoomTarget = CAMERA.CONTROLS.FULL_BODY.ZOOM_TARGET,+ onLoadedEffect,+ onLoadedAnimation,+ children,+ effects,+ keyLightIntensity,+ keyLightColor,+ fillLightIntensity,+ fillLightColor,+ fillLightPosition,+ backLightIntensity,+ backLightColor,+ backLightPosition,+ lightTarget,+ fov = 50,+ onAnimationEnd,+ materialConfig,+ controlsMinDistance,+ controlsMaxDistance,+ canvasConfig,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const setSpawnState = useSetAtom(spawnState);++ useEffect(() => {+ setSpawnState({ onLoadedEffect, onLoadedAnimation });+ }, [onLoadedAnimation, onLoadedEffect, setSpawnState]);++ const AvatarModel = useMemo(() => {+ if (!isValidFormat(modelSrc)) {+ return null;+ }++ if (!!activeAnimation && !halfBody && animations) {+ return (+ <MultipleAnimationModel+ emotion={emotion}+ modelSrc={modelSrc}+ animations={animations}+ activeAnimation={activeAnimation}+ scale={scale}+ onLoaded={onLoaded}+ bloom={effects?.bloom}+ onAnimationEnd={onAnimationEnd}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+ }++ if (!!animationSrc && !halfBody && isValidFormat(animationSrc)) {+ return (+ <AnimationModel+ emotion={emotion}+ modelSrc={modelSrc}+ animationSrc={animationSrc}+ scale={scale}+ idleRotation={idleRotation}+ onLoaded={onLoaded}+ headMovement={headMovement}+ bloom={effects?.bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+ }++ if (halfBody) {+ return (+ <HalfBodyModel+ emotion={emotion}+ modelSrc={modelSrc}+ scale={scale}+ idleRotation={idleRotation}+ onLoaded={onLoaded}+ headMovement={headMovement}+ bloom={effects?.bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+ }++ if (isValidFormat(poseSrc)) {+ return (+ <PoseModel+ emotion={emotion}+ modelSrc={modelSrc}+ scale={scale}+ poseSrc={poseSrc!}+ onLoaded={onLoaded}+ bloom={effects?.bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+ }++ return (+ <StaticModel+ modelSrc={modelSrc}+ scale={scale}+ onLoaded={onLoaded}+ emotion={emotion}+ bloom={effects?.bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+ }, [+ modelSrc,+ activeAnimation,+ halfBody,+ animations,+ animationSrc,+ poseSrc,+ scale,+ onLoaded,+ emotion,+ effects?.bloom,+ materialConfig,+ onAnimationEnd,+ idleRotation,+ headMovement,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+ ]);++ useEffect(() => triggerCallback(onLoading), [modelSrc, animationSrc, onLoading]);++ const enablePostProcessing = Boolean(effects?.ambientOcclusion || effects?.bloom || effects?.vignette);+ const cameraControlsMinDistance = useMemo(() => {+ if (controlsMinDistance) {+ return controlsMinDistance;+ }++ return halfBody ? CAMERA.CONTROLS.HALF_BODY.MIN_DISTANCE : CAMERA.CONTROLS.FULL_BODY.MIN_DISTANCE;+ }, [controlsMinDistance, halfBody]);+ const cameraControlsMaxDistance = useMemo(() => {+ if (controlsMaxDistance) {+ return controlsMaxDistance;+ }++ return halfBody ? CAMERA.CONTROLS.HALF_BODY.MAX_DISTANCE : CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE;+ }, [controlsMaxDistance, halfBody]);++ return (+ <BaseCanvas+ enablePostProcessing={enablePostProcessing}+ position={new Vector3(0, 0, 3)}+ fov={fov}+ style={style}+ dpr={dpr}+ className={className}+ canvasConfig={canvasConfig}+ >+ <Environment environment={environment} enablePostProcessing={enablePostProcessing} />+ {animatedCameraSrc ? (+ <AnimatedCamera animatedCameraSrc={animatedCameraSrc} />+ ) : (+ <CameraControls+ cameraTarget={cameraTarget}+ cameraInitialDistance={cameraInitialDistance}+ cameraZoomTarget={cameraZoomTarget}+ controlsMinDistance={cameraControlsMinDistance}+ controlsMaxDistance={cameraControlsMaxDistance}+ updateCameraTargetOnZoom={!halfBody}+ />+ )}+ {AvatarModel}+ {children}+ {shadows && (+ <ContactShadows+ opacity={effects?.ambientOcclusion ? 1.25 : 2}+ blur={2}+ scale={4}+ far={1.0}+ resolution={256}+ {...shadowProperties}+ />+ )}+ {background?.src && <Box {...background} />}+ {capture && <Capture {...capture} />}+ {background?.color && <BackgroundColor color={background.color} />}+ {enablePostProcessing && (+ <EffectComposer autoClear>+ <>+ {effects?.ambientOcclusion && (+ <N8AO quality="performance" aoRadius={0.08} distanceFalloff={1} intensity={5} screenSpaceRadius halfRes />+ )}+ {effects?.bloom && (+ <Bloom+ luminanceThreshold={effects?.bloom?.luminanceThreshold}+ luminanceSmoothing={effects?.bloom?.luminanceSmoothing}+ intensity={effects?.bloom?.intensity}+ kernelSize={effects?.bloom?.kernelSize}+ mipmapBlur={effects?.bloom?.mipmapBlur}+ />+ )}+ {effects?.vignette && <Vignette eskil={false} offset={0.5} darkness={0.5} />}+ <BrightnessContrast brightness={0.025} contrast={0.1} />+ <HueSaturation hue={0} saturation={-0.1} />+ </>+ </EffectComposer>+ )}+ <Lights+ keyLightIntensity={keyLightIntensity}+ keyLightColor={keyLightColor}+ fillLightIntensity={fillLightIntensity}+ fillLightColor={fillLightColor}+ fillLightPosition={fillLightPosition}+ backLightIntensity={backLightIntensity}+ backLightColor={backLightColor}+ backLightPosition={backLightPosition}+ lightTarget={lightTarget}+ />+ </BaseCanvas>+ );+};++const AvatarWrapper = (props: AvatarProps) => (+ <Suspense fallback={props.loader ?? <Loader />}>+ <Provider>+ <Avatar {...props} />+ </Provider>+ </Suspense>+);++export default AvatarWrapper;diff --git a/vendor/three-ws-fork/viewer/src/components/Avatar/Avatar.stories.tsx b/vendor/three-ws-fork/viewer/src/components/Avatar/Avatar.stories.tsxnew file mode 100644index 000000000..6fdd76a8d--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Avatar/Avatar.stories.tsx@@ -0,0 +1,250 @@+import React, { useState, useEffect } from 'react';+import { StoryFn } from '@storybook/react';+import { getStoryAssetPath } from 'src/services';+import { Sparkles as SparklesDrei } from '@react-three/drei';+import { FileDropper } from 'src/components/FileDropper/FileDropper.component';+import { environmentPresets } from 'src/services/Environment.service';+import { ignoreArgTypesOnExamples, modelPresets, animationPresets, emotions } from 'src/services/Stories.service';+import { Avatar as AvatarWrapper, CAMERA } from './index';+import { AvatarProps } from './Avatar.component';+import { LIGHT_CONFIG } from '../Lights/Lights.component';++const Avatar = (args: AvatarProps) => <AvatarWrapper {...args}>{args.children}</AvatarWrapper>;+const Sparkles: StoryFn<typeof SparklesDrei> = (args: any) => <SparklesDrei {...args} />;++const Template: StoryFn<typeof Avatar> = (args) => <Avatar {...args} />;+const DropTemplate: StoryFn<typeof Avatar> = (args) => (+ <FileDropper>+ <Avatar {...args} />+ </FileDropper>+);+export const Static: StoryFn<typeof Avatar> = Template.bind({});+Static.args = {+ modelSrc: getStoryAssetPath('female.glb'),+ animationSrc: undefined,+ poseSrc: undefined,+ environment: 'soft',+ scale: 1,+ shadows: true,+ idleRotation: false,+ headMovement: false,+ fov: 50,+ cameraZoomTarget: CAMERA.CONTROLS.FULL_BODY.ZOOM_TARGET,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ cameraTarget: CAMERA.TARGET.FULL_BODY.FEMALE,+ bloom: {+ luminanceThreshold: 1.0,+ luminanceSmoothing: 1.0,+ mipmapBlur: true,+ kernelSize: 1,+ intensity: 1,+ materialIntensity: 1+ },+ background: {+ color: 'rgb(9,20,26)'+ },+ style: {},+ materialConfig: { emissiveIntensity: 3.3 },+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: static avatar loaded'),+ onLoading: () => console.info('EVENT: loading static avatar'),+ /* eslint-enable no-console */+ ...LIGHT_CONFIG.defaultProps+};+Static.argTypes = {+ headMovement: { control: false },+ halfBody: { control: false },+ animationSrc: { control: false },+ poseSrc: { control: false },+ fov: { control: { type: 'range', min: 30, max: 100, step: 1 } }+};++const initialValue = 1.0;+const maxValue = 9.0;+const stepSize = 0.3;+const animationUpdateStepMs = 60;++export const Showcase: StoryFn<typeof Avatar> = (args: AvatarProps & { ambientOcclusion?: boolean }) => {+ const [currentValue, setCurrentValue] = useState(args.bloom?.materialIntensity);+ const [increasing, setIncreasing] = useState(true);+ const pulsatingBloom = {+ ...args.bloom,+ intensity: 1.0,+ materialIntensity: currentValue+ };++ useEffect(() => {+ const animationInterval = setInterval(() => {+ if (args?.ambientOcclusion) {+ return;+ }++ if (increasing) {+ setCurrentValue((prevValue) => {+ const newValue = prevValue! + stepSize;+ if (newValue >= maxValue) {+ setIncreasing(false);+ return maxValue;+ }+ return newValue;+ });+ } else {+ setCurrentValue((prevValue) => {+ const newValue = prevValue! - stepSize;+ if (newValue <= initialValue) {+ setIncreasing(true);+ return initialValue;+ }+ return newValue;+ });+ }+ }, animationUpdateStepMs);++ return () => clearInterval(animationInterval);+ }, [currentValue, increasing, initialValue, maxValue, args?.ambientOcclusion]);++ return (+ <Avatar {...args} effects={{ ambientOcclusion: args?.ambientOcclusion, bloom: pulsatingBloom }}>+ <Sparkles color="white" count={50} opacity={0.9} scale={5} size={0.5} speed={0.35} />+ </Avatar>+ );+};+Showcase.args = {+ cameraTarget: CAMERA.TARGET.FULL_BODY.FEMALE,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ modelSrc: modelPresets.one,+ animationSrc: animationPresets.one,+ scale: 1.0,+ bloom: {+ luminanceThreshold: 1.0,+ luminanceSmoothing: 1.0,+ mipmapBlur: true,+ kernelSize: 1,+ intensity: 1,+ materialIntensity: 1+ },+ background: {+ color: '#282038'+ },+ dpr: 2,+ environment: 'soft',+ shadows: false,+ emotion: {+ jawOpen: 0.1,+ mouthSmileLeft: 0.2,+ mouthSmileRight: 0.1,+ mouthPressLeft: 0.1,+ cheekSquintLeft: 0.3,+ eyeLookOutLeft: 0.6,+ eyeLookInRight: 0.6,+ mouthDimpleLeft: 0.3+ },+ // @ts-ignore+ ambientOcclusion: false,+ ...LIGHT_CONFIG.defaultProps+};+Showcase.argTypes = {+ ...ignoreArgTypesOnExamples,+ modelSrc: { options: Object.values(modelPresets), control: { type: 'select' } },+ animationSrc: { options: Object.values(animationPresets), control: { type: 'select' } },+ environment: { table: { disable: true } },+ keyLightIntensity: { table: { disable: true } },+ keyLightColor: { table: { disable: true } },+ fillLightIntensity: { table: { disable: true } },+ fillLightColor: { table: { disable: true } },+ fillLightPosition: { table: { disable: true } },+ backLightIntensity: { table: { disable: true } },+ backLightColor: { table: { disable: true } },+ backLightPosition: { table: { disable: true } },+ lightTarget: { table: { disable: true } },+ fov: { table: { disable: true } }+};++export const Animated: StoryFn<typeof Avatar> = Template.bind({});+Animated.args = {+ ...Static.args,+ modelSrc: getStoryAssetPath('male-emissive.glb'),+ animationSrc: getStoryAssetPath('male-idle.glb'),+ cameraTarget: CAMERA.TARGET.FULL_BODY.MALE,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ emotion: emotions.idle,+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: animated avatar loaded'),+ onLoading: () => console.info('EVENT: loading animated avatar')+ /* eslint-enable no-console */+};+Animated.argTypes = {+ poseSrc: { control: false },+ emotion: {+ options: {+ idle: emotions.idle,+ angry: emotions.angry,+ smile: emotions.smile,+ sad: emotions.sad+ },+ defaultValue: emotions.idle,+ control: {+ type: 'select'+ }+ },+ fov: { control: { type: 'range', min: 30, max: 100, step: 1 } }+};++export const HalfBody: StoryFn<typeof Avatar> = Template.bind({});+HalfBody.args = {+ ...Static.args,+ modelSrc: getStoryAssetPath('half-body.glb'),+ halfBody: true,+ cameraTarget: CAMERA.TARGET.HALF_BODY,+ cameraInitialDistance: CAMERA.INITIAL_DISTANCE.HALF_BODY,+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: half body avatar loaded'),+ onLoading: () => console.info('EVENT: loading half body avatar')+ /* eslint-enable no-console */+};++/* eslint-disable */+export const _DragNDrop: StoryFn<typeof Avatar> = DropTemplate.bind({});+_DragNDrop.args = {+ ...Static.args,+ modelSrc: undefined,+ animationSrc: undefined,+ poseSrc: '',+ environment: 'soft',+ cameraTarget: CAMERA.TARGET.FULL_BODY.FEMALE,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: binary file loaded'),+ onLoading: () => console.info('EVENT: loading avatar from binary file')+ /* eslint-enable no-console */+};+_DragNDrop.argTypes = {+ modelSrc: { control: false },+ animationSrc: { control: false },+ headMovement: { control: false },+ environment: { control: { type: 'text' } }+};+/* eslint-enable */++export default {+ title: 'Components/Avatar',+ component: Avatar,+ argTypes: {+ keyLightIntensity: { control: { type: 'range', min: 0, max: 20, step: 0.1 } },+ keyLightColor: { control: 'color' },+ fillLightIntensity: { control: { type: 'range', min: 0, max: 20, step: 0.1 } },+ fillLightColor: { control: 'color' },+ backLightIntensity: { control: { type: 'range', min: 0, max: 20, step: 0.1 } },+ backLightColor: { control: 'color' },+ cameraTarget: { control: { type: 'range', min: 0, max: 10, step: 0.01 } },+ scale: { control: { type: 'range', min: 0.01, max: 10, step: 0.01 } },+ cameraInitialDistance: { control: { type: 'range', min: 0, max: 2.5, step: 0.01 } },+ onLoaded: { control: false },+ environment: { options: Object.keys(environmentPresets), control: { type: 'select' } },+ fov: { control: { type: 'range', min: 30, max: 100, step: 1 } },+ onMeshClick: { control: false },+ onMeshHoverStart: { control: false },+ onMeshHoverEnd: { control: false },+ meshCallback: { control: false }+ }+};diff --git a/vendor/three-ws-fork/viewer/src/components/Avatar/Debug.stories.tsx b/vendor/three-ws-fork/viewer/src/components/Avatar/Debug.stories.tsxnew file mode 100644index 000000000..30c6686c6--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Avatar/Debug.stories.tsx@@ -0,0 +1,41 @@+import { StoryFn } from '@storybook/react';+import { StatsGl } from '@react-three/drei';+import type { Meta } from '@storybook/react';+import { Perf } from 'r3f-perf';+import React from 'react';+import { getStoryAssetPath } from 'src/services';+import { LIGHT_CONFIG } from '../Lights/Lights.component';+import { Avatar as AvatarWrapper } from './index';+import { AvatarProps } from './Avatar.component';++const Avatar = (args: AvatarProps) => (+ <AvatarWrapper {...args}>+ <Perf />+ <StatsGl />+ </AvatarWrapper>+);++const meta: Meta<typeof Avatar> = {+ component: Avatar+};++export default meta;++const Template: StoryFn<typeof Avatar> = (args) => <Avatar style={{ background: 'rgb(9,20,26)' }} {...args} />;+/* eslint-disable */+export const Debug: StoryFn<typeof Avatar> = Template.bind({});+Debug.args = {+ modelSrc: getStoryAssetPath('female.glb'),+ animationSrc: undefined,+ poseSrc: undefined,+ environment: 'hub',+ scale: 1,+ shadows: true,+ idleRotation: false,+ headMovement: false,+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: static avatar loaded'),+ onLoading: () => console.info('EVENT: loading static avatar'),+ /* eslint-enable no-console */+ ...LIGHT_CONFIG.defaultProps+};diff --git a/vendor/three-ws-fork/viewer/src/components/Avatar/Examples.stories.tsx b/vendor/three-ws-fork/viewer/src/components/Avatar/Examples.stories.tsxnew file mode 100644index 000000000..6d7e3b4ab--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Avatar/Examples.stories.tsx@@ -0,0 +1,238 @@+import React, { useCallback, useState } from 'react';+import { StoryFn } from '@storybook/react';+import { Sparkles as SparklesDrei } from '@react-three/drei';+import type { Meta } from '@storybook/react';+import { Avatar as AvatarWrapper, CAMERA } from 'src/components/Avatar';+import { getStoryAssetPath } from 'src/services';+import { ignoreArgTypesOnExamples, emotions, modelPresets, animationPresets } from 'src/services/Stories.service';+import { Mesh, MeshStandardMaterial, Vector3 } from 'three';+import { AvatarProps } from './Avatar.component';+import { Static } from './Avatar.stories';+import { BloomConfiguration } from '../../types';++const Avatar = (args: AvatarProps) => <AvatarWrapper {...args} />;++const Sparkles: StoryFn<typeof SparklesDrei> = (args: any) => <SparklesDrei {...args} />;+const meta: Meta<typeof Avatar> = {+ component: Avatar,+ // @ts-ignore+ subcomponents: { Sparkles }+};++export default meta;++export const Bloom: StoryFn<BloomConfiguration> = (args: BloomConfiguration | undefined) => (+ <Avatar+ modelSrc={modelPresets.one}+ cameraTarget={CAMERA.TARGET.FULL_BODY.FEMALE}+ cameraInitialDistance={CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE}+ effects={{ bloom: { ...args } }}+ keyLightIntensity={1.2}+ keyLightColor="#e8e3df"+ fillLightIntensity={3.0}+ fillLightColor="#99ccff"+ fillLightPosition={new Vector3(-0.5, 1.6, -0.5)}+ backLightIntensity={6.0}+ backLightColor="#fff0d6"+ backLightPosition={new Vector3(0.5, 1.6, -1.0)}+ lightTarget={new Vector3(0.0, 1.7, 0.0)}+ environment="soft"+ background={{+ color: 'rgb(9,20,26)'+ }}+ />+);++Bloom.args = {+ luminanceThreshold: 1.0,+ luminanceSmoothing: 1.0,+ mipmapBlur: true,+ kernelSize: 1,+ intensity: 1,+ materialIntensity: 1+};++Bloom.argTypes = {+ luminanceThreshold: { control: { type: 'range', step: 0.01, min: 0, max: 1 } },+ luminanceSmoothing: { control: { type: 'range', step: 0.01, min: 0, max: 1 } },+ mipmapBlur: { control: { type: 'boolean' } },+ intensity: { control: { type: 'range', min: 0, max: 100 } },+ materialIntensity: { control: { type: 'range', step: 0.01, min: 0, max: 1 } },+ kernelSize: { control: { type: 'range', min: 0, max: 4 } },+ ...ignoreArgTypesOnExamples+};++export const FloatingSparkles: StoryFn<typeof SparklesDrei> = (args) => (+ <Avatar+ modelSrc={getStoryAssetPath('female.glb')}+ cameraTarget={CAMERA.TARGET.FULL_BODY.FEMALE}+ cameraInitialDistance={CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE}+ shadows+ >+ <Sparkles {...args} />+ </Avatar>+);++FloatingSparkles.args = {+ count: 70,+ scale: 4,+ size: 5,+ speed: 0.25,+ opacity: 0.6,+ color: '#124cca',+ position: [0, 3, 0]+};++FloatingSparkles.argTypes = {+ count: { control: { type: 'range', min: 0, max: 70 } },+ scale: { control: { type: 'number' } },+ size: { control: { type: 'range', min: 0, max: 10 } },+ speed: { control: { type: 'range', step: 0.01, min: 0, max: 20 } },+ opacity: { control: { type: 'range', step: 0.01, min: 0, max: 1.1 } },+ ...ignoreArgTypesOnExamples+};++export const SpawnEffectAndAnimation: StoryFn<typeof Avatar> = (args) => (+ <Avatar {...args}>+ <Sparkles color="white" count={50} opacity={0.9} scale={5} size={0.5} speed={0.35} position={[0, 3, 0]} />+ </Avatar>+);+SpawnEffectAndAnimation.args = {+ onLoadedEffect: {+ src: getStoryAssetPath('spawn-effect.glb'),+ loop: 12+ },+ onLoadedAnimation: {+ src: getStoryAssetPath('male-spawn-animation.fbx'),+ loop: 1+ },+ cameraTarget: CAMERA.TARGET.FULL_BODY.FEMALE,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ modelSrc: getStoryAssetPath('male-emissive.glb'),+ animationSrc: getStoryAssetPath('male-idle.glb'),+ background: { color: 'rgb(9,20,26)' }+};+SpawnEffectAndAnimation.argTypes = {+ ...ignoreArgTypesOnExamples,+ onLoadedEffect: { control: { disable: false } },+ onLoadedAnimation: { control: { disable: false } },+ modelSrc: { control: { disable: false } },+ animationSrc: { control: { disable: false } }+};++export const Posing: StoryFn<typeof Avatar> = (args) => <Avatar {...args} />;+Posing.args = {+ ...Static.args,+ modelSrc: getStoryAssetPath('male.glb'),+ poseSrc: getStoryAssetPath('male-pose-standing.glb'),+ cameraTarget: CAMERA.TARGET.FULL_BODY.MALE,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: posing avatar loaded'),+ onLoading: () => console.info('EVENT: loading posing avatar'),+ /* eslint-enable no-console */+ emotion: emotions.smile+};+Posing.argTypes = {+ headMovement: { control: false }+};++export const IdleBlinking: StoryFn<typeof Avatar> = (args) => <Avatar {...args} />;+IdleBlinking.args = {+ // @ts-ignore+ Comment: "Idle blinking works when avatar includes morph targets for 'ARKit' and 'Eyes Extra'.",+ ...Static.args,+ modelSrc: modelPresets.seven,+ animationSrc: animationPresets.three,+ cameraTarget: CAMERA.TARGET.FULL_BODY.MALE,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ headMovement: true,+ emotion: emotions.smile+};+IdleBlinking.argTypes = {+ ...ignoreArgTypesOnExamples,+ modelSrc: { options: Object.values({ seven: modelPresets.seven }), control: { type: 'select' } },+ animationSrc: { options: Object.values(animationPresets), control: { type: 'select' } }+};++const highlightMaterial = new MeshStandardMaterial({ color: '#ff0000', transparent: false });++export const MouseActions: StoryFn<typeof Avatar> = (args) => {+ const [originalMaterials] = useState(new Map());++ const handleModelClick = (mesh: Mesh) => {+ console.log('Clicked mesh:', mesh);+ };++ const dimClothMaterials = (mesh: Mesh) => {+ const meshWhitelist = ['Wolf3D_Outfit_Top', 'Wolf3D_Outfit_Bottom', 'Wolf3D_Hair', 'Wolf3D_Outfit_Footwear'];++ if (!meshWhitelist.includes(mesh.name)) {+ return;+ }++ const material = mesh.material as MeshStandardMaterial;+ material.color.setHex(0x404040);+ material.roughness = 0.8;+ material.metalness = 0.1;+ material.emissive.setHex(0xffffff);+ material.emissiveIntensity = 0.1;+ };++ const onMeshHoverStart = useCallback(+ (mesh: Mesh) => {+ const meshWhiteList = ['Wolf3D_Outfit_Top', 'Wolf3D_Outfit_Bottom', 'Wolf3D_Hair', 'Wolf3D_Outfit_Footwear'];++ if (!meshWhiteList.includes(mesh?.name)) {+ return;+ }++ document.body.style.cursor = 'pointer';++ // Store original material and set hover highlight for the new mesh+ if (!originalMaterials.has(mesh.name)) {+ originalMaterials.set(mesh.name, mesh.material);++ // eslint-disable-next-line no-param-reassign+ mesh.material = highlightMaterial;+ }+ },+ [originalMaterials]+ );++ const onMeshHoverEnd = useCallback(+ (mesh: Mesh) => {+ const originalMaterial = originalMaterials.get(mesh.name);++ if (originalMaterial) {+ document.body.style.cursor = 'default';+ // eslint-disable-next-line no-param-reassign+ mesh.material = originalMaterial;+ originalMaterials.delete(mesh.name);+ }+ },+ [originalMaterials]+ );++ return (+ <Avatar+ {...args}+ onMeshClick={handleModelClick}+ meshCallback={dimClothMaterials}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ />+ );+};++MouseActions.args = {+ ...Static.args,+ modelSrc: getStoryAssetPath('male.glb'),+ cameraTarget: CAMERA.TARGET.FULL_BODY.MALE,+ cameraInitialDistance: CAMERA.CONTROLS.FULL_BODY.MAX_DISTANCE,+ background: {+ color: 'rgba(134, 157, 169, 1)'+ }+};++MouseActions.argTypes = {};diff --git a/vendor/three-ws-fork/viewer/src/components/Avatar/index.ts b/vendor/three-ws-fork/viewer/src/components/Avatar/index.tsnew file mode 100644index 000000000..07a545275--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Avatar/index.ts@@ -0,0 +1,4 @@+import Avatar, { CAMERA, AvatarProps } from './Avatar.component';++export { Avatar, CAMERA };+export type { AvatarProps };diff --git a/vendor/three-ws-fork/viewer/src/components/Background/Box/Box.component.tsx b/vendor/three-ws-fork/viewer/src/components/Background/Box/Box.component.tsxnew file mode 100644index 000000000..13f757f2f--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Background/Box/Box.component.tsx@@ -0,0 +1,18 @@+import React, { FC, useRef } from 'react';+import { Mesh, TextureLoader } from 'three';+import { useLoader } from '@react-three/fiber';+import { MeshProps } from '@react-three/fiber/dist/declarations/src/three-types';++export type Background = { src?: string; color?: string } & MeshProps;++export const Box: FC<Background> = ({ src = '', ...baseProps }) => {+ const ref = useRef<Mesh>(null);+ const texture = useLoader(TextureLoader, src);++ return (+ <mesh ref={ref} castShadow receiveShadow {...baseProps}>+ <boxGeometry />+ <meshPhysicalMaterial map={texture} />+ </mesh>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Background/Color/Color.component.tsx b/vendor/three-ws-fork/viewer/src/components/Background/Color/Color.component.tsxnew file mode 100644index 000000000..99e164af5--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Background/Color/Color.component.tsx@@ -0,0 +1,12 @@+import React, { FC } from 'react';++export type BackgroundColorProps = {+ /**+ * CSS-style string. Accepts Hexadeximal, RGB, X11 color name, HSL string+ * For example: '#000', 'red', 'rgb(255, 0, 0)'.+ * Doesn't support CSS gradients.+ */+ color: string;+};++export const BackgroundColor: FC<BackgroundColorProps> = ({ color }) => <color attach="background" args={[color]} />;diff --git a/vendor/three-ws-fork/viewer/src/components/Background/index.ts b/vendor/three-ws-fork/viewer/src/components/Background/index.tsnew file mode 100644index 000000000..6d4e13fc2--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Background/index.ts@@ -0,0 +1,2 @@+export { BackgroundColor } from './Color/Color.component';+export { Box } from './Box/Box.component';diff --git a/vendor/three-ws-fork/viewer/src/components/BaseCanvas/BaseCanvas.component.tsx b/vendor/three-ws-fork/viewer/src/components/BaseCanvas/BaseCanvas.component.tsxnew file mode 100644index 000000000..1460aa8a0--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/BaseCanvas/BaseCanvas.component.tsx@@ -0,0 +1,48 @@+import React, { ReactNode, FC, CSSProperties } from 'react';+import { Canvas, Dpr } from '@react-three/fiber';+import { ACESFilmicToneMapping, Vector3 } from 'three';+import { CameraProps, CanvasConfiguration } from 'src/types';+import { hasWindow } from 'src/services/Client.service';+import styles from './BaseCanvas.module.scss';++interface BaseCanvasProps extends CameraProps {+ children?: ReactNode;+ fov?: number;+ style?: CSSProperties;+ dpr?: Dpr;+ className?: string;+ enablePostProcessing?: boolean;+ canvasConfig?: CanvasConfiguration;+}++const BASE_DPR = hasWindow ? window.devicePixelRatio : 1;++export const BaseCanvas: FC<BaseCanvasProps> = ({+ enablePostProcessing,+ children = undefined,+ fov = 50,+ position = new Vector3(0, 0, 5),+ style,+ dpr = [BASE_DPR * 0.5, 1],+ className,+ canvasConfig = { alpha: true }+}) => (+ <Canvas+ key={fov}+ className={`${styles['base-canvas']} ${className ?? ''}`}+ shadows="soft"+ gl={{+ preserveDrawingBuffer: true,+ alpha: canvasConfig.alpha,+ toneMapping: ACESFilmicToneMapping,+ toneMappingExposure: 1.8+ }}+ flat={enablePostProcessing}+ dpr={dpr}+ camera={{ fov, position }}+ resize={{ scroll: true, debounce: { scroll: 50, resize: 0 } }}+ style={{ ...style, background: canvasConfig.alpha ? 'transparent' : style?.background }}+ >+ {children}+ </Canvas>+);diff --git a/vendor/three-ws-fork/viewer/src/components/BaseCanvas/BaseCanvas.module.scss b/vendor/three-ws-fork/viewer/src/components/BaseCanvas/BaseCanvas.module.scssnew file mode 100644index 000000000..04eb1b3c8--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/BaseCanvas/BaseCanvas.module.scss@@ -0,0 +1,6 @@+.base-canvas {+ width: 100%;+ height: 100%;+ margin: 0;+ padding: 0;+}diff --git a/vendor/three-ws-fork/viewer/src/components/BaseCanvas/index.ts b/vendor/three-ws-fork/viewer/src/components/BaseCanvas/index.tsnew file mode 100644index 000000000..6f1420324--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/BaseCanvas/index.ts@@ -0,0 +1 @@+export { BaseCanvas } from './BaseCanvas.component';diff --git a/vendor/three-ws-fork/viewer/src/components/Bloom/Bloom.component.tsx b/vendor/three-ws-fork/viewer/src/components/Bloom/Bloom.component.tsxnew file mode 100644index 000000000..8c9dd6b23--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Bloom/Bloom.component.tsx@@ -0,0 +1,21 @@+import React, { FC } from 'react';+import { Bloom as BloomPostProcessing } from '@react-three/postprocessing';+import { BloomConfiguration } from 'src/types';++const Bloom: FC<BloomConfiguration> = ({+ luminanceThreshold = 1,+ luminanceSmoothing = 1,+ mipmapBlur = true,+ intensity = 0.1,+ kernelSize = 0+}) => (+ <BloomPostProcessing+ luminanceThreshold={luminanceThreshold}+ luminanceSmoothing={luminanceSmoothing}+ mipmapBlur={mipmapBlur}+ intensity={intensity}+ kernelSize={kernelSize}+ />+);++export default Bloom;diff --git a/vendor/three-ws-fork/viewer/src/components/Capture/Capture.component.tsx b/vendor/three-ws-fork/viewer/src/components/Capture/Capture.component.tsxnew file mode 100644index 000000000..c1d8af252--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Capture/Capture.component.tsx@@ -0,0 +1,36 @@+import React, { FC, useEffect } from 'react';+import { useThree } from '@react-three/fiber';++type CaptureSettingsType = {+ quality?: number;+ type?: string;+};++export type CaptureType = {+ trigger: boolean;+ callBack: (capture?: string) => void;+ settings?: CaptureSettingsType;+};++type CaptureProps = CaptureType;++const Capture: FC<CaptureProps> = ({ trigger, settings, callBack }) => {+ const gl = useThree((state) => state.gl);++ const type = settings?.type || 'image/png';+ const quality = settings?.quality || 0.1;++ useEffect(() => {+ if (trigger) {+ const capture = gl.domElement.toDataURL(type, quality);++ callBack(capture);+ }+ /* eslint-disable-next-line react-hooks/exhaustive-deps */+ }, [trigger]);++ // eslint-disable-next-line react/jsx-no-useless-fragment+ return <></>;+};++export default Capture;diff --git a/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.component.tsx b/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.component.tsxnew file mode 100644index 000000000..caa37cf1e--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.component.tsx@@ -0,0 +1,167 @@+import React, { Suspense, FC, CSSProperties, useMemo, useEffect } from 'react';+import { ContactShadows, Bounds, PresentationControls } from '@react-three/drei';+import { Environment } from 'src/components/Scene/Environment.component';+import { isValidFormat, triggerCallback } from 'src/services';+import { BaseModelProps, CameraProps, EnvironmentProps } from 'src/types';+import { FloatingModel } from 'src/components/Models/FloatingModel';+import { RotatingModel } from 'src/components/Models/RotatingModel';+import { StaticModel } from 'src/components/Models/StaticModel';+import { BoundsModel } from 'src/components/Models/BoundsModel';+import { BaseCanvas } from 'src/components/BaseCanvas';+import Capture, { CaptureType } from 'src/components/Capture/Capture.component';+import { BackgroundColor } from 'src/components/Background';++export interface ExhibitProps extends CameraProps, EnvironmentProps, Omit<BaseModelProps, 'setModelFallback'> {+ /**+ * Arbitrary binary data (base64 string | Blob) of a `.glb` file or path (URL) to a `.glb` resource.+ */+ modelSrc: string | Blob;+ /**+ * Size of the rendered GLB model.+ */+ scale?: number;+ /**+ * Pass styling to canvas.+ */+ style?: CSSProperties;+ /**+ * Custom style classes for canvas.+ */+ className?: string;+ /**+ * Enables soft shadows.+ */+ shadows?: boolean;+ /**+ * Enables floating idle animation.+ */+ float?: boolean;+ /**+ * Enables model to fit to available canvas dimensions.+ */+ fit?: boolean;+ /**+ * Return base64 image after making screenshot of the canvas.+ */+ capture?: CaptureType;+ /**+ * Enables snap-back to center after rotating model.+ */+ snap?: boolean;+ /**+ * Disables vertical rotation.+ */+ lockVertical?: boolean;+ /**+ * Disables horizontal rotation.+ */+ lockHorizontal?: boolean;+ /**+ * Enables idle horizontal rotation+ */+ horizontalRotation?: boolean;+ horizontalRotationStep?: number;+ verticalRotationStep?: number;+ children?: any;+ disableInitialLight?: boolean;+ disableEnvironment?: boolean;+}++/**+ * Interactive presentation of any GLTF (.glb) asset.+ */+export const Exhibit: FC<ExhibitProps> = ({+ modelSrc,+ scale = 1.0,+ environment = 'city',+ position,+ style,+ className,+ shadows = false,+ float = false,+ fit = false,+ capture,+ snap = false,+ lockVertical = false,+ onLoaded,+ onLoading,+ horizontalRotation,+ lockHorizontal = false,+ horizontalRotationStep,+ verticalRotationStep,+ children,+ disableInitialLight,+ disableEnvironment+}) => {+ const model = useMemo(() => {+ if (!isValidFormat(modelSrc)) {+ return null;+ }++ if (float) {+ return <FloatingModel modelSrc={modelSrc} scale={scale} onLoaded={onLoaded} />;+ }++ if (horizontalRotation) {+ return (+ <RotatingModel+ verticalRotationStep={verticalRotationStep}+ horizontalRotationStep={horizontalRotationStep}+ modelSrc={modelSrc}+ scale={scale}+ onLoaded={onLoaded}+ lockHorizontal={lockHorizontal}+ lockVertical={lockVertical}+ />+ );+ }++ return <StaticModel modelSrc={modelSrc} scale={scale} onLoaded={onLoaded} />;+ }, [+ onLoaded,+ float,+ modelSrc,+ scale,+ horizontalRotation,+ lockHorizontal,+ lockVertical,+ verticalRotationStep,+ horizontalRotationStep+ ]);++ useEffect(() => triggerCallback(onLoading), [modelSrc, onLoading]);++ return (+ <BaseCanvas position={position} style={style} className={className}>+ <Suspense fallback={null}>+ {!disableInitialLight && (+ <>+ <ambientLight intensity={0.5} />+ <spotLight position={[10, 10, 10]} angle={0.15} penumbra={1} shadow-mapSize={[512, 512]} castShadow />+ </>+ )}+ <PresentationControls+ global+ config={{ mass: 2, tension: 500 }}+ snap={snap}+ rotation={[0, -0.3, 0]}+ polar={lockVertical ? [0, 0] : [-Math.PI / 3, Math.PI / 3]}+ azimuth={lockHorizontal ? [0, 0] : [-Infinity, Infinity]}+ >+ {model && (+ <Bounds fit={fit} clip={fit} observe={fit}>+ <BoundsModel modelSrc={modelSrc} fit={fit} onLoaded={onLoaded}>+ {model}+ </BoundsModel>+ </Bounds>+ )}+ </PresentationControls>+ {children}+ {shadows && <ContactShadows position={[0, -1.0, 0]} opacity={0.75} scale={10} blur={2.6} far={2} />}+ {!disableEnvironment && <Environment environment={environment} />}+ </Suspense>+ {capture && <Capture {...capture} />}+ {style?.background && <BackgroundColor color={style.background as string} />}+ </BaseCanvas>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.stories.tsx b/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.stories.tsxnew file mode 100644index 000000000..efb7c671e--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.stories.tsx@@ -0,0 +1,58 @@+import React from 'react';+import { ComponentStory, ComponentMeta } from '@storybook/react';+import { getStoryAssetPath } from 'src/services';+import { FileDropper } from 'src/components/FileDropper/FileDropper.component';+import { Vector3 } from 'three';+import { environmentPresets } from 'src/services/Environment.service';+import { Exhibit } from './Exhibit.component';++const Template: ComponentStory<typeof Exhibit> = (args) => <Exhibit {...args} />;+const DropTemplate: ComponentStory<typeof Exhibit> = (args) => (+ <FileDropper placeholder="Drag n' Drop a .glb model here">+ <Exhibit {...args} />+ </FileDropper>+);++export const Default = Template.bind({});+Default.args = {+ modelSrc: getStoryAssetPath('headwear.glb'),+ scale: 3,+ environment: 'hub',+ position: new Vector3(0, 1, 5),+ fit: true,+ float: true,+ shadows: true,+ style: { background: '#ccc' },+ snap: true,+ lockVertical: false,+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: static avatar loaded'),+ onLoading: () => console.info('EVENT: loading static avatar')+ /* eslint-enable no-console */+};+Default.argTypes = {+ environment: { options: Object.keys(environmentPresets), control: { type: 'select' } }+};++/* eslint-disable */+export const _DragNDrop = DropTemplate.bind({});+_DragNDrop.args = {+ ...Default.args,+ /* eslint-disable no-console */+ onLoaded: () => console.info('EVENT: static avatar loaded'),+ onLoading: () => console.info('EVENT: loading static avatar'),+ /* eslint-enable no-console */+ position: new Vector3(0, 0, 5)+};+_DragNDrop.argTypes = {+ modelSrc: { control: false }+};+/* eslint-enable */++export default {+ title: 'Components/Exhibit',+ component: Exhibit,+ argTypes: {+ scale: { control: { type: 'range', min: 0.01, max: 10, step: 0.01 } }+ }+} as ComponentMeta<typeof Exhibit>;diff --git a/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.test.tsx b/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.test.tsxnew file mode 100644index 000000000..5ca551685--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Exhibit/Exhibit.test.tsx@@ -0,0 +1,28 @@+import React from 'react';+import { render, RenderResult } from '@testing-library/react';+import { Exhibit } from 'src/components/Exhibit';+import { act } from '@react-three/fiber';++describe('Exhibit component', () => {+ it('should mount without errors', async () => {+ let renderer: RenderResult = null!;+ act(() => {+ renderer = render(<Exhibit modelSrc="https://www.__test__.it/works.glb" />);+ });++ expect(renderer.container).toMatchSnapshot();+ });++ it('should change background color', async () => {+ const teal = {+ hex: '#008080'+ };++ let renderer: RenderResult = null!;+ act(() => {+ renderer = render(<Exhibit modelSrc="" style={{ background: teal.hex }} />);+ });++ expect(renderer.container).toMatchSnapshot();+ });+});diff --git a/vendor/three-ws-fork/viewer/src/components/Exhibit/__snapshots__/Exhibit.test.tsx.snap b/vendor/three-ws-fork/viewer/src/components/Exhibit/__snapshots__/Exhibit.test.tsx.snapnew file mode 100644index 000000000..c6032a7c9--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Exhibit/__snapshots__/Exhibit.test.tsx.snap@@ -0,0 +1,35 @@+// Jest Snapshot v1, https://goo.gl/fbAQLP++exports[`Exhibit component should change background color 1`] = `+<div>+ <div+ class="base-canvas "+ style="position: relative; width: 100%; height: 100%; overflow: hidden; pointer-events: auto; background: transparent;"+ >+ <div+ style="width: 100%; height: 100%;"+ >+ <canvas+ style="display: block;"+ />+ </div>+ </div>+</div>+`;++exports[`Exhibit component should mount without errors 1`] = `+<div>+ <div+ class="base-canvas "+ style="position: relative; width: 100%; height: 100%; overflow: hidden; pointer-events: auto; background: transparent;"+ >+ <div+ style="width: 100%; height: 100%;"+ >+ <canvas+ style="display: block;"+ />+ </div>+ </div>+</div>+`;diff --git a/vendor/three-ws-fork/viewer/src/components/Exhibit/index.ts b/vendor/three-ws-fork/viewer/src/components/Exhibit/index.tsnew file mode 100644index 000000000..b82eacb48--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Exhibit/index.ts@@ -0,0 +1 @@+export { Exhibit } from './Exhibit.component';diff --git a/vendor/three-ws-fork/viewer/src/components/FileDropper/FileDropper.component.tsx b/vendor/three-ws-fork/viewer/src/components/FileDropper/FileDropper.component.tsxnew file mode 100644index 000000000..2c4cda76c--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/FileDropper/FileDropper.component.tsx@@ -0,0 +1,89 @@+import React, { useEffect, FC, useRef, useState, ReactNode, ReactElement, Children, cloneElement } from 'react';+import styles from './FileDropper.module.scss';++interface DropContainerProps {+ children?: ReactNode | ReactNode[];+ placeholder?: string;+}++/**+ * This component is only for using in Storybook for showcasing drag'n'drop functionality.+ */+export const FileDropper: FC<DropContainerProps> = ({+ children,+ placeholder = `Drag n' Drop a .glb model here, then Drop an animation .glb or .fbx`+}) => {+ const ref = useRef<HTMLDivElement>(null);+ const [modelSrc, setModelSrc] = useState('');+ const [animationSrc, setAnimationSrc] = useState('');++ const getBase64 = (file: File): Promise<string> =>+ new Promise((resolve, reject) => {+ const reader = new FileReader();+ reader.readAsDataURL(file);+ reader.onload = () => resolve(reader.result as string);+ reader.onerror = (error) => reject(error);+ });++ const handleDrag = (e: DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ };++ const handleDragIn = (e: DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ };+ const handleDragOut = (e: DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ };+ const handleDrop = async (e: DragEvent) => {+ e.preventDefault();+ e.stopPropagation();++ if (e.dataTransfer?.items[0].kind === 'file') {+ const file = e.dataTransfer.items[0].getAsFile();++ if (!(file!.name?.endsWith('.glb') || file!.name?.endsWith('.fbx'))) {+ return;+ }++ if (modelSrc === '') {+ setModelSrc(await getBase64(file!));+ }++ if (modelSrc !== '') {+ setAnimationSrc(await getBase64(file!));+ }+ }+ };++ useEffect(() => {+ const element = ref.current!;++ element.addEventListener('dragenter', handleDragIn);+ element.addEventListener('dragleave', handleDragOut);+ element.addEventListener('dragover', handleDrag);+ element.addEventListener('drop', handleDrop);++ return () => {+ element.removeEventListener('dragenter', handleDragIn);+ element.removeEventListener('dragleave', handleDragOut);+ element.removeEventListener('dragover', handleDrag);+ element.removeEventListener('drop', handleDrop);+ };+ });++ return (+ <div className={styles.fileDropContainer} ref={ref}>+ {modelSrc.length < 1 ? (+ <div className={styles.placeholder}>{placeholder}</div>+ ) : (+ Children.map(Children.toArray(children), (child) =>+ cloneElement(child as ReactElement, { modelSrc, animationSrc })+ )+ )}+ </div>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/FileDropper/FileDropper.module.scss b/vendor/three-ws-fork/viewer/src/components/FileDropper/FileDropper.module.scssnew file mode 100644index 000000000..b63f997be--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/FileDropper/FileDropper.module.scss@@ -0,0 +1,15 @@+.fileDropContainer {+ box-sizing: border-box;+ width: 100%;+ height: 100%;+ display: flex;+ padding: 1rem;+ background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23333' stroke-width='4' stroke-dasharray='10' stroke-dashoffset='7' stroke-linecap='square'/%3e%3c/svg%3e");+ border-radius: 16px;+ align-items: center;+ justify-content: center;+}+.placeholder {+ color: #2c2c2c;+ font-weight: 500;+}\ No newline at end of filediff --git a/vendor/three-ws-fork/viewer/src/components/FileDropper/index.ts b/vendor/three-ws-fork/viewer/src/components/FileDropper/index.tsnew file mode 100644index 000000000..f4b549efa--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/FileDropper/index.ts@@ -0,0 +1 @@+export { FileDropper } from './FileDropper.component';diff --git a/vendor/three-ws-fork/viewer/src/components/FloorReflection/FloorReflection.component.tsx b/vendor/three-ws-fork/viewer/src/components/FloorReflection/FloorReflection.component.tsxnew file mode 100644index 000000000..7f1609ae7--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/FloorReflection/FloorReflection.component.tsx@@ -0,0 +1,69 @@+import React, { FC } from 'react';+import { MeshReflectorMaterial } from '@react-three/drei';++export interface FloorReflectionProps {+ resolution?: number;+ mixBlur?: number;+ mixStrength?: number;+ metalness?: number;+ blur?: [number, number] | number;+ mirror?: number;+ minDepthThreshold?: number;+ maxDepthThreshold?: number;+ depthScale?: number;+ depthToBlurRatioBias?: number;+ distortion?: number;+ mixContrast?: number;+ reflectorOffset?: number;+ roughness?: number;+ /**+ * The color should match the canvas background color to provide a seamless transition from background to the reflective plane.+ */+ color: string;+}+export const FloorReflection: FC<FloorReflectionProps> = ({+ resolution = 512,+ mixBlur = 0.8,+ mixStrength = 80,+ metalness = 0.5,+ blur = [300, 200],+ mirror = 1,+ minDepthThreshold = 0.4,+ maxDepthThreshold = 1.4,+ depthScale = 1.2,+ depthToBlurRatioBias = 1,+ distortion = 0,+ mixContrast = 1,+ reflectorOffset = 0,+ roughness = 1,+ color,+ ...props+}) => (+ <>+ <fog attach="fog" args={[color, 2, 6]} />+ <group position={[0, 0, 0]}>+ <mesh rotation={[-Math.PI / 2, 0, 0]}>+ <planeGeometry args={[20, 10]} />+ <MeshReflectorMaterial+ resolution={resolution}+ mixBlur={mixBlur}+ mixStrength={mixStrength}+ metalness={metalness}+ blur={blur}+ mirror={mirror}+ minDepthThreshold={minDepthThreshold}+ maxDepthThreshold={maxDepthThreshold}+ depthScale={depthScale}+ depthToBlurRatioBias={depthToBlurRatioBias}+ distortion={distortion}+ mixContrast={mixContrast}+ reflectorOffset={reflectorOffset}+ roughness={roughness}+ color={color}+ envMapIntensity={0}+ {...props}+ />+ </mesh>+ </group>+ </>+);diff --git a/vendor/three-ws-fork/viewer/src/components/FloorReflection/index.ts b/vendor/three-ws-fork/viewer/src/components/FloorReflection/index.tsnew file mode 100644index 000000000..1c7003014--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/FloorReflection/index.ts@@ -0,0 +1,2 @@+export { FloorReflection } from './FloorReflection.component';+export type { FloorReflectionProps } from './FloorReflection.component';diff --git a/vendor/three-ws-fork/viewer/src/components/Lights/Lights.component.tsx b/vendor/three-ws-fork/viewer/src/components/Lights/Lights.component.tsxnew file mode 100644index 000000000..c940af30f--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Lights/Lights.component.tsx@@ -0,0 +1,108 @@+import { useThree } from '@react-three/fiber';+import React, { FC, useEffect, useState } from 'react';+import { LightingProps } from 'src/types';+import { definedProps } from 'src/utils/props';+import { Object3D, Vector3 } from 'three';++export const LIGHT_CONFIG = Object.freeze({+ fillLightAngle: Math.PI / 3,+ backLightAngle: Math.PI / 8,+ keyLightAngle: Math.PI,+ silhouetteLightAngle: Math.PI * 1.5,+ keyLightPosition: new Vector3(0.5, 1.55, 0.5),+ liftLightPosition: new Vector3(0.25, 1.7, 2.0),+ dirLightPosition: new Vector3(-0.75, 2.5, -1.0),+ silhouetteLightPosition: new Vector3(-1.5, 0.1, -1.5),+ defaultProps: {+ keyLightIntensity: 0.8,+ keyLightColor: '#FFFFFF',+ fillLightIntensity: 3.0,+ fillLightColor: '#6794FF',+ fillLightPosition: new Vector3(-0.5, 1.6, -0.5),+ backLightIntensity: 6.0,+ backLightColor: '#FFB878',+ backLightPosition: new Vector3(0.5, 1.6, -1.0),+ lightTarget: new Vector3(0.0, 1.7, 0.0)+ } as Required<LightingProps>+});++const Lights: FC<LightingProps> = (lightingProps) => {+ // use default props as fallback if no custom lighting settings are provided+ const {+ keyLightIntensity,+ keyLightColor,+ fillLightIntensity,+ fillLightColor,+ fillLightPosition,+ backLightIntensity,+ backLightColor,+ backLightPosition,+ lightTarget+ } = Object.assign(LIGHT_CONFIG.defaultProps, definedProps(lightingProps));++ const { scene } = useThree();++ const [targets] = useState<{ head: Object3D; shoe: Object3D }>({+ head: new Object3D(),+ shoe: new Object3D()+ });++ useEffect(() => {+ // apply provided positions for targets+ targets.head.position.copy(lightTarget);+ targets.shoe.position.set(0.0, 0.0, 0.0);++ // add targets to scene (without the spotlights would not aim at them)+ scene.add(targets.head);+ scene.add(targets.shoe);+ }, []);++ return (+ <group>+ {/* Fill light that by default creates strong blue rim on the right face side. */}+ <spotLight+ position={fillLightPosition}+ target={targets.head}+ angle={LIGHT_CONFIG.fillLightAngle}+ color={fillLightColor}+ intensity={fillLightIntensity}+ castShadow+ />+ {/* Back light that by default creates light warm rim on the left face side. */}+ <spotLight+ position={backLightPosition}+ target={targets.head}+ angle={LIGHT_CONFIG.backLightAngle}+ color={backLightColor}+ intensity={backLightIntensity}+ castShadow+ />+ {/* Key light that creates soft face light. */}+ <spotLight+ position={LIGHT_CONFIG.keyLightPosition}+ target={targets.head}+ angle={LIGHT_CONFIG.keyLightAngle}+ color={keyLightColor}+ intensity={keyLightIntensity}+ />+ {/* Lift light that creates soft light on body and shoes. */}+ <spotLight+ position={LIGHT_CONFIG.liftLightPosition}+ target={targets.shoe}+ angle={LIGHT_CONFIG.keyLightAngle}+ color={keyLightColor}+ intensity={keyLightIntensity * 0.25}+ />+ {/* Silhouette light on arms and legs. */}+ <spotLight+ position={LIGHT_CONFIG.silhouetteLightPosition}+ target={targets.head}+ angle={LIGHT_CONFIG.silhouetteLightAngle}+ color={keyLightColor}+ intensity={keyLightIntensity * 0.25}+ />+ </group>+ );+};++export default Lights;diff --git a/vendor/three-ws-fork/viewer/src/components/Loader/Loader.component.tsx b/vendor/three-ws-fork/viewer/src/components/Loader/Loader.component.tsxnew file mode 100644index 000000000..2d21a39b9--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Loader/Loader.component.tsx@@ -0,0 +1,15 @@+import React, { FC } from 'react';++import styles from './Loader.module.scss';++const Loader: FC = () => (+ <div className={styles.loader}>+ <div className={styles.dots}>+ {[1, 2, 3].map((it) => (+ <div key={it} className={styles.dot} />+ ))}+ </div>+ </div>+);++export { Loader };diff --git a/vendor/three-ws-fork/viewer/src/components/Loader/Loader.module.scss b/vendor/three-ws-fork/viewer/src/components/Loader/Loader.module.scssnew file mode 100644index 000000000..174ce2375--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Loader/Loader.module.scss@@ -0,0 +1,53 @@+.loader {+ display: flex;+ flex-direction: column;+ justify-content: center;+ align-items: center;+ height: 100%;+ width: 100%;+}++.dots {+ display: flex;+ align-items: center;+ justify-content: center;+}++.dot {+ background-color: rgb(236, 236, 236);+ width: 8px;+ height: 8px;+ margin: 2px;+ border-radius: 100%;+ display: inline-block;++ &:nth-child(1) {+ animation: 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08) 0.12s infinite normal both running glowing;+ }++ &:nth-child(2) {+ animation: 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08) 0.24s infinite normal both running glowing;+ }++ &:nth-child(3) {+ animation: 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08) 0.36s infinite normal both running glowing;+ }+}++@keyframes glowing {+ 0% {+ transform: scale(1);+ opacity: 1;+ }++ 45% {+ transform: scale(0.1);+ opacity: 0.7;+ }++ 80% {+ transform: scale(1);+ opacity: 1;+ }+}+diff --git a/vendor/three-ws-fork/viewer/src/components/Loader/index.ts b/vendor/three-ws-fork/viewer/src/components/Loader/index.tsnew file mode 100644index 000000000..5b43c5bb6--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Loader/index.ts@@ -0,0 +1,3 @@+import { Loader } from './Loader.component';++export default Loader;diff --git a/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/AnimationModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/AnimationModel.component.tsxnew file mode 100644index 000000000..df68e6f57--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/AnimationModel.component.tsx@@ -0,0 +1,121 @@+import React, { useRef, FC, useMemo, useState, useEffect } from 'react';+import { useFrame, useGraph } from '@react-three/fiber';+import { AnimationMixer, Group } from 'three';++import { Model } from 'src/components/Models/Model';+import { useHeadMovement, useGltfLoader, useFallback, useIdleExpression, useEmotion } from 'src/services';+import { BaseModelProps } from 'src/types';+import {+ disposeAssetAnimations,+ loadAnimationClips,+ playAssetIdleAnimation,+ updateAssetAnimations+} from 'src/services/Animation.service';+import { Emotion } from 'src/components/Avatar/Avatar.component';++export interface AnimationModelProps extends BaseModelProps {+ modelSrc: string | Blob;+ animationSrc: string | Blob;+ rotation?: number;+ scale?: number;+ idleRotation?: boolean;+ headMovement?: boolean;+ emotion?: Emotion;+}++let currentRotation = 0;++export const AnimationModel: FC<AnimationModelProps> = ({+ modelSrc,+ animationSrc,+ rotation = 20 * (Math.PI / 180),+ scale = 1,+ idleRotation = false,+ setModelFallback,+ onLoaded,+ headMovement = false,+ emotion,+ bloom,+ materialConfig,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const ref = useRef<Group>(null);+ const [animationRunning, setAnimationRunning] = useState(true);+ const onSpawnAnimationFinish = () => {+ setAnimationRunning(false);+ };++ const { scene, animations: embeddedAnimations } = useGltfLoader(modelSrc);+ const { nodes } = useGraph(scene);++ const assetMixerRef = useRef<Array<AnimationMixer> | null>(null);++ useEffect(() => {+ assetMixerRef.current = playAssetIdleAnimation(scene, embeddedAnimations);++ return () => {+ disposeAssetAnimations(assetMixerRef.current, scene);++ assetMixerRef.current = null;+ };+ }, [scene, embeddedAnimations]);++ const animationClip = useMemo(async () => {+ const clip = await loadAnimationClips(animationSrc);+ return clip[0];+ }, [animationSrc]);++ const animationMixer = useMemo(async () => {+ const mixer = new AnimationMixer(nodes.Armature);+ if (animationRunning) {+ return mixer;+ }++ const animation = mixer.clipAction(await animationClip);+ animation.fadeIn(0);+ animation.play();++ mixer.update(0);++ return mixer;+ }, [animationRunning, animationClip, nodes.Armature]);++ useFrame(async (state, delta) => {+ updateAssetAnimations(assetMixerRef.current, delta);++ (await animationMixer)?.update(delta);++ if (!idleRotation) {+ return;+ }++ if (ref?.current) {+ currentRotation += delta * 0.2;+ ref.current.rotation.y = rotation + Math.sin(currentRotation) / 3;+ }+ });++ useHeadMovement({ nodes, enabled: headMovement });+ useEmotion(nodes, emotion);+ useIdleExpression('blink', nodes);+ useFallback(nodes, setModelFallback);++ return (+ <Model+ modelRef={ref}+ scene={scene}+ scale={scale}+ onLoaded={onLoaded}+ onSpawnAnimationFinish={onSpawnAnimationFinish}+ bloom={bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/AnimationModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/AnimationModel.container.tsxnew file mode 100644index 000000000..72a6561ec--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/AnimationModel.container.tsx@@ -0,0 +1,16 @@+import React, { FC, Suspense, useState } from 'react';+import { AnimationModel, AnimationModelProps } from './AnimationModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const AnimationModelContainer: FC<AnimationModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ return (+ <Suspense fallback={fallback}>+ <AnimationModel setModelFallback={setFallback} {...props} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/index.tsnew file mode 100644index 000000000..a0af8cbd7--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/AnimationModel/index.ts@@ -0,0 +1 @@+export { AnimationModelContainer as AnimationModel } from './AnimationModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/BoundsModel/BoundsModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/BoundsModel/BoundsModel.container.tsxnew file mode 100644index 000000000..72eef3df1--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/BoundsModel/BoundsModel.container.tsx@@ -0,0 +1,39 @@+import React, { FC, ReactNode, useEffect, useState, cloneElement, useMemo, ReactElement, useCallback } from 'react';+import { useBounds } from '@react-three/drei';+import { BaseModelProps } from 'src/types';+import { triggerCallback } from 'src/services';++export interface BoundsModelContainerProps extends BaseModelProps {+ modelSrc: string | Blob;+ children?: ReactNode | ReactNode[];+ fit?: boolean;+}++export const BoundsModelContainer: FC<BoundsModelContainerProps> = ({ modelSrc, children, fit, onLoaded }) => {+ const bounds = useBounds();+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ const onChildLoaded = useCallback(() => {+ if (fit) {+ bounds.refresh().clip().fit();+ }++ triggerCallback(onLoaded);+ }, [bounds, fit]);++ const childModel = useMemo(+ () =>+ React.Children.map(children, (child) =>+ cloneElement(child as ReactElement, { setModelFallback: setFallback, onLoaded: onChildLoaded })+ ),+ [modelSrc, children, onChildLoaded]+ );++ useEffect(() => {+ if (fit) {+ bounds.refresh().clip().fit();+ }+ }, [modelSrc, fit, fallback]);++ return <>{childModel}</>;+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/BoundsModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/BoundsModel/index.tsnew file mode 100644index 000000000..37949a37f--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/BoundsModel/index.ts@@ -0,0 +1 @@+export { BoundsModelContainer as BoundsModel } from './BoundsModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/CenteredModel/CenteredModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/CenteredModel/CenteredModel.component.tsxnew file mode 100644index 000000000..d98f3d198--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/CenteredModel/CenteredModel.component.tsx@@ -0,0 +1,139 @@+import React, { FC, Ref, useEffect, useState, useCallback, useMemo, useRef } from 'react';+import { Group, Mesh, Box3, Vector3 } from 'three';+import { useThree } from '@react-three/fiber';+import { normaliseMaterialsConfig, triggerCallback, usePersistantRotation } from 'src/services';+import { hasWindow } from 'src/services/Client.service';+import { BaseModelProps } from 'src/types';+import { Spawn } from 'src/components/Spawn/Spawn';++interface ModelProps extends BaseModelProps {+ scene: Group;+ modelRef?: Ref<Group>;+ scale?: number;+ onSpawnAnimationFinish?: () => void;+ lockHorizontal?: boolean;+ lockVertical?: boolean;+ horizontalRotationStep?: number;+ verticalRotationStep?: number;+}++const HORIZONTAL_ROTATION_STEP = 0.005;+const VERTICAL_ROTATION_STEP = 0.0005;++export const CenteredModel: FC<ModelProps> = ({+ scene,+ scale = 1,+ modelRef,+ onLoaded,+ onSpawnAnimationFinish,+ bloom,+ materialConfig,+ lockHorizontal,+ lockVertical,+ horizontalRotationStep = HORIZONTAL_ROTATION_STEP,+ verticalRotationStep = VERTICAL_ROTATION_STEP+}) => {+ const { gl } = useThree();+ const [isTouching, setIsTouching] = useState(false);+ const [touchEvent, setTouchEvent] = useState<TouchEvent | null>(null);+ const centerWrapperRef = useRef<Group>(null);++ const setTouchingOn = (e: MouseEvent | TouchEvent) => {+ if (hasWindow && window.TouchEvent && e instanceof TouchEvent) {+ setTouchEvent(e);+ }+ setIsTouching(true);+ };++ const setTouchingOff = () => {+ setTouchEvent(null);+ setIsTouching(false);+ };++ usePersistantRotation(scene);++ const onTouchMove = useCallback(+ (event: MouseEvent | TouchEvent) => {+ if (!isTouching) return;++ let deltaX = 0;+ let deltaY = 0;++ if (event instanceof MouseEvent) {+ deltaX = event.movementX;+ deltaY = event.movementY;+ }++ if (hasWindow && window.TouchEvent && event instanceof TouchEvent && touchEvent) {+ deltaX = event.touches[0].pageX - touchEvent.touches[0].pageX;+ deltaY = event.touches[0].pageY - touchEvent.touches[0].pageY;+ setTouchEvent(event);+ }++ if (!lockHorizontal && centerWrapperRef.current) {+ centerWrapperRef.current.rotation.y += deltaX * horizontalRotationStep;+ }++ if (!lockVertical && centerWrapperRef.current) {+ centerWrapperRef.current.rotation.x += deltaY * verticalRotationStep;+ }+ },+ [isTouching, touchEvent, lockHorizontal, lockVertical, verticalRotationStep, horizontalRotationStep]+ );++ normaliseMaterialsConfig(scene, bloom, materialConfig);++ scene.traverse((object) => {+ const node = object;++ if ((node as Mesh).isMesh) {+ node.castShadow = true;+ node.receiveShadow = true;+ }+ });++ useEffect(() => {+ const boundingBox = new Box3().setFromObject(scene);+ const center = new Vector3();+ boundingBox.getCenter(center);+ scene.position.sub(center);+ }, [scene]);++ useEffect(() => triggerCallback(onLoaded), [scene, onLoaded]);++ useEffect(() => {+ gl.domElement.addEventListener('mousedown', setTouchingOn);+ gl.domElement.addEventListener('touchstart', setTouchingOn, { passive: true });+ window.addEventListener('mouseup', setTouchingOff);+ gl.domElement.addEventListener('touchend', setTouchingOff);+ gl.domElement.addEventListener('touchcancel', setTouchingOff);++ window.addEventListener('mousemove', onTouchMove);+ gl.domElement.addEventListener('touchmove', onTouchMove, { passive: true });++ return () => {+ gl.domElement.removeEventListener('mousedown', setTouchingOn);+ gl.domElement.removeEventListener('touchstart', setTouchingOn);+ window.removeEventListener('mouseup', setTouchingOff);+ gl.domElement.removeEventListener('touchend', setTouchingOff);+ gl.domElement.removeEventListener('touchcancel', setTouchingOff);++ window.removeEventListener('mousemove', onTouchMove);+ gl.domElement.removeEventListener('touchmove', onTouchMove);+ };+ }, [onTouchMove]);++ const spawnComponent = useMemo(+ () => <Spawn avatar={scene} onSpawnFinish={onSpawnAnimationFinish} />,+ [onSpawnAnimationFinish]+ );++ return (+ <group ref={modelRef} dispose={null}>+ <group ref={centerWrapperRef} rotation={[0, 0, 0]}>+ <primitive object={scene} scale={scale} />+ {spawnComponent}+ </group>+ </group>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/CenteredModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/CenteredModel/index.tsnew file mode 100644index 000000000..bfe010dea--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/CenteredModel/index.ts@@ -0,0 +1 @@+export { CenteredModel } from './CenteredModel.component';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/EnvironmentModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/EnvironmentModel.component.tsxnew file mode 100644index 000000000..afefe0494--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/EnvironmentModel.component.tsx@@ -0,0 +1,43 @@+import React, { FC, useEffect } from 'react';+import { useFallback, useGltfLoader, CustomNode, Transform, triggerCallback } from 'src/services';+import { useGraph } from '@react-three/fiber';+import { BaseModelProps } from 'src/types';+import { EnvironmentModels } from 'src/services/Environment.service';++export interface EnvironmentModelProps extends BaseModelProps {+ environment: string | EnvironmentModels;+ scale?: number;+}++export const EnvironmentModel: FC<EnvironmentModelProps> = ({ environment, scale = 1, setModelFallback, onLoaded }) => {+ const transform = new Transform();+ const { scene } = useGltfLoader(environment);+ const { nodes } = useGraph(scene);++ useFallback(nodes, setModelFallback);+ useEffect(() => triggerCallback(onLoaded), [scene, onLoaded]);++ return (+ <group>+ {Object.keys(nodes).map((key) => {+ const node = nodes[key] as CustomNode;+ if (node.type === 'Mesh') {+ return (+ <mesh+ receiveShadow+ key={node.name}+ scale={scale}+ position={transform.position}+ rotation={transform.rotation}+ geometry={node.geometry}+ material={node.material}+ morphTargetInfluences={node.morphTargetInfluences || []}+ />+ );+ }++ return null;+ })}+ </group>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/EnvironmentModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/EnvironmentModel.container.tsxnew file mode 100644index 000000000..5c69c1be8--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/EnvironmentModel.container.tsx@@ -0,0 +1,20 @@+import React, { FC, Suspense, useState } from 'react';+import { EnvironmentModels, environmentModels } from 'src/services/Environment.service';+import { EnvironmentModel, EnvironmentModelProps } from './EnvironmentModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const EnvironmentModelContainer: FC<EnvironmentModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);+ const { environment } = props;+ const isStaticPreset = environment in environmentModels;+ const environmentSrc = isStaticPreset ? environmentModels[environment as EnvironmentModels] : environment;++ return (+ <Suspense fallback={fallback}>+ <EnvironmentModel setModelFallback={setFallback} {...props} environment={environmentSrc} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/index.tsnew file mode 100644index 000000000..3f87d6550--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/EnvironmentModel/index.ts@@ -0,0 +1 @@+export { EnvironmentModelContainer as EnvironmentModel } from './EnvironmentModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/FloatingModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/FloatingModel.component.tsxnew file mode 100644index 000000000..aa62517f9--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/FloatingModel.component.tsx@@ -0,0 +1,48 @@+import React, { useRef, FC } from 'react';+import { useFrame } from '@react-three/fiber';+import type { Group } from 'three';+import { Model } from 'src/components/Models/Model';+import { useGltfLoader } from 'src/services';+import { BaseModelProps } from 'src/types';++export interface FloatingModelProps extends BaseModelProps {+ modelSrc: string | Blob;+ scale?: number;+}++export const FloatingModel: FC<FloatingModelProps> = ({+ modelSrc,+ scale = 1.0,+ onLoaded,+ bloom,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const ref = useRef<Group>(null);+ const { scene } = useGltfLoader(modelSrc);++ useFrame((state) => {+ const t = state.clock.getElapsedTime();++ if (ref?.current) {+ ref.current.rotation.y = Math.sin(t / 2) / 8;+ ref.current.position.y = (1 + Math.sin(t / 1.5)) / -9;+ }+ });++ return (+ <Model+ modelRef={ref}+ scale={scale}+ scene={scene}+ onLoaded={onLoaded}+ bloom={bloom}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/FloatingModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/FloatingModel.container.tsxnew file mode 100644index 000000000..b0c849859--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/FloatingModel.container.tsx@@ -0,0 +1,16 @@+import React, { FC, Suspense, useState } from 'react';+import { FloatingModel, FloatingModelProps } from './FloatingModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const FloatingModelContainer: FC<FloatingModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ return (+ <Suspense fallback={fallback}>+ <FloatingModel {...props} setModelFallback={setFallback} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/index.tsnew file mode 100644index 000000000..9c5e14ce5--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/FloatingModel/index.ts@@ -0,0 +1 @@+export { FloatingModelContainer as FloatingModel } from './FloatingModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/HalfBodyModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/HalfBodyModel.component.tsxnew file mode 100644index 000000000..4e22a9cff--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/HalfBodyModel.component.tsx@@ -0,0 +1,85 @@+import React, { FC, useRef } from 'react';+import { useFrame, useGraph } from '@react-three/fiber';+import { Model } from 'src/components/Models/Model';+import { BaseModelProps } from 'src/types';+import { useEmotion, useHeadMovement, useGltfLoader, useFallback, useIdleExpression } from 'src/services';+import { Group } from 'three';+import { Emotion } from '../../Avatar/Avatar.component';++export interface HalfBodyModelProps extends BaseModelProps {+ modelSrc: string | Blob;+ rotation?: number;+ scale?: number;+ idleRotation?: boolean;+ emotion?: Emotion;+ headMovement?: boolean;+}++let currentRotation = 0;++export const HalfBodyModel: FC<HalfBodyModelProps> = ({+ modelSrc,+ scale = 1,+ rotation = 20 * (Math.PI / 180),+ idleRotation = false,+ emotion,+ setModelFallback,+ onLoaded,+ headMovement = false,+ bloom,+ materialConfig,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const ref = useRef<Group>(null);+ const { scene } = useGltfLoader(modelSrc);+ const { nodes } = useGraph(scene);++ scene.traverse((object) => {+ const node = object;+ if (node.name === 'Wolf3D_Hands') {+ node.visible = false;+ }++ if (node.name === 'RightHand') {+ node.position.set(0, -2, 0);+ }++ if (node.name === 'LeftHand') {+ node.position.set(0, -2, 0);+ }+ });++ useFrame((state, delta) => {+ if (!idleRotation) {+ return;+ }++ if (ref?.current) {+ currentRotation += delta * 0.2;+ ref.current.rotation.y = rotation + Math.sin(currentRotation) / 3;+ }+ });++ useHeadMovement({ nodes, isHalfBody: true, enabled: headMovement });+ useIdleExpression('blink', nodes);+ useEmotion(nodes, emotion);+ useFallback(nodes, setModelFallback);++ return (+ <Model+ modelRef={ref}+ scene={scene}+ scale={scale}+ onLoaded={onLoaded}+ bloom={bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/HalfBodyModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/HalfBodyModel.container.tsxnew file mode 100644index 000000000..40769b802--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/HalfBodyModel.container.tsx@@ -0,0 +1,16 @@+import React, { FC, Suspense, useState } from 'react';+import { HalfBodyModel, HalfBodyModelProps } from './HalfBodyModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const HalfBodyModelContainer: FC<HalfBodyModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ return (+ <Suspense fallback={fallback}>+ <HalfBodyModel setModelFallback={setFallback} {...props} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/index.tsnew file mode 100644index 000000000..e4c972899--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/HalfBodyModel/index.ts@@ -0,0 +1 @@+export { HalfBodyModelContainer as HalfBodyModel } from './HalfBodyModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/Model/Model.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/Model/Model.component.tsxnew file mode 100644index 000000000..426388712--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/Model/Model.component.tsx@@ -0,0 +1,169 @@+import React, { FC, Ref, useEffect, useState, useCallback, useMemo } from 'react';+import { Group, Mesh } from 'three';+import { normaliseMaterialsConfig, traverseMeshes, triggerCallback, usePersistantRotation } from 'src/services';+import { ThreeEvent, useThree } from '@react-three/fiber';+import { hasWindow } from 'src/services/Client.service';+import { BaseModelProps } from 'src/types';+import { Spawn } from '../../Spawn/Spawn';++interface ModelProps extends BaseModelProps {+ scene: Group;+ modelRef?: Ref<Group>;+ scale?: number;+ onSpawnAnimationFinish?: () => void;+}++const ROTATION_STEP = 0.005;++export const Model: FC<ModelProps> = ({+ scene,+ scale = 1,+ modelRef,+ onLoaded,+ onSpawnAnimationFinish,+ bloom,+ materialConfig,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const { gl } = useThree();+ const [isTouching, setIsTouching] = useState(false);+ const [touchEvent, setTouchEvent] = useState<TouchEvent | null>(null);+ const setTouchingOn = (e: MouseEvent | TouchEvent) => {+ if (hasWindow && window.TouchEvent && e instanceof TouchEvent) {+ setTouchEvent(e as TouchEvent);+ }+ setIsTouching(true);+ };+ const setTouchingOff = (e: MouseEvent | TouchEvent) => {+ if (hasWindow && window.TouchEvent && e instanceof TouchEvent) {+ setTouchEvent(null);+ }+ setIsTouching(false);+ };++ usePersistantRotation(scene);++ const onTouchMove = useCallback(+ (event: MouseEvent | TouchEvent) => {+ if (isTouching && event instanceof MouseEvent) {+ /* eslint-disable-next-line no-param-reassign */+ scene.rotation.y += event.movementX * ROTATION_STEP;+ }++ if (hasWindow && isTouching && window.TouchEvent && event instanceof TouchEvent) {+ /* eslint-disable-next-line no-param-reassign */+ const movementX = Math.round(event.touches[0].pageX - touchEvent!.touches[0].pageX);+ /* eslint-disable-next-line no-param-reassign */+ scene.rotation.y += movementX * ROTATION_STEP;+ setTouchEvent(event);+ }+ },+ [isTouching, touchEvent, scene]+ );++ normaliseMaterialsConfig(scene, bloom, materialConfig);++ scene.traverse((object) => {+ const node = object;++ if ((node as Mesh).isMesh) {+ node.castShadow = true;+ node.receiveShadow = true;+ }+ });++ if (meshCallback) {+ traverseMeshes(scene, meshCallback);+ }++ const onClick = useCallback(+ (event: ThreeEvent<MouseEvent>) => {+ if (!onMeshClick) {+ return;+ }++ const mesh = event.object as Mesh;++ if (mesh && mesh.isMesh) {+ onMeshClick(mesh);+ }+ },+ [onMeshClick]+ );++ const handlePointerEnter = useCallback(+ (event: ThreeEvent<PointerEvent>) => {+ if (!onMeshHoverStart) {+ return;+ }+ const mesh = event.object as Mesh;++ if (mesh && mesh.isMesh) {+ event.stopPropagation();+ onMeshHoverStart(mesh);+ }+ },+ [onMeshHoverStart]+ );++ const handlePointerLeave = useCallback(+ (event: ThreeEvent<PointerEvent>) => {+ if (!onMeshHoverEnd) {+ return;+ }+ const mesh = event.object as Mesh;++ if (mesh && mesh.isMesh) {+ event.stopPropagation();+ onMeshHoverEnd(mesh);+ }+ },+ [onMeshHoverEnd]+ );++ useEffect(() => triggerCallback(onLoaded), [scene, onLoaded]);++ useEffect(() => {+ gl.domElement.addEventListener('mousedown', setTouchingOn);+ gl.domElement.addEventListener('touchstart', setTouchingOn, { passive: true });+ window.addEventListener('mouseup', setTouchingOff);+ gl.domElement.addEventListener('touchend', setTouchingOff);+ gl.domElement.addEventListener('touchcancel', setTouchingOff);++ window.addEventListener('mousemove', onTouchMove);+ gl.domElement.addEventListener('touchmove', onTouchMove, { passive: true });++ return () => {+ gl.domElement.removeEventListener('mousedown', setTouchingOn);+ gl.domElement.removeEventListener('touchstart', setTouchingOn);+ window.removeEventListener('mouseup', setTouchingOff);+ gl.domElement.removeEventListener('touchend', setTouchingOff);+ gl.domElement.removeEventListener('touchcancel', setTouchingOff);++ window.removeEventListener('mousemove', onTouchMove);+ gl.domElement.removeEventListener('touchmove', onTouchMove);+ };+ });++ const spawnComponent = useMemo(+ () => <Spawn avatar={scene} onSpawnFinish={onSpawnAnimationFinish} />,+ [onSpawnAnimationFinish]+ );++ return (+ <group+ ref={modelRef}+ dispose={null}+ rotation={[0, 0, 0]}+ onClick={onClick}+ onPointerEnter={handlePointerEnter}+ onPointerLeave={handlePointerLeave}+ >+ <primitive object={scene} scale={scale} />+ {spawnComponent}+ </group>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/Model/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/Model/index.tsnew file mode 100644index 000000000..77e423d8b--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/Model/index.ts@@ -0,0 +1 @@+export { Model } from './Model.component';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/MultipleAnimationModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/MultipleAnimationModel.component.tsxnew file mode 100644index 000000000..ece3ad96f--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/MultipleAnimationModel.component.tsx@@ -0,0 +1,139 @@+import React, { FC, useEffect, useRef } from 'react';+import { useFrame } from '@react-three/fiber';+import { AnimationAction, AnimationMixer, LoopOnce, LoopRepeat } from 'three';++import { Model } from 'src/components/Models/Model';+import { AnimationsT, BaseModelProps } from 'src/types';+import { useEmotion, useFallbackScene, useGltfCachedLoader, useIdleExpression } from 'src/services';+import { Emotion } from 'src/components/Avatar/Avatar.component';+import {+ disposeAssetAnimations,+ playAssetIdleAnimation,+ updateAssetAnimations,+ useAnimations+} from 'src/services/Animation.service';++export interface MultipleAnimationModelProps extends BaseModelProps {+ modelSrc: string | Blob;+ animations: AnimationsT;+ activeAnimation: string;+ scale?: number;+ emotion?: Emotion;+ onAnimationEnd?: (action: AnimationAction) => void;+}++export const MultipleAnimationModel: FC<MultipleAnimationModelProps> = ({+ modelSrc,+ animations,+ activeAnimation,+ scale = 1,+ setModelFallback,+ onLoaded,+ emotion,+ bloom,+ materialConfig,+ onAnimationEnd,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const armatureMixerRef = useRef<AnimationMixer | null>(null);+ const assetMixerRef = useRef<Array<AnimationMixer> | null>(null);+ const activeActionRef = useRef<AnimationAction | null>(null);+ const animationTimeRef = useRef<number>(0);++ const loadedAnimations = useAnimations(animations);+ const { scene, animations: embeddedAnimations } = useGltfCachedLoader(modelSrc);++ useEffect(() => {+ if (scene) {+ const armatureMixer = new AnimationMixer(scene);+ armatureMixerRef.current = armatureMixer;++ if (activeActionRef.current) {+ const newAction = armatureMixer.clipAction(activeActionRef.current.getClip());+ newAction.play();+ armatureMixer.update(animationTimeRef.current);++ activeActionRef.current = newAction;+ }++ assetMixerRef.current = playAssetIdleAnimation(scene, embeddedAnimations);+ }++ return () => {+ armatureMixerRef.current?.stopAllAction();+ armatureMixerRef.current?.uncacheRoot(scene);+ armatureMixerRef.current = null;++ disposeAssetAnimations(assetMixerRef.current, scene);+ assetMixerRef.current = null;+ };+ }, [scene, embeddedAnimations]);++ useEffect(() => {+ const mixer = armatureMixerRef.current;+ const prevAction = activeActionRef.current;+ const newClip = loadedAnimations[activeAnimation];+ const animationConfig = animations[activeAnimation];++ if (!newClip || !mixer || !animationConfig) return;+ if (prevAction && prevAction.getClip().uuid === newClip.uuid) return;++ const newAction = mixer.clipAction(newClip);+ const loopCount = animationConfig.repeat ?? Infinity;+ const fadeTime = animationConfig.fadeTime ?? 0.5;++ newAction.setLoop(loopCount === Infinity ? LoopRepeat : LoopOnce, loopCount);+ newAction.clampWhenFinished = true;++ const handleAnimationEnd = (event: { action: AnimationAction }) => {+ if (event.action === newAction) {+ onAnimationEnd?.(newAction);+ }+ };++ mixer.addEventListener('finished', handleAnimationEnd);++ if (prevAction) {+ prevAction.fadeOut(fadeTime);+ newAction.reset().fadeIn(fadeTime);+ } else {+ newAction.reset();+ }++ newAction.play();+ activeActionRef.current = newAction;++ // eslint-disable-next-line consistent-return+ return () => {+ mixer.removeEventListener('finished', handleAnimationEnd);+ };+ }, [activeAnimation, animations, loadedAnimations, onAnimationEnd]);++ useFrame((state, delta) => {+ armatureMixerRef.current?.update(delta);+ animationTimeRef.current = activeActionRef.current?.time || 0;++ updateAssetAnimations(assetMixerRef.current, delta);+ });++ useEmotion(scene, emotion);+ useIdleExpression('blink', scene);+ useFallbackScene(scene, setModelFallback);++ return (+ <Model+ scene={scene}+ scale={scale}+ onLoaded={onLoaded}+ bloom={bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/MultipleAnimationModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/MultipleAnimationModel.container.tsxnew file mode 100644index 000000000..d71ad4b18--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/MultipleAnimationModel.container.tsx@@ -0,0 +1,17 @@+import React, { FC, Suspense, useState } from 'react';++import { MultipleAnimationModel, MultipleAnimationModelProps } from './MultipleAnimationModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const MultipleAnimationModelContainer: FC<MultipleAnimationModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ return (+ <Suspense fallback={fallback}>+ <MultipleAnimationModel setModelFallback={setFallback} {...props} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/index.tsnew file mode 100644index 000000000..838890922--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/MultipleAnimationModel/index.ts@@ -0,0 +1 @@+export { MultipleAnimationModelContainer as MultipleAnimationModel } from './MultipleAnimationModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/PoseModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/PoseModel.component.tsxnew file mode 100644index 000000000..02f83ec8c--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/PoseModel.component.tsx@@ -0,0 +1,55 @@+import React, { FC, Ref } from 'react';+import { useGraph } from '@react-three/fiber';+import { Model } from 'src/components/Models/Model';+import { Group } from 'three';+import { mutatePose, useEmotion, useFallback, useGltfLoader } from 'src/services';+import { BaseModelProps } from 'src/types';+import { Emotion } from '../../Avatar/Avatar.component';++export interface PoseModelProps extends BaseModelProps {+ modelSrc: string | Blob;+ poseSrc: string | Blob;+ modelRef?: Ref<Group>;+ scale?: number;+ emotion?: Emotion;+}++export const PoseModel: FC<PoseModelProps> = ({+ modelSrc,+ poseSrc,+ modelRef,+ scale = 1,+ emotion,+ setModelFallback,+ onLoaded,+ bloom,+ materialConfig,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const { scene } = useGltfLoader(modelSrc);+ const { nodes } = useGraph(scene);+ const pose = useGltfLoader(poseSrc);+ const { nodes: sourceNodes } = useGraph(pose.scene);++ mutatePose(nodes, sourceNodes);+ useEmotion(nodes, emotion);+ useFallback(nodes, setModelFallback);++ return (+ <Model+ modelRef={modelRef}+ scene={scene}+ scale={scale}+ onLoaded={onLoaded}+ bloom={bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/PoseModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/PoseModel.container.tsxnew file mode 100644index 000000000..5b8c16d62--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/PoseModel.container.tsx@@ -0,0 +1,16 @@+import React, { FC, Suspense, useState } from 'react';+import { PoseModel, PoseModelProps } from './PoseModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const PoseModelContainer: FC<PoseModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ return (+ <Suspense fallback={fallback}>+ <PoseModel setModelFallback={setFallback} {...props} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/index.tsnew file mode 100644index 000000000..906b4dcfc--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/PoseModel/index.ts@@ -0,0 +1 @@+export { PoseModelContainer as PoseModel } from './PoseModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/RotatingModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/RotatingModel.component.tsxnew file mode 100644index 000000000..60786b61c--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/RotatingModel.component.tsx@@ -0,0 +1,103 @@+import React, { useRef, FC, useEffect, useMemo, useState } from 'react';+import { useFrame, useGraph } from '@react-three/fiber';+import { AnimationMixer, Group } from 'three';+import { CenteredModel } from 'src/components/Models/CenteredModel';+import { useGltfLoader } from 'src/services';+import { BaseModelProps } from 'src/types';+import {+ disposeAssetAnimations,+ loadAnimationClips,+ playAssetIdleAnimation,+ updateAssetAnimations+} from 'src/services/Animation.service';++export interface RotatingModelProps extends BaseModelProps {+ modelSrc: string | Blob;+ scale?: number;+ lockHorizontal?: boolean;+ lockVertical?: boolean;+ horizontalRotationStep?: number;+ verticalRotationStep?: number;+}++export const RotatingModel: FC<RotatingModelProps> = ({+ modelSrc,+ scale = 1.0,+ onLoaded,+ bloom,+ lockVertical,+ lockHorizontal,+ horizontalRotationStep,+ verticalRotationStep+}) => {+ const ref = useRef<Group>(null);+ const [animationRunning, setAnimationRunning] = useState(true);+ const onSpawnAnimationFinish = () => {+ setAnimationRunning(false);+ };++ const { scene, animations: embeddedAnimations } = useGltfLoader(modelSrc);+ const { nodes } = useGraph(scene);++ const assetMixerRef = useRef<Array<AnimationMixer> | null>(null);++ useEffect(() => {+ assetMixerRef.current = playAssetIdleAnimation(scene, embeddedAnimations);++ return () => {+ disposeAssetAnimations(assetMixerRef.current, scene);++ assetMixerRef.current = null;+ };+ }, [scene]);++ const animationClip = useMemo(async () => {+ const clip = await loadAnimationClips(modelSrc);+ return clip[0];+ }, [modelSrc]);++ const animationMixer = useMemo(async () => {+ const mixer = new AnimationMixer(nodes.Armature);+ if (animationRunning) {+ return mixer;+ }++ const mixerAnimationClip = await animationClip;++ if (mixerAnimationClip) {+ const animation = mixer.clipAction(mixerAnimationClip);++ animation.fadeIn(0);+ animation.play();++ mixer.update(0);+ }++ return mixer;+ }, [animationRunning, animationClip, nodes.Armature]);++ useFrame(async (state, delta) => {+ updateAssetAnimations(assetMixerRef.current, delta);++ (await animationMixer)?.update(delta);++ if (ref?.current) {+ ref.current.rotation.y = state.clock.getElapsedTime() * 0.5;+ }+ });++ return (+ <CenteredModel+ verticalRotationStep={verticalRotationStep}+ horizontalRotationStep={horizontalRotationStep}+ lockHorizontal={lockHorizontal}+ lockVertical={lockVertical}+ onSpawnAnimationFinish={onSpawnAnimationFinish}+ modelRef={ref}+ scale={scale}+ scene={scene}+ onLoaded={onLoaded}+ bloom={bloom}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/RotatingModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/RotatingModel.container.tsxnew file mode 100644index 000000000..a5fdfcf41--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/RotatingModel.container.tsx@@ -0,0 +1,16 @@+import React, { FC, Suspense, useState } from 'react';+import { RotatingModel, RotatingModelProps } from './RotatingModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const RotatingModelContainer: FC<RotatingModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ return (+ <Suspense fallback={fallback}>+ <RotatingModel {...props} setModelFallback={setFallback} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/index.tsnew file mode 100644index 000000000..33853351a--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/RotatingModel/index.ts@@ -0,0 +1 @@+export { RotatingModelContainer as RotatingModel } from './RotatingModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/StaticModel.component.tsx b/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/StaticModel.component.tsxnew file mode 100644index 000000000..364e4e8ad--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/StaticModel.component.tsx@@ -0,0 +1,50 @@+import React, { FC, Ref } from 'react';+import { Model } from 'src/components/Models/Model';+import { useEmotion, useFallback, useGltfLoader } from 'src/services';+import { Group } from 'three';+import { useGraph } from '@react-three/fiber';+import { BaseModelProps } from 'src/types';+import { Emotion } from '../../Avatar/Avatar.component';++export interface StaticModelProps extends BaseModelProps {+ modelSrc: string | Blob;+ modelRef?: Ref<Group>;+ scale?: number;+ emotion?: Emotion;+}++export const StaticModel: FC<StaticModelProps> = ({+ modelSrc,+ modelRef,+ scale = 1,+ setModelFallback,+ onLoaded,+ emotion,+ bloom,+ materialConfig,+ onMeshClick,+ onMeshHoverStart,+ onMeshHoverEnd,+ meshCallback+}) => {+ const { scene } = useGltfLoader(modelSrc);+ const { nodes } = useGraph(scene);++ useEmotion(nodes, emotion);+ useFallback(nodes, setModelFallback);++ return (+ <Model+ modelRef={modelRef}+ scene={scene}+ scale={scale}+ onLoaded={onLoaded}+ bloom={bloom}+ materialConfig={materialConfig}+ onMeshClick={onMeshClick}+ onMeshHoverStart={onMeshHoverStart}+ onMeshHoverEnd={onMeshHoverEnd}+ meshCallback={meshCallback}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/StaticModel.container.tsx b/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/StaticModel.container.tsxnew file mode 100644index 000000000..23cadcbce--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/StaticModel.container.tsx@@ -0,0 +1,16 @@+import React, { FC, Suspense, useState } from 'react';+import { StaticModel, StaticModelProps } from './StaticModel.component';++/**+ * Contains model to handle suspense fallback.+ */+export const StaticModelContainer: FC<StaticModelProps> = (props) => {+ /* eslint-disable-next-line react/jsx-no-useless-fragment */+ const [fallback, setFallback] = useState<JSX.Element>(<></>);++ return (+ <Suspense fallback={fallback}>+ <StaticModel setModelFallback={setFallback} {...props} />+ </Suspense>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/index.tsnew file mode 100644index 000000000..928a7c8b6--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/StaticModel/index.ts@@ -0,0 +1 @@+export { StaticModelContainer as StaticModel } from './StaticModel.container';diff --git a/vendor/three-ws-fork/viewer/src/components/Models/index.ts b/vendor/three-ws-fork/viewer/src/components/Models/index.tsnew file mode 100644index 000000000..7133f22da--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Models/index.ts@@ -0,0 +1,8 @@+export { AnimationModel } from './AnimationModel';+export { FloatingModel } from './FloatingModel';+export { HalfBodyModel } from './HalfBodyModel';+export { StaticModel } from './StaticModel';+export { PoseModel } from './PoseModel';+export { MultipleAnimationModel } from './MultipleAnimationModel';+export { Model } from './Model';+export { EnvironmentModel } from './EnvironmentModel';diff --git a/vendor/three-ws-fork/viewer/src/components/Scene/AnimatedCamera.component.tsx b/vendor/three-ws-fork/viewer/src/components/Scene/AnimatedCamera.component.tsxnew file mode 100644index 000000000..a0864b715--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Scene/AnimatedCamera.component.tsx@@ -0,0 +1,41 @@+import { FC, useEffect, useRef, useState } from 'react';+import { useGLTF } from '@react-three/drei';+import { useFrame, useThree } from '@react-three/fiber';+import { AnimationMixer, Object3D } from 'three';++type AnimatedCameraProps = {+ animatedCameraSrc: string;+};++export const AnimatedCamera: FC<AnimatedCameraProps> = ({ animatedCameraSrc }) => {+ const { camera } = useThree();+ const { scene, animations } = useGLTF(animatedCameraSrc);+ const mixerRef = useRef<AnimationMixer | null>(null);+ const [animatedCamera, setAnimatedCamera] = useState<Object3D | null>(null);++ useEffect(() => {+ if (animations.length > 0) {+ mixerRef.current = new AnimationMixer(scene);+ animations.forEach((clip) => {+ const action = mixerRef.current!.clipAction(clip);+ action.play();+ });+ }++ const cam = scene.getObjectByName('camera') as Object3D;+ if (cam) setAnimatedCamera(cam);+ }, [scene, animations]);++ useFrame((_, delta) => {+ if (mixerRef.current) {+ mixerRef.current.update(delta);+ }++ if (animatedCamera) {+ camera.position.copy(animatedCamera.position);+ camera.quaternion.copy(animatedCamera.quaternion);+ }+ });++ return null;+};diff --git a/vendor/three-ws-fork/viewer/src/components/Scene/CameraControls.component.tsx b/vendor/three-ws-fork/viewer/src/components/Scene/CameraControls.component.tsxnew file mode 100644index 000000000..6553f2524--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Scene/CameraControls.component.tsx@@ -0,0 +1,115 @@+import React, { FC, useEffect, useRef } from 'react';+import { OrbitControls as OrbitControlsComponent } from '@react-three/drei';+import { useFrame, useThree } from '@react-three/fiber';+import { Camera, Vector3 } from 'three';+import { OrbitControls } from 'three-stdlib';+import { clamp, lerp } from 'src/services';++type CameraControlsProps = {+ // eslint-disable-next-line react/no-unused-prop-types+ fullBody?: boolean;+ headScale?: number;+ cameraTarget?: number;+ cameraInitialDistance?: number;+ /**+ * Handles camera movement on the Z-axis.+ */+ cameraZoomTarget?: Vector3;+ controlsMinDistance?: number;+ controlsMaxDistance?: number;+ /**+ * Enables camera moving on Y-axis while zooming in-out.+ */+ updateCameraTargetOnZoom?: boolean;+};++const updateCameraTarget = (+ controls: OrbitControls,+ camera: Camera,+ target: number,+ minDistance: number,+ maxDistance: number+) => {+ if (controls) {+ let distance = controls.target.distanceTo(camera.position);+ distance = clamp(distance, maxDistance, minDistance);+ const pivot = (distance - minDistance) / (maxDistance - minDistance);++ controls.target.set(0, target - 0.6 * pivot, 0);+ }+};++export const CameraControls: FC<CameraControlsProps> = ({+ cameraTarget,+ cameraInitialDistance,+ cameraZoomTarget,+ headScale = 1,+ controlsMinDistance = 0.4,+ controlsMaxDistance = 2.5,+ updateCameraTargetOnZoom = false+}) => {+ const cameraZoomTargetRef = useRef(cameraZoomTarget);+ const { camera, gl } = useThree();+ const controlsRef = useRef<OrbitControls>(null);+ const progressRef = useRef(Number.POSITIVE_INFINITY);+ const fallbackCameraTarget = cameraTarget || 1.475 + headScale / 10;+ const headScaleAdjustedMinDistance = controlsMinDistance + headScale / 10;++ const updateCameraFocus = (delta: number, target?: Vector3) => {+ if (target && progressRef.current <= 1) {+ camera.position.setX(lerp(camera.position.x, target.x, progressRef.current));+ camera.position.setZ(lerp(camera.position.z, target.z, progressRef.current));+ progressRef.current += delta;+ }+ };++ useEffect(() => {+ if (+ cameraZoomTargetRef.current?.x !== cameraZoomTarget?.x ||+ cameraZoomTargetRef.current?.y !== cameraZoomTarget?.y ||+ cameraZoomTargetRef.current?.z !== cameraZoomTarget?.z+ ) {+ cameraZoomTargetRef.current = cameraZoomTarget;+ progressRef.current = 0;+ }++ const controls = controlsRef.current;+ if (controls) {+ controls.target.set(0, fallbackCameraTarget, 0);+ controls.update();++ // TODO: Look for a better distance initialiser, without progress value check it conflicts with cameraZoomTarget which also can update camera position.z+ if (cameraInitialDistance && progressRef.current === Number.POSITIVE_INFINITY) {+ camera.position.z = cameraInitialDistance;+ controls.update();+ }+ }+ }, [cameraInitialDistance, camera, gl.domElement, cameraZoomTarget, fallbackCameraTarget]);++ useFrame((_, delta) => {+ if (updateCameraTargetOnZoom && controlsRef.current) {+ updateCameraTarget(+ controlsRef.current,+ camera,+ fallbackCameraTarget,+ headScaleAdjustedMinDistance,+ controlsMaxDistance+ );+ }+ updateCameraFocus(delta, cameraZoomTarget);+ controlsRef.current?.update();+ });++ return (+ <OrbitControlsComponent+ ref={controlsRef}+ enableRotate={false}+ enablePan={false}+ target={[0, fallbackCameraTarget, 0]}+ minDistance={headScaleAdjustedMinDistance}+ maxDistance={controlsMaxDistance}+ minPolarAngle={1.4}+ maxPolarAngle={1.4}+ />+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Scene/Environment.component.tsx b/vendor/three-ws-fork/viewer/src/components/Scene/Environment.component.tsxnew file mode 100644index 000000000..ead3b1bed--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Scene/Environment.component.tsx@@ -0,0 +1,23 @@+import React, { FC, useMemo } from 'react';+import { Environment as DreiEnvironment } from '@react-three/drei';+import { environmentPresets, getPresetEnvironmentMap, EnvironmentPresets } from 'src/services/Environment.service';++export interface EnvironmentProps {+ environment: string | EnvironmentPresets;+ enablePostProcessing?: boolean | undefined;+}++export const Environment: FC<EnvironmentProps> = ({ environment, enablePostProcessing }) => {+ const config = useMemo<{ files: string }>(() => {+ const isStaticPreset = environment in environmentPresets;+ const files = isStaticPreset ? getPresetEnvironmentMap(environment as EnvironmentPresets) : environment;++ return {+ files+ };+ }, [environment]);++ const environmentIntensity = enablePostProcessing ? 12 : 4;++ return <DreiEnvironment files={config.files} environmentIntensity={environmentIntensity} />;+};diff --git a/vendor/three-ws-fork/viewer/src/components/Shadow/Shadow.component.tsx b/vendor/three-ws-fork/viewer/src/components/Shadow/Shadow.component.tsxnew file mode 100644index 000000000..e61e82e7f--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Shadow/Shadow.component.tsx@@ -0,0 +1,12 @@+import React, { FC } from 'react';++const Shadow: FC = () => (+ <group position={[0, 0, 0]}>+ <mesh key="shadow-catcher" receiveShadow position={[0, 0, 0]} rotation-x={-Math.PI / 2}>+ <planeGeometry attach="geometry" args={[3, 2]} />+ <shadowMaterial attach="material" transparent opacity={0.2} />+ </mesh>+ </group>+);++export default Shadow;diff --git a/vendor/three-ws-fork/viewer/src/components/Spawn/Spawn.tsx b/vendor/three-ws-fork/viewer/src/components/Spawn/Spawn.tsxnew file mode 100644index 000000000..e2c64a5eb--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Spawn/Spawn.tsx@@ -0,0 +1,53 @@+import { useAtomValue } from 'jotai/index';+import React, { FC, useEffect } from 'react';+import { Group } from 'three';+import { SpawnEffect } from './SpawnEffect/SpawnEffect.component';+import { SpawnAnimation } from './SpawnAnimation/SpawnAnimation.component';+import { isValidFormat, triggerCallback } from '../../services';+import { spawnState } from '../../state/spawnAtom';++interface SpawnProps {+ avatar: Group;+ onSpawnFinish?: () => void;+}+export const Spawn: FC<SpawnProps> = ({ avatar, onSpawnFinish }) => {+ const animationProps = useAtomValue(spawnState);++ const usesMountEffect = isValidFormat(animationProps?.onLoadedEffect?.src);+ const usesMountAnimation = isValidFormat(animationProps?.onLoadedAnimation?.src);++ const [effectRunning, setEffectRunning] = React.useState(usesMountEffect);+ const [animationRunning, setAnimationRunning] = React.useState(usesMountAnimation);++ useEffect(() => {+ if (!animationRunning && !effectRunning) {+ triggerCallback(onSpawnFinish);+ }+ }, [onSpawnFinish, effectRunning, animationRunning]);++ const onLoadedAnimationFinish = () => {+ setAnimationRunning(false);+ };++ const onLoadedEffectFinish = () => {+ setEffectRunning(false);+ };++ return (+ <>+ {usesMountEffect && (+ <SpawnEffect+ onLoadedEffect={animationProps.onLoadedEffect as { src: string; animationSrc?: string; loop?: number }}+ onLoadedEffectFinish={onLoadedEffectFinish}+ />+ )}+ {usesMountAnimation && (+ <SpawnAnimation+ onLoadedAnimation={animationProps.onLoadedAnimation as { src: string; loop?: number }}+ avatar={avatar}+ onLoadedAnimationFinish={onLoadedAnimationFinish}+ />+ )}+ </>+ );+};diff --git a/vendor/three-ws-fork/viewer/src/components/Spawn/SpawnAnimation/SpawnAnimation.component.tsx b/vendor/three-ws-fork/viewer/src/components/Spawn/SpawnAnimation/SpawnAnimation.component.tsxnew file mode 100644index 000000000..016e4c160--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Spawn/SpawnAnimation/SpawnAnimation.component.tsx@@ -0,0 +1,58 @@+import { useFrame, useGraph } from '@react-three/fiber';+import React, { useMemo, useEffect, FC } from 'react';+import { AnimationMixer, Group, LoopRepeat } from 'three';+import { triggerCallback } from '../../../services';+import { loadAnimationClips } from '../../../services/Animation.service';++interface SpawnAnimationProps {+ avatar: Group;+ onLoadedAnimationFinish?: () => void;+ onLoadedAnimation: {+ src: string;+ loop?: number;+ };+}++export const SpawnAnimation: FC<SpawnAnimationProps> = ({ avatar, onLoadedAnimationFinish, onLoadedAnimation }) => {+ const [animationRunning, setAnimationRunning] = React.useState(true);++ useEffect(() => {+ if (!animationRunning) {+ triggerCallback(onLoadedAnimationFinish);+ }+ }, [onLoadedAnimationFinish, animationRunning]);++ const { nodes: avatarNode } = useGraph(avatar);++ const animationClip = useMemo(async () => {+ const clips = await loadAnimationClips(onLoadedAnimation?.src || '');+ return clips[0];+ }, [onLoadedAnimation?.src]);++ const animationMixerAvatar = useMemo(async () => {+ const mixer = new AnimationMixer(avatarNode.Armature);+ if (!avatarNode.Armature) {+ return mixer;+ }++ const animation = mixer.clipAction(await animationClip);++ animation.setLoop(LoopRepeat, onLoadedAnimation?.loop || 1);+ animation.clampWhenFinished = true;++ animation.play();++ mixer.addEventListener('finished', () => {+ animation.fadeOut(0.5);+ setAnimationRunning(false);+ });++ return mixer;+ }, [avatarNode.Armature, onLoadedAnimation?.loop, animationClip]);++ useFrame(async (state, delta) => {+ (await animationMixerAvatar)?.update(delta);+ });++ return <></>;+};diff --git a/vendor/three-ws-fork/viewer/src/components/Spawn/SpawnEffect/SpawnEffect.component.tsx b/vendor/three-ws-fork/viewer/src/components/Spawn/SpawnEffect/SpawnEffect.component.tsxnew file mode 100644index 000000000..93ffd4a29--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/components/Spawn/SpawnEffect/SpawnEffect.component.tsx@@ -0,0 +1,61 @@+import React, { FC, useEffect, useMemo, useRef } from 'react';+import { AnimationMixer, Group, LoopRepeat } from 'three';+import { useFrame, useGraph } from '@react-three/fiber';+import { triggerCallback, useGltfLoader } from '../../../services';+import { loadAnimationClips } from '../../../services/Animation.service';++interface SpawnEffectProps {+ onLoadedEffectFinish: () => void;+ onLoadedEffect: { src: string; animationSrc?: string; loop?: number };+}++export const SpawnEffect: FC<SpawnEffectProps> = ({ onLoadedEffect, onLoadedEffectFinish }) => {+ const ref = useRef<Group>(null);++ const [effectRunning, setEffectRunning] = React.useState(true);++ const { scene: mountEffectScene } = useGltfLoader(onLoadedEffect.src);+ const { nodes: mountEffectNode } = useGraph(mountEffectScene);++ useEffect(() => {+ if (!effectRunning) {+ triggerCallback(onLoadedEffectFinish);+ }+ }, [onLoadedEffectFinish, effectRunning]);++ const animationLoadedEffect = useMemo(async () => {+ const effect = await loadAnimationClips(onLoadedEffect?.animationSrc || onLoadedEffect.src);++ return effect[0];+ }, [onLoadedEffect?.animationSrc, onLoadedEffect.src]);++ const spawnEffectMixer = useMemo(async () => {+ const mixer = new AnimationMixer(mountEffectNode.Scene);+ const loadedEffect = await animationLoadedEffect;++ if (!loadedEffect) {+ setEffectRunning(false);+ return mixer;+ }++ const animation = mixer.clipAction(loadedEffect);++ animation.setLoop(LoopRepeat, onLoadedEffect?.loop || 1);+ animation.clampWhenFinished = true;++ animation.play();++ mixer.addEventListener('finished', () => {+ animation.fadeOut(0.5);+ setEffectRunning(false);+ });++ return mixer;+ }, [mountEffectNode.Scene, animationLoadedEffect, onLoadedEffect?.loop]);++ useFrame(async (state, delta) => {+ (await spawnEffectMixer)?.update(delta);+ });++ return <>{effectRunning && <primitive modelRef={ref} object={mountEffectScene} />}</>;+};diff --git a/vendor/three-ws-fork/viewer/src/hooks/useDeviceDetector/use-device-detector.hook.ts b/vendor/three-ws-fork/viewer/src/hooks/useDeviceDetector/use-device-detector.hook.tsnew file mode 100644index 000000000..7db332293--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/hooks/useDeviceDetector/use-device-detector.hook.ts@@ -0,0 +1,109 @@+import { useEffect, useState } from 'react';+import { getGPUTier, TierResult as GpuTierResult } from 'detect-gpu';+import { stringify } from 'qs';+import { checkDownloadSpeed } from 'src/services/DownloadSpeed.service';+import { trackEvent } from 'src/services/Analytics.service';++type TierPresets = { [key: number]: Record<string, any> };++const TIER_PRESETS: TierPresets = {+ 1: {+ quality: 'low'+ },+ 2: {+ quality: 'medium'+ },+ 3: {+ quality: 'high'+ }+};++type NetworkTierResult = {+ downloadSpeed: number;+ tier: number;+};++// in mbps+const networkTierGrades = {+ 1: 0.7,+ 2: 2,+ 3: Infinity+};++type DeviceDetectorServiceProps = {+ gpuTierResult: GpuTierResult;+ networkTierResult: NetworkTierResult;+ tierPresets?: TierPresets;+};++class DeviceDetectorService {+ private tierPresets: TierPresets = TIER_PRESETS;++ private gpuTierResult: GpuTierResult;++ private networkTierResult: NetworkTierResult;++ constructor(props: DeviceDetectorServiceProps) {+ this.gpuTierResult = props.gpuTierResult;+ this.networkTierResult = props.networkTierResult;+ if (props.tierPresets) {+ this.tierPresets = { ...TIER_PRESETS, ...props.tierPresets };+ }++ trackEvent('device detected', this.result);+ }++ get result() {+ return {+ gpu: this.gpuTierResult,+ network: this.networkTierResult+ };+ }++ toQueryString() {+ return stringify(this.tierPresets[Math.min(this.gpuTierResult.tier, this.networkTierResult.tier)]);+ }+}++export type DeviceDetectorHookProps = {+ tierPresets?: TierPresets;+};++export function useDeviceDetector(options?: DeviceDetectorHookProps) {+ const [deviceDetector, setDeviceDetector] = useState<DeviceDetectorService>();++ useEffect(() => {+ const fetchDeviceDetector = async () => {+ let gpuTierResult: GpuTierResult = { type: 'BENCHMARK', tier: 3 };+ let networkTierResult: NetworkTierResult = { downloadSpeed: 100, tier: 3 };+ try {+ gpuTierResult = await getGPUTier();+ // Safari fails to detect the GPU tier, so we set it to the highest tier+ if (gpuTierResult.type !== 'BENCHMARK') {+ gpuTierResult.tier = 3;+ }++ const downloadSpeed = await checkDownloadSpeed('https://assets.three.ws/benchmark.glb');++ let tier = 3;+ if (downloadSpeed < networkTierGrades[1]) {+ tier = 1;+ } else if (downloadSpeed < networkTierGrades[2]) {+ tier = 2;+ }++ networkTierResult = {+ downloadSpeed,+ tier+ };+ } catch (error) {+ console.error(error);+ }++ setDeviceDetector(new DeviceDetectorService({ gpuTierResult, networkTierResult, ...options }));+ };+ fetchDeviceDetector();+ }, []);++ return deviceDetector;+}diff --git a/vendor/three-ws-fork/viewer/src/index.tsx b/vendor/three-ws-fork/viewer/src/index.tsxnew file mode 100644index 000000000..a5ef9fe82--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/index.tsx@@ -0,0 +1,10 @@+import React from 'react';+import ReactDOM from 'react-dom/client';+import { App } from './App';++const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);+root.render(+ <React.StrictMode>+ <App />+ </React.StrictMode>+);diff --git a/vendor/three-ws-fork/viewer/src/library.ts b/vendor/three-ws-fork/viewer/src/library.tsnew file mode 100644index 000000000..f2a7f76d3--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/library.ts@@ -0,0 +1,26 @@+import { Exhibit } from './components/Exhibit';+import { FloatingModel } from './components/Models/FloatingModel';+import { AnimationModel } from './components/Models/AnimationModel';+import { HalfBodyModel } from './components/Models/HalfBodyModel';+import { StaticModel } from './components/Models/StaticModel';+import { PoseModel } from './components/Models/PoseModel';+import { EnvironmentModel } from './components/Models/EnvironmentModel';+import { Avatar, CAMERA, AvatarProps } from './components/Avatar';+import { FloorReflection } from './components/FloorReflection';+import { useDeviceDetector } from './hooks/useDeviceDetector/use-device-detector.hook';++export {+ Exhibit,+ FloatingModel,+ EnvironmentModel,+ AnimationModel,+ HalfBodyModel,+ StaticModel,+ PoseModel,+ Avatar,+ CAMERA,+ FloorReflection,+ useDeviceDetector+};++export type { AvatarProps };diff --git a/vendor/three-ws-fork/viewer/src/services/Analytics.service.ts b/vendor/three-ws-fork/viewer/src/services/Analytics.service.tsnew file mode 100644index 000000000..37db0009c--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/Analytics.service.ts@@ -0,0 +1,9 @@+import { track } from '@amplitude/analytics-browser';++export function trackEvent(event: string, data?: Record<string, any>) {+ try {+ track(event, data);+ } catch (error) {+ console.error('Failed to track event', error);+ }+}diff --git a/vendor/three-ws-fork/viewer/src/services/Animation.service.ts b/vendor/three-ws-fork/viewer/src/services/Animation.service.tsnew file mode 100644index 000000000..279c562d3--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/Animation.service.ts@@ -0,0 +1,242 @@+import { AnimationClip, AnimationMixer, Group, LoopRepeat, Mesh, Object3D, PropertyBinding } from 'three';++import { FBXLoader, GLTFLoader } from 'three-stdlib';+import { suspend } from 'suspend-react';+import { MeshoptDecoder } from './meshopt_decoder';+import { AnimationsT } from '../types';++interface ClipWithType {+ group: Group;+ isFbx: boolean;+}++const MIXAMO_PREFIX = 'mixamorig';+const POSITION_SUFFIX = '.position';+const MIXAMO_SCALE = 0.01;++const fbxLoader = new FBXLoader();+const gltfLoader = new GLTFLoader();+gltfLoader.setMeshoptDecoder(MeshoptDecoder);++function normaliseFbxAnimations(fbx: Group) {+ for (let a = 0; a < fbx.animations.length; a += 1) {+ const { tracks } = fbx.animations[a];++ for (let i = 0; i < tracks.length; i += 1) {+ const hasMixamoPrefix = tracks[i].name.includes(MIXAMO_PREFIX);+ if (hasMixamoPrefix) {+ tracks[i].name = tracks[i].name.replace(MIXAMO_PREFIX, '');+ }+ if (tracks[i].name.includes(POSITION_SUFFIX)) {+ for (let j = 0; j < tracks[i].values.length; j += 1) {+ // Scale the bound size down to match the size of the model+ // eslint-disable-next-line operator-assignment+ tracks[i].values[j] = tracks[i].values[j] * MIXAMO_SCALE;+ }+ }+ }+ }++ return fbx.animations;+}++const loadBlobFile = async (blob: Blob): Promise<ClipWithType> => {+ try {+ const buffer = await blob.arrayBuffer();+ return {+ group: (await gltfLoader.parseAsync(buffer, '')) as unknown as Group,+ isFbx: false+ };+ } catch (e) {+ return {+ group: (await fbxLoader.loadAsync(URL.createObjectURL(blob))) as unknown as Group,+ isFbx: true+ };+ }+};++const loadPathFile = async (source: string): Promise<ClipWithType> => {+ try {+ return {+ group: (await gltfLoader.loadAsync(source)) as unknown as Group,+ isFbx: false+ };+ } catch (e) {+ return {+ group: (await fbxLoader.loadAsync(source)) as Group,+ isFbx: true+ };+ }+};++export const loadAnimationClips = async (source: Blob | string): Promise<AnimationClip[]> => {+ const animation = source instanceof Blob ? await loadBlobFile(source) : await loadPathFile(source);++ return animation.isFbx ? normaliseFbxAnimations(animation.group) : animation.group.animations;+};++const IDLE_ANIMATION_NAME = 'idle';++const playMorphTargetAnimation = (root: Object3D, animationClip: AnimationClip): AnimationMixer | null => {+ if (!root || !animationClip) {+ return null;+ }++ const assetMixer = new AnimationMixer(root);+ const animationAction = assetMixer.clipAction(animationClip);++ animationAction.setLoop(LoopRepeat, Infinity);+ animationAction.play();++ return assetMixer;+};++const playMapUvOffsetAnimation = (+ root: Object3D,+ animationClip: AnimationClip,+ encodedPropertyPath: string+): AnimationMixer | null => {+ const targetNode = PropertyBinding.findNode(root, encodedPropertyPath);++ if (!targetNode) {+ return null;+ }++ const targetMeshes: Array<Mesh> = [];++ root.traverse((object) => {+ const mesh = object as Mesh;++ if (mesh.isMesh && mesh.material === targetNode) {+ targetMeshes.push(mesh);+ }+ });++ if (!targetMeshes.length) {+ return null;+ }+ const animatedMesh = targetMeshes[0];++ const assetMixer = new AnimationMixer(animatedMesh);+ const defaultIdleAction = assetMixer.clipAction(animationClip);++ // @ts-expect-error property binding exists+ // eslint-disable-next-line no-underscore-dangle+ const propertyMixers = defaultIdleAction._propertyBindings as unknown as Array<PropertyMixer>;+ if (!propertyMixers.length) {+ return null;+ }++ const defaultPropertyMixer = propertyMixers[0];+ defaultPropertyMixer.binding.node = defaultPropertyMixer.binding.rootNode;++ defaultIdleAction.setLoop(LoopRepeat, Infinity);+ defaultIdleAction.play();++ return assetMixer;+};++export const playAssetIdleAnimation = (+ root: Object3D,+ animations: Array<AnimationClip>+): Array<AnimationMixer> | null => {+ if (!root || !animations.length) {+ return null;+ }++ const idleAnimations = animations.filter((animation) => animation.name.toLowerCase().includes(IDLE_ANIMATION_NAME));++ if (!idleAnimations.length) {+ return null;+ }++ const assetMixers: Array<AnimationMixer> = [];++ // eslint-disable-next-line no-restricted-syntax+ for (const idleAnimation of idleAnimations) {+ if (!idleAnimation.tracks.length) {+ return null;+ }++ idleAnimation.tracks?.forEach((defaultIdleAnimationTrack) => {+ const encodedPropertyPath = defaultIdleAnimationTrack.name;++ let assetMixer: AnimationMixer | null = null;++ const MORPH_TARGET_PROPERTY_SUFFIX = 'morphTargetInfluences';+ const isMorphTargetAnimation = encodedPropertyPath.endsWith(MORPH_TARGET_PROPERTY_SUFFIX);+ if (isMorphTargetAnimation) {+ assetMixer = playMorphTargetAnimation(root, idleAnimation);+ }++ const MAP_UV_OFFSET_PROPERTY_SUFFIX = 'map.offset';+ const isMapUvOffsetAnimation = encodedPropertyPath.endsWith(MAP_UV_OFFSET_PROPERTY_SUFFIX);++ if (isMapUvOffsetAnimation) {+ assetMixer = playMapUvOffsetAnimation(root, idleAnimation, encodedPropertyPath);+ }++ if (assetMixer) {+ assetMixers.push(assetMixer);+ }+ });+ }++ return assetMixers;+};++export const updateAssetAnimations = (mixers: Array<AnimationMixer> | null, delta: number): boolean => {+ if (!mixers) {+ return false;+ }++ // eslint-disable-next-line no-restricted-syntax+ for (const mixer of mixers) {+ mixer.update(delta);+ }++ return true;+};++export const disposeAssetAnimations = (mixers: Array<AnimationMixer> | null, root: Object3D): boolean => {+ if (!mixers || !root) {+ return false;+ }++ // eslint-disable-next-line no-restricted-syntax+ for (const mixer of mixers) {+ mixer.stopAllAction();+ mixer.uncacheRoot(root);+ }++ return true;+};++export const useAnimations = (animations: AnimationsT) =>+ suspend(async (): Promise<Record<string, AnimationClip>> => {+ const clips: Record<string, AnimationClip> = {};++ await Promise.all(+ Object.entries(animations).map(async ([name, { key }]) => {+ const animation = animations[name];++ if (!animation?.source) {+ console.warn(`Could not load animation ${name}`);+ return;+ }++ const newClips = await loadAnimationClips(animation.source);+ const newClip = key ? newClips.find((item) => item?.name === key) || newClips[0] : newClips[0];++ if (newClip) {+ clips[name] = newClip;+ } else {+ console.warn(`Could not load animation ${name}`);+ }+ })+ );++ return clips;+ }, [animations]);++export const getAnimation = (name: string) => `https://assets.three.ws/animations/viewer/${name}`;diff --git a/vendor/three-ws-fork/viewer/src/services/Client.service.ts b/vendor/three-ws-fork/viewer/src/services/Client.service.tsnew file mode 100644index 000000000..832d465c8--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/Client.service.ts@@ -0,0 +1 @@+export const hasWindow = typeof window !== 'undefined';diff --git a/vendor/three-ws-fork/viewer/src/services/DownloadSpeed.service.ts b/vendor/three-ws-fork/viewer/src/services/DownloadSpeed.service.tsnew file mode 100644index 000000000..4965a2deb--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/DownloadSpeed.service.ts@@ -0,0 +1,25 @@+export async function checkDownloadSpeed(baseUrl: string): Promise<number> {+ const startTime = performance.now();++ try {+ const response = await fetch(baseUrl, { signal: AbortSignal.timeout(4000) });++ const data = await response.blob();++ const endTime = performance.now();++ const duration = (endTime - startTime) / 1000; // convert to seconds+ const sizeInBytes = data.size;+ const sizeInMegabits = (sizeInBytes * 8) / (1024 * 1024); // convert to megabits++ const speedMbps = sizeInMegabits / duration;++ return speedMbps;+ } catch (error) {+ if (['TimeoutError', 'AbortError'].includes((error as Error).name)) {+ return 0;+ }++ return 10;+ }+}diff --git a/vendor/three-ws-fork/viewer/src/services/Environment.service.ts b/vendor/three-ws-fork/viewer/src/services/Environment.service.tsnew file mode 100644index 000000000..a2f232114--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/Environment.service.ts@@ -0,0 +1,27 @@+export const environmentPresets = {+ hub: 'hub',+ sunset: 'sunset',+ dawn: 'dawn',+ night: 'night',+ warehouse: 'warehouse',+ forest: 'forest',+ apartment: 'apartment',+ studio: 'studio',+ city: 'city',+ park: 'park',+ lobby: 'lobby',+ soft: 'soft'+};+export type EnvironmentPresets = keyof typeof environmentPresets;++export const getPresetEnvironmentMap = (preset: EnvironmentPresets) =>+ `https://files.three.ws/viewer/environment/${preset}.hdr`;++export const environmentModels = {+ spaceStation: 'https://files.three.ws/viewer/props/environment-space-station.glb',+ platformDark: 'https://files.three.ws/viewer/props/simple-platform-dark.glb',+ platformGreen: 'https://files.three.ws/viewer/props/simple-platform-green.glb',+ platformBlue: 'https://files.three.ws/viewer/props/simple-platform-blue.glb'+};++export type EnvironmentModels = keyof typeof environmentModels;diff --git a/vendor/three-ws-fork/viewer/src/services/GLTFLoaderAnimationPointer.ts b/vendor/three-ws-fork/viewer/src/services/GLTFLoaderAnimationPointer.tsnew file mode 100644index 000000000..a23aabd51--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/GLTFLoaderAnimationPointer.ts@@ -0,0 +1,583 @@+/* eslint-disable */+// @ts-nocheck++import {+ AnimationClip,+ ColorKeyframeTrack,+ InterpolateDiscrete,+ InterpolateLinear,+ NumberKeyframeTrack,+ PropertyBinding,+ QuaternionKeyframeTrack,+ VectorKeyframeTrack+} from 'three';++// DUPLICATED from GLTFLoader.js+const ANIMATION_TARGET_TYPE = {+ node: 'node',+ material: 'material',+ camera: 'camera',+ light: 'light'+};++const KHR_ANIMATION_POINTER = 'KHR_animation_pointer';++// DUPLICATED from GLTFLoader.js+const INTERPOLATION = {+ CUBICSPLINE: undefined, // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each+ // keyframe track will be initialized with a default interpolation type, then modified.+ LINEAR: InterpolateLinear,+ STEP: InterpolateDiscrete+};++// HACK monkey patching findNode to ensure we can map to other types required by KHR_animation_pointer.+const find = PropertyBinding.findNode;+const _animationPointerDebug = false;+let _havePatchedPropertyBindings = false;++/**+ * Animation Pointer Extension+ *+ * Draft Specification: https://github.com/ux3d/glTF/tree/extensions/KHR_animation_pointer/extensions/2.0/Khronos/KHR_animation_pointer+ */+class GLTFAnimationPointerExtension {+ constructor(parser) {+ this.parser = parser;+ this.name = KHR_ANIMATION_POINTER;+ this.animationPointerResolver = null;+ }++ setAnimationPointerResolver(animationPointerResolver) {+ this.animationPointerResolver = animationPointerResolver;+ return this;+ }++ _patchPropertyBindingFindNode() {+ if (_havePatchedPropertyBindings) return;+ _havePatchedPropertyBindings = true;++ // "node" is the Animator component in our case+ // "path" is the animated property path, just with translated material names.+ PropertyBinding.findNode = function (node, path) {+ if (path.startsWith('.materials.')) {+ if (_animationPointerDebug) console.log('FIND', path);++ const remainingPath = path.substring('.materials.'.length).substring(path.indexOf('.'));+ const nextIndex = remainingPath.indexOf('.');+ const uuid = nextIndex < 0 ? remainingPath : remainingPath.substring(0, nextIndex);++ let res = null;+ node.traverse((x) => {+ // NOTE: Changed x.type to x.isMesh for better competability+ if (res !== null || !x.isMesh) return;+ if (x.material && (x.material.uuid === uuid || x.material.name === uuid)) {+ res = x.material;+ if (_animationPointerDebug) console.log(res, remainingPath);+ if (res !== null) {+ if (remainingPath.endsWith('.map')) res = res.map;+ else if (remainingPath.endsWith('.emissiveMap')) res = res.emissiveMap;++ // TODO other texture slots only make sense if three.js actually supports them+ // (currently only .map can have repeat/offset)+ }+ }+ });++ return res;+ }+ if (path.startsWith('.nodes.') || path.startsWith('.lights.') || path.startsWith('.cameras.')) {+ const sections = path.split('.');+ let currentTarget;+ for (let i = 1; i < sections.length; i++) {+ const val = sections[i];+ const isUUID = val.length == 36;+ if (isUUID) {+ // access by UUID+ currentTarget = node.getObjectByProperty('uuid', val);+ } else if (currentTarget && currentTarget[val]) {+ // access by index+ const index = Number.parseInt(val);+ let key = val;+ if (index >= 0) key = index;+ currentTarget = currentTarget[key];+ if (_animationPointerDebug) console.log(currentTarget);+ } else {+ // access by node name+ const foundNode = node.getObjectByName(val);+ if (foundNode) currentTarget = foundNode;+ }+ }++ if (!currentTarget) {+ const originalFindResult = find(node, sections[2]);++ if (!originalFindResult)+ console.warn(`${KHR_ANIMATION_POINTER}: Property binding not found`, path, node, node.name, sections);++ return originalFindResult;+ }++ if (_animationPointerDebug) console.log('NODE', path, currentTarget);++ return currentTarget;+ }++ return find(node, path);+ };+ }++ /* DUPLICATE of functionality in GLTFLoader */+ loadAnimationTargetFromChannel(animationChannel) {+ const { target } = animationChannel;+ const name = target.node !== undefined ? target.node : target.id; // NOTE: target.id is deprecated.+ return this.parser.getDependency('node', name);+ }++ loadAnimationTargetFromChannelWithAnimationPointer(animationChannel) {+ if (!this._havePatchedPropertyBindings) this._patchPropertyBindingFindNode();++ const { target } = animationChannel;+ const useExtension =+ target.extensions && target.extensions[KHR_ANIMATION_POINTER] && target.path && target.path === 'pointer';+ if (!useExtension) return null;++ let targetProperty;++ // check if this is a extension animation+ let type = ANIMATION_TARGET_TYPE.node;+ let targetId;++ if (useExtension) {+ const ext = target.extensions[KHR_ANIMATION_POINTER];+ let path = ext.pointer;+ if (_animationPointerDebug) console.log(`Original path: ${path}`, target);++ if (!path) {+ console.warn('Invalid path', ext, target);+ return;+ }++ if (path.startsWith('/materials/')) type = ANIMATION_TARGET_TYPE.material;+ else if (path.startsWith('/extensions/KHR_lights_punctual/lights/')) type = ANIMATION_TARGET_TYPE.light;+ else if (path.startsWith('/cameras/')) type = ANIMATION_TARGET_TYPE.camera;++ targetId = this._tryResolveTargetId(path, type);+ if (targetId === null || isNaN(targetId)) {+ console.warn(`Failed resolving animation node id: ${targetId}`, path);+ return;+ }++ if (_animationPointerDebug) console.log(`Resolved node ID for ${type}`, targetId);++ // TODO could be parsed better+ switch (type) {+ case ANIMATION_TARGET_TYPE.material:+ const pathIndex = `/materials/${targetId.toString()}/`.length;+ const pathStart = path.substring(0, pathIndex);+ targetProperty = path.substring(pathIndex);++ switch (targetProperty) {+ // Core Spec PBR Properties+ case 'pbrMetallicRoughness/baseColorFactor':+ targetProperty = 'color';+ break;+ case 'pbrMetallicRoughness/roughnessFactor':+ targetProperty = 'roughness';+ break;+ case 'pbrMetallicRoughness/metallicFactor':+ targetProperty = 'metalness';+ break;+ case 'emissiveFactor':+ targetProperty = 'emissive';+ break;+ case 'alphaCutoff':+ targetProperty = 'alphaTest';+ break;+ case 'occlusionTexture/strength':+ targetProperty = 'aoMapIntensity';+ break;+ case 'normalTexture/scale':+ targetProperty = 'normalScale';+ break;++ // Core Spec + KHR_texture_transform+ case 'pbrMetallicRoughness/baseColorTexture/extensions/KHR_texture_transform/scale':+ targetProperty = 'map/repeat';+ break;+ case 'pbrMetallicRoughness/baseColorTexture/extensions/KHR_texture_transform/offset':+ targetProperty = 'map/offset';+ break;++ // UV transforms for anything but map doesn't seem to currently be supported in three.js+ case 'emissiveTexture/extensions/KHR_texture_transform/scale':+ targetProperty = 'emissiveMap/repeat';+ break;+ case 'emissiveTexture/extensions/KHR_texture_transform/offset':+ targetProperty = 'emissiveMap/offset';+ break;++ // KHR_materials_emissive_strength+ case 'extensions/KHR_materials_emissive_strength/emissiveStrength':+ targetProperty = 'emissiveIntensity';+ break;++ // KHR_materials_transmission+ case 'extensions/KHR_materials_transmission/transmissionFactor':+ targetProperty = 'transmission';+ break;++ // KHR_materials_ior+ case 'extensions/KHR_materials_ior/ior':+ targetProperty = 'ior';+ break;++ // KHR_materials_volume+ case 'extensions/KHR_materials_volume/thicknessFactor':+ targetProperty = 'thickness';+ break;+ case 'extensions/KHR_materials_volume/attenuationColor':+ targetProperty = 'attenuationColor';+ break;+ case 'extensions/KHR_materials_volume/attenuationDistance':+ targetProperty = 'attenuationDistance';+ break;++ // KHR_materials_iridescence+ case 'extensions/KHR_materials_iridescence/iridescenceFactor':+ targetProperty = 'iridescence';+ break;+ case 'extensions/KHR_materials_iridescence/iridescenceIor':+ targetProperty = 'iridescenceIOR';+ break;+ case 'extensions/KHR_materials_iridescence/iridescenceThicknessMinimum':+ targetProperty = 'iridescenceThicknessRange[0]';+ break;+ case 'extensions/KHR_materials_iridescence/iridescenceThicknessMaximum':+ targetProperty = 'iridescenceThicknessRange[1]';+ break;++ // KHR_materials_clearcoat+ case 'extensions/KHR_materials_clearcoat/clearcoatFactor':+ targetProperty = 'clearcoat';+ break;+ case 'extensions/KHR_materials_clearcoat/clearcoatRoughnessFactor':+ targetProperty = 'clearcoatRoughness';+ break;++ // KHR_materials_sheen+ case 'extensions/KHR_materials_sheen/sheenColorFactor':+ targetProperty = 'sheenColor';+ break;+ case 'extensions/KHR_materials_sheen/sheenRoughnessFactor':+ targetProperty = 'sheenRoughness';+ break;++ // KHR_materials_specular+ case 'extensions/KHR_materials_specular/specularFactor':+ targetProperty = 'specularIntensity';+ break;+ case 'extensions/KHR_materials_specular/specularColorFactor':+ targetProperty = 'specularColor';+ break;+ }++ path = pathStart + targetProperty;+ if (_animationPointerDebug) console.log('PROPERTY PATH', pathStart, targetProperty, path);+ break;++ case ANIMATION_TARGET_TYPE.node:+ const pathIndexNode = `/nodes/${targetId.toString()}/`.length;+ const pathStartNode = path.substring(0, pathIndexNode);+ targetProperty = path.substring(pathIndexNode);++ switch (targetProperty) {+ case 'translation':+ targetProperty = 'position';+ break;+ case 'rotation':+ targetProperty = 'quaternion';+ break;+ case 'scale':+ targetProperty = 'scale';+ break;+ case 'weights':+ targetProperty = 'morphTargetInfluences';+ break;+ }++ path = pathStartNode + targetProperty;+ break;++ case ANIMATION_TARGET_TYPE.light:+ const pathIndexLight = `/extensions/KHR_lights_punctual/lights/${targetId.toString()}/`.length;+ targetProperty = path.substring(pathIndexLight);++ switch (targetProperty) {+ case 'color':+ break;+ case 'intensity':+ break;+ case 'spot/innerConeAngle':+ // TODO would need to set .penumbra, but requires calculations on every animation change (?)+ targetProperty = 'penumbra';+ break;+ case 'spot/outerConeAngle':+ targetProperty = 'angle';+ break;+ case 'range':+ targetProperty = 'distance';+ break;+ }++ path = `/lights/${targetId.toString()}/${targetProperty}`;+ break;++ case ANIMATION_TARGET_TYPE.camera:+ const pathIndexCamera = `/cameras/${targetId.toString()}/`.length;+ const pathStartCamera = path.substring(0, pathIndexCamera);+ targetProperty = path.substring(pathIndexCamera);++ switch (targetProperty) {+ case 'perspective/yfov':+ targetProperty = 'fov';+ break;+ case 'perspective/znear':+ case 'orthographic/znear':+ targetProperty = 'near';+ break;+ case 'perspective/zfar':+ case 'orthographic/zfar':+ targetProperty = 'far';+ break;+ case 'perspective/aspect':+ targetProperty = 'aspect';+ break;+ // these two write to the same target property since three.js orthographic camera only supports 'zoom'.+ // TODO should there be a warning for either of them? E.g. a warning for "xmag" so that "yfov" + "ymag" work by default?+ case 'orthographic/xmag':+ targetProperty = 'zoom';+ break;+ case 'orthographic/ymag':+ targetProperty = 'zoom';+ break;+ }++ path = pathStartCamera + targetProperty;+ break;+ }++ const pointerResolver = this.animationPointerResolver;+ if (pointerResolver && pointerResolver.resolvePath) {+ path = pointerResolver.resolvePath(path);+ }++ target.extensions[KHR_ANIMATION_POINTER].pointer = path;+ }++ if (targetId === null || isNaN(targetId)) {+ console.warn(`Failed resolving animation node id: ${targetId}`, target);+ return;+ }++ let depPromise;++ if (type === ANIMATION_TARGET_TYPE.node) depPromise = this.parser.getDependency('node', targetId);+ else if (type === ANIMATION_TARGET_TYPE.material) depPromise = this.parser.getDependency('material', targetId);+ else if (type === ANIMATION_TARGET_TYPE.light) depPromise = this.parser.getDependency('light', targetId);+ else if (type === ANIMATION_TARGET_TYPE.camera) depPromise = this.parser.getDependency('camera', targetId);+ else console.error('Unhandled type', type);++ return depPromise;+ }++ createAnimationTracksWithAnimationPointer(node, inputAccessor, outputAccessor, sampler, target) {+ const useExtension =+ target.extensions && target.extensions[KHR_ANIMATION_POINTER] && target.path && target.path === 'pointer';+ if (!useExtension) return null;++ let animationPointerPropertyPath = target.extensions[KHR_ANIMATION_POINTER].pointer;+ if (!animationPointerPropertyPath) return null;++ const tracks = [];++ animationPointerPropertyPath = animationPointerPropertyPath.replaceAll('/', '.');+ // replace node/material/camera/light ID by UUID+ const parts = animationPointerPropertyPath.split('.');+ parts[2] = node.name !== undefined && node.name !== null ? node.name : node.uuid;+ animationPointerPropertyPath = parts.join('.');+ if (_animationPointerDebug) console.log(node, inputAccessor, outputAccessor, target, animationPointerPropertyPath);++ let TypedKeyframeTrack;++ switch (outputAccessor.itemSize) {+ case 1:+ TypedKeyframeTrack = NumberKeyframeTrack;+ break;+ case 2:+ case 3:+ TypedKeyframeTrack = VectorKeyframeTrack;+ break;+ case 4:+ if (animationPointerPropertyPath.endsWith('.quaternion')) TypedKeyframeTrack = QuaternionKeyframeTrack;+ else TypedKeyframeTrack = ColorKeyframeTrack;++ break;+ }++ const interpolation =+ sampler.interpolation !== undefined ? INTERPOLATION[sampler.interpolation] : InterpolateLinear;++ let outputArray = this.parser._getArrayFromAccessor(outputAccessor);++ // convert fov values from radians to degrees+ if (animationPointerPropertyPath.endsWith('.fov')) {+ outputArray = outputArray.map((value) => (value / Math.PI) * 180);+ }++ const track = new TypedKeyframeTrack(animationPointerPropertyPath, inputAccessor.array, outputArray, interpolation);++ // Override interpolation with custom factory method.+ if (interpolation === 'CUBICSPLINE') {+ this.parser._createCubicSplineTrackInterpolant(track);+ }++ tracks.push(track);++ // glTF has opacity animation as last component of baseColorFactor,+ // so we need to split that up here and create a separate opacity track if that is animated.+ if (+ animationPointerPropertyPath &&+ outputAccessor.itemSize === 4 &&+ animationPointerPropertyPath.startsWith('.materials.') &&+ animationPointerPropertyPath.endsWith('.color')+ ) {+ const opacityArray = new Float32Array(outputArray.length / 4);++ for (let j = 0, jl = outputArray.length / 4; j < jl; j += 1) {+ opacityArray[j] = outputArray[j * 4 + 3];+ }++ const opacityTrack = new TypedKeyframeTrack(+ animationPointerPropertyPath.replace('.color', '.opacity'),+ inputAccessor.array,+ opacityArray,+ interpolation+ );++ // Override interpolation with custom factory method.+ if (interpolation === 'CUBICSPLINE') {+ this.parser._createCubicSplineTrackInterpolant(track);+ }++ tracks.push(opacityTrack);+ }++ return tracks;+ }++ _tryResolveTargetId(path, type) {+ let name = '';+ if (type === 'node') {+ name = path.substring('/nodes/'.length);+ } else if (type === 'material') {+ name = path.substring('/materials/'.length);+ } else if (type === 'light') {+ name = path.substring('/extensions/KHR_lights_punctual/lights/'.length);+ } else if (type === 'camera') {+ name = path.substring('/cameras/'.length);+ }++ name = name.substring(0, name.indexOf('/'));+ const index = Number.parseInt(name);+ return index;+ }++ /* MOSTLY DUPLICATE of GLTFLoader.loadAnimation, but also tries to resolve KHR_animation_pointer. */+ /**+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations+ * @param {number} animationIndex+ * @return {Promise<AnimationClip>}+ */+ loadAnimation(animationIndex) {+ const me = this;+ const { json } = this.parser;+ const { parser } = this;++ const animationDef = json.animations[animationIndex];+ const animationName = animationDef.name ? animationDef.name : `animation_${animationIndex}`;++ const pendingNodes = [];+ const pendingInputAccessors = [];+ const pendingOutputAccessors = [];+ const pendingSamplers = [];+ const pendingTargets = [];++ for (let i = 0, il = animationDef.channels.length; i < il; i++) {+ const channel = animationDef.channels[i];+ const sampler = animationDef.samplers[channel.sampler];+ const { target } = channel;+ const input = animationDef.parameters !== undefined ? animationDef.parameters[sampler.input] : sampler.input;+ const output = animationDef.parameters !== undefined ? animationDef.parameters[sampler.output] : sampler.output;++ let nodeDependency = me.loadAnimationTargetFromChannelWithAnimationPointer(channel);+ if (!nodeDependency) nodeDependency = me.loadAnimationTargetFromChannel(channel);++ pendingNodes.push(nodeDependency);+ pendingInputAccessors.push(parser.getDependency('accessor', input));+ pendingOutputAccessors.push(parser.getDependency('accessor', output));+ pendingSamplers.push(sampler);+ pendingTargets.push(target);+ }++ return Promise.all([+ Promise.all(pendingNodes),+ Promise.all(pendingInputAccessors),+ Promise.all(pendingOutputAccessors),+ Promise.all(pendingSamplers),+ Promise.all(pendingTargets)+ ]).then((dependencies) => {+ const nodes = dependencies[0];+ const inputAccessors = dependencies[1];+ const outputAccessors = dependencies[2];+ const samplers = dependencies[3];+ const targets = dependencies[4];++ const tracks = [];++ for (let i = 0, il = nodes.length; i < il; i++) {+ const node = nodes[i];+ const inputAccessor = inputAccessors[i];+ const outputAccessor = outputAccessors[i];+ const sampler = samplers[i];+ const target = targets[i];++ if (node === undefined) continue;++ if (node.updateMatrix) {+ node.updateMatrix();+ node.matrixAutoUpdate = true;+ }++ let createdTracks = me.createAnimationTracksWithAnimationPointer(+ node,+ inputAccessor,+ outputAccessor,+ sampler,+ target+ );+ if (!createdTracks)+ createdTracks = parser._createAnimationTracks(node, inputAccessor, outputAccessor, sampler, target);++ if (createdTracks) {+ for (let k = 0; k < createdTracks.length; k++) {+ tracks.push(createdTracks[k]);+ }+ }+ }++ return new AnimationClip(animationName, undefined, tracks);+ });+ }+}++export { GLTFAnimationPointerExtension };diff --git a/vendor/three-ws-fork/viewer/src/services/Models.service.tsx b/vendor/three-ws-fork/viewer/src/services/Models.service.tsxnew file mode 100644index 000000000..010eec887--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/Models.service.tsx@@ -0,0 +1,557 @@+import React, { useCallback, useEffect, useRef } from 'react';+import {+ LinearFilter,+ MeshStandardMaterial,+ Material,+ Vector2,+ Object3D,+ SkinnedMesh,+ Euler,+ Vector3,+ BufferGeometry,+ Skeleton,+ Group,+ Texture,+ Mesh,+ Object3DEventMap+} from 'three';+import { useFrame } from '@react-three/fiber';+import type { ObjectMap, SkinnedMeshProps } from '@react-three/fiber';+import { GLTF, GLTFLoader, DRACOLoader, GLTFLoaderPlugin } from 'three-stdlib';+import { suspend } from 'suspend-react';+import { Emotion } from 'src/components/Avatar/Avatar.component';+import { BloomConfiguration, MaterialConfiguration } from 'src/types';+import { MeshoptDecoder } from './meshopt_decoder';+import { GLTFAnimationPointerExtension } from './GLTFLoaderAnimationPointer';+import { getAnimation } from './Animation.service';++export interface CustomNode extends Object3D {+ geometry: BufferGeometry;+ material: Material;+ skeleton: Skeleton;+ isMesh: boolean;+ morphTargetInfluences?: number[];+}++export interface Nodes {+ [node: string]: Object3D;+}++type Source = string | string[] | Blob | undefined | null;++export const getStoryAssetPath = (publicAsset: string) => getAnimation(publicAsset);++const validateSource = (source: Source): boolean => {+ if (Array.isArray(source)) {+ return source.length > 0 && source.every(validateSource);+ }++ if (typeof source === 'string') {+ const fileEndExpression = new RegExp(/(.glb|.fbx|.fbx[?].*|.glb[?].*)$/g);+ const uploadFileExpression = new RegExp(/^data:application\/octet-stream;base64,/g);+ const gltfModelExpression = new RegExp(/^data:model\/gltf-binary;base64,/g);+ return fileEndExpression.test(source) || uploadFileExpression.test(source) || gltfModelExpression.test(source);+ }++ if (source instanceof Blob) {+ return source.type === 'model/gltf-binary';+ }++ return false;+};++export const isValidFormat = (source: Source): source is Blob | string => {+ const isValid = validateSource(source);++ if (source && !isValid) {+ console.warn(+ 'Provided GLB/FBX is invalid. Check docs for supported formats: https://github.com/nirholas/three.ws/tree/main/vendor/three-ws-fork/viewer'+ );+ }++ return isValid;+};++export const clamp = (value: number, max: number, min: number): number => Math.min(Math.max(min, value), max);++export const lerp = (start: number, end: number, time = 0.05): number => start * (1 - time) + end * time;++function traverseMaterials(object: Object3D, callback: (material: Material) => void) {+ object.traverse((node) => {+ const mesh = node as Mesh;+ if (!mesh.geometry) return;+ const materials = Array.isArray(mesh.material) ? mesh.material : [mesh.material];+ materials.forEach(callback);+ });+}++export function traverseMeshes(object: Object3D, callback: (material: Mesh) => void) {+ object.traverse((node) => {+ const mesh = node as Mesh;+ if (!mesh.geometry || !mesh.isMesh) return;+ callback(mesh);+ });+}++const disposeGltfScene = (scene: Group<Object3DEventMap>) => {+ scene.traverse((node) => {+ if (node instanceof SkinnedMesh && node.skeleton) {+ node.geometry.dispose();+ node.skeleton.dispose();+ }++ if (node instanceof Mesh) {+ node.geometry.dispose();+ }+ });++ traverseMaterials(scene, (material: Material) => {+ Object.values(material).forEach((value) => {+ if (value instanceof Texture) {+ value.dispose();+ }+ });++ material.dispose();+ });++ scene.clear();+};++/**+ * Avoid texture pixelation and add depth effect.+ */+export const normaliseMaterialsConfig = (+ scene: Group<Object3DEventMap>,+ bloomConfig?: BloomConfiguration,+ materialConfig?: MaterialConfiguration+) => {+ traverseMaterials(scene, (material: Material) => {+ const mat = material as MeshStandardMaterial;+ if (mat.map) {+ mat.map.minFilter = LinearFilter;+ mat.depthWrite = true;+ }++ if (mat.name.toLowerCase().includes('hair')) {+ mat.roughness = 0.9;+ }++ if (mat.emissiveMap) {+ mat.emissiveIntensity = bloomConfig?.materialIntensity ?? materialConfig?.emissiveIntensity ?? 3.3;+ }+ });+};++interface UseHeadMovement {+ nodes: Nodes;+ isHalfBody?: boolean;+ distance?: number;+ activeRotation?: number;+ rotationMargin?: Vector2;+ enabled?: boolean;+}++/**+ * Avatar head movement relative to cursor.+ * When the model isn't a standard three.ws avatar, the head movement won't take effect.+ */+export const useHeadMovement = ({+ nodes,+ isHalfBody = false,+ distance = 2,+ activeRotation = 0.2,+ rotationMargin = new Vector2(5, 10),+ enabled = false+}: UseHeadMovement) => {+ const rad = Math.PI / 180;+ const currentPos = new Vector2(0, 0);+ const targetPos = new Vector2(0, 0);+ const activeDistance = distance - (isHalfBody ? 1 : 0);+ const eyeRotationOffsetX = isHalfBody ? 90 * rad : 0;+ const neckBoneRotationOffsetX = (isHalfBody ? -5 : 10) * rad;+ const mapRange = (value: number, inMin: number, inMax: number, outMin: number, outMax: number) =>+ ((clamp(value, inMax, inMin) - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin;++ useFrame((state) => {+ if (!enabled || !nodes.Neck || !nodes.Head || !nodes.RightEye || !nodes.LeftEye) {+ return;+ }++ const cameraToHeadDistance = state.camera.position.distanceTo(nodes.Head.position);+ const cameraRotation = Math.abs(state.camera.rotation.z);++ if (cameraToHeadDistance < activeDistance && cameraRotation < activeRotation) {+ targetPos.x = mapRange(state.mouse.y, -0.5, 1, rotationMargin.x * rad, -rotationMargin.x * rad);+ targetPos.y = mapRange(state.mouse.x, -0.5, 0.5, -rotationMargin.y * rad, rotationMargin.y * rad);+ } else {+ targetPos.set(0, 0);+ }++ currentPos.x = lerp(currentPos.x, targetPos.x);+ currentPos.y = lerp(currentPos.y, targetPos.y);+ /* eslint-disable no-param-reassign */+ nodes.Neck.rotation.x = currentPos.x + neckBoneRotationOffsetX;+ nodes.Neck.rotation.y = currentPos.y;++ nodes.Head.rotation.x = currentPos.x;+ nodes.Head.rotation.y = currentPos.y;++ nodes.RightEye.rotation.x = currentPos.x - eyeRotationOffsetX;+ nodes.LeftEye.rotation.x = currentPos.x - eyeRotationOffsetX;++ if (isHalfBody) {+ nodes.RightEye.rotation.z = currentPos.y * 2 + Math.PI;+ nodes.LeftEye.rotation.z = currentPos.y * 2 + Math.PI;+ } else {+ nodes.RightEye.rotation.y = currentPos.y * 2;+ nodes.LeftEye.rotation.y = currentPos.y * 2;+ }+ });+};++/**+ * Transfers Bone positions from source to target.+ * @param targetNodes {object} - object that will be mutated+ * @param sourceNodes {object} - object that will be used as reference+ */+export const mutatePose = (targetNodes?: ObjectMap['nodes'], sourceNodes?: ObjectMap['nodes']) => {+ if (targetNodes && sourceNodes) {+ Object.keys(targetNodes).forEach((key) => {+ if (targetNodes[key].type === 'Bone' && sourceNodes[key]) {+ /* eslint-disable no-param-reassign */+ const pos = sourceNodes[key].position;+ targetNodes[key].position.set(pos.x, pos.y, pos.z);++ const rot = sourceNodes[key].rotation;+ targetNodes[key].rotation.set(rot.x, rot.y, rot.z);+ }+ });+ }+};++export const useEmotion = (nodes: ObjectMap['nodes'] | Group, emotion?: Emotion) => {+ useEffect(() => {+ let meshes: SkinnedMesh[] = [];++ if (nodes instanceof Group) {+ nodes.traverse((object) => {+ if (object instanceof SkinnedMesh && object.morphTargetInfluences) {+ meshes.push(object);+ }+ });+ } else {+ // @ts-ignore+ meshes = Object.values(nodes).filter((item: SkinnedMesh) => item?.morphTargetInfluences) as SkinnedMesh[];+ }++ const resetEmotions = () => {+ meshes.forEach((mesh) => {+ if (mesh.morphTargetInfluences) {+ mesh.morphTargetInfluences.fill(0);+ }+ });+ };++ if (emotion) {+ resetEmotions();++ meshes.forEach((mesh) => {+ Object.entries(emotion).forEach(([shape, value]) => {+ const shapeId = mesh?.morphTargetDictionary?.[shape];++ if (shapeId) {+ mesh!.morphTargetInfluences![shapeId] = value;+ }+ });+ });+ } else {+ resetEmotions();+ }+ }, [emotion, nodes]);+};++const loader = new GLTFLoader();+loader.setMeshoptDecoder(MeshoptDecoder);++loader.register((parser) => new GLTFAnimationPointerExtension(parser) as unknown as GLTFLoaderPlugin);++const dracoLoader = new DRACOLoader();+dracoLoader.setDecoderPath('https://www.gstatic.com/draco/versioned/decoders/1.5.5/');+loader.setDRACOLoader(dracoLoader);++async function loadGltf(source: Blob | string): Promise<GLTF> {+ let gltf: GLTF;++ if (source instanceof Blob) {+ const url = URL.createObjectURL(source);+ try {+ gltf = await loader.loadAsync(url);+ } finally {+ URL.revokeObjectURL(url);+ }+ } else {+ gltf = await loader.loadAsync(source);+ }++ return gltf;+}++export const useGltfLoader = (source: Blob | string): GLTF =>+ suspend(async () => loadGltf(source), [source], { lifespan: 100 });++export const useGltfCachedLoader = (source: Blob | string): GLTF => {+ const cachedGltf = useRef<GLTF | null>(null);+ const prevSource = useRef<Blob | string | null>(null);++ const scene = suspend(+ async (): Promise<GLTF> => {+ if (source === prevSource.current && cachedGltf.current) {+ return cachedGltf.current;+ }++ const gltf = await loadGltf(source);++ cachedGltf.current = gltf;+ prevSource.current = source;++ return gltf;+ },+ [source],+ { lifespan: 100 }+ );++ useEffect(+ () => () => {+ if (scene) {+ disposeGltfScene(scene.scene);+ }+ },+ [scene]+ );++ return scene;+};++export function usePersistantRotation(scene: Group) {+ const refToPreviousScene = useRef(scene);++ useEffect(() => {+ if (refToPreviousScene.current !== scene) {+ // eslint-disable-next-line no-param-reassign+ scene.rotation.y = refToPreviousScene.current.rotation.y;+ refToPreviousScene.current = scene;+ }+ }, [scene]);+}++export class Transform {+ constructor() {+ this.scale = new Vector3(1, 1, 1);+ this.rotation = new Euler(0, 0, 0);+ this.position = new Vector3(0, 0, 0);+ }++ scale: Vector3;++ rotation: Euler;++ position: Vector3;+}++/**+ * Builds a fallback model for given scene.+ * Useful for displaying as the suspense fallback object.+ */+function buildFallbackScene(scene: Group, transform: Transform = new Transform()) {+ return (+ <primitive object={scene} scale={transform.scale} rotation={transform.rotation} position={transform.position} />+ );+}++export const useFallbackScene = (scene: Group, setter?: (fallback: JSX.Element) => void) => {+ const previousSceneRef = useRef<Group>();++ useEffect(() => {+ const newScene = scene.clone();++ if (typeof setter === 'function') {+ setter(buildFallbackScene(newScene));+ }++ if (previousSceneRef.current) {+ disposeGltfScene(previousSceneRef.current);+ }++ previousSceneRef.current = newScene;++ return () => {+ if (previousSceneRef.current) {+ disposeGltfScene(previousSceneRef.current);+ }+ };+ }, [scene, setter]);+};++/**+ * Builds a fallback model for given nodes.+ * Useful for displaying as the suspense fallback object.+ */+function buildFallback(nodes: Nodes, transform: Transform = new Transform()): JSX.Element {+ return (+ <group>+ {Object.keys(nodes).map((key) => {+ const node = nodes[key] as CustomNode;+ if (node.type === 'SkinnedMesh') {+ return (+ <skinnedMesh+ castShadow+ receiveShadow+ key={node.name}+ scale={transform.scale}+ position={transform.position}+ rotation={transform.rotation}+ geometry={node.geometry}+ material={node.material}+ skeleton={node.skeleton}+ morphTargetInfluences={node.morphTargetInfluences || []}+ />+ );+ }++ if (node.type === 'Mesh') {+ return (+ <mesh+ attach={(parent, self) => {+ parent.add(self);+ self.parent = node.parent;+ return () => parent.remove(self);+ }}+ castShadow+ receiveShadow+ key={node.name}+ scale={node.scale}+ position={node.position}+ rotation={node.rotation}+ geometry={node.geometry}+ material={node.material}+ morphTargetInfluences={node.morphTargetInfluences || []}+ />+ );+ }++ return null;+ })}+ </group>+ );+}++export const useFallback = (nodes: Nodes, setter?: (fallback: JSX.Element) => void) =>+ useEffect(() => {+ if (typeof setter === 'function') {+ setter(buildFallback(nodes));+ }+ }, [setter, nodes]);++export const triggerCallback = (callback?: () => void) => {+ if (typeof callback === 'function') {+ callback();+ }+};++export const expressions = {+ blink: [+ {+ morphTarget: 'eyesClosed',+ morphTargetIndex: -1,+ offset: 0,+ duration: 0.2+ },+ {+ morphTarget: 'eyeSquintLeft',+ morphTargetIndex: -1,+ offset: 0,+ duration: 0.2+ },+ {+ morphTarget: 'eyeSquintRight',+ morphTargetIndex: -1,+ offset: 0,+ duration: 0.2+ }+ ]+};++/**+ * Animates avatars facial expressions when morphTargets=ARKit,Eyes Extra is provided with the avatar.+ */+export const useIdleExpression = (expression: keyof typeof expressions, nodes: Nodes | Group) => {+ let headMesh: SkinnedMeshProps;++ if (nodes instanceof Group) {+ headMesh = (nodes.getObjectByName('Wolf3D_Head') ||+ nodes.getObjectByName('Wolf3D_Avatar') ||+ nodes.getObjectByName('head')) as unknown as SkinnedMeshProps;+ } else {+ headMesh = (nodes.Wolf3D_Head || nodes.Wolf3D_Avatar || nodes.head) as unknown as SkinnedMeshProps;+ }++ const selectedExpression = expression in expressions ? expressions[expression] : undefined;+ const timeout = useRef<NodeJS.Timeout>();+ const duration = useRef<number>(Number.POSITIVE_INFINITY);++ useEffect(() => {+ if (headMesh?.morphTargetDictionary && selectedExpression) {+ for (let i = 0; i < selectedExpression.length; i++) {+ selectedExpression[i].morphTargetIndex = headMesh.morphTargetDictionary[selectedExpression[i].morphTarget];+ }+ }+ }, [selectedExpression, headMesh?.morphTargetDictionary]);++ const animateExpression = useCallback(+ (delta: number) => {+ if (headMesh?.morphTargetInfluences && selectedExpression) {+ duration.current += delta;++ for (let i = 0; i < selectedExpression.length; i++) {+ const section = selectedExpression[i];++ if (duration.current < section.duration + section.offset) {+ if (duration.current > section.offset) {+ const pivot = ((duration.current - section.offset) / section.duration) * Math.PI;+ const morphInfluence = Math.sin(pivot);+ headMesh.morphTargetInfluences[section.morphTargetIndex] = morphInfluence;+ }+ } else {+ headMesh.morphTargetInfluences[section.morphTargetIndex] = 0;+ }+ }+ }+ },+ [headMesh?.morphTargetInfluences, selectedExpression, duration.current, timeout.current]+ );++ const setNextInterval = () => {+ duration.current = 0;+ const delay = Math.random() * 3000 + 3000;++ clearTimeout(timeout.current);+ timeout.current = setTimeout(setNextInterval, delay);+ };++ useEffect(() => {+ if (selectedExpression) {+ timeout.current = setTimeout(setNextInterval, 3000);+ }++ return () => {+ clearTimeout(timeout.current);+ };+ }, [selectedExpression]);++ useFrame((_, delta) => {+ if (headMesh && selectedExpression) {+ animateExpression(delta);+ }+ });+};diff --git a/vendor/three-ws-fork/viewer/src/services/Models.test.ts b/vendor/three-ws-fork/viewer/src/services/Models.test.tsnew file mode 100644index 000000000..fa497a4c7--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/Models.test.ts@@ -0,0 +1,54 @@+import { isValidFormat } from './Models.service';++describe('Models service unit tests', () => {+ describe('#isValidGlbFormat', () => {+ const testCases = [+ { name: 'undefined URL/base64', format: undefined, expected: false },+ { name: 'null URL/base64', format: null, expected: false },+ { name: 'invalid URL', format: '/3d-test-model.hello', expected: false },+ { name: 'invalid empty URL/base64', format: '', expected: false },+ { name: 'invalid URL with query parameters', format: '/3d-test-model.gl?morphTargets=true', expected: false },+ {+ name: 'invalid base64 format',+ format: 'data:application/octet-stream;base64Z2xURgIAAAC4aKAAqA4CAEpTT...',+ expected: false+ },+ { name: 'valid FBX URL', format: '/3d-test-model.fbx', expected: true },+ {+ name: 'valid FBX URL with query parameters',+ format: '/3d-test-model.fbx?morphTargets=true&blendShapes=[1,2,3]',+ expected: true+ },+ { name: 'valid URL', format: '/3d-test-model.glb', expected: true },+ {+ name: 'valid URL with query parameters',+ format: '/3d-test-model.glb?morphTargets=true&blendShapes=[1,2,3]',+ expected: true+ },+ {+ name: 'valid base64 format',+ format: 'data:application/octet-stream;base64,Z2xURgIAAAC4aKAAqA4CAEpTT...',+ expected: true+ },+ {+ name: 'valid base64 gltf-model format',+ format: 'data:model/gltf-binary;base64,Z2xURgIAAAC4aKAAqA4CAEpTT...',+ expected: true+ },+ {+ name: 'invalid Blob format',+ format: new Blob(),+ expected: false+ },+ {+ name: 'valid Blob format',+ format: new Blob(undefined, { type: 'model/gltf-binary' }),+ expected: true+ }+ ];++ test.each(testCases)('$name', ({ format, expected }): void => {+ expect(isValidFormat(format)).toBe(expected);+ });+ });+});diff --git a/vendor/three-ws-fork/viewer/src/services/Stories.service.ts b/vendor/three-ws-fork/viewer/src/services/Stories.service.tsnew file mode 100644index 000000000..e2ae8cca9--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/Stories.service.ts@@ -0,0 +1,104 @@+import { Emotion } from 'src/components/Avatar/Avatar.component';+import { getStoryAssetPath } from './Models.service';++const disableTable = { table: { disable: true } };++const keysToIgnore = [+ 'modelSrc',+ 'animationSrc',+ 'poseSrc',+ 'halfBody',+ 'shadows',+ 'cameraTarget',+ 'cameraInitialDistance',+ 'style',+ 'idleRotation',+ 'emotion',+ 'background',+ 'capture',+ 'loader',+ 'dpr',+ 'className',+ 'headMovement',+ 'cameraZoomTarget',+ 'bloom',+ 'onLoadedEffect',+ 'onLoadedAnimation',+ 'children',+ 'environment',+ 'ambientLightColor',+ 'dirLightColor',+ 'spotLightColor',+ 'ambientLightIntensity',+ 'dirLightIntensity',+ 'spotLightIntensity',+ 'spotLightAngle',+ 'onLoaded',+ 'onLoading',+ 'fov',+ 'spotLightPosition',+ 'dirLightPosition',+ 'scale'+];+export const ignoreArgTypesOnExamples = keysToIgnore.reduce(+ (acc, key) => {+ acc[key] = disableTable;+ return acc;+ },+ {} as Record<string, typeof disableTable>+);++export const modelPresets = {+ one: 'https://models.three.ws/64d61e9e17883fd73ebe5eb7.glb?morphTargets=ARKit,Eyes Extra&textureAtlas=none&lod=0',+ two: 'https://models.three.ws/64d61f67f0367d07504924be.glb?morphTargets=ARKit,Eyes Extra&textureAtlas=none&lod=0',+ three:+ 'https://models.three.ws/64d62255f0367d0750492913.glb?lod=0&morphTargets=ARKit,Eyes Extra&textureAtlas=none',+ five: 'https://models.three.ws/64d6235e2d3bea6e4267b01d.glb?lod=0&morphTargets=ARKit,Eyes Extra&textureAtlas=none',+ six: 'https://models.three.ws/64d5d4eb651a0d350005c672.glb?lod=0&morphTargets=ARKit,Eyes Extra&textureAtlas=none',+ seven: 'https://models.three.ws/64e3055495439dfcf3f0b665.glb?morphTargets=ARKit,Eyes%20Extra&textureAtlas=none'+};++export const animationPresets = {+ one: getStoryAssetPath('male-idle-1.fbx'),+ two: getStoryAssetPath('male-idle-2.fbx'),+ three: getStoryAssetPath('male-idle-3.fbx')+};++type FacialExpressionT = 'idle' | 'angry' | 'smile' | 'sad';++export const emotions: Record<FacialExpressionT, Emotion> = {+ idle: {},+ angry: {+ mouthDimpleLeft: 0.48,+ mouthShrugLower: 0.385,+ eyeSquintLeft: 0.63,+ eyeSquintRight: 0.614,+ browDownLeft: 0.842,+ browDownRight: 0.56,+ noseSneerLeft: 0.3,+ noseSneerRight: 0.3+ },+ smile: {+ eyeSquintLeft: 0.4,+ eyeSquintRight: 0.2,+ mouthSmileLeft: 0.37,+ mouthSmileRight: 0.36,+ mouthShrugUpper: 0.27,+ browInnerUp: 0.3,+ browOuterUpLeft: 0.37,+ browOuterUpRight: 0.49+ },+ sad: {+ eyeWideLeft: 0.5,+ eyeWideRight: 0.4,+ mouthPucker: 0.19,+ mouthFrownLeft: 0.6,+ mouthFrownRight: 0.6,+ mouthRollLower: 0.33,+ mouthRollUpper: 0.02,+ mouthShrugLower: 0.4,+ browInnerUp: 0.78,+ noseSneerLeft: 0.115,+ noseSneerRight: 0.1+ }+};diff --git a/vendor/three-ws-fork/viewer/src/services/index.ts b/vendor/three-ws-fork/viewer/src/services/index.tsnew file mode 100644index 000000000..e0bdd07b3--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/index.ts@@ -0,0 +1 @@+export * from './Models.service';diff --git a/vendor/three-ws-fork/viewer/src/services/meshopt_decoder.ts b/vendor/three-ws-fork/viewer/src/services/meshopt_decoder.tsnew file mode 100644index 000000000..0f760a656--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/services/meshopt_decoder.ts@@ -0,0 +1,200 @@+// @ts-nocheck+/* eslint-disable */++// This file is part of meshoptimizer library and is distributed under the terms of MIT License.+// Copyright (C) 2016-2022, by Arseny Kapoulkine ([email protected])+var MeshoptDecoder = (function () {+ 'use strict';++ // Built with clang version 14.0.4+ // Built from meshoptimizer 0.18+ var wasm_base =+ 'b9H79Tebbbe8Fv9Gbb9Gvuuuuueu9Giuuub9Geueu9Giuuueuikqbeeedddillviebeoweuec:q;iekr;leDo9TW9T9VV95dbH9F9F939H79T9F9J9H229F9Jt9VV7bb8A9TW79O9V9Wt9F9KW9J9V9KW9wWVtW949c919M9MWVbeY9TW79O9V9Wt9F9KW9J9V9KW69U9KW949c919M9MWVbdE9TW79O9V9Wt9F9KW9J9V9KW69U9KW949tWG91W9U9JWbiL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9p9JtblK9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9r919HtbvL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVT949Wbol79IV9Rbrq:P8Yqdbk;3sezu8Jjjjjbcj;eb9Rgv8Kjjjjbc9:hodnadcefal0mbcuhoaiRbbc:Ge9hmbavaialfgrad9Radz1jjjbhwcj;abad9UhoaicefhldnadTmbaoc;WFbGgocjdaocjd6EhDcbhqinaqae9pmeaDaeaq9RaqaDfae6Egkcsfgocl4cifcd4hxdndndndnaoc9WGgmTmbcbhPcehsawcjdfhzalhHinaraH9Rax6midnaraHaxfgl9RcK6mbczhoinawcj;cbfaogifgoc9WfhOdndndndndnaHaic9WfgAco4fRbbaAci4coG4ciGPlbedibkaO9cb83ibaOcwf9cb83ibxikaOalRblalRbbgAco4gCaCciSgCE86bbaocGfalclfaCfgORbbaAcl4ciGgCaCciSgCE86bbaocVfaOaCfgORbbaAcd4ciGgCaCciSgCE86bbaoc7faOaCfgORbbaAciGgAaAciSgAE86bbaoctfaOaAfgARbbalRbegOco4gCaCciSgCE86bbaoc91faAaCfgARbbaOcl4ciGgCaCciSgCE86bbaoc4faAaCfgARbbaOcd4ciGgCaCciSgCE86bbaoc93faAaCfgARbbaOciGgOaOciSgOE86bbaoc94faAaOfgARbbalRbdgOco4gCaCciSgCE86bbaoc95faAaCfgARbbaOcl4ciGgCaCciSgCE86bbaoc96faAaCfgARbbaOcd4ciGgCaCciSgCE86bbaoc97faAaCfgARbbaOciGgOaOciSgOE86bbaoc98faAaOfgORbbalRbiglco4gAaAciSgAE86bbaoc99faOaAfgORbbalcl4ciGgAaAciSgAE86bbaoc9:faOaAfgORbbalcd4ciGgAaAciSgAE86bbaocufaOaAfgoRbbalciGglalciSglE86bbaoalfhlxdkaOalRbwalRbbgAcl4gCaCcsSgCE86bbaocGfalcwfaCfgORbbaAcsGgAaAcsSgAE86bbaocVfaOaAfgORbbalRbegAcl4gCaCcsSgCE86bbaoc7faOaCfgORbbaAcsGgAaAcsSgAE86bbaoctfaOaAfgORbbalRbdgAcl4gCaCcsSgCE86bbaoc91faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc4faOaAfgORbbalRbigAcl4gCaCcsSgCE86bbaoc93faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc94faOaAfgORbbalRblgAcl4gCaCcsSgCE86bbaoc95faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc96faOaAfgORbbalRbvgAcl4gCaCcsSgCE86bbaoc97faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc98faOaAfgORbbalRbogAcl4gCaCcsSgCE86bbaoc99faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc9:faOaAfgORbbalRbrglcl4gAaAcsSgAE86bbaocufaOaAfgoRbbalcsGglalcsSglE86bbaoalfhlxekaOal8Pbb83bbaOcwfalcwf8Pbb83bbalczfhlkdnaiam9pmbaiczfhoaral9RcL0mekkaiam6mialTmidnakTmbawaPfRbbhOcbhoazhiinaiawcj;cbfaofRbbgAce4cbaAceG9R7aOfgO86bbaiadfhiaocefgoak9hmbkkazcefhzaPcefgPad6hsalhHaPad9hmexvkkcbhlasceGmdxikalaxad2fhCdnakTmbcbhHcehsawcjdfhminaral9Rax6mialTmdalaxfhlawaHfRbbhOcbhoamhiinaiawcj;cbfaofRbbgAce4cbaAceG9R7aOfgO86bbaiadfhiaocefgoak9hmbkamcefhmaHcefgHad6hsaHad9hmbkaChlxikcbhocehsinaral9Rax6mdalTmealaxfhlaocefgoad6hsadao9hmbkaChlxdkcbhlasceGTmekc9:hoxikabaqad2fawcjdfakad2z1jjjb8Aawawcjdfakcufad2fadz1jjjb8Aakaqfhqalmbkc9:hoxekcbc99aral9Radcaadca0ESEhokavcj;ebf8Kjjjjbaok;yzeHu8Jjjjjbc;ae9Rgv8Kjjjjbc9:hodnaeci9UgrcHfal0mbcuhoaiRbbgwc;WeGc;Ge9hmbawcsGgDce0mbavc;abfcFecjez:jjjjb8AavcUf9cu83ibavc8Wf9cu83ibavcyf9cu83ibavcaf9cu83ibavcKf9cu83ibavczf9cu83ibav9cu83iwav9cu83ibaialfc9WfhqaicefgwarfhodnaeTmbcmcsaDceSEhkcbhxcbhmcbhDcbhicbhlindnaoaq9nmbc9:hoxikdndnawRbbgrc;Ve0mbavc;abfalarcl4cu7fcsGcitfgPydlhsaPydbhzdnarcsGgPak9pmbavaiarcu7fcsGcdtfydbaxaPEhraPThPdndnadcd9hmbabaDcetfgHaz87ebaHcdfas87ebaHclfar87ebxekabaDcdtfgHazBdbaHclfasBdbaHcwfarBdbkaxaPfhxavc;abfalcitfgHarBdbaHasBdlavaicdtfarBdbavc;abfalcefcsGglcitfgHazBdbaHarBdlaiaPfhialcefhlxdkdndnaPcsSmbamaPfaPc987fcefhmxekaocefhrao8SbbgPcFeGhHdndnaPcu9mmbarhoxekaocvfhoaHcFbGhHcrhPdninar8SbbgOcFbGaPtaHVhHaOcu9kmearcefhraPcrfgPc8J9hmbxdkkarcefhokaHce4cbaHceG9R7amfhmkdndnadcd9hmbabaDcetfgraz87ebarcdfas87ebarclfam87ebxekabaDcdtfgrazBdbarclfasBdbarcwfamBdbkavc;abfalcitfgramBdbarasBdlavaicdtfamBdbavc;abfalcefcsGglcitfgrazBdbaramBdlaicefhialcefhlxekdnarcpe0mbaxcefgOavaiaqarcsGfRbbgPcl49RcsGcdtfydbaPcz6gHEhravaiaP9RcsGcdtfydbaOaHfgsaPcsGgOEhPaOThOdndnadcd9hmbabaDcetfgzax87ebazcdfar87ebazclfaP87ebxekabaDcdtfgzaxBdbazclfarBdbazcwfaPBdbkavaicdtfaxBdbavc;abfalcitfgzarBdbazaxBdlavaicefgicsGcdtfarBdbavc;abfalcefcsGcitfgzaPBdbazarBdlavaiaHfcsGgicdtfaPBdbavc;abfalcdfcsGglcitfgraxBdbaraPBdlalcefhlaiaOfhiasaOfhxxekaxcbaoRbbgzEgAarc;:eSgrfhsazcsGhCazcl4hXdndnazcs0mbascefhOxekashOavaiaX9RcsGcdtfydbhskdndnaCmbaOcefhxxekaOhxavaiaz9RcsGcdtfydbhOkdndnarTmbaocefhrxekaocdfhrao8SbegHcFeGhPdnaHcu9kmbaocofhAaPcFbGhPcrhodninar8SbbgHcFbGaotaPVhPaHcu9kmearcefhraocrfgoc8J9hmbkaAhrxekarcefhrkaPce4cbaPceG9R7amfgmhAkdndnaXcsSmbarhPxekarcefhPar8SbbgocFeGhHdnaocu9kmbarcvfhsaHcFbGhHcrhodninaP8SbbgrcFbGaotaHVhHarcu9kmeaPcefhPaocrfgoc8J9hmbkashPxekaPcefhPkaHce4cbaHceG9R7amfgmhskdndnaCcsSmbaPhoxekaPcefhoaP8SbbgrcFeGhHdnarcu9kmbaPcvfhOaHcFbGhHcrhrdninao8SbbgPcFbGartaHVhHaPcu9kmeaocefhoarcrfgrc8J9hmbkaOhoxekaocefhokaHce4cbaHceG9R7amfgmhOkdndnadcd9hmbabaDcetfgraA87ebarcdfas87ebarclfaO87ebxekabaDcdtfgraABdbarclfasBdbarcwfaOBdbkavc;abfalcitfgrasBdbaraABdlavaicdtfaABdbavc;abfalcefcsGcitfgraOBdbarasBdlavaicefgicsGcdtfasBdbavc;abfalcdfcsGcitfgraABdbaraOBdlavaiazcz6aXcsSVfgicsGcdtfaOBdbaiaCTaCcsSVfhialcifhlkawcefhwalcsGhlaicsGhiaDcifgDae6mbkkcbc99aoaqSEhokavc;aef8Kjjjjbaok:llevu8Jjjjjbcz9Rhvc9:hodnaecvfal0mbcuhoaiRbbc;:eGc;qe9hmbav9cb83iwaicefhraialfc98fhwdnaeTmbdnadcdSmbcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcdtfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfglBdbaoalBdbaDcefgDae9hmbxdkkcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcetfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfgl87ebaoalBdbaDcefgDae9hmbkkcbc99arawSEhokaok:Lvoeue99dud99eud99dndnadcl9hmbaeTmeindndnabcdfgd8Sbb:Yab8Sbbgi:Ygl:l:tabcefgv8Sbbgo:Ygr:l:tgwJbb;:9cawawNJbbbbawawJbbbb9GgDEgq:mgkaqaicb9iEalMgwawNakaqaocb9iEarMgqaqNMM:r:vglNJbbbZJbbb:;aDEMgr:lJbbb9p9DTmbar:Ohixekcjjjj94hikadai86bbdndnaqalNJbbbZJbbb:;aqJbbbb9GEMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkavad86bbdndnawalNJbbbZJbbb:;awJbbbb9GEMgw:lJbbb9p9DTmbaw:Ohdxekcjjjj94hdkabad86bbabclfhbaecufgembxdkkaeTmbindndnabclfgd8Ueb:Yab8Uebgi:Ygl:l:tabcdfgv8Uebgo:Ygr:l:tgwJb;:FSawawNJbbbbawawJbbbb9GgDEgq:mgkaqaicb9iEalMgwawNakaqaocb9iEarMgqaqNMM:r:vglNJbbbZJbbb:;aDEMgr:lJbbb9p9DTmbar:Ohixekcjjjj94hikadai87ebdndnaqalNJbbbZJbbb:;aqJbbbb9GEMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkavad87ebdndnawalNJbbbZJbbb:;awJbbbb9GEMgw:lJbbb9p9DTmbaw:Ohdxekcjjjj94hdkabad87ebabcwfhbaecufgembkkk;siliui99iue99dnaeTmbcbhiabhlindndnJ;Zl81Zalcof8UebgvciV:Y:vgoal8Ueb:YNgrJb;:FSNJbbbZJbbb:;arJbbbb9GEMgw:lJbbb9p9DTmbaw:OhDxekcjjjj94hDkalclf8Uebhqalcdf8UebhkabavcefciGaiVcetfaD87ebdndnaoak:YNgwJb;:FSNJbbbZJbbb:;awJbbbb9GEMgx:lJbbb9p9DTmbax:Ohkxekcjjjj94hkkabavcdfciGaiVcetfak87ebdndnaoaq:YNgoJb;:FSNJbbbZJbbb:;aoJbbbb9GEMgx:lJbbb9p9DTmbax:Ohqxekcjjjj94hqkabavcufciGaiVcetfaq87ebdndnJbbjZararN:tawawN:taoaoN:tgrJbbbbarJbbbb9GE:rJb;:FSNJbbbZMgr:lJbbb9p9DTmbar:Ohqxekcjjjj94hqkabavciGaiVcetfaq87ebalcwfhlaiclfhiaecufgembkkk9mbdnadcd4ae2geTmbinababydbgdcwtcw91:Yadce91cjjj;8ifcjjj98G::NUdbabclfhbaecufgembkkk9teiucbcbydj1jjbgeabcifc98GfgbBdj1jjbdndnabZbcztgd9nmbcuhiabad9RcFFifcz4nbcuSmekaehikaik;LeeeudndnaeabVciGTmbabhixekdndnadcz9pmbabhixekabhiinaiaeydbBdbaiclfaeclfydbBdbaicwfaecwfydbBdbaicxfaecxfydbBdbaiczfhiaeczfheadc9Wfgdcs0mbkkadcl6mbinaiaeydbBdbaeclfheaiclfhiadc98fgdci0mbkkdnadTmbinaiaeRbb86bbaicefhiaecefheadcufgdmbkkabk;aeedudndnabciGTmbabhixekaecFeGc:b:c:ew2hldndnadcz9pmbabhixekabhiinaialBdbaicxfalBdbaicwfalBdbaiclfalBdbaiczfhiadc9Wfgdcs0mbkkadcl6mbinaialBdbaiclfhiadc98fgdci0mbkkdnadTmbinaiae86bbaicefhiadcufgdmbkkabkkkebcjwklz9Kbb';+ var wasm_simd =+ 'b9H79TebbbeKl9Gbb9Gvuuuuueu9Giuuub9Geueuikqbbebeedddilve9Weeeviebeoweuec:q;Aekr;leDo9TW9T9VV95dbH9F9F939H79T9F9J9H229F9Jt9VV7bb8A9TW79O9V9Wt9F9KW9J9V9KW9wWVtW949c919M9MWVbdY9TW79O9V9Wt9F9KW9J9V9KW69U9KW949c919M9MWVblE9TW79O9V9Wt9F9KW9J9V9KW69U9KW949tWG91W9U9JWbvL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9p9JtboK9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9r919HtbrL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVT949Wbwl79IV9RbDq;t9tqlbzik9:evu8Jjjjjbcz9Rhbcbheincbhdcbhiinabcwfadfaicjuaead4ceGglE86bbaialfhiadcefgdcw9hmbkaec:q:yjjbfai86bbaecitc:q1jjbfab8Piw83ibaecefgecjd9hmbkk;h8JlHud97euo978Jjjjjbcj;kb9Rgv8Kjjjjbc9:hodnadcefal0mbcuhoaiRbbc:Ge9hmbavaialfgrad9Rad;8qbbcj;abad9UhoaicefhldnadTmbaoc;WFbGgocjdaocjd6EhwcbhDinaDae9pmeawaeaD9RaDawfae6Egqcsfgoc9WGgkci2hxakcethmaocl4cifcd4hPabaDad2fhscbhzdnincehHalhOcbhAdninaraO9RaP6miavcj;cbfaAak2fhCaOaPfhlcbhidnakc;ab6mbaral9Rc;Gb6mbcbhoinaCaofhidndndndndnaOaoco4fRbbgXciGPlbedibkaipxbbbbbbbbbbbbbbbbpklbxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaialpbbbpklbalczfhlkdndndndndnaXcd4ciGPlbedibkaipxbbbbbbbbbbbbbbbbpklzxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklzalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklzalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaialpbbbpklzalczfhlkdndndndndnaXcl4ciGPlbedibkaipxbbbbbbbbbbbbbbbbpklaxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklaalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklaalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaialpbbbpklaalczfhlkdndndndndnaXco4Plbedibkaipxbbbbbbbbbbbbbbbbpkl8WxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibaXc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spkl8WalclfaYpQbfaXc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibaXc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spkl8WalcwfaYpQbfaXc:q:yjjbfRbbfhlxekaialpbbbpkl8Walczfhlkaoc;abfhiaocjefak0meaihoaral9Rc;Fb0mbkkdndnaiak9pmbaici4hoinaral9RcK6mdaCaifhXdndndndndnaOaico4fRbbaocoG4ciGPlbedibkaXpxbbbbbbbbbbbbbbbbpklbxikaXalpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaXalpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaXalpbbbpklbalczfhlkaocdfhoaiczfgiak6mbkkalTmbaAci6hHalhOaAcefgohAaoclSmdxekkcbhlaHceGmdkdnakTmbavcjdfazfhiavazfpbdbhYcbhXinaiavcj;cbfaXfgopblbgLcep9TaLpxeeeeeeeeeeeeeeeegQp9op9Hp9rgLaoakfpblbg8Acep9Ta8AaQp9op9Hp9rg8ApmbzeHdOiAlCvXoQrLgEaoamfpblbg3cep9Ta3aQp9op9Hp9rg3aoaxfpblbg5cep9Ta5aQp9op9Hp9rg5pmbzeHdOiAlCvXoQrLg8EpmbezHdiOAlvCXorQLgQaQpmbedibedibedibediaYp9UgYp9AdbbaiadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfgoaYaEa8EpmwDKYqk8AExm35Ps8E8FgQaQpmbedibedibedibedip9UgYp9AdbbaoadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfgoaYaLa8ApmwKDYq8AkEx3m5P8Es8FgLa3a5pmwKDYq8AkEx3m5P8Es8Fg8ApmbezHdiOAlvCXorQLgQaQpmbedibedibedibedip9UgYp9AdbbaoadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfgoaYaLa8ApmwDKYqk8AExm35Ps8E8FgQaQpmbedibedibedibedip9UgYp9AdbbaoadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfhiaXczfgXak6mbkkazclfgzad6mbkasavcjdfaqad2;8qbbavavcjdfaqcufad2fad;8qbbaqaDfhDc9:hoalmexikkc9:hoxekcbc99aral9Radcaadca0ESEhokavcj;kbf8Kjjjjbaokwbz:bjjjbk;uzeHu8Jjjjjbc;ae9Rgv8Kjjjjbc9:hodnaeci9UgrcHfal0mbcuhoaiRbbgwc;WeGc;Ge9hmbawcsGgDce0mbavc;abfcFecje;8kbavcUf9cu83ibavc8Wf9cu83ibavcyf9cu83ibavcaf9cu83ibavcKf9cu83ibavczf9cu83ibav9cu83iwav9cu83ibaialfc9WfhqaicefgwarfhodnaeTmbcmcsaDceSEhkcbhxcbhmcbhDcbhicbhlindnaoaq9nmbc9:hoxikdndnawRbbgrc;Ve0mbavc;abfalarcl4cu7fcsGcitfgPydlhsaPydbhzdnarcsGgPak9pmbavaiarcu7fcsGcdtfydbaxaPEhraPThPdndnadcd9hmbabaDcetfgHaz87ebaHcdfas87ebaHclfar87ebxekabaDcdtfgHazBdbaHclfasBdbaHcwfarBdbkaxaPfhxavc;abfalcitfgHarBdbaHasBdlavaicdtfarBdbavc;abfalcefcsGglcitfgHazBdbaHarBdlaiaPfhialcefhlxdkdndnaPcsSmbamaPfaPc987fcefhmxekaocefhrao8SbbgPcFeGhHdndnaPcu9mmbarhoxekaocvfhoaHcFbGhHcrhPdninar8SbbgOcFbGaPtaHVhHaOcu9kmearcefhraPcrfgPc8J9hmbxdkkarcefhokaHce4cbaHceG9R7amfhmkdndnadcd9hmbabaDcetfgraz87ebarcdfas87ebarclfam87ebxekabaDcdtfgrazBdbarclfasBdbarcwfamBdbkavc;abfalcitfgramBdbarasBdlavaicdtfamBdbavc;abfalcefcsGglcitfgrazBdbaramBdlaicefhialcefhlxekdnarcpe0mbaxcefgOavaiaqarcsGfRbbgPcl49RcsGcdtfydbaPcz6gHEhravaiaP9RcsGcdtfydbaOaHfgsaPcsGgOEhPaOThOdndnadcd9hmbabaDcetfgzax87ebazcdfar87ebazclfaP87ebxekabaDcdtfgzaxBdbazclfarBdbazcwfaPBdbkavaicdtfaxBdbavc;abfalcitfgzarBdbazaxBdlavaicefgicsGcdtfarBdbavc;abfalcefcsGcitfgzaPBdbazarBdlavaiaHfcsGgicdtfaPBdbavc;abfalcdfcsGglcitfgraxBdbaraPBdlalcefhlaiaOfhiasaOfhxxekaxcbaoRbbgzEgAarc;:eSgrfhsazcsGhCazcl4hXdndnazcs0mbascefhOxekashOavaiaX9RcsGcdtfydbhskdndnaCmbaOcefhxxekaOhxavaiaz9RcsGcdtfydbhOkdndnarTmbaocefhrxekaocdfhrao8SbegHcFeGhPdnaHcu9kmbaocofhAaPcFbGhPcrhodninar8SbbgHcFbGaotaPVhPaHcu9kmearcefhraocrfgoc8J9hmbkaAhrxekarcefhrkaPce4cbaPceG9R7amfgmhAkdndnaXcsSmbarhPxekarcefhPar8SbbgocFeGhHdnaocu9kmbarcvfhsaHcFbGhHcrhodninaP8SbbgrcFbGaotaHVhHarcu9kmeaPcefhPaocrfgoc8J9hmbkashPxekaPcefhPkaHce4cbaHceG9R7amfgmhskdndnaCcsSmbaPhoxekaPcefhoaP8SbbgrcFeGhHdnarcu9kmbaPcvfhOaHcFbGhHcrhrdninao8SbbgPcFbGartaHVhHaPcu9kmeaocefhoarcrfgrc8J9hmbkaOhoxekaocefhokaHce4cbaHceG9R7amfgmhOkdndnadcd9hmbabaDcetfgraA87ebarcdfas87ebarclfaO87ebxekabaDcdtfgraABdbarclfasBdbarcwfaOBdbkavc;abfalcitfgrasBdbaraABdlavaicdtfaABdbavc;abfalcefcsGcitfgraOBdbarasBdlavaicefgicsGcdtfasBdbavc;abfalcdfcsGcitfgraABdbaraOBdlavaiazcz6aXcsSVfgicsGcdtfaOBdbaiaCTaCcsSVfhialcifhlkawcefhwalcsGhlaicsGhiaDcifgDae6mbkkcbc99aoaqSEhokavc;aef8Kjjjjbaok:llevu8Jjjjjbcz9Rhvc9:hodnaecvfal0mbcuhoaiRbbc;:eGc;qe9hmbav9cb83iwaicefhraialfc98fhwdnaeTmbdnadcdSmbcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcdtfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfglBdbaoalBdbaDcefgDae9hmbxdkkcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcetfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfgl87ebaoalBdbaDcefgDae9hmbkkcbc99arawSEhokaok:EPliuo97eue978Jjjjjbca9Rhidndnadcl9hmbdnaec98GglTmbcbhvabhdinadadpbbbgocKp:RecKp:Sep;6egraocwp:RecKp:Sep;6earp;Geaoczp:RecKp:Sep;6egwp;Gep;Kep;LegDpxbbbbbbbbbbbbbbbbp:2egqarpxbbbjbbbjbbbjbbbjgkp9op9rp;Kegrpxbb;:9cbb;:9cbb;:9cbb;:9cararp;MeaDaDp;Meawaqawakp9op9rp;Kegrarp;Mep;Kep;Kep;Jep;Negwp;Mepxbbn0bbn0bbn0bbn0gqp;KepxFbbbFbbbFbbbFbbbp9oaopxbbbFbbbFbbbFbbbFp9op9qarawp;Meaqp;Kecwp:RepxbFbbbFbbbFbbbFbbp9op9qaDawp;Meaqp;Keczp:RepxbbFbbbFbbbFbbbFbp9op9qpkbbadczfhdavclfgval6mbkkalae9pmeaiaeciGgvcdtgdVcbczad9R;8kbaiabalcdtfglad;8qbbdnavTmbaiaipblbgocKp:RecKp:Sep;6egraocwp:RecKp:Sep;6earp;Geaoczp:RecKp:Sep;6egwp;Gep;Kep;LegDpxbbbbbbbbbbbbbbbbp:2egqarpxbbbjbbbjbbbjbbbjgkp9op9rp;Kegrpxbb;:9cbb;:9cbb;:9cbb;:9cararp;MeaDaDp;Meawaqawakp9op9rp;Kegrarp;Mep;Kep;Kep;Jep;Negwp;Mepxbbn0bbn0bbn0bbn0gqp;KepxFbbbFbbbFbbbFbbbp9oaopxbbbFbbbFbbbFbbbFp9op9qarawp;Meaqp;Kecwp:RepxbFbbbFbbbFbbbFbbp9op9qaDawp;Meaqp;Keczp:RepxbbFbbbFbbbFbbbFbp9op9qpklbkalaiad;8qbbskdnaec98GgxTmbcbhvabhdinadczfglalpbbbgopxbbbbbbFFbbbbbbFFgkp9oadpbbbgDaopmlvorxmPsCXQL358E8FpxFubbFubbFubbFubbp9op;6eaDaopmbediwDqkzHOAKY8AEgoczp:Sep;6egrp;Geaoczp:Reczp:Sep;6egwp;Gep;Kep;Legopxb;:FSb;:FSb;:FSb;:FSawaopxbbbbbbbbbbbbbbbbp:2egqawpxbbbjbbbjbbbjbbbjgmp9op9rp;Kegwawp;Meaoaop;Mearaqaramp9op9rp;Kegoaop;Mep;Kep;Kep;Jep;Negrp;Mepxbbn0bbn0bbn0bbn0gqp;Keczp:Reawarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9op9qgwaoarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9ogopmwDKYqk8AExm35Ps8E8Fp9qpkbbadaDakp9oawaopmbezHdiOAlvCXorQLp9qpkbbadcafhdavclfgvax6mbkkaxae9pmbaiaeciGgvcitgdfcbcaad9R;8kbaiabaxcitfglad;8qbbdnavTmbaiaipblzgopxbbbbbbFFbbbbbbFFgkp9oaipblbgDaopmlvorxmPsCXQL358E8FpxFubbFubbFubbFubbp9op;6eaDaopmbediwDqkzHOAKY8AEgoczp:Sep;6egrp;Geaoczp:Reczp:Sep;6egwp;Gep;Kep;Legopxb;:FSb;:FSb;:FSb;:FSawaopxbbbbbbbbbbbbbbbbp:2egqawpxbbbjbbbjbbbjbbbjgmp9op9rp;Kegwawp;Meaoaop;Mearaqaramp9op9rp;Kegoaop;Mep;Kep;Kep;Jep;Negrp;Mepxbbn0bbn0bbn0bbn0gqp;Keczp:Reawarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9op9qgwaoarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9ogopmwDKYqk8AExm35Ps8E8Fp9qpklzaiaDakp9oawaopmbezHdiOAlvCXorQLp9qpklbkalaiad;8qbbkk;4wllue97euv978Jjjjjbc8W9Rhidnaec98GglTmbcbhvabhoinaiaopbbbgraoczfgwpbbbgDpmlvorxmPsCXQL358E8Fgqczp:Segkclp:RepklbaopxbbjZbbjZbbjZbbjZpx;Zl81Z;Zl81Z;Zl81Z;Zl81Zakpxibbbibbbibbbibbbp9qp;6ep;NegkaraDpmbediwDqkzHOAKY8AEgrczp:Reczp:Sep;6ep;MegDaDp;Meakarczp:Sep;6ep;Megxaxp;Meakaqczp:Reczp:Sep;6ep;Megqaqp;Mep;Kep;Kep;Lepxbbbbbbbbbbbbbbbbp:4ep;Jepxb;:FSb;:FSb;:FSb;:FSgkp;Mepxbbn0bbn0bbn0bbn0grp;KepxFFbbFFbbFFbbFFbbgmp9oaxakp;Mearp;Keczp:Rep9qgxaqakp;Mearp;Keczp:ReaDakp;Mearp;Keamp9op9qgkpmbezHdiOAlvCXorQLgrp5baipblbpEb:T:j83ibaocwfarp5eaipblbpEe:T:j83ibawaxakpmwDKYqk8AExm35Ps8E8Fgkp5baipblbpEd:T:j83ibaocKfakp5eaipblbpEi:T:j83ibaocafhoavclfgval6mbkkdnalae9pmbaiaeciGgvcitgofcbcaao9R;8kbaiabalcitfgwao;8qbbdnavTmbaiaipblbgraipblzgDpmlvorxmPsCXQL358E8Fgqczp:Segkclp:RepklaaipxbbjZbbjZbbjZbbjZpx;Zl81Z;Zl81Z;Zl81Z;Zl81Zakpxibbbibbbibbbibbbp9qp;6ep;NegkaraDpmbediwDqkzHOAKY8AEgrczp:Reczp:Sep;6ep;MegDaDp;Meakarczp:Sep;6ep;Megxaxp;Meakaqczp:Reczp:Sep;6ep;Megqaqp;Mep;Kep;Kep;Lepxbbbbbbbbbbbbbbbbp:4ep;Jepxb;:FSb;:FSb;:FSb;:FSgkp;Mepxbbn0bbn0bbn0bbn0grp;KepxFFbbFFbbFFbbFFbbgmp9oaxakp;Mearp;Keczp:Rep9qgxaqakp;Mearp;Keczp:ReaDakp;Mearp;Keamp9op9qgkpmbezHdiOAlvCXorQLgrp5baipblapEb:T:j83ibaiarp5eaipblapEe:T:j83iwaiaxakpmwDKYqk8AExm35Ps8E8Fgkp5baipblapEd:T:j83izaiakp5eaipblapEi:T:j83iKkawaiao;8qbbkk:Pddiue978Jjjjjbc;ab9Rhidnadcd4ae2glc98GgvTmbcbhdabheinaeaepbbbgocwp:Recwp:Sep;6eaocep:SepxbbjZbbjZbbjZbbjZp:UepxbbjFbbjFbbjFbbjFp9op;Mepkbbaeczfheadclfgdav6mbkkdnaval9pmbaialciGgdcdtgeVcbc;abae9R;8kbaiabavcdtfgvae;8qbbdnadTmbaiaipblbgocwp:Recwp:Sep;6eaocep:SepxbbjZbbjZbbjZbbjZp:UepxbbjFbbjFbbjFbbjFp9op;Mepklbkavaiae;8qbbkk9teiucbcbydj1jjbgeabcifc98GfgbBdj1jjbdndnabZbcztgd9nmbcuhiabad9RcFFifcz4nbcuSmekaehikaikkkebcjwklz9Tbb';++ var detector = new Uint8Array([+ 0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 3, 2, 0, 0, 5, 3, 1, 0, 1, 12, 1, 0, 10, 22, 2, 12, 0, 65, 0, 65,+ 0, 65, 0, 252, 10, 0, 0, 11, 7, 0, 65, 0, 253, 15, 26, 11+ ]);+ var wasmpack = new Uint8Array([+ 32, 0, 65, 2, 1, 106, 34, 33, 3, 128, 11, 4, 13, 64, 6, 253, 10, 7, 15, 116, 127, 5, 8, 12, 40, 16, 19, 54, 20, 9,+ 27, 255, 113, 17, 42, 67, 24, 23, 146, 148, 18, 14, 22, 45, 70, 69, 56, 114, 101, 21, 25, 63, 75, 136, 108, 28, 118,+ 29, 73, 115+ ]);++ if (typeof WebAssembly !== 'object') {+ return {+ supported: false+ };+ }++ var wasm = WebAssembly.validate(detector) ? wasm_simd : wasm_base;++ var instance;++ var ready = WebAssembly.instantiate(unpack(wasm), {}).then(function (result) {+ instance = result.instance;+ instance.exports.__wasm_call_ctors();+ });++ function unpack(data) {+ var result = new Uint8Array(data.length);+ for (var i = 0; i < data.length; ++i) {+ var ch = data.charCodeAt(i);+ result[i] = ch > 96 ? ch - 97 : ch > 64 ? ch - 39 : ch + 4;+ }+ var write = 0;+ for (var i = 0; i < data.length; ++i) {+ result[write++] = result[i] < 60 ? wasmpack[result[i]] : (result[i] - 60) * 64 + result[++i];+ }+ return result.buffer.slice(0, write);+ }++ function decode(fun, target, count, size, source, filter) {+ var sbrk = instance.exports.sbrk;+ var count4 = (count + 3) & ~3;+ var tp = sbrk(count4 * size);+ var sp = sbrk(source.length);+ var heap = new Uint8Array(instance.exports.memory.buffer);+ heap.set(source, sp);+ var res = fun(tp, count, size, sp, source.length);+ if (res == 0 && filter) {+ filter(tp, count4, size);+ }+ target.set(heap.subarray(tp, tp + count * size));+ sbrk(tp - sbrk(0));+ if (res != 0) {+ throw new Error('Malformed buffer data: ' + res);+ }+ }++ var filters = {+ NONE: '',+ OCTAHEDRAL: 'meshopt_decodeFilterOct',+ QUATERNION: 'meshopt_decodeFilterQuat',+ EXPONENTIAL: 'meshopt_decodeFilterExp'+ };++ var decoders = {+ ATTRIBUTES: 'meshopt_decodeVertexBuffer',+ TRIANGLES: 'meshopt_decodeIndexBuffer',+ INDICES: 'meshopt_decodeIndexSequence'+ };++ var workers = [];+ var requestId = 0;++ function createWorker(url) {+ var worker = {+ object: new Worker(url),+ pending: 0,+ requests: {}+ };++ worker.object.onmessage = function (event) {+ var data = event.data;++ worker.pending -= data.count;+ worker.requests[data.id][data.action](data.value);++ delete worker.requests[data.id];+ };++ return worker;+ }++ function initWorkers(count) {+ var source =+ 'var instance; var ready = WebAssembly.instantiate(new Uint8Array([' ++ new Uint8Array(unpack(wasm)) ++ ']), {})' ++ '.then(function(result) { instance = result.instance; instance.exports.__wasm_call_ctors(); });' ++ 'self.onmessage = workerProcess;' ++ decode.toString() ++ workerProcess.toString();++ var blob = new Blob([source], { type: 'text/javascript' });+ var url = URL.createObjectURL(blob);++ for (var i = 0; i < count; ++i) {+ workers[i] = createWorker(url);+ }++ URL.revokeObjectURL(url);+ }++ function decodeWorker(count, size, source, mode, filter) {+ var worker = workers[0];++ for (var i = 1; i < workers.length; ++i) {+ if (workers[i].pending < worker.pending) {+ worker = workers[i];+ }+ }++ return new Promise(function (resolve, reject) {+ var data = new Uint8Array(source);+ var id = requestId++;++ worker.pending += count;+ worker.requests[id] = { resolve: resolve, reject: reject };+ worker.object.postMessage({ id: id, count: count, size: size, source: data, mode: mode, filter: filter }, [+ data.buffer+ ]);+ });+ }++ function workerProcess(event) {+ ready.then(function () {+ var data = event.data;+ try {+ var target = new Uint8Array(data.count * data.size);+ decode(instance.exports[data.mode], target, data.count, data.size, data.source, instance.exports[data.filter]);+ self.postMessage({ id: data.id, count: data.count, action: 'resolve', value: target }, [target.buffer]);+ } catch (error) {+ self.postMessage({ id: data.id, count: data.count, action: 'reject', value: error });+ }+ });+ }++ return {+ ready: ready,+ supported: true,+ useWorkers: function (count) {+ initWorkers(count);+ },+ decodeVertexBuffer: function (target, count, size, source, filter) {+ decode(+ instance.exports.meshopt_decodeVertexBuffer,+ target,+ count,+ size,+ source,+ instance.exports[filters[filter]]+ );+ },+ decodeIndexBuffer: function (target, count, size, source) {+ decode(instance.exports.meshopt_decodeIndexBuffer, target, count, size, source);+ },+ decodeIndexSequence: function (target, count, size, source) {+ decode(instance.exports.meshopt_decodeIndexSequence, target, count, size, source);+ },+ decodeGltfBuffer: function (target, count, size, source, mode, filter) {+ decode(instance.exports[decoders[mode]], target, count, size, source, instance.exports[filters[filter]]);+ },+ decodeGltfBufferAsync: function (count, size, source, mode, filter) {+ if (workers.length > 0) {+ return decodeWorker(count, size, source, decoders[mode], filters[filter]);+ }++ return ready.then(function () {+ var target = new Uint8Array(count * size);+ decode(instance.exports[decoders[mode]], target, count, size, source, instance.exports[filters[filter]]);+ return target;+ });+ }+ };+})();++export { MeshoptDecoder };diff --git a/vendor/three-ws-fork/viewer/src/setupTests.ts b/vendor/three-ws-fork/viewer/src/setupTests.tsnew file mode 100644index 000000000..dad9d0b69--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/setupTests.ts@@ -0,0 +1,9 @@+import 'jest-canvas-mock';++// jest-dom adds custom jest matchers for asserting on DOM nodes.+// allows you to do things like:+// expect(element).toHaveTextContent(/react/i)+// learn more: https://github.com/testing-library/jest-dom+import '@testing-library/jest-dom';++global.ResizeObserver = require('resize-observer-polyfill');diff --git a/vendor/three-ws-fork/viewer/src/state/spawnAtom.ts b/vendor/three-ws-fork/viewer/src/state/spawnAtom.tsnew file mode 100644index 000000000..5576b602c--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/state/spawnAtom.ts@@ -0,0 +1,9 @@+import { atom } from 'jotai/index';+import { SpawnState } from '../types';++const initialSpawnState: SpawnState = {+ onLoadedEffect: null,+ onLoadedAnimation: null+};++export const spawnState = atom(initialSpawnState);diff --git a/vendor/three-ws-fork/viewer/src/types/index.ts b/vendor/three-ws-fork/viewer/src/types/index.tsnew file mode 100644index 000000000..435c97318--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/types/index.ts@@ -0,0 +1,226 @@+import { Vector3, Mesh } from 'three';+import { PresetsType } from '@react-three/drei/helpers/environment-assets';++export type Required<T> = {+ [P in keyof T]-?: T[P];+};++export interface CameraProps {+ /**+ * A Vector3 representing the cameras position, default is (0, 0, 5)+ */+ position?: Vector3;+}++export interface EnvironmentProps {+ /**+ * Brightness, color hue, shadow contrast, reflection details change according to the selected environment.+ * Possible to provide a custom `.hdr` file path (URL) as environment background.+ */+ environment?: PresetsType | string;+}++/**+ * Three point spotlight setup with an additional body lift light.+ */+export interface LightingProps {+ keyLightIntensity?: number;+ keyLightColor?: string; // css-color string++ fillLightIntensity?: number;+ fillLightColor?: string; // css-color string+ fillLightPosition?: Vector3;++ backLightIntensity?: number;+ backLightColor?: string; // css-color string+ backLightPosition?: Vector3;++ /**+ * The position in space which is used by the lights to shine at. (Defaults to approximate head height)+ */+ lightTarget?: Vector3;+}++export interface BaseModelProps {+ /**+ * Detect when model is loaded (doesn't take into account animations and effects) and trigger custom logic.+ */+ onLoaded?: () => void;+ /**+ * Detect when model is being loaded and trigger custom logic.+ */+ onLoading?: () => void;+ setModelFallback?: (fallback: JSX.Element) => void;+ bloom?: BloomConfiguration;+ materialConfig?: MaterialConfiguration;+ /**+ * Callback for when a mesh is clicked.+ */+ onMeshClick?: (mesh: Mesh) => void;+ /**+ * Callback for when a mesh hover starts.+ */+ onMeshHoverStart?: (mesh: Mesh) => void;+ /**+ * Callback for when a mesh hover ends.+ */+ onMeshHoverEnd?: (mesh: Mesh) => void;+ /**+ * Callback for processing meshes on model load.+ */+ meshCallback?: (material: Mesh) => void;+}++export type HeadBlendShapeType =+ | 'browDownLeft'+ | 'browDownRight'+ | 'browInnerUp'+ | 'browOuterUpLeft'+ | 'browOuterUpRight'+ | 'cheekPuff'+ | 'cheekSquintLeft'+ | 'cheekSquintRight'+ | 'eyeBlinkLeft'+ | 'eyeBlinkRight'+ | 'eyeSquintLeft'+ | 'eyeSquintRight'+ | 'eyeWideLeft'+ | 'eyeWideRight'+ | 'eyesClosed'+ | 'eyesLookDown'+ | 'eyesLookUp'+ | 'jawForward'+ | 'jawLeft'+ | 'jawOpen'+ | 'jawRight'+ | 'mouthClose'+ | 'mouthDimpleLeft'+ | 'mouthDimpleRight'+ | 'mouthFrownLeft'+ | 'mouthFrownRight'+ | 'mouthFunnel'+ | 'mouthLeft'+ | 'mouthLowerDownLeft'+ | 'mouthLowerDownRight'+ | 'mouthOpen'+ | 'mouthPressLeft'+ | 'mouthPressRight'+ | 'mouthPucker'+ | 'mouthRight'+ | 'mouthRollLower'+ | 'mouthRollUpper'+ | 'mouthShrugLower'+ | 'mouthShrugUpper'+ | 'mouthSmile'+ | 'mouthSmileLeft'+ | 'mouthSmileRight'+ | 'mouthStretchLeft'+ | 'mouthStretchRight'+ | 'mouthUpperUpLeft'+ | 'mouthUpperUpRight'+ | 'noseSneerLeft'+ | 'noseSneerRight'+ | 'viseme_CH'+ | 'viseme_DD'+ | 'viseme_E'+ | 'viseme_FF'+ | 'viseme_I'+ | 'viseme_O'+ | 'viseme_PP'+ | 'viseme_RR'+ | 'viseme_SS'+ | 'viseme_TH'+ | 'viseme_U'+ | 'viseme_aa'+ | 'viseme_kk'+ | 'viseme_nn'+ | 'viseme_sil';++export type BloomConfiguration = {+ /**+ * The luminance threshold. Raise this value to mask out darker elements in the scene. Range is [0, 1].+ */+ luminanceThreshold?: number;+ /**+ * Controls the smoothness of the luminance threshold. Range is [0, 1].+ */+ luminanceSmoothing?: number;+ /**+ * Enables or disables mipmap blur.+ */+ mipmapBlur?: boolean;+ /**+ * The intensity of global bloom.+ */+ intensity?: number;+ /**+ * The kernel size of the blur. Values are 0, 1, 2, 3, 4.+ */+ kernelSize?: number;+ /**+ * Emissive material intensity.+ */+ materialIntensity?: number;+};++export type EffectConfiguration = {+ /**+ * Enables ambient occlusion for the current scene.+ */+ ambientOcclusion?: boolean;+ /**+ * Bloom post-processing effect.+ */+ bloom?: BloomConfiguration;+ /**+ * Vignette post-processing effect.+ */+ vignette?: boolean;+};++export type AnimationConfiguration = {+ /**+ * Duration of the crossfade between animations.+ */+ crossfadeDuration?: number;+};++export interface SpawnState {+ /**+ * Add a custom loaded effect like particles when avatar is loaded, animate them with a custom animation.+ */+ onLoadedEffect?: {+ src: string | null;+ animationSrc?: string | null;+ loop?: number | null;+ } | null;+ /**+ * Add a custom loaded animation when avatar is loaded.+ * Supports `.fbx` and `.glb` files.+ */+ onLoadedAnimation?: {+ src: string | null;+ loop?: number | null;+ } | null;+}++export type MaterialConfiguration = {+ /**+ * Emissive material intensity.+ */+ emissiveIntensity?: number;+};++export type AnimationsT = Record<+ string,+ {+ key?: string;+ source?: string;+ repeat?: number;+ fadeTime?: number;+ }+>;++export type CanvasConfiguration = {+ alpha?: boolean;+};diff --git a/vendor/three-ws-fork/viewer/src/utils/props.ts b/vendor/three-ws-fork/viewer/src/utils/props.tsnew file mode 100644index 000000000..6dcf7824a--- /dev/null+++ b/vendor/three-ws-fork/viewer/src/utils/props.ts@@ -0,0 +1,7 @@+const fromEntries = (arr: Array<any>) => Object.assign({}, ...arr.map(([k, v]) => ({ [k]: v })));++export const definedProps = (obj: Object) =>+ fromEntries(+ // eslint-disable-next-line+ Object.entries(obj).filter(([k, v]) => v !== undefined)+ );diff --git a/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-0.5-side-[-1].png b/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-0.5-side-[-1].pngnew file mode 100755index 000000000..b396818ffBinary files /dev/null and b/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-0.5-side-[-1].png differdiff --git a/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-0.5-side-[1].png b/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-0.5-side-[1].pngnew file mode 100755index 000000000..f53b6c08eBinary files /dev/null and b/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-0.5-side-[1].png differdiff --git a/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-3-side-[1].png b/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-3-side-[1].pngnew file mode 100755index 000000000..3547166a6Binary files /dev/null and b/vendor/three-ws-fork/viewer/test/functional/cypress-image-diff-screenshots/baseline/visual.cy.ts-avatar-zoom-3-side-[1].png differdiff --git a/vendor/three-ws-fork/viewer/test/functional/cypress.config.ts b/vendor/three-ws-fork/viewer/test/functional/cypress.config.tsnew file mode 100644index 000000000..d980ad385--- /dev/null+++ b/vendor/three-ws-fork/viewer/test/functional/cypress.config.ts@@ -0,0 +1,22 @@+import { defineConfig } from 'cypress';+// @ts-ignore+import getCompareSnapshotsPlugin from 'cypress-image-diff-js/plugin';++module.exports = defineConfig({+ e2e: {+ setupNodeEvents(on, config) {+ return getCompareSnapshotsPlugin(on, config);+ },+ viewportWidth: 576,+ viewportHeight: 1024,+ chromeWebSecurity: false,+ experimentalModifyObstructiveThirdPartyCode: true,+ responseTimeout: 60000+ },+ retries: {+ /*+ runMode: 3,+ openMode: 2+ */+ }+});diff --git a/vendor/three-ws-fork/viewer/test/functional/cypress/e2e/visual.cy.ts b/vendor/three-ws-fork/viewer/test/functional/cypress/e2e/visual.cy.tsnew file mode 100644index 000000000..398081956--- /dev/null+++ b/vendor/three-ws-fork/viewer/test/functional/cypress/e2e/visual.cy.ts@@ -0,0 +1,47 @@+const VISUAL_TEST_CONFIG = Object.freeze({+ zoomLevel: {+ head: 0.5,+ body: 3.0+ },+ side: {+ front: 1,+ back: -1+ },+ testUrl: 'http://localhost:3000/test',+ modelUrl: 'https://avatars.three.ws/66e42883315948a37cf82baf.glb',+ testThreshold: 1+});++function compareSnapshot(zoomLevel: number, side: number) {+ // use zoom level to rotate camera by 180 degrees+ cy.visit(+ `${VISUAL_TEST_CONFIG.testUrl}/?modelUrl=${encodeURIComponent(VISUAL_TEST_CONFIG.modelUrl)}&zoomLevel=${+ zoomLevel * side+ }`+ );++ cy.intercept(VISUAL_TEST_CONFIG.modelUrl).as('modelDownloading');+ cy.wait('@modelDownloading');++ // wait for the shadow under the avatar to build up with high wait time+ cy.wait(30000);++ const name = `avatar-zoom-${zoomLevel}-side-[${side}]`;++ // @ts-ignore+ cy.compareSnapshot({ name, testThreshold: VISUAL_TEST_CONFIG.testThreshold });+}++describe('visual', () => {+ it('compares avatar body snapshot front', () => {+ compareSnapshot(VISUAL_TEST_CONFIG.zoomLevel.body, VISUAL_TEST_CONFIG.side.front);+ });+ it('compares avatar head snapshot front', () => {+ compareSnapshot(VISUAL_TEST_CONFIG.zoomLevel.head, VISUAL_TEST_CONFIG.side.front);+ });+ it('compares avatar head snapshot back', () => {+ compareSnapshot(VISUAL_TEST_CONFIG.zoomLevel.head, VISUAL_TEST_CONFIG.side.back);+ });+});++export {};diff --git a/vendor/three-ws-fork/viewer/test/functional/cypress/fixtures/soft.hdr b/vendor/three-ws-fork/viewer/test/functional/cypress/fixtures/soft.hdrnew file mode 100644index 000000000..47d4db9be--- /dev/null+++ b/vendor/three-ws-fork/viewer/test/functional/cypress/fixtures/soft.hdr@@ -0,0 +1,25 @@+#?RADIANCE+SOFTWARE=GEGL+FORMAT=32-bit_rle_rgbe++-Y 128 +X 256+�ƿ|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��|��|�~|�~|�~}|�~}|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{�~||�}|�}|��~|��|��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��|�~|�~}|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{�}|�}|��~|��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��|�~|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{�~|��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}��}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{�~|��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|�}��}���}���}���}���}���}���}�}�~}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}��}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|�~|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}��}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��~{���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��~{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��{���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��~{���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z�¿z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��~{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}�ƿ}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{�~{���z���z���z���z���z���z���z���z���z���z�¿z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��~z���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��}z��z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|�|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��{���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��}z���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y�¾y���y���y���y���y���y���y���y���y���y���y���y���y�ÿy���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}�}���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��~{���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��z���y���y���y���y���y���y���y���y�ÿy���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y�Ŀy���y���y���y���y���y���y���y���y��~z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|��|���{���{���{���{���{���{���{���{���{���{���{���{���{���{��{���z���z���z���z���z���z���z���z���z���z���z���z���z���z��~z���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��}y���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x��}y��y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���x���x���x���x���x���x���x���x���x���x�¼x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x�ľx���x���x���x���x���x���x���x���x���x��~y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|��|���{���{���{���{���{���{���{���{���{���{���{���{��~{���z���z���z���z���z���z���z���z���z���z���z�}z���y���y���y���y���y���y���y���y���y���y���y��~y���x���x���x���x���x�ľx���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x��x��x��x��x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x��y���y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z�¿z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}��}���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���y���y���y���y��|y���x���x���x���x���x���x���x���x���x���x���x���x��}x���w���w���w���w���w���w���w���w���w�ƿw�üw���w���w���w���w���w���w���w���w�ûw�žw���w���w���w���w���w���w���w���w���w��~x���x���x���x���x���x���x���x���x���x���x���x���x��}y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z��~{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���z���y���y���y�Ŀy���y���y���y���y���y���x���x���x���x���x���x���x���x���x���x���w���w���w���w���w�ļw���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w���w�ǿw���w���w���w���w��{x���x���x���x���x���x���x���x���x���x���x���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���y���y���x���x���x�½x���x���x���x���x��~x���w���w���w�Žw���w���w���w���w���w���w��w�~zw���v���v���v���v���v���v���v�ƾv�ºv¿�v���v���v���v���v���v���v���v���v�Žv���v���v���v���v���v���v���v��~w���w���w���w���w���w���w���w���w���w���w���w��~x���x���x���x���x�üx���x���x���x���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}�}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���y���y���y���y���y���y���y���y���x���x���x���x���x���x���x���w���w���w���w���w���w���w���w��}w���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v��|v��|v��|v��|v��|v��|v��|v��v���v���v���v���v���v���v���v���v���v���v���v���v���v���v���w���w���w���w���w���w�ƾw���w���w�~yx���x���x���x���x���x���x���x��y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���y���y���y���y���y���y��~y���x���x���x���x���x���x���w���w���w���w���w���w���w���v���v���v�ûv���v���v���v���v���v��~v���u���u���u���u���u���u�ľu�¶u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u��~v���v���v���v���v���v���v���v���v���v���v���w���w���w���w���w�úw���w���w��{x���x���x���x�ļx���x���x���y���y���y���y���y���y���y���y��z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���y���y���y���y���y���y��y���x���x���x���x���x��|x���w���w���w���w���w��}w���v���v���v���v���v���v���v���u���u���u���u���u���u���u���u���u���u���u���u���u��|u��|u���t���t���t���t���t���t���t���t��|u���u���u���u���u���u���u�ļu���u���u���u���v���v���v���v���v�¼v���v���v���v�zw���w���w���w���w���w���w���w��zx���x���x���x���x���x���x���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���y���y���y���y���y���y���x���x���x���x���x���w���w���w���w���w��~w���v���v���v���v���v���v���u���u���u���u���u���u���u���u��|u���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���u���u���u���u���u���u���u���v���v���v���v���v���v���v���v���v���w���w���w���w���w�ƽw���w���w���x���x���x���x���x���x���y���y���y���y�Ŀy���y���y���y���z���z���z���z���z���z���z���z���z��~{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���y���y���y���y���y���x���x���x���x���x���w���w���w���w���w���v���v���v���v���v��yv���u���u���u���u���u���u���t���t���t���t���t���t���t���t���t���t���t���t���t���t��t��xt��xt��xt��xt��xt��yt���t���t���t���t���t���t���t���t���t���u���u���u���u���u���v���v���v���v�¼v���v���v���v��~w���w���w���w���w���w���w���w���w���w���x���x���x�¹x���x���x���y���y���y���y�Ŀy���y���y�|z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���y���y���x���x���x���x���w���w���w���w���w���v���v���v���v��|v���u�ƾu���u���u���u�~xu���t���t���t���t���t���t���t���t��xt���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���t���t���t���t���t��~u���u���u���u���u���v���v���v���v���v���v���w���w���w���w���w���w���w���w���w���w���w��|x���x���x���x���x���x���x���x���y���y���y���y���y���y���y��z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|�|���{���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���y���x���x���x���x���x���w���w���w���w���v�ļv���v���v���u���u���u���u���u���t���t���t���t���t���t���t���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s��xt���t���t���t���t���u���u���u��}v���v���v���v���v���w���w���w���w���w���w���w���w���w���w���x���x���x���x���x���x���x�ļx���x���x���x���y���y���y���y�½y���y���y���y���z���z���z���z���z���z���z���z��~{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���y���x���x���x���x���w���w���w���w���v�ſv���v���v���u���u���u���u���t���t���t���t���t���t���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���t���t���t���t���u�Ŀu���u���v���v���v���v���w���w���w���w���w���w���x���x���x���x���x���x���x���x�þx���x���x���x���x���x���x���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y��y���x���x���x��x���w���w���w���v���v���v���v���u�»u���u���u���t���t���t���t���t���s���s���s���s���s���s���s���s���s���s��s���r���r���r���r���r���r���r���r���r���r���r���r���r���r���s���s���s���s���s��|t���t���t���u���u���u���v���v���v��w���w���w���w���w���x���x���x���x���x���x���x���x���x���x��~y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}��~���~���~���~���~�~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���x���x���x���x���w���w���w���w���v���v���v���u���u���u���u���t�ȹt���t���t��|t���s���s���s���s���s���s���s��s���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���s���s���s�ǹs���s���t���t���u���u���u���v���v���v���w���w���w���x���x���x���x���x���x���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��}z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~��~���}���}���}���}���}���}���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~��~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���x���x���x���x���w���w���w���v�Ľv���v��|v���u���u���u���t�ȹt���t���t���s���s���s���s���s���s���s���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���s���s���s���s���t���t���u�ƿu���v���v���v���w���w���w���x���x���x���x���y���y���y���y���y���y���y���y���y���y���y���y��~z���y���y���y���y���y���y���y���y���y���y��z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���|���|���|���|���|���|���|���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~��~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���x���x���x���w���w���w���w���v���v���v���u���u���u���t���t���t���t���s���s���s���s���s���s���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r��~s���s���s���s���t���t���u���u���v�½v��~w���w���w���x���x���x���x���y���y���y���y���y�~z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���|���|���|���|���|���|���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{��~{���z���z���z���z��z���y���y���y���y���x���x���x���w���w���w���v���v���v���u���u���u��~u���t���t���t���s���s���s���s���s���s���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���s���s���s���t���t���u���u���v���v���w���w���w���x���x���x���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z�¿z���z���z���z���z���z���{���{���{���{���{���{���{���|���|���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|��|���{���{���{���{���{��{���z���z���z���z���y���y���y���y���x���x���x���x���w���w���w���v���v���v���u���u���u���t���t���t��t���s���s���s���s��~s���r���r���r���r���r���r���r���r���r���r��~r���q���q���q���q���q���q���q���q���q���r���r���r���r���r���r���r���r���s���s���s���t���t���u���u���v���v���w���w���x���x���x���y���y���y���y���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���������������������������~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{��{���z���z���z���z���y���y���y���y���x���x���x���x���w���w���w���v���v���v���u���u��~u���t���t���t���s���s���s���s���s���r���r���r���r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���r���r���r���s���s���s���t���t���u���u���v���v���w���w���x���x���x���y���y���y���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��~{���z���z���z���z���z���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���~���������������������������������������������������~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���z���z���z���z���z���y���y���y���y���x�¾x���x���w���w���w���v���v���v���u���u���u���t�ùt���t��t���s���s���s���s���r���r���r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���r���r���s���s���s���t���t���u���u���v���v���w���w���x���x���x���y���y���y���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~��~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{�~{���z���z���z���z���y���y���y���y���x���x���x���w���w���w���v���v���v���u���u���u���t���t���t���s���s���s���s���r���r���r���r���r���r��r���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���r���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���y���z���z���z��{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{�~{���z���z���z���z���y�¿y���y���y���x���x���x���w���w���w���v���v���v���u���u��~u���t���t���t���s���s���s���s���r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���s���s���s��t���t���t���u���u���v���v���w���w���x���x���y���y���y���z���z���z���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~��~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{��{���z���z���z���z���y���y���y���x���x���x���x���w���w���w���v���v���u�ļu���u���t���t���t���s���s���s���s���r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���p���p��p���p���p���p���p��q���q���q���q���q���q���r���r���r���s���s���s���s���t���t���u���u���v���v���w���w���x���x���y���y���y���z���z���z���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~��~�~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{��{���z���z���z���z���y���y���y���x���x���x���w���w���w���v���v���v���u���u���u���t���t���t���s���s���s���s���r���r���r���r���r���q���q���q���q���q���q���q���q���p���p��p���p���o���l��Ul�� g g��k��(o���p���q���q���q�½q���r���r���r���r���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~������������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���~��~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x�¿x���x���w���w���w���v���v���v���u���u���u���t���t���t���s���s���s���r���r���r���r���r���q���q���q���q���q���q���q��q���p�p�{{p���l��Ul�� g g g g g g g���l���p���q���q���q���q���r���r���r���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���y���z���z���z���{���{���{���{���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~������������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���w���v���v���v���u���u~�~u���t���t���t���s���s���s���r���r���r���r��r���q���q���q���q���q���q���p���p���p��o�UUl� g g g g g g g g g g���l���p���q���q���q���q���r���r��s���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���{���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|��|���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���w���v���v���u�¾u���u���t�ļt���t��t���s���s���s���r���r���r���r���q���q���q���q���q���q���p���p���p���l���g g g g g g g g g g g g g���l���p���q���q���q���r���r���r���s���s���s���t���t���t��|u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{��|���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���z���z���z���z��~z���y���y���y���x���x���w���w���w���v���v���u���u���u���t���t���t���s���s���s���s���r���r���r���r���q���q���q���q���q���p���p���p���l���g g g g g g g g g g g g g g g���l���p���q���q���q���r���r���r���s���s���s���t���t���t���u���u��v���v���w���w���x���x���y���y���y���z���z���{���{���{���{���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���|���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���v���v���u���u���u���t���t���t���s���s���s���s���r���r���r���r���q���q���q���q���q���p���p���l���g g g g g g g g g g g g g g g g g���l���p���q���q���q���r���r��s���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{��~|���|���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������������������~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}��}���|���|���|���|���|���|���|�|���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���v���v���v���u���u���t���t���t���s���s���s���s���r���r���r���r���q���q���q���q���p��p���o��k k k k k k k k k k k k k k k k k k k���l���p���q���q���q���r���r���s���s���s���t���t���t���t���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|��|���{���{���{���|���|���|���|���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���������������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x��~x���w���w���v���v���u���u���t���t���t���t���s���s���s���r���r���r���r���q���q���q���q���p���p��l�� g g g g g g g g g g g g g g g g g g g g���o���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|��|���{��|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������������~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���z���z���z���z��z���y���y���y���x���x���w���w���v���v���u���u���u���t���t���t���s���s���s���s���r���r���r���q���q���q���q���p���p���l l l l l l l l l l l l l l l l l l l l l l���p���q���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���{���{���{���{���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|��}���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������������~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���v���v���u���u���t���t���t���s���s���s���s���r���r���r�~r���q���q���q���p���p��l l l l l l l l l l l l l l l l l l l l l l l���p���q���q���q��r���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���{���{���{���|���|���|���|���}���}���}���}���}���}���}���}���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~������������������������������������������������������������������������~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x��x���w���w�ļv���v���u���u���t���t���t���s���s���s���r���r���r���r���q���q���q��q���p���l l l l l l l l l l l l l l l l l l l l l l l l���p���q���q���q���r���r���r���s���s���s���t���t���t���u���u�~v���v���v���w���w���x��y���y���y���z���z���{���{���{���|���|���|���|���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~������������������������������������������������������������������������~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���w���w��}w���v��}v���u���u���t���t���s���s���s���s���r���r���r���q���q���q���q���p��o o o o o o o o o o o o o o o o o o o o o o o o o���p���q���q���q���r���r��s���s���s���t���t���t���t���u���u���v���v���v���w���x���x���y���y���y���z���z���{���{���{���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~������������������������������������������������������������������~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���w���w���v���v���u���u��zu���t���t���s���s���s���s���r���r���r���q���q���q���q���p��k k k k k k k k k k k k k k k k k k k k k k k k k���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|��}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~������������������������������������������������������������~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���w���w���v���v���u���u���t���t���t���s���s���s���r���r���r���r���q���q���q���p���o o o o o o o o o o o o o o o o o o o o o o o o o�� k���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w�¾w���x���x���y���y���z���z���z���{���{���{���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~������������������������������������������������������~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}�}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���w���w�{w���v���u���u���t���t���t���s���s���s���r���r���r���r���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l��Ul���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}��~���~���~���~���~���~���~���~���~������������������������������������������������~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x��|x���w��}w���v���u���u���t���t���t���s���s���s���r���r���r���r���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l���l���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���|���|���|���|���|���|���|���|��|���{�~|���|���|���|���|���|���|���|���|���|�}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���������������������������������������~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y�ÿy���y���x���x��x���w���w���v�zv���u���t���t���t���s���s���s���r���r���r���r���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l��Ul���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���|���|���|���|���|���|���|��|���{���{���{���{���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~�����������������������~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|��|���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���v��|v���u���t���t���t���s���s���s���r���r���r��~r���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l�� k���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{��|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x�üw���w���v��|v���u���t���t��|t���s���s���s���r���r���r��}r���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l l���p���q���q���q���r���r��s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���|���|���|���|���|���|���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x�ýw���w���v��|v���u���t���t��xt���s���s���s���r���r���r��}r���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l l��{p��q���q���q���r���r���r���s���s���t���t���t���u���u���u���v���v���v���w���w���x��~y���y���y���z���z���{���{���{���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}��}���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x�¼w���w���v��|v���u���t���t�|xt���s���s��s���r���r���r���q���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l l��o���p���q���q���q���r���r���s���s���s���t���t���t���u���u��v���v���v���w���w���x���x���y���y���z���z���{���{���{���|���|���|���|���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{�~}|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|��|���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���v�~yv���u���t���t���s���s���s���r���r���r���r���q���q���q���q���p��Ul l l l l l l l l l l l l l l l l l l l l l l l l l���l���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���|���|���|���|���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���~���~���~���~���~���~���~���~���~���~���~���~���~���~���~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x��}x���w��|w���v���u���u���t���t���s���s���s���r���r���r���r���q���q���q���q���p�� k k k k k k k k k k k k k k k k k k k k k k k k k k���g���p���q���q���q���r���r���r���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y��z���z���z���{���{���{���|���|���|���|���}���}���}���}���}���}���}���~���~���~���~���~���~���}���}���}���}���}���}���}���}���|���|���|���|���|��|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���~���~���~���~���~���~�~���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���w���w���v���v���u���u���t���t���s���s���s���r���r���r���r���q���q���q���q���p p p p p p p p p p p p p p p p p p p p p p p p p p p p���o���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���{���{���{���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{�~|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���w���w���v���v���u���u���t���t���s���s���s���r���r���r���r���q���q���q�}q�{Ep p p p p p p p p p p p p p p p p p p p p p p p p p p p���k���p���q���q���q���r���r���r���s���s��t���t���t���t���u���u���v���v���w���w���x���x���y�¿y���z���z���z���{���{���{���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{�~{���z���z���z���z���y���y���y���x���x���w���w���v���v���u���u���t���t���s���s���s���r���r���r��r���q���q���q���p�o o o o o o o o o o o o o o o o o o o o o o o o o o o o o���o���p���q���q���q���r���r���s���s���s���t���t���t���u���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���{���{���{���{���{���{���{�~|{���z���z���z���z�~}{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x���x���w���w���v���v���u��zu���t��|t�ǹs���s���r���r���r���r���q���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l l l l l���k���p���p���q���q���r���r���r���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���y���z���z���{���{���{���{���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���z��~{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y���y���y���x���x��{x���w��}w���v���u���u���t���t���s���s���s���r���r���r���r���q���q���q���q���p�k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k���l���p���q���q���q���r���r���r���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���{���|���|���|���|���|���|���|���}���}���}���}���}���}�}���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���z���z���z���z���z���z���z���z���z���z�~|{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|�}�}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}��}���|���|���|���|���|���|���|��|���{���{���{���{���{���z���z���z���z���z���y���y���y���x���x���w���w���v���v���u���u���t���t���s���s���s���r���r���r���q���q���q���q���p���o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o���g���o���p���q���q���q���r���r���r���s���s���s���t���t���t���u���u���v���v���w���w���x���x���y���y���z���z���z���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{��{���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y�ÿy���y���x���x���x���w���w���v���v���u���u���t���t���s���s���r���r���r���r���q���q���q���q���p�l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l�k���p���p���q���q���q���r���r���r���s���s���s���t���t��|u���u���u���v���v���w�~}x���x���x���y���y���z���z���z���z���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|��|���{���{���{���{���{���{���z���z���z���z���z���z���z��~z���y���y���y�}{z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���z���y���y���y���x���x���w���w�~zw���v���u���u���t���t���s���s���s���r���r���r�r���q���q���q���p���p���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���l���p���p���q���q���q���r���r���r���s���s���s���t���t��~u���u��v���v���w���w���x���x���x���y���y���z���z���z���z���{���{���{���{���{���{���|���|���|���|���|���|���|���|�~|���{���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���y�¾y���y���x���x���x���w���w���v���v���u���u���t���t���s���s�xs���r���r���r���q���q���q���q���p���l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l���l���p���p���q���q���q���r���r���r���s���s���s���t���t���u���u���v���v���w���w���x���x���x���y���y���y���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���y���y�ÿy���y���y���y���y���y���y���y���y���y���y���y���y���y�~|z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z��}z���y���y���y���x���x���w���w��}w���v�~zv���u���t���t���s���s���s���r���r���r���q���q���q���q���p���p���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���l���p���p���q���q���q��~r���r���r���r���s���s���t���t���u���u���v���v���w���w�~}x���x���x���y���y���y���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z��~z���y���y���y���y���y���y��}y���x���x���x���x���x�|y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{�|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���z���z���z���z���z���y���y���y���x���x���x���w���w���v���v���u���u���t���t���s���s���r���r���r���r���q���q���q���q��p��l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l��Ul��Jp���p���q���q���q���q���r���r���r���s���s���t���t���u���u���v���v���w���w���w���x���x���x���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���y���y¿�y���y���y���y���x���x���xý�x���x���x���x���x���xľ�x���x���x���x�|y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}�ÿ}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{�~{���z�¿z���z���z���y���y���y��|y���x���x���w���w���v���v���u���u���t���t���s���s���s���r���r���r���q���q���q���q���p���o�� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���g���o���p���p���q���q���q���q���r���r���s���s�||t���t��|u���u�}v���v���v���w���w���x���x���x���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���x���x�ÿx���x���x���x���x��~x�~{x�}zx�|x���x���x���x���x���xľ�x���x���x�|y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{��{���z���z���z���z���y���y���y���y���x���x�{x���w���w���v���v�ļu���u���t���t���s���s���r���r���r���q���q���q���q���p���p��k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k���g���l���p���p���q���q���q���q���r���r�xs���s���s���t���t���u���u���v���v���w¿�w���w���x���x���x���y���y���y���y���y���y���y���y���y��z�~z���y���y���y���y���y���y���y���y���y�~|y���x���x���x���x���x���w���w���wž�w���w���w���w���w���w�žw���w���w�}yx���x���x���x���x���x���x��~y���y���y���y���y���y���y���y���z���z���z���z���z���z¿�z���z���z���z���z���z���z�~{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{��{���z���z���z���z���y���y���y���y���x���x���x���w���w���v���v���u���u���t���t���s���s���r���r���r��r���q���q���q���q��p��l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l���k���o��p���p���q���q���q���r���r���r���s���s���t���t���u���u���v���v���w���w���w�}x���x���x���x���x���y���y���y���y���y���y���y���y���y���y���y���y���y���y���x���x���x���x���x���x���w���w¾�w���w���w���w��~w�|xw���v���v�{xw��|w���w���w���w���w�½w���w���w���x���x���x¼�x���x���x��}y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z�}{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���z���z���z���z���z���y���y���y���y���x���x���x���w���w���v���v���u���u���t���t���s���s��ys���r���r���r���q���q���q���q���p���o�� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g�� g��l���p���p���q���q���q���r���r���r���s���s���t���t���u���u���v���v���v���w���w���w���w���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���w���w���w���w���w��}w���v���vü�v���v���v���v���v���v���v���v���v���v���v���w���w���wž�w���w���w���x���x���x���x���x���x���x���y���y���y���y���y���y���y���y���y�}z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z��{���{���{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}�}���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���z���z���z���z���z���y���y���y���y���x���x���x���w���w�{w���v���v���u���u���t���t���s���s���r���r���r���q���q���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g�k���o���p��q���q���q���r���r���r���s���s���t���t���uľ�u���u���v���v���v���w���w���w���w���w���x���x���x���x���x���x���x���x���x���x���x���x�}x���w���w���w���w���w�}w���v���v���v���v���v�~zv���u���u���u���u���u���u�~zv���v���v���v���v���v���v���w���w���wü�w���w���w���x���x���x���x���x���x���x��}y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���z���z���z���z���z���y���y���y���y���x���x���x���w���w��w�ûv���v���u���u���t���t���s���s���r���r���r���q���q���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���g��'o���p���q���q���q���r���r���s���s���s���t���t���u���u���u���v���v���v���v���w���w���w���w���w���w���w���w���w���w���w���w���w���w¿�w���w���w���w��~w���v���v���v���v���v���u���u���u���u���u���u���u���u���u���u���u���u���u���u�|yv���v���v���v���v���v��~w���w���w���w���w���w�}x���x���x���x���x���x���x���x���x���y���y���y���y���y���y¿�y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|{�|}���|���|���|���|���|��}���}���}���}���}���}��}���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���z���z���z���z���z���z���y���y���y���y���x���x���x���w���w���w���v���v���u���u���t���t���s���s���r���r���r���q���q���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���g���o���p���q���q���q���r���r���s���s�|t���t���t���u���u���u���u���v���v���v���v���v���w���w���w���w���w���w���w���w���w���w���w���w���v���v���v���v���v���v���u���u���u���u���u��~u���t���t���t���t���t���t���t���t�~xu���u���u���uƾ�u���u�zvv���v���v���v���v���v��|w���w���w���w���w���w���w���x���x���x���x���x�¾x���x���x���x�~{y���y���y���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z�¿z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{�~{���z���z���z���z���z���y���y���y���y���y���x���x���x���w���w���w���v���v���u���u���t���t���s���s���r���r���r���q���q���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���g���p���p���q���q�~}r���r���r���s���s���t���t���t���u���u���u���u���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v�~v���u���u���u���u���u���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���u���u���uƾ�u���u�zxv���v���v���v���v���v���v���w���w���w���w���w���w���w�}x���x���x���x���x���x�¿x���x���x���x�~|y���y���y���y���y���y���y���y���y���y�}z���z���z���z���z���z���z���z���z���z�~{���{���{���{���{���{���{���{���{���{���{���{��|���|���|���|���|���|���|���|���|���|���|�þ|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{��{���z���z���z���z���z���z���y���y���y���y���x���x���x���x���w���w��}w�Ľv���v���u���u���t���t���s���s���r���r���r���q���q���q��q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���l���p���q���q���q���r���r���r���s���s���t���t���t���t���u���u���u���u���v���v���v���v���v���v���v���v���v���v���v���v���v���v���v���u���u���u���u���u��|u���t���t���t���t���t��yt���s���s���s���s���s���s���s���t���t���t���tǼ�t���t���t���u���u���u���u���u���u���v���v���v½�v���v���v�~|w���w���w���w���w���w���w���w���w��~x���x���x���x���x���x���x���x���x���x���y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���y���y���y���y���y���x���x���x���w���w���w���v���v���v���u���u���t���t���s���s���r���r���r���q���q���q���p�p��o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���o���p���q���q���q���r���r���s���s���s���t���t���t���t���u���u���u���u���u���u���v���v���v���v���v���v���v���v���v���u���u���u���u���u���u���u���t���t���t���t���t���s���s���s���s���s���s���s���s���s���s���s���s���s��|t���t���t���t�Ǽt���t���t���u���u���u���u���u���u���v���v���v���v���v���v���v���v���w���w���w���w���w�¾w���w���w���w���x���x���x���x���x�ÿx���x���x���x���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���|���{���{���{���{���{���{���{���{���{���{���{���{���{���{���z���z���z���z���z���z���z���y���y���y���y���y���x���x���x���x���w���w���w���v���v���v���u���u���t���t���s���s���r���r���r���q���q���q���p���p�l� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���k���p���p���q���q���r���r���r���s���s���s���t���t���t���t���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���t���t���t���t���t�|t���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���t���t���t���t���t���t�||u���u���u���u���u���u���u���u���v���v���v���v���v���v���v���v���v���w���w���w���w���w���w���w���w��}x���x���x���x���x���x���x���x���y���y���y���y�ÿy���y���y���y���z���z���z���z���z���z���z���z���z��~{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��~{���z���z���z���z���z���z���z���z���y���y���y���y���y���x���x���x���x���w���w���w��~w���v���v���u���u���u���t���t���s���s���r���r���r�ۤq���q���q���p��Jp��Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l���l���p���q���q���q���r���r���r���s���s���s���t���t���t���t���t���u���u���u���u���u���u���u���u���u���u���u���u���u���u���u���t���t���t���t���t���t���s���s���s���s���s���s���s���s���r���r���r�~~s���s���s���s���s���s���s���s���s���s���t���t���t���tü�t���t���t���t���u���u���u���u�ļu���u���u���u���v���v���v���v���v���v���v���v���v�{w���w���w���w���w���w���w���w���x���x���x���x���x���x���x���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{�û{�Ǿ{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��~{���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���x���x���x���x�|x���w���w���w���v���v���v���u���u��|u���t���t���s���s���r���r���r�ۤq���q���q���p���o��k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k���g���o���p���q���q���q���r���r���r���s���s���s���t���t���t���t���t���t���u���u���u���u���u���u���u���u���u���u���u���t���t���t���t���t���t���s���s���s���s���s���s���s���r���r���r���r���r���r���r���r���r���r��s���s���s���s���s���s���s���s�xxt���t���t���t���tĽ�t���t���t���t���u���u���u���u���u���u���u���u���u���u���v���v���v���v���v¾�v���v���v���v���w���w���w���w���w���w��}x���x���x���x���x���x���x���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{���{��{���z���z���z���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���y���x���x���x���x�|x���w���w���w���v���v���v�}yv�ƾu���u���t���t���t���s���s���r���r���r�ۤq���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g�k���p���p���q���q���q���r���r���r���s���s���s���s���t���t���t���t���t���t���t���t��u��u���t���t���t���t���t���t���t���t���t���t���s���s���s���s���s���s���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���s���s���s���s���s���s���s���s���t���t���t���t���t���t���t���t���t���t���u���u���u���u���u���u���u���u���u���u���u���v���v���v���v���v���v���v�|w���w���w���w���w���w���w���x���x���x���x���x���x��~y���y���y���y���y���y���y���y���y���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���y���y���x���x���x���x���x���w���w���w���w���v���v���v���v���u���u���u���t���t��xt���s���s���r���r���r�ۤq���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���l���p���p���q���q���q���r���r���r���s���s���s���s���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���t���s���s���s���s���s���s���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r��s���s���s���s���s���s���s���s���s���t���t���t���t���t���t���t���t���t���t���t���t���u���u���u���u���u���u���u���u���u���u��}v���v���v���v�ÿv���v���v���w���w���w�ÿw���w���w���x���x���x���x���x���x���x���y���y���y���y���y���y���y���y���y��z���z���z���z���z���z���z���z���z���z�Ŷz���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���z���y���y���y���y���y���y���y���y���y���y���x���x���x���x���x���x���w���w���w���w���v���v���v���v���u���u���u���t���t���t���s���s���s���r���r���r�ۤq���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���l���p���p���q���q���q���r���r���r���s���s���s���s���s���s���t���t���t���t���t���t���t���t���t���t���t���s���s���s���s���s���s���s���r���r���r���r���r���r���r�~r���q���q���q���q���q�~r���r���r���r���r���r���r���r���r���r���r���s���s���s���s���s���s���s���s���s���t���t���t���t���t���t���t���t���t���t���t���t���t���t�~|u���u���u���u���u���u�ľu���u���u���v���v���v���v���v���v���w���w���w���w���w���w���x���x���x���x���x���x���x���x���y���y���y���y���y���y���y���y���y���y���y~�}z���z���z���z���z�zuz�{wz�}yz�~{z��}z��~z��z���z���z��z��~z�}z���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���x���x���x���x���x���x���x���w���w���w���w���w���v�Ŀv���v���v���u¼�u���u�~|u���t���t���t���s���s���s���r���r��}r�ۤq���q���q���p���o���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g���l���p���p���q���q���q���r���r���r���r���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���r���r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���r���r���r���r���s���s���s���s���s���s���s���s���s���s���s��|t���t���t���t���t���t���t���t���t���t���t���t���t���t���t��~u���u���u���u���u���u���u��}v���v���v���v���v���v��~w���w���w���w���w���w���w���x���x���x���x�ÿx���x���x���x���y���y���y���y���y���y���y�¹y�˿y���y���y���yĶ�yĸ�yĻ�yĽ�yſ�y���y�¾y�¿y�¾y���y���y���y���y���y���y���y���y���y���y���y���y���y���x���x���x���x���x���x���x���x��x���w���w���w���w���w���v���v���v���v���v���u���u���u��~u���t���t���t���s���s���s���r���r���r��~r�ۥq���q���q���p��Jp�k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k���l���p���p���q���q���q���q���r���r���r���r���r���s���s���s���s���s���s���s���s���s���s���s���s���s���s���r���r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���r���r���r���r���s���s���s���s���s���s���s���s���s���s���s���s���s���s���t���t���t���t���t���t���t���t���t���t���t���t���t���u���u���u���u���u���u�~zv���v���v���v���v���v�|w���w���w���w�¾w���w���w��~x���x���x���x���x���x���x���x���x���x�~y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��~y���x���x���x���x���x���x���x���x���x���x���x���w���w���w���w���w���w�~{w���v���v���v���v���u���u���u���u���u���t���t���t��t���s���s���s���r���r���r���r���q���q���q���p���p��Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l�k���o���p���p���q���q���q���q���r���r���r���r���r���r���r���s���s���s���s���s���r���r���r���r���r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q�~r���r���r���r���r���r���r���r���r�s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s��|t���t���t���t���t���t���t���t���t���t��|u���u���u���u���u���u��v���v���v���v���v���v��}w���w���w���w���w���w���w���w���x���x���x���x���x���x�Ǿx���x���x���x���x���xp�qy���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x�¾x���x���x���x���x���x���x��~x���w���w���w���w���w���w��w���v���v���v���v���v���u���u���u���u��~u���t���t���t���t���s���s���s���s���r���r���r���r���q���q���q��q���p���l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l���g���l���p���p���q���q���q���q���q�~~r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���q���q���q���q���q���q���q���q�q���p���p���p���p���p���p���p���p��p���p���p��q���q���q���q���q���q���q���q���q���q��~r���r���r���r���r���r���r���r���r���r���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���t���t���t���t���t���t���t���t���u���u���u���u���u���v���v���v���v���v���v��}w���w���w���w���w���w���w���w���w���x���x���x���x���x���x���x�DZx�еx�طx�Ƚx���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���x���w���w���w���w���w���w���w��w���v���v���v���v���v���u���u���u���u�~|u���t���t���t���t���s���s���s���s���s���r���r���r���r���q���q���q���q���p��o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o���k���o�p���p���q���q���q���q���q���q���q���q�~~r���r���r���r���r���q���q���q���q���q���q���q���q���q���q���q���p���p���p�{{p�o���l�k k k k k� k��Ul���l��o��{p�p���p���p���q���q���q���q���q���q���q���q���q�~~r���r���r���r���r���r���r���r���r���r���r���r���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���s���t���t���t���t���t���t���u���u���u���u���u���v���v���v�ýv���v���v��w���w���w���w���w���w���w���w���w��}x���x���x���x���x���x���x���x�Ĥx�ȼx���x���x���x���x���x���x���x���x���x���x�½x���x���x���x���x���x���x���x���x��}x���w���w���w���w���w���w���w���v���v���v���v��v���u���u���u���u���t���t���t���t���t���s���s���s���s���s���r���r���r���r���q���q���q���q���p���o�� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g� g�Ul��Ep��p���p���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���q���p���p���p���o���l��k k k k k k k k k k k k k� g�UUl���l���o���p���p���p���q���q���q���q���q���q���q���q���q���q��r���r���r���r���r���r���r���r���r���r���r���r���r�s���s���s���s���s���s���s���s���s���s���s���s���t���t���t���t���t���u���u�ļu���u��|v���v���v���v���v���v��{w���w���w���w���w�ýw���w���w���w���w���x���x���x���x���x���x���x���x�Ǧx���x���x���x���x���x���x���x���x���x���x���x���x���x���x¿�x���x���x���x���x���x���x��}x���w���w�ľw���w���w���w���v���v���v���v�~yv���u���u���u���t���t���t���t�||t���s���s���s���s��~s���r���r���r���r���q���q���q���q���p�JIp���g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g�� g��Ul���o���p���p���p���q���q���q���q���q���q���q���q���q���q���q���q�q���p���p���p���o���l�k k k k k k k k k k k k k k k k k k k k��k���l���o���p���p���p���q���q���q���q���q���q���q���q���q���q���q�~r���r���r���r���r���r���r���r���r���r���r���r���r���r���s���s���s���s���s���s���s��xt���t���t���t��|u���u���u���u��~v���v���v���v���v���v���w���w���w���w�ľw���w���w���w��}x���x���x���x���x���x���x���x�IJx�̶x�ոx�ݺx�xy��zy��|y��}y��~y��y��y��~y��}y�~{y���x���x���x���x���x���x���x���x���x���x���x���x���x���w���w���w���w���w���w���v�ûv���v���v���u���u���u���tǼ�t���t��|t���s���s���s���s�~~s���r���r���r���r���q���q���q���q���p���p�Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l��k���l���o���p�p���p���p���p���p���p���p���p���p�p���p�{{p�o���l���g g g g g g g g g g g g g g g g g g g g g g g g g g�k���l���o���p���p���p��q���q���q���q���q���q���q���q���q���q���q���q���q��r���r���r���r���r���r���r���r���r���r���r�~s���s���s���s���s��xt���t�Ļt�|tu���uȼ�u���u���v���vŽ�v���v�{vw���w���w���w���w���w���w���w��}x���x���x���x���x���x���x���x���x���x���x���x���x���xr�my���y���y���y���y���y���y���y���y���y���y���y���y���y���y��y���x���x���x���x���x���x���x���x���x���x���w���w���w���w���w���v»�v���v���u���u���u���tȼ�t���t�xxt���s���s���s�~s���r���r���r���r���q���q���q���q��q���p���l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� g�UUl���l���l���l���l���l���l���l���l�UUl� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g�k���l��o��{p�p���p���p���q���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���r���r���r���r�~s���s���s���s���t���t���t���uĸ�u���u���v���v�ʾv���v���w���w���w���w���w���w�zx���x���x���x���x���x���x���x���x���x���x���x���x��{y��}y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y�~{y���x���x���x¾�x���x���x���x�}yx���w¼�w���w��w���v���v���v���u���u��xu�ļt���t�xxt���s���s���s���r���r���r���r���q���q���q���q���q���p��o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o� g�UUl���l���o���p�p���p���p���q���q���q���q���q���q���q���q���q���q���q���q���r���r���r���r���r�wps���sȱ�s�wit���t�ȼt��{u���u���u���v���v���v�{tw���w���wü�w���w���w��}x���x���x���x���x¿�x���x���x���x���x���x��y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��}y���x���x���x���x���x���x�{x���w���w���w�~xw���v���v�|tvƺ�u���u���t���t�xxtп�s���s�~ws���r���r���r��r���q���q���q���q���p��Jp�k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k� g�UUl���l���o���p�p���p�q���q���q���q���q���q���q���q���q���q�r���r���r¾�r�pas���sй�s��wt���t���t���u�ʺu��xv���v�˾v�{sw���w���w�żw���w�}xx���x���x���x���x�ľx���x���x���x�~zy���y���y���y���y���y���y���y���y���y���y�Ưy�̰y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���x���x���x���x���x���x�}xx���w���w���w���v���v���v���u���u���t���t�xxtб�s���s���r���r���r���r���q���q���q���q���q��p��Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� g�UUl�o�{{p�p���p���q���q���q���q���q���q���q���q�r���r���r�pas���s�ϱs��|t���t��tu°�u�tjv���v;�v���v���w���w�Ƽw���w��{x���x���x���x���x���x���x���x�{y���y���y���y���y���y���y���y���y���y�Ȼy�Ͼy���y���y���y�wsz�xtz���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���x���x���x���x���x���x���w�źw���w��xw�ɻv���v���u���u�zpu���t�xtб�s���s���r���r���r���q���q���q���q���q�}q��Ep� k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k� g�UUl�JEp��p�q���q���q���q���q���q���q���q���r���r�p`s���s���s���t�Կt���u�IJu��wv���v���v��{w���wȾ�w���w�yx���x���x���x�üx���x���x���x��y���y���y���y���y���y���y���y�üy���y���y���y���y���y���y���y�}xz�}yz�~zz�~{z�~{z�~{z�~{z���y���y���y���y���y���y���y���y���y���y�¾y���y���y���y���y���y���y���x���x�üx���x���x�xx���w���w���w���v���v�zqv���u��tu���t��xtа�s��s���r���r��r���q���q���q���q���q���p�o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o�� g�o���p�}q���q���q���q���q���q�¢q��~r���r�q`s���s�sht���t�rfu���u���u���v˹�v���v���w���w���w���w���x���x���x���x���x���x���x��y���y���y���y���y���y���y¿�y���y���y���y���y���y���y���y���y���y��{z��|z��}z��~z��~z��~z��~z�}z�~{z���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y�}xy���x���x���x���x��}x���w���w���w���v���v��uvȼ�u��xu���t��xtа�s��qs���r���r���q���q���q���q���q���q���p�Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� g�+o��p��q���q���q���q���q½�q�}r���r�q`s���s�xht���t�zju���u�rfv���v�ųv�{qw���wĸ�w���w�~wx���x���x���x���x���x���x��{y���y���y���y���y���y���y���y�ſy���y���y���y���y���y���y���y���yw�oz�zz�{z��|z��}z��}z��}z��}z�|z�}{z���y���y���y���y���y���y���y���y���y¾�y���y���y���y���y���y�~yy���x���x���x���x��x���w���w���w���v���v��xv���u��xuϿ�t��ttǰ�s�xps���r���r���q���q���q���q���q��}q��Ep� k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k� k�Jp�}xq���q���q���q���q���q�}nr���r�q`sȰ�s�xhtȰ�t�|luǬ�u�viv���v�ɸv�tw���wʼ�w���w��yx���x���x���x���x���x���x��}y���y���y���y���y���y���y¾�y���y���y���y���y���y���y���y���y���yv�nz�{wz�|xz�}yz�}zz�}zz�}zz�|zz���y���y���y���y���y���y���y���y���y���y�½y���y���y���y���y���y���y���x���x���x���x���x��}x���w���w���w���v���v��uvȼ�u��tuı�t�|lt���s���r���r�~r���q���q���q���q���q���p��o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o�+ o��Jp��}q���q���q���q���q���q���r�q`s���s�xhtȰ�t�|luǬ�u�uhv���v�ȶv�~sw���wɻ�w���w��xx���x���x���x���x���x���x��{y���y���y���y���y���y���y���y�ýy���y���y���y���y���y���y���y���y���y�vrz���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��|y���x���x���x���x���x�wx���w���w���w���v���v�{nv���u�|nu���t�tht���s���r���r���q���q���q���q���q��q�p�Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� k�Ep���p���q���q���q���q�ݽq���r�ܾr���s�sct���t�vhu���u�qcv���v���v�ynw���w´�w���w�{sx���x���x���x�¹x���x���x���x��y���y���y���y���y���y���y���y�üy���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y�½y���y���y���y���y���y���y���y��|y���x���x�ȿx���x���x���x���w�ƹw���w��xw�˺v���v���u���u���t���t�s��ys���r���r�¢q���q���q���q���q���p�Ep� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g�U l�Dp�zq���q���q���qݽ�q��}r���r��xs�ѱs���t�n`u���u�Ӹu��{vʵ�v���v��w���w�ǹw���w��|x���x���x���x�Ⱦx���x���x�|wy��y���y���y���y���y���y���y���y���y�ĺy�ʾy���y���y���y���y��y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y�zy���x���x�ȿx���x���x���x�}ux���w���w���w���vŶ�v��~v�̸u���u�̷t��|tй�s�yps���r��nr���q���q���q���q�zq��Ip�Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� g� o���p��q���q���q���q�~nrΰ�r��os���s��tt�Ǩt��xu۾�u�~ov���v�ιv�sw���wĵ�w���w�xpx��x���x���x���x�ǽx���x���x���x��|y���y���y���y���y���y���y���y���y���y���y�űy�ʰy�ίy�ӭy̹�y˺�yɻ�yǻ�yŻ�yû�y���y���y���y���y���y���y���y���y���y���y���y���y���y��|y���x���x���x�úx���x���x���x�wx���wƼ�w���w��vw�̼v���v�ylv���u��puȴ�t�{kt���s���r���r�ݢq���q���q���q�zq��Ip� o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o� k�D+p���p��q���q���q�ݢq���r�oYs���s�{gtȨ�t�xfu���u���u��~vʴ�v���v��zw���wɻ�w���w�yqx��x���x���x���x���x���x���x���x�|wy��}y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��~y�}yy���x���x���x�ƽx���x���x���x���x�|tx���wǽ�w���w��{w���v���v��yv�ʶu���u�ظt���t�ɰs��qsͲ�r�~nr���q���q���q�zq��Ip� o� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g� l�I+p���p��q���qڢ�q��nrr��ps�ɢs��{t�Ȩt��vuֺ�u�xiv���vӾ�v���v��|w���wǹ�w���w���w��zx���x���x���x���x�¹x���x���x���x���x�yy��~y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y���y��}y�~zy���x���x���x���x���x���x���x���x���x���x��zx���w���w���w���w��zw���v���v���v���u���u�xju���t�xkt���s��r���r���q���q���q�zq��Ip� o� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g� l�I+p���p��q���q�ڢq��~r�iYs���s�q`t���t�p`u���u�Ūu�}mv���vԿ�v���v��yw���w���w�Ƹw���w�zrx��}x���x���x���x���xŽ�x�ȿx���x���x���x���x���x��wy��yy��yy��yy��xy��vy��ty�zty�{uy�{vy�{wy�{wy�{vy�zvy���x���x���x���x���x���x���x���x�ǿxƾ�x���x���x���x���x���x��zx���w���wɿ�w���w���w�~tw���v���v���v���u���u��puп�t��ptѿ�s��is���r�}mr���q���q���p��Ip� o� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g� l�I+p���p��q���q�}`rЮ�r�hs�s��ltа�t�wbu���u�Ȭu�}mv���v˸�v���v�}rw���w���wö�w�ʻw���w���w��zx���x���x���x���x���x»�x�Ĺx���x���x���x���x���x���x���x���xo�ay���x���x���x���x���x���x���x���x�ȿx�żx���xü�x���x���x���x���x���x���x���x��|x�zsx���w���wǼ�w���w���w��{w���v�Ŵv���v��{v���u���u��ru���t��t���s��xsҲ�r��mr���q���q���p��Ip��l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� l�I+p���p��qۤ�q��mrᰒr��is���s��ptд�t�wbu���uܾ�u�vgv��v���v�dzv���v��vw���w���w���w�õw���w���w�zsx��{x���x���x���x���x���x���x���x���x�êx�ɩx�ϧx�Ԥx�ڟxĦ�x���x���x���x���x���x���x���x���x���x���x���x���x���x���x��|x�|vx���w���w���w���w���w���w���w��yw���v�˻v���v���v�|qv�̶u���u�~pu���t���t�ɿs���s�аr��~rۤ�q���q���p��Ip��l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� l�I+p���p��qݤ�q��mr�r��is���s��ptˬ�t�p`u��|uȰ�u�ؾu��rv���v���v�ȶv���v�}sw���w���w���w���w�õw���w���w���w�|tx��zx��~x���x���x���x���x���x���x���x��~x��~x��~x��x��x��x��~x��}x��{x�yx�}wx�ztx���w���w���w���w���w���w���w���w���w���w��}w�zqw���v�Ĵv���v���v��uv���uĶ�u���u���tȴ�t��wt���s���s�Ұr���rۥ�q���q���p�JIp�Ul l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� l�I+p���p��qअq��mrr��iss�xht���t�̰t�~nu���uҾ�u���u��tv���v���vϿ�v���v���v��uw���w���w���w���w·�w�´w�ͽw���w���w���w���w���wy�ixy�gxw�exu�ax���w���w���w���w���w���w�ʿw�Ǽw�ĺw���wŻ�w���w���w���w���w���w���w��w�~ww���v���v�Ʒv���v���v���v�{rv���uȸ�u���u�~pu�̸t���t�xotп�s��xs���r��qrۥ�q���q���p�Ip�l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� l�I+p���p��qݤ�q��mrҰ�r��hs¡�s�o_t��xt̰�t�ܼt��uu���uθ�u���u�znv��}v���v���v̾�v�оv���v�yow��ww���w���w���w���w���w���w���w�¡w�ʟw�ҝw�ژw��w���w���w���w���w���w���w���w���w���w���w���w��w��yw�|tw���v���v���v�Ÿvĸ�v���v���v���v�uv���u�ƶu���u���u��pu�мt���t��xt�ؾs���s�hsΰ�r��nrۤ�q��q���p�I+p� l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� l�I+p���p��zqۢ�q�q`r�r�pXs��ss�xdt���tи�t���t��pu���u���u�ưu���u�{ov��{v���v���v���v̾�v�˺v���v���v���v�qw��tw��uw��vw��tw��rw��nw��jw�okw�okw�okw�ojw���v���v���v���v���v���v�Ⱥv�¶vƺ�v���v���v���v���v���v��wv���u���u�´u���u���u��xu�whu�ȸt���t��|t���s·�s��xs�бr���r�p`r���q��zq���p��o� k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k� l� p��Ip�xq���q�mQr��prⲓr�gs���s���s�xkt��|tİ�t�дt�xhu��xu���u���uо�u�мu���u�}pv��zv���v���v���v���v���v���v�ʨv�Ԩv��v��v���v_�KwО�vȞ�v���v���v���v���v���v���v���v���v���v��~v��yv�{sv���u���u�оu���u���u���u���u��xu�wju�иtĴ�t���t��xt���sȷ�s���s�qgsα�r��pr���q���q�zq�Ip� o� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g� g� o��p�z[q��qݥ�q�~`r���r�Ρr��gs���s���s�tdt��tt���tȴ�t�дt�rfu��pu���u���u���uȸ�u�ȴu���u���u���u�ov��rv��tv��tv��sv��qv��lv��hv�kjv�njv�nhv�ngv���u���u���u���u�̾u�ƶu�²uƸ�u���u���u���u���u��~u��tu���t���t�İt���t���t��|t�tlt�Ȱs���s���s�qgsβ�r���r�p`r���q��q���p��Dp�l� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g� g� l�I+p��p��}q���q���q��nr���r�Ρr�ygs���sȰ�s�Ȱs�tdt��tt���t���tм�t�йt���t�|pu��xu���u���u���u���u���u� u�Рu�ޞu��u���uZ�EvȐ�u���u���u���u���u���u���u���u��~u��{u��tu�|ru���t���t���t�Ĵtĵ�t���t���t���t��tt���s�Ȳs���s���s��rs���rβ�r���r�}nr���q���q��q���p�I+p� l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� l�p��Jp�zq���q���q�ݢq��nr���rݲ�r�p`s��ps���s���s�Ȱs���s�|lt��|t���t���t���t̼�t�̵t���t���t���t��hu��hu��fu��du|�`uz�Zu�``u���t���t���t���t���t���tɸ�tı�t���t���t���t���t���t���t��tt�xlt���s�ϹsȲ�s���s���s��rs���r�αr���r���r��nr�ڢq���q���q��q���p�I+p� l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� g� o��Ip�zq���q���q���q�ݢq��nr���r���r�ͱr���r��qs���s���sȱ�s�Ȱs�عs�tht�|pt��xt���t���t���t���t���t�ɋt�t��t��yt���t���t���t��|t��xt��xt��wt�ypt�xpt�wht���s���s�ѹs�ǰsȱ�s���s���s���s��ys�yqs���r�ξr���r���r���r��|r���q���q���q���q��q���p�I+p� k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k k� g� o��Ip�zq���q���q���q���q�ݢq�~nr���r���r���r���r���r�qos��qs��ys���s���s���sй�s�аs�ذs��s���sp�Xtp�Xtl�Xth�Xt�sᰰsذ�sѰ�sа�sȰ�s���s���s���s���s���s���s���s��xs�qs�qps���r���r���r���r���r���r���r�~|r���q���q���q���q���q���q�xq��p� l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� g� o��Ip�zq���q���q���q���q���q�¢q���q��|r���r���r���r���r���r���r���r�qos��qs��qs��xs���s���s���s��xs��qs��qs��xs��qs��qs��qs��qs�xqs�qqs�qps���r���r���r���r���r���r���r���r���r���r���r���r��r���q���q���q���q���q���q���q���q��q���p� o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o� g� p���p��q���q���q���q���q���q���qݽ�q���q���q��~r���r���r���r���r���r���r���r�ѽr���r���rp�`sp�_sp�Wsh�Ps���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r�~r���q�ݽq���q���q���q���q���q���q���q���q���p�D+p� g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g� l�I+p���p��q���q���q���q���q���q���q���q���q�¢q���q�~|r��~r���r���r���r���r���r���r���r���r���r�сr��r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r��~r�parརq���q���q���q���q���q���q���q���q���q��}q��Ep� l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l� l��+p��]q���q���q���q���q���q���q���q���q���q���q¢�q�¢q�~ar��~r���r���r���r���r���r���r���r���r���r\ No newline at end of filediff --git a/vendor/three-ws-fork/viewer/test/functional/cypress/support/commands.ts b/vendor/three-ws-fork/viewer/test/functional/cypress/support/commands.tsnew file mode 100644index 000000000..39e507442--- /dev/null+++ b/vendor/three-ws-fork/viewer/test/functional/cypress/support/commands.ts@@ -0,0 +1,4 @@+// @ts-ignore+import compareSnapshotCommand from 'cypress-image-diff-js/command';++compareSnapshotCommand();diff --git a/vendor/three-ws-fork/viewer/test/functional/cypress/support/e2e.ts b/vendor/three-ws-fork/viewer/test/functional/cypress/support/e2e.tsnew file mode 100644index 000000000..598ab5f0d--- /dev/null+++ b/vendor/three-ws-fork/viewer/test/functional/cypress/support/e2e.ts@@ -0,0 +1,20 @@+// ***********************************************************+// This example support/e2e.ts is processed and+// loaded automatically before your test files.+//+// This is a great place to put global configuration and+// behavior that modifies Cypress.+//+// You can change the location of this file or turn off+// automatically serving support files with the+// 'supportFile' configuration option.+//+// You can read more here:+// https://on.cypress.io/configuration+// ***********************************************************++// Import commands.js using ES2015 syntax:+import './commands';++// Alternatively you can use CommonJS syntax:+// require('./commands')diff --git a/vendor/three-ws-fork/viewer/tsconfig.json b/vendor/three-ws-fork/viewer/tsconfig.jsonnew file mode 100644index 000000000..c2326a92a--- /dev/null+++ b/vendor/three-ws-fork/viewer/tsconfig.json@@ -0,0 +1,36 @@+{+ "compilerOptions": {+ "target": "es6",+ "lib": ["es2019", "dom", "esnext"],+ "allowJs": true,+ "skipLibCheck": true,+ "esModuleInterop": true,+ "allowSyntheticDefaultImports": true,+ "strict": true,+ "forceConsistentCasingInFileNames": true,+ "noFallthroughCasesInSwitch": true,+ "module": "esnext",+ "moduleResolution": "node",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "jsx": "react",+ "declaration": true,+ "declarationDir": "src",+ "sourceMap": false,+ "outDir": "dist",+ "emitDeclarationOnly": true,+ "plugins": [{ "name": "typescript-plugin-css-modules", "options": { "customMatcher": "\\.(c|sc)ss$" } }],+ "baseUrl": "."+ },+ "exclude": ["node_modules", "dist", "docs"],+ "include": [+ "src",+ "src/**/*.ts",+ "src/**/*.tsx",+ "css-modules.d.ts",+ "react-app-env.d.ts",+ "rollup.config.js",+ ".eslintrc.js",+ "commitlint.config.js"+ ]+}