@slycode/slycode 0.2.9 → 0.2.11

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.
Files changed (74) hide show
  1. package/dist/web/.next/BUILD_ID +1 -1
  2. package/dist/web/.next/build-manifest.json +2 -2
  3. package/dist/web/.next/server/app/_global-error.html +2 -2
  4. package/dist/web/.next/server/app/_global-error.rsc +1 -1
  5. package/dist/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  6. package/dist/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  7. package/dist/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  8. package/dist/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  9. package/dist/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/dist/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/dist/web/.next/server/app/_not-found.html +1 -1
  12. package/dist/web/.next/server/app/_not-found.rsc +10 -10
  13. package/dist/web/.next/server/app/_not-found.segments/_full.segment.rsc +10 -10
  14. package/dist/web/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  15. package/dist/web/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
  16. package/dist/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  17. package/dist/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  18. package/dist/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  19. package/dist/web/.next/server/app/api/cli-assets/assistant/route.js.nft.json +1 -1
  20. package/dist/web/.next/server/app/api/cli-assets/fix/route.js.nft.json +1 -1
  21. package/dist/web/.next/server/app/api/cli-assets/import/route.js.nft.json +1 -1
  22. package/dist/web/.next/server/app/api/cli-assets/route.js.nft.json +1 -1
  23. package/dist/web/.next/server/app/api/cli-assets/store/preview/route.js.nft.json +1 -1
  24. package/dist/web/.next/server/app/api/cli-assets/store/route.js.nft.json +1 -1
  25. package/dist/web/.next/server/app/api/cli-assets/sync/route.js.nft.json +1 -1
  26. package/dist/web/.next/server/app/api/cli-assets/updates/route.js.nft.json +1 -1
  27. package/dist/web/.next/server/app/api/dashboard/route.js.nft.json +1 -1
  28. package/dist/web/.next/server/app/api/file/route.js.nft.json +1 -1
  29. package/dist/web/.next/server/app/api/git-status/route.js.nft.json +1 -1
  30. package/dist/web/.next/server/app/api/kanban/route.js.nft.json +1 -1
  31. package/dist/web/.next/server/app/api/kanban/stream/route.js.nft.json +1 -1
  32. package/dist/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
  33. package/dist/web/.next/server/app/api/projects/reorder/route.js.nft.json +1 -1
  34. package/dist/web/.next/server/app/api/projects/route.js.nft.json +1 -1
  35. package/dist/web/.next/server/app/api/scheduler/route.js.nft.json +1 -1
  36. package/dist/web/.next/server/app/api/search/route.js.nft.json +1 -1
  37. package/dist/web/.next/server/app/api/sly-actions/invalidate/route.js.nft.json +1 -1
  38. package/dist/web/.next/server/app/api/sly-actions/route.js.nft.json +1 -1
  39. package/dist/web/.next/server/app/api/transcribe/route.js +3 -3
  40. package/dist/web/.next/server/app/api/transcribe/route.js.nft.json +1 -1
  41. package/dist/web/.next/server/app/api/version-check/route.js.nft.json +1 -1
  42. package/dist/web/.next/server/app/page.js.nft.json +1 -1
  43. package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
  44. package/dist/web/.next/server/app/project/[id]/page.js.nft.json +1 -1
  45. package/dist/web/.next/server/app/project/[id]/page_client-reference-manifest.js +1 -1
  46. package/dist/web/.next/server/chunks/{[root-of-the-server]__934c9bb4._.js → [root-of-the-server]__0f9b71fd._.js} +1 -1
  47. package/dist/web/.next/server/chunks/[root-of-the-server]__1dec5018._.js +3 -0
  48. package/dist/web/.next/server/chunks/{[root-of-the-server]__e00fb85f._.js → [root-of-the-server]__2605d761._.js} +1 -1
  49. package/dist/web/.next/server/chunks/{[root-of-the-server]__41df0777._.js → [root-of-the-server]__53ef96b9._.js} +2 -2
  50. package/dist/web/.next/server/chunks/{[root-of-the-server]__1cdc76ef._.js → [root-of-the-server]__8ce673c9._.js} +2 -2
  51. package/dist/web/.next/server/chunks/[root-of-the-server]__a43db24d._.js +19 -0
  52. package/dist/web/.next/server/chunks/{[root-of-the-server]__104b2da3._.js → [root-of-the-server]__a4d171b5._.js} +3 -3
  53. package/dist/web/.next/server/chunks/{[root-of-the-server]__3dc5531f._.js → [root-of-the-server]__c7ac3578._.js} +1 -1
  54. package/dist/web/.next/server/chunks/ssr/src_contexts_VoiceContext_tsx_cfba7292._.js +1 -1
  55. package/dist/web/.next/server/pages/404.html +1 -1
  56. package/dist/web/.next/server/pages/500.html +2 -2
  57. package/dist/web/.next/static/chunks/3df3846316317676.css +1 -0
  58. package/dist/web/.next/static/chunks/{0452f599128364c9.js → 8fb2a99c64580de7.js} +1 -1
  59. package/dist/web/.next/static/chunks/{2a22edae0b1198eb.js → b8e0c1aeea4a14bc.js} +1 -1
  60. package/dist/web/package-lock.json +37 -0
  61. package/dist/web/package.json +1 -0
  62. package/dist/web/src/app/api/transcribe/route.ts +7 -1
  63. package/dist/web/src/components/VoiceControlBar.tsx +1 -0
  64. package/dist/web/src/hooks/useVoiceRecorder.ts +7 -5
  65. package/dist/web/src/lib/webm-to-ogg-opus.ts +254 -0
  66. package/dist/web/tsconfig.tsbuildinfo +1 -1
  67. package/package.json +1 -1
  68. package/templates/kanban-seed.json +1 -1
  69. package/dist/web/.next/server/chunks/[root-of-the-server]__3998d59e._.js +0 -19
  70. package/dist/web/.next/server/chunks/[root-of-the-server]__403750fd._.js +0 -3
  71. package/dist/web/.next/static/chunks/f3d7065d54a0b9ac.css +0 -1
  72. /package/dist/web/.next/static/{wK5osty7Iax92ZOE_Skb7 → eGpcv9LfmamGIm1II8SKL}/_buildManifest.js +0 -0
  73. /package/dist/web/.next/static/{wK5osty7Iax92ZOE_Skb7 → eGpcv9LfmamGIm1II8SKL}/_clientMiddlewareManifest.json +0 -0
  74. /package/dist/web/.next/static/{wK5osty7Iax92ZOE_Skb7 → eGpcv9LfmamGIm1II8SKL}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- module.exports=[76535,e=>{"use strict";var r=e.i(46277);let i=async e=>{let i=await (0,r.loadSharedConfigFiles)(e);return((...e)=>{let r={};for(let i of e)for(let[e,t]of Object.entries(i))void 0!==r[e]?Object.assign(r[e],t):r[e]=t;return r})(i.configFile,i.credentialsFile)};e.s(["parseKnownFiles",0,i],76535)},24868,(e,r,i)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},23897,32961,e=>{"use strict";var r=e.i(24868),i=e.i(54799),t=e.i(14747),s=e.i(65790);let o=e=>{let r=(0,i.createHash)("sha1").update(e).digest("hex");return(0,t.join)((0,s.getHomeDir)(),".aws","sso","cache",`${r}.json`)};e.s(["getSSOTokenFilepath",0,o],32961);let n={},a=async e=>{if(n[e])return n[e];let i=o(e);return JSON.parse(await (0,r.readFile)(i,"utf8"))};e.s(["getSSOTokenFromFile",0,a,"tokenIntercept",0,n],23897)},26709,e=>{"use strict";e.s([],23957),e.i(23957);var r=e.i(60400),i=e.i(81355),t=e.i(92395),s=e.i(96405),o=e.i(3289);let n=e=>Object.entries(e).filter(([e])=>e.startsWith(s.IniSectionType.SSO_SESSION+o.CONFIG_PREFIX_SEPARATOR)).reduce((e,[r,i])=>({...e,[r.substring(r.indexOf(o.CONFIG_PREFIX_SEPARATOR)+1)]:i}),{});var a=e.i(7104),l=e.i(49487);let g=()=>({}),c=async(e={})=>(0,l.readFile)(e.configFilepath??(0,t.getConfigFilepath)()).then(a.parseIni).then(n).catch(g);var f=e.i(76535);let d=e=>e&&("string"==typeof e.sso_start_url||"string"==typeof e.sso_account_id||"string"==typeof e.sso_session||"string"==typeof e.sso_region||"string"==typeof e.sso_role_name);e.s(["isSsoProfile",0,d],70487);var p=e.i(9212),h=e.i(48979);class w extends h.ProviderError{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,w.prototype)}}var u=e.i(23897);let S="To refresh this SSO session run 'aws sso login' with the corresponding profile.",_=async(r,i={},t)=>{let{SSOOIDCClient:s}=await e.A(57227),o=e=>i.clientConfig?.[e]??i.parentClientConfig?.[e]??t?.[e];return new s(Object.assign({},i.clientConfig??{},{region:r??i.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},C=async(r,i,t={},s)=>{let{CreateTokenCommand:o}=await e.A(57227);return(await _(i,t,s)).send(new o({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))},k=e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new w(`Token is expired. ${S}`,!1)},m=(e,r,i=!1)=>{if(void 0===r)throw new w(`Value not present for '${e}' in SSO Token${i?". Cannot refresh":""}. ${S}`,!1)};var O=e.i(32961);let{writeFile:v}=e.i(2157).promises,T=new Date(0),y=async({ssoStartUrl:t,ssoSession:s,ssoAccountId:o,ssoRegion:n,ssoRoleName:a,ssoClient:l,clientConfig:g,parentClientConfig:d,callerClientConfig:h,profile:_,filepath:y,configFilepath:x,ignoreCache:P,logger:A})=>{let I,F,E="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let e=await ((e={})=>async({callerClientConfig:r}={})=>{let t;e.logger?.debug("@aws-sdk/token-providers - fromSso");let s=await (0,f.parseKnownFiles)(e),o=(0,i.getProfileName)({profile:e.profile??r?.profile}),n=s[o];if(n){if(!n.sso_session)throw new w(`Profile '${o}' is missing required property 'sso_session'.`)}else throw new w(`Profile '${o}' could not be found in shared credentials file.`,!1);let a=n.sso_session,l=(await c(e))[a];if(!l)throw new w(`Sso session '${a}' could not be found in shared credentials file.`,!1);for(let e of["sso_start_url","sso_region"])if(!l[e])throw new w(`Sso session '${a}' is missing required property '${e}'.`,!1);l.sso_start_url;let g=l.sso_region;try{t=await (0,u.getSSOTokenFromFile)(a)}catch(e){throw new w(`The SSO session token associated with profile=${o} was not found or is invalid. ${S}`,!1)}m("accessToken",t.accessToken),m("expiresAt",t.expiresAt);let{accessToken:d,expiresAt:p}=t,h={token:d,expiration:new Date(p)};if(h.expiration.getTime()-Date.now()>3e5)return h;if(Date.now()-T.getTime()<3e4)return k(h),h;m("clientId",t.clientId,!0),m("clientSecret",t.clientSecret,!0),m("refreshToken",t.refreshToken,!0);try{T.setTime(Date.now());let i=await C(t,g,e,r);m("accessToken",i.accessToken),m("expiresIn",i.expiresIn);let s=new Date(Date.now()+1e3*i.expiresIn);try{var _;let e;await (_={...t,accessToken:i.accessToken,expiresAt:s.toISOString(),refreshToken:i.refreshToken},e=(0,O.getSSOTokenFilepath)(a),v(e,JSON.stringify(_,null,2)))}catch(e){}return{token:i.accessToken,expiration:s}}catch(e){return k(h),h}})({profile:_,filepath:y,configFilepath:x,ignoreCache:P})();I={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new r.CredentialsProviderError(e.message,{tryNextLink:!1,logger:A})}else try{I=await (0,u.getSSOTokenFromFile)(t)}catch(e){throw new r.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${E}`,{tryNextLink:!1,logger:A})}if(new Date(I.expiresAt).getTime()-Date.now()<=0)throw new r.CredentialsProviderError(`The SSO session associated with this profile has expired. ${E}`,{tryNextLink:!1,logger:A});let{accessToken:N}=I,{SSOClient:$,GetRoleCredentialsCommand:b}=await e.A(94624),D=l||new $(Object.assign({},g??{},{logger:g?.logger??h?.logger??d?.logger,region:g?.region??n,userAgentAppId:g?.userAgentAppId??h?.userAgentAppId??d?.userAgentAppId}));try{F=await D.send(new b({accountId:o,roleName:a,accessToken:N}))}catch(e){throw new r.CredentialsProviderError(e,{tryNextLink:!1,logger:A})}let{roleCredentials:{accessKeyId:R,secretAccessKey:j,sessionToken:L,expiration:q,credentialScope:G,accountId:K}={}}=F;if(!R||!j||!L||!q)throw new r.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:!1,logger:A});let H={accessKeyId:R,secretAccessKey:j,sessionToken:L,expiration:new Date(q),...G&&{credentialScope:G},...K&&{accountId:K}};return s?(0,p.setCredentialFeature)(H,"CREDENTIALS_SSO","s"):(0,p.setCredentialFeature)(H,"CREDENTIALS_SSO_LEGACY","u"),H},x=(e,i)=>{let{sso_start_url:t,sso_account_id:s,sso_region:o,sso_role_name:n}=e;if(!t||!s||!o||!n)throw new r.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
2
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:i});return e};e.s(["validateSsoProfile",0,x],61980);let P=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:s,ssoAccountId:o,ssoRegion:n,ssoRoleName:a,ssoSession:l}=e,{ssoClient:g}=e,p=(0,i.getProfileName)({profile:e.profile??t?.profile});if(s||o||n||a||l)if(s&&o&&n&&a)return y({ssoStartUrl:s,ssoSession:l,ssoAccountId:o,ssoRegion:n,ssoRoleName:a,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:p,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger});else throw new r.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});{let i=(await (0,f.parseKnownFiles)(e))[p];if(!i)throw new r.CredentialsProviderError(`Profile ${p} was not found.`,{logger:e.logger});if(!d(i))throw new r.CredentialsProviderError(`Profile ${p} is not configured with SSO credentials.`,{logger:e.logger});if(i?.sso_session){let t=(await c(e))[i.sso_session],o=` configurations in profile ${p} and sso-session ${i.sso_session}`;if(n&&n!==t.sso_region)throw new r.CredentialsProviderError("Conflicting SSO region"+o,{tryNextLink:!1,logger:e.logger});if(s&&s!==t.sso_start_url)throw new r.CredentialsProviderError("Conflicting SSO start_url"+o,{tryNextLink:!1,logger:e.logger});i.sso_region=t.sso_region,i.sso_start_url=t.sso_start_url}let{sso_start_url:t,sso_account_id:o,sso_region:a,sso_role_name:l,sso_session:h}=x(i,e.logger);return y({ssoStartUrl:t,ssoSession:h,ssoAccountId:o,ssoRegion:a,ssoRoleName:l,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:p,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}};e.s(["fromSSO",0,P],75670),e.i(75670),e.i(70487),e.s([],10105),e.i(10105),e.i(61980),e.s(["fromSSO",0,P,"isSsoProfile",0,d,"validateSsoProfile",0,x],26709)},57227,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__3dc5531f._.js","server/chunks/node_modules_@aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_df09d547.js"].map(r=>e.l(r))).then(()=>r(86799)))},94624,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__934c9bb4._.js"].map(r=>e.l(r))).then(()=>r(56690)))}];
1
+ module.exports=[76535,e=>{"use strict";var r=e.i(46277);let i=async e=>{let i=await (0,r.loadSharedConfigFiles)(e);return((...e)=>{let r={};for(let i of e)for(let[e,t]of Object.entries(i))void 0!==r[e]?Object.assign(r[e],t):r[e]=t;return r})(i.configFile,i.credentialsFile)};e.s(["parseKnownFiles",0,i],76535)},24868,(e,r,i)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},23897,32961,e=>{"use strict";var r=e.i(24868),i=e.i(54799),t=e.i(14747),s=e.i(65790);let o=e=>{let r=(0,i.createHash)("sha1").update(e).digest("hex");return(0,t.join)((0,s.getHomeDir)(),".aws","sso","cache",`${r}.json`)};e.s(["getSSOTokenFilepath",0,o],32961);let n={},a=async e=>{if(n[e])return n[e];let i=o(e);return JSON.parse(await (0,r.readFile)(i,"utf8"))};e.s(["getSSOTokenFromFile",0,a,"tokenIntercept",0,n],23897)},26709,e=>{"use strict";e.s([],23957),e.i(23957);var r=e.i(60400),i=e.i(81355),t=e.i(92395),s=e.i(96405),o=e.i(3289);let n=e=>Object.entries(e).filter(([e])=>e.startsWith(s.IniSectionType.SSO_SESSION+o.CONFIG_PREFIX_SEPARATOR)).reduce((e,[r,i])=>({...e,[r.substring(r.indexOf(o.CONFIG_PREFIX_SEPARATOR)+1)]:i}),{});var a=e.i(7104),l=e.i(49487);let g=()=>({}),c=async(e={})=>(0,l.readFile)(e.configFilepath??(0,t.getConfigFilepath)()).then(a.parseIni).then(n).catch(g);var f=e.i(76535);let d=e=>e&&("string"==typeof e.sso_start_url||"string"==typeof e.sso_account_id||"string"==typeof e.sso_session||"string"==typeof e.sso_region||"string"==typeof e.sso_role_name);e.s(["isSsoProfile",0,d],70487);var p=e.i(9212),h=e.i(48979);class w extends h.ProviderError{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,w.prototype)}}var u=e.i(23897);let S="To refresh this SSO session run 'aws sso login' with the corresponding profile.",_=async(r,i={},t)=>{let{SSOOIDCClient:s}=await e.A(57227),o=e=>i.clientConfig?.[e]??i.parentClientConfig?.[e]??t?.[e];return new s(Object.assign({},i.clientConfig??{},{region:r??i.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},C=async(r,i,t={},s)=>{let{CreateTokenCommand:o}=await e.A(57227);return(await _(i,t,s)).send(new o({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))},k=e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new w(`Token is expired. ${S}`,!1)},m=(e,r,i=!1)=>{if(void 0===r)throw new w(`Value not present for '${e}' in SSO Token${i?". Cannot refresh":""}. ${S}`,!1)};var O=e.i(32961);let{writeFile:v}=e.i(2157).promises,T=new Date(0),y=async({ssoStartUrl:t,ssoSession:s,ssoAccountId:o,ssoRegion:n,ssoRoleName:a,ssoClient:l,clientConfig:g,parentClientConfig:d,callerClientConfig:h,profile:_,filepath:y,configFilepath:x,ignoreCache:P,logger:A})=>{let I,F,E="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let e=await ((e={})=>async({callerClientConfig:r}={})=>{let t;e.logger?.debug("@aws-sdk/token-providers - fromSso");let s=await (0,f.parseKnownFiles)(e),o=(0,i.getProfileName)({profile:e.profile??r?.profile}),n=s[o];if(n){if(!n.sso_session)throw new w(`Profile '${o}' is missing required property 'sso_session'.`)}else throw new w(`Profile '${o}' could not be found in shared credentials file.`,!1);let a=n.sso_session,l=(await c(e))[a];if(!l)throw new w(`Sso session '${a}' could not be found in shared credentials file.`,!1);for(let e of["sso_start_url","sso_region"])if(!l[e])throw new w(`Sso session '${a}' is missing required property '${e}'.`,!1);l.sso_start_url;let g=l.sso_region;try{t=await (0,u.getSSOTokenFromFile)(a)}catch(e){throw new w(`The SSO session token associated with profile=${o} was not found or is invalid. ${S}`,!1)}m("accessToken",t.accessToken),m("expiresAt",t.expiresAt);let{accessToken:d,expiresAt:p}=t,h={token:d,expiration:new Date(p)};if(h.expiration.getTime()-Date.now()>3e5)return h;if(Date.now()-T.getTime()<3e4)return k(h),h;m("clientId",t.clientId,!0),m("clientSecret",t.clientSecret,!0),m("refreshToken",t.refreshToken,!0);try{T.setTime(Date.now());let i=await C(t,g,e,r);m("accessToken",i.accessToken),m("expiresIn",i.expiresIn);let s=new Date(Date.now()+1e3*i.expiresIn);try{var _;let e;await (_={...t,accessToken:i.accessToken,expiresAt:s.toISOString(),refreshToken:i.refreshToken},e=(0,O.getSSOTokenFilepath)(a),v(e,JSON.stringify(_,null,2)))}catch(e){}return{token:i.accessToken,expiration:s}}catch(e){return k(h),h}})({profile:_,filepath:y,configFilepath:x,ignoreCache:P})();I={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new r.CredentialsProviderError(e.message,{tryNextLink:!1,logger:A})}else try{I=await (0,u.getSSOTokenFromFile)(t)}catch(e){throw new r.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${E}`,{tryNextLink:!1,logger:A})}if(new Date(I.expiresAt).getTime()-Date.now()<=0)throw new r.CredentialsProviderError(`The SSO session associated with this profile has expired. ${E}`,{tryNextLink:!1,logger:A});let{accessToken:N}=I,{SSOClient:$,GetRoleCredentialsCommand:D}=await e.A(94624),b=l||new $(Object.assign({},g??{},{logger:g?.logger??h?.logger??d?.logger,region:g?.region??n,userAgentAppId:g?.userAgentAppId??h?.userAgentAppId??d?.userAgentAppId}));try{F=await b.send(new D({accountId:o,roleName:a,accessToken:N}))}catch(e){throw new r.CredentialsProviderError(e,{tryNextLink:!1,logger:A})}let{roleCredentials:{accessKeyId:R,secretAccessKey:j,sessionToken:L,expiration:q,credentialScope:G,accountId:K}={}}=F;if(!R||!j||!L||!q)throw new r.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:!1,logger:A});let H={accessKeyId:R,secretAccessKey:j,sessionToken:L,expiration:new Date(q),...G&&{credentialScope:G},...K&&{accountId:K}};return s?(0,p.setCredentialFeature)(H,"CREDENTIALS_SSO","s"):(0,p.setCredentialFeature)(H,"CREDENTIALS_SSO_LEGACY","u"),H},x=(e,i)=>{let{sso_start_url:t,sso_account_id:s,sso_region:o,sso_role_name:n}=e;if(!t||!s||!o||!n)throw new r.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
2
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:i});return e};e.s(["validateSsoProfile",0,x],61980);let P=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:s,ssoAccountId:o,ssoRegion:n,ssoRoleName:a,ssoSession:l}=e,{ssoClient:g}=e,p=(0,i.getProfileName)({profile:e.profile??t?.profile});if(s||o||n||a||l)if(s&&o&&n&&a)return y({ssoStartUrl:s,ssoSession:l,ssoAccountId:o,ssoRegion:n,ssoRoleName:a,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:p,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger});else throw new r.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});{let i=(await (0,f.parseKnownFiles)(e))[p];if(!i)throw new r.CredentialsProviderError(`Profile ${p} was not found.`,{logger:e.logger});if(!d(i))throw new r.CredentialsProviderError(`Profile ${p} is not configured with SSO credentials.`,{logger:e.logger});if(i?.sso_session){let t=(await c(e))[i.sso_session],o=` configurations in profile ${p} and sso-session ${i.sso_session}`;if(n&&n!==t.sso_region)throw new r.CredentialsProviderError("Conflicting SSO region"+o,{tryNextLink:!1,logger:e.logger});if(s&&s!==t.sso_start_url)throw new r.CredentialsProviderError("Conflicting SSO start_url"+o,{tryNextLink:!1,logger:e.logger});i.sso_region=t.sso_region,i.sso_start_url=t.sso_start_url}let{sso_start_url:t,sso_account_id:o,sso_region:a,sso_role_name:l,sso_session:h}=x(i,e.logger);return y({ssoStartUrl:t,ssoSession:h,ssoAccountId:o,ssoRegion:a,ssoRoleName:l,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:p,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}};e.s(["fromSSO",0,P],75670),e.i(75670),e.i(70487),e.s([],10105),e.i(10105),e.i(61980),e.s(["fromSSO",0,P,"isSsoProfile",0,d,"validateSsoProfile",0,x],26709)},57227,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__c7ac3578._.js","server/chunks/node_modules_@aws-sdk_nested-clients_dist-es_submodules_sso-oidc_index_df09d547.js"].map(r=>e.l(r))).then(()=>r(86799)))},94624,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0f9b71fd._.js"].map(r=>e.l(r))).then(()=>r(56690)))}];
3
3
 
