diff --git a/www/js/zui3/zui.zentao.js b/www/js/zui3/zui.zentao.js index 07acadb697..42e8c053f6 100644 --- a/www/js/zui3/zui.zentao.js +++ b/www/js/zui3/zui.zentao.js @@ -1,37 +1,37 @@ -var k_=(M,Ct,on)=>{if(!Ct.has(M))throw TypeError("Cannot "+on)};var rr=(M,Ct,on)=>(k_(M,Ct,"read from private field"),on?on.call(M):Ct.get(M)),pf=(M,Ct,on)=>{if(Ct.has(M))throw TypeError("Cannot add the same private member more than once");Ct instanceof WeakSet?Ct.add(M):Ct.set(M,on)},or=(M,Ct,on,mc)=>(k_(M,Ct,"write to private field"),mc?mc.call(M,on):Ct.set(M,on),on);(function(M,Ct){typeof exports=="object"&&typeof module<"u"?Ct(exports):typeof define=="function"&&define.amd?define(["exports"],Ct):(M=typeof globalThis<"u"?globalThis:M||self,Ct(M.zui={}))})(this,function(M){var Ss,Ts,Uv,Vv;"use strict";const Ct="",on="",mc="",QS="",eT="",tT="",nT="",sT="",iT="",rT="",oT="",aT="",gc="3.0.0",wf="production",Cf="a534e2d5e033f7f08c1566d37120ddcc06fe9261",On=document,Mo=window,xf=On.documentElement,Ls=On.createElement.bind(On),kf=Ls("div"),yc=Ls("table"),j_=Ls("tbody"),Sf=Ls("tr"),{isArray:No,prototype:Tf}=Array,{concat:B_,filter:vc,indexOf:$f,map:Df,push:H_,slice:If,some:_c,splice:U_}=Tf,V_=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,W_=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,K_=/<.+>/,q_=/^\w+$/;function bc(i,e){const t=G_(e);return!i||!t&&!Rs(e)&&!mt(e)?[]:!t&&W_.test(i)?e.getElementsByClassName(i.slice(1).replace(/\\/g,"")):!t&&q_.test(i)?e.getElementsByTagName(i):e.querySelectorAll(i)}class Eo{constructor(e,t){if(!e)return;if(wc(e))return e;let n=e;if(Pt(e)){const s=t||On;if(n=V_.test(e)&&Rs(s)?s.getElementById(e.slice(1).replace(/\\/g,"")):K_.test(e)?Lf(e):wc(s)?s.find(e):Pt(s)?v(s).find(e):bc(e,s),!n)return}else if(zs(e))return this.ready(e);(n.nodeType||n===Mo)&&(n=[n]),this.length=n.length;for(let s=0,r=this.length;s{for(;e.firstChild;)e.removeChild(e.firstChild)})};function Ao(...i){const e=Y_(i[0])?i.shift():!1,t=i.shift(),n=i.length;if(!t)return{};if(!n)return Ao(e,v,t);for(let s=0;s{mt(r)&&xt(t,(o,a)=>{n?e?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},ce.addClass=function(i){return this.toggleClass(i,!0)},ce.removeAttr=function(i){const e=Po(i);return this.each((t,n)=>{mt(n)&&xt(e,(s,r)=>{n.removeAttribute(r)})})};function X_(i,e){if(i){if(Pt(i)){if(arguments.length<2){if(!this[0]||!mt(this[0]))return;const t=this[0].getAttribute(i);return cr(t)?void 0:t}return Ht(e)?this:cr(e)?this.removeAttr(i):this.each((t,n)=>{mt(n)&&n.setAttribute(i,e)})}for(const t in i)this.attr(t,i[t]);return this}}ce.attr=X_,ce.removeClass=function(i){return arguments.length?this.toggleClass(i,!1):this.attr("class","")},ce.hasClass=function(i){return!!i&&_c.call(this,e=>mt(e)&&e.classList.contains(i))},ce.get=function(i){return Ht(i)?If.call(this):(i=Number(i),this[i<0?i+this.length:i])},ce.eq=function(i){return v(this.get(i))},ce.first=function(){return this.eq(0)},ce.last=function(){return this.eq(-1)};function Q_(i){return Ht(i)?this.get().map(e=>mt(e)||Z_(e)?e.textContent:"").join(""):this.each((e,t)=>{mt(t)&&(t.textContent=i)})}ce.text=Q_;function jn(i,e,t){if(!mt(i))return;const n=Mo.getComputedStyle(i,null);return t?n.getPropertyValue(e)||void 0:n[e]||i.style[e]}function wn(i,e){return parseInt(jn(i,e),10)||0}function Nf(i,e){return wn(i,`border${e?"Left":"Top"}Width`)+wn(i,`padding${e?"Left":"Top"}`)+wn(i,`padding${e?"Right":"Bottom"}`)+wn(i,`border${e?"Right":"Bottom"}Width`)}const xc={};function eb(i){if(xc[i])return xc[i];const e=Ls(i);On.body.insertBefore(e,null);const t=jn(e,"display");return On.body.removeChild(e),xc[i]=t!=="none"?t:"block"}function Ef(i){return jn(i,"display")==="none"}function Af(i,e){const t=i&&(i.matches||i.webkitMatchesSelector||i.msMatchesSelector);return!!t&&!!e&&t.call(i,e)}function Lo(i){return Pt(i)?(e,t)=>Af(t,i):zs(i)?i:wc(i)?(e,t)=>i.is(t):i?(e,t)=>t===i:()=>!1}ce.filter=function(i){const e=Lo(i);return v(vc.call(this,(t,n)=>e.call(t,n,t)))};function ss(i,e){return e?i.filter(e):i}ce.detach=function(i){return ss(this,i).each((e,t)=>{t.parentNode&&t.parentNode.removeChild(t)}),this};const tb=/^\s*<(\w+)[^>]*>/,nb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Pf={"*":kf,tr:j_,td:Sf,th:Sf,thead:yc,tbody:yc,tfoot:yc};function Lf(i){if(!Pt(i))return[];if(nb.test(i))return[Ls(RegExp.$1)];const e=tb.test(i)&&RegExp.$1,t=Pf[e]||Pf["*"];return t.innerHTML=i,v(t.childNodes).detach().get()}v.parseHTML=Lf,ce.has=function(i){const e=Pt(i)?(t,n)=>bc(i,n).length:(t,n)=>n.contains(i);return this.filter(e)},ce.not=function(i){const e=Lo(i);return this.filter((t,n)=>(!Pt(i)||mt(n))&&!e.call(n,t,n))};function Bn(i,e,t,n){const s=[],r=zs(e),o=n&&Lo(n);for(let a=0,l=i.length;ae.selected&&!e.disabled&&!e.parentNode.disabled),"value"):i.value||""}function sb(i){return arguments.length?this.each((e,t)=>{const n=t.multiple&&t.options;if(n||qf.test(t.type)){const s=No(i)?Df.call(i,String):cr(i)?[]:[String(i)];n?xt(t.options,(r,o)=>{o.selected=s.indexOf(o.value)>=0},!0):t.checked=s.indexOf(t.value)>=0}else t.value=Ht(i)||cr(i)?"":i}):this[0]&&Rf(this[0])}ce.val=sb,ce.is=function(i){const e=Lo(i);return _c.call(this,(t,n)=>e.call(t,n,t))},v.guid=1;function Cn(i){return i.length>1?vc.call(i,(e,t,n)=>$f.call(n,e)===t):i}v.unique=Cn,ce.add=function(i,e){return v(Cn(this.get().concat(v(i,e).get())))},ce.children=function(i){return ss(v(Cn(Bn(this,e=>e.children))),i)},ce.parent=function(i){return ss(v(Cn(Bn(this,"parentNode"))),i)},ce.index=function(i){const e=i?v(i)[0]:this[0],t=i?this:v(e).parent().children();return $f.call(t,e)},ce.closest=function(i){const e=this.filter(i);if(e.length)return e;const t=this.parent();return t.length?t.closest(i):e},ce.siblings=function(i){return ss(v(Cn(Bn(this,e=>v(e).parent().children().not(e)))),i)},ce.find=function(i){return v(Cn(Bn(this,e=>bc(i,e))))};const ib=/^\s*\s*$/g,rb=/^$|^module$|\/(java|ecma)script/i,ob=["type","src","nonce","noModule"];function ab(i,e){const t=v(i);t.filter("script").add(t.find("script")).each((n,s)=>{if(rb.test(s.type)&&xf.contains(s)){const r=Ls("script");r.text=s.textContent.replace(ib,""),xt(ob,(o,a)=>{s[a]&&(r[a]=s[a])}),e.head.insertBefore(r,null),e.head.removeChild(r)}})}function lb(i,e,t,n,s){n?i.insertBefore(e,t?i.firstChild:null):i.nodeName==="HTML"?i.parentNode.replaceChild(e,i):i.parentNode.insertBefore(e,t?i:i.nextSibling),s&&ab(e,i.ownerDocument)}function is(i,e,t,n,s,r,o,a){return xt(i,(l,c)=>{xt(v(c),(h,d)=>{xt(v(e),(f,m)=>{const y=t?d:m,b=t?m:d,w=t?h:f;lb(y,w?b.cloneNode(!0):b,n,s,!w)},a)},o)},r),e}ce.after=function(){return is(arguments,this,!1,!1,!1,!0,!0)},ce.append=function(){return is(arguments,this,!1,!1,!0)};function cb(i){if(!arguments.length)return this[0]&&this[0].innerHTML;if(Ht(i))return this;const e=/]/.test(i);return this.each((t,n)=>{mt(n)&&(e?v(n).empty().append(i):n.innerHTML=i)})}ce.html=cb,ce.appendTo=function(i){return is(arguments,this,!0,!1,!0)},ce.wrapInner=function(i){return this.each((e,t)=>{const n=v(t),s=n.contents();s.length?s.wrapAll(i):n.append(i)})},ce.before=function(){return is(arguments,this,!1,!0)},ce.wrapAll=function(i){let e=v(i),t=e[0];for(;t.children.length;)t=t.firstElementChild;return this.first().before(e),this.appendTo(t)},ce.wrap=function(i){return this.each((e,t)=>{const n=v(i)[0];v(t).wrapAll(e?n.cloneNode(!0):n)})},ce.insertAfter=function(i){return is(arguments,this,!0,!1,!1,!1,!1,!0)},ce.insertBefore=function(i){return is(arguments,this,!0,!0)},ce.prepend=function(){return is(arguments,this,!1,!0,!0,!0,!0)},ce.prependTo=function(i){return is(arguments,this,!0,!0,!0,!1,!1,!0)},ce.contents=function(){return v(Cn(Bn(this,i=>i.tagName==="IFRAME"?[i.contentDocument]:i.tagName==="TEMPLATE"?i.content.childNodes:i.childNodes)))},ce.next=function(i,e,t){return ss(v(Cn(Bn(this,"nextElementSibling",e,t))),i)},ce.nextAll=function(i){return this.next(i,!0)},ce.nextUntil=function(i,e){return this.next(e,!0,i)},ce.parents=function(i,e){return ss(v(Cn(Bn(this,"parentElement",!0,e))),i)},ce.parentsUntil=function(i,e){return this.parents(e,i)},ce.prev=function(i,e,t){return ss(v(Cn(Bn(this,"previousElementSibling",e,t))),i)},ce.prevAll=function(i){return this.prev(i,!0)},ce.prevUntil=function(i,e){return this.prev(e,!0,i)},ce.map=function(i){return v(B_.apply([],Df.call(this,(e,t)=>i.call(e,t,e))))},ce.clone=function(){return this.map((i,e)=>e.cloneNode(!0))},ce.offsetParent=function(){return this.map((i,e)=>{let t=e.offsetParent;for(;t&&jn(t,"position")==="static";)t=t.offsetParent;return t||xf})},ce.slice=function(i,e){return v(If.call(this,i,e))};const hb=/-([a-z])/g;function kc(i){return i.replace(hb,(e,t)=>t.toUpperCase())}ce.ready=function(i){const e=()=>setTimeout(i,0,v);return On.readyState!=="loading"?e():On.addEventListener("DOMContentLoaded",e),this},ce.unwrap=function(){return this.parent().each((i,e)=>{if(e.tagName==="BODY")return;const t=v(e);t.replaceWith(t.children())}),this},ce.offset=function(){const i=this[0];if(!i)return;const e=i.getBoundingClientRect();return{top:e.top+Mo.pageYOffset,left:e.left+Mo.pageXOffset}},ce.position=function(){const i=this[0];if(!i)return;const e=jn(i,"position")==="fixed",t=e?i.getBoundingClientRect():this.offset();if(!e){const n=i.ownerDocument;let s=i.offsetParent||n.documentElement;for(;(s===n.body||s===n.documentElement)&&jn(s,"position")==="static";)s=s.parentNode;if(s!==i&&mt(s)){const r=v(s).offset();t.top-=r.top+wn(s,"borderTopWidth"),t.left-=r.left+wn(s,"borderLeftWidth")}}return{top:t.top-wn(i,"marginTop"),left:t.left-wn(i,"marginLeft")}};const zf={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};ce.prop=function(i,e){if(i){if(Pt(i))return i=zf[i]||i,arguments.length<2?this[0]&&this[0][i]:this.each((t,n)=>{n[i]=e});for(const t in i)this.prop(t,i[t]);return this}},ce.removeProp=function(i){return this.each((e,t)=>{delete t[zf[i]||i]})};const db=/^--/;function Sc(i){return db.test(i)}const Tc={},{style:ub}=kf,fb=["webkit","moz","ms"];function pb(i,e=Sc(i)){if(e)return i;if(!Tc[i]){const t=kc(i),n=`${t[0].toUpperCase()}${t.slice(1)}`,s=`${t} ${fb.join(`${n} `)}${n}`.split(" ");xt(s,(r,o)=>{if(o in ub)return Tc[i]=o,!1})}return Tc[i]}const mb={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function Ff(i,e,t=Sc(i)){return!t&&!mb[i]&&Mf(e)?`${e}px`:e}function gb(i,e){if(Pt(i)){const t=Sc(i);return i=pb(i,t),arguments.length<2?this[0]&&jn(this[0],i,t):i?(e=Ff(i,e,t),this.each((n,s)=>{mt(s)&&(t?s.style.setProperty(i,e):s.style[i]=e)})):this}for(const t in i)this.css(t,i[t]);return this}ce.css=gb;function Of(i,e){try{return i(e)}catch{return e}}const yb=/^\s+|\s+$/;function jf(i,e){const t=i.dataset[e]||i.dataset[kc(e)];return yb.test(t)?t:Of(JSON.parse,t)}function vb(i,e,t){t=Of(JSON.stringify,t),i.dataset[kc(e)]=t}function _b(i,e){if(!i){if(!this[0])return;const t={};for(const n in this[0].dataset)t[n]=jf(this[0],n);return t}if(Pt(i))return arguments.length<2?this[0]&&jf(this[0],i):Ht(e)?this:this.each((t,n)=>{vb(n,i,e)});for(const t in i)this.data(t,i[t]);return this}ce.data=_b;function Bf(i,e){const t=i.documentElement;return Math.max(i.body[`scroll${e}`],t[`scroll${e}`],i.body[`offset${e}`],t[`offset${e}`],t[`client${e}`])}xt([!0,!1],(i,e)=>{xt(["Width","Height"],(t,n)=>{const s=`${e?"outer":"inner"}${n}`;ce[s]=function(r){if(this[0])return mi(this[0])?e?this[0][`inner${n}`]:this[0].document.documentElement[`client${n}`]:Rs(this[0])?Bf(this[0],n):this[0][`${e?"offset":"client"}${n}`]+(r&&e?wn(this[0],`margin${t?"Top":"Left"}`)+wn(this[0],`margin${t?"Bottom":"Right"}`):0)}})}),xt(["Width","Height"],(i,e)=>{const t=e.toLowerCase();ce[t]=function(n){if(!this[0])return Ht(n)?void 0:this;if(!arguments.length)return mi(this[0])?this[0].document.documentElement[`client${e}`]:Rs(this[0])?Bf(this[0],e):this[0].getBoundingClientRect()[t]-Nf(this[0],!i);const s=parseInt(n,10);return this.each((r,o)=>{if(!mt(o))return;const a=jn(o,"boxSizing");o.style[t]=Ff(t,s+(a==="border-box"?Nf(o,!i):0))})}});const Hf="___cd";ce.toggle=function(i){return this.each((e,t)=>{if(!mt(t))return;const n=Ef(t);(Ht(i)?n:i)?(t.style.display=t[Hf]||"",Ef(t)&&(t.style.display=eb(t.tagName))):n||(t[Hf]=jn(t,"display"),t.style.display="none")})},ce.hide=function(){return this.toggle(!1)},ce.show=function(){return this.toggle(!0)};const Uf="___ce",$c=".",Dc={focus:"focusin",blur:"focusout"},Vf={mouseenter:"mouseover",mouseleave:"mouseout"},bb=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Ic(i){return Vf[i]||Dc[i]||i}function Mc(i){const e=i.split($c);return[e[0],e.slice(1).sort()]}ce.trigger=function(i,e){if(Pt(i)){const[n,s]=Mc(i),r=Ic(n);if(!r)return this;const o=bb.test(r)?"MouseEvents":"HTMLEvents";i=On.createEvent(o),i.initEvent(r,!0,!0),i.namespace=s.join($c),i.___ot=n}i.___td=e;const t=i.___ot in Dc;return this.each((n,s)=>{t&&zs(s[i.___ot])&&(s[`___i${i.type}`]=!0,s[i.___ot](),s[`___i${i.type}`]=!1),s.dispatchEvent(i)})};function Wf(i){return i[Uf]=i[Uf]||{}}function wb(i,e,t,n,s){const r=Wf(i);r[e]=r[e]||[],r[e].push([t,n,s]),i.addEventListener(e,s)}function Kf(i,e){return!e||!_c.call(e,t=>i.indexOf(t)<0)}function Ro(i,e,t,n,s){const r=Wf(i);if(e)r[e]&&(r[e]=r[e].filter(([o,a,l])=>{if(s&&l.guid!==s.guid||!Kf(o,t)||n&&n!==a)return!0;i.removeEventListener(e,l)}));else for(e in r)Ro(i,e,t,n,s)}ce.off=function(i,e,t){if(Ht(i))this.each((n,s)=>{!mt(s)&&!Rs(s)&&!mi(s)||Ro(s)});else if(Pt(i))zs(e)&&(t=e,e=""),xt(Po(i),(n,s)=>{const[r,o]=Mc(s),a=Ic(r);this.each((l,c)=>{!mt(c)&&!Rs(c)&&!mi(c)||Ro(c,a,o,e,t)})});else for(const n in i)this.off(n,i[n]);return this},ce.remove=function(i){return ss(this,i).detach().off(),this},ce.replaceWith=function(i){return this.before(i).remove()},ce.replaceAll=function(i){return v(i).replaceWith(this),this};function Cb(i,e,t,n,s){if(!Pt(i)){for(const r in i)this.on(r,e,t,i[r],s);return this}return Pt(e)||(Ht(e)||cr(e)?e="":Ht(t)?(t=e,e=""):(n=t,t=e,e="")),zs(n)||(n=t,t=void 0),n?(xt(Po(i),(r,o)=>{const[a,l]=Mc(o),c=Ic(a),h=a in Vf,d=a in Dc;c&&this.each((f,m)=>{if(!mt(m)&&!Rs(m)&&!mi(m))return;const y=function(b){if(b.target[`___i${b.type}`])return b.stopImmediatePropagation();if(b.namespace&&!Kf(l,b.namespace.split($c))||!e&&(d&&(b.target!==m||b.___ot===c)||h&&b.relatedTarget&&m.contains(b.relatedTarget)))return;let w=m;if(e){let $=b.target;for(;!Af($,e);)if($===m||($=$.parentNode,!$))return;w=$}Object.defineProperty(b,"currentTarget",{configurable:!0,get(){return w}}),Object.defineProperty(b,"delegateTarget",{configurable:!0,get(){return m}}),Object.defineProperty(b,"data",{configurable:!0,get(){return t}});const x=n.call(w,b,b.___td);s&&Ro(m,c,l,e,y),x===!1&&(b.preventDefault(),b.stopPropagation())};y.guid=n.guid=n.guid||v.guid++,wb(m,c,l,e,y)})}),this):this}ce.on=Cb;function xb(i,e,t,n){return this.on(i,e,t,n,!0)}ce.one=xb;const kb=/\r?\n/g;function Sb(i,e){return`&${encodeURIComponent(i)}=${encodeURIComponent(e.replace(kb,`\r -`))}`}const Tb=/file|reset|submit|button|image/i,qf=/radio|checkbox/i;ce.serialize=function(){let i="";return this.each((e,t)=>{xt(t.elements||[t],(n,s)=>{if(s.disabled||!s.name||s.tagName==="FIELDSET"||Tb.test(s.type)||qf.test(s.type)&&!s.checked)return;const r=Rf(s);if(!Ht(r)){const o=No(r)?r:[r];xt(o,(a,l)=>{i+=Sb(s.name,l)})}})}),i.slice(1)},window.$=v;function Gf(i,e){if(i==null)return[i,void 0];typeof e=="string"&&(e=e.split("."));const t=e.join(".");let n=i;const s=[n];for(;typeof n=="object"&&n!==null&&e.length;){let r=e.shift(),o;const a=r.indexOf("[");if(a>0&&a1?s[r-2]:i,e[e.length-1]),o===void 0?t:o}catch{return t}}function an(i,e,t,n){let s;const r=hr(i,e,void 0,o=>{s=o});return typeof r=="function"?r.apply(n??s,t):r}function gi(i){return typeof i=="string"&&i!==""}function De(i,...e){if(e.length===0)return i;if(e.length===1&&typeof e[0]=="object"&&e[0]){const t=e[0];return Object.keys(t).forEach(n=>{const s=t[n]??"";i=i.replace(new RegExp(`\\{${n}\\}`,"g"),`${s}`)}),i}for(let t=0;t(i[i.B=1]="B",i[i.KB=1024]="KB",i[i.MB=1048576]="MB",i[i.GB=1073741824]="GB",i[i.TB=1099511627776]="TB",i))(Nc||{});function ut(i,e=2,t){return Number.isNaN(i)?"?KB":(t||(i<1024?t="B":i<1048576?t="KB":i<1073741824?t="MB":i<1099511627776?t="GB":t="TB"),(i/Nc[t]).toFixed(e)+t)}const xn=i=>{const e=/^[0-9]*(B|KB|MB|GB|TB)$/;i=i.toUpperCase(),i.endsWith("B")||(i+="B");const t=i.match(e);if(!t)return 0;const n=t[1];return i=i.replace(n,""),Number.parseInt(i,10)*Nc[n]},Hn=i=>i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");let Ec=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),Un;function Zf(){return Ec}function $b(i){Ec=i.toLowerCase().replace("-","_")}function Yf(i,e){Un||(Un={}),typeof i=="string"&&(i={[i]:e??{}}),v.extend(!0,Un,i)}function Ee(i,e,t,n,s,r){Array.isArray(i)?Un&&i.unshift(Un):i=Un?[Un,i]:[i],typeof t=="string"&&(r=s,s=n,n=t,t=void 0);const o=s||Ec;let a;for(const l of i){if(!l)continue;const c=l[o]||l.default;if(!c)continue;const h=r&&l===Un?`${r}.${e}`:e;if(a=hr(c,h),a!==void 0)break}return a===void 0?n:t?De(a,...Array.isArray(t)?t:[t]):a}function Db(i,e,t,n){return Ee(void 0,i,e,t,n)}Ee.addLang=Yf,Ee.getLang=Db,Ee.getCode=Zf,Ee.setCode=$b,Ee.map=Un,Yf({zh_cn:{confirm:"确定",save:"保存",cancel:"取消",delete:"删除",reset:"重置",add:"添加",copy:"复制",close:"关闭",edit:"编辑",open:"打开"},zh_tw:{confirm:"確定",save:"儲存",cancel:"取消",delete:"刪除",reset:"重置",add:"添加",Copy:"複製",close:"關閉",edit:"編輯",open:"打開"},en:{confirm:"Confirm",save:"Save",cancel:"Cancel",delete:"Delete",reset:"Reset",add:"Add",copy:"Copy",close:"Close",edit:"Edit",open:"Open"}});function Fs(i,e,t){t!=null&&(Array.isArray(t)?t.forEach(n=>Fs(i,e,n)):!(t instanceof Blob)&&v.isPlainObject(t)?Object.entries(t).forEach(([n,s])=>{Fs(i,`${e}[${n}]`,s)}):i.append(e,t instanceof Blob?t:String(t)))}function dr(i,e){const t=e||new FormData;return i&&(typeof i=="string"&&(i=new URLSearchParams(i)),i instanceof URLSearchParams?i.forEach((n,s)=>{Fs(t,s,n)}):Array.isArray(i)?i.forEach(([n,s])=>{Fs(t,n,s)}):i instanceof FormData?i.forEach((n,s)=>{Fs(t,s,n)}):typeof i=="object"&&i&&Object.entries(i).forEach(([n,s])=>{Fs(t,n,s)})),t}function Ye(){return v.guid++}function ur(i,e){if(i===e)return!1;if(i&&e){const t=typeof i,n=typeof e;if(t!==n)return!0;if(t==="object"&&n==="object"){const s=Array.isArray(i),r=Array.isArray(e);if(s!==r)return!0;if(s&&r){if(i.length!==e.length)return!0;for(let l=0;ln instanceof Os?n.value!==t[s]:ur(n,t[s])))&&(this._value=this._compute(),this._lastDependencies=e.map(n=>n instanceof Os?n.cache:n)),this._value}}function Ac(...i){const e=[],t=new Map,n=(s,r)=>{if(Array.isArray(s)&&(r=s[1],s=s[0]),!s.length)return;const o=t.get(s);typeof o=="number"?e[o][1]=!!r:(t.set(s,e.length),e.push([s,!!r]))};return i.forEach(s=>{typeof s=="function"&&(s=s()),Array.isArray(s)?Ac(...s).forEach(n):s&&typeof s=="object"?Object.entries(s).forEach(n):typeof s=="string"&&s.split(" ").forEach(r=>n(r,!0))}),e.sort((s,r)=>(t.get(s[0])||0)-(t.get(r[0])||0))}const W=(...i)=>Ac(...i).reduce((e,[t,n])=>(n&&e.push(t),e),[]).join(" ");v.classes=W,v.fn.setClass=function(i,...e){return this.each((t,n)=>{const s=v(n);i===!0?s.attr("class",W(s.attr("class"),...e)):s.addClass(W(i,...e))})};const yi=new WeakMap;function zo(i,e,t){const n=yi.has(i),s=n?yi.get(i):{};typeof e=="string"?s[e]=t:e===null?Object.keys(s).forEach(r=>{delete s[r]}):Object.assign(s,e),Object.keys(s).forEach(r=>{s[r]===void 0&&delete s[r]}),Object.keys(s).length?(!n&&i instanceof Element&&Object.assign(s,v(i).dataset(),s),yi.set(i,s)):yi.delete(i)}function fr(i,e,t){let n=yi.get(i)||{};return t&&i instanceof Element&&(n=Object.assign({},v(i).dataset(),n)),e===void 0?n:n[e]}function Ib(i){yi.delete(i)}v.fn.dataset=v.fn.data,v.fn.data=function(...i){const[e,t]=i;return!i.length||i.length===1&&typeof e=="string"?this.length?fr(this[0],e,!0):void 0:this.each((n,s)=>zo(s,e,t))},v.fn.removeData=function(i=null){return this.each((e,t)=>zo(t,i))};function rs(i,...e){return i.includes("RAWJS")&&(i=i.split('"RAWJS<').join("").split('>RAWJS"').join("").split("").join('"').split("").join(` +var k_=(M,Ct,on)=>{if(!Ct.has(M))throw TypeError("Cannot "+on)};var rr=(M,Ct,on)=>(k_(M,Ct,"read from private field"),on?on.call(M):Ct.get(M)),pf=(M,Ct,on)=>{if(Ct.has(M))throw TypeError("Cannot add the same private member more than once");Ct instanceof WeakSet?Ct.add(M):Ct.set(M,on)},or=(M,Ct,on,mc)=>(k_(M,Ct,"write to private field"),mc?mc.call(M,on):Ct.set(M,on),on);(function(M,Ct){typeof exports=="object"&&typeof module<"u"?Ct(exports):typeof define=="function"&&define.amd?define(["exports"],Ct):(M=typeof globalThis<"u"?globalThis:M||self,Ct(M.zui={}))})(this,function(M){var Ss,Ts,Uv,Vv;"use strict";const Ct="",on="",mc="",QS="",eT="",tT="",nT="",sT="",iT="",rT="",oT="",aT="",gc="3.0.0",wf="production",Cf="a534e2d5e033f7f08c1566d37120ddcc06fe9261",On=document,Mo=window,xf=On.documentElement,Ls=On.createElement.bind(On),kf=Ls("div"),yc=Ls("table"),j_=Ls("tbody"),Sf=Ls("tr"),{isArray:No,prototype:Tf}=Array,{concat:B_,filter:vc,indexOf:$f,map:Df,push:H_,slice:If,some:_c,splice:U_}=Tf,V_=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,W_=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,K_=/<.+>/,q_=/^\w+$/;function bc(i,e){const t=G_(e);return!i||!t&&!Rs(e)&&!mt(e)?[]:!t&&W_.test(i)?e.getElementsByClassName(i.slice(1).replace(/\\/g,"")):!t&&q_.test(i)?e.getElementsByTagName(i):e.querySelectorAll(i)}class Eo{constructor(e,t){if(!e)return;if(wc(e))return e;let n=e;if(Pt(e)){const s=t||On;if(n=V_.test(e)&&Rs(s)?s.getElementById(e.slice(1).replace(/\\/g,"")):K_.test(e)?Lf(e):wc(s)?s.find(e):Pt(s)?y(s).find(e):bc(e,s),!n)return}else if(zs(e))return this.ready(e);(n.nodeType||n===Mo)&&(n=[n]),this.length=n.length;for(let s=0,r=this.length;s{for(;e.firstChild;)e.removeChild(e.firstChild)})};function Ao(...i){const e=Y_(i[0])?i.shift():!1,t=i.shift(),n=i.length;if(!t)return{};if(!n)return Ao(e,y,t);for(let s=0;s{mt(r)&&xt(t,(o,a)=>{n?e?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},le.addClass=function(i){return this.toggleClass(i,!0)},le.removeAttr=function(i){const e=Po(i);return this.each((t,n)=>{mt(n)&&xt(e,(s,r)=>{n.removeAttribute(r)})})};function X_(i,e){if(i){if(Pt(i)){if(arguments.length<2){if(!this[0]||!mt(this[0]))return;const t=this[0].getAttribute(i);return cr(t)?void 0:t}return Ht(e)?this:cr(e)?this.removeAttr(i):this.each((t,n)=>{mt(n)&&n.setAttribute(i,e)})}for(const t in i)this.attr(t,i[t]);return this}}le.attr=X_,le.removeClass=function(i){return arguments.length?this.toggleClass(i,!1):this.attr("class","")},le.hasClass=function(i){return!!i&&_c.call(this,e=>mt(e)&&e.classList.contains(i))},le.get=function(i){return Ht(i)?If.call(this):(i=Number(i),this[i<0?i+this.length:i])},le.eq=function(i){return y(this.get(i))},le.first=function(){return this.eq(0)},le.last=function(){return this.eq(-1)};function Q_(i){return Ht(i)?this.get().map(e=>mt(e)||Z_(e)?e.textContent:"").join(""):this.each((e,t)=>{mt(t)&&(t.textContent=i)})}le.text=Q_;function jn(i,e,t){if(!mt(i))return;const n=Mo.getComputedStyle(i,null);return t?n.getPropertyValue(e)||void 0:n[e]||i.style[e]}function wn(i,e){return parseInt(jn(i,e),10)||0}function Nf(i,e){return wn(i,`border${e?"Left":"Top"}Width`)+wn(i,`padding${e?"Left":"Top"}`)+wn(i,`padding${e?"Right":"Bottom"}`)+wn(i,`border${e?"Right":"Bottom"}Width`)}const xc={};function eb(i){if(xc[i])return xc[i];const e=Ls(i);On.body.insertBefore(e,null);const t=jn(e,"display");return On.body.removeChild(e),xc[i]=t!=="none"?t:"block"}function Ef(i){return jn(i,"display")==="none"}function Af(i,e){const t=i&&(i.matches||i.webkitMatchesSelector||i.msMatchesSelector);return!!t&&!!e&&t.call(i,e)}function Lo(i){return Pt(i)?(e,t)=>Af(t,i):zs(i)?i:wc(i)?(e,t)=>i.is(t):i?(e,t)=>t===i:()=>!1}le.filter=function(i){const e=Lo(i);return y(vc.call(this,(t,n)=>e.call(t,n,t)))};function ss(i,e){return e?i.filter(e):i}le.detach=function(i){return ss(this,i).each((e,t)=>{t.parentNode&&t.parentNode.removeChild(t)}),this};const tb=/^\s*<(\w+)[^>]*>/,nb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Pf={"*":kf,tr:j_,td:Sf,th:Sf,thead:yc,tbody:yc,tfoot:yc};function Lf(i){if(!Pt(i))return[];if(nb.test(i))return[Ls(RegExp.$1)];const e=tb.test(i)&&RegExp.$1,t=Pf[e]||Pf["*"];return t.innerHTML=i,y(t.childNodes).detach().get()}y.parseHTML=Lf,le.has=function(i){const e=Pt(i)?(t,n)=>bc(i,n).length:(t,n)=>n.contains(i);return this.filter(e)},le.not=function(i){const e=Lo(i);return this.filter((t,n)=>(!Pt(i)||mt(n))&&!e.call(n,t,n))};function Bn(i,e,t,n){const s=[],r=zs(e),o=n&&Lo(n);for(let a=0,l=i.length;ae.selected&&!e.disabled&&!e.parentNode.disabled),"value"):i.value||""}function sb(i){return arguments.length?this.each((e,t)=>{const n=t.multiple&&t.options;if(n||qf.test(t.type)){const s=No(i)?Df.call(i,String):cr(i)?[]:[String(i)];n?xt(t.options,(r,o)=>{o.selected=s.indexOf(o.value)>=0},!0):t.checked=s.indexOf(t.value)>=0}else t.value=Ht(i)||cr(i)?"":i}):this[0]&&Rf(this[0])}le.val=sb,le.is=function(i){const e=Lo(i);return _c.call(this,(t,n)=>e.call(t,n,t))},y.guid=1;function Cn(i){return i.length>1?vc.call(i,(e,t,n)=>$f.call(n,e)===t):i}y.unique=Cn,le.add=function(i,e){return y(Cn(this.get().concat(y(i,e).get())))},le.children=function(i){return ss(y(Cn(Bn(this,e=>e.children))),i)},le.parent=function(i){return ss(y(Cn(Bn(this,"parentNode"))),i)},le.index=function(i){const e=i?y(i)[0]:this[0],t=i?this:y(e).parent().children();return $f.call(t,e)},le.closest=function(i){const e=this.filter(i);if(e.length)return e;const t=this.parent();return t.length?t.closest(i):e},le.siblings=function(i){return ss(y(Cn(Bn(this,e=>y(e).parent().children().not(e)))),i)},le.find=function(i){return y(Cn(Bn(this,e=>bc(i,e))))};const ib=/^\s*\s*$/g,rb=/^$|^module$|\/(java|ecma)script/i,ob=["type","src","nonce","noModule"];function ab(i,e){const t=y(i);t.filter("script").add(t.find("script")).each((n,s)=>{if(rb.test(s.type)&&xf.contains(s)){const r=Ls("script");r.text=s.textContent.replace(ib,""),xt(ob,(o,a)=>{s[a]&&(r[a]=s[a])}),e.head.insertBefore(r,null),e.head.removeChild(r)}})}function lb(i,e,t,n,s){n?i.insertBefore(e,t?i.firstChild:null):i.nodeName==="HTML"?i.parentNode.replaceChild(e,i):i.parentNode.insertBefore(e,t?i:i.nextSibling),s&&ab(e,i.ownerDocument)}function is(i,e,t,n,s,r,o,a){return xt(i,(l,c)=>{xt(y(c),(h,d)=>{xt(y(e),(f,m)=>{const v=t?d:m,b=t?m:d,w=t?h:f;lb(v,w?b.cloneNode(!0):b,n,s,!w)},a)},o)},r),e}le.after=function(){return is(arguments,this,!1,!1,!1,!0,!0)},le.append=function(){return is(arguments,this,!1,!1,!0)};function cb(i){if(!arguments.length)return this[0]&&this[0].innerHTML;if(Ht(i))return this;const e=/]/.test(i);return this.each((t,n)=>{mt(n)&&(e?y(n).empty().append(i):n.innerHTML=i)})}le.html=cb,le.appendTo=function(i){return is(arguments,this,!0,!1,!0)},le.wrapInner=function(i){return this.each((e,t)=>{const n=y(t),s=n.contents();s.length?s.wrapAll(i):n.append(i)})},le.before=function(){return is(arguments,this,!1,!0)},le.wrapAll=function(i){let e=y(i),t=e[0];for(;t.children.length;)t=t.firstElementChild;return this.first().before(e),this.appendTo(t)},le.wrap=function(i){return this.each((e,t)=>{const n=y(i)[0];y(t).wrapAll(e?n.cloneNode(!0):n)})},le.insertAfter=function(i){return is(arguments,this,!0,!1,!1,!1,!1,!0)},le.insertBefore=function(i){return is(arguments,this,!0,!0)},le.prepend=function(){return is(arguments,this,!1,!0,!0,!0,!0)},le.prependTo=function(i){return is(arguments,this,!0,!0,!0,!1,!1,!0)},le.contents=function(){return y(Cn(Bn(this,i=>i.tagName==="IFRAME"?[i.contentDocument]:i.tagName==="TEMPLATE"?i.content.childNodes:i.childNodes)))},le.next=function(i,e,t){return ss(y(Cn(Bn(this,"nextElementSibling",e,t))),i)},le.nextAll=function(i){return this.next(i,!0)},le.nextUntil=function(i,e){return this.next(e,!0,i)},le.parents=function(i,e){return ss(y(Cn(Bn(this,"parentElement",!0,e))),i)},le.parentsUntil=function(i,e){return this.parents(e,i)},le.prev=function(i,e,t){return ss(y(Cn(Bn(this,"previousElementSibling",e,t))),i)},le.prevAll=function(i){return this.prev(i,!0)},le.prevUntil=function(i,e){return this.prev(e,!0,i)},le.map=function(i){return y(B_.apply([],Df.call(this,(e,t)=>i.call(e,t,e))))},le.clone=function(){return this.map((i,e)=>e.cloneNode(!0))},le.offsetParent=function(){return this.map((i,e)=>{let t=e.offsetParent;for(;t&&jn(t,"position")==="static";)t=t.offsetParent;return t||xf})},le.slice=function(i,e){return y(If.call(this,i,e))};const hb=/-([a-z])/g;function kc(i){return i.replace(hb,(e,t)=>t.toUpperCase())}le.ready=function(i){const e=()=>setTimeout(i,0,y);return On.readyState!=="loading"?e():On.addEventListener("DOMContentLoaded",e),this},le.unwrap=function(){return this.parent().each((i,e)=>{if(e.tagName==="BODY")return;const t=y(e);t.replaceWith(t.children())}),this},le.offset=function(){const i=this[0];if(!i)return;const e=i.getBoundingClientRect();return{top:e.top+Mo.pageYOffset,left:e.left+Mo.pageXOffset}},le.position=function(){const i=this[0];if(!i)return;const e=jn(i,"position")==="fixed",t=e?i.getBoundingClientRect():this.offset();if(!e){const n=i.ownerDocument;let s=i.offsetParent||n.documentElement;for(;(s===n.body||s===n.documentElement)&&jn(s,"position")==="static";)s=s.parentNode;if(s!==i&&mt(s)){const r=y(s).offset();t.top-=r.top+wn(s,"borderTopWidth"),t.left-=r.left+wn(s,"borderLeftWidth")}}return{top:t.top-wn(i,"marginTop"),left:t.left-wn(i,"marginLeft")}};const zf={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};le.prop=function(i,e){if(i){if(Pt(i))return i=zf[i]||i,arguments.length<2?this[0]&&this[0][i]:this.each((t,n)=>{n[i]=e});for(const t in i)this.prop(t,i[t]);return this}},le.removeProp=function(i){return this.each((e,t)=>{delete t[zf[i]||i]})};const db=/^--/;function Sc(i){return db.test(i)}const Tc={},{style:ub}=kf,fb=["webkit","moz","ms"];function pb(i,e=Sc(i)){if(e)return i;if(!Tc[i]){const t=kc(i),n=`${t[0].toUpperCase()}${t.slice(1)}`,s=`${t} ${fb.join(`${n} `)}${n}`.split(" ");xt(s,(r,o)=>{if(o in ub)return Tc[i]=o,!1})}return Tc[i]}const mb={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function Ff(i,e,t=Sc(i)){return!t&&!mb[i]&&Mf(e)?`${e}px`:e}function gb(i,e){if(Pt(i)){const t=Sc(i);return i=pb(i,t),arguments.length<2?this[0]&&jn(this[0],i,t):i?(e=Ff(i,e,t),this.each((n,s)=>{mt(s)&&(t?s.style.setProperty(i,e):s.style[i]=e)})):this}for(const t in i)this.css(t,i[t]);return this}le.css=gb;function Of(i,e){try{return i(e)}catch{return e}}const yb=/^\s+|\s+$/;function jf(i,e){const t=i.dataset[e]||i.dataset[kc(e)];return yb.test(t)?t:Of(JSON.parse,t)}function vb(i,e,t){t=Of(JSON.stringify,t),i.dataset[kc(e)]=t}function _b(i,e){if(!i){if(!this[0])return;const t={};for(const n in this[0].dataset)t[n]=jf(this[0],n);return t}if(Pt(i))return arguments.length<2?this[0]&&jf(this[0],i):Ht(e)?this:this.each((t,n)=>{vb(n,i,e)});for(const t in i)this.data(t,i[t]);return this}le.data=_b;function Bf(i,e){const t=i.documentElement;return Math.max(i.body[`scroll${e}`],t[`scroll${e}`],i.body[`offset${e}`],t[`offset${e}`],t[`client${e}`])}xt([!0,!1],(i,e)=>{xt(["Width","Height"],(t,n)=>{const s=`${e?"outer":"inner"}${n}`;le[s]=function(r){if(this[0])return mi(this[0])?e?this[0][`inner${n}`]:this[0].document.documentElement[`client${n}`]:Rs(this[0])?Bf(this[0],n):this[0][`${e?"offset":"client"}${n}`]+(r&&e?wn(this[0],`margin${t?"Top":"Left"}`)+wn(this[0],`margin${t?"Bottom":"Right"}`):0)}})}),xt(["Width","Height"],(i,e)=>{const t=e.toLowerCase();le[t]=function(n){if(!this[0])return Ht(n)?void 0:this;if(!arguments.length)return mi(this[0])?this[0].document.documentElement[`client${e}`]:Rs(this[0])?Bf(this[0],e):this[0].getBoundingClientRect()[t]-Nf(this[0],!i);const s=parseInt(n,10);return this.each((r,o)=>{if(!mt(o))return;const a=jn(o,"boxSizing");o.style[t]=Ff(t,s+(a==="border-box"?Nf(o,!i):0))})}});const Hf="___cd";le.toggle=function(i){return this.each((e,t)=>{if(!mt(t))return;const n=Ef(t);(Ht(i)?n:i)?(t.style.display=t[Hf]||"",Ef(t)&&(t.style.display=eb(t.tagName))):n||(t[Hf]=jn(t,"display"),t.style.display="none")})},le.hide=function(){return this.toggle(!1)},le.show=function(){return this.toggle(!0)};const Uf="___ce",$c=".",Dc={focus:"focusin",blur:"focusout"},Vf={mouseenter:"mouseover",mouseleave:"mouseout"},bb=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Ic(i){return Vf[i]||Dc[i]||i}function Mc(i){const e=i.split($c);return[e[0],e.slice(1).sort()]}le.trigger=function(i,e){if(Pt(i)){const[n,s]=Mc(i),r=Ic(n);if(!r)return this;const o=bb.test(r)?"MouseEvents":"HTMLEvents";i=On.createEvent(o),i.initEvent(r,!0,!0),i.namespace=s.join($c),i.___ot=n}i.___td=e;const t=i.___ot in Dc;return this.each((n,s)=>{t&&zs(s[i.___ot])&&(s[`___i${i.type}`]=!0,s[i.___ot](),s[`___i${i.type}`]=!1),s.dispatchEvent(i)})};function Wf(i){return i[Uf]=i[Uf]||{}}function wb(i,e,t,n,s){const r=Wf(i);r[e]=r[e]||[],r[e].push([t,n,s]),i.addEventListener(e,s)}function Kf(i,e){return!e||!_c.call(e,t=>i.indexOf(t)<0)}function Ro(i,e,t,n,s){const r=Wf(i);if(e)r[e]&&(r[e]=r[e].filter(([o,a,l])=>{if(s&&l.guid!==s.guid||!Kf(o,t)||n&&n!==a)return!0;i.removeEventListener(e,l)}));else for(e in r)Ro(i,e,t,n,s)}le.off=function(i,e,t){if(Ht(i))this.each((n,s)=>{!mt(s)&&!Rs(s)&&!mi(s)||Ro(s)});else if(Pt(i))zs(e)&&(t=e,e=""),xt(Po(i),(n,s)=>{const[r,o]=Mc(s),a=Ic(r);this.each((l,c)=>{!mt(c)&&!Rs(c)&&!mi(c)||Ro(c,a,o,e,t)})});else for(const n in i)this.off(n,i[n]);return this},le.remove=function(i){return ss(this,i).detach().off(),this},le.replaceWith=function(i){return this.before(i).remove()},le.replaceAll=function(i){return y(i).replaceWith(this),this};function Cb(i,e,t,n,s){if(!Pt(i)){for(const r in i)this.on(r,e,t,i[r],s);return this}return Pt(e)||(Ht(e)||cr(e)?e="":Ht(t)?(t=e,e=""):(n=t,t=e,e="")),zs(n)||(n=t,t=void 0),n?(xt(Po(i),(r,o)=>{const[a,l]=Mc(o),c=Ic(a),h=a in Vf,d=a in Dc;c&&this.each((f,m)=>{if(!mt(m)&&!Rs(m)&&!mi(m))return;const v=function(b){if(b.target[`___i${b.type}`])return b.stopImmediatePropagation();if(b.namespace&&!Kf(l,b.namespace.split($c))||!e&&(d&&(b.target!==m||b.___ot===c)||h&&b.relatedTarget&&m.contains(b.relatedTarget)))return;let w=m;if(e){let $=b.target;for(;!Af($,e);)if($===m||($=$.parentNode,!$))return;w=$}Object.defineProperty(b,"currentTarget",{configurable:!0,get(){return w}}),Object.defineProperty(b,"delegateTarget",{configurable:!0,get(){return m}}),Object.defineProperty(b,"data",{configurable:!0,get(){return t}});const x=n.call(w,b,b.___td);s&&Ro(m,c,l,e,v),x===!1&&(b.preventDefault(),b.stopPropagation())};v.guid=n.guid=n.guid||y.guid++,wb(m,c,l,e,v)})}),this):this}le.on=Cb;function xb(i,e,t,n){return this.on(i,e,t,n,!0)}le.one=xb;const kb=/\r?\n/g;function Sb(i,e){return`&${encodeURIComponent(i)}=${encodeURIComponent(e.replace(kb,`\r +`))}`}const Tb=/file|reset|submit|button|image/i,qf=/radio|checkbox/i;le.serialize=function(){let i="";return this.each((e,t)=>{xt(t.elements||[t],(n,s)=>{if(s.disabled||!s.name||s.tagName==="FIELDSET"||Tb.test(s.type)||qf.test(s.type)&&!s.checked)return;const r=Rf(s);if(!Ht(r)){const o=No(r)?r:[r];xt(o,(a,l)=>{i+=Sb(s.name,l)})}})}),i.slice(1)},window.$=y;function Gf(i,e){if(i==null)return[i,void 0];typeof e=="string"&&(e=e.split("."));const t=e.join(".");let n=i;const s=[n];for(;typeof n=="object"&&n!==null&&e.length;){let r=e.shift(),o;const a=r.indexOf("[");if(a>0&&a1?s[r-2]:i,e[e.length-1]),o===void 0?t:o}catch{return t}}function an(i,e,t,n){let s;const r=hr(i,e,void 0,o=>{s=o});return typeof r=="function"?r.apply(n??s,t):r}function gi(i){return typeof i=="string"&&i!==""}function De(i,...e){if(e.length===0)return i;if(e.length===1&&typeof e[0]=="object"&&e[0]){const t=e[0];return Object.keys(t).forEach(n=>{const s=t[n]??"";i=i.replace(new RegExp(`\\{${n}\\}`,"g"),`${s}`)}),i}for(let t=0;t(i[i.B=1]="B",i[i.KB=1024]="KB",i[i.MB=1048576]="MB",i[i.GB=1073741824]="GB",i[i.TB=1099511627776]="TB",i))(Nc||{});function ut(i,e=2,t){return Number.isNaN(i)?"?KB":(t||(i<1024?t="B":i<1048576?t="KB":i<1073741824?t="MB":i<1099511627776?t="GB":t="TB"),(i/Nc[t]).toFixed(e)+t)}const xn=i=>{const e=/^[0-9]*(B|KB|MB|GB|TB)$/;i=i.toUpperCase(),i.endsWith("B")||(i+="B");const t=i.match(e);if(!t)return 0;const n=t[1];return i=i.replace(n,""),Number.parseInt(i,10)*Nc[n]},Hn=i=>i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");let Ec=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),Un;function Zf(){return Ec}function $b(i){Ec=i.toLowerCase().replace("-","_")}function Yf(i,e){Un||(Un={}),typeof i=="string"&&(i={[i]:e??{}}),y.extend(!0,Un,i)}function Pe(i,e,t,n,s,r){Array.isArray(i)?Un&&i.unshift(Un):i=Un?[Un,i]:[i],typeof t=="string"&&(r=s,s=n,n=t,t=void 0);const o=s||Ec;let a;for(const l of i){if(!l)continue;const c=l[o]||l.default;if(!c)continue;const h=r&&l===Un?`${r}.${e}`:e;if(a=hr(c,h),a!==void 0)break}return a===void 0?n:t?De(a,...Array.isArray(t)?t:[t]):a}function Db(i,e,t,n){return Pe(void 0,i,e,t,n)}Pe.addLang=Yf,Pe.getLang=Db,Pe.getCode=Zf,Pe.setCode=$b,Pe.map=Un,Yf({zh_cn:{confirm:"确定",save:"保存",cancel:"取消",delete:"删除",reset:"重置",add:"添加",copy:"复制",close:"关闭",edit:"编辑",open:"打开"},zh_tw:{confirm:"確定",save:"儲存",cancel:"取消",delete:"刪除",reset:"重置",add:"添加",Copy:"複製",close:"關閉",edit:"編輯",open:"打開"},en:{confirm:"Confirm",save:"Save",cancel:"Cancel",delete:"Delete",reset:"Reset",add:"Add",copy:"Copy",close:"Close",edit:"Edit",open:"Open"}});function Fs(i,e,t){t!=null&&(Array.isArray(t)?t.forEach(n=>Fs(i,e,n)):!(t instanceof Blob)&&y.isPlainObject(t)?Object.entries(t).forEach(([n,s])=>{Fs(i,`${e}[${n}]`,s)}):i.append(e,t instanceof Blob?t:String(t)))}function dr(i,e){const t=e||new FormData;return i&&(typeof i=="string"&&(i=new URLSearchParams(i)),i instanceof URLSearchParams?i.forEach((n,s)=>{Fs(t,s,n)}):Array.isArray(i)?i.forEach(([n,s])=>{Fs(t,n,s)}):i instanceof FormData?i.forEach((n,s)=>{Fs(t,s,n)}):typeof i=="object"&&i&&Object.entries(i).forEach(([n,s])=>{Fs(t,n,s)})),t}function Ye(){return y.guid++}function ur(i,e){if(i===e)return!1;if(i&&e){const t=typeof i,n=typeof e;if(t!==n)return!0;if(t==="object"&&n==="object"){const s=Array.isArray(i),r=Array.isArray(e);if(s!==r)return!0;if(s&&r){if(i.length!==e.length)return!0;for(let l=0;ln instanceof Os?n.value!==t[s]:ur(n,t[s])))&&(this._value=this._compute(),this._lastDependencies=e.map(n=>n instanceof Os?n.cache:n)),this._value}}function Ac(...i){const e=[],t=new Map,n=(s,r)=>{if(Array.isArray(s)&&(r=s[1],s=s[0]),!s.length)return;const o=t.get(s);typeof o=="number"?e[o][1]=!!r:(t.set(s,e.length),e.push([s,!!r]))};return i.forEach(s=>{typeof s=="function"&&(s=s()),Array.isArray(s)?Ac(...s).forEach(n):s&&typeof s=="object"?Object.entries(s).forEach(n):typeof s=="string"&&s.split(" ").forEach(r=>n(r,!0))}),e.sort((s,r)=>(t.get(s[0])||0)-(t.get(r[0])||0))}const W=(...i)=>Ac(...i).reduce((e,[t,n])=>(n&&e.push(t),e),[]).join(" ");y.classes=W,y.fn.setClass=function(i,...e){return this.each((t,n)=>{const s=y(n);i===!0?s.attr("class",W(s.attr("class"),...e)):s.addClass(W(i,...e))})};const yi=new WeakMap;function zo(i,e,t){const n=yi.has(i),s=n?yi.get(i):{};typeof e=="string"?s[e]=t:e===null?Object.keys(s).forEach(r=>{delete s[r]}):Object.assign(s,e),Object.keys(s).forEach(r=>{s[r]===void 0&&delete s[r]}),Object.keys(s).length?(!n&&i instanceof Element&&Object.assign(s,y(i).dataset(),s),yi.set(i,s)):yi.delete(i)}function fr(i,e,t){let n=yi.get(i)||{};return t&&i instanceof Element&&(n=Object.assign({},y(i).dataset(),n)),e===void 0?n:n[e]}function Ib(i){yi.delete(i)}y.fn.dataset=y.fn.data,y.fn.data=function(...i){const[e,t]=i;return!i.length||i.length===1&&typeof e=="string"?this.length?fr(this[0],e,!0):void 0:this.each((n,s)=>zo(s,e,t))},y.fn.removeData=function(i=null){return this.each((e,t)=>zo(t,i))};function rs(i,...e){return i.includes("RAWJS")&&(i=i.split('"RAWJS<').join("").split('>RAWJS"').join("").split("").join('"').split("").join(` `)),new Function(`return ${i}`)(...e)}function Fo(i,...e){return i.includes("RAWJS")?rs(i,...e):JSON.parse(i)}function Mb(i){return JSON.stringify(i,(e,t)=>typeof t=="function"?`RAWJS<${t.toString().split('"').join("").split(` -`).join("")}>RAWJS`:t)}function vi(i,e){const t=v(i)[0];if(!t)return;const{prefix:n,getter:s,evalValue:r,json:o=!0,evalArgs:a=[]}={prefix:"z-",...typeof e=="string"?{prefix:e}:e},l=Array.isArray(r)?new Set(r):void 0;return Array.from(t.attributes).reduce((c,h)=>{let{name:d}=h;const{value:f}=h;let m=f;if(d.startsWith(n)){if(d=d.slice(n.length).replace(/-([a-z])/g,y=>y[1].toUpperCase()),s)m=s(d,f);else try{r&&(!l||l.has(d))||r===void 0&&f.includes("RAWJS")?m=rs(f,...a):o&&(m=JSON.parse(f))}catch{}c[d]=m}return c},{})}function Pc(i,e,t="z-"){const n=v(i);Object.keys(e).forEach(s=>{let r=e[s];typeof r=="function"&&(r=`RAWJS<${r}>RAWJS`),typeof r!="string"&&(r=JSON.stringify(r)),s=s.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`),n.attr(`${t}${s}`,r)})}function Nb(...i){var t;const e=i.length;if(!e)return vi(this);if(e===1){const[n]=i;return typeof n=="string"?(t=vi(this))==null?void 0:t[n]:(v.isPlainObject(n)&&Pc(this,n),this)}return Pc(this,{[i[0]]:i[1]}),this}v.fn.z=Nb,v.fn._attr=v.fn.attr,v.fn.extend({attr(...i){const[e,t]=i;return!i.length||i.length===1&&typeof e=="string"?this._attr.apply(this,i):typeof e=="object"?(e&&Object.keys(e).forEach(n=>{const s=e[n];s===null?this.removeAttr(n):this._attr(n,s)}),this):t===null?this.removeAttr(e):this._attr(e,t)}}),v.Event||(v.Event=(i,e)=>{const[t,...n]=i.split("."),s=new Event(t,{bubbles:!0,cancelable:!0});return s.namespace=n.join("."),s.___ot=t,s.___td=e,s});const kn=(i,e)=>new Promise(t=>{const n=window.setTimeout(t,i);e&&e(n)}),Jf={};v.share=Jf;var Oo,Qe,Xf;M.isValidElement=void 0;var js,Qf,ep,tp,np,Lc,Rc,zc,pr={},sp=[],Eb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mr=Array.isArray;function Vn(i,e){for(var t in e)i[t]=e[t];return i}function Fc(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function g(i,e,t){var n,s,r,o={};for(r in e)r=="key"?n=e[r]:r=="ref"?s=e[r]:o[r]=e[r];if(arguments.length>2&&(o.children=arguments.length>3?Oo.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(r in i.defaultProps)o[r]===void 0&&(o[r]=i.defaultProps[r]);return jo(i,o,n,s,null)}function jo(i,e,t,n,s){var r={type:i,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Xf,__i:-1,__u:0};return s==null&&Qe.vnode!=null&&Qe.vnode(r),r}function ge(){return{current:null}}function os(i){return i.children}function he(i,e){this.props=i,this.context=e}function _i(i,e){if(e==null)return i.__?_i(i.__,i.__i+1):null;for(var t;ea&&js.sort(tp),i=js.shift(),a=js.length,i.__d&&(t=void 0,n=void 0,s=(n=(e=i).__v).__e,r=[],o=[],e.__P&&((t=Vn({},n)).__v=n.__v+1,Qe.vnode&&Qe.vnode(t),Oc(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[s]:null,r,s??_i(n),!!(32&n.__u),o),t.__v=n.__v,t.__.__k[t.__i]=t,hp(r,t,o),n.__e=n.__=null,t.__e!=s&&ip(t)));Bo.__r=0}function op(i,e,t,n,s,r,o,a,l,c,h){var d,f,m,y,b,w,x,$=n&&n.__k||sp,D=e.length;for(l=Ab(t,e,$,l,D),d=0;d0?o=i.__k[r]=jo(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):i.__k[r]=o,l=r+f,o.__=i,o.__b=i.__b+1,(c=o.__i=Pb(o,t,l,d))!=-1&&(d--,(a=t[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(s>h?f--:sl?f--:f++,o.__u|=4))):i.__k[r]=null;if(d)for(r=0;r(h?1:0)){for(s=t-1,r=t+1;s>=0||r=0?s--:r++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return o}return-1}function lp(i,e,t){e[0]=="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||Eb.test(e)?t:t+"px"}function Uo(i,e,t,n,s){var r,o;e:if(e=="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof n=="string"&&(i.style.cssText=n=""),n)for(e in n)t&&e in t||lp(i.style,e,"");if(t)for(e in t)n&&t[e]==n[e]||lp(i.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(np,"$1")),o=e.toLowerCase(),e=o in i||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),i.l||(i.l={}),i.l[e+r]=t,t?n?t.u=n.u:(t.u=Lc,i.addEventListener(e,r?zc:Rc,r)):i.removeEventListener(e,r?zc:Rc,r);else{if(s=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?i.removeAttribute(e):i.setAttribute(e,e=="popover"&&t==1?"":t))}}function cp(i){return function(e){if(this.l){var t=this.l[e.type+i];if(e.t==null)e.t=Lc++;else if(e.t0?i:mr(i)?i.map(dp):Vn({},i)}function Lb(i,e,t,n,s,r,o,a,l){var c,h,d,f,m,y,b,w=t.props||pr,x=e.props,$=e.type;if($=="svg"?s="http://www.w3.org/2000/svg":$=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),r!=null){for(c=0;c{!t||typeof t!="object"||Object.keys(t).forEach(n=>{let s=t[n];const r=i[n];s!==r&&(r!==void 0&&(n==="className"||n.endsWith("Class")?s=[r,s]:n==="children"?s=[...Ho(r),...Ho(s)]:typeof r=="object"&&(n==="style"||n.endsWith("Style")||n==="attrs"||n.endsWith("Attrs")||n==="props")&&(s=v.extend(r,s))),i[n]=s)})}),i}function Hc(i){return Object.keys(i).forEach(e=>{i[e]===void 0&&delete i[e]}),i}function Vo(i,e=!0){const t=v(i),n=t[0],s="zui-disable-scroll";if(e){if(t.data(s))return;if((t.css("scrollbar-gutter")||"").includes("stable")){t.data(s,{overflow:t.css("overflow")}).css("overflow","hidden");return}const r=n===document.body||t.is("html")?window.innerWidth-document.body.clientWidth:n.offsetWidth-n.clientWidth;if(!r)return;const o=t.css("paddingRight")||"0";t.data(s,{paddingRight:o,overflow:t.css("overflow")}).css({paddingRight:`${r+Number.parseInt(o,10)}px`,overflow:"hidden"})}else{const r=t.data(s);if(!r)return;t.css(r).removeData(s)}}v.fn.disableScroll=function(i=!0){return this.each((e,t)=>{Vo(t,i)})},v.fn.enableScroll=function(i=!0){return this.disableScroll(!i)};function Uc(i,e,t){if(!(t.on||"click").split(" ").includes(e.type))return;const n=t.selector?v(e.target).closest(t.selector):i;if(!n.length)return;const s=c=>c===""?!0:c,r=c=>{if(typeof c=="string")try{c=JSON.parse(c)}catch{}return c};if(s(t.once)){if(t.onceCalled)return;i.dataset("once-called",!0)}if(s(t.prevent)&&e.preventDefault(),s(t.stop)&&e.stopPropagation(),s(t.self)&&e.currentTarget!==e.target)return;const o=[["$element",i],["event",e],["options",t],["$target",n]],a=c=>typeof c=="function"?c(...o):v.runJS(c,...o);if(t.if!==void 0&&!a(t.if))return;const l=t.call;if(l){let c;if(typeof l=="string"?c=/^[$A-Z_][0-9A-Z_$.]*$/i.test(l)?hr(window,l):a(l):c=l,typeof c=="function"){const h=[],d=t.params;t.params=h,typeof d=="string"&&d.length?d[0]==="["?h.push(...r(d)):h.push(...d.split(", ").map(f=>(f=f.trim(),f==="$element"?i:f==="event"?e:f==="options"?t:f.startsWith("$element.")||f.startsWith("event.")||f.startsWith("options.")?a(f):r(f)))):Array.isArray(d)?h.push(...d):h.push(d),c(...h)}}t.do&&a(t.do)}function zb(i){const e=v(this),t=i.type,n=e.attr("zui-on");if(n){const[o,a]=n.split("~").map(l=>l.trim());o&&o.split(" ").includes(t)&&Uc(e,i,v.extend({on:o},a?a.startsWith("{")?rs(a):{do:a}:vi(e,{prefix:"data-",evalValue:["call","if","do"]})))}const s=e.attr(`zui-on-${t}`);s&&Uc(e,i,v.extend({on:t},s.startsWith("{")?rs(s):{do:s}));const r=e.attr("data-on");r&&r.split(" ").includes(t)&&Uc(e,i,vi(e,{prefix:"data-",evalValue:["call","if","do"]}))}function fp(i){v(document).off(".zui.global").on(i.map(e=>`${e}.zui.global`).join(" "),`[zui-on],${i.map(e=>`[zui-on-${e}]`)},[data-on]`,zb)}v(()=>{fp(["click","change","inited"])});function ls(i,e){if(typeof i=="function")return ls(i(...e||[]));if(typeof i=="number")return[i];let t=i.match(/(\d+)(%|px)?/);return t?[parseInt(t[1]),t[2]]:(t=i.match(/(\d+)\/(\d+)/),t?[100*parseInt(t[1])/parseInt(t[2]),"%"]:[NaN])}function je(i,e){if(i==null)return null;const[t,n="px"]=ls(i,e);return Number.isNaN(t)?typeof i=="string"?i:null:`${t}${n}`}async function Wn(i,e){var n,s,r;if(i instanceof Blob){const o=document.createElement("a");return o.href=window.URL.createObjectURL(i),e&&(o.download=decodeURIComponent(e)),o.click(),o.remove(),i}if(i instanceof Response){const o=await i.blob();return e=e||((r=(s=(n=i.headers.get("Content-Disposition"))==null?void 0:n.split(";")[1])==null?void 0:s.split("=")[1])==null?void 0:r.replace(/"/g,"")),Wn(o,e)}const t=await fetch(i);return Wn(t)}class pp{constructor(e){this._$target=v(e)}on(...e){return this._$target.on(...e),this}one(...e){return this._$target.one(...e),this}off(...e){return this._$target.off(...e),this}trigger(...e){return this._$target.trigger(...e),this}}const Sn=new pp(document);v.bus=Sn,v.on=Sn.on.bind(Sn),v.one=Sn.one.bind(Sn),v.off=Sn.off.bind(Sn),v.trigger=Sn.trigger.bind(Sn);var Fb=["Shift","Meta","Alt","Control"],mp=typeof navigator=="object"?navigator.platform:"",gp=/Mac|iPod|iPhone|iPad/.test(mp),Ob=gp?"Meta":"Control",jb=mp==="Win32"?["Control","Alt"]:gp?["Alt"]:[];function Vc(i,e){return typeof i.getModifierState=="function"&&(i.getModifierState(e)||jb.includes(e)&&i.getModifierState("AltGraph"))}function Bb(i){return i.trim().split(" ").map(function(e){var t=e.split(/\b\+/),n=t.pop();return[t=t.map(function(s){return s==="$mod"?Ob:s}),n]})}function yp(i,e){var t;e===void 0&&(e={});var n=(t=e.timeout)!=null?t:1e3,s=Object.keys(i).map(function(a){return[Bb(a),i[a]]}),r=new Map,o=null;return function(a){a instanceof KeyboardEvent&&(s.forEach(function(l){var c=l[0],h=l[1],d=r.get(c)||c;(function(f,m){return!(m[1].toUpperCase()!==f.key.toUpperCase()&&m[1]!==f.code||m[0].find(function(y){return!Vc(f,y)})||Fb.find(function(y){return!m[0].includes(y)&&m[1]!==y&&Vc(f,y)}))})(a,d[0])?d.length>1?r.set(c,d.slice(1)):(r.delete(c),h(a)):Vc(a,a.key)||r.delete(c)}),o&&clearTimeout(o),o=setTimeout(r.clear.bind(r),n))}}function Hb(i,e,t){var n;t===void 0&&(t={});var s=(n=t.event)!=null?n:"keydown",r=yp(e,t);return i.addEventListener(s,r),function(){i.removeEventListener(s,r)}}function Wc(i,e={}){if(!i)return;const t=Object.keys(e).reduce((n,s)=>(e[s].optional||(n[s]={...e[s]}),n),{});return Object.keys(i).forEach(n=>{const s=i[n];s?s===!0?e[n]&&(t[n]={...e[n]}):t[n]=s:delete t[n]}),Object.keys(t).reduce((n,s)=>{const{keys:r,handler:o}=t[s];return typeof r=="string"?n[r]=o:r.forEach(a=>{n[a]=o}),n},{})}function Kc(i,e,t){const{timeout:n,event:s="keydown",scope:r,when:o}=t||{},a=yp(e,{timeout:n}),l=`.zui.hotkeys${r?`.${r}`:""}`,c="zui-hotkeys-composing";return v(i).on(`${s}${l}`,function(h){o&&o(h)===!1||v(h.target).data(c)||a(h)}).on(`compositionstart${l}`,h=>{v(h.target).data(c,!0)}).on(`compositionend${l}`,h=>{v(h.target).removeData(c)})}function qc(i,e){return v(i).off(`.zui.hotkeys${e?`.${e}`:""}`)}const Ub=Hb;v.fn.hotkeys=function(i,e){return Kc(this,i,e)},v.fn.unbindHotkeys=function(i){return qc(this,i)},v.hotkeys=function(i,e){Kc(window,i,e)},v.unbindHotkeys=function(i){qc(window,i)};function Wo(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement}async function vp(i){(typeof i=="string"||i instanceof Element||i instanceof v)&&(i={target:i});const{target:e,onError:t,onSuccess:n,afterExit:s,afterEnter:r}=i,o=v(e),a=o[0];if(!a)return;const l=a.requestFullscreen||a.webkitRequestFullscreen||a.mozRequestFullScreen;if(!l){t==null||t.call(a,new Error("[ZUI] The browser does not support full screen feature."));return}try{await l.call(a),n==null||n.call(a),v(a).off(".zui.fullscreen"),s&&o.on("exitFullscreen.zui.fullscreen",s),r&&o.on("enterFullscreen.zui.fullscreen",r)}catch(c){t==null||t.call(a,c)}document.zuiBindFullscreenChange||(document.zuiBindFullscreenChange=!0,v(document).on("fullscreenchange.zui webkitfullscreenchange.zui mozfullscreenchange.zui",c=>{const h=Wo();let d=h;h?v(h).addClass("is-in-fullscreen"):(d=v(document).find(".is-in-fullscreen")[0]||document,v(d).removeClass("is-in-fullscreen")),v("body").toggleClass("has-in-fullscreen",!!h);const f={event:c,target:d,fullscreenElement:h};v(d).trigger(h?"enterFullscreen":"exitFullscreen",f).trigger("toggleFullscreen",f)}))}async function Ko(i){const e=Wo();return i===!1&&!!e===i?i:e?(document.exitFullscreen(),!1):(await vp(i),!0)}v.fn.fullscreen=function(i){return Ko({target:this,...i})},v.getFullscreenElement=Wo,v.toggleFullscreen=Ko;function Tn(i){return!i||i.parentNode===document?!1:i.parentNode?Tn(i.parentNode):!0}v.isDetached=Tn,v.fn.isDetached=function(){const i=this[0];return!i||Tn(i)};const Bs=class S_{constructor(e,t){var y,b;this._inited=!1,this._autoDestory=0,this._destroyed=!1;const{KEY:n,DATA_KEY:s,MULTI_INSTANCE:r,NAME:o,ATTR_KEY:a,ALL:l,TYPED_ALL:c}=this.constructor;if(!o)throw new Error('[ZUI] The component must have a "NAME" static property.');const h=v(e);if(h.data(n)&&!r)throw new Error(`[ZUI] The component "${o}" has been initialized on element.`);const d=h[0];if(!d)throw new Error(`[ZUI] Invalid selector "${e}" for component "${o}", can not find the element matched.`);const f=Ye();this._gid=f,this._element=d,this.resetOptions(t),this._key=this.options.key??`__${f}`;let m=l.get(d);if(m?m.add(this):(m=new Set([this]),l.set(d,m)),c.has(o)?(y=c.get(o))==null||y.add(this):c.set(o,new Set([this])),h.data(n,this).attr(a,"").attr(s,`${f}`).attr("z-use",[...new Set([...m||[]].map(w=>w.constructor.NAME))].join(",")),r){const w=`${n}:ALL`;let x=h.data(w);x||(x=new Map,h.data(w,x)),x.set(this._key,this)}this.init(),(b=this.options.$onCreate)==null||b.call(this),requestAnimationFrame(async()=>{var x;const{$fetcher:w}=this.options;if(w){const $=await Ae(w,[],{dataType:"js"});if(this.destroyed)return;$&&this.setOptions($)}this._inited=!0,await this.afterInit(),this.emit("inited",this.options),(x=this.options.$onInited)==null||x.call(this)})}static get ZUI(){return this.NAME.replace(/(^[A-Z]+)/,e=>e.toLowerCase())}static get KEY(){return`zui.${this.NAME}`}static get NAMESPACE(){return`.zui.${this.ZUI}`}static get DATA_KEY(){return`data-zui-${this.NAME}`}static get ATTR_KEY(){return`z-use-${this.NAME}`}static get SELECTOR(){return`[${this.DATA_KEY}]`}get inited(){return this._inited}get destroyed(){return this._destroyed}get element(){if(!this._element)throw new Error("[ZUI] Component element is not available.");return this._element}get key(){return this._key}get options(){if(!this._options)throw new Error("[ZUI] Component options are not available.");return this._options}get gid(){return this._gid}get $element(){return v(this.element)}get $emitter(){return this.$element}get i18nData(){return[this.options.i18n,this.constructor.i18n]}init(){}afterInit(){}render(e,t){this._options=this.setOptions(e,t);const{$class:n,$style:s}=this.options;n&&this.$element.setClass(n),s&&this.$element.css(s)}destroy(){var m;const{KEY:e,DATA_KEY:t,ALL:n,TYPED_ALL:s,NAME:r,MULTI_INSTANCE:o,ATTR_KEY:a}=this.constructor,{$element:l,element:c}=this;if(this.emit("destroyed"),this._destroyed=!0,l.off(this.namespace).removeData(e).removeAttr(a).removeAttr(t),o){const y=this.$element.data(`${e}:ALL`);if(y)if(y.delete(this._key),y.size===0)this.$element.removeData(`${e}:ALL`);else{const b=y.values().next().value;l.data(e,b).attr(t,String(b==null?void 0:b.gid))}}const h=n.get(c);h&&(h.delete(this),h.size===0&&n.delete(c));const d=s.get(r);d&&(d.delete(this),d.size===0&&s.delete(r));const f=n.get(c);f!=null&&f.size?l.attr("z-use",[...new Set([...f].map(y=>y.constructor.NAME))].join(",")):l.removeAttr("z-use"),(m=this.options.$onDestroy)==null||m.call(this)}autoDestroy(e=100){this._autoDestory&&clearTimeout(this._autoDestory),this._autoDestory=window.setTimeout(()=>{this._autoDestory=0,Tn(this.element)&&this.destroy()},e)}setOptions(e,t){if(t){const n={...this.constructor.DEFAULT,...(e==null?void 0:e.$optionsFromDataset)!==!1?this.$element.dataset():{},...e},{$options:s}=n;if(s){const r=typeof s=="function"?s.call(this,this.element,n):s;r&&v.extend(n,r),delete n.$options}this._options=n}else e&&v.extend(this._options,e);if(!this._options)throw new Error("[ZUI] Component options are not available.");return this._options}resetOptions(e){return this.setOptions(e,!0)}emit(e,...t){const n=v.Event(e);return n.__src=this,this.$emitter.trigger(n,[this,...t]),n}on(e,t,n){const s=this;this.$element[n!=null&&n.once?"one":"on"](this._wrapEvent(e),function(r,o){(!r.__src||r.__src===s)&&t.call(this,r,o)})}one(e,t){this.on(e,t,{once:!0})}off(e){this.$element.off(this._wrapEvent(e))}i18n(e,t,n){const{i18nData:s}=this;return Ee(s,e,t,n,this.options.lang,this.constructor.NAME)??Ee(s,e,t,n,this.options.lang)??`{i18n:${e}}`}get namespace(){return`${this.constructor.NAMESPACE}.${this._key}`}_wrapEvent(e){return e.split(" ").map(t=>t.includes(".")?t:`${t}${this.namespace}`).join(" ")}static get(e,t){const n=v(e);if(this.MULTI_INSTANCE&&t!==void 0){const s=n.data(`${this.KEY}:ALL`);return s?s.get(t):void 0}return n.data(this.KEY)}static isValid(e){return!0}static ensure(e,t){const n=this.get(e,t==null?void 0:t.key);if(n){if(this.isValid(n))return t&&n.setOptions(t),n;n.destroy()}return new this(e,t)}static getAll(e,t){var l;const{SELECTOR:n,ALL:s,TYPED_ALL:r}=this,o=[],a=c=>{c instanceof this&&(!t||t(c)!==!1)&&o.push(c)};return e?v(e).find(n).each((c,h)=>{var d;(d=s.get(h))==null||d.forEach(a)}):this!==S_?(l=r.get(this.NAME))==null||l.forEach(a):s.forEach(c=>{c.forEach(a)}),o.sort((c,h)=>c.gid-h.gid)}static query(e,t,n){return e===void 0?this.getAll(void 0,n).pop():this.get(v(e).closest(this.SELECTOR),t)}static defineFn(e){let t=e||this.ZUI;v.fn[t]&&(t=`zui${this.NAME}`);const n=this;v.fn.extend({[t](s,...r){const o=typeof s=="object"?s:void 0,a=typeof s=="string"?s:void 0;let l;return this.each((c,h)=>{let d=n.get(h);if(d)o&&d.render(o);else{if(a)return;d=new n(h,o)}if(a){let f=d[a],m=d;f===void 0&&(m=d.$,f=m[a]),typeof f=="function"?l=f.call(m,...r):l=f}}),l!==void 0?l:this}})}static register(e,t){var s,r;e=e||this,t=(t??e.NAME).toLowerCase(),this.map.set(t,e);const n=(r=(s=e.toggle)==null?void 0:s.name)==null?void 0:r.toLowerCase();n&&n!==t&&this.toggleMap.set(n,e)}};Bs.DEFAULT={},Bs.MULTI_INSTANCE=!1,Bs.ALL=new Map,Bs.TYPED_ALL=new Map,Bs.map=new Map,Bs.toggleMap=new Map;let Ge=Bs;function gr(i){return Ge.map.get(i.toLowerCase())}function qo(i,e,t={}){let n=typeof i=="function"?i:gr(i);if(n||(n=Gc(i)),!n)return null;const{$update:s,...r}=t;if(!n.MULTI_INSTANCE){const o=n.get(e);if(o)return s&&o.render(r,s==="reset"),o}return new n(e,r)}function _p(i,e,t={}){requestAnimationFrame(()=>qo(i,e,t))}function bp(i,e){Ge.register(i,e)}function Gc(i){const{zui:e}=window;if(e){i=i==null?void 0:i.toLowerCase();for(const t in e){const n=t.toLowerCase()===i;if(i&&!n)continue;const s=e[t];if(!(typeof s!="function"||!s.NAME||!s.ZUI)&&(Ge.map.has(t.toLowerCase())||bp(s),n))return s}}}function Vb(i){var e;i?(e=gr(i))==null||e.defineFn():window._zuiDefined||(Gc(),Ge.map.forEach(t=>{t.defineFn()}),Object.assign(window,{_zuiDefined:!0}))}function Wb(i,e={}){const t=v(i);let n=t.attr("zui-create");const{update:s,onCreate:r}=e,o=(a,l)=>{if(l={$update:s,$optionsFromDataset:!1,...l},r){const h=r(a,l);if(h===!1)return;h&&(l=h)}const c=l.$lib;if(c){delete l.$lib,v.getLib(c).then(()=>_p(a,i,l));return}_p(a,i,l)};if(typeof n=="string"){n=n.trim();const a=n.length?n.split(",").map(h=>h.trim()):[],l=vi(i,{prefix:"zui-create-",evalValue:!0})||{},c=Object.keys(l);if(!c.length&&a.length===1)o(a[0],t.dataset());else{const h=new Set;[...a,...c].forEach(d=>{if(h.has(d))return;const f=l[d];o(d,f),delete l[d],h.add(d)})}}else{const a=t.dataset(),l=a==null?void 0:a.zui;if(!l)return;console.warn("[ZUI] create component instance with [data-zui] is deprecated, use [zui-create] instead.",{element:i,options:e}),a==null||delete a.zui,o(l,a)}}function Kb(){v(document).on("click.zui.toggle mouseenter.zui.toggle","[data-toggle],[zui-toggle]",function(i){const e=v(this),t=e.dataset("toggle")||e.attr("zui-toggle");if(!t)return;const n=Ge.toggleMap.get(t)||gr(t),s=n==null?void 0:n.toggle;if(!s)return;const{trigger:r="click",skip:o="[disabled],.disabled",check:a}=s,l=i.type==="mouseover"?"hover":"click";if(!r.includes(l)||a&&!a.call(n,this,l,i)||o&&e.is(o))return;const{onGet:c,onCreate:h,setOptions:d=!0,getOptions:f,prevent:m=!0,handler:y,onToggle:b,convertHref:w}=s;let x=e.dataset();const $=e.attr(`zui-toggle-${t}`);if($&&(x=v.extend(x,rs($))),w&&e.is("a")){const N=e.attr("href");if(N){const P=w===!0?{selector:"target",url:"url"}:w;"#.".includes(N[0])?P.selector&&x[P.selector]===void 0&&(x[P.selector]=N):P.url&&x[P.url]===void 0&&(x[P.url]=N)}}if(f&&(x=f.call(n,this,x,i)),y){y.call(n,this,x,l,i),m&&i.preventDefault();return}let D=c?c.call(n,this):n.get(this);if(D)d&&D.setOptions(x);else{const N=h?h.call(n,this,i,x):new n(this,x);if(!N)return;D=N}if(b){if(b.call(n,D,this,i)===!1)return}else{const{shown:N,show:P,hide:z,toggle:H}=D;let J;if(H?J=H:P&&z?N?J=z:J=P:P&&(J=P),J)J.call(D);else return}m&&i.preventDefault()})}function qb(i,e){const t=fr(i),n=[];return Object.keys(t).forEach(s=>{if(!s.startsWith("zui."))return;const r=t[s];(e==null?void 0:e(r,s))!==!1&&n.push(t[s])}),n}let Go=0;function wp(i=100){if(Go&&clearTimeout(Go),i){Go=window.setTimeout(()=>wp(0),i);return}Go=0,Ge.ALL.forEach(e=>{e.forEach(t=>!t.options.$notDestroyOnDetach&&t.autoDestroy())})}function Gb(){if(!document.body||fr(document.body,"_autoDestoryMob"))return;const i=new MutationObserver(e=>{let t=!1;for(const n of e)if(n.removedNodes.length){t=!0;break}t&&wp()});i.observe(document.body,{childList:!0,subtree:!0}),zo(document.body,"_autoDestoryMob",i)}function Zc(i,e){const t=v(i);t.find("[zui-create],[data-zui]").each(function(){var n;((n=e==null?void 0:e.beforeCreate)==null?void 0:n.call(e,this))!==!1&&Wb(this,e)}),t.find("[zui-init]").each(function(){if(this.hasAttribute("z-zui-inited"))return;this.setAttribute("z-zui-inited","");const n=this.getAttribute("zui-init");n&&v.runJS(n,["$element",v(this)])}),t.find(".hide-before-init").removeClass("invisible hidden opacity-0"),t.find(".scroll-into-view").scrollIntoView(),t.find('[data-on="inited"],[zui-on-inited]').each((n,s)=>{const r=v(s);r.zui()||r.trigger("inited")}),e!=null&&e.runJS&&t.runJS()}v.fn.zuiInit=function(i){return Zc(this,i),this},v.fn.zui=function(i,e){const t=this[0];if(!t)return;if(typeof i!="string"){const s={};let r;return qb(t,(o,a)=>{s[a]=o,(!r||r.gid1?t[0]:void 0,s=t[t.length>1?1:0],r=v(this).zui(n),o=r==null?void 0:r[s];typeof o=="function"&&o.apply(r,e)}),this},v(()=>{v("body").zuiInit({update:!0}),Kb(),Gb()});class Zo extends Ge{get $targets(){const{$element:e}=this,{targets:t}=this.options;return t?e.find(t):e}_handleScroll(e,t,n){const{offset:s=1}=this.options,r=this.$targets,o=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:l}=e;r.each((c,h)=>{const d=h.getBoundingClientRect(),f=t==="top"&&a>0&&d.top<=o.top+s||t==="bottom"&&d.bottom>=o.bottom-s||t==="left"&&l>0&&d.left<=o.left+s||t==="right"&&l{this._raf&&cancelAnimationFrame(this._raf),this._raf=requestAnimationFrame(()=>{this._raf=0,this._handleScroll(l,t,s)})};this._scrollListener=c,l.addEventListener("scroll",c)}this._container=l,requestAnimationFrame(()=>{this._handleScroll(l,t,s)})}else this._ob=new IntersectionObserver(l=>{l.forEach(c=>{c.target.classList.toggle(s,c.intersectionRatiothis._ob.observe(c))}destroy(){var e;(e=this._ob)==null||e.disconnect(),this._container&&(this._container.removeEventListener("scroll",this._scrollListener),this._raf&&cancelAnimationFrame(this._raf))}}Zo.NAME="Sticky";const bi=24*60*60*1e3,et=i=>i===void 0?new Date:(i instanceof Date||(typeof i=="string"&&(i=i.trim(),/^\d+$/.test(i)&&(i=Number.parseInt(i,10))),typeof i=="number"&&i<1e10&&(i*=1e3),i=new Date(i)),i),Cp=(i,e,t="day")=>{if(typeof e=="string"){const n=Number.parseInt(e,10);t=e.replace(n.toString(),""),e=n}return i=new Date(et(i).getTime()),t==="month"?i.setMonth(i.getMonth()+e):t==="year"?i.setFullYear(i.getFullYear()+e):t==="week"?i.setDate(i.getDate()+e*7):t==="hour"?i.setHours(i.getHours()+e):t==="minute"?i.setMinutes(i.getMinutes()+e):t==="second"?i.setSeconds(i.getSeconds()+e):i.setDate(i.getDate()+e),i},cs=(i,e=new Date)=>et(i).toDateString()===et(e).toDateString(),yr=(i,e=new Date)=>et(i).getFullYear()===et(e).getFullYear(),Yo=(i,e=new Date)=>(i=et(i),e=et(e),i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth()),Zb=(i,e=new Date)=>{i=et(i),e=et(e);const t=1e3*60*60*24,n=Math.floor(i.getTime()/t),s=Math.floor(e.getTime()/t);return Math.floor((n+4)/7)===Math.floor((s+4)/7)},xp=(i,e)=>cs(et(e),i),kp=(i,e)=>cs(et(e).getTime()-bi,i),Yb=(i,e)=>cs(et(e).getTime()+bi,i),Yc=i=>i!=null&&!isNaN(et(i).getTime()),st=(i,e="yyyy-MM-dd hh:mm",t="")=>{if(i=et(i),!Yc(i))return t;if(typeof e=="function")return e(i);const n={"M+":i.getMonth()+1,"d+":i.getDate(),"h+":i.getHours(),"H+":i.getHours()%12,"m+":i.getMinutes(),"s+":i.getSeconds(),"S+":i.getMilliseconds()};return/(y+)/i.test(e)&&(e.includes("[yyyy-]")&&(e=e.replace("[yyyy-]",yr(i)?"":"yyyy-")),e=e.replace(RegExp.$1,`${i.getFullYear()}`.substring(4-RegExp.$1.length))),Object.keys(n).forEach(s=>{if(new RegExp(`(${s})`).test(e)){const r=`${n[s]}`;e=e.replace(RegExp.$1,RegExp.$1.length===1?r:`00${r}`.substring(r.length))}}),e},Jb=(i,e,t)=>{const n={full:"yyyy-M-d",month:"M-d",day:"d",str:"{0} ~ {1}",...t},s=st(i,yr(i)?n.month:n.full);if(cs(i,e))return s;const r=st(e,yr(i,e)?Yo(i,e)?n.day:n.month:n.full);return n.str.replace("{0}",s).replace("{1}",r)};function Jc(i){let e=0;if(typeof i!="string"&&(i=String(i)),i&&i.length)for(let t=0;t{try{a.includes("%")&&(a=decodeURIComponent(a)),a=JSON.parse(a)}catch{}return[o,a]})),params:n.map(o=>{if(o!=="undefined"){if(o==="null")return null;try{return o.includes("%")&&(o=decodeURIComponent(o)),JSON.parse(o)}catch{return o}}})}}function Sp(i){if(Array.isArray(i))return{commands:i.map(Jo).filter(Boolean)};if(typeof i=="object")return i;i=i.replace(/^#!?/,"");const e=i.includes(">"),t=i.split(e?">":"|").map(Jo);return{async:e,commands:t.filter(Boolean)}}function Xc(i,e,t){if(typeof i=="string"&&(i=Jo(i)),!i)return;const{execute:n,event:s,scope:r}=e;if(!(r&&i.scope&&i.scope!==r))return n({name:i.name,options:{...e.options,...i.options},event:s,scope:i.scope,prevResult:t},i.params)}async function Qc(i,e){const{async:t,commands:n}=Sp(i);if(!n.length)return[];const{signal:s}=e;if(t){const o=[];let a;for(const l of n){if(!(s!=null&&s.aborted))break;a=await Xc(l,e,a),s!=null&&s.aborted&&(a=void 0),o.push(a)}return o}return await Promise.all(n.map(o=>{if(!(s!=null&&s.aborted))return Xc(o,e)}))}const wi="zui.commands",Ci="z-commands",eh="zui-commands-proxy",Tp="zui-command",Xo={};function $p(i,e){typeof i=="string"&&e?Xo[i]=e:typeof i=="object"&&Object.assign(Xo,i)}function xi(i,e){typeof e=="string"?e={scope:e}:typeof e=="function"&&(e={onCommand:e});const{scope:t="",events:n="click"}=e??{},s=v(i),r=(s.attr(Ci)||"").split(",");t&&!r.includes(t)&&r.push(t),s.attr(Ci,r.join(",")).data(wi,{[t]:{...e,scope:t,events:n,gid:Ye()},...s.data(wi)})}function vr(i,e=!0){const t=v(i);if(e===!0)t.removeAttr(Ci),t.removeData(wi);else if(e.length){const n=t.data(wi)||{};e.split(",").forEach(r=>{delete n[r]});const s=Object.keys(n);s.length?t.attr(Ci,s.join(",")).data(wi,xi):vr(t,!0)}}function Dp(i,e){let t=i.closest(`[${Ci}],[${eh}]`).first();if(t.attr(eh)!==void 0&&(t=v(t.data("zui.commandProxy")||t.attr(eh)).closest(`[${Ci}]`)),!t.length)return;const n=t.data(wi)||{},s=Object.values(n).sort((o,a)=>a.gid-o.gid);let r;return e!=null&&e.length?(r=s.find(o=>o.scope===e),r||(r=s.find(o=>{var a;return!((a=o.scope)!=null&&a.length)&&!o.scoped})),r):(r=s.find(o=>{var a;return!((a=o.scope)!=null&&a.length)&&!o.scoped}),r||(r=s.find(o=>!o.scoped)),r?r.element=t[0]:r=Dp(i.parent(),e),r)}function Xb(i){if(!i.currentTarget)return;const e=v(i.currentTarget);if(e.closest(".disabled,[disabled]").length)return;const t=e.attr(Tp)||(e.is('a[href^="#!"]')?e.attr("href"):"");if(!t)return;const n=new AbortController,s=()=>n.abort();Qc(t,{signal:n.signal,execute:(r,o)=>{const{scope:a,name:l}=r,c={...r,abort:s};let h;const d=Dp(e,a);if(d){c.element=d.element;const m=(d.commands?d.commands[`${a}~${l}`]||d.commands[l]:null)||d.onCommand;if(m&&(h=m(c,o),i.commandHandled))return h}const f=[c,o];if(e.trigger("command",f).trigger(`command:${a?`${l}.${a}`:l}`,f),a&&e.trigger(`command:.${a}`,f),i.commandHandled)return h;if(a==="event"){l==="stop"?i.stopPropagation():l==="prevent"?i.preventDefault():an(i,l,o);return}if(a!=null&&a.startsWith(".")){let m;if(a===".")m=e.closest("[z-use]").zui();else{const y=a.substring(1);m=e.closest(`[z-use-${y}]`).zui(y)}if(m)return an(m,l,o);console.warn(`[ZUI] Command "${l}" not found in scope "${a}".`);return}return a==="window"?an(window,l,o):a==="zui"?an(window.zui,l,o):a==="target"?an(e[0],l,o):a==="$target"?an(e,l,o):a==="$"?an(v,l,o):a===""&&Xo[l]!==void 0?Xo[l](c,o):h},event:i})}v.fn.command=function(i,e){return this.on(`command:${i}`,e)},v.fn.offCommand=function(i,e){return this.off(`command:${i}`,e)},v.fn.commands=function(i){return this.each((e,t)=>xi(t,i)),this},v.fn.unbindCommands=function(i){return this.each((e,t)=>vr(t,i)),this},v(()=>{v(document).on("click.zui.command",`[${Tp}],a[href^="#!"]`,Xb)});function _r(i,e,t=!1){var s;const n=v(i);if(e!==void 0){if(typeof e=="string"&&e.length){const r=`zui-runjs-${Ye()}`;n.append(`