1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`be0ab32f2d7a30746f74541c0cfa8a0eac8b864a`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e82aa705-f0a1-467f-880d-175ad23ed358`,e._sentryDebugIdIdentifier=`sentry-dbid-e82aa705-f0a1-467f-880d-175ad23ed358`)}catch{}})();import{Et as e,Nt as t}from"./Bhkzbx4i.js";import{h as n}from"./u-hW_GcJ.js";var r={post:`posts`,invoice:`invoices`};function i(e,t,i){let a=r[t];if(!i[a]){n.warn(`Entity Map does not have ${a}`);return}let o=i[a][e];return o||n.warn(`Could not find entity type ${t} in ${a}[${e}] when processing relationships`),o}function a(n,r,a){return Object.entries(r).forEach(([t,r])=>{r&&(n[t]=e(Array.isArray(r)?(e,r)=>({get:()=>{let r=n._relationships[t];return r?.length&&e(),r.map(({id:e,type:t})=>i(e,t,a))},set:e=>{let i=e.filter(e=>!!e).map(e=>({id:e.id,type:e.type}));n._relationships[t]=i,i?.length&&r()}}):(e,r)=>({get:()=>{if(n._relationships[t])return e(),i(n._relationships[t].id,n._relationships[t].type,a)},set:e=>{if(!e){n._relationships[t]=null;return}e.type&&(n._relationships[t]={id:e.id,type:e.type},r())}})))}),t(n)}function o(e){let t={...e};return Object.entries(t).forEach(([e,n])=>{e.endsWith(`At`)&&n&&(t[e]=new Date(n))}),t}function s(e){return e.attributes.type&&(e.attributes.modelType=e.attributes.type,delete e.attributes.type),{id:e.id,...o(e.attributes),type:e.type,_relationships:e.relationships}}function c(e,t){return a(s(e),e.relationships,t)}export{c as n,r as t};
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.