Files
SGGL_SHJ/SGGL/FineUIPro.Web/HJGL/DataImport/assets/index-lcdZf-3q.js
T

76 lines
1.5 MiB
JavaScript
Raw Normal View History

2026-05-27 23:13:02 +08:00
var EI=Object.defineProperty;var A_=e=>{throw TypeError(e)};var kI=(e,t,n)=>t in e?EI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Vt=(e,t,n)=>kI(e,typeof t!="symbol"?t+"":t,n),i4=(e,t,n)=>t.has(e)||A_("Cannot "+n);var y=(e,t,n)=>(i4(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?A_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,s)=>(i4(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),oe=(e,t,n)=>(i4(e,t,"access private method"),n);var wa=(e,t,n,s)=>({set _(a){U(e,t,a,n)},get _(){return y(e,t,s)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function U6(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const $n={},Tf=[],Yt=()=>{},Wx=()=>!1,nb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),q6=e=>e.startsWith("onUpdate:"),ms=Object.assign,G6=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},AI=Object.prototype.hasOwnProperty,Wt=(e,t)=>AI.call(e,t),ke=Array.isArray,Mf=e=>Om(e)==="[object Map]",sb=e=>Om(e)==="[object Set]",Vc=e=>Om(e)==="[object Date]",nt=e=>typeof e=="function",Xe=e=>typeof e=="string",yr=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Ld=e=>(ft(e)||nt(e))&&nt(e.then)&&nt(e.catch),jx=Object.prototype.toString,Om=e=>jx.call(e),TI=e=>Om(e).slice(8,-1),Tp=e=>Om(e)==="[object Object]",ab=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,up=U6(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ob=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},MI=/-\w/g,Oa=ob(e=>e.replace(MI,t=>t.slice(1).toUpperCase())),PI=/\B([A-Z])/g,Ll=ob(e=>e.replace(PI,"-$1").toLowerCase()),Nm=ob(e=>e.charAt(0).toUpperCase()+e.slice(1)),dp=ob(e=>e?`on${Nm(e)}`:""),Dc=(e,t)=>!Object.is(e,t),j2=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Kx=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Y6=e=>{const t=parseFloat(e);return isNaN(t)?e:t},RI=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let T_;const rb=()=>T_||(T_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tt(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],a=Xe(s)?NI(s):tt(s);if(a)for(const o in a)t[o]=a[o]}return t}else if(Xe(e)||ft(e))return e}const II=/;(?![^(]*\))/g,LI=/:([^]+)/,OI=/\/\*[^]*?\*\//g;function NI(e){const t={};return e.replace(OI,"").split(II).forEach(n=>{if(n){const s=n.split(LI);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function D(e){let t="";if(Xe(e))t=e;else if(ke(e))for(let n=0;n<e.length;n++){const s=D(e[n]);s&&(t+=s+" ")}else if(ft(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function vl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=D(t)),n&&(e.style=tt(n)),e}const $I="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",DI=U6($I);function Ux(e){return!!e||e===""}function FI(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Od(e[s],t[s]);return n}function Od(e,t){if(e===t)return!0;let n=Vc(e),s=Vc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=yr(e),s=yr(t),n||s)return e===t;if(n=ke(e),s=ke(t),n||s)return n&&s?FI(e,t):!1;if(n=ft(e),s=ft(t),n||s){if(!n||!s)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!Od(e[r],t[r]))return!1}}return String(e)===String(t)}function qx(e,t){return e.findIndex(n=>Od(n,t))}const Gx=e=>!!(e&&e.__v_isRef===!0),ge=e=>Xe(e)?e:e==null?"":ke(e)||ft(e)&&(e.toString===jx||!nt(e.toString))?Gx(e)?ge(e.value):JSON.stringify(e,Yx,2):String(e),Yx=(e,t)=>Gx(t)?Yx(e,t.value):Mf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,a],o)=>(n[l4(s,o)+" =>"]=a,n),{})}:sb(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>l4(n))}:yr(t)?l4(t):ft(t)&&!ke(t)&&!Tp(t)?String(t):t,l4=(e,t="")=>{var n;return yr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ua;class Xx{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ua,!t&&ua&&(this.index=(ua.scopes||(ua.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ua;try{return ua=this,t()}finally{ua=n}}}on(){++this._on===1&&(this.prevScope=ua,ua=this)}off(){this._on>0&&--this._on===0&&(ua=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function BI(e){return new Xx(e)}function Jx(){return ua}function Zx(e,t=!1){ua&&ua.cleanups.push(e)}let zn;const c4=new WeakSet;class Qx{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ua&&ua.active&&ua.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,c4.has(this)&&(c4.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||t9(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,M_(this),n9(this);const t=zn,n=vr;zn=this,vr=!0;try{return this.fn()}finally{s9(this),zn=t,vr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Z6(t);this.deps=this.depsTail=void 0,M_(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?c4.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ly(this)&&this.run()}get dirty(){return ly(this)}}let e9=0,fp,hp;function t9(e,t=!1){if(e.flags|=8,t){e.next=hp,hp=e;return}e.next=fp,fp=e}function X6(){e9++}function J6(){if(--e9>0)return;if(hp){let t=hp;for(hp=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fp;){let t=fp;for(fp=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function n9(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s9(e){let t,n=e.depsTail,s=n;for(;s;){const a=s.prevDep;s.version===-1?(s===n&&(n=a),Z6(s),VI(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=a}e.deps=t,e.depsTail=n}function ly(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a9(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a9(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Mp)||(e.globalVersion=Mp,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ly(e))))return;e.flags|=2;const t=e.dep,n=zn,s=vr;zn=e,vr=!0;try{n9(e);const a=e.fn(e._value);(t.version===0||Dc(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{zn=n,vr=s,s9(e),e.flags&=-3}}function Z6(e,t=!1){const{dep:n,prevSub:s,nextSub:a}=e;if(s&&(s.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Z6(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function VI(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let vr=!0;const o9=[];function Cl(){o9.push(vr),vr=!1}function Sl(){const e=o9.pop();vr=e===void 0?!0:e}function M_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=zn;zn=void 0;try{t()}finally{zn=n}}}let Mp=0;class
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function $m(e,t,n,s){try{return s?e(...s):e()}catch(a){ub(a,t,n)}}function _r(e,t,n,s){if(nt(e)){const a=$m(e,t,n,s);return a&&Ld(a)&&a.catch(o=>{ub(o,t,n)}),a}if(ke(e)){const a=[];for(let o=0;o<e.length;o++)a.push(_r(e[o],t,n,s));return a}}function ub(e,t,n,s=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||$n;if(t){let i=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}i=i.parent}if(o){Cl(),$m(o,null,10,[e,l,c]),Sl();return}}hL(e,n,a,s,r)}function hL(e,t,n,s=!0,a=!1){if(a)throw e;console.error(e)}const Ma=[];let jr=-1;const Pf=[];let Jl=null,df=0;const m9=Promise.resolve();let Wg=null;function ze(e){const t=Wg||m9;return e?t.then(this?e.bind(this):e):t}function pL(e){let t=jr+1,n=Ma.length;for(;t<n;){const s=t+n>>>1,a=Ma[s],o=Rp(a);o<e||o===e&&a.flags&2?t=s+1:n=s}return t}function n8(e){if(!(e.flags&1)){const t=Rp(e),n=Ma[Ma.length-1];!n||!(e.flags&2)&&t>=Rp(n)?Ma.push(e):Ma.splice(pL(t),0,e),e.flags|=1,g9()}}function g9(){Wg||(Wg=m9.then(y9))}function vL(e){ke(e)?Pf.push(...e):Jl&&e.id===-1?Jl.splice(df+1,0,e):e.flags&1||(Pf.push(e),e.flags|=1),g9()}function R_(e,t,n=jr+1){for(;n<Ma.length;n++){const s=Ma[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ma.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function b9(e){if(Pf.length){const t=[...new Set(Pf)].sort((n,s)=>Rp(n)-Rp(s));if(Pf.length=0,Jl){Jl.push(...t);return}for(Jl=t,df=0;df<Jl.length;df++){const n=Jl[df];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Jl=null,df=0}}const Rp=e=>e.id==null?e.flags&2?-1:1/0:e.id;function y9(e){try{for(jr=0;jr<Ma.length;jr++){const t=Ma[jr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$m(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;jr<Ma.length;jr++){const t=Ma[jr];t&&(t.flags&=-2)}jr=-1,Ma.length=0,b9(),Wg=null,(Ma.length||Pf.length)&&y9()}}let Ys=null,w9=null;function jg(e){const t=Ys;return Ys=e,w9=e&&e.type.__scopeId||null,t}function X(e,t=Ys,n){if(!t||e._n)return e;const s=(...a)=>{s._d&&qg(-1);const o=jg(t);let r;try{r=e(...a)}finally{jg(o),s._d&&qg(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function gt(e,t){if(Ys===null)return e;const n=vb(Ys),s=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,r,i,l=$n]=t[a];o&&(nt(o)&&(o={mounted:o,updated:o}),o.deep&&dl(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function tu(e,t,n,s){const a=e.dirs,o=t&&t.dirs;for(let r=0;r<a.length;r++){const i=a[r];o&&(i.oldValue=o[r].value);let l=i.dir[s];l&&(Cl(),_r(l,n,8,[e.el,i,e,t]),Sl())}}function Mt(e,t){if(pa){let n=pa.provides;const s=pa.parent&&pa.parent.provides;s===n&&(n=pa.provides=Object.create(s)),n[e]=t}}function je(e,t,n=!1){const s=Ct();if(s||If){let a=If?If._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&nt(t)?t.call(s&&s.proxy):t}}const mL=Symbol.for("v-scx"),gL=()=>je(mL);function Qa(e,t){return s8(e,null,t)}function be(e,t,n){return s8(e,t,n)}function s8(e,t,n=$n){const{immediate:s,deep:a,flush:o,once:r}=n,i=ms({},n),l=t&&s||!t&&o!=="post";let c;if(Op){if(o==="sync"){const p=gL();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Yt,p.resume=Yt,p.pause=Yt,p}}const u=pa;i.call=(p,v,m)=>_r(p,u,v,m);let d=!1;o==="post"?i.scheduler=p=>{la(p,u&&u.suspense)}:o!=="sync"&&(d=!0,i.scheduler=(p,v)=>{v?p():n8(p)}),i.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=fL(e,t,i);return Op&&(c?c.push(h):l&&h()),h}function bL(e,t,n){const s=this.proxy,a=Xe(e)?e.includes(".")?_9(s,e):()=>s[e]:e.bind(s,s);let o;nt(t)?o=t:(o=t.handler,n=t);const r=Fm(this),i=s8(a,o.bind(s),n);return r(),i}function _9(e,t){const n=t.split(".");return()=>{let s=e;for(let a=0;a<n.length&&s;a++)s=s[n[a]];return s}}const C9=Symbol("_vte"),S9=e=>e.__isTeleport,pp=e=>e&&(e.disabled||e.disabled===""),I_=e=>e&&(e.defer||e.defer===""),L_=e=>typ
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let by;const Y_=typeof window<"u"&&window.trustedTypes;if(Y_)try{by=Y_.createPolicy("vue",{createHTML:e=>e})}catch{}const nE=by?e=>by.createHTML(e):e=>e,pO="http://www.w3.org/2000/svg",vO="http://www.w3.org/1998/Math/MathML",Oi=typeof document<"u"?document:null,X_=Oi&&Oi.createElement("template"),mO={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const a=t==="svg"?Oi.createElementNS(pO,e):t==="mathml"?Oi.createElementNS(vO,e):n?Oi.createElement(e,{is:n}):Oi.createElement(e);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>Oi.createTextNode(e),createComment:e=>Oi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,a,o){const r=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{X_.innerHTML=nE(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=X_.content;if(s==="svg"||s==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Hl="transition",M0="animation",Yh=Symbol("_vtc"),sE={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},aE=ms({},k9,sE),gO=e=>(e.displayName="Transition",e.props=aE,e),bs=gO((e,{slots:t})=>ot(CL,oE(e),t)),su=(e,t=[])=>{ke(e)?e.forEach(n=>n(...t)):e&&e(...t)},J_=e=>e?ke(e)?e.some(t=>t.length>1):e.length>1:!1;function oE(e){const t={};for(const L in e)L in sE||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:s,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=bO(a),m=v&&v[0],g=v&&v[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:w,onLeave:_,onLeaveCancelled:x,onBeforeAppear:E=b,onAppear:T=C,onAppearCancelled:R=w}=t,I=(L,B,q,J)=>{L._enterCancelled=J,Kl(L,B?u:i),Kl(L,B?c:r),q&&q()},M=(L,B)=>{L._isLeaving=!1,Kl(L,d),Kl(L,p),Kl(L,h),B&&B()},$=L=>(B,q)=>{const J=L?T:C,Y=()=>I(B,L,q);su(J,[B,Y]),Z_(()=>{Kl(B,L?l:o),Hr(B,L?u:i),J_(J)||Q_(B,s,m,Y)})};return ms(t,{onBeforeEnter(L){su(b,[L]),Hr(L,o),Hr(L,r)},onBeforeAppear(L){su(E,[L]),Hr(L,l),Hr(L,c)},onEnter:$(!1),onAppear:$(!0),onLeave(L,B){L._isLeaving=!0;const q=()=>M(L,B);Hr(L,d),L._enterCancelled?(Hr(L,h),yy(L)):(yy(L),Hr(L,h)),Z_(()=>{L._isLeaving&&(Kl(L,d),Hr(L,p),J_(_)||Q_(L,s,g,q))}),su(_,[L,q])},onEnterCancelled(L){I(L,!1,void 0,!0),su(w,[L])},onAppearCancelled(L){I(L,!0,void 0,!0),su(R,[L])},onLeaveCancelled(L){M(L),su(x,[L])}})}function bO(e){if(e==null)return null;if(ft(e))return[m4(e.enter),m4(e.leave)];{const t=m4(e);return[t,t]}}function m4(e){return RI(e)}function Hr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Yh]||(e[Yh]=new Set)).add(t)}function Kl(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Yh];n&&(n.delete(t),n.size||(e[Yh]=void 0))}function Z_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yO=0;function Q_(e,t,n,s){const a=e._endId=++yO,o=()=>{a===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:l}=rE(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},i+1),e.addEventListener(c,h)}function rE(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),a=s(`${Hl}Delay`),o=s(`${Hl}Duration`),r=eC(a,o),i=s(`${M0}Delay`),l=s(`${M0}Duratio
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),M[2]||(M[2]=A("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(S(),ce(f(Ye),{key:2,class:D(f(o).e("prefix"))},{default:X(()=>[W(f(_0))]),_:1},8,["class"])):ie("v-if",!0),ie(" content "),W(f(ine),{node:e.node},null,8,["node"]),ie(" postfix "),h.value?ie("v-if",!0):(S(),P(Ve,{key:3},[e.node.loading?(S(),ce(f(Ye),{key:0,class:D([f(o).is("loading"),f(o).e("postfix")])},{default:X(()=>[W(f(Ao))]),_:1},8,["class"])):(S(),ce(f(Ye),{key:1,class:D(["arrow-right",f(o).e("postfix")])},{default:X(()=>[W(f(Ds))]),_:1},8,["class"]))],64))],42,lne))}}),une=j({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Ct(),s=Ee("cascader-menu"),{t:a}=Rt(),o=Fs();let r,i;const l=je(Nb),c=F(),u=k(()=>!t.nodes.length),d=k(()=>!l.initialLoaded),h=k(()=>`${o.value}-${t.index}`),p=b=>{r=b.target},v=b=>{var C;if(!(!l.isHoverMenu||!r||!c.value))if(r.contains(b.target)){m();const w=n.vnode.el,{left:_}=w.getBoundingClientRect(),{offsetWidth:x,offsetHeight:E}=w,T=b.clientX-_,R=r.offsetTop,I=R+r.offsetHeight,M=((C=w.querySelector(`.${s.e("wrap")}`))==null?void 0:C.scrollTop)||0;c.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${R} L${x} ${M} V${R} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${I} L${x} ${E+M} V${I} Z" />
`}else i||(i=window.setTimeout(g,l.config.hoverThreshold))},m=()=>{i&&(clearTimeout(i),i=void 0)},g=()=>{c.value&&(c.value.innerHTML="",m())};return(b,C)=>(S(),ce(f(Cr),{key:h.value,tag:"ul",role:"menu",class:D(f(s).b()),"wrap-class":f(s).e("wrap"),"view-class":[f(s).e("list"),f(s).is("empty",u.value)],onMousemove:v,onMouseleave:g},{default:X(()=>{var w;return[(S(!0),P(Ve,null,yt(e.nodes,_=>(S(),ce(cne,{key:_.uid,node:_,"menu-id":h.value,onExpand:p},null,8,["node","menu-id"]))),128)),d.value?(S(),P("div",{key:0,class:D(f(s).e("empty-text"))},[W(f(Ye),{size:"14",class:D(f(s).is("loading"))},{default:X(()=>[W(f(Ao))]),_:1},8,["class"]),We(" "+ge(f(a)("el.cascader.loading")),1)],2)):u.value?(S(),P("div",{key:1,class:D(f(s).e("empty-text"))},[ue(b.$slots,"empty",{},()=>[We(ge(f(a)("el.cascader.noData")),1)])],2)):(w=f(l))!=null&&w.isHoverMenu?(S(),P(Ve,{key:2},[ie(" eslint-disable vue/html-self-closing "),(S(),P("svg",{ref_key:"hoverZone",ref:c,class:D(f(s).e("hover-zone"))},null,2))],2112)):ie("v-if",!0),ie(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),dne=Object.defineProperty,fne=(e,t,n)=>t in e?dne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Va=(e,t,n)=>fne(e,typeof t!="symbol"?t+"":t,n);let hne=0;const pne=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Dy=class Fy{constructor(t,n,s,a=!1){this.data=t,this.config=n,this.parent=s,this.root=a,Va(this,"uid",hne++),Va(this,"level"),Va(this,"value"),Va(this,"label"),Va(this,"pathNodes"),Va(this,"pathValues"),Va(this,"pathLabels"),Va(this,"childrenData"),Va(this,"children"),Va(this,"text"),Va(this,"loaded"),Va(this,"checked",!1),Va(this,"indeterminate",!1),Va(this,"loading",!1);const{value:o,label:r,children:i}=n,l=t[i],c=pne(this);this.level=a?0:s?s.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(u=>u.value),this.pathLabels=c.map(u=>u.label),this.childrenData=l,this.children=(l||[]).map(u=>new Fy(u,n,this)),this.loaded=!n.lazy||this.isLeaf||!Pa(l),this.text=""}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:a,checkStrictly:o}=s;return(nt(a)?a(t,this):!!t[a])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:s,loaded:a}=this,{lazy:o,leaf:r}=n,i=nt(r)?r(t,this):t[r];return Dt(i)?o&&!a?!1:!(ke(s)&&s.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:s}=this,a=new Fy(t,this.config,this);return ke(n)?n.push(t):this.childrenData=[t],s.push(a),a}calcText(t,n){const s=t?this.pathLabels.join(n):this.label;return this.text=s,s}broadcast(t){this.children.forEach(n=>{var s;n&&(n.broadcast(t),(s=n.onParentCheck)==null||s.call(n,t))})}emit(){var t;const{parent:n}=this;n&&((t=n.onChildCheck)==null||t.call(n),n.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),s=n.length?n.every(a=>a.checked):!1;this.setCheckState(s)}setCheckState(t){const n=this.children.length,s=this.children.reduce((a,o)=>{const r=o.checked?1:o.indeterminate?.5:0;return a+r},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&s!==n&&s>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:s}=this.config;n||!s?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};var vne=Object.defineProperty,mne=(e,t,n)=>t in e?vne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L4=(e,t,n)=>mne(e,typeof t!="symbol"?t+"":t,n);const By=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(By(s.children,t))),n),[]);class zS{constructor(t,n){this.config=n,L4(this,"nodes"),L4(this,"allNodes"),L4(this,"leafNodes");const s=(t||[]).map(a=>new Dy(a,this.config));this.nodes=s,this.allNodes=By(s,!1),this.leafNodes=By(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new Dy(t,this.confi
(?:
(?:`+s+":){7}(?:"+s+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+s+":){6}(?:"+n+"|:"+s+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+s+":){5}(?::"+n+"|(?::"+s+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+s+":){4}(?:(?::"+s+"){0,1}:"+n+"|(?::"+s+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+s+":){3}(?:(?::"+s+"){0,2}:"+n+"|(?::"+s+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+s+":){2}(?:(?::"+s+"){0,3}:"+n+"|(?::"+s+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+s+":){1}(?:(?::"+s+"){0,4}:"+n+"|(?::"+s+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+s+"){0,5}:"+n+"|(?::"+s+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),r=new RegExp("^"+n+"$"),i=new RegExp("^"+a+"$"),l=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+a+t(_)+")","g")};l.v4=function(w){return w&&w.exact?r:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?i:new RegExp(""+t(w)+a+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',C="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+p+v+m+")"+g+b;return O2=new RegExp("(?:^"+C+"$)","i"),O2},s5={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},j0={integer:function(t){return j0.number(t)&&parseInt(t,10)===t},float:function(t){return j0.number(t)&&!j0.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!j0.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(s5.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(kie())},hex:function(t){return typeof t=="string"&&!!t.match(s5.hex)}},Aie=function(t,n,s,a,o){if(t.required&&n===void 0){cM(t,n,s,a,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;r.indexOf(i)>-1?j0[i](n)||a.push(So(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&a.push(So(o.messages.types[i],t.fullField,t.type))},Tie=function(t,n,s,a,o){var r=typeof t.len=="number",i=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),p&&(u=n.replace(c,"_").length),r?u!==t.len&&a.push(So(o.messages[d].len,t.fullField,t.len)):i&&!l&&u<t.min?a.push(So(o.messages[d].min,t.fullField,t.min)):l&&!i&&u>t.max?a.push(So(o.messages[d].max,t.fullField,t.max)):i&&l&&(u<t.min||u>t.max)&&a.push(So(o.messages[d].range,t.fullField,t.min,t.max))},lf="enum",Mie=function(t,n,s,a,o){t[lf]=Array.isArray(t[lf])?t[lf]:[],t[lf].indexOf(n)===-1&&a.push(So(o.messages[lf],t.fullField,t[lf].join(", ")))},Pie=function(t,n,s,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(So(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||a.push(So(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},hn={required:cM,whitespace:Eie,type:Aie,range:Tie,enum:Mie,pattern:Pie},Rie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n,"string")&&!t.required)return s();hn.required(t,n,a,r,o,"string"),Ts(n,"string")||(hn.type(t,n,a,r,o),hn.range(t,n,a,r,o),hn.pattern(t,n,a,r,o),t.whitespace===!0&&hn.whitespace(t,n,a,r,o))}s(r)},Iie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&hn.type(t,n,a,r,o)}s(r)},Lie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),Ts(n)&&!t.required)return s();hn.required(t,n,a,r,o),n!==void 0&&(hn.type(t,n,a,r,o),hn.range(t,n,a,r,o))}s(r)},Oie=function(t,n,s,a,o){var r=[],i=t.required||!t.required&&a.hasOwnProperty(t.field);if(i){if(Ts
M 50 50
m 0 ${_?"":"-"}${w}
a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2}
a ${w} ${w} 0 1 1 0 ${_?"":"-"}${w*2}
`}),l=k(()=>2*Math.PI*r.value),c=k(()=>n.type==="dashboard"?.75:1),u=k(()=>`${-1*l.value*(1-c.value)/2}px`),d=k(()=>({strokeDasharray:`${l.value*c.value}px, ${l.value}px`,strokeDashoffset:u.value})),h=k(()=>({strokeDasharray:`${l.value*c.value*(n.percentage/100)}px, ${l.value}px`,strokeDashoffset:u.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=k(()=>{let w;return n.color?w=C(n.percentage):w=t[n.status]||t.default,w}),v=k(()=>n.status==="warning"?Zm:n.type==="line"?n.status==="success"?Jm:Jo:n.status==="success"?_0:eo),m=k(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=k(()=>n.format(n.percentage));function b(w){const _=100/w.length;return w.map((E,T)=>Xe(E)?{color:E,percentage:(T+1)*_}:E).sort((E,T)=>E.percentage-T.percentage)}const C=w=>{var _;const{color:x}=n;if(nt(x))return x(w);if(Xe(x))return x;{const E=b(x);for(const T of E)if(T.percentage>w)return T.color;return(_=E[E.length-1])==null?void 0:_.color}};return(w,_)=>(S(),P("div",{class:D([f(s).b(),f(s).m(e.type),f(s).is(e.status),{[f(s).m("without-text")]:!e.showText,[f(s).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(S(),P("div",{key:0,class:D(f(s).b("bar"))},[A("div",{class:D(f(s).be("bar","outer")),style:tt({height:`${e.strokeWidth}px`})},[A("div",{class:D([f(s).be("bar","inner"),{[f(s).bem("bar","inner","indeterminate")]:e.indeterminate},{[f(s).bem("bar","inner","striped")]:e.striped},{[f(s).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:tt(a.value)},[(e.showText||w.$slots.default)&&e.textInside?(S(),P("div",{key:0,class:D(f(s).be("bar","innerText"))},[ue(w.$slots,"default",{percentage:e.percentage},()=>[A("span",null,ge(g.value),1)])],2)):ie("v-if",!0)],6)],6)],2)):(S(),P("div",{key:1,class:D(f(s).b("circle")),style:tt({height:`${e.width}px`,width:`${e.width}px`})},[(S(),P("svg",Bce,[A("path",{class:D(f(s).be("circle","track")),d:i.value,stroke:`var(${f(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:tt(d.value)},null,14,Vce),A("path",{class:D(f(s).be("circle","path")),d:i.value,stroke:p.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:tt(h.value)},null,14,zce)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(S(),P("div",{key:2,class:D(f(s).e("text")),style:tt({fontSize:`${m.value}px`})},[ue(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(S(),ce(f(Ye),{key:1},{default:X(()=>[(S(),ce(bt(v.value)))]),_:1})):(S(),P("span",Hce,ge(g.value),1))])],6)):ie("v-if",!0)],10,Fce))}});const yM=pt(Wce),jce=Me({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:re([Array,Object]),default:()=>Tn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:re([Array,Object]),default:()=>[W0,W0,W0]},voidIcon:{type:en,default:()=>qk},disabledVoidIcon:{type:en,default:()=>W0},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:re(Array),default:()=>Tn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:rs,clearable:Boolean,...ya(["ariaLabel"])}),Kce={[Pt]:e=>st(e),[ct]:e=>st(e)},Uce=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],qce=["onMousemove","onClick"];var Gce=j({name:"ElRate",__name:"rate",props:jce,emits:Kce,setup(e,{expose:t,emit:n}){function s(N,V){const z=K=>ft(K),G=Object.keys(V).map(K=>+K).filter(K=>{const ee=V[K];return(z(ee)?ee.excluded:!1)?N<K:N<=K}).sort((K,ee)=>K-ee),Q=V[G[0]];return z(Q)&&Q.value||Q}const a=e,o=n,r=je(Ci,void 0),i=ns(),l=Ee("rate"),{inputId:c,isLabeledByFormItem:u}=Mo(a,{formItemContext:r}),d=F(mu(a.modelValue,0,a.max)),h=F(-1),p=F(!0),v=F([]),m=k(()=>v.value.map(N=>N.$
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const og="_Mousewheel",k5=function(e,t){if(e&&e.addEventListener){e7(e);const n=function(s){const a=Rfe(s);t&&Reflect.apply(t,this,[s,a])};e[og]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},e7=e=>{var t;(t=e[og])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[og].wheelHandler),e[og]=null)},Ife={beforeMount(e,t){k5(e,t.value)},unmounted(e){e7(e)},updated(e,t){t.value!==t.oldValue&&k5(e,t.value)}};let Lfe=1;var Ofe=j({name:"ElTable",directives:{Mousewheel:Ife},components:{TableHeader:ufe,TableBody:gfe,TableFooter:wfe,ElScrollbar:Cr,hColgroup:UM},props:xfe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Rt(),n=Ee("table"),s=Ct();Mt($r,s);const a=Yde(s,e);s.store=a;const o=new Qde({store:s.store,table:s,fit:e.fit,showHeader:e.showHeader});s.layout=o;const r=k(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:g}=_fe(a),{isHidden:b,renderExpanded:C,setDragVisible:w,isGroup:_,handleMouseLeave:x,handleHeaderFooterMousewheel:E,tableSize:T,emptyBlockStyle:R,resizeProxyVisible:I,bodyWidth:M,resizeState:$,doLayout:L,tableBodyStyles:B,tableLayout:q,scrollbarViewStyle:J,scrollbarStyle:Y}=Cfe(e,o,a,s),{scrollBarRef:O,scrollTo:N,setScrollLeft:V,setScrollTop:z}=Efe(),G=yi(L,50),Q=`${n.namespace.value}-table_${Lfe++}`;s.tableId=Q,s.state={isGroup:_,resizeState:$,doLayout:L,debouncedUpdateLayout:G};const K=k(()=>{var he;return(he=e.sumText)!=null?he:t("el.table.sumText")}),ee=k(()=>{var he;return(he=e.emptyText)!=null?he:t("el.table.emptyText")}),se=k(()=>KM(a.states.originColumns.value)[0]);return Sfe(s),qt(()=>{G.cancel()}),{ns:n,layout:o,store:a,columns:se,handleHeaderFooterMousewheel:E,handleMouseLeave:x,tableId:Q,tableSize:T,isHidden:b,isEmpty:r,renderExpanded:C,resizeProxyVisible:I,resizeState:$,isGroup:_,bodyWidth:M,tableBodyStyles:B,emptyBlockStyle:R,debouncedUpdateLayout:G,setCurrentRow:i,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,doLayout:L,sort:m,updateKeyChildren:g,t,setDragVisible:w,context:s,computedSumText:K,computedEmptyText:ee,tableLayout:q,scrollbarViewStyle:J,scrollbarStyle:Y,scrollBarRef:O,scrollTo:N,setScrollLeft:V,setScrollTop:z,allowDragLastColumn:e.allowDragLastColumn}}});const Nfe=["data-prefix"],$fe={ref:"hiddenColumns",class:"hidden-columns"};function Dfe(e,t,n,s,a,o){const r=qe("hColgroup"),i=qe("table-header"),l=qe("table-body"),c=qe("table-footer"),u=qe("el-scrollbar"),d=l8("mousewheel");return S(),P("div",{ref:"tableWrapper",class:D([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:tt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[A("div",{ref:"tableInnerWrapper",class:D(e.ns.e("inner-wrapper"))},[A("div",$fe,[ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?gt((S(),P("div",{key:0,ref:"headerWrapper",class:D(e.ns.e("header-wrapper"))},[A("table",{ref:"tableHeader",class:D(e.ns.e("header")),style:tt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[W(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]
`||c==="\r"){r=l;continue}if(o.includes(c)){const u=r===-1?s:r;i={pattern:a.slice(l+1,u),start:l+1,end:u,prefix:c,prefixIndex:l,splitIndex:r,selectionEnd:s};break}}return i},bme=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,s=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?s:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const i=r.style,l=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),o.forEach(h=>{if(c&&h==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),v=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),m=v+Number.parseInt(l.lineHeight);p>m?i.lineHeight=`${p-v}px`:p===m?i.lineHeight=l.lineHeight:i.lineHeight="0"}else i.lineHeight=l.height;else i[h]=l[h]}),Q8()?e.scrollHeight>Number.parseInt(l.height)&&(i.overflowY="scroll"):i.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,a)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const u=document.createElement("span");u.textContent=e.value.slice(Math.max(0,a))||".",u.style.position="relative",u.style.left=`${-e.scrollLeft}px`,u.style.top=`${-e.scrollTop}px`,r.appendChild(u);const d={top:u.offsetTop+Number.parseInt(l.borderTopWidth),left:u.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?u.style.backgroundColor="#aaa":document.body.removeChild(r),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},yme=Me({...t2,options:{type:re(Array),default:()=>[]},prefix:{type:re([String,Array]),default:"@",validator:e=>Xe(e)?e.length===1:e.every(t=>Xe(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:re([Boolean,Function]),default:()=>mme,validator:e=>e===!1?!0:nt(e)},placement:{type:re(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:re(Function)},modelValue:String,loading:Boolean,popperClass:Zt.popperClass,popperStyle:Zt.popperStyle,popperOptions:{type:re(Object),default:()=>({})},props:{type:re(Object),default:()=>tP}}),wme={[ct]:e=>Xe(e),"whole-remove":(e,t)=>Xe(e)&&Xe(t),input:e=>Xe(e),search:(e,t)=>Xe(e)&&Xe(t),select:(e,t)=>ft(e)&&Xe(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},tP={value:"value",label:"label",disabled:"disabled"},_me=Me({options:{type:re(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Cme={select:e=>Xe(e.value)},Sme=["id","aria-disabled","aria-selected","onMousemove","onClick"];var xme=j({name:"ElMentionDropdown",__name:"mention-dropdown",props:_me,emits:Cme,setup(e,{expose:t,emit:n}){const s=e,a=n,o=Ee("mention"),{t:r}=Rt(),i=F(-1),l=F(),c=F(),u=F(),d=(_,x)=>[o.be("dropdown","item"),o.is("hovering",i.value===x),o.is("disabled",_.disabled||s.disabled)],h=_=>{_.disabled||s.disabled||a("select",_)},p=_=>{i.value=_},v=k(()=>s.disabled||s.options.every(_=>_.disabled)),m=k(()=>s.options[i.value]),g=()=>{m.value&&a("select",m.value)},b=_=>{const{options:x}=s;if(x.length===0||v.value)return;_==="next"?(i.value++,i.value===x.length&&(i.value=0)):_==="prev"&&(i.value--,i.value<0&&(i.value=x.length-1));const E=x[i.value];if(E.disabled){b(_);return}ze(()=>C(E))},C=_=>{var x,E,T,R;const{options:I}=s,M=I.findIndex
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const vf=typeof document<"u";function cP(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function K2e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cP(e.default)}const xn=Object.assign;function J4(e,t){const n={};for(const s in t){const a=t[s];n[s]=Ar(a)?a.map(e):e(a)}return n}const Ep=()=>{},Ar=Array.isArray;function ax(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const uP=/#/g,U2e=/&/g,q2e=/\//g,G2e=/=/g,Y2e=/\?/g,dP=/\+/g,X2e=/%5B/g,J2e=/%5D/g,fP=/%5E/g,Z2e=/%60/g,hP=/%7B/g,Q2e=/%7C/g,pP=/%7D/g,ege=/%20/g;function c_(e){return e==null?"":encodeURI(""+e).replace(Q2e,"|").replace(X2e,"[").replace(J2e,"]")}function tge(e){return c_(e).replace(hP,"{").replace(pP,"}").replace(fP,"^")}function T3(e){return c_(e).replace(dP,"%2B").replace(ege,"+").replace(uP,"%23").replace(U2e,"%26").replace(Z2e,"`").replace(hP,"{").replace(pP,"}").replace(fP,"^")}function nge(e){return T3(e).replace(G2e,"%3D")}function sge(e){return c_(e).replace(uP,"%23").replace(Y2e,"%3F")}function age(e){return sge(e).replace(q2e,"%2F")}function ov(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const oge=/\/$/,rge=e=>e.replace(oge,"");function Z4(e,t,n="/"){let s,a={},o="",r="";const i=t.indexOf("#");let l=t.indexOf("?");return l=i>=0&&l>i?-1:l,l>=0&&(s=t.slice(0,l),o=t.slice(l,i>0?i:t.length),a=e(o.slice(1))),i>=0&&(s=s||t.slice(0,i),r=t.slice(i,t.length)),s=uge(s??t,n),{fullPath:s+o+r,path:s,query:a,hash:ov(r)}}function ige(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ox(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lge(e,t,n){const s=t.matched.length-1,a=n.matched.length-1;return s>-1&&s===a&&f0(t.matched[s],n.matched[a])&&vP(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function f0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vP(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!cge(e[n],t[n]))return!1;return!0}function cge(e,t){return Ar(e)?rx(e,t):Ar(t)?rx(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function rx(e,t){return Ar(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function uge(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),a=s[s.length-1];(a===".."||a===".")&&s.push("");let o=n.length-1,r,i;for(r=0;r<s.length;r++)if(i=s[r],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r).join("/")}const jl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let M3=function(e){return e.pop="pop",e.push="push",e}({}),Q4=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function dge(e){if(!e)if(vf){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rge(e)}const fge=/^[^#]+#/;function hge(e,t){return e.replace(fge,"#")+t}function pge(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const qb=()=>({left:window.scrollX,top:window.scrollY});function vge(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=pge(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ix(e,t){return(history.state?history.state.position-t:-1)+e}const P3=new Map;function mge(e,t){P3.set(e,t)}function gge(e){const t=P3.get(e);return P3.delete(e),t}function bge(e){return typeof e=="string"||e&&typeof e=="object"}function mP(e){return typeof e=="string"||typeof e=="symbol"}let as=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Ege=()=>location.protocol+"//"+location.host;function yP(e,t){const{pathname:n,search:s,hash:a}=t,o=e.indexOf("#");if(o>-1){let r=a.includes(e.slice(o))?e.slice(o).length:1,i=a.slice(r);return i[0]!=="/"&&(i="/"+i),ox(i,"")}return ox(n,e)+s+a}function kge(e,t,n,s){let a=[],o=[],r=null;const i=({state:h})=>{const p=yP(e,location),v=n.value,m=t.value;let g=0;if(h){if(n.value=p,t.value=h,r&&r===v){r=null;return}g=m?h.position-m.position:0}else s(p);a.forEach(b=>{b(n.value,v,{delta:g,type:M3.pop,direction:g?g>0?Q4.forward:Q4.back:Q4.unknown})})};function l(){r=n.value}function c(h){a.push(h);const p=()=>{const v=a.indexOf(h);v>-1&&a.splice(v,1)};return o.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(xn({},h.state,{scroll:qb()}),"")}}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:d}}function ux(e,t,n,s=!1,a=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:a?qb():null}}function Age(e){const{history:t,location:n}=window,s={value:yP(e,n)},a={value:t.state};a.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ege()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),a.value=c}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function r(l,c){o(l,xn({},t.state,ux(a.value.back,l,a.value.forward,!0),c,{position:a.value.position}),!0),s.value=l}function i(l,c){const u=xn({},a.value,t.state,{forward:l,scroll:qb()});o(u.current,u,!0),o(l,xn({},ux(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:a,push:i,replace:r}}function Tge(e){e=dge(e);const t=Age(e),n=kge(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const a=xn({location:"",base:e,go:s,createHref:hge.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}let Su=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ws=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(ws||{});const Mge={type:Su.Static,value:""},Pge=/[a-zA-Z0-9_]/;function Rge(e){if(!e)return[[]];if(e==="/")return[[Mge]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=ws.Static,s=n;const a=[];let o;function r(){o&&a.push(o),o=[]}let i=0,l,c="",u="";function d(){c&&(n===ws.Static?o.push({type:Su.Static,value:c}):n===ws.Param||n===ws.ParamRegExp||n===ws.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Su.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==ws.ParamRegExp){s=n,n=ws.EscapeNext;continue}switch(n){case ws.Static:l==="/"?(c&&d(),r()):l===":"?(d(),n=ws.Param):h();break;case ws.EscapeNext:h(),n=s;break;case ws.Param:l==="("?n=ws.ParamRegExp:Pge.test(l)?h():(d(),n=ws.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case ws.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=ws.ParamRegExpEnd:u+=l;break;case ws.ParamRegExpEnd:d(),n=ws.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,u="";break;default:t("Unknown state");break}}return n===ws.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),r(),a}const dx="[^/]+?",Ige={sensitive:!1,strict:!1,start:!0,end:!0};var Ta=function(e){return e[e._multiplier=10]="_multip
`);a=i.pop()??"";for(const l of i)if(l.startsWith("data: "))try{const c=JSON.parse(l.slice(6));t(c)}catch{}}}function T1(e,t){return`${Yb}/download/${e}/${t}`}function p1e(e,t=["excel","json"],n,s="drawing",a=!0,o=null){const r=new FormData;for(const l of e)r.append("files",l);r.append("export_formats",t.join(",")),r.append("pdf_mode",s),r.append("auto_correct",a?"true":"false"),o&&r.append("max_concurrent",String(o));const i=new AbortController;return fetch(`${Yb}/batch`,{method:"POST",body:r,signal:i.signal}).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return u_(l,n)}).catch(l=>{l.name!=="AbortError"&&n({type:"error",data:{message:l.message}})}),()=>i.abort()}const v1e={class:"panel-header"},m1e={class:"panel-title"},g1e={class:"panel-actions"},b1e={key:0,class:"overall-progress"},y1e={class:"progress-label"},w1e={key:0,class:"current-file"},_1e={key:0,class:"current-msg"},C1e={key:1,class:"summary-row"},S1e={key:1,class:"row-msg"},x1e={key:2,class:"text-danger"},E1e={key:3,class:"text-success"},k1e={__name:"BatchResultPanel",props:{batchEvents:{type:Array,default:()=>[]},batchDone:{type:Boolean,default:!1},mergedSessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},totalFiles:{type:Number,default:0}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F({});be(()=>n.batchEvents,w=>{for(const _ of w)o(_)},{deep:!0});function o(w){const{type:_,data:x}=w;if(_==="file_start")a.value[x.filename]={filename:x.filename,status:"processing",pages:0,message:"准备中...",percent:0,sessionId:null,error:null,success:!1};else if(_==="file_progress"){const E=a.value[x.filename];E&&(E.message=x.message||E.message,x.percent!=null&&(E.percent=x.percent))}else _==="file_done"?a.value[x.filename]={filename:x.filename,status:"done",pages:x.pages||0,message:"",percent:100,sessionId:x.session_id,error:null,success:!0}:_==="file_error"&&(a.value[x.filename]={filename:x.filename,status:"error",pages:0,message:"",percent:0,sessionId:null,error:x.error,success:!1})}const r=k(()=>Object.values(a.value)),i=k(()=>r.value.filter(w=>w.status==="done"||w.status==="error").length),l=k(()=>r.value.filter(w=>w.status==="done").length),c=k(()=>r.value.filter(w=>w.status==="error").length),u=k(()=>r.value.reduce((w,_)=>w+(_.pages||0),0)),d=k(()=>n.totalFiles?Math.round(i.value/n.totalFiles*100):0),h=k(()=>r.value.find(w=>w.status==="processing")),p=k(()=>{var w;return((w=h.value)==null?void 0:w.filename)||""}),v=k(()=>{var w;return((w=h.value)==null?void 0:w.message)||""}),m=k(()=>{var w;return!!((w=n.outputFiles)!=null&&w.excel)}),g=k(()=>{var w;return!!((w=n.outputFiles)!=null&&w.json)});function b(w){const _=T1(n.mergedSessionId,w),x=document.createElement("a");x.href=_,x.download=w,document.body.appendChild(x),x.click(),document.body.removeChild(x)}function C(w,_,x){const E=T1(w,_),T=_.endsWith(".xlsx")?".xlsx":".json",R=x?x.replace(/\.pdf$/i,"")+T:_,I=document.createElement("a");I.href=E,I.download=R,document.body.appendChild(I),I.click(),document.body.removeChild(I)}return(w,_)=>{const x=qe("el-icon"),E=qe("el-tag"),T=qe("el-button"),R=qe("el-progress"),I=qe("el-statistic"),M=qe("el-table-column"),$=qe("el-table"),L=qe("el-card");return S(),ce(L,{class:"batch-result-card",shadow:"never"},{header:X(()=>[A("div",v1e,[A("div",m1e,[W(x,null,{default:X(()=>[W(f(F8))]),_:1}),_[3]||(_[3]=A("span",null,"批量解析结果",-1)),e.batchDone?(S(),ce(E,{key:0,type:"success",size:"small"},{default:X(()=>[We(" 完成 "+ge(l.value)+"/"+ge(e.totalFiles),1)]),_:1})):ie("",!0),c.value>0?(S(),ce(E,{key:1,type:"danger",size:"small"},{default:X(()=>[We(" 失败 "+ge(c.value),1)]),_:1})):ie("",!0)]),A("div",g1e,[e.mergedSessionId?(S(),P(Ve,{key:0},[m.value?(S(),ce(T,{key:0,type:"primary",size:"small",icon:f(bl),onClick:_[0]||(_[0]=B=>b("result.xlsx"))},{default:X(()=>[..._[4]||(_[4]=[We("下载合并 Excel",-1)])]),_:1},8,["icon"])):ie("",!0),g.value?(S(),ce(T,{key:1,size:"small",icon:f(bl),onClick:_[1]||(_[1]=B=>b("result.json"))},{default:X(()=>[..._[5]||(_[5]=[We("下载合并 JSON",-1)])]),_:1},8,["icon"])):ie("",!0)],64)):ie("",!0)
${v}`:`[${v}]`}function u({row:d,column:h}){if(!d._flags)return{};const p=h.property,v=d._flags[p];return v?new Set(["llm_corrected","rule_corrected"]).has(v)?{backgroundColor:"#FFB347",color:"#000",fontWeight:"bold"}:{backgroundColor:"#ADD8E6",color:"#000",fontWeight:"bold"}:{}}return(d,h)=>{const p=qe("el-tooltip"),v=qe("el-table-column"),m=qe("el-table"),g=qe("el-empty");return S(),P("div",null,[o.value.length>0?(S(),P(Ve,{key:0},[W(m,{data:o.value,border:"",stripe:"",size:"small",style:{width:"100%"},"max-height":500,"cell-style":u},{default:X(()=>[(S(!0),P(Ve,null,yt(r.value,b=>(S(),ce(v,{key:b,prop:b,label:l(b),"min-width":"100"},{default:X(({row:C})=>[C._flags&&C._flags[b]?(S(),ce(p,{key:0,content:c(C,b),placement:"top","show-after":300},{default:X(()=>[A("span",L1e,ge(C[b]),1)]),_:2},1032,["content"])):(S(),P("span",O1e,ge(C[b]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),A("div",N1e,"共 "+ge(o.value.length)+" 行",1)],64)):i.value?(S(),P("pre",$1e,ge(i.value),1)):(S(),ce(g,{key:2,description:"暂无识别数据","image-size":60}))])}}},F1e=zl(D1e,[["__scopeId","data-v-bfa225df"]]),B1e={key:1,class:"raw-text"},V1e={__name:"MetaInfo",props:{data:{type:[Object,null],default:null}},setup(e){const t=e,n=k(()=>!t.data||typeof t.data!="object"?[]:Object.entries(t.data).filter(([a])=>a!=="raw_text"&&a!=="parse_error"&&a!=="part").filter(([,a])=>a!=null).map(([a,o])=>({key:a,value:String(o)}))),s=k(()=>{var a;return((a=t.data)==null?void 0:a.raw_text)||""});return(a,o)=>{const r=qe("el-descriptions-item"),i=qe("el-descriptions"),l=qe("el-empty");return S(),P("div",null,[n.value.length>0?(S(),ce(i,{key:0,column:1,border:"",size:"small"},{default:X(()=>[(S(!0),P(Ve,null,yt(n.value,({key:c,value:u})=>(S(),ce(r,{key:c,label:c},{default:X(()=>[We(ge(u),1)]),_:2},1032,["label"]))),128))]),_:1})):s.value?(S(),P("pre",B1e,ge(s.value),1)):(S(),ce(l,{key:2,description:"暂无数据","image-size":50}))])}}},wx=zl(V1e,[["__scopeId","data-v-9250db36"]]),z1e={class:"toolbar"},H1e={class:"result-summary"},W1e={key:0,class:"token-hint"},j1e={class:"btn-group"},K1e={key:0},U1e={key:1},q1e={key:0,style:{color:"#e6a23c"}},G1e={key:0,class:"reason-tags"},Y1e={key:2,class:"page-detail"},X1e={__name:"ResultPanel",props:{pagesData:{type:Array,default:()=>[]},sessionId:{type:String,default:""},outputFiles:{type:Object,default:()=>({})},outputFilenames:{type:Object,default:()=>({})},tokenUsage:{type:Object,default:null},pdfName:{type:String,default:""},correctionSummary:{type:Object,default:null}},emits:["reset"],setup(e,{emit:t}){const n=e,s=t,a=F("1"),o=k(()=>{const c=parseInt(a.value);return n.pagesData.find(u=>u.page===c)||n.pagesData[0]});function r(c){const u=c==="excel"?".xlsx":".json",d=n.outputFilenames[c]||`result${u}`,h=T1(n.sessionId,d),p=document.createElement("a");p.href=h,p.download=d,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const i={llm_suspicious:"LLM标记可疑",llm_corrected:"LLM已修正",rule_corrected:"规则已修正",seq_gap:"序号不连续",seq_dup:"序号重复",desc_overflow:"描述溢出到规格列",size_invalid:"规格字段异常",size_outlier:"规格偏离主导尺寸",qty_invalid:"数量字段异常",cell_overlap:"数值重叠(两格合并)",desc_num_tail:"描述末尾残留尺寸数字",size_num_prefix:"尺寸前缀数字粘连",pressure_oob:"压力值超范围",cross_inconsist:"跨页参数不一致"};function l(c){return i[c]||c}return(c,u)=>{const d=qe("CircleCheck"),h=qe("el-icon"),p=qe("el-button"),v=qe("el-card"),m=qe("el-tag"),g=qe("el-alert"),b=qe("el-tab-pane"),C=qe("el-tabs"),w=qe("el-col"),_=qe("el-row");return S(),P("div",null,[W(v,{class:"toolbar-card",shadow:"never"},{default:X(()=>[A("div",z1e,[A("div",H1e,[W(h,{color:"#67C23A",size:"20"},{default:X(()=>[W(d)]),_:1}),A("span",null,[u[4]||(u[4]=We("识别完成,共处理 ",-1)),A("strong",null,ge(e.pagesData.length),1),u[5]||(u[5]=We(" 页",-1))]),e.tokenUsage?(S(),P("span",W1e," · "+ge(e.tokenUsage.total_tokens.toLocaleString())+" tokens  ¥"+ge(e.tokenUsage.cost_cny),1)):ie("",!0)]),A("div",
`);return t.join("")}}function G0(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return n==="http:"||n==="https:"}catch{return!1}}function Tr(e){e.preventDefault()}function yo(e){e.preventDefault(),e.stopPropagation()}var cv;class v_{static toDateObject(t){if(!t||typeof t!="string")return null;y(this,cv)||U(this,cv,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=y(this,cv).exec(t);if(!n)return null;const s=parseInt(n[1],10);let a=parseInt(n[2],10);a=a>=1&&a<=12?a-1:0;let o=parseInt(n[3],10);o=o>=1&&o<=31?o:1;let r=parseInt(n[4],10);r=r>=0&&r<=23?r:0;let i=parseInt(n[5],10);i=i>=0&&i<=59?i:0;let l=parseInt(n[6],10);l=l>=0&&l<=59?l:0;const c=n[7]||"Z";let u=parseInt(n[8],10);u=u>=0&&u<=23?u:0;let d=parseInt(n[9],10)||0;return d=d>=0&&d<=59?d:0,c==="-"?(r+=u,i+=d):c==="+"&&(r-=u,i-=d),new Date(Date.UTC(s,a,o,r,i,l))}}cv=new WeakMap,ne(v_,cv);function Ibe(e,{scale:t=1,rotation:n=0}){const{width:s,height:a}=e.attributes.style,o=[0,0,parseInt(s),parseInt(a)];return new h2({viewBox:o,userUnit:1,scale:t,rotation:n})}function m_(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(sn(`Not a valid color format: "${e}"`),[0,0,0])}function Lbe(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const s=window.getComputedStyle(t).color;e.set(n,m_(s))}t.remove()}function Gn(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform();return[t,n,s,a,o,r]}function Vr(e){const{a:t,b:n,c:s,d:a,e:o,f:r}=e.getTransform().invertSelf();return[t,n,s,a,o,r]}function jd(e,t,n=!1,s=!0){if(t instanceof h2){const{pageWidth:a,pageHeight:o}=t.rawDims,{style:r}=e,i=Ra.isCSSRoundSupported,l=`var(--scale-factor) * ${a}px`,c=`var(--scale-factor) * ${o}px`,u=i?`round(down, ${l}, var(--scale-round-x, 1px))`:`calc(${l})`,d=i?`round(down, ${c}, var(--scale-round-y, 1px))`:`calc(${c})`;!n||t.rotation%180===0?(r.width=u,r.height=d):(r.width=d,r.height=u)}s&&e.setAttribute("data-main-rotation",t.rotation)}class N3{constructor(){const t=window.devicePixelRatio||1;this.sx=t,this.sy=t}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}}var sc,xu,tr,Eu,uv,dv,D1,EP,Ia,kP,AP,hg,TP,D3;const Ni=class Ni{constructor(t){ne(this,Ia);ne(this,sc,null);ne(this,xu,null);ne(this,tr);ne(this,Eu,null);ne(this,uv,null);U(this,tr,t),y(Ni,dv)||U(Ni,dv,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const t=U(this,sc,document.createElement("div"));t.classList.add("editToolbar","hidden"),t.setAttribute("role","toolbar");const n=y(this,tr)._uiManager._signal;t.addEventListener("contextmenu",Tr,{signal:n}),t.addEventListener("pointerdown",oe(Ni,D1,EP),{signal:n});const s=U(this,Eu,document.createElement("div"));s.className="buttons",t.append(s);const a=y(this,tr).toolbarPosition;if(a){const{style:o}=t,r=y(this,tr)._uiManager.direction==="ltr"?1-a[0]:a[0];o.insetInlineEnd=`${100*r}%`,o.top=`calc(${100*a[1]}% + var(--editor-toolbar-vert-offset))`}return oe(this,Ia,TP).call(this),t}get div(){return y(this,sc)}hide(){var t;y(this,sc).classList.add("hidden"),(t=y(this,xu))==null||t.hideDropdown()}show(){var t;y(this,sc).classList.remove("hidden"),(t=y(this,uv))==null||t.shown()}async addAltText(t){const n=await t.render();oe(this,Ia,hg).call(this,n),y(this,Eu).prepend(n,y(this,Ia,D3)),U(this,uv,t)}addColorPicker(t){U(this,xu,t);const n=t.renderButton();oe(this,Ia,hg).call(this,n),y(this,Eu).prepend(n,y(this,Ia,D3))}remove(){var t;y(this,sc).remove(),(t=y(this,xu))==null||t.destroy(),U(this,xu,null)}};sc=new WeakMap,xu=new WeakMap,tr=new WeakMap,Eu=new WeakMap,uv=new WeakMap,dv=new WeakMap,D1=new WeakSet,EP=function(t){t.stopPropagation()},Ia=new WeakSet,kP=function(t){
`))||null;c&&this.data.comb&&(c=c.replaceAll(/\s+/g,""));const u={userValue:i,formattedValue:c,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(s=document.createElement("textarea"),s.textContent=c??i,this.data.doNotScroll&&(s.style.overflowY="hidden")):(s=document.createElement("input"),s.type="text",s.setAttribute("value",c??i),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(s.hidden=!0),Ud.add(s),s.setAttribute("data-element-id",n),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=v2,this._setRequired(s,this.data.required),l&&(s.maxLength=l),s.addEventListener("input",h=>{t.setValue(n,{value:h.target.value}),this.setPropertyOnSiblings(s,"value",h.target.value,"value"),u.formattedValue=null}),s.addEventListener("resetform",h=>{const p=this.data.defaultFieldValue??"";s.value=u.userValue=p,u.formattedValue=null});let d=h=>{const{formattedValue:p}=u;p!=null&&(h.target.value=p),h.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",p=>{var m;if(u.focused)return;const{target:v}=p;u.userValue&&(v.value=u.userValue),u.lastCommittedValue=v.value,u.commitKey=1,(m=this.data.actions)!=null&&m.Focus||(u.focused=!0)}),s.addEventListener("updatefromsandbox",p=>{this.showElementAndHideCanvas(p.target);const v={value(m){u.userValue=m.detail.value??"",t.setValue(n,{value:u.userValue.toString()}),m.target.value=u.userValue},formattedValue(m){const{formattedValue:g}=m.detail;u.formattedValue=g,g!=null&&m.target!==document.activeElement&&(m.target.value=g),t.setValue(n,{formattedValue:g})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{var w;const{charLimit:g}=m.detail,{target:b}=m;if(g===0){b.removeAttribute("maxLength");return}b.setAttribute("maxLength",g);let C=u.userValue;!C||C.length<=g||(C=C.slice(0,g),b.value=u.userValue=C,t.setValue(n,{value:C}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:C,willCommit:!0,commitKey:1,selStart:b.selectionStart,selEnd:b.selectionEnd}}))}};this._dispatchEventFromSandbox(v,p)}),s.addEventListener("keydown",p=>{var g;u.commitKey=1;let v=-1;if(p.key==="Escape"?v=0:p.key==="Enter"&&!this.data.multiLine?v=2:p.key==="Tab"&&(u.commitKey=3),v===-1)return;const{value:m}=p.target;u.lastCommittedValue!==m&&(u.lastCommittedValue=m,u.userValue=m,(g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:m,willCommit:!0,commitKey:v,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}}))});const h=d;d=null,s.addEventListener("blur",p=>{var m,g;if(!u.focused||!p.relatedTarget)return;(m=this.data.actions)!=null&&m.Blur||(u.focused=!1);const{value:v}=p.target;u.userValue=v,u.lastCommittedValue!==v&&((g=this.linkService.eventBus)==null||g.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,willCommit:!0,commitKey:u.commitKey,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}})),h(p)}),(o=this.data.actions)!=null&&o.Keystroke&&s.addEventListener("beforeinput",p=>{var x;u.lastCommittedValue=null;const{data:v,target:m}=p,{value:g,selectionStart:b,selectionEnd:C}=m;let w=b,_=C;switch(p.inputType){case"deleteWordBackward":{const E=g.substring(0,b).match(/\w*[^\w]*$/);E&&(w-=E[0].length);break}case"deleteWordForward":{const E=g.substring(b).match(/^[^\w]*\w*/);E&&(_+=E[0].length);break}case"deleteContentBackward":b===C&&(w-=1);break;case"deleteContentForward":b===C&&(_+=1);break}p.preventDefault(),(x=this.linkService.eventBus)==null||x.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:g,change:v||"",willCommit:!1,selStart:w,selEnd:_}})}),this._setEventListeners(s,u,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],p=>p.target.value)}if(d&&s.addEventListener("blur",d),this.data.comb){const p=(this.data.rect[2]-this.data.rect[0])/l;s.classList.add("comb"),s.style.letterSpacing=`
`))n.push({name:"span",value:o,attributes:a});return s},LR=function(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&y(this,el))&&oe(this,Nn,Ag).call(this)},OR=function(){if(y(this,tl)!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:s,pageX:a,pageY:o}}}=y(this,tm);let r=!!y(this,Sh),i=r?y(this,Sh):y(this,nm);for(const v of y(this,em))if(!i||Nt.intersect(v.data.rect,i)!==null){i=v.data.rect,r=!0;break}const l=Nt.normalizeRect([i[0],t[3]-i[1]+t[1],i[2],t[3]-i[3]+t[1]]),u=r?i[2]-i[0]+5:0,d=l[0]+u,h=l[1];U(this,tl,[100*(d-a)/n,100*(h-o)/s]);const{style:p}=y(this,ss);p.left=`${y(this,tl)[0]}%`,p.top=`${y(this,tl)[1]}%`},Ag=function(){U(this,el,!y(this,el)),y(this,el)?(oe(this,Nn,Tg).call(this),y(this,ss).addEventListener("click",y(this,_h)),y(this,ss).addEventListener("keydown",y(this,wh))):(oe(this,Nn,g6).call(this),y(this,ss).removeEventListener("click",y(this,_h)),y(this,ss).removeEventListener("keydown",y(this,wh)))},Tg=function(){y(this,or)||this.render(),this.isVisible?y(this,el)&&y(this,ss).classList.add("focused"):(oe(this,Nn,OR).call(this),y(this,ss).hidden=!1,y(this,ss).style.zIndex=parseInt(y(this,ss).style.zIndex)+1e3)},g6=function(){y(this,ss).classList.remove("focused"),!(y(this,el)||!this.isVisible)&&(y(this,ss).hidden=!0,y(this,ss).style.zIndex=parseInt(y(this,ss).style.zIndex)-1e3)};class NR extends us{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=nn.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const n of this.textContent){const s=document.createElement("span");s.textContent=n,t.append(s)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var am;class Q4e extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,am,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:s,height:a}=Bc(n.rect),o=this.svgFactory.create(s,a,!0),r=U(this,am,this.svgFactory.createElement("svg:line"));return r.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),r.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),r.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),r.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),r.setAttribute("stroke-width",n.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),o.append(r),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,am)}addHighlightArea(){this.container.classList.add("highlightArea")}}am=new WeakMap;var om;class eye extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,om,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:s,height:a}=Bc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=U(this,om,this.svgFactory.createElement("svg:rect"));return i.setAttribute("x",r/2),i.setAttribute("y",r/2),i.setAttribute("width",s-r),i.setAttribute("height",a-r),i.setAttribute("stroke-width",r||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),o.append(i),this.container.append(o),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return y(this,om)}addHighlightArea(){this.container.classList.add("highlightArea")}}om=new WeakMap;var rm;class tye extends us{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});ne(this,rm,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:s,height:a}=Bc(n.rect),o=this.svgFactory.create(s,a,!0),r=n.borderStyle.width,i=U(this,rm,this.svgFactory.createElement("svg:ellipse"));return i.setAttribute("cx",s/2),i.setAttribute("cy",a/2),i.setAttribute("rx",s/2-r/2),i.setAttribute("ry",a/2-r/2),i.setAttribute("str
`);if(!o)return;const r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();const i=r.getRangeAt(0);if(!o.includes(`
`)){i.insertNode(document.createTextNode(o)),this.editorDiv.normalize(),r.collapseToStart();return}const{startContainer:l,startOffset:c}=i,u=[],d=[];if(l.nodeType===Node.TEXT_NODE){const b=l.parentElement;if(d.push(l.nodeValue.slice(c).replaceAll(W2,"")),b!==this.editorDiv){let C=u;for(const w of this.editorDiv.childNodes){if(w===b){C=d;continue}C.push(oe(m=Bn,_l,Pg).call(m,w))}}u.push(l.nodeValue.slice(0,c).replaceAll(W2,""))}else if(l===this.editorDiv){let b=u,C=0;for(const w of this.editorDiv.childNodes)C++===c&&(b=d),b.push(oe(g=Bn,_l,Pg).call(g,w))}U(this,io,`${u.join(`
`)}${o}${d.join(`
`)}`),oe(this,vs,Rg).call(this);const h=new Range;let p=u.reduce((b,C)=>b+C.length,0);for(const{firstChild:b}of this.editorDiv.childNodes)if(b.nodeType===Node.TEXT_NODE){const C=b.nodeValue.length;if(p<=C){h.setStart(b,p),h.setEnd(b,p);break}p-=C}r.removeAllRanges(),r.addRange(h)}get contentDiv(){return this.editorDiv}static async deserialize(n,s,a){var i;let o=null;if(n instanceof NR){const{data:{defaultAppearanceData:{fontSize:l,fontColor:c},rect:u,rotation:d,id:h,popupRef:p},textContent:v,textPosition:m,parent:{page:{pageNumber:g}}}=n;if(!v||v.length===0)return null;o=n={annotationType:nn.FREETEXT,color:Array.from(c),fontSize:l,value:v.join(`
`),position:m,pageIndex:g-1,rect:u.slice(0),rotation:d,id:h,deleted:!1,popupRef:p}}const r=await super.deserialize(n,s,a);return U(r,lo,n.fontSize),U(r,rr,Nt.makeHexColor(...n.color)),U(r,io,oe(i=Bn,_l,C6).call(i,n.value)),r.annotationElementId=n.id||null,r._initialData=o,r}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const s=Bn._internalPadding*this.parentScale,a=this.getRect(s,s),o=es._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:y(this,rr)),r={annotationType:nn.FREETEXT,color:o,fontSize:y(this,lo),value:oe(this,vs,WR).call(this),pageIndex:this.pageIndex,rect:a,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?r:this.annotationElementId&&!oe(this,vs,jR).call(this,r)?null:(r.id=this.annotationElementId,r)}renderAnnotationElement(n){const s=super.renderAnnotationElement(n);if(this.deleted)return s;const{style:a}=s;a.fontSize=`calc(${y(this,lo)}px * var(--scale-factor))`,a.color=y(this,rr),s.replaceChildren();for(const r of y(this,io).split(`
`)){const i=document.createElement("div");i.append(r?document.createTextNode(r):document.createElement("br")),s.append(i)}const o=Bn._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(o,o),popupContent:y(this,io)}),s}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};rr=new WeakMap,io=new WeakMap,pm=new WeakMap,ud=new WeakMap,lo=new WeakMap,vs=new WeakSet,VR=function(n){const s=o=>{this.editorDiv.style.fontSize=`calc(${o}px * var(--scale-factor))`,this.translate(0,-(o-y(this,lo))*this.parentScale),U(this,lo,o),oe(this,vs,Mg).call(this)},a=y(this,lo);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pn.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},zR=function(n){const s=o=>{U(this,rr,this.editorDiv.style.color=o)},a=y(this,rr);this.addCommands({cmd:s.bind(this,n),undo:s.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pn.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},HR=function(){var a;const n=[];this.editorDiv.normalize();let s=null;for(const o of this.editorDiv.childNodes)(s==null?void 0:s.nodeType)===Node.TEXT_NODE&&o.nodeName==="BR"||(n.push(oe(a=Bn,_l,Pg).call(a,o)),s=o);return n.join(`
`)},Mg=function(){const[n,s]=this.parentDimensions;let a;if(this.isAttachedToDOM)a=this.div.getBoundingClientRect();else{const{currentLayer:o,div:r}=this,i=r.style.display,l=r.classList.contains("hidden");r.classList.remove("hidden"),r.style.display="hidden",o.div.append(this.div),a=r.getBoundingClientRect(),r.remove(),r.style.display=i,r.classList.toggle("hidden",l)}this.rotation%180===this.parentRotation%180?(this.width=a.width/n,this.height=a.height/s):(this.width=a.height/n,this.height=a.width/s),this.fixAndSetPosition()},_l=new WeakSet,Pg=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(W2,"")},Rg=function(){if(this.editorDiv.replaceChildren(),!!y(this,io))for(const n of y(this,io).split(`
`)){const s=document.createElement("div");s.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(s)}},WR=function(){return y(this,io).replaceAll(" "," ")},C6=function(n){return n.replaceAll(" "," ")},jR=function(n){const{value:s,fontSize:a,color:o,pageIndex:r}=this._initialData;return this._hasBeenMoved||n.value!==s||n.fontSize!==a||n.color.some((i,l)=>i!==o[l])||n.pageIndex!==r},ne(Bn,_l),Vt(Bn,"_freeTextDefaultContent",""),Vt(Bn,"_internalPadding",0),Vt(Bn,"_defaultColor",null),Vt(Bn,"_defaultFontSize",10),Vt(Bn,"_type","freetext"),Vt(Bn,"_editorType",nn.FREETEXT);let _6=Bn;class At{toSVGPath(){Dn("Abstract method `toSVGPath` must be implemented.")}get box(){Dn("Abstract getter `box` must be implemented.")}serialize(t,n){Dn("Abstract method `serialize` must be implemented.")}static _rescale(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i]*a,r[i+1]=s+t[i+1]*o;return r}static _rescaleAndSwap(t,n,s,a,o,r){r||(r=new Float32Array(t.length));for(let i=0,l=t.length;i<l;i+=2)r[i]=n+t[i+1]*a,r[i+1]=s+t[i]*o;return r}static _translate(t,n,s,a){a||(a=new Float32Array(t.length));for(let o=0,r=t.length;o<r;o+=2)a[o]=n+t[o],a[o+1]=s+t[o+1];return a}static svgRound(t){return Math.round(t*1e4)}static _normalizePoint(t,n,s,a,o){switch(o){case 90:return[1-n/s,t/a];case 180:return[1-t/s,1-n/a];case 270:return[n/s,1-t/a];default:return[t/s,n/a]}}static _normalizePagePoint(t,n,s){switch(s){case 90:return[1-n,t];case 180:return[1-t,1-n];case 270:return[n,1-t];default:return[t,n]}}static createBezierPoints(t,n,s,a,o,r){return[(t+5*s)/6,(n+5*a)/6,(5*s+o)/6,(5*a+r)/6,(s+o)/2,(a+r)/2]}}Vt(At,"PRECISION",1e-4);var co,ir,xh,Eh,ni,ln,dd,fd,vm,mm,kh,Ah,Cc,gm,J1,Z1,ks,ap,KR,UR,qR,GR,YR,XR;const $i=class $i{constructor({x:t,y:n},s,a,o,r,i=0){ne(this,ks);ne(this,co);ne(this,ir,[]);ne(this,xh);ne(this,Eh);ne(this,ni,[]);ne(this,ln,new Float32Array(18));ne(this,dd);ne(this,fd);ne(this,vm);ne(this,mm);ne(this,kh);ne(this,Ah);ne(this,Cc,[]);U(this,co,s),U(this,Ah,o*a),U(this,Eh,r),y(this,ln).set([NaN,NaN,NaN,NaN,t,n],6),U(this,xh,i),U(this,mm,y($i,gm)*a),U(this,vm,y($i,Z1)*a),U(this,kh,a),y(this,Cc).push(t,n)}isEmpty(){return isNaN(y(this,ln)[8])}add({x:t,y:n}){var I;U(this,dd,t),U(this,fd,n);const[s,a,o,r]=y(this,co);let[i,l,c,u]=y(this,ln).subarray(8,12);const d=t-c,h=n-u,p=Math.hypot(d,h);if(p<y(this,vm))return!1;const v=p-y(this,mm),m=v/p,g=m*d,b=m*h;let C=i,w=l;i=c,l=u,c+=g,u+=b,(I=y(this,Cc))==null||I.push(t,n);const _=-b/v,x=g/v,E=_*y(this,Ah),T=x*y(this,Ah);return y(this,ln).set(y(this,ln).subarray(2,8),0),y(this,ln).set([c+E,u+T],4),y(this,ln).set(y(this,ln).subarray(14,18),12),y(this,ln).set([c-E,u-T],16),isNaN(y(this,ln)[6])?(y(this,ni).length===0&&(y(this,ln).set([i+E,l+T],2),y(this,ni).push(NaN,NaN,NaN,NaN,(i+E-s)/o,(l+T-a)/r),y(this,ln).set([i-E,l-T],14),y(this,ir).push(NaN,NaN,NaN,NaN,(i-E-s)/o,(l-T-a)/r)),y(this,ln).set([C,w,i,l,c,u],6),!this.isEmpty()):(y(this,ln).set([C,w,i,l,c,u],6),Math.abs(Math.atan2(w-l,C-i)-Math.atan2(b,g))<Math.PI/2?([i,l,c,u]=y(this,ln).subarray(2,6),y(this,ni).push(NaN,NaN,NaN,NaN,((i+c)/2-s)/o,((l+u)/2-a)/r),[i,l,C,w]=y(this,ln).subarray(14,18),y(this,ir).push(NaN,NaN,NaN,NaN,((C+i)/2-s)/o,((w+l)/2-a)/r),!0):([C,w,i,l,c,u]=y(this,ln).subarray(0,6),y(this,ni).push(((C+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),[c,u,i,l,C,w]=y(this,ln).subarray(12,18),y(this,ir).push(((C+5*i)/6-s)/o,((w+5*l)/6-a)/r,((5*i+c)/6-s)/o,((5*l+u)/6-a)/r,((i+c)/2-s)/o,((l+u)/2-a)/r),!0))}toSVGPath(){if(this.isEmpty())return"";const t=y(this,ni),n=y(this,ir);if(isNaN(y(this,ln)[6])&&!this.isEmpty())return oe(this,ks,KR).call(this);const s=[];s.push(`M${t[4]} ${t[5]}`);for(let a=6;a<t.length;a+=6)isNaN(t[a])?s.push(`L${t[a+4]} ${t[a+5]}`):s.push(`C${t[a]} ${t[a+1]} ${t[a+2]} ${t[a+3]} ${t[a+4]} ${t[a+5]}`);oe(this,ks,qR).call(this,s);for(let a=n.length-6;a>=6;a-=6)isNaN(n[a])?s.push(`L${n[a+4]} ${n[a+5]}`):s.push(`C${n[a]} ${n[a+1]} ${n[a+2]} ${n[a+3]} ${n[a+4]} ${n[a+5]}`);return oe(this,ks,UR).call(this,s),s.join("
`):"(该页无材料明细行)",Rn.status=rn._validation_failed?"error":"done"}const yn=$e.results.filter(rn=>rn._validation_failed).length;yn>0?zs.warning(`VL 识别完成${$e.total_pages} 页中 ${yn} 页校验未通过内容可能为空`):zs.success(`VL 识别完成 ${$e.total_pages} `)}catch(Ae){clearInterval(Ze),b.value.filter($e=>$e.type==="A").forEach($e=>{$e.status==="recognizing"&&($e.status="error")}),zs.error(`VL 识别失败${Ae.message}`)}finally{x.value=!1}}async function we(ve){var me;ve.status="recognizing";try{const Ze=await fetch("/api/manual/ocr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:c.value,page_index:ve.page,x_ratio:ve.xr,y_ratio:ve.yr,w_ratio:ve.wr,h_ratio:ve.hr,region_type:ve.type})});if(!Ze.ok){const Ae=await Ze.json().catch(()=>({}));throw new Error(Ae.detail||`HTTP ${Ze.status}`)}const Je=await Ze.json();ve.text=Je.text,ve.boxes=Je.boxes||[],ve.tokens=((me=Je.token_usage)==null?void 0:me.total_tokens)??null,ve.status="done",C.value=ve.id,at()}catch(Ze){ve.status="error",zs.error(`区域 ${ve.type} 识别失败${Ze.message}`)}}async function Ge(){const ve=b.value.find(me=>me.type==="B");if(ve){b.value.filter(me=>me.type==="B"&&me.status==="pending").forEach(me=>{me.status="recognizing"});try{const me=await fetch("/api/manual/ocr-all-pages-vl-b",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:c.value,x_ratio:ve.xr,y_ratio:ve.yr,w_ratio:ve.wr,h_ratio:ve.hr,concurrency:5})});if(!me.ok){const Je=await me.json().catch(()=>({}));throw new Error(Je.detail||`HTTP ${me.status}`)}const Ze=await me.json();for(const Je of Ze.results){let Ae=b.value.find($e=>$e.type==="B"&&$e.page===Je.page_index);Ae||(Ae={id:crypto.randomUUID(),type:"B",page:Je.page_index,xr:ve.xr,yr:ve.yr,wr:ve.wr,hr:ve.hr,cx:ve.cx,cy:ve.cy,cw:ve.cw,ch:ve.ch,status:"pending",text:"",boxes:[],tokens:null},b.value.push(Ae)),Ae.text=Je.pipeline_no||"",Ae.status=Je.parse_error?"error":"done"}}catch(me){b.value.filter(Ze=>Ze.type==="B"&&Ze.status==="recognizing").forEach(Ze=>{Ze.status="error"}),zs.error(`管线号 VL 识别失败${me.message}`)}}}function wt(){var ve,me;for(const Ze of b.value.filter(Je=>Je.type==="B"&&Je.status==="done")){const Je=(ve=Ze.text)==null?void 0:ve.trim();if(!Je)continue;const Ae=b.value.find($e=>$e.type==="A"&&$e.page===Ze.page);(me=Ae==null?void 0:Ae.rows)!=null&&me.length&&(Ae.rows=Ae.rows.map($e=>({...$e,pipe_no:Je})))}}async function Ut(){if(!b.value.filter($e=>$e.status==="pending").length)return;const me=le.value>0,Ze=b.value.some($e=>$e.type==="B"),Je=[];me&&Je.push(Ue()),Ze&&Je.push(Ge()),Je.length&&await Promise.all(Je),me&&Ze&&wt();const Ae=b.value.filter($e=>$e.type==="C"&&$e.status==="pending");if(Ae.length){w.value=!0;for(const $e of Ae)await we($e);w.value=!1}zs.success("全部识别完成"),await ze(),await gn()}async function gn(){const ve=Z.value;if(ve.length)try{const me=await fetch("/api/manual/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:ve.map(Ae=>({id:Ae.id,region_type:Ae.type,page_index:Ae.page,text:Ae.text,boxes:Ae.boxes||[],rows:Ae.rows||[]})),format:"json"})});if(!me.ok)return;const Ze=await me.text(),Je=document.getElementById("resultdata");Je&&(Je.value=Ze)}catch{}}async function bn(ve){const me=Z.value;if(me.length){_.value=ve;try{const Ze=await fetch("/api/manual/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({regions:me.map(lt=>({id:lt.id,region_type:lt.type,page_index:lt.page,text:lt.text,boxes:lt.boxes||[],rows:lt.rows||[]})),format:ve})});if(!Ze.ok){const lt=await Ze.json().catch(()=>({}));throw new Error(lt.detail||`HTTP ${Ze.status}`)}const Je=await Ze.blob(),Ae=URL.createObjectURL(Je),$e=document.createElement("a");$e.href=Ae,$e.download=ve==="excel"?"manual_ocr_result.xlsx":"manual_ocr_result.json",$e.click(),URL.revokeObjectURL(Ae),zs.success("导出成功")}catch(Ze){zs.error(`导出失败${Ze.message}`)}finally{_.value=""}}}async function Be(ve){try{await n