import{r as Ce,w as en,c as za,d as ct,y as Ot,cg as tn,bm as nn,f as ja,a as te,V as zr,h as Cn,ae as Wa,F as kt,m as Nn,ah as Ha,n as $a,t as _n,a3 as qa,z as Cr,cD as di,cE as Ua,a9 as Xa,I as Va,cF as Ya,k as Ga,D as On,A as vt,al as Ka,e as Ue,aZ as Za,bF as Ja,b1 as J,bk as Qa,bo as es,b7 as gn,bl as lo,bY as Gt,T as fn,bx as An,v as uo,g as Xn,az as ts,ar as ns,bj as rs,x as Tn,af as co,C as dn,q as fo,cv as is,E as os,a5 as ho,a0 as as,M as ss}from"./index-b7874dfb.js";import{q as ls}from"./base-aba1ba3e.js";import{g as Vt,s as Ze}from"./index-3522afa9.js";import{w as hi,q as us,o as gt,a as ut,i as Tr,b as jr,S as Vn,c as Nt,g as er,r as tr,d as cs,e as fs,f as Wr,h as ds,M as Hr,t as mn,j as Mr,k as hs,U as pi,l as vi,m as Hn,n as ps,p as vs,s as gs,u as ms,v as ys,x as ws,y as bs,z as $r,A as po,B as Er,C as xs,D as Qe,E as Ve,F as nr,G as As,H as Kt,I as Yt,J as Bt,K as kn,L as qr,N as $n,O as Ss,P as Cs,Q as Ts,R as Ms,T as Yn,V as Es,W as gi,X as hr,Y as vo,Z as Os,_ as mi,$ as go,a0 as ks,a1 as Ps,a2 as Ln,a3 as mo,a4 as Rs,a5 as yo,a6 as Ds,a7 as Ns,a8 as _s}from"./fade-in-scale-up.cssr-abd7af99.js";import{T as Ls,a as yi}from"./index-ea2c9e6a.js";import"./use-tab-status-d70fdd09.js";import"./index-68a18edd.js";const Bs=(e,i)=>{const o=Ce(e());return en(e,f=>{f!==o.value&&(o.value=f)}),en(o,f=>{f!==e()&&i(f)}),o};function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var i=e.ownerDocument;return i&&i.defaultView||window}return e}function Ur(e){var i=Tt(e).Element;return e instanceof i||e instanceof Element}function Ct(e){var i=Tt(e).HTMLElement;return e instanceof i||e instanceof HTMLElement}function wo(e){if(typeof ShadowRoot>"u")return!1;var i=Tt(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}var vn=Math.round;function Or(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Fs(){return!/^((?!chrome|android).)*safari/i.test(Or())}function Gn(e,i,o){i===void 0&&(i=!1),o===void 0&&(o=!1);var f=e.getBoundingClientRect(),d=1,y=1;i&&Ct(e)&&(d=e.offsetWidth>0&&vn(f.width)/e.offsetWidth||1,y=e.offsetHeight>0&&vn(f.height)/e.offsetHeight||1);var A=Ur(e)?Tt(e):window,T=A.visualViewport,M=!Fs()&&o,C=(f.left+(M&&T?T.offsetLeft:0))/d,P=(f.top+(M&&T?T.offsetTop:0))/y,$=f.width/d,q=f.height/y;return{width:$,height:q,top:P,right:C+$,bottom:P+q,left:C,x:C,y:P}}function bo(e){var i=Tt(e),o=i.pageXOffset,f=i.pageYOffset;return{scrollLeft:o,scrollTop:f}}function Is(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zs(e){return e===Tt(e)||!Ct(e)?bo(e):Is(e)}function _t(e){return e?(e.nodeName||"").toLowerCase():null}function rr(e){return((Ur(e)?e.ownerDocument:e.document)||window.document).documentElement}function js(e){return Gn(rr(e)).left+bo(e).scrollLeft}function Lt(e){return Tt(e).getComputedStyle(e)}function Xr(e){var i=Lt(e),o=i.overflow,f=i.overflowX,d=i.overflowY;return/auto|scroll|overlay|hidden/.test(o+d+f)}function Ws(e){var i=e.getBoundingClientRect(),o=vn(i.width)/e.offsetWidth||1,f=vn(i.height)/e.offsetHeight||1;return o!==1||f!==1}function Hs(e,i,o){o===void 0&&(o=!1);var f=Ct(i),d=Ct(i)&&Ws(i),y=rr(i),A=Gn(e,d,o),T={scrollLeft:0,scrollTop:0},M={x:0,y:0};return(f||!f&&!o)&&((_t(i)!=="body"||Xr(y))&&(T=zs(i)),Ct(i)?(M=Gn(i,!0),M.x+=i.clientLeft,M.y+=i.clientTop):y&&(M.x=js(y))),{x:A.left+T.scrollLeft-M.x,y:A.top+T.scrollTop-M.y,width:A.width,height:A.height}}function $s(e){var i=Gn(e),o=e.offsetWidth,f=e.offsetHeight;return Math.abs(i.width-o)<=1&&(o=i.width),Math.abs(i.height-f)<=1&&(f=i.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:f}}function Vr(e){return _t(e)==="html"?e:e.assignedSlot||e.parentNode||(wo(e)?e.host:null)||rr(e)}function xo(e){return["html","body","#document"].indexOf(_t(e))>=0?e.ownerDocument.body:Ct(e)&&Xr(e)?e:xo(Vr(e))}function qn(e,i){var o;i===void 0&&(i=[]);var f=xo(e),d=f===((o=e.ownerDocument)==null?void 0:o.body),y=Tt(f),A=d?[y].concat(y.visualViewport||[],Xr(f)?f:[]):f,T=i.concat(A);return d?T:T.concat(qn(Vr(A)))}function qs(e){return["table","td","th"].indexOf(_t(e))>=0}function wi(e){return!Ct(e)||Lt(e).position==="fixed"?null:e.offsetParent}function Us(e){var i=/firefox/i.test(Or()),o=/Trident/i.test(Or());if(o&&Ct(e)){var f=Lt(e);if(f.position==="fixed")return null}var d=Vr(e);for(wo(d)&&(d=d.host);Ct(d)&&["html","body"].indexOf(_t(d))<0;){var y=Lt(d);if(y.transform!=="none"||y.perspective!=="none"||y.contain==="paint"||["transform","perspective"].indexOf(y.willChange)!==-1||i&&y.willChange==="filter"||i&&y.filter&&y.filter!=="none")return d;d=d.parentNode}return null}function Ao(e){for(var i=Tt(e),o=wi(e);o&&qs(o)&&Lt(o).position==="static";)o=wi(o);return o&&(_t(o)==="html"||_t(o)==="body"&&Lt(o).position==="static")?i:o||Us(e)||i}var hn="top",Kn="bottom",Mn="right",Zt="left",So="auto",Xs=[hn,Kn,Mn,Zt],Co="start",Zn="end",Vs=[].concat(Xs,[So]).reduce(function(e,i){return e.concat([i,i+"-"+Co,i+"-"+Zn])},[]),Ys="beforeRead",Gs="read",Ks="afterRead",Zs="beforeMain",Js="main",Qs="afterMain",el="beforeWrite",tl="write",nl="afterWrite",kr=[Ys,Gs,Ks,Zs,Js,Qs,el,tl,nl];function rl(e){var i=new Map,o=new Set,f=[];e.forEach(function(y){i.set(y.name,y)});function d(y){o.add(y.name);var A=[].concat(y.requires||[],y.requiresIfExists||[]);A.forEach(function(T){if(!o.has(T)){var M=i.get(T);M&&d(M)}}),f.push(y)}return e.forEach(function(y){o.has(y.name)||d(y)}),f}function il(e){var i=rl(e);return kr.reduce(function(o,f){return o.concat(i.filter(function(d){return d.phase===f}))},[])}function ol(e){var i;return function(){return i||(i=new Promise(function(o){Promise.resolve().then(function(){i=void 0,o(e())})})),i}}function zt(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),f=1;f=0?"x":"y"}function fl(e){var i=e.reference,o=e.element,f=e.placement,d=f?ir(f):null,y=f?To(f):null,A=i.x+i.width/2-o.width/2,T=i.y+i.height/2-o.height/2,M;switch(d){case hn:M={x:A,y:i.y-o.height};break;case Kn:M={x:A,y:i.y+i.height};break;case Mn:M={x:i.x+i.width,y:T};break;case Zt:M={x:i.x-o.width,y:T};break;default:M={x:i.x,y:i.y}}var C=d?cl(d):null;if(C!=null){var P=C==="y"?"height":"width";switch(y){case Co:M[C]=M[C]-(i[P]/2-o[P]/2);break;case Zn:M[C]=M[C]+(i[P]/2-o[P]/2);break}}return M}var xi="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",dl="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ai={placement:"bottom",modifiers:[],strategy:"absolute"};function Si(){for(var e=arguments.length,i=new Array(e),o=0;o100){console.error(dl);break}if(P.reset===!0){P.reset=!1,ee=-1;continue}var pe=P.orderedModifiers[ee],fe=pe.fn,ve=pe.options,Ae=ve===void 0?{}:ve,be=pe.name;typeof fe=="function"&&(P=fe({state:P,options:Ae,name:be,instance:U})||P)}}},update:ol(function(){return new Promise(function(L){U.forceUpdate(),L(P)})}),destroy:function(){_(),q=!0}};if(!Si(T,M))return console.error(xi),U;U.setOptions(C).then(function(L){!q&&C.onFirstUpdate&&C.onFirstUpdate(L)});function re(){P.orderedModifiers.forEach(function(L){var Z=L.name,D=L.options,ne=D===void 0?{}:D,ye=L.effect;if(typeof ye=="function"){var ee=ye({state:P,name:Z,instance:U,options:ne}),pe=function(){};$.push(ee||pe)}})}function _(){$.forEach(function(L){return L()}),$=[]}return U}}var Bn={passive:!0};function pl(e){var i=e.state,o=e.instance,f=e.options,d=f.scroll,y=d===void 0?!0:d,A=f.resize,T=A===void 0?!0:A,M=Tt(i.elements.popper),C=[].concat(i.scrollParents.reference,i.scrollParents.popper);return y&&C.forEach(function(P){P.addEventListener("scroll",o.update,Bn)}),T&&M.addEventListener("resize",o.update,Bn),function(){y&&C.forEach(function(P){P.removeEventListener("scroll",o.update,Bn)}),T&&M.removeEventListener("resize",o.update,Bn)}}var vl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pl,data:{}};function gl(e){var i=e.state,o=e.name;i.modifiersData[o]=fl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var ml={name:"popperOffsets",enabled:!0,phase:"read",fn:gl,data:{}},yl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wl(e){var i=e.x,o=e.y,f=window,d=f.devicePixelRatio||1;return{x:vn(i*d)/d||0,y:vn(o*d)/d||0}}function Ci(e){var i,o=e.popper,f=e.popperRect,d=e.placement,y=e.variation,A=e.offsets,T=e.position,M=e.gpuAcceleration,C=e.adaptive,P=e.roundOffsets,$=e.isFixed,q=A.x,U=q===void 0?0:q,re=A.y,_=re===void 0?0:re,L=typeof P=="function"?P({x:U,y:_}):{x:U,y:_};U=L.x,_=L.y;var Z=A.hasOwnProperty("x"),D=A.hasOwnProperty("y"),ne=Zt,ye=hn,ee=window;if(C){var pe=Ao(o),fe="clientHeight",ve="clientWidth";if(pe===Tt(o)&&(pe=rr(o),Lt(pe).position!=="static"&&T==="absolute"&&(fe="scrollHeight",ve="scrollWidth")),pe=pe,d===hn||(d===Zt||d===Mn)&&y===Zn){ye=Kn;var Ae=$&&pe===ee&&ee.visualViewport?ee.visualViewport.height:pe[fe];_-=Ae-f.height,_*=M?1:-1}if(d===Zt||(d===hn||d===Kn)&&y===Zn){ne=Mn;var be=$&&pe===ee&&ee.visualViewport?ee.visualViewport.width:pe[ve];U-=be-f.width,U*=M?1:-1}}var ke=Object.assign({position:T},C&&yl),Be=P===!0?wl({x:U,y:_}):{x:U,y:_};if(U=Be.x,_=Be.y,M){var Te;return Object.assign({},ke,(Te={},Te[ye]=D?"0":"",Te[ne]=Z?"0":"",Te.transform=(ee.devicePixelRatio||1)<=1?"translate("+U+"px, "+_+"px)":"translate3d("+U+"px, "+_+"px, 0)",Te))}return Object.assign({},ke,(i={},i[ye]=D?_+"px":"",i[ne]=Z?U+"px":"",i.transform="",i))}function bl(e){var i=e.state,o=e.options,f=o.gpuAcceleration,d=f===void 0?!0:f,y=o.adaptive,A=y===void 0?!0:y,T=o.roundOffsets,M=T===void 0?!0:T;{var C=Lt(i.elements.popper).transitionProperty||"";A&&["transform","top","right","bottom","left"].some(function($){return C.indexOf($)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",` `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var P={placement:ir(i.placement),variation:To(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:d,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Ci(Object.assign({},P,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:A,roundOffsets:M})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Ci(Object.assign({},P,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:M})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var xl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bl,data:{}};function Al(e){var i=e.state;Object.keys(i.elements).forEach(function(o){var f=i.styles[o]||{},d=i.attributes[o]||{},y=i.elements[o];!Ct(y)||!_t(y)||(Object.assign(y.style,f),Object.keys(d).forEach(function(A){var T=d[A];T===!1?y.removeAttribute(A):y.setAttribute(A,T===!0?"":T)}))})}function Sl(e){var i=e.state,o={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,o.popper),i.styles=o,i.elements.arrow&&Object.assign(i.elements.arrow.style,o.arrow),function(){Object.keys(i.elements).forEach(function(f){var d=i.elements[f],y=i.attributes[f]||{},A=Object.keys(i.styles.hasOwnProperty(f)?i.styles[f]:o[f]),T=A.reduce(function(M,C){return M[C]="",M},{});!Ct(d)||!_t(d)||(Object.assign(d.style,T),Object.keys(y).forEach(function(M){d.removeAttribute(M)}))})}}var Cl={name:"applyStyles",enabled:!0,phase:"write",fn:Al,effect:Sl,requires:["computeStyles"]},Tl=[vl,ml,xl,Cl],Ml=hl({defaultModifiers:Tl});function El(e,i,o){var f=ir(e),d=[Zt,hn].indexOf(f)>=0?-1:1,y=typeof o=="function"?o(Object.assign({},i,{placement:e})):o,A=y[0],T=y[1];return A=A||0,T=(T||0)*d,[Zt,Mn].indexOf(f)>=0?{x:T,y:A}:{x:A,y:T}}function Ol(e){var i=e.state,o=e.options,f=e.name,d=o.offset,y=d===void 0?[0,0]:d,A=Vs.reduce(function(P,$){return P[$]=El($,i.rects,y),P},{}),T=A[i.placement],M=T.x,C=T.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=M,i.modifiersData.popperOffsets.y+=C),i.modifiersData[f]=A}var kl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ol};const[Pl,Ut]=za("popover"),Rl=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Dl={show:Boolean,theme:Nn("light"),overlay:Boolean,actions:Ha(),actionsDirection:Nn("vertical"),trigger:Nn("click"),duration:$a,showArrow:_n,placement:Nn("bottom"),iconPrefix:String,overlayClass:qa,overlayStyle:Object,closeOnClickAction:_n,closeOnClickOverlay:_n,closeOnClickOutside:_n,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Nl=ct({name:Pl,props:Dl,emits:["select","touchstart","update:show"],setup(e,{emit:i,slots:o,attrs:f}){let d;const y=Ce(),A=Ce(),T=Ce(),M=Bs(()=>e.show,D=>i("update:show",D)),C=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Xa({},kl,{options:{offset:e.offset}})]}),P=()=>A.value&&T.value?Ml(A.value,T.value.popupRef.value,C()):null,$=()=>{Cr(()=>{M.value&&(d?d.setOptions(C()):(d=P(),di&&(window.addEventListener("animationend",$),window.addEventListener("transitionend",$))))})},q=D=>{M.value=D},U=()=>{e.trigger==="click"&&(M.value=!M.value)},re=(D,ne)=>{D.disabled||(i("select",D,ne),e.closeOnClickAction&&(M.value=!1))},_=()=>{M.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(M.value=!1)},L=(D,ne)=>o.action?o.action({action:D,index:ne}):[D.icon&&te(Va,{name:D.icon,classPrefix:e.iconPrefix,class:Ut("action-icon")},null),te("div",{class:[Ut("action-text"),{[Ya]:e.actionsDirection==="vertical"}]},[D.text])],Z=(D,ne)=>{const{icon:ye,color:ee,disabled:pe,className:fe}=D;return te("div",{role:"menuitem",class:[Ut("action",{disabled:pe,"with-icon":ye}),{[Ua]:e.actionsDirection==="horizontal"},fe],style:{color:ee},tabindex:pe?void 0:0,"aria-disabled":pe||void 0,onClick:()=>re(D,ne)},[L(D,ne)])};return Ot(()=>{$(),tn(()=>{var D;y.value=(D=T.value)==null?void 0:D.popupRef.value})}),nn(()=>{d&&(di&&(window.removeEventListener("animationend",$),window.removeEventListener("transitionend",$)),d.destroy(),d=null)}),en(()=>[M.value,e.offset,e.placement],$),ja([A,y],_,{eventName:"touchstart"}),()=>{var D;return te(kt,null,[te("span",{ref:A,class:Ut("wrapper"),onClick:U},[(D=o.reference)==null?void 0:D.call(o)]),te(zr,Cn({ref:T,show:M.value,class:Ut([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":q},f,Wa(e,Rl)),{default:()=>[e.showArrow&&te("div",{class:Ut("arrow")},null),te("div",{role:"menu",class:Ut("content",e.actionsDirection)},[o.default?o.default():e.actions.map(Z)])]})])}}});const _l=Ga(Nl),Ll="_container_jrmsw_1",Bl="_head_jrmsw_10",Fl="_back_jrmsw_18",Il="_tabs_jrmsw_21",zl="_downBtn_jrmsw_37",jl="_icon_jrmsw_61",Wl="_iconUp_jrmsw_67",Hl="_popover_jrmsw_72",$l="_content_jrmsw_91",ql="_wrap_jrmsw_97",Ul="_emtpyWrap_jrmsw_103",Xl="_wrapItem_jrmsw_114",Vl="_item_jrmsw_124",Yl="_name_jrmsw_155",Gl="_favoriteBtn_jrmsw_162",Kl="_containerImg_jrmsw_168",Zl="_cover_jrmsw_194",Jl="_loaded_jrmsw_224",Ql="_book_jrmsw_227",eu="_bookWrap_jrmsw_241",tu="_show_jrmsw_249",lt={container:Ll,head:Bl,back:Fl,tabs:Il,downBtn:zl,icon:jl,iconUp:Wl,popover:Hl,content:$l,wrap:ql,emtpyWrap:Ul,wrapItem:Xl,item:Vl,name:Yl,favoriteBtn:Gl,containerImg:Kl,cover:Zl,loaded:Jl,book:Ql,bookWrap:eu,show:tu},Mo=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,nu=e=>On.post("/edu-app/lessonCourseware/page",{data:e}),ru=e=>On.post("/edu-app/lessonCoursewareFavorite/page",{data:e}),iu=e=>On.post("/edu-app/lessonCoursewareFavorite/save",{data:e}),ou=e=>On.post("/edu-app/lessonCoursewareFavorite/remove",{data:e}),au=e=>On.get(`/edu-app/lessonCourseware/detail/${e}`);function Jn(e){return e.composedPath()[0]||null}function su(e=8){return Math.random().toString(16).slice(2,2+e)}function lu(e,i=[],o){const f={};return i.forEach(d=>{f[d]=e[d]}),Object.assign(f,o)}function Pr(e,i=!0,o=[]){return e.forEach(f=>{if(f!==null){if(typeof f!="object"){(typeof f=="string"||typeof f=="number")&&o.push(vt(String(f)));return}if(Array.isArray(f)){Pr(f,i,o);return}if(f.type===kt){if(f.children===null)return;Array.isArray(f.children)&&Pr(f.children,i,o)}else f.type!==Ka&&o.push(f)}}),o}function Ti(e,i="default",o=void 0){const f=e[i];if(!f)return hi("getFirstSlotVNode",`slot[${i}] is empty`),null;const d=Pr(f(o));return d.length===1?d[0]:(hi("getFirstSlotVNode",`slot[${i}] should have exactly one child`),null)}const Mi=ct({render(){var e,i;return(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e)}}),uu=/^(\d|\.)+$/,Ei=/(\d|\.)+/;function pr(e,{c:i=1,offset:o=0,attachPx:f=!0}={}){if(typeof e=="number"){const d=(e+o)*i;return d===0?"0":`${d}px`}else if(typeof e=="string")if(uu.test(e)){const d=(Number(e)+o)*i;return f?d===0?"0":`${d}px`:`${d}`}else{const d=Ei.exec(e);return d?e.replace(Ei,String((Number(d[0])+o)*i)):e}return e}function cu(e,i){if(e===void 0)return!1;if(i){const{context:{ids:o}}=i;return o.has(e)}return us(e)!==null}let vr;function fu(){return vr===void 0&&(vr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),vr}const du=typeof document<"u"&&typeof window<"u";function hu(e,i){return Ue(()=>{for(const o of i)if(e[o]!==void 0)return e[o];return e[i[i.length-1]]})}const pu=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function vu(){return pu}const ln="@@mmoContext",gu={mounted(e,{value:i}){e[ln]={handler:void 0},typeof i=="function"&&(e[ln].handler=i,gt("mousemoveoutside",e,i))},updated(e,{value:i}){const o=e[ln];typeof i=="function"?o.handler?o.handler!==i&&(ut("mousemoveoutside",e,o.handler),o.handler=i,gt("mousemoveoutside",e,i)):(e[ln].handler=i,gt("mousemoveoutside",e,i)):o.handler&&(ut("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:i}=e[ln];i&&ut("mousemoveoutside",e,i),e[ln].handler=void 0}},mu=gu,un="@@coContext",yu={mounted(e,{value:i,modifiers:o}){e[un]={handler:void 0},typeof i=="function"&&(e[un].handler=i,gt("clickoutside",e,i,{capture:o.capture}))},updated(e,{value:i,modifiers:o}){const f=e[un];typeof i=="function"?f.handler?f.handler!==i&&(ut("clickoutside",e,f.handler,{capture:o.capture}),f.handler=i,gt("clickoutside",e,i,{capture:o.capture})):(e[un].handler=i,gt("clickoutside",e,i,{capture:o.capture})):f.handler&&(ut("clickoutside",e,f.handler,{capture:o.capture}),f.handler=void 0)},unmounted(e,{modifiers:i}){const{handler:o}=e[un];o&&ut("clickoutside",e,o,{capture:i.capture}),e[un].handler=void 0}},Oi=yu;function ki(e,i){console.error(`[vueuc/${e}]: ${i}`)}function Pi(e){return typeof e=="string"?document.querySelector(e):e()}var Jt=[],wu=function(){return Jt.some(function(e){return e.activeTargets.length>0})},bu=function(){return Jt.some(function(e){return e.skippedTargets.length>0})},Ri="ResizeObserver loop completed with undelivered notifications.",xu=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ri}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ri),window.dispatchEvent(e)},En;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(En||(En={}));var Qt=function(e){return Object.freeze(e)},Au=function(){function e(i,o){this.inlineSize=i,this.blockSize=o,Qt(this)}return e}(),Eo=function(){function e(i,o,f,d){return this.x=i,this.y=o,this.width=f,this.height=d,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Qt(this)}return e.prototype.toJSON=function(){var i=this,o=i.x,f=i.y,d=i.top,y=i.right,A=i.bottom,T=i.left,M=i.width,C=i.height;return{x:o,y:f,top:d,right:y,bottom:A,left:T,width:M,height:C}},e.fromRect=function(i){return new e(i.x,i.y,i.width,i.height)},e}(),Yr=function(e){return e instanceof SVGElement&&"getBBox"in e},Oo=function(e){if(Yr(e)){var i=e.getBBox(),o=i.width,f=i.height;return!o&&!f}var d=e,y=d.offsetWidth,A=d.offsetHeight;return!(y||A||e.getClientRects().length)},Di=function(e){var i;if(e instanceof Element)return!0;var o=(i=e==null?void 0:e.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(o&&e instanceof o.Element)},Su=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Sn=typeof window<"u"?window:{},Fn=new WeakMap,Ni=/auto|scroll/,Cu=/^tb|vertical/,Tu=/msie|trident/i.test(Sn.navigator&&Sn.navigator.userAgent),Et=function(e){return parseFloat(e||"0")},pn=function(e,i,o){return e===void 0&&(e=0),i===void 0&&(i=0),o===void 0&&(o=!1),new Au((o?i:e)||0,(o?e:i)||0)},_i=Qt({devicePixelContentBoxSize:pn(),borderBoxSize:pn(),contentBoxSize:pn(),contentRect:new Eo(0,0,0,0)}),ko=function(e,i){if(i===void 0&&(i=!1),Fn.has(e)&&!i)return Fn.get(e);if(Oo(e))return Fn.set(e,_i),_i;var o=getComputedStyle(e),f=Yr(e)&&e.ownerSVGElement&&e.getBBox(),d=!Tu&&o.boxSizing==="border-box",y=Cu.test(o.writingMode||""),A=!f&&Ni.test(o.overflowY||""),T=!f&&Ni.test(o.overflowX||""),M=f?0:Et(o.paddingTop),C=f?0:Et(o.paddingRight),P=f?0:Et(o.paddingBottom),$=f?0:Et(o.paddingLeft),q=f?0:Et(o.borderTopWidth),U=f?0:Et(o.borderRightWidth),re=f?0:Et(o.borderBottomWidth),_=f?0:Et(o.borderLeftWidth),L=$+C,Z=M+P,D=_+U,ne=q+re,ye=T?e.offsetHeight-ne-e.clientHeight:0,ee=A?e.offsetWidth-D-e.clientWidth:0,pe=d?L+D:0,fe=d?Z+ne:0,ve=f?f.width:Et(o.width)-pe-ee,Ae=f?f.height:Et(o.height)-fe-ye,be=ve+L+ee+D,ke=Ae+Z+ye+ne,Be=Qt({devicePixelContentBoxSize:pn(Math.round(ve*devicePixelRatio),Math.round(Ae*devicePixelRatio),y),borderBoxSize:pn(be,ke,y),contentBoxSize:pn(ve,Ae,y),contentRect:new Eo($,M,ve,Ae)});return Fn.set(e,Be),Be},Po=function(e,i,o){var f=ko(e,o),d=f.borderBoxSize,y=f.contentBoxSize,A=f.devicePixelContentBoxSize;switch(i){case En.DEVICE_PIXEL_CONTENT_BOX:return A;case En.BORDER_BOX:return d;default:return y}},Mu=function(){function e(i){var o=ko(i);this.target=i,this.contentRect=o.contentRect,this.borderBoxSize=Qt([o.borderBoxSize]),this.contentBoxSize=Qt([o.contentBoxSize]),this.devicePixelContentBoxSize=Qt([o.devicePixelContentBoxSize])}return e}(),Ro=function(e){if(Oo(e))return 1/0;for(var i=0,o=e.parentNode;o;)i+=1,o=o.parentNode;return i},Eu=function(){var e=1/0,i=[];Jt.forEach(function(A){if(A.activeTargets.length!==0){var T=[];A.activeTargets.forEach(function(C){var P=new Mu(C.target),$=Ro(C.target);T.push(P),C.lastReportedSize=Po(C.target,C.observedBox),$e?o.activeTargets.push(d):o.skippedTargets.push(d))})})},Ou=function(){var e=0;for(Li(e);wu();)e=Eu(),Li(e);return bu()&&xu(),e>0},gr,Do=[],ku=function(){return Do.splice(0).forEach(function(e){return e()})},Pu=function(e){if(!gr){var i=0,o=document.createTextNode(""),f={characterData:!0};new MutationObserver(function(){return ku()}).observe(o,f),gr=function(){o.textContent="".concat(i?i--:i++)}}Do.push(e),gr()},Ru=function(e){Pu(function(){requestAnimationFrame(e)})},Un=0,Du=function(){return!!Un},Nu=250,_u={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fi=function(e){return e===void 0&&(e=0),Date.now()+e},mr=!1,Lu=function(){function e(){var i=this;this.stopped=!0,this.listener=function(){return i.schedule()}}return e.prototype.run=function(i){var o=this;if(i===void 0&&(i=Nu),!mr){mr=!0;var f=Fi(i);Ru(function(){var d=!1;try{d=Ou()}finally{if(mr=!1,i=f-Fi(),!Du())return;d?o.run(1e3):i>0?o.run(i):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var i=this,o=function(){return i.observer&&i.observer.observe(document.body,_u)};document.body?o():Sn.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bi.forEach(function(o){return Sn.addEventListener(o,i.listener,!0)}))},e.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Bi.forEach(function(o){return Sn.removeEventListener(o,i.listener,!0)}),this.stopped=!0)},e}(),Rr=new Lu,Ii=function(e){!Un&&e>0&&Rr.start(),Un+=e,!Un&&Rr.stop()},Bu=function(e){return!Yr(e)&&!Su(e)&&getComputedStyle(e).display==="inline"},Fu=function(){function e(i,o){this.target=i,this.observedBox=o||En.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var i=Po(this.target,this.observedBox,!0);return Bu(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},e}(),Iu=function(){function e(i,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=o}return e}(),In=new WeakMap,zi=function(e,i){for(var o=0;o=0&&(y&&Jt.splice(Jt.indexOf(f),1),f.observationTargets.splice(d,1),Ii(-1))},e.disconnect=function(i){var o=this,f=In.get(i);f.observationTargets.slice().forEach(function(d){return o.unobserve(i,d.target)}),f.activeTargets.splice(0,f.activeTargets.length)},e}(),zu=function(){function e(i){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof i!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");zn.connect(this,i)}return e.prototype.observe=function(i,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Di(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");zn.observe(this,i,o)},e.prototype.unobserve=function(i){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Di(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");zn.unobserve(this,i)},e.prototype.disconnect=function(){zn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class ju{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||zu)(this.handleResize),this.elHandlersMap=new Map}handleResize(i){for(const o of i){const f=this.elHandlersMap.get(o.target);f!==void 0&&f(o)}}registerHandler(i,o){this.elHandlersMap.set(i,o),this.observer.observe(i)}unregisterHandler(i){this.elHandlersMap.has(i)&&(this.elHandlersMap.delete(i),this.observer.unobserve(i))}}const ji=new ju,Wi=ct({name:"ResizeObserver",props:{onResize:Function},setup(e){let i=!1;const o=Za().proxy;function f(d){const{onResize:y}=e;y!==void 0&&y(d)}Ot(()=>{const d=o.$el;if(d===void 0){ki("resize-observer","$el does not exist.");return}if(d.nextElementSibling!==d.nextSibling&&d.nodeType===3&&d.nodeValue!==""){ki("resize-observer","$el can not be observed (it may be a text node).");return}d.nextElementSibling!==null&&(ji.registerHandler(d.nextElementSibling,f),i=!0)}),nn(()=>{i&&ji.unregisterHandler(o.$el.nextElementSibling)})},render(){return Ja(this.$slots,"default")}});function No(e){return e instanceof HTMLElement}function _o(e){for(let i=0;i=0;i--){const o=e.childNodes[i];if(No(o)&&(Bo(o)||Lo(o)))return!0}return!1}function Bo(e){if(!Wu(e))return!1;try{e.focus({preventScroll:!0})}catch(i){}return document.activeElement===e}function Wu(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let wn=[];const Hu=ct({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const i=su(),o=Ce(null),f=Ce(null);let d=!1,y=!1;const A=typeof document>"u"?null:document.activeElement;function T(){return wn[wn.length-1]===i}function M(L){var Z;L.code==="Escape"&&T()&&((Z=e.onEsc)===null||Z===void 0||Z.call(e,L))}Ot(()=>{en(()=>e.active,L=>{L?($(),gt("keydown",document,M)):(ut("keydown",document,M),d&&q())},{immediate:!0})}),nn(()=>{ut("keydown",document,M),d&&q()});function C(L){if(!y&&T()){const Z=P();if(Z===null||Z.contains(Jn(L)))return;U("first")}}function P(){const L=o.value;if(L===null)return null;let Z=L;for(;Z=Z.nextSibling,!(Z===null||Z instanceof Element&&Z.tagName==="DIV"););return Z}function $(){var L;if(!e.disabled){if(wn.push(i),e.autoFocus){const{initialFocusTo:Z}=e;Z===void 0?U("first"):(L=Pi(Z))===null||L===void 0||L.focus({preventScroll:!0})}d=!0,document.addEventListener("focus",C,!0)}}function q(){var L;if(e.disabled||(document.removeEventListener("focus",C,!0),wn=wn.filter(D=>D!==i),T()))return;const{finalFocusTo:Z}=e;Z!==void 0?(L=Pi(Z))===null||L===void 0||L.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&A instanceof HTMLElement&&(y=!0,A.focus({preventScroll:!0}),y=!1)}function U(L){if(T()&&e.active){const Z=o.value,D=f.value;if(Z!==null&&D!==null){const ne=P();if(ne==null||ne===D){y=!0,Z.focus({preventScroll:!0}),y=!1;return}y=!0;const ye=L==="first"?_o(ne):Lo(ne);y=!1,ye||(y=!0,Z.focus({preventScroll:!0}),y=!1)}}}function re(L){if(y)return;const Z=P();Z!==null&&(L.relatedTarget!==null&&Z.contains(L.relatedTarget)?U("last"):U("first"))}function _(L){y||(L.relatedTarget!==null&&L.relatedTarget===o.value?U("last"):U("first"))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:re,handleEndFocus:_}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:i,focusableStyle:o}=this;return J(kt,null,[J("div",{"aria-hidden":"true",tabindex:i?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),J("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:i?"0":"-1",onFocus:this.handleEndFocus})])}});function $u(e){const i={isDeactivated:!1};let o=!1;return Qa(()=>{if(i.isDeactivated=!1,!o){o=!0;return}e()}),es(()=>{i.isDeactivated=!0,o||(o=!0)}),i}var qu="[object Symbol]";function Gr(e){return typeof e=="symbol"||Tr(e)&&jr(e)==qu}function Fo(e,i){for(var o=-1,f=e==null?0:e.length,d=Array(f);++od?0:d+i),o=o>d?d:o,o<0&&(o+=d),d=i>o?0:o-i>>>0,i>>>=0;for(var y=Array(d);++f=f?e:cc(e,i,o)}var dc="\\ud800-\\udfff",hc="\\u0300-\\u036f",pc="\\ufe20-\\ufe2f",vc="\\u20d0-\\u20ff",gc=hc+pc+vc,mc="\\ufe0e\\ufe0f",yc="\\u200d",wc=RegExp("["+yc+dc+gc+mc+"]");function Wo(e){return wc.test(e)}function bc(e){return e.split("")}var Ho="\\ud800-\\udfff",xc="\\u0300-\\u036f",Ac="\\ufe20-\\ufe2f",Sc="\\u20d0-\\u20ff",Cc=xc+Ac+Sc,Tc="\\ufe0e\\ufe0f",Mc="["+Ho+"]",Nr="["+Cc+"]",_r="\\ud83c[\\udffb-\\udfff]",Ec="(?:"+Nr+"|"+_r+")",$o="[^"+Ho+"]",qo="(?:\\ud83c[\\udde6-\\uddff]){2}",Uo="[\\ud800-\\udbff][\\udc00-\\udfff]",Oc="\\u200d",Xo=Ec+"?",Vo="["+Tc+"]?",kc="(?:"+Oc+"(?:"+[$o,qo,Uo].join("|")+")"+Vo+Xo+")*",Pc=Vo+Xo+kc,Rc="(?:"+[$o+Nr+"?",Nr,qo,Uo,Mc].join("|")+")",Dc=RegExp(_r+"(?="+_r+")|"+Rc+Pc,"g");function Nc(e){return e.match(Dc)||[]}function _c(e){return Wo(e)?Nc(e):bc(e)}function Lc(e){return function(i){i=or(i);var o=Wo(i)?_c(i):void 0,f=o?o[0]:i.charAt(0),d=o?fc(o,1).join(""):i.slice(1);return f[e]()+d}}var Bc=Lc("toUpperCase");const Fc=Bc;function Ic(e,i,o,f){var d=-1,y=e==null?0:e.length;for(f&&y&&(o=e[++d]);++dT))return!1;var C=y.get(e),P=y.get(i);if(C&&P)return C==i&&P==e;var $=-1,q=!0,U=o&Zf?new Qn:void 0;for(y.set(e,i),y.set(i,e);++$`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Ud=qd;function wr(e){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=i.width?String(i.width):e.defaultWidth,f=e.formats[o]||e.formats[e.defaultWidth];return f}}function bn(e){return function(i,o){var f=o!=null&&o.context?String(o.context):"standalone",d;if(f==="formatting"&&e.formattingValues){var y=e.defaultFormattingWidth||e.defaultWidth,A=o!=null&&o.width?String(o.width):y;d=e.formattingValues[A]||e.formattingValues[y]}else{var T=e.defaultWidth,M=o!=null&&o.width?String(o.width):e.defaultWidth;d=e.values[M]||e.values[T]}var C=e.argumentCallback?e.argumentCallback(i):i;return d[C]}}function xn(e){return function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=o.width,d=f&&e.matchPatterns[f]||e.matchPatterns[e.defaultMatchWidth],y=i.match(d);if(!y)return null;var A=y[0],T=f&&e.parsePatterns[f]||e.parsePatterns[e.defaultParseWidth],M=Array.isArray(T)?Vd(T,function($){return $.test(A)}):Xd(T,function($){return $.test(A)}),C;C=e.valueCallback?e.valueCallback(M):M,C=o.valueCallback?o.valueCallback(C):C;var P=i.slice(A.length);return{value:C,rest:P}}}function Xd(e,i){for(var o in e)if(e.hasOwnProperty(o)&&i(e[o]))return o}function Vd(e,i){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:{},f=i.match(e.matchPattern);if(!f)return null;var d=f[0],y=i.match(e.parsePattern);if(!y)return null;var A=e.valueCallback?e.valueCallback(y[0]):y[0];A=o.valueCallback?o.valueCallback(A):A;var T=i.slice(d.length);return{value:A,rest:T}}}var Gd={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Kd=function(i,o,f){var d,y=Gd[i];return typeof y=="string"?d=y:o===1?d=y.one:d=y.other.replace("{{count}}",o.toString()),f!=null&&f.addSuffix?f.comparison&&f.comparison>0?"in "+d:d+" ago":d};const Zd=Kd;var Jd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},th={date:wr({formats:Jd,defaultWidth:"full"}),time:wr({formats:Qd,defaultWidth:"full"}),dateTime:wr({formats:eh,defaultWidth:"full"})};const nh=th;var rh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ih=function(i,o,f,d){return rh[i]};const oh=ih;var ah={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lh={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},uh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ch={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dh=function(i,o){var f=Number(i),d=f%100;if(d>20||d<10)switch(d%10){case 1:return f+"st";case 2:return f+"nd";case 3:return f+"rd"}return f+"th"},hh={ordinalNumber:dh,era:bn({values:ah,defaultWidth:"wide"}),quarter:bn({values:sh,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:bn({values:lh,defaultWidth:"wide"}),day:bn({values:uh,defaultWidth:"wide"}),dayPeriod:bn({values:ch,defaultWidth:"wide",formattingValues:fh,defaultFormattingWidth:"wide"})};const ph=hh;var vh=/^(\d+)(th|st|nd|rd)?/i,gh=/\d+/i,mh={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yh={any:[/^b/i,/^(a|c)/i]},wh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bh={any:[/1/i,/2/i,/3/i,/4/i]},xh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ah={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Sh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ch={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Th={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mh={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Eh={ordinalNumber:Yd({matchPattern:vh,parsePattern:gh,valueCallback:function(i){return parseInt(i,10)}}),era:xn({matchPatterns:mh,defaultMatchWidth:"wide",parsePatterns:yh,defaultParseWidth:"any"}),quarter:xn({matchPatterns:wh,defaultMatchWidth:"wide",parsePatterns:bh,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:xn({matchPatterns:xh,defaultMatchWidth:"wide",parsePatterns:Ah,defaultParseWidth:"any"}),day:xn({matchPatterns:Sh,defaultMatchWidth:"wide",parsePatterns:Ch,defaultParseWidth:"any"}),dayPeriod:xn({matchPatterns:Th,defaultMatchWidth:"any",parsePatterns:Mh,defaultParseWidth:"any"})};const Oh=Eh;var kh={code:"en-US",formatDistance:Zd,formatLong:nh,formatRelative:oh,localize:ph,match:Oh,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ph=kh,Rh={name:"en-US",locale:Ph},Dh=Rh;function Nh(e){const{mergedLocaleRef:i,mergedDateLocaleRef:o}=gn($r,null)||{},f=Ue(()=>{var y,A;return(A=(y=i==null?void 0:i.value)===null||y===void 0?void 0:y[e])!==null&&A!==void 0?A:Ud[e]});return{dateLocaleRef:Ue(()=>{var y;return(y=o==null?void 0:o.value)!==null&&y!==void 0?y:Dh}),localeRef:f}}function _h(e,i,o){if(!i)return;const f=po(),d=gn($r,null),y=()=>{const A=o==null?void 0:o.value;i.mount({id:A===void 0?e:A+e,head:!0,anchorMetaName:Er,props:{bPrefix:A?`.${A}-`:void 0},ssr:f}),d!=null&&d.preflightStyleDisabled||xs.mount({id:"n-global",head:!0,anchorMetaName:Er,ssr:f})};f?y():lo(y)}function Lh(e,i,o){if(!i)return;const f=po(),d=Ue(()=>{const{value:A}=i;if(!A)return;const T=A[e];if(T)return T}),y=()=>{tn(()=>{const{value:A}=o,T=`${A}${e}Rtl`;if(cu(T,f))return;const{value:M}=d;M&&M.style.mount({id:T,head:!0,anchorMetaName:Er,props:{bPrefix:A?`.${A}-`:void 0},ssr:f})})};return f?y():lo(y),d}function sr(e,i){return ct({name:Fc(e),setup(){var o;const f=(o=gn($r,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var d;const y=(d=f==null?void 0:f.value)===null||d===void 0?void 0:d[e];return y?y():i}}})}const Bh=sr("rotateClockwise",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),J("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),Fh=sr("rotateClockwise",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),J("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Ih=sr("zoomIn",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),J("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),zh=sr("zoomOut",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),J("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),jh=ct({name:"ResizeSmall",render(){return J("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},J("g",{fill:"none"},J("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Wh=Qe("base-icon",` height: 1em; width: 1em; line-height: 1em; text-align: center; display: inline-block; position: relative; fill: currentColor; transform: translateZ(0); `,[Ve("svg",` height: 1em; width: 1em; `)]),jt=ct({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){_h("-base-icon",Wh,Gt(e,"clsPrefix"))},render(){return J("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Hh=e=>{const{scrollbarColor:i,scrollbarColorHover:o}=e;return{color:i,colorHover:o}},$h={name:"Scrollbar",common:nr,self:Hh},qh=$h,{cubicBezierEaseInOut:ao}=As;function Ir({name:e="fade-in",enterDuration:i="0.2s",leaveDuration:o="0.2s",enterCubicBezier:f=ao,leaveCubicBezier:d=ao}={}){return[Ve(`&.${e}-transition-enter-active`,{transition:`all ${i} ${f}!important`}),Ve(`&.${e}-transition-leave-active`,{transition:`all ${o} ${d}!important`}),Ve(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Ve(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Uh=Qe("scrollbar",` overflow: hidden; position: relative; z-index: auto; height: 100%; width: 100%; `,[Ve(">",[Qe("scrollbar-container",` width: 100%; overflow: scroll; height: 100%; max-height: inherit; scrollbar-width: none; `,[Ve("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` width: 0; height: 0; display: none; `),Ve(">",[Qe("scrollbar-content",` box-sizing: border-box; min-width: 100%; `)])])]),Ve(">, +",[Qe("scrollbar-rail",` position: absolute; pointer-events: none; user-select: none; -webkit-user-select: none; `,[Kt("horizontal",` left: 2px; right: 2px; bottom: 4px; height: var(--n-scrollbar-height); `,[Ve(">",[Yt("scrollbar",` height: var(--n-scrollbar-height); border-radius: var(--n-scrollbar-border-radius); right: 0; `)])]),Kt("vertical",` right: 4px; top: 2px; bottom: 2px; width: var(--n-scrollbar-width); `,[Ve(">",[Yt("scrollbar",` width: var(--n-scrollbar-width); border-radius: var(--n-scrollbar-border-radius); bottom: 0; `)])]),Kt("disabled",[Ve(">",[Yt("scrollbar",{pointerEvents:"none"})])]),Ve(">",[Yt("scrollbar",` position: absolute; cursor: pointer; pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); `,[Ir(),Ve("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Xh=Object.assign(Object.assign({},Bt.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Vh=ct({name:"Scrollbar",props:Xh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:o,mergedRtlRef:f}=kn(e),d=Lh("Scrollbar",f,i),y=Ce(null),A=Ce(null),T=Ce(null),M=Ce(null),C=Ce(null),P=Ce(null),$=Ce(null),q=Ce(null),U=Ce(null),re=Ce(null),_=Ce(null),L=Ce(0),Z=Ce(0),D=Ce(!1),ne=Ce(!1);let ye=!1,ee=!1,pe,fe,ve=0,Ae=0,be=0,ke=0;const Be=vu(),Te=Ue(()=>{const{value:Y}=q,{value:ue}=P,{value:we}=re;return Y===null||ue===null||we===null?0:Math.min(Y,we*Y/ue+e.size*1.5)}),de=Ue(()=>`${Te.value}px`),Pe=Ue(()=>{const{value:Y}=U,{value:ue}=$,{value:we}=_;return Y===null||ue===null||we===null?0:we*Y/ue+e.size*1.5}),X=Ue(()=>`${Pe.value}px`),s=Ue(()=>{const{value:Y}=q,{value:ue}=L,{value:we}=P,{value:De}=re;if(Y===null||we===null||De===null)return 0;{const je=we-Y;return je?ue/je*(De-Te.value):0}}),l=Ue(()=>`${s.value}px`),n=Ue(()=>{const{value:Y}=U,{value:ue}=Z,{value:we}=$,{value:De}=_;if(Y===null||we===null||De===null)return 0;{const je=we-Y;return je?ue/je*(De-Pe.value):0}}),m=Ue(()=>`${n.value}px`),b=Ue(()=>{const{value:Y}=q,{value:ue}=P;return Y!==null&&ue!==null&&ue>Y}),B=Ue(()=>{const{value:Y}=U,{value:ue}=$;return Y!==null&&ue!==null&&ue>Y}),ae=Ue(()=>{const{trigger:Y}=e;return Y==="none"||D.value}),Q=Ue(()=>{const{trigger:Y}=e;return Y==="none"||ne.value}),he=Ue(()=>{const{container:Y}=e;return Y?Y():A.value}),Re=Ue(()=>{const{content:Y}=e;return Y?Y():T.value}),Ne=$u(()=>{e.container||nt({top:L.value,left:Z.value})}),Ie=()=>{Ne.isDeactivated||mt()},st=Y=>{if(Ne.isDeactivated)return;const{onResize:ue}=e;ue&&ue(Y),mt()},nt=(Y,ue)=>{if(!e.scrollable)return;if(typeof Y=="number"){G(ue!=null?ue:0,Y,0,!1,"auto");return}const{left:we,top:De,index:je,elSize:Ke,position:ft,behavior:Fe,el:$e,debounce:Wt=!0}=Y;(we!==void 0||De!==void 0)&&G(we!=null?we:0,De!=null?De:0,0,!1,Fe),$e!==void 0?G(0,$e.offsetTop,$e.offsetHeight,Wt,Fe):je!==void 0&&Ke!==void 0?G(0,je*Ke,Ke,Wt,Fe):ft==="bottom"?G(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):ft==="top"&&G(0,0,0,!1,Fe)},He=(Y,ue)=>{if(!e.scrollable)return;const{value:we}=he;we&&(typeof Y=="object"?we.scrollBy(Y):we.scrollBy(Y,ue||0))};function G(Y,ue,we,De,je){const{value:Ke}=he;if(Ke){if(De){const{scrollTop:ft,offsetHeight:Fe}=Ke;if(ue>ft){ue+we<=ft+Fe||Ke.scrollTo({left:Y,top:ue+we-Fe,behavior:je});return}}Ke.scrollTo({left:Y,top:ue,behavior:je})}}function ge(){Ye(),rt(),mt()}function le(){Ee()}function Ee(){_e(),Xe()}function _e(){fe!==void 0&&window.clearTimeout(fe),fe=window.setTimeout(()=>{ne.value=!1},e.duration)}function Xe(){pe!==void 0&&window.clearTimeout(pe),pe=window.setTimeout(()=>{D.value=!1},e.duration)}function Ye(){pe!==void 0&&window.clearTimeout(pe),D.value=!0}function rt(){fe!==void 0&&window.clearTimeout(fe),ne.value=!0}function et(Y){const{onScroll:ue}=e;ue&&ue(Y),Pt()}function Pt(){const{value:Y}=he;Y&&(L.value=Y.scrollTop,Z.value=Y.scrollLeft*(d!=null&&d.value?-1:1))}function rn(){const{value:Y}=Re;Y&&(P.value=Y.offsetHeight,$.value=Y.offsetWidth);const{value:ue}=he;ue&&(q.value=ue.offsetHeight,U.value=ue.offsetWidth);const{value:we}=C,{value:De}=M;we&&(_.value=we.offsetWidth),De&&(re.value=De.offsetHeight)}function pt(){const{value:Y}=he;Y&&(L.value=Y.scrollTop,Z.value=Y.scrollLeft*(d!=null&&d.value?-1:1),q.value=Y.offsetHeight,U.value=Y.offsetWidth,P.value=Y.scrollHeight,$.value=Y.scrollWidth);const{value:ue}=C,{value:we}=M;ue&&(_.value=ue.offsetWidth),we&&(re.value=we.offsetHeight)}function mt(){e.scrollable&&(e.useUnifiedContainer?pt():(rn(),Pt()))}function Ge(Y){var ue;return!(!((ue=y.value)===null||ue===void 0)&&ue.contains(Jn(Y)))}function yn(Y){Y.preventDefault(),Y.stopPropagation(),ee=!0,gt("mousemove",window,Rt,!0),gt("mouseup",window,Ft,!0),Ae=Z.value,be=d!=null&&d.value?window.innerWidth-Y.clientX:Y.clientX}function Rt(Y){if(!ee)return;pe!==void 0&&window.clearTimeout(pe),fe!==void 0&&window.clearTimeout(fe);const{value:ue}=U,{value:we}=$,{value:De}=Pe;if(ue===null||we===null)return;const Ke=(d!=null&&d.value?window.innerWidth-Y.clientX-be:Y.clientX-be)*(we-ue)/(ue-De),ft=we-ue;let Fe=Ae+Ke;Fe=Math.min(ft,Fe),Fe=Math.max(Fe,0);const{value:$e}=he;if($e){$e.scrollLeft=Fe*(d!=null&&d.value?-1:1);const{internalOnUpdateScrollLeft:Wt}=e;Wt&&Wt(Fe)}}function Ft(Y){Y.preventDefault(),Y.stopPropagation(),ut("mousemove",window,Rt,!0),ut("mouseup",window,Ft,!0),ee=!1,mt(),Ge(Y)&&Ee()}function At(Y){Y.preventDefault(),Y.stopPropagation(),ye=!0,gt("mousemove",window,yt,!0),gt("mouseup",window,wt,!0),ve=L.value,ke=Y.clientY}function yt(Y){if(!ye)return;pe!==void 0&&window.clearTimeout(pe),fe!==void 0&&window.clearTimeout(fe);const{value:ue}=q,{value:we}=P,{value:De}=Te;if(ue===null||we===null)return;const Ke=(Y.clientY-ke)*(we-ue)/(ue-De),ft=we-ue;let Fe=ve+Ke;Fe=Math.min(ft,Fe),Fe=Math.max(Fe,0);const{value:$e}=he;$e&&($e.scrollTop=Fe)}function wt(Y){Y.preventDefault(),Y.stopPropagation(),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0),ye=!1,mt(),Ge(Y)&&Ee()}tn(()=>{const{value:Y}=B,{value:ue}=b,{value:we}=i,{value:De}=C,{value:je}=M;De&&(Y?De.classList.remove(`${we}-scrollbar-rail--disabled`):De.classList.add(`${we}-scrollbar-rail--disabled`)),je&&(ue?je.classList.remove(`${we}-scrollbar-rail--disabled`):je.classList.add(`${we}-scrollbar-rail--disabled`))}),Ot(()=>{e.container||mt()}),nn(()=>{pe!==void 0&&window.clearTimeout(pe),fe!==void 0&&window.clearTimeout(fe),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0)});const It=Bt("Scrollbar","-scrollbar",Uh,qh,e,i),qe=Ue(()=>{const{common:{cubicBezierEaseInOut:Y,scrollbarBorderRadius:ue,scrollbarHeight:we,scrollbarWidth:De},self:{color:je,colorHover:Ke}}=It.value;return{"--n-scrollbar-bezier":Y,"--n-scrollbar-color":je,"--n-scrollbar-color-hover":Ke,"--n-scrollbar-border-radius":ue,"--n-scrollbar-width":De,"--n-scrollbar-height":we}}),Je=o?qr("scrollbar",void 0,qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:nt,scrollBy:He,sync:mt,syncUnifiedContainer:pt,handleMouseEnterWrapper:ge,handleMouseLeaveWrapper:le}),{mergedClsPrefix:i,rtlEnabled:d,containerScrollTop:L,wrapperRef:y,containerRef:A,contentRef:T,yRailRef:M,xRailRef:C,needYBar:b,needXBar:B,yBarSizePx:de,xBarSizePx:X,yBarTopPx:l,xBarLeftPx:m,isShowXBar:ae,isShowYBar:Q,isIos:Be,handleScroll:et,handleContentResize:Ie,handleContainerResize:st,handleYScrollMouseDown:At,handleXScrollMouseDown:yn,cssVars:o?void 0:qe,themeClass:Je==null?void 0:Je.themeClass,onRender:Je==null?void 0:Je.onRender})},render(){var e;const{$slots:i,mergedClsPrefix:o,triggerDisplayManually:f,rtlEnabled:d,internalHoistYRail:y}=this;if(!this.scrollable)return(e=i.default)===null||e===void 0?void 0:e.call(i);const A=this.trigger==="none",T=()=>J("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},J(A?Mi:fn,A?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?J("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),M=()=>{var P,$;return(P=this.onRender)===null||P===void 0||P.call(this),J("div",Cn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,d&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:f?void 0:this.handleMouseEnterWrapper,onMouseleave:f?void 0:this.handleMouseLeaveWrapper}),[this.container?($=i.default)===null||$===void 0?void 0:$.call(i):J("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},J(Wi,{onResize:this.handleContentResize},{default:()=>J("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},i)})),y?null:T(),this.xScrollable&&J("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},J(A?Mi:fn,A?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?J("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:d?this.xBarLeftPx:void 0,left:d?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},C=this.container?M():J(Wi,{onResize:this.handleContainerResize},{default:M});return y?J(kt,null,C,T()):C}}),Yh=Vh,Gh={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Kh=e=>{const{boxShadow2:i,popoverColor:o,textColor2:f,borderRadius:d,fontSize:y,dividerColor:A}=e;return Object.assign(Object.assign({},Gh),{fontSize:y,borderRadius:d,color:o,dividerColor:A,textColor:f,boxShadow:i})},Zh={name:"Popover",common:nr,self:Kh},ca=Zh,br={top:"bottom",bottom:"top",left:"right",right:"left"},at="var(--n-arrow-height) * 1.414",Jh=Ve([Qe("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); position: relative; font-size: var(--n-font-size); color: var(--n-text-color); box-shadow: var(--n-box-shadow); word-break: break-word; `,[Ve(">",[Qe("scrollbar",` height: inherit; max-height: inherit; `)]),$n("raw",` background-color: var(--n-color); border-radius: var(--n-border-radius); `,[$n("scrollable",[$n("show-header-or-footer","padding: var(--n-padding);")])]),Yt("header",` padding: var(--n-padding); border-bottom: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); `),Yt("footer",` padding: var(--n-padding); border-top: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); `),Kt("scrollable, show-header-or-footer",[Yt("content",` padding: var(--n-padding); `)])]),Qe("popover-shared",` transform-origin: inherit; `,[Qe("popover-arrow-wrapper",` position: absolute; overflow: hidden; pointer-events: none; `,[Qe("popover-arrow",` transition: background-color .3s var(--n-bezier); position: absolute; display: block; width: calc(${at}); height: calc(${at}); box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); transform: rotate(45deg); background-color: var(--n-color); pointer-events: all; `)]),Ve("&.popover-transition-enter-from, &.popover-transition-leave-to",` opacity: 0; transform: scale(.85); `),Ve("&.popover-transition-enter-to, &.popover-transition-leave-from",` transform: scale(1); opacity: 1; `),Ve("&.popover-transition-enter-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-out), transform .15s var(--n-bezier-ease-out); `),Ve("&.popover-transition-leave-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-in), transform .15s var(--n-bezier-ease-in); `)]),bt("top-start",` top: calc(${at} / -2); left: calc(${Dt("top-start")} - var(--v-offset-left)); `),bt("top",` top: calc(${at} / -2); transform: translateX(calc(${at} / -2)) rotate(45deg); left: 50%; `),bt("top-end",` top: calc(${at} / -2); right: calc(${Dt("top-end")} + var(--v-offset-left)); `),bt("bottom-start",` bottom: calc(${at} / -2); left: calc(${Dt("bottom-start")} - var(--v-offset-left)); `),bt("bottom",` bottom: calc(${at} / -2); transform: translateX(calc(${at} / -2)) rotate(45deg); left: 50%; `),bt("bottom-end",` bottom: calc(${at} / -2); right: calc(${Dt("bottom-end")} + var(--v-offset-left)); `),bt("left-start",` left: calc(${at} / -2); top: calc(${Dt("left-start")} - var(--v-offset-top)); `),bt("left",` left: calc(${at} / -2); transform: translateY(calc(${at} / -2)) rotate(45deg); top: 50%; `),bt("left-end",` left: calc(${at} / -2); bottom: calc(${Dt("left-end")} + var(--v-offset-top)); `),bt("right-start",` right: calc(${at} / -2); top: calc(${Dt("right-start")} - var(--v-offset-top)); `),bt("right",` right: calc(${at} / -2); transform: translateY(calc(${at} / -2)) rotate(45deg); top: 50%; `),bt("right-end",` right: calc(${at} / -2); bottom: calc(${Dt("right-end")} + var(--v-offset-top)); `),...Wd({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,i)=>{const o=["right","left"].includes(i),f=o?"width":"height";return e.map(d=>{const y=d.split("-")[1]==="end",T=`calc((${`var(--v-target-${f}, 0px)`} - ${at}) / 2)`,M=Dt(d);return Ve(`[v-placement="${d}"] >`,[Qe("popover-shared",[Kt("center-arrow",[Qe("popover-arrow",`${i}: calc(max(${T}, ${M}) ${y?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function Dt(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function bt(e,i){const o=e.split("-")[0],f=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Ve(`[v-placement="${e}"] >`,[Qe("popover-shared",` margin-${br[o]}: var(--n-space); `,[Kt("show-arrow",` margin-${br[o]}: var(--n-space-arrow); `),Kt("overlap",` margin: 0; `),Ss("popover-arrow-wrapper",` right: 0; left: 0; top: 0; bottom: 0; ${o}: 100%; ${br[o]}: auto; ${f} `,[Qe("popover-arrow",i)])])])}const fa=Object.assign(Object.assign({},Bt.props),{to:Yn.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Qh=({arrowStyle:e,clsPrefix:i})=>J("div",{key:"__popover-arrow__",class:`${i}-popover-arrow-wrapper`},J("div",{class:`${i}-popover-arrow`,style:e})),ep=ct({name:"PopoverBody",inheritAttrs:!1,props:fa,setup(e,{slots:i,attrs:o}){const{namespaceRef:f,mergedClsPrefixRef:d,inlineThemeDisabled:y}=kn(e),A=Bt("Popover","-popover",Jh,ca,e,d),T=Ce(null),M=gn("NPopover"),C=Ce(null),P=Ce(e.show),$=Ce(!1);tn(()=>{const{show:fe}=e;fe&&!fu()&&!e.internalDeactivateImmediately&&($.value=!0)});const q=Ue(()=>{const{trigger:fe,onClickoutside:ve}=e,Ae=[],{positionManuallyRef:{value:be}}=M;return be||(fe==="click"&&!ve&&Ae.push([Oi,ye,void 0,{capture:!0}]),fe==="hover"&&Ae.push([mu,ne])),ve&&Ae.push([Oi,ye,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&$.value)&&Ae.push([uo,e.show]),Ae}),U=Ue(()=>{const fe=e.width==="trigger"?void 0:pr(e.width),ve=[];fe&&ve.push({width:fe});const{maxWidth:Ae,minWidth:be}=e;return Ae&&ve.push({maxWidth:pr(Ae)}),be&&ve.push({maxWidth:pr(be)}),y||ve.push(re.value),ve}),re=Ue(()=>{const{common:{cubicBezierEaseInOut:fe,cubicBezierEaseIn:ve,cubicBezierEaseOut:Ae},self:{space:be,spaceArrow:ke,padding:Be,fontSize:Te,textColor:de,dividerColor:Pe,color:X,boxShadow:s,borderRadius:l,arrowHeight:n,arrowOffset:m,arrowOffsetVertical:b}}=A.value;return{"--n-box-shadow":s,"--n-bezier":fe,"--n-bezier-ease-in":ve,"--n-bezier-ease-out":Ae,"--n-font-size":Te,"--n-text-color":de,"--n-color":X,"--n-divider-color":Pe,"--n-border-radius":l,"--n-arrow-height":n,"--n-arrow-offset":m,"--n-arrow-offset-vertical":b,"--n-padding":Be,"--n-space":be,"--n-space-arrow":ke}}),_=y?qr("popover",void 0,re,e):void 0;M.setBodyInstance({syncPosition:L}),nn(()=>{M.setBodyInstance(null)}),en(Gt(e,"show"),fe=>{e.animated||(fe?P.value=!0:P.value=!1)});function L(){var fe;(fe=T.value)===null||fe===void 0||fe.syncPosition()}function Z(fe){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&M.handleMouseEnter(fe)}function D(fe){e.trigger==="hover"&&e.keepAliveOnHover&&M.handleMouseLeave(fe)}function ne(fe){e.trigger==="hover"&&!ee().contains(Jn(fe))&&M.handleMouseMoveOutside(fe)}function ye(fe){(e.trigger==="click"&&!ee().contains(Jn(fe))||e.onClickoutside)&&M.handleClickOutside(fe)}function ee(){return M.getTriggerElement()}An(Cs,C),An(Ts,null),An(Ms,null);function pe(){if(_==null||_.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&$.value))return null;let ve;const Ae=M.internalRenderBodyRef.value,{value:be}=d;if(Ae)ve=Ae([`${be}-popover-shared`,_==null?void 0:_.themeClass.value,e.overlap&&`${be}-popover-shared--overlap`,e.showArrow&&`${be}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${be}-popover-shared--center-arrow`],C,U.value,Z,D);else{const{value:ke}=M.extraClassRef,{internalTrapFocus:Be}=e,Te=!gi(i.header)||!gi(i.footer),de=()=>{var Pe;const X=Te?J(kt,null,hr(i.header,n=>n?J("div",{class:`${be}-popover__header`,style:e.headerStyle},n):null),hr(i.default,n=>n?J("div",{class:`${be}-popover__content`,style:e.contentStyle},i):null),hr(i.footer,n=>n?J("div",{class:`${be}-popover__footer`,style:e.footerStyle},n):null)):e.scrollable?(Pe=i.default)===null||Pe===void 0?void 0:Pe.call(i):J("div",{class:`${be}-popover__content`,style:e.contentStyle},i),s=e.scrollable?J(Yh,{contentClass:Te?void 0:`${be}-popover__content`,contentStyle:Te?void 0:e.contentStyle},{default:()=>X}):X,l=e.showArrow?Qh({arrowStyle:e.arrowStyle,clsPrefix:be}):null;return[s,l]};ve=J("div",Cn({class:[`${be}-popover`,`${be}-popover-shared`,_==null?void 0:_.themeClass.value,ke.map(Pe=>`${be}-${Pe}`),{[`${be}-popover--scrollable`]:e.scrollable,[`${be}-popover--show-header-or-footer`]:Te,[`${be}-popover--raw`]:e.raw,[`${be}-popover-shared--overlap`]:e.overlap,[`${be}-popover-shared--show-arrow`]:e.showArrow,[`${be}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:C,style:U.value,onKeydown:M.handleKeydown,onMouseenter:Z,onMouseleave:D},o),Be?J(Hu,{active:e.show,autoFocus:!0},{default:de}):de())}return Xn(ve,q.value)}return{displayed:$,namespace:f,isMounted:M.isMountedRef,zIndex:M.zIndexRef,followerRef:T,adjustedTo:Yn(e),followerEnabled:P,renderContentNode:pe}},render(){return J(Es,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Yn.tdkey},{default:()=>this.animated?J(fn,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),tp=Object.keys(fa),np={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function rp(e,i,o){np[i].forEach(f=>{e.props?e.props=Object.assign({},e.props):e.props={};const d=e.props[f],y=o[f];d?e.props[f]=(...A)=>{d(...A),y(...A)}:e.props[f]=y})}const da={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Yn.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},ip=Object.assign(Object.assign(Object.assign({},Bt.props),da),{internalOnAfterLeave:Function,internalRenderBody:Function}),op=ct({name:"Popover",inheritAttrs:!1,props:ip,__popover__:!0,setup(e){const i=vo(),o=Ce(null),f=Ue(()=>e.show),d=Ce(e.defaultShow),y=Os(f,d),A=mi(()=>e.disabled?!1:y.value),T=()=>{if(e.disabled)return!0;const{getDisabled:de}=e;return!!(de!=null&&de())},M=()=>T()?!1:y.value,C=hu(e,["arrow","showArrow"]),P=Ue(()=>e.overlap?!1:C.value);let $=null;const q=Ce(null),U=Ce(null),re=mi(()=>e.x!==void 0&&e.y!==void 0);function _(de){const{"onUpdate:show":Pe,onUpdateShow:X,onShow:s,onHide:l}=e;d.value=de,Pe&&Ln(Pe,de),X&&Ln(X,de),de&&s&&Ln(s,!0),de&&l&&Ln(l,!1)}function L(){$&&$.syncPosition()}function Z(){const{value:de}=q;de&&(window.clearTimeout(de),q.value=null)}function D(){const{value:de}=U;de&&(window.clearTimeout(de),U.value=null)}function ne(){const de=T();if(e.trigger==="focus"&&!de){if(M())return;_(!0)}}function ye(){const de=T();if(e.trigger==="focus"&&!de){if(!M())return;_(!1)}}function ee(){const de=T();if(e.trigger==="hover"&&!de){if(D(),q.value!==null||M())return;const Pe=()=>{_(!0),q.value=null},{delay:X}=e;X===0?Pe():q.value=window.setTimeout(Pe,X)}}function pe(){const de=T();if(e.trigger==="hover"&&!de){if(Z(),U.value!==null||!M())return;const Pe=()=>{_(!1),U.value=null},{duration:X}=e;X===0?Pe():U.value=window.setTimeout(Pe,X)}}function fe(){pe()}function ve(de){var Pe;M()&&(e.trigger==="click"&&(Z(),D(),_(!1)),(Pe=e.onClickoutside)===null||Pe===void 0||Pe.call(e,de))}function Ae(){if(e.trigger==="click"&&!T()){Z(),D();const de=!M();_(de)}}function be(de){e.internalTrapFocus&&de.key==="Escape"&&(Z(),D(),_(!1))}function ke(de){d.value=de}function Be(){var de;return(de=o.value)===null||de===void 0?void 0:de.targetRef}function Te(de){$=de}return An("NPopover",{getTriggerElement:Be,handleKeydown:be,handleMouseEnter:ee,handleMouseLeave:pe,handleClickOutside:ve,handleMouseMoveOutside:fe,setBodyInstance:Te,positionManuallyRef:re,isMountedRef:i,zIndexRef:Gt(e,"zIndex"),extraClassRef:Gt(e,"internalExtraClass"),internalRenderBodyRef:Gt(e,"internalRenderBody")}),tn(()=>{y.value&&T()&&_(!1)}),{binderInstRef:o,positionManually:re,mergedShowConsideringDisabledProp:A,uncontrolledShow:d,mergedShowArrow:P,getMergedShow:M,setShow:ke,handleClick:Ae,handleMouseEnter:ee,handleMouseLeave:pe,handleFocus:ne,handleBlur:ye,syncPosition:L}},render(){var e;const{positionManually:i,$slots:o}=this;let f,d=!1;if(!i&&(o.activator?f=Ti(o,"activator"):f=Ti(o,"trigger"),f)){f=ts(f),f=f.type===ns?J("span",[f]):f;const y={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=f.type)===null||e===void 0)&&e.__popover__)d=!0,f.props||(f.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),f.props.internalSyncTargetWithParent=!0,f.props.internalInheritedEventHandlers?f.props.internalInheritedEventHandlers=[y,...f.props.internalInheritedEventHandlers]:f.props.internalInheritedEventHandlers=[y];else{const{internalInheritedEventHandlers:A}=this,T=[y,...A],M={onBlur:C=>{T.forEach(P=>{P.onBlur(C)})},onFocus:C=>{T.forEach(P=>{P.onFocus(C)})},onClick:C=>{T.forEach(P=>{P.onClick(C)})},onMouseenter:C=>{T.forEach(P=>{P.onMouseenter(C)})},onMouseleave:C=>{T.forEach(P=>{P.onMouseleave(C)})}};rp(f,A?"nested":i?"manual":this.trigger,M)}}return J(Ps,{ref:"binderInstRef",syncTarget:!d,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const y=this.getMergedShow();return[this.internalTrapFocus&&y?Xn(J("div",{style:{position:"fixed",inset:0}}),[[go,{enabled:y,zIndex:this.zIndex}]]):null,i?null:J(ks,null,{default:()=>f}),J(ep,lu(this.$props,tp,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:y})),{default:()=>{var A,T;return(T=(A=this.$slots).default)===null||T===void 0?void 0:T.call(A)},header:()=>{var A,T;return(T=(A=this.$slots).header)===null||T===void 0?void 0:T.call(A)},footer:()=>{var A,T;return(T=(A=this.$slots).footer)===null||T===void 0?void 0:T.call(A)}})]}})}}),ap=du&&"loading"in document.createElement("img"),sp=(e={})=>{var i;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(i=e.threshold)!==null&&i!==void 0?i:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}},xr=new WeakMap,Ar=new WeakMap,Sr=new WeakMap,lp=(e,i,o)=>{if(!e)return()=>{};const f=sp(i),{root:d}=f.options;let y;const A=xr.get(d);A?y=A:(y=new Map,xr.set(d,y));let T,M;y.has(f.hash)?(M=y.get(f.hash),M[1].has(e)||(T=M[0],M[1].add(e),T.observe(e))):(T=new IntersectionObserver($=>{$.forEach(q=>{if(q.isIntersecting){const U=Ar.get(q.target),re=Sr.get(q.target);U&&U(),re&&(re.value=!0)}})},f.options),T.observe(e),M=[T,new Set([e])],y.set(f.hash,M));let C=!1;const P=()=>{C||(Ar.delete(e),Sr.delete(e),C=!0,M[1].has(e)&&(M[0].unobserve(e),M[1].delete(e)),M[1].size<=0&&y.delete(f.hash),y.size||xr.delete(d))};return Ar.set(e,P),Sr.set(e,o),P},up={padding:"8px 14px"},cp=e=>{const{borderRadius:i,boxShadow2:o,baseColor:f}=e;return Object.assign(Object.assign({},up),{borderRadius:i,boxShadow:o,color:Rs(f,"rgba(0, 0, 0, .85)"),textColor:f})},fp=mo({name:"Tooltip",common:nr,peers:{Popover:ca},self:cp}),ha=fp,dp=Object.assign(Object.assign({},da),Bt.props),hp=ct({name:"Tooltip",props:dp,__popover__:!0,setup(e){const{mergedClsPrefixRef:i}=kn(e),o=Bt("Tooltip","-tooltip",void 0,ha,e,i),f=Ce(null);return Object.assign(Object.assign({},{syncPosition(){f.value.syncPosition()},setShow(y){f.value.setShow(y)}}),{popoverRef:f,mergedTheme:o,popoverThemeOverrides:Ue(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:i}=this;return J(op,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:i.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),pa=Object.assign(Object.assign({},Bt.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),va=yo("n-image");function pp(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const vp=mo({name:"Image",common:nr,peers:{Tooltip:ha},self:pp}),gp=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),mp=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),yp=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),wp=Ve([Ve("body >",[Qe("image-container","position: fixed;")]),Qe("image-preview-container",` position: fixed; left: 0; right: 0; top: 0; bottom: 0; display: flex; `),Qe("image-preview-overlay",` z-index: -1; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, .3); `,[Ir()]),Qe("image-preview-toolbar",` z-index: 1; position: absolute; left: 50%; transform: translateX(-50%); border-radius: var(--n-toolbar-border-radius); height: 48px; bottom: 40px; padding: 0 12px; background: var(--n-toolbar-color); box-shadow: var(--n-toolbar-box-shadow); color: var(--n-toolbar-icon-color); transition: color .3s var(--n-bezier); display: flex; align-items: center; `,[Qe("base-icon",` padding: 0 8px; font-size: 28px; cursor: pointer; `),Ir()]),Qe("image-preview-wrapper",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; pointer-events: none; `,[Ds()]),Qe("image-preview",` user-select: none; -webkit-user-select: none; pointer-events: all; margin: auto; max-height: calc(100vh - 32px); max-width: calc(100vw - 32px); transition: transform .3s var(--n-bezier); `),Qe("image",` display: inline-flex; max-height: 100%; max-width: 100%; `,[$n("preview-disabled",` cursor: pointer; `),Ve("img",` border-radius: inherit; `)])]),Wn=32,bp=ct({name:"ImagePreview",props:Object.assign(Object.assign({},pa),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const i=Bt("Image","-image",wp,vp,e,Gt(e,"clsPrefix"));let o=null;const f=Ce(null),d=Ce(null),y=Ce(void 0),A=Ce(!1),T=Ce(!1),{localeRef:M}=Nh("Image");function C(){const{value:G}=d;if(!o||!G)return;const{style:ge}=G,le=o.getBoundingClientRect(),Ee=le.left+le.width/2,_e=le.top+le.height/2;ge.transformOrigin=`${Ee}px ${_e}px`}function P(G){var ge,le;switch(G.key){case" ":G.preventDefault();break;case"ArrowLeft":(ge=e.onPrev)===null||ge===void 0||ge.call(e);break;case"ArrowRight":(le=e.onNext)===null||le===void 0||le.call(e);break;case"Escape":he();break}}en(A,G=>{G?gt("keydown",document,P):ut("keydown",document,P)}),nn(()=>{ut("keydown",document,P)});let $=0,q=0,U=0,re=0,_=0,L=0,Z=0,D=0,ne=!1;function ye(G){const{clientX:ge,clientY:le}=G;U=ge-$,re=le-q,_s(Q)}function ee(G){const{mouseUpClientX:ge,mouseUpClientY:le,mouseDownClientX:Ee,mouseDownClientY:_e}=G,Xe=Ee-ge,Ye=_e-le,rt=`vertical${Ye>0?"Top":"Bottom"}`,et=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:rt,moveHorizontalDirection:et,deltaHorizontal:Xe,deltaVertical:Ye}}function pe(G){const{value:ge}=f;if(!ge)return{offsetX:0,offsetY:0};const le=ge.getBoundingClientRect(),{moveVerticalDirection:Ee,moveHorizontalDirection:_e,deltaHorizontal:Xe,deltaVertical:Ye}=G||{};let rt=0,et=0;return le.width<=window.innerWidth?rt=0:le.left>0?rt=(le.width-window.innerWidth)/2:le.right0?et=(le.height-window.innerHeight)/2:le.bottom.5){const G=Te;Be-=1,Te=Math.max(.5,Math.pow(ke,Be));const ge=G-Te;Q(!1);const le=pe();Te+=ge,Q(!1),Te-=ge,U=le.offsetX,re=le.offsetY,Q()}}function Q(G=!0){var ge;const{value:le}=f;if(!le)return;const{style:Ee}=le,_e=rs((ge=ve==null?void 0:ve.previewedImgPropsRef.value)===null||ge===void 0?void 0:ge.style);let Xe="";if(typeof _e=="string")Xe=_e+";";else for(const rt in _e)Xe+=`${$d(rt)}: ${_e[rt]};`;const Ye=`transform-origin: center; transform: translateX(${U}px) translateY(${re}px) rotate(${de}deg) scale(${Te});`;ne?Ee.cssText=Xe+"cursor: grabbing; transition: none;"+Ye:Ee.cssText=Xe+"cursor: grab;"+Ye+(G?"":"transition: none;"),G||le.offsetHeight}function he(){A.value=!A.value,T.value=!0}function Re(){Te=b(),Be=Math.ceil(Math.log(Te)/Math.log(ke)),U=0,re=0,Q()}const Ne={setPreviewSrc:G=>{y.value=G},setThumbnailEl:G=>{o=G},toggleShow:he};function Ie(G,ge){if(e.showToolbarTooltip){const{value:le}=i;return J(hp,{to:!1,theme:le.peers.Tooltip,themeOverrides:le.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>M.value[ge],trigger:()=>G})}else return G}const st=Ue(()=>{const{common:{cubicBezierEaseInOut:G},self:{toolbarIconColor:ge,toolbarBorderRadius:le,toolbarBoxShadow:Ee,toolbarColor:_e}}=i.value;return{"--n-bezier":G,"--n-toolbar-icon-color":ge,"--n-toolbar-color":_e,"--n-toolbar-border-radius":le,"--n-toolbar-box-shadow":Ee}}),{inlineThemeDisabled:nt}=kn(),He=nt?qr("image-preview",void 0,st,e):void 0;return Object.assign({previewRef:f,previewWrapperRef:d,previewSrc:y,show:A,appear:vo(),displayed:T,previewedImgProps:ve==null?void 0:ve.previewedImgPropsRef,handleWheel(G){G.preventDefault()},handlePreviewMousedown:Ae,handlePreviewDblclick:be,syncTransformOrigin:C,handleAfterLeave:()=>{Pe(),de=0,T.value=!1},handleDragStart:G=>{var ge,le;(le=(ge=ve==null?void 0:ve.previewedImgPropsRef.value)===null||ge===void 0?void 0:ge.onDragstart)===null||le===void 0||le.call(ge,G),G.preventDefault()},zoomIn:B,zoomOut:ae,rotateCounterclockwise:l,rotateClockwise:n,handleSwitchPrev:X,handleSwitchNext:s,withTooltip:Ie,resizeToOrignalImageSize:Re,cssVars:nt?void 0:st,themeClass:He==null?void 0:He.themeClass,onRender:He==null?void 0:He.onRender},Ne)},render(){var e,i;const{clsPrefix:o}=this;return J(kt,null,(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e),J(Ns,{show:this.show},{default:()=>{var f;return this.show||this.displayed?((f=this.onRender)===null||f===void 0||f.call(this),Xn(J("div",{class:[`${o}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},J(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?J("div",{class:`${o}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?J(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:d}=this;return J("div",{class:`${o}-image-preview-toolbar`},this.onPrev?J(kt,null,d(J(jt,{clsPrefix:o,onClick:this.handleSwitchPrev},{default:()=>gp}),"tipPrevious"),d(J(jt,{clsPrefix:o,onClick:this.handleSwitchNext},{default:()=>mp}),"tipNext")):null,d(J(jt,{clsPrefix:o,onClick:this.rotateCounterclockwise},{default:()=>J(Fh,null)}),"tipCounterclockwise"),d(J(jt,{clsPrefix:o,onClick:this.rotateClockwise},{default:()=>J(Bh,null)}),"tipClockwise"),d(J(jt,{clsPrefix:o,onClick:this.resizeToOrignalImageSize},{default:()=>J(jh,null)}),"tipOriginalSize"),d(J(jt,{clsPrefix:o,onClick:this.zoomOut},{default:()=>J(zh,null)}),"tipZoomOut"),d(J(jt,{clsPrefix:o,onClick:this.zoomIn},{default:()=>J(Ih,null)}),"tipZoomIn"),d(J(jt,{clsPrefix:o,onClick:this.toggleShow},{default:()=>yp}),"tipClose"))}}):null,J(fn,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:d={}}=this;return Xn(J("div",{class:`${o}-image-preview-wrapper`,ref:"previewWrapperRef"},J("img",Object.assign({},d,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${o}-image-preview`,d.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[uo,this.show]])}})),[[go,{enabled:this.show}]])):null}}))}}),xp=yo("n-image-group"),Ap=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},pa),Sp=ct({name:"Image",props:Ap,inheritAttrs:!1,setup(e){const i=Ce(null),o=Ce(!1),f=Ce(null),d=gn(xp,null),{mergedClsPrefixRef:y}=d||kn(e),A={click:()=>{if(e.previewDisabled||o.value)return;const C=e.previewSrc||e.src;if(d){d.setPreviewSrc(C),d.setThumbnailEl(i.value),d.toggleShow();return}const{value:P}=f;P&&(P.setPreviewSrc(C),P.setThumbnailEl(i.value),P.toggleShow())}},T=Ce(!e.lazy);Ot(()=>{var C;(C=i.value)===null||C===void 0||C.setAttribute("data-group-id",(d==null?void 0:d.groupId)||"")}),Ot(()=>{if(e.lazy&&e.intersectionObserverOptions){let C;const P=tn(()=>{C==null||C(),C=void 0,C=lp(i.value,e.intersectionObserverOptions,T)});nn(()=>{P(),C==null||C()})}}),tn(()=>{var C;e.src,(C=e.imgProps)===null||C===void 0||C.src,o.value=!1});const M=Ce(!1);return An(va,{previewedImgPropsRef:Gt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:y,groupId:d==null?void 0:d.groupId,previewInstRef:f,imageRef:i,showError:o,shouldStartLoading:T,loaded:M,mergedOnClick:C=>{var P,$;A.click(),($=(P=e.imgProps)===null||P===void 0?void 0:P.onClick)===null||$===void 0||$.call(P,C)},mergedOnError:C=>{if(!T.value)return;o.value=!0;const{onError:P,imgProps:{onError:$}={}}=e;P==null||P(C),$==null||$(C)},mergedOnLoad:C=>{const{onLoad:P,imgProps:{onLoad:$}={}}=e;P==null||P(C),$==null||$(C),M.value=!0}},A)},render(){var e,i;const{mergedClsPrefix:o,imgProps:f={},loaded:d,$attrs:y,lazy:A}=this,T=(i=(e=this.$slots).placeholder)===null||i===void 0?void 0:i.call(e),M=this.src||f.src,C=J("img",Object.assign(Object.assign({},f),{ref:"imageRef",width:this.width||f.width,height:this.height||f.height,src:this.showError?this.fallbackSrc:A&&this.intersectionObserverOptions?this.shouldStartLoading?M:void 0:M,alt:this.alt||f.alt,"aria-label":this.alt||f.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:ap&&A&&!this.intersectionObserverOptions?"lazy":"eager",style:[f.style||"",T&&!d?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return J("div",Object.assign({},y,{role:"none",class:[y.class,`${o}-image`,(this.previewDisabled||this.showError)&&`${o}-image--preview-disabled`]}),this.groupId?C:J(bp,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:o,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>C}),!d&&T)}});const Cp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAJAAAAAC/FoutAAADKklEQVRYCc2YW4hNYRiGx3FyaJxPMUYOOZWSUBgjE8odk3AhXChR5E5qTG5QUmhScoFxNXKIckiZUk4hlJBcGJPzIeVYzOB5prWy7TFr9p7Zs9d+69nrX+v7//97117/+tbaOy8vx9UhBX/j6VMG82AYDIFv8AKuwQmogV+QqMnsLAXHFUIBvAbHXYaTcBtarXGMvAC/U+AufUpAeRLVkMq4W/SbCWlrIyN+gkk+wkFYCCOhG/SDqVABtWA/v8Hd8DbY/8x2DxTDAMiHIiiFvfASHCeV0AlS0k56hQn30+7bwigTl0MDhAnP0R4KUfJEt4LLxXFnwGORWkPUzj9geWTPpkHXWz1UQeem4WaPTCfyDsx7qNleBCZAeDbLojpGxOYTS/lSJcwzkfYX0OTKhOP/NE8FHVxvcWgFSTX4Bppcas/ARf4V+kNcukpiTW5KNrArCOxLDmR530qhwYfJee8FgdnJgSzvu34ta5osDHNbRsLL2zU8GOP2OLk1uEoPHcHK7yPvCVhe4tb9wECRWw0ODA5Yi3JBPonUID802MMG8g7OBVkPVU8/NPjKBvItJRcU+mj0pcHngauWnp3ZMu89oRp9adDK/RN07ltK3JoUGKhLNHKaHW/tDYkHY2iPIKclz3XYuAbZNmoRnxq0YMepbSTXx5FkE1044KU2uDo5mKX9UeTxJVcP/32i+T5n0E6jIZvy/fE6mL8qKvHRoNMdtn2iOmY4VhnkrWXbK2ruAoKPwTNxPfpboj1lFTkA5vsOs6BFWW4egIMeQViXaGZUrvvwivkUK01ndl9avcya9OYpgUxqMJNdAef/BMWQtnoz4iI4iYV8M3hJ2qq5TBD+5KyjPaUtE2poO1g8NXoJWvtI9E7dAQ3gXDWQsTW+gMn828KJP8ASSEdj6XwTHF8P5ZCJq8E0f+V741kwibjAI0sCcbUOvAkc8xRmQLtqLbOHCZ/RntNMNqvBeQhP6DBty1hWNIYsN8Dkrk9/FeZDKJ/t78G42zLIulz0FeAdrhF/Ki6G6mDfY36DfpOxahrZLegaCvF1aT3kjLy8W0Bjx2A45KS6Z9rVH+dMzG9PPT/rAAAAAElFTkSuQmCC",Tp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAJKADAAQAAAABAAAAIAAAAADfjkU8AAAHv0lEQVRYCZVXW6hWRRReM/u/HM/xclRCUzHLEFIkyqfwIUylG5pKIFqBhSgUkj1kGYT2ENJDUQhhF4QgDBRJPGZHo9KkHoISzUsmPQl5yfvlePz33jN935qZ39+T132Yf9bMrMs331ozex8jN3h6X180Nqv1e8kb+4QxdoR3MsSXZSGFOyul32tco6s6+O41ZuVK1+rCr1+f5bt2LYTNLG+z8eL8MKwbyd1ZnxfH/JX8+0Zv8cnADWsPtdol2SQh9X75K0Pzava+qdTniStrxnmBUwGgqz2mxBvB2lFTuhWVj1Z/Rvti6dKFpmJXOicjDQ2g5wv+wL6kDzSMvTO5uXy5q7jc83L/zV8dp216rgHUeHvJQ1m1vskbP9rAK4EI+zLK6himAOOxaf4xqHi7UaMaedZgTedowzXaF0435NXeYIqgsFy4E9JzZU775i9+/h+gxhuLH8wGDNjpnRtkXIHdw6JaExkzTmT/HjgtuVExaJ5BxUYf6BkYT1hDDzbAbtgQOmWYDKktl7AhjB03Vvqesrd3+sBvvvxFffDHL13aWXaa3djwGAsw6mz0WDHzF4u09RNZ9abIqZO6KwYnC5pCgrIEBL7SHDZisJfALoGRjYgEQFQkVgiUnbcE9a87f2r8wB1dJysElHcU71mfjTG6K2gbK2beIpH2DpEtG0ROHIMlphkITiApgIAqZh3zzXWkSBWVqTAP5jFFOyiSNcji2JBOsXeZen/W4WzTs2zhqGq945A1rt2UOZRLhIPRYzNE9u0W+fswjDHW7cAEq+oMU/pghwqS47Bl9H1kXYMa5/Gw595DaYI1+ARTeS1vPFDJfH2BuKJdte4bJ2bkPSLbN4OZ9cFCdwmPdBYdq1ewGAKnKJjVnVMPirRL+uwxvppW6pA52LKedGirufOvVcDM44KyMQbeJk8TGTdBZOc2kfMNBORWoN4KhtZkCUwG2oPzZnAuN8HQFo3poR39YKxXiW40+NHTiiWsTK1A6V54wAio1n0qMrBT5MJFTMGaTmhIAAmYynFNgTIgA8WGLtjFnmu6jp8ElL4pg50AGDJFa4dXfOmGWnjjSTDnzomcPoMVesdDEKqJjrvkoyDQ666xTpUkt65TTmvJhr4AhjUUWIKAGFpbvDMy6QBDuDsJALN6AijH2zU4pGMGjrvBsj4E2wwYZa5xTtegr+ucg6AnKuiBhHBjs2eDb1wC3LuzvpEfxztKkZNGRdt0lJzHQATFRxmJfQKWwNCWTCQfaZ1YdA4/0NW7SeNhjPgat5Dz1pTmKG/NAAYsUaZzbZA1eGRHmeJanG8JdhVAWk89bYM90xSAMG2BHX2tgCWiRYZO4WLODyRmPI9gWIMCHKadJgCca7JDUBynFscYNnVa7NUvAfH80B/Z0XSFrBAgoh+y1rnP9Q3M25UKrCEijqwpG3RMJ5i+yk4CwrkIQoFTpm5s9KPA6BsyY7Dx3YjeUVbmwZDYDxFJpPeF5w8bKe/HW0Usql2LWymkc2pEQJTZFECU01jBQK9VJ26gyQg27QDENUopiwLYUMpopcFNVK2eGLxn6zBct3hyt5HXkL6B+akAWvVqUuSQGUx3SRmNTxNIlLnOR+fxowBjzUBmypSNnAVMIGGsajA11m6huQKqnxu6AiCO8UWvOWZ+1UOoKQVB6hnsmsa5OB/ZCKkKTNEFCxrfPSFFZAd+SrwznZ4sxMGflex8z/GjS5qAzLerr5iyXEXlAIoswRFBNHMMdTJHQAzEXllrSZOucYwwyTYFJhiwo0CwpqcMTljKlazywYh/fuuJHtmF5/LsufvgaYIlhagl1hTfMxjiwScJAyoQ9IlrBYEf7aGp6cEAoLV4Wbg5NkgwrBsAK7lx5MzZTGy1emTw/u7RjMAn1FCQxRbFXOhddDl2gObwNcKdKvXax8CQ9W5REFEmewoGPY829QGkCQaACEazQNahZozprbnqrBheu2sA1bs27pfSvkrwNCQQrSm+SjCpaUhB6bEFGEspAIIRPnbSsQ7MhFQ5njKmEH8OKcjq/ZZ3HOz6vRVQyEbrDORLT85Zi9p5kWg1fRCQMIxwU+jeMh0pc0DCL8XAIgMCGRrTw2LWY57SBDAlLlYPp5W22qbOfdtm9wkdy6PvLMaXps/eiAtrjkWkjPcE4Wgfq4pAmHEWsLJFNskMmIynimyUjcCKgxLLDsxIVm/7YfCB7qnXCXtjQFS+MG3mJsn9MxnQWDhTQFEmW9oYRQGRjZBWpovMlDqGjHVegh5gKvXajs6D3025HhjO0etNn54ps9ahGOfx9iYwfoaCdDSwg7pSenjXsFAJAHMKBDIKES0ww/9OAGbroAPbn75ZQJbJTZ/2HzfNN9YsQ/p6SxS3Hlse4bxAY4+ADRznPA9rkHUN6dJ/CLlna/JKve2dW4EhkFsylNBemDxzCnhfhzoZTrb4KaH3EutGixopURkAyQrm1Lu1Z+qVtnn9/+zGh/qtn9sGRFdHRj3Sb9DIIR9Lo3gO76Nq+gzVLwQFwTQRB1JopMhqta97zp1ekG7hW8O5A4ZanV2aNOPhoszXoHAn4drFQQQKANKjbywuYPuH9ZVFg/7a9mur3e3Id8RQX4cXJz41sTTuXXxKPIoaM3gn/YR/M98asq97b1/d2x3/B8k9N3E67sAEAAAAAElFTkSuQmCC",Mp=ct({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(e){return()=>te("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[te("img",{class:"favoritIcon",src:e.isFavorite?Tp:Cp},null)])}}),Ep="_book_ba845_1",Op="_back_ba845_11",kp="_bookHide_ba845_16",Pp="_wrap_ba845_36",Rp="_wrapItem_ba845_53",Dp="_item_ba845_60",Np="_des_ba845_69",_p="_icon_ba845_74",Lp="_last_ba845_79",xt={book:Ep,back:Op,bookHide:kp,wrap:Pp,wrapItem:Rp,item:Dp,des:Np,icon:_p,last:Lp},Bp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAFDElEQVRYCcWZy24cRRSGT3XPxbHj+MIlwXLCJkJKkLJmzSICicfIhi0Pwg55k9dASF6AxAOwQAIhgRRkQpwQRMaZxjOeme7i/8+pmqtlVwMzLqlVl66u+uo/p0731DiZS/6s+754eYTmhyL+DsrX57r892obQzon0nkmUlUF5jnCoIcizcfujXd+mJ4AvSx571tyVnyO2qfifRbbl5K3NwCIKU5eiJSDyRTOVagcyM7+Z845vaGAAe4rgH046b3EUuuaSNYQOX0l0oeAC8l9Lbv7HxPSlKJyq4IjTFkaUgtKnpsg1KuntKa44HPfL92sMyAwnJoZefGXyODvmbtaobl940GmG2LZPrcwvZ/43saOSKO10MMEGz6iibFbryCNsAfKke3mzbdN0UWMh873X3eXEkoWJzu/pYkNk2PDMJVDmPtUhPAV/dQVzvdeQ+8rTjlMTDMzNs6lgD7XmlTFukZ9XEPx1UA8Vu0rlGG2CkpU2KllWUnlR8i9lJWXUVXJta1bcuOt27MzMBbyypsWfhgjA2w64M9firz8EdIT6gwvAEzqGlJlTSmlgXLTymgrxcoVy2zHpX2Rd4tiETDi0sS8plIiINT67Vu8kezJyuU6KQHsAgQgWfaA8Ch7vWftpfYnLPr4RTNO8SwUEwHDcxjbS6Yg40mpngAYbwYqWY3LOYC4kLgIgybkN0/gBhjpvd1cbm/Zu2KBLDSkA3oPVUy5aC6aNyrH3ANyUg/3CA0ohScs6s8LvnKxWF/+j4CAU6WQm/kAS7W0DhiFoGoRCPcIHKAM3u4HcZKyZAVpLvoXFYgKTnKCEsZAI5T2jSaP9/F8nXSxA0yNZGAThQyIZm2JW9sOgKauKQ3goGD0TbZzoXVS8nI4me5QNRkmUvM2ZOv+R9Lc2pM+Pj47v/8kvdPClEY/6xNVxe6Gz3KMGA1SQNMBaVoqgJybw8ydS7Z2Q+dZ296TW7hOOy/kz+MnMuz1gsnNT6m4PV9PwXQTB3PpBlFQbgKoIbNxbX37pty594G8uXcXiyDUrG+qginShT7JCkaTTmKbmXmObzx13myrv9mOByh8T1Vcjg+6MDjVMBNz09Cn5hXswwf/eP5UOt3uJCbyGaqpeT0TJyvICUwNvnttNzIOjgZ9yVvrctYr5OXxr9I5OVHTR19lHtWPz49lTijUADQwew/bjib08S/fSWN9Wwp8BNiHQVBZfS/ERy0HUCyqTkoHxMDxy8XMFXwKn1T9AuZE+Bj72XRflmlaQsIlqGidlNxbgy4m01eWmtvim4Yb1OMrzlwhqm1QsQ9dgs/XScm9LVzQfAYWYxpNHu9FECo53r1UEFf0Qy6gTkruHb9UxmCMi/wwBTBhDCCYE/W4EDUv6hGept5slfiSEXn3kk8tLiQZUFWCD2l4oYr0qRjbUGbIYZuBTvwxgkUX4InCJ3eT3w/4+kxMa7v7AAgbI4AZ1JRqhOSlChps3DhqZlUyWRMlq/2rzuPnYIWdWyIv8SMo/hjiacYQZsMt5E6GVYYfSZkMcA418DnacuQNubnh5N7O7O+OizSqDXjRYMu4l+Fdet7x0jLmqj8m2OCD7qj+k6t6wh1xkxyuarp/Mc/hFR2/JaDy+M3Jg8y1N3kmfJDwyKq7HJBNP4dXfgR82VIdjoDb1ydHwHpgjQYc2HyBy35VXzbIMu6rWcEQ4DjF7A8KNKzkb4jpxWmY00hyCJrHweXGPf4B6HyHtp8LqjYAAAAASUVORK5CYII=",Fp=ct({name:"courseware-detail",emits:["close"],setup(e,{emit:i}){const o=Tn({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Vt("courseware-detail1.png"),handStyle:{top:"-0.4rem",left:"0.98rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.3rem",left:"2.2rem"},btnsStyle:{top:"1.5rem",left:"3.5rem"}}],step:0}),f=Ce(!1),d=localStorage.getItem("guideInfo");d&&JSON.parse(d).coursewareDetail?f.value=!1:f.value=!0;const y=()=>{console.log(`coursewareDetail-${o.step}`);const C=document.getElementById(`coursewareDetail-${o.step}`);if(C){const P=C.getBoundingClientRect();o.box={left:P.x+"px",top:P.y+"px",width:P.width+"px",height:P.height+"px"}}else T()};Ot(()=>{y(),window.addEventListener("resize",A)});const A=()=>{y()};co(()=>{window.removeEventListener("resize",A)});const T=()=>{if(o.step>=2){M();return}o.step=o.step+1,y()},M=()=>{let C=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;C?C.coursewareDetail=!0:C={coursewareDetail:!0},localStorage.setItem("guideInfo",JSON.stringify(C)),f.value=!1};return()=>te(zr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":C=>f.value=C},{default:()=>[te("div",{class:Ze.content,onClick:()=>T()},[o.step!=o.steps.length-1&&te("div",{class:Ze.backBtn,onClick:C=>{C.stopPropagation(),M()}},[vt("跳过")]),te("div",{class:Ze.box,style:o.box,id:`modeType-${o.step}`},[o.steps.map((C,P)=>{var $,q;return te("div",{onClick:U=>U.stopPropagation(),class:Ze.item,style:{display:P===o.step?"":"none",left:`${($=C.eleRect)==null?void 0:$.left}px`,top:`${(q=C.eleRect)==null?void 0:q.top}px`}},[te("img",{class:Ze.img,style:C.imgStyle,src:C.img},null),te("img",{class:Ze.iconHead,style:C.handStyle,src:Vt("indexDot.png")},null),te("div",{class:Ze.btns,style:C.btnsStyle},[o.step+1==o.steps.length?te(kt,null,[te(dn,{class:[Ze.btn,Ze.endBtn],round:!0,type:"primary",onClick:()=>M()},{default:()=>[vt("完成")]})]):te(dn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("下一步 ("),o.step+1,vt("/"),o.steps.length,vt(")")]})])])})])])]})}}),Ip=ct({name:"the-book",props:{bookData:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:i}){fo();const o=Tn({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem("lastTime")}),f=Ce(!1),d=async()=>{console.log("初始化完成")};let y=null,A=null;const T=()=>{y=window.$("#flipbook");const q=document.body.clientHeight*.8;o.height=q,o.width=q*(210/297)*2,y.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:o.width,height:o.height,gradients:!0})},M=()=>{const q=document.querySelector(".bookWrap");if(q){const U=q.getBoundingClientRect(),re=e.rect.width/(U.width/2),_=e.rect.height/U.height,L=(U.width/2*(re-1)/2+e.rect.x-U.x-U.width/4)/re,Z=(U.height*(_-1)/2+e.rect.y-U.y)/_,D=`scale3d(${re}, ${_}, 1) translate(${L}px, ${Z}px)`;q.style.transform=o.transform=D,q.style.transition="transform 0s",Cr(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{q.style.transition="transform 1s",q.style.transform="",o.show=!0,A=setTimeout(()=>{y.turn("page",2)},500),setTimeout(()=>{f.value=!0},1500)})})})}},C=()=>{clearTimeout(A);const q=document.querySelector(".bookWrap");y.turn("page",1),q&&(q.style.transform=o.transform),i("close"),setTimeout(()=>{q.style.transition="",q.style.transform="",o.show=!1,o.list=[]},1e3)};Ot(async()=>{await d(),is("webViewOnResume",()=>{o.lastTime=localStorage.getItem("lastTime")})});const P=()=>{var _;if(!((_=e.bookData)!=null&&_.lessonList))return;const q=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",q);const U=[];let re=[];for(let L=0;Le.show,()=>{e.show&&(P(),Cr(()=>{T(),requestAnimationFrame(()=>{M()})}))});const $=q=>{if(q.id){if(!q.containMaterial){os("暂无资源");return}localStorage.setItem("lastTime",q.id);const U=ls.stringify({id:q.id,name:q.name}),re=location.origin+location.pathname+"#/courseware-play?"+U;console.log("🚀 ~ url:",re),ho({api:"openWebView",content:{url:re,orientation:0,isHideTitle:!1}})}};return()=>te("div",{class:[xt.book,o.show?"":xt.bookHide]},[te("div",{class:xt.back,onClick:C},[te("img",{src:Mo},null)]),te("div",{class:"bookWrap",style:{width:o.width+"px"}},[!!o.list.length&&te("div",{id:"flipbook",class:[o.show&&"animated"]},[te("div",{class:"page"},[te("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),o.list.map(q=>te("div",{class:"page"},[te("div",{class:xt.wrap},[te("div",{class:xt.wrapItem},[q.map((U,re)=>te(kt,null,[te("div",{class:[xt.item,U.id&&xt.des],onTouchstart:_=>{_.stopPropagation()},onClick:_=>{_.stopPropagation(),$(U)}},[U.id?te("img",{id:re==1?"coursewareDetail-0":"",class:xt.icon,src:Bp},null):null,te("div",{class:xt.name},[U.name,o.lastTime===U.id&&te("span",{class:xt.last},[vt("上次观看")])])])]))])])])),te("div",{class:"page",style:{pointerEvents:"none"}},[te("div",{class:xt.wrap},[te("div",{class:xt.wrapItem},null)])])])]),f.value?te(Fp,null,null):null])}}),zp=ct({name:"courseware-list",emits:["close"],setup(e,{emit:i}){const o=Tn({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Vt("courseware-list1.png"),handStyle:{top:"1.5rem",left:"3.5rem",transform:"rotate(-90deg)"},imgStyle:{top:".7rem",left:"5rem"},btnsStyle:{top:"3.5rem",left:"6.2rem"},boxStyle:{},eleRectPadding:{left:-4,top:-4,width:-8,height:-8}},{ele:"",img:Vt("courseware-list2.png"),handStyle:{top:"-.25rem",left:"1.38rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.2rem",left:"2.4rem"},btnsStyle:{top:"1.6rem",left:"3.6rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:Vt("courseware-list3.png"),handStyle:{bottom:"-2.1rem",left:"0.66rem"},imgStyle:{top:"1.1rem",left:"-2rem"},btnsStyle:{top:"4.2rem",left:"-0.5rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:Vt("courseware-list4.png"),handStyle:{top:".8rem",left:"1rem"},imgStyle:{top:"1.1rem",left:"-4.6rem"},btnsStyle:{top:"4rem",left:"-4.5rem","justify-content":"center",padding:0}}],step:0}),f=Ce(!1),d=localStorage.getItem("guideInfo");d&&JSON.parse(d).courseware?f.value=!1:f.value=!0;const y=()=>{var P,$,q,U;const C=document.getElementById(`courseware-${o.step}`);if(C){const re=C.getBoundingClientRect(),_=((P=o.steps[o.step].eleRectPadding)==null?void 0:P.left)||0,L=(($=o.steps[o.step].eleRectPadding)==null?void 0:$.top)||0,Z=((q=o.steps[o.step].eleRectPadding)==null?void 0:q.width)||0,D=((U=o.steps[o.step].eleRectPadding)==null?void 0:U.height)||0;o.box={left:re.x-_+"px",top:re.y-L+"px",width:re.width+Z+"px",height:re.height+D+"px"}}else T()};Ot(()=>{y(),window.addEventListener("resize",A)});const A=()=>{y()};co(()=>{window.removeEventListener("resize",A)});const T=()=>{if(o.step>=3){M();return}o.step=o.step+1,y()},M=()=>{let C=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;C?C.courseware=!0:C={courseware:!0},localStorage.setItem("guideInfo",JSON.stringify(C)),f.value=!1};return()=>te(zr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":C=>f.value=C},{default:()=>[te("div",{class:Ze.content,onClick:()=>T()},[o.step!=o.steps.length-1&&te("div",{class:Ze.backBtn,onClick:C=>{C.stopPropagation(),M()}},[vt("跳过")]),te("div",{class:Ze.box,style:{...o.box,...o.steps[o.step].boxStyle},id:`modeType-${o.step}`},[o.steps.map((C,P)=>{var $,q;return te("div",{onClick:U=>U.stopPropagation(),class:Ze.item,style:{display:P===o.step?"":"none",left:`${($=C.eleRect)==null?void 0:$.left}px`,top:`${(q=C.eleRect)==null?void 0:q.top}px`}},[te("img",{class:Ze.img,style:C.imgStyle,src:C.img},null),te("img",{class:Ze.iconHead,style:C.handStyle,src:Vt("indexDot.png")},null),te("div",{class:Ze.btns,style:C.btnsStyle},[o.step+1==o.steps.length?te(kt,null,[te(dn,{class:[Ze.btn],round:!0,type:"primary",onClick:()=>M()},{default:()=>[vt("完成")]}),te(dn,{class:[Ze.btn,Ze.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{o.step=0,y()}},{default:()=>[vt("再看一遍")]})]):te(dn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("下一步 ("),o.step+1,vt("/"),o.steps.length,vt(")")]})])])})])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */(function(e,i){function o(t){return n.isWindow(t)?t:t.nodeType===9?t.defaultView||t.parentWindow:!1}function f(t){if(!fr[t]){var r=X.body,a=n("<"+t+">").appendTo(r),u=a.css("display");a.remove(),(u==="none"||u==="")&&(Mt||(Mt=X.createElement("iframe"),Mt.frameBorder=Mt.width=Mt.height=0),r.appendChild(Mt),(!sn||!Mt.createElement)&&(sn=(Mt.contentWindow||Mt.contentDocument).document,sn.write((X.compatMode==="CSS1Compat"?"":"")+""),sn.close()),a=sn.createElement(t),sn.body.appendChild(a),u=n.css(a,"display"),r.removeChild(Mt)),fr[t]=u}return fr[t]}function d(t,r){var a={};return n.each(ci.concat.apply([],ci.slice(0,r)),function(){a[this]=t}),a}function y(){Dn=i}function A(){return setTimeout(y,0),Dn=n.now()}function T(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function M(){try{return new e.XMLHttpRequest}catch(t){}}function C(t,r){t.dataFilter&&(r=t.dataFilter(r,t.dataType));var a=t.dataTypes,u={},c,h,v=a.length,g,S=a[0],k,E,O,F,j;for(c=1;c0?(a!=="border"&&n.each(c,function(){a||(u-=parseFloat(n.css(t,"padding"+this))||0),a==="margin"?u+=parseFloat(n.css(t,a+this))||0:u-=parseFloat(n.css(t,"border"+this+"Width"))||0}),u+"px"):(u=on(t,r,r),(u<0||u==null)&&(u=t.style[r]||0),u=parseFloat(u)||0,a&&n.each(c,function(){u+=parseFloat(n.css(t,"padding"+this))||0,a!=="padding"&&(u+=parseFloat(n.css(t,"border"+this+"Width"))||0),a==="margin"&&(u+=parseFloat(n.css(t,a+this))||0)}),u+"px")}function L(t,r){r.src?n.ajax({url:r.src,async:!1,dataType:"script"}):n.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Fe,"/*$0*/")),r.parentNode&&r.parentNode.removeChild(r)}function Z(t){var r=(t.nodeName||"").toLowerCase();r==="input"?D(t):r!=="script"&&typeof t.getElementsByTagName<"u"&&n.grep(t.getElementsByTagName("input"),D)}function D(t){(t.type==="checkbox"||t.type==="radio")&&(t.defaultChecked=t.checked)}function ne(t){return typeof t.getElementsByTagName<"u"?t.getElementsByTagName("*"):typeof t.querySelectorAll<"u"?t.querySelectorAll("*"):[]}function ye(t,r){var a;r.nodeType===1&&(r.clearAttributes&&r.clearAttributes(),r.mergeAttributes&&r.mergeAttributes(t),a=r.nodeName.toLowerCase(),a==="object"?r.outerHTML=t.outerHTML:a!=="input"||t.type!=="checkbox"&&t.type!=="radio"?a==="option"?r.selected=t.defaultSelected:(a==="input"||a==="textarea")&&(r.defaultValue=t.defaultValue):(t.checked&&(r.defaultChecked=r.checked=t.checked),r.value!==t.value&&(r.value=t.value)),r.removeAttribute(n.expando))}function ee(t,r){if(r.nodeType===1&&n.hasData(t)){var a,u,c,h=n._data(t),v=n._data(r,h),g=h.events;if(g){delete v.handle,v.events={};for(a in g)for(u=0,c=g[a].length;u=0===a})}function Ae(t){return!t||!t.parentNode||t.parentNode.nodeType===11}function be(){return!0}function ke(){return!1}function Be(t,r,a){var u=r+"defer",c=r+"queue",h=r+"mark",v=n._data(t,u);v&&(a==="queue"||!n._data(t,c))&&(a==="mark"||!n._data(t,h))&&setTimeout(function(){!n._data(t,c)&&!n._data(t,h)&&(n.removeData(t,u,!0),v.fire())},0)}function Te(t){for(var r in t)if(!(r==="data"&&n.isEmptyObject(t[r]))&&r!=="toJSON")return!1;return!0}function de(t,r,a){if(a===i&&t.nodeType===1){var u="data-"+r.replace(ae,"-$1").toLowerCase();if(a=t.getAttribute(u),typeof a=="string"){try{a=a==="true"?!0:a==="false"?!1:a==="null"?null:n.isNumeric(a)?parseFloat(a):B.test(a)?n.parseJSON(a):a}catch(c){}n.data(t,r,a)}else a=i}return a}function Pe(t){var r=m[t]={},a,u;for(t=t.split(/\s+/),a=0,u=t.length;a)[^>]*$|#([\w\-]*)$)/,v=/\S/,g=/^\s+/,S=/\s+$/,k=/\d/,E=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=/^[\],:{}\s]*$/,F=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,j=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,K=/(?:^|:|,)(?:\s*\[)+/g,me=/(webkit)[ \/]([\w.]+)/,Me=/(opera)(?:.*version)?[ \/]([\w.]+)/,Se=/(msie) ([\w.]+)/,it=/(mozilla)(?:.*? rv:([\w.]+))?/,ot=/-([a-z]|[0-9])/ig,xe=/^-ms-/,p=function(w,H){return(H+"").toUpperCase()},x=s.userAgent,R,N,I,z=Object.prototype.toString,V=Object.prototype.hasOwnProperty,se=Array.prototype.push,ie=Array.prototype.slice,ce=String.prototype.trim,dt=Array.prototype.indexOf,tt={};return r.fn=r.prototype={constructor:r,init:function(w,H,oe){var W,Oe,Le,We;if(!w)return this;if(w.nodeType)return this.context=this[0]=w,this.length=1,this;if(w==="body"&&!H&&X.body)return this.context=X,this[0]=X.body,this.selector=w,this.length=1,this;if(typeof w=="string"){if(w.charAt(0)!=="<"||w.charAt(w.length-1)!==">"||w.length<3?W=h.exec(w):W=[null,w,null],W&&(W[1]||!H)){if(W[1])return H=H instanceof r?H[0]:H,We=H?H.ownerDocument||H:X,Le=E.exec(w),Le?r.isPlainObject(H)?(w=[X.createElement(Le[1])],r.fn.attr.call(w,H,!0)):w=[We.createElement(Le[1])]:(Le=r.buildFragment([W[1]],[We]),w=(Le.cacheable?r.clone(Le.fragment):Le.fragment).childNodes),r.merge(this,w);if(Oe=X.getElementById(W[2]),Oe&&Oe.parentNode){if(Oe.id!==W[2])return oe.find(w);this.length=1,this[0]=Oe}return this.context=X,this.selector=w,this}return!H||H.jquery?(H||oe).find(w):this.constructor(H).find(w)}return r.isFunction(w)?oe.ready(w):(w.selector!==i&&(this.selector=w.selector,this.context=w.context),r.makeArray(w,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return ie.call(this,0)},get:function(w){return w==null?this.toArray():w<0?this[this.length+w]:this[w]},pushStack:function(w,H,oe){var W=this.constructor();return r.isArray(w)?se.apply(W,w):r.merge(W,w),W.prevObject=this,W.context=this.context,H==="find"?W.selector=this.selector+(this.selector?" ":"")+oe:H&&(W.selector=this.selector+"."+H+"("+oe+")"),W},each:function(w,H){return r.each(this,w,H)},ready:function(w){return r.bindReady(),N.add(w),this},eq:function(w){return w===-1?this.slice(w):this.slice(w,+w+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ie.apply(this,arguments),"slice",ie.call(arguments).join(","))},map:function(w){return this.pushStack(r.map(this,function(H,oe){return w.call(H,oe,H)}))},end:function(){return this.prevObject||this.constructor(null)},push:se,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var w,H,oe,W,Oe,Le,We=arguments[0]||{},ht=1,St=arguments.length,dr=!1;for(typeof We=="boolean"&&(dr=We,We=arguments[1]||{},ht=2),typeof We!="object"&&!r.isFunction(We)&&(We={}),St===ht&&(We=this,--ht);ht0)return;N.fireWith(X,[r]),r.fn.trigger&&r(X).trigger("ready").unbind("ready")}},bindReady:function(){if(!N){if(N=r.Callbacks("once memory"),X.readyState==="complete")return setTimeout(r.ready,1);if(X.addEventListener)X.addEventListener("DOMContentLoaded",I,!1),e.addEventListener("load",r.ready,!1);else if(X.attachEvent){X.attachEvent("onreadystatechange",I),e.attachEvent("onload",r.ready);var w=!1;try{w=e.frameElement==null}catch(H){}X.documentElement.doScroll&&w&&t()}}},isFunction:function(w){return r.type(w)==="function"},isArray:Array.isArray||function(w){return r.type(w)==="array"},isWindow:function(w){return w&&typeof w=="object"&&"setInterval"in w},isNumeric:function(w){return w!=null&&k.test(w)&&!isNaN(w)},type:function(w){return w==null?String(w):tt[z.call(w)]||"object"},isPlainObject:function(w){if(!w||r.type(w)!=="object"||w.nodeType||r.isWindow(w))return!1;try{if(w.constructor&&!V.call(w,"constructor")&&!V.call(w.constructor.prototype,"isPrototypeOf"))return!1}catch(oe){return!1}var H;for(H in w);return H===i||V.call(w,H)},isEmptyObject:function(w){for(var H in w)return!1;return!0},error:function(w){throw w},parseJSON:function(w){if(typeof w!="string"||!w)return null;if(w=r.trim(w),e.JSON&&e.JSON.parse)return e.JSON.parse(w);if(O.test(w.replace(F,"@").replace(j,"]").replace(K,"")))return new Function("return "+w)();r.error("Invalid JSON: "+w)},parseXML:function(w){var H,oe;try{e.DOMParser?(oe=new DOMParser,H=oe.parseFromString(w,"text/xml")):(H=new ActiveXObject("Microsoft.XMLDOM"),H.async="false",H.loadXML(w))}catch(W){H=i}return(!H||!H.documentElement||H.getElementsByTagName("parsererror").length)&&r.error("Invalid XML: "+w),H},noop:function(){},globalEval:function(w){w&&v.test(w)&&(e.execScript||function(H){e.eval.call(e,H)})(w)},camelCase:function(w){return w.replace(xe,"ms-").replace(ot,p)},nodeName:function(w,H){return w.nodeName&&w.nodeName.toUpperCase()===H.toUpperCase()},each:function(w,H,oe){var W,Oe=0,Le=w.length,We=Le===i||r.isFunction(w);if(oe)if(We){for(W in w)if(H.apply(w[W],oe)===!1)break}else for(;Oe0&&w[0]&&w[ht-1]||ht===0||r.isArray(w));if(St)for(;We1?b.call(arguments,0):O,S.notifyWith(k,v)}}function a(E){return function(O){u[E]=arguments.length>1?b.call(arguments,0):O,--g||S.resolveWith(S,u)}}var u=b.call(arguments,0),c=0,h=u.length,v=Array(h),g=h,S=h<=1&&t&&n.isFunction(t.promise)?t:n.Deferred(),k=S.promise();if(h>1){for(;c
a",a=t.getElementsByTagName("*"),u=t.getElementsByTagName("a")[0],!a||!a.length||!u)return{};c=X.createElement("select"),h=c.appendChild(X.createElement("option")),v=t.getElementsByTagName("input")[0],S={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,unknownElems:!!t.getElementsByTagName("nav").length,checkOn:v.value==="on",optSelected:h.selected,getSetAttribute:t.className!=="t",enctype:!!X.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},v.checked=!0,S.noCloneChecked=v.cloneNode(!0).checked,c.disabled=!0,S.optDisabled=!h.disabled;try{delete t.test}catch(it){S.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){S.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),v=X.createElement("input"),v.value="t",v.setAttribute("type","radio"),S.radioValue=v.value==="t",v.setAttribute("checked","checked"),t.appendChild(v),k=X.createDocumentFragment(),k.appendChild(t.lastChild),S.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",E=X.getElementsByTagName("body")[0],F=X.createElement(E?"div":"body"),j={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},E&&n.extend(j,{position:"absolute",left:"-999px",top:"-999px"});for(Me in j)F.style[Me]=j[Me];if(F.appendChild(t),O=E||r,O.insertBefore(F,O.firstChild),S.appendChecked=v.checked,S.boxModel=t.offsetWidth===2,"zoom"in t.style&&(t.style.display="inline",t.style.zoom=1,S.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="
",S.shrinkWrapBlocks=t.offsetWidth!==2),t.innerHTML="
t
",K=t.getElementsByTagName("td"),Se=K[0].offsetHeight===0,K[0].style.display="",K[1].style.display="none",S.reliableHiddenOffsets=Se&&K[0].offsetHeight===0,t.innerHTML="",X.defaultView&&X.defaultView.getComputedStyle&&(g=X.createElement("div"),g.style.width="0",g.style.marginRight="0",t.appendChild(g),S.reliableMarginRight=(parseInt((X.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(Me in{submit:1,change:1,focusin:1})me="on"+Me,Se=me in t,Se||(t.setAttribute(me,"return;"),Se=typeof t[me]=="function"),S[Me+"Bubbles"]=Se;return n(function(){var it,ot,xe,p,x,R=1,N="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",I="visibility:hidden;border:0;",z="style='"+N+"border:5px solid #000;padding:0;'",V="
";E=X.getElementsByTagName("body")[0],!E||(it=X.createElement("div"),it.style.cssText=I+"width:0;height:0;position:static;top:0;margin-top:"+R+"px",E.insertBefore(it,E.firstChild),F=X.createElement("div"),F.style.cssText=N+I,F.innerHTML=V,it.appendChild(F),ot=F.firstChild,xe=ot.firstChild,p=ot.nextSibling.firstChild.firstChild,x={doesNotAddBorder:xe.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},xe.style.position="fixed",xe.style.top="20px",x.fixedPosition=xe.offsetTop===20||xe.offsetTop===15,xe.style.position=xe.style.top="",ot.style.overflow="hidden",ot.style.position="relative",x.subtractsBorderForOverflowNotVisible=xe.offsetTop===-5,x.doesNotIncludeMarginInBodyOffset=E.offsetTop!==R,E.removeChild(it),F=it=null,n.extend(S,x))}),F.innerHTML="",O.removeChild(F),F=k=c=h=E=g=t=v=null,S}(),n.boxModel=n.support.boxModel;var B=/^(?:\{.*\}|\[.*\])$/,ae=/([A-Z])/g;n.extend({cache:{},uuid:0,expando:"jQuery"+(n.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?n.cache[t[n.expando]]:t[n.expando],!!t&&!Te(t)},data:function(t,r,a,u){if(n.acceptData(t)){var c,h,v;n.expando;var g=typeof r=="string",S=t.nodeType,k=S?n.cache:t,E=S?t[n.expando]:t[n.expando]&&n.expando,O=r==="events";return(!E||!k[E]||!O&&!u&&!k[E].data)&&g&&a===i?void 0:(E||(S?t[n.expando]=E=++n.uuid:E=n.expando),k[E]||(k[E]={},S||(k[E].toJSON=n.noop)),(typeof r=="object"||typeof r=="function")&&(u?k[E]=n.extend(k[E],r):k[E].data=n.extend(k[E].data,r)),c=h=k[E],u||(h.data||(h.data={}),h=h.data),a!==i&&(h[n.camelCase(r)]=a),O&&!h[r]?c.events:(g?(v=h[r],v==null&&(v=h[n.camelCase(r)])):v=h,v))}},removeData:function(t,r,a){if(n.acceptData(t)){var u,c,h;n.expando;var v=t.nodeType,g=v?n.cache:t,S=v?t[n.expando]:n.expando;if(!g[S])return;if(r&&(u=a?g[S]:g[S].data,u)){for(n.isArray(r)?r=r:(r in u)?r=[r]:(r=n.camelCase(r),r in u?r=[r]:r=r.split(" ")),c=0,h=r.length;c"u"){if(this.length&&(h=n.data(this[0]),this[0].nodeType===1&&!n._data(this[0],"parsedAttrs"))){u=this[0].attributes;for(var v=0,g=u.length;v-1)return!0;return!1},val:function(t){var r,a,u,c=this[0];return arguments.length?(u=n.isFunction(t),this.each(function(h){var v=n(this),g;this.nodeType===1&&(u?g=t.call(this,h,v.val()):g=t,g==null?g="":typeof g=="number"?g+="":n.isArray(g)&&(g=n.map(g,function(S){return S==null?"":S+""})),r=n.valHooks[this.nodeName.toLowerCase()]||n.valHooks[this.type],(!r||!("set"in r)||r.set(this,g,"value")===i)&&(this.value=g))})):c?(r=n.valHooks[c.nodeName.toLowerCase()]||n.valHooks[c.type],r&&"get"in r&&(a=r.get(c,"value"))!==i?a:(a=c.value,typeof a=="string"?a.replace(Re,""):a==null?"":a)):i}}),n.extend({valHooks:{option:{get:function(t){var r=t.attributes.value;return!r||r.specified?t.value:t.text}},select:{get:function(t){var r,a,u,c,h=t.selectedIndex,v=[],g=t.options,S=t.type==="select-one";if(h<0)return null;for(a=S?h:0,u=S?h+1:g.length;a=0}),a.length||(t.selectedIndex=-1),a}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,r,a,u){var c,h,v,g=t.nodeType;return!t||g===3||g===8||g===2?i:u&&r in n.attrFn?n(t)[r](a):"getAttribute"in t?(v=g!==1||!n.isXMLDoc(t),v&&(r=r.toLowerCase(),h=n.attrHooks[r]||(nt.test(r)?ge:G)),a!==i?a===null?(n.removeAttr(t,r),i):h&&"set"in h&&v&&(c=h.set(t,a,r))!==i?c:(t.setAttribute(r,""+a),a):h&&"get"in h&&v&&(c=h.get(t,r))!==null?c:(c=t.getAttribute(r),c===null?i:c)):n.prop(t,r,a)},removeAttr:function(t,r){var a,u,c,h,v=0;if(t.nodeType===1)for(u=(r||"").split(he),h=u.length;v=0}})});var Ee=/^(?:textarea|input|select)$/i,_e=/^([^\.]*)?(?:\.(.+))?$/,Xe=/\bhover(\.\S+)?/,Ye=/^key/,rt=/^(?:mouse|contextmenu)|click/,et=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Pt=function(t){var r=et.exec(t);return r&&(r[1]=(r[1]||"").toLowerCase(),r[3]=r[3]&&new RegExp("(?:^|\\s)"+r[3]+"(?:\\s|$)")),r},rn=function(t,r){return(!r[1]||t.nodeName.toLowerCase()===r[1])&&(!r[2]||t.id===r[2])&&(!r[3]||r[3].test(t.className))},pt=function(t){return n.event.special.hover?t:t.replace(Xe,"mouseenter$1 mouseleave$1")};n.event={add:function(t,r,a,u,c){var h,v,g,S,k,E,O,F,j,K,me;if(!(t.nodeType===3||t.nodeType===8||!r||!a||!(h=n._data(t)))){for(a.handler&&(j=a,a=j.handler),a.guid||(a.guid=n.guid++),g=h.events,g||(h.events=g={}),v=h.handle,v||(h.handle=v=function(Me){return typeof n<"u"&&(!Me||n.event.triggered!==Me.type)?n.event.dispatch.apply(v.elem,arguments):i},v.elem=t),r=pt(r).split(" "),S=0;S=0&&(c=c.slice(0,-1),g=!0),c.indexOf(".")>=0&&(h=c.split("."),c=h.shift(),h.sort()),(!a||n.event.customEvent[c])&&!n.event.global[c])return;if(t=typeof t=="object"?t[n.expando]?t:new n.Event(c,t):new n.Event(c),t.type=c,t.isTrigger=!0,t.exclusive=g,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,O=c.indexOf(":")<0?"on"+c:"",(u||!a)&&t.preventDefault(),!a){v=n.cache;for(S in v)v[S].events&&v[S].events[c]&&n.event.trigger(t,r,v[S].handle.elem,!0);return}if(t.result=i,t.target||(t.target=a),r=r!=null?n.makeArray(r):[],r.unshift(t),F=n.event.special[c]||{},F.trigger&&F.trigger.apply(a,r)===!1)return;if(K=[[a,F.bindType||c]],!u&&!F.noBubble&&!n.isWindow(a)){for(me=F.delegateType||c,E=null,k=a.parentNode;k;k=k.parentNode)K.push([k,me]),E=k;E&&E===a.ownerDocument&&K.push([E.defaultView||E.parentWindow||e,me])}for(S=0;S=0:Me===i&&(Me=O[me]=K.quick?rn(k,K.quick):n(k).is(me)),Me&&j.push(K);j.length&&v.push({elem:k,matches:j})}for(r.length>a&&v.push({elem:this,matches:r.slice(a)}),g=0;g0?this.bind(r,a,u):this.trigger(r)},n.attrFn&&(n.attrFn[r]=!0),Ye.test(r)&&(n.event.fixHooks[r]=n.event.keyHooks),rt.test(r)&&(n.event.fixHooks[r]=n.event.mouseHooks)}),function(){function t(p,x,R,N,I,z){for(var V=0,se=N.length;V0){ce=ie;break}}ie=ie[p]}N[V]=ce}}}function r(p,x,R,N,I,z){for(var V=0,se=N.length;V+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,u="sizcache"+(Math.random()+"").replace(".",""),c=0,h=Object.prototype.toString,v=!1,g=!0,S=/\\/g,k=/\r\n/g,E=/\W/;[0,0].sort(function(){return g=!1,0});var O=function(p,x,R,N){R=R||[],x=x||X;var I=x;if(x.nodeType!==1&&x.nodeType!==9)return[];if(!p||typeof p!="string")return R;var z,V,se,ie,ce,dt,tt,w,H=!0,oe=O.isXML(x),W=[],Oe=p;do if(a.exec(""),z=a.exec(Oe),z&&(Oe=z[3],W.push(z[1]),z[2])){ie=z[3];break}while(z);if(W.length>1&&K.exec(p))if(W.length===2&&j.relative[W[0]])V=xe(W[0]+W[1],x,N);else for(V=j.relative[W[0]]?[x]:O(W.shift(),x);W.length;)p=W.shift(),j.relative[p]&&(p+=W.shift()),V=xe(p,V,N);else if(!N&&W.length>1&&x.nodeType===9&&!oe&&j.match.ID.test(W[0])&&!j.match.ID.test(W[W.length-1])&&(ce=O.find(W.shift(),x,oe),x=ce.expr?O.filter(ce.expr,ce.set)[0]:ce.set[0]),x)for(ce=N?{expr:W.pop(),set:Se(N)}:O.find(W.pop(),W.length===1&&(W[0]==="~"||W[0]==="+")&&x.parentNode?x.parentNode:x,oe),V=ce.expr?O.filter(ce.expr,ce.set):ce.set,W.length>0?se=Se(V):H=!1;W.length;)dt=W.pop(),tt=dt,j.relative[dt]?tt=W.pop():dt="",tt==null&&(tt=x),j.relative[dt](se,tt,oe);else se=W=[];if(se||(se=V),se||O.error(dt||p),h.call(se)==="[object Array]")if(!H)R.push.apply(R,se);else if(x&&x.nodeType===1)for(w=0;se[w]!=null;w++)se[w]&&(se[w]===!0||se[w].nodeType===1&&O.contains(x,se[w]))&&R.push(V[w]);else for(w=0;se[w]!=null;w++)se[w]&&se[w].nodeType===1&&R.push(V[w]);else Se(se,R);return ie&&(O(ie,I,R,N),O.uniqueSort(R)),R};O.uniqueSort=function(p){if(it&&(v=g,p.sort(it),v))for(var x=1;x0},O.find=function(p,x,R){var N,I,z,V,se,ie;if(!p)return[];for(I=0,z=j.order.length;I":function(p,x){var R,N=typeof x=="string",I=0,z=p.length;if(N&&!E.test(x)){for(x=x.toLowerCase();I=0)?R||N.push(se):R&&(x[V]=!1));return!1},ID:function(p){return p[1].replace(S,"")},TAG:function(p,x){return p[1].replace(S,"").toLowerCase()},CHILD:function(p){if(p[1]==="nth"){p[2]||O.error(p[0]),p[2]=p[2].replace(/^\+|\s*/g,"");var x=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(p[2]==="even"&&"2n"||p[2]==="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=x[1]+(x[2]||1)-0,p[3]=x[3]-0}else p[2]&&O.error(p[0]);return p[0]=c++,p},ATTR:function(p,x,R,N,I,z){var V=p[1]=p[1].replace(S,"");return!z&&j.attrMap[V]&&(p[1]=j.attrMap[V]),p[4]=(p[4]||p[5]||"").replace(S,""),p[2]==="~="&&(p[4]=" "+p[4]+" "),p},PSEUDO:function(p,x,R,N,I){if(p[1]==="not")if((a.exec(p[3])||"").length>1||/^\w/.test(p[3]))p[3]=O(p[3],null,null,x);else{var z=O.filter(p[3],x,R,!0^I);return R||N.push.apply(N,z),!1}else if(j.match.POS.test(p[0])||j.match.CHILD.test(p[0]))return!0;return p},POS:function(p){return p.unshift(!0),p}},filters:{enabled:function(p){return p.disabled===!1&&p.type!=="hidden"},disabled:function(p){return p.disabled===!0},checked:function(p){return p.checked===!0},selected:function(p){return p.parentNode&&p.parentNode.selectedIndex,p.selected===!0},parent:function(p){return!!p.firstChild},empty:function(p){return!p.firstChild},has:function(p,x,R){return!!O(R[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){var x=p.getAttribute("type"),R=p.type;return p.nodeName.toLowerCase()==="input"&&R==="text"&&(x===R||x===null)},radio:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="radio"},checkbox:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="checkbox"},file:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="file"},password:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="password"},submit:function(p){var x=p.nodeName.toLowerCase();return(x==="input"||x==="button")&&p.type==="submit"},image:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="image"},reset:function(p){var x=p.nodeName.toLowerCase();return(x==="input"||x==="button")&&p.type==="reset"},button:function(p){var x=p.nodeName.toLowerCase();return x==="input"&&p.type==="button"||x==="button"},input:function(p){return/input|select|textarea|button/i.test(p.nodeName)},focus:function(p){return p===p.ownerDocument.activeElement}},setFilters:{first:function(p,x){return x===0},last:function(p,x,R,N){return x===N.length-1},even:function(p,x){return x%2===0},odd:function(p,x){return x%2===1},lt:function(p,x,R){return xR[3]-0},nth:function(p,x,R){return R[3]-0===x},eq:function(p,x,R){return R[3]-0===x}},filter:{PSEUDO:function(p,x,R,N){var I=x[1],z=j.filters[I];if(z)return z(p,R,x,N);if(I==="contains")return(p.textContent||p.innerText||F([p])||"").indexOf(x[3])>=0;if(I==="not"){for(var V=x[3],se=0,ie=V.length;se=0}},ID:function(p,x){return p.nodeType===1&&p.getAttribute("id")===x},TAG:function(p,x){return x==="*"&&p.nodeType===1||!!p.nodeName&&p.nodeName.toLowerCase()===x},CLASS:function(p,x){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(x)>-1},ATTR:function(p,x){var R=x[1],N=O.attr?O.attr(p,R):j.attrHandle[R]?j.attrHandle[R](p):p[R]!=null?p[R]:p.getAttribute(R),I=N+"",z=x[2],V=x[4];return N==null?z==="!=":!z&&O.attr?N!=null:z==="="?I===V:z==="*="?I.indexOf(V)>=0:z==="~="?(" "+I+" ").indexOf(V)>=0:V?z==="!="?I!==V:z==="^="?I.indexOf(V)===0:z==="$="?I.substr(I.length-V.length)===V:z==="|="?I===V||I.substr(0,V.length+1)===V+"-":!1:I&&N!==!1},POS:function(p,x,R,N){var I=x[2],z=j.setFilters[I];if(z)return z(p,R,x,N)}}},K=j.match.POS,me=function(p,x){return"\\"+(x-0+1)};for(var Me in j.match)j.match[Me]=new RegExp(j.match[Me].source+/(?![^\[]*\])(?![^\(]*\))/.source),j.leftMatch[Me]=new RegExp(/(^(?:.|\r|\n)*?)/.source+j.match[Me].source.replace(/\\(\d+)/g,me));var Se=function(p,x){return p=Array.prototype.slice.call(p,0),x?(x.push.apply(x,p),x):p};try{Array.prototype.slice.call(X.documentElement.childNodes,0)[0].nodeType}catch(p){Se=function(x,R){var N=0,I=R||[];if(h.call(x)==="[object Array]")Array.prototype.push.apply(I,x);else if(typeof x.length=="number")for(var z=x.length;N",R.insertBefore(p,R.firstChild),X.getElementById(x)&&(j.find.ID=function(N,I,z){if(typeof I.getElementById<"u"&&!z){var V=I.getElementById(N[1]);return V?V.id===N[1]||typeof V.getAttributeNode<"u"&&V.getAttributeNode("id").nodeValue===N[1]?[V]:i:[]}},j.filter.ID=function(N,I){var z=typeof N.getAttributeNode<"u"&&N.getAttributeNode("id");return N.nodeType===1&&z&&z.nodeValue===I}),R.removeChild(p),R=p=null}(),function(){var p=X.createElement("div");p.appendChild(X.createComment("")),p.getElementsByTagName("*").length>0&&(j.find.TAG=function(x,R){var N=R.getElementsByTagName(x[1]);if(x[1]==="*"){for(var I=[],z=0;N[z];z++)N[z].nodeType===1&&I.push(N[z]);N=I}return N}),p.innerHTML="",p.firstChild&&typeof p.firstChild.getAttribute<"u"&&p.firstChild.getAttribute("href")!=="#"&&(j.attrHandle.href=function(x){return x.getAttribute("href",2)}),p=null}(),X.querySelectorAll&&function(){var p=O,x=X.createElement("div"),R="__sizzle__";if(x.innerHTML="

",!x.querySelectorAll||x.querySelectorAll(".TEST").length!==0){O=function(I,z,V,se){if(z=z||X,!se&&!O.isXML(z)){var ie=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(I);if(ie&&(z.nodeType===1||z.nodeType===9)){if(ie[1])return Se(z.getElementsByTagName(I),V);if(ie[2]&&j.find.CLASS&&z.getElementsByClassName)return Se(z.getElementsByClassName(ie[2]),V)}if(z.nodeType===9){if(I==="body"&&z.body)return Se([z.body],V);if(ie&&ie[3]){var ce=z.getElementById(ie[3]);if(!ce||!ce.parentNode)return Se([],V);if(ce.id===ie[3])return Se([ce],V)}try{return Se(z.querySelectorAll(I),V)}catch(W){}}else if(z.nodeType===1&&z.nodeName.toLowerCase()!=="object"){var dt=z,tt=z.getAttribute("id"),w=tt||R,H=z.parentNode,oe=/^\s*[+~]/.test(I);tt?w=w.replace(/'/g,"\\$&"):z.setAttribute("id",w),oe&&H&&(z=z.parentNode);try{if(!oe||H)return Se(z.querySelectorAll("[id='"+w+"'] "+I),V)}catch(W){}finally{tt||dt.removeAttribute("id")}}}return p(I,z,V,se)};for(var N in p)O[N]=p[N];x=null}}(),function(){var p=X.documentElement,x=p.matchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.msMatchesSelector;if(x){var R=!x.call(X.createElement("div"),"div"),N=!1;try{x.call(X.documentElement,"[test!='']:sizzle")}catch(I){N=!0}O.matchesSelector=function(I,z){if(z=z.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!O.isXML(I))try{if(N||!j.match.PSEUDO.test(z)&&!/!=/.test(z)){var V=x.call(I,z);if(V||!R||I.document&&I.document.nodeType!==11)return V}}catch(se){}return O(z,null,null,[I]).length>0}}}(),function(){var p=X.createElement("div");if(p.innerHTML="
",p.getElementsByClassName&&p.getElementsByClassName("e").length!==0){if(p.lastChild.className="e",p.getElementsByClassName("e").length===1)return;j.order.splice(1,0,"CLASS"),j.find.CLASS=function(x,R,N){if(typeof R.getElementsByClassName<"u"&&!N)return R.getElementsByClassName(x[1])},p=null}}(),X.documentElement.contains?O.contains=function(p,x){return p!==x&&(p.contains?p.contains(x):!0)}:X.documentElement.compareDocumentPosition?O.contains=function(p,x){return!!(p.compareDocumentPosition(x)&16)}:O.contains=function(){return!1},O.isXML=function(p){var x=(p?p.ownerDocument||p:0).documentElement;return x?x.nodeName!=="HTML":!1};var xe=function(p,x,R){for(var N,I=[],z="",V=x.nodeType?[x]:x;N=j.match.PSEUDO.exec(p);)z+=N[0],p=p.replace(j.match.PSEUDO,"");p=j.relative[p]?p+"*":p;for(var se=0,ie=V.length;se0){for(v=h;v=0:n.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,r){var a=[],u,c,h=this[0];if(n.isArray(t)){for(var v=1;h&&h.ownerDocument&&h!==r;){for(u=0;u-1:n.find.matchesSelector(h,t)){a.push(h);break}if(h=h.parentNode,!h||!h.ownerDocument||h===r||h.nodeType===11)break}return a=a.length>1?n.unique(a):a,this.pushStack(a,"closest",t)},index:function(t){return t?typeof t=="string"?n.inArray(this[0],n(t)):n.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,r){var a=typeof t=="string"?n(t,r):n.makeArray(t&&t.nodeType?[t]:t),u=n.merge(this.get(),a);return this.pushStack(Ae(a[0])||Ae(u[0])?u:n.unique(u))},andSelf:function(){return this.add(this.prevObject)}}),n.each({parent:function(t){var r=t.parentNode;return r&&r.nodeType!==11?r:null},parents:function(t){return n.dir(t,"parentNode")},parentsUntil:function(t,r,a){return n.dir(t,"parentNode",a)},next:function(t){return n.nth(t,2,"nextSibling")},prev:function(t){return n.nth(t,2,"previousSibling")},nextAll:function(t){return n.dir(t,"nextSibling")},prevAll:function(t){return n.dir(t,"previousSibling")},nextUntil:function(t,r,a){return n.dir(t,"nextSibling",a)},prevUntil:function(t,r,a){return n.dir(t,"previousSibling",a)},siblings:function(t){return n.sibling(t.parentNode.firstChild,t)},children:function(t){return n.sibling(t.firstChild)},contents:function(t){return n.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:n.makeArray(t.childNodes)}},function(t,r){n.fn[t]=function(a,u){var c=n.map(this,r,a),h=Ft.call(arguments);return mt.test(t)||(u=a),u&&typeof u=="string"&&(c=n.filter(u,c)),c=this.length>1&&!yt[t]?n.unique(c):c,(this.length>1||yn.test(u))&&Ge.test(t)&&(c=c.reverse()),this.pushStack(c,t,h.join(","))}}),n.extend({filter:function(t,r,a){return a&&(t=":not("+t+")"),r.length===1?n.find.matchesSelector(r[0],t)?[r[0]]:[]:n.find.matches(t,r)},dir:function(t,r,a){for(var u=[],c=t[r];c&&c.nodeType!==9&&(a===i||c.nodeType!==1||!n(c).is(a));)c.nodeType===1&&u.push(c),c=c[r];return u},nth:function(t,r,a,u){r=r||1;for(var c=0;t&&!(t.nodeType===1&&++c===r);t=t[a]);return t},sibling:function(t,r){for(var a=[];t;t=t.nextSibling)t.nodeType===1&&t!==r&&a.push(t);return a}});var wt="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",It=/ jQuery\d+="(?:\d+|null)"/g,qe=/^\s+/,Je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ze=/<([\w:]+)/,Y=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Wt=fe(X);$e.optgroup=$e.option,$e.tbody=$e.tfoot=$e.colgroup=$e.caption=$e.thead,$e.th=$e.td,n.support.htmlSerialize||($e._default=[1,"div
","
"]),n.fn.extend({text:function(t){return n.isFunction(t)?this.each(function(r){var a=n(this);a.text(t.call(this,r,a.text()))}):typeof t!="object"&&t!==i?this.empty().append((this[0]&&this[0].ownerDocument||X).createTextNode(t)):n.text(this)},wrapAll:function(t){if(n.isFunction(t))return this.each(function(a){n(this).wrapAll(t.call(this,a))});if(this[0]){var r=n(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&r.insertBefore(this[0]),r.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(t){return n.isFunction(t)?this.each(function(r){n(this).wrapInner(t.call(this,r))}):this.each(function(){var r=n(this),a=r.contents();a.length?a.wrapAll(t):r.append(t)})},wrap:function(t){return this.each(function(){n(this).wrapAll(t)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){this.nodeType===1&&this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){this.nodeType===1&&this.insertBefore(t,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(r){this.parentNode.insertBefore(r,this)});if(arguments.length){var t=n(arguments[0]);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(r){this.parentNode.insertBefore(r,this.nextSibling)});if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,n(arguments[0]).toArray()),t}},remove:function(t,r){for(var a=0,u;(u=this[a])!=null;a++)(!t||n.filter(t,[u]).length)&&(!r&&u.nodeType===1&&(n.cleanData(u.getElementsByTagName("*")),n.cleanData([u])),u.parentNode&&u.parentNode.removeChild(u));return this},empty:function(){for(var t=0,r;(r=this[t])!=null;t++)for(r.nodeType===1&&n.cleanData(r.getElementsByTagName("*"));r.firstChild;)r.removeChild(r.firstChild);return this},clone:function(t,r){return t=t==null?!1:t,r=r==null?t:r,this.map(function(){return n.clone(this,t,r)})},html:function(t){if(t===i)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(It,""):null;if(typeof t=="string"&&!we.test(t)&&(n.support.leadingWhitespace||!qe.test(t))&&!$e[(ze.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Je,"<$1>");try{for(var r=0,a=this.length;r1&&k0?this.clone(!0):this).get();n(c[v])[r](S),u=u.concat(S)}return this.pushStack(u,t,c.selector)}}),n.extend({clone:function(t,r,a){var u=t.cloneNode(!0),c,h,v;if((!n.support.noCloneEvent||!n.support.noCloneChecked)&&(t.nodeType===1||t.nodeType===11)&&!n.isXMLDoc(t))for(ye(t,u),c=ne(t),h=ne(u),v=0;c[v];++v)h[v]&&ye(c[v],h[v]);if(r&&(ee(t,u),a))for(c=ne(t),h=ne(u),v=0;c[v];++v)ee(c[v],h[v]);return c=h=null,u},clean:function(t,r,a,u){var c;r=r||X,typeof r.createElement>"u"&&(r=r.ownerDocument||r[0]&&r[0].ownerDocument||X);for(var h=[],v,g=0,S;(S=t[g])!=null;g++)if(typeof S=="number"&&(S+=""),!!S){if(typeof S=="string")if(!ue.test(S))S=r.createTextNode(S);else{S=S.replace(Je,"<$1>");var k=(ze.exec(S)||["",""])[1].toLowerCase(),E=$e[k]||$e._default,O=E[0],F=r.createElement("div");for(r===X?Wt.appendChild(F):fe(r).appendChild(F),F.innerHTML=E[1]+S+E[2];O--;)F=F.lastChild;if(!n.support.tbody){var j=Y.test(S),K=k==="table"&&!j?F.firstChild&&F.firstChild.childNodes:E[1]===""&&!j?F.childNodes:[];for(v=K.length-1;v>=0;--v)n.nodeName(K[v],"tbody")&&!K[v].childNodes.length&&K[v].parentNode.removeChild(K[v])}!n.support.leadingWhitespace&&qe.test(S)&&F.insertBefore(r.createTextNode(qe.exec(S)[0]),F.firstChild),S=F.childNodes}var me;if(!n.support.appendChecked)if(S[0]&&typeof(me=S.length)=="number")for(v=0;v=0)return u+"px"}}}),n.support.opacity||(n.cssHooks.opacity={get:function(t,r){return ga.test((r&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":r?"1":""},set:function(t,r){var a=t.style,u=t.currentStyle,c=n.isNumeric(r)?"alpha(opacity="+r*100+")":"",h=u&&u.filter||a.filter||"";a.zoom=1,!(r>=1&&n.trim(h.replace(lr,""))===""&&(a.removeAttribute("filter"),u&&!u.filter))&&(a.filter=lr.test(h)?h.replace(lr,c):h+" "+c)}}),n(function(){n.support.reliableMarginRight||(n.cssHooks.marginRight={get:function(t,r){var a;return n.swap(t,{display:"inline-block"},function(){r?a=on(t,"margin-right","marginRight"):a=t.style.marginRight}),a}})}),X.defaultView&&X.defaultView.getComputedStyle&&(ti=function(t,r){var a,u,c;return r=r.replace(ma,"-$1").toLowerCase(),(u=t.ownerDocument.defaultView)?((c=u.getComputedStyle(t,null))&&(a=c.getPropertyValue(r),a===""&&!n.contains(t.ownerDocument.documentElement,t)&&(a=n.style(t,r))),a):i}),X.documentElement.currentStyle&&(ni=function(t,r){var a,u,c,h=t.currentStyle&&t.currentStyle[r],v=t.style;return h===null&&v&&(c=v[r])&&(h=c),!ei.test(h)&&ya.test(h)&&(a=v.left,u=t.runtimeStyle&&t.runtimeStyle.left,u&&(t.runtimeStyle.left=t.currentStyle.left),v.left=r==="fontSize"?"1em":h||0,h=v.pixelLeft+"px",v.left=a,u&&(t.runtimeStyle.left=u)),h===""?"auto":h}),on=ti||ni,n.expr&&n.expr.filters&&(n.expr.filters.hidden=function(t){var r=t.offsetWidth,a=t.offsetHeight;return r===0&&a===0||!n.support.reliableHiddenOffsets&&(t.style&&t.style.display||n.css(t,"display"))==="none"},n.expr.filters.visible=function(t){return!n.expr.filters.hidden(t)});var Sa=/%20/g,Ca=/\[\]$/,ri=/\r?\n/g,Ta=/#.*$/,Ma=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Ea=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Oa=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,ka=/^(?:GET|HEAD)$/,Pa=/^\/\//,ii=/\?/,Ra=/)<[^<]*)*<\/script>/gi,Da=/^(?:select|textarea)/i,oi=/\s+/,Na=/([?&])_=[^&]*/,ai=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,si=n.fn.load,ur={},li={},Ht,$t,ui=["*/"]+["*"];try{Ht=l.href}catch(t){Ht=X.createElement("a"),Ht.href="",Ht=Ht.href}$t=ai.exec(Ht.toLowerCase())||[],n.fn.extend({load:function(t,r,a){if(typeof t!="string"&&si)return si.apply(this,arguments);if(!this.length)return this;var u=t.indexOf(" ");if(u>=0){var c=t.slice(u,t.length);t=t.slice(0,u)}var h="GET";r&&(n.isFunction(r)?(a=r,r=i):typeof r=="object"&&(r=n.param(r,n.ajaxSettings.traditional),h="POST"));var v=this;return n.ajax({url:t,type:h,dataType:"html",data:r,complete:function(g,S,k){k=g.responseText,g.isResolved()&&(g.done(function(E){k=E}),v.html(c?n("
").append(k.replace(Ra,"")).find(c):k)),a&&v.each(a,[k,S,g])}}),this},serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?n.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Da.test(this.nodeName)||Ea.test(this.type))}).map(function(t,r){var a=n(this).val();return a==null?null:n.isArray(a)?n.map(a,function(u,c){return{name:r.name,value:u.replace(ri,`\r `)}}):{name:r.name,value:a.replace(ri,`\r `)}}).get()}}),n.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,r){n.fn[r]=function(a){return this.bind(r,a)}}),n.each(["get","post"],function(t,r){n[r]=function(a,u,c,h){return n.isFunction(u)&&(h=h||c,c=u,u=i),n.ajax({type:r,url:a,data:u,success:c,dataType:h})}}),n.extend({getScript:function(t,r){return n.get(t,i,r,"script")},getJSON:function(t,r,a){return n.get(t,r,a,"json")},ajaxSetup:function(t,r){return r?q(t,n.ajaxSettings):(r=t,t=n.ajaxSettings),q(t,r),t},ajaxSettings:{url:Ht,isLocal:Oa.test($t[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":ui},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:re(ur),ajaxTransport:re(li),ajax:function(t,r){function a(R,N,I,z){if(Se!==2){Se=2,me&&clearTimeout(me),K=i,F=z||"",xe.readyState=R>0?4:0;var V,se,ie,ce=N,dt=I?P(u,xe,I):i,tt,w;if(R>=200&&R<300||R===304)if(u.ifModified&&((tt=xe.getResponseHeader("Last-Modified"))&&(n.lastModified[k]=tt),(w=xe.getResponseHeader("Etag"))&&(n.etag[k]=w)),R===304)ce="notmodified",V=!0;else try{se=C(u,dt),ce="success",V=!0}catch(H){ce="parsererror",ie=H}else ie=ce,(!ce||R)&&(ce="error",R<0&&(R=0));xe.status=R,xe.statusText=""+(N||ce),V?v.resolveWith(c,[se,ce,xe]):v.rejectWith(c,[xe,ce,ie]),xe.statusCode(S),S=i,it&&h.trigger("ajax"+(V?"Success":"Error"),[xe,u,V?se:ie]),g.fireWith(c,[xe,ce]),it&&(h.trigger("ajaxComplete",[xe,u]),--n.active||n.event.trigger("ajaxStop"))}}typeof t=="object"&&(r=t,t=i),r=r||{};var u=n.ajaxSetup({},r),c=u.context||u,h=c!==u&&(c.nodeType||c instanceof n)?n(c):n.event,v=n.Deferred(),g=n.Callbacks("once memory"),S=u.statusCode||{},k,E={},O={},F,j,K,me,Me,Se=0,it,ot,xe={readyState:0,setRequestHeader:function(R,N){if(!Se){var I=R.toLowerCase();R=O[I]=O[I]||R,E[R]=N}return this},getAllResponseHeaders:function(){return Se===2?F:null},getResponseHeader:function(R){var N;if(Se===2){if(!j)for(j={};N=Ma.exec(F);)j[N[1].toLowerCase()]=N[2];N=j[R.toLowerCase()]}return N===i?null:N},overrideMimeType:function(R){return Se||(u.mimeType=R),this},abort:function(R){return R=R||"abort",K&&K.abort(R),a(0,R),this}};if(v.promise(xe),xe.success=xe.done,xe.error=xe.fail,xe.complete=g.add,xe.statusCode=function(R){if(R){var N;if(Se<2)for(N in R)S[N]=[S[N],R[N]];else N=R[xe.status],xe.then(N,N)}return this},u.url=((t||u.url)+"").replace(Ta,"").replace(Pa,$t[1]+"//"),u.dataTypes=n.trim(u.dataType||"*").toLowerCase().split(oi),u.crossDomain==null&&(Me=ai.exec(u.url.toLowerCase()),u.crossDomain=!(!Me||Me[1]==$t[1]&&Me[2]==$t[2]&&(Me[3]||(Me[1]==="http:"?80:443))==($t[3]||($t[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=n.param(u.data,u.traditional)),U(ur,u,r,xe),Se===2)return!1;if(it=u.global,u.type=u.type.toUpperCase(),u.hasContent=!ka.test(u.type),it&&n.active++===0&&n.event.trigger("ajaxStart"),!u.hasContent&&(u.data&&(u.url+=(ii.test(u.url)?"&":"?")+u.data,delete u.data),k=u.url,u.cache===!1)){var p=n.now(),x=u.url.replace(Na,"$1_="+p);u.url=x+(x===u.url?(ii.test(u.url)?"&":"?")+"_="+p:"")}(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&xe.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(k=k||u.url,n.lastModified[k]&&xe.setRequestHeader("If-Modified-Since",n.lastModified[k]),n.etag[k]&&xe.setRequestHeader("If-None-Match",n.etag[k])),xe.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+ui+"; q=0.01":""):u.accepts["*"]);for(ot in u.headers)xe.setRequestHeader(ot,u.headers[ot]);if(u.beforeSend&&(u.beforeSend.call(c,xe,u)===!1||Se===2))return xe.abort(),!1;for(ot in{success:1,error:1,complete:1})xe[ot](u[ot]);if(K=U(li,u,r,xe),!K)a(-1,"No Transport");else{xe.readyState=1,it&&h.trigger("ajaxSend",[xe,u]),u.async&&u.timeout>0&&(me=setTimeout(function(){xe.abort("timeout")},u.timeout));try{Se=1,K.send(E,a)}catch(R){Se<2?a(-1,R):n.error(R)}}return xe},param:function(t,r){var a=[],u=function(h,v){v=n.isFunction(v)?v():v,a[a.length]=encodeURIComponent(h)+"="+encodeURIComponent(v)};if(r===i&&(r=n.ajaxSettings.traditional),n.isArray(t)||t.jquery&&!n.isPlainObject(t))n.each(t,function(){u(this.name,this.value)});else for(var c in t)$(c,t[c],r,u);return a.join("&").replace(Sa,"+")}}),n.extend({active:0,lastModified:{},etag:{}});var _a=n.now(),Pn=/(\=)\?(&|$)|\?\?/i;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return n.expando+"_"+_a++}}),n.ajaxPrefilter("json jsonp",function(t,r,a){var u=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(Pn.test(t.url)||u&&Pn.test(t.data))){var c,h=t.jsonpCallback=n.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v=e[h],g=t.url,S=t.data,k="$1"+h+"$2";return t.jsonp!==!1&&(g=g.replace(Pn,k),t.url===g&&(u&&(S=S.replace(Pn,k)),t.data===S&&(g+=(/\?/.test(g)?"&":"?")+t.jsonp+"="+h))),t.url=g,t.data=S,e[h]=function(E){c=[E]},a.always(function(){e[h]=v,c&&n.isFunction(v)&&e[h](c[0])}),t.converters["script json"]=function(){return c||n.error(h+" was not called"),c[0]},t.dataTypes[0]="json","script"}}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return n.globalEval(t),t}}}),n.ajaxPrefilter("script",function(t){t.cache===i&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),n.ajaxTransport("script",function(t){if(t.crossDomain){var r,a=X.head||X.getElementsByTagName("head")[0]||X.documentElement;return{send:function(u,c){r=X.createElement("script"),r.async="async",t.scriptCharset&&(r.charset=t.scriptCharset),r.src=t.url,r.onload=r.onreadystatechange=function(h,v){(v||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,a&&r.parentNode&&a.removeChild(r),r=i,v||c(200,"success"))},a.insertBefore(r,a.firstChild)},abort:function(){r&&r.onload(0,1)}}}});var cr=e.ActiveXObject?function(){for(var t in an)an[t](0,1)}:!1,La=0,an;n.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&M()||T()}:M,function(t){n.extend(n.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(n.ajaxSettings.xhr()),n.support.ajax&&n.ajaxTransport(function(t){if(!t.crossDomain||n.support.cors){var r;return{send:function(a,u){var c=t.xhr(),h,v;if(t.username?c.open(t.type,t.url,t.async,t.username,t.password):c.open(t.type,t.url,t.async),t.xhrFields)for(v in t.xhrFields)c[v]=t.xhrFields[v];t.mimeType&&c.overrideMimeType&&c.overrideMimeType(t.mimeType),!t.crossDomain&&!a["X-Requested-With"]&&(a["X-Requested-With"]="XMLHttpRequest");try{for(v in a)c.setRequestHeader(v,a[v])}catch(g){}c.send(t.hasContent&&t.data||null),r=function(g,S){var k,E,O,F,j;try{if(r&&(S||c.readyState===4))if(r=i,h&&(c.onreadystatechange=n.noop,cr&&delete an[h]),S)c.readyState!==4&&c.abort();else{k=c.status,O=c.getAllResponseHeaders(),F={},j=c.responseXML,j&&j.documentElement&&(F.xml=j),F.text=c.responseText;try{E=c.statusText}catch(K){E=""}!k&&t.isLocal&&!t.crossDomain?k=F.text?200:404:k===1223&&(k=204)}}catch(K){S||u(-1,K)}F&&u(k,E,F,O)},!t.async||c.readyState===4?r():(h=++La,cr&&(an||(an={},n(e).unload(cr)),an[h]=r),c.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var fr={},Mt,sn,Ba=/^(?:toggle|show|hide)$/,Fa=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Rn,ci=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Dn;n.fn.extend({show:function(t,r,a){var u,c;if(t||t===0)return this.animate(d("show",3),t,r,a);for(var h=0,v=this.length;h=g.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),g.animatedProperties[this.prop]=!0;for(r in g.animatedProperties)g.animatedProperties[r]!==!0&&(h=!1);if(h){if(g.overflow!=null&&!n.support.shrinkWrapBlocks&&n.each(["","X","Y"],function(S,k){v.style["overflow"+k]=g.overflow[S]}),g.hide&&n(v).hide(),g.hide||g.show)for(r in g.animatedProperties)n.style(v,r,g.orig[r]),n.removeData(v,"fxshow"+r,!0),n.removeData(v,"toggle"+r,!0);u=g.complete,u&&(g.complete=!1,u.call(v))}return!1}return g.duration==1/0?this.now=c:(a=c-this.startTime,this.state=a/g.duration,this.pos=n.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},n.extend(n.fx,{tick:function(){for(var t,r=n.timers,a=0;a-1,k={},E={},O,F;S?(E=c.position(),O=E.top,F=E.left):(O=parseFloat(v)||0,F=parseFloat(g)||0),n.isFunction(r)&&(r=r.call(t,a,h)),r.top!=null&&(k.top=r.top-h.top+O),r.left!=null&&(k.left=r.left-h.left+F),"using"in r?r.using.call(t,k):c.css(k)}},n.fn.extend({position:function(){if(!this[0])return null;var t=this[0],r=this.offsetParent(),a=this.offset(),u=fi.test(r[0].nodeName)?{top:0,left:0}:r.offset();return a.top-=parseFloat(n.css(t,"marginTop"))||0,a.left-=parseFloat(n.css(t,"marginLeft"))||0,u.top+=parseFloat(n.css(r[0],"borderTopWidth"))||0,u.left+=parseFloat(n.css(r[0],"borderLeftWidth"))||0,{top:a.top-u.top,left:a.left-u.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||X.body;t&&!fi.test(t.nodeName)&&n.css(t,"position")==="static";)t=t.offsetParent;return t})}}),n.each(["Left","Top"],function(t,r){var a="scroll"+r;n.fn[a]=function(u){var c,h;return u===i?(c=this[0],c?(h=o(c),h?"pageXOffset"in h?h[t?"pageYOffset":"pageXOffset"]:n.support.boxModel&&h.document.documentElement[a]||h.document.body[a]:c[a]):null):this.each(function(){h=o(this),h?h.scrollTo(t?n(h).scrollLeft():u,t?u:n(h).scrollTop()):this[a]=u})}}),n.each(["Height","Width"],function(t,r){var a=r.toLowerCase();n.fn["inner"+r]=function(){var u=this[0];return u?u.style?parseFloat(n.css(u,a,"padding")):this[a]():null},n.fn["outer"+r]=function(u){var c=this[0];return c?c.style?parseFloat(n.css(c,a,u?"margin":"border")):this[a]():null},n.fn[a]=function(u){var c=this[0];if(!c)return u==null?null:this;if(n.isFunction(u))return this.each(function(k){var E=n(this);E[a](u.call(this,k,E[a]()))});if(n.isWindow(c)){var h=c.document.documentElement["client"+r],v=c.document.body;return c.document.compatMode==="CSS1Compat"&&h||v&&v["client"+r]||h}if(c.nodeType===9)return Math.max(c.documentElement["client"+r],c.body["scroll"+r],c.documentElement["scroll"+r],c.body["offset"+r],c.documentElement["offset"+r]);if(u===i){var g=n.css(c,a),S=parseFloat(g);return n.isNumeric(S)?S:g}return this.css(a,typeof u=="string"?u:u+"px")}}),e.jQuery=e.$=n})(window);(function(e){var i,o,f="",d="4.1.0",y=Math.PI,A=y/2,T="ontouchstart"in window,M=T?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},C={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},P=["single","double"],$=["ltr","rtl"],q={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},U={cornerSize:100},re=6,_={init:function(s){i="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,o=pe(),f=be();var l,n=0,m=this.data(),b=this.children();if(s=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},q,s),m.opts=s,m.pageObjs={},m.pages={},m.pageWrap={},m.pageZoom={},m.pagePlace={},m.pageMv=[],m.zoom=1,m.totalPages=s.pages||0,m.eventHandlers={touchStart:e.proxy(_._touchStart,this),touchMove:e.proxy(_._touchMove,this),touchEnd:e.proxy(_._touchEnd,this),start:e.proxy(_._eventStart,this)},s.when)for(l in s.when)Ae(l,s.when)&&this.bind(l,s.when[l]);for(this.css({position:"relative",width:s.width,height:s.height}),this.turn("display",s.display),s.direction!==""&&this.turn("direction",s.direction),i&&!T&&s.acceleration&&this.transform(fe(0,0,!0)),l=0;lae)throw de('Page "'+l+'" cannot be inserted')}else l=ae,b=!0;return l>=1&&l<=ae&&(B.display=="double"?m=l%2?" odd":" even":m="",B.done&&this.turn("stop"),l in B.pageObjs&&_._movePages.call(this,l,1),b&&(B.totalPages=ae),B.pageObjs[l]=e(s).css({float:"left"}).addClass("page p"+l+m),!X()&&B.pageObjs[l].hasClass("hard")&&B.pageObjs[l].removeClass("hard"),_._addPage.call(this,l),_._removeFromDOM.call(this)),this},_addPage:function(s){var l=this.data(),n=l.pageObjs[s];if(n)if(_._necessPage.call(this,s)){if(!l.pageWrap[s]){l.pageWrap[s]=e("
",{class:"page-wrapper",page:s,css:{position:"absolute",overflow:"hidden"}}),this.append(l.pageWrap[s]),l.pagePlace[s]||(l.pagePlace[s]=s,l.pageObjs[s].appendTo(l.pageWrap[s]));var m=_._pageSize.call(this,s,!0);n.css({width:m.width,height:m.height}),l.pageWrap[s].css(m)}l.pagePlace[s]==s&&_._makeFlip.call(this,s)}else l.pagePlace[s]=0,l.pageObjs[s]&&l.pageObjs[s].remove()},hasPage:function(s){return Ae(s,this.data().pageObjs)},center:function(s){var l=this.data(),n=e(this).turn("size"),m=0;if(!l.noCenter){if(l.display=="double"){var b=this.turn("view",s||l.tpage||l.page);l.direction=="ltr"?b[0]?b[1]||(m+=n.width/4):m-=n.width/4:b[0]?b[1]||(m-=n.width/4):m+=n.width/4}e(this).css({marginLeft:m})}return this},destroy:function(){var s=this,l=this.data(),n=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(Te("destroying",this)!="prevented"){for(l.destroying=!0,e.each(n,function(m,b){s.unbind(b)}),this.parent().unbind("start",l.eventHandlers.start),e(document).unbind(M.move,l.eventHandlers.touchMove).unbind(M.up,l.eventHandlers.touchEnd);l.totalPages!==0;)this.turn("removePage",l.totalPages);return l.fparent&&l.fparent.remove(),l.shadow&&l.shadow.remove(),this.removeData(),l=null,this}},is:function(){return typeof this.data().pages=="object"},zoom:function(s){var l=this.data();if(typeof s=="number"){if(s<.001||s>100)throw de(s+" is not a value for zoom");if(Te("zooming",this,[s,l.zoom])=="prevented")return this;var n=this.turn("size"),m=this.turn("view"),b=1/l.zoom,B=Math.round(n.width*b*s),ae=Math.round(n.height*b*s);l.zoom=s,e(this).turn("stop").turn("size",B,ae),l.opts.autoCenter&&this.turn("center"),_._updateShadow.call(this);for(var Q=0;QB.totalPages)throw de('"'+s+'" is not a valid page');return b[1]=b[1]||b[0],b[0]>=1&&b[1]<=B.totalPages?(l=Math.floor((re-2)/2),B.totalPages-b[1]>b[0]?(n=Math.min(b[0]-1,l),m=2*l-n):(m=Math.min(B.totalPages-b[1],l),n=2*l-m)):(n=re-1,m=re-1),[Math.max(1,b[0]-n),Math.min(B.totalPages,b[1]+m)]},_necessPage:function(s){if(s===0)return!0;var l=this.turn("range");return this.data().pageObjs[s].hasClass("fixed")||s>=l[0]&&s<=l[1]},_removeFromDOM:function(){var s,l=this.data();for(s in l.pageWrap)Ae(s,l.pageWrap)&&!_._necessPage.call(this,s)&&_._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var l=this.data();if(l.pages[s]){var n=l.pages[s].data();L._moveFoldingPage.call(l.pages[s],!1),n.f&&n.f.fwrapper&&n.f.fwrapper.remove(),l.pages[s].removeData(),l.pages[s].remove(),delete l.pages[s]}l.pageObjs[s]&&l.pageObjs[s].remove(),l.pageWrap[s]&&(l.pageWrap[s].remove(),delete l.pageWrap[s]),_._removeMv.call(this,s),delete l.pagePlace[s],delete l.pageZoom[s]},removePage:function(s){var l=this.data();if(s=="*")for(;l.totalPages!==0;)this.turn("removePage",l.totalPages);else{if(s<1||s>l.totalPages)throw de("The page "+s+" doesn't exist");l.pageObjs[s]&&(this.turn("stop"),_._removePageFromDOM.call(this,s),delete l.pageObjs[s]),_._movePages.call(this,s,-1),l.totalPages=l.totalPages-1,l.page>l.totalPages?(l.page=null,_._fitPage.call(this,l.totalPages)):(_._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,l){var n,m=this,b=this.data(),B=b.display=="single",ae=function(Q){var he=Q+l,Re=he%2,Ne=Re?" odd ":" even ";b.pageObjs[Q]&&(b.pageObjs[he]=b.pageObjs[Q].removeClass("p"+Q+" odd even").addClass("p"+he+Ne)),b.pagePlace[Q]&&b.pageWrap[Q]&&(b.pagePlace[he]=he,b.pageObjs[he].hasClass("fixed")?b.pageWrap[he]=b.pageWrap[Q].attr("page",he):b.pageWrap[he]=b.pageWrap[Q].css(_._pageSize.call(m,he,!0)).attr("page",he),b.pages[Q]&&(b.pages[he]=b.pages[Q].flip("options",{page:he,next:B||Re?he+1:he-1})),l&&(delete b.pages[Q],delete b.pagePlace[Q],delete b.pageZoom[Q],delete b.pageObjs[Q],delete b.pageWrap[Q]))};if(l>0)for(n=b.totalPages;n>=s;n--)ae(n);else for(n=s;n<=b.totalPages;n++)ae(n)},display:function(s){var l=this.data(),n=l.display;if(s===void 0)return n;if(e.inArray(s,P)==-1)throw de('"'+s+'" is not a value for display');switch(s){case"single":l.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),l.pageObjs[0]=e("
",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":l.pageObjs[0]&&(this.turn("stop").css({overflow:""}),l.pageObjs[0].remove(),delete l.pageObjs[0]),this.removeClass("shadow");break}if(l.display=s,n){var m=this.turn("size");_._movePages.call(this,1,0),this.turn("size",m.width,m.height).turn("update")}return this},direction:function(s){var l=this.data();if(s===void 0)return l.direction;if(s=s.toLowerCase(),e.inArray(s,$)==-1)throw de('"'+s+'" is not a value for direction');return s=="rtl"&&e(this).attr("dir","ltr").css({direction:"ltr"}),l.direction=s,l.done&&this.turn("size",e(this).width(),e(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var s,l,n=this.data();for(l in n.pages)if(Ae(l,n.pages)&&(s=n.pages[l].flip("corner")))return s;return!1},data:function(){return this.data()},disable:function(s){var l,n=this.data(),m=this.turn("view");n.disabled=s===void 0||s===!0;for(l in n.pages)Ae(l,n.pages)&&n.pages[l].flip("disable",n.disabled?!0:e.inArray(parseInt(l,10),m)==-1);return this},disabled:function(s){return s===void 0?this.data().disabled===!0:this.turn("disable",s)},size:function(s,l){if(s===void 0||l===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var n,m,b=this.data(),B=b.display=="double"?s/2:s;this.css({width:s,height:l}),b.pageObjs[0]&&b.pageObjs[0].css({width:B,height:l});for(n in b.pageWrap)Ae(n,b.pageWrap)&&(m=_._pageSize.call(this,n,!0),b.pageObjs[n].css({width:m.width,height:m.height}),b.pageWrap[n].css(m),b.pages[n]&&b.pages[n].css({width:m.width,height:m.height}));return this.turn("resize"),this},resize:function(){var s,l=this.data();for(l.pages[0]&&(l.pageWrap[0].css({left:-this.width()}),l.pages[0].flip("resize",!0)),s=1;s<=l.totalPages;s++)l.pages[s]&&l.pages[s].flip("resize",!0);_._updateShadow.call(this),l.opts.autoCenter&&this.turn("center")},_removeMv:function(s){var l,n=this.data();for(l=0;l0?n[0]:0,n[1]<=l.totalPages?n[1]:0]:[n[0]>0&&n[0]<=l.totalPages?n[0]:0]},stop:function(s,l){if(this.turn("animating")){var n,m,b,B=this.data();for(B.tpage&&(B.page=B.tpage,delete B.tpage),n=0;ns;n--)this.turn("removePage",n);return l.totalPages=s,_._fitPage.call(this,l.page),this}else return l.totalPages},_missing:function(s){var l=this.data();if(!(l.totalPages<1)){var n,m=this.turn("range",s),b=[];for(n=m[0];n<=m[1];n++)l.pageObjs[n]||b.push(n);b.length>0&&this.trigger("missing",[b])}},_fitPage:function(s){var l=this.data(),n=this.turn("view",s);if(_._missing.call(this,s),!!l.pageObjs[s]){l.page=s,this.turn("stop");for(var m=0;mB[1]?(l=B[1],n=ae[0]):B[0]&&sl?"r":"l"):m.pages[l].flip("turnPage",s>l?"l":"r"):m.direction=="ltr"?m.pages[l].flip("turnPage",he[s>l?1:0]):m.pages[l].flip("turnPage",he[s>l?0:1]))},page:function(s){var l=this.data();if(s===void 0)return l.page;if(!l.disabled&&!l.destroying){if(s=parseInt(s,10),s>0&&s<=l.totalPages)return s!=l.page&&(!l.done||e.inArray(s,this.turn("view"))!=-1?_._fitPage.call(this,s):_._turnPage.call(this,s)),this;throw de("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,_._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,_._view.call(this,this.data().page).shift()-1))},peel:function(s,l){var n=this.data(),m=this.turn("view");if(l=l===void 0?!0:l===!0,s===!1)this.turn("stop",null,l);else if(n.display=="single")n.pages[n.page].flip("peel",s,l);else{var b;n.direction=="ltr"?b=s.indexOf("l")!=-1?m[0]:m[1]:b=s.indexOf("l")!=-1?m[1]:m[0],n.pages[b]&&n.pages[b].flip("peel",s,l)}return this},_addMotionPage:function(){var s=e(this).data().f.opts,l=s.turn;l.data(),_._addMv.call(l,s.page)},_eventStart:function(s,l,n){var m=l.turn.data(),b=m.pageZoom[l.page];if(s.isDefaultPrevented()){_._updateShadow.call(l.turn);return}b&&b!=m.zoom&&(l.turn.trigger("zoomed",[l.page,l.turn.turn("view",l.page),b,m.zoom]),m.pageZoom[l.page]=m.zoom),m.display=="single"&&n&&(n.charAt(1)=="l"&&m.direction=="ltr"||n.charAt(1)=="r"&&m.direction=="rtl"?(l.next=l.nextl.page?l.next:l.page+1),_._addMotionPage.call(s.target),_._updateShadow.call(l.turn)},_eventEnd:function(s,l,n){var m=e(s.target);m.data().f;var b=l.turn,B=b.data();if(n){var ae=B.tpage||B.page;(ae==l.next||ae==l.page)&&(delete B.tpage,_._fitPage.call(b,ae||l.next,!0))}else _._removeMv.call(b,l.page),_._updateShadow.call(b),b.turn("update")},_eventPressed:function(s){var l=e(s.target).data().f,n=l.opts.turn,m=n.data();return m.pages,m.mouseAction=!0,n.turn("update"),l.time=new Date().getTime()},_eventReleased:function(s,l){var n,m=e(s.target),b=m.data().f,B=b.opts.turn,ae=B.data();ae.display=="single"?n=l.corner=="br"||l.corner=="tr"?l.xm.width()/2:n=l.x<0||l.x>m.width(),(new Date().getTime()-b.time<200||n)&&(s.preventDefault(),_._turnPage.call(B,b.opts.next)),ae.mouseAction=!1},_flip:function(s){s.stopPropagation();var l=e(s.target).data().f.opts;l.turn.trigger("turn",[l.next]),l.turn.data().opts.autoCenter&&l.turn.turn("center",l.next)},_touchStart:function(){var s=this.data();for(var l in s.pages)if(Ae(l,s.pages)&&L._eventStart.apply(s.pages[l],arguments)===!1)return!1},_touchMove:function(){var s=this.data();for(var l in s.pages)Ae(l,s.pages)&&L._eventMove.apply(s.pages[l],arguments)},_touchEnd:function(){var s=this.data();for(var l in s.pages)Ae(l,s.pages)&&L._eventEnd.apply(s.pages[l],arguments)},calculateZ:function(s){var l,n,m,b,B,ae=this,Q=this.data(),he=this.turn("view"),Re=he[0]||he[1],Ne=s.length-1,Ie={pageZ:{},partZ:{},pageV:{}},st=function(nt){var He=ae.turn("view",nt);He[0]&&(Ie.pageV[He[0]]=!0),He[1]&&(Ie.pageV[He[1]]=!0)};for(l=0;l<=Ne;l++)n=s[l],m=Q.pages[n].data().f.opts.next,b=Q.pagePlace[n],st(n),st(m),B=Q.pagePlace[m]==m?m:n,Ie.pageZ[B]=Q.totalPages-Math.abs(Re-B),Ie.partZ[b]=Q.totalPages*2-Ne+l;return Ie},update:function(){var s,l=this.data();if(this.turn("animating")&&l.pageMv[0]!==0){var n,m,b=this.turn("calculateZ",l.pageMv),B=this.turn("corner"),ae=this.turn("view"),Q=this.turn("view",l.tpage);for(s in l.pageWrap)Ae(s,l.pageWrap)&&(m=l.pageObjs[s].hasClass("fixed"),l.pageWrap[s].css({display:b.pageV[s]||m?"":"none",zIndex:(l.pageObjs[s].hasClass("hard")?b.partZ[s]:b.pageZ[s])||(m?-1:0)}),(n=l.pages[s])&&(n.flip("z",b.partZ[s]||null),b.pageV[s]&&n.flip("resize"),l.tpage?n.flip("hover",!1).flip("disable",e.inArray(parseInt(s,10),l.pageMv)==-1&&s!=Q[0]&&s!=Q[1]):n.flip("hover",B===!1).flip("disable",s!=ae[0]&&s!=ae[1])))}else for(s in l.pageWrap)if(Ae(s,l.pageWrap)){var he=_._setPageLoc.call(this,s);l.pages[s]&&l.pages[s].flip("disable",l.disabled||he!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,l,n,m=this.data(),b=this.width(),B=this.height(),ae=m.display=="single"?b:b/2;s=this.turn("view"),m.shadow||(m.shadow=e("
",{class:"shadow",css:D(0,0,0).css}).appendTo(this));for(var Q=0;Q=n||b.y>=m)return!1;var ae=L._cAllowed.call(this);switch(l.effect){case"hard":if(b.x>n-B)b.corner="r";else if(b.x=m-B)b.corner+="b";else return!1;if(b.x<=B)b.corner+="l";else if(b.x>=n-B)b.corner+="r";else return!1;break}return!b.corner||e.inArray(b.corner,ae)==-1?!1:b},_isIArea:function(s){var l=this.data().f.parent.offset();return s=T&&s.originalEvent?s.originalEvent.touches[0]:s,L._cornerActivated.call(this,{x:s.pageX-l.left,y:s.pageY-l.top})},_c:function(s,l){switch(l=l||0,s){case"tl":return ee(l,l);case"tr":return ee(this.width()-l,l);case"bl":return ee(l,this.height()-l);case"br":return ee(this.width()-l,this.height()-l);case"l":return ee(l,0);case"r":return ee(this.width()-l,0)}},_c2:function(s){switch(s){case"tl":return ee(this.width()*2,0);case"tr":return ee(-this.width(),0);case"bl":return ee(this.width()*2,this.height());case"br":return ee(-this.width(),this.height());case"l":return ee(this.width()*2,0);case"r":return ee(-this.width(),0)}},_foldingPage:function(){var s=this.data().f;if(s){var l=s.opts;if(l.turn)return s=l.turn.data(),s.display=="single"?l.next>1||l.page>1?s.pageObjs[0]:null:s.pageObjs[l.next]}},_backGradient:function(){var s=this.data().f,l=s.opts.turn.data(),n=l.opts.gradients&&(l.display=="single"||s.opts.page!=2&&s.opts.page!=l.totalPages-1);return n&&!s.bshadow&&(s.bshadow=e("
",D(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(s.parent)),n},type:function(){return this.data().f.effect},resize:function(s){var l=this.data().f,n=l.opts.turn.data(),m=this.width(),b=this.height();switch(l.effect){case"hard":s&&(l.wrapper.css({width:m,height:b}),l.fpage.css({width:m,height:b}),n.opts.gradients&&(l.ashadow.css({width:m,height:b}),l.bshadow.css({width:m,height:b})));break;case"sheet":if(s){var B=Math.round(Math.sqrt(Math.pow(m,2)+Math.pow(b,2)));l.wrapper.css({width:B,height:B}),l.fwrapper.css({width:B,height:B}).children(":first-child").css({width:m,height:b}),l.fpage.css({width:m,height:b}),n.opts.gradients&&l.ashadow.css({width:m,height:b}),L._backGradient.call(this)&&l.bshadow.css({width:m,height:b})}if(l.parent.is(":visible")){var ae=Pe(l.parent[0]);l.fwrapper.css({top:ae.top,left:ae.left}),ae=Pe(l.opts.turn[0]),l.fparent.css({top:-ae.top,left:-ae.left})}this.flip("z",l.opts["z-index"]);break}},_addPageWrapper:function(){var s=this.data().f,l=s.opts.turn.data(),n=this.parent();if(s.parent=n,!s.wrapper)switch(s.effect){case"hard":var m={};m[f+"transform-style"]="preserve-3d",m[f+"backface-visibility"]="hidden",s.wrapper=e("
",D(0,0,2)).css(m).appendTo(n).prepend(this),s.fpage=e("
",D(0,0,1)).css(m).appendTo(n),l.opts.gradients&&(s.ashadow=e("
",D(0,0,0)).hide().appendTo(n),s.bshadow=e("
",D(0,0,0)));break;case"sheet":if(this.width(),this.height(),s.fparent=s.opts.turn.data().fparent,!s.fparent){var b=e("
",{css:{"pointer-events":"none"}}).hide();b.data().flips=0,b.css(D(0,0,"auto","visible").css).appendTo(s.opts.turn),s.opts.turn.data().fparent=b,s.fparent=b}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),s.wrapper=e("
",D(0,0,this.css("z-index"))).appendTo(n).prepend(this),s.fwrapper=e("
",D(n.offset().top,n.offset().left)).hide().appendTo(s.fparent),s.fpage=e("
",D(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),l.opts.gradients&&(s.ashadow=e("
",D(0,0,1)).appendTo(s.fpage)),L.setData.call(this,s);break}L.resize.call(this,!0)},_fold:function(s){var l=this.data().f,n=l.opts.turn.data(),m=L._c.call(this,s.corner),b=this.width(),B=this.height();switch(l.effect){case"hard":s.corner=="l"?s.x=Math.min(Math.max(s.x,0),b*2):s.x=Math.max(Math.min(s.x,b),-b);var ae,Q,he,Re,Ne,Ie=n.totalPages,st=l.opts["z-index"]||Ie,nt={overflow:"visible"},He=m.x?(m.x-s.x)/b:s.x/b,G=He*90,ge=G<90;switch(s.corner){case"l":Re="0% 50%",Ne="100% 50%",ge?(ae=0,Q=l.opts.next-1>0,he=1):(ae="100%",Q=l.opts.page+1A&&(Ge.x=Ge.x+Math.abs(Ge.y*qe.y/qe.x),Ge.y=0,Math.round(Ge.x*Math.tan(y-ze))A){var we=y-ze,De=Ft-B/Math.sin(we);pt=ee(Math.round(De*Math.cos(we)),Math.round(De*Math.sin(we))),yt&&(pt.x=-pt.x),At&&(pt.y=-pt.y)}_e=Math.round(Ge.y/Math.tan(ze)+Ge.x);var je=b-_e,Ke=je*Math.cos(ze*2),ft=je*Math.sin(ze*2);if(mt=ee(Math.round(yt?je-Ke:_e+Ke),Math.round(At?ft:B-ft)),n.opts.gradients){et=je*Math.sin(ze);var Fe=L._c2.call(le,s.corner),$e=Math.sqrt(Math.pow(Fe.x-s.x,2)+Math.pow(Fe.y-s.y,2))/b;rn=Math.sin(A*($e>1?2-$e:$e)),Pt=Math.min($e,1),rt=et>100?(et-100)/et:0,Xe=ee(et*Math.sin(ze)/b*100,et*Math.cos(ze)/B*100),L._backGradient.call(le)&&(Ye=ee(et*1.2*Math.sin(ze)/b*100,et*1.2*Math.cos(ze)/B*100),yt||(Ye.x=100-Ye.x),At||(Ye.y=100-Ye.y))}return Ge.x=Math.round(Ge.x),Ge.y=Math.round(Ge.y),!0},It=function(qe,Je,ze,Y){var ue=["0","auto"],we=(b-Ft)*ze[0]/100,De=(B-Ft)*ze[1]/100,je={left:ue[Je[0]],top:ue[Je[1]],right:ue[Je[2]],bottom:ue[Je[3]]},Ke={},ft=Y!=90&&Y!=-90?yt?-1:1:0,Fe=ze[0]+"% "+ze[1]+"%";le.css(je).transform(ve(Y)+fe(qe.x+ft,qe.y,Rt),Fe),l.fpage.css(je).transform(ve(Y)+fe(qe.x+mt.x-pt.x-b*ze[0]/100,qe.y+mt.y-pt.y-B*ze[1]/100,Rt)+ve((180/Y-2)*Y),Fe),l.wrapper.transform(fe(-qe.x+we-ft,-qe.y+De,Rt)+ve(-Y),Fe),l.fwrapper.transform(fe(-qe.x+pt.x+we,-qe.y+pt.y+De,Rt)+ve(-Y),Fe),n.opts.gradients&&(ze[0]&&(Xe.x=100-Xe.x),ze[1]&&(Xe.y=100-Xe.y),Ke["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*rn+")",yn.css(Ke),Be(l.ashadow,ee(yt?100:0,At?0:100),ee(Xe.x,Xe.y),[[rt,"rgba(0,0,0,0)"],[(1-rt)*.8+rt,"rgba(0,0,0,"+.2*Pt+")"],[1,"rgba(255,255,255,"+.2*Pt+")"]],3),L._backGradient.call(le)&&Be(l.bshadow,ee(yt?0:100,At?0:100),ee(Ye.x,Ye.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*Pt+")"],[1,"rgba(0,0,0,0)"]],3))};switch(s.corner){case"l":break;case"r":break;case"tl":s.x=Math.max(s.x,1),wt(),It(Ge,[1,0,0,1],[100,0],Ee);break;case"tr":s.x=Math.min(s.x,b-1),wt(),It(ee(-Ge.x,Ge.y),[0,0,0,1],[0,0],-Ee);break;case"bl":s.x=Math.max(s.x,1),wt(),It(ee(Ge.x,-Ge.y),[1,1,0,0],[100,100],-Ee);break;case"br":s.x=Math.min(s.x,b-1),wt(),It(ee(-Ge.x,-Ge.y),[0,1,1,0],[0,100],Ee);break}break}l.point=s},_moveFoldingPage:function(s){var l=this.data().f;if(l){var n=l.opts.turn,m=n.data(),b=m.pagePlace;if(s){var B=l.opts.next;if(b[B]!=l.opts.page){l.folding&&L._moveFoldingPage.call(this,!1);var ae=L._foldingPage.call(this);ae.appendTo(l.fpage),b[B]=l.opts.page,l.folding=B}n.turn("update")}else if(l.folding){if(m.pages[l.folding]){var Q=m.pages[l.folding].data().f;m.pageObjs[l.folding].appendTo(Q.wrapper)}else m.pageWrap[l.folding]&&m.pageObjs[l.folding].appendTo(m.pageWrap[l.folding]);l.folding in b&&(b[l.folding]=l.folding),delete l.folding}}},_showFoldedPage:function(s,l){var n=L._foldingPage.call(this),m=this.data(),b=m.f,B=b.visible;if(n){if(!B||!b.point||b.point.corner!=s.corner){var ae=b.status=="hover"||b.status=="peel"||b.opts.turn.data().mouseAction?s.corner:null;if(B=!1,Te("start",this,[b.opts,ae])=="prevented")return!1}if(l){var Q=this,he=b.point&&b.point.corner==s.corner?b.point:L._c.call(this,s.corner,1);this.animatef({from:[he.x,he.y],to:[s.x,s.y],duration:500,frame:function(Re){s.x=Math.round(Re[0]),s.y=Math.round(Re[1]),L._fold.call(Q,s)}})}else L._fold.call(this,s),m.effect&&!m.effect.turning&&this.animatef(!1);if(!B)switch(b.effect){case"hard":b.visible=!0,L._moveFoldingPage.call(this,!0),b.fpage.show(),b.opts.shadows&&b.bshadow.show();break;case"sheet":b.visible=!0,b.fparent.show().data().flips++,L._moveFoldingPage.call(this,!0),b.fwrapper.show(),b.bshadow&&b.bshadow.show();break}return!0}return!1},hide:function(){var s=this.data().f,l=s.opts.turn.data(),n=L._foldingPage.call(this);switch(s.effect){case"hard":l.opts.gradients&&(s.bshadowLoc=0,s.bshadow.remove(),s.ashadow.hide()),s.wrapper.transform(""),s.fpage.hide();break;case"sheet":--s.fparent.data().flips===0&&s.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),s.wrapper.transform(""),s.fwrapper.hide(),s.bshadow&&s.bshadow.hide(),n.transform("");break}return s.visible=!1,this},hideFoldedPage:function(s){var l=this.data().f;if(l.point){var n=this,m=l.point,b=function(){l.point=null,l.status="",n.flip("hide"),n.trigger("end",[l.opts,!1])};if(s){var B=L._c.call(this,m.corner),ae=m.corner.substr(0,1)=="t",Q=ae?Math.min(0,m.y-B.y)/2:Math.max(0,m.y-B.y)/2,he=ee(m.x,m.y+Q),Re=ee(B.x,B.y-Q);this.animatef({from:0,to:1,frame:function(Ne){var Ie=ne(m,he,Re,B,Ne);m.x=Ie.x,m.y=Ie.y,L._fold.call(n,m)},complete:b,duration:800,hiding:!0})}else this.animatef(!1),b()}},turnPage:function(s){var l=this,n=this.data().f,m=n.opts.turn.data();s={corner:n.corner?n.corner.corner:s||L._cAllowed.call(this)[0]};var b=n.point||L._c.call(this,s.corner,n.opts.turn?m.opts.elevation:0),B=L._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(ae){var Q=ne(b,b,B,B,ae);s.x=Q.x,s.y=Q.y,L._showFoldedPage.call(l,s)},complete:function(){l.trigger("end",[n.opts,!0])},duration:m.opts.duration,turning:!0}),n.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(s){var l=this.data().f,n=l.opts.turn;if(!l.corner&&!l.disabled&&!this.flip("isTurning")&&l.opts.page==n.data().pagePlace[l.opts.page]){if(l.corner=L._isIArea.call(this,s),l.corner&&L._foldingPage.call(this))return this.trigger("pressed",[l.point]),L._showFoldedPage.call(this,l.corner),!1;l.corner=null}},_eventMove:function(s){var l=this.data().f;if(!l.disabled){if(s=T?s.originalEvent.touches:[s],l.corner){var n=l.parent.offset();l.corner.x=s[0].pageX-n.left,l.corner.y=s[0].pageY-n.top,L._showFoldedPage.call(this,l.corner)}else if(l.hover&&!this.data().effect&&this.is(":visible")){var m=L._isIArea.call(this,s[0]);if(m){if(l.effect=="sheet"&&m.corner.length==2||l.effect=="hard"){l.status="hover";var b=L._c.call(this,m.corner,l.opts.cornerSize/2);m.x=b.x,m.y=b.y,L._showFoldedPage.call(this,m,!0)}}else l.status=="hover"&&(l.status="",L.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,l=s.corner;!s.disabled&&l&&Te("released",this,[s.point||l])!="prevented"&&L.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return L.setData.call(this,{disabled:s}),this},hover:function(s){return L.setData.call(this,{hover:s}),this},peel:function(s,l){var n=this.data().f;if(s){if(e.inArray(s,C.all)==-1)throw de("Corner "+s+" is not permitted");if(e.inArray(s,L._cAllowed.call(this))!=-1){var m=L._c.call(this,s,n.opts.cornerSize/2);n.status="peel",L._showFoldedPage.call(this,{corner:s,x:m.x,y:m.y},l)}}else n.status="",L.hideFoldedPage.call(this,l);return this}};function Z(s,l,n){if(!n[0]||typeof n[0]=="object")return l.init.apply(s,n);if(l[n[0]])return l[n[0]].apply(s,Array.prototype.slice.call(n,1));throw de(n[0]+" is not a method or property")}function D(s,l,n,m){return{css:{position:"absolute",top:s,left:l,overflow:m||"hidden",zIndex:n||"auto"}}}function ne(s,l,n,m,b){var B=1-b,ae=B*B*B,Q=b*b*b;return ee(Math.round(ae*s.x+3*b*B*B*l.x+3*b*b*B*n.x+Q*m.x),Math.round(ae*s.y+3*b*B*B*l.y+3*b*b*B*n.y+Q*m.y))}function ye(s){return s/y*180}function ee(s,l){return{x:s,y:l}}function pe(){var s;if(s=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var l=parseFloat(s[1]);return l>534.3}else return!0}function fe(s,l,n){return i&&n?" translate3d("+s+"px,"+l+"px, 0px) ":" translate("+s+"px, "+l+"px) "}function ve(s){return" rotate("+s+"deg) "}function Ae(s,l){return Object.prototype.hasOwnProperty.call(l,s)}function be(){for(var s=["Moz","Webkit","Khtml","O","ms"],l=s.length,n="";l--;)s[l]+"Transform"in document.body.style&&(n="-"+s[l].toLowerCase()+"-");return n}function ke(){var s,l=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(s in n)if(l.style[s]!==void 0)return n[s]}function Be(s,l,n,m,b){var B,ae=[];if(f=="-webkit-"){for(B=0;B{ho({api:"goBack"})},o=Tn({currentGradeNum:0,page:1,rows:999,type:"COURSEWARE"}),f=Ue(()=>so.grades.map((D,ne)=>({...D,color:o.currentGradeNum===ne?"var(--van-primary-color)":"",className:o.currentGradeNum===ne?"fontBlod":""}))),d=(D,ne)=>{o.currentGradeNum=ne,P()},y=Ce(!1),A=Tn({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),T=async()=>{var ne;A.loading=!0;const D=await nu({...o,currentGradeNum:o.currentGradeNum?o.currentGradeNum:""});(D==null?void 0:D.code)===200&&Array.isArray((ne=D==null?void 0:D.data)==null?void 0:ne.rows)&&(A.list=D.data.rows.map(ye=>(ye.load=!1,ye.key=Date.now()+ye.id,ye))),A.loading=!1,y.value=!0},M=async()=>{var ne,ye,ee;A.loading=!0;const D=await ru({clientType:"STUDENT",userId:(ye=(ne=ss.user)==null?void 0:ne.data)==null?void 0:ye.id,page:o.page,rows:o.rows,currentGradeNum:o.currentGradeNum?o.currentGradeNum:""});(D==null?void 0:D.code)===200&&Array.isArray((ee=D==null?void 0:D.data)==null?void 0:ee.rows)&&(A.list=D.data.rows.map(pe=>(pe.name=`${pe.name}`,pe.load=!1,pe.favoriteFlag=!0,pe.key=Date.now()+pe.id,pe))),A.loading=!1},C=()=>{A.list=[],A.tab==="all"&&T(),A.tab==="favorite"&&M()},P=()=>{C()};Ot(()=>{C()});const $=async D=>{D.favoriteFlag?await iu({lessonCoursewareId:D.id}):(await ou({lessonCoursewareId:D.id}),C())};let q=null;const U=(D,ne=300)=>{q&&clearTimeout(q),q=setTimeout(D,ne)},re=async D=>{var ye;const ne=await au(D.id);(ne==null?void 0:ne.code)==200&&Array.isArray((ye=ne==null?void 0:ne.data)==null?void 0:ye.lessonList)&&(A.details=ne.data.lessonList||[],A.bookData=ne.data,console.log("🚀 ~ data.details:",A.details))},_=D=>{const ne=document.querySelector(`[data-id="${D}"]`);if(!ne)return;const ye=ne.getBoundingClientRect();A.book=ye},L=D=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{D()})})},Z=async D=>{await re(D),_(D.id),L(()=>{A.showBook=!0})};return()=>te("div",{class:lt.container},[te("div",{class:lt.head,style:{opacity:A.showBook?0:""}},[te("div",{class:lt.back,onClick:i},[te("img",{src:Mo},null)]),te(Ls,{class:lt.tabs,active:A.tab,"onUpdate:active":D=>A.tab=D,onChange:()=>P()},{default:()=>[te(yi,{title:"全部教材",name:"all"},null),te(yi,{name:"favorite"},{title:()=>te("div",{id:"courseware-2"},[vt("我的收藏")])})]}),te(_l,{show:e.value,"onUpdate:show":D=>e.value=D,class:lt.popover,actions:f.value,onSelect:d},{reference:()=>te(dn,Cn({class:lt.downBtn,round:!0,size:"small"},{id:"courseware-3"}),{default:()=>[so.grades[o.currentGradeNum].text," ",te("svg",{class:[lt.icon,e.value?lt.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[te("title",null,[vt("三角形")]),te("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[te("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[te("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[te("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[te("path",{d:"M64.8716471,8.41294119 L68.2489659,12.1655176 C68.4336954,12.3707726 68.4170562,12.6869176 68.2118012,12.8716471 C68.1199888,12.9542782 68.0008397,13 67.8773188,13 L61.1226812,13 C60.8465388,13 60.6226812,12.7761424 60.6226812,12.5 C60.6226812,12.3764791 60.668403,12.25733 60.7510341,12.1655176 L64.1283529,8.41294119 C64.3130824,8.20768618 64.6292274,8.19104698 64.8344824,8.37577649 C64.8475136,8.38750459 64.859919,8.39990996 64.8716471,8.41294119 Z",id:"三角形",transform:"translate(64.500000, 10.500000) rotate(-180.000000) translate(-64.500000, -10.500000) "},null)])])])])])]})})]),te("div",{class:lt.content},[te("div",{class:[lt.wrap,A.list.length<=0&&!A.loading?lt.emtpyWrap:""]},[A.list.map((D,ne)=>te("div",{class:[lt.wrapItem,A.bookData.id===D.id&&A.showBook?lt.wrapItemHide:""],key:D.key,onClick:()=>Z(D)},[te("div",{class:lt.item},[te(Sp,Cn({"data-id":D.id},{id:ne==0?"courseware-0":""},{class:[lt.cover,D.load?lt.loaded:""],objectFit:"cover",src:D.coverImg,onLoad:()=>{D.load=!0},onError:()=>{D.load=!0}}),null)]),te("div",{class:lt.name},[D.name]),te("div",{id:ne===0?"courseware-1":"",class:lt.favoriteBtn,onClick:ye=>{ye.stopPropagation(),D.favoriteFlag=!D.favoriteFlag,U(()=>$(D))}},[te(Mp,{isFavorite:D.favoriteFlag},null)])])),A.list.length<=0&&!A.loading&&te(as,{image:"list",description:"暂无数据"},null)])]),te(Ip,{show:A.showBook,bookData:A.bookData,rect:A.book,onClose:()=>{A.showBook=!1}},null),y.value?te(zp,null,null):null])}});export{so as BOOK_DATA,Vp as default};