1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2504],{14958:(t,e,n)=>{n.d(e,{IF:()=>l,Rr:()=>function t(e){let n=e.map(e=>(function(e){let n=e.children?t(e.children):void 0,i="string"==typeof e.id&&e.id.length>0?e.id:void 0!==globalThis.crypto&&"function"==typeof globalThis.crypto.randomUUID?"".concat(o,"-").concat(globalThis.crypto.randomUUID()):"".concat(o,"-").concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,9));if(i===e.id&&n===e.children)return(0,r.GL)(e);let{children:l,...a}=e;return{...a,id:i,...l?{children:null!=n?n:(0,r.$I)(l)}:{}}})(e));return n.some((t,n)=>t!==e[n])?n:(0,r.$I)(e)},dV:()=>a,fl:()=>i});var r=n(45348);let o="node";function i(t,e){if("string"==typeof t.id&&t.id.length>0)return t.id;throw Error('Missing node id at path "'.concat(e,'"'))}function l(t){let e={nodeById:{},parentByNodeId:{},pathByNodeId:{},nodeIdByPath:{}},n=(t,o,l)=>{t.forEach((t,a)=>{var c;let u=l?"".concat(l,".").concat(a):"".concat(a),s=i(t,u);e.nodeById[s]=(0,r.GL)(t),e.parentByNodeId[s]=o,e.pathByNodeId[s]=u,e.nodeIdByPath[u]=s,(null==(c=t.children)?void 0:c.length)&&n(t.children,s,u)})};return n(t,null,""),e}function a(t,e){var n;return null!=(n=l(t).nodeById[e])?n:null}},28994:(t,e,n)=>{n.d(e,{F0:()=>i,MN:()=>u,Tr:()=>l,We:()=>m,XM:()=>h,YA:()=>v,YU:()=>d,_6:()=>f,ae:()=>I,dV:()=>a,kI:()=>y,nx:()=>b,sp:()=>c,u:()=>s,ur:()=>p,v7:()=>g});var r=n(14958),o=n(45348);function i(t){let e=[];for(let n of t){if("rendered"!==n.status||!n.nodes)continue;let t=(0,r.Rr)(n.nodes),i=(t,l,a)=>{t.forEach((t,c)=>{var u;let s=l?"".concat(l,".").concat(c):"".concat(c),d=(0,r.fl)(t,s);e.push({frameId:n.id,nodeId:d,nodePath:s,node:(0,o.GL)(t),depth:a}),(null==(u=t.children)?void 0:u.length)&&i(t.children,s,a+1)})};i(t,"",0)}return e}function l(t,e){let n;if("string"!=typeof e||0===e.length)return null;let r=e.split(".").map(Number),o=t;for(let t of r){if(!Number.isInteger(t)||t<0||t>=o.length||!(n=o[t]))return null;o=n.children||[]}return n||null}function a(t,e){return(0,r.dV)(t,e)}function c(t,e){var n;return null!=(n=(0,r.IF)(t).nodeIdByPath[e])?n:null}function u(t,e){var n;return null!=(n=(0,r.IF)(t).pathByNodeId[e])?n:null}function s(t,e){var n;let o=(0,r.IF)(t),i=o.pathByNodeId[e],l=o.nodeById[e];if(!i||!l)return null;let a=f(i);return{nodeId:e,nodePath:i,parentPath:a,parentNodeId:null!=(n=o.parentByNodeId[e])?n:null,siblingIndex:b(i),node:l}}function d(t,e){var n;if(!p(e))return null;let r=l(t,e);if(!(null==r?void 0:r.id))return null;let i=f(e),a=i?l(t,i):null;return{nodeId:r.id,nodePath:e,parentPath:i,parentNodeId:null!=(n=null==a?void 0:a.id)?n:null,siblingIndex:b(e),node:(0,o.GL)(r)}}function v(t){let e={};for(let n of t)n.nodes&&(e[n.id]=(0,r.IF)((0,r.Rr)(n.nodes)));return e}function f(t){if("string"!=typeof t||0===t.length)return null;let e=t.lastIndexOf(".");return -1===e?null:t.substring(0,e)}function p(t){return"string"==typeof t&&t.length>0}function g(t,e){return!!p(t)&&!!p(e)&&e.startsWith("".concat(t,"."))}function m(t,e){return!!p(t)&&!!p(e)&&(e===t||g(t,e))}function h(t){var e,n;return!!(null==t||null==(n=t.style)||null==(e=n.layout)?void 0:e.direction)}function y(t){var e,n;return(null==t||null==(n=t.style)||null==(e=n.layout)?void 0:e.direction)||null}function b(t){var e;if("string"!=typeof t||0===t.length)return -1;let n=t.split("."),r=parseInt(null!=(e=n[n.length-1])?e:"",10);return Number.isInteger(r)?r:-1}function I(t,e){if("string"!=typeof e||0===e.length)return!1;let n=e.split(".").map(Number),r=t;for(let t of n){if(!Number.isInteger(t)||t<0||t>=r.length)break;let e=r[t];if(!e)break;if(e.component)return!0;r=e.children||[]}return!1}},40473:(t,e,n)=>{n.d(e,{X:()=>o});var r=n(47139);let o=r.v.union(r.v.literal("convex-auth"),r.v.literal("better-auth"),r.v.literal("clerk-token"),r.v.literal("clerk-webhook"),r.v.literal("custom-users"),r.v.literal("jwt-only"))},45348:(t,e,n)=>{function r(t){return t}function o(t){return t}function i(t){if("codebase"===t)return"components";if("colors"===t)return"variables";switch(t){case"chat":case"history":case"backend":case"logs":case"layers":case"components":case"assets":case"variables":case"shortcuts":case"analytics":case"settings":return t;default:return"chat"}}
1function l(t){return t instanceof HTMLElement?t:null}function a(t,e){let n=t.querySelector(e);return n instanceof HTMLElement?n:null}function c(t,e){let n=t.closest(e);return n instanceof HTMLElement?n:null}function u(t){return t}function s(t){return null!==t&&"object"==typeof t?t:{}}function d(t){return t}function v(t){return t}function f(t){return t}function p(t){return t}function g(t){return t}function m(t){return t}function h(t){return t}function y(t){return t}function b(t,e){return"boolean"==typeof t?t:e}function I(t,e){return"number"==typeof t&&Number.isFinite(t)?t:e}function j(t,e){return"string"==typeof t?t:e}function k(t){return Array.isArray(t)?t.filter(t=>"string"==typeof t):[]}function w(t){if(!Array.isArray(t))return[];let e=[];for(let n of t){if("object"!=typeof n||null===n)continue;let t=Reflect.get(n,"label");"string"==typeof t&&e.push({label:t})}return e}function x(t){return"large"===t?"large":"small"}function A(t){return Array.isArray(t)?t.length:0}function E(t){return crypto.randomUUID()}function C(){let t=Reflect.get(window,"__figbloomRootDragPerf");if(void 0===t||"object"!=typeof t||null===t)return;let e=Reflect.get(t,"active");return void 0===e?{}:"boolean"==typeof e?{active:e}:{}}n.d(e,{$I:()=>v,Bw:()=>f,EV:()=>w,Fs:()=>s,GL:()=>d,Gc:()=>j,HC:()=>b,N$:()=>o,PV:()=>a,To:()=>h,XV:()=>k,YM:()=>l,YW:()=>E,al:()=>x,g5:()=>u,gY:()=>A,ie:()=>m,jk:()=>I,jl:()=>y,kM:()=>c,o7:()=>r,sG:()=>p,uX:()=>g,vp:()=>i,zO:()=>C})},68527:(t,e,n)=>{n.d(e,{$:()=>tt,$c:()=>V,Bs:()=>R,Dl:()=>J,E8:()=>ta,Ge:()=>z,Gt:()=>k,Ji:()=>s,LJ:()=>to,MQ:()=>$,NV:()=>q,Ni:()=>ts,RO:()=>_,T6:()=>c,UA:()=>tc,Um:()=>tu,Y6:()=>Y,YB:()=>d,Z0:()=>W,Zq:()=>tn,a8:()=>tl,ar:()=>te,c4:()=>a,eR:()=>v,ex:()=>Z,jh:()=>u,qx:()=>Q,t7:()=>tr});var r=n(47139),o=n(43320),i=n(40473),l=n(41774);function a(t){return t}function c(t){return t}function u(t){return t}function s(t){return t}function d(t){return t}function v(t){return t}n(86360);let f=r.v.string(),p=r.v.string(),g=r.v.string(),m=r.v.string(),h=r.v.string();r.v.string(),r.v.string(),r.v.string();let y=r.v.string(),b=r.v.string(),I=r.v.string(),j=r.v.string();r.v.string();let k=r.v.string(),w=r.v.string(),x=r.v.union(r.v.literal("manual"),r.v.literal("ai-generated"),r.v.literal("route-drop"),r.v.literal("code-import"),r.v.literal("code-projection")),A=r.v.object({sourceCodeRefId:b,sourcePath:l.n,sourceDisplayName:r.v.string(),importedFromSnapshotId:j,importedAt:r.v.number()}),E=r.v.object({fileKey:r.v.optional(r.v.string()),componentKey:r.v.optional(r.v.string()),sourceGuid:r.v.string(),sourceHash:r.v.string(),generatedSourceHash:r.v.string(),visualHash:r.v.string(),converterVersion:r.v.string(),importedAt:r.v.number()}),C=r.v.object({kind:r.v.literal("figma-import"),displayName:r.v.string(),componentName:m,provenance:E,previewWidth:r.v.optional(r.v.number()),previewHeight:r.v.optional(r.v.number())}),N=r.v.object({kind:x,createdFromCodeRefId:r.v.optional(b),createdFromRouteId:r.v.optional(I),createdFromWorkspaceSnapshotId:r.v.optional(j),sourceMainFilePath:r.v.optional(r.v.string()),sourceDisplayName:r.v.optional(r.v.string()),importedSource:r.v.optional(A),figmaComponent:r.v.optional(E)}),O=r.v.object({codeRefIds:r.v.optional(r.v.array(r.v.string())),routeId:r.v.optional(r.v.string()),queryInvocationIds:r.v.optional(r.v.array(r.v.string())),componentDefinitionIds:r.v.optional(r.v.array(r.v.string()))}),B=r.v.object({device:r.v.string(),route:r.v.string(),showBezel:r.v.optional(r.v.boolean()),frameWidth:r.v.optional(r.v.number()),frameHeight:r.v.optional(r.v.number())});r.v.union(r.v.literal("mockup"),r.v.literal("artboard"),r.v.literal("canvasComponent"),r.v.literal("codebaseComponent")),r.v.union(r.v.literal("mockup"),r.v.literal("artboard"),r.v.literal("canvasComponent"));let S=r.v.union(r.v.literal("loading"),r.v.literal("rendered"),r.v.literal("error")),R=r.v.object({appUserId:r.v.string(),authPattern:i.X}),F=r.v.record(r.v.string(),r.v.any()),M=r.v.object({deploymentId:r.v.optional(r.v.union(r.v.id("convexDevDeployments"),r.v.id("convexProdDeployments"))),actingAs:r.v.optional(r.v.object({ref:R,payload:F}))}),D={canvasHidden:r.v.optional(r.v.boolean()),x:r.v.number(),y:r.v.number(),width:r.v.optional(r.v.number()),height:r.v.optional(r.v.number()),lastRenderedRootWidth:r.v.optional(r.v.number()),lastRenderedRootHeight:r.v.optional(r.v.number()),order:g,status:S,name:r.v.optional(r.v.string()),frameOrigin:r.v.optional(N),originatingCommentThreadI
1d:r.v.optional(w),error:r.v.optional(r.v.string())},T={componentName:r.v.optional(m),isolatedNodePath:r.v.optional(p),dependencies:r.v.optional(O),backendConnection:r.v.optional(M),importedFrameIds:r.v.optional(r.v.array(l.pJ)),packageVersions:r.v.record(r.v.string(),r.v.string())},P=r.v.object({...D,kind:r.v.literal("mockup"),appId:r.v.id("apps"),mockup:B}),L=r.v.object({...D,...T,kind:r.v.literal("artboard")}),H=r.v.object({...D,...T,kind:r.v.literal("canvasComponent")}),U=r.v.object({...D,...T,kind:r.v.literal("codebaseComponent"),codebasePath:r.v.string()}),G=r.v.union(P,L,H,U);function V(t){return"mockup"!==t.kind}let W="local-user",Y="remote-user",J="agent";function q(t){return"string"==typeof t&&!!(t===W||t.startsWith("multi-frame-op:")||t.startsWith("restore:")||t.startsWith("revert-commit:"))}function _(t){return t.getMap("frames")}function $(t){return t.getMap("componentDefinitions")}function X(t){return t.getText("source")}function K(t){if("object"!=typeof t||null===t||"function"!=typeof Reflect.get(t,"toString"))return"";let e=String(t);return"[object Object]"===e?"":e}function z(t){return K(X(t))}function Z(t,e){let n=t;for(let t of[...e].sort((t,e)=>e.from-t.from)){if(t.from<0||t.deleteCount<0||t.from+t.deleteCount>n.length)throw RangeError("Invalid Y.Text source edit ".concat(JSON.stringify(t)," for source length ").concat(n.length));n=n.slice(0,t.from)+t.insert+n.slice(t.from+t.deleteCount)}return n}function Q(t,e){let n=X(t),r=K(n);if(r!==e.expectedSource)throw Error("Y.Text source precondition failed: expected ".concat(e.expectedSource.length," UTF-16 units, found ").concat(r.length));for(let t of(Z(r,e.edits),[...e.edits].sort((t,e)=>e.from-t.from)))t.deleteCount>0&&n.delete(t.from,t.deleteCount),t.insert.length>0&&n.insert(t.from,t.insert)}function tt(t,e,n){if(e===n)return;let r=0,o=Math.min(e.length,n.length);for(;r<o&&e.charCodeAt(r)===n.charCodeAt(r);)r+=1;let i=0;for(;i<o-r&&e.charCodeAt(e.length-i-1)===n.charCodeAt(n.length-i-1);)i+=1;Q(t,{expectedSource:e,edits:[{from:r,deleteCount:e.length-r-i,insert:n.slice(r,n.length-i)}]})}function te(t){return new o.JA({guid:t,autoLoad:!1})}function*tn(t){for(let[e,n]of $(t).entries())if(ti(n))try{yield{componentId:e,meta:function(t,e){let n={};for(let[e,r]of t.entries())void 0!==r&&(n[e]=r);try{return function(t){return tv(C,t)}(n)}catch(n){let t=n instanceof Error?n.message:String(n);throw Error("readCanvasComponentDefinitionMeta: component ".concat(e," has malformed meta map (").concat(t,")"))}}(n,e)}}catch(t){}}function tr(t,e,n,r){let i=tv(C,n);o.hL(t,()=>{let n=$(t),r=n.get(e),l=ti(r)?r:new o.T5;ti(r)||n.set(e,l),function(t,e){for(let n of t.keys())n in e||t.delete(n);for(let[n,r]of Object.entries(e))ts(t.get(n),r)||t.set(n,r)}(l,i)},r)}function to(t,e,n){o.hL(t,()=>{$(t).delete(e)},n)}function ti(t){return t instanceof o.T5||"object"==typeof t&&null!==t&&null!=t.constructor&&"YMap"===t.constructor.name&&"_map"in t}function*tl(t){for(let[e,n]of _(t).entries())if(ti(n))try{let t=function(t,e){let n={};for(let[e,r]of t.entries())void 0!==r&&(n[e]=r);try{return function(t){return tv(G,t)}(n)}catch(n){let t=n instanceof Error?n.message:String(n);throw Error("readFrameMeta: frame ".concat(e," has malformed meta map (").concat(t,")"))}}(n,e);yield{frameId:e,meta:t}}catch(t){}}function ta(t,e,n){if(ti(_(t).get(e)))throw Error("Frame ".concat(e," already exists on root doc"));tv(G,n);let r=_(t),o=new r.constructor;(function(t,e){for(let[n,r]of Object.entries(e))void 0!==r&&t.set(n,r)})(o,n),r.set(e,o)}function tc(t){return null!==t.privateContext?{context:t.privateContext,source:"private"}:void 0!==t.frameDefault?{context:t.frameDefault,source:"frameDefault"}:{context:{},source:"branchBaseline"}}function tu(t,e){if(null!==t&&null!==e&&t>=e)throw Error("generateOrderBetween: prev must be lexicographically less than next; got prev=".concat(JSON.stringify(t)," next=").concat(JSON.stringify(e)));return function(t,e){let n=0,r="";for(;;){let o=n<t.length?t.charCodeAt(n):31,i=""!==e&&n<e.length?e.charCodeAt(n):127,l=Math.floor((o+i)/2);if(l>o&&l<i)return r+String.fromCharCode(l);if(l<=31)return r+" ";if(r+=String.fromCharCode(o>31?o:l),(n+=1)>t.length+32)throw Error("generateOrderBetween: failed to find midpoint within 32 bytes")}}(null!=t?t:"",null!=e?e:"")}function ts(t,e){if(Object.is(t,e))return!0;
1if(Array.isArray(t)||Array.isArray(e))return!!Array.isArray(t)&&!!Array.isArray(e)&&t.length===e.length&&t.every((t,n)=>ts(t,e[n]));if(td(t)||td(e)){if(!td(t)||!td(e))return!1;let n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((n,o)=>n===r[o]&&ts(t[n],e[n]))}return!1}function td(t){if("object"!=typeof t||null===t||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function tv(t,e){var n,r;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$",i=t.kind;if("string"===i){if("string"!=typeof e)throw Error("".concat(o,": expected string, got ").concat(typeof e));return e}if("float64"===i){if("number"!=typeof e||!Number.isFinite(e))throw Error("".concat(o,": expected finite number, got ").concat(typeof e));return e}if("boolean"===i){if("boolean"!=typeof e)throw Error("".concat(o,": expected boolean, got ").concat(typeof e));return e}if("literal"===i){let n=t.value;if(e!==n)throw Error("".concat(o,": expected literal ").concat(JSON.stringify(n),", got ").concat(JSON.stringify(e)));return e}if("id"===i){if("string"!=typeof e)throw Error("".concat(o,": expected id (string), got ").concat(typeof e));return e}if("object"===i){if(null===e||"object"!=typeof e||Array.isArray(e))throw Error("".concat(o,": expected object, got ").concat(null===e?"null":typeof e));let r={};for(let[i,l]of Object.entries(null!=(n=t.fields)?n:{})){let t=e[i];if(void 0===t){if("optional"!==l.isOptional)throw Error("".concat(o,".").concat(i,": required field missing"));continue}r[i]=tv(l,t,"".concat(o,".").concat(i))}return r}if("union"===i){let n=null!=(r=t.members)?r:[],i=null;for(let t of n)try{return tv(t,e,o)}catch(t){i=t}throw i instanceof Error?Error("".concat(o,": did not match any union member (").concat(i.message,")")):Error("".concat(o,": did not match any union member"))}if("array"===i){if(!Array.isArray(e))throw Error("".concat(o,": expected array, got ").concat(typeof e));let n=t.element;if(!n)throw Error("".concat(o,": array validator missing element shape"));return e.map((t,e)=>tv(n,t,"".concat(o,"[").concat(e,"]")))}if("record"===i){if(null===e||"object"!=typeof e||Array.isArray(e))throw Error("".concat(o,": expected record (plain object), got ").concat(null===e?"null":typeof e));let n=t.value;if(!n)throw Error("".concat(o,": record validator missing value shape"));let r={};for(let[t,i]of Object.entries(e))r[t]=tv(n,i,"".concat(o,".").concat(t));return r}if("any"===i)return e;if("null"===i&&null!==e)throw Error("".concat(o,": expected null, got ").concat(typeof e));return e}r.v.union(r.v.literal("fix-request"),r.v.literal("feature-request"),r.v.literal("question"),r.v.literal("design-feedback"),r.v.literal("decision"),r.v.literal("discussion")),r.v.union(r.v.literal("design"),r.v.literal("build"),r.v.literal("plan"),r.v.literal("ask")),r.v.union(r.v.literal("trivial"),r.v.literal("moderate"),r.v.literal("complex")),r.v.union(r.v.literal("bloomAgent"),r.v.literal("convex"),r.v.literal("expo"),r.v.literal("testing"),r.v.literal("review"),r.v.literal("research")),r.v.union(r.v.object({kind:r.v.literal("local-user"),userId:r.v.id("users"),clientId:h}),r.v.object({kind:r.v.literal("remote-user"),userId:r.v.id("users"),clientId:h}),r.v.object({kind:r.v.literal("agent"),editId:r.v.id("edits")}),r.v.object({kind:r.v.literal("multi-frame-op"),opId:y,initiator:r.v.union(r.v.object({kind:r.v.literal("user"),userId:r.v.id("users")}),r.v.object({kind:r.v.literal("agent"),editId:r.v.id("edits")}))}),r.v.object({kind:r.v.literal("restore"),snapshotVersionId:f,userId:r.v.id("users")}),r.v.object({kind:r.v.literal("revert-commit"),revertedEditId:r.v.id("edits"),userId:r.v.id("users")}),r.v.object({kind:r.v.literal("codebase-sync"),codebasePath:r.v.string()}),r.v.object({kind:r.v.literal("test-fixture"),reason:r.v.string()}),r.v.object({kind:r.v.literal("source-migration"),migrationOperationId:r.v.string()}),r.v.object({kind:r.v.literal("api"),apiKeyId:r.v.id("apiKeys")}),r.v.object({kind:r.v.literal("api"),userId:r.v.id("users"),oauthClientId:r.v.string()})),r.v.union(r.v.object({kind:r.v.literal("exact"),intentId:k,boundary:r.v.union(r.v.literal("interaction"),r.v.literal("tool-call"),r.v.literal("operation")),batchIndex:r.v.optional(r.v.number()),batchSize:r.v.optional(r.v.number()),history:r.v.optional(r.v.object({action:r.v.union(r.v.literal("commit"),r.v.literal("undo"),r.v.literal("redo")),historyEntryId:r.v.string(),historyActionId:r.v.string()}))}),r.v.object({kind:r.v.literal("legacy"),reason:r.v.literal("client-without-intent")}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.