1import{i as p}from"./CawMNg-U.js";function b(o){const t=Date.now(),r=({event_apply_from:s=0,event_apply_end:u=0,event_people_limit:c=0})=>{const l=s*1e3,h=u*1e3;let f=0;return t>=l&&t<=h?f=c===0?2:1:t>h&&(f=2),f},a={},n=p(new Date,"Mæ"),e=o.map(s=>{const u=new Date(s.from_date),[c,l,h]=p(u,"Mæ;MM;DD").split(";"),f={...s,tabName:c,text_month:l,text_date:h,introduce:s.introduce.replace(/\n/g,"<br>"),event_status:r(s)};return a[c]??(a[c]=[]),a[c].push(f),f});a.å
¨é¨æä»½=e;const i=d(Object.keys(a));let m=i.indexOf(n);return m===-1&&(m=0),{tabActiveIndex:m,tabNames:i,mapGroupItems:a}}function w(o){const t={},r=p(new Date,"Mæ"),a=o.map(i=>{const m=new Date(i.published_at*1e3),[s,u,c]=p(m,"Mæ;MM;DD").split(";"),l={...i,tabName:s,text_month:u,text_date:c,introduce:i.introduce.replace(/\n/g,"<br>")};return t[s]??(t[s]=[]),t[s].push(l),l});t.å
¨é¨æä»½=a;const n=d(Object.keys(t));let e=n.indexOf(r);return e===-1&&(e=0),{tabActiveIndex:e,tabNames:n,mapGroupItems:t}}function D(o){return{...o,items:o.items.map(t=>({src:t.image_link,thumbnail:t.thumbnail_link,alt:t.common,width:t.width,height:t.height}))}}function M(o){const t=new Set([1,4,5]),r=new Set([2,4,5]),a=new Set([3]);return o.map(n=>{const e={id:n.id,type:n.type,html:"",css:n.css,iframe:"",iframe_caption:"",filename_link:"",filename_caption:""};return t.has(e.type)&&(e.html=n.html),r.has(e.type)&&(e.filename_link=n.filename_link,e.filename_caption=n.filename_caption),a.has(e.type)&&(e.iframe=n.iframe,e.iframe_caption=n.iframe_caption),e})}function d(o){const t=/[^\d]*/g;return o.sort((r,a)=>{const n=+r.replace(t,"")||99,e=+a.replace(t,"")||99;return n-e})}export{D as a,w as b,b as c,M 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.