import{n as e}from"./rolldown-runtime-C0FnF6B9.js";function t(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function n(e,n=``){return t(e)??n}function r(e){let n=t(e);return n?n.toLowerCase():``}function i(e){return e==null?``:String(e)}function a(e,t){let n=new Map(t.map(e=>[e,e])),r=[],i=new Set;for(let t of e??[]){if(!t||i.has(t))continue;let e=n.get(t);e&&(i.add(t),r.push(e))}return r}function o(e,t){let n=[...e],r=new Set(e);for(let e of t)!e||r.has(e)||(r.add(e),n.push(e));return n}function s(e,t){let n=[];for(let r of e){let e=t.get(r);e!==void 0&&n.push(e)}return n}function c(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function l(){return(l=e((()=>{})))()}export{l as a,r as c,i,n as l,a as n,s as o,c as r,o as s,t};