polyrouter 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +15 -14
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/routes-manifest.json +6 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/realtime/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/realtime/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/realtime/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +18 -17
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +18 -17
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/setup-password/route.js +1 -0
- package/app/.next-cli-build/server/app/api/auth/setup-password/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/auth/setup-password/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/realtime/authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/realtime/authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +2 -2
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +22 -21
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +22 -21
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/realtime.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/realtime.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/!KGRhc2hib2FyZCk/dashboard/realtime/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/!KGRhc2hib2FyZCk/dashboard/realtime.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/_full.segment.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/realtime.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +22 -21
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +22 -21
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +23 -22
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +21 -20
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +17 -16
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +17 -16
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page.js +2 -2
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +22 -21
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +22 -21
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +22 -21
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +22 -21
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +7 -6
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +2 -2
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +15 -14
- package/app/.next-cli-build/server/chunks/1220.js +1 -1
- package/app/.next-cli-build/server/chunks/1829.js +1 -1
- package/app/.next-cli-build/server/chunks/2065.js +1 -0
- package/app/.next-cli-build/server/chunks/2194.js +1 -1
- package/app/.next-cli-build/server/chunks/2620.js +1 -1
- package/app/.next-cli-build/server/chunks/3239.js +9 -0
- package/app/.next-cli-build/server/chunks/3593.js +2 -2
- package/app/.next-cli-build/server/chunks/412.js +2 -2
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/{4884.js → 4491.js} +8 -3
- package/app/.next-cli-build/server/chunks/4739.js +2 -2
- package/app/.next-cli-build/server/chunks/4780.js +2 -2
- package/app/.next-cli-build/server/chunks/4946.js +9 -0
- package/app/.next-cli-build/server/chunks/5033.js +1 -0
- package/app/.next-cli-build/server/chunks/507.js +2 -2
- package/app/.next-cli-build/server/chunks/5258.js +2 -2
- package/app/.next-cli-build/server/chunks/5612.js +1 -1
- package/app/.next-cli-build/server/chunks/6877.js +1 -1
- package/app/.next-cli-build/server/chunks/698.js +2 -2
- package/app/.next-cli-build/server/chunks/7965.js +2 -2
- package/app/.next-cli-build/server/chunks/8145.js +1 -1
- package/app/.next-cli-build/server/chunks/8185.js +1 -1
- package/app/.next-cli-build/server/chunks/827.js +1 -1
- package/app/.next-cli-build/server/chunks/8363.js +1 -1
- package/app/.next-cli-build/server/chunks/8520.js +2 -2
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +1 -1
- package/app/.next-cli-build/server/chunks/915.js +1 -1
- package/app/.next-cli-build/server/chunks/{8008.js → 9336.js} +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +6 -6
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/{1321-e91fcc77031966c2.js → 1321-ee3f98a273573f07.js} +1 -1
- package/app/.next-cli-build/static/chunks/4024-823f5cdd3f7f04cc.js +1 -0
- package/app/.next-cli-build/static/chunks/9da6db1e-abf82355a5ee5150.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-52f8e9cf6aa8554b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/setup-password/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/realtime/authorize/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/layout-c029c07aec92583d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/login/page-61bdc6ffbffa18d7.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-a1ad2a6494b449e0.js +1 -0
- package/app/.next-cli-build/static/j9NY-4IuO21Wl7djjsl7y/_buildManifest.js +1 -0
- package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
- package/app/node_modules/baseline-browser-mapping/package.json +1 -1
- package/app/package.json +1 -1
- package/app/src/shared/services/installationTelemetry.js +156 -0
- package/package.json +1 -1
- package/src/cli/api/client.js +4 -1
- package/app/.next-cli-build/server/chunks/4055.js +0 -9
- package/app/.next-cli-build/server/chunks/4930.js +0 -1
- package/app/.next-cli-build/server/chunks/5217.js +0 -9
- package/app/.next-cli-build/static/Fq1kR9_FoWmz8b123uFBu/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/9da6db1e-d4cbd87a5f1d0209.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-26f454785dc626b1.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/realtime/authorize/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/layout-2654a5701747e5bc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/login/page-e0dc71d92b91cd3f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-421648f433e539cc.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-421648f433e539cc.js +0 -1
- /package/app/.next-cli-build/static/{Fq1kR9_FoWmz8b123uFBu → j9NY-4IuO21Wl7djjsl7y}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8229],{32535:(e,t,i)=>{i.d(t,{Ay:()=>os});var s,r,n,a="u">typeof window?window:void 0,o="u">typeof globalThis?globalThis:a,l=null==o?void 0:o.navigator,u=null==o?void 0:o.document,h=null==o?void 0:o.location,c=null==o?void 0:o.fetch,d=null!=o&&o.XMLHttpRequest&&"withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:void 0,p=null==o?void 0:o.AbortController,v=null==o?void 0:o.CompressionStream,g=null==l?void 0:l.userAgent;function f(){return!(!a||!1===a.navigator.onLine)}var _="u">typeof globalThis?globalThis:a;_&&"u"<typeof self&&(_.self=_),_&&"u"<typeof File&&(_.File=function(){});var m=null!=a?a:{},y={DEBUG:!1,LIB_VERSION:"0.3.1",LIB_NAME:"browser-common"};function b(e,t,i,s,r,n,a){try{var o=e[n](a),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(s,r)}function w(e){return function(){var t=this,i=arguments;return new Promise(function(s,r){var n=e.apply(t,i);function a(e){b(n,s,r,a,o,"next",e)}function o(e){b(n,s,r,a,o,"throw",e)}a(void 0)})}}function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(null,arguments)}function k(e,t){if(null==e)return{};var i={};for(var s in e)if(({}).hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;i[s]=e[s]}return i}var E=e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}};function S(e){return"string"==typeof e||e}function P(e){return"string"==typeof e?e:void 0}var T,F,$,I,C=["$feature_flag","$feature_flag_response","$feature_flag_has_experiment","$feature_flag_id","$feature_flag_version","$feature_flag_reason","$feature_flag_request_id","$feature_flag_evaluated_at","$feature_flag_error","locally_evaluated","$groups","$process_person_profile","$geoip_disable","$current_url","$pathname","$session_id","$window_id","$lib","$lib_version","$device_id","$is_server"],M=((T={}).AnonymousId="anonymous_id",T.DistinctId="distinct_id",T.Props="props",T.EnablePersonProcessing="enable_person_processing",T.PersonMode="person_mode",T.FeatureFlagDetails="feature_flag_details",T.FeatureFlags="feature_flags",T.FeatureFlagPayloads="feature_flag_payloads",T.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",T.BootstrapFeatureFlags="bootstrap_feature_flags",T.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",T.OverrideFeatureFlags="override_feature_flags",T.Queue="queue",T.AiQueue="ai_queue",T.LogsQueue="logs_queue",T.OptedOut="opted_out",T.SessionId="session_id",T.SessionStartTimestamp="session_start_timestamp",T.SessionLastTimestamp="session_timestamp",T.PersonProperties="person_properties",T.GroupProperties="group_properties",T.InstalledAppBuild="installed_app_build",T.InstalledAppVersion="installed_app_version",T.SessionReplay="session_replay",T.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",T.SurveyLastSeenDate="survey_last_seen_date",T.SurveysSeen="surveys_seen",T.Surveys="surveys",T.RemoteConfig="remote_config",T.FlagsEndpointWasHit="flags_endpoint_was_hit",T.DeviceId="device_id",T),R=((F={}).GZipJS="gzip-js",F.Base64="base64",F),O=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],A=["token"],L="NativeGzipValidationError",D=e=>e.length>=2&&31===e[0]&&139===e[1],N=(e,t)=>e===R.GZipJS||t===R.GZipJS||"gzip"===t,q=e=>!(!e||"object"!=typeof e)&&"NotReadableError"===("name"in e?String(e.name):""),j=e=>{var t=Error("Native gzip produced invalid output: "+e);throw t.name=L,t},B=($=w(function*(e,t){18>e.size&&j("too-short");var i=new Uint8Array((yield e.slice(0,10).arrayBuffer()));D(i)&&8===i[2]||j("invalid-header");var s=new DataView((yield e.slice(e.size-8).arrayBuffer()));s.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(I)return I;I=[];for(var e=0;256>e;e++){for(var t=e,i=0;8>i;i++)t=1&t?0xedb88320^t>>>1:t>>>1;I[e]=t>>>0}return I})(),i=0xffffffff,s=0;e.length>s;s++)i=t[255&(i^e[s])]^i>>>8;return(0xffffffff^i)>>>0})(t)&&j("invalid-crc");var r=t.length>>>0;s.getUint32(4,!0)!==r&&j("invalid-size")}),function(e,t){return $.apply(this,arguments)});function z(){return(z=w(function*(e,t,i){void 0===t&&(t=!0);try{var s,r=(new TextEncoder).encode(e),n=new globalThis.CompressionStream("gzip"),a=n.writable.getWriter(),o=a.write(r).then(()=>a.close()).catch((s=w(function*(e){try{yield a.abort(e)}catch(e){}throw e}),function(e){return s.apply(this,arguments)})),l=new Response(n.readable).blob(),u=(yield Promise.all([l,o]))[0];return yield B(u,r),u}catch(e){if(null!=i&&i.rethrow)throw e;return t&&console.error("Failed to gzip compress data",e),null}})).apply(this,arguments)}var H=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],U=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var i=e.toLowerCase();return H.concat(t).some(e=>{var t=e.toLowerCase();return -1!==i.indexOf(t)})};function G(e,t){return -1!==e.indexOf(t)}var V=function(e){return e.trim()},W=function(e){return e.replace(/^\$/,"")};function J(e){var t,i=[];return null!=(t=JSON.stringify(e,function(e,t){if("bigint"==typeof t)return t.toString();if("function"!=typeof t&&"symbol"!=typeof t){if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t&&"object"==typeof t){for(;i.length>0&&i[i.length-1]!==this;)i.pop();if(i.includes(t))return"[Circular]";i.push(t)}return t}}))?t:"null"}var X=Object.prototype,K=X.hasOwnProperty,Y=X.toString,Q=Array.isArray||function(e){return"[object Array]"===Y.call(e)},Z=e=>"function"==typeof e,ee=e=>e===Object(e)&&!Q(e),et=e=>{if(ee(e)){for(var t in e)if(K.call(e,t))return!1;return!0}return!1},ei=e=>void 0===e,es=e=>"[object String]"==Y.call(e),er=e=>es(e)&&0===e.trim().length,en=e=>null===e,ea=e=>ei(e)||en(e),eo=e=>"[object Number]"==Y.call(e)&&e==e,el=e=>eo(e)&&e>0,eu=e=>"[object Boolean]"===Y.call(e),eh=e=>G(O,e),ec=e=>G(A,e);function ed(e){return null===e||"object"!=typeof e}function ep(e,t){return({}).toString.call(e)==="[object "+t+"]"}function ev(e){return"u">typeof Event&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var eg=[!0,"true",1,"1","yes"],ef=[!1,"false",0,"0","no"];function e_(e,t,i,s,r){return t>i&&(s.warn("min cannot be greater than max."),t=i),eo(e)?e>i?(s.warn(" cannot be greater than max: "+i+". Using max value instead."),i):t>e?(s.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(s.warn(" must be a number. using max or fallback. max: "+i+", fallback: "+r),e_(r||i,t,i,s))}class em{constructor(e){this.tt={},this.et=e.et,this.rt=e_(e.bucketSize,0,100,e.it),this.nt=e_(e.refillRate,0,this.rt,e.it),this.st=e_(e.refillInterval,0,864e5,e.it)}ot(e,t){var i=Math.floor((t-e.lastAccess)/this.st);i>0&&(e.tokens=Math.min(e.tokens+i*this.nt,this.rt),e.lastAccess=e.lastAccess+i*this.st)}consumeRateLimit(e){var t,i=Date.now(),s=String(e),r=this.tt[s];return r?this.ot(r,i):this.tt[s]=r={tokens:this.rt,lastAccess:i},0===r.tokens||(r.tokens--,0===r.tokens&&(null==(t=this.et)||t.call(this,e)),0===r.tokens)}stop(){this.tt={}}}var ey="Mobile",eb="Android",ew="Tablet",ex=eb+" "+ew,ek="iPad",eE="Apple",eS=eE+" Watch",eP="Safari",eT="BlackBerry",eF="Samsung",e$=eF+"Browser",eI=eF+" Internet",eC="Chrome",eM=eC+" OS",eR=eC+" iOS",eO="Internet Explorer",eA=eO+" "+ey,eL="Opera",eD=eL+" Mini",eN="Edge",eq="Microsoft "+eN,ej="Firefox",eB=ej+" iOS",ez="Nintendo",eH="PlayStation",eU="Xbox",eG=eb+" "+ey,eV=ey+" "+eP,eW="Windows",eJ=eW+" Phone",eX="Nokia",eK="Ouya",eY="Generic",eQ=eY+" "+ey.toLowerCase(),eZ=eY+" "+ew.toLowerCase(),e0="Konqueror",e1="Oculus Browser",e2="Vivaldi",e3="Yandex",e5="Whale",e8="DuckDuckGo",e6="Pale Moon",e4="Waterfox",e9="Brave",e7="Google Search App",te="(\\d+(\\.\\d+)?)",tt=RegExp("Version/"+te),ti=RegExp(eU,"i"),ts=RegExp(eH+" \\w+","i"),tr=RegExp(ez+" \\w+","i"),tn=RegExp(eT+"|PlayBook|BB10","i"),ta={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},to=function(e,t,i,s){var r;return t=t||"",(null!=i&&i.brave?e9:null)||(null!=s&&s.detectGoogleSearchApp&&G(e,"GSA/")?e7:G(e," OPR/")&&G(e,"Mini")?eD:G(e," OPR/")?eL:tn.test(e)?eT:G(e,"IE"+ey)||G(e,"WPDesktop")?eA:G(e,"OculusBrowser")?e1:G(e,e$)?eI:G(e,eN)||G(e,"Edg/")?eq:G(e,e2+"/")?e2:G(e,"YaBrowser/")?e3:G(e,e5+"/")?e5:G(e,e8+"/")||G(e,"Ddg/")?e8:G(e,"FBIOS")?"Facebook "+ey:G(e,"UCWEB")||G(e,"UCBrowser")?"UC Browser":G(e,"CriOS")?eR:G(e,"CrMo")||G(e,eC)?eC:G(e,eb)&&G(e,eP)?eG:G(e,"FxiOS")?eB:G(e.toLowerCase(),e0.toLowerCase())?e0:G(e,e9+"/")?e9:(r=t)&&G(r,eE)||G(e,eP)&&!G(e,eC)&&!G(e,eb)?G(e,ey)?eV:eP:G(e,"PaleMoon/")?e6:G(e,e4+"/")?e4:G(e,ej)?ej:G(e,"MSIE")||G(e,"Trident/")?eO:G(e,"Gecko")?ej:"")},tl={[eA]:[RegExp("rv:"+te)],[eq]:[RegExp(eN+"?\\/"+te)],[eC]:[RegExp("("+eC+"|CrMo)\\/"+te)],[eR]:[RegExp("CriOS\\/"+te)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+te)],[eP]:[tt],[eV]:[tt],[eL]:[RegExp("(Opera|OPR)\\/"+te)],[ej]:[RegExp(ej+"\\/"+te)],[eB]:[RegExp("FxiOS\\/"+te)],[e0]:[RegExp("Konqueror[:/]?"+te,"i")],[eT]:[RegExp(eT+" "+te),tt],[eG]:[RegExp("android\\s"+te,"i")],[eI]:[RegExp(e$+"\\/"+te)],[e1]:[RegExp("OculusBrowser\\/"+te)],[e2]:[RegExp(e2+"\\/"+te)],[e3]:[RegExp("YaBrowser\\/"+te)],[e5]:[RegExp(e5+"\\/"+te)],[e9]:[RegExp(e9+"\\/"+te)],[e8]:[RegExp("(DuckDuckGo|Ddg)\\/"+te)],[e6]:[RegExp("PaleMoon\\/"+te)],[e4]:[RegExp(e4+"\\/"+te)],[e7]:[RegExp("GSA\\/"+te)],[eO]:[RegExp("(rv:|MSIE )"+te)],Mozilla:[RegExp("rv:"+te)]},tu=function(e,t,i,s){var r=tl[to(e,t,i,s)];if(ei(r))return null;for(var n=0;r.length>n;n++){var a=e.match(r[n]);if(a)return parseFloat(a[a.length-2])}return null},th=[[RegExp(eU+"; "+eU+" (.*?)[);]","i"),e=>[eU,e&&e[1]||""]],[RegExp(ez,"i"),[ez,""]],[RegExp(eH,"i"),[eH,""]],[tn,[eT,""]],[RegExp(eW,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[eJ,""];if(new RegExp(ey).test(t)&&!/IEMobile\b/.test(t))return[eW+" "+ey,""];var i=/Windows NT ([0-9.]+)/i.exec(t);if(i&&i[1]){var s=ta[i[1]]||"";return/arm/i.test(t)&&(s="RT"),[eW,s]}return[eW,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ei(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+eb+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+eb+")","i"),e=>e&&e[2]?[eb,[e[2],e[3],e[4]||"0"].join(".")]:[eb,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[eM,""]],[/Linux|debian/i,["Linux",""]]],tc=function(e){return tr.test(e)?ez:ts.test(e)?eH:ti.test(e)?eU:RegExp(eK,"i").test(e)?eK:RegExp("("+eJ+"|WPDesktop)","i").test(e)?eJ:/iPad/.test(e)?ek:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?eS:tn.test(e)?eT:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(eX,"i").test(e)?eX:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(ey).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?eb:ex:RegExp("(pda|"+ey+")","i").test(e)?eQ:RegExp(ew,"i").test(e)&&!RegExp(ew+" pc","i").test(e)?eZ:""},td=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function tp(e,t){return"string"==typeof e&&td.test(e)?e:t()}function tv(e){return e?e.split("#")[0]:e}function tg(e,t){var i=setTimeout(e,t);return(null==i?void 0:i.unref)&&(null==i||i.unref()),i}var tf=e=>e instanceof Error,t_={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},tm=t_.info;function ty(e){var t=[];for(var i in e){var s=e[i];en(s)||ei(s)||t.push({key:i,value:function e(t){if(eu(t))return{boolValue:t};if("number"==typeof t)return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if("string"==typeof t)return{stringValue:t};if(Q(t))return{arrayValue:{values:t.map(t=>e(t))}};try{return{stringValue:JSON.stringify(t)}}catch(e){return{stringValue:String(t)}}}(s)})}return t}function tb(e,t,i){return x({},e.resourceAttributes,{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment},e.serviceVersion&&{"service.version":e.serviceVersion},{"telemetry.sdk.name":t,"telemetry.sdk.version":i})}function tw(e,t,i,s){return{resourceLogs:[{resource:{attributes:ty(t)},scopeLogs:[{scope:{name:i,version:s},logRecords:e}]}]}}let tx=class{constructor(e,t,i,s,r,n,a){var o;void 0===n&&(n=()=>Promise.resolve()),this._instance=e,this.Te=t,this.it=i,this.ut=s,this.ht=r,this.dt=n,this.ct=a,this.vt=null,this.ft=0,this.yt=0,this.bt=0,this._t=0,this.wt=!1,this.xt=t.maxBufferSize,this.kt=Math.max(null!=(o=t.maxQueueSize)?o:t.maxBufferSize,t.maxBufferSize),this.St=t.flushIntervalMs,this.Ct=t.maxBatchRecordsPerPost,this.Mt=t.rateCapWindowMs,this.It=t.maxLogsPerInterval}reset(){this.Tt(),this.vt=null,this.bt=0,this._t=0,this.wt=!1,this.ft=0,this.yt=0,this.Ct=this.Te.maxBatchRecordsPerPost}onReconnect(){this.yt=0,this.Et()}captureLog(e){if(!this._instance.isDisabled&&!this._instance.optedOut&&null!=e&&e.body){var t=this.Rt(e);if(null!==t)if(t.body){if(this.Pt()){var i,s,r,n,a,o,l,u,h={record:(i=this.ut(),r=(s=t_[t.level||"info"]||tm).text,n=s.number,a=String(Date.now())+"000000",o={},i.distinctId&&(o.posthogDistinctId=i.distinctId),i.sessionId&&(o.sessionId=i.sessionId),i.windowId&&(o["window.id"]=i.windowId),ea(i.sessionStartTimestamp)||(o.sessionStartTimestamp=String(i.sessionStartTimestamp)),ea(i.lastActivityTimestamp)||(o.lastActivityTimestamp=String(i.lastActivityTimestamp)),i.currentUrl&&(o["url.full"]=i.currentUrl),i.screenName&&(o["screen.name"]=i.screenName),i.appState&&(o["app.state"]=i.appState),i.activeFeatureFlags&&i.activeFeatureFlags.length>0&&(o.feature_flags=i.activeFeatureFlags),l=x({},o,t.attributes||{}),u={timeUnixNano:a,observedTimeUnixNano:a,severityNumber:n,severityText:r,body:{stringValue:t.body},attributes:ty(l)},t.trace_id&&(u.traceId=t.trace_id),t.span_id&&(u.spanId=t.span_id),ei(t.trace_flags)||(u.flags=t.trace_flags),u)};this.ht(()=>this.Ot(h))}}else this.it.info("Log was rejected in beforeSend function")}}Rt(e){var t=this.Te.beforeSend;if(!t)return e;var i=Q(t)?t:[t],s=e;for(var r of i)try{var n=r(s);if(!n)return this.it.info("Log was rejected in beforeSend function"),null;s=n}catch(e){return this.it.error("Error in beforeSend function for log:",e),null}return s}Pt(){if(void 0===this.It)return!0;var e=Date.now(),t=e-this.bt;return this.Mt>t&&t>=0||(this.bt=e,this._t=0,this.wt=!1),this.It>this._t?(this._t++,!0):(this.wt||(this.it.warn("captureLog dropping logs: exceeded "+this.It+" logs per "+this.Mt+"ms"),this.wt=!0),!1)}flush(){var e=this;return w(function*(){if(!e._instance.isDisabled)return e.vt||(e.vt=e.Ft().finally(()=>{e.vt=null})),e.vt})()}Ft(){var e=this;return w(function*(){e.Tt();var t=null!=(r=e._instance.getPersistedProperty(M.LogsQueue))?r:[];if(0!==t.length)for(var i=t.length,s=0;t.length>0&&i>s;){e.ft=0;var r,n,a,o=Math.min(t.length,e.Ct),l=t.slice(0,o),u=tw(l.map(e=>e.record),e.At(),null!=(n=e.ct)?n:e._instance.getLibraryId(),e._instance.getLibraryVersion()),h=yield e._instance.$t(u);if("too-large"===h.kind&&l.length>1)e.Ct=Math.max(1,Math.floor(l.length/2)),e.it.warn("Received 413 when sending logs batch of size "+l.length+", reducing batch size to "+e.Ct);else if("retry-later"===h.kind||("too-large"===h.kind?e.it.warn("Dropping a single log record after 413 with batch size 1 — the record is larger than the server cap and cannot be split further."):"ok"===h.kind&&e.Te.maxBatchRecordsPerPost>e.Ct&&(e.Ct=Math.min(e.Te.maxBatchRecordsPerPost,e.Ct+1)),yield e.Lt(l.length),t=null!=(a=e._instance.getPersistedProperty(M.LogsQueue))?a:[],s+=l.length,"fatal"===h.kind))throw h.error}})()}Lt(e){var t=this;return w(function*(){var i,s=Math.max(0,e-t.ft),r=null!=(i=t._instance.getPersistedProperty(M.LogsQueue))?i:[];t._instance.setPersistedProperty(M.LogsQueue,r.slice(s)),yield t.dt()})()}At(){return tb(this.Te,this._instance.getLibraryId(),this._instance.getLibraryVersion())}Ot(e){var t;if(!this._instance.optedOut){var i=null!=(t=this._instance.getPersistedProperty(M.LogsQueue))?t:[];this.kt>i.length||(i.shift(),this.ft++,this.it.info("Logs queue is full, dropping oldest record.")),i.push(e),this._instance.setPersistedProperty(M.LogsQueue,i),this.xt>i.length?this.Dt():this.Et()}}Dt(e){void 0===e&&(e=this.St),this.Nt||(this.Nt=tg(()=>{this.Nt=void 0,this.Et()},e))}qt(){var e=Math.min(Math.max(0,this.yt-1),6);return this.St*Math.pow(2,e)}jt(){var e=this._instance.getPersistedProperty(M.LogsQueue);return!!e&&e.length>0}shutdown(e){var t=this;return w(function*(){t.Tt();var i=t.flush().catch(()=>{});void 0!==e?yield Promise.race([i,new Promise(t=>tg(t,e))]):yield i})()}flushWithTimeout(e){var t=this;return w(function*(){var i=!1,s=t.flush(),r=new Promise(t=>tg(()=>{i=!0,t()},e));try{yield Promise.race([s,r])}finally{i&&s.catch(()=>{})}})()}Et(){this.flush().then(()=>{this.yt=0},e=>{this.yt++,this.it.error("PostHog logs flush failed:",e)}).finally(()=>{!this._instance.isDisabled&&this.jt()&&this.Dt(this.qt())})}Tt(){this.Nt&&(clearTimeout(this.Nt),this.Nt=void 0)}};var tk=[0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4];function tE(e){return String(e)+"000000"}function tS(e,t,i,s){var r="";return s&&(r=Object.keys(s).sort().map(e=>JSON.stringify(e)+":"+JSON.stringify(s[e])).join(",")),e+"\0"+t+"\0"+(null!=i?i:"")+"\0"+r}let tP=class{constructor(e,t,i){this._instance=e,this.Te=t,this.it=i,this.Bt=new Map,this.vt=null,this.Ht=!1,this.Ut=new Map,this.zt=new Set,this.Vt=0}count(e,t,i){void 0===t&&(t=1),this.Wt({name:e,type:"count",value:t,unit:null==i?void 0:i.unit,attributes:null==i?void 0:i.attributes})}gauge(e,t,i){this.Wt({name:e,type:"gauge",value:t,unit:null==i?void 0:i.unit,attributes:null==i?void 0:i.attributes})}histogram(e,t,i){this.Wt({name:e,type:"histogram",value:t,unit:null==i?void 0:i.unit,attributes:null==i?void 0:i.attributes})}flush(){var e,t=this,i=this.vt,s=(e=w(function*(){i&&(yield i.catch(()=>{})),yield t.Zt()}),function(){return e.apply(this,arguments)})().finally(()=>{this.vt===s&&(this.vt=null)});return this.vt=s,s}drainWindow(){if(0===this.Bt.size)return null;var e=this.Bt;return this.Bt=new Map,this.Ht=!1,this.Ut=new Map,this.zt=new Set,this.Gt(e)}reset(){this.Vt++,this.Tt(),this.Bt=new Map,this.vt=null,this.Ht=!1,this.Ut=new Map,this.zt=new Set}Wt(e){if(!this._instance.isDisabled&&!this._instance.optedOut){var t=this.Rt(e);if(null!==t)if(t.name&&"string"==typeof t.name)if("number"==typeof t.value&&Number.isFinite(t.value))if("count"===t.type&&0>t.value)this.it.warn("Dropping count '"+t.name+"': counters are monotonic, value must be >= 0");else{try{i=t.attributes?x({},t.attributes):void 0,s=tS(t.type,t.name,t.unit,i)}catch(e){return void this.it.warn("Dropping metric '"+t.name+"': attributes could not be serialized",e)}var i,s,r=this.Bt.get(s);if(!r){if(!this.Qt())return;r={name:t.name,type:t.type,unit:t.unit,attributes:i,windowStartMs:Date.now()},this.Bt.set(s,r)}var n=this.Ut.get(t.name);void 0===n?this.Ut.set(t.name,t.type):n===t.type||this.zt.has(t.name)||(this.zt.add(t.name),this.it.warn("Metric name '"+t.name+"' is already used as a "+n+"; recording it as a "+t.type+" too will blend both series in charts. Use a distinct name.")),this.Jt(r,t.value),this.Dt()}else this.it.warn("Dropping metric '"+t.name+"': value must be a finite number");else this.it.warn("Dropping metric with empty name")}}Qt(){return this.Te.maxSeriesPerFlush>this.Bt.size||(this.Ht||(this.Ht=!0,this.it.warn("Metric series cap reached ("+this.Te.maxSeriesPerFlush+" per flush window); dropping new series until the next flush. Reduce attribute cardinality.")),!1)}Jt(e,t){var i;switch(e.type){case"count":e.total=(null!=(i=e.total)?i:0)+t;break;case"gauge":e.last=t;break;case"histogram":e.hist||(e.hist={count:0,sum:0,min:t,max:t,bucketCounts:Array(tk.length+1).fill(0)});var s=e.hist;s.count+=1,s.sum+=t,s.min=Math.min(s.min,t),s.max=Math.max(s.max,t),s.bucketCounts[function(e,t){for(var i=0;t.length>i;i++)if(t[i]>=e)return i;return t.length}(t,tk)]+=1}}Rt(e){var t=this.Te.beforeSend;if(!t)return e;var i=Q(t)?t:[t],s=e;for(var r of i)try{var n=r(s);if(!n)return this.it.info("Metric was rejected in beforeSend function"),null;s=n}catch(e){return this.it.error("Error in beforeSend function for metric:",e),null}return s}Dt(){this.Nt||(this.Nt=tg(()=>{this.Nt=void 0,this.flush().catch(e=>{this.it.error("Metrics flush failed:",e)})},this.Te.flushIntervalMs))}Tt(){this.Nt&&(clearTimeout(this.Nt),this.Nt=void 0)}Zt(){var e=this;return w(function*(){if(0!==e.Bt.size){var t=e.Bt;e.Bt=new Map,e.Ht=!1,e.Ut=new Map,e.zt=new Set;var i=e.Vt,s=yield e._instance.Kt(e.Gt(t));if(i===e.Vt)switch(s.kind){case"ok":return;case"retry-later":return e.Yt(t),void e.Dt();case"too-large":return void e.it.warn("Metrics batch exceeded the server size limit and was dropped");case"fatal":return void e.it.error("Failed to send metrics batch:",s.error)}}})()}Gt(e){var t,i,s,r,n,a,o;return t=this.Xt(e),n=this.Te,a=this._instance.getLibraryId(),o=this._instance.getLibraryVersion(),i=x({},n.resourceAttributes,{"service.name":n.serviceName||"unknown_service"},n.environment&&{"deployment.environment":n.environment},n.serviceVersion&&{"service.version":n.serviceVersion},{"telemetry.sdk.name":a,"telemetry.sdk.version":o}),s=this._instance.getLibraryId(),r=this._instance.getLibraryVersion(),{resourceMetrics:[{resource:{attributes:ty(i)},scopeMetrics:[{scope:{name:s,version:r},metrics:t}]}]}}Xt(e){var t=tE(Date.now()),i=new Map;for(var s of e.values()){var r,n=tS(s.type,s.name,s.unit,void 0),a=i.get(n);a||(a=x({name:s.name},s.unit&&{unit:s.unit}),"count"===s.type?a.sum={aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}:"gauge"===s.type?a.gauge={dataPoints:[]}:a.histogram={aggregationTemporality:1,dataPoints:[]},i.set(n,a));var o=ty(null!=(r=s.attributes)?r:{}),l=tE(s.windowStartMs);if("count"===s.type){var u,h={attributes:o,startTimeUnixNano:l,timeUnixNano:t,asDouble:null!=(u=s.total)?u:0};a.sum.dataPoints.push(h)}else if("gauge"===s.type){var c,d={attributes:o,timeUnixNano:t,asDouble:null!=(c=s.last)?c:0};a.gauge.dataPoints.push(d)}else s.hist&&a.histogram.dataPoints.push({attributes:o,startTimeUnixNano:l,timeUnixNano:t,count:s.hist.count,sum:s.hist.sum,min:s.hist.min,max:s.hist.max,bucketCounts:s.hist.bucketCounts,explicitBounds:tk})}return Array.from(i.values())}Yt(e){var t,i;for(var s of e){var r=s[0],n=s[1],a=this.Bt.get(r);if(a)switch(a.windowStartMs=Math.min(a.windowStartMs,n.windowStartMs),a.type){case"count":a.total=(null!=(t=a.total)?t:0)+(null!=(i=n.total)?i:0);break;case"gauge":break;case"histogram":if(n.hist)if(a.hist){a.hist.count+=n.hist.count,a.hist.sum+=n.hist.sum,a.hist.min=Math.min(a.hist.min,n.hist.min),a.hist.max=Math.max(a.hist.max,n.hist.max);for(var o=0;a.hist.bucketCounts.length>o;o++)a.hist.bucketCounts[o]+=n.hist.bucketCounts[o]}else a.hist=n.hist}else this.Qt()&&this.Bt.set(r,n)}}};class tT{constructor(e,t,i){void 0===i&&(i=[]),this.coercers=e,this.stackParser=t,this.modifiers=i}buildFromUnknown(e,t){void 0===t&&(t={});var i=t&&t.mechanism||{handled:!0,type:"generic"},s=this.buildCoercingContext(i,t,0).apply(e),r=this.buildParsingContext(t),n=this.parseStacktrace(s,r);return{$exception_list:this.convertToExceptionList(n,i),$exception_level:"error"}}modifyFrames(e){var t=this;return w(function*(){for(var i of e)i.stacktrace&&i.stacktrace.frames&&Q(i.stacktrace.frames)&&(i.stacktrace.frames=yield t.applyModifiers(i.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var i,s;return null!=e.cause&&(i=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(s=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),x({},e,{cause:i,stack:s})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var i of this.coercers)if(i.match(e))return i.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return w(function*(){var i=e;for(var s of t.modifiers)i=yield s(i);return i})()}convertToExceptionList(e,t){var i,s,r,n={type:e.type,value:e.value,mechanism:{type:null!=(i=t.type)?i:"generic",handled:null==(s=t.handled)||s,synthetic:null!=(r=e.synthetic)&&r}};e.stack&&(n.stacktrace={type:"raw",frames:e.stack});var a=[n];return null!=e.cause&&a.push(...this.convertToExceptionList(e.cause,x({},t,{handled:!0}))),a}buildParsingContext(e){var t;return{chunkIdMap:function(e){var t=globalThis._posthogChunkIds;if(t){var i=Object.keys(t);return sg&&i.length===sv||(sv=i.length,sg=i.reduce((i,s)=>{sp||(sp={});var r=sp[s];if(r)i[r[0]]=r[1];else for(var n=e(s),a=n.length-1;a>=0;a--){var o=n[a],l=null==o?void 0:o.filename,u=t[s];if(l&&u){i[l]=u,sp[s]=[l,u];break}}return i},{})),sg}}(this.stackParser),skipFirstLines:null!=(t=e.skipFirstLines)?t:1}}buildCoercingContext(e,t,i){void 0===i&&(i=0);var s=(i,s)=>{if(4>=s){var r=this.buildCoercingContext(e,t,s);return this.applyCoercers(i,r)}};return x({},t,{syntheticException:0==i?t.syntheticException:void 0,mechanism:e,apply:e=>s(e,i),next:e=>s(e,i+1)})}}function tF(e,t,i,s,r){var n={platform:e,filename:t,function:"<anonymous>"===i?"?":i,in_app:!0};return ei(s)||(n.lineno=s),ei(r)||(n.colno=r),n}var t$=(e,t)=>{var i=-1!==e.indexOf("safari-extension"),s=-1!==e.indexOf("safari-web-extension");return i||s?[-1!==e.indexOf("@")?e.split("@")[0]:"?",i?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},tI=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tC=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tM=/\((\S*)(?::(\d+))(?::(\d+))\)/,tR=(e,t)=>{var i=tI.exec(e);if(i)return tF(t,i[1],"?",+i[2],+i[3]);var s=tC.exec(e);if(s){if(s[2]&&0===s[2].indexOf("eval")){var r=tM.exec(s[2]);r&&(s[2]=r[1],s[3]=r[2],s[4]=r[3])}var n=t$(s[1]||"?",s[2]);return tF(t,n[1],n[0],s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}},tO=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tA=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tL=(e,t)=>{var i=tO.exec(e);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var s=tA.exec(i[3]);s&&(i[1]=i[1]||"eval",i[3]=s[1],i[4]=s[2],i[5]="")}var r=i[3],n=i[1]||"?",a=t$(n,r);return tF(t,r=a[1],n=a[0],i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}},tD=/\(error: (.*)\)/;class tN{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var i=es(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:i?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return ep(e,"DOMException")}isDOMError(e){return ep(e,"DOMError")}}class tq{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var i=e.message;return String(i.error&&"string"==typeof i.error.message?i.error.message:i)}getStack(e){return e.stacktrace||e.stack||void 0}}class tj{match(e){return ep(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var i;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}var tB=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class tz{match(e){return"string"==typeof e}coerce(e,t){var i,s=this.getInfos(e),r=s[0],n=s[1];return{type:null!=r?r:"Error",value:null!=n?n:e,stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}getInfos(e){var t="Error",i=e,s=e.match(tB);return s&&(t=s[1],i=s[2]),[t,i]}}var tH=["fatal","error","warning","log","info","debug"];function tU(e,t){void 0===t&&(t=40);var i=Object.keys(e);if(i.sort(),!i.length)return"[object has no keys]";for(var s=i.length;s>0;s--){var r=i.slice(0,s).join(", ");if(t>=r.length)return s===i.length?r:r.length>t?r.slice(0,t)+"...":r}return""}class tG{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var i,s=this.getErrorPropertyFromObject(e);return s?t.apply(s):{type:this.getType(e),value:this.getValue(e),stack:null==(i=t.syntheticException)?void 0:i.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return ev(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var i=this.getObjectClassName(e);return(i&&"Object"!==i?"'"+i+"'":"Object")+" captured as exception with keys: "+tU(e)}isSeverityLevel(e){return es(e)&&!er(e)&&tH.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(({}).hasOwnProperty.call(e,t)){var i=e[t];if(tf(i))return i}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class tV{match(e){return ev(e)}coerce(e,t){var i,s=e.constructor.name;return{type:s,value:s+" captured as exception with keys: "+tU(e),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}class tW{match(e){return ed(e)}coerce(e,t){var i;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}class tJ{match(e){return ep(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!ev(e))return!1;try{var t=e.detail;return null!=t&&"object"==typeof t&&"reason"in t}catch(e){return!1}}coerce(e,t){var i,s=this.getUnhandledRejectionReason(e);return ed(s)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(s),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}:t.apply(s)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&null!=e.detail&&"object"==typeof e.detail&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var tX="$message",tK="$timestamp",tY=new Set([tX,tK]),tQ={enabled:!0,max_bytes:32768};function tZ(e){var t;return e?{enabled:null!=(t=e.enabled)?t:tQ.enabled,max_bytes:function(e,t){if(!eo(e)||e===1/0||e===-1/0)return t;var i=Math.floor(e);return 0>i?t:i}(e.max_bytes,tQ.max_bytes)}:x({},tQ)}class t0{constructor(e){this.$e=[],this.ze=0,this.Te=tZ(e)}setConfig(e){this.Te=tZ(e),this.Ze()}add(e){var t=function(e){var t;try{t=J(e)}catch(e){return}try{var i=JSON.parse(t);if(!ee(i))return;var s=i[tX],r=i[tK];if(!es(s)||0===s.trim().length||!es(r)&&!eo(r))return;return{step:i,json:t}}catch(e){return}}(e);if(t){var i=function(e){if("u">typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=encodeURIComponent(e),i=0,s=0;t.length>s;s++)"%"===t[s]?(i+=1,s+=2):i+=1;return i}(t.json);i>this.Te.max_bytes||(this.$e.push({step:t.step,bytes:i}),this.ze+=i,this.Ze())}}getAttachable(){return this.$e.map(e=>e.step)}clear(){this.$e=[],this.ze=0}size(){return this.$e.length}Ze(){for(;this.ze>this.Te.max_bytes&&this.$e.length>0;){var e=this.$e.shift();e&&(this.ze-=e.bytes)}}}var t1=function(e,t){var i=(void 0===t?{}:t).debugEnabled,s={k(t){if(a&&(y.DEBUG||a.POSTHOG_DEBUG||i)&&!ei(a.console)&&a.console){for(var s=("__rrweb_original__"in a.console[t])?a.console[t].__rrweb_original__:a.console[t],r=arguments.length,n=Array(r>1?r-1:0),o=1;r>o;o++)n[o-1]=arguments[o];s(e,...n)}},debug(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];s.k("debug",...t)},info(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];s.k("log",...t)},warn(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];s.k("warn",...t)},error(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];s.k("error",...t)},critical(){for(var t=arguments.length,i=Array(t),s=0;t>s;s++)i[s]=arguments[s];console.error(e,...i)},uninitializedWarning(e){s.error("You must initialize PostHog before calling "+e)},createLogger:(t,i)=>t1(e+" "+t,i)};return s},t2=t1("[PostHog.js]"),t3=t2.createLogger,t5=t3("[ExternalScriptsLoader]"),t8=(e,t,i)=>{if(e.config.disable_external_dependency_loading)return t5.warn(t+" was requested but loading of external scripts is disabled."),i("Loading of external scripts is disabled");var s=null==u?void 0:u.querySelectorAll("script");if(s){for(var r,n=0;s.length>n;n++)if(r=function(){if(s[n].src===t){var e=s[n];return e.__posthog_loading_callback_fired?{v:i()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,i(void 0,t)}),e.onerror=e=>i(e),{v:void 0})}}())return r.v}var a=()=>{if(!u)return i("document not found");var s=u.createElement("script");if(s.type="text/javascript",s.crossOrigin="anonymous",s.src=t,s.onload=e=>{s.__posthog_loading_callback_fired=!0,i(void 0,e)},s.onerror=e=>i(e),e.config.prepare_external_dependency_script&&(s=e.config.prepare_external_dependency_script(s)),!s)return i("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)u.head.appendChild(s);else{var r,n=u.querySelectorAll("body > script");n.length>0?null==(r=n[0].parentNode)||r.insertBefore(s,n[0]):u.body.appendChild(s)}};null!=u&&u.body?a():null==u||u.addEventListener("DOMContentLoaded",a)};m.__PosthogExtensions__=m.__PosthogExtensions__||{},m.__PosthogExtensions__.loadExternalDependency=(e,t,i)=>{if("remote-config"!==t){var s;if(e.config.strict_script_versioning)s=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var r="/static/"+t+".js?v="+e.version;"toolbar"===t&&(r=r+"&t="+3e5*Math.floor(Date.now()/3e5)),s=e.requestRouter.endpointFor("assets",r)}t8(e,s,i)}else{var n=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");t8(e,n,i)}},m.__PosthogExtensions__.loadSiteApp=(e,t,i)=>{var s=e.requestRouter.endpointFor("api",t);t8(e,s,i)},y.DEBUG=!1,y.LIB_VERSION="1.409.5",y.LIB_NAME="web";var t6="$people_distinct_id",t4="$device_id",t9="$device_model",t7="__alias",ie="__timers",it="$autocapture_disabled_server_side",ii="$heatmaps_enabled_server_side",is="$exception_capture_enabled_server_side",ir="$error_tracking_suppression_rules",ia="$error_tracking_capture_extension_exceptions",io="$web_vitals_enabled_server_side",il="$dead_clicks_enabled_server_side",iu="$product_tours_enabled_server_side",ih="$web_vitals_allowed_metrics",ic="$session_recording_remote_config",id="$replay_sample_rate",ip="$replay_override_sampling",iv="$replay_override_linked_flag",ig="$replay_override_url_trigger",i_="$replay_override_event_trigger",im="$sesid",iy="$session_is_sampled",ib="$enabled_feature_flags",iw="$active_feature_flags",ix="$early_access_features",ik="$feature_flag_details",iE="$feature_flag_payloads",iS="$feature_flag_request_id",iP="$minimal_flag_called_events",iT="$override_feature_flags",iF="$override_feature_flag_payloads",i$="$stored_person_properties",iI="$stored_group_properties",iC="$surveys",iM="$surveys_loaded_at",iR="$surveys_activated",iO="$surveys_activated_session",iA="ph_product_tours",iL="$flag_call_reported",iD="$flag_call_reported_session_id",iN="$feature_flag_errors",iq="$feature_flag_evaluated_at",ij="$user_state",iB="$client_session_props",iz="$capture_rate_limit",iH="$initial_campaign_params",iU="$initial_referrer_info",iG="$initial_person_info",iV="$epp",iW="$posthog_cookieless",iJ="$cookieless_mode",iX="$sdk_debug_extensions_init_method",iK="$sdk_debug_extensions_init_time_ms",iY="$sdk_debug_recording_script_not_loaded",iQ="PostHog loadExternalDependency extension not found.",iZ="on_reject",i0="always",i1="anonymous",i2="identified",i3="identified_only",i5="visibilitychange",i8="beforeunload",i6="$pageview",i4="$pageleave",i9="$identify",i7="$groupidentify";function se(e,t){Q(e)&&e.forEach(t)}function st(e,t){if(!ea(e))if(Q(e))e.forEach(t);else if(e instanceof FormData)e.forEach((e,i)=>t(e,i));else for(var i in e)K.call(e,i)&&t(e[i],i)}var si=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;t>s;s++)i[s-1]=arguments[s];for(var r of i)for(var n in r)void 0!==r[n]&&(e[n]=r[n]);return e};function ss(e){for(var t=Object.keys(e),i=t.length,s=Array(i);i--;)s[i]=[t[i],e[t[i]]];return s}var sr=function(e){try{return e()}catch(e){return}},sn=function(e){return function(){try{for(var t=arguments.length,i=Array(t),s=0;t>s;s++)i[s]=arguments[s];return e.apply(this,i)}catch(e){t2.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),t2.critical(e)}}},sa=function(e){var t={};return st(e,function(e,i){(es(e)&&e.length>0||eo(e))&&(t[i]=e)}),t},so=["herokuapp.com","vercel.app","netlify.app"];function sl(e,t,i,s){var r=null!=s?s:{},n=r.capture,a=r.passive;null==e||e.addEventListener(t,i,{capture:void 0!==n&&n,passive:void 0===a||a})}function su(e){return"ph_toolbar_internal"===e.name}var sh=e=>{if(u){try{for(var t=e+"=",i=u.cookie.split(";").filter(e=>e.length),s=0;i.length>s;s++){for(var r=i[s];" "==r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return decodeURIComponent(r.substring(t.length,r.length))}}catch(e){}return null}};Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return eo(e)&&isFinite(e)&&Math.floor(e)===e});class sc{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,i,s){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(i)||!Number.isInteger(s)||0>e||0>t||0>i||0>s||e>0xffffffffffff||t>4095||i>0x3fffffff||s>0xffffffff)throw RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=e/0x10000000000,r[1]=e/0x100000000,r[2]=e/0x1000000,r[3]=e/65536,r[4]=e/256,r[5]=e,r[6]=112|t>>>8,r[7]=t,r[8]=128|i>>>24,r[9]=i>>>16,r[10]=i>>>8,r[11]=i,r[12]=s>>>24,r[13]=s>>>16,r[14]=s>>>8,r[15]=s,new sc(r)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new sc(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;16>t;t++){var i=this.bytes[t]-e.bytes[t];if(0!==i)return Math.sign(i)}return 0}}class sd{generate(){var e=this.generateOrAbort();if(!ei(e))return e;this.S=0;var t=this.generateOrAbort();if(ei(t))throw Error("Could not generate UUID after timestamp reset");return t}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.C();else{if(this.S>=e+1e4)return;this.M++,this.M>0x3ffffffffff&&(this.S++,this.C())}return sc.fromFieldsV7(this.S,Math.trunc(this.M/0x40000000),0x3fffffff&this.M,this.I.nextUint32())}C(){this.M=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}constructor(){this.S=0,this.M=0,this.I=new sm}}var sp,sv,sg,sf,s_=e=>{if("u">typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};a&&!ei(a.crypto)&&crypto.getRandomValues&&(s_=e=>crypto.getRandomValues(e));class sm{nextUint32(){return this.R.length>this.O||(s_(this.R),this.O=0),this.R[this.O++]}constructor(){this.R=new Uint32Array(8),this.O=1/0}}var sy=()=>sb().toString(),sb=()=>(sf||(sf=new sd)).generate(),sw="",sx=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,sk={N:()=>!!u,P(e){t2.error("cookieStore error: "+e)},q:sh,F(e){var t;try{t=JSON.parse(sk.q(e))||{}}catch(e){}return t},A(e,t,i,s,r){if(!u)return!1;try{var n="",a="",o=function(e,t){if(t){var i=function(e,t){if(void 0===t&&(t=u),sw)return sw;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var i=e.split("."),s=Math.min(i.length,8),r="dmn_chk_"+sy();!sw&&s--;){var n=i.slice(s).join("."),a=r+"=1;domain=."+n+";path=/";t.cookie=a+";max-age=3",t.cookie.includes(r)&&(t.cookie=a+";max-age=0",sw=n)}return sw}(e);if(!i){var s,r=(s=e.match(sx))?s[0]:"";r!==i&&t2.info("Warning: cookie subdomain discovery mismatch",r,i),i=r}return i?"; domain=."+i:""}return""}(u.location.hostname,s);if(i){var l=new Date;l.setTime(l.getTime()+864e5*i),n="; expires="+l.toUTCString()}r&&(a="; secure");var h=e+"="+encodeURIComponent(JSON.stringify(t))+n+"; SameSite=Lax; path=/"+o+a;return h.length>3686.4&&t2.warn("cookieStore warning: large cookie, len="+h.length),u.cookie=h,!0}catch(e){return!1}},D(e,t){if(null!=u&&u.cookie)try{sk.A(e,"",-1,t)}catch(e){return}}},sE=null,sS={N(){if(!en(sE))return sE;var e=!0;if(ei(a))e=!1;else try{var t="__mplssupport__";sS.A(t,"xyz"),'"xyz"'!==sS.q(t)&&(e=!1),sS.D(t)}catch(t){e=!1}return e||t2.error("localStorage unsupported; falling back to cookie store"),sE=e,e},P(e){t2.error("localStorage error: "+e)},q(e){try{return null==a?void 0:a.localStorage.getItem(e)}catch(e){sS.P(e)}return null},F(e){try{return JSON.parse(sS.q(e))||{}}catch(e){}return null},A(e,t){try{return null==a||a.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){sS.P(e)}return!1},D(e){try{null==a||a.localStorage.removeItem(e)}catch(e){sS.P(e)}}},sP=[t4,"distinct_id",im,iy,iV,iG,ij],sT={},sF={N:()=>!0,P(e){t2.error("memoryStorage error: "+e)},q:e=>sT[e]||null,F:e=>sT[e]||null,A:(e,t)=>(sT[e]=t,!0),D(e){delete sT[e]}},s$=null,sI={N(){if(!en(s$))return s$;if(s$=!0,ei(a))s$=!1;else try{var e="__support__";sI.A(e,"xyz"),'"xyz"'!==sI.q(e)&&(s$=!1),sI.D(e)}catch(e){s$=!1}return s$},P(e){t2.error("sessionStorage error: ",e)},q(e){try{return null==a?void 0:a.sessionStorage.getItem(e)}catch(e){sI.P(e)}return null},F(e){try{return JSON.parse(sI.q(e))||null}catch(e){}return null},A(e,t){try{return null==a||a.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(e){sI.P(e)}return!1},D(e){try{null==a||a.sessionStorage.removeItem(e)}catch(e){sI.P(e)}}};class sC{constructor(e){this._instance=e}get Te(){return this._instance.config}get consent(){return this.Ge()?0:this.Qe}isOptedOut(){return this.Te.cookieless_mode===i0||this.isRejected()||-1===this.consent&&this.Te.cookieless_mode===iZ}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return 0===this.consent}isRejected(){return 0===this.consent||-1===this.consent&&this.Te.opt_out_capturing_by_default}optInOut(e){this.Je.A(this.Ke,+!!e,this.Te.cookie_expiration,this.Te.cross_subdomain_cookie,this.Te.secure_cookie)}reset(){this.Je.D(this.Ke,this.Te.cross_subdomain_cookie)}get Ke(){var e=this._instance.config,t=e.token,i=e.opt_out_capturing_cookie_prefix;return e.consent_persistence_name||(i?i+t:"__ph_opt_in_out_"+t)}get Qe(){var e=this.Je.q(this.Ke);return G(eg,e)?1:G(ef,e)?0:-1}get Je(){var e=this.Te.opt_out_capturing_persistence_type,t="localStorage"===e?sS:sk;if(!this.Ye||this.Ye!==t){this.Ye=t;var i="localStorage"===e?sk:sS;i.q(this.Ke)&&(this.Ye.q(this.Ke)||this.optInOut(G(eg,i.q(this.Ke))),i.D(this.Ke,this.Te.cross_subdomain_cookie))}return this.Ye}Ge(){return!!this.Te.respect_dnt&&[null==l?void 0:l.doNotTrack,null==l?void 0:l.msDoNotTrack,m.doNotTrack].some(e=>G(eg,e))}}function sM(e,t){var i,s=null==e||null==(i=e.config)?void 0:i.get_current_url;if(!Z(s))return t;try{var r=s(t);return es(r)&&r?r:t}catch(e){return t2.error("Error in get_current_url, falling back to window.location.href",e),t}}var sR="__POSTHOG_TOOLBAR__";function sO(e){return e instanceof Element&&(e.id===sR||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function sA(e){return!!e&&1===e.nodeType}function sL(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function sD(e){return!!e&&3===e.nodeType}function sN(e){return!!e&&11===e.nodeType&&sA(e.host)}function sq(e){return e?V(e).split(/\s+/):[]}function sj(e,t){var i,s,r=ei(s=null==a||null==(i=a.location)?void 0:i.href)?void 0:sM(t,s);return!!(r&&e&&e.some(e=>r.match(e)))}function sB(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return sq(t)}function sz(e){return ea(e)?null:V(e).split(/(\s+)/).filter(e=>rt(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function sH(e){var t="";return s3(e)&&!s5(e)&&e.childNodes&&e.childNodes.length&&st(e.childNodes,function(e){var i;sD(e)&&e.textContent&&(t+=null!=(i=sz(e.textContent))?i:"")}),V(t)}function sU(e){var t;return ei(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}var sG=["a","button","form","input","select","textarea","label"];function sV(e,t){if(ei(t))return!0;var i,s=function(e){if(t.some(t=>(function(e,t){var i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;try{return!!i&&i.call(e,t)}catch(e){return!1}})(e,t)))return{v:!0}};for(var r of e)if(i=s(r))return i.v;return!1}function sW(e){var t=e.parentNode;return!(!t||!sA(t))&&t}var sJ=[".ph-no-autocapture","[data-ph-no-autocapture]"],sX=["next","previous","prev",">","<"],sK=[...sX,"+","-","−","–"],sY=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,sQ=[".ph-no-rageclick",".ph-no-capture"],sZ=["","text","search","email","password","url","tel","number"];function s0(e,t){if(!a||s1(e)||(eu(t)?(s=!!t&&sQ,r=void 0,n=!1):(s=null!=(o=null==t?void 0:t.css_selector_ignorelist)?o:sQ,r=null==t?void 0:t.content_ignorelist,n=null!=(l=null==t?void 0:t.ignore_text_selection)&&l),!1===s)||n&&!(!(i=e)||!sA(i))&&(sL(i,"textarea")||(sL(i,"input")?G(sZ,(i.getAttribute("type")||"").toLowerCase()):function(e){if(e.isContentEditable)return!0;var t=null==e.getAttribute?void 0:e.getAttribute("contenteditable");return"true"===t||""===t}(i))))return!1;var i,s,r,n,o,l,u=s2(e,!1).targetElementList;return!function(e,t){var i;if(!1===e||ei(e))return!1;if(!0===e)i=sX;else{if(!Q(e))return!1;if(e.length>10)return t2.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;i=e.map(e=>e.toLowerCase())}return t.some(e=>{var t=e.safeText,s=e.ariaLabel;return i.some(e=>sY(t,e)||sY(s,e))})}(r,u.map(e=>{var t;return{safeText:sH(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!sV(u,s)}var s1=e=>!e||sL(e,"html")||!sA(e),s2=(e,t)=>{if(!a||s1(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var i=!1,s=[e],r=e;r.parentNode&&!sL(r,"body");)if(sN(r.parentNode))s.push(r.parentNode.host),r=r.parentNode.host;else{var n=sW(r);if(!n)break;if(t||sG.indexOf(n.tagName.toLowerCase())>-1)i=!0;else try{var o=a.getComputedStyle(n);o&&"pointer"===o.getPropertyValue("cursor")&&(i=!0)}catch(e){}s.push(n),r=n}return{parentIsUsefulElement:i,targetElementList:s}};function s3(e){for(var t=new Set,i=0,s=e;s.parentNode&&!sL(s,"body");s=s.parentNode){if(i++>=1e3||t.has(s))return!1;t.add(s);var r=sB(s);if(G(r,"ph-sensitive")||G(r,"ph-no-capture"))return!1}if(G(sB(e),"ph-include"))return!0;var n=e.type||"";if(es(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var a=e.name||e.id||"";return!es(a)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,""))}function s5(e){return!!(sL(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||sL(e,"select")||sL(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var s8=RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),s6=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,s4=[16,15,14,13],s9=RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$"),s7=RegExp("(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))","g"),re=/[0-9A-Za-z_]/;function rt(e,t){return void 0===t&&(t=!0),!(ea(e)||es(e)&&(e=V(e),(t?s8.test((e||"").replace(/[- ]/g,"")):function(e){var t;for(s6.lastIndex=0;t=s6.exec(e);){var i=t[2];if(i)for(var s=i.replace(/[- ]/g,""),r=0;s.length>r;r++)for(var n of s4){var a=r+n;if(s.length>=a){var o=s.slice(r,a);if(s8.test(o)&&function(e){for(var t=0,i=!1,s=e.length-1;s>=0;s--){var r=e.charCodeAt(s)-48;i&&(r*=2)>9&&(r-=9),t+=r,i=!i}return t%10==0}(o))return!0}}}return!1}(e))||(t?s9.test(e):function(e){var t;for(s7.lastIndex=0;t=s7.exec(e);){var i=t[1],s=t[3];if(!(i&&s&&re.test(i)&&re.test(s)))return!0}return!1}(e))))&&!0}function ri(e){var t=sH(e);return rt(t=(t+" "+function e(t){var i="";return t&&t.childNodes&&t.childNodes.length&&st(t.childNodes,function(t){var s;if(t&&"span"===(null==(s=t.tagName)?void 0:s.toLowerCase()))try{var r=sH(t);i=(i+" "+r).trim(),t.childNodes&&t.childNodes.length&&(i=(i+" "+e(t)).trim())}catch(e){t2.error("[AutoCapture]",e)}}),i}(e)).trim())?t:""}function rs(e){return e.replace(/"|\\"/g,'\\"')}var rr=t3("[Dead Clicks]"),rn=()=>!0,ra=e=>{var t,i=!(null==(t=e.instance.persistence)||!t.get_property(il)),s=e.instance.config.capture_dead_clicks;return eu(s)?s:!!ee(s)||i};class ro{get lazyLoadedDeadClicksAutocapture(){return this.Xe}constructor(e,t,i){this.instance=e,this.isEnabled=t,this.onCapture=i,this.startIfEnabledOrStop()}onRemoteConfig(e){if(e.ok){var t=e.config;"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[il]:t.captureDeadClicks}),this.startIfEnabledOrStop())}}startIfEnabledOrStop(){this.isEnabled(this)?this.tr(()=>{this.er()}):this.stop()}tr(e){var t,i;null!=(t=m.__PosthogExtensions__)&&t.initDeadClicksAutocapture?e():null==(i=m.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?rr.error("failed to load script",t):e()})}er(){var e;if(u){if(!this.Xe&&null!=(e=m.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=ee(this.instance.config.capture_dead_clicks)?x({},this.instance.config.capture_dead_clicks):{};t.__onCapture=this.onCapture,this.onCapture&&(t.capture_dead_swipes=!1),this.Xe=m.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.Xe.start(u),rr.info("starting...")}}else rr.error("`document` not found. Cannot start.")}stop(){this.Xe&&(this.Xe.stop(),this.Xe=void 0,rr.info("stopping..."))}}var rl=t3("[SegmentIntegration]"),ru="posthog-js";function rh(e,t){var i=void 0===t?{}:t,s=i.organization,r=i.projectId,n=i.prefix,a=i.severityAllowList,o=void 0===a?["error"]:a,l=i.sendExceptionsToPostHog,u=void 0===l||l;return t=>{if("*"!==o&&!o.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var i=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=i,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var a,l,h,c,d,p,v=(null==(a=t.exception)?void 0:a.values)||[],g=v.map(e=>x({},e,{stacktrace:e.stacktrace?x({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>x({},e,{platform:"web:javascript"}))}):void 0})),f={$exception_message:(null==(l=v[0])?void 0:l.value)||t.message,$exception_type:null==(h=v[0])?void 0:h.type,$exception_level:t.level,$exception_list:g,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(c=v[0])?void 0:c.value)||t.message,$sentry_exception_type:null==(d=v[0])?void 0:d.type,$sentry_tags:t.tags};return s&&r&&(f.$sentry_url=(n||"https://sentry.io/organizations/")+s+"/issues/?project="+r+"&query="+t.event_id),u&&(null==(p=e.exceptions)||p.sendExceptionEvent(f)),t}}class rc{constructor(e,t,i,s,r,n){this.name=ru,this.setupOnce=function(a){a(rh(e,{organization:t,projectId:i,prefix:s,severityAllowList:r,sendExceptionsToPostHog:null==n||n}))}}}class rd{constructor(e){this.rr=(e,t,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength||i.crossTabAdoption)&&(t2.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:i}),this.ir=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.nr()}nr(){var e;this.sr=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.rr)}destroy(){var e;null==(e=this.sr)||e.call(this),this.sr=void 0}doPageView(e,t){var i,s=this.ar(e,t);return this.ir={pathname:null!=(i=null==a?void 0:a.location.pathname)?i:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),s}doPageLeave(e){var t;return this.ar(e,null==(t=this.ir)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.ir)?void 0:e.pageViewId}}ar(e,t){var i=this.ir;if(!i)return{$pageview_id:t};var s={$pageview_id:t,$prev_pageview_id:i.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var n=r.maxScrollHeight,a=r.lastScrollY,o=r.maxScrollY,l=r.maxContentHeight,u=r.lastContentY,h=r.maxContentY;if(!(ei(n)||ei(a)||ei(o)||ei(l)||ei(u)||ei(h))){n=Math.ceil(n),a=Math.ceil(a),o=Math.ceil(o),l=Math.ceil(l),u=Math.ceil(u),h=Math.ceil(h);var c=n>1?e_(a/n,0,1,t2):1,d=n>1?e_(o/n,0,1,t2):1,p=l>1?e_(u/l,0,1,t2):1,v=l>1?e_(h/l,0,1,t2):1;s=si(s,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:c,$prev_pageview_max_scroll:o,$prev_pageview_max_scroll_percentage:d,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:v})}}return i.pathname&&(s.$prev_pageview_pathname=i.pathname),i.timestamp&&(s.$prev_pageview_duration=(e.getTime()-i.timestamp.getTime())/1e3),s}}var rp=["flags","surveys"],rv={[t6]:{exposure:"hidden"},[t7]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[ie]:{exposure:"hidden"},[it]:{exposure:"event"},[ii]:{exposure:"hidden"},[is]:{exposure:"event"},[ir]:{exposure:"hidden"},[ia]:{exposure:"event"},[io]:{exposure:"event"},[il]:{exposure:"event"},[iu]:{exposure:"hidden"},[ih]:{exposure:"event"},[ic]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[im]:{exposure:"hidden"},[iy]:{exposure:"event"},[id]:{exposure:"event",shouldSkipFromEventProperties:e=>en(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[ib]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!ee(e))return{};for(var t={},i=Object.keys(e),s=0;i.length>s;s++)t["$feature/"+i[s]]=e[i[s]];return t}},[iw]:{exposure:"event",storageGroup:"flags"},[ix]:{exposure:"hidden"},[ik]:{exposure:"hidden",storageGroup:"flags"},[iE]:{exposure:"event",storageGroup:"flags"},[iS]:{exposure:"event",storageGroup:"flags",volatile:!0},[iP]:{exposure:"hidden",storageGroup:"flags"},[iT]:{exposure:"event"},[iF]:{exposure:"hidden"},[i$]:{exposure:"hidden"},[iI]:{exposure:"hidden"},[iC]:{exposure:"hidden",storageGroup:"surveys"},[iM]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[iR]:{exposure:"event"},[iO]:{exposure:"hidden"},[iA]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$product_tours_activated_session:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[iL]:{exposure:"hidden"},[iD]:{exposure:"hidden"},[iN]:{exposure:"hidden"},[iq]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[ij]:{exposure:"hidden"},[iB]:{exposure:"hidden"},[iz]:{exposure:"hidden"},[iH]:{exposure:"hidden"},[iU]:{exposure:"hidden"},[iG]:{exposure:"hidden"},[iV]:{exposure:"hidden"},[ip]:{exposure:"event"},[iv]:{exposure:"event"},[ig]:{exposure:"event"},[i_]:{exposure:"event"},[iX]:{exposure:"event"},[iK]:{exposure:"event"},[iY]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},rg=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],rf=e=>{var t=rv[e];if(t)return t;for(var i of rg){var s=i[1];if(0===e.indexOf(i[0]))return s}},r_=(e,t)=>{try{return JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t)}catch(t){return J(e)}},rm=e=>{var t=null==u?void 0:u.createElement("a");return ei(t)?null:(t.href=e,t)},ry=function(e,t){for(var i,s=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),r=0;s.length>r;r++){var n=s[r].split("=");if(n[0]===t){i=n;break}}if(!Q(i)||2>i.length)return"";var a=i[1];try{a=decodeURIComponent(a)}catch(e){t2.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},rb=function(e,t,i){if(!e||!t||!t.length)return e;for(var s=e.split("#"),r=s[1],n=(s[0]||"").split("?"),a=n[1],o=n[0],l=(a||"").split("&"),u=[],h=0;l.length>h;h++){var c=l[h].split("=");Q(c)&&(t.includes(c[0])?u.push(c[0]+"="+i):u.push(l[h]))}var d=o;return null!=a&&(d+="?"+u.join("&")),null!=r&&(d+="#"+r),d},rw=function(e,t){var i=e.match(RegExp(t+"=([^&]*)"));return i?i[1]:null},rx=(e,t)=>e>=t&&f(),rk=(e,t,i,s)=>{if(0===e){if(f()){var r=t+1;return r===i&&s(),r}return t}return 0},rE="https?://(.*)",rS=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],rP=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...rS],rT="<masked>",rF=["li_fat_id"];function r$(e,t,i){if(!u)return{};var s,r=t?[...rS,...i||[]]:[],n=rI(rb(u.URL,r,rT),e);return si((s={},st(rF,function(e){var t=sh(e);s[e]=t||null}),s),n)}function rI(e,t){var i=rP.concat(t||[]),s={};return st(i,function(t){var i=ry(e,t);s[t]=i||null}),s}function rC(e){var t=e?0===e.search(rE+"google.([^/?]*)")?"google":0===e.search(rE+"bing.com")?"bing":0===e.search(rE+"yahoo.com")?"yahoo":0===e.search(rE+"duckduckgo.com")?"duckduckgo":null:null,i={};if(!en(t)){i.$search_engine=t;var s=u?ry(u.referrer,"yahoo"!=t?"q":"p"):"";s.length&&(i.ph_keyword=s)}return i}function rM(){return navigator.language||navigator.userLanguage}var rR="$direct";function rO(){return(null==u?void 0:u.referrer)||rR}function rA(e,t,i){void 0===i&&(i=!1);var s=e?[...rS,...t||[]]:[],r=i?tv(null==h?void 0:h.href):null==h?void 0:h.href,n=null==r?void 0:r.substring(0,1e3);return{r:rO().substring(0,1e3),u:n?rb(n,s,rT):void 0}}function rL(e,t){void 0===t&&(t=!1);var i,s=e.r,r=e.u,n=t?tv(r):r,a={$referrer:s,$referring_domain:null==s?void 0:s==rR?rR:null==(i=rm(s))?void 0:i.host};if(n){a.$current_url=n;var o=rm(n);a.$host=null==o?void 0:o.host,a.$pathname=null==o?void 0:o.pathname,si(a,rI(n))}return s&&si(a,rC(s)),a}function rD(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var rN={flags:iq,surveys:iM},rq=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],rj="main";class rB{constructor(e,t,i){if(void 0===i&&(i=!0),this.lr={},this.ur=!1,this.hr=!1,this.Te=e,this.dr=i,this.props={},this.cr=void 0,this.vr=(e=>{var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"})(e),this.Je=this.pr(e),this.hr=this.gr(e),this.load(),e.debug&&t2.info("Persistence loaded",e.persistence,x({},this.props)),this.update_config(e,e,t),this.save(),a){var s=()=>this.flush();sl(a,"beforeunload",s,{capture:!1}),sl(a,"pagehide",s,{capture:!1})}}mr(){var e,t=null==(e=this.Te)?void 0:e.persistence_save_debounce_ms;return eo(t)&&t>0?t:0}isDisabled(){return!!this.yr}pr(e){-1===rq.indexOf(e.persistence.toLowerCase())&&(t2.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,i,s,r,n=(t=e.cookie_persisted_properties||[],i=e.__preview_cookie_wins_on_conflict||!1,void 0===t&&(t=[]),void 0===i&&(i=!1),s=[...sP,...t],x({},sS,{F(e){try{var t={};try{t=sk.F(e)||{}}catch(e){}var s,r=JSON.parse(sS.q(e)||"{}");if(i){var n={};for(var a in t){var o=t[a];en(o)||""===o||(n[a]=o)}s=si(r,n)}else s=si(t,r);return sS.A(e,s),s}catch(e){}return null},A(e,t,i,r,n,a){var o=sS.A(e,t,void 0,void 0,a);try{var l={};s.forEach(e=>{t[e]&&(l[e]=t[e])}),Object.keys(l).length&&sk.A(e,l,i,r,n,a)}catch(e){sS.P(e)}return o},D(e,t){try{null==a||a.localStorage.removeItem(e),sk.D(e,t)}catch(e){sS.P(e)}}})),o=!1,l=e.persistence.toLowerCase();return"localstorage"===l&&sS.N()?(r=sS,o=!0):"localstorage+cookie"===l&&n.N()?(r=n,o=!0):"sessionstorage"===l&&sI.N()?r=sI:"memory"===l?r=sF:"cookie"===l?r=sk:n.N()?(r=n,o=!0):r=sk,this.ur=o,r}br(e){return this.vr+"__"+e}gr(e){return this.ur&&!!e.split_storage}_r(e){var t=null!=e?e:this.Te.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var i=this.props[iq];return!i||"number"!=typeof i||Date.now()-i>t}properties(){var e={};return st(this.props,(t,i)=>{var s=rf(i);if("derived"===(null==s?void 0:s.exposure)){if(null!=s.shouldSkipFromEventProperties&&s.shouldSkipFromEventProperties(t,i===ib?()=>this._r():()=>!1))return;s.transformToEventProperties&&si(e,s.transformToEventProperties(t))}else if(!s||"event"===s.exposure){if(null!=s&&null!=s.shouldSkipFromEventProperties&&s.shouldSkipFromEventProperties(t,()=>!1))return;e[i]=t}}),e}load(){if(!this.yr){var e=this.Je.F(this.vr);e&&(this.props=si({},e)),this.hr&&this.wr()}}wr(){for(var e of rp){var t=sS.F(this.br(e));if(t&&!et(t)){var i=this.kr(e);i.persisted=!0,this.Sr(e)||(i.fingerprint=this.Cr(t,e)),this.Mr(e,t)||si(this.props,t)}}}Sr(e){return Object.keys(this.props).some(t=>{var i;return(null==(i=rf(t))?void 0:i.storageGroup)===e})}Mr(e,t){var i=rN[e];if(!i)return!1;var s=t[i],r=this.props[i];return eo(s)&&eo(r)&&r>s}refreshKey(e){var t;if(!this.yr){var i=this.hr?null==(t=rf(e))?void 0:t.storageGroup:void 0,s=i?sS.F(this.br(i)):this.Je.F(this.vr);if(s&&e in s)this.Ir(e,s[e]);else{if(i){var r=this.Je.F(this.vr);if(r&&e in r)return void this.Ir(e,r[e])}this.Tr(e)}}}save(){if(!this.yr){var e=this.mr();e>0?ei(this.Er)&&(this.Er=setTimeout(()=>{this.Er=void 0,this.Rr()},e)):this.Rr()}}flush(){ei(this.Er)||(clearTimeout(this.Er),this.Er=void 0,this.Rr())}Rr(){this.yr||(this.hr?this.Pr():this.Or(this.Je,this.vr,this.props,rj))}Pr(){var e=this.Fr(),t=e.main,i=e.groups;for(var s of(this.Or(this.Je,this.vr,t,rj),rp)){var r,n=i[s];(!et(n)||null!=(r=this.lr[s])&&r.persisted)&&this.Or(sS,this.br(s),n,s)}}Fr(){var e={},t={flags:{},surveys:{}};return st(this.props,(i,s)=>{var r,n=null==(r=rf(s))?void 0:r.storageGroup;n?t[n][s]=i:e[s]=i}),{main:e,groups:t}}Cr(e,t){if(t===rj)return JSON.stringify(e)+"|"+this.Ar+"|"+this.$r+"|"+this.Lr;var i={};return st(e,(e,t)=>{var s;i[t]=null!=(s=rf(t))&&s.volatile?"__volatile__":e}),JSON.stringify(i)}Or(e,t,i,s){var r,n=this.kr(s);if(s===rj||n.dirty||ei(n.fingerprint)){try{if((r=this.Cr(i,s))===n.fingerprint)return void(n.dirty=!1)}catch(e){r=void 0}e.A(t,i,this.Ar,this.$r,this.Lr,this.Te.debug)?(n.dirty=!1,s!==rj&&(n.persisted=!0),ei(r)||(n.fingerprint=r)):this.Te.debug&&t2.warn('failed to persist storage entry "'+t+'"; will retry on next save')}}remove(e){var t=(void 0===e?{}:e).keepGroupEntries,i=void 0!==t&&t;if(ei(this.Er)||(clearTimeout(this.Er),this.Er=void 0),this.Je.D(this.vr,!1),this.Je.D(this.vr,!0),!i&&this.dr)for(var s of rp)sS.D(this.br(s));i?delete this.lr[rj]:this.lr={}}clear(){this.remove(),this.props={}}register_once(e,t,i){if(ee(e)){ei(t)&&(t="None"),this.Ar=ei(i)?this.Dr:i;var s=!1;if(st(e,(e,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==t||(this.Ir(i,e),s=!0)}),s)return this.save(),!0}return!1}register(e,t){if(ee(e)){this.Ar=ei(t)?this.Dr:t;var i=!1;if(st(e,(t,s)=>{e.hasOwnProperty(s)&&this.props[s]!==t&&(this.Ir(s,t),i=!0)}),i)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Tr(e),this.save())}update_campaign_params(){var e=null==u?void 0:u.URL;if(e!==this.cr){var t=r$(this.Te.custom_campaign_params,this.Te.mask_personal_data_properties,this.Te.custom_personal_data_properties);et(sa(t))||this.register(t),this.cr=e}}update_search_keyword(){var e;this.register((e=null==u?void 0:u.referrer)?rC(e):{})}update_referrer_info(){var e;this.register_once({$referrer:rO(),$referring_domain:null!=u&&u.referrer&&(null==(e=rm(u.referrer))?void 0:e.host)||rR},void 0)}set_initial_person_info(){this.props[iH]||this.props[iU]||this.register_once({[iG]:rA(this.Te.mask_personal_data_properties,this.Te.custom_personal_data_properties,this.Te.disable_capture_url_hashes)},void 0)}get_initial_props(){var e,t,i,s={};st([iU,iH],e=>{var t=this.props[e];t&&st(t,function(e,t){s["$initial_"+W(t)]=e})});var r=this.props[iG];return r&&si(s,(void 0===(e=this.Te.disable_capture_url_hashes)&&(e=!1),t=rL(r,e),i={},st(t,function(e,t){i["$initial_"+W(t)]=e}),i)),s}safe_merge(e){return st(this.props,function(t,i){i in e||(e[i]=t)}),e}update_config(e,t,i){this.Dr=this.Ar=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!i),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var s=e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var i=[...e].sort(),s=[...t].sort();return i.every((e,t)=>e===s[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[]),r=s?this.pr(e):this.Je,n=this.gr(e);if(s||n!==this.hr){var a=this.props;this.clear(),this.Je=r,this.hr=n,this.props=a,this.save()}}set_disabled(e){this.yr=e,this.yr?this.remove():this.save()}set_cross_subdomain(e){e!==this.$r&&(this.$r=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.Lr&&(this.Lr=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,t){var i=this.props[ie]||{};i[e]=t,this.Ir(ie,i),this.save()}remove_event_timer(e){var t=this.props[ie]||{},i=t[e];return ei(i)||(delete t[e],this.Ir(ie,t),this.save()),i}get_property(e){return this.props[e]}set_property(e,t){this.Ir(e,t),this.save()}Ir(e,t){var i;this.props[e]=t,null!=(i=rf(e))&&i.volatile||this.Nr(e)}Tr(e){delete this.props[e],this.Nr(e)}Nr(e){var t,i=null==(t=rf(e))?void 0:t.storageGroup;i&&(this.kr(i).dirty=!0)}kr(e){return this.lr[e]||(this.lr[e]={})}}function rz(e){var t=!0;return{dispose(){if(t){t=!1;var i=e();i&&Z(i.then)&&i.then(void 0,()=>{})}}}}var rH="gzip-js",rU="base64",rG="events",rV="cancelEvents",rW="survey shown",rJ="survey dismissed",rX="survey sent",rK="popover",rY=t3("[RateLimiter]");class rQ{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{rY.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void rY.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){void 0===e&&(e=!1);var t,i,s,r=this.captureEventsBurstLimit,n=this.captureEventsPerSecond,a=(new Date).getTime(),o=null!=(t=null==(i=this.instance.persistence)?void 0:i.get_property(iz))?t:{tokens:r,last:a};o.tokens+=(a-o.last)/1e3*n,o.last=a,o.tokens>r&&(o.tokens=r);var l=1>o.tokens;return l||e||(o.tokens=Math.max(0,o.tokens-1)),!l||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+n+" events per second and "+r+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,null==(s=this.instance.persistence)||s.set_property(iz,o),{isRateLimited:l,remainingTokens:o.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var rZ=t3("[RemoteConfig]");class r0{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=m._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}qr(e){var t,i;null!=(t=m.__PosthogExtensions__)&&t.loadExternalDependency?null==(i=m.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}jr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(t){e(t.json)}})}load(){try{if(this.remoteConfig)return rZ.info("Using preloaded remote config",this.remoteConfig),this.Br(this.remoteConfig),void this.Hr();if(this._instance.Ur())return void rZ.warn("Remote config is disabled. Falling back to local config.");this.qr(e=>{e?(this.Br(e),this.Hr()):(rZ.info("No config found after loading remote JS config. Falling back to JSON."),this.jr(e=>{this.Br(e),this.Hr()}))})}catch(e){rZ.error("Error loading remote config",e),this.Br()}}stop(){this.zr&&(clearInterval(this.zr),this.zr=void 0)}refresh(){!this._instance.Ur()&&u&&"hidden"!==u.visibilityState&&this._instance.reloadFeatureFlags()}Hr(){var e;if(!this.zr){var t=null!=(e=this._instance.config.remote_config_refresh_interval_ms)?e:3e5;0!==t&&(this.zr=setInterval(()=>{this.refresh()},t))}}Br(e){e||rZ.error("Failed to fetch remote config from PostHog.");try{this._instance.Br(e?{ok:!0,config:e}:{ok:!1})}catch(e){rZ.error("Error applying remote config",e)}if(!1!==(null==e?void 0:e.hasFeatureFlags)&&!this._instance.config.advanced_disable_feature_flags_on_first_load)try{var t;null==(t=this._instance.featureFlags)||t.ensureFlagsLoaded()}catch(e){rZ.error("Error loading feature flags",e)}}}var r1=Uint8Array,r2=Uint16Array,r3=Uint32Array,r5=new r1([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),r8=new r1([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),r6=new r1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r4=function(e,t){for(var i=new r2(31),s=0;31>s;++s)i[s]=t+=1<<e[s-1];var r=new r3(i[30]);for(s=1;30>s;++s)for(var n=i[s];i[s+1]>n;++n)r[n]=n-i[s]<<5|s;return[i,r]},r9=r4(r5,2),r7=r9[1];r9[0][28]=258,r7[258]=28;for(var ne=r4(r8,0)[1],nt=new r2(32768),ni=0;32768>ni;++ni){var ns=(43690&ni)>>>1|(21845&ni)<<1;nt[ni]=((65280&(ns=(61680&(ns=(52428&ns)>>>2|(13107&ns)<<2))>>>4|(3855&ns)<<4))>>>8|(255&ns)<<8)>>>1}var nr=function(e,t,i){for(var s=e.length,r=0,n=new r2(t);s>r;++r)++n[e[r]-1];var a,o=new r2(t);for(r=0;t>r;++r)o[r]=o[r-1]+n[r-1]<<1;if(i){a=new r2(1<<t);var l=15-t;for(r=0;s>r;++r)if(e[r])for(var u=r<<4|e[r],h=t-e[r],c=o[e[r]-1]++<<h,d=c|(1<<h)-1;d>=c;++c)a[nt[c]>>>l]=u}else for(a=new r2(s),r=0;s>r;++r)a[r]=nt[o[e[r]-1]++]>>>15-e[r];return a},nn=new r1(288);for(ni=0;144>ni;++ni)nn[ni]=8;for(ni=144;256>ni;++ni)nn[ni]=9;for(ni=256;280>ni;++ni)nn[ni]=7;for(ni=280;288>ni;++ni)nn[ni]=8;var na=new r1(32);for(ni=0;32>ni;++ni)na[ni]=5;var no=nr(nn,9,0),nl=nr(na,5,0),nu=function(e){return(e/8|0)+(7&e&&1)},nh=function(e,t,i){(null==i||i>e.length)&&(i=e.length);var s=new(e instanceof r2?r2:e instanceof r3?r3:r1)(i-t);return s.set(e.subarray(t,i)),s},nc=function(e,t,i){var s=t/8|0;e[s]|=i<<=7&t,e[s+1]|=i>>>8},nd=function(e,t,i){var s=t/8|0;e[s]|=i<<=7&t,e[s+1]|=i>>>8,e[s+2]|=i>>>16},np=function(e,t){for(var i=[],s=0;e.length>s;++s)e[s]&&i.push({s:s,f:e[s]});var r=i.length,n=i.slice();if(!r)return[new r1(0),0];if(1==r){var a=new r1(i[0].s+1);return a[i[0].s]=1,[a,1]}i.sort(function(e,t){return e.f-t.f}),i.push({s:-1,f:25001});var o=i[0],l=i[1],u=0,h=1,c=2;for(i[0]={s:-1,f:o.f+l.f,l:o,r:l};h!=r-1;)o=i[i[c].f>i[u].f?u++:c++],l=i[u!=h&&i[c].f>i[u].f?u++:c++],i[h++]={s:-1,f:o.f+l.f,l:o,r:l};var d=n[0].s;for(s=1;r>s;++s)n[s].s>d&&(d=n[s].s);var p=new r2(d+1),v=nv(i[h-1],p,0);if(v>t){s=0;var g=0,f=v-t,_=1<<f;for(n.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r>s;++s){var m=n[s].s;if(t>=p[m])break;g+=_-(1<<v-p[m]),p[m]=t}for(g>>>=f;g>0;){var y=n[s].s;t>p[y]?g-=1<<t-p[y]++-1:++s}for(;s>=0&&g;--s){var b=n[s].s;p[b]==t&&(--p[b],++g)}v=t}return[new r1(p),v]},nv=function(e,t,i){return -1==e.s?Math.max(nv(e.l,t,i+1),nv(e.r,t,i+1)):t[e.s]=i},ng=function(e){for(var t=e.length;t&&!e[--t];);for(var i=new r2(++t),s=0,r=e[0],n=1,a=function(e){i[s++]=e},o=1;t>=o;++o)if(e[o]==r&&o!=t)++n;else{if(!r&&n>2){for(;n>138;n-=138)a(32754);n>2&&(a(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(a(r),--n;n>6;n-=6)a(8304);n>2&&(a(n-3<<5|8208),n=0)}for(;n--;)a(r);n=1,r=e[o]}return[i.subarray(0,s),t]},nf=function(e,t){for(var i=0,s=0;t.length>s;++s)i+=e[s]*t[s];return i},n_=function(e,t,i){var s=i.length,r=nu(t+2);e[r]=255&s,e[r+1]=s>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var n=0;s>n;++n)e[r+n+4]=i[n];return 8*(r+4+s)},nm=function(e,t,i,s,r,n,a,o,l,u,h){nc(t,h++,i),++r[256];for(var c=np(r,15),d=c[0],p=c[1],v=np(n,15),g=v[0],f=v[1],_=ng(d),m=_[0],y=_[1],b=ng(g),w=b[0],x=b[1],k=new r2(19),E=0;m.length>E;++E)k[31&m[E]]++;for(E=0;w.length>E;++E)k[31&w[E]]++;for(var S=np(k,7),P=S[0],T=S[1],F=19;F>4&&!P[r6[F-1]];--F);var $,I,C,M,R=u+5<<3,O=nf(r,nn)+nf(n,na)+a,A=nf(r,d)+nf(n,g)+a+14+3*F+nf(k,P)+(2*k[16]+3*k[17]+7*k[18]);if(O>=R&&A>=R)return n_(t,h,e.subarray(l,l+u));if(nc(t,h,1+(O>A)),h+=2,O>A){$=nr(d,p,0),I=d,C=nr(g,f,0),M=g;var L=nr(P,T,0);for(nc(t,h,y-257),nc(t,h+5,x-1),nc(t,h+10,F-4),h+=14,E=0;F>E;++E)nc(t,h+3*E,P[r6[E]]);h+=3*F;for(var D=[m,w],N=0;2>N;++N){var q=D[N];for(E=0;q.length>E;++E)nc(t,h,L[j=31&q[E]]),h+=P[j],j>15&&(nc(t,h,q[E]>>>5&127),h+=q[E]>>>12)}}else $=no,I=nn,C=nl,M=na;for(E=0;o>E;++E)if(s[E]>255){nd(t,h,$[257+(j=s[E]>>>18&31)]),h+=I[j+257],j>7&&(nc(t,h,s[E]>>>23&31),h+=r5[j]);var j,B=31&s[E];nd(t,h,C[B]),h+=M[B],B>3&&(nd(t,h,s[E]>>>5&8191),h+=r8[B])}else nd(t,h,$[s[E]]),h+=I[s[E]];return nd(t,h,$[256]),h+I[256]},ny=new r3([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),nb=function(){for(var e=new r3(256),t=0;256>t;++t){for(var i=t,s=9;--s;)i=(1&i&&0xedb88320)^i>>>1;e[t]=i}return e}(),nw=function(e,t,i){for(;i;++t)e[t]=i,i>>>=8},nx=!!d||!!c,nk="text/plain",nE=!1,nS=(e,t)=>{var i=e.split("#"),s=i[1],r=i[0].split("?"),n=r[0],a=r[1];if(!a)return e;var o=a.split("&").filter(e=>e.split("=")[0]!==t).join("&");return n+(o?"?"+o:"")+(s?"#"+s:"")},nP=function(e,t,i){void 0===i&&(i=!0);var s,r,n,a,o,l=e.split("?"),u=l[0],h=l[1],c=x({},t),d=null!=(o=null==h?void 0:h.split("&").map(e=>{var t,s=e.split("="),r=s[0],n=i&&null!=(t=c[r])?t:s[1];return delete c[r],r+"="+n}))?o:[],p=(void 0===s&&(s="&"),a=[],st(c,function(e,t){ei(e)||ei(t)||"undefined"===t||(r=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(t),a[a.length]=n+"="+r)}),a.join(s));return p&&d.push(p),d.length>0?u+"?"+d.join("&"):u},nT=e=>{if(e.Vr)return e.Vr;var t=e.data,i=e.compression;if(t){if(i===rH){var s,r,n,a,o,l,u,h,c=(s=function(e){var t=e.length;if("u">typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new r1(e.length+(e.length>>>1)),s=0,r=function(e){i[s++]=e},n=0;t>n;++n){if(s+5>i.length){var a=new r1(s+8+(t-n<<1));a.set(i),i=a}var o=e.charCodeAt(n);128>o?r(o):(2048>o?r(192|o>>>6):(o>55295&&57344>o?(r(240|(o=65536+(1047552&o)|1023&e.charCodeAt(++n))>>>18),r(128|o>>>12&63)):r(224|o>>>12),r(128|o>>>6&63)),r(128|63&o))}return nh(i,0,s)}(r_(t)),r={mtime:0},n=0xffffffff,a={p(e){for(var t=n,i=0;e.length>i;++i)t=nb[255&t^e[i]]^t>>>8;n=t},d:()=>0xffffffff^n},o=s.length,a.p(s),h=(l=10+(r.filename&&r.filename.length+1||0),u=function(e,t,i,s){var r=e.length,n=new r1(s+r+5*(1+Math.floor(r/7e3))+8),a=n.subarray(s,n.length-8),o=0;if(!t||8>r)for(var l=0;r>=l;l+=65535){var u=l+65535;r>u?o=n_(a,o,e.subarray(l,u)):(a[l]=!0,o=n_(a,o,e.subarray(l,r)))}else{for(var h=ny[t-1],c=h>>>13,d=8191&h,p=(1<<i)-1,v=new r2(32768),g=new r2(p+1),f=Math.ceil(i/3),_=2*f,m=function(t){return(e[t]^e[t+1]<<f^e[t+2]<<_)&p},y=new r3(25e3),b=new r2(288),w=new r2(32),x=0,k=0,E=(l=0,0),S=0,P=0;r>l;++l){var T=m(l),F=32767&l,$=g[T];if(v[F]=$,g[T]=F,l>=S){var I=r-l;if((x>7e3||E>24576)&&I>423){o=nm(e,a,0,y,b,w,k,E,P,l-P,o),E=x=k=0,P=l;for(var C=0;286>C;++C)b[C]=0;for(C=0;30>C;++C)w[C]=0}var M=2,R=0,O=d,A=F-$&32767;if(I>2&&T==m(l-A))for(var L=Math.min(c,I)-1,D=Math.min(32767,l),N=Math.min(258,I);D>=A&&--O&&F!=$;){if(e[l+M]==e[l+M-A]){for(var q=0;N>q&&e[l+q]==e[l+q-A];++q);if(q>M){if(M=q,R=A,q>L)break;var j=Math.min(A,q-2),B=0;for(C=0;j>C;++C){var z=l-A+C+32768&32767,H=z-v[z]+32768&32767;H>B&&(B=H,$=z)}}}A+=(F=$)-($=v[F])+32768&32767}if(R){y[E++]=0x10000000|r7[M]<<18|ne[R];var U=31&r7[M],G=31&ne[R];k+=r5[U]+r8[G],++b[257+U],++w[G],S=l+M,++x}else y[E++]=e[l],++b[e[l]]}}o=nm(e,a,!0,y,b,w,k,E,P,l-P,o)}return nh(n,0,s+nu(o)+8)}(s,null==r.level?6:r.level,null==r.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+r.mem,l)).length,function(e,t){var i=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:2*(9==t.level),e[9]=3,0!=t.mtime&&nw(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),i){e[3]=8;for(var s=0;i.length>=s;++s)e[s+10]=i.charCodeAt(s)}}(u,r),nw(u,h-8,a.d()),nw(u,h-4,o),u);return{contentType:nk,body:c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength),estimatedSize:c.byteLength}}if(i===rU){let e;var d,p="data="+encodeURIComponent("string"==typeof(e=(d=r_(t))?btoa(encodeURIComponent(d).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(t,16)))):d)?e:r_(e));return{contentType:"application/x-www-form-urlencoded",body:p,estimatedSize:new Blob([p]).size}}var v=r_(t);return{contentType:"application/json",body:v,estimatedSize:new Blob([v]).size}}},nF=e=>{var t,i,s=()=>"sendBeacon"===e.transport?{url:nP(e.url,{compression:rU}),encodedBody:nT(x({},e,{compression:rU,Vr:void 0}))}:{url:nS(e.url,"compression"),encodedBody:nT(x({},e,{compression:void 0,Vr:void 0}))};try{t=nT(e)}catch(t){if(N(e.compression,ry(e.url,"compression")))return t2.error("Failed to gzip request body, sending uncompressed payload",t),s();throw t}return!(t&&N(e.compression,ry(e.url,"compression")))||((i=t.body)instanceof ArrayBuffer?D(new Uint8Array(i)):ArrayBuffer.isView(i)&&D(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)))?{url:e.url,encodedBody:t}:(nE=!0,s())},n$=e=>{try{return nF(e)}catch(t){return t2.error(t),void(null==e.callback||e.callback({statusCode:0,error:t}))}},nI=(s=w(function*(e){var t=r_(e.data),i=yield function(e,t,i){return z.apply(this,arguments)}(t,y.DEBUG,{rethrow:!0});if(!i)return e;var s=yield i.arrayBuffer();return x({},e,{Vr:{contentType:nk,body:s,estimatedSize:s.byteLength}})}),function(e){return s.apply(this,arguments)}),nC=/Failed to fetch|NetworkError|Load failed/i,nM=e=>{var t=n$(e);if(t){var i,s=t.url,r=t.encodedBody,n=null!=r?r:{},a=n.contentType,o=n.body,l=n.estimatedSize,u=new Headers;st(e.headers,function(e,t){u.append(t,e)}),a&&u.append("Content-Type",a);var h=null,d=!1;if(p){var v=new p;h={signal:v.signal,timeout:setTimeout(()=>{var t,i;d=!0,v.abort(((i=Error("PostHog request timed out"+((t=e.timeout)?" after "+t+"ms":""))).name="AbortError",i))},e.timeout)}}var g=t=>{d&&"AbortError"===(null==t?void 0:t.name)||"TypeError"===(null==t?void 0:t.name)&&nC.test((null==t?void 0:t.message)||"")?t2.warn(t):t2.error(t),null==e.callback||e.callback({statusCode:0,error:t})};try{c(s,x({method:(null==e?void 0:e.method)||"GET",headers:u,keepalive:"POST"===e.method&&!e.Wr&&52428.8>(l||0),body:o,signal:null==(i=h)?void 0:i.signal},e.fetchOptions)).then(t=>t.text().then(i=>{var s={statusCode:t.status,text:i};if(200===t.status)try{s.json=JSON.parse(i)}catch(e){t2.error(e)}null==e.callback||e.callback(s)})).catch(g).finally(()=>h?clearTimeout(h.timeout):null)}catch(e){h&&clearTimeout(h.timeout),g(e)}}},nR=e=>{try{var t,i=nF(e),s=i.url,r=i.encodedBody,n=null!=r?r:{},a=n.body,o=n.estimatedSize;if(!a)return;var u=a instanceof Blob?a:new Blob([a],{type:n.contentType});if(l.sendBeacon(s,u))return;var h=Q(e.data)?e.data:null==(t=e.data)?void 0:t.batch;if(Q(h)&&h.length>1&&(null!=o?o:0)>16384){var c=Math.ceil(h.length/2),d=t=>Q(e.data)?t:x({},e.data,{batch:t});return nR(x({},e,{data:d(h.slice(0,c))})),void nR(x({},e,{data:d(h.slice(c))}))}t2.warn("Beacon of ~"+(null!=o?o:0)+" bytes was rejected by the browser, falling back to fetch"),nM(x({},e,{Wr:!0}))}catch(e){t2.warn("Beacon send failed",e)}},nO=(e,t,i,s)=>{var r="query"===s?"POST"===t?"sent_at":"_":void 0;return nP(i===rH?nS(e,"compression"):e,x({},r?{[r]:Date.now().toString()}:{},i===rH?{}:{compression:i}))},nA=[];c&&nA.push({transport:"fetch",method:nM}),d&&nA.push({transport:"XHR",method(e){var t=n$(e);if(t){var i=new d,s=t.encodedBody;i.open(e.method||"GET",t.url,!0);var r=null!=s?s:{},n=r.contentType,a=r.body;st(e.headers,function(e,t){i.setRequestHeader(t,e)}),n&&i.setRequestHeader("Content-Type",n),e.timeout&&(i.timeout=e.timeout),i.onreadystatechange=()=>{if(4===i.readyState){var t={statusCode:i.status,text:i.responseText};if(200===i.status)try{t.json=JSON.parse(i.responseText)}catch(e){}null==e.callback||e.callback(t)}},i.send(a)}}}),null!=l&&l.sendBeacon&&nA.push({transport:"sendBeacon",method:nR});class nL{constructor(e,t){this.Zr=!0,this.Gr=[],this.Qr=e_((null==t?void 0:t.flush_interval_ms)||3e3,250,5e3,t2.createLogger("flush interval"),3e3),this.Jr=e}enqueue(e){this.Gr.push(e),this.Kr||this.Yr()}unload(){this.Xr();var e=Object.values(this.Gr.length>0?this.ti():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.ei(x({},e,{transport:"sendBeacon"}))})}enable(){this.Zr=!1,this.Yr()}Yr(){var e=this;this.Zr||(this.Kr=setTimeout(()=>{if(this.Xr(),this.Gr.length>0){var t=this.ti();for(var i in t)!function(){var s=t[i],r=(new Date).getTime();s.data&&Q(s.data)&&st(s.data,e=>{e.offset=Math.abs(e.timestamp-r),delete e.timestamp}),e.ei(s)}()}},this.Qr))}ei(e){try{this.Jr(e)}catch(e){t2.error(e)}}Xr(){clearTimeout(this.Kr),this.Kr=void 0}ti(){var e={};return st(this.Gr,t=>{var i,s=(t?t.batchKey:null)||t.url;ei(e[s])&&(e[s]=x({},t,{data:[]})),null==(i=e[s].data)||i.push(t.data)}),this.Gr=[],e}}var nD=["retriesPerformedSoFar"];class nN{constructor(e){this.ri=!1,this.ii=3e3,this.Gr=[],this._instance=e,this.Gr=[],this.ni=!0,!ei(a)&&"onLine"in a.navigator&&(this.ni=a.navigator.onLine,this.si=()=>{this.ni=!0,this.oi()},this.ai=()=>{this.ni=!1},sl(a,"online",this.si),sl(a,"offline",this.ai))}get length(){return this.Gr.length}retriableRequest(e){var t=e.retriesPerformedSoFar,i=k(e,nD);el(t)&&(i.url=nP(i.url,{retry_count:t})),this._instance._send_request(x({},i,{callback:e=>{if(200!==e.statusCode&&(400>e.statusCode||e.statusCode>=500)){if((0===e.statusCode?3:10)>(null!=t?t:0))return void this.Ot(x({retriesPerformedSoFar:t},i));0===e.statusCode&&t2.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(null!=t?t:0)+" retries.")}null==i.callback||i.callback(e)}}))}Ot(e){var t,i,s=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=s+1;var r=Math.ceil((i=Math.min(18e5,t=3e3*Math.pow(2,s)))+(Math.random()-.5)*(i-t/2)),n=Date.now()+r;this.Gr.push({retryAt:n,requestOptions:e});var a="Enqueued failed request for retry in "+r;navigator.onLine||(a+=" (Browser is offline)"),t2.warn(a),this.ri||(this.ri=!0,this.li())}li(){(this.ui&&clearTimeout(this.ui),0===this.Gr.length)?(this.ri=!1,this.ui=void 0):this.ui=setTimeout(()=>{this.ni&&this.Gr.length>0&&this.oi(),this.li()},this.ii)}oi(){var e=Date.now(),t=[],i=this.Gr.filter(i=>e>i.retryAt||(t.push(i),!1));if(this.Gr=t,i.length>0)for(var s of i)this.retriableRequest(s.requestOptions)}unload(){for(var e of(this.ui&&(clearTimeout(this.ui),this.ui=void 0),this.ri=!1,ei(a)||(this.si&&(a.removeEventListener("online",this.si),this.si=void 0),this.ai&&(a.removeEventListener("offline",this.ai),this.ai=void 0)),this.Gr)){var t=e.requestOptions;try{this._instance._send_request(x({},t,{transport:"sendBeacon"}))}catch(e){t2.error(e)}}this.Gr=[]}}class nq{constructor(e){this.hi=()=>{this.di||(this.di={});var e,t,i,s,r=this.scrollElement(),n=this.scrollY(),a=r?Math.max(0,r.scrollHeight-r.clientHeight):0,o=n+((null==r?void 0:r.clientHeight)||0),l=(null==r?void 0:r.scrollHeight)||0;this.di.lastScrollY=Math.ceil(n),this.di.maxScrollY=Math.max(n,null!=(e=this.di.maxScrollY)?e:0),this.di.maxScrollHeight=Math.max(a,null!=(t=this.di.maxScrollHeight)?t:0),this.di.lastContentY=o,this.di.maxContentY=Math.max(o,null!=(i=this.di.maxContentY)?i:0),this.di.maxContentHeight=Math.max(l,null!=(s=this.di.maxContentHeight)?s:0)},this._instance=e}get ci(){return this._instance.config.scroll_root_selector}getContext(){return this.di}resetContext(){var e=this.di;return setTimeout(this.hi,0),e}startMeasuringScrollPosition(){sl(a,"scroll",this.hi,{capture:!0}),sl(a,"scrollend",this.hi,{capture:!0}),sl(a,"resize",this.hi)}scrollElement(){if(!this.ci)return null==a?void 0:a.document.documentElement;for(var e of Q(this.ci)?this.ci:[this.ci]){var t=null==a?void 0:a.document.querySelector(e);if(t)return t}}vi(e){if(this.ci){var t=this.scrollElement();return t&&t["y"===e?"scrollTop":"scrollLeft"]||0}return a?"y"===e?a.scrollY||a.pageYOffset||a.document.documentElement.scrollTop||0:a.scrollX||a.pageXOffset||a.document.documentElement.scrollLeft||0:0}scrollY(){return this.vi("y")}scrollX(){return this.vi("x")}}var nj=e=>rA(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties,null==e?void 0:e.config.disable_capture_url_hashes);class nB{constructor(e,t,i,s){this.fi=e=>{var t=this.pi();if(!t||t.sessionId!==e){var i={sessionId:e,props:this.gi(this._instance)};this.mi.register({[iB]:i})}},this._instance=e,this.yi=t,this.mi=i,this.gi=s||nj,this.yi.onSessionId(this.fi)}pi(){return this.mi.props[iB]}getSetOnceProps(){var e,t=null==(e=this.pi())?void 0:e.props;return t?"r"in t?rL(t,this._instance.config.disable_capture_url_hashes):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return st(sa(this.getSetOnceProps()),(t,i)=>{"$current_url"===i&&(i="url"),e["$session_entry_"+W(i)]=t}),e}}class nz{on(e,t){return this.bi[e]||(this.bi[e]=[]),this.bi[e].push(t),()=>{this.bi[e]=this.bi[e].filter(e=>e!==t)}}emit(e,t){for(var i of this.bi[e]||[])i(t);for(var s of this.bi["*"]||[])s(e,t)}constructor(){this.bi={}}}var nH=t3("[SessionId]");class nU{on(e,t){return this.wi.on(e,t)}constructor(e,t,i){if(this.xi=null,this.ki=[],this.Si=void 0,this.Ci=!1,this.wi=new nz,this.Mi=(e,t)=>!(!el(e)||!el(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===i0)throw Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Te=e.config,this.mi=e.persistence,this.Ii=void 0,this.Ti=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Ei=t||sy,this.Ri=i||sy;var s,r=this.Te.persistence_name||this.Te.token;if(this._sessionTimeoutMs=1e3*e_(this.Te.session_idle_timeout_seconds||1800,60,36e3,nH.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Pi(),this.Oi="ph_"+r+"_window_id",this.Fi="ph_"+r+"_primary_window_exists",this.Ai()){var n=sI.F(this.Oi),a=sI.F(this.Fi);n&&!a?this.Ii=n:sI.D(this.Oi),sI.A(this.Fi,!0)}if(null!=(s=this.Te.bootstrap)&&s.sessionID)try{var o=(e=>{var t=this.Te.bootstrap.sessionID.replace(/-/g,"");if(32!==t.length)throw Error("Not a valid UUID");if("7"!==t[12])throw Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})();this.$i(this.Te.bootstrap.sessionID,(new Date).getTime(),o)}catch(e){nH.error("Invalid sessionID in bootstrap",e)}this.Li()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return ei(this.ki)&&(this.ki=[]),this.ki.push(e),this.Ti&&e(this.Ti,this.Ii),()=>{this.ki=this.ki.filter(t=>t!==e)}}Ai(){return"memory"!==this.Te.persistence&&!this.mi.yr&&sI.N()}Di(e){e!==this.Ii&&(this.Ii=e,this.Ai()&&sI.A(this.Oi,e))}Ni(){return this.Ii?this.Ii:this.Ai()?sI.F(this.Oi):null}qi(e){var t=this.xi;return!en(t)&&!en(e)&&5e3>Math.abs(e-t)}$i(e,t,i){var s=t!==this._sessionActivityTimestamp,r=e===this.Ti&&i===this._sessionStartTimestamp;this._sessionStartTimestamp=i,this._sessionActivityTimestamp=t,this.Ti=e,r&&!s||r&&this.qi(t)||(this.xi=t,this.mi.register({[im]:[t,e,i]}))}ji(){var e,t=null==(e=this.Te)?void 0:e.persistence_save_debounce_ms;return el(t)&&t>0}Bi(){this.ji()?this.mi.refreshKey(im):(this.mi.flush(),this.mi.load())}Hi(){var e;if(!en(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.xi){this.Bi();var t=this.Ui();t[1]===this.Ti&&t[2]===this._sessionStartTimestamp&&(this.xi=this._sessionActivityTimestamp,this.mi.register({[im]:[this._sessionActivityTimestamp,null!=(e=this.Ti)?e:null,this._sessionStartTimestamp]}),this.mi.flush())}}zi(){var e=this.Ui()[0];return Math.max(el(e)?e:0,el(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0)}Vi(e){return this.Bi(),this.Mi(e,this.zi())}Ui(){var e=this.mi.props[im];return Q(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.xi=null,clearTimeout(this.Wi),this.Wi=void 0,this.$i(null,null,null)}destroy(){this.Ci=!0,this.Hi(),clearTimeout(this.Wi),this.Wi=void 0,this.Si&&a&&(a.removeEventListener(i8,this.Si,{capture:!1}),this.Si=void 0),this.ki=[]}Li(){this.Si=()=>{this.Hi(),this.Ai()&&sI.D(this.Fi)},sl(a,i8,this.Si,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),this.Te.cookieless_mode===i0)throw Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var i=t||(new Date).getTime(),s=this.Ui(),r=s[1],n=s[2],a=this.zi(),o=this.Ni(),l=el(n)&&Math.abs(i-n)>864e5,u=!1,h=!1,c=!r,d=r,p=!c&&!e&&this.Mi(i,a);if(p){(p=this.Vi(i))||nH.info("cross-tab refresh kept the session alive",{sessionId:r});var v=this.Ui();r=v[1],n=v[2]}c||p||l?(r=this.Ei(),o=this.Ri(),nH.info("new session ID generated",{sessionId:r,windowId:o,changeReason:{noSessionId:c,activityTimeout:p,sessionPastMaximumLength:l}}),n=i,u=!0):(o||(o=this.Ri(),u=!0),(h=r!==d)&&(nH.info("adopted cross-tab session id",{sessionId:r,windowId:o}),u=!0));var g=el(a)&&e&&!l?a:i,f=el(n)?n:(new Date).getTime();this.Di(o),this.$i(r,g,f),e||this.Pi();var _={noSessionId:c,activityTimeout:p,sessionPastMaximumLength:l,crossTabAdoption:h};return u&&this.ki.forEach(e=>e(r,o,_)),{sessionId:r,windowId:o,sessionStartTimestamp:f,changeReason:u?_:void 0,lastActivityTimestamp:a}}Pi(){this.Ci||(clearTimeout(this.Wi),this.Wi=setTimeout(()=>{if(!this.Ci)if(this.Vi((new Date).getTime())){var e=this.Ti;this.resetSessionId(),this.wi.emit("forcedIdleReset",{idleSessionId:e})}else this.Pi()},1.1*this.sessionTimeoutMs))}}var nG=function(e,t){if(!e)return!1;var i=e.userAgent;if(i&&U(i,t))return!0;try{var s=null==e?void 0:e.userAgentData;if(null!=s&&s.brands&&s.brands.some(e=>U(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver};function nV(){return(nV=w(function*(){var e=null==l?void 0:l.userAgentData;if(null!=e&&e.getHighEntropyValues)try{var t=yield e.getHighEntropyValues(["model"]),i=null==t?void 0:t.model;return es(i)&&i.length>0?i:void 0}catch(e){return void t2.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",e)}})).apply(this,arguments)}var nW=function(e,t){if(!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}};function nJ(e,t,i){return r_({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:i})}var nX={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>nW(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!nW(t,e))),icontains:(e,t)=>t.map(nK).some(t=>e.map(nK).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(nK).every(t=>e.map(nK).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var i=parseFloat(t);return!isNaN(i)&&e.some(e=>i>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var i=parseFloat(t);return!isNaN(i)&&e.some(e=>i<parseFloat(e))})},nK=e=>e.toLowerCase();function nY(e,t){return!e||Object.entries(e).every(e=>{var i=e[1],s=null==t?void 0:t[e[0]];if(ei(s)||en(s))return!1;var r=[String(s)],n=nX[i.operator];return!!n&&n(i.values,r)})}var nQ="custom",nZ="i.posthog.com",n0=/^\/static\//;class n1{constructor(e){this.Zi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+nZ,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Zi[this.apiHost]||(this.Zi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":nQ),this.Zi[this.apiHost]}Gi(e){if(n0.test(e)){var t=this.instance.config.asset_host;if("string"==typeof t)return t.trim().replace(/\/$/,"")||void 0}}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if("assets"===e){var i=this.Gi(t);if(i)return""+i+t}if(this.region===nQ)return this.apiHost+t;var s=nZ+t;switch(e){case"assets":return"https://"+this.region+"-assets."+s;case"api":return"https://"+this.region+"."+s}}}function n2(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}var n3=t3("[Surveys]"),n5="seenSurvey_",n8=e=>{try{var t=""+n5+(e.current_iteration&&e.current_iteration>0?e.id+"_"+e.current_iteration:e.id);if(localStorage.getItem(t))return;localStorage.setItem(t,"true")}catch(e){n3.error("Failed to persist survey seen state",e)}},n6=["popover","widget","api"],n4={ignoreConditions:!1,ignoreDelay:!1,displayType:rK},n9=t3("[PostHog ExternalIntegrations]"),n7={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class ae{constructor(e){this._instance=e}tr(e,t){var i;null==(i=m.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,e,e=>{if(e)return n9.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e,t=this;for(var i of Object.entries(null!=(e=this._instance.config.integrations)?e:{}))!function(){var e,s,r,n=i[0],a=i[1];!a||null!=(e=m.__PosthogExtensions__)&&null!=(e=e.integrations)&&e[n]||t.tr(n7[n],()=>{var e;null==(e=m.__PosthogExtensions__)||null==(e=e.integrations)||null==(e=e[n])||e.start(t._instance)}),!a&&null!=(s=m.__PosthogExtensions__)&&null!=(s=s.integrations)&&s[n]&&(null==(r=m.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[n])||r.stop())}()}}class at{constructor(e,t){this.it=e,this.Qi=t,this.Ji=new Map,this.Ki=!1}add(e){var t=this;return w(function*(){if(t.Ki)throw Error("Cannot add an extension to a disposed ExtensionRuntime");if(t.Ji.has(e.name))throw Error('Browser extension "'+e.name+'" is already registered');t.Ji.set(e.name,e);try{var i=e.setup(t.Qi);i&&(yield i)}catch(i){var s=t.Ji.get(e.name)===e;s&&t.Ji.delete(e.name),t.it.error('Failed to set up browser extension "'+e.name+'"',i),s&&t.Yi(e)}})()}dispose(){if(!this.Ki){this.Ki=!0;var e=Array.from(this.Ji.values()).reverse();for(var t of(this.Ji.clear(),e))this.Yi(t)}}Yi(e){try{var t=null==e.dispose?void 0:e.dispose();t&&Z(t.then)&&t.then(void 0,t=>{this.it.error('Failed to dispose browser extension "'+e.name+'"',t)})}catch(t){this.it.error('Failed to dispose browser extension "'+e.name+'"',t)}}}class ai{constructor(e){this._instance=e}get(e){var t;return null==(t=this._instance.persistence)?void 0:t.get_property(e)}set(e,t){var i;null==(i=this._instance.persistence)||i.set_property(e,t)}remove(e){var t;null==(t=this._instance.persistence)||t.unregister(e)}}var as="extensionsRemoteConfig";class ar{constructor(e){this.Ki=!1,this.instance=e,this.it=t2.createLogger("[BrowserExtensions]"),this.Xi=e.tn,this.kv=new ai(e),this.onEvent=e=>rz(this.instance.on("eventCaptured",t=>{try{e({event:t.event,properties:t.properties})}catch(e){this.it.error("Browser extension event listener failed",e)}})),this.onRemoteConfig=e=>{if(this.Ki)return rz(()=>{});var t=t=>{try{e(t)}catch(e){this.it.error("Browser extension remote config listener failed",e)}},i=this.instance.en.on(as,t);return this.Xi&&t(this.Xi),rz(i)},this.rn=new at(this.it,this)}get logger(){return this.it}get distinctId(){return this.instance.get_distinct_id()}get anonymousId(){var e;return null!=(e=this.instance.get_property(t4))?e:this.distinctId}get groups(){return this.instance.getGroups()}get session(){try{var e,t,i,s,r=null==(e=this.instance.sessionManager)?void 0:e.checkAndGetSessionAndWindowId(!0);return{sessionId:null!=(t=null==r?void 0:r.sessionId)?t:"",windowId:null!=(i=null==r?void 0:r.windowId)?i:"",sessionStartTimestamp:null!=(s=null==r?void 0:r.sessionStartTimestamp)?s:0}}catch(e){return{sessionId:"",windowId:"",sessionStartTimestamp:0}}}get projectToken(){return this.instance.config.token}add(e){return this.rn.add(e)}capture(e,t,i){var s=this;return w(function*(){i?s.instance.capture(e,t,{timestamp:i.timestamp,uuid:i.uuid,$set:i.set,$set_once:i.setOnce}):s.instance.capture(e,t)})()}registerDynamicEventProperties(e){return rz(this.instance.nn(e))}handleRemoteConfig(e){this.Ki||(this.Xi=e,this.instance.en.emit(as,e))}sendRequest(e,t){var i=this;return w(function*(){void 0===t&&(t={});var s,r=i.instance.requestRouter.endpointFor(null!=(s=t.target)?s:"api",e),n={method:t.method,url:t.query?nP(r,t.query):r,data:t.body,headers:t.headers,timeout:t.timeoutMs,fireCallbackOnDrop:!0,transport:t.transport};return"sendBeacon"===t.transport?(i.instance._send_request(n),{statusCode:202}):new Promise(e=>{n.callback=e,i.instance._send_request(n)})})()}dispose(){this.Ki||(this.Ki=!0,this.rn.dispose())}}var an={},aa=0,ao=()=>{},al='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',au="Surveys module not available",ah="sanitize_properties is deprecated. Use before_send instead",ac="Invalid value for property_denylist config: ",ad=["token","distinct_id",iJ],ap="posthog",av=!nx&&-1===(null==g?void 0:g.indexOf("MSIE"))&&-1===(null==g?void 0:g.indexOf("Mozilla")),ag=e=>{var t;return x({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:function(e){var t=null==e?void 0:e.hostname;if(!es(t))return!1;var i=t.split(".").slice(-2).join(".");for(var s of so)if(i===s)return!1;return!0}(null==u?void 0:u.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:ao,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:h&&es(null==h?void 0:h.search)&&-1!==h.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==a||null==(t=a.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){t2.error("Bad HTTP status: "+e.statusCode+" "+e.text)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:i3,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:ao},{rageclick:e&&e>="2026-05-30"?{content_ignorelist:sK,ignore_text_selection:!0}:!e||"2025-11-30">e||{content_ignorelist:!0},capture_pageview:!e||"2025-05-24">e||"history_change",session_recording:e&&e>="2026-06-25"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6},streamNetworkBody:!0}:e&&e>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:e&&e>="2026-05-30"?250:0,split_storage:!(!e||"2026-05-30">e),detect_google_search_app:!(!e||"2026-05-30">e),disable_capture_url_hashes:!(!e||"2026-06-25">e)})},af=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],a_=e=>{var t={};for(var i of af){var s=i[0],r=i[1];ei(e[s])||(t[r]=e[s])}var n=si({},t,e),a=e.__preview_external_dependency_versioned_paths;return ei(a)||(ei(e.strict_script_versioning)&&(n.strict_script_versioning=!!a),es(a)&&ei(e.asset_host)&&(n.asset_host=a)),Q(e.property_blacklist)&&(ei(e.property_denylist)?n.property_denylist=e.property_blacklist:Q(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:t2.error(ac+e.property_denylist)),n};class am{constructor(){this.__forceAllowLocalhost=!1}get sn(){return this.__forceAllowLocalhost}set sn(e){t2.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class ay{an(e,t){if(e){var i=this.Ji.indexOf(e);-1!==i&&this.Ji.splice(i,1)}return this.Ji.push(t),null==t.initialize||t.initialize(),t}ln(){return this.config.cookieless_mode===i0||this.config.cookieless_mode===iZ&&this.consent.isRejected()}get decideEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}get flagsEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}constructor(){this.webPerformance=new am,this.un=!1,this.version=y.LIB_VERSION,this.en=new nz,this.Ji=[],this.hn=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=ag(),this.SentryIntegration=rc,this.sentryIntegration=e=>{var t;return t=rh(this,e),{name:ru,processEvent:e=>t(e)}},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.dn=!1,this.cn=null,this.vn=null,this.fn=null,this.scrollManager=new nq(this),this.pageViewManager=new rd(this),this.rateLimiter=new rQ(this),this.requestRouter=new n1(this),this.consent=new sC(this),this.externalIntegrations=new ae(this);var e,t=null!=(e=ay.__defaultExtensionClasses)?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.metrics=t.metrics&&new t.metrics(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,i)=>{var s=es(e)?{[e]:t}:e;this.setPersonProperties(s),null==i||i({})},set_once:(e,t,i)=>{var s=es(e)?{[e]:t}:e;this.setPersonProperties(void 0,s),null==i||i({})}},this.on("eventCaptured",e=>t2.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,i){if(i&&i!==ap){var s,r=null!=(s=an[i])?s:new ay;return r._init(e,t,i),an[i]=r,an[ap][i]=r,r}return this._init(e,t,i)}_init(e,t,i){void 0===t&&(t={});var s,r,n=es(e)?e.trim():"";if(!n)return t2.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config=ag(t.defaults),t.debug=this.pn(t.debug),this.gn=t,this.mn=[],t.person_profiles?this.vn=t.person_profiles:t.process_person&&(this.vn=t.process_person);var o=ag(t.defaults),l=a_(t),u=si({},o,l,{name:i,token:n});ee(o.rageclick)&&ee(l.rageclick)&&(u.rageclick=si({},o.rageclick,l.rageclick)),ee(o.session_recording)&&ee(l.session_recording)&&(u.session_recording=si({},o.session_recording,l.session_recording)),this.set_config(u),this.config.on_xhr_error&&t2.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:rH;var h=this.yn();this.persistence=new rB(this.config,h),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new rB(x({},this.config,{persistence:"sessionStorage"}),h,!1);var c=x({},this.persistence.props),d=x({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.bn=new nL(e=>this._n(e),this.config.request_queue_config),this.wn=new nN(this),this.__request_queue=[];var p=this.ln();if(p||(this.sessionManager=new nU(this),this.sessionPropsManager=new nB(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(t2.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.xn(p)},0)):(t2.info("Initializing extensions synchronously"),this.xn(p)),y.DEBUG=y.DEBUG||this.config.debug,y.DEBUG&&t2.info("Starting in debug mode",{this:this,config:t,thisC:x({},this.config),p:c,s:d}),!this.config.identity_distinct_id||null!=(s=t.bootstrap)&&s.distinctID||(t.bootstrap=x({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),void 0!==(null==(r=t.bootstrap)?void 0:r.distinctID)){var v=t.bootstrap.distinctID,g=this.get_distinct_id(),f=this.persistence.get_property(ij);if(t.bootstrap.isIdentifiedID&&null!=g&&g!==v&&f===i1)this.identify(v);else if(t.bootstrap.isIdentifiedID&&null!=g&&g!==v&&f===i2)t2.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var _=this.config.get_device_id(sy()),m=t.bootstrap.isIdentifiedID?_:v;this.persistence.set_property(ij,t.bootstrap.isIdentifiedID?i2:i1),this.register({distinct_id:v,$device_id:m})}}if(p)this.register_once({distinct_id:iW,$device_id:null},"");else if(!this.get_distinct_id()){var b=this.config.get_device_id(sy());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_property(ij,i1)}return sl(a,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var i=e.config.segment;if(!i)return t();!function(e,t){var i=e.config.segment;if(!i)return t();var s=i=>{var s=()=>i.anonymousId()||sy();e.config.get_device_id=s,i.id()&&(e.register({distinct_id:i.id(),$device_id:s()}),e.persistence.set_property(ij,i2)),t()},r=i.user();"then"in r&&Z(r.then)?r.then(s):s(r)}(e,()=>{var s;i.register(("u">typeof Promise&&Promise.resolve||rl.warn("This browser does not have Promise support, and can not use the segment integration"),s=(t,i)=>{if(!i)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(rl.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(rl.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var s=e.calculateEventProperties(i,t.event.properties);return t.event.properties=Object.assign({},s,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>s(e,e.event.event),page:e=>s(e,i6),identify:e=>s(e,i9),screen:e=>s(e,"$screen")})).then(()=>{t()})})}(this,()=>this.kn()):this.kn(),Z(this.config._onCapture)&&this.config._onCapture!==ao&&(t2.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&t2.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||(function(){return nV.apply(this,arguments)})().then(e=>{e&&this.register({[t9]:e})}).catch(ao),this}xn(e){var t,i,s,r,n,a,o,l,u=performance.now(),h=x({},ay.__defaultExtensionClasses,this.config.__extensionClasses),c=[];h.featureFlags&&this.Ji.push(this.featureFlags=null!=(t=this.featureFlags)?t:new h.featureFlags(this)),h.exceptions&&this.Ji.push(this.exceptions=null!=(i=this.exceptions)?i:new h.exceptions(this)),h.historyAutocapture&&this.Ji.push(this.historyAutocapture=new h.historyAutocapture(this)),h.tracingHeaders&&this.Ji.push(this.tracingHeaders=new h.tracingHeaders(this)),h.siteApps&&this.Ji.push(this.siteApps=new h.siteApps(this)),h.sessionRecording&&!e&&this.Ji.push(this.sessionRecording=new h.sessionRecording(this)),this.config.disable_scroll_properties||c.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),h.autocapture&&this.Ji.push(this.autocapture=new h.autocapture(this)),h.surveys&&this.Ji.push(this.surveys=null!=(s=this.surveys)?s:new h.surveys(this)),h.logs&&this.Ji.push(this.logs=null!=(r=this.logs)?r:new h.logs(this)),h.metrics&&this.Ji.push(this.metrics=null!=(n=this.metrics)?n:new h.metrics(this)),h.conversations&&this.Ji.push(this.conversations=null!=(a=this.conversations)?a:new h.conversations(this)),h.productTours&&this.Ji.push(this.productTours=new h.productTours(this)),h.heatmaps&&this.Ji.push(this.heatmaps=new h.heatmaps(this)),h.webVitalsAutocapture&&this.Ji.push(this.webVitalsAutocapture=new h.webVitalsAutocapture(this)),h.exceptionObserver&&this.Ji.push(this.exceptionObserver=new h.exceptionObserver(this)),h.deadClicksAutocapture&&this.Ji.push(this.deadClicksAutocapture=new h.deadClicksAutocapture(this,ra)),h.toolbar&&this.Ji.push(this.toolbar=null!=(o=this.toolbar)?o:new h.toolbar(this)),h.experiments&&this.Ji.push(this.experiments=null!=(l=this.experiments)?l:new h.experiments(this)),this.Ji.forEach(e=>{e.initialize&&c.push(()=>{null==e.initialize||e.initialize()})}),c.push(()=>{if(this.Sn){var e=this.Sn;this.Sn=void 0,this.Ji.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}}),this.Cn(c,u)}Cn(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.Cn(e,t)},0);var i=e.shift();if(i)try{i()}catch(e){t2.error("Error initializing extension:",e)}}var s=Math.round(performance.now()-t);this.register_for_session({[iX]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[iK]:s}),this.config.__preview_deferred_init_extensions&&t2.info("PostHog extensions initialized ("+s+"ms)")}Br(e){var t;if(!u||!u.body)return t2.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.Br(e)},500);if(this.config.__preview_deferred_init_extensions&&(this.Sn=e),this.tn=e,this.compression=void 0,e.ok){var i,s=e.config;s.supportedCompression&&!this.config.disable_compression&&(this.compression=G(s.supportedCompression,rH)?rH:G(s.supportedCompression,rU)?rU:void 0),null!=(i=s.analytics)&&i.endpoint&&(this.analyticsDefaultEndpoint=s.analytics.endpoint)}this.set_config({person_profiles:this.vn?this.vn:i3}),null==(t=this.Mn)||t.handleRemoteConfig(e),this.Ji.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}kn(){try{this.config.loaded(this)}catch(e){t2.critical("`loaded` function failed",e)}if(this.In(),this.config.internal_or_test_user_hostname&&null!=h&&h.hostname){var e=h.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.ln())&&this.Tn()},1),this.En=new r0(this),this.En.load()}In(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.bn)||e.enable())}_dom_loaded(){this.is_capturing()&&se(this.__request_queue,e=>this._n(e)),this.__request_queue=[],this.In()}_handle_unload(){var e,t,i,s,r;null==(e=this.surveys)||null==e.handlePageUnload||e.handlePageUnload(),null==(t=this.metrics)||t.flush("sendBeacon"),this.config.request_batching?(this.Rn()&&this.capture(i4),null==(i=this.logs)||i.flushLogs("sendBeacon"),null==(s=this.bn)||s.unload(),null==(r=this.wn)||r.unload()):this.Rn()&&this.capture(i4,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded?av?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)?e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:429})):(e.transport=e.transport||this.config.api_transport,e.headers=x({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?this.compression:e.compression,(ei(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,i,s,r,n,a=x({},e);a.timeout=a.timeout||6e4;var o,l,u,h,c,d=null!=(s=a.transport)?s:"fetch";"sendBeacon"===d&&ei(a.compression)&&a.data&&(a.compression=rU),"POST"===a.method&&a.data&&("capture-body"===a.timestampMode?a.data={api_key:null!=(l=null==(c=(h=Q(o=a.data)?o:[o])[0])||null==(u=c.properties)?void 0:u.token)?l:null==c?void 0:c.token,batch:h,sent_at:(new Date).toISOString()}:"body"===a.timestampMode&&(t=a.data,void 0===i&&(i=(new Date).toISOString()),a.data=Q(t)?t.map(e=>x({},e,{sent_at:i})):x({},t,{sent_at:i}))),a.url=nO(a.url,a.method,a.compression,a.timestampMode);var p=nA.filter(e=>!a.disableTransport||!e.transport||!a.disableTransport.includes(e.transport)),g=null!=(r=null==(n=function(e){for(var t=0;e.length>t;t++)if(e[t].transport===d)return e[t]}(p))?void 0:n.method)?r:p[0].method;if(!g)throw Error("No available transport method");"sendBeacon"!==d&&a.data&&a.compression===rH&&v&&"u">typeof Promise&&!nE?nI(a).then(e=>{g(e)}).catch(t=>{q(t)?(nE=!0,g(x({},a,{compression:void 0,url:nO(e.url,e.method,void 0,e.timestampMode)}))):((e=>{if(!e||"object"!=typeof e)return!1;var t="name"in e?String(e.name):"";return q(e)||t===L})(t)&&(nE=!0),g(a))}):g(a)})(x({},e,{callback:t=>{var i,s;this.rateLimiter.checkForLimiting(t),400>t.statusCode||null==(i=(s=this.config).on_request_error)||i.call(s,t),null==e.callback||e.callback(t)}}))):e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:0}))}_n(e){this.wn?this.wn.retriableRequest(e):this._send_request(e)}_execute_array(e){aa++;try{var t,i=[],s=[],r=[];se(e,e=>{if(e)if(Q(t=e[0]))r.push(e);else if(Z(e))try{e.call(this)}catch(t){t2.error("Error executing queued PostHog call",e,t)}else Q(e)&&"alias"===t?i.push(e):Q(e)&&-1!==t.indexOf("capture")&&Z(this[t])?r.push(e):s.push(e)});var n=function(e,t){se(e,function(e){try{if(Q(e[0])){var i=t;st(e,function(e){i=i[e[0]].apply(i,e.slice(1))})}else t[e[0]].apply(t,e.slice(1))}catch(t){t2.error("Error executing queued PostHog call",e,t)}})};n(i,this),n(s,this),n(r,this)}finally{aa--}}push(e){if(aa>0&&Q(e)&&es(e[0])){var t=ay.prototype[e[0]];Z(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,i){var s,r,n,a,o,l,u;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.bn){if(this.is_capturing())if(!ei(e)&&es(e)){var h=!this.config.opt_out_useragent_filter&&this._is_bot();if(!h||this.config.__preview_capture_bot_pageviews){var c=null!=i&&i.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==c||!c.isRateLimited){if(this.hn.length>0){var d={};for(var p of this.hn.slice())try{si(d,p())}catch(e){t2.error("Failed to produce browser extension event properties",e)}t=x({},d,null!=t?t:{})}null!=(s=t)&&s.$current_url&&!es(null==(r=t)?void 0:r.$current_url)&&(t2.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==(b=t)||delete b.$current_url),"$exception"!==e||null!=i&&i.Pn||t2.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var v=new Date,g=(null==i?void 0:i.timestamp)||v,f=tp(null==i?void 0:i.uuid,sy),_={uuid:f,event:e,properties:this.calculateEventProperties(e,t||{},g,f)};e===i6&&this.config.__preview_capture_bot_pageviews&&h&&(_.event="$bot_pageview",_.properties.$browser_type="bot"),c&&(_.properties.$lib_rate_limit_remaining_tokens=c.remainingTokens);var m="$feature_flag_called"===e&&!1===_.properties.$feature_flag_has_experiment&&!0===this.get_property(iP);(null==i?void 0:i.$set)&&!m&&(_.$set=null==i?void 0:i.$set);var y=null==i?void 0:i.$unset;y&&(_.$unset=y);var b,w,k,E,S=m?void 0:this.On(null==i?void 0:i.$set_once,e!==i7,e===i9);if(S&&(_.$set_once=S),null!=i&&i._noTruncate||(a=this.config.properties_string_max_length,o=_,l=e=>es(e)?e.slice(0,a):e,u=new Set,_=function e(t,i){if(t!==Object(t))return l?l(t):t;if(!u.has(t)){var s;if(u.add(t),Q(t))s=[],se(t,t=>{s.push(e(t))});else{var r={};st(t,(t,i)=>{u.has(t)||(r[i]=e(t,i))}),s=r}return s}}(o)),_.timestamp=g,ei(null==i?void 0:i.timestamp)||(_.properties.$event_time_override_provided=!0,_.properties.$event_time_override_system_time=v),m&&(_.properties=(P=_.properties,void 0===(T=ad)&&(T=[]),F={},$=e=>{void 0!==P[e]&&(F[e]=P[e])},C.forEach($),T.forEach($),F)),e===rJ||e===rX){var P,T,F,$,I,M,R=null==(I=t)?void 0:I.$survey_id,O=null==(M=t)?void 0:M.$survey_iteration;n8({id:R,current_iteration:O}),_.$set=x({},_.$set,{[(w={id:R,current_iteration:O},E="$survey_"+(k=e===rX?"responded":"dismissed")+"/"+w.id,w.current_iteration&&w.current_iteration>0&&(E="$survey_"+k+"/"+w.id+"/"+w.current_iteration),E)]:!0})}else e===rW&&(_.$set=x({},_.$set,{$survey_last_seen_date:(new Date).toISOString()}));if("product tour shown"===e){var A,L=null==(A=t)?void 0:A.$product_tour_type;L&&(_.$set=x({},_.$set,{["$product_tour_last_seen_date/"+L]:(new Date).toISOString()}))}var D=x({},_.properties.$set,_.$set);if(et(D)||this.setPersonPropertiesForFlags(D),!ea(this.config.before_send)){var N=this.Rt(_);if(!N)return;(_=N).uuid=tp(_.uuid,sy)}this.en.emit("eventCaptured",_);var q=null!=(n=null==i?void 0:i._url)?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),j={method:"POST",url:q,data:_,compression:"best-available",timestampMode:"recordings"===(null==i?void 0:i._batchKey)||/\/s\/(?:\?|$)/.test(q)?"body":"capture-body",batchKey:null==i?void 0:i._batchKey,transport:null==i?void 0:i.transport};return!this.config.request_batching||i&&(null==i||!i._batchKey)||null!=i&&i.send_instantly?this._n(j):this.bn.enqueue(j),_}t2.critical("This capture call is ignored due to client rate limiting.")}}else t2.error("No event name provided to posthog.capture")}else t2.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}Fn(){var e;return null!=(e=this.Mn)?e:this.Mn=new ar(this)}nn(e){this.hn.push(e);var t=!0;return()=>{if(t){t=!1;var i=this.hn.indexOf(e);-1!==i&&this.hn.splice(i,1)}}}calculateEventProperties(e,t,i,s,r){if(i=i||new Date,!this.persistence||!this.sessionPersistence)return t;var n,o=r?void 0:this.persistence.remove_event_timer(e),l=x({},t);if(l.token=this.config.token,l.$config_defaults=this.config.defaults,this.ln()&&(l[iJ]=!0),"$snapshot"===e){var c=x({},this.persistence.properties(),this.sessionPersistence.properties());return l.distinct_id=c.distinct_id,(!es(l.distinct_id)&&!eo(l.distinct_id)||er(l.distinct_id))&&t2.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),l}var d,p=function(e,t,i,s){if(void 0===s&&(s=!1),!g)return{};var r,n,o,l,u,c=e?[...rS,...t||[]]:[],d=function(e){for(var t=0;th.length>t;t++){var i=th[t],s=i[1],r=i[0].exec(e),n=r&&(Z(s)?s(r,e):s);if(n)return n}return["",""]}(g),p=d[0],v=d[1],f=null!=(u="u">typeof navigator?navigator:void 0)&&u.brave?{brave:!0}:{},_={};ei(i)||(_.detectGoogleSearchApp=i);var m={},b=null==(r=navigator)||null==(r=r.userAgentData)?void 0:r.platform,w=null==(n=navigator)?void 0:n.maxTouchPoints,x=null==a||null==(o=a.screen)?void 0:o.width,k=null==a||null==(l=a.screen)?void 0:l.height,E=null==a?void 0:a.devicePixelRatio;ei(b)||(m.userAgentDataPlatform=b),ei(w)||(m.maxTouchPoints=w),ei(x)||(m.screenWidth=x),ei(k)||(m.screenHeight=k),ei(E)||(m.devicePixelRatio=E);var S,P,T,F,$,I,C=si(sa({$os:p,$os_version:v,$browser:to(g,navigator.vendor,f,_),$device:tc(g),$device_type:(I=tc(g))===ek||I===ex||"Kobo"===I||"Kindle Fire"===I||I===eZ?ew:I===ez||I===eU||I===eH||I===eK?"Console":I===eS?"Wearable":I?ey:"Android"===(null==m?void 0:m.userAgentDataPlatform)&&(null!=(P=null==m?void 0:m.maxTouchPoints)?P:0)>0?600>Math.min(null!=(T=null==m?void 0:m.screenWidth)?T:0,null!=(F=null==m?void 0:m.screenHeight)?F:0)/(null!=($=null==m?void 0:m.devicePixelRatio)?$:1)?ey:ew:"Desktop",$timezone:rD(),$timezone_offset:function(){try{return(new Date).getTimezoneOffset()}catch(e){return}}()}),{$current_url:rb(s?tv(null==h?void 0:h.href):null==h?void 0:h.href,c,rT),$host:null==h?void 0:h.host,$pathname:null==h?void 0:h.pathname,$raw_user_agent:g.length>1e3?g.substring(0,997)+"...":g,$browser_version:tu(g,navigator.vendor,f,_),$browser_language:rM(),$browser_language_prefix:"string"==typeof(S=rM())?S.split("-")[0]:void 0,$screen_height:null==a?void 0:a.screen.height,$screen_width:null==a?void 0:a.screen.width,$viewport_height:null==a?void 0:a.innerHeight,$viewport_width:null==a?void 0:a.innerWidth,$lib:y.LIB_NAME,$lib_version:y.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return y.SDK_DIST_CHANNEL&&(C.$sdk_dist_channel=y.SDK_DIST_CHANNEL),C}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){var v=this.sessionManager.checkAndGetSessionAndWindowId(r,i.getTime()),f=v.windowId;l.$session_id=v.sessionId,l.$window_id=f}this.sessionPropsManager&&si(l,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&si(l,this.sessionRecording.sdkDebugProperties),l.$sdk_debug_retry_queue_size=null==(n=this.wn)?void 0:n.length}catch(e){l.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===nQ&&(l.$lib_custom_api_host=this.config.api_host),d=e!==i6||r?e!==i4||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(i):this.pageViewManager.doPageView(i,s),l=si(l,d),e===i6&&u&&(l.title=u.title),!ei(o)){var _=i.getTime()-o;l.$duration=parseFloat((_/1e3).toFixed(3))}g&&this.config.opt_out_useragent_filter&&(l.$browser_type=this._is_bot()?"bot":"browser");var m=this.persistence.properties(),b=this.sessionPersistence.properties();st(["$referrer","$referring_domain"],e=>{e in m&&delete b[e]}),(l=si({},p,m,b,l)).$is_identified=this._isIdentified(),Q(this.config.property_denylist)?st(this.config.property_denylist,function(e){delete l[e]}):t2.error(ac+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var w=this.config.sanitize_properties;w&&(t2.error(ah),l=w(l,e));var k=this.An();return l.$process_person_profile=k,k&&!r&&this.$n("_calculate_event_properties"),l}On(e,t,i){if(void 0===t&&(t=!0),void 0===i&&(i=!1),!this.persistence||!this.An()||this.un&&!i)return e;var s,r=si({},this.persistence.get_initial_props(),(null==(s=this.sessionPropsManager)?void 0:s.getSetOnceProps())||{},e||{}),n=this.config.sanitize_properties;return n&&(t2.error(ah),r=n(r,"$set_once")),t&&(this.un=!0),et(r)?void 0:r}register(e,t){var i;null==(i=this.persistence)||i.register(e,t)}register_once(e,t,i){var s;null==(s=this.persistence)||s.register_once(e,t,i)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}Ln(e,t){this.register({[e]:t})}getFeatureFlag(e,t){var i;return null==(i=this.featureFlags)?void 0:i.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return null==(t=this.featureFlags)?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var i;return null==(i=this.featureFlags)?void 0:i.getFeatureFlagResult(e,t)}getAllFeatureFlags(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.getAllFeatureFlags())?e:[]}isFeatureEnabled(e,t){var i,s;return null!=(i=null==(s=this.featureFlags)?void 0:s.isFeatureEnabled(e,t))?i:null==t?void 0:t.defaultValue}reloadFeatureFlags(){var e;null==(e=this.featureFlags)||e.reloadFeatureFlags()}updateFlags(e,t,i){var s;null==(s=this.featureFlags)||s.updateFlags(e,t,i)}updateEarlyAccessFeatureEnrollment(e,t,i){var s;null==(s=this.featureFlags)||s.updateEarlyAccessFeatureEnrollment(e,t,i)}getEarlyAccessFeatures(e,t,i){var s;return void 0===t&&(t=!1),null==(s=this.featureFlags)?void 0:s.getEarlyAccessFeatures(e,t,i)}on(e,t){return this.en.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:au}),()=>{})}onSessionId(e){var t,i;return null!=(t=null==(i=this.sessionManager)?void 0:i.onSessionId(e))?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:au})}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:au})}renderSurvey(e,t){var i;null==(i=this.surveys)||i.renderSurvey(e,t)}displaySurvey(e,t){var i;void 0===t&&(t=n4),null==(i=this.surveys)||i.displaySurvey(e,t)}cancelPendingSurvey(e){var t;null==(t=this.surveys)||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,i;return null!=(t=null==(i=this.surveys)?void 0:i.canRenderSurvey(e))?t:{visible:!1,disabledReason:au}}canRenderSurveyAsync(e,t){var i,s;return void 0===t&&(t=!1),null!=(i=null==(s=this.surveys)?void 0:s.canRenderSurveyAsync(e,t))?i:Promise.resolve({visible:!1,disabledReason:au})}Dn(e){return!e||er(e)?(t2.critical("Unique user id has not been set in posthog.identify"),!1):e===iW?(t2.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(t2.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,t,i){if(!this.__loaded||!this.persistence)return t2.uninitializedWarning("posthog.identify");if(eo(e)&&(e=e.toString(),t2.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Dn(e)&&this.$n("posthog.identify")){var s=this.get_distinct_id();this.register({$user_id:e}),this.get_property(t4)||this.register_once({$had_persisted_distinct_id:!0,$device_id:s},""),e!==s&&e!==this.get_property(t7)&&(this.unregister(t7),this.register({distinct_id:e}));var r,n=(this.persistence.get_property(ij)||i1)===i1,a=e!==s,o=!a&&n;if(a&&n)this.persistence.set_property(ij,i2),this.setPersonPropertiesForFlags({$set:t||{},$set_once:i||{}},!1),this.capture(i9,{distinct_id:e,$anon_distinct_id:s},{$set:t||{},$set_once:i||{}}),this.fn=nJ(e,t,i),null==(r=this.featureFlags)||r.setAnonymousDistinctId(s);else if(o){this.persistence.set_property(ij,i2);var l=t||{},u=i||{};this.setPersonPropertiesForFlags({$set:l,$set_once:u},!1),this.capture("$set",{$set:l,$set_once:u}),this.fn=nJ(e,t,i)}else(t||i)&&this.setPersonProperties(t,i);a?(this.reloadFeatureFlags(),this.unregister(iL)):o&&(t||i)&&this.reloadFeatureFlags()}}setPersonProperties(e,t){if((e||t)&&this.$n("posthog.setPersonProperties")){var i=nJ(this.get_distinct_id(),e,t);this.fn!==i?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.fn=i):t2.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(e){var t,i=(Q(e)?e:[e]).filter(e=>es(e)&&e.length>0);0!==i.length&&this.$n("posthog.unsetPersonProperties")&&(null==(t=this.featureFlags)||t.unsetPersonPropertiesForFlags(i,!0),this.capture("$set",{$unset:i}),this.fn=null)}group(e,t,i){if(e&&t){var s=this.getGroups(),r=s[e]!==t;if(r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:x({},s,{[e]:t})}),r||i){var n={$group_type:e,$group_key:t};i&&(n.$group_set=i),this.capture(i7,n)}i&&this.setGroupPropertiesForFlags({[e]:i}),r&&!i&&this.reloadFeatureFlags()}else t2.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var i;void 0===t&&(t=!0),null==(i=this.featureFlags)||i.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(e){var t;void 0===e&&(e=!0),null==(t=this.featureFlags)||t.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,t){var i;void 0===t&&(t=!0),this.$n("posthog.setGroupPropertiesForFlags")&&(null==(i=this.featureFlags)||i.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;null==(t=this.featureFlags)||t.resetGroupPropertiesForFlags(e)}reset(e){if(t2.info("reset"),!this.__loaded)return t2.uninitializedWarning("posthog.reset");var t,i,s,r,n,a,o,l,u,h,c,d=this.get_property(t4),p=this.get_property(t9),v=this.get_property(ic);if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(i=this.sessionPersistence)||i.clear(),ei(v)||null==(c=this.persistence)||c.register({[ic]:v}),null==(s=this.surveys)||s.reset(),null==(r=this.En)||r.stop(),null==(n=this.featureFlags)||n.reset(),null==(a=this.conversations)||a.reset(),null==(o=this.logs)||o.reset(),null==(l=this.metrics)||l.reset(),null==(u=this.persistence)||u.set_property(ij,i1),null==(h=this.sessionManager)||h.resetSessionId(),this.fn=null,this.config.cookieless_mode===i0)this.register_once({distinct_id:iW,$device_id:null},"");else{var g=this.config.get_device_id(sy());this.register_once({distinct_id:g,$device_id:e?g:d},""),e||ei(p)||this.register({[t9]:p})}this.register({$last_posthog_reset:(new Date).toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}shutdown(e){var t=this;return w(function*(){var e,i,s,r,n,a,o;t.__loaded?(null==(e=t.En)||e.stop(),null==(i=t.Mn)||i.dispose(),null==(s=t.logs)||s.flushLogs("sendBeacon"),null==(r=t.metrics)||r.flush("sendBeacon"),null==(n=t.bn)||n.unload(),null==(a=t.wn)||a.unload(),null==(o=t.featureFlags)||o.destroy()):t2.uninitializedWarning("posthog.shutdown")})()}setIdentity(e,t){var i;this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),null==(i=this.conversations)||i.Nn()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,null==(e=this.conversations)||e.qn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!=(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=t.sessionStartTimestamp,s=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t.sessionId);if(null!=e&&e.withTimestamp&&i){var r,n=null!=(r=e.timestampLookBack)?r:10;if(!i)return s;s+="?t="+Math.max(Math.floor(((new Date).getTime()-i)/1e3)-n,0)}return s}alias(e,t){return e===this.get_property(t6)?(t2.critical("Attempting to create alias for existing People user - aborting."),-2):this.$n("posthog.alias")?(ei(t)&&(t=this.get_distinct_id()),e!==t?(this.Ln(t7,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(t2.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=x({},this.config);if(ee(e)){si(this.config,a_(e));var i,s,r,n,a,o,l,u,h,c,d,p=this.yn();null==(i=this.persistence)||i.update_config(this.config,t,p),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new rB(x({},this.config,{persistence:"sessionStorage"}),p,!1);var v=this.pn(this.config.debug);eu(v)&&(this.config.debug=v),eu(this.config.debug)&&(this.config.debug?(y.DEBUG=!0,sS.N()&&sS.A("ph_debug",!0),t2.info("set_config",{config:e,oldConfig:t,newConfig:x({},this.config)})):(y.DEBUG=!1,sS.N()&&sS.D("ph_debug"))),null==(s=this.exceptionObserver)||s.onConfigChange(),null==(r=this.exceptions)||r.onConfigChange(),null==(n=this.sessionRecording)||n.startIfEnabledOrStop(),null==(a=this.tracingHeaders)||a.startIfEnabledOrStop(),null==(o=this.autocapture)||o.startIfEnabled(),null==(l=this.heatmaps)||l.startIfEnabled(),null==(u=this.exceptionObserver)||u.startIfEnabledOrStop(),null==(h=this.deadClicksAutocapture)||h.startIfEnabledOrStop(),null==(c=this.surveys)||c.loadIfEnabled(),this.jn(),null==(d=this.externalIntegrations)||d.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){y.LIB_NAME=e,y.LIB_VERSION=t}startSessionRecording(e){var t,i,s,r,n,a=!0===e,o={sampling:a||!(null==e||!e.sampling),linked_flag:a||!(null==e||!e.linked_flag),url_trigger:a||!(null==e||!e.url_trigger),event_trigger:a||!(null==e||!e.event_trigger)};Object.values(o).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),o.sampling&&(null==(i=this.sessionRecording)||i.overrideSampling()),o.linked_flag&&(null==(s=this.sessionRecording)||s.overrideLinkedFlag()),o.url_trigger&&(null==(r=this.sessionRecording)||r.overrideTrigger("url")),o.event_trigger&&(null==(n=this.sessionRecording)||n.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){if(this.exceptions){var i=Error("PostHog syntheticException"),s=this.exceptions.buildProperties(e,{handled:!0,syntheticException:i});return this.exceptions.sendExceptionEvent(x({},s,t))}}addExceptionStep(e,t){var i;null==(i=this.exceptions)||i.addExceptionStep(e,t)}captureLog(e){var t;null==(t=this.logs)||t.captureLog(e)}get logger(){var e,t;return null!=(e=null==(t=this.logs)?void 0:t.logger)?e:ay.Bn}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,i;return null!=(t=null==(i=this.toolbar)?void 0:i.loadToolbar(e))&&t}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!=(e=this.config.name)?e:ap;return t!==ap&&(t=ap+"."+t),t}_isIdentified(){var e,t;return(null==(e=this.persistence)?void 0:e.get_property(ij))===i2||(null==(t=this.sessionPersistence)?void 0:t.get_property(ij))===i2}An(){var e,t;return!("never"===this.config.person_profiles||this.config.person_profiles===i3&&!this._isIdentified()&&et(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[t7])&&(null==(t=this.persistence)||null==(t=t.props)||!t[iV]))}Rn(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.An()||this.$n("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.$n("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}$n(e){return"never"===this.config.person_profiles?(t2.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Ln(iV,!0),!0)}yn(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==iZ)}jn(){var e,t,i,s,r=this.yn();return(null==(e=this.persistence)?void 0:e.yr)!==r&&(null==(i=this.persistence)||i.set_disabled(r)),(null==(t=this.sessionPersistence)?void 0:t.yr)!==r&&(null==(s=this.sessionPersistence)||s.set_disabled(r)),r}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==i0){if(this.ln()){this.reset(!0),null==(r=this.sessionManager)||r.destroy(),null==(n=this.pageViewManager)||n.destroy(),this.sessionManager=new nU(this),this.pageViewManager=new rd(this),this.persistence&&(this.sessionPropsManager=new nB(this,this.sessionManager,this.persistence));var i,s,r,n,a,o,l,u,h=null!=(a=null==(o=this.config.__extensionClasses)?void 0:o.sessionRecording)?a:null==(l=ay.__defaultExtensionClasses)?void 0:l.sessionRecording;h&&(this.sessionRecording=this.an(this.sessionRecording,new h(this)),this.tn&&(null==(u=this.sessionRecording)||null==u.onRemoteConfig||u.onRemoteConfig(this.tn)))}this.consent.optInOut(!0),this.jn(),this.In(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),this.config.cookieless_mode==iZ&&(null==(i=this.surveys)||i.loadIfEnabled()),(ei(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!=(s=null==e?void 0:e.captureEventName)?s:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Tn()}else t2.warn(al)}opt_out_capturing(){var e,t,i;this.config.cookieless_mode!==i0?(this.config.cookieless_mode===iZ&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.jn(),this.config.cookieless_mode===iZ&&(this.register({distinct_id:iW,$device_id:null}),null==(e=this.sessionRecording)||e.stopRecording(),this.sessionRecording=void 0,null==(t=this.sessionManager)||t.destroy(),null==(i=this.pageViewManager)||i.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.Tn(),this.In())):t2.warn(al)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return 1===e?"granted":0===e?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===i0||(this.config.cookieless_mode===iZ?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.jn()}_is_bot(){return l?nG(l,this.config.custom_blocked_useragents):void 0}Tn(){u&&("visible"===u.visibilityState?this.dn||(this.dn=!0,this.capture(i6,{title:u.title},{send_instantly:!0}),this.cn&&(u.removeEventListener(i5,this.cn),this.cn=null)):this.cn||(this.cn=this.Tn.bind(this),sl(u,i5,this.cn)))}debug(e){!1===e?(null==a||a.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==a||a.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Ur(){var e,t,i,s,r=this.gn||{};return"advanced_disable_flags"in r?!!r.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(t2.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(t="advanced_disable_decide",i=(e="advanced_disable_flags")in r&&!ea(r[e]),s=t in r&&!ea(r[t]),i?r[e]:!!s&&(t2&&t2.warn("Config field '"+t+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),r[t]))}Rt(e){if(ea(this.config.before_send))return e;var t,i=Object.keys(null!=(t=e.properties)?t:{}).filter(ec),s=Q(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var n of s){if(ea(r=n(r))){var a="Event '"+e.event+"' was rejected in beforeSend function";return eh(e.event)?t2.warn(a+". This can cause unexpected behavior."):t2.info(a),null}r.properties&&!et(r.properties)||t2.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}for(var o of i)if(r.properties&&ea(r.properties[o]))return t2.warn("Event '"+e.event+"' had its '"+o+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return r}getPageViewId(){var e;return null==(e=this.pageViewManager.ir)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,i){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(i)})}pn(e){var t=eu(e)&&!e,i=sS.N()&&"true"===sS.q("ph_debug");return!t&&(!!i||e)}}ay.__defaultExtensionClasses={},ay.Bn={trace:r=()=>{},debug:r,info:r,warn:r,error:r,fatal:r},function(e,t){for(var i=0;t.length>i;i++)e.prototype[t[i]]=sn(e.prototype[t[i]])}(ay,["identify"]);class ab{constructor(e){this.disabled=!1===e;var t=ee(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,i){if(this.disabled)return!1;var s=this.clicks[this.clicks.length-1];if(s&&Math.abs(e-s.x)+Math.abs(t-s.y)<this.thresholdPx&&this.timeoutMs>i-s.timestamp){if(this.clicks.push({x:e,y:t,timestamp:i}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:i}];return!1}}var aw="$copy_autocapture",ax=t3("[AutoCapture]");function ak(e,t){return t.length>e?t.slice(0,e)+"...":t}var aE=t3("[ExceptionAutocapture]"),aS=()=>{},aP=t3("[TracingHeaders]"),aT=t3("[Web Vitals]"),aF="disabled",a$="lazy_loading",aI="awaiting_config",aC="missing_config";t3("[SessionRecording]"),t3("[SessionRecording]");var aM="[SessionRecording]",aR=t3(aM),aO=t3("[Heatmaps]");function aA(e){return ee(e)&&"clientX"in e&&"clientY"in e&&eo(e.clientX)&&eo(e.clientY)}var aL=t3("[Product Tours]"),aD=e=>{var t;return!e.config.disable_product_tours&&!(null==(t=e.persistence)||!t.get_property(iu))},aN=["$set_once","$set"],aq=t3("[SiteApps]"),aj="Error while initializing PostHog app with config id ";function aB(e,t,i){if(ea(e))return!1;switch(i){case"exact":return e===t;case"contains":return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*"),"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class az{constructor(e){this.Hn=new nz,this.Un=(e,t)=>this.zn(e,t)&&this.Vn(e,t)&&this.Wn(e,t)&&this.Zn(e,t),this.zn=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Gn=new Set,this.Qn=new Set}init(){var e,t;ei(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,i;if(!ei(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,i;null==(t=this.Qn)||t.add(e),null==(i=e.steps)||i.forEach(e=>{var t;null==(t=this.Gn)||t.add((null==e?void 0:e.event)||"")})}),null!=(i=this._instance)&&i.autocapture)){var s,r=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&r.add(null==e?void 0:e.selector)})}),null==(s=this._instance)||s.autocapture.setElementSelectors(r)}}on(e,t){var i;null!=t&&0!=e.length&&(this.Gn.has(e)||this.Gn.has(t.event))&&this.Qn&&(null==(i=this.Qn)?void 0:i.size)>0&&this.Qn.forEach(e=>{this.Jn(t,e)&&this.Hn.emit("actionCaptured",e.name)})}Kn(e){this.onAction("actionCaptured",t=>e(t))}Jn(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var i of t.steps)if(this.Un(e,i))return!0;return!1}onAction(e,t){return this.Hn.on(e,t)}Vn(e,t){if(null!=t&&t.url){var i,s=null==e||null==(i=e.properties)?void 0:i.$current_url;if(!s||"string"!=typeof s||!aB(s,t.url,t.url_matching||"contains"))return!1}return!0}Wn(e,t){return!!this.Yn(e,t)&&!!this.Xn(e,t)&&!!this.ts(e,t)}Yn(e,t){if(null==t||!t.href)return!0;var i=this.es(e);if(i.length>0)return i.some(e=>aB(e.href,t.href,t.href_matching||"exact"));var s,r,n=(null==e||null==(s=e.properties)?void 0:s.$elements_chain)||"";return!!n&&aB((r=n.match(/(?::|")href="(.*?)"/))?r[1]:"",t.href,t.href_matching||"exact")}Xn(e,t){if(null==t||!t.text)return!0;var i=this.es(e);if(i.length>0)return i.some(e=>aB(e.text,t.text,t.text_matching||"exact")||aB(e.$el_text,t.text,t.text_matching||"exact"));var s,r,n,a,o=(null==e||null==(s=e.properties)?void 0:s.$elements_chain)||"";return!!o&&(r=function(e){for(var t,i=[],s=/(?::|")text="(.*?)"/g;!ea(t=s.exec(e));)i.includes(t[1])||i.push(t[1]);return i}(o),n=t.text,a=t.text_matching||"exact",r.some(e=>aB(e,n,a)))}ts(e,t){if(null==t||!t.selector)return!0;var i,s,r=null==e||null==(i=e.properties)?void 0:i.$element_selectors;if(null!=r&&r.includes(t.selector))return!0;var n=(null==e||null==(s=e.properties)?void 0:s.$elements_chain)||"";if(t.selector_regex&&n)try{return new RegExp(t.selector_regex).test(n)}catch(e){}return!1}es(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}Zn(e,t){return null==t||!t.properties||0===t.properties.length||nY(t.properties.reduce((e,t)=>{var i=Q(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:i,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class aH{constructor(e){var t;this.rs=[],this._instance=e,this.ns=new Map,this.ss=new Map,this.os=new Map,null==(t=this._instance)||null==t.onSessionId||t.onSessionId(e=>this.ls(e))}us(e,t){return!!e&&nY(e.propertyFilters,null==t?void 0:t.properties)}hs(e,t){var i=new Map;return e.forEach(e=>{var s;null==(s=e.conditions)||null==(s=s[t])||null==(s=s.values)||s.forEach(t=>{if(null!=t&&t.name){var s=i.get(t.name)||[];s.push(e.id),i.set(t.name,s)}})}),i}ds(e,t,i){var s=(i===rG?this.ns:this.ss).get(e),r=[];return this.cs(e=>{r=e.filter(e=>null==s?void 0:s.includes(e.id))}),r.filter(s=>{var r,n=null==(r=s.conditions)||null==(r=r[i])||null==(r=r.values)?void 0:r.find(t=>t.name===e);return this.us(n,t)})}register(e){var t;ei(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.vs(e),this.fs(e))}fs(e){var t=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(i=e.conditions)||null==(i=i.actions)||null==(i=i.values)?void 0:i.length)>0});0!==t.length&&(null==this.ps&&(this.ps=new az(this._instance),this.ps.init(),this.ps.Kn(e=>{this.onAction(e)})),t.forEach(e=>{var t,i,s,r,n;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(i=e.conditions)&&null!=(i=i.actions)&&i.values&&(null==(s=e.conditions)||null==(s=s.actions)||null==(s=s.values)?void 0:s.length)>0&&(null==(r=this.ps)||r.register(e.conditions.actions.values),null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)||n.forEach(t=>{if(t&&t.name){var i=this.os.get(t.name);i&&i.push(e.id),this.os.set(t.name,i||[e.id])}}))}))}vs(e){var t,i=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.events)&&(null==(i=e.conditions)||null==(i=i.events)||null==(i=i.values)?void 0:i.length)>0}),s=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(i=e.conditions)||null==(i=i.cancelEvents)||null==(i=i.values)?void 0:i.length)>0});0===i.length&&0===s.length||(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.ns=this.hs(e,rG),this.ss=this.hs(e,rV))}onEvent(e,t){var i,s,r=this.gs(),n=(null==t||null==(i=t.properties)?void 0:i.$survey_id)||(null==t||null==(s=t.properties)?void 0:s.$product_tour_id);if(n&&this.getActivatedIds().includes(n)){var a=this.ys(e,n);if("consume"===a)return r.info("event consumed activated item, removing it",{event:e,itemId:n}),void this.bs([n]);if("persist"===a)return r.info("shown item promoted to persisted activation",{event:e,itemId:n}),void this._s(n)}if(this.ss.has(e)){var o=this.ds(e,t,rV);o.length>0&&(r.info("cancel event matched, cancelling items",{event:e,itemsToCancel:o.map(e=>e.id)}),this.bs(o.map(e=>e.id)),o.forEach(e=>this.ws(e.id)))}if(this.ns.has(e)){r.info("event name matched",{event:e,eventPayload:t,items:this.ns.get(e)});var l=this.ds(e,t,rG);this.xs(l.map(e=>e.id))}}onAction(e){this.os.has(e)&&this.xs(this.os.get(e)||[])}xs(e){0!==e.length&&(this.rs=[...new Set([...this.rs,...e])],this.gs().info("updating activated items",{activatedItems:this.getActivatedIds()}))}_s(e){this.rs=this.rs.filter(t=>t!==e);var t=this.ks();t.includes(e)||(this.Ss([...t,e]),this.Cs())}bs(e){var t=new Set(e);this.rs=this.rs.filter(e=>!t.has(e));var i=this.Ms(),s=i.filter(e=>!t.has(e));s.length!==i.length&&(this.Ss(s),0===s.length&&this.Is())}Ms(){var e,t=this.Ts();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}ks(){var e,t,i=this.Ms();if(0===i.length)return[];var s=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[this.Es()],r=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();return r&&s===r?i:[]}Cs(){var e,t=null==(e=this._instance)||null==e.get_session_id?void 0:e.get_session_id();t&&this.Rs(t)}Is(){this.Ps()}ls(e){var t,i=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.Es()];i&&i!==e&&(this.Ms().length>0&&this.Ss([]),this.Is())}getActivatedIds(){return[...new Set([...this.ks(),...this.rs])].filter(e=>!this.Os(e))}reset(){this.rs=[],this.Ms().length>0&&this.Ss([]),this.Is()}getEventToItemsMap(){return this.ns}Fs(){return this.ps}}class aU extends aH{constructor(e){super(e)}Ts(){return iR}Es(){return iO}As(){return rW}cs(e){var t;null==(t=this._instance)||t.getSurveys(e)}ws(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}gs(){return n3}Ss(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[iR]:e})}Rs(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[iO]:e})}Ps(){var e;null==(e=this._instance)||null==(e=e.persistence)||e.unregister(iO)}Os(){return!1}ys(e,t){var i,s,r;return this.cs(e=>{r=e.find(e=>e.id===t)}),!r||n2(i=r)&&!(null==(s=i.conditions)||null==(s=s.events)||!s.repeatedActivation)||"always"===i.schedule?e===rW?"consume":"ignore":e===rW?"persist":e===rJ||e===rX?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var aG="SDK is not enabled or survey functionality is not yet loaded",aV="Disabled. Not loading surveys.",aW=null!=a&&a.location?rw(a.location.hash,"__posthog")||rw(location.hash,"state"):null,aJ="_postHogToolbarParams",aX=t3("[Toolbar]"),aK=t3("[FeatureFlags]"),aY=t3("[FeatureFlags]",{debugEnabled:!0}),aQ="\" failed. Feature flags didn't load in time.",aZ=e=>{for(var t={},i=0;e.length>i;i++)t[e[i]]=!0;return t},a0=e=>{var t={};for(var i of ss(e||{})){var s=i[1];s&&(t[i[0]]=s)}return t},a1=t3("[Error tracking]"),a2="Refusing to render web experiment since the viewer is a likely bot",a3={icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>-1===t.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>nW(t,e),not_regex:(e,t)=>!nW(t,e),exact:(e,t)=>t===e,is_not:(e,t)=>t!==e};class a5{get Te(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{a5.$s("retrieved web experiments from the server"),t.Ls=new Map,e.forEach(e=>{if(e.feature_flag_key){t.Ls&&(a5.$s("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(i=t.Ls)||i.set(e.feature_flag_key,e));var i,s=t._instance.getFeatureFlag(e.feature_flag_key);es(s)&&e.variants[s]&&t.Ds(e.name,s,e.variants[s].transforms)}else if(e.variants)for(var r in e.variants){var n=e.variants[r];a5.Ns(n,t._instance)&&t.Ds(e.name,r,n.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}initialize(){}onFeatureFlags(e){if(this._is_bot())a5.$s(a2);else if(!this.Te.disable_web_experiments){if(ea(this.Ls))return this.Ls=new Map,this.loadIfEnabled(),void this.previewWebExperiment();a5.$s("applying feature flags",e),e.forEach(e=>{var t;if(this.Ls&&null!=(t=this.Ls)&&t.has(e)){var i,s=this._instance.getFeatureFlag(e),r=null==(i=this.Ls)?void 0:i.get(e);s&&null!=r&&r.variants[s]&&this.Ds(r.name,s,r.variants[s].transforms)}})}}previewWebExperiment(){var e=a5.getWindowLocation();if(null!=e&&e.search){var t=ry(null==e?void 0:e.search,"__experiment_id"),i=ry(null==e?void 0:e.search,"__experiment_variant");t&&i&&(a5.$s("previewing web experiments "+t+" && "+i),this.getWebExperiments(e=>{this.qs(parseInt(t),i,e)},!1,!0))}}loadIfEnabled(){this.Te.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,i){if(this.Te.disable_web_experiments&&!i)return e([]);var s=this._instance.get_property("$web_experiments");if(s&&!t)return e(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Te.token),method:"GET",timestampMode:"query",callback:t=>e(200===t.statusCode&&t.json&&t.json.experiments||[])})}qs(e,t,i){var s=i.filter(t=>t.id===e);s&&s.length>0&&(a5.$s("Previewing web experiment ["+s[0].name+"] with variant ["+t+"]"),this.Ds(s[0].name,t,s[0].variants[t].transforms))}static Ns(e,t){return!ea(e.conditions)&&a5.js(e,t)&&a5.Bs(e)}static js(e,t){if(ea(e.conditions)||ea(null==(s=e.conditions)?void 0:s.url))return!0;var i=a5.getWindowLocation();if(i){var s,r,n,a,o=sM(t,i.href);return null==(r=e.conditions)||!r.url||a3[null!=(n=null==(a=e.conditions)?void 0:a.urlMatchType)?n:"icontains"](e.conditions.url,o)}return!1}static getWindowLocation(){return null==a?void 0:a.location}static Bs(e){if(ea(e.conditions)||ea(null==(i=e.conditions)?void 0:i.utm))return!0;var t=r$();if(t.utm_source){var i,s,r,n,a,o,l,u,h,c=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_campaign||(null==(r=e.conditions)||null==(r=r.utm)?void 0:r.utm_campaign)==t.utm_campaign,d=null==(n=e.conditions)||null==(n=n.utm)||!n.utm_source||(null==(a=e.conditions)||null==(a=a.utm)?void 0:a.utm_source)==t.utm_source,p=null==(o=e.conditions)||null==(o=o.utm)||!o.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==t.utm_medium,v=null==(u=e.conditions)||null==(u=u.utm)||!u.utm_term||(null==(h=e.conditions)||null==(h=h.utm)?void 0:h.utm_term)==t.utm_term;return c&&p&&v&&d}return!1}static $s(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;t>s;s++)i[s-1]=arguments[s];t2.info("[WebExperiments] "+e,i)}Ds(e,t,i){this._is_bot()?a5.$s(a2):"control"!==t?i.forEach(i=>{if(i.selector){a5.$s("applying transform of variant "+t+" for experiment "+e+" ",i);var s,r=null==(s=document)?void 0:s.querySelectorAll(i.selector);null==r||r.forEach(e=>{i.html&&(e.innerHTML=i.html),i.css&&e.setAttribute("style",i.css)})}}):a5.$s("Control variants leave the page unmodified.")}_is_bot(){return l&&this._instance?nG(l,this.Te.custom_blocked_useragents):void 0}}var a8=t3("[Conversations]"),a6="Conversations not available yet.",a4="console",a9={featureFlags:class{constructor(e){this.Hs=!1,this.Us=!1,this.zs=!1,this.Vs=!1,this.Ws=!1,this.Zs=!1,this.Gs=!1,this.Qs=!1,this.Js=0,this.Ks=()=>{var e=this.Ys();this.Js=0,e&&this.reloadFeatureFlags()},this._instance=e,this.featureFlagEventHandlers=[],a&&sl(a,"online",this.Ks)}destroy(){null==a||a.removeEventListener("online",this.Ks)}get Te(){return this._instance.config}get mi(){return this._instance.persistence}Xs(e){return this._instance.get_property(e)}eo(){var e,t;return null!=(e=null==(t=this.mi)?void 0:t._r(this.Te.feature_flag_cache_ttl_ms))&&e}ro(){return!!this.eo()&&(this.Qs||this.zs||(this.Qs=!0,aK.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}io(){var e,t=null!=(e=this.Te.evaluation_contexts)?e:this.Te.evaluation_environments;return!this.Te.evaluation_environments||this.Te.evaluation_contexts||this.Gs||(aK.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Gs=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||aK.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}no(){return this.io().length>0}so(){var e=this.Te.flag_keys;if(!ei(e)){if(Q(e))return e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||aK.error("Invalid flag key found:",e,"Expected non-empty string"),t});aK.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,i=this._instance.config,s=null!=(e=null==(t=i.bootstrap)?void 0:t.featureFlags)?e:{};if(Object.keys(s).length){var r,n,a=null!=(r=null==(n=i.bootstrap)?void 0:n.featureFlagPayloads)?r:{},o=Object.keys(s).filter(e=>!!s[e]).reduce((e,t)=>(e[t]=s[t]||!1,e),{}),l=Object.keys(a).filter(e=>o[e]).reduce((e,t)=>(a[t]&&(e[t]=a[t]),e),{});this.receivedFeatureFlags({featureFlags:o,featureFlagPayloads:l})}}updateFlags(e,t,i){var s,r,n=null!=i&&i.merge&&null!=(s=this.Xs(ib))?s:{},a=null!=i&&i.merge&&null!=(r=this.Xs(iE))?r:{},o=x({},n,e),l=x({},a,t),u={};for(var h of Object.entries(o)){var c=h[0],d=h[1];u[c]={key:c,enabled:S(d),variant:P(d),reason:void 0,metadata:ei(null==l?void 0:l[c])?void 0:{id:0,version:void 0,description:void 0,payload:l[c]}}}this.receivedFeatureFlags({flags:u})}get hasLoadedFlags(){return this.Us}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.Xs(ik),t=this.Xs(iT),i=this.Xs(iF);if(!i&&!t)return e||{};var s=si({},e||{});for(var r of[...new Set([...Object.keys(i||{}),...Object.keys(t||{})])]){var n,a,o=s[r],l=null==t?void 0:t[r],u=ei(l)?null!=(n=null==o?void 0:o.enabled)&&n:!!l,h=ei(l)?o.variant:"string"==typeof l?l:void 0,c=null==i?void 0:i[r],d=x({},o,{enabled:u,variant:u?null!=h?h:null==o?void 0:o.variant:void 0});u!==(null==o?void 0:o.enabled)&&(d.original_enabled=null==o?void 0:o.enabled),h!==(null==o?void 0:o.variant)&&(d.original_variant=null==o?void 0:o.variant),c&&(d.metadata=x({},null==o?void 0:o.metadata,{payload:c,original_payload:null==o||null==(a=o.metadata)?void 0:a.payload})),s[r]=d}return this.Hs||(aK.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:i,finalDetails:s}),this.Hs=!0),s}getAllFeatureFlags(){var e=this.getFlagVariants(),t=this.getFlagPayloads();return Object.keys(e).map(i=>{var s=e[i];return{key:i,enabled:S(s),variant:P(s),payload:E(t[i])}})}getFlagVariants(){var e=this.Xs(ib),t=this.Xs(iT);if(!t)return e||{};for(var i=si({},e),s=Object.keys(t),r=0;s.length>r;r++)i[s[r]]=t[s[r]];return this.Hs||(aK.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:i}),this.Hs=!0),i}getFlagPayloads(){var e=this.Xs(iE),t=this.Xs(iF);if(!t)return e||{};for(var i=si({},e||{}),s=Object.keys(t),r=0;s.length>r;r++)i[s[r]]=t[s[r]];return this.Hs||(aK.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:i}),this.Hs=!0),i}reloadFeatureFlags(){this.Vs||this.Te.advanced_disable_feature_flags||this.Ys()||this.oo||(this._instance.en.emit("featureFlagsReloading",!0),this.oo=setTimeout(()=>{this.ao()},5))}lo(){clearTimeout(this.oo),this.oo=void 0}ensureFlagsLoaded(){this.Us||this.zs||this.oo||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.Vs=e}ao(e){var t;if(this.lo(),!this._instance.Ur()&&!this.Ys())if(this.zs)this.Ws=!0;else{var i=this.Te.token,s=this.Xs(t4),r={token:i,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:x({},(null==(t=this.mi)?void 0:t.get_initial_props())||{},this.Xs(i$)||{},{$lib:y.LIB_NAME,$lib_version:y.LIB_VERSION}),group_properties:this.Xs(iI),timezone:rD()};en(s)||ei(s)||(r.$device_id=s),(null!=e&&e.disableFlags||this.Te.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.no()&&(r.evaluation_contexts=this.io());var n=this.so();ei(n)||(r.flag_keys=n);var a=!!this.Te.advanced_only_evaluate_survey_feature_flags,o=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Te.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.zs=!0,this._instance._send_request({method:"POST",url:o,data:r,compression:this.Te.disable_compression?void 0:rU,timestampMode:"body",timeout:this.Te.feature_flag_request_timeout_ms,callback:e=>{var t,i,s,n=!0;if(this.uo(e.statusCode),200===e.statusCode&&(this.Ws||(this.$anon_distinct_id=void 0),n=!1),this.zs=!1,!r.disable_flags||this.Ws){this.Zs=!n;var o=[];e.error?e.error instanceof Error?o.push("AbortError"===e.error.name?"timeout":"connection_error"):o.push("unknown_error"):200!==e.statusCode&&o.push("api_error_"+e.statusCode),null!=(t=e.json)&&t.errorsWhileComputingFlags&&o.push("errors_while_computing_flags");var l,u=!(null==(i=e.json)||null==(i=i.quotaLimited)||!i.includes("feature_flags"));(u&&o.push("quota_limited"),null==(s=this.mi)||s.register({[iN]:o}),u)?aK.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(r.disable_flags||this.receivedFeatureFlags(null!=(l=e.json)?l:{},n,{partialResponse:a}),this.Ws&&(this.Ws=!1,this.ao()))}}})}}Ys(){return rx(this.Js,3)}uo(e){this.Js=rk(e,this.Js,3,()=>aK.warn("Feature flag requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped refreshing feature flags; will try again when connectivity changes."))}getFeatureFlag(e,t){var i;if(void 0===t&&(t={}),!t.fresh||this.Zs)if(this.Us||this.getFlags()&&this.getFlags().length>0){if(!this.ro()){var s=this.getFeatureFlagResult(e,t);return null!=(i=null==s?void 0:s.variant)?i:null==s?void 0:s.enabled}}else aK.warn('getFeatureFlag for key "'+e+aQ)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),!t.fresh||this.Zs)if(this.Us||this.getFlags()&&this.getFlags().length>0){if(!this.ro()){var i=this.getFlagVariants(),s=e in i,r=i[e],n=this.getFlagPayloads()[e],a=String(r),o=this.Xs(iS)||void 0,l=this.Xs(iq)||void 0,u=this.Xs(iL)||{};if(this.Te.advanced_feature_flags_dedup_per_session){var h,c=this._instance.get_session_id(),d=this.Xs(iD);c&&c!==d&&(u={},null==(h=this.mi)||h.register({[iL]:u,[iD]:c}))}if((t.send_event||!("send_event"in t))&&(!(e in u)||!u[e].includes(a))){Q(u[e])?u[e].push(a):u[e]=[a],null==(f=this.mi)||f.register({[iL]:u});var p=this.getFeatureFlagDetails(e),v=[...null!=(_=this.Xs(iN))?_:[]];ei(r)&&v.push("flag_missing");var g={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:n||null,$feature_flag_request_id:o,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:(null==(m=this.Te.bootstrap)||null==(m=m.featureFlags)?void 0:m[e])||null,$feature_flag_bootstrapped_payload:(null==(y=this.Te.bootstrap)||null==(y=y.featureFlagPayloads)?void 0:y[e])||null,$used_bootstrap_value:!this.Zs};ei(null==p||null==(b=p.metadata)?void 0:b.has_experiment)||(g.$feature_flag_has_experiment=p.metadata.has_experiment),ei(null==p||null==(w=p.metadata)?void 0:w.version)||(g.$feature_flag_version=p.metadata.version);var f,_,m,y,b,w,x,k,S,P,T,F,$=null!=(x=null==p||null==(k=p.reason)?void 0:k.description)?x:null==p||null==(S=p.reason)?void 0:S.code;$&&(g.$feature_flag_reason=$),null!=p&&null!=(P=p.metadata)&&P.id&&(g.$feature_flag_id=p.metadata.id),ei(null==p?void 0:p.original_variant)&&ei(null==p?void 0:p.original_enabled)||(g.$feature_flag_original_response=ei(p.original_variant)?p.original_enabled:p.original_variant),null!=p&&null!=(T=p.metadata)&&T.original_payload&&(g.$feature_flag_original_payload=null==p||null==(F=p.metadata)?void 0:F.original_payload),v.length&&(g.$feature_flag_error=v.join(",")),this._instance.capture("$feature_flag_called",g)}if(s)return{key:e,enabled:!!r,variant:"string"==typeof r?r:void 0,payload:E(n)}}}else aK.warn('getFeatureFlagResult for key "'+e+aQ)}getRemoteConfigPayload(e,t){var i=this.Te.token,s={distinct_id:this._instance.get_distinct_id(),token:i,person_properties:{$lib:y.LIB_NAME,$lib_version:y.LIB_VERSION}};this.no()&&(s.evaluation_contexts=this.io());var r=this.so();ei(r)||(s.flag_keys=r),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:s,compression:this.Te.disable_compression?void 0:rU,timestampMode:"body",timeout:this.Te.feature_flag_request_timeout_ms,callback(i){var s,r=null==(s=i.json)?void 0:s.featureFlagPayloads;t((null==r?void 0:r[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),t.fresh&&!this.Zs)return t.defaultValue;if(!(this.Us||this.getFlags()&&this.getFlags().length>0))return aK.warn('isFeatureEnabled for key "'+e+aQ),t.defaultValue;var i=this.getFeatureFlag(e,t);return ei(i)?t.defaultValue:!!i}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t,i){if(this.mi){this.Us=!0;var s=this.getFlagVariants(),r=this.getFlagPayloads(),n=this.getFlagsWithDetails();!function(e,t,i,s,r,n){void 0===i&&(i={}),void 0===s&&(s={}),void 0===r&&(r={});var a,o=((a=e.flags)?(e.featureFlags=Object.fromEntries(Object.keys(a).map(e=>{var t;return[e,null!=(t=a[e].variant)?t:a[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(a).filter(e=>a[e].enabled).filter(e=>{var t;return null==(t=a[e].metadata)?void 0:t.payload}).map(e=>{var t;return[e,null==(t=a[e].metadata)?void 0:t.payload]}))):e.featureFlags&&aK.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e),l=o.flags,u=o.featureFlags,h=o.featureFlagPayloads;if(u){var c=e.requestId,d=e.evaluatedAt;if(Q(u)){aK.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var p={};if(u)for(var v=0;u.length>v;v++)p[u[v]]=!0;t&&t.register({[iw]:u,[ib]:p,[iP]:!1})}else{var g=u,f=h,_=l;if(null!=n&&n.partialResponse)g=x({},i,g),f=x({},s,f),_=x({},r,_);else if(e.errorsWhileComputingFlags)if(l){var m=new Set(Object.keys(l).filter(e=>{var t;return!(null!=(t=l[e])&&t.failed)}));g=x({},i,Object.fromEntries(Object.entries(g).filter(e=>m.has(e[0])))),f=x({},s,Object.fromEntries(Object.entries(f||{}).filter(e=>m.has(e[0])))),_=x({},r,Object.fromEntries(Object.entries(_||{}).filter(e=>m.has(e[0]))))}else g=x({},i,g),f=x({},s,f),_=x({},r,_);t&&t.register(x({[iw]:Object.keys(a0(g)),[ib]:g||{},[iE]:f||{},[ik]:_||{},[iP]:!0===e.minimalFlagCalledEvents},c?{[iS]:c}:{},d?{[iq]:d}:{}))}}}(e,this.mi,s,r,n,i),t||(this.Qs=!1),this.ho(t)}}override(e,t){void 0===t&&(t=!1),aK.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.mi)return aK.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this.mi.unregister(iT),this.mi.unregister(iF),this.ho(),aY.info("All overrides cleared");if(Q(e)){var t,i=aZ(e);return this.mi.register({[iT]:i}),this.ho(),aY.info("Flag overrides set",{flags:e})}if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){if(this.Hs=!!(null!=(t=e.suppressWarning)&&t),"flags"in e){if(!1===e.flags)this.mi.unregister(iT),aY.info("Flag overrides cleared");else if(e.flags){if(Q(e.flags)){var s=aZ(e.flags);this.mi.register({[iT]:s})}else this.mi.register({[iT]:e.flags});aY.info("Flag overrides set",{flags:e.flags})}}return"payloads"in e&&(!1===e.payloads?(this.mi.unregister(iF),aY.info("Payload overrides cleared")):e.payloads&&(this.mi.register({[iF]:e.payloads}),aY.info("Payload overrides set",{payloads:e.payloads}))),void this.ho()}if(e&&"object"==typeof e)return this.mi.register({[iT]:e}),this.ho(),aY.info("Flag overrides set",{flags:e});aK.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Us){var t=this.do(),i=t.flags,s=t.flagVariants;try{e(i,s)}catch(e){aK.error("Error while running feature flags callback",e)}}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,i){var s,r=(this.Xs(ix)||[]).find(t=>t.flagKey===e),n={["$feature_enrollment/"+e]:t},a={$feature_flag:e,$feature_enrollment:t,$set:n};r&&(a.$early_access_feature_name=r.name),i&&(a.$feature_enrollment_stage=i),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(n,!1);var o=x({},this.getFlagVariants(),{[e]:t});null==(s=this.mi)||s.register({[iw]:Object.keys(a0(o)),[ib]:o}),this.ho()}getEarlyAccessFeatures(e,t,i){void 0===t&&(t=!1);var s=this.Xs(ix),r=i?"&"+i.map(e=>"stage="+e).join("&"):"";if(s&&!t)return e(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Te.token+r),method:"GET",timestampMode:"query",callback:t=>{var i,s;if(t.json){var r=t.json.earlyAccessFeatures;return null==(i=this.mi)||i.unregister(ix),null==(s=this.mi)||s.register({[ix]:r}),e(r)}}})}do(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,i)=>(e[i]=t[i],e),{})}}ho(e){var t=this.do(),i=t.flags,s=t.flagVariants;this.featureFlagEventHandlers.forEach(t=>{try{t(i,s,{errorsLoading:e})}catch(e){aK.error("Error while running feature flags callback",e)}})}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var i=this.Xs(i$)||{},s=(null==e?void 0:e.$set)||(null!=e&&e.$set_once?{}:e),r=null==e?void 0:e.$set_once,n={};if(r)for(var a in r)({}).hasOwnProperty.call(r,a)&&(a in i||(n[a]=r[a]));this._instance.register({[i$]:x({},i,n,s)}),t&&this._instance.reloadFeatureFlags()}unsetPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var i=x({},this.Xs(i$)||{});e.forEach(e=>{delete i[e]}),this._instance.register({[i$]:i}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){void 0===e&&(e=!0),this._instance.unregister(i$),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var i=this.Xs(iI)||{};0!==Object.keys(i).length&&Object.keys(i).forEach(t=>{i[t]=x({},i[t],e[t]),delete e[t]}),this._instance.register({[iI]:x({},i,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.Xs(iI)||{};this._instance.register({[iI]:x({},t,{[e]:{}})})}else this._instance.unregister(iI)}reset(){this.Us=!1,this.zs=!1,this.Vs=!1,this.Ws=!1,this.Zs=!1,this.$anon_distinct_id=void 0,this.lo(),this.Hs=!1,this.Js=0}}},a7=x({productTours:class{get mi(){return this._instance.persistence}constructor(e){this.ka=null,this.Sa=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(e.ok){var t,i,s=e.config;if("productTours"in s){if(this.mi&&this.mi.register({[iu]:!!s.productTours}),!aD(this._instance))return!this.ka&&ea(null==(t=this.mi)?void 0:t.props[iA])||aL.info("product tours disabled; stopping and clearing cached tours"),null==(i=this.ka)||i.stop(),this.ka=null,void this.clearCache();this.loadIfEnabled()}}}loadIfEnabled(){!this.ka&&aD(this._instance)&&this.tr(()=>this.Ca())}tr(e){var t,i;null!=(t=m.__PosthogExtensions__)&&t.generateProductTours?e():null==(i=m.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"product-tours",t=>{t?aL.error("Could not load product tours script",t):e()})}Ca(){var e;!this.ka&&null!=(e=m.__PosthogExtensions__)&&e.generateProductTours&&(this.ka=m.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!Q(this.Sa)||t){var i=this.mi;if(i){var s=i.props[iA];if(Q(s)&&!t)return this.Sa=s,void e(s,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",timestampMode:"query",callback:t=>{if(aD(this._instance)){var s=t.statusCode;if(200!==s||!t.json){var r="Product Tours API could not be loaded, status: "+s;return aL.error(r),void e([],{isLoaded:!1,error:r})}var n=Q(t.json.product_tours)?t.json.product_tours:[];this.Sa=n,i&&i.register({[iA]:n}),e(n,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.Sa,{isLoaded:!0})}getActiveProductTours(e){ea(this.ka)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.ka.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.ka)||t.showTourById(e)}previewTour(e){this.ka?this.ka.previewTour(e):this.tr(()=>{var t;this.Ca(),null==(t=this.ka)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.ka)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.ka)||e.nextStep()}previousStep(){var e;null==(e=this.ka)||e.previousStep()}clearCache(){var e;this.Sa=null,null==(e=this.mi)||e.unregister(iA)}resetTour(e){var t;null==(t=this.ka)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.ka)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.ka)||t.cancelPendingTour(e)}}},a9),oe=x({surveys:class{get Te(){return this._instance.config}constructor(e){this.Ha=void 0,this._surveyManager=null,this.Ua=!1,this.za=[],this.Va=null,this.Wa=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Te.disable_surveys){if(!e.ok)return n3.warn("Remote config unavailable. Not loading surveys.");var t=e.config.surveys;if(ea(t))return n3.warn("Flags not loaded yet. Not loading surveys.");var i=Q(t);this.Ha=i?t.length>0:t,n3.info("flags response received, isSurveysEnabled: "+this.Ha),this.loadIfEnabled()}}reset(){try{var e;null==(e=this._surveyEventReceiver)||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var t=[],i=0;i<localStorage.length;i++){var s=localStorage.key(i);(null!=s&&s.startsWith(n5)||null!=s&&s.startsWith("inProgressSurvey_"))&&t.push(s)}t.forEach(e=>localStorage.removeItem(e))}catch(e){}}loadIfEnabled(){if(!this._surveyManager)if(this.Ua)n3.info("Already initializing surveys, skipping...");else if(this.Te.disable_surveys)n3.info(aV);else if(this.Te.cookieless_mode&&this._instance.consent.isOptedOut())n3.info("Not loading surveys in cookieless mode without consent.");else{var e=null==m?void 0:m.__PosthogExtensions__;if(e){if(!ei(this.Ha)||this.Te.advanced_enable_surveys){var t=this.Ha||this.Te.advanced_enable_surveys;this.Ua=!0;try{var i=e.generateSurveys;if(i)return void this.Za(i,t);var s=e.loadExternalDependency;if(!s)return void this.Ga(iQ);s(this._instance,"surveys",i=>{i||!e.generateSurveys?this.Ga("Could not load surveys script",i):this.Za(e.generateSurveys,t)})}catch(e){throw this.Ga("Error initializing surveys",e),e}finally{this.Ua=!1}}}else n3.error("PostHog Extensions not found.")}}Za(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new aU(this._instance),n3.info("Surveys loaded successfully"),this.Qa({isLoaded:!0})}Ga(e,t){n3.error(e,t),this.Qa({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.za.push(e),this._surveyManager&&this.Qa({isLoaded:!0}),()=>{this.za=this.za.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this.Te.disable_surveys)return n3.info(aV),e([]);var i,s=this._instance.get_property(iC);s&&!t?(e(s,{isLoaded:!0}),this.Ja()&&this.getSurveys(()=>{},!0)):"u">typeof Promise&&this.Va?this.Va.then(t=>e(t.surveys,t.context)):("u">typeof Promise&&(this.Va=new Promise(e=>{i=e})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Te.token),method:"GET",timestampMode:"query",timeout:this.Te.surveys_request_timeout_ms,callback:t=>{this.Va=null;var s=t.statusCode;if(200!==s||!t.json){var r="Surveys API could not be loaded, status: "+s;n3.error(r),this.Wa=Date.now();var n={isLoaded:!1,error:r};return e([],n),void(null==i||i({surveys:[],context:n}))}this.Wa=null;var a,o,l=t.json.surveys||[],u=l.filter(e=>{var t;return!(!e.start_date||e.end_date)&&(n2(e)||!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length))});u.length>0&&(null==(o=this._surveyEventReceiver)||o.register(u)),null==(a=this._instance.persistence)||a.register({[iC]:l,[iM]:Date.now()});var h={isLoaded:!0};e(l,h),null==i||i({surveys:l,context:h})}}))}Ja(){return this.Ka()&&!this.Va&&!this.Ya()}Ka(){var e=this._instance.get_property(iM);return eo(e)&&Date.now()-e>3e5}Ya(){return eo(this.Wa)&&3e5>Date.now()-this.Wa}markSurveyAsSeen(e,t){var i;n8({id:e,current_iteration:null!=(i=null==t?void 0:t.iteration)?i:null});try{localStorage.setItem("lastSeenSurveyDate",(new Date).toISOString())}catch(e){}}Qa(e){for(var t of this.za)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){n3.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!ea(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);n3.warn("init was not called")}Xa(e){var t=null;return this.getSurveys(i=>{var s;t=null!=(s=i.find(t=>t.id===e))?s:null}),t}tl(e){if(ea(this._surveyManager))return{eligible:!1,reason:aG};var t="string"==typeof e?this.Xa(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}el(e){if(ea(this._surveyManager))return{eligible:!1,reason:aG};var t="string"==typeof e?this.Xa(e):e;return t?this._surveyManager.checkSurveyRenderability(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(ea(this._surveyManager))return n3.warn("init was not called"),{visible:!1,disabledReason:aG};var t=this.el(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return ea(this._surveyManager)?(n3.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:aG})):new Promise(i=>{this.getSurveys(t=>{var s,r=null!=(s=t.find(t=>t.id===e))?s:null;if(r){var n=this.el(r);i({visible:n.eligible,disabledReason:n.reason})}else i({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,i){var s;if(ea(this._surveyManager))n3.warn("init was not called");else{var r="string"==typeof e?this.Xa(e):e;if(null!=r&&r.id)if(n6.includes(r.type)){var n=null==u?void 0:u.querySelector(t);if(n)return null!=(s=r.appearance)&&s.surveyPopupDelaySeconds?(n3.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;n3.info("Rendering survey "+r.id+" with delay of "+(null==(e=r.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(r,n,i),n3.info("Survey "+r.id+" rendered")},1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,n,i);n3.warn("Survey element not found")}else n3.warn("Surveys of type "+r.type+" cannot be rendered in the app");else n3.warn("Survey not found")}}displaySurvey(e,t){var i;if(ea(this._surveyManager))n3.warn("init was not called");else{var s=this.Xa(e);if(s){var r=s;if(null!=(i=s.appearance)&&i.surveyPopupDelaySeconds&&t.ignoreDelay&&(r=x({},s,{appearance:x({},s.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==rK&&t.initialResponses&&n3.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var n=this.tl(s);if(!n.eligible)return void n3.warn("Survey is not eligible to be displayed: ",n.reason)}"inline"!==t.displayType?this._surveyManager.handlePopoverSurvey(r,t):this.renderSurvey(r,t.selector,t.properties)}else n3.warn("Survey not found")}}cancelPendingSurvey(e){ea(this._surveyManager)?n3.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||null==e.handlePageUnload||e.handlePageUnload()}}},a9),ot=x({experiments:a5},a9),oi=x({},a9,{sessionRecording:class{get Te(){return this._instance.config}get mi(){return this._instance.persistence}get started(){var e;return!(null==(e=this.co)||!e.isStarted)}get status(){var e,t;return this.vo===aI||this.vo===aC?this.vo:null!=(e=null==(t=this.co)?void 0:t.status)?e:this.vo}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.vo=aF,this.fo=void 0,this._instance=e,!this._instance.sessionManager)throw aR.error("started without valid sessionManager"),Error(aM+" started without valid sessionManager. This is a bug.");if(this.Te.cookieless_mode===i0)throw Error(aM+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get po(){var e,t=!(null==(e=this._instance.get_property(ic))||!e.enabled),i=!this.Te.disable_session_recording,s=this.Te.disable_session_recording||this._instance.consent.isOptedOut();return a&&t&&i&&!s}startIfEnabledOrStop(e){var t;if(!this.po||null==(t=this.co)||!t.isStarted){var i=!ei(Object.assign)&&!ei(Array.from);this.po&&i?(this.mo(e),aR.info("starting")):(this.vo=aF,this.stopRecording())}}mo(e){var t,i,s;this.po&&(this.vo!==aI&&this.vo!==aC&&(this.vo=a$),null!=m&&null!=(t=m.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(i=m.__PosthogExtensions__)&&i.initSessionRecording?this.yo(e):null==(s=m.__PosthogExtensions__)||null==s.loadExternalDependency||s.loadExternalDependency(this._instance,this.bo,t=>{if(t)return aR.error("could not load recorder",t);this.yo(e)}))}stopRecording(){var e,t;null==(e=this.fo)||e.call(this),this.fo=void 0,null==(t=this.co)||t.stop()}_o(){var e,t;null==(e=this.fo)||e.call(this),this.fo=void 0,null==(t=this.co)||t.discard()}wo(){var e,t;null==(e=this.mi)||e.unregister(iy),null==(t=this.mi)||t.unregister(id)}xo(e,t){if(ea(e))return null;var i=eo(e)?e:parseFloat(e);return"number"!=typeof i||!Number.isFinite(i)||0>i||i>1?(aR.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):i}ko(e){if(this.mi){var t,i,s=this.mi,r=()=>{var t,i=!1===e.sessionRecording?void 0:e.sessionRecording,r=this.xo(null==(t=this.Te.session_recording)?void 0:t.sampleRate,"session_recording.sampleRate"),n=this.xo(null==i?void 0:i.sampleRate,"remote config sampleRate"),a=null!=r?r:n;ea(a)&&this.wo();var o=null==i?void 0:i.minimumDurationMilliseconds;s.register({[ic]:x({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:x({capturePerformance:e.capturePerformance},null==i?void 0:i.networkPayloadCapture),canvasRecording:{enabled:null==i?void 0:i.recordCanvas,fps:null==i?void 0:i.canvasFps,quality:null==i?void 0:i.canvasQuality},sampleRate:a,minimumDurationMilliseconds:ei(o)?null:o,endpoint:null==i?void 0:i.endpoint,triggerMatchType:null==i?void 0:i.triggerMatchType,masking:null==i?void 0:i.masking,urlTriggers:null==i?void 0:i.urlTriggers,version:null==i?void 0:i.version,triggerGroups:null==i?void 0:i.triggerGroups})})};r(),null==(t=this.fo)||t.call(this),this.fo=null==(i=this._instance.sessionManager)?void 0:i.onSessionId(r)}}onRemoteConfig(e){var t=e.ok?e.config:void 0;return t&&"sessionRecording"in t?!1===t.sessionRecording?(this.ko(t),void this._o()):(this.ko(t),void this.startIfEnabledOrStop()):(this.vo===aI&&(this.vo=aC,aR.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var i;void 0===t&&(t="log"),null!=(i=this.co)&&i.log?this.co.log(e,t):aR.warn("log called before recorder was ready")}get bo(){var e,t,i=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(ic);return(null==i||null==(t=i.scriptConfig)?void 0:t.script)||"lazy-recorder"}So(){var e,t,i=this._instance.get_property(ic);if(!i)return!1;try{t="object"==typeof i?i:JSON.parse(i)}catch(e){return aR.warn("persisted remote config for session recording is invalid and will be ignored",e),!1}var s=null!=(e=t.cache_timestamp)?e:Date.now();return 36e5>=Date.now()-s}yo(e){var t,i;if(null==(t=m.__PosthogExtensions__)||!t.initSessionRecording)return aR.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[iY]:!0});if(this.co||(this.co=null==(i=m.__PosthogExtensions__)?void 0:i.initSessionRecording(this._instance),this.co._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.So()){if(this.vo===aC||this.vo===aI)return;return this.vo=aI,aR.info("persisted remote config is stale, requesting fresh config before starting"),void new r0(this._instance).load()}this.vo=a$,this.co.start(e)}onRRwebEmit(e){var t;null==(t=this.co)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.co||null==(t=this.mi)||t.register({[iv]:!0}),null==(e=this.co)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.co||null==(t=this.mi)||t.register({[ip]:!0}),null==(e=this.co)||e.overrideSampling()}overrideTrigger(e){var t,i;this.co||null==(i=this.mi)||i.register({["url"===e?ig:i_]:!0}),null==(t=this.co)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.co)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var i;return!(null==(i=this.co)||!i.tryAddCustomEvent(e,t))}}},{autocapture:class{constructor(e){this.Co=!1,this.Mo=null,this.Io=!1,this.To=!1,this.instance=e,this.rageclicks=new ab(e.config.rageclick),this.Eo=null}initialize(){this.startIfEnabled()}get Te(){var e,t,i=ee(this.instance.config.autocapture)?this.instance.config.autocapture:{};return i.url_allowlist=null==(e=i.url_allowlist)?void 0:e.map(e=>new RegExp(e)),i.url_ignorelist=null==(t=i.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),i}Ro(){if(this.isBrowserSupported()){if(a&&u){var e=e=>{e=e||(null==a?void 0:a.event);try{this.Po(e)}catch(e){ax.error("Failed to capture event",e)}};if(sl(u,"submit",e,{capture:!0}),sl(u,"change",e,{capture:!0}),sl(u,"click",e,{capture:!0}),this.Te.capture_copied_text){var t=e=>{e=e||(null==a?void 0:a.event);try{this.Po(e,aw)}catch(e){ax.error("Failed to capture copy/cut event",e)}};sl(u,"copy",t,{capture:!0}),sl(u,"cut",t,{capture:!0})}}}else ax.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Co&&(this.Ro(),this.Co=!0)}onRemoteConfig(e){if(this.Io=!0,e.ok){var t=e.config;t.elementsChainAsString&&(this.To=t.elementsChainAsString);var i=t.autocapture_opt_out;eu(i)&&(this.instance.persistence&&this.instance.persistence.register({[it]:i}),this.Mo=i),this.startIfEnabled()}else this.startIfEnabled()}setElementSelectors(e){this.Eo=e}getElementSelectors(e){var t,i=[];return null==(t=this.Eo)||t.forEach(t=>{var s=null==u?void 0:u.querySelectorAll(t);null==s||s.forEach(s=>{e===s&&i.push(t)})}),i}get isEnabled(){var e,t,i=null==(e=this.instance.persistence)?void 0:e.props[it],s=this.Mo,r=this.instance.Ur()&&!this.Io;if(en(s)&&!eu(i)&&!r)return!1;var n=null!=(t=this.Mo)?t:!!i;return!!this.instance.config.autocapture&&!n}Po(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var i,s=sU(e);sD(s)&&(s=s.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(i=this.rageclicks)&&i.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&s0(s,this.instance.config.rageclick)&&this.Po(e,"$rageclick");var r=t===aw;if(s&&function(e,t,i,s,r,n){if(!a||s1(e)||null!=i&&i.url_allowlist&&!sj(i.url_allowlist,n)||null!=i&&i.url_ignorelist&&sj(i.url_ignorelist,n))return!1;if(null!=i&&i.dom_event_allowlist){var o,l=i.dom_event_allowlist;if(l&&!l.some(e=>t.type===e))return!1}var u=s2(e,s),h=u.parentIsUsefulElement,c=u.targetElementList;if(!function(e,t){var i=null==t?void 0:t.element_allowlist;if(ei(i))return!0;var s,r=function(e){if(i.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var n of e)if(s=r(n))return s.v;return!1}(c,i)||!sV(c,null==i?void 0:i.css_selector_allowlist)||sV(c,null!=(o=null==i?void 0:i.css_selector_ignorelist)?o:sJ))return!1;try{var d=a.getComputedStyle(e);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===t.type)return!0}catch(e){}var p=e.tagName.toLowerCase();switch(p){case"html":return!1;case"form":return(r||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(r||["change","click"]).indexOf(t.type)>=0;default:return h?(r||["click"]).indexOf(t.type)>=0:(r||["click"]).indexOf(t.type)>=0&&(sG.indexOf(p)>-1||"true"===e.getAttribute("contenteditable"))}}(s,e,this.Te,r,r?["copy","cut"]:void 0,this.instance)){var n=function(e,t){var i,s,r=t.e,n=t.maskAllElementAttributes,o=t.maskAllText,l=t.elementAttributeIgnoreList,u=t.elementsChainAsString,h=t.disableCaptureUrlHashes;if(!sA(e))return{props:{}};for(var c=[e],d=new Set([e]),p=e;p.parentNode&&!sL(p,"body")&&1e3>c.length;)if(sN(p.parentNode)){var v=p.parentNode.host;if(d.has(v))break;d.add(v),c.push(v),p=v}else{if(!sA(p.parentNode)||d.has(p.parentNode))break;d.add(p.parentNode),c.push(p.parentNode),p=p.parentNode}var g,f=[],_={},m=!1,y=!1;if(st(c,e=>{var t=s3(e);if(sL(e,"a")){var i=e.getAttribute("href");m=!!(t&&i&&rt(i))&&(h?tv(i):i)}G(sB(e),"ph-no-capture")&&(y=!0),f.push(function(e,t,i,s,r){void 0===r&&(r=!1);var n=e.tagName.toLowerCase(),a={tag_name:n};sG.indexOf(n)>-1&&!i&&(a.$el_text="a"===n.toLowerCase()||"button"===n.toLowerCase()?ak(1024,ri(e)):ak(1024,sH(e)));var o=sB(e);o.length>0&&(a.classes=o.filter(function(e){return""!==e})),st(e.attributes,function(i){var n;if((!s5(e)||-1!==["name","id","class","aria-label"].indexOf(i.name))&&(null==s||!s.includes(i.name))&&!t&&rt(i.value)&&(!es(n=i.name)||"_ngcontent"!==n.substring(0,10)&&"_nghost"!==n.substring(0,7))){var o=i.value;"class"===i.name&&(o=sq(o).join(" ")),a["attr__"+i.name]=ak(1024,"href"===i.name&&r?tv(o):o)}});for(var l=1,u=1,h=e;h=function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!sA(t));return t}(h);)l++,h.tagName===e.tagName&&u++;return a.nth_child=l,a.nth_of_type=u,a}(e,n,o,l,h)),si(_,function(e){if(!s3(e))return{};var t={};return st(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var i=e.name.replace("data-ph-capture-attribute-",""),s=e.value;i&&s&&rt(s)&&(t[i]=s)}}),t}(e))}),y)return{props:{},explicitNoCapture:y};if(o||(f[0].$el_text=sL(e,"a")||sL(e,"button")?ri(e):sH(e)),m){f[0].attr__href=m;var b,w,k=null==(b=rm(m))?void 0:b.host,E=null==a||null==(w=a.location)?void 0:w.host;k&&E&&k!==E&&(g=m)}return{props:si({$event_type:r.type,$ce_version:1},u?{}:{$elements:f},{$elements_chain:f.map(e=>{var t,i,s={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(i=e.attr__href)?void 0:i.slice(0,2048),attr_class:function(e){var t=e.attr__class;if(t)return Q(t)?t:sq(t)}(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return ss(e).filter(e=>0===e[0].indexOf("attr__")).forEach(e=>s.attributes[e[0]]=e[1]),s}).map(e=>{var t,i,s="";if(e.tag_name&&(s+=e.tag_name),e.attr_class)for(var r of(e.attr_class.sort(),e.attr_class))s+="."+r.replace(/"/g,"");var n=x({},e.text?{text:e.text}:{},{"nth-child":null!=(t=e.nth_child)?t:0,"nth-of-type":null!=(i=e.nth_of_type)?i:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),a={};return ss(n).sort((e,t)=>e[0].localeCompare(t[0])).forEach(e=>{var t=e[1];return a[rs(e[0].toString())]=rs(t.toString())}),(s+=":")+ss(a).map(e=>e[0]+'="'+e[1]+'"').join("")}).join(";")},null!=(i=f[0])&&i.$el_text?{$el_text:null==(s=f[0])?void 0:s.$el_text}:{},g&&"click"===r.type?{$external_click_url:g}:{},_)}}(s,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Te.element_attribute_ignorelist,elementsChainAsString:this.To,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes}),o=n.props;if(n.explicitNoCapture)return!1;var l=this.getElementSelectors(s);if(l&&l.length>0&&(o.$element_selectors=l),t===aw){var u,h=sz(null==a||null==(u=a.getSelection())?void 0:u.toString()),c=e.type||"clipboard";if(!h)return!1;o.$selected_content=h,o.$copy_type=c}return this.instance.capture(t,o),!0}}}isBrowserSupported(){return Z(null==u?void 0:u.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Oo=(null==a||null==(t=a.location)?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(t2.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Fo&&this.Fo(),this.Fo=void 0,t2.info("History API monitoring stopped")}monitorHistoryChanges(){a&&a.history&&(this.Ao("pushState"),this.Ao("replaceState"),this.$o())}Ao(e){var t;if(a&&(null==(t=a.history[e])||!t.__posthog_wrapped__)){var i=this;!function(e,t,i){try{if(!(t in e))return aS;var s={next:e[t]},r=i(function(){for(var e=arguments.length,t=Array(e),i=0;e>i;i++)t[i]=arguments[i];return s.next.apply(this,t)});Z(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:s}})),e[t]=r}catch(e){return aS}}(a.history,e,t=>function(s,r,n){t.call(this,s,r,n),i.Lo(e)})}}Lo(e){try{var t,i=null==a||null==(t=a.location)?void 0:t.pathname;if(!i)return;i!==this.Oo&&this.isEnabled&&this._instance.capture(i6,{navigation_type:e}),this.Oo=i}catch(t){t2.error("Error capturing "+e+" pageview",t)}}$o(){if(!this.Fo){var e=()=>{this.Lo("popstate")};sl(a,"popstate",e),this.Fo=()=>{a&&a.removeEventListener("popstate",e)}}}},heatmaps:class{get Te(){return this.instance.config}constructor(e){var t;this.Do=!1,this.Co=!1,this.No=null,this.instance=e,this.Do=!(null==(t=this.instance.persistence)||!t.props[ii]),this.rageclicks=new ab(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return ee(this.Te.capture_heatmaps)&&this.Te.capture_heatmaps.flush_interval_milliseconds&&(e=this.Te.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return ea(this.Te.capture_heatmaps)?ea(this.Te.enable_heatmaps)?this.Do:this.Te.enable_heatmaps:!1!==this.Te.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this.Co||(aO.info("starting..."),this.qo(),this.xe());else{var e;clearInterval(null!=(e=this.No)?e:void 0),this.jo(),this.getAndClearBuffer()}}onRemoteConfig(e){if(e.ok){var t=e.config;if("heatmaps"in t){var i=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[ii]:i}),this.Do=i,this.startIfEnabled()}}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}Bo(e){aA(e.originalEvent)&&this.pe(e.originalEvent,"deadclick")}xe(){this.No&&clearInterval(this.No),this.No="visible"===(null==u?void 0:u.visibilityState)?setInterval(this.oi.bind(this),this.flushIntervalMilliseconds):null}qo(){a&&u&&(this.Ho=this.oi.bind(this),sl(a,i8,this.Ho),this.Uo=e=>this.pe(e||(null==a?void 0:a.event)),sl(u,"click",this.Uo,{capture:!0}),this.zo=e=>this.Vo(e||(null==a?void 0:a.event)),sl(u,"mousemove",this.zo,{capture:!0}),this.Wo=new ro(this.instance,rn,this.Bo.bind(this)),this.Wo.startIfEnabledOrStop(),this.Zo=this.xe.bind(this),sl(u,i5,this.Zo),this.Co=!0)}jo(){var e;a&&u&&(this.Ho&&a.removeEventListener(i8,this.Ho),this.Uo&&u.removeEventListener("click",this.Uo,{capture:!0}),this.zo&&u.removeEventListener("mousemove",this.zo,{capture:!0}),this.Zo&&u.removeEventListener(i5,this.Zo),clearTimeout(this.Go),null==(e=this.Wo)||e.stop(),this.Co=!1)}Qo(e,t){var i=this.instance.scrollManager.scrollY(),s=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),n=function(e,t,i){for(var s=e;s&&sA(s)&&!sL(s,"body")&&s!==i;){var r,n,o,l=void 0;try{l=null==(r=null!=(n=null==(o=s.ownerDocument)?void 0:o.defaultView)?n:a)?void 0:r.getComputedStyle(s).position}catch(e){break}if(G(t,l))return!0;s=sW(s)}return!1}(sU(e),["fixed","sticky"],r);return{x:e.clientX+(n?0:s),y:e.clientY+(n?0:i),target_fixed:n,type:t}}pe(e,t){var i;if(void 0===t&&(t="click"),!sO(e.target)&&aA(e)){var s=this.Qo(e,t);null!=(i=this.rageclicks)&&i.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&s0(sU(e),this.instance.config.rageclick)&&this.Wt(x({},s,{type:"rageclick"})),this.Wt(s)}}Vo(e){!sO(e.target)&&aA(e)&&(clearTimeout(this.Go),this.Go=setTimeout(()=>{this.Wt(this.Qo(e,"mousemove"))},500))}Wt(e){if(a){var t=this.Te.disable_capture_url_hashes?tv(a.location.href):a.location.href,i=this.Te.custom_personal_data_properties,s=rb(t,this.Te.mask_personal_data_properties?[...rS,...i||[]]:[],rT);this.R=this.R||{},this.R[s]||(this.R[s]=[]),this.R[s].push(e)}}oi(){this.R&&!et(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:ro,webVitalsAutocapture:class{constructor(e){var t;this.Do=!1,this.Co=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Jo=()=>{clearTimeout(this.Ko),0!==this.R.metrics.length&&(this._instance.capture("$web_vitals",this.R.metrics.reduce((e,t)=>x({},e,{["$web_vitals_"+t.name+"_event"]:x({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Yo=e=>{this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var t,i=this.Xo();if(!ei(i))if(ea(null==e?void 0:e.name)||ea(null==e?void 0:e.value))aT.error("Invalid metric received",e);else if(!this.ta||this.ta>e.value){this.R.url!==i&&(this.Jo(),this.Ko=setTimeout(this.Jo,this.flushToCaptureTimeoutMs)),ei(this.R.url)&&(this.R.url=i),this.R.firstMetricTimestamp=ei(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0);var s=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0),r=x({},e,{$current_url:i,timestamp:Date.now()});ei(s)||(r.$session_id=s.sessionId,r.$window_id=s.windowId),this.R.metrics.push(r),this.R.metrics.length===this.allowedMetrics.length&&this.Jo()}else aT.error("Ignoring metric with value >= "+this.ta,e)},this.ea=()=>{if(!this.Co){var e,t,i,s,r=m.__PosthogExtensions__;if(!ei(r)&&!ei(r.postHogWebVitalsCallbacks)){var n=r.postHogWebVitalsCallbacks;e=n.onLCP,t=n.onCLS,i=n.onFCP,s=n.onINP}e&&t&&i&&s?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.Yo.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.Yo.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.Yo.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&s(this.Yo.bind(this)),this.Co=!0):aT.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.Do=!(null==(t=this._instance.persistence)||!t.props[io]),this.startIfEnabled()}get ra(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,i=ee(this.ra)?null==(e=this.ra)?void 0:e.web_vitals_allowed_metrics:void 0;return ea(i)?(null==(t=this._instance.persistence)?void 0:t.props[ih])||["CLS","FCP","INP","LCP"]:i}get flushToCaptureTimeoutMs(){return(ee(this.ra)?this.ra.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=ee(this.ra)?this.ra.web_vitals_attribution:void 0;return null!=e&&e}get ta(){var e=ee(this.ra)&&eo(this.ra.__web_vitals_max_value)?this.ra.__web_vitals_max_value:9e5;return e>0&&6e4>=e?9e5:e}get isEnabled(){var e=null==h?void 0:h.protocol;if("http:"!==e&&"https:"!==e)return aT.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=ee(this.ra)?this.ra.web_vitals:eu(this.ra)?this.ra:void 0;return eu(t)?t:this.Do}startIfEnabled(){this.isEnabled&&!this.Co&&(aT.info("enabled, starting..."),this.tr(this.ea))}onRemoteConfig(e){if(e.ok){var t=e.config;if("capturePerformance"in t){var i=ee(t.capturePerformance)&&!!t.capturePerformance.web_vitals,s=ee(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[io]:i}),this._instance.persistence.register({[ih]:s})),this.Do=i,this.startIfEnabled()}}}tr(e){var t,i;null!=(t=m.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks?e():null==(i=m.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",t=>{t?aT.error("failed to load script",t):e()})}Xo(){var e=a?this._instance.config.disable_capture_url_hashes?tv(a.location.href):a.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties;return rb(e,this._instance.config.mask_personal_data_properties?[...rS,...t||[]]:[],rT)}aT.error("Could not determine current URL")}}},{exceptionObserver:class{constructor(e){var t;this.ea=()=>{var e;if(a&&this.isEnabled&&null!=(e=m.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=m.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=m.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,s=m.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ia&&this.Te.capture_unhandled_errors&&(this.ia=t(this.captureException.bind(this))),!this.na&&this.Te.capture_unhandled_rejections&&(this.na=i(this.captureException.bind(this))),!this.sa&&this.Te.capture_console_errors&&(this.sa=s(this.captureException.bind(this)))}catch(e){aE.error("failed to start",e),this.oa()}}},this._instance=e,this.aa=!(null==(t=this._instance.persistence)||!t.props[is]),this.la=new em(x({},function(e){var t,i,s,r;return void 0===e&&(e={}),{refillRate:null!=(t=null!=(i=e.exceptionRateLimiterRefillRate)?i:e.__exceptionRateLimiterRefillRate)?t:1,bucketSize:null!=(s=null!=(r=e.exceptionRateLimiterBucketSize)?r:e.__exceptionRateLimiterBucketSize)?s:10}}(this._instance.config.error_tracking),{refillInterval:1e4,it:aE})),this.Te=this.ua(),this.startIfEnabledOrStop()}ua(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return ee(e)?t=x({},t,e):(ei(e)?this.aa:e)&&(t=x({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Te.capture_console_errors||this.Te.capture_unhandled_errors||this.Te.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(aE.info("enabled"),this.oa(),this.tr(this.ea)):this.oa()}tr(e){var t,i;null!=(t=m.__PosthogExtensions__)&&t.errorWrappingFunctions?e():null==(i=m.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return aE.error("failed to load script",t);e()})}oa(){var e,t,i;null==(e=this.ia)||e.call(this),this.ia=void 0,null==(t=this.na)||t.call(this),this.na=void 0,null==(i=this.sa)||i.call(this),this.sa=void 0}onRemoteConfig(e){if(e.ok){var t=e.config;"autocaptureExceptions"in t&&(this.aa=!!t.autocaptureExceptions,this._instance.persistence&&this._instance.persistence.register({[is]:this.aa}),this.Te=this.ua(),this.startIfEnabledOrStop())}}onConfigChange(){this.Te=this.ua()}captureException(e){var t,i,s,r=null!=(t=null==e||null==(i=e.$exception_list)||null==(i=i[0])?void 0:i.type)?t:"Exception";this.la.consumeRateLimit(r)?aE.info("Skipping exception capture because of client rate limiting.",{exception:r}):null==(s=this._instance.exceptions)||s.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,i;this.ha=[],this.da=new tT([new tN,new tJ,new tj,new tq,new tV,new tG,new tz,new tW],function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;t>s;s++)i[s-1]=arguments[s];return function(t,s){void 0===s&&(s=0);for(var r=[],n=t.split("\n"),a=s;n.length>a;a++){var o=n[a];if(1024>=o.length){var l=tD.test(o)?o.replace(tD,"$1"):o;if(!l.match(/\S*Error: /)){for(var u of i){var h=u(l,e);if(h){r.push(h);break}}if(r.length>=50)break}}}if(!r.length)return[];var c=Array.from(r);return c.reverse(),c.slice(0,50).map(e=>x({},e,{filename:e.filename||(c[c.length-1]||{}).filename,function:e.function||"?"}))}}("web:javascript",tR,tL)),this._instance=e,this.ha=null!=(t=null==(i=this._instance.persistence)?void 0:i.get_property(ir))?t:[],this.ca=tZ(this.va()),this.fa=new t0(this.ca)}onConfigChange(){this.ca=tZ(this.va()),this.fa.setConfig(this.ca)}onRemoteConfig(e){var t,i,s;if(e.ok){var r=e.config;if("errorTracking"in r){var n=null!=(t=null==(i=r.errorTracking)?void 0:i.suppressionRules)?t:[],a=null==(s=r.errorTracking)?void 0:s.captureExtensionExceptions;this.ha=n,this._instance.persistence&&this._instance.persistence.register({[ir]:this.ha,[ia]:a})}}}get pa(){var e,t=!!this._instance.get_property(ia),i=this._instance.config.error_tracking.captureExtensionExceptions;return null!=(e=null!=i?i:t)&&e}buildProperties(e,t){return this.da.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}addExceptionStep(e,t){if(this.ca.enabled)try{if(!es(e)||0===e.trim().length)return void a1.warn("Ignoring exception step because message must be a non-empty string");var i=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce((i,s)=>(tY.has(s)?t.push(s):i[s]=e[s],i),{}),droppedKeys:t}}(this.ga(t)),s=i.sanitizedProperties,r=i.droppedKeys;r.length>0&&a1.warn("Ignoring reserved exception step fields",{droppedKeys:r}),this.fa.add(x({[tX]:e,[tK]:(new Date).toISOString()},s))}catch(e){a1.error("Failed to add exception step. Ignoring breadcrumb.",e)}}sendExceptionEvent(e){var t;try{var i=e.$exception_list;if(this.ma(i)){if(this.ya(i))return this.ba("Exception dropped: matched a suppression rule"),void a1.info("Skipping exception capture because a suppression rule matched");if(!this.pa&&this._a(i))return this.ba("Exception dropped: thrown by a browser extension"),void a1.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.wa(i))return this.ba("Exception dropped: thrown by the PostHog SDK"),void a1.info("Skipping exception capture because it was thrown by the PostHog SDK")}var s=this.ca.enabled&&ea(e.$exception_steps)?this.xa(e):e,r="string"==typeof(t=globalThis._posthogReleaseId)&&t.length>0?t:void 0;r&&(s.$release_id=r);try{var n=this._instance.capture("$exception",s,{_noTruncate:!0,_batchKey:"exceptionEvent",Pn:!0});return n&&this.fa.clear(),n}catch(e){return a1.error("Failed to capture exception event. Dropping this exception.",e),void this.fa.clear()}}catch(e){return void a1.error("Failed to process exception event. Ignoring this exception.",e)}}xa(e){try{var t=this.fa.getAttachable();return 0===t.length?e:x({},e,{$exception_steps:t})}catch(t){return a1.error("Failed to read buffered exception steps. Capturing exception without steps.",t),e}}ba(e){this.ca.enabled&&this.fa.add({[tX]:e,[tK]:(new Date).toISOString()})}ga(e){return ee(e)?x({},e):{}}va(){var e,t;return null!=(e=null==(t=this._instance.config.error_tracking)?void 0:t.exception_steps)?e:{}}ya(e){if(0===e.length)return!1;try{var t=e.reduce((e,t)=>{var i=t.type,s=t.value;return es(i)&&i.length>0&&e.$exception_types.push(i),es(s)&&s.length>0&&e.$exception_values.push(s),e},{$exception_types:[],$exception_values:[]});return this.ha.some(e=>{var i=e.values.map(e=>{var i=nX[e.operator],s=t[e.key];if(!i||!s)return!1;var r=Q(e.value)?e.value:[e.value];return r.length>0&&i(r,s)});return"OR"===e.type?i.some(Boolean):i.every(Boolean)})}catch(e){return a1.warn("Failed to evaluate suppression rules. Capturing the exception.",e),!1}}_a(e){return e.flatMap(e=>{var t,i;return null!=(t=null==(i=e.stacktrace)?void 0:i.frames)?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}wa(e){if(e.length>0){var t,i,s,r,n=null!=(t=null==(i=e[0].stacktrace)?void 0:i.frames)?t:[],a=n[n.length-1];return null!=(s=null==a||null==(r=a.filename)?void 0:r.includes("posthog.com/static"))&&s}return!1}ma(e){return!ea(e)&&Q(e)}}},a7,{siteApps:class{constructor(e){this.Ma=0,this._instance=e,this.Ia=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ta(e,t){if(t){var i=this.globalsForEvent(t);this.Ia.push(i),this.Ia.length>1e3&&(this.Ia=this.Ia.slice(10))}}get siteAppLoaders(){var e;return null==(e=m._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Ta.bind(this));this.Ea=()=>{e(),this.Ia=[],this.Ea=void 0}}}globalsForEvent(e){if(!e)throw Error("Event payload is required");var t,i,s,r,n,a,o,l={},u=this._instance.get_property("$groups")||[];for(var h of Object.entries(this._instance.get_property("$stored_group_properties")||{})){var c=h[0];l[c]={id:u[c],type:c,properties:h[1]}}var d=e.$set_once,p=e.$set;return{event:x({},k(e,aN),{properties:x({},e.properties,p?{$set:x({},null!=(t=null==(i=e.properties)?void 0:i.$set)?t:{},p)}:{},d?{$set_once:x({},null!=(s=null==(r=e.properties)?void 0:r.$set_once)?s:{},d)}:{}),elements_chain:null!=(n=null==(a=e.properties)?void 0:a.$elements_chain)?n:"",distinct_id:null==(o=e.properties)?void 0:o.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}Ra(e){var t,i=null==(t=e.tagName)?void 0:t.toLowerCase();return"style"===i&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(aq.error("prepare_external_dependency_stylesheet returned null"),null):"script"===i&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(aq.error("prepare_external_dependency_script returned null"),null):e}Pa(){if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var e,t,i,s,r,n,a,o,l=null==u?void 0:u.defaultView,h=null==l||null==(e=l.Node)?void 0:e.prototype;if(!l||!h)return()=>{};if(this.Ma++,this.Oa)return this.Fa();var c=[],d=this,p=new WeakSet,v=(e,t,i)=>{if(null!=e&&e[t]){var s=e[t];e[t]=i(s),c.push(()=>{e[t]=s})}},g=e=>{if(p.has(e))return e;var t=d.Ra(e);return t&&p.add(t),t},f=e=>e.map(e=>"string"==typeof e?e:g(e)).filter(e=>!en(e));return v(h,"appendChild",e=>function(t){var i=g(t);return i?e.call(this,i):t}),v(h,"insertBefore",e=>function(t,i){var s=g(t);return s?e.call(this,s,i):t}),v(h,"replaceChild",e=>function(t,i){var s=g(t);return s?e.call(this,s,i):i}),[null==(t=l.Element)?void 0:t.prototype,null==(i=l.Document)?void 0:i.prototype,null==(s=l.DocumentFragment)?void 0:s.prototype].forEach(e=>{v(e,"append",e=>function(){for(var t=arguments.length,i=Array(t),s=0;t>s;s++)i[s]=arguments[s];return e.apply(this,f(i))}),v(e,"prepend",e=>function(){for(var t=arguments.length,i=Array(t),s=0;t>s;s++)i[s]=arguments[s];return e.apply(this,f(i))})}),[null==(r=l.Element)?void 0:r.prototype,null==(n=l.CharacterData)?void 0:n.prototype,null==(a=l.DocumentType)?void 0:a.prototype].forEach(e=>{v(e,"before",e=>function(){for(var t=arguments.length,i=Array(t),s=0;t>s;s++)i[s]=arguments[s];return e.apply(this,f(i))}),v(e,"after",e=>function(){for(var t=arguments.length,i=Array(t),s=0;t>s;s++)i[s]=arguments[s];return e.apply(this,f(i))}),v(e,"replaceWith",e=>function(){for(var t=arguments.length,i=Array(t),s=0;t>s;s++)i[s]=arguments[s];var r=f(i);return i.length&&!r.length?void 0:e.apply(this,r)})}),v(null==(o=l.Element)?void 0:o.prototype,"insertAdjacentElement",e=>function(t,i){var s=g(i);return s?e.call(this,t,s):null}),this.Oa=()=>{c.forEach(e=>e()),this.Oa=void 0},this.Fa()}Fa(){var e=!1;return()=>{var t;e||(e=!0,this.Ma--,0===this.Ma&&(null==(t=this.Oa)||t.call(this)))}}Aa(e,t){void 0===t&&(t=!0);var i=this.Pa();try{var s=e(i);return t&&i(),s}catch(e){throw i(),e}}setupSiteApp(e){var t=this.apps[e.id],i=()=>{var i;!t.errored&&this.Ia.length&&(aq.info("Processing "+this.Ia.length+" events for site app with id "+e.id),this.Ia.forEach(e=>this.Aa(()=>null==t.processEvent?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(i=this.Ea)||i.call(this))},s=!1,r=r=>{t.errored=!r,t.loaded=!0,aq.info("Site app with id "+e.id+" "+(r?"loaded":"errored")),s&&i()};try{var n=this.Aa(t=>e.init({posthog:this._instance,callback(e){t(),r(e)}}),!1).processEvent;n&&(t.processEvent=n),s=!0}catch(t){aq.error(aj+e.id,t),r(!1)}if(s&&t.loaded)try{i()}catch(i){aq.error("Error while processing buffered events PostHog app with config id "+e.id,i),t.errored=!0}}$a(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var i of e)this.setupSiteApp(i)}La(e){var t=this;if(0!==Object.keys(this.apps).length){var i=this.globalsForEvent(e),s=function(s){try{t.Aa(()=>null==s.processEvent?void 0:s.processEvent(i))}catch(t){aq.error("Error while processing event "+e.event+" for site app "+s.id,t)}};for(var r of Object.values(this.apps))s(r)}}onRemoteConfig(e){var t,i,s,r=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.$a(),void this._instance.on("eventCaptured",e=>this.La(e))):void aq.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(i=this.Ea)||i.call(this),e.ok){var n=e.config;if(null!=(s=n.siteApps)&&s.length)if(this.isEnabled)for(var a of n.siteApps)!function(){var e,t=a.id,i=a.url;m["__$$ph_site_app_"+t]=r._instance,null==(e=m.__PosthogExtensions__)||null==e.loadSiteApp||e.loadSiteApp(r._instance,i,e=>{if(e)return aq.error(aj+t,e)})}();else aq.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}},oe,{tracingHeaders:class{constructor(e){this.Da=void 0,this.Na=void 0,this.qa=void 0,this.ea=()=>{var e,t,i=this.ja();i?(ei(this.Da)&&(this.Da=null==(e=m.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)?void 0:e._patchXHR(i,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),ei(this.Na)&&(this.Na=null==(t=m.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)?void 0:t._patchFetch(i,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.oa()},this._instance=e}initialize(){this.startIfEnabledOrStop()}tr(e){var t,i;null!=(t=m.__PosthogExtensions__)&&t.tracingHeadersPatchFns?e():null==(i=m.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return aP.error("failed to load script",t);e()})}Ba(){var e,t;return null!=(e=null!=(t=this._instance.config.tracing_headers)?t:this._instance.config.addTracingHeaders)?e:this._instance.config.__add_tracing_headers}ja(){var e=this.Ba();return Q(e)?(Q(this.qa)?this.qa.splice(0,this.qa.length,...e):this.qa=[...e],e.length>0?this.qa:void 0):(Q(this.qa)&&this.qa.splice(0),this.qa=e||void 0,this.qa)}oa(){var e,t;null==(e=this.Da)||e.call(this),null==(t=this.Na)||t.call(this),this.Da=void 0,this.Na=void 0}startIfEnabledOrStop(){this.ja()?this.tr(this.ea):this.oa()}}},{toolbar:class{constructor(e){this.instance=e}rl(e){m.ph_toolbar_state=e}il(){var e;return null!=(e=m.ph_toolbar_state)?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,i){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===i&&(i=void 0),su(this.instance.config)||!a||!u)return!1;e=null!=e?e:a.location,i=null!=i?i:a.history;try{if(!t){try{a.localStorage.setItem("test","test"),a.localStorage.removeItem("test")}catch(e){return!1}t=null==a?void 0:a.localStorage}var s,r=aW||rw(e.hash,"__posthog")||rw(e.hash,"state"),n=r?sr(()=>JSON.parse(atob(decodeURIComponent(r))))||sr(()=>JSON.parse(decodeURIComponent(r))):null;return n&&"ph_authorize"===n.action?((s=n).source="url",s&&Object.keys(s).length>0&&(n.desiredHash?e.hash=n.desiredHash:i?i.replaceState(i.state,"",e.pathname+e.search):e.hash="")):((s=JSON.parse(t.getItem(aJ)||"{}")).source="localstorage",delete s.userIntent),!(!s.token||this.instance.config.token!==s.token||(this.loadToolbar(s),0))}catch(e){return!1}}nl(e){var t=m.ph_load_toolbar||m.ph_load_editor;!ea(t)&&Z(t)?t(e,this.instance):aX.warn("No toolbar load function found")}loadToolbar(e){var t,i=!(null==u||!u.getElementById(sR));if(!a||i)return!1;var s="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,r=x({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},s?{instrument:!1}:{});return(a.localStorage.setItem(aJ,JSON.stringify(x({},r,{source:void 0}))),2===this.il())?this.nl(r):0===this.il()&&(this.rl(1),null==(t=m.__PosthogExtensions__)||null==t.loadExternalDependency||t.loadExternalDependency(this.instance,"toolbar",e=>{e?(aX.error("[Toolbar] Failed to load",e),this.rl(0)):(this.rl(2),this.nl(r))}),sl(a,"turbolinks:load",()=>{this.rl(0),this.loadToolbar(r)})),!0}sl(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,i){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===i&&(i=void 0),this.maybeLoadToolbar(e,t,i)}}},ot,{conversations:class{constructor(e){this.ol=void 0,this._conversationsManager=null,this.al=!1,this.ll=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations&&e.ok){var t=e.config.conversations;ea(t)||(eu(t)?this.ol=t:(this.ol=t.enabled,this.ll=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.ol=void 0,this.ll=null}loadIfEnabled(){if(!(this._conversationsManager||this.al||this._instance.config.disable_conversations||su(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==m?void 0:m.__PosthogExtensions__;if(e&&!ei(this.ol)&&this.ol)if(this.ll&&this.ll.token){this.al=!0;try{var t=e.initConversations;if(t)return this.ul(t),void(this.al=!1);var i=e.loadExternalDependency;if(!i)return void this.hl(iQ);i(this._instance,"conversations",t=>{t||!e.initConversations?this.hl("Could not load conversations script",t):this.ul(e.initConversations),this.al=!1})}catch(e){this.hl("Error initializing conversations",e),this.al=!1}}else a8.error("Conversations enabled but missing token in remote config.")}}ul(e){if(this.ll)try{this._conversationsManager=e(this.ll,this._instance),a8.info("Conversations loaded successfully")}catch(e){this.hl("Error completing conversations initialization",e)}else a8.error("Cannot complete initialization: remote config is null")}hl(e,t){a8.error(e,t),this._conversationsManager=null,this.al=!1}show(){this._conversationsManager?this._conversationsManager.show():a8.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.ol&&!en(this._conversationsManager)}isVisible(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&e}sendMessage(e,t,i){var s=this;return w(function*(){return s._conversationsManager?s._conversationsManager.sendMessage(e,t,i):(a8.warn(a6),null)})()}getMessages(e,t){var i=this;return w(function*(){return i._conversationsManager?i._conversationsManager.getMessages(e,t):(a8.warn(a6),null)})()}markAsRead(e){var t=this;return w(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(a8.warn(a6),null)})()}getTickets(e){var t=this;return w(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(a8.warn(a6),null)})()}requestRestoreLink(e){var t=this;return w(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(a8.warn(a6),null)})()}restoreFromToken(e){var t=this;return w(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(a8.warn(a6),null)})()}restoreFromUrlToken(){var e=this;return w(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(a8.warn(a6),null)})()}getCurrentTicketId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())?e:null}getWidgetSessionId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())?e:null}Nn(){var e;null==(e=this._conversationsManager)||e.setIdentity()}qn(){var e;null==(e=this._conversationsManager)||e.clearIdentity()}}},{logs:class{constructor(e){var t;this.dl=!1,this.cl=!1,this.it=t3("[logs]"),this.Gr=[],this.vl=[],this.Js=0,this.fl=()=>{var e,t;this.Js=0,null==(e=this.pl)||e.onReconnect(),null==(t=this.gl)||t.onReconnect()},this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.dl=!0),a&&sl(a,"online",this.fl)}ml(e,t,i,s){var r,n,a,o,l,u,h,c,d,p,v,g,f,_,m=(r=null==(_=this._instance)||null==(_=_.config)?void 0:_.logs,d=null!=(n=null==r?void 0:r.flushIntervalMs)?n:3e3,p=null!=(a=null==r?void 0:r.maxBufferSize)?a:100,g=ei(v=null!=i&&i.consoleCapture?void 0:null!=(o=null==r?void 0:r.maxLogsPerInterval)?o:1e3)?Math.max(p,2048):Math.max(p,v),{serviceName:null!=(l=null!=(u=null==(f=null==r?void 0:r.resourceAttributes)?void 0:f["service.name"])?u:null==r?void 0:r.serviceName)?l:null==i?void 0:i.serviceNameDefault,serviceVersion:null!=(h=null==f?void 0:f["service.version"])?h:null==r?void 0:r.serviceVersion,environment:null!=(c=null==f?void 0:f["deployment.environment"])?c:null==r?void 0:r.environment,resourceAttributes:f,beforeSend:null==r?void 0:r.beforeSend,flushIntervalMs:d,maxBufferSize:p,maxQueueSize:g,maxBatchRecordsPerPost:100,rateCapWindowMs:d,maxLogsPerInterval:v,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0});return[new tx(this.yl(e,t),m,this.it,()=>this.bl(),e=>e(),void 0,s),m]}_l(){var e,t=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;if(!this.pl||this.wl!==t){null==(i=this.pl)||i.reset(),this.wl=t;var i,s=this.ml(()=>this.Gr,e=>{this.Gr=e});this.pl=s[0],this.xl=s[1]}return this.pl}kl(){var e,t=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;if(!this.gl||this.Sl!==t){null==(i=this.gl)||i.reset(),this.Sl=t;var i,s=this.ml(()=>this.vl,e=>{this.vl=e},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},a4);this.gl=s[0],this.Cl=s[1]}return this.gl}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t;if(e.ok){var i=null==(t=e.config.logs)?void 0:t.captureConsoleLogs;!ea(i)&&i&&(this.dl=!0,this.loadIfEnabled())}}reset(){var e,t;this.Gr=[],null==(e=this.pl)||e.reset(),this.vl=[],null==(t=this.gl)||t.reset(),this.Js=0}captureLog(e){this._l().captureLog(e)}le(e){this.kl().captureLog(e)}get logger(){return this.Ml||(this.Ml={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.Ml}flushLogs(e){e?this.Il(e):(this.pl&&this.pl.flush().catch(e=>this.it.error("PostHog logs flush failed:",e)),this.gl&&this.gl.flush().catch(e=>this.it.error("PostHog logs flush failed:",e)))}loadIfEnabled(){if(this.dl&&!this.cl){var e=null==m?void 0:m.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",t=>{var i;t||null==(i=e.logs)||!i.initializeLogs?this.it.error("Could not load logs script",t):(e.logs.initializeLogs(this._instance),this.cl=!0)}):this.it.error(iQ)}else this.it.error("PostHog Extensions not found.")}}yl(e,t){var i=this._instance;return{get isDisabled(){return!1},get optedOut(){return!i.is_capturing()},getPersistedProperty:t=>t===M.LogsQueue?e():void 0,setPersistedProperty(e,i){e===M.LogsQueue&&t(null!=i?i:[])},$t:e=>this.$t(e),getLibraryId:()=>y.LIB_NAME,getLibraryVersion:()=>y.LIB_VERSION}}$t(e){return new Promise(t=>{if(rx(this.Js,3))t({kind:"fatal",error:Error("logs endpoint is unreachable, dropping batch")});else{var i=!1,s=e=>{i||(i=!0,clearTimeout(r),t(e))},r=setTimeout(()=>s({kind:"retry-later",error:Error("logs request timed out")}),9e4);this._instance._send_request({method:"POST",url:this.Tl(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback:e=>{var t,i=e.statusCode;(this.El(i),i>=200&&300>i)?s({kind:"ok"}):413===i?s({kind:"too-large"}):0!==i&&429!==i&&500>i?s({kind:"fatal",error:Error("logs request failed with status "+i)}):s({kind:"retry-later",error:null!=(t=e.error)?t:Error("logs request failed with status "+i)})}})}})}El(e){(0!==e||this._instance.__loaded)&&(this.Js=rk(e,this.Js,3,()=>this.it.warn("Log requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped sending logs; will try again when connectivity changes.")))}Il(e){this.Gr.length>0&&this.Rl(e,this.Gr,this.xl,y.LIB_NAME,e=>{this.Gr=e}),this.vl.length>0&&this.Rl(e,this.vl,this.Cl,a4,e=>{this.vl=e})}Rl(e,t,i,s,r){if(0!==t.length){var n=t.map(e=>e.record);r([]);var a=tw(n,tb(i,y.LIB_NAME,y.LIB_VERSION),s,y.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Tl(),data:a,compression:"best-available",batchKey:"logs",transport:e})}}Tl(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}bl(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var i=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0),s=i.windowId,r=i.sessionStartTimestamp,n=i.lastActivityTimestamp;t.sessionId=i.sessionId,t.windowId=s,ea(r)||(t.sessionStartTimestamp=r),ea(n)||(t.lastActivityTimestamp=n)}if(null!=m&&null!=(e=m.location)&&e.href&&(t.currentUrl=this._instance.config.disable_capture_url_hashes?tv(m.location.href):m.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},{metrics:class{constructor(e){this.it=t3("[metrics]"),this._instance=e}initialize(){}_l(){var e,t,i,s,r,n,a,o,l=null==(a=this._instance)||null==(a=a.config)?void 0:a.metrics;return this.pl&&this.wl===l||(null==(o=this.pl)||o.reset(),this.wl=l,this.pl=new tP(this.yl(),{serviceName:null!=(e=null==(n=null==l?void 0:l.resourceAttributes)?void 0:n["service.name"])?e:null==l?void 0:l.serviceName,serviceVersion:null!=(t=null==n?void 0:n["service.version"])?t:null==l?void 0:l.serviceVersion,environment:null!=(i=null==n?void 0:n["deployment.environment"])?i:null==l?void 0:l.environment,resourceAttributes:n,beforeSend:null==l?void 0:l.beforeSend,flushIntervalMs:null!=(s=null==l?void 0:l.flushIntervalMs)?s:1e4,maxSeriesPerFlush:null!=(r=null==l?void 0:l.maxSeriesPerFlush)?r:1e3},this.it)),this.pl}count(e,t,i){void 0===t&&(t=1),this._l().count(e,t,i)}gauge(e,t,i){this._l().gauge(e,t,i)}histogram(e,t,i){this._l().histogram(e,t,i)}flush(e){if(!this.pl)return Promise.resolve();if(e){var t=this.pl.drainWindow();return t&&this.Kt(t,e),Promise.resolve()}return this.pl.flush().catch(e=>this.it.error("PostHog metrics flush failed:",e))}reset(){var e;null==(e=this.pl)||e.reset()}yl(){var e=this._instance,t=this;return{get isDisabled(){return!1},get optedOut(){return!e.is_capturing()},Kt:e=>t.Kt(e),getLibraryId:()=>y.LIB_NAME,getLibraryVersion:()=>y.LIB_VERSION}}Kt(e,t){return new Promise(i=>{var s=!1,r=e=>{s||(s=!0,clearTimeout(n),i(e))},n=setTimeout(()=>r({kind:"retry-later",error:Error("metrics request timed out")}),9e4);this._instance._send_request(x({method:"POST",url:this.Pl(),data:e,compression:"best-available",batchKey:"metrics"},t&&{transport:t},{fireCallbackOnDrop:!0,callback(e){var t,i=e.statusCode;i>=200&&300>i?r({kind:"ok"}):413===i?r({kind:"too-large"}):0!==i&&429!==i&&500>i?r({kind:"fatal",error:Error("metrics request failed with status "+i)}):r({kind:"retry-later",error:null!=(t=e.error)?t:Error("metrics request failed with status "+i)})}}))})}Pl(){return this._instance.requestRouter.endpointFor("api","/i/v1/metrics")+"?token="+encodeURIComponent(this._instance.config.token)}}});ay.__defaultExtensionClasses=x({},oi);var os=(y.SDK_DIST_CHANNEL="npm",n=an[ap]=new ay,function(){function e(){e.done||(e.done=!0,av=!1,st(an,function(e){e._dom_loaded()}))}null!=u&&u.addEventListener?"complete"===u.readyState?e():sl(u,"DOMContentLoaded",e,{capture:!1}):a&&t2.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),n)}}]);
|