4
- //# sourceMappingURL=%5Broot-of-the-server%5D__104b2da3._.js.map
4
+ //# sourceMappingURL=%5Broot-of-the-server%5D__a4d171b5._.js.map
@@ -2,4 +2,4 @@ module.exports=[43698,(e,t,s)=>{t.exports=e.x("node:https",()=>require("node:htt
2
2
  See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
3
  or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,s)=>{"function"==typeof e?e().then(e=>{t(this.resolveDefaultConfig(e))}).catch(s):t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:p,requestTimeout:h}={}){this.config||(this.config=await this.configProvider);let g=this.config,y="https:"===e.protocol;return y||this.config.httpAgent||(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((f,b)=>{let w,j,v=[],k=async e=>{await w,v.forEach(c.timing.clearTimeout),f(e)},x=async e=>{await w,v.forEach(c.timing.clearTimeout),b(e)};if(p?.aborted)return void x((0,r.buildAbortError)(p));let A=e.headers??{},T=(A.Expect??A.expect)==="100-continue",E=y?g.httpsAgent:g.httpAgent;T&&!this.externalAgent&&(E=new(y?n.Agent:t)({keepAlive:!1,maxSockets:1/0})),v.push(c.timing.setTimeout(()=>{this.socketWarningTimestamp=m.checkSocketUsage(E,this.socketWarningTimestamp,g.logger)},g.socketAcquisitionWarningTimeout??(g.requestTimeout??2e3)+(g.connectionTimeout??1e3)));let q=(0,o.buildQueryString)(e.query||{});if(null!=e.username||null!=e.password){let t=e.username??"",s=e.password??"";j=`${t}:${s}`}let C=e.path;q&&(C+=`?${q}`),e.fragment&&(C+=`#${e.fragment}`);let S=e.hostname??"";S="["===S[0]&&S.endsWith("]")?e.hostname.slice(1,-1):e.hostname;let O={headers:e.headers,host:S,method:e.method,path:C,port:e.port,agent:E,auth:j},P=(y?n.request:s)(O,e=>{k({response:new i.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:(0,u.getTransformedHeaders)(e.headers),body:e})})});if(P.on("error",e=>{d.includes(e.code)?x(Object.assign(e,{name:"TimeoutError"})):x(e)}),p){let e=()=>{P.destroy(),x((0,r.buildAbortError)(p))};"function"==typeof p.addEventListener?(p.addEventListener("abort",e,{once:!0}),P.once("close",()=>p.removeEventListener("abort",e))):p.onabort=e}let $=h??g.requestTimeout;v.push(((e,t,s=0)=>{if(!s)return -1;let i=i=>{let o=c.timing.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${s} ms.`),{name:"TimeoutError"}))},s-i),n=e=>{e?.connecting?e.on("connect",()=>{c.timing.clearTimeout(o)}):c.timing.clearTimeout(o)};e.socket?n(e.socket):e.on("socket",n)};return s<2e3?(i(0),0):c.timing.setTimeout(i.bind(null,1e3),1e3)})(P,x,g.connectionTimeout)),v.push(((e,t,s=0,i,o)=>s?c.timing.setTimeout(()=>{let n=`@smithy/node-http-handler - [${i?"ERROR":"WARN"}] a request has exceeded the configured ${s} ms requestTimeout.`;if(i){let s=Object.assign(Error(n),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(s),t(s)}else n+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",o?.warn?.(n)},s):-1)(P,x,$,g.throwOnRequestTimeout,g.logger??console)),v.push(((e,t,s=0)=>{let i=i=>{let o=s-i,n=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${s} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};e.socket?(e.socket.setTimeout(o,n),e.on("close",()=>e.socket?.removeListener("timeout",n))):e.setTimeout(o,n)};return 0<s&&s<6e3?(i(0),0):c.timing.setTimeout(i.bind(null,3e3*(0!==s)),3e3)})(P,x,g.socketTimeout));let W=O.agent;"object"==typeof W&&"keepAlive"in W&&v.push(((e,{keepAlive:t,keepAliveMsecs:s},i=l)=>{if(!0!==t)return -1;let o=()=>{e.socket?e.socket.setKeepAlive(t,s||0):e.on("socket",e=>{e.setKeepAlive(t,s||0)})};return 0===i?(o(),0):c.timing.setTimeout(o,i)})(P,{keepAlive:W.keepAlive,keepAliveMsecs:W.keepAliveMsecs})),w=(0,a.writeRequestBody)(P,e,$,this.externalAgent).catch(e=>(v.forEach(c.timing.clearTimeout),b(e)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(s=>({...s,[e]:t}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(i){let{requestTimeout:o,connectionTimeout:r,socketTimeout:d,socketAcquisitionWarningTimeout:u,httpAgent:c,httpsAgent:l,throwOnRequestTimeout:a,logger:m}=i||{};return{connectionTimeout:r,requestTimeout:o,socketTimeout:d,socketAcquisitionWarningTimeout:u,throwOnRequestTimeout:a,httpAgentProvider:async()=>{let{Agent:i,request:o}=await e.A(91956);return(s=o,c instanceof(t=i)||"function"==typeof c?.destroy)?(this.externalAgent=!0,c):new t({keepAlive:!0,maxSockets:50,...c})},httpsAgent:l instanceof n.Agent||"function"==typeof l?.destroy?(this.externalAgent=!0,l):new n.Agent({keepAlive:!0,maxSockets:50,...l}),logger:m}}}e.s(["NodeHttpHandler",()=>m],84912)},21706,e=>{e.v({name:"@aws-sdk/nested-clients",version:"3.996.11",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.21","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.8","@aws-sdk/middleware-user-agent":"^3.972.22","@aws-sdk/region-config-resolver":"^3.972.8","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.8","@smithy/config-resolver":"^4.4.11","@smithy/core":"^3.23.12","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.26","@smithy/middleware-retry":"^4.4.43","@smithy/middleware-serde":"^4.2.15","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.0","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.6","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.42","@smithy/util-defaults-mode-node":"^4.2.45","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@smithy/util-utf8":"^4.2.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}})},75372,e=>{"use strict";class t{async sign(e,t,s){return e}}e.s(["NoAuthSigner",()=>t])},48648,e=>{"use strict";e.s(["createAggregatedClient",0,(e,t,s)=>{for(let[s,i]of Object.entries(e)){let e=async function(e,t,s){let o=new i(e);if("function"==typeof t)this.send(o,t);else{if("function"!=typeof s)return this.send(o,t);if("object"!=typeof t)throw Error(`Expected http options but got ${typeof t}`);this.send(o,t||{},s)}},o=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");t.prototype[o]=e}let{paginators:i={},waiters:o={}}=s??{};for(let[e,s]of Object.entries(i))void 0===t.prototype[e]&&(t.prototype[e]=function(e={},t,...i){return s({...t,client:this},e,...i)});for(let[e,s]of Object.entries(o))void 0===t.prototype[e]&&(t.prototype[e]=async function(e={},t,...i){let o=t;return"number"==typeof t&&(o={maxWaitTime:t}),s({...o,client:this},e,...i)})}])},91956,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_node:http_c3a9e25f._.js"].map(t=>e.l(t))).then(()=>t(47299)))}];
4
4
 
5
- //# sourceMappingURL=%5Broot-of-the-server%5D__3dc5531f._.js.map
5
+ //# sourceMappingURL=%5Broot-of-the-server%5D__c7ac3578._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[7491,7957,15156,90473,a=>{"use strict";a.s(["VoiceProvider",()=>o,"useVoice",()=>n],7491);var b=a.i(87924),c=a.i(72131);function d(a,b){let c,d,e=(d=(c=b.split("+").map(a=>a.trim().toLowerCase()))[c.length-1],{ctrlKey:c.includes("ctrl"),shiftKey:c.includes("shift"),altKey:c.includes("alt"),metaKey:c.includes("meta")||c.includes("cmd"),key:"space"===d?" ":"escape"===d?"Escape":"enter"===d?"Enter":d});return(a.key.toLowerCase()===e.key.toLowerCase()||a.key===e.key)&&e.ctrlKey===a.ctrlKey&&e.shiftKey===a.shiftKey&&e.altKey===a.altKey&&e.metaKey===a.metaKey}let e={autoSubmitTerminal:!0,maxRecordingSeconds:300,shortcuts:{startRecording:"Ctrl+.",pauseResume:"Space",submit:"Enter",submitPasteOnly:"Shift+Enter",clear:"Escape"}},f={voice:e};var g=a.i(35112);function h({voiceState:a,elapsedSeconds:c,disabled:d,error:e,onRecord:f,onPause:g,onResume:h,onClear:i,onSubmit:j,onRetry:k,onOpenSettings:l}){let m;return(0,b.jsxs)("div",{className:`flex items-center gap-1.5 ${d?"opacity-40 pointer-events-none":""}`,children:[("idle"===a||"disabled"===a)&&(0,b.jsx)("button",{onClick:f,disabled:d,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-500 transition-all hover:border-red-400/40 hover:bg-red-400/10 hover:text-red-400 disabled:opacity-50 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-red-400/40 dark:hover:bg-red-400/10 dark:hover:text-red-400",title:"Start recording (Ctrl+.)",children:(0,b.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})})}),("recording"===a||"paused"===a)&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex items-center gap-1.5 px-1",children:[(0,b.jsx)("span",{className:`inline-block h-2 w-2 rounded-full bg-red-500 ${"recording"===a?"animate-pulse":""}`}),(0,b.jsx)("span",{className:"min-w-[2.5rem] font-mono text-xs tabular-nums text-red-600 dark:text-red-400",children:(m=Math.floor(c/60),`${m}:${(c%60).toString().padStart(2,"0")}`)})]}),(0,b.jsx)("button",{onClick:"recording"===a?g:h,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-600 transition-all hover:border-neon-blue-400/40 hover:bg-neon-blue-400/10 hover:text-neon-blue-400 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-neon-blue-400/40 dark:hover:bg-neon-blue-400/10 dark:hover:text-neon-blue-400",title:"recording"===a?"Pause (Space)":"Resume (Space)",children:"recording"===a?(0,b.jsxs)("svg",{className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:[(0,b.jsx)("rect",{x:"6",y:"4",width:"4",height:"16"}),(0,b.jsx)("rect",{x:"14",y:"4",width:"4",height:"16"})]}):(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("polygon",{points:"5,3 19,12 5,21"})})}),(0,b.jsx)("button",{onClick:i,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-600 transition-all hover:border-red-400/40 hover:bg-red-400/10 hover:text-red-400 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-red-400/40 dark:hover:bg-red-400/10 dark:hover:text-red-400",title:"Clear recording (Escape)",children:(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,b.jsx)("button",{onClick:j,className:"rounded-md border border-green-400/40 bg-green-400/15 px-2 py-1.5 text-xs font-medium text-green-600 transition-all hover:bg-green-400/25 hover:shadow-[0_0_8px_rgba(34,197,94,0.2)] dark:text-green-400",title:"Submit for transcription (Enter)",children:(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]}),"transcribing"===a&&(0,b.jsxs)("div",{className:"flex items-center gap-1.5 px-1",children:[(0,b.jsxs)("svg",{className:"h-4 w-4 animate-spin text-[#2490b5] dark:text-neon-blue-400",viewBox:"0 0 24 24",fill:"none",children:[(0,b.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,b.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,b.jsx)("span",{className:"text-xs text-[#2490b5] dark:text-neon-blue-400",children:"Transcribing..."})]}),"error"===a&&(0,b.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs text-red-400",title:e||"Transcription failed",children:"Failed"}),(0,b.jsx)("button",{onClick:k,className:"rounded-md border border-neon-blue-400/40 bg-neon-blue-400/15 px-1.5 py-1 text-xs font-medium text-neon-blue-400 transition-all hover:bg-neon-blue-400/25",title:"Retry transcription",children:"Retry"}),(0,b.jsx)("button",{onClick:i,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-600 transition-all hover:border-red-400/40 hover:bg-red-400/10 hover:text-red-400 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-red-400/40 dark:hover:bg-red-400/10 dark:hover:text-red-400",title:"Clear",children:(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,b.jsx)("button",{onClick:l,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-500 transition-all hover:border-void-400/50 hover:text-void-700 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-void-400/50 dark:hover:text-void-300",title:"Voice settings",children:(0,b.jsxs)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]})}function i({label:a,value:d,onChange:e}){let[f,g]=(0,c.useState)(!1),h=(0,c.useRef)(null),i=(0,c.useCallback)(a=>{if(!f)return;a.preventDefault(),a.stopPropagation();let b=[];a.ctrlKey&&b.push("Ctrl"),a.shiftKey&&b.push("Shift"),a.altKey&&b.push("Alt"),a.metaKey&&b.push("Cmd");let c=a.key;if(!["Control","Shift","Alt","Meta"].includes(c)){let a=" "===c?"Space":"Escape"===c?"Escape":"Enter"===c?"Enter":(c.length,c);b.push(a),e(b.join("+")),g(!1)}},[f,e]);return(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-xs text-void-600 dark:text-void-400",children:a}),(0,b.jsx)("input",{ref:h,type:"text",value:f?"Press keys...":d,readOnly:!0,onFocus:()=>g(!0),onBlur:()=>g(!1),onKeyDown:i,className:`w-28 rounded border px-2 py-1 text-center text-xs ${f?"border-neon-blue-400 bg-neon-blue-400/10 text-neon-blue-600 dark:text-neon-blue-400":"border-void-300 bg-void-50 text-void-700 dark:border-void-600 dark:bg-void-700 dark:text-void-300"} cursor-pointer outline-none`})]})}function j({settings:a,onSave:d,onClose:e}){let f=(0,c.useRef)(null),[g,h]=(0,c.useState)({...a.shortcuts}),[j,k]=(0,c.useState)(a.autoSubmitTerminal),[l,m]=(0,c.useState)(Math.round(a.maxRecordingSeconds/60)),n=(0,c.useRef)({shortcuts:g,autoSubmit:j,maxMinutes:l});return n.current={shortcuts:g,autoSubmit:j,maxMinutes:l},(0,c.useEffect)(()=>()=>{let{shortcuts:a,autoSubmit:b,maxMinutes:c}=n.current;d({shortcuts:a,autoSubmitTerminal:b,maxRecordingSeconds:60*Math.max(1,c)})},[]),(0,c.useEffect)(()=>{let a=a=>{f.current&&!f.current.contains(a.target)&&e()};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[e]),(0,b.jsxs)("div",{ref:f,className:"w-80 rounded-lg border border-void-200 bg-white p-4 shadow-(--shadow-overlay) dark:border-void-600 dark:bg-void-800",children:[(0,b.jsx)("h3",{className:"mb-3 text-sm font-medium text-void-800 dark:text-void-200",children:"Voice Settings"}),(0,b.jsxs)("div",{className:"mb-4 space-y-2",children:[(0,b.jsx)("div",{className:"text-xs font-medium text-void-500 dark:text-void-400",children:"Keyboard Shortcuts"}),(0,b.jsx)(i,{label:"Start recording",value:g.startRecording,onChange:a=>h(b=>({...b,startRecording:a}))}),(0,b.jsx)(i,{label:"Pause / Resume",value:g.pauseResume,onChange:a=>h(b=>({...b,pauseResume:a}))}),(0,b.jsx)(i,{label:"Submit",value:g.submit,onChange:a=>h(b=>({...b,submit:a}))}),(0,b.jsx)(i,{label:"Paste only",value:g.submitPasteOnly,onChange:a=>h(b=>({...b,submitPasteOnly:a}))}),(0,b.jsx)(i,{label:"Clear / Cancel",value:g.clear,onChange:a=>h(b=>({...b,clear:a}))})]}),(0,b.jsxs)("div",{className:"space-y-3 border-t border-void-200 pt-3 dark:border-void-600",children:[(0,b.jsx)("div",{className:"text-xs font-medium text-void-500 dark:text-void-400",children:"Behaviour"}),(0,b.jsxs)("label",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-xs text-void-600 dark:text-void-400",children:"Auto-submit (terminal)"}),(0,b.jsx)("button",{type:"button",role:"switch","aria-checked":j,onClick:()=>k(!j),className:`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors ${j?"bg-green-500":"bg-void-300 dark:bg-void-600"}`,children:(0,b.jsx)("span",{className:`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition ${j?"translate-x-4":"translate-x-0"}`})})]}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-xs text-void-600 dark:text-void-400",children:"Max recording (min)"}),(0,b.jsx)("input",{type:"number",min:1,max:30,value:l,onChange:a=>m(parseInt(a.target.value)||5),className:"w-16 rounded border border-void-300 bg-void-50 px-2 py-1 text-center text-xs text-void-700 outline-none dark:border-void-600 dark:bg-void-700 dark:text-void-300"})]})]})]})}function k({error:a,hasRecording:d,onRetry:e,onClear:f,onClose:g}){let h=(0,c.useRef)(null);(0,c.useEffect)(()=>{let a=a=>{h.current&&!h.current.contains(a.target)&&g()};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[g]);let i=!d;return(0,b.jsxs)("div",{ref:h,className:"w-72 rounded-lg border border-red-400/30 bg-white p-3 shadow-(--shadow-overlay) dark:border-red-400/20 dark:bg-void-800",children:[(0,b.jsxs)("div",{className:"mb-2 flex items-start gap-2",children:[(0,b.jsx)("svg",{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"text-xs font-medium text-red-600 dark:text-red-400",children:i?"Recording Failed":"Transcription Failed"}),(0,b.jsx)("div",{className:"mt-1 text-xs text-void-600 dark:text-void-300",children:a})]})]}),(0,b.jsx)("div",{className:"mt-2 text-xs text-void-500 dark:text-void-400",children:i&&1?"Microphone requires HTTPS or localhost. Try accessing via localhost:3003, or add this origin to chrome://flags/#unsafely-treat-insecure-origin-as-secure.":i?"Could not access the microphone.":"Your recording is preserved. You can retry or clear and start over."}),(0,b.jsxs)("div",{className:"mt-3 flex justify-end gap-2",children:[(0,b.jsx)("button",{onClick:f,className:"rounded border border-void-300 bg-void-100 px-2 py-1 text-xs text-void-600 hover:text-void-800 dark:border-void-600 dark:bg-void-700 dark:text-void-400 dark:hover:text-void-300",children:i?"Dismiss":"Clear"}),d&&e&&(0,b.jsx)("button",{onClick:e,className:"rounded border border-neon-blue-400/40 bg-neon-blue-400/15 px-2 py-1 text-xs text-neon-blue-600 hover:bg-neon-blue-400/25 dark:text-neon-blue-400",children:"Retry"})]})]})}function l(){let a=n(),d=(0,c.useRef)(null),e=(0,c.useRef)(0),[f,i]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{i(!0)},[]),null===a.currentClaimantId&&f&&("idle"!==a.voiceState&&"disabled"!==a.voiceState||a.showSettings))?(0,g.createPortal)((0,b.jsxs)("div",{className:"fixed bottom-4 right-4 z-50 animate-in fade-in slide-in-from-bottom-2 duration-200 rounded-xl border border-red-400/30 bg-white/95 px-3 py-2 shadow-(--shadow-card) backdrop-blur-sm dark:border-red-400/20 dark:bg-void-800/95",ref:d,children:[(0,b.jsx)(h,{voiceState:a.voiceState,elapsedSeconds:a.elapsedSeconds,disabled:!1,error:a.error,onRecord:a.startRecording,onPause:a.pauseRecording,onResume:a.resumeRecording,onClear:a.clearRecording,onSubmit:a.submitRecording,onRetry:a.retryTranscription,onOpenSettings:()=>{Date.now()-e.current<200||a.setShowSettings(!a.showSettings)}}),a.showSettings&&(0,b.jsx)("div",{style:{position:"fixed",bottom:60,right:16,zIndex:9999},children:(0,b.jsx)(j,{settings:a.settings.voice,onSave:b=>a.updateSettings({voice:b}),onClose:()=>{e.current=Date.now(),a.setShowSettings(!1)}})}),"error"===a.voiceState&&a.error&&(0,b.jsx)("div",{style:{position:"fixed",bottom:60,right:16,zIndex:9999},children:(0,b.jsx)(k,{error:a.error,hasRecording:a.hasRecording,onRetry:()=>a.retryTranscription(),onClear:()=>a.clearRecording(),onClose:()=>a.clearRecording()})})]}),document.body):null}a.s(["VoiceControlBar",()=>h],7957),a.s(["VoiceSettingsPopover",()=>j],15156),a.s(["VoiceErrorPopup",()=>k],90473);let m=(0,c.createContext)(null);function n(){let a=(0,c.useContext)(m);if(!a)throw Error("useVoice() must be used inside <VoiceProvider>");return a}function o({children:a}){let{settings:g,updateSettings:h}=function(){let[a,b]=(0,c.useState)(f),[d,g]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{fetch("/api/settings").then(a=>a.json()).then(a=>{b({...f,...a,voice:{...e,...a?.voice}})}).catch(()=>{}).finally(()=>g(!1))},[]),{settings:a,updateSettings:(0,c.useCallback)(async a=>{try{let c=await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(c.ok){let a=await c.json();return b({...f,...a,voice:{...e,...a?.voice}}),a}}catch{}return null},[]),isLoading:d}}(),i=(0,c.useRef)(new Map),j=(0,c.useRef)(null),k=(0,c.useCallback)((a,b)=>{i.current.set(a,b),j.current=a},[]),n=(0,c.useCallback)(a=>{if(i.current.delete(a),j.current===a){let a=Array.from(i.current.keys());j.current=a.length>0?a[0]:null}},[]),o=(0,c.useRef)(null),[p,q]=(0,c.useState)(null),r=(0,c.useRef)(null),s=(0,c.useRef)("auto"),[t,u]=(0,c.useState)(!1),[v,w]=(0,c.useState)(!1),x=(0,c.useCallback)(a=>{let b=r.current;if(b){if("input"===b.type&&b.element){if(!document.contains(b.element))return;let c=b.element,d=c.selectionStart??c.value.length,e=c.selectionEnd??c.value.length;c.focus(),c.setSelectionRange(d,e),document.execCommand("insertText",!1,a)}else if("terminal"===b.type&&b.terminalId){let c=i.current.get(b.terminalId);if(!c)return;let d="auto"===s.current&&g.voice.autoSubmitTerminal;c.sendInput(a),d&&setTimeout(()=>c.sendInput("\r"),300)}s.current="auto"}},[g.voice.autoSubmitTerminal]),y=(0,c.useCallback)(a=>{o.current?o.current.onTranscriptionComplete(a):x(a)},[x]),z=function({maxRecordingSeconds:a,onTranscriptionComplete:b}){let[d,e]=(0,c.useState)("idle"),[f,g]=(0,c.useState)(0),[h,i]=(0,c.useState)(null),[j,k]=(0,c.useState)(null),l=(0,c.useRef)(null),m=(0,c.useRef)([]),n=(0,c.useRef)(null),o=(0,c.useRef)(null),p=(0,c.useRef)(null),q=(0,c.useRef)(0),r=(0,c.useRef)(!1),s=(0,c.useRef)(b);(0,c.useEffect)(()=>{s.current=b},[b]);let t=(0,c.useCallback)(()=>{n.current||(n.current=setInterval(()=>{g(a=>a+1)},1e3))},[]),u=(0,c.useCallback)(()=>{n.current&&(clearInterval(n.current),n.current=null)},[]);(0,c.useEffect)(()=>{"recording"===d&&f-q.current>=a&&(l.current?.state==="recording"&&l.current.pause(),r.current=!0,u(),e("paused"))},[d,f,a,u]),(0,c.useEffect)(()=>()=>{if(u(),l.current?.state!=="inactive")try{l.current?.stop()}catch{}p.current?.getTracks().forEach(a=>a.stop())},[u]);let v=(0,c.useCallback)(()=>new Promise(a=>{let b=l.current;b&&"inactive"!==b.state?(b.ondataavailable=a=>{a.data.size>0&&m.current.push(a.data)},b.onstop=()=>{a(new Blob(m.current,{type:m.current[0]?.type||"audio/webm"}))},b.stop()):a(new Blob(m.current,{type:m.current[0]?.type||"audio/webm"}))}),[]),w=(0,c.useCallback)(async a=>{let b=new FormData;b.append("audio",a,"recording.webm");let c=await fetch("/api/transcribe",{method:"POST",body:b}),d=await c.json();if(!c.ok)throw Error(d.error||"Transcription failed");return d.text},[]),x=(0,c.useCallback)(()=>{p.current?.getTracks().forEach(a=>a.stop()),p.current=null},[]),y=(0,c.useCallback)(async()=>{if("idle"===d||"disabled"===d)try{i(null),k(null),m.current=[],o.current=null,g(0),q.current=0;let a=await navigator.mediaDevices.getUserMedia({audio:!0});p.current=a;let b=MediaRecorder.isTypeSupported("audio/webm;codecs=opus")?"audio/webm;codecs=opus":MediaRecorder.isTypeSupported("audio/mp4")?"audio/mp4":"",c=new MediaRecorder(a,b?{mimeType:b}:void 0);l.current=c,c.ondataavailable=a=>{a.data.size>0&&m.current.push(a.data)},c.start(1e3),e("recording"),t()}catch(b){let a=b.message;a.includes("Permission")||a.includes("NotAllowed")?i("Microphone permission denied. Please allow microphone access."):i(a||"Failed to start recording"),e("error"),x()}},[d,t,x]),z=(0,c.useCallback)(()=>{"recording"===d&&(l.current?.state==="recording"&&l.current.pause(),u(),e("paused"))},[d,u]),A=(0,c.useCallback)(()=>{"paused"===d&&(l.current?.state==="paused"&&l.current.resume(),r.current&&(q.current=f,r.current=!1),t(),e("recording"))},[d,f,t]),B=(0,c.useCallback)(()=>{if(u(),l.current?.state!=="inactive")try{l.current?.stop()}catch{}m.current=[],o.current=null,g(0),i(null),k(null),x(),e("idle")},[u,x]),C=(0,c.useCallback)(async()=>{if("recording"===d||"paused"===d){u(),e("transcribing");try{let a=await v();o.current=a,x();let b=await w(a);k(b),g(0),m.current=[],e("idle"),s.current?.(b)}catch(a){i(a.message||"Transcription failed"),e("error")}}},[d,u,v,w,x]),D=(0,c.useCallback)(async()=>{if("error"===d&&o.current){e("transcribing"),i(null);try{let a=await w(o.current);k(a),o.current=null,m.current=[],g(0),e("idle"),s.current?.(a)}catch(a){i(a.message||"Transcription failed"),e("error")}}},[d,w]);return{state:d,elapsedSeconds:f,error:h,transcribedText:j,hasRecording:null!==o.current||m.current.length>0,startRecording:y,pauseRecording:z,resumeRecording:A,clearRecording:B,submitRecording:C,retryTranscription:D}}({maxRecordingSeconds:g.voice.maxRecordingSeconds,onTranscriptionComplete:y}),A=(0,c.useCallback)(a=>{o.current&&o.current.id!==a.id&&(o.current.onRelease?.(),"idle"!==z.state&&"disabled"!==z.state&&z.clearRecording()),o.current=a,q(a.id)},[z]),B=(0,c.useCallback)(a=>{o.current?.id===a.id&&("idle"!==z.state&&"error"!==z.state&&"disabled"!==z.state&&z.clearRecording(),o.current=null,q(null))},[z]);(0,c.useEffect)(()=>{let a=a=>{let b=a.target;if(b.closest("[data-voice-target]")&&("INPUT"===b.tagName||"TEXTAREA"===b.tagName))return void w(!0);if(b.closest("[data-terminal-id]")){let a=b.closest("[data-terminal-id]").dataset.terminalId;a&&i.current.has(a)&&(j.current=a,w(!0))}},b=()=>{setTimeout(()=>{let a=document.activeElement;if(!a)return void w(!1);let b=a.closest("[data-voice-target]")&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName),c=a.closest("[data-terminal-id]");b||c||w(!1)},100)};return document.addEventListener("focusin",a),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",b)}},[]);let C=(0,c.useCallback)(()=>{if(o.current)o.current.onRecordStart?.(),z.startRecording();else{let a=document.activeElement;if(a&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName)&&a.closest("[data-voice-target]"))r.current={type:"input",element:a};else if(a?.closest("[data-terminal-id]")){let b=a.closest("[data-terminal-id]").dataset.terminalId||j.current;if(!(b&&i.current.has(b)))return;r.current={type:"terminal",terminalId:b}}else{if(!(j.current&&i.current.has(j.current)))return;r.current={type:"terminal",terminalId:j.current}}z.startRecording()}},[z]),D=(0,c.useCallback)(()=>{s.current="paste",z.submitRecording()},[z]),E=(0,c.useCallback)(()=>{"recording"===z.state?z.pauseRecording():"paused"===z.state&&z.resumeRecording()},[z]);!function({voiceState:a,shortcuts:b,callbacks:e,enabled:f,hasFieldFocus:g,suspended:h}){let i=(0,c.useRef)(e),j=(0,c.useRef)(a),k=(0,c.useRef)(b),l=(0,c.useRef)(g),m=(0,c.useRef)(h);(0,c.useEffect)(()=>{i.current=e,j.current=a,k.current=b,l.current=g,m.current=h}),(0,c.useEffect)(()=>{if(!f)return;let a=a=>{if(m.current)return;let b=j.current,c=k.current,e=i.current;if("idle"===b&&l.current&&d(a,c.startRecording)){a.preventDefault(),a.stopPropagation(),e.onStartRecording();return}if("recording"===b||"paused"===b){if(d(a,c.pauseResume)){a.preventDefault(),a.stopPropagation(),e.onPauseResume();return}if(d(a,c.submitPasteOnly)){a.preventDefault(),a.stopPropagation(),e.onSubmitPasteOnly();return}if(d(a,c.submit)){a.preventDefault(),a.stopPropagation(),e.onSubmit();return}if(d(a,c.clear)){a.preventDefault(),a.stopPropagation(),e.onClear();return}}};return document.addEventListener("keydown",a,!0),()=>document.removeEventListener("keydown",a,!0)},[f])}({voiceState:z.state,shortcuts:g.voice.shortcuts,callbacks:{onStartRecording:C,onPauseResume:E,onSubmit:z.submitRecording,onSubmitPasteOnly:D,onClear:z.clearRecording},enabled:!0,hasFieldFocus:!!o.current||v,suspended:t});let F={voiceState:z.state,elapsedSeconds:z.elapsedSeconds,error:z.error,hasRecording:z.hasRecording,startRecording:z.startRecording,pauseRecording:z.pauseRecording,resumeRecording:z.resumeRecording,clearRecording:z.clearRecording,submitRecording:z.submitRecording,retryTranscription:z.retryTranscription,claimVoiceControl:A,releaseVoiceControl:B,currentClaimantId:p,settings:g,updateSettings:h,registerTerminal:k,unregisterTerminal:n,submitModeRef:s,showSettings:t,setShowSettings:u,hasFieldFocus:v,setHasFieldFocus:w};return(0,b.jsxs)(m.Provider,{value:F,children:[a,(0,b.jsx)(l,{})]})}}];
1
+ module.exports=[7491,7957,15156,90473,a=>{"use strict";a.s(["VoiceProvider",()=>o,"useVoice",()=>n],7491);var b=a.i(87924),c=a.i(72131);function d(a,b){let c,d,e=(d=(c=b.split("+").map(a=>a.trim().toLowerCase()))[c.length-1],{ctrlKey:c.includes("ctrl"),shiftKey:c.includes("shift"),altKey:c.includes("alt"),metaKey:c.includes("meta")||c.includes("cmd"),key:"space"===d?" ":"escape"===d?"Escape":"enter"===d?"Enter":d});return(a.key.toLowerCase()===e.key.toLowerCase()||a.key===e.key)&&e.ctrlKey===a.ctrlKey&&e.shiftKey===a.shiftKey&&e.altKey===a.altKey&&e.metaKey===a.metaKey}let e={autoSubmitTerminal:!0,maxRecordingSeconds:300,shortcuts:{startRecording:"Ctrl+.",pauseResume:"Space",submit:"Enter",submitPasteOnly:"Shift+Enter",clear:"Escape"}},f={voice:e};var g=a.i(35112);function h({voiceState:a,elapsedSeconds:c,disabled:d,error:e,onRecord:f,onPause:g,onResume:h,onClear:i,onSubmit:j,onRetry:k,onOpenSettings:l}){let m;return(0,b.jsxs)("div",{className:`flex items-center gap-1.5 ${d?"opacity-40 pointer-events-none":""}`,children:[("idle"===a||"disabled"===a)&&(0,b.jsx)("button",{onClick:f,disabled:d,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-500 transition-all hover:border-red-400/40 hover:bg-red-400/10 hover:text-red-400 disabled:opacity-50 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-red-400/40 dark:hover:bg-red-400/10 dark:hover:text-red-400",title:"Start recording (Ctrl+.)",children:(0,b.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})})}),("recording"===a||"paused"===a)&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex items-center gap-1.5 px-1",children:[(0,b.jsx)("span",{className:`inline-block h-2 w-2 rounded-full bg-red-500 ${"recording"===a?"animate-pulse":""}`}),(0,b.jsx)("span",{className:"min-w-[2.5rem] font-mono text-xs tabular-nums text-red-600 dark:text-red-400",children:(m=Math.floor(c/60),`${m}:${(c%60).toString().padStart(2,"0")}`)})]}),(0,b.jsx)("button",{onClick:"recording"===a?g:h,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-600 transition-all hover:border-neon-blue-400/40 hover:bg-neon-blue-400/10 hover:text-neon-blue-400 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-neon-blue-400/40 dark:hover:bg-neon-blue-400/10 dark:hover:text-neon-blue-400",title:"recording"===a?"Pause (Space)":"Resume (Space)",children:"recording"===a?(0,b.jsxs)("svg",{className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:[(0,b.jsx)("rect",{x:"6",y:"4",width:"4",height:"16"}),(0,b.jsx)("rect",{x:"14",y:"4",width:"4",height:"16"})]}):(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("polygon",{points:"5,3 19,12 5,21"})})}),(0,b.jsx)("button",{onClick:i,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-600 transition-all hover:border-red-400/40 hover:bg-red-400/10 hover:text-red-400 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-red-400/40 dark:hover:bg-red-400/10 dark:hover:text-red-400",title:"Clear recording (Escape)",children:(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,b.jsx)("button",{onClick:j,className:"rounded-md border border-green-400/40 bg-green-400/15 px-2 py-1.5 text-xs font-medium text-green-600 transition-all hover:bg-green-400/25 hover:shadow-[0_0_8px_rgba(34,197,94,0.2)] dark:text-green-400",title:"Submit for transcription (Enter)",children:(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]}),"transcribing"===a&&(0,b.jsxs)("div",{className:"flex items-center gap-1.5 px-1",children:[(0,b.jsxs)("svg",{className:"h-4 w-4 animate-spin text-[#2490b5] dark:text-neon-blue-400",viewBox:"0 0 24 24",fill:"none",children:[(0,b.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,b.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,b.jsx)("span",{className:"text-xs text-[#2490b5] dark:text-neon-blue-400",children:"Transcribing..."})]}),"error"===a&&(0,b.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs text-red-400",title:e||"Transcription failed",children:"Failed"}),(0,b.jsx)("button",{onClick:k,className:"rounded-md border border-neon-blue-400/40 bg-neon-blue-400/15 px-1.5 py-1 text-xs font-medium text-neon-blue-400 transition-all hover:bg-neon-blue-400/25",title:"Retry transcription",children:"Retry"}),(0,b.jsx)("button",{onClick:i,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-600 transition-all hover:border-red-400/40 hover:bg-red-400/10 hover:text-red-400 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-red-400/40 dark:hover:bg-red-400/10 dark:hover:text-red-400",title:"Clear",children:(0,b.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,b.jsx)("button",{onClick:l,className:"rounded-md border border-void-400/30 bg-void-200/50 p-1.5 text-void-500 transition-all hover:border-void-400/50 hover:text-void-700 dark:border-void-500/25 dark:bg-void-700/50 dark:text-void-400 dark:hover:border-void-400/50 dark:hover:text-void-300",title:"Voice settings",children:(0,b.jsxs)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})})]})}function i({label:a,value:d,onChange:e}){let[f,g]=(0,c.useState)(!1),h=(0,c.useRef)(null),i=(0,c.useCallback)(a=>{if(!f)return;a.preventDefault(),a.stopPropagation();let b=[];a.ctrlKey&&b.push("Ctrl"),a.shiftKey&&b.push("Shift"),a.altKey&&b.push("Alt"),a.metaKey&&b.push("Cmd");let c=a.key;if(!["Control","Shift","Alt","Meta"].includes(c)){let a=" "===c?"Space":"Escape"===c?"Escape":"Enter"===c?"Enter":(c.length,c);b.push(a),e(b.join("+")),g(!1)}},[f,e]);return(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-xs text-void-600 dark:text-void-400",children:a}),(0,b.jsx)("input",{ref:h,type:"text",value:f?"Press keys...":d,readOnly:!0,onFocus:()=>g(!0),onBlur:()=>g(!1),onKeyDown:i,className:`w-28 rounded border px-2 py-1 text-center text-xs ${f?"border-neon-blue-400 bg-neon-blue-400/10 text-neon-blue-600 dark:text-neon-blue-400":"border-void-300 bg-void-50 text-void-700 dark:border-void-600 dark:bg-void-700 dark:text-void-300"} cursor-pointer outline-none`})]})}function j({settings:a,onSave:d,onClose:e}){let f=(0,c.useRef)(null),[g,h]=(0,c.useState)({...a.shortcuts}),[j,k]=(0,c.useState)(a.autoSubmitTerminal),[l,m]=(0,c.useState)(Math.round(a.maxRecordingSeconds/60)),n=(0,c.useRef)({shortcuts:g,autoSubmit:j,maxMinutes:l});return n.current={shortcuts:g,autoSubmit:j,maxMinutes:l},(0,c.useEffect)(()=>()=>{let{shortcuts:a,autoSubmit:b,maxMinutes:c}=n.current;d({shortcuts:a,autoSubmitTerminal:b,maxRecordingSeconds:60*Math.max(1,c)})},[]),(0,c.useEffect)(()=>{let a=a=>{f.current&&!f.current.contains(a.target)&&e()};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[e]),(0,b.jsxs)("div",{ref:f,className:"w-80 rounded-lg border border-void-200 bg-white p-4 shadow-(--shadow-overlay) dark:border-void-600 dark:bg-void-800",children:[(0,b.jsx)("h3",{className:"mb-3 text-sm font-medium text-void-800 dark:text-void-200",children:"Voice Settings"}),(0,b.jsxs)("div",{className:"mb-4 space-y-2",children:[(0,b.jsx)("div",{className:"text-xs font-medium text-void-500 dark:text-void-400",children:"Keyboard Shortcuts"}),(0,b.jsx)(i,{label:"Start recording",value:g.startRecording,onChange:a=>h(b=>({...b,startRecording:a}))}),(0,b.jsx)(i,{label:"Pause / Resume",value:g.pauseResume,onChange:a=>h(b=>({...b,pauseResume:a}))}),(0,b.jsx)(i,{label:"Submit",value:g.submit,onChange:a=>h(b=>({...b,submit:a}))}),(0,b.jsx)(i,{label:"Paste only",value:g.submitPasteOnly,onChange:a=>h(b=>({...b,submitPasteOnly:a}))}),(0,b.jsx)(i,{label:"Clear / Cancel",value:g.clear,onChange:a=>h(b=>({...b,clear:a}))})]}),(0,b.jsxs)("div",{className:"space-y-3 border-t border-void-200 pt-3 dark:border-void-600",children:[(0,b.jsx)("div",{className:"text-xs font-medium text-void-500 dark:text-void-400",children:"Behaviour"}),(0,b.jsxs)("label",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-xs text-void-600 dark:text-void-400",children:"Auto-submit (terminal)"}),(0,b.jsx)("button",{type:"button",role:"switch","aria-checked":j,onClick:()=>k(!j),className:`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors ${j?"bg-green-500":"bg-void-300 dark:bg-void-600"}`,children:(0,b.jsx)("span",{className:`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition ${j?"translate-x-4":"translate-x-0"}`})})]}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-xs text-void-600 dark:text-void-400",children:"Max recording (min)"}),(0,b.jsx)("input",{type:"number",min:1,max:30,value:l,onChange:a=>m(parseInt(a.target.value)||5),className:"w-16 rounded border border-void-300 bg-void-50 px-2 py-1 text-center text-xs text-void-700 outline-none dark:border-void-600 dark:bg-void-700 dark:text-void-300"})]})]})]})}function k({error:a,hasRecording:d,onRetry:e,onClear:f,onClose:g}){let h=(0,c.useRef)(null);(0,c.useEffect)(()=>{let a=a=>{h.current&&!h.current.contains(a.target)&&g()};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[g]);let i=!d;return(0,b.jsxs)("div",{ref:h,className:"w-72 rounded-lg border border-red-400/30 bg-white p-3 shadow-(--shadow-overlay) dark:border-red-400/20 dark:bg-void-800",children:[(0,b.jsxs)("div",{className:"mb-2 flex items-start gap-2",children:[(0,b.jsx)("svg",{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"text-xs font-medium text-red-600 dark:text-red-400",children:i?"Recording Failed":"Transcription Failed"}),(0,b.jsx)("div",{className:"mt-1 text-xs text-void-600 dark:text-void-300",children:a})]})]}),(0,b.jsx)("div",{className:"mt-2 text-xs text-void-500 dark:text-void-400",children:i&&1?"Microphone requires HTTPS or localhost. Try accessing via localhost:3003, or add this origin to chrome://flags/#unsafely-treat-insecure-origin-as-secure.":i?"Could not access the microphone.":"Your recording is preserved. You can retry or clear and start over."}),(0,b.jsxs)("div",{className:"mt-3 flex justify-end gap-2",children:[(0,b.jsx)("button",{onClick:f,className:"rounded border border-void-300 bg-void-100 px-2 py-1 text-xs text-void-600 hover:text-void-800 dark:border-void-600 dark:bg-void-700 dark:text-void-400 dark:hover:text-void-300",children:i?"Dismiss":"Clear"}),d&&e&&(0,b.jsx)("button",{onClick:e,className:"rounded border border-neon-blue-400/40 bg-neon-blue-400/15 px-2 py-1 text-xs text-neon-blue-600 hover:bg-neon-blue-400/25 dark:text-neon-blue-400",children:"Retry"})]})]})}function l(){let a=n(),d=(0,c.useRef)(null),e=(0,c.useRef)(0),[f,i]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{i(!0)},[]),null===a.currentClaimantId&&f&&("idle"!==a.voiceState&&"disabled"!==a.voiceState||a.showSettings))?(0,g.createPortal)((0,b.jsxs)("div",{className:"fixed bottom-4 right-4 z-50 animate-in fade-in slide-in-from-bottom-2 duration-200 rounded-xl border border-red-400/30 bg-white/95 px-3 py-2 shadow-(--shadow-card) backdrop-blur-sm dark:border-red-400/20 dark:bg-void-800/95",ref:d,children:[(0,b.jsx)(h,{voiceState:a.voiceState,elapsedSeconds:a.elapsedSeconds,disabled:!1,error:a.error,onRecord:a.startRecording,onPause:a.pauseRecording,onResume:a.resumeRecording,onClear:a.clearRecording,onSubmit:a.submitRecording,onRetry:a.retryTranscription,onOpenSettings:()=>{Date.now()-e.current<200||a.setShowSettings(!a.showSettings)}}),a.showSettings&&(0,b.jsx)("div",{style:{position:"fixed",bottom:60,right:16,zIndex:9999},children:(0,b.jsx)(j,{settings:a.settings.voice,onSave:b=>a.updateSettings({voice:b}),onClose:()=>{e.current=Date.now(),a.setShowSettings(!1)}})}),"error"===a.voiceState&&a.error&&(0,b.jsx)("div",{style:{position:"fixed",bottom:60,right:16,zIndex:9999},children:(0,b.jsx)(k,{error:a.error,hasRecording:a.hasRecording,onRetry:()=>a.retryTranscription(),onClear:()=>a.clearRecording(),onClose:()=>a.clearRecording()})})]}),document.body):null}a.s(["VoiceControlBar",()=>h],7957),a.s(["VoiceSettingsPopover",()=>j],15156),a.s(["VoiceErrorPopup",()=>k],90473);let m=(0,c.createContext)(null);function n(){let a=(0,c.useContext)(m);if(!a)throw Error("useVoice() must be used inside <VoiceProvider>");return a}function o({children:a}){let{settings:g,updateSettings:h}=function(){let[a,b]=(0,c.useState)(f),[d,g]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{fetch("/api/settings").then(a=>a.json()).then(a=>{b({...f,...a,voice:{...e,...a?.voice}})}).catch(()=>{}).finally(()=>g(!1))},[]),{settings:a,updateSettings:(0,c.useCallback)(async a=>{try{let c=await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(c.ok){let a=await c.json();return b({...f,...a,voice:{...e,...a?.voice}}),a}}catch{}return null},[]),isLoading:d}}(),i=(0,c.useRef)(new Map),j=(0,c.useRef)(null),k=(0,c.useCallback)((a,b)=>{i.current.set(a,b),j.current=a},[]),n=(0,c.useCallback)(a=>{if(i.current.delete(a),j.current===a){let a=Array.from(i.current.keys());j.current=a.length>0?a[0]:null}},[]),o=(0,c.useRef)(null),[p,q]=(0,c.useState)(null),r=(0,c.useRef)(null),s=(0,c.useRef)("auto"),[t,u]=(0,c.useState)(!1),[v,w]=(0,c.useState)(!1),x=(0,c.useCallback)(a=>{let b=r.current;if(b){if("input"===b.type&&b.element){if(!document.contains(b.element))return;let c=b.element,d=c.selectionStart??c.value.length,e=c.selectionEnd??c.value.length;c.focus(),c.setSelectionRange(d,e),document.execCommand("insertText",!1,a)}else if("terminal"===b.type&&b.terminalId){let c=i.current.get(b.terminalId);if(!c)return;let d="auto"===s.current&&g.voice.autoSubmitTerminal;c.sendInput(a),d&&setTimeout(()=>c.sendInput("\r"),300)}s.current="auto"}},[g.voice.autoSubmitTerminal]),y=(0,c.useCallback)(a=>{o.current?o.current.onTranscriptionComplete(a):x(a)},[x]),z=function({maxRecordingSeconds:a,onTranscriptionComplete:b}){let[d,e]=(0,c.useState)("idle"),[f,g]=(0,c.useState)(0),[h,i]=(0,c.useState)(null),[j,k]=(0,c.useState)(null),l=(0,c.useRef)(null),m=(0,c.useRef)([]),n=(0,c.useRef)(null),o=(0,c.useRef)(null),p=(0,c.useRef)(null),q=(0,c.useRef)(0),r=(0,c.useRef)(!1),s=(0,c.useRef)(b);(0,c.useEffect)(()=>{s.current=b},[b]);let t=(0,c.useCallback)(()=>{n.current||(n.current=setInterval(()=>{g(a=>a+1)},1e3))},[]),u=(0,c.useCallback)(()=>{n.current&&(clearInterval(n.current),n.current=null)},[]);(0,c.useEffect)(()=>{"recording"===d&&f-q.current>=a&&(l.current?.state==="recording"&&l.current.pause(),r.current=!0,u(),e("paused"))},[d,f,a,u]),(0,c.useEffect)(()=>()=>{if(u(),l.current?.state!=="inactive")try{l.current?.stop()}catch{}p.current?.getTracks().forEach(a=>a.stop())},[u]);let v=(0,c.useCallback)(()=>new Promise(a=>{let b=l.current;b&&"inactive"!==b.state?(b.ondataavailable=a=>{a.data.size>0&&m.current.push(a.data)},b.onstop=()=>{a(new Blob(m.current,{type:m.current[0]?.type||"audio/webm"}))},b.stop()):a(new Blob(m.current,{type:m.current[0]?.type||"audio/webm"}))}),[]),w=(0,c.useCallback)(async a=>{let b=new FormData;b.append("audio",a,"recording.webm");let c=await fetch("/api/transcribe",{method:"POST",body:b}),d=await c.json();if(!c.ok)throw Error(d.error||"Transcription failed");return d.text},[]),x=(0,c.useCallback)(()=>{p.current?.getTracks().forEach(a=>a.stop()),p.current=null},[]),y=(0,c.useCallback)(async()=>{if("idle"===d||"disabled"===d)try{i(null),k(null),m.current=[],o.current=null,g(0),q.current=0;let a=await navigator.mediaDevices.getUserMedia({audio:!0});p.current=a;let b=MediaRecorder.isTypeSupported("audio/ogg;codecs=opus")?"audio/ogg;codecs=opus":MediaRecorder.isTypeSupported("audio/webm;codecs=opus")?"audio/webm;codecs=opus":MediaRecorder.isTypeSupported("audio/mp4")?"audio/mp4":"",c=new MediaRecorder(a,b?{mimeType:b}:void 0);l.current=c,c.ondataavailable=a=>{a.data.size>0&&m.current.push(a.data)},c.start(1e3),e("recording"),t()}catch(b){let a=b.message;a.includes("Permission")||a.includes("NotAllowed")?i("Microphone permission denied. Please allow microphone access."):i(a||"Failed to start recording"),e("error"),x()}},[d,t,x]),z=(0,c.useCallback)(()=>{"recording"===d&&(l.current?.state==="recording"&&l.current.pause(),u(),e("paused"))},[d,u]),A=(0,c.useCallback)(()=>{"paused"===d&&(l.current?.state==="paused"&&l.current.resume(),r.current&&(q.current=f,r.current=!1),t(),e("recording"))},[d,f,t]),B=(0,c.useCallback)(()=>{if(u(),l.current?.state!=="inactive")try{l.current?.stop()}catch{}m.current=[],o.current=null,g(0),i(null),k(null),x(),e("idle")},[u,x]),C=(0,c.useCallback)(async()=>{if("recording"===d||"paused"===d){u(),e("transcribing");try{let a=await v();o.current=a,x();let b=await w(a);k(b),g(0),m.current=[],e("idle"),s.current?.(b)}catch(a){i(a.message||"Transcription failed"),e("error")}}},[d,u,v,w,x]),D=(0,c.useCallback)(async()=>{if("error"===d&&o.current){e("transcribing"),i(null);try{let a=await w(o.current);k(a),o.current=null,m.current=[],g(0),e("idle"),s.current?.(a)}catch(a){i(a.message||"Transcription failed"),e("error")}}},[d,w]);return{state:d,elapsedSeconds:f,error:h,transcribedText:j,hasRecording:null!==o.current||m.current.length>0,startRecording:y,pauseRecording:z,resumeRecording:A,clearRecording:B,submitRecording:C,retryTranscription:D}}({maxRecordingSeconds:g.voice.maxRecordingSeconds,onTranscriptionComplete:y}),A=(0,c.useCallback)(a=>{o.current&&o.current.id!==a.id&&(o.current.onRelease?.(),"idle"!==z.state&&"disabled"!==z.state&&z.clearRecording()),o.current=a,q(a.id)},[z]),B=(0,c.useCallback)(a=>{o.current?.id===a.id&&("idle"!==z.state&&"error"!==z.state&&"disabled"!==z.state&&z.clearRecording(),o.current=null,q(null))},[z]);(0,c.useEffect)(()=>{let a=a=>{let b=a.target;if(b.closest("[data-voice-target]")&&("INPUT"===b.tagName||"TEXTAREA"===b.tagName))return void w(!0);if(b.closest("[data-terminal-id]")){let a=b.closest("[data-terminal-id]").dataset.terminalId;a&&i.current.has(a)&&(j.current=a,w(!0))}},b=()=>{setTimeout(()=>{let a=document.activeElement;if(!a)return void w(!1);let b=a.closest("[data-voice-target]")&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName),c=a.closest("[data-terminal-id]");b||c||w(!1)},100)};return document.addEventListener("focusin",a),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",b)}},[]);let C=(0,c.useCallback)(()=>{if(o.current)o.current.onRecordStart?.(),z.startRecording();else{let a=document.activeElement;if(a&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName)&&a.closest("[data-voice-target]"))r.current={type:"input",element:a};else if(a?.closest("[data-terminal-id]")){let b=a.closest("[data-terminal-id]").dataset.terminalId||j.current;if(!(b&&i.current.has(b)))return;r.current={type:"terminal",terminalId:b}}else{if(!(j.current&&i.current.has(j.current)))return;r.current={type:"terminal",terminalId:j.current}}z.startRecording()}},[z]),D=(0,c.useCallback)(()=>{s.current="paste",z.submitRecording()},[z]),E=(0,c.useCallback)(()=>{"recording"===z.state?z.pauseRecording():"paused"===z.state&&z.resumeRecording()},[z]);!function({voiceState:a,shortcuts:b,callbacks:e,enabled:f,hasFieldFocus:g,suspended:h}){let i=(0,c.useRef)(e),j=(0,c.useRef)(a),k=(0,c.useRef)(b),l=(0,c.useRef)(g),m=(0,c.useRef)(h);(0,c.useEffect)(()=>{i.current=e,j.current=a,k.current=b,l.current=g,m.current=h}),(0,c.useEffect)(()=>{if(!f)return;let a=a=>{if(m.current)return;let b=j.current,c=k.current,e=i.current;if("idle"===b&&l.current&&d(a,c.startRecording)){a.preventDefault(),a.stopPropagation(),e.onStartRecording();return}if("recording"===b||"paused"===b){if(d(a,c.pauseResume)){a.preventDefault(),a.stopPropagation(),e.onPauseResume();return}if(d(a,c.submitPasteOnly)){a.preventDefault(),a.stopPropagation(),e.onSubmitPasteOnly();return}if(d(a,c.submit)){a.preventDefault(),a.stopPropagation(),e.onSubmit();return}if(d(a,c.clear)){a.preventDefault(),a.stopPropagation(),e.onClear();return}}};return document.addEventListener("keydown",a,!0),()=>document.removeEventListener("keydown",a,!0)},[f])}({voiceState:z.state,shortcuts:g.voice.shortcuts,callbacks:{onStartRecording:C,onPauseResume:E,onSubmit:z.submitRecording,onSubmitPasteOnly:D,onClear:z.clearRecording},enabled:!0,hasFieldFocus:!!o.current||v,suspended:t});let F={voiceState:z.state,elapsedSeconds:z.elapsedSeconds,error:z.error,hasRecording:z.hasRecording,startRecording:z.startRecording,pauseRecording:z.pauseRecording,resumeRecording:z.resumeRecording,clearRecording:z.clearRecording,submitRecording:z.submitRecording,retryTranscription:z.retryTranscription,claimVoiceControl:A,releaseVoiceControl:B,currentClaimantId:p,settings:g,updateSettings:h,registerTerminal:k,unregisterTerminal:n,submitModeRef:s,showSettings:t,setShowSettings:u,hasFieldFocus:v,setHasFieldFocus:w};return(0,b.jsxs)(m.Provider,{value:F,children:[a,(0,b.jsx)(l,{})]})}}];
2
2
 
3
3
  //# sourceMappingURL=src_contexts_VoiceContext_tsx_cfba7292._.js.map
@@ -1 +1 @@
1
- <!DOCTYPE html><!--wK5osty7Iax92ZOE_Skb7--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/43bfca92afbacd38.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/f3d7065d54a0b9ac.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/5f95863347fe47d9.js"/><script src="/_next/static/chunks/7de9141b1af425c3.js" async=""></script><script src="/_next/static/chunks/cf910fc299170b7d.js" async=""></script><script src="/_next/static/chunks/turbopack-563e27abda63930f.js" async=""></script><script src="/_next/static/chunks/0452f599128364c9.js" async=""></script><script src="/_next/static/chunks/e24d6768d85df882.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>SlyCode 🦊</title><meta name="description" content="SlyCode Managed Projects"/><link rel="icon" href="/favicon.png"/><script>(function(){try{var t=localStorage.getItem('slycode-theme');if(t==='light')return;if(t==='dark'||window.matchMedia('(prefers-color-scheme:dark)').matches)document.documentElement.classList.add('dark')}catch(e){}})()</script><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/5f95863347fe47d9.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1088,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"VoiceProvider\"]\n3:I[39756,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n5:I[97367,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n:HL[\"/_next/static/chunks/43bfca92afbacd38.css\",\"style\"]\n:HL[\"/_next/static/chunks/f3d7065d54a0b9ac.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"wK5osty7Iax92ZOE_Skb7\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/43bfca92afbacd38.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/f3d7065d54a0b9ac.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0452f599128364c9.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/e24d6768d85df882.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem('slycode-theme');if(t==='light')return;if(t==='dark'||window.matchMedia('(prefers-color-scheme:dark)').matches)document.documentElement.classList.add('dark')}catch(e){}})()\"}}]}],[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[27201,[\"/_next/static/chunks/0452f599128364c9.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"IconMark\"]\n7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"SlyCode 🦊\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"SlyCode Managed Projects\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.png\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--eGpcv9LfmamGIm1II8SKL--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/43bfca92afbacd38.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/3df3846316317676.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/5f95863347fe47d9.js"/><script src="/_next/static/chunks/7de9141b1af425c3.js" async=""></script><script src="/_next/static/chunks/cf910fc299170b7d.js" async=""></script><script src="/_next/static/chunks/turbopack-563e27abda63930f.js" async=""></script><script src="/_next/static/chunks/8fb2a99c64580de7.js" async=""></script><script src="/_next/static/chunks/e24d6768d85df882.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>SlyCode 🦊</title><meta name="description" content="SlyCode Managed Projects"/><link rel="icon" href="/favicon.png"/><script>(function(){try{var t=localStorage.getItem('slycode-theme');if(t==='light')return;if(t==='dark'||window.matchMedia('(prefers-color-scheme:dark)').matches)document.documentElement.classList.add('dark')}catch(e){}})()</script><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/5f95863347fe47d9.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1088,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"VoiceProvider\"]\n3:I[39756,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n5:I[97367,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n:HL[\"/_next/static/chunks/43bfca92afbacd38.css\",\"style\"]\n:HL[\"/_next/static/chunks/3df3846316317676.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"eGpcv9LfmamGIm1II8SKL\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/43bfca92afbacd38.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3df3846316317676.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/8fb2a99c64580de7.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/e24d6768d85df882.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem('slycode-theme');if(t==='light')return;if(t==='dark'||window.matchMedia('(prefers-color-scheme:dark)').matches)document.documentElement.classList.add('dark')}catch(e){}})()\"}}]}],[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable jetbrains_mono_7d65b77b-module__VxV-Ta__variable font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[27201,[\"/_next/static/chunks/8fb2a99c64580de7.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"IconMark\"]\n7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"SlyCode 🦊\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"SlyCode Managed Projects\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.png\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--wK5osty7Iax92ZOE_Skb7--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/5f95863347fe47d9.js"/><script src="/_next/static/chunks/7de9141b1af425c3.js" async=""></script><script src="/_next/static/chunks/cf910fc299170b7d.js" async=""></script><script src="/_next/static/chunks/turbopack-563e27abda63930f.js" async=""></script><script src="/_next/static/chunks/ff1a16fafef87110.js" async=""></script><script src="/_next/static/chunks/e24d6768d85df882.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
- @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/5f95863347fe47d9.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"ViewportBoundary\"]\n9:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"MetadataBoundary\"]\nb:I[68027,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"wK5osty7Iax92ZOE_Skb7\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/ff1a16fafef87110.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/e24d6768d85df882.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--eGpcv9LfmamGIm1II8SKL--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/5f95863347fe47d9.js"/><script src="/_next/static/chunks/7de9141b1af425c3.js" async=""></script><script src="/_next/static/chunks/cf910fc299170b7d.js" async=""></script><script src="/_next/static/chunks/turbopack-563e27abda63930f.js" async=""></script><script src="/_next/static/chunks/ff1a16fafef87110.js" async=""></script><script src="/_next/static/chunks/e24d6768d85df882.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
+ @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/5f95863347fe47d9.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"ViewportBoundary\"]\n9:I[97367,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"MetadataBoundary\"]\nb:I[68027,[\"/_next/static/chunks/ff1a16fafef87110.js\",\"/_next/static/chunks/e24d6768d85df882.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"eGpcv9LfmamGIm1II8SKL\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/ff1a16fafef87110.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/e24d6768d85df882.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>