PageSourceSearch

https://macosicons.com/_nuxt/_DNfkvin.js

js macosicons.com collected 2026-10-04 00:29:02 UTC 5,636 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`87d04c47-bb44-4480-86d5-88f097c86676`,e._sentryDebugIdIdentifier=`sentry-dbid-87d04c47-bb44-4480-86d5-88f097c86676`)}catch{}})();import{C as e}from"./CyU4sjus.js";import{g as t}from"./Dxi30lUR.js";import{n}from"./1-o_v2xm.js";import{c as r,g as i,l as a,n as o,o as s,s as c,t as l}from"./Le2vsdAR.js";import{r as u}from"./BcsTi7fm.js";import{r as d,t as f}from"./B9jsIwx1.js";function p(e){if(!e)return[];let t=new Set;for(let n of e.boards??[])m(n?.layers,t);for(let n of Object.values(e.snapshots??{}))m(n?.layers,t);return[...t]}function m(e,t){for(let n of e??[])if(n){if(n.type===`image`||n.type===`icon`||n.type===`svg`){h(n.src)&&t.add(n.src);continue}if(n.type===`text`){let e=g(n.fontFamily,n.fontWeight);e&&t.add(e);continue}n.type===`model3d`&&h(n.src)&&t.add(n.src)}}function h(e){return typeof e==`string`&&/^https?:\/\//i.test(e)}function g(e,t){if(typeof e!=`string`)return null;let n=d(e,typeof t==`number`?t:400);return n?f.find(e=>e.family===n.family)?.files[n.weight]??null:null}var _=`macos-icons-offline`,v=1073741824;function y(){try{let e=localStorage.getItem(`auth_user`),t=e?JSON.parse(e):null;return t?.objectId||t?.id||null}catch{return null}}function b(e){return e?`${_}:${e}`:_}var x=n(`offlineWorkspace`,()=>{let n=u(),d=e([]),f=e(v),m=e({active:!1,done:0,total:0,failed:0,label:null}),h=e(!1),g=e([]),_=e([]),x=e(null),S=!1,C=null,w=!1;function T(){let e=y();if(!(S&&e===C)){S=!0,C=e,d.value=[],f.value=v;try{let t=localStorage.getItem(b(e));if(!t)return;let n=JSON.parse(t);Array.isArray(n.scopes)&&(d.value=n.scopes.filter(e=>typeof e==`string`)),typeof n.budgetBytes==`number`&&n.budgetBytes>0&&(f.value=n.budgetBytes)}catch(e){console.warn(`[offline] hydrate failed`,e)}}}function E(){try{let e={version:1,scopes:d.value,budgetBytes:f.value};localStorage.setItem(b(C),JSON.stringify(e))}catch(e){console.warn(`[offline] persist failed`,e)}}let D=t(()=>d.value.includes(`all`));function O(e){return D.value||d.value.includes(`project:${e}`)}function k(e){if(D.value||d.value.includes(`doc:${e}`))return!0;let t=n.getDocument(e)?.projectId;return!!(t&&d.value.includes(`project:${t}`))}function A(e){return _.value.includes(e)}function j(){let e=n.documents.filter(e=>!e.deleted);if(D.value)return e.map(e=>e.id);let t=new Set;for(let n of d.value)if(n.startsWith(`doc:`))t.add(n.slice(4));else if(n.startsWith(`project:`)){let r=n.slice(8);for(let n of e)n.projectId===r&&t.add(n.id)}return[...t].filter(t=>e.some(e=>e.id===t))}let M=t(()=>g.value.reduce((e,t)=>e+(t.bytes||0),0));async function N(){if(g.value=await r().catch(()=>[]),_.value=await c().catch(()=>[]),navigator.storage?.estimate){let e=await navigator.storage.estimate().catch(()=>null);e&&(x.value={usage:e.usage??0,quota:e.quota??0})}}async function P(){if(!navigator.storage?.persist)return!1;try{return await navigator.storage.persisted()?!0:await navigator.storage.persist()}catch{return!1}}async function F(e,t,r){let i=n.getDocument(e);if(!i)return;let o=!!i.data,s=await n.loadDocumentData(e,{throwOnError:!0});for(let n of p(s)){if(w)return;if(t.has(n)){await l(n,e);continue}let i=await fetch(n,{mode:`cors`,credentials:`omit`});if(!i.ok)continue;let o=await i.blob();if(r.value+o.size>f.value)throw h.value=!0,Error(`budget`);await a(n,o,e),t.add(n),r.value+=o.size}o||(i.data=null)}async function I(){if(T(),!n.isAuthed()||m.value.active)return;w=!1,h.value=!1,await n.ensureLoaded(),await N();let e=j();if(!e.length){await R();return}let t=new Set(g.value.map(e=>e.url)),r={value:M.value};m.value={active:!0,done:0,total:e.length,failed:0,label:null};try{for(let i of e){if(w)break;m.value.label=n.getDocument(i)?.name??null;try{await F(i,t,r)}catch(e){if(e instanceof Error&&e.message===`budget`)break;m.value.failed+=1,console.warn(`[offline] download failed`,i,e)}m.value.done+=1}}finally{m.value={...m.value,active:!1,label:null},await R(),await N()}}function L(){w=!0}async function R(){let e=new Set(j()),t=await r().catch(()=>[]),a=new Set;for(let n of t)for(let t of n.docIds??[])e.has(t)||a.add(t);for(let e of a)await i(e).catch(()=>[]);let l=(await r().catch(()=>[])).filter(e=>!(e.docIds??[]).length).map(e=>e.url);if(l.length&&await o(l).catch(()=>void 0),!h.value)return;let u=await c().catch(()=>[]);
1for(let t of u)e.has(t)||n.getDocument(t)?.data||await s(t).catch(()=>void 0)}function z(e,t){T(),t!==d.value.includes(e)&&(t?d.value.push(e):d.value=d.value.filter(t=>t!==e),E())}async function B(e,t){z(`doc:${e}`,t),t?(await P(),await I()):await W(e)}async function V(e,t){let n=new Set(j());if(z(`project:${e}`,t),t){await P(),await I();return}await U(n)}async function H(e){let t=new Set(j());if(z(`all`,e),e){await P(),await I();return}await U(t)}async function U(e){let t=new Set(j());for(let n of e)t.has(n)||await W(n);await N()}async function W(e){k(e)||(await i(e).catch(()=>[]),await N())}async function G(){T(),L();let e=j();d.value=[],E();for(let t of e)await i(t).catch(()=>[]);await R(),await N()}T(),N(),window.addEventListener(`online`,()=>{T(),d.value.length&&I()});function K(e){T(),f.value=Math.max(52428800,Math.round(e)),h.value=!1,E()}return{scopes:d,budgetBytes:f,progress:m,budgetExceeded:h,assets:g,originUsage:x,mirroredBytes:M,everythingOffline:D,hydrate:T,isDocumentOffline:k,isDocumentDownloaded:A,isProjectOffline:O,resolvePinnedDocumentIds:j,refreshUsage:N,pinDocument:B,pinProject:V,pinEverything:H,setBudget:K,sync:I,cancel:L,removeAll:G}});export{x 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.