1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6a227d38-bb00-452f-b6b4-6a74098fed94",t._sentryDebugIdIdentifier="sentry-dbid-6a227d38-bb00-452f-b6b4-6a74098fed94")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95305],{95305:(t,e,a)=>{a.d(e,{recoverConflictingState:()=>p});var n=a(57160),i=a(63244),o=a(90805),s=a(61007),r=a(17147),l=a(13508);let c=new Set;async function p(t,e,p){if(t.split(":").slice(0,2).join(":")!==(0,s.Rg)())return!1;let d=()=>t.split(":").slice(0,2).join(":")===(0,s.Rg)(),f="".concat(t,":").concat(e,":").concat((0,l.X)(p)),{browserStateDigest:u,postLegacyEditImport:g}=await Promise.resolve().then(a.bind(a,34892)),b=await u(f);return!!c.has(b)||!0===(await (0,r.T)(async()=>{if((0,i.MF)(e)){let[a,i]=t.split(":"),o={"Content-Type":"application/json","x-storage-organization":a,"x-storage-user":i},s=await fetch("/api/app/ai-tools/state/import",{method:"POST",headers:o,body:JSON.stringify({tool:e,state:p,organizationId:a,userId:i}),signal:AbortSignal.timeout(15e3)});if(!s.ok||!d())return!1;let{id:r}=await s.json(),c=await fetch("/api/app/ai-tools/state?tool=".concat(encodeURIComponent(e),"&draft=").concat(encodeURIComponent(r)),{headers:o,cache:"no-store",signal:AbortSignal.timeout(15e3)});if(!c.ok||(0,l.X)((await c.json()).state)!==(0,l.X)(p)||!d())return!1;(0,n.j)(t=>"string"==typeof t&&t.startsWith("/api/app/ai-tools/state/drafts?"))}else{if(!Array.isArray(p.messages)||"string"!=typeof p.sessionId)return!1;let[a,n]=t.split(":"),i=(0,o.Hi)({organizationId:a,userId:n});i.set("Content-Type","application/json");let s={key:e,snapshot:p,originals:{}},r=await g(s,i,d,"/api/app/agent/workspace-state/import");if(!(null==r?void 0:r.ok)||!d())return!1;let{id:l}=await r.json(),c=await fetch("/api/app/agent/workspace-state/import?id=".concat(encodeURIComponent(l)),{headers:i,cache:"no-store",signal:AbortSignal.timeout(15e3)});if(!c.ok||(await c.json()).sourceHash!==await u(s)||!d())return!1}return c.size>=128&&c.delete(c.values().next().value),c.add(b),window.dispatchEvent(new Event("claibe:storage-conflict-recovered")),!0})).data}}}]);
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.