PageSourceSearch

https://creader.io/_next/static/chunks/5123.557c4884dd6f6418.js

js creader.io collected 2026-10-05 08:55:14 UTC 10,135 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5123],{95123:function(e,t,r){r.r(t),r.d(t,{WhatsNewModal:function(){return A}});var a=r(19916),l=r(88515),n=r(35011),s=r(7929),i=r(45806),o=r(30601),c=r(94811),d=r(54110),u=r(75900),m=r(90773);let x={added:"added",changed:"changed",fixed:"fixed",removed:"removed",deprecated:"deprecated",security:"security",新增:"added",变更:"changed",修复:"fixed",移除:"removed",废弃:"deprecated",弃用:"deprecated",安全:"security"},h={public:"public",internal:"internal",公开:"public",内部:"internal"},p=/[_*]\((public|internal|公开|内部)\)[_*]/,f=/[_*]\((public|internal|公开|内部)\)[_*]\s*:?\s*/;var v=r(10447),y=r(2793);let N={
1"CHANGELOG.md":()=>r.e(4740).then(r.t.bind(r,94740,17)),
1"CHANGELOG.cn.md":()=>r.e(2189)
1.then(r.t.bind(r,62189,17))};var b=r(5544),g=r(2604),j=r(3303),w=r(16032),C=r(43136),k=r(76619),Z=r(22911),_=r(24301);let z={added:j.Z,changed:w.Z,fixed:C.Z,removed:k.Z,deprecated:Z.Z,security:_.Z};function E(e){let{entry:t,isAdmin:r,t:l}=e;return(0,a.jsx)("div",{className:"space-y-3",children:t.changes.map(e=>{let t=z[e.type];return(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsxs)(c.C,{variant:"outline",className:(0,g.cn)("text-xs gap-1 rounded-md font-literary",{added:"bg-wp-success-soft text-wp-success",changed:"bg-status-info-soft text-status-info",fixed:"bg-status-warning-soft text-status-warning",removed:"bg-wp-error-soft text-wp-error",deprecated:"bg-wp-accent-10 text-terracotta",security:"bg-status-info-soft text-status-info"}[e.type]),style:{borderColor:"var(--editorial-border-medium)",color:"var(--editorial-text-muted)"},children:[(0,a.jsx)(t,{className:"h-3 w-3"}),l("types.".concat(e.type))]})}),(0,a.jsx)("ul",{className:"space-y-1 pl-4",children:e.items.map((e,t)=>(0,a.jsxs)("li",{className:"text-sm font-literary list-disc list-inside",style:{color:"var(--editorial-text-muted)"},children:[function e(t){let r=[],l=t,n=0;for(;l.length>0;){let t=l.match(/^(.*?)\*\*(.+?)\*\*(.*)$/);if(t){t[1]&&r.push(...e(t[1])),r.push((0,a.jsx)("strong",{className:"font-semibold font-literary",style:{color:"var(--editorial-ink)"},children:t[2]},n++)),l=t[3];continue}let s=l.match(/^(.*?)\*([^*]+?)\*(.*)$/);if(s){s[1]&&r.push(...e(s[1])),r.push((0,a.jsx)("em",{children:s[2]},n++)),l=s[3];continue}let i=l.match(/^(.*?)`([^`]+?)`(.*)$/);if(i){i[1]&&r.push(i[1]),r.push((0,a.jsx)("code",{className:"px-1 py-0.5 rounded-md text-xs font-mono font-literary",style:{background:"var(--editorial-cream)",color:"var(--editorial-ink)"},children:i[2]},n++)),l=i[3];continue}r.push(l);break}return r}(e.text),r&&"internal"===e.visibility&&(0,a.jsx)(c.C,{variant:"outline",className:"ml-2 text-[10px] px-1.5 py-0 rounded font-literary align-middle",style:{borderColor:"rgba(139, 92, 246, 0.3)",color:"rgb(139, 92, 246)"},children:l("internalTag")})]},t))})]},e.type)})})}function G(e){let{entries:t,locale:r,isAdmin:l,t:n}=e,s=t[0];return 0===t.length?(0,a.jsxs)("div",{className:"text-center py-8 font-literary",style:{color:"var(--editorial-text-muted)"},children:[(0,a.jsx)(d.Z,{className:"h-8 w-8 mx-auto mb-2 opacity-20"}),(0,a.jsx)("p",{className:"text-sm",children:n("noReleaseNotes")})]}):(0,a.jsx)(b.UQ,{type:"single",collapsible:!0,defaultValue:(null==s?void 0:s.version)?"version-".concat(s.version):void 0,className:"w-full",children:t.map(e=>{let t=e===s;return(0,a.jsxs)(b.Qd,{value:"version-".concat(e.version),className:"border-none",children:[(0,a.jsx)(b.o4,{className:"py-2 hover:no-underline font-literary",style:{color:"var(--editorial-ink)"},children:(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,a.jsxs)(c.C,{variant:"outline",className:(0,g.cn)("text-sm font-mono rounded-md font-literary",""),style:t?{background:"var(--editorial-cream)",borderColor:"var(--editorial-accent)",borderWidth:"2px",color:"var(--editorial-ink)"}:{borderColor:"var(--editorial-border-medium)",color:"var(--editorial-text-muted)"},children:["v",e.version]}),t&&(0,a.jsx)(c.C,{variant:"outline",className:"text-xs rounded-md font-literary",style:{borderColor:"var(--editorial-border-medium)",color:"var(--editorial-text-muted)"},children:n("latest")}),e.date&&(0,a.jsx)("span",{className:"text-xs font-literary",style:{color:"var(--editorial-text-muted)"},children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";try{return new Date(e).toLocaleDateString("zh"===t?"zh-CN":"en-US",{year:"numeric",month:"long",day:"numeric"})}catch(t){return e}}(e.date,r)})]})}),(0,a.jsx)(b.vF,{children:(0,a.jsx)("div",{className:"pl-2 pt-2",children:(0,a.jsx)(E,{entry:e,isAdmin:l,t:n})})})]},e.version)})})}function A(e){let{open:t,onOpenChange:r,currentVersion:b,isAdmin:g=!1}=e,j=(0,n.T)("common.profile.whatsNew"),w=(0,n.T)("common.status"),C=(0,s.bU)(),[k,Z]=l.useState({status:"idle",entries:null}),_=l.useRef(null),z=l.useRef(!0);l.useEffect(()=>()=>{z.current=!1},[]),l.useEffect(()=>{var e;t&&_.current!==C&&(_.current=C,Z({status:"loading",entries:null}),(null!==(e=N[(0,v.vq)(C)])&&void 0!==e?e:N[y.t])().then(e=>{z.current&&_.current===C&&Z({status:"ready",entries:function(e){var t,r,a,l;let n=[],s=e.split("\n"),i=null,o=null;for(let e of s){let t=e.match(/^## \[([^\]]+)\](?:\s*-\s*(.+))?/);if(t){i&&n.push(i);let e=t[1],a=(null===(r=t[2])||void 0===r?void 0:r.trim().replace(/\s*[_*(].*$/,""))||"";if("unreleased"===e.toLowerCase()){i=null;continue}i={version:e,date:a,changes:[]},o=null;continue}let s=e.match(/^###\s+(.+?)\s*$/);if(s&&i){let e=s[1].trim(),t=null!==(a=x[e])&&void 0!==a?a:x[e.toLowerCase()];o=null!=t?t:null;continue}let c=e.match(/^[-*]\s+(.+)/);if(c&&i&&o){let e=c[1].trim(),t=e.match(p),r=(null==t?void 0:t[1])&&null!==(l=h[t[1]])&&void 0!==l?l:"public",a=e.replace(f,"").trim(),n=i.changes.find(e=>e.type===o);n||(n={type:o,items:[]},i.changes.push(n)),n.items.push({text:a,visibility:r})}}return i&&n.push(i),{entries:n,latestVersion:(null===(t=n[0])||void 0===t?void 0:t.ver
1sion)||null}}(e.default).entries})}).catch(e=>{console.error("Failed to load changelog",e),_.current===C&&(_.current=null,z.current&&Z({status:"error",entries:null}))}))},[t,C]);let E=l.useMemo(()=>{var e,t;return t=null!==(e=k.entries)&&void 0!==e?e:[],g?t:t.map(e=>({...e,changes:e.changes.map(e=>({...e,items:e.items.filter(e=>"public"===e.visibility)})).filter(e=>e.items.length>0)})).filter(e=>e.changes.length>0)},[k.entries,g]);return(0,a.jsx)(i.Vq,{open:t,onOpenChange:r,children:(0,a.jsxs)(i.cZ,{className:"max-w-lg max-h-[80vh] flex flex-col !rounded-lg [&>button]:hidden",style:{background:"var(--editorial-paper)",border:"1px solid var(--editorial-border-medium)"},children:[(0,a.jsxs)(i.fK,{className:"text-center space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mx-auto",children:[(0,a.jsx)("div",{className:"p-2 rounded-md",style:{background:"var(--editorial-cream)"},children:(0,a.jsx)(d.Z,{className:"h-6 w-6",style:{color:"var(--editorial-accent)"}})}),(0,a.jsx)(i.$N,{className:"text-2xl font-literary",style:{color:"var(--editorial-ink)"},children:j("title")})]}),(0,a.jsx)(m.Button,{variant:"ghost",size:"sm",onClick:()=>r(!1),className:"h-8 w-8 p-0 rounded-md",style:{color:"var(--editorial-text-muted)"},children:(0,a.jsx)(u.Z,{className:"h-4 w-4"})})]}),b&&(0,a.jsxs)(i.Be,{className:"font-literary italic",style:{color:"var(--editorial-text-muted)"},children:[j("currentVersion")," ",(0,a.jsxs)(c.C,{variant:"outline",className:"ml-2 rounded-md font-literary text-sm font-semibold px-3 py-1",style:{background:"var(--editorial-cream)",borderColor:"var(--editorial-accent)",borderWidth:"2px",color:"var(--editorial-accent)"},children:["v",b]})]})]}),(0,a.jsx)(o.x,{className:"flex-1 min-h-0 -mx-6 px-6 group",style:{background:"var(--editorial-paper)",maxHeight:"calc(80vh - 200px)"},viewportClassName:"max-h-[calc(80vh-200px)]",children:(0,a.jsxs)("div",{className:"space-y-4 pb-4",children:["loading"===k.status?(0,a.jsx)("p",{className:"py-6 text-center font-literary text-sm",style:{color:"var(--editorial-text-muted)"},children:w("loading")}):"error"===k.status?(0,a.jsx)("p",{className:"py-6 text-center font-literary text-sm",style:{color:"var(--editorial-text-muted)"},children:w("error")}):(0,a.jsx)(G,{entries:E,locale:C,isAdmin:g,t:j}),(0,a.jsx)("p",{className:"pt-2 text-center",children:(0,a.jsx)("a",{href:(0,v.wz)(C),target:"_blank",rel:"noopener noreferrer",className:"font-literary text-sm underline-offset-4 hover:underline",style:{color:"var(--editorial-accent)"},children:j("readFull")})})]})})]})})}},5544:function(e,t,r){r.d(t,{Qd:function(){return c},UQ:function(){return o},o4:function(){return d},vF:function(){return u}});var a=r(19916),l=r(88515),n=r(94227),s=r(78108),i=r(2604);let o=n.fC,c=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)(n.ck,{ref:t,className:(0,i.cn)("border-b",r),...l})});c.displayName="AccordionItem";let d=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,a.jsx)(n.h4,{className:"flex",children:(0,a.jsxs)(n.xz,{ref:t,className:(0,i.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-colors hover:underline [&[data-state=open]>svg]:rotate-180",r),...o,children:[l,(0,a.jsx)(s.Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});d.displayName=n.xz.displayName;let u=l.forwardRef((e,t)=>{let{className:r,children:l,...s}=e;return(0,a.jsx)(n.VY,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:(0,a.jsx)("div",{className:(0,i.cn)("pb-4 pt-0",r),children:l})})});u.displayName=n.VY.displayName},10447:function(e,t,r){r.d(t,{vq:function(){return l},wz:function(){return n}});var a=r(2793);function l(e){var t;return null!==(t=a.P[e])&&void 0!==t?t:a.t}function n(e){return"".concat("https://github.com/timothyshen/creader-editor/blob/main","/").concat(l(e))}},2793:function(e){e.exports=JSON.parse('{"t":"CHANGELOG.md","P":{"zh":"CHANGELOG.cn.md"}}')}}]);

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.