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