| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- (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 An(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const Ft={},Pe=[],fe=()=>{},Nl=()=>!1,Ws=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ks=t=>t.startsWith("onUpdate:"),Nt=Object.assign,On=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},sa=Object.prototype.hasOwnProperty,kt=(t,e)=>sa.call(t,e),pt=Array.isArray,Ce=t=>_s(t)==="[object Map]",As=t=>_s(t)==="[object Set]",el=t=>_s(t)==="[object Date]",ht=t=>typeof t=="function",Lt=t=>typeof t=="string",me=t=>typeof t=="symbol",Tt=t=>t!==null&&typeof t=="object",Bl=t=>(Tt(t)||ht(t))&&ht(t.then)&&ht(t.catch),Wl=Object.prototype.toString,_s=t=>Wl.call(t),na=t=>_s(t).slice(8,-1),Kl=t=>_s(t)==="[object Object]",qn=t=>Lt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ns=An(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=t=>{const e=Object.create(null);return(s=>e[s]||(e[s]=t(s)))},la=/-\w/g,ne=Us(t=>t.replace(la,e=>e.slice(1).toUpperCase())),ia=/\B([A-Z])/g,Ne=Us(t=>t.replace(ia,"-$1").toLowerCase()),Ul=Us(t=>t.charAt(0).toUpperCase()+t.slice(1)),en=Us(t=>t?`on${Ul(t)}`:""),he=(t,e)=>!Object.is(t,e),Ts=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},Vl=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},Ln=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let sl;const Vs=()=>sl||(sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function It(t){if(pt(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],l=Lt(n)?ca(n):It(n);if(l)for(const i in l)e[i]=l[i]}return e}else if(Lt(t)||Tt(t))return t}const aa=/;(?![^(]*\))/g,oa=/:([^]+)/,ra=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function ca(t){const e={};return t.replace(ra,s=>s.startsWith("/*")?"":s).split(aa).forEach(s=>{if(s){const n=s.split(oa);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Wt(t){let e="";if(Lt(t))e=t;else if(pt(t))for(let s=0;s<t.length;s++){const n=Wt(t[s]);n&&(e+=n+" ")}else if(Tt(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}const da="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ua=An(da);function Gl(t){return!!t||t===""}function pa(t,e,s){if(t.length!==e.length)return!1;let n=!0;for(let l=0;n&&l<t.length;l++)n=Gs(t[l],e[l],s);return n}function nl(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]&&Gs(i,n[r],s)){c=r;break}if(c<0)return!1;l[c]=1}return!0}function ha(t,e,s){let n=Ce(t),l=Ce(e);if(n||l||(n=As(t),l=As(e),n||l))return n&&l?nl(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 d=t.hasOwnProperty(r),m=e.hasOwnProperty(r);if(d&&!m||!d&&m||!Gs(t[r],e[r],s))return!1}return String(t)===String(e)}function ll(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 Gs(t,e,s){if(t===e)return!0;let n=el(t),l=el(e);return n||l?n&&l?t.getTime()===e.getTime():!1:(n=me(t),l=me(e),n||l?t===e:(n=pt(t),l=pt(e),n||l?n&&l?ll(t,e,s,pa):!1:(n=Tt(t),l=Tt(e),n||l?!n||!l?!1:ll(t,e,s,ha):String(t)===String(e))))}const zl=t=>!!(t&&t.__v_isRef===!0),p=t=>Lt(t)?t:t==null?"":pt(t)||Tt(t)&&(t.toString===Wl||!ht(t.toString))?zl(t)?p(t.value):JSON.stringify(t,Yl,2):String(t),Yl=(t,e)=>zl(e)?Yl(t,e.value):Ce(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,l],i)=>(s[sn(n,i)+" =>"]=l,s),{})}:As(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>sn(s))}:me(e)?sn(e):Tt(e)&&!pt(e)&&!Kl(e)?String(e):e,sn=(t,e="")=>{var s;return me(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 Rt;class fa{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&&Rt&&(Rt.active?(this.parent=Rt,this.index=(Rt.scopes||(Rt.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=Rt;try{return Rt=this,e()}finally{Rt=s}}}on(){++this._on===1&&(this.prevScope=Rt,Rt=this)}off(){if(this._on>0&&--this._on===0){if(Rt===this)Rt=this.prevScope;else{let e=Rt;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 ma(){return Rt}let At;const nn=new WeakSet;class Jl{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,Rt&&(Rt.active?Rt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,nn.has(this)&&(nn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,il(this),Ql(this);const e=At,s=le;At=this,le=!0;try{return this.fn()}finally{ti(this),At=e,le=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Pn(e);this.deps=this.depsTail=void 0,il(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?nn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){gn(this)&&this.run()}get dirty(){return gn(this)}}let Xl=0,ls,is;function Zl(t,e=!1){if(t.flags|=8,e){t.next=is,is=t;return}t.next=ls,ls=t}function Dn(){Xl++}function jn(){if(--Xl>0)return;if(is){let e=is;for(is=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;ls;){let e=ls;for(ls=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 Ql(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function ti(t){let e,s=t.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),Pn(n),va(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}t.deps=e,t.depsTail=s}function gn(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(ei(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ei(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ds)||(t.globalVersion=ds,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!gn(t))))return;t.flags|=2;const e=t.dep,s=At,n=le;At=t,le=!0;try{Ql(t);const l=t.fn(t._value);(e.version===0||he(l,t._value))&&(t.flags|=128,t._value=l,e.version++)}catch(l){throw e.version++,l}finally{At=s,le=n,ti(t),t.flags&=-3}}function Pn(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)Pn(i,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function va(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let le=!0;const si=[];function we(){si.push(le),le=!1}function ke(){const t=si.pop();le=t===void 0?!0:t}function il(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=At;At=void 0;try{e()}finally{At=s}}}let ds=0;class _a{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 Hn{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(!At||!le||At===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==At)s=this.activeLink=new _a(At,this),At.deps?(s.prevDep=At.depsTail,At.depsTail.nextDep=s,At.depsTail=s):At.deps=At.depsTail=s,ni(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=At.depsTail,s.nextDep=void 0,At.depsTail.nextDep=s,At.depsTail=s,At.deps===s&&(At.deps=n)}return s}trigger(e){this.version++,ds++,this.notify(e)}notify(e){Dn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{jn()}}}function ni(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)ni(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const bn=new WeakMap,He=Symbol(""),yn=Symbol(""),us=Symbol("");function Bt(t,e,s){if(le&&At){let n=bn.get(t);n||bn.set(t,n=new Map);let l=n.get(s);l||(n.set(s,l=new Hn),l.map=n,l.key=s),l.track()}}function ye(t,e,s,n,l,i){const c=bn.get(t);if(!c){ds++;return}const r=d=>{d&&d.trigger()};if(Dn(),e==="clear")c.forEach(r);else{const d=pt(t),m=d&&qn(s);if(d&&s==="length"){const f=Number(n);c.forEach((v,_)=>{(_==="length"||_===us||!me(_)&&_>=f)&&r(v)})}else switch((s!==void 0||c.has(void 0))&&r(c.get(s)),m&&r(c.get(us)),e){case"add":d?m&&r(c.get("length")):(r(c.get(He)),Ce(t)&&r(c.get(yn)));break;case"delete":d||(r(c.get(He)),Ce(t)&&r(c.get(yn)));break;case"set":Ce(t)&&r(c.get(He));break}}jn()}function Be(t){const e=wt(t);return e===t||(Bt(e,"iterate",us),ee(t))?e:ve(t)?Fe(t)?e.map(s=>Ae(se(s))):e.map(Ae):e.map(se)}function zs(t){return Bt(t=wt(t),"iterate",us),t}function ue(t,e){return ve(t)?Ae(Fe(t)?se(e):e):se(e)}const ga={__proto__:null,[Symbol.iterator](){return ln(this,Symbol.iterator,t=>ue(this,t))},concat(...t){return Be(this).concat(...t.map(e=>pt(e)?Be(e):e))},entries(){return ln(this,"entries",t=>(t[1]=ue(this,t[1]),t))},every(t,e){return _e(this,"every",t,e,void 0,arguments)},filter(t,e){return _e(this,"filter",t,e,s=>s.map(n=>ue(this,n)),arguments)},find(t,e){return _e(this,"find",t,e,s=>ue(this,s),arguments)},findIndex(t,e){return _e(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return _e(this,"findLast",t,e,s=>ue(this,s),arguments)},findLastIndex(t,e){return _e(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return _e(this,"forEach",t,e,void 0,arguments)},includes(...t){return an(this,"includes",t)},indexOf(...t){return an(this,"indexOf",t)},join(t){return Be(this).join(t)},lastIndexOf(...t){return an(this,"lastIndexOf",t)},map(t,e){return _e(this,"map",t,e,void 0,arguments)},pop(){return Xe(this,"pop")},push(...t){return Xe(this,"push",t)},reduce(t,...e){return al(this,"reduce",t,e)},reduceRight(t,...e){return al(this,"reduceRight",t,e)},shift(){return Xe(this,"shift")},some(t,e){return _e(this,"some",t,e,void 0,arguments)},splice(...t){return Xe(this,"splice",t)},toReversed(){return Be(this).toReversed()},toSorted(t){return Be(this).toSorted(t)},toSpliced(...t){return Be(this).toSpliced(...t)},unshift(...t){return Xe(this,"unshift",t)},values(){return ln(this,"values",t=>ue(this,t))}};function ln(t,e,s){const n=zs(t),l=n[e]();return n!==t&&!ee(t)&&(l._next=l.next,l.next=()=>{const i=l._next();return i.done||(i.value=s(i.value)),i}),l}const ba=Array.prototype;function _e(t,e,s,n,l,i){const c=zs(t),r=c!==t&&!ee(t),d=c[e];if(d!==ba[e]){const v=d.apply(t,i);return r?se(v):v}let m=s;c!==t&&(r?m=function(v,_){return s.call(this,ue(t,v),_,t)}:s.length>2&&(m=function(v,_){return s.call(this,v,_,t)}));const f=d.call(c,m,n);return r&&l?l(f):f}function al(t,e,s,n){const l=zs(t),i=l!==t&&!ee(t);let c=s,r=!1;l!==t&&(i?(r=n.length===0,c=function(m,f,v){return r&&(r=!1,m=ue(t,m)),s.call(this,m,ue(t,f),v,t)}):s.length>3&&(c=function(m,f,v){return s.call(this,m,f,v,t)}));const d=l[e](c,...n);return r?ue(t,d):d}function an(t,e,s){const n=wt(t);Bt(n,"iterate",us);const l=n[e](...s);return(l===-1||l===!1)&&Nn(s[0])?(s[0]=wt(s[0]),n[e](...s)):l}function Xe(t,e,s=[]){we(),Dn();const n=wt(t)[e].apply(t,s);return jn(),ke(),n}const ya=An("__proto__,__v_isRef,__isVue"),li=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(me));function $a(t){me(t)||(t=String(t));const e=wt(this);return Bt(e,"has",t),e.hasOwnProperty(t)}class ii{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?Aa:ci:i?ri:oi).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=pt(e);if(!l){let d;if(c&&(d=ga[s]))return d;if(s==="hasOwnProperty")return $a}const r=Reflect.get(e,s,Kt(e)?e:n);if((me(s)?li.has(s):ya(s))||(l||Bt(e,"get",s),i))return r;if(Kt(r)){const d=c&&qn(s)?r:r.value;return l&&Tt(d)?xn(d):d}return Tt(r)?l?xn(r):gs(r):r}}class ai extends ii{constructor(e=!1){super(!1,e)}set(e,s,n,l){let i=e[s];const c=pt(e)&&qn(s);if(!this._isShallow){const m=ve(i);if(!ee(n)&&!ve(n)&&(i=wt(i),n=wt(n)),!c&&Kt(i)&&!Kt(n))return m||(i.value=n),!0}const r=c?Number(s)<e.length:kt(e,s),d=Reflect.set(e,s,n,Kt(e)?e:l);return e===wt(l)&&d&&(r?he(n,i)&&ye(e,"set",s,n):ye(e,"add",s,n)),d}deleteProperty(e,s){const n=kt(e,s);e[s];const l=Reflect.deleteProperty(e,s);return l&&n&&ye(e,"delete",s,void 0),l}has(e,s){const n=Reflect.has(e,s);return(!me(s)||!li.has(s))&&Bt(e,"has",s),n}ownKeys(e){return Bt(e,"iterate",pt(e)?"length":He),Reflect.ownKeys(e)}}class xa extends ii{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const wa=new ai,ka=new xa,Ma=new ai(!0);const $n=t=>t,$s=t=>Reflect.getPrototypeOf(t);function Sa(t,e,s){return function(...n){const l=this.__v_raw,i=wt(l),c=Ce(i),r=t==="entries"||t===Symbol.iterator&&c,d=t==="keys"&&c,m=l[t](...n),f=s?$n:e?Ae:se;return!e&&Bt(i,"iterate",d?yn:He),Nt(Object.create(m),{next(){const{value:v,done:_}=m.next();return _?{value:v,done:_}:{value:r?[f(v[0]),f(v[1])]:f(v),done:_}}})}}function xs(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Ta(t,e){const s={get(l){const i=this.__v_raw,c=wt(i),r=wt(l);t||(he(l,r)&&Bt(c,"get",l),Bt(c,"get",r));const{has:d}=$s(c),m=e?$n:t?Ae:se;if(d.call(c,l))return m(i.get(l));if(d.call(c,r))return m(i.get(r));i!==c&&i.get(l)},get size(){const l=this.__v_raw;return!t&&Bt(wt(l),"iterate",He),l.size},has(l){const i=this.__v_raw,c=wt(i),r=wt(l);return t||(he(l,r)&&Bt(c,"has",l),Bt(c,"has",r)),l===r?i.has(l):i.has(l)||i.has(r)},forEach(l,i){const c=this,r=c.__v_raw,d=wt(r),m=e?$n:t?Ae:se;return!t&&Bt(d,"iterate",He),r.forEach((f,v)=>l.call(i,m(f),m(v),c))}};return Nt(s,t?{add:xs("add"),set:xs("set"),delete:xs("delete"),clear:xs("clear")}:{add(l){const i=wt(this),c=$s(i),r=wt(l),d=!e&&!ee(l)&&!ve(l)?r:l;return c.has.call(i,d)||he(l,d)&&c.has.call(i,l)||he(r,d)&&c.has.call(i,r)||(i.add(d),ye(i,"add",d,d)),this},set(l,i){!e&&!ee(i)&&!ve(i)&&(i=wt(i));const c=wt(this),{has:r,get:d}=$s(c);let m=r.call(c,l);m||(l=wt(l),m=r.call(c,l));const f=d.call(c,l);return c.set(l,i),m?he(i,f)&&ye(c,"set",l,i):ye(c,"add",l,i),this},delete(l){const i=wt(this),{has:c,get:r}=$s(i);let d=c.call(i,l);d||(l=wt(l),d=c.call(i,l)),r&&r.call(i,l);const m=i.delete(l);return d&&ye(i,"delete",l,void 0),m},clear(){const l=wt(this),i=l.size!==0,c=l.clear();return i&&ye(l,"clear",void 0,void 0),c}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=Sa(l,t,e)}),s}function Rn(t,e){const s=Ta(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 Ea={get:Rn(!1,!1)},Ca={get:Rn(!1,!0)},Fa={get:Rn(!0,!1)};const oi=new WeakMap,ri=new WeakMap,ci=new WeakMap,Aa=new WeakMap;function Oa(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gs(t){return ve(t)?t:In(t,!1,wa,Ea,oi)}function qa(t){return In(t,!1,Ma,Ca,ri)}function xn(t){return In(t,!0,ka,Fa,ci)}function In(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=Oa(na(t));if(c===0)return t;const r=new Proxy(t,c===2?n:s);return l.set(t,r),r}function Fe(t){return ve(t)?Fe(t.__v_raw):!!(t&&t.__v_isReactive)}function ve(t){return!!(t&&t.__v_isReadonly)}function ee(t){return!!(t&&t.__v_isShallow)}function Nn(t){return t?!!t.__v_raw:!1}function wt(t){const e=t&&t.__v_raw;return e?wt(e):t}function La(t){return!kt(t,"__v_skip")&&Object.isExtensible(t)&&Vl(t,"__v_skip",!0),t}const se=t=>Tt(t)?gs(t):t,Ae=t=>Tt(t)?xn(t):t;function Kt(t){return t?t.__v_isRef===!0:!1}function St(t){return Da(t,!1)}function Da(t,e){return Kt(t)?t:new ja(t,e)}class ja{constructor(e,s){this.dep=new Hn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:wt(e),this._value=s?e:se(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||ee(e)||ve(e);e=n?e:wt(e),he(e,s)&&(this._rawValue=e,this._value=n?e:se(e),this.dep.trigger())}}function u(t){return Kt(t)?t.value:t}const Pa={get:(t,e,s)=>e==="__v_raw"?t:u(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 di(t){return Fe(t)?t:new Proxy(t,Pa)}class Ha{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Hn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ds-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&At!==this)return Zl(this,!0),!0}get value(){const e=this.dep.track();return ei(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ra(t,e,s=!1){let n,l;return ht(t)?n=t:(n=t.get,l=t.set),new Ha(n,l,s)}const ws={},Os=new WeakMap;let De;function Ia(t,e=!1,s=De){if(s){let n=Os.get(s);n||Os.set(s,n=[]),n.push(t)}}function Na(t,e,s=Ft){const{immediate:n,deep:l,once:i,scheduler:c,augmentJob:r,call:d}=s,m=T=>l?T:ee(T)||l===!1||l===0?$e(T,1):$e(T);let f,v,_,w,D=!1,W=!1;if(Kt(t)?(v=()=>t.value,D=ee(t)):Fe(t)?(v=()=>m(t),D=!0):pt(t)?(W=!0,D=t.some(T=>Fe(T)||ee(T)),v=()=>t.map(T=>{if(Kt(T))return T.value;if(Fe(T))return m(T);if(ht(T))return d?d(T,2):T()})):ht(t)?e?v=d?()=>d(t,2):t:v=()=>{if(_){we();try{_()}finally{ke()}}const T=De;De=f;try{return d?d(t,3,[w]):t(w)}finally{De=T}}:v=fe,e&&l){const T=v,P=l===!0?1/0:l;v=()=>$e(T(),P)}const z=ma(),it=()=>{f.stop(),z&&z.active&&On(z.effects,f)};if(i&&e){const T=e;e=(...P)=>{const mt=T(...P);return it(),mt}}let q=W?new Array(t.length).fill(ws):ws;const H=T=>{if(!(!(f.flags&1)||!f.dirty&&!T))if(e){const P=f.run();if(T||l||D||(W?P.some((mt,st)=>he(mt,q[st])):he(P,q))){_&&_();const mt=De;De=f;try{const st=[P,q===ws?void 0:W&&q[0]===ws?[]:q,w];q=P,d?d(e,3,st):e(...st)}finally{De=mt}}}else f.run()};return r&&r(H),f=new Jl(v),f.scheduler=c?()=>c(H,!1):H,w=T=>Ia(T,!1,f),_=f.onStop=()=>{const T=Os.get(f);if(T){if(d)d(T,4);else for(const P of T)P();Os.delete(f)}},e?n?H(!0):q=f.run():c?c(H.bind(null,!0),!0):f.run(),it.pause=f.pause.bind(f),it.resume=f.resume.bind(f),it.stop=it,it}function $e(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))$e(t.value,e,s);else if(pt(t))for(let n=0;n<t.length;n++)$e(t[n],e,s);else if(As(t)||Ce(t))t.forEach(n=>{$e(n,e,s)});else if(Kl(t)){for(const n in t)$e(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&$e(t[n],e,s)}return t}/**
- * @vue/runtime-core v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/function bs(t,e,s,n){try{return n?t(...n):t()}catch(l){Ys(l,e,s)}}function ie(t,e,s,n){if(ht(t)){const l=bs(t,e,s,n);return l&&Bl(l)&&l.catch(i=>{Ys(i,e,s)}),l}if(pt(t)){const l=[];for(let i=0;i<t.length;i++)l.push(ie(t[i],e,s,n));return l}}function Ys(t,e,s,n=!0){const l=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:c}=e&&e.appContext.config||Ft;if(e){let r=e.parent;const d=e.proxy,m=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const f=r.ec;if(f){for(let v=0;v<f.length;v++)if(f[v](t,d,m)===!1)return}r=r.parent}if(i){we(),bs(i,null,10,[t,d,m]),ke();return}}Ba(t,s,l,n,c)}function Ba(t,e,s,n=!0,l=!1){if(l)throw t;console.error(t)}const Gt=[];let de=-1;const Ue=[];let Te=null,We=0;const ui=Promise.resolve();let qs=null;function Wa(t){const e=qs||ui;return t?e.then(this?t.bind(this):t):e}function Ka(t){let e=de+1,s=Gt.length;for(;e<s;){const n=e+s>>>1,l=Gt[n],i=ps(l);i<t||i===t&&l.flags&2?e=n+1:s=n}return e}function Bn(t){if(!(t.flags&1)){const e=ps(t),s=Gt[Gt.length-1];!s||!(t.flags&2)&&e>=ps(s)?Gt.push(t):Gt.splice(Ka(e),0,t),t.flags|=1,pi()}}function pi(){qs||(qs=ui.then(fi))}function Ua(t){if(!pt(t))Te&&t.id===-1?Te.splice(We+1,0,t):t.flags&1||(Ue.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)Ue.push(t[e]);pi()}function ol(t,e,s=de+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 hi(t){if(Ue.length){const e=[...new Set(Ue)].sort((s,n)=>ps(s)-ps(n));if(Ue.length=0,Te){for(let s=0;s<e.length;s++)Te.push(e[s]);return}for(Te=e,We=0;We<Te.length;We++){const s=Te[We];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Te=null,We=0}}const ps=t=>t.id==null?t.flags&2?-1:1/0:t.id;function fi(t){try{for(de=0;de<Gt.length;de++){const e=Gt[de];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),bs(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;de<Gt.length;de++){const e=Gt[de];e&&(e.flags&=-2)}de=-1,Gt.length=0,hi(),qs=null,(Gt.length||Ue.length)&&fi()}}let te=null,mi=null;function Ls(t){const e=te;return te=t,mi=t&&t.type.__scopeId||null,e}function Va(t,e=te,s){if(!e||t._n)return t;const n=(...l)=>{n._d&&gl(-1);const i=Ls(e),c=Re.length;let r;try{r=t(...l)}finally{for(let d=Re.length;d>c;d--)Hi();Ls(i),n._d&&gl(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function Ge(t,e){if(te===null)return t;const s=tn(te),n=t.dirs||(t.dirs=[]);for(let l=0;l<e.length;l++){let[i,c,r,d=Ft]=e[l];i&&(ht(i)&&(i={mounted:i,updated:i}),i.deep&&$e(c),n.push({dir:i,instance:s,value:c,oldValue:void 0,arg:r,modifiers:d}))}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 d=r.dir[n];d&&(we(),ie(d,s,8,[t.el,r,t,e]),ke())}}function Ga(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 Es(t,e,s=!1){const n=Uo();if(n||Ve){let l=Ve?Ve._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&&ht(e)?e.call(n&&n.proxy):e}}const za=Symbol.for("v-scx"),Ya=()=>Es(za);function as(t,e,s){return vi(t,e,s)}function vi(t,e,s=Ft){const{immediate:n,deep:l,flush:i,once:c}=s,r=Nt({},s),d=e&&n||!e&&i!=="post";let m;if(ms){if(i==="sync"){const w=Ya();m=w.__watcherHandles||(w.__watcherHandles=[])}else if(!d){const w=()=>{};return w.stop=fe,w.resume=fe,w.pause=fe,w}}const f=zt;r.call=(w,D,W)=>ie(w,f,D,W);let v=!1;i==="post"?r.scheduler=w=>{Yt(w,f&&f.suspense)}:i!=="sync"&&(v=!0,r.scheduler=(w,D)=>{D?w():Bn(w)}),r.augmentJob=w=>{e&&(w.flags|=4),v&&(w.flags|=2,f&&(w.id=f.uid,w.i=f))};const _=Na(t,e,r);return ms&&(m?m.push(_):d&&_()),_}function Ja(t,e,s){const n=this.proxy,l=Lt(t)?t.includes(".")?_i(n,t):()=>n[t]:t.bind(n,n);let i;ht(e)?i=e:(i=e.handler,s=e);const c=ys(this),r=vi(l,i.bind(n),s);return c(),r}function _i(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 Xa=Symbol("_vte"),Js=t=>t.__isTeleport,on=Symbol("_leaveCb");function Za(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==Me){e=s;break}}return e}function gi(t){if(!Kn(t))return Js(t.type)&&t.children?Za(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&&ht(s.default))return s.default()}}function Wn(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const s=t.component.subTree;Wn(Js(s.type)&&gi(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 Pt(t,e){return ht(t)?Nt({name:t.name},e,{setup:t}):t}function bi(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function rl(t,e){let s;return!!((s=Object.getOwnPropertyDescriptor(t,e))&&!s.configurable)}const Ds=new WeakMap;function os(t,e,s,n,l=!1){if(pt(t)){t.forEach((W,z)=>os(W,e&&(pt(e)?e[z]:e),s,n,l));return}if(rs(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&os(t,e,s,n.component.subTree);return}const i=n.shapeFlag&4?tn(n.component):n.el,c=l?null:i,{i:r,r:d}=t,m=e&&e.r,f=r.refs===Ft?r.refs={}:r.refs,v=r.setupState,_=wt(v),w=v===Ft?Nl:W=>rl(f,W)?!1:kt(_,W),D=(W,z)=>!(z&&rl(f,z));if(m!=null&&m!==d){if(cl(e),Lt(m))f[m]=null,w(m)&&(v[m]=null);else if(Kt(m)){const W=e;D(m,W.k)&&(m.value=null),W.k&&(f[W.k]=null)}}if(ht(d))bs(d,r,12,[c,f]);else{const W=Lt(d),z=Kt(d);if(W||z){const it=()=>{if(t.f){const q=W?w(d)?v[d]:f[d]:D()||!t.k?d.value:f[t.k];if(l)pt(q)&&On(q,i);else if(pt(q))q.includes(i)||q.push(i);else if(W)f[d]=[i],w(d)&&(v[d]=f[d]);else{const H=[i];D(d,t.k)&&(d.value=H),t.k&&(f[t.k]=H)}}else W?(f[d]=c,w(d)&&(v[d]=c)):z&&(D(d,t.k)&&(d.value=c),t.k&&(f[t.k]=c))};if(c){const q=()=>{it(),Ds.delete(t)};q.id=-1,Ds.set(t,q),Yt(q,s)}else cl(t),it()}}}function cl(t){const e=Ds.get(t);e&&(e.flags|=8,Ds.delete(t))}Vs().requestIdleCallback;Vs().cancelIdleCallback;const rs=t=>!!t.type.__asyncLoader,Kn=t=>t.type.__isKeepAlive;function Qa(t,e){yi(t,"a",e)}function to(t,e){yi(t,"da",e)}function yi(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(Xs(e,n,s),s){let l=s.parent;for(;l&&l.parent;)Kn(l.parent.vnode)&&eo(n,e,s,l),l=l.parent}}function eo(t,e,s,n){const l=Xs(e,t,n,!0);Un(()=>{On(n[e],l)},s)}function Xs(t,e,s=zt,n=!1){if(s){const l=s[t]||(s[t]=[]),i=e.__weh||(e.__weh=(...c)=>{we();const r=ys(s),d=ie(e,s,t,c);return r(),ke(),d});return n?l.unshift(i):l.push(i),i}}const Se=t=>(e,s=zt)=>{(!ms||t==="sp")&&Xs(t,(...n)=>e(...n),s)},so=Se("bm"),Ye=Se("m"),no=Se("bu"),lo=Se("u"),io=Se("bum"),Un=Se("um"),ao=Se("sp"),oo=Se("rtg"),ro=Se("rtc");function co(t,e=zt){Xs("ec",t,e)}const uo=Symbol.for("v-ndc");function $t(t,e,s,n){let l;const i=s,c=pt(t);if(c||Lt(t)){const r=c&&Fe(t);let d=!1,m=!1;r&&(d=!ee(t),m=ve(t),t=zs(t)),l=new Array(t.length);for(let f=0,v=t.length;f<v;f++)l[f]=e(d?m?Ae(se(t[f])):se(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,d)=>e(r,d,void 0,i));else{const r=Object.keys(t);l=new Array(r.length);for(let d=0,m=r.length;d<m;d++){const f=r[d];l[d]=e(t[f],f,d,i)}}else l=[];return l}const wn=t=>t?Bi(t)?tn(t):wn(t.parent):null,cs=Nt(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=>wn(t.parent),$root:t=>wn(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>xi(t),$forceUpdate:t=>t.f||(t.f=()=>{Bn(t.update)}),$nextTick:t=>t.n||(t.n=Wa.bind(t.proxy)),$watch:t=>Ja.bind(t)}),rn=(t,e)=>t!==Ft&&!t.__isScriptSetup&&kt(t,e),po={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:i,accessCache:c,type:r,appContext:d}=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(rn(n,e))return c[e]=1,n[e];if(l!==Ft&&kt(l,e))return c[e]=2,l[e];if(kt(i,e))return c[e]=3,i[e];if(s!==Ft&&kt(s,e))return c[e]=4,s[e];kn&&(c[e]=0)}}const m=cs[e];let f,v;if(m)return e==="$attrs"&&Bt(t.attrs,"get",""),m(t);if((f=r.__cssModules)&&(f=f[e]))return f;if(s!==Ft&&kt(s,e))return c[e]=4,s[e];if(v=d.config.globalProperties,kt(v,e))return v[e]},set({_:t},e,s){const{data:n,setupState:l,ctx:i}=t;return rn(l,e)?(l[e]=s,!0):n!==Ft&&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 d;return!!(s[r]||t!==Ft&&r[0]!=="$"&&kt(t,r)||rn(e,r)||kt(i,r)||kt(n,r)||kt(cs,r)||kt(l.config.globalProperties,r)||(d=c.__cssModules)&&d[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 dl(t){return pt(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let kn=!0;function ho(t){const e=xi(t),s=t.proxy,n=t.ctx;kn=!1,e.beforeCreate&&ul(e.beforeCreate,t,"bc");const{data:l,computed:i,methods:c,watch:r,provide:d,inject:m,created:f,beforeMount:v,mounted:_,beforeUpdate:w,updated:D,activated:W,deactivated:z,beforeDestroy:it,beforeUnmount:q,destroyed:H,unmounted:T,render:P,renderTracked:mt,renderTriggered:st,errorCaptured:G,serverPrefetch:ct,expose:Ut,inheritAttrs:C,components:Y,directives:J,filters:L}=e;if(m&&fo(m,n,null),c)for(const F in c){const j=c[F];ht(j)&&(n[F]=j.bind(s))}if(l){const F=l.call(s,s);Tt(F)&&(t.data=gs(F))}if(kn=!0,i)for(const F in i){const j=i[F],U=ht(j)?j.bind(s,s):ht(j.get)?j.get.bind(s,s):fe,R=!ht(j)&&ht(j.set)?j.set.bind(s):fe,V=B({get:U,set:R});Object.defineProperty(n,F,{enumerable:!0,configurable:!0,get:()=>V.value,set:tt=>V.value=tt})}if(r)for(const F in r)$i(r[F],n,s,F);if(d){const F=ht(d)?d.call(s):d;Reflect.ownKeys(F).forEach(j=>{Ga(j,F[j])})}f&&ul(f,t,"c");function N(F,j){pt(j)?j.forEach(U=>F(U.bind(s))):j&&F(j.bind(s))}if(N(so,v),N(Ye,_),N(no,w),N(lo,D),N(Qa,W),N(to,z),N(co,G),N(ro,mt),N(oo,st),N(io,q),N(Un,T),N(ao,ct),pt(Ut))if(Ut.length){const F=t.exposed||(t.exposed={});Ut.forEach(j=>{Object.defineProperty(F,j,{get:()=>s[j],set:U=>s[j]=U,enumerable:!0})})}else t.exposed||(t.exposed={});P&&t.render===fe&&(t.render=P),C!=null&&(t.inheritAttrs=C),Y&&(t.components=Y),J&&(t.directives=J),ct&&bi(t)}function fo(t,e,s=fe){pt(t)&&(t=Mn(t));for(const n in t){const l=t[n];let i;Tt(l)?"default"in l?i=Es(l.from||n,l.default,!0):i=Es(l.from||n):i=Es(l),Kt(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):e[n]=i}}function ul(t,e,s){ie(pt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function $i(t,e,s,n){let l=n.includes(".")?_i(s,n):()=>s[n];if(Lt(t)){const i=e[t];ht(i)&&as(l,i)}else if(ht(t))as(l,t.bind(s));else if(Tt(t))if(pt(t))t.forEach(i=>$i(i,e,s,n));else{const i=ht(t.handler)?t.handler.bind(s):e[t.handler];ht(i)&&as(l,i,t)}}function xi(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:l,optionsCache:i,config:{optionMergeStrategies:c}}=t.appContext,r=i.get(e);let d;return r?d=r:!l.length&&!s&&!n?d=e:(d={},l.length&&l.forEach(m=>js(d,m,c,!0)),js(d,e,c)),Tt(e)&&i.set(e,d),d}function js(t,e,s,n=!1){const{mixins:l,extends:i}=e;i&&js(t,i,s,!0),l&&l.forEach(c=>js(t,c,s,!0));for(const c in e)if(!(n&&c==="expose")){const r=mo[c]||s&&s[c];t[c]=r?r(t[c],e[c]):e[c]}return t}const mo={data:pl,props:hl,emits:hl,methods:es,computed:es,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:es,directives:es,watch:_o,provide:pl,inject:vo};function pl(t,e){return e?t?function(){return Nt(ht(t)?t.call(this,this):t,ht(e)?e.call(this,this):e)}:e:t}function vo(t,e){return es(Mn(t),Mn(e))}function Mn(t){if(pt(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 es(t,e){return t?Nt(Object.create(null),t,e):e}function hl(t,e){return t?pt(t)&&pt(e)?[...new Set([...t,...e])]:Nt(Object.create(null),dl(t),dl(e??{})):e}function _o(t,e){if(!t)return e;if(!e)return t;const s=Nt(Object.create(null),t);for(const n in e)s[n]=Vt(t[n],e[n]);return s}function wi(){return{app:null,config:{isNativeTag:Nl,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 go=0;function bo(t,e){return function(n,l=null){ht(n)||(n=Nt({},n)),l!=null&&!Tt(l)&&(l=null);const i=wi(),c=new WeakSet,r=[];let d=!1;const m=i.app={_uid:go++,_component:n,_props:l,_container:null,_context:i,_instance:null,version:Xo,get config(){return i.config},set config(f){},use(f,...v){return c.has(f)||(f&&ht(f.install)?(c.add(f),f.install(m,...v)):ht(f)&&(c.add(f),f(m,...v))),m},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),m},component(f,v){return v?(i.components[f]=v,m):i.components[f]},directive(f,v){return v?(i.directives[f]=v,m):i.directives[f]},mount(f,v,_){if(!d){const w=m._ceVNode||Ot(n,l);return w.appContext=i,_===!0?_="svg":_===!1&&(_=void 0),t(w,f,_),d=!0,m._container=f,f.__vue_app__=m,tn(w.component)}},onUnmount(f){r.push(f)},unmount(){d&&(ie(r,m._instance,16),t(null,m._container),delete m._container.__vue_app__)},provide(f,v){return i.provides[f]=v,m},runWithContext(f){const v=Ve;Ve=m;try{return f()}finally{Ve=v}}};return m}}let Ve=null;const yo=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${ne(e)}Modifiers`]||t[`${Ne(e)}Modifiers`];function $o(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Ft;let l=s;const i=e.startsWith("update:"),c=i&&yo(n,e.slice(7));c&&(c.trim&&(l=s.map(f=>Lt(f)?f.trim():f)),c.number&&(l=l.map(Ln)));let r,d=n[r=en(e)]||n[r=en(ne(e))];!d&&i&&(d=n[r=en(Ne(e))]),d&&ie(d,t,6,l);const m=n[r+"Once"];if(m){if(!t.emitted)t.emitted={};else if(t.emitted[r])return;t.emitted[r]=!0,ie(m,t,6,l)}}const xo=new WeakMap;function ki(t,e,s=!1){const n=s?xo:e.emitsCache,l=n.get(t);if(l!==void 0)return l;const i=t.emits;let c={},r=!1;if(!ht(t)){const d=m=>{const f=ki(m,e,!0);f&&(r=!0,Nt(c,f))};!s&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!i&&!r?(Tt(t)&&n.set(t,null),null):(pt(i)?i.forEach(d=>c[d]=null):Nt(c,i),Tt(t)&&n.set(t,c),c)}function Zs(t,e){return!t||!Ws(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 fl(t){const{type:e,vnode:s,proxy:n,withProxy:l,propsOptions:[i],slots:c,attrs:r,emit:d,render:m,renderCache:f,props:v,data:_,setupState:w,ctx:D,inheritAttrs:W}=t,z=Ls(t);let it,q;try{if(s.shapeFlag&4){const T=l||n,P=T;it=pe(m.call(P,T,f,v,w,_,D)),q=r}else{const T=e;it=pe(T.length>1?T(v,{attrs:r,slots:c,emit:d}):T(v,null)),q=e.props?r:wo(r)}}catch(T){Re.length=0,Ys(T,t,1),it=Ot(Me)}let H=it;if(q&&W!==!1){const T=Object.keys(q),{shapeFlag:P}=H;T.length&&P&7&&(i&&T.some(Ks)&&(q=ko(q,i)),H=ze(H,q,!1,!0))}if(s.dirs&&(H=ze(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(s.dirs):s.dirs),s.transition){const T=Js(H.type)&&gi(H)||H;Wn(T,s.transition)}return it=H,Ls(z),it}const wo=t=>{let e;for(const s in t)(s==="class"||s==="style"||Ws(s))&&((e||(e={}))[s]=t[s]);return e},ko=(t,e)=>{const s={};for(const n in t)(!Ks(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function Mo(t,e,s){const{props:n,children:l,component:i}=t,{props:c,children:r,patchFlag:d}=e,m=i.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&d>=0){if(d&1024)return!0;if(d&16)return n?ml(n,c,m):!!c;if(d&8){const f=e.dynamicProps;for(let v=0;v<f.length;v++){const _=f[v];if(Mi(c,n,_)&&!Zs(m,_))return!0}}}else return(l||r)&&(!r||!r.$stable)?!0:n===c?!1:n?c?ml(n,c,m):!0:!!c;return!1}function ml(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(Mi(e,t,i)&&!Zs(s,i))return!0}return!1}function Mi(t,e,s){const n=t[s],l=e[s];return s==="style"&&Tt(n)&&Tt(l)?!Gs(n,l):n!==l}function So({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 Si={},Ti=()=>Object.create(Si),Ei=t=>Object.getPrototypeOf(t)===Si;function To(t,e,s,n=!1){const l={},i=Ti();t.propsDefaults=Object.create(null),Ci(t,e,l,i);for(const c in t.propsOptions[0])c in l||(l[c]=void 0);s?t.props=n?l:qa(l):t.type.props?t.props=l:t.props=i,t.attrs=i}function Eo(t,e,s,n){const{props:l,attrs:i,vnode:{patchFlag:c}}=t,r=wt(l),[d]=t.propsOptions;let m=!1;if((n||c>0)&&!(c&16)){if(c&8){const f=t.vnode.dynamicProps;for(let v=0;v<f.length;v++){let _=f[v];if(Zs(t.emitsOptions,_))continue;const w=e[_];if(d)if(kt(i,_))w!==i[_]&&(i[_]=w,m=!0);else{const D=ne(_);l[D]=Sn(d,r,D,w,t,!1)}else w!==i[_]&&(i[_]=w,m=!0)}}}else{Ci(t,e,l,i)&&(m=!0);let f;for(const v in r)(!e||!kt(e,v)&&((f=Ne(v))===v||!kt(e,f)))&&(d?s&&(s[v]!==void 0||s[f]!==void 0)&&(l[v]=Sn(d,r,v,void 0,t,!0)):delete l[v]);if(i!==r)for(const v in i)(!e||!kt(e,v))&&(delete i[v],m=!0)}m&&ye(t.attrs,"set","")}function Ci(t,e,s,n){const[l,i]=t.propsOptions;let c=!1,r;if(e)for(let d in e){if(ns(d))continue;const m=e[d];let f;l&&kt(l,f=ne(d))?!i||!i.includes(f)?s[f]=m:(r||(r={}))[f]=m:Zs(t.emitsOptions,d)||(!(d in n)||m!==n[d])&&(n[d]=m,c=!0)}if(i){const d=wt(s),m=r||Ft;for(let f=0;f<i.length;f++){const v=i[f];s[v]=Sn(l,d,v,m[v],t,!kt(m,v))}}return c}function Sn(t,e,s,n,l,i){const c=t[s];if(c!=null){const r=kt(c,"default");if(r&&n===void 0){const d=c.default;if(c.type!==Function&&!c.skipFactory&&ht(d)){const{propsDefaults:m}=l;if(s in m)n=m[s];else{const f=ys(l);n=m[s]=d.call(null,e),f()}}else n=d;l.ce&&l.ce._setProp(s,n)}c[0]&&(i&&!r?n=!1:c[1]&&(n===""||n===Ne(s))&&(n=!0))}return n}const Co=new WeakMap;function Fi(t,e,s=!1){const n=s?Co:e.propsCache,l=n.get(t);if(l)return l;const i=t.props,c={},r=[];let d=!1;if(!ht(t)){const f=v=>{d=!0;const[_,w]=Fi(v,e,!0);Nt(c,_),w&&r.push(...w)};!s&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!i&&!d)return Tt(t)&&n.set(t,Pe),Pe;if(pt(i))for(let f=0;f<i.length;f++){const v=ne(i[f]);vl(v)&&(c[v]=Ft)}else if(i)for(const f in i){const v=ne(f);if(vl(v)){const _=i[f],w=c[v]=pt(_)||ht(_)?{type:_}:Nt({},_),D=w.type;let W=!1,z=!0;if(pt(D))for(let it=0;it<D.length;++it){const q=D[it],H=ht(q)&&q.name;if(H==="Boolean"){W=!0;break}else H==="String"&&(z=!1)}else W=ht(D)&&D.name==="Boolean";w[0]=W,w[1]=z,(W||kt(w,"default"))&&r.push(v)}}const m=[c,r];return Tt(t)&&n.set(t,m),m}function vl(t){return t[0]!=="$"&&!ns(t)}const Vn=t=>t==="_"||t==="_ctx"||t==="$stable",Gn=t=>pt(t)?t.map(pe):[pe(t)],Fo=(t,e,s)=>{if(e._n)return e;const n=Va((...l)=>Gn(e(...l)),s);return n._c=!1,n},Ai=(t,e,s)=>{const n=t._ctx;for(const l in t){if(Vn(l))continue;const i=t[l];if(ht(i))e[l]=Fo(l,i,n);else if(i!=null){const c=Gn(i);e[l]=()=>c}}},Oi=(t,e)=>{const s=Gn(e);t.slots.default=()=>s},qi=(t,e,s)=>{for(const n in e)(s||!Vn(n))&&(t[n]=e[n])},Ao=(t,e,s)=>{const n=t.slots=Ti();if(t.vnode.shapeFlag&32){const l=e._;l?(qi(n,e,s),s&&Vl(n,"_",l,!0)):Ai(e,n)}else e&&Oi(t,e)},Oo=(t,e,s)=>{const{vnode:n,slots:l}=t;let i=!0,c=Ft;if(n.shapeFlag&32){const r=e._;r?s&&r===1?i=!1:qi(l,e,s):(i=!e.$stable,Ai(e,l)),c=e}else e&&(Oi(t,e),c={default:1});if(i)for(const r in l)!Vn(r)&&c[r]==null&&delete l[r]},Yt=Po;function qo(t){return Lo(t)}function Lo(t,e){const s=Vs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:i,createElement:c,createText:r,createComment:d,setText:m,setElementText:f,parentNode:v,nextSibling:_,setScopeId:w=fe,insertStaticContent:D}=t,W=(h,g,b,y=null,M=null,E=null,A=void 0,O=null,x=!!g.dynamicChildren)=>{if(h===g)return;h&&!Ze(h,g)&&(y=at(h),tt(h,M,E,!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:I}=g;switch($){case Qs:z(h,g,b,y);break;case Me:it(h,g,b,y);break;case Cs:h==null&&q(g,b,y,A);break;case ot:Y(h,g,b,y,M,E,A,O,x);break;default:I&1?P(h,g,b,y,M,E,A,O,x):I&6?J(h,g,b,y,M,E,A,O,x):(I&64||I&128)&&$.process(h,g,b,y,M,E,A,O,x,lt)}Z!=null&&M?os(Z,h&&h.ref,E,g||h,!g):Z==null&&h&&h.ref!=null&&os(h.ref,null,E,h,!0)},z=(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&&m(M,g.children)}},it=(h,g,b,y)=>{h==null?n(g.el=d(g.children||""),b,y):g.el=h.el},q=(h,g,b,y)=>{[h.el,h.anchor]=D(h.children,g,b,y,h.el,h.anchor)},H=({el:h,anchor:g},b,y)=>{let M;for(;h&&h!==g;)M=_(h),n(h,b,y),h=M;n(g,b,y)},T=({el:h,anchor:g})=>{let b;for(;h&&h!==g;)b=_(h),l(h),h=b;l(g)},P=(h,g,b,y,M,E,A,O,x)=>{if(g.type==="svg"?A="svg":g.type==="math"&&(A="mathml"),h==null)mt(g,b,y,M,E,A,O,x);else{const $=h.el&&h.el._isVueCE?h.el:null;try{$&&$._beginPatch(),ct(h,g,M,E,A,O,x)}finally{$&&$._endPatch()}}},mt=(h,g,b,y,M,E,A,O)=>{let x,$;const{props:Z,shapeFlag:I,transition:et,dirs:rt}=h;if(x=h.el=c(h.type,E,Z&&Z.is,Z),I&8?f(x,h.children):I&16&&G(h.children,x,null,y,M,cn(h,E),A,O),rt&&qe(h,null,y,"created"),st(x,h,h.scopeId,A,y),Z){for(const Et in Z)Et!=="value"&&!ns(Et)&&i(x,Et,null,Z[Et],E,y);"value"in Z&&i(x,"value",null,Z.value,E),($=Z.onVnodeBeforeMount)&&ce($,y,h)}rt&&qe(h,null,y,"beforeMount");const yt=Do(M,et);yt&&et.beforeEnter(x),n(x,g,b),(($=Z&&Z.onVnodeMounted)||yt||rt)&&Yt(()=>{try{$&&ce($,y,h),yt&&et.enter(x),rt&&qe(h,null,y,"mounted")}finally{}},M)},st=(h,g,b,y,M)=>{if(b&&w(h,b),y)for(let E=0;E<y.length;E++)w(h,y[E]);if(M){let E=M.subTree;if(g===E||Pi(E.type)&&(E.ssContent===g||E.ssFallback===g)){const A=M.vnode;st(h,A,A.scopeId,A.slotScopeIds,M.parent)}}},G=(h,g,b,y,M,E,A,O,x=0)=>{for(let $=x;$<h.length;$++){const Z=h[$]=O?be(h[$]):pe(h[$]);W(null,Z,g,b,y,M,E,A,O)}},ct=(h,g,b,y,M,E,A)=>{const O=g.el=h.el;let{patchFlag:x,dynamicChildren:$,dirs:Z}=g;x|=h.patchFlag&16;const I=h.props||Ft,et=g.props||Ft;let rt;if(b&&Le(b,!1),(rt=et.onVnodeBeforeUpdate)&&ce(rt,b,g,h),Z&&qe(g,h,b,"beforeUpdate"),b&&Le(b,!0),$&&(!h.dynamicChildren||h.dynamicChildren.length!==$.length)&&(x=0,A=!1,$=null),(I.innerHTML&&et.innerHTML==null||I.textContent&&et.textContent==null)&&f(O,""),$?Ut(h.dynamicChildren,$,O,b,y,cn(g,M),E):A||j(h,g,O,null,b,y,cn(g,M),E,!1),x>0){if(x&16)C(O,I,et,b,M);else if(x&2&&I.class!==et.class&&i(O,"class",null,et.class,M),x&4&&i(O,"style",I.style,et.style,M),x&8){const yt=g.dynamicProps;for(let Et=0;Et<yt.length;Et++){const Mt=yt[Et],Dt=I[Mt],Ht=et[Mt];(Ht!==Dt||Mt==="value")&&i(O,Mt,Dt,Ht,M,b)}}x&1&&h.children!==g.children&&f(O,g.children)}else!A&&$==null&&C(O,I,et,b,M);((rt=et.onVnodeUpdated)||Z)&&Yt(()=>{rt&&ce(rt,b,g,h),Z&&qe(g,h,b,"updated")},y)},Ut=(h,g,b,y,M,E,A)=>{for(let O=0;O<g.length;O++){const x=h[O],$=g[O],Z=x.el&&(x.type===ot||!Ze(x,$)||x.shapeFlag&198)?v(x.el):b;W(x,$,Z,null,y,M,E,A,!0)}},C=(h,g,b,y,M)=>{if(g!==b){if(g!==Ft)for(const E in g)!ns(E)&&!(E in b)&&i(h,E,g[E],null,M,y);for(const E in b){if(ns(E))continue;const A=b[E],O=g[E];A!==O&&E!=="value"&&i(h,E,O,A,M,y)}"value"in b&&i(h,"value",g.value,b.value,M)}},Y=(h,g,b,y,M,E,A,O,x)=>{const $=g.el=h?h.el:r(""),Z=g.anchor=h?h.anchor:r("");let{patchFlag:I,dynamicChildren:et,slotScopeIds:rt}=g;rt&&(O=O?O.concat(rt):rt),h==null?(n($,b,y),n(Z,b,y),G(g.children||[],b,Z,M,E,A,O,x)):I>0&&I&64&&et&&h.dynamicChildren&&h.dynamicChildren.length===et.length?(Ut(h.dynamicChildren,et,b,M,E,A,O),(g.key!=null||M&&g===M.subTree)&&Li(h,g,!0)):j(h,g,b,Z,M,E,A,O,x)},J=(h,g,b,y,M,E,A,O,x)=>{g.slotScopeIds=O,h==null?g.shapeFlag&512?M.ctx.activate(g,b,y,A,x):L(g,b,y,M,E,A,x):K(h,g,x)},L=(h,g,b,y,M,E,A)=>{const O=h.component=Ko(h,y,M);if(Kn(h)&&(O.ctx.renderer=lt),Vo(O,!1,A),O.asyncDep){if(M&&M.registerDep(O,N,A),!h.el){const x=O.subTree=Ot(Me);it(null,x,g,b),h.placeholder=x.el}}else N(O,h,g,b,M,E,A)},K=(h,g,b)=>{const y=g.component=h.component;if(Mo(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},N=(h,g,b,y,M,E,A)=>{const O=()=>{if(h.isMounted){let{next:I,bu:et,u:rt,parent:yt,vnode:Et}=h;{const oe=Di(h);if(oe){I&&(I.el=Et.el,F(h,I,A)),oe.asyncDep.then(()=>{Yt(()=>{h.isUnmounted||$()},M)});return}}let Mt=I,Dt;Le(h,!1),I?(I.el=Et.el,F(h,I,A)):I=Et,et&&Ts(et),(Dt=I.props&&I.props.onVnodeBeforeUpdate)&&ce(Dt,yt,I,Et),Le(h,!0);const Ht=fl(h),ae=h.subTree;h.subTree=Ht,W(ae,Ht,v(ae.el),at(ae),h,M,E),I.el=Ht.el,Mt===null&&So(h,Ht.el),rt&&Yt(rt,M),(Dt=I.props&&I.props.onVnodeUpdated)&&Yt(()=>ce(Dt,yt,I,Et),M)}else{let I;const{el:et,props:rt}=g,{bm:yt,m:Et,parent:Mt,root:Dt,type:Ht}=h,ae=rs(g);Le(h,!1),yt&&Ts(yt),!ae&&(I=rt&&rt.onVnodeBeforeMount)&&ce(I,Mt,g),Le(h,!0);{Dt.ce&&Dt.ce._hasShadowRoot()&&Dt.ce._injectChildStyle(Ht,h.parent?h.parent.type:void 0);const oe=h.subTree=fl(h);W(null,oe,b,y,h,M,E),g.el=oe.el}if(Et&&Yt(Et,M),!ae&&(I=rt&&rt.onVnodeMounted)){const oe=g;Yt(()=>ce(I,Mt,oe),M)}(g.shapeFlag&256||Mt&&rs(Mt.vnode)&&Mt.vnode.shapeFlag&256)&&h.a&&Yt(h.a,M),h.isMounted=!0,g=b=y=null}};h.scope.on();const x=h.effect=new Jl(O);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=()=>Bn(Z),Le(h,!0),$()},F=(h,g,b)=>{g.component=h;const y=h.vnode.props;h.vnode=g,h.next=null,Eo(h,g.props,y,b),Oo(h,g.children,b),we(),ol(h),ke()},j=(h,g,b,y,M,E,A,O,x=!1)=>{const $=h&&h.children,Z=h?h.shapeFlag:0,I=g.children,{patchFlag:et,shapeFlag:rt}=g;if(et>0){if(et&128){R($,I,b,y,M,E,A,O,x);return}else if(et&256){U($,I,b,y,M,E,A,O,x);return}}rt&8?(Z&16&&vt($,M,E),I!==$&&f(b,I)):Z&16?rt&16?R($,I,b,y,M,E,A,O,x):vt($,M,E,!0):(Z&8&&f(b,""),rt&16&&G(I,b,y,M,E,A,O,x))},U=(h,g,b,y,M,E,A,O,x)=>{h=h||Pe,g=g||Pe;const $=h.length,Z=g.length,I=Math.min($,Z);let et;for(et=0;et<I;et++){const rt=g[et]=x?be(g[et]):pe(g[et]);W(h[et],rt,b,null,M,E,A,O,x)}$>Z?vt(h,M,E,!0,!1,I):G(g,b,y,M,E,A,O,x,I)},R=(h,g,b,y,M,E,A,O,x)=>{let $=0;const Z=g.length;let I=h.length-1,et=Z-1;for(;$<=I&&$<=et;){const rt=h[$],yt=g[$]=x?be(g[$]):pe(g[$]);if(Ze(rt,yt))W(rt,yt,b,null,M,E,A,O,x);else break;$++}for(;$<=I&&$<=et;){const rt=h[I],yt=g[et]=x?be(g[et]):pe(g[et]);if(Ze(rt,yt))W(rt,yt,b,null,M,E,A,O,x);else break;I--,et--}if($>I){if($<=et){const rt=et+1,yt=rt<Z?g[rt].el:y;for(;$<=et;)W(null,g[$]=x?be(g[$]):pe(g[$]),b,yt,M,E,A,O,x),$++}}else if($>et)for(;$<=I;)tt(h[$],M,E,!0),$++;else{const rt=$,yt=$,Et=new Map;for($=yt;$<=et;$++){const Zt=g[$]=x?be(g[$]):pe(g[$]);Zt.key!=null&&Et.set(Zt.key,$)}let Mt,Dt=0;const Ht=et-yt+1;let ae=!1,oe=0;const Je=new Array(Ht);for($=0;$<Ht;$++)Je[$]=0;for($=rt;$<=I;$++){const Zt=h[$];if(Dt>=Ht){tt(Zt,M,E,!0);continue}let re;if(Zt.key!=null)re=Et.get(Zt.key);else for(Mt=yt;Mt<=et;Mt++)if(Je[Mt-yt]===0&&Ze(Zt,g[Mt])){re=Mt;break}re===void 0?tt(Zt,M,E,!0):(Je[re-yt]=$+1,re>=oe?oe=re:ae=!0,W(Zt,g[re],b,null,M,E,A,O,x),Dt++)}const Zn=ae?jo(Je):Pe;for(Mt=Zn.length-1,$=Ht-1;$>=0;$--){const Zt=yt+$,re=g[Zt],Qn=g[Zt+1],tl=Zt+1<Z?Qn.el||ji(Qn):y;Je[$]===0?W(null,re,b,tl,M,E,A,O,x):ae&&(Mt<0||$!==Zn[Mt]?V(re,b,tl,2):Mt--)}}},V=(h,g,b,y,M=null)=>{const{el:E,type:A,transition:O,children:x,shapeFlag:$}=h;if($&6){V(h.component.subTree,g,b,y);return}if($&128){h.suspense.move(g,b,y);return}if($&64){A.move(h,g,b,lt);return}if(A===ot){n(E,g,b);for(let I=0;I<x.length;I++)V(x[I],g,b,y);n(h.anchor,g,b);return}if(A===Cs){H(h,g,b);return}if(y!==2&&$&1&&O)if(y===0)O.persisted&&!E[on]?n(E,g,b):(O.beforeEnter(E),n(E,g,b),Yt(()=>O.enter(E),M));else{const{leave:I,delayLeave:et,afterLeave:rt}=O,yt=()=>{h.ctx.isUnmounted?l(E):n(E,g,b)},Et=()=>{const Mt=E._isLeaving||!!E[on];E._isLeaving&&E[on](!0),O.persisted&&!Mt?yt():I(E,()=>{yt(),rt&&rt()})};et?et(E,yt,Et):Et()}else n(E,g,b)},tt=(h,g,b,y=!1,M=!1)=>{const{type:E,props:A,ref:O,children:x,dynamicChildren:$,shapeFlag:Z,patchFlag:I,dirs:et,cacheIndex:rt,memo:yt}=h;if((I===-2||$&&$.hasOnce)&&(M=!1),O!=null&&(we(),os(O,null,b,h,!0),ke()),rt!=null&&(!h.ctx||h.ctx===g)&&(g.renderCache[rt]=void 0),Z&256){g.ctx.deactivate(h);return}const Et=Z&1&&et,Mt=!rs(h);let Dt;if(Mt&&(Dt=A&&A.onVnodeBeforeUnmount)&&ce(Dt,g,h),Z&6)dt(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,lt,y):$&&!$.hasOnce&&(E!==ot||I>0&&I&64)?vt($,g,b,!1,!0):(E===ot&&I&384||!M&&Z&16)&&vt(x,g,b),y&&nt(h)}const Ht=yt!=null&&rt==null;(Mt&&(Dt=A&&A.onVnodeUnmounted)||Et||Ht)&&Yt(()=>{Dt&&ce(Dt,g,h),Et&&qe(h,null,g,"unmounted"),Ht&&(h.el=null)},b)},nt=h=>{const{type:g,el:b,anchor:y,transition:M}=h;if(g===ot){X(b,y);return}if(g===Cs){T(h),M&&!M.persisted&&M.afterLeave&&M.afterLeave();return}const E=()=>{l(b),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(h.shapeFlag&1&&M&&!M.persisted){const{leave:A,delayLeave:O}=M,x=()=>A(b,E);O?O(h.el,E,x):x()}else E()},X=(h,g)=>{let b;for(;h!==g;)b=_(h),l(h),h=b;l(g)},dt=(h,g,b)=>{const{bum:y,scope:M,job:E,subTree:A,um:O,m:x,a:$}=h;_l(x),_l($),y&&Ts(y),M.stop(),E?(E.flags|=8,tt(A,h,g,b)):h.vnode.el&&A&&(A.transition=h.vnode.transition,tt(A,h,g,b)),O&&Yt(O,g),Yt(()=>{h.isUnmounted=!0},g)},vt=(h,g,b,y=!1,M=!1,E=0)=>{for(let A=E;A<h.length;A++)tt(h[A],g,b,y,M)},at=h=>{if(h.shapeFlag&6)return at(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const g=_(h.anchor||h.el),b=g&&g[Xa];return b?_(b):g};let bt=!1;const _t=(h,g,b)=>{let y;h==null?g._vnode&&(tt(g._vnode,null,null,!0),y=g._vnode.component):W(g._vnode||null,h,g,null,null,null,b),g._vnode=h,bt||(bt=!0,ol(y),hi(),bt=!1)},lt={p:W,um:tt,m:V,r:nt,mt:L,mc:G,pc:j,pbc:Ut,n:at,o:t};return{render:_t,hydrate:void 0,createApp:bo(_t)}}function cn({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 Do(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Li(t,e,s=!1){const n=t.children,l=e.children;if(pt(n)&&pt(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]=be(l[i]),r.el=c.el),!s&&r.patchFlag!==-2&&Li(c,r)),r.type===Qs&&(r.patchFlag===-1&&(r=l[i]=be(r)),r.el=c.el),r.type===Me&&!r.el&&(r.el=c.el)}}function jo(t){const e=t.slice(),s=[0];let n,l,i,c,r;const d=t.length;for(n=0;n<d;n++){const m=t[n];if(m!==0){if(l=s[s.length-1],t[l]<m){e[n]=l,s.push(n);continue}for(i=0,c=s.length-1;i<c;)r=i+c>>1,t[s[r]]<m?i=r+1:c=r;m<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 Di(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Di(e)}function _l(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function ji(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?ji(e.subTree):null}const Pi=t=>t.__isSuspense;function Po(t,e){e&&e.pendingBranch?pt(t)?e.effects.push(...t):e.effects.push(t):Ua(t)}const ot=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Cs=Symbol.for("v-stc"),Re=[];let Qt=null;function k(t=!1){Re.push(Qt=t?null:[])}function Hi(){Re.pop(),Qt=Re[Re.length-1]||null}let hs=1;function gl(t,e=!1){hs+=t,t<0&&Qt&&e&&(Qt.hasOnce=!0)}function Ri(t){return t.dynamicChildren=hs>0?Qt||Pe:null,Hi(),hs>0&&Qt&&Qt.push(t),t}function S(t,e,s,n,l,i){return Ri(a(t,e,s,n,l,i,!0))}function jt(t,e,s,n,l){return Ri(Ot(t,e,s,n,l,!0))}function Ii(t){return t?t.__v_isVNode===!0:!1}function Ze(t,e){return t.type===e.type&&t.key===e.key}const Ni=({key:t})=>t??null,Fs=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?Lt(t)||Kt(t)||ht(t)?{i:te,r:t,k:e,f:!!s}:t:null);function a(t,e=null,s=null,n=0,l=null,i=t===ot?0:1,c=!1,r=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ni(e),ref:e&&Fs(e),scopeId:mi,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:te};return r?(Ps(d,s),i&128&&t.normalize(d)):s&&(d.shapeFlag|=Lt(s)?8:16),hs>0&&!c&&Qt&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&Qt.push(d),d}const Ot=Ho;function Ho(t,e=null,s=null,n=0,l=null,i=!1){if((!t||t===uo)&&(t=Me),Ii(t)){const r=ze(t,e,!0);return s&&Ps(r,s),hs>0&&!i&&Qt&&(r.shapeFlag&6?Qt[Qt.indexOf(t)]=r:Qt.push(r)),r.patchFlag=-2,r}if(Jo(t)&&(t=t.__vccOpts),e){e=Ro(e);let{class:r,style:d}=e;r&&!Lt(r)&&(e.class=Wt(r)),Tt(d)&&(Nn(d)&&!pt(d)&&(d=Nt({},d)),e.style=It(d))}const c=Lt(t)?1:Pi(t)?128:Js(t)?64:Tt(t)?4:ht(t)?2:0;return a(t,e,s,n,l,c,i,!0)}function Ro(t){return t?Nn(t)||Ei(t)?Nt({},t):t:null}function ze(t,e,s=!1,n=!1){const{props:l,ref:i,patchFlag:c,children:r,transition:d}=t,m=e?No(l||{},e):l,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:m,key:m&&Ni(m),ref:e&&e.ref?s&&i?pt(i)?i.concat(Fs(e)):[i,Fs(e)]:Fs(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!==ot?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,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 d&&n&&Wn(f,d.clone(f)),f}function ut(t=" ",e=0){return Ot(Qs,null,t,e)}function Io(t,e){const s=Ot(Cs,null,t);return s.staticCount=e,s}function gt(t="",e=!1){return e?(k(),jt(Me,null,t)):Ot(Me,null,t)}function pe(t){return t==null||typeof t=="boolean"?Ot(Me):pt(t)?Ot(ot,null,t.slice()):Ii(t)?be(t):Ot(Qs,null,String(t))}function be(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ze(t)}function Ps(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(pt(e))s=16;else if(typeof e=="object")if(n&65){const l=e.default;l&&(l._c&&(l._d=!1),Ps(t,l()),l._c&&(l._d=!0));return}else{s=32;const l=e._;!l&&!Ei(e)?e._ctx=te:l===3&&te&&(te.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(ht(e)){if(n&65){Ps(t,{default:e});return}e={default:e,_ctx:te},s=32}else e=String(e),n&64?(s=16,e=[ut(e)]):s=8;t.children=e,t.shapeFlag|=s}function No(...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=Wt([e.class,n.class]));else if(l==="style")e.style=It([e.style,n.style]);else if(Ws(l)){const i=e[l],c=n[l];c&&i!==c&&!(pt(i)&&i.includes(c))?e[l]=i?[].concat(i,c):c:c==null&&i==null&&!Ks(l)&&(e[l]=c)}else l!==""&&(e[l]=n[l])}return e}function ce(t,e,s,n=null){ie(t,e,7,[s,n])}const Bo=wi();let Wo=0;function Ko(t,e,s){const n=t.type,l=(e?e.appContext:t.appContext)||Bo,i={uid:Wo++,vnode:t,type:n,parent:e,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fa(!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:Fi(n,l),emitsOptions:ki(n,l),emit:null,emitted:null,propsDefaults:Ft,inheritAttrs:n.inheritAttrs,ctx:Ft,data:Ft,props:Ft,attrs:Ft,slots:Ft,refs:Ft,setupState:Ft,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=$o.bind(null,i),t.ce&&t.ce(i),i}let zt=null;const Uo=()=>zt||te;let Hs,fs;{const t=Vs(),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)}};Hs=e("__VUE_INSTANCE_SETTERS__",s=>zt=s),fs=e("__VUE_SSR_SETTERS__",s=>ms=s)}const ys=t=>{const e=zt;return Hs(t),t.scope.on(),()=>{t.scope.off(),Hs(e)}},bl=()=>{zt&&zt.scope.off(),Hs(null)};function Bi(t){return t.vnode.shapeFlag&4}let ms=!1;function Vo(t,e=!1,s=!1){e&&fs(e);const{props:n,children:l}=t.vnode,i=Bi(t);To(t,n,i,e),Ao(t,l,s||e);const c=i?Go(t,e):void 0;return e&&fs(!1),c}function Go(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,po);const{setup:n}=s;if(n){we();const l=t.setupContext=n.length>1?Yo(t):null,i=ys(t),c=bs(n,t,0,[t.props,l]),r=Bl(c);if(ke(),i(),(r||t.sp)&&!rs(t)&&bi(t),r){if(c.then(bl,bl),e)return c.then(d=>{fs(!0);try{yl(t,d,e)}finally{fs(!1)}}).catch(d=>{Ys(d,t,0)});t.asyncDep=c}else yl(t,c)}else Wi(t)}function yl(t,e,s){ht(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Tt(e)&&(t.setupState=di(e)),Wi(t)}function Wi(t,e,s){const n=t.type;t.render||(t.render=n.render||fe);{const l=ys(t);we();try{ho(t)}finally{ke(),l()}}}const zo={get(t,e){return Bt(t,"get",""),t[e]}};function Yo(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,zo),slots:t.slots,emit:t.emit,expose:e}}function tn(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(di(La(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in cs)return cs[s](t)},has(e,s){return s in e||s in cs}})):t.proxy}function Jo(t){return ht(t)&&"__vccOpts"in t}const B=(t,e)=>Ra(t,e,ms),Xo="3.5.43";/**
- * @vue/runtime-dom v3.5.43
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let Tn;const $l=typeof window<"u"&&window.trustedTypes;if($l)try{Tn=$l.createPolicy("vue",{createHTML:t=>t})}catch{}const Ki=Tn?t=>Tn.createHTML(t):t=>t,Zo="http://www.w3.org/2000/svg",Qo="http://www.w3.org/1998/Math/MathML",ge=typeof document<"u"?document:null,xl=ge&&ge.createElement("template"),tr={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"?ge.createElementNS(Zo,t):e==="mathml"?ge.createElementNS(Qo,t):s?ge.createElement(t,{is:s}):ge.createElement(t);return t==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:t=>ge.createTextNode(t),createComment:t=>ge.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ge.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{xl.innerHTML=Ki(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const r=xl.content;if(n==="svg"||n==="mathml"){const d=r.firstChild;for(;d.firstChild;)r.appendChild(d.firstChild);r.removeChild(d)}e.insertBefore(r,s)}return[c?c.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},er=Symbol("_vtc");function sr(t,e,s){const n=t[er];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Rs=Symbol("_vod"),Ui=Symbol("_vsh"),nr={name:"show",beforeMount(t,{value:e},{transition:s}){t[Rs]=t.style.display==="none"?"":t.style.display,s&&e?s.beforeEnter(t):Qe(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),Qe(t,!0),n.enter(t)):n.leave(t,()=>{Qe(t,!1)}):Qe(t,e))},beforeUnmount(t,{value:e}){Qe(t,e)}};function Qe(t,e){t.style.display=e?t[Rs]:"none",t[Ui]=!e}const lr=Symbol(""),ir=/(?:^|;)\s*display\s*:/;function ar(t,e,s){const n=t.style,l=Lt(s);let i=!1;if(s&&!l){if(e)if(Lt(e))for(const c of e.split(";")){const r=c.slice(0,c.indexOf(":")).trim();s[r]==null&&ss(n,r,"")}else for(const c in e)s[c]==null&&ss(n,c,"");for(const c in s){c==="display"&&(i=!0);const r=s[c];r!=null?rr(t,c,!Lt(e)&&e?e[c]:void 0,r)||ss(n,c,r):ss(n,c,"")}}else if(l){if(e!==s){const c=n[lr];c&&(s+=";"+c),n.cssText=s,i=ir.test(s)}}else e&&t.removeAttribute("style");Rs in t&&(t[Rs]=i?n.display:"",t[Ui]&&(n.display="none"))}const ks=/\s*!important$/;function ss(t,e,s){if(pt(s))s.forEach(n=>ss(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))ks.test(s)?t.setProperty(e,s.replace(ks,""),"important"):t.setProperty(e,s);else{const n=or(t,e);ks.test(s)?t.setProperty(Ne(n),s.replace(ks,""),"important"):t[n]=s}}const wl=["Webkit","Moz","ms"],dn={};function or(t,e){const s=dn[e];if(s)return s;let n=ne(e);if(n!=="filter"&&n in t)return dn[e]=n;n=Ul(n);for(let l=0;l<wl.length;l++){const i=wl[l]+n;if(i in t)return dn[e]=i}return e}function rr(t,e,s,n){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&Lt(n)&&s===n}const kl="http://www.w3.org/1999/xlink";function Ml(t,e,s,n,l,i=ua(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(kl,e.slice(6,e.length)):t.setAttributeNS(kl,e,s):s==null||i&&!Gl(s)?t.removeAttribute(e):t.setAttribute(e,i?"":me(s)?String(s):s)}function Sl(t,e,s,n,l){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?Ki(s):s);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const r=i==="OPTION"?t.getAttribute("value")||"":t.value,d=s==null?t.type==="checkbox"?"on":"":String(s);(r!==d||!("_value"in t))&&(t.value=d),s==null&&t.removeAttribute(e),t._value=s;return}let c=!1;if(s===""||s==null){const r=typeof t[e];r==="boolean"?s=Gl(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 Ke(t,e,s,n){t.addEventListener(e,s,n)}function cr(t,e,s,n){t.removeEventListener(e,s,n)}const Tl=Symbol("_vei");function dr(t,e,s,n,l=null){const i=t[Tl]||(t[Tl]={}),c=i[e];if(n&&c)c.value=n;else{const[r,d]=hr(e);if(n){const m=i[e]=vr(n,l);Ke(t,r,m,d)}else c&&(cr(t,r,c,d),i[e]=void 0)}}const ur=/(Once|Passive|Capture)$/,pr=/^on:?(?:Once|Passive|Capture)$/;function hr(t){let e,s;for(;(s=t.match(ur))&&!pr.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 un=0;const fr=Promise.resolve(),mr=()=>un||(fr.then(()=>un=0),un=Date.now());function vr(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const l=s.value;if(pt(l)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const c=l.slice(),r=[n];for(let d=0;d<c.length&&!n._stopped;d++){const m=c[d];m&&ie(m,e,5,r)}}else ie(l,e,5,[n])};return s.value=t,s.attached=mr(),s}const El=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,_r=(t,e,s,n,l,i)=>{const c=l==="svg";e==="class"?sr(t,n,c):e==="style"?ar(t,s,n):Ws(e)?Ks(e)||dr(t,e,s,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):gr(t,e,n,c))?(Sl(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ml(t,e,n,c,i,e!=="value")):t._isVueCE&&(br(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!Lt(n)))?Sl(t,ne(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Ml(t,e,n,c))};function gr(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&El(e)&&ht(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 El(e)&&Lt(s)?!1:e in t}function br(t,e){const s=t._def.props;if(!s)return!1;const n=ne(e);return Array.isArray(s)?s.some(l=>ne(l)===n):Object.keys(s).some(l=>ne(l)===n)}const Cl=t=>{const e=t.props["onUpdate:modelValue"]||!1;return pt(e)?s=>Ts(e,s):e};function yr(t){t.target.composing=!0}function Fl(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign"),Ss=Symbol("_initialValue");function pn(t,e,s){return e&&(t=t.trim()),s&&(t=Ln(t)),t}const Al={created(t,{modifiers:{lazy:e,trim:s,number:n}},l){t.parentNode&&(t.type==="text"?t[Ss]=t.defaultValue.replace(/[\r\n]/g,""):t.type==="textarea"&&(t[Ss]=t.defaultValue.replace(/\r\n?/g,`
- `))),t[Ms]=Cl(l);const i=n||l.props&&l.props.type==="number";Ke(t,e?"change":"input",c=>{c.target.composing||t[Ms](pn(t.value,s,i))}),(s||i)&&Ke(t,"change",()=>{t.value=pn(t.value,s,i)}),e||(Ke(t,"compositionstart",yr),Ke(t,"compositionend",Fl),Ke(t,"change",Fl))},mounted(t,{value:e,modifiers:{trim:s,number:n}}){const l=e??"",i=t[Ss];delete t[Ss],i!==void 0&&(t.type==="text"||t.type==="textarea")&&t.value!==i?t[Ms](pn(t.value,s,n)):t.value=l},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:n,trim:l,number:i}},c){if(t[Ms]=Cl(c),t.composing)return;const r=(i||t.type==="number")&&!/^0\d/.test(t.value)?Ln(t.value):t.value,d=e??"";if(r===d)return;const m=t.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===t&&t.type!=="range"&&(n&&e===s||l&&t.value.trim()===d)||(t.value=d)}},$r=["ctrl","shift","alt","meta"],xr={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>$r.some(s=>t[`${s}Key`]&&!e.includes(s))},wr=(t,e)=>{if(!t)return t;const s=t._withMods||(t._withMods={}),n=e.join(".");return s[n]||(s[n]=((l,...i)=>{for(let c=0;c<e.length;c++){const r=xr[e[c]];if(r&&r(l,e))return}return t(l,...i)}))},kr=Nt({patchProp:_r},tr);let Ol;function Mr(){return Ol||(Ol=qo(kr))}const Sr=((...t)=>{const e=Mr().createApp(...t),{mount:s}=e;return e.mount=n=>{const l=Er(n);if(!l)return;const i=e._component;!ht(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const c=s(l,!1,Tr(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),c},e});function Tr(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Er(t){return Lt(t)?document.querySelector(t):t}const Vi={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 Gi(t,e){const s=Vi[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 hn=["facts","maintSurvey","ontList","askStatus","channels","dqFindings","algoHealth","algoEndpoints","algoMatrix","algoReliability","algoPurity"],Cr={class:"card"},Fr={class:"hint"},Ar=["disabled"],Or={class:"hint"},qr=Pt({__name:"ContractSmoke",setup(t){const e=St([]),s=St(!1),n=St(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 hn){const r=await Gi(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 Ye(i),(c,r)=>(k(),S("section",Cr,[r[3]||(r[3]=a("h2",null,[ut("契约自检 "),a("small",null,"(后端结构与算法服务可达性;对拍基准见 docs/接口契约_前后端_v0.1.md)")],-1)),a("p",Fr,[ut(" 进度 "+p(n.value)+"/"+p(u(hn).length)+' · 只判"通不通",不比数据值(值随数据变,锚点在 Python 侧的门禁里) ',1),a("button",{class:"re",disabled:s.value,onClick:i},"重跑",8,Ar)]),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,[(k(!0),S(ot,null,$t(e.value,d=>(k(),S("tr",{key:d.name,class:Wt({bad:!d.ok})},[a("td",null,p(d.name),1),a("td",null,[a("code",null,p(d.path),1)]),a("td",null,p(d.status),1),a("td",null,p(d.ms)+" ms",1),a("td",null,p(d.error||d.keys),1)],2))),128))])]),a("p",Or,[ut(" 契约登记接口合计 "+p(Object.keys(u(Vi)).length)+" 条(本页抽样 "+p(u(hn).length)+" 条); 全量 42 条由 ",1),r[1]||(r[1]=a("code",null,"python scripts/http_contract_audit.py",-1)),r[2]||(r[2]=ut(" 在线复核。 ",-1))])]))}}),Lr={"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=Lr[t]??t;if(e)for(const[n,l]of Object.entries(e))s=s.split(`{${n}}`).join(String(l));return s}const Dr=["overview","energy","component","vibration","generation","fault","decision","assistant","report","system","documents","recalc","portal_sec","portal_src"],En=["overview","energy","component","fault","vibration","generation","decision","assistant","system","report","documents","recalc","portal_sec","portal_src"],jr={class:"eyebrow"},Pr={key:0,class:"panel"},Hr={class:"small",style:{color:"var(--critical)"}},Rr={key:1,class:"panel"},Ir={class:"small muted"},Nr={class:"panel mb"},Br={class:"small muted"},Wr={class:"panel mb"},Kr={class:"tblwrap"},Ur={style:{"margin-top":"4px"}},Vr={style:{width:"60%"}},Gr={style:{width:"16%"}},zr={style:{width:"24%"}},Yr={class:"small"},Jr={class:"small num"},Xr={class:"small"},Zr=["href","download"],Qr=Pt({__name:"Documents",setup(t){const e=St(null),s=St(""),n=l=>l>=1048576?(l/1048576).toFixed(1)+" MB":Math.max(1,Math.round(l/1024))+" KB";return Ye(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)=>(k(),S("section",null,[a("div",jr,p(u(o)("doc.eyebrow")),1),s.value?(k(),S("div",Pr,[a("p",Hr,p(s.value),1)])):e.value?(k(),S(ot,{key:2},[a("div",Nr,[a("h3",null,p(u(o)("doc.head",{n:e.value.length})),1),a("p",Br,p(u(o)("doc.note")),1)]),a("div",Wr,[a("div",Kr,[a("table",Ur,[a("tr",null,[a("th",Vr,p(u(o)("doc.name")),1),a("th",Gr,p(u(o)("doc.size")),1),a("th",zr,p(u(o)("doc.get")),1)]),(k(!0),S(ot,null,$t(e.value,c=>(k(),S("tr",{key:c.name},[a("td",Yr,p(c.name),1),a("td",Jr,p(n(c.size||0)),1),a("td",Xr,[a("a",{href:c.url,download:c.name},p(u(o)("doc.download")),9,Zr)])]))),128))])])])],64)):(k(),S("div",Rr,[a("p",Ir,p(u(o)("doc.loading")),1)]))]))}}),tc={class:"eyebrow"},ec={key:0,class:"panel"},sc={class:"small",style:{color:"var(--critical)"}},nc={key:1,class:"panel"},lc={class:"small muted"},ic={class:"panel mb"},ac={class:"small muted"},oc={key:0,class:"small"},rc=["disabled"],cc={class:"panel mb"},dc={class:"small",style:{"max-height":"340px",overflow:"auto",margin:"0"}},uc=Pt({__name:"Recalc",setup(t){const e=St(null),s=St(""),n=St(!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 Ye(()=>{i(),l=setInterval(i,5e3)}),Un(()=>{l&&clearInterval(l)}),(r,d)=>(k(),S("section",null,[a("div",tc,p(u(o)("rc.eyebrow")),1),s.value?(k(),S("div",ec,[a("p",sc,p(s.value),1)])):e.value?(k(),S(ot,{key:2},[a("div",ic,[a("h3",null,p(e.value.running?u(o)("rc.running"):u(o)("rc.idle")),1),a("p",ac,p(u(o)("rc.note")),1),e.value.started_at?(k(),S("p",oc,[ut(p(u(o)("rc.since"))+" ",1),a("code",null,p(e.value.started_at),1)])):gt("",!0),a("button",{class:"pill",disabled:n.value||e.value.running,onClick:c},p(u(o)("rc.start")),9,rc)]),a("div",cc,[a("h3",null,p(u(o)("rc.log")),1),a("pre",dc,p(e.value.log||u(o)("rc.empty")),1)])],64)):(k(),S("div",nc,[a("p",lc,p(u(o)("rc.loading")),1)]))]))}}),pc={class:"eyebrow"},hc={class:"panel mb"},fc={class:"small muted"},mc={class:"panel mb"},vc={class:"tblwrap"},_c={style:{"margin-top":"4px"}},gc={style:{width:"22%"}},bc={style:{width:"56%"}},yc={class:"small"},$c={class:"small muted"},xc={class:"small"},wc=["href"],kc=Pt({__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)=>(k(),S("section",null,[a("div",pc,p(u(o)("pt.eyebrow")),1),a("div",hc,[a("h3",null,p(u(o)("pt.head")),1),a("p",fc,p(u(o)("pt.note")),1)]),a("div",mc,[a("div",vc,[a("table",_c,[a("tr",null,[a("th",gc,p(u(o)("pt.col")),1),a("th",bc,p(u(o)("pt.what")),1),a("th",null,p(u(o)("pt.open")),1)]),(k(),S(ot,null,$t(e,l=>a("tr",{key:l.id},[a("td",yc,[a("b",null,p(l.note),1)]),a("td",$c,p(l.kind==="portal"?u(o)("pt.kind_portal"):u(o)("pt.kind_svc")),1),a("td",xc,[a("a",{href:l.href},p(u(o)("pt.open")),9,wc)])])),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>`,Sc=`</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>`,Tc=`</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>`,Ec=`</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>`,Cc={class:"eyebrow"},Fc={class:"panel mb",style:{display:"flex",gap:"8px","flex-wrap":"wrap"}},Ac=["onClick"],Oc={key:0,class:"panel"},qc={class:"small muted"},Lc=["innerHTML"],Dc=Pt({__name:"PortalSections",setup(t){const e=[{id:"architecture",label:"系统架构",html:Mc},{id:"method",label:"方法",html:Sc},{id:"findings",label:"经验发现",html:Tc},{id:"case_hydraulic",label:"案例·液压",html:Ec}],s=St("architecture"),n=B(()=>(e.find(i=>i.id===s.value)||e[0]).html),l=B(()=>!n.value);return(i,c)=>(k(),S("section",null,[a("div",Cc,p(u(o)("ps.eyebrow")),1),a("div",Fc,[(k(),S(ot,null,$t(e,r=>a("button",{key:r.id,class:Wt(["pill",{on:r.id===s.value}]),onClick:d=>s.value=r.id},p(r.label),11,Ac)),64))]),l.value?(k(),S("div",Oc,[a("p",qc,p(u(o)("ps.missing")),1)])):(k(),S("div",{key:1,class:"ps-embed",innerHTML:n.value},null,8,Lc))]))}}),jc={class:"portal-full"},Pc={key:0,class:"portal-loading"},fn="/web/portal/",Hc=Pt({__name:"PortalView",setup(t){const e=St(null),s=St("loading"),n=St("");async function l(r){const d=await fetch(r);if(!d.ok)throw new Error(r+" "+d.status);return await d.text()}Ye(async()=>{try{let r=await l(fn+"shell.html");const d=r.match(/<title[^>]*>([^<]*)<\/title>/i);d&&d[1].trim()&&(document.title=d[1].trim());const m=Array.from(r.matchAll(/<!--@TEMPLATE:([^>]+?)-->/g)).map(_=>_[1]);m.forEach(_=>{r=r.replace("<!--@TEMPLATE:"+_+"-->",'<template id="'+_+'"></template>')});try{const _=await l(fn+"governance_sources.json");r=r.replace("<!--@GOVERNANCE_SOURCES-->",_.replace(/</g,"\\u003c"))}catch{}const f=[[/<a([^>]*?)href="#cms"/g,'<a$1target="_top" href="/detail/v2#tab=vibration"'],[/<a([^>]*?)href="#documents"/g,'<a$1target="_top" href="/detail/v2#tab=documents"'],[/<a([^>]*?)href="#recalc"/g,'<a$1target="_top" href="/detail/v2#tab=recalc"'],[/<a([^>]*?)href="(?:https?:\/\/[^"]*)?\/(?:detail\/v2|v2)[^"]*"/g,'<a$1target="_top" href="/detail/v2#workbench"']];for(const[_,w]of f)r=r.replace(_,w);n.value=o("pv.assembled",{n:m.length});const v=new Blob([r],{type:"text/html;charset=utf-8"});e.value&&(e.value.src=URL.createObjectURL(v)),c(),i(m),s.value="ready"}catch(r){n.value=String(r&&r.message||r),s.value="error"}});async function i(r){let m=0,f=0;const v=async()=>{for(;m<r.length;){const _=r[m++];try{const w=await fetch(fn+"templates/"+encodeURIComponent(_)+".html",{cache:"force-cache"}),D=w.ok?await w.text():"",W=e.value&&e.value.contentDocument,z=W&&W.getElementById(_);if(W&&z){const it=W.createElement("template");it.id=_,it.innerHTML=D,z.replaceWith(it)}}catch{}f++,n.value=o("pv.assembled",{n:f})}};await Promise.all(Array.from({length:6},()=>v()))}function c(){const r=[['nav a[data-nav="cms"]',"#tab=vibration"],['nav a[data-nav="documents"]',"#tab=documents"],['nav a[data-nav="recalc"]',"#tab=recalc"]],d=()=>{const f=e.value&&e.value.contentDocument;if(!f)return;const v=D=>W=>{W.preventDefault(),W.stopImmediatePropagation();const z=window.top;try{z.location.href=D}catch{location.href=D}};for(const[D,W]of r){const z=f.querySelector(D);z&&z.addEventListener("click",v("/detail/v2"+W),!0)}const _=f.querySelector("nav a:not([data-nav])")||f.querySelector('a[href*="18033"]');_&&_.addEventListener("click",v("/detail/v2#workbench"),!0);const w=f.querySelector("a.portal-wb");w&&w.addEventListener("click",v("/detail/v2#workbench"),!0)},m=e.value;m&&(m.addEventListener("load",d),d())}return(r,d)=>(k(),S("div",jc,[s.value!=="ready"?(k(),S("div",Pc,p(s.value==="loading"?u(o)("pv.loading"):n.value),1)):gt("",!0),d[0]||(d[0]=a("a",{class:"portal-wb",href:"#workbench",title:"切换到 Vue 工作台"},"工作台",-1)),a("iframe",{ref_key:"frame",ref:e,class:"portal-frame",title:"观澜门户"},null,512)]))}}),zi=(t,e)=>{const s=t.__vccOpts||t;for(const[n,l]of e)s[n]=l;return s},Yi=zi(Hc,[["__scopeId","data-v-b81f180d"]]),zn=["叶片与叶根","变桨","偏航","齿轮箱","发电机","主轴承","变流器","塔架与基础","主控与传感网"],Is={叶片与叶根:"blade",变桨:"pitch",偏航:"yaw",齿轮箱:"gearbox",发电机:"generator",主轴承:"main_bearing",变流器:"converter",塔架与基础:"tower",主控与传感网:"control",主轴:"main_bearing",其他:"other"},Ji=(()=>{const t={};for(const e of zn)t[Is[e]]=e;for(const[e,s]of Object.entries(Is))s in t||(t[s]=e);return t})(),Ns=t=>Is[String(t)]||String(t),ql=t=>Ji[String(t)]||String(t),xe=t=>{const e=Is[String(t)]||String(t);return Ji[e]?o("sys."+e):String(t??"")},vs=t=>xe(t),Rc={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},Ic={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"},Bs=t=>Rc[String(t)]||Ic[String(t)],Ll={证据:"evidence",机制:"mechanism",判级:"rating",排期:"schedule",动作:"action",验收:"acceptance"},Cn=t=>"st."+(t==="ex"?"excellent":t),qt=t=>String(t).replace("WTG","").replace(/^0/,"")+"#",Ct=(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})},Dl=t=>{const e=Bs(t);return e?o(Cn(e)):String(t??"")},Nc=["振动","温度","润滑","油液","报警","工单"];function jl(t){const e=Nc.map(n=>Bs((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 Pl={bad:"critical",warn:"warning",unk:"unknown",ok:"good",ex:"excellent"},Oe=t=>String(t??""),Bc={key:0},Wc={class:"small"},Kc={href:"#tab=component","data-back":"1"},Uc={class:"panel mb"},Vc={style:{display:"flex",height:"12px","border-radius":"4px",overflow:"hidden",margin:"8px 0 4px"}},Gc={class:"small muted"},zc={class:"tblwrap"},Yc={style:{width:"74px"}},Jc={class:"r",style:{width:"96px"}},Xc=["href"],Zc={class:"small"},Qc={class:"r"},td=["href"],ed={key:0,class:"panel mb"},sd={style:{cursor:"pointer","font-weight":"600"}},nd={class:"tblwrap"},ld={style:{"margin-top":"10px"}},id={style:{width:"74px"}},ad={class:"small"},od={key:1,class:"panel"},rd={class:"small"},cd={key:0},dd={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},ud={class:"eyebrow"},pd={class:"panel mb"},hd={style:{display:"grid","grid-template-columns":"repeat(auto-fit,minmax(170px,1fr))",gap:"10px"}},fd=["data-sys"],md={class:"t"},vd={class:"bar"},_d=["innerHTML"],gd={class:"small muted",style:{"margin-top":"8px"}},bd={key:1,class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},yd={class:"small"},$d={class:"eyebrow"},xd={class:"panel mb"},wd={class:"small muted",style:{"font-weight":"400"}},kd={class:"small muted",style:{margin:"-2px 0 8px"}},Md={class:"tblwrap"},Sd={class:"r"},Td={class:"r"},Ed={class:"r"},Cd={class:"r"},Fd={key:0,class:"badge"},Ad={class:"num small"},Od={class:"r"},qd={class:"r"},Ld={class:"r"},Dd={class:"r"},jd={class:"small"},Pd={class:"small muted"},Hd={key:3,class:"panel mb"},Rd={class:"small"},Id={href:"#tab=vibration"},Nd={class:"eyebrow"},Bd={class:"panel mb"},Wd={class:"tblwrap"},Kd={class:"r"},Ud=["href"],Vd={class:"r"},Gd=["innerHTML"],zd={class:"small"},Yd=Pt({__name:"Component",props:{d:{},sys:{}},setup(t){const e=t,s=B(()=>e.d?.sysdist||{}),n=B(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),l=B(()=>e.sys?ql(e.sys):null),i=B(()=>zn.filter(f=>s.value[f]).map(f=>{const v=s.value[f],_=v.报警||0,w=v.不可判||0,D=Object.values(v).reduce((z,it)=>z+it,0)||1,W=_>=8?"var(--critical)":_>=3?"var(--warning)":_?"var(--accent)":"var(--good)";return{segs:[["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]].filter(([z])=>v[z]).map(([z,it])=>({col:it,w:(v[z]/D*100).toFixed(1)})),line:o("cmp.alarm_n",{a:`<b style="color:${W}">${_}</b>`})+(w?o("cmp.unk_n",{u:w}):"")+o("cmp.fleet_n",{n:D}),s:f,dist:v,a:_,u:w,N:D,col:W}}));function c(f){return(f.syss||[]).map(v=>`<a href="/problem/${f.t}/${encodeURIComponent(ql(v)||v)}">${xe(v)}</a>`).join(" · ")}const r=B(()=>{const v=(((e.d?.control||{}).energy||{}).items||[]).filter(_=>_.k==="停机").map(_=>_.h)[0];return v??null}),d=B(()=>{const f=n.value?.表||[],v=Math.max(1,...f.map(_=>_.停机时长h));return f.map(_=>({r:_,maxH:v,sev:_.部件==="无记录停机"?"var(--unknown)":_.外部?"var(--accent)":_.占停机>=.06?"var(--critical)":_.占停机>=.03?"var(--warning)":"var(--good)"}))}),m=B(()=>{const f=l.value;if(!f)return null;const v=(e.d?.systems||{})[f]||[],_=s.value[f]||{},w=(e.d?.systems||{})[f+"·良好"]||[],D=z=>_[z]||0,W=Object.values(_).reduce((z,it)=>z+it,0)||1;return{s:f,N:W,gd:w,cnt:D,al:v.filter(z=>z.st==="报警"),un:v.filter(z=>z.st==="不可判"),dist:_}});return(f,v)=>m.value?(k(),S("section",Bc,[a("p",Wc,[a("a",Kc,p(u(o)("ui.back_to",{tab:u(o)("tab.component")})),1)]),a("div",Uc,[a("h3",null,p(u(o)("cmp.detail_head",{sys:u(xe)(m.value.s),n:m.value.N})),1),a("div",Vc,[(k(),S(ot,null,$t([["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],([_,w])=>a("i",{key:_,style:It(`width:${(m.value.cnt(_)/m.value.N*100).toFixed(1)}%;background:var(--${w})`)},null,4)),64))]),a("div",Gc,p(u(o)("cmp.counts",{a:m.value.cnt("报警"),u:m.value.cnt("不可判"),g:m.value.cnt("良好"),e:m.value.cnt("优秀")})),1)]),(k(!0),S(ot,null,$t([m.value.al,m.value.un],(_,w)=>Ge((k(),S("div",{key:w,class:"panel mb"},[a("h3",null,p(w===0?u(o)("cmp.alarm_units"):u(o)("cmp.unk_units"))+" "+p(u(o)("cmp.n_units",{n:_.length})),1),a("div",zc,[a("table",null,[a("tr",null,[a("th",Yc,p(u(o)("ui.unit")),1),a("th",null,p(u(o)("cmp.why")),1),a("th",Jc,p(u(o)("cmp.detail")),1)]),(k(!0),S(ot,null,$t(_,D=>(k(),S("tr",{key:D.t},[a("td",null,[a("a",{href:`/turbine/${D.t}`},[a("b",null,p(u(qt)(D.t)),1)],8,Xc)]),a("td",Zc,p(D.why),1),a("td",Qc,[a("a",{class:"small",href:`/problem/${D.t}/${encodeURIComponent(m.value.s)}`},p(u(o)("cmp.detail_link")),9,td)])]))),128))])])])),[[nr,_.length]])),128)),m.value.gd.length?(k(),S("details",ed,[a("summary",sd,p(u(o)("cmp.good_units",{n:m.value.gd.length})),1),a("div",nd,[a("table",ld,[a("tr",null,[a("th",id,p(u(o)("ui.unit")),1),a("th",null,p(u(o)("cmp.why")),1)]),(k(!0),S(ot,null,$t(m.value.gd,_=>(k(),S("tr",{key:_.t},[a("td",null,[a("b",null,p(u(qt)(_.t)),1)]),a("td",ad,p(_.why),1)]))),128))])])])):gt("",!0),!m.value.al.length&&!m.value.un.length&&!m.value.gd.length?(k(),S("div",od,[a("p",rd,p(u(o)("cmp.none")),1)])):gt("",!0)])):(k(),S(ot,{key:1},[t.d.sysmx_pending?(k(),S("section",cd,[a("div",dd,[a("b",null,p(u(o)("cmp.grading_pending")),1),ut(" "+p(u(o)("cmp.grading_pending_why",{span:t.d.sysmx_span||""})),1)])])):gt("",!0),a("section",null,[a("div",ud,p(u(o)("cmp.by_system")),1),a("div",pd,[a("div",hd,[(k(!0),S(ot,null,$t(i.value,_=>(k(),S("div",{key:_.s,class:"sysc",role:"button",tabindex:"0","data-sys":u(Ns)(_.s),style:It(`cursor:pointer;border-left:3px solid ${_.col}`)},[a("div",md,[a("b",null,p(u(xe)(_.s)),1)]),a("div",vd,[(k(!0),S(ot,null,$t(_.segs,w=>(k(),S("i",{key:w.col,style:It(`width:${w.w}%;background:var(--${w.col})`)},null,4))),128))]),a("div",{class:"small muted",innerHTML:_.line},null,8,_d)],12,fd))),128))]),a("p",gd,p(u(o)("cmp.cards_note")),1)])]),t.d.rel&&t.d.rel.err?(k(),S("div",bd,[a("p",yd,p(u(o)("flt.block_err",{k:"rel",e:t.d.rel.err})),1)])):n.value?(k(),S(ot,{key:2},[a("div",$d,p(u(o)("cmp.rel_eyebrow",{win:n.value.窗})),1),a("div",xd,[a("h3",null,[ut(p(u(o)("cmp.rel_head"))+" ",1),a("span",wd,p(u(o)("cmp.rel_meta",{t:n.value.总停机h,a:n.value.设备类停机h,b:n.value.外部类停机h})),1)]),a("p",kd,p(u(o)("cmp.rel_note",{h:r.value==null?"":" "+u(Ct)(r.value)+"h"})),1),a("div",Md,[a("table",null,[a("tr",null,[a("th",null,p(u(o)("cmp.rel_part")),1),a("th",null,p(u(o)("cmp.rel_h")),1),a("th",Sd,p(u(o)("cmp.rel_ev")),1),a("th",Td,p(u(o)("cmp.rel_mtbo")),1),a("th",Ed,p(u(o)("cmp.rel_mdt")),1),a("th",Cd,p(u(o)("cmp.rel_units")),1),a("th",null,p(u(o)("cmp.rel_fm")),1)]),(k(!0),S(ot,null,$t(d.value,_=>(k(),S("tr",{key:_.r.部件},[a("td",null,[a("b",null,p(u(vs)(_.r.部件)),1),v[0]||(v[0]=ut(" ",-1)),_.r.外部?(k(),S("span",Fd,p(u(o)("cmp.external")),1)):gt("",!0)]),a("td",null,[a("i",{class:"bar",style:It(`width:${Math.round(_.r.停机时长h/_.maxH*72)}px;background:${_.sev}`)},null,4),a("span",Ad,p(_.r.停机时长h)+"h · "+p((_.r.占停机*100).toFixed(1))+"%",1)]),a("td",Od,p(_.r.事件数),1),a("td",qd,p(_.r.外部?"—":_.r.MTBF_h||"—"),1),a("td",Ld,p(_.r.MDT_h),1),a("td",Dd,p(_.r.影响台数),1),a("td",jd,p(_.r.典型失效模式||"—"),1)]))),128))])]),a("p",Pd,p(n.value.口径),1)])],64)):gt("",!0),t.d.fus&&!t.d.fus.err?(k(),S("div",Hd,[a("p",Rd,[ut(p(u(o)("cmp.fusion_moved"))+" ",1),a("a",Id,[a("b",null,p(u(o)("tab.vibration")),1)]),ut(" "+p(u(o)("cmp.fusion_n",{n:(t.d.fus.表||[]).length})),1)])])):gt("",!0),a("div",Nd,p(u(o)("cmp.cross_eyebrow")),1),a("div",Bd,[a("h3",null,p(u(o)("cmp.watch_head",{n:(t.d.watch||[]).length})),1),a("div",Wd,[a("table",null,[a("tr",null,[a("th",null,p(u(o)("ui.unit")),1),a("th",Kd,p(u(o)("cmp.n_sys")),1),a("th",null,p(u(o)("cmp.hit_sys")),1),a("th",null,p(u(o)("cmp.basis")),1)]),(k(!0),S(ot,null,$t(t.d.watch||[],_=>(k(),S("tr",{key:_.t},[a("td",null,[a("a",{href:`/turbine/${_.t}`},[a("b",null,p(u(qt)(_.t)),1)],8,Ud)]),a("td",Vd,p(_.n),1),a("td",{class:"small",innerHTML:c(_)},null,8,Gd),a("td",zd,p(_.why),1)]))),128))])])])],64))}}),Jd=["innerHTML"],Jt=Pt({__name:"LegacyChart",props:{html:{}},setup(t){return(e,s)=>(k(),S("div",{class:"legacy-chart",innerHTML:t.html},null,8,Jd))}}),Xd=typeof window<"u"?window:globalThis;Xd.__charts=function(t){const{t:e,fmt:s,esc:n,dv:l,EN:i}=t,c=/[㐀-鿿]/,r=C=>i&&c.test(String(C??"")),d=C=>(C=t.displayText?t.displayText(C):C==null?"":String(C),r(C)&&t.verb&&t.verb(),C),m=C=>{const Y=d(C);return`<title${r(Y)?' class="verbatim"':""}>${n(Y)}</title>`},f=(C,Y,J)=>`<svg class="dt" viewBox="0 0 ${C} ${Y}" style="width:${C}px;max-width:100%;height:auto" role="img">${J}</svg>`,v=(C,Y,J,L={})=>`<text x="${(+C).toFixed(1)}" y="${(+Y).toFixed(1)}" font-size="${L.fs||9}" fill="${L.fill||"var(--muted)"}"${L.anchor?` text-anchor="${L.anchor}"`:""}${L.op?` opacity="${L.op}"`:""}${L.w?` font-weight="${L.w}"`:""}${L.tr?` transform="${L.tr}"`:""}${L.cls?` class="${L.cls}"`:""}>${J}</text>`,_=(C,Y,J,L={})=>{const K=d(J);return v(C,Y,n(K),r(K)?Object.assign({},L,{cls:"verbatim"}):L)},w={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},D=C=>w[C]?e(w[C]):d(C);function W(C){const Y=(C||[]).filter(x=>x&&x.n>0&&x.med>0);if(Y.length<3)return`<p class="small muted">${e("ch.quad.few")}</p>`;const J=720,L=330,K=58,N=16,F=44,j=16,U=x=>Math.log10(x),R=Y.map(x=>U(x.n)),V=Y.map(x=>U(x.med)),tt=Math.min(...R)-.15,nt=Math.max(...R)+.15,X=Math.min(...V)-.15,dt=Math.max(...V)+.15,vt=x=>K+(U(x)-tt)/(nt-tt)*(J-K-N),at=x=>L-F-(U(x)-X)/(dt-X)*(L-j-F),bt=Y.map(x=>x.n).sort((x,$)=>x-$),_t=bt[Math.floor(bt.length/2)],lt=vt(_t),Q=at(600),h=Math.max(...Y.map(x=>x.nt)),g=Y.map(x=>{const $=3+Math.sqrt(x.nt/h)*7,Z=x.n>=_t&&x.med>=600,I=Z?"var(--critical)":"var(--accent)";return`<circle cx="${vt(x.n).toFixed(1)}" cy="${at(x.med).toFixed(1)}" r="${$.toFixed(1)}" fill="${I}" fill-opacity=".5" stroke="${I}" stroke-width="1">${m(`${x.code} ${d(x.k)}
- `+e("ch.quad.tip",{n:x.n,med:x.med,h:x.h,nt:x.nt}))}</circle>`}).join(""),b=Y.filter(x=>x.n>=_t||x.med>=600).slice(0,8).map(x=>v(vt(x.n)+9,at(x.med)+3,n(x.code))).join(""),y=(x,$,Z,I)=>v(x,$,Z,{fs:10,op:.85})+v(x,$+12,I,{fs:8.5,op:.6}),M=x=>x>=3600?x/3600+"h":x>=60?x/60+"min":x+"s",E=[10,60,600,3600,36e3].filter(x=>U(x)>=X&&U(x)<=dt).map(x=>`<line x1="${K}" y1="${at(x).toFixed(1)}" x2="${J-N}" y2="${at(x).toFixed(1)}" stroke="var(--line)" stroke-opacity=".4"/>`+v(K-6,at(x)+3,M(x),{anchor:"end"})).join(""),A=[1,10,100,1e3,1e4].filter(x=>U(x)>=tt&&U(x)<=nt).map(x=>v(vt(x),L-F+14,x,{anchor:"middle"})).join(""),O=j+(L-F-j)/2;return f(J,L,`${E}${A}
- <line x1="${lt.toFixed(1)}" y1="${j}" x2="${lt.toFixed(1)}" y2="${L-F}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
- <line x1="${K}" y1="${Q.toFixed(1)}" x2="${J-N}" y2="${Q.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
- ${y(K+6,j+12,e("ch.quad.q1"),e("ch.quad.q1s"))}${y(J-N-130,j+12,e("ch.quad.q2"),e("ch.quad.q2s"))}
- ${y(K+6,L-F-18,e("ch.quad.q3"),e("ch.quad.q3s"))}${y(J-N-130,L-F-18,e("ch.quad.q4"),e("ch.quad.q4s"))}
- ${g}${b}
- ${v(K+(J-N-K)/2,L-6,e("ch.quad.xlab"),{fs:9.5,anchor:"middle"})}
- ${v(14,O,e("ch.quad.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${O.toFixed(1)})`})}`)}function z(C){const Y=C.months||[],J=C.vals||[],L=C.cov||Y.map(()=>1),K=C.per_day||[],N=720,F=250,j=48,U=14,R=52,V=18,tt=Y.length||1,nt=Math.max(...K.filter(_t=>_t!=null),1),X=(N-j-U)/tt;let dt="",vt="";Y.forEach((_t,lt)=>{const Q=K[lt],h=L[lt]<.5;if(Q==null)return;const g=Q/nt*(F-V-R),b=j+lt*X+X*.16,y=F-R-g,M=b+X*.34;dt+=`<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:_t,v:Q,n:J[lt],cov:(L[lt]*100).toFixed(0)})}</title></rect>`,vt+=v(M,y-4,Q,{anchor:"middle"})+v(M,F-R+13,e("ch.rate.month",{m:_t.slice(5)}),{anchor:"middle"})+v(M,F-R+25,e("ch.rate.n",{n:J[lt]}),{fs:8,op:.65,anchor:"middle"})+(h?v(M,F-R+37,e("ch.rate.days",{d:Math.round(L[lt]*30)}),{fs:8,fill:"var(--warning)",anchor:"middle"}):"")});const at=[0,.5,1].map(_t=>v(j-6,F-R-_t*(F-V-R)+3,Math.round(nt*_t),{anchor:"end"})).join(""),bt=V+(F-R-V)/2;return f(N,F,`<line x1="${j}" y1="${F-R}" x2="${N-U}" y2="${F-R}" stroke="var(--line)"/><line x1="${j}" y1="${V}" x2="${j}" y2="${F-R}" stroke="var(--line)"/>
- ${dt}${vt}${at}${v(14,bt,e("ch.rate.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${bt.toFixed(1)})`})}`)}function it(C){if(!C||!C.theo)return"";const Y=720,J=300,L=8,K=8,N=30,F=64,j=(C.items||[]).filter(at=>at.loss>0),U=j.length+2,R=(Y-L-K)/U,V=(J-N-F)/C.theo;let tt=C.theo,nt="",X=0;const dt=(at,bt,_t,lt,Q)=>`<rect x="${(L+at*R+R*.14).toFixed(1)}" y="${bt.toFixed(1)}" width="${(R*.72).toFixed(1)}" height="${Math.max(_t,1.2).toFixed(1)}" rx="2" fill="${lt}" fill-opacity="${Q}"/>`,vt=(at,bt,_t,lt,Q)=>v(L+at*R+R*.5,bt-6,lt,{fs:10,fill:Q||"var(--ink)",anchor:"middle",w:600})+v(L+at*R+R*.5,J-F+14,_t,{fs:8.5,anchor:"middle"});return nt+=dt(0,J-F-C.theo*V,C.theo*V,"var(--accent)",.45)+vt(0,J-F-C.theo*V,e("ch.wf.theo"),s(C.theo)),j.forEach(at=>{X++;const bt=J-F-tt*V,_t=at.loss*V;tt-=at.loss;const lt=D(at.k);nt+=dt(X,bt,_t,"var(--critical)",.55)+`<line x1="${(L+(X-1)*R+R*.86).toFixed(1)}" y1="${bt.toFixed(1)}" x2="${(L+X*R+R*.14).toFixed(1)}" y2="${bt.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="2 2" stroke-opacity=".6"/>`+vt(X,bt,n(lt.length>12?lt.slice(0,11)+"…":lt),"−"+s(at.loss),"var(--critical)")+m(e("ch.wf.tip",{nm:lt,loss:s(at.loss),pct:(at.loss/C.theo*100).toFixed(1),h:s(at.h)}))}),nt+=dt(U-1,J-F-C.act*V,C.act*V,"var(--good)",.6)+vt(U-1,J-F-C.act*V,e("ch.wf.act"),s(C.act),"var(--good)"),f(Y,J,`<line x1="${L}" y1="${J-F}" x2="${Y-K}" y2="${J-F}" stroke="var(--line)"/>${v(L,14,"MWh",{fs:9.5})}${nt}`)}function q(C,Y){const J=(C||[]).filter($=>$.MTBF_h&&$.MDT_h);if(J.length<3)return`<p class="small muted">${e("ch.ram.few")}</p>`;const L=720,K=340,N=56,F=112,j=48,U=16,R=$=>Math.log10($),V=J.map($=>R($.MTBF_h)),tt=J.map($=>$.MDT_h),nt=Math.min(...V)-.08,X=Math.max(...V)+.08,dt=0,vt=Math.max(...tt)*1.12,at=$=>N+(R($)-nt)/(X-nt)*(L-N-F),bt=$=>K-j-($-dt)/(vt-dt)*(K-U-j),_t=$=>{const Z=$.slice().sort((I,et)=>I-et);return Z[Math.floor(Z.length/2)]},lt=_t(J.map($=>$.MTBF_h)),Q=_t(tt),h=at(lt),g=bt(Q),b=Math.max(...J.map($=>$.停机时长h)),y=$=>d(Y?Y($.部件):$.部件),M=J.map($=>{const Z=4+Math.sqrt($.停机时长h/b)*13,I=$.外部,et=$.MTBF_h<lt&&$.MDT_h>=Q,rt=I?"var(--muted)":et?"var(--critical)":"var(--accent)";return`<circle cx="${at($.MTBF_h).toFixed(1)}" cy="${bt($.MDT_h).toFixed(1)}" r="${Z.toFixed(1)}" fill="${rt}" fill-opacity="${I?.3:.42}" stroke="${rt}" stroke-width="1.2" stroke-dasharray="${I?"3 2":""}">${m(e("ch.ram.tip",{p:y($),mtbf:$.MTBF_h,mdt:$.MDT_h,h:$.停机时长h,n:$.事件数,u:$.影响台数})+(I?e("ch.ram.tip_ext"):""))}</circle>`+_(at($.MTBF_h)+Z+4,bt($.MDT_h)+3.5,d(y($)).slice(0,i?14:7),{fs:9.5,fill:I?"var(--muted)":"currentColor"})}).join(""),E=($,Z,I,et,rt)=>v($,Z,et,{fs:10,anchor:I,op:.9})+v($,Z+12,rt,{fs:8.5,anchor:I,op:.62}),A=[1e3,2e3,5e3,1e4,2e4].filter($=>R($)>=nt&&R($)<=X).map($=>`<line x1="${at($).toFixed(1)}" y1="${U}" x2="${at($).toFixed(1)}" y2="${K-j}" stroke="var(--line)" stroke-opacity=".3"/>`+v(at($),K-j+14,$>=1e3?$/1e3+"k":$,{anchor:"middle"})).join(""),O=[0,5,10,15,20].filter($=>$<=vt).map($=>v(N-6,bt($)+3,$,{anchor:"end"})).join(""),x=U+(K-j-U)/2;return f(L,K,`${A}${O}<line x1="${N}" y1="${K-j}" x2="${L-F}" y2="${K-j}" stroke="var(--line)"/><line x1="${N}" y1="${U}" x2="${N}" y2="${K-j}" stroke="var(--line)"/>
- <line x1="${h.toFixed(1)}" y1="${U}" x2="${h.toFixed(1)}" y2="${K-j}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
- <line x1="${N}" y1="${g.toFixed(1)}" x2="${L-F}" y2="${g.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
- ${E(N+6,U+12,"start",e("ch.ram.q1"),e("ch.ram.q1s"))}${E(L-F-6,U+12,"end",e("ch.ram.q2"),e("ch.ram.q2s"))}
- ${E(N+6,K-j-16,"start",e("ch.ram.q3"),e("ch.ram.q3s"))}${E(L-F-6,K-j-16,"end",e("ch.ram.q4"),e("ch.ram.q4s"))}
- ${M}${v(N+(L-F-N)/2,K-8,e("ch.ram.xlab"),{fs:9.5,anchor:"middle"})}
- ${v(13,x,e("ch.ram.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 13 ${x.toFixed(1)})`})}
- <circle cx="${L-F+16}" cy="${U+40}" r="5" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>${v(L-F+26,U+44,e("ch.ram.equip"))}
- <circle cx="${L-F+16}" cy="${U+58}" r="5" fill="var(--muted)" fill-opacity=".3" stroke="var(--muted)" stroke-dasharray="3 2"/>${v(L-F+26,U+62,e("ch.ram.ext"))}
- ${v(L-F+6,U+84,e("ch.ram.area"),{fs:8.5})}${v(L-F+6,U+98,e("ch.ram.median"),{fs:8.5})}`)}function H(C,Y){const J=(C||[]).find(nt=>nt.部件==="无记录停机"),L=J?J.停机时长h:0,K=(C||[]).filter(nt=>nt.部件==="未归类").reduce((nt,X)=>nt+X.停机时长h,0),N=Y-L-K,F=720,j=54,U=(nt,X,dt,vt)=>`<rect x="${nt.toFixed(1)}" y="14" width="${Math.max(X,1).toFixed(1)}" height="22" rx="3" fill="${dt}" fill-opacity="${vt}"/>`,R=N/Y*F,V=K/Y*F,tt=L/Y*F;return f(F,j,`${U(0,R,"var(--accent)",.55)}${U(R,V,"var(--warning)",.5)}${U(R+V,tt,"var(--critical)",.5)}
- ${v(4,10,e("ch.attrib.ok",{h:Math.round(N),p:(N/Y*100).toFixed(0)}))}
- ${v(R+V+tt-2,10,e("ch.attrib.none",{h:Math.round(L),p:(L/Y*100).toFixed(0)}),{fill:"var(--critical)",anchor:"end"})}
- ${v(R+V/2,50,e("ch.attrib.uncls",{h:Math.round(K)}),{fill:"var(--warning)",anchor:"middle"})}`)}function T(C,Y,J){const L=(C||[]).filter(y=>y&&y.v>0);if(!L.length)return`<p class="small muted">${e("ch.pareto.none")}</p>`;const K=520,N=236,F=46,j=40,U=40,R=14,V=L.length,tt=L.reduce((y,M)=>y+M.v,0),nt=Math.max(...L.map(y=>y.v)),X=(K-F-j)/V,dt=y=>{y=d(y);const M=String(y).match(/^([0-9]+)/);return M?M[1]:String(y).slice(0,4)};let vt=0,at="",bt=[],_t="",lt=null;L.forEach((y,M)=>{const E=y.v/nt*(N-R-U),A=F+M*X+X*.14,O=N-U-E;at+=`<rect x="${A.toFixed(1)}" y="${O.toFixed(1)}" width="${(X*.72).toFixed(1)}" height="${E.toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity="${M<3?.85:.45}">${m(`${d(y.k)}: ${s(y.v)}${Y}`)}</rect>`,vt+=y.v;const x=vt/tt;lt===null&&x>=.8&&(lt=M+1);const $=F+M*X+X/2,Z=R+(1-x)*(N-R-U);bt.push(`${$.toFixed(1)},${Z.toFixed(1)}`),_t+=`<circle cx="${$.toFixed(1)}" cy="${Z.toFixed(1)}" r="2.4" fill="var(--warning)">${m(e("ch.pareto.cumtip",{k:d(y.k),p:(x*100).toFixed(0)}))}</circle>`});const Q=R+.2*(N-R-U),h=L.map((y,M)=>_(F+M*X+X/2,N-U+13,dt(y.k),{anchor:"middle"})).join(""),g=[0,.5,1].map(y=>v(F-5,N-U-y*(N-R-U)+3,s(Math.round(nt*y)),{anchor:"end"})).join("")+[0,.5,1].map(y=>v(K-j+5,R+(1-y)*(N-R-U)+3,Math.round(y*100)+"%",{fill:"var(--warning)"})).join(""),b=L.slice(0,3).map(y=>`<b>${r(dt(y.k))?`<span class="verbatim">${n(d(dt(y.k)))}</span>`:n(dt(y.k))}</b> ${l(d(y.k).replace(/^[0-9]+ */,"").slice(0,18))}`).join(" · ");return f(K,N,`<line x1="${F}" y1="${N-U}" x2="${K-j}" y2="${N-U}" stroke="var(--line)"/><line x1="${F}" y1="${R}" x2="${F}" y2="${N-U}" stroke="var(--line)"/>${at}
- <line x1="${F}" y1="${Q.toFixed(1)}" x2="${K-j}" y2="${Q.toFixed(1)}" stroke="var(--warning)" stroke-dasharray="4 3" stroke-opacity=".7"/>
- ${v(K-j-3,Q-4,e("ch.pareto.cum80"),{fill:"var(--warning)",anchor:"end"})}
- <polyline points="${bt.join(" ")}" fill="none" stroke="var(--warning)" stroke-width="1.5"/>${_t}${h}${g}
- ${v(F+(K-j-F)/2,N-3,e("ch.pareto.xlab"),{fs:8.5,anchor:"middle"})}`)+`<p class="small muted" style="margin-top:5px;line-height:1.6">${lt?`<b>${e("ch.pareto.key",{k:lt})}</b> (${e("ch.pareto.total",{n:V,tot:s(Math.round(tt)),unit:Y})})`:e("ch.pareto.total",{n:V,tot:s(Math.round(tt)),unit:Y})}<br>${e("ch.pareto.top3")}${b}${J?"<br>"+J:""}</p>`}function P(C){const Y=nt=>nt.indexOf("限电")>=0||nt.indexOf("调度")>=0?0:nt==="停机"?1:2,J=[e("ch.blame.n1"),e("ch.blame.n2"),e("ch.blame.n3")],L=[e("ch.blame.d1"),e("ch.blame.d2"),e("ch.blame.d3")],K=["var(--accent)","var(--critical)","var(--muted)"],N=[0,0,0];(C.items||[]).forEach(nt=>{N[Y(nt.k)]+=nt.loss});const F=N.reduce((nt,X)=>nt+X,0)||1,j=500,U=44;let R=0,V="";N.forEach((nt,X)=>{const dt=nt/F*j;V+=`<rect x="${R.toFixed(1)}" y="12" width="${Math.max(dt,1).toFixed(1)}" height="26" rx="3" fill="${K[X]}" fill-opacity=".55"><title>${J[X]}: ${s(Math.round(nt))} MWh</title></rect>`+(dt>46?v(R+dt/2,29,(nt/F*100).toFixed(0)+"%",{fs:10.5,fill:"currentColor",anchor:"middle",w:600}):""),R+=dt});const tt=N.map((nt,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:${K[X]};opacity:.55"></i><span style="font-weight:600">${J[X]}</span><span class="num">${s(Math.round(nt))} MWh</span><span class="small muted">${L[X]}</span></div>`).join("");return f(j,U,`${v(0,8,e("ch.blame.title",{tot:s(Math.round(F))}))}${V}`)+tt}function mt(C){const Y=C.months||C.x||[],J=Y.length;if(!J)return"";const L=620,K=250,N=52,F=34,j=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"],U=[];if((C.series||[]).forEach(Q=>Q.vals.forEach(h=>{h!=null&&h===h&&U.push(h)})),(C.thresholds||[]).forEach(Q=>{Q&&Q.v!=null&&U.push(Q.v)}),!U.length)return"";let R=C.zero===!1?Math.min(...U):Math.min(0,...U),V=Math.max(...U);R===V&&(R-=1,V+=1);const tt=(V-R)*.08;V+=tt,C.zero===!1&&(R-=tt);const nt=Q=>N+Q/Math.max(J-1,1)*(L-N-12),X=Q=>K-F-(Q-R)/(V-R)*(K-F-14),dt=(Q,h)=>{let g=[],b=[];return Q.forEach((y,M)=>{y==null||y!==y?(b.length&&g.push(b),b=[]):b.push(`${nt(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 vt=(C.series||[]).map((Q,h)=>dt(Q.vals,j[h%4])).join("");const at=Math.max(1,Math.ceil(J/8));let bt="";for(let Q=0;Q<J;Q+=at)bt+=v(nt(Q),K-10,String(Y[Q]).includes("-")?String(Y[Q]).slice(2,7):String(Y[Q]),{fs:10,anchor:"middle"});let _t="";for(let Q=0;Q<5;Q++){const h=R+(V-R)*Q/4;_t+=v(N-6,X(h)+3,h.toFixed(Math.abs(V)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${N}" x2="${L-12}" y1="${X(h).toFixed(1)}" y2="${X(h).toFixed(1)}" stroke="var(--line)"/>`}(C.thresholds||[]).forEach(Q=>{!Q||Q.v==null||(vt+=`<line x1="${N}" x2="${L-12}" y1="${X(Q.v).toFixed(1)}" y2="${X(Q.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(Q.label?_(N+6,X(Q.v)-4,Q.label,{fs:10}):""))}),C.xlab&&(vt+=_((N+L)/2,K-1,C.xlab,{fs:10,anchor:"middle"}));const lt='<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+(C.series||[]).map((Q,h)=>`<span><i style="background:${j[h%4]}"></i>${r(Q.name)?`<span class="verbatim">${n(d(Q.name))}</span>`:n(Q.name)}</span>`).join("")+"</div>";return f(L,K,`${_t}${vt}${bt}`)+lt}function st(C,Y){const F=(j,U,R)=>{const V=Object.entries(U.分组||{}).map(([lt,Q])=>({v:parseFloat(lt),n:Q,raw:lt}));if(!V.length)return"";const tt=Math.min(...V.map(lt=>lt.v)),nt=Math.max(...V.map(lt=>lt.v)),X=(nt-tt)*.22||1,dt=tt-X,vt=nt+X,at=lt=>54+(lt-dt)/(vt-dt)*412,bt=Math.max(...V.map(lt=>lt.n)),_t=U.中位;return v(48,j+3,R,{fs:9.5,anchor:"end"})+`<line x1="54" y1="${j}" x2="466" y2="${j}" stroke="var(--line)"/><line x1="${at(_t).toFixed(1)}" y1="${j-24}" x2="${at(_t).toFixed(1)}" y2="${j+18}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".55"/>`+v(at(_t),j+28,e("ch.cap.median",{v:_t}),{fs:8.5,anchor:"middle"})+V.map(lt=>{const Q=5+Math.sqrt(lt.n/bt)*9;return`<circle cx="${at(lt.v).toFixed(1)}" cy="${j}" r="${Q.toFixed(1)}" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>`+v(at(lt.v),j-Q-5,n(lt.raw),{anchor:"middle",fill:"currentColor"})+v(at(lt.v),j+3.5,lt.n,{anchor:"middle",fill:"var(--panel)",w:600})}).join("")};return f(500,158,`${F(44,C||{},e("ch.cap.p"))}${F(120,Y||{},e("ch.cap.w"))}${v(466,12,e("ch.cap.legend"),{fs:8.5,anchor:"end"})}`)}function G(C,Y){const J=C.离群||[],L=C.全场同档差中位||0,K=500,N=34+J.length*26,F=52,j=58,U=Math.max(L,...J.map(tt=>tt.平均偏))*1.18||1,R=tt=>F+tt/U*(K-F-j),V=J.map((tt,nt)=>{const X=30+nt*26;return v(F-6,X+10,n(Y(tt.t)),{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${F}" y="${X+1}" width="${(R(tt.平均偏)-F).toFixed(1)}" height="13" rx="2" fill="var(--warning)" fill-opacity=".62"/>`+v(R(tt.平均偏)+5,X+11,tt.平均偏+"°",{fill:"var(--warning)"})}).join("");return f(K,N,`<line x1="${R(L).toFixed(1)}" y1="18" x2="${R(L).toFixed(1)}" y2="${N-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${v(R(L),12,e("ch.beta.median",{v:L}),{fs:8.5,fill:"var(--good)"})}<line x1="${F}" y1="18" x2="${F}" y2="${N-4}" stroke="var(--line)"/>${V}`)}function ct(C){const Y=Object.entries(C||{}),J=500,L=26+Y.length*30,K=96,N=76,F=3.7,j=Math.max(F*1.35,...Y.map(([,V])=>V.极差/V.σ)),U=V=>K+V/j*(J-K-N),R=Y.map(([V,tt],nt)=>{const X=22+nt*30,dt=tt.极差/tt.σ,vt=dt>F;return _(K-6,X+11,V,{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${K}" y="${X+2}" width="${(U(dt)-K).toFixed(1)}" height="12" rx="2" fill="${vt?"var(--warning)":"var(--accent)"}" fill-opacity=".55"/>`+v(U(dt)+5,X+11,e("ch.ruler.row",{r:dt.toFixed(1),s:tt.σ}))}).join("");return f(J,L,`<line x1="${U(F).toFixed(1)}" y1="14" x2="${U(F).toFixed(1)}" y2="${L-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${v(U(F),10,e("ch.ruler.norm"),{fs:8.5,fill:"var(--good)",anchor:"middle"})}${R}`)}function Ut(C){const Y=C.kind;if(Y==="vib")return`<p class="small">${r(C.text||C.comp)?`<span class="verbatim">${n(d(C.text||C.comp))}</span>`:n(C.text||C.comp||"")}</p>`;if(Y==="vibbar"){const b=C.rows||[];if(!b.length)return"";const y=A=>{const O=Math.abs(A);return O>=100?A.toFixed(0):O>=10?A.toFixed(1):O>=1?A.toFixed(2):O>=.01?A.toFixed(3):Number(A).toExponential(1)},M={};b.forEach(A=>{(M[A.指标]=M[A.指标]||[]).push(A)});let E=`<p class="small muted">${e("fig.vibbar_note")}</p>`;for(const[A,O]of Object.entries(M))E+=`<div class="tblwrap" style="margin-top:8px"><b class="small muted">${l(A)}</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>`+O.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 E}const J=C.months||C.x||[],L=J.length;if(!L)return"";const K=620,N=250,F=52,j=34,U=14,R=[];if(Y==="band"?[C.self,C.med,C.q1,C.q3].forEach(b=>(b||[]).forEach(y=>{y!=null&&y===y&&R.push(y)})):Y==="bars"?(R.push(0),(C.vals||[]).forEach(b=>{b!=null&&b===b&&R.push(b)})):Y==="xy"?[C.self,C.med].forEach(b=>(b||[]).forEach(y=>{y!=null&&y===y&&R.push(y)})):(C.series||[]).forEach(b=>(b.vals||[]).forEach(y=>{y!=null&&y===y&&R.push(y)})),(C.thresholds||[]).forEach(b=>{b&&b.v!=null&&R.push(b.v)}),!R.length)return"";let V=Math.min(...R),tt=Math.max(...R);V===tt&&(V-=1,tt+=1);const nt=(tt-V)*.08;V-=nt,tt+=nt;const X=b=>F+b/Math.max(L-1,1)*(K-F-12),dt=b=>N-j-(b-V)/(tt-V)*(N-j-U),vt=(b,y,M)=>{let E=[],A=[];return(b||[]).forEach((O,x)=>{O==null||O!==O?(A.length&&E.push(A),A=[]):A.push(`${X(x).toFixed(1)},${dt(O).toFixed(1)}`)}),A.length&&E.push(A),E.map(O=>`<polyline points="${O.join(" ")}" fill="none" stroke="${y}" stroke-width="${M||1.8}"/>`).join("")};let at="";if(Y==="band"&&C.q1&&C.q3){const b=[],y=[];C.q3.forEach((M,E)=>{M!=null&&b.push(`${X(E).toFixed(1)},${dt(M).toFixed(1)}`)});for(let M=C.q1.length-1;M>=0;M--)C.q1[M]!=null&&y.push(`${X(M).toFixed(1)},${dt(C.q1[M]).toFixed(1)}`);b.length&&y.length&&(at+=`<polygon points="${b.join(" ")} ${y.join(" ")}" fill="var(--unknown)" fill-opacity=".18"/>`)}if(Y==="bars"){const b=Math.max(3,(K-F-20)/L*.6),y=dt(Math.max(V,0));at+=(C.vals||[]).map((M,E)=>M==null||M!==M?"":`<rect x="${(X(E)-b/2).toFixed(1)}" y="${dt(M).toFixed(1)}" width="${b.toFixed(1)}" height="${Math.max(y-dt(M),.8).toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity=".75"/>`).join("")}C.med&&(at+=vt(C.med,"var(--muted)",1.7)),C.self&&(at+=vt(C.self,"var(--critical)",2.1)+(C.self||[]).map((b,y)=>b==null||b!==b?"":`<circle cx="${X(y).toFixed(1)}" cy="${dt(b).toFixed(1)}" r="2.4" fill="var(--critical)"/>`).join(""));const bt=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"];(C.series||[]).forEach((b,y)=>{at+=vt(b.vals,bt[y%4])}),(C.thresholds||[]).forEach(b=>{b==null||b.v==null||(at+=`<line x1="${F}" x2="${K-12}" y1="${dt(b.v).toFixed(1)}" y2="${dt(b.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(b.label?_(F+6,dt(b.v)-4,b.label,{fs:10}):""))});const _t=Math.max(1,Math.ceil(L/8));let lt="";for(let b=0;b<L;b+=_t)lt+=v(X(b),N-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=V+(tt-V)*b/4;Q+=v(F-6,dt(y)+3,y.toFixed(Math.abs(tt)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${F}" x2="${K-12}" y1="${dt(y).toFixed(1)}" y2="${dt(y).toFixed(1)}" stroke="var(--line)"/>`}const h=Y==="band"?v(K-190,12,e("fig.this_unit"),{fill:"var(--critical)",fs:10})+v(K-110,12,e("fig.fleet_median"),{fs:10})+v(K-40,12,e("fig.quartile"),{fs:10}):(C.series||[]).length&&(C.series||[]).length<=2?C.series.map((b,y)=>v(K-12-(C.series.length-1-y)*118,12,"— "+n(d(b.name)),{fill:bt[y%4],fs:10,anchor:"end"})).join(""):"",g=(C.series||[]).length>2?'<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+C.series.map((b,y)=>`<span><i style="background:${bt[y%4]}"></i>${r(b.name)?`<span class="verbatim">${n(d(b.name))}</span>`:n(b.name)}</span>`).join("")+"</div>":"";return f(K,N,`${Q}${at}${lt}${h}`)+g}return{quadChart:W,rateChart:z,waterfall:it,ramChart:q,attribBar:H,paretoChart:T,blameBar:P,lossName:D,multiline:mt,capAxis:st,betaBar:G,rulerBar:ct,fig:Ut}};const Zd=[[/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,"主要异常位于"]],ft=t=>String(t??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),Xi=t=>String(t??""),xt=t=>ft(t),Qd={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},tu={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"},Yn=t=>Qd[String(t)]||tu[String(t)],Zi={bad:"var(--critical)",warn:"var(--warning)",unk:"var(--unknown)",ok:"var(--good)",ex:"var(--excellent)"},Qi={优秀:"var(--excellent)",良好:"var(--good)",报警:"var(--warning)",危险:"var(--critical)",不可判:"var(--unknown)",监测不可用:"var(--unknown)",无监测:"var(--unknown)"},ta={bad:"var(--critical)",warn:"var(--warning)",note:"var(--muted)",ok:"var(--good)",unlisted:"var(--muted)",stale:"var(--muted)",meta:"var(--muted)"},eu={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},Jn=t=>"st."+(t==="ex"?"excellent":t),Ee=t=>{const e=Yn(t);return e?o(Jn(e)):xt(t)},mn=t=>{const e=eu[String(t)],s="tier."+e;return e?o(s):String(t)==="—"?"—":xt(t)},ea=(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 Zd)e=e.replace(s,n);return e},vn=t=>Ie(t),su=(t,e)=>{if(!t||t.filter(v=>v!=null).length<3)return"";const s=t.filter(v=>v!=null),n=Math.min(...s),l=Math.max(...s),i=l-n||1,c=84,r=22,d=t.length;let m="",f=null;return t.forEach((v,_)=>{if(v==null)return;const w=_/(d-1)*c,D=r-2-(v-n)/i*(r-4);m+=(m?"L":"M")+w.toFixed(1)+" "+D.toFixed(1),f=[w,D]}),`<svg width="${c}" height="${r}" style="vertical-align:middle;margin-left:6px"><path d="${m}" fill="none" stroke="${e}" stroke-width="1.2" opacity=".75"/><circle cx="${f[0]}" cy="${f[1]}" r="2.4" fill="${e}"/></svg>`},nu={齿轮箱:"#8A6D3B",发电机:"#4A6FA5",主轴承:"#2E7D6B",变桨叶片:"#4A6FA5",偏航:"#2E7D6B",测风:"#7C5295",其他:"#5A6470"},lu=(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="${ft(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="${ft(xe(i.k))} ${i.n}" style="width:${(i.n/e*100).toFixed(1)}%;background:${nu[i.k]||"#5A6470"}"></i>`).join("")}</div><div class="small muted" style="margin-top:3px">${(t||[]).slice(0,2).map(i=>xe(i.k)+" "+i.n).join(" · ")}</div>`};function iu(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:${Zi[_]}"></i>${o(Jn(_))}</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>${mn(_)}</span>`).join("")}</div><div>${o("fus.legend_note")}</div></div>`;const n=_=>{const w=String(_||""),D=w.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 D?D[0].startsWith("至")?o("win.through",{date:D[0].replace(/^至\s*/,"")}):D[0]:w.slice(0,14)},l=(_,w,D)=>`<th title="${ft(w||"")}${D||""}"><div>${_}</div><div class="small muted" style="font-weight:400">${xt(n(w))}${D||""}</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)),d=Math.max(1,...c.map(_=>(_.工单||{}).n||0)),m=t.色标||{},f=_=>{if(_.ostate&&_.ostate!=="不可判")return Ee(_.ostate);const w=String(_.note||"");return/数据不足|不可判|nsufficient/.test(w)?o("fus.short.nodata"):/未评估|ot assessed/.test(w)?o("fus.short.uneval"):/无样|未取样|o sample/.test(w)?o("fus.short.nosample"):/样龄|stale/.test(w)?o("fus.short.stale"):{ok:o("fus.short.normal"),unlisted:o("fus.short.unlisted"),stale:o("fus.short.stale")}[_.level]||"—"},v=_=>{const w=_||{},D=Qi[w.ostate]||m[w.wlevel]||ta[w.level]||"var(--muted)",W=Ie(w.note),z=["bad","warn","note"].includes(w.level),it=ft(W)+o("fus.tip_state",{s:Ee(w.ostate||"?")});if(!z)return`<td class="small" title="${it}" style="border-left:3px solid ${D};color:var(--muted)">${f(w)}</td>`;const q=W.split(/[::]/),H=(q.length>1?q.slice(1).join(":"):W).trim(),T=/^[ ]*(评估报告|两口径差异|⚠|ssessment)/.test(H)||H.length>16?"":H,P=T?xt(T):w.ostate&&w.ostate!=="不可判"?"":f(w),mt=w.wlevel&&w.wlevel!=="—"&&w.wlevel!=="正常"&&w.ostate?ea(Ee(w.ostate),mn(w.wlevel),D):"";return`<td class="small" title="${it}${o("fus.tip_tier",{e:mn(w.wlevel||"?")})}" style="border-left:3px solid ${D};overflow:hidden"><div><div style="color:${D};font-weight:${["bad","warn"].includes(w.level)?600:400}">${P}</div>${mt}</div>${su(w.hist,w.level==="bad"?"var(--critical)":w.level==="warn"?"var(--warning)":"var(--muted)")}</td>`};return c.forEach(_=>{const w=_.报警||{n:0,fam:[]},D=_.工单||{n:0,acts:[]},W=w.rank&&w.rank<=5?"var(--warning)":"var(--line)",z=w.burst,it=ft((w.items||[]).map(q=>`${q.code} ${Ie(q.text)} — ${q.n} (${q.first}~${q.last})`).join(`
- `))+(z?`
- `+ft(o("fus.burst_tip",{c:z.code,p:(z.share*100).toFixed(0),m:z.med_s})):"");s+=`<tr><td><a href="/turbine/${_.turbine}"><b>${qt(_.turbine)}</b></a></td>${v(_.振动)}${v(_.温度)}${v(_.润滑)}${v(_.油液)}
- <td title="${it}" style="border-left:3px solid ${z?"var(--unknown)":W}"><b class="small num" style="color:${w.rank&&w.rank<=10?"var(--ink)":"var(--muted)"}">${o("fus.alarm_n",{n:w.n})}</b>${w.rank?`<span class="small muted">${o("fus.alarm_rank",{r:w.rank,t:w.tot})}</span>`:""}${z?`<div class="small" style="color:var(--unknown)">${o("fus.burst",{p:(z.share*100).toFixed(0),c:z.code})}</div>`:""}${w.rank&&w.rank<=10||z?lu(w.fam,w.n,r):""}</td>
- <td title="${ft((D.items||[]).map(q=>`${q.date} ${vn(q.name)} → ${vn(q.act)}${q.part?" "+vn(q.part):""}`).join(`
- `)||o("fus.wo_none"))}" style="min-width:110px">${D.n?`<b class="small">${o("fus.wo_n",{n:D.n})}</b>${D.last?`<span class="small muted"> · ${ft(D.last)}</span>`:""}<div style="height:7px;border-radius:3px;background:var(--muted);opacity:.5;margin-top:4px;width:${Math.max(6,Math.round(D.n/d*90))}px"></div><div class="small muted" style="margin-top:3px">${(D.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 Hl=(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>`},Fn=(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="${ft(Xi(t))}">${uu.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>${qt(i.turbine)}</b></td><td>${Fn(i.component+(i.title||""),"var(--good)")} <span class="small">${vs(i.component)}</span></td><td class="small">${xt(i.title)}</td><td>${ft(i.replace_date)}</td><td>${Hl(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>${qt(i.turbine)}</b></td><td>${Fn(i.component,"var(--warning)")} <span class="small">${vs(i.component)}</span></td><td>${Hl(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(Xi(n).slice(0,30))}</span>`;const l=6,i=104,c=i/2,r=Math.max(-1,Math.min(1,e/l)),d=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)",v=Math.abs(e)>l;return`<div title="${ft(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-d}" y="4" width="${Math.max(d,1.5)}" height="10" rx="2" fill="${f}" fill-opacity=".9"/>${v?`<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">${ft(t||"")}</div>`},ru=(t,e)=>{if(!t||!t.length)return`<span class="small" title="${ft(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="${ft(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 d=i(c),m=i(r);return`<rect x="${d.toFixed(1)}" y="4" width="${Math.max(m-d,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>`},cu=(t,e,s)=>`<div title="${ft(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">${ft(t||o("fus.oil_none"))}</span></div><div class="small muted">${t?o(e?"fus.oil_fresh":"fus.oil_stale"):"—"}</div>`,je=(t,e)=>{const s=Yn(t);return s?`<span class="chip ${s} ">${o(Jn(s))}</span>`:t?`<span class="chip">${ft(t)}</span>`:""};function du(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>${je("危险")}</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>${je("报警")}</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>${je("良好")}</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>${je("优秀")}</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>${je("不可判")}</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 d=ta[r.级]||"var(--accent)",m=Qi[r.设备状态]||"var(--muted)";c+=`<tr><td><a href="/turbine/${r.turbine}"><b>${qt(r.turbine)}</b></a></td><td style="min-width:200px">${Fn(r.部件,d)} <span class="small">${vs(r.部件)}</span></td>
- <td title="${ft(Ie(r.振动结论))}">${ea(Ee(r.设备状态||"—"),xt(r.振动结论),m)}</td><td style="min-width:130px">${ru(r.窗区间,r.claim_window)}</td>
- <td class="small" title="${ft(r.振动信号||"")}">${xt(Ie(r.振动信号))}</td><td style="min-width:158px">${ou(r.温度通道,r.温度dev,r.温度判,r.温度轴)}</td><td style="min-width:112px">${cu(r.油末样,r.油新鲜,r.油样轴)}</td></tr>`}),c+"</table></div></div>"}const uu=[["mbf",/主轴承[((]前|主轴承前|主轴承[++]|主轴承(?![((前后])/],["mba",/主轴承[((]后|主轴承后/],["ps",/行星|二级行星/],["ims",/中间轴|中速/],["hss",/高速轴|高速(?!.*发电)/],["gde",/发电机DE|发电机[((]|发电机(?!NDE)/],["gnde",/发电机NDE|NDE/]],ts=t=>Zi[Yn(t)]||null,Rl=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:Oe(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:xe(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(d=>`<tr><td>${ft(d.code)}</td><td class="small">${xt(Ie(d.text))}</td><td class="r">${d.条数}</td><td class="r">${d.台数}</td><td class="r">${d.时长h}</td></tr>`).join("")}</table></div>
- <p class="small">${o("fus.ev_top")}${Object.entries(c.top台||{}).map(([d,m])=>`<a href="/turbine/${d}">${qt(d)}</a>×${m}`).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(d=>`<tr><td>${qt(d.t)}</td><td class="small">${ft(d.on)}</td><td>${ft(d.code)}</td><td class="small">${xt(Ie(d.text))}</td><td class="r">${d.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(d=>`<tr><td>${qt(d.t)}</td><td class="small">${ft(d.date)}</td><td class="small">${xt(d.name)}</td><td class="small">${xt(d.act)}</td><td class="small">${xt(d.cause)}</td></tr>`).join("")}</table></div>`:s+=`<p class="small">${o("fus.ev_no_wo")}</p>`,s+="</div>"}return s}function fu(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:ft(t.date||"")})}</h3>
- ${t.时间范围?`<p class="small" style="margin:2px 0 6px">${o("fus.cms_window",{r:ft(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]=ts(c[1].trim()))}}),`<tr><td><b>${qt(n[0])}</b></td><td>${je(n[1])}</td><td title="${ft(n[2])}">${Rl(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)">${ft(n[4])}</b>`:ft(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>${qt(n.t)}</b></td><td title="${o("chain.mbf")} ${Ee(n.主轴承前)} · ${o("chain.mba")} ${Ee(n.主轴承后)} · ${o("chain.gb")} ${Ee(n.齿轮箱)} · ${o("chain.gen")} ${Ee(n.发电机)}">${Rl({mbf:ts(n.主轴承前),mba:ts(n.主轴承后),gb:ts(n.齿轮箱),gen:ts(n.发电机)})}</td><td>${je(n.综合)}</td><td class="small">${ft(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(qt).join(", ")||o("fus.none_word"),b:((t.diff||{}).only_vibration_package||(t.diff||{}).only_handoff||[]).map(qt).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 mu=["matrix","loop","units","events","cms"],vu=typeof window<"u"?window:globalThis,Il=vu.__charts,_u=Il?Il({t:o,fmt:Ct,esc:ft,dv:xt,EN:!1,displayText:t=>t==null?"":String(t),verb:()=>{}}):{};function Xt(t,...e){const s=_u[t];if(typeof s!="function")return"";try{return s(...e)}catch{return""}}const gu={key:0},bu={class:"panel"},yu={class:"small muted"},$u={key:1},xu={class:"kpis",style:{"margin-bottom":"12px"}},wu={key:0},ku={class:"grid2"},Mu={class:"panel span2"},Su={class:"small muted",style:{"font-weight":"400"}},Tu={class:"panel"},Eu={class:"small muted",style:{"margin-top":"6px"}},Cu={class:"panel"},Fu={class:"small muted",style:{"font-weight":"400"}},Au={class:"tblwrap"},Ou={class:"r",style:{width:"90px"}},qu={class:"small"},Lu={class:"num small"},Du={class:"r small"},ju={class:"small muted",style:{"margin-top":"6px"}},Pu=Pt({__name:"Energy",props:{d:{}},setup(t){const e=t,s=B(()=>(e.d?.control||{}).energy),n=B(()=>(e.d?.control||{}).states||[]),l={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},i=d=>l[d]?o(l[d]):d,c=B(()=>{const d=s.value||{};return[{v:Ct(d.theo),u:"MWh",l:o("en.kpi_theo"),k:""},{v:Ct(d.act),u:"MWh",l:o("en.kpi_act",{h:Ct(d.eflh)}),k:"ok"},{v:Ct(d.loss_pct,1),u:"%",l:o("en.kpi_loss",{v:Ct(d.loss)}),k:d.loss_pct>=10?"warn":""},{v:d.cap_ok?o("en.cap_pass"):o("en.cap_fail"),u:"",l:o("en.cap_note",{op:d.cap_ok?"<":"≥",cap:Ct(d.cap)}),k:d.cap_ok?"ok":"bad"}]}),r=B(()=>Math.max(1,...n.value.map(d=>d.pct)));return(d,m)=>s.value?(k(),S("section",$u,[a("div",xu,[(k(!0),S(ot,null,$t(c.value,(f,v)=>(k(),S("div",{key:v,class:Wt(["kpi",f.k])},[a("b",null,[ut(p(f.v),1),f.u?(k(),S("small",wu,p(f.u),1)):gt("",!0)]),a("span",null,p(f.l),1)],2))),128))]),a("div",ku,[a("div",Mu,[a("h3",null,[ut(p(u(o)("en.balance"))+" ",1),a("span",Su,p(u(o)("en.win",{win:u(Oe)(t.d.win)})),1)]),Ot(Jt,{html:u(Xt)("waterfall",s.value)},null,8,["html"])]),a("div",Tu,[a("h3",null,p(u(o)("en.blame")),1),Ot(Jt,{html:u(Xt)("blameBar",s.value)},null,8,["html"]),a("p",Eu,p(u(o)("en.blame_note",{n:u(Ct)(Math.round(((s.value.items||[]).find(f=>f.k==="停机")||{}).loss||0))})),1)]),a("div",Cu,[a("h3",null,[ut(p(u(o)("en.states"))+" ",1),a("span",Fu,p(u(o)("en.win",{win:u(Oe)(t.d.win)})),1)]),a("div",Au,[a("table",null,[a("tr",null,[a("th",null,p(u(o)("en.state")),1),a("th",null,p(u(o)("en.share")),1),a("th",Ou,p(u(o)("en.loss_mwh")),1)]),(k(!0),S(ot,null,$t(n.value,f=>(k(),S("tr",{key:f.k},[a("td",qu,p(i(f.k)),1),a("td",null,[a("i",{class:"bar",style:It(`width:${Math.round(f.pct/r.value*84)}px;background:${f.k.indexOf("停机")>=0&&f.k.indexOf("调度")<0?"var(--critical)":"var(--accent)"}`)},null,4),a("span",Lu,p(f.pct)+"% · "+p(u(Ct)(Math.round(f.h)))+"h",1)]),a("td",Du,p(u(Ct)(Math.round(f.loss))),1)]))),128))])]),a("p",ju,[ut(p(t.d.control.anchors||""),1),m[0]||(m[0]=a("br",null,null,-1)),ut(p(u(o)("en.states_note")),1)])])])])):(k(),S("section",gu,[a("div",bu,[a("p",yu,p(u(o)("ui.empty")),1)])]))}}),Hu={class:"eyebrow"},Ru={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},Iu={style:{color:"var(--warning)"}},Nu={class:"grid2"},Bu={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},Wu={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},Ku={class:"panel span2"},Uu={class:"small muted",style:{"margin-top":"6px"}},Vu={class:"panel"},Gu={class:"panel"},zu={class:"panel span2"},Yu={class:"small muted",style:{"margin-top":"6px"}},Ju={key:0,style:{color:"var(--warning)"}},Xu={class:"panel"},Zu={class:"tblwrap"},Qu={style:{width:"70px"}},tp={class:"r",style:{width:"80px"}},ep={class:"num small"},sp={class:"r small"},np={class:"small muted",style:{"margin-top":"6px"}},lp={key:0,class:"panel",style:{"border-left":"3px solid var(--critical)"}},ip={class:"small"},ap={key:1,class:"panel"},op={class:"small muted",style:{"font-weight":"400"}},rp={class:"small muted",style:{"margin-top":"6px"}},cp={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},dp={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},up={key:0,class:"panel span2"},pp={class:"small muted",style:{"margin-top":"6px"}},hp={style:{"margin-top":"12px"}},fp={class:"small muted",style:{"margin-top":"2px"}},mp={class:"panel"},vp={class:"small muted",style:{"margin-top":"4px"}},_p={class:"panel"},gp={class:"tblwrap"},bp={style:{width:"64px"}},yp={class:"r",style:{width:"56px"}},$p={class:"num small"},xp={class:"r small"},wp={class:"small muted",style:{"margin-top":"6px"}},kp=Pt({__name:"Fault",props:{d:{}},setup(t){const e=t,s=B(()=>e.d?.faults||{}),n=B(()=>s.value.partial||[]),l=B(()=>e.d?.m8&&!e.d.m8.err?e.d.m8.mtbf:null),i=B(()=>s.value.monthly||{months:[],vals:[]}),c=B(()=>n.value.length?(i.value.months||[]).indexOf(n.value[0]):-1),r=B(()=>{const H=n.value.length?o("flt.rate_partial",{m:n.value.join("/")}):o("flt.rate_full"),T=c.value>=0&&!!i.value.per_day;return H+(T?" "+o("flt.rate_example",{m:n.value[0],v:d.value}):"")}),d=B(()=>{const H=c.value;return H>=0&&i.value.per_day?i.value.per_day[H]:null}),m=B(()=>n.value.length?o("win.partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)}):""),f=B(()=>s.value.per_t||[]),v=B(()=>Math.max(1,...f.value.map(H=>H.v))),_=B(()=>l.value&&e.d?.m8?.seasonal?e.d.m8.seasonal:[]),w=B(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),D=B(()=>(e.d?.m8?.stop_pareto||[]).map(H=>({k:String(H.k).split(";")[0].slice(0,26),v:H.h}))),W=H=>vs(H),z=B(()=>({months:_.value[0]&&_.value[0].months||[],series:_.value.slice(0,4).map(H=>({name:String(H.name).slice(0,16),vals:H.vals})),xlab:o("flt.seasonal_x")})),it=B(()=>l.value?.台级top||[]),q=B(()=>Math.max(1,...it.value.map(H=>H.时长h)));return(H,T)=>(k(),S("section",null,[a("div",Hu,p(u(o)("flt.eyebrow")),1),a("div",Ru,[a("b",null,p(u(o)("win.banner",{win:u(Oe)(t.d.win)})),1),m.value?(k(),S(ot,{key:0},[T[0]||(T[0]=ut(" | ",-1)),a("span",Iu,p(m.value),1)],64)):gt("",!0)]),a("div",Nu,[a("div",Bu,[ut(p(u(o)("flt.alarm_face"))+" ",1),a("span",Wu,p(u(o)("flt.alarm_meta",{n:u(Ct)(s.value.total),c:s.value.n_codes,win:u(Oe)(t.d.win)})),1)]),a("div",Ku,[a("h3",null,p(u(o)("flt.rate")),1),Ot(Jt,{html:u(Xt)("rateChart",i.value)},null,8,["html"]),a("p",Uu,[a("b",null,p(u(o)("flt.rate_note")),1),ut(" — "+p(r.value),1)])]),a("div",Vu,[a("h3",null,p(u(o)("flt.pareto_n")),1),Ot(Jt,{html:u(Xt)("paretoChart",s.value.pareto_n||[],u(o)("unit.n"),u(o)("flt.pareto_n_note"))},null,8,["html"])]),a("div",Gu,[a("h3",null,p(u(o)("flt.pareto_d")),1),Ot(Jt,{html:u(Xt)("paretoChart",s.value.pareto_d||[]," h",u(o)("flt.pareto_d_note"))},null,8,["html"])]),a("div",zu,[a("h3",null,p(u(o)("flt.quad")),1),Ot(Jt,{html:u(Xt)("quadChart",s.value.quad||[])},null,8,["html"]),a("p",Yu,[ut(p(u(o)("flt.quad_note",{n:s.value.n_codes,m:(s.value.quad||[]).length}))+" ",1),n.value.length?(k(),S("span",Ju,p(u(o)("flt.quad_partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)})),1)):gt("",!0),ut(" "+p(u(o)("flt.quad_note2")),1)])]),a("div",Xu,[a("h3",null,p(u(o)("flt.per_t",{n:f.value.length})),1),a("div",Zu,[a("table",null,[a("tr",null,[a("th",Qu,p(u(o)("ui.unit")),1),a("th",null,p(u(o)("ui.count")),1),a("th",tp,p(u(o)("flt.per_t_share")),1)]),(k(!0),S(ot,null,$t(f.value,P=>(k(),S("tr",{key:P.k},[a("td",null,[a("b",null,p(u(qt)(P.k)),1)]),a("td",null,[a("i",{class:"bar",style:It(`width:${Math.round(P.v/v.value*90)}px;background:${P.v/v.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),a("span",ep,p(u(Ct)(P.v)),1)]),a("td",sp,p((P.v/s.value.total*100).toFixed(1))+"%",1)]))),128))])]),a("p",np,p(u(o)("flt.per_t_note",{n:u(Ct)(s.value.total)})),1)]),t.d.m8&&t.d.m8.err?(k(),S("div",lp,[a("p",ip,p(u(o)("flt.block_err",{k:"m8",e:t.d.m8.err})),1)])):gt("",!0),l.value&&_.value.length?(k(),S("div",ap,[a("h3",null,[ut(p(u(o)("flt.seasonal"))+" ",1),a("span",op,"("+p(u(o)("flt.seasonal_unit"))+")",1)]),Ot(Jt,{html:u(Xt)("multiline",z.value)},null,8,["html"]),a("p",rp,p(u(o)("flt.seasonal_note")),1)])):gt("",!0),l.value?(k(),S(ot,{key:2},[a("div",cp,[ut(p(u(o)("flt.stop_face"))+" ",1),a("span",dp,p(u(o)("flt.stop_meta",{h:u(Ct)(l.value.停机总时长h),n:u(Ct)(l.value.停机事件数)})),1)]),w.value?(k(),S("div",up,[a("h3",null,p(u(o)("flt.ram")),1),Ot(Jt,{html:u(Xt)("ramChart",w.value&&w.value.表||[],W)},null,8,["html"]),a("p",pp,p(u(o)("flt.ram_note",{a:w.value.设备类停机h,b:w.value.外部类停机h})),1),a("div",hp,[Ot(Jt,{html:u(Xt)("attribBar",w.value&&w.value.表||[],w.value&&w.value.总停机h||0)},null,8,["html"])]),a("p",fp,p(u(o)("flt.attrib_note",{h:((w.value.表||[]).find(P=>P.部件==="无记录停机")||{}).停机时长h||0})),1)])):gt("",!0),a("div",mp,[a("h3",null,p(u(o)("flt.stop_pareto")),1),Ot(Jt,{html:u(Xt)("paretoChart",D.value," h",u(o)("flt.stop_pareto_note"))},null,8,["html"]),a("p",vp,p(l.value.口径),1)]),a("div",_p,[a("h3",null,p(u(o)("flt.stop_units",{n:it.value.length})),1),a("div",gp,[a("table",null,[a("tr",null,[a("th",bp,p(u(o)("ui.unit")),1),a("th",null,p(u(o)("flt.stop_h")),1),a("th",yp,p(u(o)("flt.stop_n")),1)]),(k(!0),S(ot,null,$t(it.value,P=>(k(),S("tr",{key:P.t},[a("td",null,[a("b",null,p(u(qt)(P.t)),1)]),a("td",null,[a("i",{class:"bar",style:It(`width:${Math.round(P.时长h/q.value*90)}px;background:${P.时长h/q.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),a("span",$p,p(u(Ct)(P.时长h)),1),T[1]||(T[1]=ut("h",-1))]),a("td",xp,p(P.次),1)]))),128))])]),a("p",wp,p(u(o)("flt.stop_units_note")),1)])],64)):gt("",!0)])]))}});function Mp(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}}const Xn={mounted:t=>Mp(t)},Sp={class:"eyebrow"},Tp={style:{display:"flex",gap:"8px","margin-bottom":"14px","flex-wrap":"wrap"}},Ep=["data-fsub","onClick"],Cp=["innerHTML"],Fp=Pt({__name:"Vibration",props:{d:{},sub:{},cms:{}},emits:["sub"],setup(t,{emit:e}){const s=t,n=e,l=B(()=>s.sub||"matrix"),i=B(()=>s.d?.fus),c=B(()=>{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"?iu(r):l.value==="loop"?au(r):l.value==="units"?du(r,null):l.value==="events"?hu(r,s.d):l.value==="cms"?fu(s.cms??null):`<div class="panel mb"><p class="small muted">子视图「${o("fus.sub."+l.value)}」尚未迁移到 Vue(迁移中)。</p></div>`});return(r,d)=>(k(),S("section",null,[a("div",Sp,p(u(o)("fus.eyebrow")),1),a("div",Tp,[(k(!0),S(ot,null,$t(u(mu),m=>(k(),S("button",{key:m,class:Wt(["pill",{on:m===l.value}]),"data-fsub":m,onClick:f=>n("sub",m)},p(u(o)("fus.sub."+m)),11,Ep))),128))]),Ge(a("div",{class:"unwrap-host",innerHTML:c.value},null,8,Cp),[[u(Xn)]])]))}}),Ap={class:"eyebrow"},Op={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},qp={class:"muted",style:{"margin-top":"3px"}},Lp={key:0,class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},Dp={class:"small"},jp={class:"small muted",style:{"font-weight":"400"}},Pp={key:0,class:"chip"},Hp={style:{display:"flex","flex-wrap":"wrap",gap:"18px"}},Rp={style:{flex:"1 1 300px","min-width":"280px"}},Ip={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},Np={class:"small muted",style:{"margin-top":"4px"}},Bp={style:{flex:"1 1 300px","min-width":"280px"}},Wp={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},Kp=["innerHTML"],Up={class:"small",style:{"font-weight":"600",margin:"12px 0 4px"}},Vp={class:"small muted",style:{"margin-top":"4px"}},Gp={key:2,class:"panel mb"},zp={class:"small muted",style:{"font-weight":"400"}},Yp=["innerHTML"],Jp={class:"eyebrow"},Xp={key:3,class:"panel",style:{"border-left":"3px solid var(--critical)"}},Zp={class:"small"},Qp={key:4,class:"panel",style:{"border-left":"3px solid var(--accent)"}},th={class:"small"},eh={key:5,class:"panel"},sh={class:"small muted"},nh={key:6,class:"grid2"},lh={key:0,class:"small muted",style:{"font-weight":"400"}},ih={key:0,class:"small muted",style:{"margin-top":"6px"}},ah=Pt({__name:"Generation",props:{d:{},curves:{},pending:{type:Boolean}},setup(t){const e=t,s=B(()=>e.d?.m9&&!e.d.m9.err?e.d.m9:null),n=B(()=>e.d?.control||null),l=B(()=>e.curves||null),i=B(()=>(e.d?.sysmx_span||[]).join(" ~ ")||""),c=B(()=>s.value?.β_schedule?.离群||[]),r=B(()=>s.value?.β_schedule?.全场同档差中位||0),d=B(()=>{const v=n.value?.curve?.cands||[];return v.length?v.map(_=>`<a href="/turbine/${_.t}">${qt(_.t)}</a> ${_.dev}% ${xt(_.判)}`).join(" | "):o("gen.no_cands")}),m=B(()=>o("gen.beta_note",{units:c.value.map(v=>`<a href="/turbine/${v.t}">${qt(v.t)}</a>`).join(" / "),k:c.value.length?Math.round(Math.max(...c.value.map(v=>v.平均偏))/Math.max(r.value||0,.01)):"—",v:xt(s.value?.β_schedule?.判)})),f=B(()=>l.value?.figs||[]);return(v,_)=>(k(),S("section",null,[a("div",Ap,p(u(o)("gen.eyebrow")),1),a("div",Op,[a("b",null,p(u(o)("gen.fixed_win")),1),ut(" "+p(i.value?u(o)("gen.win_range",{span:i.value}):"")+" ",1),a("div",qp,p(u(o)("gen.win_why")),1)]),t.d.m9&&t.d.m9.err?(k(),S("div",Lp,[a("p",Dp,p(u(o)("flt.block_err",{k:"m9",e:u(xt)(t.d.m9.err)})),1)])):gt("",!0),s.value?(k(),S("div",{key:1,class:"panel mb",style:It(t.pending?"border-left:3px solid var(--accent)":"")},[a("h3",null,[ut(p(u(o)("gen.ctrl"))+" ",1),a("span",jp,p(u(o)("gen.ctrl_win",{win:u(xt)(s.value.窗)})),1),t.pending?(k(),S("span",Pp,p(u(o)("gen.recomputing_short")),1)):gt("",!0)]),a("div",Hp,[a("div",Rp,[a("div",Ip,p(u(o)("gen.cap")),1),Ot(Jt,{html:u(Xt)("capAxis",s.value&&s.value.P封顶,s.value&&s.value.ω封顶)},null,8,["html"]),a("p",Np,p(u(o)("gen.cap_note")),1)]),a("div",Bp,[a("div",Wp,p(u(o)("gen.beta")),1),Ot(Jt,{html:u(Xt)("betaBar",s.value&&s.value.β_schedule||{},u(qt))},null,8,["html"]),a("p",{class:"small muted",style:{"margin-top":"4px"},innerHTML:m.value},null,8,Kp),a("div",Up,p(u(o)("gen.ruler")),1),Ot(Jt,{html:u(Xt)("rulerBar",s.value&&s.value.尺子)},null,8,["html"]),a("p",Vp,p(u(o)("gen.ruler_note")),1)])])],4)):gt("",!0),n.value&&n.value.curve?(k(),S("div",Gp,[a("h3",null,[ut(p(u(o)("gen.cands"))+" ",1),a("span",zp,p(u(o)("gen.cands_meta",{note:u(xt)(n.value.curve.note||""),s:t.d.sigma||n.value.curve.sigma})),1)]),a("p",{class:"small",innerHTML:d.value},null,8,Yp)])):gt("",!0),a("div",Jp,p(u(o)("gen.figs")),1),l.value&&l.value.err?(k(),S("div",Xp,[a("p",Zp,p(u(ft)(l.value.err)),1)])):l.value&&l.value.building?(k(),S("div",Qp,[a("p",th,[a("b",null,p(u(o)("gen.recomputing")),1),ut(" "+p(u(xt)(l.value.curves?.note||"")),1)]),_[0]||(_[0]=a("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),_[1]||(_[1]=a("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))])):l.value?(k(),S("div",nh,[(k(!0),S(ot,null,$t(f.value,(w,D)=>(k(),S("div",{key:D,class:"panel"},[a("h3",null,[ut(p(u(xt)(w.title||"")),1),w.unit?(k(),S("span",lh,"("+p(u(xt)(w.unit))+")",1)):gt("",!0)]),Ot(Jt,{html:u(Xt)("multiline",Object.assign({zero:!1},w))},null,8,["html"]),w.note?(k(),S("p",ih,p(u(xt)(w.note)),1)):gt("",!0)]))),128))])):(k(),S("div",eh,[a("p",sh,p(u(o)("gen.loading")),1),_[2]||(_[2]=a("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),_[3]||(_[3]=a("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))]))]))}}),oh={class:"eyebrow"},rh={class:"small muted"},ch=["href"],dh=["innerHTML"],uh={class:"panel mb"},ph={class:"small muted"},hh=["innerHTML"],fh={style:{display:"flex",gap:"8px","flex-wrap":"wrap",margin:"10px 0","align-items":"center"}},mh=["placeholder","value"],vh={class:"small muted",for:"askm"},_h=["innerHTML"],gh=["innerHTML"],bh=["title"],yh={class:"muted"},$h={class:"btn",id:"askgo"},xh={id:"askout",class:"small"},wh=Pt({__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=St("equip"),i=St(""),c=St(""),r=St(""),d=B(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),m=B(()=>d.value?d.value.models||{}:null),f=B(()=>!!d.value?.offline||!!d.value?.LOCAL_AI_DOWN),v=B(()=>o("cat."+l.value)),_=B(()=>s.map(([P])=>`<button class="pill ${P===l.value?"on":""}" data-cat="${P}">${o("cat."+P)}</button>`).join("")),w=B(()=>[1,2,3].map(P=>`<div class="qitem" data-q="${ft(o("cat."+l.value+".q"+P))}">${o("cat."+l.value+".q"+P)}</div>`).join("")),D=(P,mt)=>o("mdl."+P+"."+mt),W=P=>(D(P,"nm")||P)+(n[P]?" · "+o("mdl."+n[P]):"")+(D(P,"t")?" · "+D(P,"t"):""),z=P=>n[P]?n[P]==="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>`,it=B(()=>{const P=m.value;if(P===null)return c.value;const mt=Object.keys(P);return!c.value||!mt.includes(c.value)?mt[0]||"":c.value}),q=B(()=>{const P=m.value;return P===null?'<option value="">…</option>':Object.keys(P).length?Object.keys(P).map(mt=>`<option value="${ft(mt)}" ${mt===it?"selected":""}>${ft(W(mt))}</option>`).join(""):`<option value="">${f.value?o("ask.local_down"):o("ask.no_models")}</option>`}),H=B(()=>`/?lang=zh&win=${encodeURIComponent(String(e.d?.win||""))}`),T=B(()=>it.value?z(it.value):"");return(P,mt)=>(k(),S("section",null,[a("div",oh,p(u(o)("dec.head")),1),a("p",rh,[ut(p(u(o)("dec.classic"))+" ",1),a("a",{href:H.value},p(u(o)("ui.open_classic")),9,ch)]),a("div",{style:{display:"flex",gap:"8px",margin:"10px 0 12px","flex-wrap":"wrap"},innerHTML:_.value},null,8,dh),a("div",uh,[a("h3",null,p(u(o)("ask.common_q",{cat:v.value})),1),a("p",ph,p(u(o)("cat."+l.value+".hint"))+p("。")+p(u(o)("ask.grounding")),1),Ge(a("div",{innerHTML:w.value,class:"unwrap-host"},null,8,hh),[[u(Xn)]]),a("div",fh,[a("input",{id:"askq",type:"text",placeholder:u(ft)(u(o)("ask.placeholder",{cat:v.value})),value:i.value,style:{flex:"1","min-width":"280px"}},null,8,mh),a("label",vh,p(u(o)("ask.model")),1),a("select",{id:"askm",innerHTML:q.value},null,8,_h),a("span",{id:"mdlnote",class:"small",innerHTML:T.value},null,8,gh),a("label",{class:"small",style:{cursor:"pointer","white-space":"nowrap"},title:u(ft)(u(o)("ask.xrev_title"))},[mt[0]||(mt[0]=a("input",{type:"checkbox",id:"askxrev"},null,-1)),ut(" "+p(u(o)("ask.xrev"))+" ",1),a("span",yh,p(u(o)("ask.xrev_note")),1)],8,bh),a("button",$h,p(u(o)("ask.go")),1)]),a("div",xh,p(r.value||u(o)("ask.idle")),1)])]))}}),kh={class:"eyebrow"},Mh={class:"panel mb"},Sh={class:"small muted",style:{"font-weight":"400"}},Th=["placeholder","value"],Eh={class:"btn","data-asst":"fault"},Ch={class:"small muted"},Fh=["innerHTML"],Ah={id:"asstOut_fault",style:{"margin-top":"10px"}},Oh={class:"panel mb"},qh={class:"small muted",style:{"font-weight":"400"}},Lh=["innerHTML"],Dh={class:"btn","data-asst":"prev"},jh={id:"asstOut_prev",style:{"margin-top":"10px"}},Ph={class:"panel mb"},Hh={class:"small muted",style:{"font-weight":"400"}},Rh=["innerHTML"],Ih={class:"btn","data-asst":"tree"},Nh={id:"asstOut_tree",style:{"margin-top":"10px"}},_n="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px",Bh=Pt({__name:"Assistant",setup(t){const e=["变桨","偏航","主轴承","齿轮箱","发电机","变流器","塔架与基础","主控与传感网","叶片与叶根"],s=["3225","3130","13902","10105","3224"],n=gs({fault:"",prev:"pitch",tree:"pitch",out:{fault:"",prev:"",tree:""}}),l=c=>e.map(r=>`<option value="${Ns(r)}" ${n[c]===Ns(r)?"selected":""}>${xe(r)}</option>`).join(""),i=B(()=>s.map(c=>`<a href="#" data-code="${c}">${c}</a>`).join(" · "));return(c,r)=>(k(),S("section",null,[a("div",kh,p(u(o)("asst.head"))+" — "+p(u(o)("asst.head_note")),1),a("div",Mh,[a("h3",null,[ut(p(u(o)("asst.corrective"))+" ",1),a("span",Sh,p(u(o)("asst.corrective_flow")),1)]),a("div",{style:_n},[a("input",{id:"asstIn_fault",placeholder:u(ft)(u(o)("asst.code_placeholder")),value:n.fault,style:{flex:"1 1 220px"}},null,8,Th),a("button",Eh,p(u(o)("ui.query")),1),a("span",Ch,[ut(p(u(o)("asst.common"))+" ",1),Ge(a("span",{class:"unwrap-host",innerHTML:i.value},null,8,Fh),[[u(Xn)]])])]),a("div",Ah,p(n.out.fault),1)]),a("div",Oh,[a("h3",null,[ut(p(u(o)("asst.preventive"))+" ",1),a("span",qh,p(u(o)("asst.preventive_flow")),1)]),a("div",{style:_n},[a("select",{id:"asstIn_prev",style:{flex:"1 1 200px"},innerHTML:l("prev")},null,8,Lh),a("button",Dh,p(u(o)("ui.query")),1)]),a("div",jh,p(n.out.prev),1)]),a("div",Ph,[a("h3",null,[ut(p(u(o)("asst.faulttree"))+" ",1),a("span",Hh,p(u(o)("asst.faulttree_flow")),1)]),a("div",{style:_n},[a("select",{id:"asstIn_tree",style:{flex:"1 1 200px"},innerHTML:l("tree")},null,8,Rh),a("button",Ih,p(u(o)("ui.query")),1)]),a("div",Nh,p(n.out.tree),1)])]))}}),Wh={class:"eyebrow"},Kh={key:0,class:"panel"},Uh={class:"small muted"},Vh={key:1,class:"panel"},Gh={class:"small",style:{color:"var(--critical)"}},zh={class:"panel mb"},Yh={class:"small muted"},Jh={class:"small muted"},Xh={class:"tblwrap"},Zh={style:{"margin-top":"10px"}},Qh={style:{width:"18%"}},tf={style:{width:"20%"}},ef={style:{width:"13%"}},sf={style:{width:"10%"}},nf={style:{width:"11%"}},lf={class:"small"},af={class:"small num"},of={key:0,class:"muted"},rf={class:"small muted"},cf={class:"small"},df={class:"small"},uf={class:"small"},pf={class:"muted"},hf={style:{"margin-top":"3px"}},ff={class:"muted",style:{"margin-top":"3px"}},mf=Pt({__name:"System",props:{apis:{}},setup(t){const e=t,s=r=>String(r??""),n=B(()=>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=B(()=>n.value?.rows||[]),c=B(()=>l.map(([r,d,m,f])=>({kn:d,kd:m,col:f,rs:i.value.filter(v=>r.includes(String(v.层)))})).filter(r=>r.rs.length));return(r,d)=>(k(),S("section",null,[a("div",Wh,p(u(o)("mt.eyebrow")),1),n.value?n.value.error?(k(),S("div",Vh,[a("p",Gh,p(u(xt)(n.value.error)),1)])):(k(),S(ot,{key:2},[a("div",zh,[a("h3",null,p(u(o)("mt.head",{n:i.value.length})),1),a("p",Yh,p(u(o)("mt.note")),1)]),(k(!0),S(ot,null,$t(c.value,m=>(k(),S("div",{key:m.kn,class:"panel mb",style:It(`border-left:3px solid ${m.col}`)},[a("h3",null,p(u(o)(m.kn))+" ("+p(m.rs.length)+")",1),a("p",Jh,p(u(o)(m.kd)),1),a("div",Xh,[a("table",Zh,[a("tr",null,[a("th",Qh,p(u(o)("mt.src")),1),a("th",tf,p(u(o)("mt.cov")),1),a("th",ef,p(u(o)("mt.last")),1),a("th",sf,p(u(o)("mt.freq")),1),a("th",nf,p(u(o)("mt.resp")),1),a("th",null,p(u(o)("mt.how")),1)]),(k(!0),S(ot,null,$t(m.rs,(f,v)=>(k(),S("tr",{key:v},[a("td",lf,[a("b",null,p(f.存在?"":"✗ ")+p(s(f.名)),1)]),a("td",af,[ut(p(s(f.覆盖)),1),f.条数?(k(),S("span",of,p(u(o)("mt.rows_n",{n:u(Ct)(f.条数)})),1)):gt("",!0)]),a("td",rf,p(u(ft)(f.末次更新||"—")),1),a("td",cf,p(s(f.频率)),1),a("td",df,p(s(f.责任)),1),a("td",uf,[a("div",pf,[ut(p(u(o)("mt.put"))+" ",1),a("code",null,p(s(f.位置)),1)]),a("div",hf,[ut(p(u(o)("mt.run"))+" ",1),a("code",null,p(s(f.摄入)),1)]),a("div",ff,p(s(f.说明)),1)])]))),128))])])],4))),128))],64)):(k(),S("div",Kh,[a("p",Uh,p(u(o)("mt.surveying")),1)]))]))}}),vf={class:"eyebrow"},_f={class:"panel mb noprint"},gf={style:{display:"flex",gap:"10px","align-items":"center","flex-wrap":"wrap","margin-bottom":"10px"}},bf={class:"small",style:{"font-weight":"600"}},yf=["data-preset"],$f={id:"rptaud"},xf=["selected"],wf=["selected"],kf={class:"btn quiet",id:"rptprint"},Mf={class:"btn quiet","data-export":"docx"},Sf={class:"btn quiet","data-export":"xlsx"},Tf={key:0,class:"small",style:{color:"var(--warning)","flex-basis":"100%"}},Ef={class:"small",style:{"font-weight":"600","margin-bottom":"7px"}},Cf={style:{"font-weight":"400",color:"var(--muted)"}},Ff=["innerHTML"],Af={id:"rpthint",class:"small muted",style:{"margin-top":"9px","padding-top":"8px","border-top":"1px solid var(--line)","min-height":"19px"}},Of={style:{"margin-top":"11px","padding-top":"10px","border-top":"1px solid var(--line)"}},qf={class:"small",style:{"font-weight":"600","margin-bottom":"6px"}},Lf=["innerHTML"],Df={style:{display:"flex",gap:"8px","align-items":"center","flex-wrap":"wrap"}},jf=["placeholder","value"],Pf=["innerHTML"],Hf=["disabled"],Rf={id:"rptout",class:"small muted",style:{"margin-top":"7px"}},If={key:0,class:"paper",style:{"text-align":"center",padding:"56px 40px"}},Nf={class:"small muted"},Bf={key:1,class:"paper"},Wf={class:"paper-hd"},Kf={class:"paper-ti"},Uf={class:"small muted",style:{"margin-top":"3px"}},Vf={class:"small muted",style:{"text-align":"right"}},Gf={key:0,class:"noprint",style:{display:"flex",gap:"3px","justify-content":"flex-end","margin-bottom":"-6px",position:"relative","z-index":"2"}},zf=["data-k","disabled"],Yf=["data-k","disabled"],Jf=["data-k"],Xf=["innerHTML"],Zf=["innerHTML"],Qf={class:"paper-ft"},tm=Pt({__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=gs({canvas:[],aud:"in",need:"",model:"",models:null,compose:null,narr:null,out:""}),d=B(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),m=B(()=>d.value?d.value.models||{}:r.models),f=B(()=>!!d.value?.offline),v=(st,G)=>o("mdl."+st+"."+G),_=st=>(v(st,"nm")||st)+(i[st]?" · "+o("mdl."+i[st]):"")+(v(st,"t")?" · "+v(st,"t"):""),w=st=>r.canvas.includes(st),D=B(()=>r.compose===!0&&!!m.value&&Object.keys(m.value).length>0),W=B(()=>{const st=m.value;return st===null?'<option value="">…</option>':Object.keys(st).length?Object.keys(st).map(G=>`<option value="${ft(G)}" ${G===H?"selected":""}>${ft(_(G))}</option>`).join(""):`<option value="">${f.value?o("ask.local_down"):o("ask.no_models")}</option>`}),z=B(()=>c.map(st=>`<div class="small muted" style="text-align:right;white-space:nowrap">${o("rpt.g."+st)}</div><div style="display:flex;gap:6px;flex-wrap:wrap">`+Object.keys(n).filter(G=>n[G]===st).map(G=>`<button class="pill ${w(G)?"on":""}" data-block="${G}" style="border-radius:7px;padding:5px 11px;font-size:12.5px;opacity:${w(G)?1:.8}">${l[G]} ${o("rpt.b."+G+".nm")}${w(G)?" ✓":""}</button>`).join("")+"</div>").join("")),it=B(()=>""),q=st=>"",H=B(()=>{const st=m.value;if(st===null)return r.model;const G=Object.keys(st);return!r.model||!G.includes(r.model)?G[0]||"":r.model}),T=B(()=>o("rpt.need_hint")+(H.value?i[H.value]==="local"?o("rpt.local_note"):`<span style="color:var(--warning)">${o("rpt.cloud_note")}</span>`:"")),P=B(()=>r.out?r.out:r.compose===!1?o("rpt.no_compose"):m.value&&!Object.keys(m.value).length?f.value?o("ask.local_down"):o("rpt.no_models"):""),mt=B(()=>(String(e.d?.fus?.数据时点||"").match(/\d{4}-\d{2}-\d{2}/)||[""])[0]);return(st,G)=>(k(),S("section",null,[a("div",vf,p(u(o)("rpt.eyebrow")),1),a("div",_f,[a("div",gf,[a("span",bf,p(u(o)("rpt.presets")),1),(k(!0),S(ot,null,$t(Object.keys(s),ct=>(k(),S("button",{key:ct,class:"pill","data-preset":ct},p(u(o)("rpt.preset."+ct)),9,yf))),128)),G[0]||(G[0]=a("span",{style:{flex:"1"}},null,-1)),a("select",$f,[a("option",{value:"in",selected:r.aud==="in"},p(u(o)("rpt.aud_in")),9,xf),a("option",{value:"up",selected:r.aud==="up"},p(u(o)("rpt.aud_up")),9,wf)]),a("button",kf,p(u(o)("rpt.print")),1),a("button",Mf,p(u(o)("rpt.export_docx")),1),a("button",Sf,p(u(o)("rpt.export_xlsx")),1),r.aud==="up"?(k(),S("span",Tf,p(u(o)("rpt.up_note")),1)):gt("",!0)]),a("div",Ef,[ut(p(u(o)("rpt.library"))+" ",1),a("span",Cf,p(u(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:z.value},null,8,Ff),a("div",Af,p(u(o)("rpt.hint_idle")),1),a("div",Of,[a("div",qf,[ut(p(u(o)("rpt.need_head"))+" ",1),a("span",{id:"rptmdlnote",style:{"font-weight":"400",color:"var(--muted)"},innerHTML:T.value},null,8,Lf)]),a("div",Df,[a("input",{id:"rptneed",placeholder:u(ft)(u(o)("rpt.need_ph")),value:r.need,style:{flex:"1 1 300px","min-width":"220px"}},null,8,jf),a("select",{id:"rptmdl",innerHTML:W.value},null,8,Pf),a("button",{class:"btn",id:"rptgo",disabled:!D.value},p(u(o)("rpt.compose")),9,Hf)]),a("div",Rf,p(P.value),1)])]),r.canvas.length?(k(),S("div",Bf,[a("div",Wf,[a("div",null,[a("div",Kf,p(u(o)("app.brand"))+" · "+p(u(o)("rpt.paper_title")),1),a("div",Uf,p(u(o)("rpt.paper_sub",{win:u(Oe)(t.d.win),n:(t.d.kpi||{}).全场||38}))+p(r.aud==="up"?" | "+u(o)("rpt.up_tag"):""),1)]),a("div",Vf,p(u(o)("rpt.chapters",{n:r.canvas.length})),1)]),(k(!0),S(ot,null,$t(r.canvas,(ct,Ut)=>(k(),S(ot,{key:ct},[n[ct]?(k(),S("div",Gf,[a("button",{class:"pill","data-mv":"up","data-k":ct,disabled:Ut===0,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"↑",8,zf),a("button",{class:"pill","data-mv":"down","data-k":ct,disabled:Ut===r.canvas.length-1,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"↓",8,Yf),a("button",{class:"pill","data-mv":"del","data-k":ct,style:{padding:"1px 8px","font-size":"11px",opacity:".7"}},"×",8,Jf)])):gt("",!0),n[ct]?(k(),S("div",{key:1,innerHTML:q()},null,8,Xf)):gt("",!0)],64))),128)),a("div",{innerHTML:it.value},null,8,Zf),a("div",Qf,[a("span",null,p(u(o)("rpt.foot_src"))+p(mt.value?" | "+u(o)("rpt.foot_asof",{d:mt.value}):""),1),a("span",null,p(u(o)("rpt.foot_trace"))+p(r.aud==="up"?" | "+u(o)("rpt.foot_deid"):""),1)])])):(k(),S("div",If,[a("div",Nf,p(u(o)("rpt.preview_empty")),1)]))]))}}),em={class:"kpis"},sm=["title"],nm=["innerHTML"],lm={key:1},im={key:0},am={class:"sechead"},om={class:"meta"},rm={class:"meta"},cm={key:0,class:"card mb",style:{"margin-bottom":"10px"}},dm={class:"small",style:{color:"var(--warning)"}},um={class:"small muted"},pm={class:"cards"},hm=["id"],fm={class:"head"},mm=["href"],vm={class:"sys"},_m={class:"evidence-detail"},gm={class:"why"},bm={class:"evid"},ym=["title"],$m={key:1,class:"rv"},xm={key:0,class:"caveat"},wm={class:"sechead"},km={class:"meta"},Mm={class:"legend"},Sm={class:"cells"},Tm=["data-u","title"],Em={key:1,class:"quiet",style:{padding:"10px"}},Cm={class:"nums"},Fm={class:"quiet"},Am={class:"sechead"},Om={class:"meta"},qm={class:"systems"},Lm={class:"t"},Dm=["href"],jm={class:"bar"},Pm={class:"cnt"},Hm=Pt({__name:"Overview",props:{d:{}},setup(t){const e=t,s=B(()=>e.d?.fus||{}),n=B(()=>e.d?.m8?.mtbf||{}),l=B(()=>e.d?.control||{}),i=B(()=>{const q={};for(const H of l.value.states||[])q[H.k]=H.loss;return q}),c=B(()=>{const q=l.value,H=o("kpi.loss",{win:Oe(e.d?.win)})+(i.value["停机(调度令)"]!=null?` · ${o("kpi.loss_dispatch",{n:Ct(i.value["停机(调度令)"])})}`:"");return[{v:Ct(q.avail,1),u:"%",l:o("kpi.avail",{win:Oe(e.d?.win)}),k:q.avail>=95?"ok":"warn",ti:""},{v:Ct(n.value.停机总时长h),u:"h",l:o("kpi.downtime",{n:Ct(n.value.停机事件数)}),k:"warn",ti:""},{v:Ct(n.value.MTBF_h),u:"h",l:o("kpi.mtbo"),k:"",ti:""},{v:Ct(i.value.停机),u:"MWh",l:H,k:"",ti:""},{v:Ct(i.value["限电·绑定"]),u:"MWh",l:o("kpi.curtail"),k:"",ti:""},{vRaw:`${Ct(e.d?.kpi?.报警台)} <small>/ ${Ct(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=B(()=>{const q={};for(const H of e.d?.watch||[])q[H.t]=H.why;return q}),d=B(()=>((s.value.链盘||{}).rows||[]).filter(q=>q.lvl==="bad"||q.lvl==="warn"));function m(q){const H=(r.value[q.t]||"").trim();if(H)return H;const T=Ll[q.stuck]||String(q.stuck||"").toLowerCase(),P=o(T==="evidence"?"step.site_records":"step."+(T||"evidence"));return o("ov.basis_fusion",{part:q.part||"—",done:q.done==null?"—":q.done,n:(q.steps||[]).length||"—",stuck:q.stuck?P:o("ov.all_steps_done"),srcs:(q.srcs||[]).join(" / ")||o("ov.no_srcs")})}function f(q){if(!q.stuck)return"";const H=Ll[q.stuck]||String(q.stuck||"").toLowerCase(),T=o(H==="evidence"?"step.site_records":"step."+(H||"evidence"));return o("step.stuck_at",{step:T})}const v=[["危险","critical"],["报警","warning"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],_=B(()=>{const q=e.d?.sysdist||{};return zn.map(H=>{const T=q[H]||{},P=Object.values(T).reduce((mt,st)=>mt+st,0)||1;return{name:xe(H),slug:Ns(H),dist:T,n:P,seg:v.filter(([mt])=>T[mt]).map(([mt,st])=>({k:mt,v:st}))}})}),w=B(()=>s.value.矩阵||[]),D=B(()=>new Set(d.value.map(q=>q.t))),W={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},z={candidate_new:"candidate",candidate_baseline:"candidate",normal:"reference"},it=q=>{const H=W[String(q??"")];return H?z[H]||H:""};return(q,H)=>(k(),S(ot,null,[a("section",null,[a("div",em,[(k(!0),S(ot,null,$t(c.value,(T,P)=>(k(),S("div",{key:P,class:Wt(["kpi",T.k]),title:T.ti||void 0},[T.vHtml?(k(),S("b",{key:0,innerHTML:T.vRaw},null,8,nm)):(k(),S("b",lm,[ut(p(T.v),1),T.u?(k(),S("small",im,p(T.u),1)):gt("",!0)])),a("span",null,p(T.l),1)],10,sm))),128))])]),a("section",null,[a("div",am,[a("h2",null,p(u(o)("ov.attention")),1),a("span",om,p(u(o)("ov.attention_n",{n:d.value.length})),1),a("span",rm,p(u(o)("ov.ranked_by")),1)]),s.value.gap?(k(),S("div",cm,[a("p",dm,p(s.value.gap),1),a("p",um,p(u(o)("ov.fus_gap_hint")),1)])):gt("",!0),a("div",pm,[(k(!0),S(ot,null,$t(d.value,T=>(k(),S("div",{key:T.t,class:"card",id:`u-${T.t}`,style:It(`--sev:var(--${u(Pl)[u(Bs)(T.ostate)||(T.lvl==="bad"?"bad":"warn")]})`)},[a("div",fm,[a("a",{class:"unit",href:`/turbine/${T.t}`},p(u(qt)(T.t)),9,mm),a("span",vm,p(T.part||""),1),a("span",{class:Wt(["chip",u(Bs)(T.ostate)||(T.lvl==="bad"?"bad":"warn")])},p(u(Dl)(T.ostate||(T.lvl==="bad"?"危险":"报警"))),3)]),a("details",_m,[a("summary",null,p(u(o)("ov.evidence")),1),a("div",gm,p(m(T)),1)]),a("div",bm,[T.estate?(k(),S("span",{key:0,class:Wt(["tier",it(T.estate)]),title:u(o)("tier."+(W[T.estate]||"unknown"))},p(u(Dl)(T.estate)),11,ym)):gt("",!0),T.srcs&&T.srcs.length?(k(),S("span",$m,p(T.srcs.length)+" sources",1)):gt("",!0)]),f(T)||T.next?(k(),S("div",xm,[a("b",null,p(u(o)("ov.caveat")),1),ut(p(f(T))+p(f(T)&&T.next?" — ":"")+p(T.next||""),1)])):gt("",!0)],12,hm))),128))])]),a("section",null,[a("div",wm,[a("h2",null,p(u(o)("ov.strip")),1),a("span",km,p(u(o)("ov.strip_hint")),1),a("div",Mm,[(k(),S(ot,null,$t(["bad","warn","unk","ok","ex"],T=>a("span",{key:T},[a("i",{style:It(`background:var(--${u(Pl)[T]})`)},null,4),ut(p(u(o)(u(Cn)(T))),1)])),64))])]),a("div",{class:"strip",style:It(`--n:${w.value.length||38}`)},[a("div",Sm,[w.value.length?(k(!0),S(ot,{key:0},$t(w.value,T=>(k(),S("div",{key:T.turbine,class:Wt(["cell",[u(jl)(T),D.value.has(T.turbine)?"hot":""]]),"data-u":T.turbine,title:`${u(qt)(T.turbine)} ${u(o)(u(Cn)(u(jl)(T)))}`},null,10,Tm))),128)):(k(),S("div",Em,p(s.value.gap||u(o)("ov.fus_gap_hint")),1))]),a("div",Cm,[(k(!0),S(ot,null,$t(w.value,T=>(k(),S("span",{key:`n-${T.turbine}`,class:Wt(D.value.has(T.turbine)?"hot":"")},p(u(qt)(T.turbine).replace("#","")),3))),128))]),a("div",Fm,p(d.value.length?u(o)("ov.quiet",{n:Math.max(0,(w.value.length||38)-d.value.length)}):u(o)("ov.quiet_all",{n:w.value.length||38})),1)],4)]),a("section",null,[a("div",Am,[a("h2",null,p(u(o)("ov.systems")),1),a("span",Om,p(u(o)("ov.systems_hint")),1)]),a("div",qm,[(k(!0),S(ot,null,$t(_.value,T=>(k(),S("div",{key:T.name,class:"sysc"},[a("div",Lm,[a("b",null,p(T.name),1),a("a",{href:`#tab=component&sys=${encodeURIComponent(T.slug)}`},p(u(o)("ui.open")),9,Dm)]),a("div",jm,[(k(!0),S(ot,null,$t(T.seg,P=>(k(),S("i",{key:P.k,style:It(`width:${(T.dist[P.k]/T.n*100).toFixed(1)}%;background:var(--${P.v})`)},null,4))),128))]),a("div",Pm,[(k(!0),S(ot,null,$t(T.seg,P=>(k(),S("span",{key:`c-${P.k}`},[a("i",{style:It(`background:var(--${P.v})`)},null,4),ut(p(T.dist[P.k]),1)]))),128))])]))),128))])])],64))}}),Rm={class:"page-head"},Im={key:15,class:"card"},Nm={class:"hint"},Bm=Pt({__name:"Workbench",props:{d:{},tab:{},sys:{},sub:{},cms:{},curves:{},apis:{},win:{}},emits:["tab","sub","win","reselect"],setup(t,{emit:e}){const s=t,n=e,l=St(""),i=St(""),c=St("");as(()=>s.win,d=>{l.value=d||"";const m=String(d||"").split("~");m.length===2&&(i.value=m[0],c.value=m[1])},{immediate:!0});const r=B(()=>!En.includes(s.tab));return(d,m)=>(k(),S(ot,null,[a("div",Rm,[a("h1",null,p(u(o)("tab."+t.tab)),1)]),t.tab==="overview"?(k(),jt(Hm,{key:0,d:t.d},null,8,["d"])):t.tab==="energy"?(k(),jt(Pu,{key:1,d:t.d},null,8,["d"])):t.tab==="component"?(k(),jt(Yd,{key:2,d:t.d,sys:t.sys},null,8,["d","sys"])):t.tab==="fault"?(k(),jt(kp,{key:3,d:t.d},null,8,["d"])):t.tab==="vibration"?(k(),jt(Fp,{key:4,d:t.d,sub:t.sub,cms:t.cms,onSub:m[0]||(m[0]=f=>n("sub",f))},null,8,["d","sub","cms"])):t.tab==="generation"?(k(),jt(ah,{key:5,d:t.d,curves:t.curves,pending:!!t.d.m9_pending},null,8,["d","curves","pending"])):t.tab==="decision"?(k(),jt(wh,{key:6,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="assistant"?(k(),jt(Bh,{key:7,d:t.d},null,8,["d"])):t.tab==="system"?(k(),jt(mf,{key:8,apis:t.apis},null,8,["apis"])):t.tab==="report"?(k(),jt(tm,{key:9,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="documents"?(k(),jt(Qr,{key:10})):t.tab==="recalc"?(k(),jt(uc,{key:11})):t.tab==="portal"?(k(),jt(kc,{key:12})):t.tab==="portal_sec"?(k(),jt(Dc,{key:13})):t.tab==="portal_src"?(k(),jt(Yi,{key:14})):r.value?(k(),S("section",Im,[a("h2",null,[ut(p(u(o)("tab."+t.tab))+" ",1),m[1]||(m[1]=a("small",null,"(本页签尚未迁移到 Vue)",-1))]),a("p",Nm,[m[2]||(m[2]=ut(" 迁移纪律:页签逐个搬,每搬一个就用 ",-1)),m[3]||(m[3]=a("code",null,"tools/render_parity.mjs",-1)),m[4]||(m[4]=ut(" 与重构前页面 (现网 ",-1)),m[5]||(m[5]=a("code",null,"/detail/v2",-1)),ut(")对拍文案/数值/类名序列,**通过后**才删对应的 Python 前端源码。 当前已迁移:"+p(u(En).join("、"))+"。 ",1)])])):gt("",!0)],64))}}),Wm=zi(Bm,[["__scopeId","data-v-f3bc7745"]]),Km={key:1,class:"wrap"},Um={class:"top"},Vm={class:"right"},Gm=["title"],zm=["title"],Ym={class:"small muted",for:"win"},Jm=["aria-label","value"],Xm=["label"],Zm=["value"],Qm=["label"],tv=["value"],ev=["label"],sv=["value"],nv=["title"],lv=["aria-label"],iv=["aria-label"],av={class:"tabs"},ov={class:"tabs",id:"tabs"},rv=["onClick"],cv={key:0,class:"todo"},dv={key:0,id:"root"},uv={key:0,class:"hint",style:{padding:"0 18px"}},pv={key:1,class:"hint",style:{padding:"0 18px",color:"var(--bad)"}},hv={key:2,class:"card"},fv=Pt({__name:"App",setup(t){const e=location.hash.replace("#",""),s=(e.match(/^tab=([a-z_]+)/)||[])[1]||"",n=/\/detail\/v2\/?$/.test(location.pathname),l=St(n||e==="workbench"||s?"workbench":"portal");function i(st){l.value=st;try{location.hash=st==="portal"?"":st}catch{}}const c=St("overview");s&&(c.value=s);const r=St(null),d=St(null),m=St(""),f=[["近30日","win.30d"],["近90日","win.90d"],["2026年","win.2026"],["2026H1","win.2026H1"],["2025H2","win.2025H2"],["全程","win.all"]],v={近30日:"30d",近90日:"90d","2026年":"2026","2026H1":"2026H1","2025H2":"2025H2",全程:"all"},_=B(()=>m.value||""),w=B(()=>/^\d{4}-\d{2}-\d{2}~\d{4}-\d{2}-\d{2}$/.test(_.value)),D=B(()=>((d.value||{}).all_months||[]).slice().reverse()),W=St(""),z=St("");function it(st){const G=st.target.value;m.value=v[G]||G}function q(){W.value&&z.value&&(m.value=W.value+"~"+z.value)}const H=St(!1),T=St("");async function P(){H.value=!0,T.value="";const st=m.value?`?win=${encodeURIComponent(m.value)}`:"",G=await Gi("fleet",{method:"GET"});if(st)try{const ct=await fetch("/api/fleet"+st);d.value=await ct.json()}catch(ct){T.value=ct instanceof Error?ct.message:String(ct)}else G.ok?(d.value=G.data,d.value?.win&&(m.value=d.value.win)):T.value=G.error||`HTTP ${G.status}`;H.value=!1}as(m,st=>{st&&st!==d.value?.win&&P()});function mt(){c.value="overview",r.value=null,P()}return Ye(()=>{P(),window.addEventListener("hashchange",()=>{const st=location.hash.replace("#",""),G=(st.match(/^tab=([a-z_]+)/)||[])[1]||"";st==="workbench"||G?(l.value="workbench",G&&(c.value=G)):st||(l.value="portal")})}),(st,G)=>l.value==="portal"?(k(),jt(Yi,{key:0})):(k(),S("div",Km,[a("header",Um,[G[10]||(G[10]=a("span",{class:"mark"},"≋",-1)),G[11]||(G[11]=a("span",{class:"brand"},[ut("观澜"),a("small",null,"WIND ASSET INTELLIGENCE")],-1)),a("div",Vm,[a("a",{class:"back-portal",href:"#",title:u(o)("ui.back_portal"),onClick:G[0]||(G[0]=wr(ct=>i("portal"),["prevent"]))},p(u(o)("ui.back_portal")),9,Gm),a("button",{type:"button",class:"reselect",title:u(o)("ui.reselect"),onClick:mt},p(u(o)("ui.reselect")),9,zm),a("label",Ym,p(u(o)("win.label")),1),a("select",{id:"win","aria-label":u(o)("win.label"),value:_.value,onChange:it},[a("optgroup",{label:u(o)("win.presets")},[(k(),S(ot,null,$t(f,([ct,Ut])=>a("option",{key:ct,value:ct},p(u(o)(Ut)),9,Zm)),64))],8,Xm),w.value?(k(),S("optgroup",{key:0,label:u(o)("win.custom")},[a("option",{value:_.value},p(u(o)("win.custom_sel",{a:_.value.split("~")[0],b:_.value.split("~")[1]})),9,tv)],8,Qm)):gt("",!0),D.value.length?(k(),S("optgroup",{key:1,label:u(o)("win.months")},[(k(!0),S(ot,null,$t(D.value,ct=>(k(),S("option",{key:ct,value:ct},p(ct),9,sv))),128))],8,ev)):gt("",!0)],40,Jm),a("span",{class:"winrng",title:u(o)("win.custom_hint")},[Ge(a("input",{type:"date","aria-label":u(o)("win.from"),"onUpdate:modelValue":G[1]||(G[1]=ct=>W.value=ct)},null,8,lv),[[Al,W.value]]),G[9]||(G[9]=a("span",{class:"muted"},"~",-1)),Ge(a("input",{type:"date","aria-label":u(o)("win.to"),"onUpdate:modelValue":G[2]||(G[2]=ct=>z.value=ct)},null,8,iv),[[Al,z.value]]),a("button",{type:"button",onClick:q},p(u(o)("win.apply")),1)],8,nv)]),a("nav",av,[a("button",{class:Wt({on:l.value==="workbench"}),onClick:G[3]||(G[3]=ct=>i("workbench"))},"工作台",2),a("button",{class:Wt({on:l.value==="smoke"}),onClick:G[4]||(G[4]=ct=>i("smoke"))},"契约自检",2),a("button",{class:Wt({on:l.value==="about"}),onClick:G[5]||(G[5]=ct=>i("about"))},"关于本前端",2)])]),a("nav",ov,[(k(!0),S(ot,null,$t(u(Dr),ct=>(k(),S("button",{key:ct,class:Wt({on:ct===c.value}),onClick:Ut=>c.value=ct},[ut(p(u(o)("tab."+ct)),1),u(En).includes(ct)?gt("",!0):(k(),S("sup",cv,"迁移中"))],10,rv))),128))]),l.value!=="portal"?(k(),S("main",dv,[l.value==="workbench"?(k(),S(ot,{key:0},[H.value?(k(),S("p",uv,"取数中(/api/fleet)…")):T.value?(k(),S("p",pv,"取数失败:"+p(T.value),1)):d.value?(k(),jt(Wm,{key:2,d:d.value,tab:c.value,sub:r.value,onTab:G[6]||(G[6]=ct=>c.value=ct),onSub:G[7]||(G[7]=ct=>r.value=ct),win:m.value,onWin:G[8]||(G[8]=ct=>{m.value=ct}),onReselect:mt},null,8,["d","tab","sub","win"])):gt("",!0)],64)):l.value==="smoke"?(k(),jt(qr,{key:1})):(k(),S("section",hv,[...G[12]||(G[12]=[Io("<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)])]))])):gt("",!0),G[13]||(G[13]=a("footer",{id:"foot",class:"small muted",style:{"margin-top":"36px"}},null,-1))]))}});Sr(fv).mount("#app");
|