| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function s(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(l){if(l.ep)return;l.ep=!0;const i=s(l);fetch(l.href,i)}})();/**
- * @vue/shared v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/function Tn(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const Ct={},Pe=[],pe=()=>{},jl=()=>!1,Rs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Is=t=>t.startsWith("onUpdate:"),Bt=Object.assign,En=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},Ji=Object.prototype.hasOwnProperty,kt=(t,e)=>Ji.call(t,e),dt=Array.isArray,Fe=t=>ms(t)==="[object Map]",Ss=t=>ms(t)==="[object Set]",Yn=t=>ms(t)==="[object Date]",ut=t=>typeof t=="function",jt=t=>typeof t=="string",he=t=>typeof t=="symbol",Tt=t=>t!==null&&typeof t=="object",Dl=t=>(Tt(t)||ut(t))&&ut(t.then)&&ut(t.catch),Pl=Object.prototype.toString,ms=t=>Pl.call(t),Xi=t=>ms(t).slice(8,-1),Hl=t=>ms(t)==="[object Object]",Cn=t=>jt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ss=Tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ns=t=>{const e=Object.create(null);return(s=>e[s]||(e[s]=t(s)))},Zi=/-\w/g,ee=Ns(t=>t.replace(Zi,e=>e.slice(1).toUpperCase())),Qi=/\B([A-Z])/g,Ne=Ns(t=>t.replace(Qi,"-$1").toLowerCase()),Rl=Ns(t=>t.charAt(0).toUpperCase()+t.slice(1)),Xs=Ns(t=>t?`on${Rl(t)}`:""),ue=(t,e)=>!Object.is(t,e),Zs=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},Il=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},ta=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Jn;const Bs=()=>Jn||(Jn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dt(t){if(dt(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],l=jt(n)?la(n):Dt(n);if(l)for(const i in l)e[i]=l[i]}return e}else if(jt(t)||Tt(t))return t}const ea=/;(?![^(]*\))/g,sa=/:([^]+)/,na=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function la(t){const e={};return t.replace(na,s=>s.startsWith("/*")?"":s).split(ea).forEach(s=>{if(s){const n=s.split(sa);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ut(t){let e="";if(jt(t))e=t;else if(dt(t))for(let s=0;s<t.length;s++){const n=Ut(t[s]);n&&(e+=n+" ")}else if(Tt(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}const ia="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",aa=Tn(ia);function Nl(t){return!!t||t===""}function oa(t,e,s){if(t.length!==e.length)return!1;let n=!0;for(let l=0;n&&l<t.length;l++)n=Ws(t[l],e[l],s);return n}function Xn(t,e,s){if(t.size!==e.size)return!1;const n=Array.from(e),l=new Uint8Array(n.length);for(const i of t){let c=-1;for(let r=0;r<n.length;r++)if(!l[r]&&Ws(i,n[r],s)){c=r;break}if(c<0)return!1;l[c]=1}return!0}function ra(t,e,s){let n=Fe(t),l=Fe(e);if(n||l||(n=Ss(t),l=Ss(e),n||l))return n&&l?Xn(t,e,s):!1;const i=Object.keys(t).length,c=Object.keys(e).length;if(i!==c)return!1;for(const r in t){const u=t.hasOwnProperty(r),v=e.hasOwnProperty(r);if(u&&!v||!u&&v||!Ws(t[r],e[r],s))return!1}return String(t)===String(e)}function Zn(t,e,s,n){s||(s=[new Map,new Map]);const[l,i]=s;if(l.has(t)||i.has(e))return l.get(t)===e&&i.get(e)===t;l.set(t,e),i.set(e,t);const c=n(t,e,s);return l.delete(t),i.delete(e),c}function Ws(t,e,s){if(t===e)return!0;let n=Yn(t),l=Yn(e);return n||l?n&&l?t.getTime()===e.getTime():!1:(n=he(t),l=he(e),n||l?t===e:(n=dt(t),l=dt(e),n||l?n&&l?Zn(t,e,s,oa):!1:(n=Tt(t),l=Tt(e),n||l?!n||!l?!1:Zn(t,e,s,ra):String(t)===String(e))))}const Bl=t=>!!(t&&t.__v_isRef===!0),d=t=>jt(t)?t:t==null?"":dt(t)||Tt(t)&&(t.toString===Pl||!ut(t.toString))?Bl(t)?d(t.value):JSON.stringify(t,Wl,2):String(t),Wl=(t,e)=>Bl(e)?Wl(t,e.value):Fe(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,l],i)=>(s[Qs(n,i)+" =>"]=l,s),{})}:Ss(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>Qs(s))}:he(e)?Qs(e):Tt(e)&&!dt(e)&&!Hl(e)?String(e):e,Qs=(t,e="")=>{var s;return he(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};/**
- * @vue/reactivity v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let Nt;class ca{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Nt&&(Nt.active?(this.parent=Nt,this.index=(Nt.scopes||(Nt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes){const n=this.scopes.slice();for(e=0,s=n.length;e<s;e++)n[e].pause()}for(e=0,s=this.effects.length;e<s;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,s;if(this.scopes){const l=this.scopes.slice();for(e=0,s=l.length;e<s;e++)l[e].resume()}const n=this.effects.slice();for(e=0,s=n.length;e<s;e++)n[e].resume()}}run(e){if(this._active){const s=Nt;try{return Nt=this,e()}finally{Nt=s}}}on(){++this._on===1&&(this.prevScope=Nt,Nt=this)}off(){if(this._on>0&&--this._on===0){if(Nt===this)Nt=this.prevScope;else{let e=Nt;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const l=this.scopes.slice();for(s=0,n=l.length;s<n;s++)l[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function da(){return Nt}let Ft;const tn=new WeakSet;class Ul{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Nt&&(Nt.active?Nt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tn.has(this)&&(tn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Vl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qn(this),Gl(this);const e=Ft,s=se;Ft=this,se=!0;try{return this.fn()}finally{zl(this),Ft=e,se=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)On(e);this.deps=this.depsTail=void 0,Qn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){mn(this)&&this.run()}get dirty(){return mn(this)}}let Kl=0,ns,ls;function Vl(t,e=!1){if(t.flags|=8,e){t.next=ls,ls=t;return}t.next=ns,ns=t}function Fn(){Kl++}function An(){if(--Kl>0)return;if(ls){let e=ls;for(ls=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;ns;){let e=ns;for(ns=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function Gl(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function zl(t){let e,s=t.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),On(n),ua(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}t.deps=e,t.depsTail=s}function mn(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Yl(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Yl(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===cs)||(t.globalVersion=cs,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!mn(t))))return;t.flags|=2;const e=t.dep,s=Ft,n=se;Ft=t,se=!0;try{Gl(t);const l=t.fn(t._value);(e.version===0||ue(l,t._value))&&(t.flags|=128,t._value=l,e.version++)}catch(l){throw e.version++,l}finally{Ft=s,se=n,zl(t),t.flags&=-3}}function On(t,e=!1){const{dep:s,prevSub:n,nextSub:l}=t;if(n&&(n.nextSub=l,t.prevSub=void 0),l&&(l.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)On(i,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function ua(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let se=!0;const Jl=[];function $e(){Jl.push(se),se=!1}function xe(){const t=Jl.pop();se=t===void 0?!0:t}function Qn(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=Ft;Ft=void 0;try{e()}finally{Ft=s}}}let cs=0;class pa{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ft||!se||Ft===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ft)s=this.activeLink=new pa(Ft,this),Ft.deps?(s.prevDep=Ft.depsTail,Ft.depsTail.nextDep=s,Ft.depsTail=s):Ft.deps=Ft.depsTail=s,Xl(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Ft.depsTail,s.nextDep=void 0,Ft.depsTail.nextDep=s,Ft.depsTail=s,Ft.deps===s&&(Ft.deps=n)}return s}trigger(e){this.version++,cs++,this.notify(e)}notify(e){Fn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{An()}}}function Xl(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Xl(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const vn=new WeakMap,He=Symbol(""),_n=Symbol(""),ds=Symbol("");function Wt(t,e,s){if(se&&Ft){let n=vn.get(t);n||vn.set(t,n=new Map);let l=n.get(s);l||(n.set(s,l=new qn),l.map=n,l.key=s),l.track()}}function ge(t,e,s,n,l,i){const c=vn.get(t);if(!c){cs++;return}const r=u=>{u&&u.trigger()};if(Fn(),e==="clear")c.forEach(r);else{const u=dt(t),v=u&&Cn(s);if(u&&s==="length"){const f=Number(n);c.forEach((m,_)=>{(_==="length"||_===ds||!he(_)&&_>=f)&&r(m)})}else switch((s!==void 0||c.has(void 0))&&r(c.get(s)),v&&r(c.get(ds)),e){case"add":u?v&&r(c.get("length")):(r(c.get(He)),Fe(t)&&r(c.get(_n)));break;case"delete":u||(r(c.get(He)),Fe(t)&&r(c.get(_n)));break;case"set":Fe(t)&&r(c.get(He));break}}An()}function We(t){const e=wt(t);return e===t||(Wt(e,"iterate",ds),Qt(t))?e:fe(t)?Ae(t)?e.map(s=>Oe(te(s))):e.map(Oe):e.map(te)}function Us(t){return Wt(t=wt(t),"iterate",ds),t}function ce(t,e){return fe(t)?Oe(Ae(t)?te(e):e):te(e)}const ha={__proto__:null,[Symbol.iterator](){return en(this,Symbol.iterator,t=>ce(this,t))},concat(...t){return We(this).concat(...t.map(e=>dt(e)?We(e):e))},entries(){return en(this,"entries",t=>(t[1]=ce(this,t[1]),t))},every(t,e){return me(this,"every",t,e,void 0,arguments)},filter(t,e){return me(this,"filter",t,e,s=>s.map(n=>ce(this,n)),arguments)},find(t,e){return me(this,"find",t,e,s=>ce(this,s),arguments)},findIndex(t,e){return me(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return me(this,"findLast",t,e,s=>ce(this,s),arguments)},findLastIndex(t,e){return me(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return me(this,"forEach",t,e,void 0,arguments)},includes(...t){return sn(this,"includes",t)},indexOf(...t){return sn(this,"indexOf",t)},join(t){return We(this).join(t)},lastIndexOf(...t){return sn(this,"lastIndexOf",t)},map(t,e){return me(this,"map",t,e,void 0,arguments)},pop(){return Je(this,"pop")},push(...t){return Je(this,"push",t)},reduce(t,...e){return tl(this,"reduce",t,e)},reduceRight(t,...e){return tl(this,"reduceRight",t,e)},shift(){return Je(this,"shift")},some(t,e){return me(this,"some",t,e,void 0,arguments)},splice(...t){return Je(this,"splice",t)},toReversed(){return We(this).toReversed()},toSorted(t){return We(this).toSorted(t)},toSpliced(...t){return We(this).toSpliced(...t)},unshift(...t){return Je(this,"unshift",t)},values(){return en(this,"values",t=>ce(this,t))}};function en(t,e,s){const n=Us(t),l=n[e]();return n!==t&&!Qt(t)&&(l._next=l.next,l.next=()=>{const i=l._next();return i.done||(i.value=s(i.value)),i}),l}const fa=Array.prototype;function me(t,e,s,n,l,i){const c=Us(t),r=c!==t&&!Qt(t),u=c[e];if(u!==fa[e]){const m=u.apply(t,i);return r?te(m):m}let v=s;c!==t&&(r?v=function(m,_){return s.call(this,ce(t,m),_,t)}:s.length>2&&(v=function(m,_){return s.call(this,m,_,t)}));const f=u.call(c,v,n);return r&&l?l(f):f}function tl(t,e,s,n){const l=Us(t),i=l!==t&&!Qt(t);let c=s,r=!1;l!==t&&(i?(r=n.length===0,c=function(v,f,m){return r&&(r=!1,v=ce(t,v)),s.call(this,v,ce(t,f),m,t)}):s.length>3&&(c=function(v,f,m){return s.call(this,v,f,m,t)}));const u=l[e](c,...n);return r?ce(t,u):u}function sn(t,e,s){const n=wt(t);Wt(n,"iterate",ds);const l=n[e](...s);return(l===-1||l===!1)&&Dn(s[0])?(s[0]=wt(s[0]),n[e](...s)):l}function Je(t,e,s=[]){$e(),Fn();const n=wt(t)[e].apply(t,s);return An(),xe(),n}const ma=Tn("__proto__,__v_isRef,__isVue"),Zl=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(he));function va(t){he(t)||(t=String(t));const e=wt(this);return Wt(e,"has",t),e.hasOwnProperty(t)}class Ql{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const l=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(l?i?Sa:ni:i?si:ei).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=dt(e);if(!l){let u;if(c&&(u=ha[s]))return u;if(s==="hasOwnProperty")return va}const r=Reflect.get(e,s,Kt(e)?e:n);if((he(s)?Zl.has(s):ma(s))||(l||Wt(e,"get",s),i))return r;if(Kt(r)){const u=c&&Cn(s)?r:r.value;return l&&Tt(u)?bn(u):u}return Tt(r)?l?bn(r):vs(r):r}}class ti extends Ql{constructor(e=!1){super(!1,e)}set(e,s,n,l){let i=e[s];const c=dt(e)&&Cn(s);if(!this._isShallow){const v=fe(i);if(!Qt(n)&&!fe(n)&&(i=wt(i),n=wt(n)),!c&&Kt(i)&&!Kt(n))return v||(i.value=n),!0}const r=c?Number(s)<e.length:kt(e,s),u=Reflect.set(e,s,n,Kt(e)?e:l);return e===wt(l)&&u&&(r?ue(n,i)&&ge(e,"set",s,n):ge(e,"add",s,n)),u}deleteProperty(e,s){const n=kt(e,s);e[s];const l=Reflect.deleteProperty(e,s);return l&&n&&ge(e,"delete",s,void 0),l}has(e,s){const n=Reflect.has(e,s);return(!he(s)||!Zl.has(s))&&Wt(e,"has",s),n}ownKeys(e){return Wt(e,"iterate",dt(e)?"length":He),Reflect.ownKeys(e)}}class _a extends Ql{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const ga=new ti,ba=new _a,ya=new ti(!0);const gn=t=>t,bs=t=>Reflect.getPrototypeOf(t);function $a(t,e,s){return function(...n){const l=this.__v_raw,i=wt(l),c=Fe(i),r=t==="entries"||t===Symbol.iterator&&c,u=t==="keys"&&c,v=l[t](...n),f=s?gn:e?Oe:te;return!e&&Wt(i,"iterate",u?_n:He),Bt(Object.create(v),{next(){const{value:m,done:_}=v.next();return _?{value:m,done:_}:{value:r?[f(m[0]),f(m[1])]:f(m),done:_}}})}}function ys(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function xa(t,e){const s={get(l){const i=this.__v_raw,c=wt(i),r=wt(l);t||(ue(l,r)&&Wt(c,"get",l),Wt(c,"get",r));const{has:u}=bs(c),v=e?gn:t?Oe:te;if(u.call(c,l))return v(i.get(l));if(u.call(c,r))return v(i.get(r));i!==c&&i.get(l)},get size(){const l=this.__v_raw;return!t&&Wt(wt(l),"iterate",He),l.size},has(l){const i=this.__v_raw,c=wt(i),r=wt(l);return t||(ue(l,r)&&Wt(c,"has",l),Wt(c,"has",r)),l===r?i.has(l):i.has(l)||i.has(r)},forEach(l,i){const c=this,r=c.__v_raw,u=wt(r),v=e?gn:t?Oe:te;return!t&&Wt(u,"iterate",He),r.forEach((f,m)=>l.call(i,v(f),v(m),c))}};return Bt(s,t?{add:ys("add"),set:ys("set"),delete:ys("delete"),clear:ys("clear")}:{add(l){const i=wt(this),c=bs(i),r=wt(l),u=!e&&!Qt(l)&&!fe(l)?r:l;return c.has.call(i,u)||ue(l,u)&&c.has.call(i,l)||ue(r,u)&&c.has.call(i,r)||(i.add(u),ge(i,"add",u,u)),this},set(l,i){!e&&!Qt(i)&&!fe(i)&&(i=wt(i));const c=wt(this),{has:r,get:u}=bs(c);let v=r.call(c,l);v||(l=wt(l),v=r.call(c,l));const f=u.call(c,l);return c.set(l,i),v?ue(i,f)&&ge(c,"set",l,i):ge(c,"add",l,i),this},delete(l){const i=wt(this),{has:c,get:r}=bs(i);let u=c.call(i,l);u||(l=wt(l),u=c.call(i,l)),r&&r.call(i,l);const v=i.delete(l);return u&&ge(i,"delete",l,void 0),v},clear(){const l=wt(this),i=l.size!==0,c=l.clear();return i&&ge(l,"clear",void 0,void 0),c}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=$a(l,t,e)}),s}function Ln(t,e){const s=xa(t,e);return(n,l,i)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?n:Reflect.get(kt(s,l)&&l in n?s:n,l,i)}const wa={get:Ln(!1,!1)},ka={get:Ln(!1,!0)},Ma={get:Ln(!0,!1)};const ei=new WeakMap,si=new WeakMap,ni=new WeakMap,Sa=new WeakMap;function Ta(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vs(t){return fe(t)?t:jn(t,!1,ga,wa,ei)}function Ea(t){return jn(t,!1,ya,ka,si)}function bn(t){return jn(t,!0,ba,Ma,ni)}function jn(t,e,s,n,l){if(!Tt(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const i=l.get(t);if(i)return i;const c=Ta(Xi(t));if(c===0)return t;const r=new Proxy(t,c===2?n:s);return l.set(t,r),r}function Ae(t){return fe(t)?Ae(t.__v_raw):!!(t&&t.__v_isReactive)}function fe(t){return!!(t&&t.__v_isReadonly)}function Qt(t){return!!(t&&t.__v_isShallow)}function Dn(t){return t?!!t.__v_raw:!1}function wt(t){const e=t&&t.__v_raw;return e?wt(e):t}function Ca(t){return!kt(t,"__v_skip")&&Object.isExtensible(t)&&Il(t,"__v_skip",!0),t}const te=t=>Tt(t)?vs(t):t,Oe=t=>Tt(t)?bn(t):t;function Kt(t){return t?t.__v_isRef===!0:!1}function qt(t){return Fa(t,!1)}function Fa(t,e){return Kt(t)?t:new Aa(t,e)}class Aa{constructor(e,s){this.dep=new qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:wt(e),this._value=s?e:te(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||Qt(e)||fe(e);e=n?e:wt(e),ue(e,s)&&(this._rawValue=e,this._value=n?e:te(e),this.dep.trigger())}}function p(t){return Kt(t)?t.value:t}const Oa={get:(t,e,s)=>e==="__v_raw"?t:p(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const l=t[e];return Kt(l)&&!Kt(s)?(l.value=s,!0):Reflect.set(t,e,s,n)}};function li(t){return Ae(t)?t:new Proxy(t,Oa)}class qa{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ft!==this)return Vl(this,!0),!0}get value(){const e=this.dep.track();return Yl(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function La(t,e,s=!1){let n,l;return ut(t)?n=t:(n=t.get,l=t.set),new qa(n,l,s)}const $s={},Ts=new WeakMap;let je;function ja(t,e=!1,s=je){if(s){let n=Ts.get(s);n||Ts.set(s,n=[]),n.push(t)}}function Da(t,e,s=Ct){const{immediate:n,deep:l,once:i,scheduler:c,augmentJob:r,call:u}=s,v=N=>l?N:Qt(N)||l===!1||l===0?be(N,1):be(N);let f,m,_,k,A=!1,O=!1;if(Kt(t)?(m=()=>t.value,A=Qt(t)):Ae(t)?(m=()=>v(t),A=!0):dt(t)?(O=!0,A=t.some(N=>Ae(N)||Qt(N)),m=()=>t.map(N=>{if(Kt(N))return N.value;if(Ae(N))return v(N);if(ut(N))return u?u(N,2):N()})):ut(t)?e?m=u?()=>u(t,2):t:m=()=>{if(_){$e();try{_()}finally{xe()}}const N=je;je=f;try{return u?u(t,3,[k]):t(k)}finally{je=N}}:m=pe,e&&l){const N=m,Y=l===!0?1/0:l;m=()=>be(N(),Y)}const K=da(),E=()=>{f.stop(),K&&K.active&&En(K.effects,f)};if(i&&e){const N=e;e=(...Y)=>{const ht=N(...Y);return E(),ht}}let q=O?new Array(t.length).fill($s):$s;const G=N=>{if(!(!(f.flags&1)||!f.dirty&&!N))if(e){const Y=f.run();if(N||l||A||(O?Y.some((ht,ct)=>ue(ht,q[ct])):ue(Y,q))){_&&_();const ht=je;je=f;try{const ct=[Y,q===$s?void 0:O&&q[0]===$s?[]:q,k];q=Y,u?u(e,3,ct):e(...ct)}finally{je=ht}}}else f.run()};return r&&r(G),f=new Ul(m),f.scheduler=c?()=>c(G,!1):G,k=N=>ja(N,!1,f),_=f.onStop=()=>{const N=Ts.get(f);if(N){if(u)u(N,4);else for(const Y of N)Y();Ts.delete(f)}},e?n?G(!0):q=f.run():c?c(G.bind(null,!0),!0):f.run(),E.pause=f.pause.bind(f),E.resume=f.resume.bind(f),E.stop=E,E}function be(t,e=1/0,s){if(e<=0||!Tt(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,Kt(t))be(t.value,e,s);else if(dt(t))for(let n=0;n<t.length;n++)be(t[n],e,s);else if(Ss(t)||Fe(t))t.forEach(n=>{be(n,e,s)});else if(Hl(t)){for(const n in t)be(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&be(t[n],e,s)}return t}/**
- * @vue/runtime-core v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/function _s(t,e,s,n){try{return n?t(...n):t()}catch(l){Ks(l,e,s)}}function ne(t,e,s,n){if(ut(t)){const l=_s(t,e,s,n);return l&&Dl(l)&&l.catch(i=>{Ks(i,e,s)}),l}if(dt(t)){const l=[];for(let i=0;i<t.length;i++)l.push(ne(t[i],e,s,n));return l}}function Ks(t,e,s,n=!0){const l=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:c}=e&&e.appContext.config||Ct;if(e){let r=e.parent;const u=e.proxy,v=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const f=r.ec;if(f){for(let m=0;m<f.length;m++)if(f[m](t,u,v)===!1)return}r=r.parent}if(i){$e(),_s(i,null,10,[t,u,v]),xe();return}}Pa(t,s,l,n,c)}function Pa(t,e,s,n=!0,l=!1){if(l)throw t;console.error(t)}const Gt=[];let re=-1;const Ve=[];let Ee=null,Ue=0;const ii=Promise.resolve();let Es=null;function Ha(t){const e=Es||ii;return t?e.then(this?t.bind(this):t):e}function Ra(t){let e=re+1,s=Gt.length;for(;e<s;){const n=e+s>>>1,l=Gt[n],i=us(l);i<t||i===t&&l.flags&2?e=n+1:s=n}return e}function Pn(t){if(!(t.flags&1)){const e=us(t),s=Gt[Gt.length-1];!s||!(t.flags&2)&&e>=us(s)?Gt.push(t):Gt.splice(Ra(e),0,t),t.flags|=1,ai()}}function ai(){Es||(Es=ii.then(ri))}function Ia(t){if(!dt(t))Ee&&t.id===-1?Ee.splice(Ue+1,0,t):t.flags&1||(Ve.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)Ve.push(t[e]);ai()}function el(t,e,s=re+1){for(;s<Gt.length;s++){const n=Gt[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Gt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function oi(t){if(Ve.length){const e=[...new Set(Ve)].sort((s,n)=>us(s)-us(n));if(Ve.length=0,Ee){for(let s=0;s<e.length;s++)Ee.push(e[s]);return}for(Ee=e,Ue=0;Ue<Ee.length;Ue++){const s=Ee[Ue];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ee=null,Ue=0}}const us=t=>t.id==null?t.flags&2?-1:1/0:t.id;function ri(t){try{for(re=0;re<Gt.length;re++){const e=Gt[re];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),_s(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;re<Gt.length;re++){const e=Gt[re];e&&(e.flags&=-2)}re=-1,Gt.length=0,oi(),Es=null,(Gt.length||Ve.length)&&ri()}}let Zt=null,ci=null;function Cs(t){const e=Zt;return Zt=t,ci=t&&t.type.__scopeId||null,e}function Na(t,e=Zt,s){if(!e||t._n)return t;const n=(...l)=>{n._d&&hl(-1);const i=Cs(e),c=Re.length;let r;try{r=t(...l)}finally{for(let u=Re.length;u>c;u--)qi();Cs(i),n._d&&hl(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function sl(t,e){if(Zt===null)return t;const s=Js(Zt),n=t.dirs||(t.dirs=[]);for(let l=0;l<e.length;l++){let[i,c,r,u=Ct]=e[l];i&&(ut(i)&&(i={mounted:i,updated:i}),i.deep&&be(c),n.push({dir:i,instance:s,value:c,oldValue:void 0,arg:r,modifiers:u}))}return t}function qe(t,e,s,n){const l=t.dirs,i=e&&e.dirs;for(let c=0;c<l.length;c++){const r=l[c];i&&(r.oldValue=i[c].value);let u=r.dir[n];u&&($e(),ne(u,s,8,[t.el,r,t,e]),xe())}}function Ba(t,e){if(zt){let s=zt.provides;const n=zt.parent&&zt.parent.provides;n===s&&(s=zt.provides=Object.create(n)),s[t]=e}}function ws(t,e,s=!1){const n=Ro();if(n||Ge){let l=Ge?Ge._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&t in l)return l[t];if(arguments.length>1)return s&&ut(e)?e.call(n&&n.proxy):e}}const Wa=Symbol.for("v-scx"),Ua=()=>ws(Wa);function is(t,e,s){return di(t,e,s)}function di(t,e,s=Ct){const{immediate:n,deep:l,flush:i,once:c}=s,r=Bt({},s),u=e&&n||!e&&i!=="post";let v;if(fs){if(i==="sync"){const k=Ua();v=k.__watcherHandles||(k.__watcherHandles=[])}else if(!u){const k=()=>{};return k.stop=pe,k.resume=pe,k.pause=pe,k}}const f=zt;r.call=(k,A,O)=>ne(k,f,A,O);let m=!1;i==="post"?r.scheduler=k=>{Yt(k,f&&f.suspense)}:i!=="sync"&&(m=!0,r.scheduler=(k,A)=>{A?k():Pn(k)}),r.augmentJob=k=>{e&&(k.flags|=4),m&&(k.flags|=2,f&&(k.id=f.uid,k.i=f))};const _=Da(t,e,r);return fs&&(v?v.push(_):u&&_()),_}function Ka(t,e,s){const n=this.proxy,l=jt(t)?t.includes(".")?ui(n,t):()=>n[t]:t.bind(n,n);let i;ut(e)?i=e:(i=e.handler,s=e);const c=gs(this),r=di(l,i.bind(n),s);return c(),r}function ui(t,e){const s=e.split(".");return()=>{let n=t;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const Va=Symbol("_vte"),Vs=t=>t.__isTeleport,nn=Symbol("_leaveCb");function Ga(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==we){e=s;break}}return e}function pi(t){if(!Rn(t))return Vs(t.type)&&t.children?Ga(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:s}=t;if(s){if(e&16)return s[0];if(e&32&&ut(s.default))return s.default()}}function Hn(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const s=t.component.subTree;Hn(Vs(s.type)&&pi(s)||s,e)}else t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ht(t,e){return ut(t)?Bt({name:t.name},e,{setup:t}):t}function hi(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function nl(t,e){let s;return!!((s=Object.getOwnPropertyDescriptor(t,e))&&!s.configurable)}const Fs=new WeakMap;function as(t,e,s,n,l=!1){if(dt(t)){t.forEach((O,K)=>as(O,e&&(dt(e)?e[K]:e),s,n,l));return}if(os(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&as(t,e,s,n.component.subTree);return}const i=n.shapeFlag&4?Js(n.component):n.el,c=l?null:i,{i:r,r:u}=t,v=e&&e.r,f=r.refs===Ct?r.refs={}:r.refs,m=r.setupState,_=wt(m),k=m===Ct?jl:O=>nl(f,O)?!1:kt(_,O),A=(O,K)=>!(K&&nl(f,K));if(v!=null&&v!==u){if(ll(e),jt(v))f[v]=null,k(v)&&(m[v]=null);else if(Kt(v)){const O=e;A(v,O.k)&&(v.value=null),O.k&&(f[O.k]=null)}}if(ut(u))_s(u,r,12,[c,f]);else{const O=jt(u),K=Kt(u);if(O||K){const E=()=>{if(t.f){const q=O?k(u)?m[u]:f[u]:A()||!t.k?u.value:f[t.k];if(l)dt(q)&&En(q,i);else if(dt(q))q.includes(i)||q.push(i);else if(O)f[u]=[i],k(u)&&(m[u]=f[u]);else{const G=[i];A(u,t.k)&&(u.value=G),t.k&&(f[t.k]=G)}}else O?(f[u]=c,k(u)&&(m[u]=c)):K&&(A(u,t.k)&&(u.value=c),t.k&&(f[t.k]=c))};if(c){const q=()=>{E(),Fs.delete(t)};q.id=-1,Fs.set(t,q),Yt(q,s)}else ll(t),E()}}}function ll(t){const e=Fs.get(t);e&&(e.flags|=8,Fs.delete(t))}Bs().requestIdleCallback;Bs().cancelIdleCallback;const os=t=>!!t.type.__asyncLoader,Rn=t=>t.type.__isKeepAlive;function za(t,e){fi(t,"a",e)}function Ya(t,e){fi(t,"da",e)}function fi(t,e,s=zt){const n=t.__wdc||(t.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return t()});if(Gs(e,n,s),s){let l=s.parent;for(;l&&l.parent;)Rn(l.parent.vnode)&&Ja(n,e,s,l),l=l.parent}}function Ja(t,e,s,n){const l=Gs(e,t,n,!0);In(()=>{En(n[e],l)},s)}function Gs(t,e,s=zt,n=!1){if(s){const l=s[t]||(s[t]=[]),i=e.__weh||(e.__weh=(...c)=>{$e();const r=gs(s),u=ne(e,s,t,c);return r(),xe(),u});return n?l.unshift(i):l.push(i),i}}const Me=t=>(e,s=zt)=>{(!fs||t==="sp")&&Gs(t,(...n)=>e(...n),s)},Xa=Me("bm"),Be=Me("m"),Za=Me("bu"),Qa=Me("u"),mi=Me("bum"),In=Me("um"),to=Me("sp"),eo=Me("rtg"),so=Me("rtc");function no(t,e=zt){Gs("ec",t,e)}const lo=Symbol.for("v-ndc");function bt(t,e,s,n){let l;const i=s,c=dt(t);if(c||jt(t)){const r=c&&Ae(t);let u=!1,v=!1;r&&(u=!Qt(t),v=fe(t),t=Us(t)),l=new Array(t.length);for(let f=0,m=t.length;f<m;f++)l[f]=e(u?v?Oe(te(t[f])):te(t[f]):t[f],f,void 0,i)}else if(typeof t=="number"){l=new Array(t);for(let r=0;r<t;r++)l[r]=e(r+1,r,void 0,i)}else if(Tt(t))if(t[Symbol.iterator])l=Array.from(t,(r,u)=>e(r,u,void 0,i));else{const r=Object.keys(t);l=new Array(r.length);for(let u=0,v=r.length;u<v;u++){const f=r[u];l[u]=e(t[f],f,u,i)}}else l=[];return l}const yn=t=>t?Pi(t)?Js(t):yn(t.parent):null,rs=Bt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>yn(t.parent),$root:t=>yn(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>_i(t),$forceUpdate:t=>t.f||(t.f=()=>{Pn(t.update)}),$nextTick:t=>t.n||(t.n=Ha.bind(t.proxy)),$watch:t=>Ka.bind(t)}),ln=(t,e)=>t!==Ct&&!t.__isScriptSetup&&kt(t,e),io={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:i,accessCache:c,type:r,appContext:u}=t;if(e[0]!=="$"){const _=c[e];if(_!==void 0)switch(_){case 1:return n[e];case 2:return l[e];case 4:return s[e];case 3:return i[e]}else{if(ln(n,e))return c[e]=1,n[e];if(l!==Ct&&kt(l,e))return c[e]=2,l[e];if(kt(i,e))return c[e]=3,i[e];if(s!==Ct&&kt(s,e))return c[e]=4,s[e];$n&&(c[e]=0)}}const v=rs[e];let f,m;if(v)return e==="$attrs"&&Wt(t.attrs,"get",""),v(t);if((f=r.__cssModules)&&(f=f[e]))return f;if(s!==Ct&&kt(s,e))return c[e]=4,s[e];if(m=u.config.globalProperties,kt(m,e))return m[e]},set({_:t},e,s){const{data:n,setupState:l,ctx:i}=t;return ln(l,e)?(l[e]=s,!0):n!==Ct&&kt(n,e)?(n[e]=s,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:l,props:i,type:c}},r){let u;return!!(s[r]||t!==Ct&&r[0]!=="$"&&kt(t,r)||ln(e,r)||kt(i,r)||kt(n,r)||kt(rs,r)||kt(l.config.globalProperties,r)||(u=c.__cssModules)&&u[r])},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:kt(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function il(t){return dt(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let $n=!0;function ao(t){const e=_i(t),s=t.proxy,n=t.ctx;$n=!1,e.beforeCreate&&al(e.beforeCreate,t,"bc");const{data:l,computed:i,methods:c,watch:r,provide:u,inject:v,created:f,beforeMount:m,mounted:_,beforeUpdate:k,updated:A,activated:O,deactivated:K,beforeDestroy:E,beforeUnmount:q,destroyed:G,unmounted:N,render:Y,renderTracked:ht,renderTriggered:ct,errorCaptured:gt,serverPrefetch:ft,expose:At,inheritAttrs:T,components:V,directives:J,filters:D}=e;if(v&&oo(v,n,null),c)for(const F in c){const R=c[F];ut(R)&&(n[F]=R.bind(s))}if(l){const F=l.call(s,s);Tt(F)&&(t.data=vs(F))}if($n=!0,i)for(const F in i){const R=i[F],P=ut(R)?R.bind(s,s):ut(R.get)?R.get.bind(s,s):pe,I=!ut(R)&&ut(R.set)?R.set.bind(s):pe,z=H({get:P,set:I});Object.defineProperty(n,F,{enumerable:!0,configurable:!0,get:()=>z.value,set:tt=>z.value=tt})}if(r)for(const F in r)vi(r[F],n,s,F);if(u){const F=ut(u)?u.call(s):u;Reflect.ownKeys(F).forEach(R=>{Ba(R,F[R])})}f&&al(f,t,"c");function B(F,R){dt(R)?R.forEach(P=>F(P.bind(s))):R&&F(R.bind(s))}if(B(Xa,m),B(Be,_),B(Za,k),B(Qa,A),B(za,O),B(Ya,K),B(no,gt),B(so,ht),B(eo,ct),B(mi,q),B(In,N),B(to,ft),dt(At))if(At.length){const F=t.exposed||(t.exposed={});At.forEach(R=>{Object.defineProperty(F,R,{get:()=>s[R],set:P=>s[R]=P,enumerable:!0})})}else t.exposed||(t.exposed={});Y&&t.render===pe&&(t.render=Y),T!=null&&(t.inheritAttrs=T),V&&(t.components=V),J&&(t.directives=J),ft&&hi(t)}function oo(t,e,s=pe){dt(t)&&(t=xn(t));for(const n in t){const l=t[n];let i;Tt(l)?"default"in l?i=ws(l.from||n,l.default,!0):i=ws(l.from||n):i=ws(l),Kt(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):e[n]=i}}function al(t,e,s){ne(dt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function vi(t,e,s,n){let l=n.includes(".")?ui(s,n):()=>s[n];if(jt(t)){const i=e[t];ut(i)&&is(l,i)}else if(ut(t))is(l,t.bind(s));else if(Tt(t))if(dt(t))t.forEach(i=>vi(i,e,s,n));else{const i=ut(t.handler)?t.handler.bind(s):e[t.handler];ut(i)&&is(l,i,t)}}function _i(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:l,optionsCache:i,config:{optionMergeStrategies:c}}=t.appContext,r=i.get(e);let u;return r?u=r:!l.length&&!s&&!n?u=e:(u={},l.length&&l.forEach(v=>As(u,v,c,!0)),As(u,e,c)),Tt(e)&&i.set(e,u),u}function As(t,e,s,n=!1){const{mixins:l,extends:i}=e;i&&As(t,i,s,!0),l&&l.forEach(c=>As(t,c,s,!0));for(const c in e)if(!(n&&c==="expose")){const r=ro[c]||s&&s[c];t[c]=r?r(t[c],e[c]):e[c]}return t}const ro={data:ol,props:rl,emits:rl,methods:ts,computed:ts,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:ts,directives:ts,watch:uo,provide:ol,inject:co};function ol(t,e){return e?t?function(){return Bt(ut(t)?t.call(this,this):t,ut(e)?e.call(this,this):e)}:e:t}function co(t,e){return ts(xn(t),xn(e))}function xn(t){if(dt(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function Vt(t,e){return t?[...new Set([].concat(t,e))]:e}function ts(t,e){return t?Bt(Object.create(null),t,e):e}function rl(t,e){return t?dt(t)&&dt(e)?[...new Set([...t,...e])]:Bt(Object.create(null),il(t),il(e??{})):e}function uo(t,e){if(!t)return e;if(!e)return t;const s=Bt(Object.create(null),t);for(const n in e)s[n]=Vt(t[n],e[n]);return s}function gi(){return{app:null,config:{isNativeTag:jl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let po=0;function ho(t,e){return function(n,l=null){ut(n)||(n=Bt({},n)),l!=null&&!Tt(l)&&(l=null);const i=gi(),c=new WeakSet,r=[];let u=!1;const v=i.app={_uid:po++,_component:n,_props:l,_container:null,_context:i,_instance:null,version:Ko,get config(){return i.config},set config(f){},use(f,...m){return c.has(f)||(f&&ut(f.install)?(c.add(f),f.install(v,...m)):ut(f)&&(c.add(f),f(v,...m))),v},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),v},component(f,m){return m?(i.components[f]=m,v):i.components[f]},directive(f,m){return m?(i.directives[f]=m,v):i.directives[f]},mount(f,m,_){if(!u){const k=v._ceVNode||Ot(n,l);return k.appContext=i,_===!0?_="svg":_===!1&&(_=void 0),t(k,f,_),u=!0,v._container=f,f.__vue_app__=v,Js(k.component)}},onUnmount(f){r.push(f)},unmount(){u&&(ne(r,v._instance,16),t(null,v._container),delete v._container.__vue_app__)},provide(f,m){return i.provides[f]=m,v},runWithContext(f){const m=Ge;Ge=v;try{return f()}finally{Ge=m}}};return v}}let Ge=null;const fo=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${ee(e)}Modifiers`]||t[`${Ne(e)}Modifiers`];function mo(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Ct;let l=s;const i=e.startsWith("update:"),c=i&&fo(n,e.slice(7));c&&(c.trim&&(l=s.map(f=>jt(f)?f.trim():f)),c.number&&(l=l.map(ta)));let r,u=n[r=Xs(e)]||n[r=Xs(ee(e))];!u&&i&&(u=n[r=Xs(Ne(e))]),u&&ne(u,t,6,l);const v=n[r+"Once"];if(v){if(!t.emitted)t.emitted={};else if(t.emitted[r])return;t.emitted[r]=!0,ne(v,t,6,l)}}const vo=new WeakMap;function bi(t,e,s=!1){const n=s?vo:e.emitsCache,l=n.get(t);if(l!==void 0)return l;const i=t.emits;let c={},r=!1;if(!ut(t)){const u=v=>{const f=bi(v,e,!0);f&&(r=!0,Bt(c,f))};!s&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!i&&!r?(Tt(t)&&n.set(t,null),null):(dt(i)?i.forEach(u=>c[u]=null):Bt(c,i),Tt(t)&&n.set(t,c),c)}function zs(t,e){return!t||!Rs(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,Ne(e))||kt(t,e))}function cl(t){const{type:e,vnode:s,proxy:n,withProxy:l,propsOptions:[i],slots:c,attrs:r,emit:u,render:v,renderCache:f,props:m,data:_,setupState:k,ctx:A,inheritAttrs:O}=t,K=Cs(t);let E,q;try{if(s.shapeFlag&4){const N=l||n,Y=N;E=de(v.call(Y,N,f,m,k,_,A)),q=r}else{const N=e;E=de(N.length>1?N(m,{attrs:r,slots:c,emit:u}):N(m,null)),q=e.props?r:_o(r)}}catch(N){Re.length=0,Ks(N,t,1),E=Ot(we)}let G=E;if(q&&O!==!1){const N=Object.keys(q),{shapeFlag:Y}=G;N.length&&Y&7&&(i&&N.some(Is)&&(q=go(q,i)),G=ze(G,q,!1,!0))}if(s.dirs&&(G=ze(G,null,!1,!0),G.dirs=G.dirs?G.dirs.concat(s.dirs):s.dirs),s.transition){const N=Vs(G.type)&&pi(G)||G;Hn(N,s.transition)}return E=G,Cs(K),E}const _o=t=>{let e;for(const s in t)(s==="class"||s==="style"||Rs(s))&&((e||(e={}))[s]=t[s]);return e},go=(t,e)=>{const s={};for(const n in t)(!Is(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function bo(t,e,s){const{props:n,children:l,component:i}=t,{props:c,children:r,patchFlag:u}=e,v=i.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?dl(n,c,v):!!c;if(u&8){const f=e.dynamicProps;for(let m=0;m<f.length;m++){const _=f[m];if(yi(c,n,_)&&!zs(v,_))return!0}}}else return(l||r)&&(!r||!r.$stable)?!0:n===c?!1:n?c?dl(n,c,v):!0:!!c;return!1}function dl(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let l=0;l<n.length;l++){const i=n[l];if(yi(e,t,i)&&!zs(s,i))return!0}return!1}function yi(t,e,s){const n=t[s],l=e[s];return s==="style"&&Tt(n)&&Tt(l)?!Ws(n,l):n!==l}function yo({vnode:t,parent:e,suspense:s},n){for(;e;){const l=e.subTree;if(l.suspense&&l.suspense.activeBranch===t&&(l.suspense.vnode.el=l.el=n,t=l),l===t)(t=e.vnode).el=n,e=e.parent;else break}s&&s.activeBranch===t&&(s.vnode.el=n)}const $i={},xi=()=>Object.create($i),wi=t=>Object.getPrototypeOf(t)===$i;function $o(t,e,s,n=!1){const l={},i=xi();t.propsDefaults=Object.create(null),ki(t,e,l,i);for(const c in t.propsOptions[0])c in l||(l[c]=void 0);s?t.props=n?l:Ea(l):t.type.props?t.props=l:t.props=i,t.attrs=i}function xo(t,e,s,n){const{props:l,attrs:i,vnode:{patchFlag:c}}=t,r=wt(l),[u]=t.propsOptions;let v=!1;if((n||c>0)&&!(c&16)){if(c&8){const f=t.vnode.dynamicProps;for(let m=0;m<f.length;m++){let _=f[m];if(zs(t.emitsOptions,_))continue;const k=e[_];if(u)if(kt(i,_))k!==i[_]&&(i[_]=k,v=!0);else{const A=ee(_);l[A]=wn(u,r,A,k,t,!1)}else k!==i[_]&&(i[_]=k,v=!0)}}}else{ki(t,e,l,i)&&(v=!0);let f;for(const m in r)(!e||!kt(e,m)&&((f=Ne(m))===m||!kt(e,f)))&&(u?s&&(s[m]!==void 0||s[f]!==void 0)&&(l[m]=wn(u,r,m,void 0,t,!0)):delete l[m]);if(i!==r)for(const m in i)(!e||!kt(e,m))&&(delete i[m],v=!0)}v&&ge(t.attrs,"set","")}function ki(t,e,s,n){const[l,i]=t.propsOptions;let c=!1,r;if(e)for(let u in e){if(ss(u))continue;const v=e[u];let f;l&&kt(l,f=ee(u))?!i||!i.includes(f)?s[f]=v:(r||(r={}))[f]=v:zs(t.emitsOptions,u)||(!(u in n)||v!==n[u])&&(n[u]=v,c=!0)}if(i){const u=wt(s),v=r||Ct;for(let f=0;f<i.length;f++){const m=i[f];s[m]=wn(l,u,m,v[m],t,!kt(v,m))}}return c}function wn(t,e,s,n,l,i){const c=t[s];if(c!=null){const r=kt(c,"default");if(r&&n===void 0){const u=c.default;if(c.type!==Function&&!c.skipFactory&&ut(u)){const{propsDefaults:v}=l;if(s in v)n=v[s];else{const f=gs(l);n=v[s]=u.call(null,e),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}c[0]&&(i&&!r?n=!1:c[1]&&(n===""||n===Ne(s))&&(n=!0))}return n}const wo=new WeakMap;function Mi(t,e,s=!1){const n=s?wo:e.propsCache,l=n.get(t);if(l)return l;const i=t.props,c={},r=[];let u=!1;if(!ut(t)){const f=m=>{u=!0;const[_,k]=Mi(m,e,!0);Bt(c,_),k&&r.push(...k)};!s&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!i&&!u)return Tt(t)&&n.set(t,Pe),Pe;if(dt(i))for(let f=0;f<i.length;f++){const m=ee(i[f]);ul(m)&&(c[m]=Ct)}else if(i)for(const f in i){const m=ee(f);if(ul(m)){const _=i[f],k=c[m]=dt(_)||ut(_)?{type:_}:Bt({},_),A=k.type;let O=!1,K=!0;if(dt(A))for(let E=0;E<A.length;++E){const q=A[E],G=ut(q)&&q.name;if(G==="Boolean"){O=!0;break}else G==="String"&&(K=!1)}else O=ut(A)&&A.name==="Boolean";k[0]=O,k[1]=K,(O||kt(k,"default"))&&r.push(m)}}const v=[c,r];return Tt(t)&&n.set(t,v),v}function ul(t){return t[0]!=="$"&&!ss(t)}const Nn=t=>t==="_"||t==="_ctx"||t==="$stable",Bn=t=>dt(t)?t.map(de):[de(t)],ko=(t,e,s)=>{if(e._n)return e;const n=Na((...l)=>Bn(e(...l)),s);return n._c=!1,n},Si=(t,e,s)=>{const n=t._ctx;for(const l in t){if(Nn(l))continue;const i=t[l];if(ut(i))e[l]=ko(l,i,n);else if(i!=null){const c=Bn(i);e[l]=()=>c}}},Ti=(t,e)=>{const s=Bn(e);t.slots.default=()=>s},Ei=(t,e,s)=>{for(const n in e)(s||!Nn(n))&&(t[n]=e[n])},Mo=(t,e,s)=>{const n=t.slots=xi();if(t.vnode.shapeFlag&32){const l=e._;l?(Ei(n,e,s),s&&Il(n,"_",l,!0)):Si(e,n)}else e&&Ti(t,e)},So=(t,e,s)=>{const{vnode:n,slots:l}=t;let i=!0,c=Ct;if(n.shapeFlag&32){const r=e._;r?s&&r===1?i=!1:Ei(l,e,s):(i=!e.$stable,Si(e,l)),c=e}else e&&(Ti(t,e),c={default:1});if(i)for(const r in l)!Nn(r)&&c[r]==null&&delete l[r]},Yt=Ao;function To(t){return Eo(t)}function Eo(t,e){const s=Bs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:i,createElement:c,createText:r,createComment:u,setText:v,setElementText:f,parentNode:m,nextSibling:_,setScopeId:k=pe,insertStaticContent:A}=t,O=(h,g,b,y=null,M=null,C=null,L=void 0,j=null,x=!!g.dynamicChildren)=>{if(h===g)return;h&&!Xe(h,g)&&(y=lt(h),tt(h,M,C,!0),h=null),g.patchFlag===-2&&(x=!1,g.dynamicChildren=null),g.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(g.dynamicChildren===Pe&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:$,ref:Z,shapeFlag:W}=g;switch($){case Ys:K(h,g,b,y);break;case we:E(h,g,b,y);break;case ks:h==null&&q(g,b,y,L);break;case it:V(h,g,b,y,M,C,L,j,x);break;default:W&1?Y(h,g,b,y,M,C,L,j,x):W&6?J(h,g,b,y,M,C,L,j,x):(W&64||W&128)&&$.process(h,g,b,y,M,C,L,j,x,nt)}Z!=null&&M?as(Z,h&&h.ref,C,g||h,!g):Z==null&&h&&h.ref!=null&&as(h.ref,null,C,h,!0)},K=(h,g,b,y)=>{if(h==null)n(g.el=r(g.children),b,y);else{const M=g.el=h.el;g.children!==h.children&&v(M,g.children)}},E=(h,g,b,y)=>{h==null?n(g.el=u(g.children||""),b,y):g.el=h.el},q=(h,g,b,y)=>{[h.el,h.anchor]=A(h.children,g,b,y,h.el,h.anchor)},G=({el:h,anchor:g},b,y)=>{let M;for(;h&&h!==g;)M=_(h),n(h,b,y),h=M;n(g,b,y)},N=({el:h,anchor:g})=>{let b;for(;h&&h!==g;)b=_(h),l(h),h=b;l(g)},Y=(h,g,b,y,M,C,L,j,x)=>{if(g.type==="svg"?L="svg":g.type==="math"&&(L="mathml"),h==null)ht(g,b,y,M,C,L,j,x);else{const $=h.el&&h.el._isVueCE?h.el:null;try{$&&$._beginPatch(),ft(h,g,M,C,L,j,x)}finally{$&&$._endPatch()}}},ht=(h,g,b,y,M,C,L,j)=>{let x,$;const{props:Z,shapeFlag:W,transition:et,dirs:ot}=h;if(x=h.el=c(h.type,C,Z&&Z.is,Z),W&8?f(x,h.children):W&16&>(h.children,x,null,y,M,an(h,C),L,j),ot&&qe(h,null,y,"created"),ct(x,h,h.scopeId,L,y),Z){for(const Et in Z)Et!=="value"&&!ss(Et)&&i(x,Et,null,Z[Et],C,y);"value"in Z&&i(x,"value",null,Z.value,C),($=Z.onVnodeBeforeMount)&&oe($,y,h)}ot&&qe(h,null,y,"beforeMount");const yt=Co(M,et);yt&&et.beforeEnter(x),n(x,g,b),(($=Z&&Z.onVnodeMounted)||yt||ot)&&Yt(()=>{try{$&&oe($,y,h),yt&&et.enter(x),ot&&qe(h,null,y,"mounted")}finally{}},M)},ct=(h,g,b,y,M)=>{if(b&&k(h,b),y)for(let C=0;C<y.length;C++)k(h,y[C]);if(M){let C=M.subTree;if(g===C||Oi(C.type)&&(C.ssContent===g||C.ssFallback===g)){const L=M.vnode;ct(h,L,L.scopeId,L.slotScopeIds,M.parent)}}},gt=(h,g,b,y,M,C,L,j,x=0)=>{for(let $=x;$<h.length;$++){const Z=h[$]=j?_e(h[$]):de(h[$]);O(null,Z,g,b,y,M,C,L,j)}},ft=(h,g,b,y,M,C,L)=>{const j=g.el=h.el;let{patchFlag:x,dynamicChildren:$,dirs:Z}=g;x|=h.patchFlag&16;const W=h.props||Ct,et=g.props||Ct;let ot;if(b&&Le(b,!1),(ot=et.onVnodeBeforeUpdate)&&oe(ot,b,g,h),Z&&qe(g,h,b,"beforeUpdate"),b&&Le(b,!0),$&&(!h.dynamicChildren||h.dynamicChildren.length!==$.length)&&(x=0,L=!1,$=null),(W.innerHTML&&et.innerHTML==null||W.textContent&&et.textContent==null)&&f(j,""),$?At(h.dynamicChildren,$,j,b,y,an(g,M),C):L||R(h,g,j,null,b,y,an(g,M),C,!1),x>0){if(x&16)T(j,W,et,b,M);else if(x&2&&W.class!==et.class&&i(j,"class",null,et.class,M),x&4&&i(j,"style",W.style,et.style,M),x&8){const yt=g.dynamicProps;for(let Et=0;Et<yt.length;Et++){const St=yt[Et],Pt=W[St],It=et[St];(It!==Pt||St==="value")&&i(j,St,Pt,It,M,b)}}x&1&&h.children!==g.children&&f(j,g.children)}else!L&&$==null&&T(j,W,et,b,M);((ot=et.onVnodeUpdated)||Z)&&Yt(()=>{ot&&oe(ot,b,g,h),Z&&qe(g,h,b,"updated")},y)},At=(h,g,b,y,M,C,L)=>{for(let j=0;j<g.length;j++){const x=h[j],$=g[j],Z=x.el&&(x.type===it||!Xe(x,$)||x.shapeFlag&198)?m(x.el):b;O(x,$,Z,null,y,M,C,L,!0)}},T=(h,g,b,y,M)=>{if(g!==b){if(g!==Ct)for(const C in g)!ss(C)&&!(C in b)&&i(h,C,g[C],null,M,y);for(const C in b){if(ss(C))continue;const L=b[C],j=g[C];L!==j&&C!=="value"&&i(h,C,j,L,M,y)}"value"in b&&i(h,"value",g.value,b.value,M)}},V=(h,g,b,y,M,C,L,j,x)=>{const $=g.el=h?h.el:r(""),Z=g.anchor=h?h.anchor:r("");let{patchFlag:W,dynamicChildren:et,slotScopeIds:ot}=g;ot&&(j=j?j.concat(ot):ot),h==null?(n($,b,y),n(Z,b,y),gt(g.children||[],b,Z,M,C,L,j,x)):W>0&&W&64&&et&&h.dynamicChildren&&h.dynamicChildren.length===et.length?(At(h.dynamicChildren,et,b,M,C,L,j),(g.key!=null||M&&g===M.subTree)&&Ci(h,g,!0)):R(h,g,b,Z,M,C,L,j,x)},J=(h,g,b,y,M,C,L,j,x)=>{g.slotScopeIds=j,h==null?g.shapeFlag&512?M.ctx.activate(g,b,y,L,x):D(g,b,y,M,C,L,x):U(h,g,x)},D=(h,g,b,y,M,C,L)=>{const j=h.component=Ho(h,y,M);if(Rn(h)&&(j.ctx.renderer=nt),Io(j,!1,L),j.asyncDep){if(M&&M.registerDep(j,B,L),!h.el){const x=j.subTree=Ot(we);E(null,x,g,b),h.placeholder=x.el}}else B(j,h,g,b,M,C,L)},U=(h,g,b)=>{const y=g.component=h.component;if(bo(h,g,b))if(y.asyncDep&&!y.asyncResolved){g.el=h.el,F(y,g,b);return}else y.next=g,y.update();else g.el=h.el,y.vnode=g},B=(h,g,b,y,M,C,L)=>{const j=()=>{if(h.isMounted){let{next:W,bu:et,u:ot,parent:yt,vnode:Et}=h;{const ie=Fi(h);if(ie){W&&(W.el=Et.el,F(h,W,L)),ie.asyncDep.then(()=>{Yt(()=>{h.isUnmounted||$()},M)});return}}let St=W,Pt;Le(h,!1),W?(W.el=Et.el,F(h,W,L)):W=Et,et&&Zs(et),(Pt=W.props&&W.props.onVnodeBeforeUpdate)&&oe(Pt,yt,W,Et),Le(h,!0);const It=cl(h),le=h.subTree;h.subTree=It,O(le,It,m(le.el),lt(le),h,M,C),W.el=It.el,St===null&&yo(h,It.el),ot&&Yt(ot,M),(Pt=W.props&&W.props.onVnodeUpdated)&&Yt(()=>oe(Pt,yt,W,Et),M)}else{let W;const{el:et,props:ot}=g,{bm:yt,m:Et,parent:St,root:Pt,type:It}=h,le=os(g);Le(h,!1),yt&&Zs(yt),!le&&(W=ot&&ot.onVnodeBeforeMount)&&oe(W,St,g),Le(h,!0);{Pt.ce&&Pt.ce._hasShadowRoot()&&Pt.ce._injectChildStyle(It,h.parent?h.parent.type:void 0);const ie=h.subTree=cl(h);O(null,ie,b,y,h,M,C),g.el=ie.el}if(Et&&Yt(Et,M),!le&&(W=ot&&ot.onVnodeMounted)){const ie=g;Yt(()=>oe(W,St,ie),M)}(g.shapeFlag&256||St&&os(St.vnode)&&St.vnode.shapeFlag&256)&&h.a&&Yt(h.a,M),h.isMounted=!0,g=b=y=null}};h.scope.on();const x=h.effect=new Ul(j);h.scope.off();const $=h.update=x.run.bind(x),Z=h.job=x.runIfDirty.bind(x);Z.i=h,Z.id=h.uid,x.scheduler=()=>Pn(Z),Le(h,!0),$()},F=(h,g,b)=>{g.component=h;const y=h.vnode.props;h.vnode=g,h.next=null,xo(h,g.props,y,b),So(h,g.children,b),$e(),el(h),xe()},R=(h,g,b,y,M,C,L,j,x=!1)=>{const $=h&&h.children,Z=h?h.shapeFlag:0,W=g.children,{patchFlag:et,shapeFlag:ot}=g;if(et>0){if(et&128){I($,W,b,y,M,C,L,j,x);return}else if(et&256){P($,W,b,y,M,C,L,j,x);return}}ot&8?(Z&16&&mt($,M,C),W!==$&&f(b,W)):Z&16?ot&16?I($,W,b,y,M,C,L,j,x):mt($,M,C,!0):(Z&8&&f(b,""),ot&16&>(W,b,y,M,C,L,j,x))},P=(h,g,b,y,M,C,L,j,x)=>{h=h||Pe,g=g||Pe;const $=h.length,Z=g.length,W=Math.min($,Z);let et;for(et=0;et<W;et++){const ot=g[et]=x?_e(g[et]):de(g[et]);O(h[et],ot,b,null,M,C,L,j,x)}$>Z?mt(h,M,C,!0,!1,W):gt(g,b,y,M,C,L,j,x,W)},I=(h,g,b,y,M,C,L,j,x)=>{let $=0;const Z=g.length;let W=h.length-1,et=Z-1;for(;$<=W&&$<=et;){const ot=h[$],yt=g[$]=x?_e(g[$]):de(g[$]);if(Xe(ot,yt))O(ot,yt,b,null,M,C,L,j,x);else break;$++}for(;$<=W&&$<=et;){const ot=h[W],yt=g[et]=x?_e(g[et]):de(g[et]);if(Xe(ot,yt))O(ot,yt,b,null,M,C,L,j,x);else break;W--,et--}if($>W){if($<=et){const ot=et+1,yt=ot<Z?g[ot].el:y;for(;$<=et;)O(null,g[$]=x?_e(g[$]):de(g[$]),b,yt,M,C,L,j,x),$++}}else if($>et)for(;$<=W;)tt(h[$],M,C,!0),$++;else{const ot=$,yt=$,Et=new Map;for($=yt;$<=et;$++){const Jt=g[$]=x?_e(g[$]):de(g[$]);Jt.key!=null&&Et.set(Jt.key,$)}let St,Pt=0;const It=et-yt+1;let le=!1,ie=0;const Ye=new Array(It);for($=0;$<It;$++)Ye[$]=0;for($=ot;$<=W;$++){const Jt=h[$];if(Pt>=It){tt(Jt,M,C,!0);continue}let ae;if(Jt.key!=null)ae=Et.get(Jt.key);else for(St=yt;St<=et;St++)if(Ye[St-yt]===0&&Xe(Jt,g[St])){ae=St;break}ae===void 0?tt(Jt,M,C,!0):(Ye[ae-yt]=$+1,ae>=ie?ie=ae:le=!0,O(Jt,g[ae],b,null,M,C,L,j,x),Pt++)}const Vn=le?Fo(Ye):Pe;for(St=Vn.length-1,$=It-1;$>=0;$--){const Jt=yt+$,ae=g[Jt],Gn=g[Jt+1],zn=Jt+1<Z?Gn.el||Ai(Gn):y;Ye[$]===0?O(null,ae,b,zn,M,C,L,j,x):le&&(St<0||$!==Vn[St]?z(ae,b,zn,2):St--)}}},z=(h,g,b,y,M=null)=>{const{el:C,type:L,transition:j,children:x,shapeFlag:$}=h;if($&6){z(h.component.subTree,g,b,y);return}if($&128){h.suspense.move(g,b,y);return}if($&64){L.move(h,g,b,nt);return}if(L===it){n(C,g,b);for(let W=0;W<x.length;W++)z(x[W],g,b,y);n(h.anchor,g,b);return}if(L===ks){G(h,g,b);return}if(y!==2&&$&1&&j)if(y===0)j.persisted&&!C[nn]?n(C,g,b):(j.beforeEnter(C),n(C,g,b),Yt(()=>j.enter(C),M));else{const{leave:W,delayLeave:et,afterLeave:ot}=j,yt=()=>{h.ctx.isUnmounted?l(C):n(C,g,b)},Et=()=>{const St=C._isLeaving||!!C[nn];C._isLeaving&&C[nn](!0),j.persisted&&!St?yt():W(C,()=>{yt(),ot&&ot()})};et?et(C,yt,Et):Et()}else n(C,g,b)},tt=(h,g,b,y=!1,M=!1)=>{const{type:C,props:L,ref:j,children:x,dynamicChildren:$,shapeFlag:Z,patchFlag:W,dirs:et,cacheIndex:ot,memo:yt}=h;if((W===-2||$&&$.hasOnce)&&(M=!1),j!=null&&($e(),as(j,null,b,h,!0),xe()),ot!=null&&(!h.ctx||h.ctx===g)&&(g.renderCache[ot]=void 0),Z&256){g.ctx.deactivate(h);return}const Et=Z&1&&et,St=!os(h);let Pt;if(St&&(Pt=L&&L.onVnodeBeforeUnmount)&&oe(Pt,g,h),Z&6)rt(h.component,b,y);else{if(Z&128){h.suspense.unmount(b,y);return}Et&&qe(h,null,g,"beforeUnmount"),Z&64?h.type.remove(h,g,b,nt,y):$&&!$.hasOnce&&(C!==it||W>0&&W&64)?mt($,g,b,!1,!0):(C===it&&W&384||!M&&Z&16)&&mt(x,g,b),y&&st(h)}const It=yt!=null&&ot==null;(St&&(Pt=L&&L.onVnodeUnmounted)||Et||It)&&Yt(()=>{Pt&&oe(Pt,g,h),Et&&qe(h,null,g,"unmounted"),It&&(h.el=null)},b)},st=h=>{const{type:g,el:b,anchor:y,transition:M}=h;if(g===it){X(b,y);return}if(g===ks){N(h),M&&!M.persisted&&M.afterLeave&&M.afterLeave();return}const C=()=>{l(b),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(h.shapeFlag&1&&M&&!M.persisted){const{leave:L,delayLeave:j}=M,x=()=>L(b,C);j?j(h.el,C,x):x()}else C()},X=(h,g)=>{let b;for(;h!==g;)b=_(h),l(h),h=b;l(g)},rt=(h,g,b)=>{const{bum:y,scope:M,job:C,subTree:L,um:j,m:x,a:$}=h;pl(x),pl($),y&&Zs(y),M.stop(),C?(C.flags|=8,tt(L,h,g,b)):h.vnode.el&&L&&(L.transition=h.vnode.transition,tt(L,h,g,b)),j&&Yt(j,g),Yt(()=>{h.isUnmounted=!0},g)},mt=(h,g,b,y=!1,M=!1,C=0)=>{for(let L=C;L<h.length;L++)tt(h[L],g,b,y,M)},lt=h=>{if(h.shapeFlag&6)return lt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const g=_(h.anchor||h.el),b=g&&g[Va];return b?_(b):g};let _t=!1;const vt=(h,g,b)=>{let y;h==null?g._vnode&&(tt(g._vnode,null,null,!0),y=g._vnode.component):O(g._vnode||null,h,g,null,null,null,b),g._vnode=h,_t||(_t=!0,el(y),oi(),_t=!1)},nt={p:O,um:tt,m:z,r:st,mt:D,mc:gt,pc:R,pbc:At,n:lt,o:t};return{render:vt,hydrate:void 0,createApp:ho(vt)}}function an({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function Le({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Co(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Ci(t,e,s=!1){const n=t.children,l=e.children;if(dt(n)&&dt(l))for(let i=0;i<n.length;i++){const c=n[i];let r=l[i];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=l[i]=_e(l[i]),r.el=c.el),!s&&r.patchFlag!==-2&&Ci(c,r)),r.type===Ys&&(r.patchFlag===-1&&(r=l[i]=_e(r)),r.el=c.el),r.type===we&&!r.el&&(r.el=c.el)}}function Fo(t){const e=t.slice(),s=[0];let n,l,i,c,r;const u=t.length;for(n=0;n<u;n++){const v=t[n];if(v!==0){if(l=s[s.length-1],t[l]<v){e[n]=l,s.push(n);continue}for(i=0,c=s.length-1;i<c;)r=i+c>>1,t[s[r]]<v?i=r+1:c=r;v<t[s[i]]&&(i>0&&(e[n]=s[i-1]),s[i]=n)}}for(i=s.length,c=s[i-1];i-- >0;)s[i]=c,c=e[c];return s}function Fi(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Fi(e)}function pl(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Ai(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Ai(e.subTree):null}const Oi=t=>t.__isSuspense;function Ao(t,e){e&&e.pendingBranch?dt(t)?e.effects.push(...t):e.effects.push(t):Ia(t)}const it=Symbol.for("v-fgt"),Ys=Symbol.for("v-txt"),we=Symbol.for("v-cmt"),ks=Symbol.for("v-stc"),Re=[];let Xt=null;function w(t=!1){Re.push(Xt=t?null:[])}function qi(){Re.pop(),Xt=Re[Re.length-1]||null}let ps=1;function hl(t,e=!1){ps+=t,t<0&&Xt&&e&&(Xt.hasOnce=!0)}function Li(t){return t.dynamicChildren=ps>0?Xt||Pe:null,qi(),ps>0&&Xt&&Xt.push(t),t}function S(t,e,s,n,l,i){return Li(a(t,e,s,n,l,i,!0))}function Rt(t,e,s,n,l){return Li(Ot(t,e,s,n,l,!0))}function ji(t){return t?t.__v_isVNode===!0:!1}function Xe(t,e){return t.type===e.type&&t.key===e.key}const Di=({key:t})=>t??null,Ms=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?jt(t)||Kt(t)||ut(t)?{i:Zt,r:t,k:e,f:!!s}:t:null);function a(t,e=null,s=null,n=0,l=null,i=t===it?0:1,c=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Di(e),ref:e&&Ms(e),scopeId:ci,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Zt};return r?(Os(u,s),i&128&&t.normalize(u)):s&&(u.shapeFlag|=jt(s)?8:16),ps>0&&!c&&Xt&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&Xt.push(u),u}const Ot=Oo;function Oo(t,e=null,s=null,n=0,l=null,i=!1){if((!t||t===lo)&&(t=we),ji(t)){const r=ze(t,e,!0);return s&&Os(r,s),ps>0&&!i&&Xt&&(r.shapeFlag&6?Xt[Xt.indexOf(t)]=r:Xt.push(r)),r.patchFlag=-2,r}if(Uo(t)&&(t=t.__vccOpts),e){e=qo(e);let{class:r,style:u}=e;r&&!jt(r)&&(e.class=Ut(r)),Tt(u)&&(Dn(u)&&!dt(u)&&(u=Bt({},u)),e.style=Dt(u))}const c=jt(t)?1:Oi(t)?128:Vs(t)?64:Tt(t)?4:ut(t)?2:0;return a(t,e,s,n,l,c,i,!0)}function qo(t){return t?Dn(t)||wi(t)?Bt({},t):t:null}function ze(t,e,s=!1,n=!1){const{props:l,ref:i,patchFlag:c,children:r,transition:u}=t,v=e?jo(l||{},e):l,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:v,key:v&&Di(v),ref:e&&e.ref?s&&i?dt(i)?i.concat(Ms(e)):[i,Ms(e)]:Ms(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:r,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==it?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ze(t.ssContent),ssFallback:t.ssFallback&&ze(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return u&&n&&Hn(f,u.clone(f)),f}function at(t=" ",e=0){return Ot(Ys,null,t,e)}function Lo(t,e){const s=Ot(ks,null,t);return s.staticCount=e,s}function $t(t="",e=!1){return e?(w(),Rt(we,null,t)):Ot(we,null,t)}function de(t){return t==null||typeof t=="boolean"?Ot(we):dt(t)?Ot(it,null,t.slice()):ji(t)?_e(t):Ot(Ys,null,String(t))}function _e(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ze(t)}function Os(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(dt(e))s=16;else if(typeof e=="object")if(n&65){const l=e.default;l&&(l._c&&(l._d=!1),Os(t,l()),l._c&&(l._d=!0));return}else{s=32;const l=e._;!l&&!wi(e)?e._ctx=Zt:l===3&&Zt&&(Zt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(ut(e)){if(n&65){Os(t,{default:e});return}e={default:e,_ctx:Zt},s=32}else e=String(e),n&64?(s=16,e=[at(e)]):s=8;t.children=e,t.shapeFlag|=s}function jo(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const l in n)if(l==="class")e.class!==n.class&&(e.class=Ut([e.class,n.class]));else if(l==="style")e.style=Dt([e.style,n.style]);else if(Rs(l)){const i=e[l],c=n[l];c&&i!==c&&!(dt(i)&&i.includes(c))?e[l]=i?[].concat(i,c):c:c==null&&i==null&&!Is(l)&&(e[l]=c)}else l!==""&&(e[l]=n[l])}return e}function oe(t,e,s,n=null){ne(t,e,7,[s,n])}const Do=gi();let Po=0;function Ho(t,e,s){const n=t.type,l=(e?e.appContext:t.appContext)||Do,i={uid:Po++,vnode:t,type:n,parent:e,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ca(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(l.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mi(n,l),emitsOptions:bi(n,l),emit:null,emitted:null,propsDefaults:Ct,inheritAttrs:n.inheritAttrs,ctx:Ct,data:Ct,props:Ct,attrs:Ct,slots:Ct,refs:Ct,setupState:Ct,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=mo.bind(null,i),t.ce&&t.ce(i),i}let zt=null;const Ro=()=>zt||Zt;let qs,hs;{const t=Bs(),e=(s,n)=>{let l;return(l=t[s])||(l=t[s]=[]),l.push(n),i=>{l.length>1?l.forEach(c=>c(i)):l[0](i)}};qs=e("__VUE_INSTANCE_SETTERS__",s=>zt=s),hs=e("__VUE_SSR_SETTERS__",s=>fs=s)}const gs=t=>{const e=zt;return qs(t),t.scope.on(),()=>{t.scope.off(),qs(e)}},fl=()=>{zt&&zt.scope.off(),qs(null)};function Pi(t){return t.vnode.shapeFlag&4}let fs=!1;function Io(t,e=!1,s=!1){e&&hs(e);const{props:n,children:l}=t.vnode,i=Pi(t);$o(t,n,i,e),Mo(t,l,s||e);const c=i?No(t,e):void 0;return e&&hs(!1),c}function No(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,io);const{setup:n}=s;if(n){$e();const l=t.setupContext=n.length>1?Wo(t):null,i=gs(t),c=_s(n,t,0,[t.props,l]),r=Dl(c);if(xe(),i(),(r||t.sp)&&!os(t)&&hi(t),r){if(c.then(fl,fl),e)return c.then(u=>{hs(!0);try{ml(t,u,e)}finally{hs(!1)}}).catch(u=>{Ks(u,t,0)});t.asyncDep=c}else ml(t,c)}else Hi(t)}function ml(t,e,s){ut(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Tt(e)&&(t.setupState=li(e)),Hi(t)}function Hi(t,e,s){const n=t.type;t.render||(t.render=n.render||pe);{const l=gs(t);$e();try{ao(t)}finally{xe(),l()}}}const Bo={get(t,e){return Wt(t,"get",""),t[e]}};function Wo(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,Bo),slots:t.slots,emit:t.emit,expose:e}}function Js(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(li(Ca(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in rs)return rs[s](t)},has(e,s){return s in e||s in rs}})):t.proxy}function Uo(t){return ut(t)&&"__vccOpts"in t}const H=(t,e)=>La(t,e,fs),Ko="3.5.43";/**
- * @vue/runtime-dom v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let kn;const vl=typeof window<"u"&&window.trustedTypes;if(vl)try{kn=vl.createPolicy("vue",{createHTML:t=>t})}catch{}const Ri=kn?t=>kn.createHTML(t):t=>t,Vo="http://www.w3.org/2000/svg",Go="http://www.w3.org/1998/Math/MathML",ve=typeof document<"u"?document:null,_l=ve&&ve.createElement("template"),zo={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,n)=>{const l=e==="svg"?ve.createElementNS(Vo,t):e==="mathml"?ve.createElementNS(Go,t):s?ve.createElement(t,{is:s}):ve.createElement(t);return t==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:t=>ve.createTextNode(t),createComment:t=>ve.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ve.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,l,i){const c=s?s.previousSibling:e.lastChild;if(l&&(l===i||l.nextSibling))for(;e.insertBefore(l.cloneNode(!0),s),!(l===i||!(l=l.nextSibling)););else{_l.innerHTML=Ri(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const r=_l.content;if(n==="svg"||n==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}e.insertBefore(r,s)}return[c?c.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},Yo=Symbol("_vtc");function Jo(t,e,s){const n=t[Yo];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Ls=Symbol("_vod"),Ii=Symbol("_vsh"),gl={name:"show",beforeMount(t,{value:e},{transition:s}){t[Ls]=t.style.display==="none"?"":t.style.display,s&&e?s.beforeEnter(t):Ze(t,e)},mounted(t,{value:e},{transition:s}){s&&e&&s.enter(t)},updated(t,{value:e,oldValue:s},{transition:n}){!e!=!s&&(n?e?(n.beforeEnter(t),Ze(t,!0),n.enter(t)):n.leave(t,()=>{Ze(t,!1)}):Ze(t,e))},beforeUnmount(t,{value:e}){Ze(t,e)}};function Ze(t,e){t.style.display=e?t[Ls]:"none",t[Ii]=!e}const Xo=Symbol(""),Zo=/(?:^|;)\s*display\s*:/;function Qo(t,e,s){const n=t.style,l=jt(s);let i=!1;if(s&&!l){if(e)if(jt(e))for(const c of e.split(";")){const r=c.slice(0,c.indexOf(":")).trim();s[r]==null&&es(n,r,"")}else for(const c in e)s[c]==null&&es(n,c,"");for(const c in s){c==="display"&&(i=!0);const r=s[c];r!=null?er(t,c,!jt(e)&&e?e[c]:void 0,r)||es(n,c,r):es(n,c,"")}}else if(l){if(e!==s){const c=n[Xo];c&&(s+=";"+c),n.cssText=s,i=Zo.test(s)}}else e&&t.removeAttribute("style");Ls in t&&(t[Ls]=i?n.display:"",t[Ii]&&(n.display="none"))}const xs=/\s*!important$/;function es(t,e,s){if(dt(s))s.forEach(n=>es(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))xs.test(s)?t.setProperty(e,s.replace(xs,""),"important"):t.setProperty(e,s);else{const n=tr(t,e);xs.test(s)?t.setProperty(Ne(n),s.replace(xs,""),"important"):t[n]=s}}const bl=["Webkit","Moz","ms"],on={};function tr(t,e){const s=on[e];if(s)return s;let n=ee(e);if(n!=="filter"&&n in t)return on[e]=n;n=Rl(n);for(let l=0;l<bl.length;l++){const i=bl[l]+n;if(i in t)return on[e]=i}return e}function er(t,e,s,n){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&jt(n)&&s===n}const yl="http://www.w3.org/1999/xlink";function $l(t,e,s,n,l,i=aa(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(yl,e.slice(6,e.length)):t.setAttributeNS(yl,e,s):s==null||i&&!Nl(s)?t.removeAttribute(e):t.setAttribute(e,i?"":he(s)?String(s):s)}function xl(t,e,s,n,l){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?Ri(s):s);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const r=i==="OPTION"?t.getAttribute("value")||"":t.value,u=s==null?t.type==="checkbox"?"on":"":String(s);(r!==u||!("_value"in t))&&(t.value=u),s==null&&t.removeAttribute(e),t._value=s;return}let c=!1;if(s===""||s==null){const r=typeof t[e];r==="boolean"?s=Nl(s):s==null&&r==="string"?(s="",c=!0):r==="number"&&(s=0,c=!0)}try{t[e]=s}catch{}c&&t.removeAttribute(l||e)}function sr(t,e,s,n){t.addEventListener(e,s,n)}function nr(t,e,s,n){t.removeEventListener(e,s,n)}const wl=Symbol("_vei");function lr(t,e,s,n,l=null){const i=t[wl]||(t[wl]={}),c=i[e];if(n&&c)c.value=n;else{const[r,u]=or(e);if(n){const v=i[e]=dr(n,l);sr(t,r,v,u)}else c&&(nr(t,r,c,u),i[e]=void 0)}}const ir=/(Once|Passive|Capture)$/,ar=/^on:?(?:Once|Passive|Capture)$/;function or(t){let e,s;for(;(s=t.match(ir))&&!ar.test(t);)e||(e={}),t=t.slice(0,t.length-s[1].length),e[s[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):Ne(t.slice(2)),e]}let rn=0;const rr=Promise.resolve(),cr=()=>rn||(rr.then(()=>rn=0),rn=Date.now());function dr(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const l=s.value;if(dt(l)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const c=l.slice(),r=[n];for(let u=0;u<c.length&&!n._stopped;u++){const v=c[u];v&&ne(v,e,5,r)}}else ne(l,e,5,[n])};return s.value=t,s.attached=cr(),s}const kl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,ur=(t,e,s,n,l,i)=>{const c=l==="svg";e==="class"?Jo(t,n,c):e==="style"?Qo(t,s,n):Rs(e)?Is(e)||lr(t,e,s,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):pr(t,e,n,c))?(xl(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&$l(t,e,n,c,i,e!=="value")):t._isVueCE&&(hr(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!jt(n)))?xl(t,ee(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),$l(t,e,n,c))};function pr(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&kl(e)&&ut(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const l=t.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return kl(e)&&jt(s)?!1:e in t}function hr(t,e){const s=t._def.props;if(!s)return!1;const n=ee(e);return Array.isArray(s)?s.some(l=>ee(l)===n):Object.keys(s).some(l=>ee(l)===n)}const fr=Bt({patchProp:ur},zo);let Ml;function mr(){return Ml||(Ml=To(fr))}const vr=((...t)=>{const e=mr().createApp(...t),{mount:s}=e;return e.mount=n=>{const l=gr(n);if(!l)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const c=s(l,!1,_r(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),c},e});function _r(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function gr(t){return jt(t)?document.querySelector(t):t}const Ni={fleet:"/api/fleet",curves:"/api/curves",channels:"/api/channels",facts:"/api/facts",maintSurvey:"/api/maint_survey",maintStd:"/api/maint_std",maintFramework:"/api/maint_framework",dqFindings:"/api/dq_findings",ontList:"/api/ont_list",askStatus:"/api/ask_status",askModels:"/api/ask_models",vibcms:"/api/vibcms",algoHealth:"/algorithm/healthz",algoEndpoints:"/algorithm/api/endpoints",algoMatrix:"/algorithm/api/matrix",algoReliability:"/algorithm/api/reliability",algoPurity:"/algorithm/api/curves_check"};async function Bi(t,e){const s=Ni[t],n=performance.now();try{const l=await fetch(s,{headers:{Accept:"application/json",...e?.body?{"Content-Type":"application/json"}:{}},...e}),i=await l.text();let c=i;try{c=JSON.parse(i)}catch{}return{name:t,path:s,ok:l.ok,status:l.status,ms:Math.round(performance.now()-n),data:c}}catch(l){return{name:t,path:s,ok:!1,status:0,ms:Math.round(performance.now()-n),error:l instanceof Error?l.message:String(l)}}}const cn=["facts","maintSurvey","ontList","askStatus","channels","dqFindings","algoHealth","algoEndpoints","algoMatrix","algoReliability","algoPurity"],br={class:"card"},yr={class:"hint"},$r=["disabled"],xr={class:"hint"},wr=Ht({__name:"ContractSmoke",setup(t){const e=qt([]),s=qt(!1),n=qt(0);function l(c){return Array.isArray(c)?`list[${c.length}]`:c&&typeof c=="object"?Object.keys(c).slice(0,8).join(", "):typeof c}async function i(){s.value=!0,e.value=[],n.value=0;for(const c of cn){const r=await Bi(c);e.value.push({name:c,path:r.path,ok:r.ok,status:r.status,ms:r.ms,keys:l(r.data),error:r.error}),n.value+=1}s.value=!1}return Be(i),(c,r)=>(w(),S("section",br,[r[3]||(r[3]=a("h2",null,[at("契约自检 "),a("small",null,"(后端结构与算法服务可达性;对拍基准见 docs/接口契约_前后端_v0.1.md)")],-1)),a("p",yr,[at(" 进度 "+d(n.value)+"/"+d(p(cn).length)+' · 只判"通不通",不比数据值(值随数据变,锚点在 Python 侧的门禁里) ',1),a("button",{class:"re",disabled:s.value,onClick:i},"重跑",8,$r)]),a("table",null,[r[0]||(r[0]=a("thead",null,[a("tr",null,[a("th",null,"接口"),a("th",null,"路径"),a("th",null,"状态"),a("th",null,"耗时"),a("th",null,"顶层键 / 形状")])],-1)),a("tbody",null,[(w(!0),S(it,null,bt(e.value,u=>(w(),S("tr",{key:u.name,class:Ut({bad:!u.ok})},[a("td",null,d(u.name),1),a("td",null,[a("code",null,d(u.path),1)]),a("td",null,d(u.status),1),a("td",null,d(u.ms)+" ms",1),a("td",null,d(u.error||u.keys),1)],2))),128))])]),a("p",xr,[at(" 契约登记接口合计 "+d(Object.keys(p(Ni)).length)+" 条(本页抽样 "+d(p(cn).length)+" 条); 全量 42 条由 ",1),r[1]||(r[1]=a("code",null,"python scripts/http_contract_audit.py",-1)),r[2]||(r[2]=at(" 在线复核。 ",-1))])]))}}),kr={"app.brand":"观澜","app.build":"最新完成构建","app.lang_en":"英文","app.lang_zh":"中文","app.subtitle":"海上风电场","app.title":"观澜 · 风电数据分析与决策支持","ask.common_q":"{cat} · 常用问题 (点即问, 或下方自由输入)","ask.done_meta":"模型 {m} · 用时 {s} 秒 · {n} 步","ask.elapsed":"{s} 秒","ask.empty":"问题为空","ask.en_qa_failed":"英文质检未通过: 已拦截这次模型回答, 请重新提问。","ask.error":"出错: {e}","ask.go":"提问","ask.grounding":"答案句句带 [对象id] 溯源 + 数据回抓校验核验; 判级只转述本体原文带审级, 模型零判级权。","ask.idle":"空闲 — 点常用问题或输入后提问。串行一次一问。","ask.local_down":"本机模型未启动 (Ollama 127.0.0.1:11434 未响应); 离线版不转云","ask.model":"模型","ask.no_models":"无可用模型","ask.offline":"离线版: 模型问答需连接系统。","ask.partial":"初答 · 27B 复核中","ask.placeholder":"自由提问 ({cat})","ask.question":"问题: {q}","ask.refined":"已复核 (默认档 {m} 未过成文校验, 由更强模型重答)","ask.refs.none":"无匹配契约条目 (契约 {sha}): 本回答未被结构化事实契约背书, 按模型输出对待","ask.refs.title":"契约引用 ({n} 条, 契约 {sha}) — 按问题/回答匹配的可交付结论, 引文来自 qa_refs","ask.review":"交叉审核 · {m}","ask.review_err":"审核未完成: {e}","ask.review_note":"由另一模型基于同一份证据复核上述答案。溯源核验仅校验数字与机组号是否越界, 本项校验结论是否有证据支撑。","ask.running":"推理中…","ask.verify_bad":"溯源核验未全过 (引用 {n})","ask.verify_ok":"溯源核验 {n}/{n} 全真","ask.xrev":"交叉审核","ask.xrev_note":"(DeepSeek 14B 互审, +约 1 分钟)","ask.xrev_title":"由另一模型基于同一份证据复核; 同一模型自审无法构成独立校验","asst.alarm_type":"告警类型 {t}","asst.cause_counts":"手册 {r} 次 · 工单 {w} 次 · 涉码 {c}","asst.causes":"← 可能原因 (手册排查方向 + 工单实证)","asst.check":"查什么","asst.code_placeholder":"报警码, 如 3225 / 3130 / 13902","asst.common":"常见","asst.corrective":"抢修","asst.corrective_flow":"报警码 → 失效模式 → 手册分步处置 → 历史工单","asst.drawings":"对应图纸","asst.failmodes":"指向的失效模式","asst.faulttree":"故障树","asst.faulttree_flow":"按证据量排序的系统失效模式 + 部件级成因","asst.fm_counts":"该类本场报警 {a} 条 / 工单 {w} 条","asst.head":"检修助手 — 确定性本体查询","asst.head_note":"结果逐字取自手册与工单, 不经模型","asst.identity":"系统 {sys} · 本场 {n} 条","asst.interval":"周期 {i}","asst.known_tags":"该系统手册出现过的位号 (对图纸时参考):","asst.no_causes":"(手册无该类排查条目 — 原因层待补)","asst.no_name":"(码表未收录)","asst.no_steps":"本码无手册处置条目 (手册覆盖本场 161/322 码) — 需查图纸或联系厂商支持。","asst.node":"节点","asst.nodes":"应检节点 · {c}","asst.nodes_note":"手册此步未给位号 → 按回路构成展开, 逐点查","asst.prev_empty":"(该系统无匹配的年度维护条目 — 维护作业指导书按位置代号编排, 未必逐系统对齐)","asst.prev_fm":"失效模式 (按本场报警量)","asst.prev_head":"{sys} 预防链 · 失效模式 {f} 类 · 预防性任务 {n} 项","asst.prev_tasks":"年度任务","asst.preventive":"预防性维护","asst.preventive_flow":"系统 → 失效模式 → 年度任务 → 作业指导步骤","asst.qty":"量: {q}","asst.query_failed":"查询失败: {e}","asst.querying":"查询中…","asst.spec_name":"名称","asst.spec_no":"参数号","asst.spec_range":"允许范围","asst.spec_val":"整定值","asst.specs":"判定规范 (实机参数表)","asst.step_n":"第 {n} 步","asst.steps":"现场处置 {n} 步","asst.steps_note":"节点部件 = 手册原文元件位号 (确定); 判定规范 = 实机参数表按物理量匹配的候选判据, 非厂商绑定 — 现场以铭牌与图纸复核。","asst.tags":"节点部件","asst.tree_codes":"征兆码 {c}","asst.tree_counts":"本场报警 {a} 条 · 工单 {w} 条","asst.tree_empty":"该系统无失效模式记录","asst.tree_head":"{sys} 故障树 · {n} 个失效模式","asst.tree_note":"一层 = 系统 × 失效类 (归纳自本场码表与工单) · 二层 = 手册排查方向归一 + 工单原因计数; 条长按实证量 (报警条数 + 工单 × 10), 因果来自手册与工单原文非推断, 树深两层不外推。","asst.unassigned":"未归属","asst.wi_steps":"WI {n} 步","asst.wo_action":"处置","asst.wo_fault":"故障","asst.wo_head":"现场实际怎么修的 ({sys} 历史工单 {n} 条, 台账 2020~2024)","asst.wo_note":'工单时间窗止 2024-11-21; 2025–26 现场未提供 ⇒ "0 条" 是记录缺失非未修过。',"attr.变桨与液压":"变桨与液压","attr.塔架/结构":"塔架/结构","attr.无记录停机":"无记录停机","attr.未归类":"未归类","attr.电网/供电(外部)":"电网/供电(外部)","attr.轮毂/叶片":"轮毂/叶片","attr.运维操作":"运维操作","attr.风况(外部)":"风况(外部)","cat.equip":"设备类","cat.equip.hint":"设备状态 / 机制 / 判级 — 从机组档案、对象查询与机制检索取证","cat.equip.q1":"29号机组现在什么状态、为什么、该怎么办?","cat.equip.q2":"全场哪些机组有报警级或定论级判级?逐台列出并注明审级","cat.equip.q3":"失效机制库里有哪些机制族?各涉及哪些机组、状态如何?","cat.loss":"损失分析","cat.loss.hint":"当前 3 个月损失 / 未来损失 — ont_loss / ont_scenario 取证, 金额带电价区间统计方法","cat.loss.q1":"近3个月全场损失结构如何?分状态和分机组说, 电量与金额都给","cat.loss.q2":"29号如果拖到主轴承失效, 未来损失量级是多少?与现在修对比","cat.loss.q3":"限电常态化对检修机会成本有什么影响?","cat.risk":"安全风险预测","cat.risk.hint":"风险敞口 / 劣化趋势 / 盲区 — ont_risk / ont_mechanism_search 取证, 未列 ≠ 正常","cat.risk.q1":"当前哪些机组风险在上升需要重点盯?联动监视读数如何?","cat.risk.q2":'监测有哪些盲区?哪些"没报警"不等于正常?',"cat.risk.q3":"29号轴承正在承受金属接触, 风险敞口怎么评估?","cat.sched":"检修排程决策","cat.sched.hint":"排期沙盘 / 天气窗 / 验收树 — ont_scenario / ont_get 取证","cat.sched.q1":"29号修泵什么时候做最合适?对比各情景的损失与风险","cat.sched.q2":"未来几个月哪些月份适合安排CTV检修和吊装作业?依据历史可作业窗","cat.sched.q3":"29号修好之后按什么判据验收?三分支分别是什么条件?","ch.attrib.none":"无记录 {h}h ({p}%)","ch.attrib.ok":"已归因到部件 {h}h ({p}%)","ch.attrib.uncls":"未归类 {h}h","ch.beta.median":"全场中位 {v}°","ch.blame.d1":"限电与调度令, 不进设备责任","ch.blame.d2":"故障与检修停机, 唯一进设备考核","ch.blame.d3":"正常发电欠发与低风待机","ch.blame.n1":"交易与调度侧","ch.blame.n2":"设备侧","ch.blame.n3":"运行侧","ch.blame.title":"损失 {tot} MWh 按责任归属","ch.cap.legend":"圆内数字 = 台数, 圆面积 ∝ 台数","ch.cap.median":"中位 {v}","ch.cap.p":"满发封顶","ch.cap.w":"转速封顶","ch.ml.legend":"— {s}","ch.pareto.cum80":"累计 80%","ch.pareto.cumtip":"{k} · 累计 {p}%","ch.pareto.key":"关键少数: 前 {k} 项占 80%","ch.pareto.none":"时间窗内无数据","ch.pareto.top3":"前三: ","ch.pareto.total":"共 {n} 项, 合计 {tot}{unit}","ch.pareto.xlab":"报警码 (悬停看全名)","ch.quad.few":"时间窗内码数不足, 不作四象限","ch.quad.q1":"低频长时 · 硬故障","ch.quad.q1s":"备件与检修窗","ch.quad.q2":"高频长时 · 重点治理","ch.quad.q2s":"优先派工","ch.quad.q3":"低频短时 · 本底","ch.quad.q3s":"不单独处置","ch.quad.q4":"高频短时 · 重复触发","ch.quad.q4s":"调整参数或屏蔽, 非硬件故障","ch.quad.tip":"{n} 条 · 单次中位 {med}s · 累计 {h}h · {nt} 台","ch.quad.xlab":"发生条数 (对数)","ch.quad.ylab":"单次中位时长 (对数)","ch.ram.area":"圆面积 = 累计停机时长","ch.ram.equip":"设备类","ch.ram.ext":"外部类","ch.ram.few":"部件数不足, 不作象限","ch.ram.median":"虚线 = 本场中位分界","ch.ram.q1":"常坏且难修","ch.ram.q1s":"最高优先级","ch.ram.q2":"罕发难修","ch.ram.q2s":"备件与作业窗","ch.ram.q3":"频发易修","ch.ram.q3s":"查根因, 换件无用","ch.ram.q4":"少发好修","ch.ram.q4s":"维持","ch.ram.tip":"{p}: 平均无故障间隔(MTBF){mtbf}h · 单次停机时长(MDT){mdt}h · 停机 {h}h · {n}起 · {u}台","ch.ram.tip_ext":" · 外部类不计设备可靠性","ch.ram.xlab":"平均无故障间隔(MTBF,h,对数)→ 越右越可靠","ch.ram.ylab":"单次停机时长(MDT,h)→ 越上越难修","ch.rate.days":"仅{d}天","ch.rate.month":"{m}月","ch.rate.n":"{n}条","ch.rate.tip":"{m}: {v} 条/日 (总 {n} 条, 数据覆盖 {cov}%)","ch.rate.ylab":"条/日","ch.ruler.norm":"正态期望 3.7σ","ch.ruler.row":"{r}σ σ = {s}","ch.wf.act":"实际上网","ch.wf.theo":"理论可发","ch.wf.tip":"{nm}: 损失 {loss} MWh, 占理论 {pct}%, 时长 {h}h","chain.gb":"齿轮箱","chain.gde":"发电机DE","chain.gen":"发电机","chain.gnde":"发电机NDE","chain.hss":"高速","chain.ims":"中间","chain.mba":"主轴承后","chain.mbf":"主轴承前","chain.ps":"行星","cmp.alarm_n":"报警 {a}","cmp.alarm_units":"报警机组","cmp.basis":"依据","cmp.by_system":"按系统查看","cmp.cards_note":"点系统卡 → 该系统全场机组与依据; 九系统 = 交付九分册一一对应; 叶片与叶根 / 塔架与基础无 SCADA 轴 (分册蓝本取 CMS / 巡检)","cmp.counts":"报警 {a} · 不可判 {u} · 良好 {g} · 优秀 {e}","cmp.cross_eyebrow":"多系统交叉机组","cmp.detail":"详情","cmp.detail_head":"{sys} · 全场 {n} 台","cmp.external":"外部","cmp.fleet_n":" · 全场 {n} 台","cmp.fusion_moved":"振动线结论与四源融合已移至独立板块 →","cmp.fusion_n":"({n} 台次收录)","cmp.good_units":"良好 {n} 台 (轻微偏离, 周期观察 — 点开看逐台依据)","cmp.grading_pending":"正在按所选时间窗重算判级…","cmp.grading_pending_why":"时间窗 {span}:变桨/偏航/蓄能/温度四个判级面正按该时间窗重算(首次约 25 秒),下面的系统卡暂时还是上一份统计方法 —— 算完会自动刷新,不会静默混用。","cmp.hit_sys":"命中系统","cmp.n_sys":"系统数","cmp.n_units":"({n} 台)","cmp.none":"本系统全场无非常态。","cmp.problem_page":"该问题页 →","cmp.rel_ev":"事件","cmp.rel_eyebrow":"部件可靠性 · 时间窗 {win}","cmp.rel_fm":"典型失效模式 (按时长)","cmp.rel_h":"停机时长","cmp.rel_head":"部件停机贡献与可靠性","cmp.rel_mdt":"单次停机时长(MDT,h)","cmp.rel_meta":"总停机 {t}h = 设备类 {a} + 外部类 {b}","cmp.rel_mtbo":"平均停机间隔(MTBO,h)","cmp.rel_note":'统计方法 ≥1h 停机段, 不含调度令 — 与"电量算账"里的停机时长{h} 不同, 差额是短于 1h 的停机段 (本页按段做可靠性指标须成段, 能量账按逐条工况态算电量): 两个数都对, 不可互相相减。',"cmp.rel_part":"部件","cmp.rel_units":"影响机组","cmp.unk_n":" · 不可判 {u}","cmp.unk_units":"不可判 (监测/数据不足, ≠ 正常)","cmp.watch_head":"关注机组 (≥2 系统交叉, {n} 台; 点机组号 → 该台独立页)","dec.classic":"维护标准 / 维护框架 / 数据质量三块尚未迁入新版 —","dec.head":"检修决策 · 本体问答 (推理无界, 结论须过校验)","en.balance":"电量平衡","en.blame":"损失责任分账","en.blame_note":'最大一笔是限电不是故障。进设备考核的只有"故障与检修停机" {n} MWh; 限电属交易与调度侧, 2026 起交易策略主导, 少发未必是弃风。',"en.cap_fail":"不通过","en.cap_note":"能量守恒核 · 理论 {op} 全额定上限 {cap}","en.cap_pass":"通过","en.kpi_act":"实际上网 · 等效满发 {h} h","en.kpi_loss":"损失率 · {v} MWh","en.kpi_theo":"理论可发 (实际+损失)","en.loss_mwh":"损失 MWh","en.share":"时长占比","en.state":"工况态","en.states":"工况态明细","en.states_note":"控制参数一致性与曲线欠发筛查在固定干净窗判, 已迁入「发电性能」页 — 本页只出当期电量账。","en.win":"窗 {win}","fig.fleet_median":"全场中位","fig.point":"测点","fig.quartile":"四分位","fig.this_unit":"本台","fig.trend":"趋势","fig.vibbar_note":"条为本台与全场中位之比; 色按 z (稳健离群度): 绿 <2 · 橙 2~3 · 红 ≥3","fig.x_median":"×中位","flt.alarm_face":"报警面","flt.alarm_meta":"{n} 条 · {c} 个码 · 时间窗 {win}","flt.attrib_note":'归因覆盖: "无记录停机" {h}h 是全场最大单项, 因不给 MTBF 而在上图中不出现 — 它不是"没有故障", 是"没归上因"。统计方法为段起点 ±30min 首发码。缺口成因待定: 此前写的"98% 的段在前 72h 内有报警 ⇒ 长停远窗"不成立 — 前 72h 有报警不等于该报警与本段停机有因果 (双模审 2026-08-28 逮)。要定成因须改判"段起止是否落在某条报警的持续区间内", 未做之前只报缺口不报原因。',"flt.block_err":"本块未算出 ({k}): {e}","flt.eyebrow":"故障统计与可靠性","flt.pareto_d":"帕累托 · 按持续时长","flt.pareto_d_note":"时长 = 闩锁统计方法 (复位 − 激活), 只作排序参考不作停机时长","flt.pareto_n":"帕累托 · 按发生条数","flt.pareto_n_note":"条数 = 发生频次, 不反映影响程度 — 高频短时报警码 (信号抖动或重复触发) 排序靠前","flt.per_t":"台级分布 · 报警条数 top{n}","flt.per_t_note":"全场合计 {n} 条 · 单台占比高须先核查是否为单一报警码重复触发","flt.per_t_share":"占全场","flt.quad":"故障模式四象限 · 条数 × 单次时长","flt.quad_note":"时间窗内共 {n} 个码, 图上为条数前 {m} 个。","flt.quad_note2":"点面积表示影响机组数, 大点为批次共性、小点为单台; 竖分界取条数中位, 横分界取 10min (一个 SCADA 采样格)。右下角的码不要按条数排优先级 — 属重复触发, 非硬件故障。上面两张帕累托对照看即此图的两条投影。","flt.quad_partial":"窗含不满月 {m} (覆盖 {c}%), 条数为原始累计未按天归一。","flt.ram":"可靠性 × 可维修性 · 部件象限","flt.ram_note":'按停机时长排序的表看不出这层结构: 同样 500h 的停机, "频发易修"要查根因、"罕发难修"要备件, 处置相反。设备类停机 {a}h / 外部类 {b}h (外部 = 电网·风况·运维操作, 不计设备可靠性)。海上机组 MDT 普遍偏高是交通窗口决定的, 不等于维修本身慢 — 跨场比 MDT 须同为海上。',"flt.rate":"月度故障率","flt.rate_example":"实测: {m} 总数最低但日均 {v} 条/日 = 全时间窗前列。","flt.rate_full":"各月覆盖完整。","flt.rate_note":"柱高 = 日均条数, 不是月总数","flt.rate_partial":"本时间窗 {m} 数据不满月 (灰虚线柱), 直接比月总数会读反。","flt.seasonal":"故障季节性 · top 报警族 × 月","flt.seasonal_note":"全程 19 个月 (跨 2 冬 1 夏); 未做 χ² 显著性检验前为【参考级】, 只看形态不作季节归因","flt.seasonal_unit":"条/月","flt.seasonal_x":"月","flt.stop_face":"停机面","flt.stop_h":"停机时长","flt.stop_meta":"{h}h · {n} 起 · 统计方法 ≥1h 段, 不含调度令","flt.stop_n":"次数","flt.stop_pareto":"停机归因帕累托","flt.stop_pareto_note":"按停机时长; 事件次数见悬停","flt.stop_units":"台级停机 top{n}","flt.stop_units_note":"停机时长高 ≠ 设备差 — 须先看归因里外部类占比 (调度令已剔除)","fus.alarm_n":"{n} 条","fus.alarm_rank":" · 第 {r}/{t}","fus.burst":"⚠ {p}% 是码 {c} 抖动","fus.burst_tip":"⚠ 单码 {c} 占 {p}%, 中位 {m} 秒/次 — 条数被抖动灌满","fus.clear":"× 清除","fus.cms_act":"行动","fus.cms_action":"需行动机组 (报警 / 不可判)","fus.cms_basis":"统计方法说明","fus.cms_basis_note":"本表 = windcms 状态管理判级 (含标量趋势与数据可判性); 融合矩阵 / 逐台结论 = 振动线确诊链转录 (候选以上)。两统计方法差异台: 仅本表列 {a} (多为标量发作 / 数据不可判, 未到确诊链); 仅确诊链列 {b} (预警级在察, 状态管理未升)。","fus.cms_chain":"部件状态链","fus.cms_chain_note":"(主承前 · 主承后 · 齿轮箱 · 发电机; 悬停看逐件等级)","fus.cms_evidence":"证据强度","fus.cms_focus":"状态焦点","fus.cms_focus_note":"(传动链: 主承前 · 主承后 · 齿轮箱 · 发电机两端)","fus.cms_grades":"38 台部件等级一览","fus.cms_head":"振动状态评估 (windcms 报告 {d} 结果转录)","fus.cms_link":"谱图 · 波形 · 判据 · 工作台等分析功能在独立 windcms 系统 →","fus.cms_loading":"载入振动评估结果…","fus.cms_note":"状态管理判级, 不代表确诊数量; 判据/谱线/计算过程不在本页 — 深潜走底部独立系统。","fus.cms_open":"打开 windcms ↗","fus.cms_overall":"综合","fus.cms_static":"(未启动时用静态版)","fus.cms_window":'数据窗 {r} —— 本时间窗**实算**覆盖区间 (窗名只是起始日代号); 页面上的图谱与"末窗"状态取自时间窗内最新记录, 故多显示末期日期。',"fus.col.alarm":"报警","fus.col.claim":"证据时间窗","fus.col.claim_axis":"26-01 → 09","fus.col.display_only":" · 只展示","fus.col.fixed":" · 不随本时间窗","fus.col.lub":"润滑柱塞","fus.col.oil":"油样","fus.col.part":"部件","fus.col.signal":"振动信号","fus.col.state_concl":"设备状态 / 振动结论","fus.col.temp":"温度","fus.col.tempaxis":"温度轴","fus.col.tempaxis_note":"±6 K","fus.col.vib":"振动","fus.col.wo":"工单","fus.ev_code":"码","fus.ev_dur":"累计时长 h","fus.ev_head":"{c} — 报警 {an} 条 / {au} 台 · 工单 {wn} 条 / {wu} 台 (时间窗内)","fus.ev_min":"时长 min","fus.ev_no_alarm":"时间窗内无该部件报警","fus.ev_no_wo":"时间窗内无该部件工单 (工单数据止 2024-11, 2026 类窗必空 = 数据边界)","fus.ev_recent":"最近 {n} 条明细","fus.ev_text":"报警内容","fus.ev_time":"时间","fus.ev_top":"台分布 top: ","fus.ev_units":"台数","fus.ev_win":"时间窗 {win} · 顶部选择器可换","fus.ev_wo_act":"处理","fus.ev_wo_cause":"原因","fus.ev_wo_name":"故障名称","fus.eval_head":"评价体系 (规范化定义 — 两轴并存, 不可互相替代)","fus.eval_meaning":"含义","fus.eval_note":'设备状态答"这台设备现在怎么样" (危险 > 报警 > 良好 > 优秀 > 不可判); 证据状态答"这个判断有多可信" (定论 → INSUFFICIENT)。设备状态一律取自振动线的判级栏这一个来源。本页判级为转录, 不产新判级; 标注为参照同型机组/频谱信号级 (未定位到具体零件)/测量链/未对应到具体部件的行不作部件级结论消费; claim_window = 该结论的证据时间窗, 窗外状态该结论不背书。',"fus.eval_state":"设备状态 (业主统计方法)","fus.eval_tier":"证据状态 (可信度)","fus.eyebrow":"振动与 SCADA 证据视图 · 展示振动结论、SCADA 指标、报警与工单线索","fus.fam_tip":"{n} 条 · 全场最多 {m} 条","fus.legend_note":'两轴不可互相替代: "候选"说的是可信度不是设备好坏; "良好"说的是设备状态不是证据强度。设备状态只取自振动线的判级栏这一个来源。',"fus.legend_state":"格子颜色 = 设备状态 (业主统计方法, 与 windcms 报告同一套):","fus.legend_tier":"徽章 = 证据状态 (可信度, windcms 九枚举):","fus.loop_ba":"换前 → 换后 (同标尺)","fus.loop_bound":"数据边界: {b}","fus.loop_closed":"已闭环 · 换件后恢复 ({n} 例)","fus.loop_date":"换件日","fus.loop_el":"早期 → 近期 (同标尺)","fus.loop_head":"维修后验证案例 (检出 → 换件 → 恢复)","fus.loop_item":"事项","fus.loop_neg":"负面对照: 工单后持平 {n} 例 (换件 ≠ 必然回落, 说明回落非巧合)。","fus.loop_none":"暂无端到端闭环证据:现场提交的振动数据包里没有「报警→检修→复测」的成对记录","fus.loop_note":"有换件记录且同一统计方法指标回落, 可作为检测链已闭合的案例; 指标仍在上升但缺少可匹配工单的机组, 需现场或台账确认后再关闭。","fus.loop_ratio":"恢复比","fus.loop_rising":"未闭环 · 指标上升待现场/工单确认 ({n} 台)","fus.loop_state":"状态","fus.loop_verdict":"判","fus.loop_x":"倍比","fus.lub_now":"润滑柱塞现状","fus.lv.bad":"定论/报警级","fus.lv.note":"候选/监视/观察级","fus.lv.ok":"销案/无新证","fus.lv.warn":"预警级","fus.m.bad":"异常严重, 建议尽快停机检查","fus.m.bad_e":"证据: 已定案","fus.m.ex":"未见异常, 保持常规监视","fus.m.ex_e":"证据: 仅记录 / 已取消","fus.m.ok":"轻微偏离, 记录观察","fus.m.ok_e":"证据: 待现场核实 / 已记为基线下窗观察","fus.m.unk":"数据不足或监测中断 — 不等于正常","fus.m.unk_e":"证据: 数据不足","fus.m.warn":"存在需现场核实或处置的异常","fus.m.warn_e":"证据: 基本确认 / 新出现待核实","fus.matrix_foot":'润滑柱塞各台设定本就不同 (全场单次循环 22~961 秒), 所以此列只展示不判级, 只有已定案的机制链才标色; 油液多数台末次取样距今超 12 个月, 此列看的是"样够不够新", 不代表当前状态。',"fus.matrix_head":"全场融合矩阵 (38 台 × 6 个证据面)","fus.matrix_note1":'各列取数窗口不同 (见列头) — 不同窗的两格同时发红不等于"同时发生", 不可当共时印证。',"fus.matrix_note2":'每格右侧曲线 = 逐月记忆轨迹 ({n} 个月, {m0} 起; 实心点 = 现窗) — 现窗快照会丢形态, 轨迹才看得见"塌→回升→翻转"类机制签名。',"fus.no_alarm":"时间窗内无报警","fus.none_word":"无","fus.oil_fresh":"近共时","fus.oil_none":"无样","fus.oil_stale":"stale > 12 个月","fus.rule1":"① 同一失效机制的多个观测面 ≠ 多源印证 — 融合禁按源数加权 (29# 柱塞/温度/振动稳态/振动瞬态 = 四个观测面一条机制链)。","fus.rule2":'② "没报警" ≠ "正常" — 在已知盲区上, 缺报警只说明监测面无效, 不说明设备无恙。',"fus.rules_head":"两条判读纪律 (随板块常显)","fus.short.nodata":"数据不足","fus.short.normal":"正常","fus.short.nosample":"未取样","fus.short.stale":"样龄过期","fus.short.uneval":"未评估","fus.short.unlisted":"未收录","fus.sub.cms":"振动分析","fus.sub.events":"报警工单","fus.sub.loop":"端到端闭环","fus.sub.matrix":"融合矩阵","fus.sub.units":"逐台情况","fus.temp_now":"温度轴现状","fus.tip_state":" — 设备状态 {s}","fus.tip_tier":" / 证据状态 {e}","fus.unavailable":"融合面数据不可用: {e}","fus.units_filter":" · 筛选: {l}","fus.units_head":'逐台情况 (全场 {u} 台 / {n} 台次{f}; 深入谱图/波形 → "振动分析")',"fus.unlisted_head":"未列机组 {n} 台 (振动线未收录 — 未列 ≠ 正常)","fus.unlisted_link":"未列 {n} 台","fus.win_n":"{n} 个窗段","fus.win_none":"未标窗","fus.wo_n":"{n} 单","fus.wo_none":"时间窗内无传动链工单","gen.beta":"桨距调度同档差","gen.beta_note":"同一功率档下的桨角与全场中位之差。{units} 偏离达中位的 {k} 倍 → {v}","gen.cands":"曲线欠发筛查","gen.cands_meta":"{note} · σ = {s}%","gen.cap":"封顶参数落位","gen.cap_note":"台数落在几个离散位置上, 不是连成一片 — 这是配置/版本差异的形状; 磨损或工况引起的会是连续散布。两轴各自成组且分组不同台 ⇒ 参数级差异, 成因须配置台账。","gen.ctrl":"控制参数一致性","gen.ctrl_win":"窗 {win}","gen.eyebrow":"特性曲线与控制参数","gen.figs":"七个镜头 · 逐档中位与同型机群残差","gen.fixed_win":"随上方时间窗 · 按时间窗重算","gen.loading":"正在计算七个镜头 (剥限电 · 逐档中位 · 同型机群残差)…","gen.no_cands":"无候选","gen.recomputing":"正在按所选时间窗重算七镜头…","gen.recomputing_short":"正在按窗重算…","gen.ruler":"尺子巡检 · 极差 ÷ σ","gen.ruler_note":"判据自身的分辨力。38 台正态抽样的极差期望约 3.7σ, 明显超出即分布非单峰 — 与左图的分组互为印证; 落在期望附近的轴 (额定桨角) 则是连续分布。","gen.win_range":"时间窗 {span}","gen.win_why":'七镜头与月度时序都按所选时间窗重算(含自定义起止日期)。提示:2025-07 ~ 2025-12 是"限电前干净判别窗"——2026 起交易策略主导,曲线含策略性少发,作设备判据时须注意;选到含 2026 的窗时该影响存在但不再遮掩。',"kpi.alarm_units":"九系统有报警的台数 / 全场","kpi.alarm_units.hint":"统计方法: 九系统 (叶片与叶根/变桨/偏航/齿轮箱/发电机/主轴承/变流器/塔架与基础/主控与传感网) 中任一被判「报警」即计一台。与下方「全场状态」格的统计方法不同 —— 那里按每台 振动/温度/润滑/油液/报警/工单 六列取最严一级, 所以两处数字可以不同, 不是矛盾。","kpi.avail":"时间可用率 (不含调度令) · {win}","kpi.curtail":"限电·绑定 电量损失","kpi.downtime":"停机时长 · {n} 起","kpi.loss":"停机电量损失 · {win}","kpi.loss_dispatch":"另调度令 {n}","kpi.mtbo":"平均停机间隔(MTBO;非行业 MTBF)","loss.curtail_bound":"限电 (命令与实际功率对得上)","loss.curtail_unbound":"限电命令期 · 功率未被压制","loss.dispatch":"调度令停机","loss.lowwind":"低风待机","loss.normal":"正常发电时的欠发","loss.stop":"故障与检修停机","mdl.cloud":"云端","mdl.deepseek-chat.nm":"DeepSeek","mdl.deepseek-chat.t":"约 3 到 10 秒","mdl.deepseek-r1:14b.nm":"本机 DeepSeek 14B · 审核档","mdl.deepseek-r1:14b.t":"约 1 到 3 分钟","mdl.deepseek-r1:32b.nm":"本机 DeepSeek 32B","mdl.deepseek-r1:32b.t":"约 3 到 8 分钟","mdl.deepseek-v4-pro.nm":"云端 DS","mdl.deepseek-v4-pro.t":"约 2 到 6 分钟","mdl.kimi-fast.nm":"Kimi","mdl.kimi-fast.t":"约 5 到 20 秒","mdl.local":"本地","mdl.outbound_warn":"内容会外发到模型厂商, 场名与台号已去标识化","mdl.qwen-plus.nm":"通义千问","mdl.qwen-plus.t":"约 5 到 20 秒","mdl.qwen3.8:27b.nm":"标准 27B · 复杂题","mdl.qwen3.8:27b.t":"约 2 到 4 分钟","mdl.qwen3:30b-a3b.nm":"快 30B (a3b)","mdl.qwen3:30b-a3b.t":"约 20 到 60 秒","mdl.qwen3:8b.nm":"轻量 8B · 默认","mdl.qwen3:8b.t":"约 30 到 60 秒","mdl.unknown_warn":"未知档位, 按内容会外发处理","mdl.zero_outbound":"全程零外发","mt.cov":"当前覆盖","mt.eyebrow":"系统维护 · 数据输入与更新端口","mt.fail":"盘点失败: {e}","mt.freq":"频率","mt.head":"数据维护面 · {n} 个源","mt.how":"补数据怎么做","mt.last":"末次更新","mt.layer_data":"数据层","mt.layer_data_note":"随运营滚动 — 新数据到位后跑摄入, 本体与判级自动刷新","mt.layer_mech":"机理层","mt.layer_mech_note":"相对稳定 — 换厂商资料或现场反馈修正时才动; 它是判据的地基, 变更须过审","mt.note":'每个源给出: 当前覆盖 / 末次更新 / 约定位置 / 摄入命令 / 更新频率 / 责任方。要补数据就把新文件放到"约定位置"再跑"摄入命令"。',"mt.put":"放到:","mt.resp":"责任","mt.rows_n":" ({n} 条)","mt.run":"跑:","mt.src":"源","mt.surveying":"盘点中…","ov.all_steps_done":"已走完(待验收)","ov.attention":"需要关注","ov.attention_n":"{n} 台","ov.basis_fusion":"本台依据来自融合面(九系统判级无「报警」行):部件 {part} · 链路走到第 {done}/{n} 步 · 卡在「{stuck}」 · 证据源 {srcs}","ov.caveat":"限定","ov.evidence":"查看完整依据","ov.fus_gap_hint":"这一面(需要关注 / 全场状态)取数来自融合面;缺件时如实为空,不从交付包补齐。在本机放好原始件后跑一次重算即会由观澜自己的生成端补上(scripts/rudong_fusion_handoff.py,见 docs 的「源代码化清单」)。","ov.illustrative":"示意数据","ov.no_srcs":"无(该台无外部证据源)","ov.quiet":"其余 {n} 台未进入优先关注清单;设备状态请查看全场状态评估。","ov.quiet_all":"当前优先关注清单为空;{n} 台机组的设备状态请查看全场状态评估。","ov.ranked_by":"按 设备状态 × 证据量 排序","ov.strip":"全场状态","ov.strip_hint":"一格一台 · 点格定位","ov.systems":"九系统","ov.systems_hint":"点系统看逐台依据","pop.acts":"动作统计","pop.close":"关闭","pop.loading":"载入中…","pop.none":"本时间窗无记录","pop.o_act":"处置","pop.o_cause":"原因","pop.o_check":"排查","pop.o_date":"日期","pop.o_fault":"故障","pop.o_kind":"类别","pop.orders":"工单 {n} 单","pop.orders_none":"时间窗内无工单","pop.orders_one":"工单 1 单","pop.problem":"{u} · {sys}","pop.unit":"{u} · 全部问题","rpt.attrib.note":'"无记录停机"不是没有故障, 是没归上因。',"rpt.attrib.title":"归因覆盖","rpt.aud_in":"场站内部 (全量)","rpt.aud_up":"上报集团 (脱敏)","rpt.b.attrib.d":"已归因 vs 无记录停机的占比 — 无记录不等于没有故障","rpt.b.attrib.nm":"归因覆盖","rpt.b.blame.d":'交易调度侧 / 设备侧 / 运行侧 三段占比 — 回答"谁的责任"',"rpt.b.blame.nm":"损失责任分账","rpt.b.caliber.d":"统计期 / 残月 / 工单时间窗 / 判级性质 — 建议常驻, 没有边界的数字堆不能作汇报依据","rpt.b.caliber.nm":"统计方法与适用边界","rpt.b.chain.d":"证据→机制→判级→排期→动作→验收 六步的瓶颈分布","rpt.b.chain.nm":"决策链进度","rpt.b.emon.d":"逐月上网 / 损失 / 损失率 / 等效满发, 含数据覆盖率","rpt.b.emon.nm":"逐月发电表","rpt.b.frate.d":"按天归一的日均条数, 数据不满月单独标注","rpt.b.frate.nm":"月度故障率","rpt.b.kpi.d":"六个核心数: 上网电量 / 等效满发 / 可用率 / 损失率 / 停机间隔 / 需行动台","rpt.b.kpi.nm":"一级指标","rpt.b.loop.d":"检出 → 换件 → 复测回落的历史例证, 证明这条链是通的","rpt.b.loop.nm":"闭环实证","rpt.b.narr.d":"模型基于实测数据生成的运行总结 — 为图表补充文字结论, 供汇报使用","rpt.b.narr.nm":"运行总结","rpt.b.pareto.d":"按条数降序 + 累计 80% 线, 找关键少数","rpt.b.pareto.nm":"故障帕累托","rpt.b.parts.d":"逐部件停机时长 / 事件数 / 平均无故障间隔(MTBF)/ 单次停机时长(MDT)/ 影响机组数","rpt.b.parts.nm":"部件停机表","rpt.b.plan.d":"由数据推出的行动项, 不是套话","rpt.b.plan.nm":"下期建议","rpt.b.quad.d":"条数 × 单次时长, 区分重复触发与实际停机 — 按条数排序会误定优先级","rpt.b.quad.nm":"故障四象限","rpt.b.ram.d":'平均无故障间隔(MTBF)× 单次停机时长(MDT)部件象限, 分出"频发易修"与"罕发难修", 处置方向相反',"rpt.b.ram.nm":"可靠性象限","rpt.b.units.d":"需跟踪台的部件 / 证据源 / 六步进度 / 卡在哪一步","rpt.b.units.nm":"重点机组","rpt.b.water.d":"理论可发 → 逐段扣损 → 实际上网, 用于定位电量流向","rpt.b.water.nm":"能量瀑布","rpt.blame.cal":"工况态分解 + 限电命令面绑定判别; 平均出力=实发÷台时, 用作风资源代理量","rpt.blame.note":'进设备考核的只有"故障与检修停机"; 限电属交易与调度侧。',"rpt.blame.note2":'限电不是"低风时段收到的空令": 限电·绑定时段平均出力 1.435 MW, 正常发电时段 1.412 MW, 比值 1.02 — 风况相同而出力被压, 说明限电是真压制; 但"限电命令期·功率未被压制"那一档平均出力仅 0.724 MW (18% 额定), 确属低风时段收令。',"rpt.blame.title":"损失责任分账","rpt.cal.deid":"脱敏","rpt.cal.deid_d":"上报版隐去判据门槛与特征频率","rpt.cal.denom":"可用率与损失率分母不同","rpt.cal.denom_d":'可用率分母剔除低风待机与调度令(问"该发时能不能发"), 损失率分母含全部时段(问"理论能发多少"); 同一低风时段在可用率里不计时间、在损失率里计入基数 — 这是两个指标的设计差异不是错, 但两者不可直接相乘或互推。低风待机对损失的贡献仅 118 MWh(0.5%)',"rpt.cal.partial":" — {m} 数据不满月(覆盖 {c}%), 月度已按天归一","rpt.cal.period":"统计期","rpt.cal.rating":"判级","rpt.cal.rating_d":"由振动/温度/润滑/油液四源融合得出; 行动等级由综合报告出具","rpt.cal.stop":"停机","rpt.cal.stop_d":"可靠性统计方法 ≥1h 段, 电量账为逐条工况态 — 两个数都对, 不可相减","rpt.cal.title":"统计方法与数据边界","rpt.cal.wo":"工单","rpt.cal.wo_d":"台账 2020~2024-11, 本报告不对本期检修执行下结论","rpt.caliber_lbl":"统计方法: ","rpt.chain.cal":"「动作」一列不可判 — {b}","rpt.chain.note":"六步: 证据 → 机制 → 判级 → 排期 → 动作 → 验收。当前 {s}。","rpt.chain.title":"决策链进度","rpt.chapters":"{n} 个章节","rpt.cloud_note":"; 内容会外发到模型厂商","rpt.compose":"生成","rpt.compose_fail":"生成失败: {e}","rpt.composed":"已按需求编排 {n} 块{narr} · {m} 用时 {s}s","rpt.composing":"模型编排中… 挑组件 + 写总结","rpt.emon.act":"上网 MWh","rpt.emon.cal":"覆盖率<50% 的月不参与环比","rpt.emon.cov":"覆盖","rpt.emon.eflh":"等效满发 h","rpt.emon.loss":"损失 MWh","rpt.emon.m":"月","rpt.emon.partial":" 不满月","rpt.emon.pct":"损失率","rpt.emon.title":"逐月发电","rpt.empty_canvas":"画布是空的 — 先从组件库选内容","rpt.export_docx":"导出 Word","rpt.export_xlsx":"导出 Excel","rpt.eyebrow":"汇报定制 · 画布","rpt.facts.agg":"聚合层","rpt.facts.sub":"{n} 条, 契约 {sha}; 数据/时间窗/结论只经契约更新","rpt.facts.sys":"系统","rpt.facts.text":"结论","rpt.facts.title":"可交付级结论 · 契约生成","rpt.facts.verdict":"裁决","rpt.foot_asof":"出件 {d}","rpt.foot_deid":"判据门槛与特征频率已脱敏","rpt.foot_src":"数据源 SCADA 10min · 报警事件 · 工单台账 · CMS 振动 · 油液化验","rpt.foot_trace":"结论可回溯至本体对象","rpt.frate.cal":"不满月按天归一","rpt.frate.note":"柱高=日均条数, 不是月总数。","rpt.frate.title":"月度故障率","rpt.g.end":"收尾","rpt.g.flt":"故障","rpt.g.gen":"发电","rpt.g.rel":"可靠性","rpt.g.unit":"机组","rpt.grounded":"数字全部接地","rpt.hint_idle":"悬停查看组件说明 · 已选组件再次点击移出 · 右侧 ↑↓ 调整顺序","rpt.kpi.act":"上网电量","rpt.kpi.action":"需行动机组","rpt.kpi.action_n":"定论 {a} · 预警 {b} · 候选 {c}","rpt.kpi.annual":"年化约 {v} h","rpt.kpi.avail":"时间可用率","rpt.kpi.avail_n":"不含调度令与低风待机","rpt.kpi.eflh":"等效满发小时","rpt.kpi.loss":"损失率","rpt.kpi.mom":"环比 {v}%","rpt.kpi.mom_na":"环比不可比(末月不满)","rpt.kpi.mtbo":"平均停机间隔","rpt.kpi.mtbo_n":"停机 {n} 起 · 单次均 {h}h","rpt.kpi.theo":"理论可发 {v}","rpt.library":"组件库","rpt.library_note":"点击加入报告, 再次点击移出 · 画布里已有 {n} 块","rpt.local_note":"; 数据不出本地","rpt.loop.cal":"振动标量前后对比","rpt.loop.comp":"部件","rpt.loop.date":"换件日期","rpt.loop.note":"这几台正是算法当初的检出台 ⇒ 故障前能看见、换件后能看见恢复。","rpt.loop.post":"换后","rpt.loop.pre":"换前","rpt.loop.ratio":"比值","rpt.loop.title":"端到端闭环实证","rpt.narr.cal":"模型 {m} 生成 · 数字取自系统实测摘要 · 数据回抓校验{g}","rpt.narr.empty":"还没有生成 — 在上面的交互窗输入报告要求。","rpt.narr.g_n":"报 {n} 处待核","rpt.narr.g_ok":"全通过","rpt.narr.title":"运行总结","rpt.narr.ungr":"⚠ 以下数值由模型自行推算, 不在原始数据摘要中, 引用前须核对: {v}","rpt.narr_plus":" + 一段运行总结","rpt.need_empty":"先输入报告要求","rpt.need_head":"输入报告要求","rpt.need_hint":"模型依据需求选取组件, 并基于实测数据生成运行总结","rpt.need_ph":"例如: 上报集团月报, 侧重设备可靠性与重点机组","rpt.no_compose":"本部署未启用编排接口, 画布仍可手动拼装","rpt.no_models":"本部署未配置任何模型密钥, 编排不可用","rpt.paper_sub":"统计期 {win} | {n} 台","rpt.paper_title":"运行分析报告","rpt.pareto.cal":"报警事件表","rpt.pareto.title":"故障帕累托","rpt.parts.cal":"归因=段起点±30min 首发码","rpt.parts.ev":"事件","rpt.parts.ext":" (外部)","rpt.parts.h":"停机h","rpt.parts.mdt":"单次停机时长(MDT,h)","rpt.parts.mtbf":"平均无故障间隔(MTBF,h)","rpt.parts.part":"部件","rpt.parts.title":"部件停机","rpt.parts.units":"影响机组","rpt.plan.1":'补机制定性 — {n} 台停在"判了级但根因未定", 是当前最大单一瓶颈',"rpt.plan.2":"回收 25~26 工单 — 台账止 2024-11, 本期检修执行与闭环无法自动判定","rpt.plan.3":"油液采样节奏 — 四源里油液长期 stale, 只能作回测锚","rpt.plan.4":"限电侧 — 损失六成在交易与调度侧, 设备侧改善空间有限","rpt.plan.cal":"建议级 — 排期与动作须经审批","rpt.plan.title":"下期计划与建议","rpt.preset.blank":"空白画布","rpt.preset.month":"月度运行分析","rpt.preset.topic":"设备专题","rpt.preset.week":"周报","rpt.preset.year":"年度总结","rpt.presets":"预设","rpt.preview_empty":"文档预览窗 — 从上面的组件库点选内容, 此处显示报告预览","rpt.print":"打印 / 存 PDF","rpt.quad.cal":"纵界=10min(一个SCADA采样格)","rpt.quad.note":"右下角报警码属重复触发, 不应按条数排定优先级。","rpt.quad.title":"故障模式四象限","rpt.ram.cal":"SCADA ≥1h 停机段, 不含调度令; 海上 MDT 含交通窗口","rpt.ram.note":"设备类 {a}h / 外部类 {b}h (电网·风况·运维操作不计设备可靠性)","rpt.ram.title":"可靠性 × 可维修性","rpt.ungrounded_n":"{n} 个数字待核","rpt.units.at":"卡在","rpt.units.cal":"四源融合判级","rpt.units.clear":"全通","rpt.units.ev":"部件与证据","rpt.units.head":"需跟踪 {n} 台 / {tot} | 瓶颈 ","rpt.units.prog":"进度","rpt.units.rising":"在升 {r}×","rpt.units.state":"状态","rpt.units.stuck":"{n} 台卡在「{s}」","rpt.units.title":"重点机组与处置","rpt.up_note":"上报版 — 判据门槛与特征频率已脱敏","rpt.up_tag":"上报版","rpt.water.cal":"SCADA 10min 工况态分解; 损失=同工况理论出力与实测之差。量级自检为防虚高的下限校验, 不是风资源判据","rpt.water.cap_bad":"量级自检: 理论 ≥ 全额定上限 {cap} MWh ✗ 数字不可信","rpt.water.cap_ok":"量级自检: 理论低于全额定上限 {cap} MWh ✔","rpt.water.note":"理论可发 {theo} = 上网 {act} + 损失 {loss} MWh ({pct}%)","rpt.water.title":"发电完成情况","rv.advci":"AdvCI","rv.dual":"双模型审","rv.lite":"lite","rv.none":"未审","st.bad":"危险","st.excellent":"优秀","st.ok":"良好","st.ok_excellent":"良好 / 优秀","st.unk":"不可判","st.warn":"报警","step.acceptance":"验收","step.action":"动作","step.evidence":"证据","step.mechanism":"机制","step.rating":"判级","step.schedule":"排期","step.site_records":"现场记录","step.stuck_at":"卡在「{step}」","sys.blade":"叶片与叶根","sys.control":"主控与传感网","sys.converter":"变流器","sys.gearbox":"齿轮箱","sys.generator":"发电机","sys.main_bearing":"主轴承","sys.other":"其他","sys.pitch":"变桨","sys.tower":"塔架与基础","sys.yaw":"偏航","tab.assistant":"检修助手","tab.component":"部件问题","tab.decision":"检修决策","tab.energy":"电量算账","tab.fault":"故障统计","tab.generation":"发电性能","tab.ontology":"本体","tab.overview":"总览","tab.report":"汇报定制","tab.system":"系统维护","tab.vibration":"振动融合分析","tier.candidate":"候选","tier.candidate.s":"候选","tier.candidate_baseline":"候选·记基线","tier.candidate_baseline.s":"候选·记基线","tier.candidate_new":"候选·新发","tier.candidate_new.s":"候选·新发","tier.confirmed":"定论","tier.confirmed.s":"定论","tier.detail.不可判":"不可判","tier.detail.仲裁输入":"仲裁输入","tier.detail.优":"优","tier.detail.优秀":"优秀","tier.detail.传感器项":"传感器项","tier.detail.候选":"候选","tier.detail.候选·监视(复发)":"候选·监视(复发)","tier.detail.候选·跟踪":"候选·跟踪","tier.detail.危险":"危险","tier.detail.可降":"可降","tier.detail.复发候选(两轴合并)":"复发候选(两轴合并)","tier.detail.定论":"定论","tier.detail.弱同向新证":"弱同向新证","tier.detail.报":"报","tier.detail.报警":"报警","tier.detail.本体无新证":"本体无新证","tier.detail.正常":"正常","tier.detail.正样本":"正样本","tier.detail.温度单轴保留":"温度单轴保留","tier.detail.监视":"监视","tier.detail.监视(不开箱)":"监视(不开箱)","tier.detail.良":"良","tier.detail.良好":"良好","tier.detail.蓄能失效候选(定向查)":"蓄能失效候选(定向查)","tier.detail.观察":"观察","tier.detail.观察(发电机侧)":"观察(发电机侧)","tier.detail.记基线观察":"记基线观察","tier.detail.销案(定论)":"销案(定论)","tier.detail.降观察":"降观察","tier.detail.预警":"预警","tier.detail.预警·处置升急":"预警·处置升急","tier.detail.预警·处置规划":"预警·处置规划","tier.insufficient":"不足","tier.insufficient.s":"不足","tier.near":"准定论·预警","tier.near.s":"准定论","tier.normal":"正常","tier.normal.s":"正常","tier.reference":"参考","tier.reference.s":"参考","tier.withdrawn":"撤回","tier.withdrawn.s":"撤回","ui.all":"全部","ui.back_portal":"← 返回门户","ui.back_to":"← 返回{tab}","ui.collapse":"收起","ui.count":"条数","ui.data_hidden":"({n} 处数据文本尚无英文,需复核)","ui.date":"日期","ui.empty":"无数据","ui.error":"出错了","ui.expand":"展开","ui.loading":"载入中…","ui.not_ported":"本页尚未迁入新版。","ui.not_recorded":"台账未填","ui.open":"查看 →","ui.open_classic":"在经典版打开 →","ui.query":"查询","ui.reselect":"重新选择机组 / 测点","ui.retry":"重试","ui.system":"系统","ui.unit":"机组","ui.units":"机组","ui.verbatim":"原始记录 (中文)","ui.verbatim_note":"{n} 处为手册/工单原文, 无英文译本, 按原文转录。","unit.h":"h","unit.n":" 条","unit.units":"台","vp.(振动线未收录)":"(振动线未收录)","vp.主轴承(后)+集中润滑泵":"主轴承(后)+集中润滑泵","vp.发电机(引用同族, 见族主台)":"发电机(无本台独立证据, 参照同型机组)","vp.发电机(未映射)":"发电机(未对应到具体部件)","vp.发电机DE":"发电机DE","vp.发电机DE+NDE(两端)":"发电机DE+NDE(两端)","vp.发电机NDE":"发电机NDE","vp.齿轮箱(未映射)":"齿轮箱(未对应到具体部件)","vp.齿轮箱(测量链问题, 非部件)":"齿轮箱(测量链问题, 非部件)","vp.齿轮箱(谱线级, 未映射到部件)":"齿轮箱(频谱信号级 (未定位到具体零件), 未对应到具体部件)","vp.齿轮箱中间轴":"齿轮箱中间轴","vp.齿轮箱二级行星内齿圈":"齿轮箱二级行星内齿圈","vp.齿轮箱高速轴":"齿轮箱高速轴","win.2025H2":"2025H2","win.2026":"2026年","win.2026H1":"2026H1","win.30d":"近30日","win.90d":"近90日","win.all":"全程","win.apply":"应用","win.bad_order":"开始日期不能晚于结束日期","win.banner":"时间窗 {win} · 本页全部数字随上方时间窗切换","win.custom":"自定义","win.custom_hint":"自定义起止日期(含两端)。日粒度件(判级/停机台账/曲线)按日精确;月度聚合件按所跨月份取整,图上会写明。","win.custom_sel":"自定义 {a} ~ {b}","win.from":"开始日期(含)","win.label":"时间窗","win.months":"按月","win.need_both":"请把开始与结束日期都选上","win.partial":"时间窗内 {m} 数据不满月 (覆盖 {c}%), 月度图已按天归一","win.presets":"预设时间窗","win.through":"至{date}","win.to":"结束日期(含)","tab.documents":"交付文档","tab.recalc":"数据重算","doc.eyebrow":"交付文档","doc.loading":"正在读取交付文档…","doc.head":"交付文档 ({n})","doc.note":"交付文档随包提供;下载后可离线查阅。","doc.name":"文档","doc.size":"大小","doc.get":"获取","doc.download":"下载","rc.eyebrow":"数据重算","rc.loading":"正在读取重算状态…","rc.running":"重算进行中","rc.idle":"当前空闲","rc.note":"重算链按步执行;本页每 5 秒刷新状态与日志尾部。","rc.since":"开始于","rc.start":"开始重算","rc.log":"重算日志(尾部)","rc.empty":"(暂无日志)","tab.portal":"门户栏目","pt.eyebrow":"门户栏目","pt.head":"重构前门户上的栏目(已迁移 / 可达)","pt.note":"总览、振动·CMS、交付文档、数据重算已迁为页签;系统架构/方法/经验发现/案例·液压 见「架构与资料」页签;下列两项为在线服务入口。","pt.col":"栏目","pt.what":"说明","pt.open":"打开","pt.kind_portal":"门户存档页(release/portal.html 经网关 /portal 伺服)","pt.kind_svc":"在线服务(经网关)","tab.portal_sec":"架构与资料","ps.eyebrow":"系统架构 · 方法 · 经验发现 · 案例·液压","ps.missing":"该节内容未抽取到(请检查 v2.9.2 门户原文)。","tab.portal_src":"门户","pv.eyebrow":"观澜门户(Vue 装配 · v2.9.2 原文外壳与内嵌件)","pv.loading":"正在装配门户(外壳 + 内嵌件)…","pv.assembled":"门户已装配:内嵌件 {n} 件(外壳与内嵌件均取自 v2.9.2 原文)"};function o(t,e){let s=kr[t]??t;if(e)for(const[n,l]of Object.entries(e))s=s.split(`{${n}}`).join(String(l));return s}const Mr=["overview","energy","component","vibration","generation","fault","decision","assistant","report","system","documents","recalc","portal_sec","portal_src"],dn=["overview","energy","component","fault","vibration","generation","decision","assistant","system","report","documents","recalc","portal_sec","portal_src"],Sr={class:"eyebrow"},Tr={key:0,class:"panel"},Er={class:"small",style:{color:"var(--critical)"}},Cr={key:1,class:"panel"},Fr={class:"small muted"},Ar={class:"panel mb"},Or={class:"small muted"},qr={class:"panel mb"},Lr={class:"tblwrap"},jr={style:{"margin-top":"4px"}},Dr={style:{width:"60%"}},Pr={style:{width:"16%"}},Hr={style:{width:"24%"}},Rr={class:"small"},Ir={class:"small num"},Nr={class:"small"},Br=["href","download"],Wr=Ht({__name:"Documents",setup(t){const e=qt(null),s=qt(""),n=l=>l>=1048576?(l/1048576).toFixed(1)+" MB":Math.max(1,Math.round(l/1024))+" KB";return Be(async()=>{try{const i=await(await fetch("/api/delivery_docs")).json();i&&i.error?s.value=String(i.error):e.value=i&&i.docs||[]}catch(l){s.value=String(l&&l.message||l)}}),(l,i)=>(w(),S("section",null,[a("div",Sr,d(p(o)("doc.eyebrow")),1),s.value?(w(),S("div",Tr,[a("p",Er,d(s.value),1)])):e.value?(w(),S(it,{key:2},[a("div",Ar,[a("h3",null,d(p(o)("doc.head",{n:e.value.length})),1),a("p",Or,d(p(o)("doc.note")),1)]),a("div",qr,[a("div",Lr,[a("table",jr,[a("tr",null,[a("th",Dr,d(p(o)("doc.name")),1),a("th",Pr,d(p(o)("doc.size")),1),a("th",Hr,d(p(o)("doc.get")),1)]),(w(!0),S(it,null,bt(e.value,c=>(w(),S("tr",{key:c.name},[a("td",Rr,d(c.name),1),a("td",Ir,d(n(c.size||0)),1),a("td",Nr,[a("a",{href:c.url,download:c.name},d(p(o)("doc.download")),9,Br)])]))),128))])])])],64)):(w(),S("div",Cr,[a("p",Fr,d(p(o)("doc.loading")),1)]))]))}}),Ur={class:"eyebrow"},Kr={key:0,class:"panel"},Vr={class:"small",style:{color:"var(--critical)"}},Gr={key:1,class:"panel"},zr={class:"small muted"},Yr={class:"panel mb"},Jr={class:"small muted"},Xr={key:0,class:"small"},Zr=["disabled"],Qr={class:"panel mb"},tc={class:"small",style:{"max-height":"340px",overflow:"auto",margin:"0"}},ec=Ht({__name:"Recalc",setup(t){const e=qt(null),s=qt(""),n=qt(!1);let l=null;const i=async()=>{try{const r=await fetch("/api/recalc");e.value=await r.json()}catch(r){s.value=String(r&&r.message||r)}},c=async()=>{n.value=!0;try{await fetch("/api/recalc_start",{method:"POST"}),await i()}catch(r){s.value=String(r&&r.message||r)}finally{n.value=!1}};return Be(()=>{i(),l=setInterval(i,5e3)}),In(()=>{l&&clearInterval(l)}),(r,u)=>(w(),S("section",null,[a("div",Ur,d(p(o)("rc.eyebrow")),1),s.value?(w(),S("div",Kr,[a("p",Vr,d(s.value),1)])):e.value?(w(),S(it,{key:2},[a("div",Yr,[a("h3",null,d(e.value.running?p(o)("rc.running"):p(o)("rc.idle")),1),a("p",Jr,d(p(o)("rc.note")),1),e.value.started_at?(w(),S("p",Xr,[at(d(p(o)("rc.since"))+" ",1),a("code",null,d(e.value.started_at),1)])):$t("",!0),a("button",{class:"pill",disabled:n.value||e.value.running,onClick:c},d(p(o)("rc.start")),9,Zr)]),a("div",Qr,[a("h3",null,d(p(o)("rc.log")),1),a("pre",tc,d(e.value.log||p(o)("rc.empty")),1)])],64)):(w(),S("div",Gr,[a("p",zr,d(p(o)("rc.loading")),1)]))]))}}),sc={class:"eyebrow"},nc={class:"panel mb"},lc={class:"small muted"},ic={class:"panel mb"},ac={class:"tblwrap"},oc={style:{"margin-top":"4px"}},rc={style:{width:"22%"}},cc={style:{width:"56%"}},dc={class:"small"},uc={class:"small muted"},pc={class:"small"},hc=["href"],fc=Ht({__name:"Portal",setup(t){const e=[{id:"sim",label:"仿真",href:"/sim/",note:"仿真与回放(仿真台 18791)",kind:"svc"},{id:"admin",label:"状态",href:"/ops",note:"系统状态(运维台)",kind:"svc"},{id:"classic",label:"经典",href:"/web/detail_v2.html",note:"经典版页面(v2.9.2 原文原样:布局/样式/字体/图文表一致)",kind:"svc"}];return(s,n)=>(w(),S("section",null,[a("div",sc,d(p(o)("pt.eyebrow")),1),a("div",nc,[a("h3",null,d(p(o)("pt.head")),1),a("p",lc,d(p(o)("pt.note")),1)]),a("div",ic,[a("div",ac,[a("table",oc,[a("tr",null,[a("th",rc,d(p(o)("pt.col")),1),a("th",cc,d(p(o)("pt.what")),1),a("th",null,d(p(o)("pt.open")),1)]),(w(),S(it,null,bt(e,l=>a("tr",{key:l.id},[a("td",dc,[a("b",null,d(l.note),1)]),a("td",uc,d(l.kind==="portal"?p(o)("pt.kind_portal"):p(o)("pt.kind_svc")),1),a("td",pc,[a("a",{href:l.href},d(p(o)("pt.open")),9,hc)])])),64))])])])]))}}),mc=`</div><div class="pg" id="architecture" data-title="系统架构"><section class="hero"><div class="wrap"><div class="kicker">技术白皮书 · 系统架构</div><h1>从证据分析到处置建议</h1><p class="lead">五个相连的系统层:保留来源身份、落位设备上下文、检验机制、准备可问责的决定,并从检修结果中学习。</p></div></section>
- <section><div class="wrap"><div class="chips"><span class="chip">十分钟 SCADA</span><span class="chip">秒级数据</span><span class="chip">CMS</span><span class="chip">报警</span><span class="chip">工单</span><span class="chip">油样与检查</span><span class="chip">技术文档</span></div>
- <div class="rail" style="--n:5;margin-top:26px"><div class="node"><i>01</i><b>数据地基</b><small>每条记录能被辨识和解释吗?</small></div><div class="node"><i>02</i><b>设备本体</b><small>每条记录指向哪个物理对象与配置?</small></div><div class="node on"><i>03</i><b>证据引擎</b><small>证据支持某个具体机制吗?</small></div><div class="node"><i>04</i><b>决策服务</b><small>现在有什么动作是有依据的?</small></div><div class="node"><i>05</i><b>检修学习</b><small>动作改变了预期指标吗?</small></div></div>
- <div class="grid g2" style="margin-top:22px"><div class="callout"><b>验证过的现场结果</b> → 本体 + 证据史 → 下一轮分析</div><div class="callout warn"><b>必需证据缺失</b> → 点名采集任务 → 停止升级</div></div>
- <p class="sub" style="margin-top:12px">身份、来源完整性或必需证据未解决时,系统失败关闭;验证过的检修结果成为可复用的证据。</p></div></section>
- <section><div class="wrap"><div class="kicker">01 · 数据地基 · 登记与契约</div><h2>每条记录能被辨识和解释吗?</h2><div class="grid g2" style="margin-top:14px"><div class="card"><p>保留原始证据,定义每个通道:登记来源位置、指纹、时间覆盖与格式,不改原文件;十分钟与秒级数据核单位、采样间隔、时间戳、哨兵值、通道活性与运行状态。</p></div><div class="card"><div class="k">输出</div><p>来源登记簿、通道定义、可用时段与排除项。</p></div></div></div></section><section><div class="wrap"><div class="kicker">02 · 设备本体 · 落位</div><h2>每条记录指向哪个物理对象与配置?</h2><div class="grid g2" style="margin-top:14px"><div class="card"><p>通过受控的工程图谱连接证据:资产、系统、总成、部件、测点与通道、告警、规程、工单、文档相连;机型、配置、有效期与来源约束每一条映射,含糊的对象停在未分配。</p></div><div class="card"><div class="k">输出</div><p>按机型限定的设备对象、带类型的关系与出处。</p></div></div></div></section><section><div class="wrap"><div class="kicker">03 · 证据引擎 · 检验机制</div><h2>证据支持某个具体机制吗?</h2><div class="grid g2" style="margin-top:14px"><div class="card"><p>先验测量链与物理界,再比较绝对水平、同工况机群残差、变化、分布形状与合格谱证据;证据族分开,相互矛盾的记录保持可见。</p></div><div class="card"><div class="k">输出</div><p>有界的发现、疑似机制、支持证据、矛盾项,或「需更多数据」。</p></div></div></div></section><section><div class="wrap"><div class="kicker">04 · 决策服务 · 限定动作</div><h2>现在有什么动作是有依据的?</h2><div class="grid g2" style="margin-top:14px"><div class="card"><p>写一个可问责的决定对象:状态、机制、置信、后果、选项、责任人、到期日与闭合证据放在一起;系统准备监视/计划/动作三种选项,授权工程师批准现场与高成本动作。</p></div><div class="card"><div class="k">输出</div><p>可审阅的决定、批准人与执行边界。</p></div></div></div></section><section><div class="wrap"><div class="kicker">05 · 检修学习 · 验证与复用</div><h2>动作改变了预期指标吗?</h2><div class="grid g2" style="margin-top:14px"><div class="card"><p>工作包写明部件、规程、检查点与必需记录;检修后在同工况下比较同一指标,改善支持闭合,无改善则重开机制;验证过的结果挂回本体,供下一个相似案例。</p></div><div class="card"><div class="k">输出</div><p>现场记录、修后比较、闭合或重开的调查。</p></div></div></div></section>
- <section><div class="wrap"><div class="kicker">受保护的内容</div><h2>资产专属参考保持在受保护工作区内</h2><p class="sub">特征频率、业主与场站标识、私有技术文档与台级证据留在受保护工作区;公开图只展示架构。</p></div></section>
- </div>`,vc=`</div><div class="pg" id="method" data-title="方法"><section class="hero"><div class="wrap"><div class="kicker">工程方法</div><h1>六步分析与决策依据</h1><p class="lead">观澜把运行数据、设备上下文与检修历史连在一起,不隐藏不确定性。每个结果保留来源、时段与下一步验证。</p></div></section>
- <section><div class="wrap"><div class="kicker">输入</div><h2>十分钟 SCADA + 秒级数据</h2><div class="grid g3"><div class="card"><div class="k">十分钟 SCADA</div><h3>运行状态、热行为、负荷与机群比较</h3><p></p></div><div class="card"><div class="k">秒级数据</div><h3>快速暂态、控制响应与事件序列</h3><p></p></div><div class="card"><div class="k">CMS</div><h3>状态监测标量与合格谱</h3><p></p></div><div class="card"><div class="k">报警</div><h3>码按适用的整机厂码表解析</h3><p></p></div><div class="card"><div class="k">检修</div><h3>工单、检查、油样与换件</h3><p></p></div><div class="card"><div class="k">技术来源</div><h3>按机型限定的图纸、手册、规程与配置记录</h3><p></p></div></div>
- <div class="callout" style="margin-top:16px">单位、采样间隔、时间戳、哨兵值与通道活性在使用前核验。<b>有这一列不等于有活信号。</b></div></div></section>
- <section><div class="wrap"><div class="kicker">执行路径</div><h2>六步</h2><div class="rail" style="--n:6"><div class="node"><i>01</i><b>登记</b><small>来源:指纹与覆盖</small></div><div class="node"><i>02</i><b>落位</b><small>身份:机型与配置</small></div><div class="node"><i>03</i><b>验证</b><small>测量:单位、时间与活性</small></div><div class="node"><i>04</i><b>比较</b><small>状态:绝对与同工况对照</small></div><div class="node on"><i>05</i><b>检验</b><small>机制:支持与矛盾</small></div><div class="node"><i>06</i><b>发布</b><small>决定:动作、责任人与闭合</small></div></div></div></section>
- <section><div class="wrap"><div class="kicker">四道控制</div><h2>诊断结论的验证要求</h2><div class="grid g4"><div class="card"><div class="k">01</div><h3>先验测量链</h3><p>算特征之前先查静态偏置、缺失或默认值、时间戳对齐与真实采样行为。</p></div><div class="card"><div class="k">02</div><h3>匹配状态与时段</h3><p>同工况、同证据窗比较;检修与配置变更开启新时段。</p></div><div class="card"><div class="k">03</div><h3>证据保持独立</h3><p>同一传感器的多个特征仍是一族证据;共享预处理或共同测量链不构成互证。</p></div><div class="card"><div class="k">04</div><h3>缺必需证据就停</h3><p>缺必需证据只产出"需更多数据",点名采集任务,禁止升级到更强的结论。</p></div></div></div></section>
- <section><div class="wrap"><div class="kicker">决定与检修</div><h2>从发现到验证过的现场结果</h2><div class="grid g3"><div class="card"><div class="k">发现</div><h3>陈述状态</h3><p>部件、疑似机制、幅度、证据、矛盾与置信。</p></div><div class="card"><div class="k">决定</div><h3>选择 监视 / 计划 / 动作</h3><p>给出后果、选项、责任人、到期日、批准与闭合证据。</p></div><div class="card"><div class="k">现场结果</div><h3>看变了什么</h3><p>同工况下比较同一指标;闭合、继续或重开机制。</p></div></div><div class="callout" style="margin-top:16px">系统准备可审阅的工作范围与闭合所需证据;<b>不签发工作许可</b>,授权工程师批准现场与高成本动作。</div></div></section>
- <section><div class="wrap"><div class="kicker">边界保持可见</div><h2>记录决定边界</h2><div class="grid g2"><div class="card"><div class="k">十分钟数据</div><h3>分不开秒级作用的机制</h3><p>秒级数据改善时序证据,但本身不建立因果。</p></div><div class="card"><div class="k">相对偏差</div><h3>只是筛查结果</h3><p>直到有绝对物理量与适用边界支持为止。</p></div><div class="card"><div class="k">无确认阳性的阈值</div><h3>可排序、可筛查</h3><p>不能确认诊断。</p></div><div class="card"><div class="k">语言模型</div><h3>解释受控对象并引用记录</h3><p>不能发明关系、补缺输入或批准检修。</p></div></div></div></section>
- </div>`,_c=`</div><div class="pg" id="findings" data-title="经验发现"><section class="hero"><div class="wrap"><div class="kicker">现场经验</div><h1>现场经验与工程判断</h1><p class="lead">在 1.5 到 6 MW 机群上的工作,形成了一套鉴定证据、检验机制、支持检修决定的实用方法。</p><div class="chips"><span class="chip ev">59 项内部检查 → 8 条公开教训</span></div></div></section>
- <section><div class="wrap"><div class="grid g4"><div class="card"><div class="k">分析足迹</div><h3>60+ 个风场</h3><p>陆上 + 海上</p></div><div class="card"><div class="k">容量范围</div><h3>1.5–6 MW</h3><p></p></div><div class="card"><div class="k">架构</div><h3>双馈 · 直驱 · 半直驱</h3><p></p></div><div class="card"><div class="k">平台</div><h3>远景 · 金风 · 明阳 · 西门子</h3><p></p></div></div><p class="sub" style="margin-top:12px">项目身份、业主、场站、机组标识与资产专属诊断参数不公开。</p></div></section>
- <section><div class="wrap"><div class="kicker">八条反复出现的教训</div><h2>会改变工程结论的检查</h2><div class="grid g4" style="margin-top:14px"><div class="card"><div class="k">A · 采样</div><h3>让样本匹配问题</h3><p>比较机组或机群之前,先声明独立单位、聚合层级、对照组、分母与时间窗。</p></div><div class="card"><div class="k">B · 归因</div><h3>要机制,也要时间顺序</h3><p>共现与相关只能筛查假设;因果归因还需要物理机制、预期方向与事件级先后。</p></div><div class="card"><div class="k">C · 测量</div><h3>先验测量链</h3><p>有值的字段、固定偏置或安静的通道未必是活信号;先查单位、时间戳、采样、哨兵、偏置与传感器状态。</p></div><div class="card"><div class="k">D · 聚合</div><h3>先保留事件再汇总</h3><p>平均会抹掉极端、持续时长与受影响比例;出机群统计前先看点级形状、缺口与边界。</p></div><div class="card"><div class="k">E · 判据</div><h3>写明每条判据的适用域</h3><p>单位、阈值、方差、运行状态、控制时长、必需输入与边界附近的情形都随结果一起给出。</p></div><div class="card"><div class="k">F · 守护</div><h3>验证守护真的在跑</h3><p>文档里的检查在触发条件与生产调用路径确认前不提供任何保护,且失败必须可见。</p></div><div class="card"><div class="k">G · 管线</div><h3>让检查器失败来测它</h3><p>向隔离的样例注入已知错误,证明真实入口拒绝它,再恢复有效输入证明通过。</p></div><div class="card"><div class="k">H · 决定</div><h3>筛查与动作分开</h3><p>技术发现只有在范围、不确定性、后果、选项、责任人与批准明确后,才成为检修决定。</p></div></div></div></section>
- <section><div class="wrap"><div class="kicker">经验怎么用</div><h2>从异常发现到检修建议</h2><div class="rail" style="--n:3"><div class="node"><i>01</i><b>鉴定证据</b><small>现有数据能支持什么、不能支持什么、哪项检查补上缺口</small></div><div class="node"><i>02</i><b>落位设备上下文</b><small>通过本体映射到正确的机型、配置、部件、测点与疑似机制</small></div><div class="node on"><i>03</i><b>准备决定</b><small>给出监视/计划/动作选项、后果、现场范围、必需记录、批准人与闭合证据</small></div></div>
- <div class="callout" style="margin-top:22px"><b>经验边界。</b>经验横跨陆上与海上;换环境或换不熟悉的配置,复用任何判据或结论前都要重新验证控制、测量链、部件结构与运行制度。</div></div></section>
- <section id="contract-claims" data-contract="362a00a7649889ea79c3df3108c8b21f439da2537c93af8517da5bd92c855bba" data-version="v0"><div class="wrap"><div class="kicker">本场结论 · 契约生成</div><h2>定论与准定论·预警 (0 条)</h2><p class="sub">由结构化事实契约 362a00a7649889ea 渲染 (共 6 条); 数据、时间窗、结论只经契约更新, 本段禁手改 (release-manifest.content_contract)。</p><div style="overflow:auto"><table><tr><th>claim</th><th>裁决</th><th>结论</th><th>系统</th><th>窗 (天)</th></tr></table></div><h2 style="margin-top:22px">候选 · 参考 · 证据不足 (6 条, 按系统)</h2><details><summary>报警面 · 1 条 (候选 1)</summary><table><tr><th>claim</th><th>裁决</th><th>结论</th><th>缺项</th></tr><tr><td><code>RD-LEDGER-ALM-01</code></td><td>候选</td><td>报警集中: WTG08 5148 条(机群中位 616 条的 8.4 倍)</td><td>报警条数不等于缺陷严重度: 单码抖动(同一码反复报)会抬高条数; 未做同码基线归一。</td></tr></table></details><details><summary>传动链 · 1 条 (候选 1)</summary><table><tr><th>claim</th><th>裁决</th><th>结论</th><th>缺项</th></tr><tr><td><code>RD-LEDGER-WO-01</code></td><td>候选</td><td>重复检修: WTG33 的「偏航单元」累计 81 次(窗内)</td><td>检修台账记录的是"做过什么", 不等于"坏过几次": 同一部件的例行检查也会计次; 未做计划性/故障性停机区分(缺 work_type 字段)。</td></tr></table></details><details><summary>发电量 · 1 条 (参考 1)</summary><table><tr><th>claim</th><th>裁决</th><th>结论</th><th>缺项</th></tr><tr><td><code>RD-LEDGER-LOSS-01</code></td><td>参考</td><td>停机损失集中: WTG05 占全场停机损失 10%(2,874 MWh, 全场停机 29,368 MWh)</td><td>损失是"损失了多少电", 不是"为什么损失"; 含调度令停机(非缺陷)与限电, 需与故障类分开看。</td></tr></table></details><details><summary>温度面 · 1 条 (候选 1)</summary><table><tr><th>claim</th><th>裁决</th><th>结论</th><th>缺项</th></tr><tr><td><code>RD-LEDGER-TEMP-01</code></td><td>候选</td><td>温度相对离群: WTG01 的 tmp_wtc_TrafoTMa_mean 在 3750.0 功率档偏离机群中位 18.0K(工况窗 ref)</td><td>同工况中位比对的是"机群", 若全机群共因升温和(环境/冷却水温)则判据失效; 未接绝对限值(无 ISO/厂商温度锚)。</td></tr></table></details><details><summary>发电量, 功率曲线 · 1 条 (参考 1)</summary><table><tr><th>claim</th><th>裁决</th><th>结论</th><th>缺项</th></tr><tr><td><code>RD-LEDGER-PC-01</code></td><td>参考</td><td>功率曲线偏离: WTG03 同风速下功率偏差 -147 kW(判别: 风速计偏高候选(A类)); 全场判别分布 {'欠发候选(筛查级)': 3, '风速计偏高候选(A类)': 1}</td><td>同风速残差受机位风资源(尾流/扇区)影响; 未做机位修正, 故只作"待核"不作缺陷结论。</td></tr></table></details><details><summary>振动面 · 1 条 (候选 1)</summary><table><tr><th>claim</th><th>裁决</th><th>结论</th><th>缺项</th></tr><tr><td><code>RD-LEDGER-VIB-01</code></td><td>候选</td><td>振动面过闸线: 3 条特征线达「候选」及以上(13#·hs_rotor·BPFO(外圈), 35#·hs_rotor·BPFO(外圈), 6#·hs_rotor·BPFO(外圈))</td><td>机制未定 ⇒ **不命名部件**(滚道/圈侧须实物或换件闭环); 峰值拾取为本器口径(目标频率 ±2 bin 取最大), 无正样本锚 ⇒ 封顶「候选」, 不出「</td></tr></table></details><h2 style="margin-top:22px">已撤回 (0 条)</h2><ul></ul></div></section><!--/contract-claims--></div>`,gc=`</div><div class="pg" id="case_hydraulic" data-title="案例·液压"><section class="hero"><div class="wrap"><div class="kicker">发现案例 · 系统① 液压 · 变桨回路与高速轴制动回路</div><h1>八台机组变桨蓄能器失效</h1><p class="lead">如东海上 38 台 SWT-4.0-130。通过泵加载特征评估 70 号蓄能器储能能力,形成逐台复核与处置建议。证据状态以各项记录为准。</p>
- <div class="chips"><span class="chip s gd">健康 26 台</span><span class="chip s al">气容丧失 8 台</span><span class="chip s ob">边界 / 参数侧 5 台</span><span class="chip ev">证据窗 运行 → 2026-07-07</span><span class="chip ev">已处置 1 台 (4#) · 恢复基准待核对</span></div></div></section>
- <section><div class="wrap"><div class="kicker">01 · 问</div><h2>评估对象、监测量与适用条件</h2><div class="grid g5"><div class="card"><div class="k">系统</div><h3>液压 · 变桨回路</h3><p>一个油箱、两条回路:变桨大站 400 L / 245 bar,HS 制动器由大站经 P BRAKE 分出。</p></div><div class="card"><div class="k">监测量</div><h3>泵单次加载输出量 V_cyc</h3><p>加载时长 × 排量 36.8 L/min,来自 10-min 与秒级 SCADA 的泵启停信号。</p></div><div class="card"><div class="k">方向</div><h3>V_cyc 降低:单次进油量减少</h3><p>蓄能器气容丧失后,每次加载只能推进很少的油。</p></div><div class="card"><div class="k">评估限制</div><h3>缺 Δp 或未逐台落值</h3><p>横坐标缺失的台不外推;档案给组区间的台按区间画,不当单点。</p></div><div class="card"><div class="k">缺失资料</div><h3>轮毂 106 号无连续通道</h3><p>只能靠机组自检容量检查记录(235 bar 起测)。</p></div></div></div></section>
- <section><div class="wrap"><div class="kicker">02 · 证</div><h2>两组蓄能器,分工完全不同,判据只对 70 号有效</h2><div class="grid g2"><div class="card"><div class="k">70 号 · 泵站近端缓冲</div><h3>10 L / 180 bar</h3><p>活塞式,经 ø7 节流直连泵压主管,全额参与蓄能循环;A 类失效全在此件。系统总容变按仿真标定式分解:C = C管路 + C70 + 0.095·C106;预充 180 bar 由 38 台实测容变反算证实 (0.0839 ≈ 实测 0.087 L/bar)。</p></div><div class="card"><div class="k">106 号 · 轮毂顺桨主源</div><h3>6 × 30 L / 125 bar</h3><p>无连续 SCADA 通道,经长管 + 旋转接头 + 118 单向阀,对蓄能循环仅弱耦合 (系数 0.095)。有自检容量检查可查;最近记录 140 bar @20 ℃ = 正常。</p></div></div>
- <div class="grid g2" style="margin-top:16px"><div class="card"><div class="k">健康 · 26 台</div><h3>3.1 – 7.2 L</h3><p>全部机群带中位 4.4 L。独立核验:按变桨活动带标定的仿真健康点 4.9 L 落在带内,与中位差 12%,仿真结果与运行统计对照;独立性需另行核查。同期泵周期 96 s、加载 6 次/10 min、带宽 50 bar、油温 38 ℃、超压 0%。</p></div><div class="card"><div class="k">气容丧失 · 8 台</div><h3>0.52 L</h3><p>A 类中位 0.85 秒,为健康中位的 1/8.5。本质是系统总容变 C 由 0.087 塌到 0.0037 L/bar = 23 倍(剩下的只有纯管路柔度)。8# 实测同期:周期 2.6 s、加载 228 次/10 min、带宽 135、油温 51 ℃、超压占时 98.3%。</p></div></div></div></section>
- <section><div class="wrap"><div class="kicker">03 · 裁</div><h2>失效机理与鉴别依据</h2><div class="grid g3"><div class="card"><div class="k">阶跃变化的机理解释</div><h3>循环尖峰 → 铁片抬升 → 118 单向阀闭 → 轮毂 106 退出循环</h3><p>C 直接塌到纯管路 ≈0.003(对齐 8# 实测 0.0037)。一旦越过这个连锁点,指标阶跃下落,没有中间态。</p></div><div class="card"><div class="k">为什么不是漏油</div><h3>外漏只增每循环消耗,不改系统容变 C</h3><p>25# 泵输出 1.46× 而容变 C 仍在健康区 0.62 ⇒ 主导因素在消耗侧,先查漏点。但 C 已非满值,不能断言蓄能器完好,该台已补"同次测预充"。</p></div><div class="card"><div class="k">为什么不是泵磨损</div><h3>排量下降会拉长单次加载而不改频次</h3><p>实测 8# 是频次由 6 升到 228 次/10 min(38×)且单次时长反缩短,该特征不支持单独以泵磨损解释,仍需结合现场检查。</p></div></div><div class="callout" style="margin-top:16px">口径边界:反算出的 C 绝对值依赖假定排量 36.8 L/min;分型与健康带用的是实测 V_cyc,不受此影响。</div></div></section>
- <section><div class="wrap"><div class="kicker">04 · 分型</div><h2>V_cyc × Δp 二维判别:分型与处置参考</h2><div class="grid g4"><div class="card"><div class="k">右下</div><h3>换 70 号蓄能器</h3><p>压力波动范围扩大,单次进油量降低。7#、10#、8#、3#、20#、2#、35#。</p></div><div class="card"><div class="k">右上</div><h3>不换蓄能器</h3><p>压力波动范围扩大,但单次进油量保持 ⟹ 漏油或参数。25#。</p></div><div class="card"><div class="k">左上</div><h3>正常 · 30 台</h3><p>Δp 锁定 52,进油量满。</p></div><div class="card"><div class="k">左下 / 未落值</div><h3>参数侧 · 先测</h3><p>Δp 过窄属参数侧;Δp 未落值的台横坐标无处安放,未测 ≠ 正常。7#、10# 档案无 Δp,不因缺少坐标而取消现场复核。</p></div></div></div></section>
- <section><div class="wrap"><div class="kicker">05 · 改</div><h2>逐台处置建议</h2><table><tr><th>台</th><th>V_cyc (L/次) 原 → 现</th><th>Δp</th><th>判别</th><th>处置</th></tr><tr><td>7#</td><td class="n">9.61 → 1.8</td><td>—</td><td>气容丧失 · 全场衰减最快</td><td>换 70 号蓄能器</td></tr><tr><td>10#</td><td class="n">2.9 → 0.47</td><td>—</td><td>气容丧失 · 最新一起阶跃下降</td><td>换 70 号蓄能器</td></tr><tr><td>3# / 20# / 2# / 35#</td><td class="n">0.47–0.63 (组区间)</td><td>宽</td><td>气容丧失 · 档案未逐台落值</td><td>换 70 号蓄能器 (逐台落值后下单)</td></tr><tr><td>8#</td><td class="n">1.45 → 0.5</td><td>宽</td><td>气容丧失 · 频次 6 → 228 次/10 min</td><td>换 70 号蓄能器</td></tr><tr><td>21# / 28# / 19#</td><td class="n">0.98 / 1.15 / 0.52</td><td>宽</td><td>边界台</td><td>先测预充定型, 再定</td></tr><tr><td>25#</td><td class="n">4.33</td><td>宽 (泵输出 1.46×)</td><td>漏油或参数, 不是蓄能器</td><td>先现场核, 不换蓄能器</td></tr><tr><td>14# / 32#</td><td class="n">3.4–4.4 (健康带内)</td><td>窄</td><td>压力带宽问题</td><td>参数侧核</td></tr><tr><td>4#</td><td class="n">0.53 → 4.84</td><td>—</td><td>已处置 · 恢复基准待核对</td><td>验收:核对基准后同工况复核</td></tr></table><div class="callout warn" style="margin-top:14px">备件:70 号蓄能器 物资编码 A9B10051506(10 L / 180 bar 活塞式),编码取自备件系统「物资编码」字段;库存列表无导出日期,下单前必核 ERP 现存量,禁按本表采购。凡标「件号待确认」的条目,采购前联系现场核实。</div></div></section>
- <section><div class="wrap"><div class="kicker">06 · 顺桨安全</div><h2>顺桨储能与自检证据</h2><div class="grid g3"><div class="card"><div class="k">70 号失效</div><h3>SCADA 循环特征变化明显</h3><p>失电顺桨主源是轮毂 106(103 → 121 路),70 号不在此路。数据窗内 4 次全场停电全部安全顺桨、零超速。</p></div><div class="card"><div class="k">106 失氮(假设情形)</div><h3>SCADA 循环指标识别能力有限</h3><p>循环侧只有中度变化(吞吐约 2 L),与个体基线难分辨;能看见它的只有机组自检容量检查(UP03284 组,从轮毂 235 bar 起测)。后果最重:失电顺桨失去能量源。</p></div><div class="card"><div class="k">两者同时失效</div><h3>SCADA 上与单独 70 号失效不可分辨</h3><p>而实际后果是顺桨失败 ⇒ 不能仅凭 SCADA 排除液压失效。两套监测互补、同时关注。</p></div></div><div class="callout" style="margin-top:16px">将现有自检记录按月归档,用于跟踪 106 号蓄能器的容量变化。</div></div></section>
- <section><div class="wrap"><div class="kicker">07 · 量</div><h2>修后验证</h2><div class="grid g3"><div class="card"><div class="k">同工况复核</div><h3>同一指标 V_cyc,同一变桨活动带</h3><p>4# 已处置:0.53 → 4.84 L。4.84 L 低于此处所列 5.0–11.7 L 下限,与页面另一处 3.1–7.2 L 基准不一致。须核对工况与基准来源,当前不能据此确认修后恢复。</p></div><div class="card"><div class="k">阴性对照</div><h3>换蓄能器不该改变能量产出</h3><p>4# 换件在 E1 阴性对照池中(优化窗 22 天 < 28 → INSUFFICIENT,未出数),不夸大收益。</p></div><div class="card"><div class="k">记录归档</div><h3>工单 → 复核 → 台账</h3><p>每台的处置进检修任务,复核结果挂回本体;106 号自检记录进月度台账。</p></div></div><div class="chips" style="margin-top:14px"></div><p class="sub" style="margin-top:12px">依据:U6_变桨液压仿真台(SWT-4.0-130,图纸 1034384 / 1034386;参数标定自本场 38 台实测与原厂图纸,2026-08-13 现场证实)。本页数字全部来自《如东_液压系统治理清单_v1.2》,未重跑。<a href="#sim" data-nav="sim">仿真台在"仿真与回放"页可交互 →</a></p></div></section>
- </div>`,bc={class:"eyebrow"},yc={class:"panel mb",style:{display:"flex",gap:"8px","flex-wrap":"wrap"}},$c=["onClick"],xc={key:0,class:"panel"},wc={class:"small muted"},kc=["innerHTML"],Mc=Ht({__name:"PortalSections",setup(t){const e=[{id:"architecture",label:"系统架构",html:mc},{id:"method",label:"方法",html:vc},{id:"findings",label:"经验发现",html:_c},{id:"case_hydraulic",label:"案例·液压",html:gc}],s=qt("architecture"),n=H(()=>(e.find(i=>i.id===s.value)||e[0]).html),l=H(()=>!n.value);return(i,c)=>(w(),S("section",null,[a("div",bc,d(p(o)("ps.eyebrow")),1),a("div",yc,[(w(),S(it,null,bt(e,r=>a("button",{key:r.id,class:Ut(["pill",{on:r.id===s.value}]),onClick:u=>s.value=r.id},d(r.label),11,$c)),64))]),l.value?(w(),S("div",xc,[a("p",wc,d(p(o)("ps.missing")),1)])):(w(),S("div",{key:1,class:"ps-embed",innerHTML:n.value},null,8,kc))]))}}),Sc={class:"eyebrow"},Tc={key:0,class:"panel mb"},Ec={class:"small muted"},Cc={key:1,class:"panel mb"},Fc={class:"small muted"},un="/web/portal/",Ac=Ht({__name:"PortalView",setup(t){const e=qt(null),s=qt("loading"),n=qt("");async function l(i){const c=await fetch(i);if(!c.ok)throw new Error(i+" "+c.status);return await c.text()}return Be(async()=>{try{let i=await l(un+"shell.html");const c=Array.from(i.matchAll(/<!--@TEMPLATE:([^>]+?)-->/g)).map(v=>v[1]),r=await Promise.all(c.map(async v=>{try{return await l(un+"templates/"+encodeURIComponent(v)+".html")}catch{return""}}));c.forEach((v,f)=>{i=i.replace("<!--@TEMPLATE:"+v+"-->",r[f])});try{const v=await l(un+"governance_sources.json");i=i.replace("<!--@GOVERNANCE_SOURCES-->",'<script type="application/json" id="__governance_sources">'+v.replace(/</g,"\\u003c")+"<\/script>")}catch{}n.value=o("pv.assembled",{n:c.length});const u=new Blob([i],{type:"text/html;charset=utf-8"});e.value&&(e.value.src=URL.createObjectURL(u)),s.value="ready"}catch(i){n.value=String(i&&i.message||i),s.value="error"}}),(i,c)=>(w(),S("section",null,[a("div",Sc,d(p(o)("pv.eyebrow")),1),s.value!=="ready"?(w(),S("div",Tc,[a("p",Ec,d(s.value==="loading"?p(o)("pv.loading"):n.value),1)])):(w(),S("div",Cc,[a("p",Fc,d(n.value),1)])),a("iframe",{ref_key:"frame",ref:e,class:"portal-frame",title:"观澜门户",style:{width:"100%",height:"calc(100vh - 210px)",border:"0"}},null,512)]))}}),Oc={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},qc={critical:"bad",alarm:"warn",undeterminable:"unk",indeterminate:"unk","not evaluable":"unk",good:"ok",excellent:"ex",warn:"warn",bad:"bad",ok:"ok",unk:"unk",ex:"ex"},js=t=>Oc[String(t)]||qc[String(t)],Sl={证据:"evidence",机制:"mechanism",判级:"rating",排期:"schedule",动作:"action",验收:"acceptance"},Mn=t=>"st."+(t==="ex"?"excellent":t),Lt=t=>String(t).replace("WTG","").replace(/^0/,"")+"#",Mt=(t,e=0)=>{if(t==null||typeof t=="number"&&isNaN(t))return"—";const s=Number(t);return isNaN(s)?"—":s.toLocaleString("zh-CN",{maximumFractionDigits:e,minimumFractionDigits:e})},Tl=t=>{const e=js(t);return e?o(Mn(e)):String(t??"")},Lc=["振动","温度","润滑","油液","报警","工单"];function El(t){const e=Lc.map(n=>js((t?.[n]||{}).ostate)).filter(Boolean);if(!e.length)return"unk";if(e.includes("bad"))return"bad";if(e.includes("warn"))return"warn";const s=e.filter(n=>n!=="unk");return s.length?s.includes("ok")?"ok":"ex":"unk"}const Cl={bad:"critical",warn:"warning",unk:"unknown",ok:"good",ex:"excellent"},ke=t=>String(t??""),Wn=["叶片与叶根","变桨","偏航","齿轮箱","发电机","主轴承","变流器","塔架与基础","主控与传感网"],Ds={叶片与叶根:"blade",变桨:"pitch",偏航:"yaw",齿轮箱:"gearbox",发电机:"generator",主轴承:"main_bearing",变流器:"converter",塔架与基础:"tower",主控与传感网:"control",主轴:"main_bearing",其他:"other"},Wi=(()=>{const t={};for(const e of Wn)t[Ds[e]]=e;for(const[e,s]of Object.entries(Ds))s in t||(t[s]=e);return t})(),Ps=t=>Ds[String(t)]||String(t),Fl=t=>Wi[String(t)]||String(t),ye=t=>{const e=Ds[String(t)]||String(t);return Wi[e]?o("sys."+e):String(t??"")},Hs=t=>ye(t),jc={key:0},Dc={class:"small"},Pc={href:"#tab=component","data-back":"1"},Hc={class:"panel mb"},Rc={style:{display:"flex",height:"12px","border-radius":"4px",overflow:"hidden",margin:"8px 0 4px"}},Ic={class:"small muted"},Nc={class:"tblwrap"},Bc={style:{width:"74px"}},Wc={class:"r",style:{width:"96px"}},Uc=["href"],Kc={class:"small"},Vc={class:"r"},Gc=["href"],zc={key:0,class:"panel mb"},Yc={style:{cursor:"pointer","font-weight":"600"}},Jc={class:"tblwrap"},Xc={style:{"margin-top":"10px"}},Zc={style:{width:"74px"}},Qc={class:"small"},td={key:1,class:"panel"},ed={class:"small"},sd={key:0},nd={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},ld={class:"eyebrow"},id={class:"panel mb"},ad={style:{display:"grid","grid-template-columns":"repeat(auto-fit,minmax(170px,1fr))",gap:"10px"}},od=["data-sys"],rd={class:"t"},cd={class:"bar"},dd={class:"small muted"},ud=["innerHTML"],pd={class:"small muted",style:{"margin-top":"8px"}},hd={key:1},fd={class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},md={class:"small"},vd={key:2},_d={class:"eyebrow"},gd={class:"panel mb"},bd={class:"small muted",style:{"font-weight":"400"}},yd={class:"small muted",style:{margin:"-2px 0 8px"}},$d={class:"tblwrap"},xd={class:"r"},wd={class:"r"},kd={class:"r"},Md={class:"r"},Sd={key:0},Td={class:"badge"},Ed={class:"num small"},Cd={class:"r"},Fd={class:"r"},Ad={class:"r"},Od={class:"r"},qd={class:"small"},Ld={class:"small muted"},jd={key:3},Dd={class:"panel mb"},Pd={class:"small"},Hd={href:"#tab=vibration"},Rd={class:"eyebrow"},Id={class:"panel mb"},Nd={class:"tblwrap"},Bd={class:"r"},Wd=["href"],Ud={class:"r"},Kd=["innerHTML"],Vd={class:"small"},Gd=Ht({__name:"Component",props:{d:{},sys:{}},setup(t){const e=t,s=H(()=>e.d?.sysdist||{}),n=H(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),l=H(()=>e.sys?Fl(e.sys):null),i=H(()=>Wn.filter(f=>s.value[f]).map(f=>{const m=s.value[f],_=m.报警||0,k=m.不可判||0,A=Object.values(m).reduce((K,E)=>K+E,0)||1,O=_>=8?"var(--critical)":_>=3?"var(--warning)":_?"var(--accent)":"var(--good)";return{s:f,dist:m,a:_,u:k,N:A,col:O}}));function c(f){return(f.syss||[]).map(m=>`<a href="/problem/${f.t}/${encodeURIComponent(Fl(m)||m)}">${ye(m)}</a>`).join(" · ")}const r=H(()=>{const m=(((e.d?.control||{}).energy||{}).items||[]).filter(_=>_.k==="停机").map(_=>_.h)[0];return m??null}),u=H(()=>{const f=n.value?.表||[],m=Math.max(1,...f.map(_=>_.停机时长h));return f.map(_=>({r:_,maxH:m,sev:_.部件==="无记录停机"?"var(--unknown)":_.外部?"var(--accent)":_.占停机>=.06?"var(--critical)":_.占停机>=.03?"var(--warning)":"var(--good)"}))}),v=H(()=>{const f=l.value;if(!f)return null;const m=(e.d?.systems||{})[f]||[],_=s.value[f]||{},k=(e.d?.systems||{})[f+"·良好"]||[],A=K=>_[K]||0,O=Object.values(_).reduce((K,E)=>K+E,0)||1;return{s:f,N:O,gd:k,cnt:A,al:m.filter(K=>K.st==="报警"),un:m.filter(K=>K.st==="不可判"),dist:_}});return(f,m)=>v.value?(w(),S("section",jc,[a("p",Dc,[a("a",Pc,d(p(o)("ui.back_to",{tab:p(o)("tab.component")})),1)]),a("div",Hc,[a("h3",null,d(p(o)("cmp.detail_head",{sys:p(ye)(v.value.s),n:v.value.N})),1),a("div",Rc,[(w(),S(it,null,bt([["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],([_,k])=>a("i",{key:_,style:Dt(`width:${(v.value.cnt(_)/v.value.N*100).toFixed(1)}%;background:var(--${k})`)},null,4)),64))]),a("div",Ic,d(p(o)("cmp.counts",{a:v.value.cnt("报警"),u:v.value.cnt("不可判"),g:v.value.cnt("良好"),e:v.value.cnt("优秀")})),1)]),(w(!0),S(it,null,bt([v.value.al,v.value.un],(_,k)=>sl((w(),S("div",{key:k,class:"panel mb"},[a("h3",null,d(k===0?p(o)("cmp.alarm_units"):p(o)("cmp.unk_units"))+" "+d(p(o)("cmp.n_units",{n:_.length})),1),a("div",Nc,[a("table",null,[a("tr",null,[a("th",Bc,d(p(o)("ui.unit")),1),a("th",null,d(p(o)("cmp.why")),1),a("th",Wc,d(p(o)("cmp.detail")),1)]),(w(!0),S(it,null,bt(_,A=>(w(),S("tr",{key:A.t},[a("td",null,[a("a",{href:`/turbine/${A.t}`},[a("b",null,d(p(Lt)(A.t)),1)],8,Uc)]),a("td",Kc,d(A.why),1),a("td",Vc,[a("a",{class:"small",href:`/problem/${A.t}/${encodeURIComponent(v.value.s)}`},d(p(o)("cmp.detail_link")),9,Gc)])]))),128))])])])),[[gl,_.length]])),128)),v.value.gd.length?(w(),S("details",zc,[a("summary",Yc,d(p(o)("cmp.good_units",{n:v.value.gd.length})),1),a("div",Jc,[a("table",Xc,[a("tr",null,[a("th",Zc,d(p(o)("ui.unit")),1),a("th",null,d(p(o)("cmp.why")),1)]),(w(!0),S(it,null,bt(v.value.gd,_=>(w(),S("tr",{key:_.t},[a("td",null,[a("b",null,d(p(Lt)(_.t)),1)]),a("td",Qc,d(_.why),1)]))),128))])])])):$t("",!0),!v.value.al.length&&!v.value.un.length&&!v.value.gd.length?(w(),S("div",td,[a("p",ed,d(p(o)("cmp.none")),1)])):$t("",!0)])):(w(),S(it,{key:1},[t.d.sysmx_pending?(w(),S("section",sd,[a("div",nd,[a("b",null,d(p(o)("cmp.grading_pending")),1),at(" "+d(p(o)("cmp.grading_pending_why",{span:t.d.sysmx_span||""})),1)])])):$t("",!0),a("section",null,[a("div",ld,d(p(o)("cmp.by_system")),1),a("div",id,[a("div",ad,[(w(!0),S(it,null,bt(i.value,_=>(w(),S("div",{key:_.s,class:"sysc",role:"button",tabindex:"0","data-sys":p(Ps)(_.s),style:Dt(`cursor:pointer;border-left:3px solid ${_.col}`)},[a("div",rd,[a("b",null,d(p(ye)(_.s)),1)]),a("div",cd,[(w(),S(it,null,bt([["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],([k,A])=>sl(a("i",{key:k,style:Dt(`width:${(_.dist[k]/_.N*100).toFixed(1)}%;background:var(--${A})`)},null,4),[[gl,_.dist[k]]])),64))]),a("div",dd,[a("span",{innerHTML:p(o)("cmp.alarm_n",{a:`<b style="color:${_.col}">${_.a}</b>`})},null,8,ud),at(d((_.u?p(o)("cmp.unk_n",{u:_.u}):"")+p(o)("cmp.fleet_n",{n:_.N})),1)])],12,od))),128))]),a("p",pd,d(p(o)("cmp.cards_note")),1)])]),t.d.rel&&t.d.rel.err?(w(),S("section",hd,[a("div",fd,[a("p",md,d(p(o)("flt.block_err",{k:"rel",e:t.d.rel.err})),1)])])):n.value?(w(),S("section",vd,[a("div",_d,d(p(o)("cmp.rel_eyebrow",{win:n.value.窗})),1),a("div",gd,[a("h3",null,[at(d(p(o)("cmp.rel_head"))+" ",1),a("span",bd,d(p(o)("cmp.rel_meta",{t:n.value.总停机h,a:n.value.设备类停机h,b:n.value.外部类停机h})),1)]),a("p",yd,d(p(o)("cmp.rel_note",{h:r.value==null?"":" "+p(Mt)(r.value)+"h"})),1),a("div",$d,[a("table",null,[a("tr",null,[a("th",null,d(p(o)("cmp.rel_part")),1),a("th",null,d(p(o)("cmp.rel_h")),1),a("th",xd,d(p(o)("cmp.rel_ev")),1),a("th",wd,d(p(o)("cmp.rel_mtbo")),1),a("th",kd,d(p(o)("cmp.rel_mdt")),1),a("th",Md,d(p(o)("cmp.rel_units")),1),a("th",null,d(p(o)("cmp.rel_fm")),1)]),(w(!0),S(it,null,bt(u.value,_=>(w(),S("tr",{key:_.r.部件},[a("td",null,[a("b",null,d(p(Hs)(_.r.部件)),1),_.r.外部?(w(),S("span",Sd,[m[0]||(m[0]=at(d(" "),-1)),a("span",Td,d(p(o)("cmp.external")),1)])):$t("",!0)]),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(_.r.停机时长h/_.maxH*72)}px;background:${_.sev}`)},null,4),a("span",Ed,d(_.r.停机时长h)+"h · "+d((_.r.占停机*100).toFixed(1))+"%",1)]),a("td",Cd,d(_.r.事件数),1),a("td",Fd,d(_.r.外部?"—":_.r.MTBF_h||"—"),1),a("td",Ad,d(_.r.MDT_h),1),a("td",Od,d(_.r.影响台数),1),a("td",qd,d(_.r.典型失效模式||"—"),1)]))),128))])]),a("p",Ld,d(n.value.口径),1)])])):$t("",!0),t.d.fus&&!t.d.fus.err?(w(),S("section",jd,[a("div",Dd,[a("p",Pd,[at(d(p(o)("cmp.fusion_moved"))+" ",1),a("a",Hd,[a("b",null,d(p(o)("tab.vibration")),1)]),at(" "+d(p(o)("cmp.fusion_n",{n:(t.d.fus.表||[]).length})),1)])])])):$t("",!0),a("section",null,[a("div",Rd,d(p(o)("cmp.cross_eyebrow")),1),a("div",Id,[a("h3",null,d(p(o)("cmp.watch_head",{n:(t.d.watch||[]).length})),1),a("div",Nd,[a("table",null,[a("tr",null,[a("th",null,d(p(o)("ui.unit")),1),a("th",Bd,d(p(o)("cmp.n_sys")),1),a("th",null,d(p(o)("cmp.hit_sys")),1),a("th",null,d(p(o)("cmp.basis")),1)]),(w(!0),S(it,null,bt(t.d.watch||[],_=>(w(),S("tr",{key:_.t},[a("td",null,[a("a",{href:`/turbine/${_.t}`},[a("b",null,d(p(Lt)(_.t)),1)],8,Wd)]),a("td",Ud,d(_.n),1),a("td",{class:"small",innerHTML:c(_)},null,8,Kd),a("td",Vd,d(_.why),1)]))),128))])])])])],64))}}),zd="modulepreload",Yd=function(t,e){return new URL(t,e).href},Al={},Jd=function(e,s,n){let l=Promise.resolve();if(s&&s.length>0){let c=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const r=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),v=u?.nonce||u?.getAttribute("nonce");l=c(s.map(f=>{if(f=Yd(f,n),f in Al)return;Al[f]=!0;const m=f.endsWith(".css"),_=m?'[rel="stylesheet"]':"";if(!!n)for(let O=r.length-1;O>=0;O--){const K=r[O];if(K.href===f&&(!m||K.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${_}`))return;const A=document.createElement("link");if(A.rel=m?"stylesheet":zd,m||(A.as="script"),A.crossOrigin="",A.href=f,v&&A.setAttribute("nonce",v),document.head.appendChild(A),m)return new Promise((O,K)=>{A.addEventListener("load",O),A.addEventListener("error",()=>K(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(c){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=c,window.dispatchEvent(r),!r.defaultPrevented)throw c}return l.then(c=>{for(const r of c||[])r.status==="rejected"&&i(r.reason);return e().catch(i)})},Xd=["data-chart"],Zd=Ht({__name:"EChart",props:{option:{},height:{}},setup(t){const e=t,s=qt(null);let n=null;async function l(){if(!s.value)return;const i=await Jd(()=>import("./index-BAPDkhe3.js"),[],import.meta.url);n||(n=i.init(s.value,void 0,{renderer:"canvas"})),n.setOption(e.option,!0)}return Be(l),is(()=>e.option,l,{deep:!0}),mi(()=>{n&&(n.dispose(),n=null)}),(i,c)=>(w(),S("div",{class:"echart","data-chart":JSON.stringify(t.option),style:Dt(`height:${t.height||"260px"}`),ref_key:"el",ref:s},null,12,Xd))}}),Ui=(t,e)=>{const s=t.__vccOpts||t;for(const[n,l]of e)s[n]=l;return s},Ke=Ui(Zd,[["__scopeId","data-v-999bee15"]]),Qd={key:0},tu={class:"panel"},eu={class:"small muted"},su={key:1},nu={class:"kpis",style:{"margin-bottom":"12px"}},lu={key:0},iu={class:"grid2"},au={class:"panel span2"},ou={class:"small muted",style:{"font-weight":"400"}},ru={class:"panel"},cu={style:{"font-weight":"600"}},du={class:"num"},uu={class:"small muted"},pu={class:"small muted",style:{"margin-top":"6px"}},hu={class:"panel"},fu={class:"small muted",style:{"font-weight":"400"}},mu={class:"tblwrap"},vu={class:"r",style:{width:"90px"}},_u={class:"small"},gu={class:"num small"},bu={class:"r small"},yu={class:"small muted",style:{"margin-top":"6px"}},$u=Ht({__name:"Energy",props:{d:{}},setup(t){const e=t,s=H(()=>(e.d?.control||{}).energy),n=H(()=>(e.d?.control||{}).states||[]),l={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},i=_=>l[_]?o(l[_]):_,c=H(()=>{const _=s.value||{};return[{v:Mt(_.theo),u:"MWh",l:o("en.kpi_theo"),k:""},{v:Mt(_.act),u:"MWh",l:o("en.kpi_act",{h:Mt(_.eflh)}),k:"ok"},{v:Mt(_.loss_pct,1),u:"%",l:o("en.kpi_loss",{v:Mt(_.loss)}),k:_.loss_pct>=10?"warn":""},{v:_.cap_ok?o("en.cap_pass"):o("en.cap_fail"),u:"",l:o("en.cap_note",{op:_.cap_ok?"<":"≥",cap:Mt(_.cap)}),k:_.cap_ok?"ok":"bad"}]}),r=_=>_.indexOf("限电")>=0||_.indexOf("调度")>=0?0:_==="停机"?1:2,u=H(()=>{const _=[0,0,0];for(const k of s.value?.items||[])_[r(k.k)]+=k.loss;return _}),v=H(()=>{const _=s.value||{},k=(_.items||[]).filter(E=>E.loss>0).map(E=>({name:E.k,value:Math.round(E.loss)})),A=u.value,O=A.reduce((E,q)=>E+q,0)||1,K=A.map(E=>Math.round(E/O*100)).filter((E,q)=>A[q]/O*500>46);return{title:{text:o("en.balance"),left:"center",textStyle:{fontSize:13}},tooltip:{trigger:"axis"},grid:{left:70,right:20,top:44,bottom:40},xAxis:{type:"category",data:k.map(E=>E.name)},yAxis:{type:"value",name:"MWh"},series:[{type:"bar",data:k.map(E=>E.value),itemStyle:{color:"#0b5fa5"}}],__data__:[Math.round(_.theo),Math.round(_.act),Math.round(k.reduce((E,q)=>E+q.value,0)),...k.map(E=>E.value),...K]}}),f=H(()=>{const _=u.value;return{grid:{left:90,right:24,top:20,bottom:30},xAxis:{type:"value",name:"MWh"},yAxis:{type:"category",data:[o("ch.blame.n1"),o("ch.blame.n2"),o("ch.blame.n3")]},series:[{type:"bar",data:_.map(k=>Math.round(k)),itemStyle:{color:"#2f7dbf"}}],__data__:[]}}),m=H(()=>Math.max(1,...n.value.map(_=>_.pct)));return(_,k)=>s.value?(w(),S("section",su,[a("div",nu,[(w(!0),S(it,null,bt(c.value,(A,O)=>(w(),S("div",{key:O,class:Ut(["kpi",A.k])},[a("b",null,[at(d(A.v),1),A.u?(w(),S("small",lu,d(A.u),1)):$t("",!0)]),a("span",null,d(A.l),1)],2))),128))]),a("div",iu,[a("div",au,[a("h3",null,[at(d(p(o)("en.balance"))+" ",1),a("span",ou,d(p(o)("en.win",{win:p(ke)(t.d.win)})),1)]),Ot(Ke,{option:v.value,height:"280px"},null,8,["option"])]),a("div",ru,[a("h3",null,d(p(o)("en.blame")),1),Ot(Ke,{option:f.value,height:"240px"},null,8,["option"]),(w(!0),S(it,null,bt(u.value,(A,O)=>(w(),S("div",{key:O,style:{display:"flex","align-items":"baseline",gap:"7px","margin-top":"5px"}},[a("i",{style:Dt(`flex:none;width:9px;height:9px;border-radius:2px;background:${["var(--accent)","var(--critical)","var(--muted)"][O]};opacity:.55`)},null,4),a("span",cu,d(p(o)(["ch.blame.n1","ch.blame.n2","ch.blame.n3"][O])),1),a("span",du,d(p(Mt)(Math.round(A)))+" MWh",1),a("span",uu,d(p(o)(["ch.blame.d1","ch.blame.d2","ch.blame.d3"][O])),1)]))),128)),a("p",pu,d(p(o)("en.blame_note",{n:p(Mt)(Math.round(((s.value.items||[]).find(A=>A.k==="停机")||{}).loss||0))})),1)]),a("div",hu,[a("h3",null,[at(d(p(o)("en.states"))+" ",1),a("span",fu,d(p(o)("en.win",{win:p(ke)(t.d.win)})),1)]),a("div",mu,[a("table",null,[a("tr",null,[a("th",null,d(p(o)("en.state")),1),a("th",null,d(p(o)("en.share")),1),a("th",vu,d(p(o)("en.loss_mwh")),1)]),(w(!0),S(it,null,bt(n.value,A=>(w(),S("tr",{key:A.k},[a("td",_u,d(i(A.k)),1),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(A.pct/m.value*84)}px;background:${A.k.indexOf("停机")>=0&&A.k.indexOf("调度")<0?"var(--critical)":"var(--accent)"}`)},null,4),a("span",gu,d(A.pct)+"% · "+d(p(Mt)(Math.round(A.h)))+"h",1)]),a("td",bu,d(p(Mt)(Math.round(A.loss))),1)]))),128))])]),a("p",yu,[at(d(t.d.control.anchors||""),1),k[0]||(k[0]=a("br",null,null,-1)),at(d(p(o)("en.states_note")),1)])])])])):(w(),S("section",Qd,[a("div",tu,[a("p",eu,d(p(o)("ui.empty")),1)])]))}}),xu=["innerHTML"],Se=Ht({__name:"LegacyChart",props:{html:{}},setup(t){return(e,s)=>(w(),S("div",{class:"legacy-chart",innerHTML:t.html},null,8,xu))}});window.__charts=function(t){const{t:e,fmt:s,esc:n,dv:l,EN:i}=t,c=/[㐀-鿿]/,r=T=>i&&c.test(String(T??"")),u=T=>(T=t.displayText?t.displayText(T):T==null?"":String(T),r(T)&&t.verb&&t.verb(),T),v=T=>{const V=u(T);return`<title${r(V)?' class="verbatim"':""}>${n(V)}</title>`},f=(T,V,J)=>`<svg class="dt" viewBox="0 0 ${T} ${V}" style="width:${T}px;max-width:100%;height:auto" role="img">${J}</svg>`,m=(T,V,J,D={})=>`<text x="${(+T).toFixed(1)}" y="${(+V).toFixed(1)}" font-size="${D.fs||9}" fill="${D.fill||"var(--muted)"}"${D.anchor?` text-anchor="${D.anchor}"`:""}${D.op?` opacity="${D.op}"`:""}${D.w?` font-weight="${D.w}"`:""}${D.tr?` transform="${D.tr}"`:""}${D.cls?` class="${D.cls}"`:""}>${J}</text>`,_=(T,V,J,D={})=>{const U=u(J);return m(T,V,n(U),r(U)?Object.assign({},D,{cls:"verbatim"}):D)},k={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},A=T=>k[T]?e(k[T]):u(T);function O(T){const V=(T||[]).filter(x=>x&&x.n>0&&x.med>0);if(V.length<3)return`<p class="small muted">${e("ch.quad.few")}</p>`;const J=720,D=330,U=58,B=16,F=44,R=16,P=x=>Math.log10(x),I=V.map(x=>P(x.n)),z=V.map(x=>P(x.med)),tt=Math.min(...I)-.15,st=Math.max(...I)+.15,X=Math.min(...z)-.15,rt=Math.max(...z)+.15,mt=x=>U+(P(x)-tt)/(st-tt)*(J-U-B),lt=x=>D-F-(P(x)-X)/(rt-X)*(D-R-F),_t=V.map(x=>x.n).sort((x,$)=>x-$),vt=_t[Math.floor(_t.length/2)],nt=mt(vt),Q=lt(600),h=Math.max(...V.map(x=>x.nt)),g=V.map(x=>{const $=3+Math.sqrt(x.nt/h)*7,Z=x.n>=vt&&x.med>=600,W=Z?"var(--critical)":"var(--accent)";return`<circle cx="${mt(x.n).toFixed(1)}" cy="${lt(x.med).toFixed(1)}" r="${$.toFixed(1)}" fill="${W}" fill-opacity=".5" stroke="${W}" stroke-width="1">${v(`${x.code} ${u(x.k)}
- `+e("ch.quad.tip",{n:x.n,med:x.med,h:x.h,nt:x.nt}))}</circle>`}).join(""),b=V.filter(x=>x.n>=vt||x.med>=600).slice(0,8).map(x=>m(mt(x.n)+9,lt(x.med)+3,n(x.code))).join(""),y=(x,$,Z,W)=>m(x,$,Z,{fs:10,op:.85})+m(x,$+12,W,{fs:8.5,op:.6}),M=x=>x>=3600?x/3600+"h":x>=60?x/60+"min":x+"s",C=[10,60,600,3600,36e3].filter(x=>P(x)>=X&&P(x)<=rt).map(x=>`<line x1="${U}" y1="${lt(x).toFixed(1)}" x2="${J-B}" y2="${lt(x).toFixed(1)}" stroke="var(--line)" stroke-opacity=".4"/>`+m(U-6,lt(x)+3,M(x),{anchor:"end"})).join(""),L=[1,10,100,1e3,1e4].filter(x=>P(x)>=tt&&P(x)<=st).map(x=>m(mt(x),D-F+14,x,{anchor:"middle"})).join(""),j=R+(D-F-R)/2;return f(J,D,`${C}${L}
- <line x1="${nt.toFixed(1)}" y1="${R}" x2="${nt.toFixed(1)}" y2="${D-F}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
- <line x1="${U}" y1="${Q.toFixed(1)}" x2="${J-B}" y2="${Q.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
- ${y(U+6,R+12,e("ch.quad.q1"),e("ch.quad.q1s"))}${y(J-B-130,R+12,e("ch.quad.q2"),e("ch.quad.q2s"))}
- ${y(U+6,D-F-18,e("ch.quad.q3"),e("ch.quad.q3s"))}${y(J-B-130,D-F-18,e("ch.quad.q4"),e("ch.quad.q4s"))}
- ${g}${b}
- ${m(U+(J-B-U)/2,D-6,e("ch.quad.xlab"),{fs:9.5,anchor:"middle"})}
- ${m(14,j,e("ch.quad.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${j.toFixed(1)})`})}`)}function K(T){const V=T.months||[],J=T.vals||[],D=T.cov||V.map(()=>1),U=T.per_day||[],B=720,F=250,R=48,P=14,I=52,z=18,tt=V.length||1,st=Math.max(...U.filter(vt=>vt!=null),1),X=(B-R-P)/tt;let rt="",mt="";V.forEach((vt,nt)=>{const Q=U[nt],h=D[nt]<.5;if(Q==null)return;const g=Q/st*(F-z-I),b=R+nt*X+X*.16,y=F-I-g,M=b+X*.34;rt+=`<rect x="${b.toFixed(1)}" y="${y.toFixed(1)}" width="${(X*.68).toFixed(1)}" height="${g.toFixed(1)}" rx="2" fill="${h?"var(--muted)":"var(--accent)"}" fill-opacity="${h?.32:.8}" stroke="${h?"var(--warning)":"none"}" stroke-dasharray="${h?"3 2":""}"><title>${e("ch.rate.tip",{m:vt,v:Q,n:J[nt],cov:(D[nt]*100).toFixed(0)})}</title></rect>`,mt+=m(M,y-4,Q,{anchor:"middle"})+m(M,F-I+13,e("ch.rate.month",{m:vt.slice(5)}),{anchor:"middle"})+m(M,F-I+25,e("ch.rate.n",{n:J[nt]}),{fs:8,op:.65,anchor:"middle"})+(h?m(M,F-I+37,e("ch.rate.days",{d:Math.round(D[nt]*30)}),{fs:8,fill:"var(--warning)",anchor:"middle"}):"")});const lt=[0,.5,1].map(vt=>m(R-6,F-I-vt*(F-z-I)+3,Math.round(st*vt),{anchor:"end"})).join(""),_t=z+(F-I-z)/2;return f(B,F,`<line x1="${R}" y1="${F-I}" x2="${B-P}" y2="${F-I}" stroke="var(--line)"/><line x1="${R}" y1="${z}" x2="${R}" y2="${F-I}" stroke="var(--line)"/>
- ${rt}${mt}${lt}${m(14,_t,e("ch.rate.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${_t.toFixed(1)})`})}`)}function E(T){if(!T||!T.theo)return"";const V=720,J=300,D=8,U=8,B=30,F=64,R=(T.items||[]).filter(lt=>lt.loss>0),P=R.length+2,I=(V-D-U)/P,z=(J-B-F)/T.theo;let tt=T.theo,st="",X=0;const rt=(lt,_t,vt,nt,Q)=>`<rect x="${(D+lt*I+I*.14).toFixed(1)}" y="${_t.toFixed(1)}" width="${(I*.72).toFixed(1)}" height="${Math.max(vt,1.2).toFixed(1)}" rx="2" fill="${nt}" fill-opacity="${Q}"/>`,mt=(lt,_t,vt,nt,Q)=>m(D+lt*I+I*.5,_t-6,nt,{fs:10,fill:Q||"var(--ink)",anchor:"middle",w:600})+m(D+lt*I+I*.5,J-F+14,vt,{fs:8.5,anchor:"middle"});return st+=rt(0,J-F-T.theo*z,T.theo*z,"var(--accent)",.45)+mt(0,J-F-T.theo*z,e("ch.wf.theo"),s(T.theo)),R.forEach(lt=>{X++;const _t=J-F-tt*z,vt=lt.loss*z;tt-=lt.loss;const nt=A(lt.k);st+=rt(X,_t,vt,"var(--critical)",.55)+`<line x1="${(D+(X-1)*I+I*.86).toFixed(1)}" y1="${_t.toFixed(1)}" x2="${(D+X*I+I*.14).toFixed(1)}" y2="${_t.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="2 2" stroke-opacity=".6"/>`+mt(X,_t,n(nt.length>12?nt.slice(0,11)+"…":nt),"−"+s(lt.loss),"var(--critical)")+v(e("ch.wf.tip",{nm:nt,loss:s(lt.loss),pct:(lt.loss/T.theo*100).toFixed(1),h:s(lt.h)}))}),st+=rt(P-1,J-F-T.act*z,T.act*z,"var(--good)",.6)+mt(P-1,J-F-T.act*z,e("ch.wf.act"),s(T.act),"var(--good)"),f(V,J,`<line x1="${D}" y1="${J-F}" x2="${V-U}" y2="${J-F}" stroke="var(--line)"/>${m(D,14,"MWh",{fs:9.5})}${st}`)}function q(T,V){const J=(T||[]).filter($=>$.MTBF_h&&$.MDT_h);if(J.length<3)return`<p class="small muted">${e("ch.ram.few")}</p>`;const D=720,U=340,B=56,F=112,R=48,P=16,I=$=>Math.log10($),z=J.map($=>I($.MTBF_h)),tt=J.map($=>$.MDT_h),st=Math.min(...z)-.08,X=Math.max(...z)+.08,rt=0,mt=Math.max(...tt)*1.12,lt=$=>B+(I($)-st)/(X-st)*(D-B-F),_t=$=>U-R-($-rt)/(mt-rt)*(U-P-R),vt=$=>{const Z=$.slice().sort((W,et)=>W-et);return Z[Math.floor(Z.length/2)]},nt=vt(J.map($=>$.MTBF_h)),Q=vt(tt),h=lt(nt),g=_t(Q),b=Math.max(...J.map($=>$.停机时长h)),y=$=>u(V?V($.部件):$.部件),M=J.map($=>{const Z=4+Math.sqrt($.停机时长h/b)*13,W=$.外部,et=$.MTBF_h<nt&&$.MDT_h>=Q,ot=W?"var(--muted)":et?"var(--critical)":"var(--accent)";return`<circle cx="${lt($.MTBF_h).toFixed(1)}" cy="${_t($.MDT_h).toFixed(1)}" r="${Z.toFixed(1)}" fill="${ot}" fill-opacity="${W?.3:.42}" stroke="${ot}" stroke-width="1.2" stroke-dasharray="${W?"3 2":""}">${v(e("ch.ram.tip",{p:y($),mtbf:$.MTBF_h,mdt:$.MDT_h,h:$.停机时长h,n:$.事件数,u:$.影响台数})+(W?e("ch.ram.tip_ext"):""))}</circle>`+_(lt($.MTBF_h)+Z+4,_t($.MDT_h)+3.5,u(y($)).slice(0,i?14:7),{fs:9.5,fill:W?"var(--muted)":"currentColor"})}).join(""),C=($,Z,W,et,ot)=>m($,Z,et,{fs:10,anchor:W,op:.9})+m($,Z+12,ot,{fs:8.5,anchor:W,op:.62}),L=[1e3,2e3,5e3,1e4,2e4].filter($=>I($)>=st&&I($)<=X).map($=>`<line x1="${lt($).toFixed(1)}" y1="${P}" x2="${lt($).toFixed(1)}" y2="${U-R}" stroke="var(--line)" stroke-opacity=".3"/>`+m(lt($),U-R+14,$>=1e3?$/1e3+"k":$,{anchor:"middle"})).join(""),j=[0,5,10,15,20].filter($=>$<=mt).map($=>m(B-6,_t($)+3,$,{anchor:"end"})).join(""),x=P+(U-R-P)/2;return f(D,U,`${L}${j}<line x1="${B}" y1="${U-R}" x2="${D-F}" y2="${U-R}" stroke="var(--line)"/><line x1="${B}" y1="${P}" x2="${B}" y2="${U-R}" stroke="var(--line)"/>
- <line x1="${h.toFixed(1)}" y1="${P}" x2="${h.toFixed(1)}" y2="${U-R}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
- <line x1="${B}" y1="${g.toFixed(1)}" x2="${D-F}" y2="${g.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
- ${C(B+6,P+12,"start",e("ch.ram.q1"),e("ch.ram.q1s"))}${C(D-F-6,P+12,"end",e("ch.ram.q2"),e("ch.ram.q2s"))}
- ${C(B+6,U-R-16,"start",e("ch.ram.q3"),e("ch.ram.q3s"))}${C(D-F-6,U-R-16,"end",e("ch.ram.q4"),e("ch.ram.q4s"))}
- ${M}${m(B+(D-F-B)/2,U-8,e("ch.ram.xlab"),{fs:9.5,anchor:"middle"})}
- ${m(13,x,e("ch.ram.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 13 ${x.toFixed(1)})`})}
- <circle cx="${D-F+16}" cy="${P+40}" r="5" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>${m(D-F+26,P+44,e("ch.ram.equip"))}
- <circle cx="${D-F+16}" cy="${P+58}" r="5" fill="var(--muted)" fill-opacity=".3" stroke="var(--muted)" stroke-dasharray="3 2"/>${m(D-F+26,P+62,e("ch.ram.ext"))}
- ${m(D-F+6,P+84,e("ch.ram.area"),{fs:8.5})}${m(D-F+6,P+98,e("ch.ram.median"),{fs:8.5})}`)}function G(T,V){const J=(T||[]).find(st=>st.部件==="无记录停机"),D=J?J.停机时长h:0,U=(T||[]).filter(st=>st.部件==="未归类").reduce((st,X)=>st+X.停机时长h,0),B=V-D-U,F=720,R=54,P=(st,X,rt,mt)=>`<rect x="${st.toFixed(1)}" y="14" width="${Math.max(X,1).toFixed(1)}" height="22" rx="3" fill="${rt}" fill-opacity="${mt}"/>`,I=B/V*F,z=U/V*F,tt=D/V*F;return f(F,R,`${P(0,I,"var(--accent)",.55)}${P(I,z,"var(--warning)",.5)}${P(I+z,tt,"var(--critical)",.5)}
- ${m(4,10,e("ch.attrib.ok",{h:Math.round(B),p:(B/V*100).toFixed(0)}))}
- ${m(I+z+tt-2,10,e("ch.attrib.none",{h:Math.round(D),p:(D/V*100).toFixed(0)}),{fill:"var(--critical)",anchor:"end"})}
- ${m(I+z/2,50,e("ch.attrib.uncls",{h:Math.round(U)}),{fill:"var(--warning)",anchor:"middle"})}`)}function N(T,V,J){const D=(T||[]).filter(y=>y&&y.v>0);if(!D.length)return`<p class="small muted">${e("ch.pareto.none")}</p>`;const U=520,B=236,F=46,R=40,P=40,I=14,z=D.length,tt=D.reduce((y,M)=>y+M.v,0),st=Math.max(...D.map(y=>y.v)),X=(U-F-R)/z,rt=y=>{y=u(y);const M=String(y).match(/^([0-9]+)/);return M?M[1]:String(y).slice(0,4)};let mt=0,lt="",_t=[],vt="",nt=null;D.forEach((y,M)=>{const C=y.v/st*(B-I-P),L=F+M*X+X*.14,j=B-P-C;lt+=`<rect x="${L.toFixed(1)}" y="${j.toFixed(1)}" width="${(X*.72).toFixed(1)}" height="${C.toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity="${M<3?.85:.45}">${v(`${u(y.k)}: ${s(y.v)}${V}`)}</rect>`,mt+=y.v;const x=mt/tt;nt===null&&x>=.8&&(nt=M+1);const $=F+M*X+X/2,Z=I+(1-x)*(B-I-P);_t.push(`${$.toFixed(1)},${Z.toFixed(1)}`),vt+=`<circle cx="${$.toFixed(1)}" cy="${Z.toFixed(1)}" r="2.4" fill="var(--warning)">${v(e("ch.pareto.cumtip",{k:u(y.k),p:(x*100).toFixed(0)}))}</circle>`});const Q=I+.2*(B-I-P),h=D.map((y,M)=>_(F+M*X+X/2,B-P+13,rt(y.k),{anchor:"middle"})).join(""),g=[0,.5,1].map(y=>m(F-5,B-P-y*(B-I-P)+3,s(Math.round(st*y)),{anchor:"end"})).join("")+[0,.5,1].map(y=>m(U-R+5,I+(1-y)*(B-I-P)+3,Math.round(y*100)+"%",{fill:"var(--warning)"})).join(""),b=D.slice(0,3).map(y=>`<b>${r(rt(y.k))?`<span class="verbatim">${n(u(rt(y.k)))}</span>`:n(rt(y.k))}</b> ${l(u(y.k).replace(/^[0-9]+ */,"").slice(0,18))}`).join(" · ");return f(U,B,`<line x1="${F}" y1="${B-P}" x2="${U-R}" y2="${B-P}" stroke="var(--line)"/><line x1="${F}" y1="${I}" x2="${F}" y2="${B-P}" stroke="var(--line)"/>${lt}
- <line x1="${F}" y1="${Q.toFixed(1)}" x2="${U-R}" y2="${Q.toFixed(1)}" stroke="var(--warning)" stroke-dasharray="4 3" stroke-opacity=".7"/>
- ${m(U-R-3,Q-4,e("ch.pareto.cum80"),{fill:"var(--warning)",anchor:"end"})}
- <polyline points="${_t.join(" ")}" fill="none" stroke="var(--warning)" stroke-width="1.5"/>${vt}${h}${g}
- ${m(F+(U-R-F)/2,B-3,e("ch.pareto.xlab"),{fs:8.5,anchor:"middle"})}`)+`<p class="small muted" style="margin-top:5px;line-height:1.6">${nt?`<b>${e("ch.pareto.key",{k:nt})}</b> (${e("ch.pareto.total",{n:z,tot:s(Math.round(tt)),unit:V})})`:e("ch.pareto.total",{n:z,tot:s(Math.round(tt)),unit:V})}<br>${e("ch.pareto.top3")}${b}${J?"<br>"+J:""}</p>`}function Y(T){const V=st=>st.indexOf("限电")>=0||st.indexOf("调度")>=0?0:st==="停机"?1:2,J=[e("ch.blame.n1"),e("ch.blame.n2"),e("ch.blame.n3")],D=[e("ch.blame.d1"),e("ch.blame.d2"),e("ch.blame.d3")],U=["var(--accent)","var(--critical)","var(--muted)"],B=[0,0,0];(T.items||[]).forEach(st=>{B[V(st.k)]+=st.loss});const F=B.reduce((st,X)=>st+X,0)||1,R=500,P=44;let I=0,z="";B.forEach((st,X)=>{const rt=st/F*R;z+=`<rect x="${I.toFixed(1)}" y="12" width="${Math.max(rt,1).toFixed(1)}" height="26" rx="3" fill="${U[X]}" fill-opacity=".55"><title>${J[X]}: ${s(Math.round(st))} MWh</title></rect>`+(rt>46?m(I+rt/2,29,(st/F*100).toFixed(0)+"%",{fs:10.5,fill:"currentColor",anchor:"middle",w:600}):""),I+=rt});const tt=B.map((st,X)=>`<div style="display:flex;align-items:baseline;gap:7px;margin-top:5px"><i style="flex:none;width:9px;height:9px;border-radius:2px;background:${U[X]};opacity:.55"></i><span style="font-weight:600">${J[X]}</span><span class="num">${s(Math.round(st))} MWh</span><span class="small muted">${D[X]}</span></div>`).join("");return f(R,P,`${m(0,8,e("ch.blame.title",{tot:s(Math.round(F))}))}${z}`)+tt}function ht(T){const V=T.months||T.x||[],J=V.length;if(!J)return"";const D=620,U=250,B=52,F=34,R=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"],P=[];if((T.series||[]).forEach(Q=>Q.vals.forEach(h=>{h!=null&&h===h&&P.push(h)})),(T.thresholds||[]).forEach(Q=>{Q&&Q.v!=null&&P.push(Q.v)}),!P.length)return"";let I=T.zero===!1?Math.min(...P):Math.min(0,...P),z=Math.max(...P);I===z&&(I-=1,z+=1);const tt=(z-I)*.08;z+=tt,T.zero===!1&&(I-=tt);const st=Q=>B+Q/Math.max(J-1,1)*(D-B-12),X=Q=>U-F-(Q-I)/(z-I)*(U-F-14),rt=(Q,h)=>{let g=[],b=[];return Q.forEach((y,M)=>{y==null||y!==y?(b.length&&g.push(b),b=[]):b.push(`${st(M).toFixed(1)},${X(y).toFixed(1)}`)}),b.length&&g.push(b),g.map(y=>`<polyline points="${y.join(" ")}" fill="none" stroke="${h}" stroke-width="1.8"/>`).join("")};let mt=(T.series||[]).map((Q,h)=>rt(Q.vals,R[h%4])).join("");const lt=Math.max(1,Math.ceil(J/8));let _t="";for(let Q=0;Q<J;Q+=lt)_t+=m(st(Q),U-10,String(V[Q]).includes("-")?String(V[Q]).slice(2,7):String(V[Q]),{fs:10,anchor:"middle"});let vt="";for(let Q=0;Q<5;Q++){const h=I+(z-I)*Q/4;vt+=m(B-6,X(h)+3,h.toFixed(Math.abs(z)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${B}" x2="${D-12}" y1="${X(h).toFixed(1)}" y2="${X(h).toFixed(1)}" stroke="var(--line)"/>`}(T.thresholds||[]).forEach(Q=>{!Q||Q.v==null||(mt+=`<line x1="${B}" x2="${D-12}" y1="${X(Q.v).toFixed(1)}" y2="${X(Q.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(Q.label?_(B+6,X(Q.v)-4,Q.label,{fs:10}):""))}),T.xlab&&(mt+=_((B+D)/2,U-1,T.xlab,{fs:10,anchor:"middle"}));const nt='<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+(T.series||[]).map((Q,h)=>`<span><i style="background:${R[h%4]}"></i>${r(Q.name)?`<span class="verbatim">${n(u(Q.name))}</span>`:n(Q.name)}</span>`).join("")+"</div>";return f(D,U,`${vt}${mt}${_t}`)+nt}function ct(T,V){const F=(R,P,I)=>{const z=Object.entries(P.分组||{}).map(([nt,Q])=>({v:parseFloat(nt),n:Q,raw:nt}));if(!z.length)return"";const tt=Math.min(...z.map(nt=>nt.v)),st=Math.max(...z.map(nt=>nt.v)),X=(st-tt)*.22||1,rt=tt-X,mt=st+X,lt=nt=>54+(nt-rt)/(mt-rt)*412,_t=Math.max(...z.map(nt=>nt.n)),vt=P.中位;return m(48,R+3,I,{fs:9.5,anchor:"end"})+`<line x1="54" y1="${R}" x2="466" y2="${R}" stroke="var(--line)"/><line x1="${lt(vt).toFixed(1)}" y1="${R-24}" x2="${lt(vt).toFixed(1)}" y2="${R+18}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".55"/>`+m(lt(vt),R+28,e("ch.cap.median",{v:vt}),{fs:8.5,anchor:"middle"})+z.map(nt=>{const Q=5+Math.sqrt(nt.n/_t)*9;return`<circle cx="${lt(nt.v).toFixed(1)}" cy="${R}" r="${Q.toFixed(1)}" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>`+m(lt(nt.v),R-Q-5,n(nt.raw),{anchor:"middle",fill:"currentColor"})+m(lt(nt.v),R+3.5,nt.n,{anchor:"middle",fill:"var(--panel)",w:600})}).join("")};return f(500,158,`${F(44,T||{},e("ch.cap.p"))}${F(120,V||{},e("ch.cap.w"))}${m(466,12,e("ch.cap.legend"),{fs:8.5,anchor:"end"})}`)}function gt(T,V){const J=T.离群||[],D=T.全场同档差中位||0,U=500,B=34+J.length*26,F=52,R=58,P=Math.max(D,...J.map(tt=>tt.平均偏))*1.18||1,I=tt=>F+tt/P*(U-F-R),z=J.map((tt,st)=>{const X=30+st*26;return m(F-6,X+10,n(V(tt.t)),{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${F}" y="${X+1}" width="${(I(tt.平均偏)-F).toFixed(1)}" height="13" rx="2" fill="var(--warning)" fill-opacity=".62"/>`+m(I(tt.平均偏)+5,X+11,tt.平均偏+"°",{fill:"var(--warning)"})}).join("");return f(U,B,`<line x1="${I(D).toFixed(1)}" y1="18" x2="${I(D).toFixed(1)}" y2="${B-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${m(I(D),12,e("ch.beta.median",{v:D}),{fs:8.5,fill:"var(--good)"})}<line x1="${F}" y1="18" x2="${F}" y2="${B-4}" stroke="var(--line)"/>${z}`)}function ft(T){const V=Object.entries(T||{}),J=500,D=26+V.length*30,U=96,B=76,F=3.7,R=Math.max(F*1.35,...V.map(([,z])=>z.极差/z.σ)),P=z=>U+z/R*(J-U-B),I=V.map(([z,tt],st)=>{const X=22+st*30,rt=tt.极差/tt.σ,mt=rt>F;return _(U-6,X+11,z,{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${U}" y="${X+2}" width="${(P(rt)-U).toFixed(1)}" height="12" rx="2" fill="${mt?"var(--warning)":"var(--accent)"}" fill-opacity=".55"/>`+m(P(rt)+5,X+11,e("ch.ruler.row",{r:rt.toFixed(1),s:tt.σ}))}).join("");return f(J,D,`<line x1="${P(F).toFixed(1)}" y1="14" x2="${P(F).toFixed(1)}" y2="${D-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${m(P(F),10,e("ch.ruler.norm"),{fs:8.5,fill:"var(--good)",anchor:"middle"})}${I}`)}function At(T){const V=T.kind;if(V==="vib")return`<p class="small">${r(T.text||T.comp)?`<span class="verbatim">${n(u(T.text||T.comp))}</span>`:n(T.text||T.comp||"")}</p>`;if(V==="vibbar"){const b=T.rows||[];if(!b.length)return"";const y=L=>{const j=Math.abs(L);return j>=100?L.toFixed(0):j>=10?L.toFixed(1):j>=1?L.toFixed(2):j>=.01?L.toFixed(3):Number(L).toExponential(1)},M={};b.forEach(L=>{(M[L.指标]=M[L.指标]||[]).push(L)});let C=`<p class="small muted">${e("fig.vibbar_note")}</p>`;for(const[L,j]of Object.entries(M))C+=`<div class="tblwrap" style="margin-top:8px"><b class="small muted">${l(L)}</b><table style="margin-top:2px"><tr><th>${e("fig.point")}</th><th class="r">${e("fig.x_median")}</th><th class="r">${e("fig.this_unit")}</th><th class="r">${e("fig.fleet_median")}</th><th class="r">z</th><th class="r">${e("fig.trend")}</th></tr>`+j.map(x=>{const $=Math.abs(x.z)>=3?"var(--critical)":Math.abs(x.z)>=2?"var(--warning)":"var(--good)";return`<tr><td class="small">${l(x.测点)}</td><td class="r" style="color:${$};font-weight:600">${x.倍中位!=null?x.倍中位+"×":"—"}</td><td class="r small">${y(x.本台)}</td><td class="r small muted">${y(x.全场中位)}</td><td class="r small" style="color:${Math.abs(x.z)>=3?"var(--critical)":"var(--muted)"}">${x.z}</td><td class="r small" style="color:${x.六窗比>1.15?"var(--warning)":"var(--muted)"}">${x.六窗比!=null?x.六窗比+"×":"—"}</td></tr>`}).join("")+"</table></div>";return C}const J=T.months||T.x||[],D=J.length;if(!D)return"";const U=620,B=250,F=52,R=34,P=14,I=[];if(V==="band"?[T.self,T.med,T.q1,T.q3].forEach(b=>(b||[]).forEach(y=>{y!=null&&y===y&&I.push(y)})):V==="bars"?(I.push(0),(T.vals||[]).forEach(b=>{b!=null&&b===b&&I.push(b)})):V==="xy"?[T.self,T.med].forEach(b=>(b||[]).forEach(y=>{y!=null&&y===y&&I.push(y)})):(T.series||[]).forEach(b=>(b.vals||[]).forEach(y=>{y!=null&&y===y&&I.push(y)})),(T.thresholds||[]).forEach(b=>{b&&b.v!=null&&I.push(b.v)}),!I.length)return"";let z=Math.min(...I),tt=Math.max(...I);z===tt&&(z-=1,tt+=1);const st=(tt-z)*.08;z-=st,tt+=st;const X=b=>F+b/Math.max(D-1,1)*(U-F-12),rt=b=>B-R-(b-z)/(tt-z)*(B-R-P),mt=(b,y,M)=>{let C=[],L=[];return(b||[]).forEach((j,x)=>{j==null||j!==j?(L.length&&C.push(L),L=[]):L.push(`${X(x).toFixed(1)},${rt(j).toFixed(1)}`)}),L.length&&C.push(L),C.map(j=>`<polyline points="${j.join(" ")}" fill="none" stroke="${y}" stroke-width="${M||1.8}"/>`).join("")};let lt="";if(V==="band"&&T.q1&&T.q3){const b=[],y=[];T.q3.forEach((M,C)=>{M!=null&&b.push(`${X(C).toFixed(1)},${rt(M).toFixed(1)}`)});for(let M=T.q1.length-1;M>=0;M--)T.q1[M]!=null&&y.push(`${X(M).toFixed(1)},${rt(T.q1[M]).toFixed(1)}`);b.length&&y.length&&(lt+=`<polygon points="${b.join(" ")} ${y.join(" ")}" fill="var(--unknown)" fill-opacity=".18"/>`)}if(V==="bars"){const b=Math.max(3,(U-F-20)/D*.6),y=rt(Math.max(z,0));lt+=(T.vals||[]).map((M,C)=>M==null||M!==M?"":`<rect x="${(X(C)-b/2).toFixed(1)}" y="${rt(M).toFixed(1)}" width="${b.toFixed(1)}" height="${Math.max(y-rt(M),.8).toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity=".75"/>`).join("")}T.med&&(lt+=mt(T.med,"var(--muted)",1.7)),T.self&&(lt+=mt(T.self,"var(--critical)",2.1)+(T.self||[]).map((b,y)=>b==null||b!==b?"":`<circle cx="${X(y).toFixed(1)}" cy="${rt(b).toFixed(1)}" r="2.4" fill="var(--critical)"/>`).join(""));const _t=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"];(T.series||[]).forEach((b,y)=>{lt+=mt(b.vals,_t[y%4])}),(T.thresholds||[]).forEach(b=>{b==null||b.v==null||(lt+=`<line x1="${F}" x2="${U-12}" y1="${rt(b.v).toFixed(1)}" y2="${rt(b.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(b.label?_(F+6,rt(b.v)-4,b.label,{fs:10}):""))});const vt=Math.max(1,Math.ceil(D/8));let nt="";for(let b=0;b<D;b+=vt)nt+=m(X(b),B-10,String(J[b]).includes("-")?String(J[b]).slice(2,7):String(J[b]),{fs:10,anchor:"middle"});let Q="";for(let b=0;b<5;b++){const y=z+(tt-z)*b/4;Q+=m(F-6,rt(y)+3,y.toFixed(Math.abs(tt)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${F}" x2="${U-12}" y1="${rt(y).toFixed(1)}" y2="${rt(y).toFixed(1)}" stroke="var(--line)"/>`}const h=V==="band"?m(U-190,12,e("fig.this_unit"),{fill:"var(--critical)",fs:10})+m(U-110,12,e("fig.fleet_median"),{fs:10})+m(U-40,12,e("fig.quartile"),{fs:10}):(T.series||[]).length&&(T.series||[]).length<=2?T.series.map((b,y)=>m(U-12-(T.series.length-1-y)*118,12,"— "+n(u(b.name)),{fill:_t[y%4],fs:10,anchor:"end"})).join(""):"",g=(T.series||[]).length>2?'<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+T.series.map((b,y)=>`<span><i style="background:${_t[y%4]}"></i>${r(b.name)?`<span class="verbatim">${n(u(b.name))}</span>`:n(b.name)}</span>`).join("")+"</div>":"";return f(U,B,`${Q}${lt}${nt}${h}`)+g}return{quadChart:O,rateChart:K,waterfall:E,ramChart:q,attribBar:G,paretoChart:N,blameBar:Y,lossName:A,multiline:ht,capAxis:ct,betaBar:gt,rulerBar:ft,fig:At}};const wu=[[/DE[/]NDE/g,"驱动端与非驱动端"],[/GenDE/g,"发电机驱动端"],[/GenNDE/g,"发电机非驱动端"],[/HS_gen2?/g,"高速轴发电机侧"],[/HS_rot/g,"高速轴转子侧"],[/IMS/g,"中间轴"],[/(?<![A-Za-z])NDE(?![A-Za-z])/g,"非驱动端"],[/(?<![A-Za-z])DE(?![A-Za-z])/g,"驱动端"],[/内圈BPFI/g,"内圈特征频率"],[/外圈BPFO/g,"外圈特征频率"],[/BPFI/g,"内圈特征频率"],[/BPFO/g,"外圈特征频率"],[/FTF/g,"保持架特征频率"],[/BSF/g,"滚动体特征频率"],[/TD_1R/g,"时域单转指标"],[/Peak/g,"冲击峰值"],[/Rms/gi,"有效值"],[/([0-9]+(?:[.][0-9]+)?)[ ]*阶/g,"$1 倍轴频"],[/[(]o([0-9]+(?:[.][0-9]+)?)[)]/g,"(轴频 $1 倍)"],[/×p90/g,"×全场90分位"],[/×fleet/g,"×全场中位"],[/六窗/g,"六个观测窗"],[/([0-9])窗/g,"$1 个观测窗"],[/宽带/g,"宽频带总量"],[/台阶/g,"阶跃上升"],[/缓升/g,"缓慢上升"],[/回落/g,"回落至"],[/全净|六窗全净/g,"各窗均干净"],[/清洁/g,"干净"],[/回归/g,"回到常态"],[/同族/g,"同批次共性 (见该批主台)"],[/族第([^ ]+)台/g,"同批次第$1台"],[/族/g,"批次共性组"],[/gain异常/g,"测点增益异常"],[/gain/g,"测点增益"],[/[(]销[)]/g,"(已销案)"],[/梯度/g,"沿链梯度最高点"],[/周期主导/g,"周期成分主导"],[/急性事件/g,"突发事件"],[/慢性/g,"长期"],[/主异常在/g,"主要异常位于"]],pt=t=>String(t??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),Ki=t=>String(t??""),xt=t=>pt(t),ku={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},Mu={critical:"bad",alarm:"warn",undeterminable:"unk",indeterminate:"unk","not evaluable":"unk",good:"ok",excellent:"ex",warn:"warn",bad:"bad",ok:"ok",unk:"unk",ex:"ex"},Un=t=>ku[String(t)]||Mu[String(t)],Vi={bad:"var(--critical)",warn:"var(--warning)",unk:"var(--unknown)",ok:"var(--good)",ex:"var(--excellent)"},Gi={优秀:"var(--excellent)",良好:"var(--good)",报警:"var(--warning)",危险:"var(--critical)",不可判:"var(--unknown)",监测不可用:"var(--unknown)",无监测:"var(--unknown)"},zi={bad:"var(--critical)",warn:"var(--warning)",note:"var(--muted)",ok:"var(--good)",unlisted:"var(--muted)",stale:"var(--muted)",meta:"var(--muted)"},Su={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},Kn=t=>"st."+(t==="ex"?"excellent":t),Ce=t=>{const e=Un(t);return e?o(Kn(e)):xt(t)},pn=t=>{const e=Su[String(t)],s="tier."+e;return e?o(s):String(t)==="—"?"—":xt(t)},Yi=(t,e,s)=>`<span class="duo" style="--c:${s}"><span class="st">${t}</span><span class="ev">${e}</span></span>`,Ie=t=>{let e=String(t??"");for(const[s,n]of wu)e=e.replace(s,n);return e},hn=t=>Ie(t),Tu=(t,e)=>{if(!t||t.filter(m=>m!=null).length<3)return"";const s=t.filter(m=>m!=null),n=Math.min(...s),l=Math.max(...s),i=l-n||1,c=84,r=22,u=t.length;let v="",f=null;return t.forEach((m,_)=>{if(m==null)return;const k=_/(u-1)*c,A=r-2-(m-n)/i*(r-4);v+=(v?"L":"M")+k.toFixed(1)+" "+A.toFixed(1),f=[k,A]}),`<svg width="${c}" height="${r}" style="vertical-align:middle;margin-left:6px"><path d="${v}" fill="none" stroke="${e}" stroke-width="1.2" opacity=".75"/><circle cx="${f[0]}" cy="${f[1]}" r="2.4" fill="${e}"/></svg>`},Eu={齿轮箱:"#8A6D3B",发电机:"#4A6FA5",主轴承:"#2E7D6B",变桨叶片:"#4A6FA5",偏航:"#2E7D6B",测风:"#7C5295",其他:"#5A6470"},Cu=(t,e,s)=>{if(!e)return`<span class="small muted">${o("fus.no_alarm")}</span>`;const n=118,l=Math.max(6,Math.round(e/Math.max(s||e,1)*n));return`<div title="${pt(o("fus.fam_tip",{n:e,m:s||e}))}" style="display:flex;height:9px;border-radius:3px;overflow:hidden;width:${l}px">${(t||[]).map(i=>`<i title="${pt(ye(i.k))} ${i.n}" style="width:${(i.n/e*100).toFixed(1)}%;background:${Eu[i.k]||"#5A6470"}"></i>`).join("")}</div><div class="small muted" style="margin-top:3px">${(t||[]).slice(0,2).map(i=>ye(i.k)+" "+i.n).join(" · ")}</div>`};function Fu(t){const e=(t.列窗||{}).months||[];let s=`<div class="panel mb" style="border-left:3px solid var(--warning)"><b>${o("fus.rules_head")}</b><p class="small" style="margin-top:4px">${o("fus.rule1")}<br>${o("fus.rule2")}</p></div>`;s+=`<div class="panel mb"><h3>${o("fus.matrix_head")}</h3><p class="small muted">${o("fus.matrix_note1")}</p><p class="small">${o("fus.matrix_note2",{n:e.length,m0:e[0]||"?"})}</p>
- <div class="small muted" style="margin:6px 0 12px;line-height:2"><div><b>${o("fus.legend_state")}</b> ${["bad","warn","ok","ex","unk"].map(_=>`<span style="display:inline-flex;align-items:center;gap:4px;margin-right:12px"><i style="width:10px;height:10px;border-radius:2px;background:${Vi[_]}"></i>${o(Kn(_))}</span>`).join("")}</div>
- <div><b>${o("fus.legend_tier")}</b> ${["定论","准定论·预警","候选·新发","候选","候选·记基线","参考","INSUFFICIENT"].map(_=>`<span style="display:inline-flex;align-items:center;gap:4px;margin-right:12px"><i style="width:10px;height:10px;border-radius:2px;background:${(t.色标||{})[_]||"#ccc"}"></i>${pn(_)}</span>`).join("")}</div><div>${o("fus.legend_note")}</div></div>`;const n=_=>{const k=String(_||""),A=k.match(/20[0-9][0-9]-[0-9][0-9](?:~20[0-9][0-9]-[0-9][0-9])?|至[ ]*20[0-9][0-9]-[0-9][0-9]|20[0-9][0-9]~20[0-9][0-9]/);return A?A[0].startsWith("至")?o("win.through",{date:A[0].replace(/^至\s*/,"")}):A[0]:k.slice(0,14)},l=(_,k,A)=>`<th title="${pt(k||"")}${A||""}"><div>${_}</div><div class="small muted" style="font-weight:400">${xt(n(k))}${A||""}</div></th>`,i=t.列窗||{};s+=`<div class="tblwrap"><table class="fmx" style="table-layout:fixed;width:100%;min-width:900px"><colgroup><col style="width:7%">${'<col style="width:15.5%">'.repeat(6)}</colgroup><tr><th>${o("ui.unit")}</th>${l(o("fus.col.vib"),i.振动,o("fus.col.fixed"))}${l(o("fus.col.temp"),i.温度)}${l(o("fus.col.lub"),i.润滑,o("fus.col.display_only"))}${l(o("fus.col.oil"),i.油液)}${l(o("fus.col.alarm"),i.报警)}${l(o("fus.col.wo"),i.工单)}</tr>`;const c=t.矩阵||[],r=Math.max(1,...c.map(_=>(_.报警||{}).n||0)),u=Math.max(1,...c.map(_=>(_.工单||{}).n||0)),v=t.色标||{},f=_=>{if(_.ostate&&_.ostate!=="不可判")return Ce(_.ostate);const k=String(_.note||"");return/数据不足|不可判|nsufficient/.test(k)?o("fus.short.nodata"):/未评估|ot assessed/.test(k)?o("fus.short.uneval"):/无样|未取样|o sample/.test(k)?o("fus.short.nosample"):/样龄|stale/.test(k)?o("fus.short.stale"):{ok:o("fus.short.normal"),unlisted:o("fus.short.unlisted"),stale:o("fus.short.stale")}[_.level]||"—"},m=_=>{const k=_||{},A=Gi[k.ostate]||v[k.wlevel]||zi[k.level]||"var(--muted)",O=Ie(k.note),K=["bad","warn","note"].includes(k.level),E=pt(O)+o("fus.tip_state",{s:Ce(k.ostate||"?")});if(!K)return`<td class="small" title="${E}" style="border-left:3px solid ${A};color:var(--muted)">${f(k)}</td>`;const q=O.split(/[::]/),G=(q.length>1?q.slice(1).join(":"):O).trim(),N=/^[ ]*(评估报告|两口径差异|⚠|ssessment)/.test(G)||G.length>16?"":G,Y=N?xt(N):k.ostate&&k.ostate!=="不可判"?"":f(k),ht=k.wlevel&&k.wlevel!=="—"&&k.wlevel!=="正常"&&k.ostate?Yi(Ce(k.ostate),pn(k.wlevel),A):"";return`<td class="small" title="${E}${o("fus.tip_tier",{e:pn(k.wlevel||"?")})}" style="border-left:3px solid ${A};overflow:hidden"><div><div style="color:${A};font-weight:${["bad","warn"].includes(k.level)?600:400}">${Y}</div>${ht}</div>${Tu(k.hist,k.level==="bad"?"var(--critical)":k.level==="warn"?"var(--warning)":"var(--muted)")}</td>`};return c.forEach(_=>{const k=_.报警||{n:0,fam:[]},A=_.工单||{n:0,acts:[]},O=k.rank&&k.rank<=5?"var(--warning)":"var(--line)",K=k.burst,E=pt((k.items||[]).map(q=>`${q.code} ${Ie(q.text)} — ${q.n} (${q.first}~${q.last})`).join(`
- `))+(K?`
- `+pt(o("fus.burst_tip",{c:K.code,p:(K.share*100).toFixed(0),m:K.med_s})):"");s+=`<tr><td><a href="/turbine/${_.turbine}"><b>${Lt(_.turbine)}</b></a></td>${m(_.振动)}${m(_.温度)}${m(_.润滑)}${m(_.油液)}
- <td title="${E}" style="border-left:3px solid ${K?"var(--unknown)":O}"><b class="small num" style="color:${k.rank&&k.rank<=10?"var(--ink)":"var(--muted)"}">${o("fus.alarm_n",{n:k.n})}</b>${k.rank?`<span class="small muted">${o("fus.alarm_rank",{r:k.rank,t:k.tot})}</span>`:""}${K?`<div class="small" style="color:var(--unknown)">${o("fus.burst",{p:(K.share*100).toFixed(0),c:K.code})}</div>`:""}${k.rank&&k.rank<=10||K?Cu(k.fam,k.n,r):""}</td>
- <td title="${pt((A.items||[]).map(q=>`${q.date} ${hn(q.name)} → ${hn(q.act)}${q.part?" "+hn(q.part):""}`).join(`
- `)||o("fus.wo_none"))}" style="min-width:110px">${A.n?`<b class="small">${o("fus.wo_n",{n:A.n})}</b>${A.last?`<span class="small muted"> · ${pt(A.last)}</span>`:""}<div style="height:7px;border-radius:3px;background:var(--muted);opacity:.5;margin-top:4px;width:${Math.max(6,Math.round(A.n/u*90))}px"></div><div class="small muted" style="margin-top:3px">${(A.acts||[]).slice(0,2).map(q=>xt(q.k)+"×"+q.n).join(" · ")}</div>`:'<span class="small muted">—</span>'}</td></tr>`}),s+`</table></div><p class="small muted" style="margin-top:8px">${o("fus.matrix_foot")}</p></div>`}const Ol=(t,e,s)=>{const n=Math.max(t,e,7),l=120,i=c=>Math.max(2,c/n*(l-4));return`<svg class="dt" viewBox="0 0 ${l} 26" style="width:${l}px;height:26px"><rect x="2" y="2" width="${i(t).toFixed(1)}" height="9" rx="2" fill="var(--muted)" fill-opacity=".55"/><rect x="2" y="15" width="${i(e).toFixed(1)}" height="9" rx="2" fill="${s}" fill-opacity=".9"/></svg>`},Sn=(t,e)=>{const s=String(t||"").replace(/main bearing[, ]*[(]?(?:rear|back)[)]?/ig,"主轴承后").replace(/main bearing[, ]*[(]?(?:front|forward)[)]?/ig,"主轴承前").replace(/main bearing/ig,"主轴承").replace(/generator[, ]*(?:NDE|non-drive[- ]end)/ig,"发电机NDE").replace(/generator[, ]*(?:DE|drive[- ]end)/ig,"发电机DE").replace(/generator/ig,"发电机").replace(/gearbox/ig,"齿轮箱").replace(/planetary/ig,"行星").replace(/intermediate[- ](?:speed[- ])?shaft/ig,"中间轴").replace(/high[- ]speed shaft/ig,"高速轴"),n=/齿轮箱/.test(s)&&!/行星|中间轴|中速|高速轴/.test(s);return`<span class="chain" title="${pt(Ki(t))}">${Du.map(([l,i])=>{const c=i.test(s)||n&&["ps","ims","hss"].includes(l);return`<i class="${c?"on":""}" style="${c?`background:${e};border-color:${e}`:""}" title="${o("chain."+l)}"></i>`}).join("")}</span>`};function Au(t){const e=t.能力&&t.能力.loop&&t.能力.loop["换件闭环 (检出→换件→恢复)"]?t.能力.loop:null;if(!e)return`<div class="panel mb"><p class="small">${o("fus.loop_none")}</p></div>`;const s=e["换件闭环 (检出→换件→恢复)"]||[],n=e["当前在升 (无工单可对)"]||[],l=e["负面对照 (工单后持平)"];return`<div class="panel mb"><h3>${o("fus.loop_head")}</h3><p class="small">${o("fus.loop_note")}</p>
- <h3 style="margin-top:8px">${o("fus.loop_closed",{n:s.length})}</h3><div class="tblwrap"><table><tr><th>${o("ui.unit")}</th><th>${o("fus.col.part")}</th><th>${o("fus.loop_item")}</th><th>${o("fus.loop_date")}</th><th>${o("fus.loop_ba")}</th><th class="r">${o("fus.loop_ratio")}</th><th>${o("fus.loop_verdict")}</th></tr>
- ${s.map(i=>`<tr><td><b>${Lt(i.turbine)}</b></td><td>${Sn(i.component+(i.title||""),"var(--good)")} <span class="small">${Hs(i.component)}</span></td><td class="small">${xt(i.title)}</td><td>${pt(i.replace_date)}</td><td>${Ol(i.pre,i.post,"var(--good)")}<span class="small muted">${i.pre} → ${i.post}</span></td><td class="r"><b style="color:var(--good)">${i.ratio}×</b></td><td><span class="chip ok">${xt(i.verdict)}</span></td></tr>`).join("")}</table></div>
- <p class="small" style="margin-top:6px">${o("fus.loop_neg",{n:l})}</p>
- <h3 style="margin-top:14px">${o("fus.loop_rising",{n:n.length})}</h3><div class="tblwrap"><table><tr><th>${o("ui.unit")}</th><th>${o("fus.col.part")}</th><th>${o("fus.loop_el")}</th><th class="r">${o("fus.loop_x")}</th><th>${o("fus.loop_state")}</th></tr>
- ${n.map(i=>`<tr><td><b>${Lt(i.turbine)}</b></td><td>${Sn(i.component,"var(--warning)")} <span class="small">${Hs(i.component)}</span></td><td>${Ol(i.early,i.late,"var(--warning)")}<span class="small muted">${i.early} → ${i.late}</span></td><td class="r"><b style="color:var(--warning)">${i.ratio}×</b></td><td><span class="chip warn">${o("rpt.units.rising",{r:i.ratio})}</span></td></tr>`).join("")}</table></div>
- <p class="small muted" style="margin-top:8px">${o("fus.loop_bound",{b:xt(String(e["★数据边界"]||"").split("**").join(""))})}</p></div>`}const Ou=(t,e,s,n)=>{if(e==null)return`<span class="small">${xt(Ki(n).slice(0,30))}</span>`;const l=6,i=104,c=i/2,r=Math.max(-1,Math.min(1,e/l)),u=Math.abs(r)*(c-8),f=Math.abs(e)>=3?/候选|andidate/.test(s||"")?"var(--warning)":/记基线|aseline/.test(s||"")?"var(--accent)":/不可判|返服|ndeterm/.test(s||"")?"var(--unknown)":"var(--muted)":"var(--muted)",m=Math.abs(e)>l;return`<div title="${pt(n||"")}" style="display:flex;align-items:center;gap:7px"><svg class="dt" viewBox="0 0 ${i} 18" style="width:${i}px;height:18px;flex:none"><line x1="4" y1="9" x2="${i-4}" y2="9" stroke="var(--line)" stroke-opacity=".7"/><line x1="${c}" y1="1" x2="${c}" y2="17" stroke="var(--muted)" stroke-opacity=".6"/><rect x="${e>=0?c:c-u}" y="4" width="${Math.max(u,1.5)}" height="10" rx="2" fill="${f}" fill-opacity=".9"/>${m?`<path d="M${e>0?i-5:5},9 l${e>0?-5:5},-4 v8 z" fill="${f}"/>`:""}</svg><b class="small num" style="color:${f}">${e>0?"+":""}${e}K</b></div><div class="small muted" style="margin-top:1px">${pt(t||"")}</div>`},qu=(t,e)=>{if(!t||!t.length)return`<span class="small" title="${pt(e||"")}">${o("fus.win_none")}</span>`;const s=Date.parse("2026-01-01"),n=Date.parse("2026-09-01"),l=118,i=c=>3+Math.max(0,Math.min(1,(Date.parse(c)-s)/(n-s)))*(l-6);return`<div title="${pt(e||"")}"><svg class="dt" viewBox="0 0 ${l} 18" style="width:${l}px;height:18px"><rect x="3" y="4" width="${l-6}" height="10" rx="2" fill="var(--line)" fill-opacity=".5"/>${t.map(([c,r])=>{const u=i(c),v=i(r);return`<rect x="${u.toFixed(1)}" y="4" width="${Math.max(v-u,2.5).toFixed(1)}" height="10" rx="2" fill="var(--accent)" fill-opacity=".8"/>`}).join("")}</svg><div class="small muted">${o("fus.win_n",{n:t.length})}</div></div>`},Lu=(t,e,s)=>`<div title="${pt(s||"")}" style="display:flex;align-items:center;gap:6px"><i style="width:9px;height:9px;border-radius:50%;flex:none;background:${e?"var(--good)":"var(--unknown)"}"></i><span class="small num">${pt(t||o("fus.oil_none"))}</span></div><div class="small muted">${t?o(e?"fus.oil_fresh":"fus.oil_stale"):"—"}</div>`,De=(t,e)=>{const s=Un(t);return s?`<span class="chip ${s} ">${o(Kn(s))}</span>`:t?`<span class="chip">${pt(t)}</span>`:""};function ju(t,e){const s=t.表||[],n=t.矩阵||[];let l=s,c=`<div class="panel mb"><h3>${o("fus.units_head",{u:new Set(s.map(r=>r.turbine)).size,n:l.length+"",f:""})}</h3>
- <div style="display:flex;gap:8px;margin:8px 0 12px;flex-wrap:wrap">${["bad","warn","note","ok"].map(r=>`<button class="pill ${e===r?"on":""}" data-ffilter="${r}">${o("fus.lv."+r)}</button>`).join("")}<button class="pill " data-ffilter="unlisted">${o("fus.unlisted_link",{n:n.filter(r=>(r.振动||{}).level==="unlisted").length})}</button></div>
- <div class="panel" style="border-left:3px solid var(--accent);margin-bottom:12px"><b class="small">${o("fus.eval_head")}</b><div class="tblwrap"><table style="margin-top:8px"><tr><th style="width:30%">${o("fus.eval_state")}</th><th style="width:30%">${o("fus.eval_tier")}</th><th>${o("fus.eval_meaning")}</th></tr>
- <tr><td>${De("危险")}</td><td><span class="tier confirmed">${o("tier.confirmed.s")}</span></td><td class="small">${o("fus.m.bad")} <span class="muted">(${o("fus.m.bad_e")})</span></td></tr>
- <tr><td>${De("报警")}</td><td><span class="tier near">${o("tier.near")}</span> / <span class="tier candidate">${o("tier.candidate_new")}</span></td><td class="small">${o("fus.m.warn")} <span class="muted">(${o("fus.m.warn_e")})</span></td></tr>
- <tr><td>${De("良好")}</td><td><span class="tier candidate">${o("tier.candidate")}</span> / <span class="tier candidate">${o("tier.candidate_baseline")}</span></td><td class="small">${o("fus.m.ok")} <span class="muted">(${o("fus.m.ok_e")})</span></td></tr>
- <tr><td>${De("优秀")}</td><td><span class="tier reference">${o("tier.reference")}</span> / <span class="tier reference">${o("tier.normal")}</span> / <span class="tier withdrawn">${o("tier.withdrawn")}</span></td><td class="small">${o("fus.m.ex")} <span class="muted">(${o("fus.m.ex_e")})</span></td></tr>
- <tr><td>${De("不可判")}</td><td><span class="tier insufficient">${o("tier.insufficient")}</span></td><td class="small">${o("fus.m.unk")} <span class="muted">(${o("fus.m.unk_e")})</span></td></tr></table></div><p class="small muted" style="margin-top:7px">${o("fus.eval_note")}</p></div>
- <div class="tblwrap"><table><tr><th>${o("ui.unit")}</th><th>${o("fus.col.part")}</th><th>${o("fus.col.state_concl")}</th><th>${o("fus.col.claim")} <span class="small muted" style="font-weight:400">${o("fus.col.claim_axis")}</span></th><th>${o("fus.col.signal")}</th><th>${o("fus.col.tempaxis")} <span class="small muted" style="font-weight:400">${o("fus.col.tempaxis_note")}</span></th><th>${o("fus.col.oil")}</th></tr>`;return l.forEach(r=>{const u=zi[r.级]||"var(--accent)",v=Gi[r.设备状态]||"var(--muted)";c+=`<tr><td><a href="/turbine/${r.turbine}"><b>${Lt(r.turbine)}</b></a></td><td style="min-width:200px">${Sn(r.部件,u)} <span class="small">${Hs(r.部件)}</span></td>
- <td title="${pt(Ie(r.振动结论))}">${Yi(Ce(r.设备状态||"—"),xt(r.振动结论),v)}</td><td style="min-width:130px">${qu(r.窗区间,r.claim_window)}</td>
- <td class="small" title="${pt(r.振动信号||"")}">${xt(Ie(r.振动信号))}</td><td style="min-width:158px">${Ou(r.温度通道,r.温度dev,r.温度判,r.温度轴)}</td><td style="min-width:112px">${Lu(r.油末样,r.油新鲜,r.油样轴)}</td></tr>`}),c+"</table></div></div>"}const Du=[["mbf",/主轴承[((]前|主轴承前|主轴承[++]|主轴承(?![((前后])/],["mba",/主轴承[((]后|主轴承后/],["ps",/行星|二级行星/],["ims",/中间轴|中速/],["hss",/高速轴|高速(?!.*发电)/],["gde",/发电机DE|发电机[((]|发电机(?!NDE)/],["gnde",/发电机NDE|NDE/]],Qe=t=>Vi[Un(t)]||null,ql=t=>`<span class="chain">${Object.entries(t).map(([e,s])=>`<i class="${s?"on":""}" style="${s?`background:${s};border-color:${s}`:""}" title="${o("chain."+e)}"></i>`).join("")}</span>`,Pu=t=>{const e=String(t||""),s=/准定论|near[- ](?:conf|establish)/i.test(e)?3:/确诊|onfirmed/.test(e)?4:/定论|ettled|stablished/.test(e)?3:/候选|andidate/.test(e)?2:/参考|eference/.test(e)?1:0,n=s>=4?"var(--critical)":s===3?"var(--warning)":s===2?"var(--accent)":s===1?"var(--muted)":"var(--unknown)";return`<div style="display:flex;align-items:center;gap:7px"><svg class="dt" viewBox="0 0 62 20" style="width:62px;height:20px;flex:none">${[0,1,2,3].map(l=>`<rect x="${2+l*15}" y="${12-l*3}" width="11" height="${6+l*3}" rx="1.5" fill="${l<s?n:"none"}" fill-opacity=".9" stroke="${n}" stroke-opacity="${l<s?1:.4}" ${l>=s?'stroke-dasharray="2 1.5"':""}/>`).join("")}</svg><span class="small" style="color:${n}">${xt(e)}</span></div>`};function Hu(t,e){if(!t.事件)return`<div class="panel mb"><p class="small muted">${o("ui.empty")}</p></div>`;let s=`<div class="panel mb"><p class="small muted"><b>${o("fus.ev_win",{win:ke(e.win)})}</b></p></div>`;for(const[n,l]of Object.entries(t.事件)){const i=l,c=i.报警||{},r=i.工单||{};s+=`<div class="panel mb"><h3>${o("fus.ev_head",{c:ye(n),an:c.总条数||0,au:c.台数||0,wn:r.总条数||0,wu:r.台数||0})}</h3>`,c.总条数>0?s+=`<div class="tblwrap"><table><tr><th>${o("fus.ev_code")}</th><th>${o("fus.ev_text")}</th><th class="r">${o("ui.count")}</th><th class="r">${o("fus.ev_units")}</th><th class="r">${o("fus.ev_dur")}</th></tr>${(c.码统计||[]).map(u=>`<tr><td>${pt(u.code)}</td><td class="small">${xt(Ie(u.text))}</td><td class="r">${u.条数}</td><td class="r">${u.台数}</td><td class="r">${u.时长h}</td></tr>`).join("")}</table></div>
- <p class="small">${o("fus.ev_top")}${Object.entries(c.top台||{}).map(([u,v])=>`<a href="/turbine/${u}">${Lt(u)}</a>×${v}`).join(" · ")}</p>
- <details><summary class="small">${o("fus.ev_recent",{n:(c.近况||[]).length})}</summary><div class="tblwrap"><table><tr><th>${o("ui.unit")}</th><th>${o("fus.ev_time")}</th><th>${o("fus.ev_code")}</th><th>${o("fus.ev_text")}</th><th class="r">${o("fus.ev_min")}</th></tr>${(c.近况||[]).map(u=>`<tr><td>${Lt(u.t)}</td><td class="small">${pt(u.on)}</td><td>${pt(u.code)}</td><td class="small">${xt(Ie(u.text))}</td><td class="r">${u.dur_min??"—"}</td></tr>`).join("")}</table></div></details>`:s+=`<p class="small">${o("fus.ev_no_alarm")}</p>`,r.总条数>0?s+=`<div class="tblwrap"><table style="margin-top:8px"><tr><th>${o("ui.unit")}</th><th>${o("ui.date")}</th><th>${o("fus.ev_wo_name")}</th><th>${o("fus.ev_wo_act")}</th><th>${o("fus.ev_wo_cause")}</th></tr>${(r.明细||[]).map(u=>`<tr><td>${Lt(u.t)}</td><td class="small">${pt(u.date)}</td><td class="small">${xt(u.name)}</td><td class="small">${xt(u.act)}</td><td class="small">${xt(u.cause)}</td></tr>`).join("")}</table></div>`:s+=`<p class="small">${o("fus.ev_no_wo")}</p>`,s+="</div>"}return s}function Ru(t,e){if(!t)return`<div class="panel mb"><p class="small muted">${o("fus.cms_loading")}</p></div>`;if(t.error)return`<div class="panel mb"><p class="small" style="color:var(--critical)">${xt(t.error)}</p></div>`;const s={主轴承前:"mbf",主轴承后:"mba",齿轮箱:"gb",发电机:"gen",发电机DE:"gde",发电机NDE:"gnde","Main bearing, front":"mbf","Main bearing, rear":"mba",Gearbox:"gb",Generator:"gen","Generator DE":"gde","Generator NDE":"gnde"};return`<div class="panel mb"><h3>${o("fus.cms_head",{d:pt(t.date||"")})}</h3>
- ${t.时间范围?`<p class="small" style="margin:2px 0 6px">${o("fus.cms_window",{r:pt(t.时间范围)})}</p>`:""}
- <p class="small">${xt(t.overall||"")} ${o("fus.cms_note")}</p>
- <h3 style="margin-top:10px">${o("fus.cms_action")}</h3><div class="tblwrap"><table><tr><th>${o("ui.unit")}</th><th>${o("fus.loop_state")}</th><th>${o("fus.cms_focus")} <span class="small muted" style="font-weight:400">${o("fus.cms_focus_note")}</span></th><th>${o("fus.cms_evidence")}</th><th>${o("fus.cms_act")}</th></tr>
- ${(t.action||[]).map(n=>{const l={};return String(n[2]).split(/[;;]/).forEach(i=>{const c=i.split(/[::]/);if(c.length>1){const r=s[c[0].trim()]||null;r&&(l[r]=Qe(c[1].trim()))}}),`<tr><td><b>${Lt(n[0])}</b></td><td>${De(n[1])}</td><td title="${pt(n[2])}">${ql(l)} <span class="small muted">${xt(n[2])}</span></td><td style="min-width:150px">${Pu(n[3])}</td><td>${/P0/.test(n[4])?`<b style="color:var(--critical)">${pt(n[4])}</b>`:pt(n[4])}</td></tr>`}).join("")}</table></div>
- <h3 style="margin-top:14px">${o("fus.cms_grades")}</h3><div class="tblwrap"><table><tr><th>${o("ui.unit")}</th><th>${o("fus.cms_chain")} <span class="small muted" style="font-weight:400">${o("fus.cms_chain_note")}</span></th><th>${o("fus.cms_overall")}</th><th>${o("fus.cms_act")}</th></tr>
- ${(t.grades||[]).map(n=>`<tr><td><b>${Lt(n.t)}</b></td><td title="${o("chain.mbf")} ${Ce(n.主轴承前)} · ${o("chain.mba")} ${Ce(n.主轴承后)} · ${o("chain.gb")} ${Ce(n.齿轮箱)} · ${o("chain.gen")} ${Ce(n.发电机)}">${ql({mbf:Qe(n.主轴承前),mba:Qe(n.主轴承后),gb:Qe(n.齿轮箱),gen:Qe(n.发电机)})}</td><td>${De(n.综合)}</td><td class="small">${pt(n.行动)}</td></tr>`).join("")}</table></div>
- <div class="small" style="margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:8px"><b>${o("fus.cms_basis")}</b> ${o("fus.cms_basis_note",{a:((t.diff||{}).only_cms||[]).map(Lt).join(", ")||o("fus.none_word"),b:((t.diff||{}).only_vibration_package||(t.diff||{}).only_handoff||[]).map(Lt).join(", ")||o("fus.none_word")})}</div>
- <p class="small muted" style="margin-top:10px">${o("fus.cms_link")} <a href="http://localhost:8030/index.html" target="_blank" rel="noopener">${o("fus.cms_open")}</a> <a href="/windcms/index.html" target="_blank" rel="noopener">${o("fus.cms_static")}</a></p></div>`}const Iu=["matrix","loop","units","events","cms"],Ll=globalThis.window?.__charts||globalThis.__charts,Nu=Ll?Ll({t:o,fmt:Mt,esc:pt,dv:xt,EN:!1,displayText:t=>t==null?"":String(t),verb:()=>{}}):{};function Te(t,...e){const s=Nu[t];if(typeof s!="function")return"";try{return s(...e)}catch{return""}}const Bu={class:"eyebrow"},Wu={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},Uu={style:{color:"var(--warning)"}},Ku={class:"grid2"},Vu={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},Gu={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},zu={class:"panel span2"},Yu={class:"small muted",style:{"margin-top":"6px"}},Ju={class:"panel"},Xu=["innerHTML"],Zu={class:"panel"},Qu=["innerHTML"],tp={class:"panel span2"},ep={class:"small muted",style:{"margin-top":"6px"}},sp={key:0,style:{color:"var(--warning)"}},np={class:"panel"},lp={class:"tblwrap"},ip={style:{width:"70px"}},ap={class:"r",style:{width:"80px"}},op={class:"num small"},rp={class:"r small"},cp={class:"small muted",style:{"margin-top":"6px"}},dp={key:0,class:"panel",style:{"border-left":"3px solid var(--critical)"}},up={class:"small"},pp={key:1,class:"panel"},hp={class:"small muted",style:{"font-weight":"400"}},fp={class:"legend",style:{"margin-top":"6px","flex-wrap":"wrap"}},mp={class:"small muted",style:{"margin-top":"6px"}},vp={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},_p={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},gp={key:0,class:"panel span2"},bp={class:"small muted",style:{"margin-top":"6px"}},yp={style:{"margin-top":"12px"}},$p={class:"small muted",style:{"margin-top":"2px"}},xp={class:"panel"},wp=["innerHTML"],kp={class:"small muted",style:{"margin-top":"4px"}},Mp={class:"panel"},Sp={class:"tblwrap"},Tp={style:{width:"64px"}},Ep={class:"r",style:{width:"56px"}},Cp={class:"num small"},Fp={class:"r small"},Ap={class:"small muted",style:{"margin-top":"6px"}},Op=Ht({__name:"Fault",props:{d:{}},setup(t){const e=t,s=H(()=>e.d?.faults||{}),n=H(()=>s.value.partial||[]),l=H(()=>e.d?.m8&&!e.d.m8.err?e.d.m8.mtbf:null),i=H(()=>s.value.monthly||{months:[],vals:[]}),c=H(()=>n.value.length?(i.value.months||[]).indexOf(n.value[0]):-1),r=H(()=>{const ft=n.value.length?o("flt.rate_partial",{m:n.value.join("/")}):o("flt.rate_full"),At=c.value>=0&&!!i.value.per_day;return ft+(At?" "+o("flt.rate_example",{m:n.value[0],v:u.value}):"")}),u=H(()=>{const ft=c.value;return ft>=0&&i.value.per_day?i.value.per_day[ft]:null}),v=H(()=>n.value.length?o("win.partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)}):""),f=ft=>{const At=String(ft).match(/^([0-9]+)/);return At?At[1]:String(ft).slice(0,4)},m=ft=>String(ft??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");function _(ft,At,T){const V=(ft||[]).filter(P=>P&&P.v>0);if(!V.length)return m(o("ch.pareto.none"));const J=V.reduce((P,I)=>P+I.v,0);let D=0,U=null;for(let P=0;P<V.length;P++)D+=V[P].v,U===null&&J&&D/J>=.8&&(U=P+1);const B=V.slice(0,3).map(P=>`<b>${m(f(P.k))}</b> ${m(String(P.k).replace(/^[0-9]+ */,"").slice(0,18))}`).join(" · "),F=o("ch.pareto.total",{n:V.length,tot:Mt(Math.round(J)),unit:At});return(U?`<b>${m(o("ch.pareto.key",{k:U}))}</b> (${m(F)})`:m(F))+"<br>"+m(o("ch.pareto.top3"))+B+(T?"<br>"+m(T):"")}const k=H(()=>_(s.value.pareto_n||[],o("unit.n"),o("flt.pareto_n_note"))),A=H(()=>_(s.value.pareto_d||[]," h",o("flt.pareto_d_note"))),O=H(()=>_(ht.value," h",o("flt.stop_pareto_note"))),K=H(()=>s.value.per_t||[]),E=H(()=>Math.max(1,...K.value.map(ft=>ft.v))),q=H(()=>l.value&&e.d?.m8?.seasonal?e.d.m8.seasonal:[]),G=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"],N=H(()=>q.value.slice(0,4).map(ft=>String(ft.name).slice(0,16))),Y=H(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),ht=H(()=>(e.d?.m8?.stop_pareto||[]).map(ft=>({k:String(ft.k).split(";")[0].slice(0,26),v:ft.h}))),ct=H(()=>l.value?.台级top||[]),gt=H(()=>Math.max(1,...ct.value.map(ft=>ft.时长h)));return(ft,At)=>(w(),S("section",null,[a("div",Bu,d(p(o)("flt.eyebrow")),1),a("div",Wu,[a("b",null,d(p(o)("win.banner",{win:p(ke)(t.d.win)})),1),v.value?(w(),S(it,{key:0},[At[0]||(At[0]=at(" | ",-1)),a("span",Uu,d(v.value),1)],64)):$t("",!0)]),a("div",Ku,[a("div",Vu,[at(d(p(o)("flt.alarm_face"))+" ",1),a("span",Gu,d(p(o)("flt.alarm_meta",{n:p(Mt)(s.value.total),c:s.value.n_codes,win:p(ke)(t.d.win)})),1)]),a("div",zu,[a("h3",null,d(p(o)("flt.rate")),1),Ot(Se,{html:p(Te)("rateChart",i.value)},null,8,["html"]),a("p",Yu,[a("b",null,d(p(o)("flt.rate_note")),1),at(" — "+d(r.value),1)])]),a("div",Ju,[a("h3",null,d(p(o)("flt.pareto_n")),1),Ot(Se,{html:p(Te)("paretoChart",s.value.pareto_n||[],p(o)("unit.n"),p(o)("flt.pareto_n_note"))},null,8,["html"]),a("p",{class:"small muted",style:{"margin-top":"5px","line-height":"1.6"},innerHTML:k.value},null,8,Xu)]),a("div",Zu,[a("h3",null,d(p(o)("flt.pareto_d")),1),Ot(Se,{html:p(Te)("paretoChart",s.value.pareto_d||[]," h",p(o)("flt.pareto_d_note"))},null,8,["html"]),a("p",{class:"small muted",style:{"margin-top":"5px","line-height":"1.6"},innerHTML:A.value},null,8,Qu)]),a("div",tp,[a("h3",null,d(p(o)("flt.quad")),1),Ot(Se,{html:p(Te)("quadChart",s.value.quad||[])},null,8,["html"]),a("p",ep,[at(d(p(o)("flt.quad_note",{n:s.value.n_codes,m:(s.value.quad||[]).length}))+" ",1),n.value.length?(w(),S("span",sp,d(p(o)("flt.quad_partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)})),1)):$t("",!0),at(" "+d(p(o)("flt.quad_note2")),1)])]),a("div",np,[a("h3",null,d(p(o)("flt.per_t",{n:K.value.length})),1),a("div",lp,[a("table",null,[a("tr",null,[a("th",ip,d(p(o)("ui.unit")),1),a("th",null,d(p(o)("ui.count")),1),a("th",ap,d(p(o)("flt.per_t_share")),1)]),(w(!0),S(it,null,bt(K.value,T=>(w(),S("tr",{key:T.k},[a("td",null,[a("b",null,d(p(Lt)(T.k)),1)]),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(T.v/E.value*90)}px;background:${T.v/E.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),a("span",op,d(p(Mt)(T.v)),1)]),a("td",rp,d((T.v/s.value.total*100).toFixed(1))+"%",1)]))),128))])]),a("p",cp,d(p(o)("flt.per_t_note",{n:p(Mt)(s.value.total)})),1)]),t.d.m8&&t.d.m8.err?(w(),S("div",dp,[a("p",up,d(p(o)("flt.block_err",{k:"m8",e:t.d.m8.err})),1)])):$t("",!0),l.value&&q.value.length?(w(),S("div",pp,[a("h3",null,[at(d(p(o)("flt.seasonal"))+" ",1),a("span",hp,"("+d(p(o)("flt.seasonal_unit"))+")",1)]),Ot(Se,{html:p(Te)("multiline",ft.seasonalRaw)},null,8,["html"]),a("div",fp,[(w(!0),S(it,null,bt(N.value,(T,V)=>(w(),S("span",{key:V},[a("i",{style:Dt(`background:${G[V%4]}`)},null,4),at(d(T),1)]))),128))]),a("p",mp,d(p(o)("flt.seasonal_note")),1)])):$t("",!0),l.value?(w(),S(it,{key:2},[a("div",vp,[at(d(p(o)("flt.stop_face"))+" ",1),a("span",_p,d(p(o)("flt.stop_meta",{h:p(Mt)(l.value.停机总时长h),n:p(Mt)(l.value.停机事件数)})),1)]),Y.value?(w(),S("div",gp,[a("h3",null,d(p(o)("flt.ram")),1),Ot(Se,{html:p(Te)("ramChart",Y.value&&Y.value.表||[],ft.partPlain)},null,8,["html"]),a("p",bp,d(p(o)("flt.ram_note",{a:Y.value.设备类停机h,b:Y.value.外部类停机h})),1),a("div",yp,[Ot(Se,{html:p(Te)("attribBar",Y.value&&Y.value.表||[],Y.value&&Y.value.总停机h||0)},null,8,["html"])]),a("p",$p,d(p(o)("flt.attrib_note",{h:((Y.value.表||[]).find(T=>T.部件==="无记录停机")||{}).停机时长h||0})),1)])):$t("",!0),a("div",xp,[a("h3",null,d(p(o)("flt.stop_pareto")),1),Ot(Se,{html:p(Te)("paretoChart",ht.value," h",p(o)("flt.stop_pareto_note"))},null,8,["html"]),a("p",{class:"small muted",style:{"margin-top":"5px","line-height":"1.6"},innerHTML:O.value},null,8,wp),a("p",kp,d(l.value.口径),1)]),a("div",Mp,[a("h3",null,d(p(o)("flt.stop_units",{n:ct.value.length})),1),a("div",Sp,[a("table",null,[a("tr",null,[a("th",Tp,d(p(o)("ui.unit")),1),a("th",null,d(p(o)("flt.stop_h")),1),a("th",Ep,d(p(o)("flt.stop_n")),1)]),(w(!0),S(it,null,bt(ct.value,T=>(w(),S("tr",{key:T.t},[a("td",null,[a("b",null,d(p(Lt)(T.t)),1)]),a("td",null,[a("i",{class:"bar",style:Dt(`width:${Math.round(T.时长h/gt.value*90)}px;background:${T.时长h/gt.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),a("span",Cp,d(p(Mt)(T.时长h)),1),At[1]||(At[1]=at("h",-1))]),a("td",Fp,d(T.次),1)]))),128))])]),a("p",Ap,d(p(o)("flt.stop_units_note")),1)])],64)):$t("",!0)])]))}}),qp={class:"eyebrow"},Lp={style:{display:"flex",gap:"8px","margin-bottom":"14px","flex-wrap":"wrap"}},jp=["data-fsub","onClick"],Dp=["innerHTML"],Pp=Ht({__name:"Vibration",props:{d:{},sub:{},cms:{}},emits:["sub"],setup(t,{emit:e}){const s=t,n=e,l=H(()=>s.sub||"matrix"),i=H(()=>s.d?.fus),c=H(()=>{const r=i.value;return!r||r.err?`<section><div class="panel"><p>${o("fus.unavailable",{e:String(r&&r.err||"")})}</p></div></section>`:l.value==="matrix"?Fu(r):l.value==="loop"?Au(r):l.value==="units"?ju(r,null):l.value==="events"?Hu(r,s.d):l.value==="cms"?Ru(s.cms??null):`<div class="panel mb"><p class="small muted">子视图「${o("fus.sub."+l.value)}」尚未迁移到 Vue(迁移中)。</p></div>`});return(r,u)=>(w(),S("section",null,[a("div",qp,d(p(o)("fus.eyebrow")),1),a("div",Lp,[(w(!0),S(it,null,bt(p(Iu),v=>(w(),S("button",{key:v,class:Ut(["pill",{on:v===l.value}]),"data-fsub":v,onClick:f=>n("sub",v)},d(p(o)("fus.sub."+v)),11,jp))),128))]),a("div",{innerHTML:c.value},null,8,Dp)]))}}),Hp={class:"eyebrow"},Rp={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},Ip={class:"muted",style:{"margin-top":"3px"}},Np={key:0,class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},Bp={class:"small"},Wp={class:"small muted",style:{"font-weight":"400"}},Up={key:0,class:"chip"},Kp={style:{display:"flex","flex-wrap":"wrap",gap:"18px"}},Vp={style:{flex:"1 1 300px","min-width":"280px"}},Gp={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},zp={class:"small muted",style:{"margin-top":"4px"}},Yp={style:{flex:"1 1 300px","min-width":"280px"}},Jp={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},Xp=["innerHTML"],Zp={class:"small",style:{"font-weight":"600",margin:"12px 0 4px"}},Qp={class:"small muted",style:{"margin-top":"4px"}},th={key:2,class:"panel mb"},eh={class:"small muted",style:{"font-weight":"400"}},sh=["innerHTML"],nh={class:"eyebrow"},lh={key:3,class:"panel",style:{"border-left":"3px solid var(--critical)"}},ih={class:"small"},ah={key:4,class:"panel",style:{"border-left":"3px solid var(--accent)"}},oh={class:"small"},rh={key:5,class:"panel"},ch={class:"small muted"},dh={key:6,class:"grid2"},uh={key:0},ph={class:"small muted",style:{"font-weight":"400"}},hh={class:"legend",style:{"margin-top":"6px","flex-wrap":"wrap"}},fh={key:0,class:"small muted",style:{"margin-top":"6px"}},mh=Ht({__name:"Generation",props:{d:{},curves:{},pending:{type:Boolean}},setup(t){const e=t,s=H(()=>e.d?.m9&&!e.d.m9.err?e.d.m9:null),n=H(()=>e.d?.control||null),l=H(()=>e.curves||null),i=H(()=>(e.d?.sysmx_span||[]).join(" ~ ")||""),c=q=>{const G=Object.entries(q?.分组||{}).map(([ht,ct])=>({v:parseFloat(ht),n:ct,raw:ht}));if(!G.length)return null;const N=G.map(ht=>ht.v).sort((ht,ct)=>ht-ct),Y=N.length%2?N[(N.length-1)/2]:(N[N.length/2-1]+N[N.length/2])/2;return{gs:G,med:Y}},r=H(()=>({p:c(s.value?.P封顶),w:c(s.value?.ω封顶)})),u=H(()=>{const q=r.value.p,G=r.value.w,N=[];return q&&N.push({name:o("ch.cap.p"),type:"scatter",data:q.gs.map(Y=>[Y.v,1]),symbolSize:10,itemStyle:{color:"#0b5fa5",opacity:.6}}),G&&N.push({name:o("ch.cap.w"),type:"scatter",data:G.gs.map(Y=>[Y.v,0]),symbolSize:10,itemStyle:{color:"#b45309",opacity:.6}}),{grid:{left:56,right:36,top:20,bottom:24},xAxis:{type:"value"},yAxis:{type:"value",min:-.5,max:1.5,show:!1},series:N,__data__:[]}}),v=H(()=>s.value?.β_schedule?.离群||[]),f=H(()=>s.value?.β_schedule?.全场同档差中位||0),m=H(()=>({grid:{left:56,right:60,top:20,bottom:24},xAxis:{type:"value"},yAxis:{type:"category",data:v.value.map(q=>Lt(q.t))},series:[{type:"bar",data:v.value.map(q=>q.平均偏),itemStyle:{color:"#0b5fa5"}}],__data__:[]})),_=H(()=>{const q=n.value?.curve?.cands||[];return q.length?q.map(G=>`<a href="/turbine/${G.t}">${Lt(G.t)}</a> ${G.dev}% ${xt(G.判)}`).join(" | "):o("gen.no_cands")}),k=H(()=>o("gen.beta_note",{units:v.value.map(q=>`<a href="/turbine/${q.t}">${Lt(q.t)}</a>`).join(" / "),k:v.value.length?Math.round(Math.max(...v.value.map(q=>q.平均偏))/Math.max(f.value||0,.01)):"—",v:xt(s.value?.β_schedule?.判)})),A=H(()=>Object.entries(s.value?.尺子||{}).map(([q,G])=>({k:q,r:G.极差/G.σ}))),O=H(()=>({grid:{left:100,right:80,top:20,bottom:24},xAxis:{type:"value"},yAxis:{type:"category",data:A.value.map(q=>q.k)},series:[{type:"bar",data:A.value.map(q=>q.r),itemStyle:{color:"#0b5fa5"}}],__data__:[]})),K=H(()=>l.value?.figs||[]);function E(q){const G=q.months||q.x||[];return{grid:{left:56,right:20,top:28,bottom:40},legend:{top:0,textStyle:{fontSize:10}},xAxis:{type:"category",data:G},yAxis:{type:"value",scale:!0},series:(q.series||[]).map(N=>({name:String(N.name),type:"line",data:N.vals,connectNulls:!1})),__data__:[]}}return(q,G)=>(w(),S("section",null,[a("div",Hp,d(p(o)("gen.eyebrow")),1),a("div",Rp,[a("b",null,d(p(o)("gen.fixed_win")),1),at(" "+d(i.value?p(o)("gen.win_range",{span:i.value}):"")+" ",1),a("div",Ip,d(p(o)("gen.win_why")),1)]),t.d.m9&&t.d.m9.err?(w(),S("div",Np,[a("p",Bp,d(p(o)("flt.block_err",{k:"m9",e:p(xt)(t.d.m9.err)})),1)])):$t("",!0),s.value?(w(),S("div",{key:1,class:"panel mb",style:Dt(t.pending?"border-left:3px solid var(--accent)":"")},[a("h3",null,[at(d(p(o)("gen.ctrl"))+" ",1),a("span",Wp,d(p(o)("gen.ctrl_win",{win:p(xt)(s.value.窗)})),1),t.pending?(w(),S("span",Up,d(p(o)("gen.recomputing_short")),1)):$t("",!0)]),a("div",Kp,[a("div",Vp,[a("div",Gp,d(p(o)("gen.cap")),1),Ot(Ke,{option:u.value,height:"170px"},null,8,["option"]),a("p",zp,d(p(o)("gen.cap_note")),1)]),a("div",Yp,[a("div",Jp,d(p(o)("gen.beta")),1),Ot(Ke,{option:m.value,height:"170px"},null,8,["option"]),a("p",{class:"small muted",style:{"margin-top":"4px"},innerHTML:k.value},null,8,Xp),a("div",Zp,d(p(o)("gen.ruler")),1),Ot(Ke,{option:O.value,height:"170px"},null,8,["option"]),a("p",Qp,d(p(o)("gen.ruler_note")),1)])])],4)):$t("",!0),n.value&&n.value.curve?(w(),S("div",th,[a("h3",null,[at(d(p(o)("gen.cands"))+" ",1),a("span",eh,d(p(o)("gen.cands_meta",{note:p(xt)(n.value.curve.note||""),s:t.d.sigma||n.value.curve.sigma})),1)]),a("p",{class:"small",innerHTML:_.value},null,8,sh)])):$t("",!0),a("div",nh,d(p(o)("gen.figs")),1),l.value&&l.value.err?(w(),S("div",lh,[a("p",ih,d(p(pt)(l.value.err)),1)])):l.value&&l.value.building?(w(),S("div",ah,[a("p",oh,[a("b",null,d(p(o)("gen.recomputing")),1),at(" "+d(p(xt)(l.value.curves?.note||"")),1)]),G[0]||(G[0]=a("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),G[1]||(G[1]=a("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))])):l.value?(w(),S("div",dh,[(w(!0),S(it,null,bt(K.value,(N,Y)=>(w(),S("div",{key:Y,class:"panel"},[a("h3",null,[at(d(p(xt)(N.title||"")),1),N.unit?(w(),S("span",uh,[a("span",ph,"("+d(p(xt)(N.unit))+")",1)])):$t("",!0)]),Ot(Ke,{option:E(N),height:"260px"},null,8,["option"]),a("div",hh,[(w(!0),S(it,null,bt(N.series||[],(ht,ct)=>(w(),S("span",{key:ct},[a("i",{style:Dt(`background:${["var(--accent)","#D48A1E","#2E8B6A","#7C5295"][ct%4]}`)},null,4),at(d(String(ht.name)),1)]))),128))]),N.note?(w(),S("p",fh,d(p(xt)(N.note)),1)):$t("",!0)]))),128))])):(w(),S("div",rh,[a("p",ch,d(p(o)("gen.loading")),1),G[2]||(G[2]=a("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),G[3]||(G[3]=a("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))]))]))}}),vh={class:"eyebrow"},_h={class:"small muted"},gh=["href"],bh=["innerHTML"],yh={class:"panel mb"},$h={class:"small muted"},xh=["innerHTML"],wh={style:{display:"flex",gap:"8px","flex-wrap":"wrap",margin:"10px 0","align-items":"center"}},kh=["placeholder","value"],Mh={class:"small muted",for:"askm"},Sh=["innerHTML"],Th=["innerHTML"],Eh=["title"],Ch={class:"muted"},Fh={class:"btn",id:"askgo"},Ah={id:"askout",class:"small"},Oh=Ht({__name:"Decision",props:{d:{},apis:{}},setup(t){const e=t,s=[["equip","设备类"],["sched","检修排程决策"],["loss","损失分析"],["risk","安全风险预测"]],n={"qwen3:8b":"local","qwen3.8:27b":"local","qwen3:30b-a3b":"local","deepseek-r1:14b":"local","deepseek-r1:32b":"local","deepseek-chat":"cloud","kimi-fast":"cloud","qwen-plus":"cloud","deepseek-v4-pro":"cloud"},l=qt("equip"),i=qt(""),c=qt(""),r=qt(""),u=H(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),v=H(()=>u.value?u.value.models||{}:null),f=H(()=>!!u.value?.offline||!!u.value?.LOCAL_AI_DOWN),m=H(()=>o("cat."+l.value)),_=H(()=>s.map(([Y])=>`<button class="pill ${Y===l.value?"on":""}" data-cat="${Y}">${o("cat."+Y)}</button>`).join("")),k=H(()=>[1,2,3].map(Y=>`<div class="qitem" data-q="${pt(o("cat."+l.value+".q"+Y))}">${o("cat."+l.value+".q"+Y)}</div>`).join("")),A=(Y,ht)=>o("mdl."+Y+"."+ht),O=Y=>(A(Y,"nm")||Y)+(n[Y]?" · "+o("mdl."+n[Y]):"")+(A(Y,"t")?" · "+A(Y,"t"):""),K=Y=>n[Y]?n[Y]==="local"?o("mdl.zero_outbound"):`<span style="color:var(--warning)">${o("mdl.outbound_warn")}</span>`:`<span style="color:var(--warning)">${o("mdl.unknown_warn")}</span>`,E=H(()=>{const Y=v.value;if(Y===null)return c.value;const ht=Object.keys(Y);return!c.value||!ht.includes(c.value)?ht[0]||"":c.value}),q=H(()=>{const Y=v.value;return Y===null?'<option value="">…</option>':Object.keys(Y).length?Object.keys(Y).map(ht=>`<option value="${pt(ht)}" ${ht===E?"selected":""}>${pt(O(ht))}</option>`).join(""):`<option value="">${f.value?o("ask.local_down"):o("ask.no_models")}</option>`}),G=H(()=>`/?lang=zh&win=${encodeURIComponent(String(e.d?.win||""))}`),N=H(()=>E.value?K(E.value):"");return(Y,ht)=>(w(),S("section",null,[a("div",vh,d(p(o)("dec.head")),1),a("p",_h,[at(d(p(o)("dec.classic"))+" ",1),a("a",{href:G.value},d(p(o)("ui.open_classic")),9,gh)]),a("div",{style:{display:"flex",gap:"8px",margin:"10px 0 12px","flex-wrap":"wrap"},innerHTML:_.value},null,8,bh),a("div",yh,[a("h3",null,d(p(o)("ask.common_q",{cat:m.value})),1),a("p",$h,d(p(o)("cat."+l.value+".hint"))+d("。")+d(p(o)("ask.grounding")),1),a("div",{innerHTML:k.value},null,8,xh),a("div",wh,[a("input",{id:"askq",type:"text",placeholder:p(pt)(p(o)("ask.placeholder",{cat:m.value})),value:i.value,style:{flex:"1","min-width":"280px"}},null,8,kh),a("label",Mh,d(p(o)("ask.model")),1),a("select",{id:"askm",innerHTML:q.value},null,8,Sh),a("span",{id:"mdlnote",class:"small",innerHTML:N.value},null,8,Th),a("label",{class:"small",style:{cursor:"pointer","white-space":"nowrap"},title:p(pt)(p(o)("ask.xrev_title"))},[ht[0]||(ht[0]=a("input",{type:"checkbox",id:"askxrev"},null,-1)),at(" "+d(p(o)("ask.xrev"))+" ",1),a("span",Ch,d(p(o)("ask.xrev_note")),1)],8,Eh),a("button",Fh,d(p(o)("ask.go")),1)]),a("div",Ah,d(r.value||p(o)("ask.idle")),1)])]))}}),qh={class:"eyebrow"},Lh={class:"panel mb"},jh={class:"small muted",style:{"font-weight":"400"}},Dh=["placeholder","value"],Ph={class:"btn","data-asst":"fault"},Hh={class:"small muted"},Rh=["innerHTML"],Ih={id:"asstOut_fault",style:{"margin-top":"10px"}},Nh={class:"panel mb"},Bh={class:"small muted",style:{"font-weight":"400"}},Wh=["innerHTML"],Uh={class:"btn","data-asst":"prev"},Kh={id:"asstOut_prev",style:{"margin-top":"10px"}},Vh={class:"panel mb"},Gh={class:"small muted",style:{"font-weight":"400"}},zh=["innerHTML"],Yh={class:"btn","data-asst":"tree"},Jh={id:"asstOut_tree",style:{"margin-top":"10px"}},fn="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px",Xh=Ht({__name:"Assistant",setup(t){const e=["变桨","偏航","主轴承","齿轮箱","发电机","变流器","塔架与基础","主控与传感网","叶片与叶根"],s=["3225","3130","13902","10105","3224"],n=vs({fault:"",prev:"pitch",tree:"pitch",out:{fault:"",prev:"",tree:""}}),l=c=>e.map(r=>`<option value="${Ps(r)}" ${n[c]===Ps(r)?"selected":""}>${ye(r)}</option>`).join(""),i=H(()=>s.map(c=>`<a href="#" data-code="${c}">${c}</a>`).join(" · "));return(c,r)=>(w(),S("section",null,[a("div",qh,d(p(o)("asst.head"))+" — "+d(p(o)("asst.head_note")),1),a("div",Lh,[a("h3",null,[at(d(p(o)("asst.corrective"))+" ",1),a("span",jh,d(p(o)("asst.corrective_flow")),1)]),a("div",{style:fn},[a("input",{id:"asstIn_fault",placeholder:p(pt)(p(o)("asst.code_placeholder")),value:n.fault,style:{flex:"1 1 220px"}},null,8,Dh),a("button",Ph,d(p(o)("ui.query")),1),a("span",Hh,[at(d(p(o)("asst.common"))+" ",1),a("span",{innerHTML:i.value},null,8,Rh)])]),a("div",Ih,d(n.out.fault),1)]),a("div",Nh,[a("h3",null,[at(d(p(o)("asst.preventive"))+" ",1),a("span",Bh,d(p(o)("asst.preventive_flow")),1)]),a("div",{style:fn},[a("select",{id:"asstIn_prev",style:{flex:"1 1 200px"},innerHTML:l("prev")},null,8,Wh),a("button",Uh,d(p(o)("ui.query")),1)]),a("div",Kh,d(n.out.prev),1)]),a("div",Vh,[a("h3",null,[at(d(p(o)("asst.faulttree"))+" ",1),a("span",Gh,d(p(o)("asst.faulttree_flow")),1)]),a("div",{style:fn},[a("select",{id:"asstIn_tree",style:{flex:"1 1 200px"},innerHTML:l("tree")},null,8,zh),a("button",Yh,d(p(o)("ui.query")),1)]),a("div",Jh,d(n.out.tree),1)])]))}}),Zh={class:"eyebrow"},Qh={key:0,class:"panel"},tf={class:"small muted"},ef={key:1,class:"panel"},sf={class:"small",style:{color:"var(--critical)"}},nf={class:"panel mb"},lf={class:"small muted"},af={class:"small muted"},of={class:"tblwrap"},rf={style:{"margin-top":"10px"}},cf={style:{width:"18%"}},df={style:{width:"20%"}},uf={style:{width:"13%"}},pf={style:{width:"10%"}},hf={style:{width:"11%"}},ff={class:"small"},mf={class:"small num"},vf={key:0,class:"muted"},_f={class:"small muted"},gf={class:"small"},bf={class:"small"},yf={class:"small"},$f={class:"muted"},xf={style:{"margin-top":"3px"}},wf={class:"muted",style:{"margin-top":"3px"}},kf=Ht({__name:"System",props:{apis:{}},setup(t){const e=t,s=r=>String(r??""),n=H(()=>e.apis?.["/detail/api/maint_survey"]??e.apis?.["/api/maint_survey"]??null),l=[[["数据","Data"],"mt.layer_data","mt.layer_data_note","var(--accent)"],[["机理","Domain model","Mechanism"],"mt.layer_mech","mt.layer_mech_note","var(--warning)"]],i=H(()=>n.value?.rows||[]),c=H(()=>l.map(([r,u,v,f])=>({kn:u,kd:v,col:f,rs:i.value.filter(m=>r.includes(String(m.层)))})).filter(r=>r.rs.length));return(r,u)=>(w(),S("section",null,[a("div",Zh,d(p(o)("mt.eyebrow")),1),n.value?n.value.error?(w(),S("div",ef,[a("p",sf,d(p(xt)(n.value.error)),1)])):(w(),S(it,{key:2},[a("div",nf,[a("h3",null,d(p(o)("mt.head",{n:i.value.length})),1),a("p",lf,d(p(o)("mt.note")),1)]),(w(!0),S(it,null,bt(c.value,v=>(w(),S("div",{key:v.kn,class:"panel mb",style:Dt(`border-left:3px solid ${v.col}`)},[a("h3",null,d(p(o)(v.kn))+" ("+d(v.rs.length)+")",1),a("p",af,d(p(o)(v.kd)),1),a("div",of,[a("table",rf,[a("tr",null,[a("th",cf,d(p(o)("mt.src")),1),a("th",df,d(p(o)("mt.cov")),1),a("th",uf,d(p(o)("mt.last")),1),a("th",pf,d(p(o)("mt.freq")),1),a("th",hf,d(p(o)("mt.resp")),1),a("th",null,d(p(o)("mt.how")),1)]),(w(!0),S(it,null,bt(v.rs,(f,m)=>(w(),S("tr",{key:m},[a("td",ff,[a("b",null,d(f.存在?"":"✗ ")+d(s(f.名)),1)]),a("td",mf,[at(d(s(f.覆盖)),1),f.条数?(w(),S("span",vf,d(p(o)("mt.rows_n",{n:p(Mt)(f.条数)})),1)):$t("",!0)]),a("td",_f,d(p(pt)(f.末次更新||"—")),1),a("td",gf,d(s(f.频率)),1),a("td",bf,d(s(f.责任)),1),a("td",yf,[a("div",$f,[at(d(p(o)("mt.put"))+" ",1),a("code",null,d(s(f.位置)),1)]),a("div",xf,[at(d(p(o)("mt.run"))+" ",1),a("code",null,d(s(f.摄入)),1)]),a("div",wf,d(s(f.说明)),1)])]))),128))])])],4))),128))],64)):(w(),S("div",Qh,[a("p",tf,d(p(o)("mt.surveying")),1)]))]))}}),Mf={class:"eyebrow"},Sf={class:"panel mb noprint"},Tf={style:{display:"flex",gap:"10px","align-items":"center","flex-wrap":"wrap","margin-bottom":"10px"}},Ef={class:"small",style:{"font-weight":"600"}},Cf=["data-preset"],Ff={id:"rptaud"},Af=["selected"],Of=["selected"],qf={class:"btn quiet",id:"rptprint"},Lf={class:"btn quiet","data-export":"docx"},jf={class:"btn quiet","data-export":"xlsx"},Df={key:0,class:"small",style:{color:"var(--warning)","flex-basis":"100%"}},Pf={class:"small",style:{"font-weight":"600","margin-bottom":"7px"}},Hf={style:{"font-weight":"400",color:"var(--muted)"}},Rf=["innerHTML"],If={id:"rpthint",class:"small muted",style:{"margin-top":"9px","padding-top":"8px","border-top":"1px solid var(--line)","min-height":"19px"}},Nf={style:{"margin-top":"11px","padding-top":"10px","border-top":"1px solid var(--line)"}},Bf={class:"small",style:{"font-weight":"600","margin-bottom":"6px"}},Wf=["innerHTML"],Uf={style:{display:"flex",gap:"8px","align-items":"center","flex-wrap":"wrap"}},Kf=["placeholder","value"],Vf=["innerHTML"],Gf=["disabled"],zf={id:"rptout",class:"small muted",style:{"margin-top":"7px"}},Yf={key:0,class:"paper",style:{"text-align":"center",padding:"56px 40px"}},Jf={class:"small muted"},Xf={key:1,class:"paper"},Zf={class:"paper-hd"},Qf={class:"paper-ti"},tm={class:"small muted",style:{"margin-top":"3px"}},em={class:"small muted",style:{"text-align":"right"}},sm={key:0,class:"noprint",style:{display:"flex",gap:"3px","justify-content":"flex-end","margin-bottom":"-6px",position:"relative","z-index":"2"}},nm=["data-k","disabled"],lm=["data-k","disabled"],im=["data-k"],am=["innerHTML"],om=["innerHTML"],rm={class:"paper-ft"},cm=Ht({__name:"Report",props:{d:{},apis:{}},setup(t){const e=t,s={month:["kpi","water","emon","blame","ram","pareto","units","plan","caliber"],week:["kpi","frate","units","plan","caliber"],topic:["units","chain","ram","loop","caliber"],year:["kpi","water","emon","ram","loop","caliber"],blank:[]},n={kpi:"gen",water:"gen",emon:"gen",blame:"gen",ram:"rel",parts:"rel",attrib:"rel",pareto:"flt",quad:"flt",frate:"flt",units:"unit",chain:"unit",loop:"unit",plan:"end",caliber:"end",narr:"end"},l={kpi:"▦",water:"▤",emon:"▥",blame:"◧",ram:"◈",parts:"▤",attrib:"▬",pareto:"▮",quad:"◇",frate:"▪",units:"☰",chain:"⛓",loop:"✓",plan:"✎",caliber:"⚑",narr:"✍"},i={"qwen3:8b":"local","qwen3.8:27b":"local","qwen3:30b-a3b":"local","deepseek-r1:14b":"local","deepseek-r1:32b":"local","deepseek-chat":"cloud","kimi-fast":"cloud","qwen-plus":"cloud","deepseek-v4-pro":"cloud"},c=["gen","rel","flt","unit","end"],r=vs({canvas:[],aud:"in",need:"",model:"",models:null,compose:null,narr:null,out:""}),u=H(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),v=H(()=>u.value?u.value.models||{}:r.models),f=H(()=>!!u.value?.offline),m=(ct,gt)=>o("mdl."+ct+"."+gt),_=ct=>(m(ct,"nm")||ct)+(i[ct]?" · "+o("mdl."+i[ct]):"")+(m(ct,"t")?" · "+m(ct,"t"):""),k=ct=>r.canvas.includes(ct),A=H(()=>r.compose===!0&&!!v.value&&Object.keys(v.value).length>0),O=H(()=>{const ct=v.value;return ct===null?'<option value="">…</option>':Object.keys(ct).length?Object.keys(ct).map(gt=>`<option value="${pt(gt)}" ${gt===G?"selected":""}>${pt(_(gt))}</option>`).join(""):`<option value="">${f.value?o("ask.local_down"):o("ask.no_models")}</option>`}),K=H(()=>c.map(ct=>`<div class="small muted" style="text-align:right;white-space:nowrap">${o("rpt.g."+ct)}</div><div style="display:flex;gap:6px;flex-wrap:wrap">`+Object.keys(n).filter(gt=>n[gt]===ct).map(gt=>`<button class="pill ${k(gt)?"on":""}" data-block="${gt}" style="border-radius:7px;padding:5px 11px;font-size:12.5px;opacity:${k(gt)?1:.8}">${l[gt]} ${o("rpt.b."+gt+".nm")}${k(gt)?" ✓":""}</button>`).join("")+"</div>").join("")),E=H(()=>""),q=ct=>"",G=H(()=>{const ct=v.value;if(ct===null)return r.model;const gt=Object.keys(ct);return!r.model||!gt.includes(r.model)?gt[0]||"":r.model}),N=H(()=>o("rpt.need_hint")+(G.value?i[G.value]==="local"?o("rpt.local_note"):`<span style="color:var(--warning)">${o("rpt.cloud_note")}</span>`:"")),Y=H(()=>r.out?r.out:r.compose===!1?o("rpt.no_compose"):v.value&&!Object.keys(v.value).length?f.value?o("ask.local_down"):o("rpt.no_models"):""),ht=H(()=>(String(e.d?.fus?.数据时点||"").match(/\d{4}-\d{2}-\d{2}/)||[""])[0]);return(ct,gt)=>(w(),S("section",null,[a("div",Mf,d(p(o)("rpt.eyebrow")),1),a("div",Sf,[a("div",Tf,[a("span",Ef,d(p(o)("rpt.presets")),1),(w(!0),S(it,null,bt(Object.keys(s),ft=>(w(),S("button",{key:ft,class:"pill","data-preset":ft},d(p(o)("rpt.preset."+ft)),9,Cf))),128)),gt[0]||(gt[0]=a("span",{style:{flex:"1"}},null,-1)),a("select",Ff,[a("option",{value:"in",selected:r.aud==="in"},d(p(o)("rpt.aud_in")),9,Af),a("option",{value:"up",selected:r.aud==="up"},d(p(o)("rpt.aud_up")),9,Of)]),a("button",qf,d(p(o)("rpt.print")),1),a("button",Lf,d(p(o)("rpt.export_docx")),1),a("button",jf,d(p(o)("rpt.export_xlsx")),1),r.aud==="up"?(w(),S("span",Df,d(p(o)("rpt.up_note")),1)):$t("",!0)]),a("div",Pf,[at(d(p(o)("rpt.library"))+" ",1),a("span",Hf,d(p(o)("rpt.library_note",{n:r.canvas.length})),1)]),a("div",{style:{display:"grid","grid-template-columns":"auto 1fr",gap:"6px 12px","align-items":"center"},innerHTML:K.value},null,8,Rf),a("div",If,d(p(o)("rpt.hint_idle")),1),a("div",Nf,[a("div",Bf,[at(d(p(o)("rpt.need_head"))+" ",1),a("span",{id:"rptmdlnote",style:{"font-weight":"400",color:"var(--muted)"},innerHTML:N.value},null,8,Wf)]),a("div",Uf,[a("input",{id:"rptneed",placeholder:p(pt)(p(o)("rpt.need_ph")),value:r.need,style:{flex:"1 1 300px","min-width":"220px"}},null,8,Kf),a("select",{id:"rptmdl",innerHTML:O.value},null,8,Vf),a("button",{class:"btn",id:"rptgo",disabled:!A.value},d(p(o)("rpt.compose")),9,Gf)]),a("div",zf,d(Y.value),1)])]),r.canvas.length?(w(),S("div",Xf,[a("div",Zf,[a("div",null,[a("div",Qf,d(p(o)("app.brand"))+" · "+d(p(o)("rpt.paper_title")),1),a("div",tm,d(p(o)("rpt.paper_sub",{win:p(ke)(t.d.win),n:(t.d.kpi||{}).全场||38}))+d(r.aud==="up"?" | "+p(o)("rpt.up_tag"):""),1)]),a("div",em,d(p(o)("rpt.chapters",{n:r.canvas.length})),1)]),(w(!0),S(it,null,bt(r.canvas,(ft,At)=>(w(),S(it,{key:ft},[n[ft]?(w(),S("div",sm,[a("button",{class:"pill","data-mv":"up","data-k":ft,disabled:At===0,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"↑",8,nm),a("button",{class:"pill","data-mv":"down","data-k":ft,disabled:At===r.canvas.length-1,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"↓",8,lm),a("button",{class:"pill","data-mv":"del","data-k":ft,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"×",8,im)])):$t("",!0),n[ft]?(w(),S("div",{key:1,innerHTML:q()},null,8,am)):$t("",!0)],64))),128)),a("div",{innerHTML:E.value},null,8,om),a("div",rm,[a("span",null,d(p(o)("rpt.foot_src"))+d(ht.value?" | "+p(o)("rpt.foot_asof",{d:ht.value}):""),1),a("span",null,d(p(o)("rpt.foot_trace"))+d(r.aud==="up"?" | "+p(o)("rpt.foot_deid"):""),1)])])):(w(),S("div",Yf,[a("div",Jf,d(p(o)("rpt.preview_empty")),1)]))]))}}),dm={class:"kpis"},um=["title"],pm=["innerHTML"],hm={key:1},fm={key:0},mm={class:"sechead"},vm={class:"meta"},_m={class:"meta"},gm={key:0,class:"card mb",style:{"margin-bottom":"10px"}},bm={class:"small",style:{color:"var(--warning)"}},ym={class:"small muted"},$m={class:"cards"},xm=["id"],wm={class:"head"},km=["href"],Mm={class:"sys"},Sm={class:"evidence-detail"},Tm={class:"why"},Em={class:"evid"},Cm={key:1,class:"rv"},Fm={key:0,class:"caveat"},Am={class:"sechead"},Om={class:"meta"},qm={class:"legend"},Lm={class:"cells"},jm=["data-u","title"],Dm={key:1,class:"quiet",style:{padding:"10px"}},Pm={class:"nums"},Hm={class:"quiet"},Rm={class:"sechead"},Im={class:"meta"},Nm={class:"systems"},Bm={class:"t"},Wm=["href"],Um={class:"bar"},Km={class:"cnt"},Vm=Ht({__name:"Overview",props:{d:{}},setup(t){const e=t,s=H(()=>e.d?.fus||{}),n=H(()=>e.d?.m8?.mtbf||{}),l=H(()=>e.d?.control||{}),i=H(()=>{const O={};for(const K of l.value.states||[])O[K.k]=K.loss;return O}),c=H(()=>{const O=l.value,K=o("kpi.loss",{win:ke(e.d?.win)})+(i.value["停机(调度令)"]!=null?` · ${o("kpi.loss_dispatch",{n:Mt(i.value["停机(调度令)"])})}`:"");return[{v:Mt(O.avail,1),u:"%",l:o("kpi.avail",{win:ke(e.d?.win)}),k:O.avail>=95?"ok":"warn",ti:""},{v:Mt(n.value.停机总时长h),u:"h",l:o("kpi.downtime",{n:Mt(n.value.停机事件数)}),k:"warn",ti:""},{v:Mt(n.value.MTBF_h),u:"h",l:o("kpi.mtbo"),k:"",ti:""},{v:Mt(i.value.停机),u:"MWh",l:K,k:"",ti:""},{v:Mt(i.value["限电·绑定"]),u:"MWh",l:o("kpi.curtail"),k:"",ti:""},{vRaw:`${Mt(e.d?.kpi?.报警台)} <small>/ ${Mt(e.d?.kpi?.全场)}</small>`,u:"",l:o("kpi.alarm_units"),k:e.d?.kpi?.报警台?"warn":"ok",ti:o("kpi.alarm_units.hint"),vHtml:!0}]}),r=H(()=>{const O={};for(const K of e.d?.watch||[])O[K.t]=K.why;return O}),u=H(()=>((s.value.链盘||{}).rows||[]).filter(O=>O.lvl==="bad"||O.lvl==="warn"));function v(O){const K=(r.value[O.t]||"").trim();if(K)return K;const E=Sl[O.stuck]||String(O.stuck||"").toLowerCase(),q=o(E==="evidence"?"step.site_records":"step."+(E||"evidence"));return o("ov.basis_fusion",{part:O.part||"—",done:O.done==null?"—":O.done,n:(O.steps||[]).length||"—",stuck:O.stuck?q:o("ov.all_steps_done"),srcs:(O.srcs||[]).join(" / ")||o("ov.no_srcs")})}function f(O){if(!O.stuck)return"";const K=Sl[O.stuck]||String(O.stuck||"").toLowerCase(),E=o(K==="evidence"?"step.site_records":"step."+(K||"evidence"));return o("step.stuck_at",{step:E})}const m=[["危险","critical"],["报警","warning"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],_=H(()=>{const O=e.d?.sysdist||{};return Wn.map(K=>{const E=O[K]||{},q=Object.values(E).reduce((G,N)=>G+N,0)||1;return{name:ye(K),slug:Ps(K),dist:E,n:q,seg:m.filter(([G])=>E[G]).map(([G,N])=>({k:G,v:N}))}})}),k=H(()=>s.value.矩阵||[]),A=H(()=>new Set(u.value.map(O=>O.t)));return(O,K)=>(w(),S(it,null,[a("section",null,[a("div",dm,[(w(!0),S(it,null,bt(c.value,(E,q)=>(w(),S("div",{key:q,class:Ut(["kpi",E.k]),title:E.ti||void 0},[E.vHtml?(w(),S("b",{key:0,innerHTML:E.vRaw},null,8,pm)):(w(),S("b",hm,[at(d(E.v),1),E.u?(w(),S("small",fm,d(E.u),1)):$t("",!0)])),a("span",null,d(E.l),1)],10,um))),128))])]),a("section",null,[a("div",mm,[a("h2",null,d(p(o)("ov.attention")),1),a("span",vm,d(p(o)("ov.attention_n",{n:u.value.length})),1),a("span",_m,d(p(o)("ov.ranked_by")),1)]),s.value.gap?(w(),S("div",gm,[a("p",bm,d(s.value.gap),1),a("p",ym,d(p(o)("ov.fus_gap_hint")),1)])):$t("",!0),a("div",$m,[(w(!0),S(it,null,bt(u.value,E=>(w(),S("div",{key:E.t,class:"card",id:`u-${E.t}`,style:Dt(`--sev:var(--${p(Cl)[p(js)(E.ostate)||(E.lvl==="bad"?"bad":"warn")]})`)},[a("div",wm,[a("a",{class:"unit",href:`/turbine/${E.t}`},d(p(Lt)(E.t)),9,km),a("span",Mm,d(E.part||""),1),a("span",{class:Ut(["chip",p(js)(E.ostate)||(E.lvl==="bad"?"bad":"warn")])},d(p(Tl)(E.ostate||(E.lvl==="bad"?"危险":"报警"))),3)]),a("details",Sm,[a("summary",null,d(p(o)("ov.evidence")),1),a("div",Tm,d(v(E)),1)]),a("div",Em,[E.estate?(w(),S("span",{key:0,class:Ut(["tier",E.estate])},d(p(Tl)(E.estate)),3)):$t("",!0),E.srcs&&E.srcs.length?(w(),S("span",Cm,d(E.srcs.length)+" sources",1)):$t("",!0)]),f(E)||E.next?(w(),S("div",Fm,[a("b",null,d(p(o)("ov.caveat")),1),at(d(f(E))+d(f(E)&&E.next?" — ":"")+d(E.next||""),1)])):$t("",!0)],12,xm))),128))])]),a("section",null,[a("div",Am,[a("h2",null,d(p(o)("ov.strip")),1),a("span",Om,d(p(o)("ov.strip_hint")),1),a("div",qm,[(w(),S(it,null,bt(["bad","warn","unk","ok","ex"],E=>a("span",{key:E},[a("i",{style:Dt(`background:var(--${p(Cl)[E]})`)},null,4),at(d(p(o)(p(Mn)(E))),1)])),64))])]),a("div",{class:"strip",style:Dt(`--n:${k.value.length||38}`)},[a("div",Lm,[k.value.length?(w(!0),S(it,{key:0},bt(k.value,E=>(w(),S("div",{key:E.turbine,class:Ut(["cell",[p(El)(E),A.value.has(E.turbine)?"hot":""]]),"data-u":E.turbine,title:`${p(Lt)(E.turbine)} ${p(o)(p(Mn)(p(El)(E)))}`},null,10,jm))),128)):(w(),S("div",Dm,d(s.value.gap||p(o)("ov.fus_gap_hint")),1))]),a("div",Pm,[(w(!0),S(it,null,bt(k.value,E=>(w(),S("span",{key:`n-${E.turbine}`,class:Ut(A.value.has(E.turbine)?"hot":"")},d(p(Lt)(E.turbine).replace("#","")),3))),128))]),a("div",Hm,d(u.value.length?p(o)("ov.quiet",{n:Math.max(0,(k.value.length||38)-u.value.length)}):p(o)("ov.quiet_all",{n:k.value.length||38})),1)],4)]),a("section",null,[a("div",Rm,[a("h2",null,d(p(o)("ov.systems")),1),a("span",Im,d(p(o)("ov.systems_hint")),1)]),a("div",Nm,[(w(!0),S(it,null,bt(_.value,E=>(w(),S("div",{key:E.name,class:"sysc"},[a("div",Bm,[a("b",null,d(E.name),1),a("a",{href:`#tab=component&sys=${encodeURIComponent(E.slug)}`},d(p(o)("ui.open")),9,Wm)]),a("div",Um,[(w(!0),S(it,null,bt(E.seg,q=>(w(),S("i",{key:q.k,style:Dt(`width:${(E.dist[q.k]/E.n*100).toFixed(1)}%;background:var(--${q.v})`)},null,4))),128))]),a("div",Km,[(w(!0),S(it,null,bt(E.seg,q=>(w(),S("span",{key:`c-${q.k}`},[a("i",{style:Dt(`background:var(--${q.v})`)},null,4),at(d(E.dist[q.k]),1)]))),128))])]))),128))])])],64))}}),Gm={class:"wb-tabs"},zm=["onClick"],Ym={key:0,class:"todo"},Jm={class:"page-head"},Xm={class:"window-badge"},Zm={key:15,class:"card"},Qm={class:"hint"},tv=Ht({__name:"Workbench",props:{d:{},tab:{},sys:{},sub:{},cms:{},curves:{},apis:{}},emits:["tab","sub"],setup(t,{emit:e}){const s=t,n=e,l=H(()=>!dn.includes(s.tab));return(i,c)=>(w(),S(it,null,[a("nav",Gm,[(w(!0),S(it,null,bt(p(Mr),r=>(w(),S("button",{key:r,class:Ut({on:r===t.tab}),onClick:u=>n("tab",r)},[at(d(p(o)("tab."+r)),1),p(dn).includes(r)?$t("",!0):(w(),S("sup",Ym,"迁移中"))],10,zm))),128))]),a("div",Jm,[a("h1",null,d(p(o)("tab."+t.tab)),1),a("span",Xm,d(p(o)("win.label"))+" · "+d(p(ke)(t.d?.win)),1)]),t.tab==="overview"?(w(),Rt(Vm,{key:0,d:t.d},null,8,["d"])):t.tab==="energy"?(w(),Rt($u,{key:1,d:t.d},null,8,["d"])):t.tab==="component"?(w(),Rt(Gd,{key:2,d:t.d,sys:t.sys},null,8,["d","sys"])):t.tab==="fault"?(w(),Rt(Op,{key:3,d:t.d},null,8,["d"])):t.tab==="vibration"?(w(),Rt(Pp,{key:4,d:t.d,sub:t.sub,cms:t.cms,onSub:c[0]||(c[0]=r=>n("sub",r))},null,8,["d","sub","cms"])):t.tab==="generation"?(w(),Rt(mh,{key:5,d:t.d,curves:t.curves,pending:!!t.d.m9_pending},null,8,["d","curves","pending"])):t.tab==="decision"?(w(),Rt(Oh,{key:6,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="assistant"?(w(),Rt(Xh,{key:7,d:t.d},null,8,["d"])):t.tab==="system"?(w(),Rt(kf,{key:8,apis:t.apis},null,8,["apis"])):t.tab==="report"?(w(),Rt(cm,{key:9,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="documents"?(w(),Rt(Wr,{key:10})):t.tab==="recalc"?(w(),Rt(ec,{key:11})):t.tab==="portal"?(w(),Rt(fc,{key:12})):t.tab==="portal_sec"?(w(),Rt(Mc,{key:13})):t.tab==="portal_src"?(w(),Rt(Ac,{key:14})):l.value?(w(),S("section",Zm,[a("h2",null,[at(d(p(o)("tab."+t.tab))+" ",1),c[1]||(c[1]=a("small",null,"(本页签尚未迁移到 Vue)",-1))]),a("p",Qm,[c[2]||(c[2]=at(" 迁移纪律:页签逐个搬,每搬一个就用 ",-1)),c[3]||(c[3]=a("code",null,"tools/render_parity.mjs",-1)),c[4]||(c[4]=at(" 与重构前页面 (现网 ",-1)),c[5]||(c[5]=a("code",null,"/detail/v2",-1)),at(")对拍文案/数值/类名序列,**通过后**才删对应的 Python 前端源码。 当前已迁移:"+d(p(dn).join("、"))+"。 ",1)])])):$t("",!0)],64))}}),ev=Ui(tv,[["__scopeId","data-v-bef855f5"]]),sv={class:"top"},nv={key:0,class:"hint",style:{padding:"0 18px"}},lv={key:1,class:"hint",style:{padding:"0 18px",color:"var(--bad)"}},iv={key:2,class:"card"},av=Ht({__name:"App",setup(t){const e=qt("workbench"),s=qt("overview"),n=qt(null),l=qt(null),i=qt(""),c=qt(!1),r=qt("");async function u(){c.value=!0,r.value="";const v=i.value?`?win=${encodeURIComponent(i.value)}`:"",f=await Bi("fleet",{method:"GET"});if(v)try{const m=await fetch("/api/fleet"+v);l.value=await m.json()}catch(m){r.value=m instanceof Error?m.message:String(m)}else f.ok?(l.value=f.data,l.value?.win&&(i.value=l.value.win)):r.value=f.error||`HTTP ${f.status}`;c.value=!1}return is(i,v=>{v&&v!==l.value?.win&&u()}),Be(u),(v,f)=>(w(),S(it,null,[a("header",sv,[f[5]||(f[5]=a("div",{class:"brand"},"观澜 · 风电数据分析与决策支持",-1)),a("nav",null,[a("button",{class:Ut({on:e.value==="workbench"}),onClick:f[0]||(f[0]=m=>e.value="workbench")},"工作台",2),a("button",{class:Ut({on:e.value==="smoke"}),onClick:f[1]||(f[1]=m=>e.value="smoke")},"契约自检",2),a("button",{class:Ut({on:e.value==="about"}),onClick:f[2]||(f[2]=m=>e.value="about")},"关于本前端",2)])]),a("main",null,[e.value==="workbench"?(w(),S(it,{key:0},[c.value?(w(),S("p",nv,"取数中(/api/fleet)…")):r.value?(w(),S("p",lv,"取数失败:"+d(r.value),1)):l.value?(w(),Rt(ev,{key:2,d:l.value,tab:s.value,sub:n.value,onTab:f[3]||(f[3]=m=>s.value=m),onSub:f[4]||(f[4]=m=>n.value=m)},null,8,["d","tab","sub"])):$t("",!0)],64)):e.value==="smoke"?(w(),Rt(wr,{key:1})):(w(),S("section",iv,[...f[6]||(f[6]=[Lo("<h2>关于本前端</h2><ul><li>技术栈:<b>Vue 3 + Vite + TypeScript + Node.js</b>(用户令 2026-09-29)</li><li>与后端交互:只走网关一个源站,路径与形状以 <code>app_backEnd/app_backEnd_guanlan/contract/http_api_v1.json</code> 冻契约为准</li><li>数据来源:与重构前 <code>/detail/v2</code> 同一个接口 <code>/api/fleet?win=</code></li><li>迁移纪律:页签逐个搬,与重构前页面对拍通过后才删对应 Python 源码</li></ul>",2)])]))])],64))}});vr(av).mount("#app");
|