PageSourceSearch

https://lawplexity.ai/_nuxt/CEnSyeKf.js

js lawplexity.ai collected 2026-10-05 14:00:55 UTC 4,371 bytes, 1 lines download raw bytes

1import"./DBPNtrFu.js";import{d as e,n as t}from"./CyjQTRkH.js";var n=[`files`,`notebooks`],r=`contacts`,i={files:`/files`,notebooks:`/notebooks`,contacts:`/contacts`},a={files:`Files`,notebooks:`Notebooks`,contacts:`Contacts`};function o(e){return!!e&&n.includes(e)}var s=[`files`,`notebooks`];function c(e){return!!e&&s.includes(e)}function l(e){return e===`notebooks`?`Notebooks`:`Collections`}function u(e,t){if(o(t))return l(t);let n=String(e??``).trim();return n.toLowerCase()===`collections`?`Collections`:n.toLowerCase()===`notebooks`?`Notebooks`:n.toLowerCase()===`precedents`?`Precedents`:n.toLowerCase()===`documents`?`Documents`:n}var d=/\/+$/;function f(e){if(e.isFolder!==!0&&e.type!==`folder`||((e.parent??`/`).replace(d,``)||`/`)!==`/`)return!1;let t=(e.path??`/`).replace(d,``)||`/`;return(e.name??``).trim().toLowerCase()===`collections`||t.toLowerCase()===`/collections`||Object.values(i).includes(t)}var p=`Home`;function m(e){if(!e)return``;let t=e.split(`/`);return(t[0]===`Sources`||t[0]===`AgentTools`)&&t.length>1?t.slice(1).join(`/`):e}var h=new Set([`personal`,`files`,`notebooks`]);function g(e){let t=e.params?.source??``;return(h.has(t)||o(t))&&e.sourceDocumentId?m(e.sourceDocumentId):t}function _(e,t){return u(e,t)}function v(e){let t=e.indexOf(`?`);if(t===-1)return{path:e,query:{}};let n=e.slice(0,t),r={};for(let[n,i]of new URLSearchParams(e.slice(t+1)))r[n]=i;return{path:n,query:r}}function y(n,r){return n===`AgentSkills`?`/ai/skills`:n===`AgentTools`?r===`index`||e(r)?t:`/ai/tools/${encodeURIComponent(r)}`:n===`Collections`&&r===`personal`?`/collections/files`:n===`Collections`&&o(r)?`/collections/${r}`:n===`Notebooks`&&r===`personal`?`/collections/notebooks`:`/${n}/${r}`}function b(e,t,n){return e===`AgentSkills`?`/ai/skills${n?`?id=${encodeURIComponent(n)}`:``}`:e===`Collections`&&o(t)?`/collections/${t}/${encodeURIComponent(n)}`:e===`Collections`?`/Collections/${t}/${encodeURIComponent(n)}`:`/${e}/${t}/${encodeURIComponent(n)}`}function x(e,t,n,r,i){let a=r.replace(/\/+$/,``)||`/`,o=e.filter(e=>{if(!e.isFolder||f(e))return!1;let t=e.path||`/`,n=e.parent||`/`;return a===`/`?t!==`/`&&t.length>1:n===a||t.startsWith(`${a}/`)}),s=new Map,c=o.sort((e,t)=>(e.path||``).localeCompare(t.path||``));for(let e of c){let r=e.path||`/`,o={title:e.name,link:b(t,n,e.id),icon:`i-lucide-folder`,children:[],isFolder:!0,path:r,params:{library:t,source:n},sourceDocumentId:i};s.set(r,o);let c=e.parent||`/`;if(c===a)continue;let l=s.get(c);l?.children&&l.children.push(o)}return c.filter(e=>(e.parent||`/`)===a).map(e=>s.get(e.path||`/`)).filter(Boolean)}function S(e){return e.link?v(e.link).path:e.params?.library&&e.params?.source?y(e.params.library,e.params.source):e.title??``}function C(e,t){let n=S(t);return n?e===n||e===`${n}/`:!1}function w(e,t){let n=e.findIndex(e=>e.link===t);if(n!==-1)return e.splice(n,1),!0;for(let n of e)if(n.children&&w(n.children,t))return!0;return!1}function T(e,t){for(let n of e)for(let e of n.items)if(`children`in e&&e.children&&w(e.children,t))return!0;return!1}function E(e){return e.dashed||e.params?.source===`add`||e.isFolder===!0?!1:!!(e.params?.library&&e.params?.source)}function D(e,t,n){for(let r of e)for(let e of r.items){if(!(`children`in e)||!e.children)continue;let r=e.children.findIndex(e=>E(e)&&e.params?.library===t&&e.params?.source===n);if(r>=0)return e.children.splice(r,1),!0}return!1}function O(e,t,n){for(let r of e)for(let e of r.items){if(!(`children`in e)||!e.children)continue;let r=e.children.findIndex(e=>E(e)&&e.params?.library===t&&e.params?.source===n);if(!(r<0)){for(let t=r-1;t>=0;t--){let n=e.children[t];if(!(!n||!E(n))){if(n.link)return n.link;if(n.params?.library&&n.params?.source)return y(n.params.library,n.params.source)}}return null}}return null}function k(e,t,n){let r=new Map,i=e.filter(e=>e.isFolder&&!f(e)).sort((e,t)=>(e.path||``).localeCompare(t.path||``));for(let e of i){let i=e.path||`/`,a={title:e.name,link:b(t,n,e.id),icon:`i-lucide-folder`,children:[],isFolder:!0,path:i};r.set(i,a);let o=e.parent||`/`;if(o===`/`||o===``)continue;let s=r.get(o);s?.children&&s.children.push(a)}return i.filter(e=>(e.parent||`/`)===`/`).map(e=>
1r.get(e.path||`/`)).filter(Boolean)}export{u as C,f as S,p as _,y as a,i as b,C as c,T as d,D as f,s as g,r as h,x as i,_ as l,m,b as n,O as o,g as p,k as r,S as s,h as t,v as u,n as v,c as w,o as x,a as y};

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.