index-c1a6b10e.js 251 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. import{r as Ce,w as tn,c as ja,d as ct,y as Ot,ax as Wt,ay as nn,f as Wa,a as ne,V as Wr,h as Mn,ae as Ha,F as Pt,m as _n,ah as $a,n as qa,t as Ln,a3 as Ua,z as Mr,az as pi,aA as Xa,a9 as Va,I as Ya,aB as Ga,k as Ka,D as rn,A as vt,aC as Za,e as Ue,aD as Ja,aE as Qa,aF as ee,aG as es,aH as ts,aI as mn,aJ as uo,aK as Kt,T as dn,aL as Cn,v as co,g as Vn,aM as ns,aN as rs,aO as is,x as En,af as fo,C as hn,q as ho,ap as os,E as as,a5 as po,a0 as ss,M as ls,Q as us}from"./index-513d9339.js";import{q as cs}from"./base-aba1ba3e.js";import{g as Yt,s as Ze}from"./index-ca594801.js";import{w as vi,q as fs,o as gt,a as ut,i as Er,b as Hr,S as Yn,c as Nt,g as tr,r as nr,d as ds,e as hs,f as $r,h as ps,M as qr,t as yn,j as Or,k as vs,U as gi,l as mi,m as $n,n as gs,p as ms,s as ys,u as ws,v as bs,x as xs,y as As,z as Ur,A as Ss,B as vo,C as Pr,D as Cs,E as Qe,F as Ve,G as rr,H as Ts,I as Zt,J as Gt,K as Bt,L as kn,N as Xr,O as qn,P as Ms,Q as Es,R as Os,T as Ps,V as Gn,W as ks,X as yi,Y as pr,Z as go,_ as Rs,$ as wi,a0 as mo,a1 as Ds,a2 as Ns,a3 as bn,a4 as Bn,a5 as yo,a6 as _s,a7 as wo,a8 as Ls,a9 as Bs,aa as Fs}from"./fade-in-scale-up.cssr-8bbe0337.js";import{T as Is,a as vr}from"./index-915d27aa.js";import"./use-tab-status-a03c586e.js";import"./index-a16a08f5.js";const zs=(e,i)=>{const o=Ce(e());return tn(e,f=>{f!==o.value&&(o.value=f)}),tn(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 Vr(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 bo(e){if(typeof ShadowRoot>"u")return!1;var i=Tt(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}var gn=Math.round;function kr(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function js(){return!/^((?!chrome|android).)*safari/i.test(kr())}function Kn(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&&gn(f.width)/e.offsetWidth||1,y=e.offsetHeight>0&&gn(f.height)/e.offsetHeight||1);var x=Vr(e)?Tt(e):window,T=x.visualViewport,M=!js()&&o,C=(f.left+(M&&T?T.offsetLeft:0))/d,P=(f.top+(M&&T?T.offsetTop:0))/y,$=f.width/d,X=f.height/y;return{width:$,height:X,top:P,right:C+$,bottom:P+X,left:C,x:C,y:P}}function xo(e){var i=Tt(e),o=i.pageXOffset,f=i.pageYOffset;return{scrollLeft:o,scrollTop:f}}function Ws(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hs(e){return e===Tt(e)||!Ct(e)?xo(e):Ws(e)}function _t(e){return e?(e.nodeName||"").toLowerCase():null}function ir(e){return((Vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function $s(e){return Kn(ir(e)).left+xo(e).scrollLeft}function Lt(e){return Tt(e).getComputedStyle(e)}function Yr(e){var i=Lt(e),o=i.overflow,f=i.overflowX,d=i.overflowY;return/auto|scroll|overlay|hidden/.test(o+d+f)}function qs(e){var i=e.getBoundingClientRect(),o=gn(i.width)/e.offsetWidth||1,f=gn(i.height)/e.offsetHeight||1;return o!==1||f!==1}function Us(e,i,o){o===void 0&&(o=!1);var f=Ct(i),d=Ct(i)&&qs(i),y=ir(i),x=Kn(e,d,o),T={scrollLeft:0,scrollTop:0},M={x:0,y:0};return(f||!f&&!o)&&((_t(i)!=="body"||Yr(y))&&(T=Hs(i)),Ct(i)?(M=Kn(i,!0),M.x+=i.clientLeft,M.y+=i.clientTop):y&&(M.x=$s(y))),{x:x.left+T.scrollLeft-M.x,y:x.top+T.scrollTop-M.y,width:x.width,height:x.height}}function Xs(e){var i=Kn(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 Gr(e){return _t(e)==="html"?e:e.assignedSlot||e.parentNode||(bo(e)?e.host:null)||ir(e)}function Ao(e){return["html","body","#document"].indexOf(_t(e))>=0?e.ownerDocument.body:Ct(e)&&Yr(e)?e:Ao(Gr(e))}function Un(e,i){var o;i===void 0&&(i=[]);var f=Ao(e),d=f===((o=e.ownerDocument)==null?void 0:o.body),y=Tt(f),x=d?[y].concat(y.visualViewport||[],Yr(f)?f:[]):f,T=i.concat(x);return d?T:T.concat(Un(Gr(x)))}function Vs(e){return["table","td","th"].indexOf(_t(e))>=0}function bi(e){return!Ct(e)||Lt(e).position==="fixed"?null:e.offsetParent}function Ys(e){var i=/firefox/i.test(kr()),o=/Trident/i.test(kr());if(o&&Ct(e)){var f=Lt(e);if(f.position==="fixed")return null}var d=Gr(e);for(bo(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 So(e){for(var i=Tt(e),o=bi(e);o&&Vs(o)&&Lt(o).position==="static";)o=bi(o);return o&&(_t(o)==="html"||_t(o)==="body"&&Lt(o).position==="static")?i:o||Ys(e)||i}var pn="top",Zn="bottom",On="right",Jt="left",Co="auto",Gs=[pn,Zn,On,Jt],To="start",Jn="end",Ks=[].concat(Gs,[Co]).reduce(function(e,i){return e.concat([i,i+"-"+To,i+"-"+Jn])},[]),Zs="beforeRead",Js="read",Qs="afterRead",el="beforeMain",tl="main",nl="afterMain",rl="beforeWrite",il="write",ol="afterWrite",Rr=[Zs,Js,Qs,el,tl,nl,rl,il,ol];function al(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 x=[].concat(y.requires||[],y.requiresIfExists||[]);x.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 sl(e){var i=al(e);return Rr.reduce(function(o,f){return o.concat(i.filter(function(d){return d.phase===f}))},[])}function ll(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<i;f++)o[f-1]=arguments[f];return[].concat(o).reduce(function(d,y){return d.replace(/%s/,y)},e)}var Ut='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ul='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',xi=["name","enabled","phase","fn","effect","requires","options"];function cl(e){e.forEach(function(i){[].concat(Object.keys(i),xi).filter(function(o,f,d){return d.indexOf(o)===f}).forEach(function(o){switch(o){case"name":typeof i.name!="string"&&console.error(zt(Ut,String(i.name),'"name"','"string"','"'+String(i.name)+'"'));break;case"enabled":typeof i.enabled!="boolean"&&console.error(zt(Ut,i.name,'"enabled"','"boolean"','"'+String(i.enabled)+'"'));break;case"phase":Rr.indexOf(i.phase)<0&&console.error(zt(Ut,i.name,'"phase"',"either "+Rr.join(", "),'"'+String(i.phase)+'"'));break;case"fn":typeof i.fn!="function"&&console.error(zt(Ut,i.name,'"fn"','"function"','"'+String(i.fn)+'"'));break;case"effect":i.effect!=null&&typeof i.effect!="function"&&console.error(zt(Ut,i.name,'"effect"','"function"','"'+String(i.fn)+'"'));break;case"requires":i.requires!=null&&!Array.isArray(i.requires)&&console.error(zt(Ut,i.name,'"requires"','"array"','"'+String(i.requires)+'"'));break;case"requiresIfExists":Array.isArray(i.requiresIfExists)||console.error(zt(Ut,i.name,'"requiresIfExists"','"array"','"'+String(i.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+i.name+'" modifier, valid properties are '+xi.map(function(f){return'"'+f+'"'}).join(", ")+'; but "'+o+'" was provided.')}i.requires&&i.requires.forEach(function(f){e.find(function(d){return d.name===f})==null&&console.error(zt(ul,String(i.name),f,f))})})})}function fl(e,i){var o=new Set;return e.filter(function(f){var d=i(f);if(!o.has(d))return o.add(d),!0})}function or(e){return e.split("-")[0]}function dl(e){var i=e.reduce(function(o,f){var d=o[f.name];return o[f.name]=d?Object.assign({},d,f,{options:Object.assign({},d.options,f.options),data:Object.assign({},d.data,f.data)}):f,o},{});return Object.keys(i).map(function(o){return i[o]})}function Mo(e){return e.split("-")[1]}function hl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pl(e){var i=e.reference,o=e.element,f=e.placement,d=f?or(f):null,y=f?Mo(f):null,x=i.x+i.width/2-o.width/2,T=i.y+i.height/2-o.height/2,M;switch(d){case pn:M={x,y:i.y-o.height};break;case Zn:M={x,y:i.y+i.height};break;case On:M={x:i.x+i.width,y:T};break;case Jt:M={x:i.x-o.width,y:T};break;default:M={x:i.x,y:i.y}}var C=d?hl(d):null;if(C!=null){var P=C==="y"?"height":"width";switch(y){case To:M[C]=M[C]-(i[P]/2-o[P]/2);break;case Jn:M[C]=M[C]+(i[P]/2-o[P]/2);break}}return M}var Ai="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",vl="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Si={placement:"bottom",modifiers:[],strategy:"absolute"};function Ci(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return!i.some(function(f){return!(f&&typeof f.getBoundingClientRect=="function")})}function gl(e){e===void 0&&(e={});var i=e,o=i.defaultModifiers,f=o===void 0?[]:o,d=i.defaultOptions,y=d===void 0?Si:d;return function(T,M,C){C===void 0&&(C=y);var P={placement:"bottom",orderedModifiers:[],options:Object.assign({},Si,y),modifiersData:{},elements:{reference:T,popper:M},attributes:{},styles:{}},$=[],X=!1,q={state:P,setOptions:function(Q){var K=typeof Q=="function"?Q(P.options):Q;N(),P.options=Object.assign({},y,P.options,K),P.scrollParents={reference:Vr(T)?Un(T):T.contextElement?Un(T.contextElement):[],popper:Un(M)};var j=sl(dl([].concat(f,P.options.modifiers)));P.orderedModifiers=j.filter(function(Pe){return Pe.enabled});{var he=fl([].concat(j,P.options.modifiers),function(Pe){var Be=Pe.name;return Be});if(cl(he),or(P.options.placement)===Co){var G=P.orderedModifiers.find(function(Pe){var Be=Pe.name;return Be==="flip"});G||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var le=Lt(M),ue=le.marginTop,ge=le.marginRight,Ae=le.marginBottom,be=le.marginLeft;[ue,ge,Ae,be].some(function(Pe){return parseFloat(Pe)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return re(),q.update()},forceUpdate:function(){if(!X){var Q=P.elements,K=Q.reference,j=Q.popper;if(!Ci(K,j)){console.error(Ai);return}P.rects={reference:Us(K,So(j),P.options.strategy==="fixed"),popper:Xs(j)},P.reset=!1,P.placement=P.options.placement,P.orderedModifiers.forEach(function(Pe){return P.modifiersData[Pe.name]=Object.assign({},Pe.data)});for(var he=0,G=0;G<P.orderedModifiers.length;G++){if(he+=1,he>100){console.error(vl);break}if(P.reset===!0){P.reset=!1,G=-1;continue}var le=P.orderedModifiers[G],ue=le.fn,ge=le.options,Ae=ge===void 0?{}:ge,be=le.name;typeof ue=="function"&&(P=ue({state:P,options:Ae,name:be,instance:q})||P)}}},update:ll(function(){return new Promise(function(_){q.forceUpdate(),_(P)})}),destroy:function(){N(),X=!0}};if(!Ci(T,M))return console.error(Ai),q;q.setOptions(C).then(function(_){!X&&C.onFirstUpdate&&C.onFirstUpdate(_)});function re(){P.orderedModifiers.forEach(function(_){var Q=_.name,K=_.options,j=K===void 0?{}:K,he=_.effect;if(typeof he=="function"){var G=he({state:P,name:Q,instance:q,options:j}),le=function(){};$.push(G||le)}})}function N(){$.forEach(function(_){return _()}),$=[]}return q}}var Fn={passive:!0};function ml(e){var i=e.state,o=e.instance,f=e.options,d=f.scroll,y=d===void 0?!0:d,x=f.resize,T=x===void 0?!0:x,M=Tt(i.elements.popper),C=[].concat(i.scrollParents.reference,i.scrollParents.popper);return y&&C.forEach(function(P){P.addEventListener("scroll",o.update,Fn)}),T&&M.addEventListener("resize",o.update,Fn),function(){y&&C.forEach(function(P){P.removeEventListener("scroll",o.update,Fn)}),T&&M.removeEventListener("resize",o.update,Fn)}}var yl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ml,data:{}};function wl(e){var i=e.state,o=e.name;i.modifiersData[o]=pl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var bl={name:"popperOffsets",enabled:!0,phase:"read",fn:wl,data:{}},xl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Al(e){var i=e.x,o=e.y,f=window,d=f.devicePixelRatio||1;return{x:gn(i*d)/d||0,y:gn(o*d)/d||0}}function Ti(e){var i,o=e.popper,f=e.popperRect,d=e.placement,y=e.variation,x=e.offsets,T=e.position,M=e.gpuAcceleration,C=e.adaptive,P=e.roundOffsets,$=e.isFixed,X=x.x,q=X===void 0?0:X,re=x.y,N=re===void 0?0:re,_=typeof P=="function"?P({x:q,y:N}):{x:q,y:N};q=_.x,N=_.y;var Q=x.hasOwnProperty("x"),K=x.hasOwnProperty("y"),j=Jt,he=pn,G=window;if(C){var le=So(o),ue="clientHeight",ge="clientWidth";if(le===Tt(o)&&(le=ir(o),Lt(le).position!=="static"&&T==="absolute"&&(ue="scrollHeight",ge="scrollWidth")),le=le,d===pn||(d===Jt||d===On)&&y===Jn){he=Zn;var Ae=$&&le===G&&G.visualViewport?G.visualViewport.height:le[ue];N-=Ae-f.height,N*=M?1:-1}if(d===Jt||(d===pn||d===Zn)&&y===Jn){j=On;var be=$&&le===G&&G.visualViewport?G.visualViewport.width:le[ge];q-=be-f.width,q*=M?1:-1}}var Pe=Object.assign({position:T},C&&xl),Be=P===!0?Al({x:q,y:N}):{x:q,y:N};if(q=Be.x,N=Be.y,M){var Te;return Object.assign({},Pe,(Te={},Te[he]=K?"0":"",Te[j]=Q?"0":"",Te.transform=(G.devicePixelRatio||1)<=1?"translate("+q+"px, "+N+"px)":"translate3d("+q+"px, "+N+"px, 0)",Te))}return Object.assign({},Pe,(i={},i[he]=K?N+"px":"",i[j]=Q?q+"px":"",i.transform="",i))}function Sl(e){var i=e.state,o=e.options,f=o.gpuAcceleration,d=f===void 0?!0:f,y=o.adaptive,x=y===void 0?!0:y,T=o.roundOffsets,M=T===void 0?!0:T;{var C=Lt(i.elements.popper).transitionProperty||"";x&&["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".',`
  2. `,'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.",`
  3. `,"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:or(i.placement),variation:Mo(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,Ti(Object.assign({},P,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:x,roundOffsets:M})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Ti(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 Cl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sl,data:{}};function Tl(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(x){var T=d[x];T===!1?y.removeAttribute(x):y.setAttribute(x,T===!0?"":T)}))})}function Ml(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]||{},x=Object.keys(i.styles.hasOwnProperty(f)?i.styles[f]:o[f]),T=x.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 El={name:"applyStyles",enabled:!0,phase:"write",fn:Tl,effect:Ml,requires:["computeStyles"]},Ol=[yl,bl,Cl,El],Pl=gl({defaultModifiers:Ol});function kl(e,i,o){var f=or(e),d=[Jt,pn].indexOf(f)>=0?-1:1,y=typeof o=="function"?o(Object.assign({},i,{placement:e})):o,x=y[0],T=y[1];return x=x||0,T=(T||0)*d,[Jt,On].indexOf(f)>=0?{x:T,y:x}:{x,y:T}}function Rl(e){var i=e.state,o=e.options,f=e.name,d=o.offset,y=d===void 0?[0,0]:d,x=Ks.reduce(function(P,$){return P[$]=kl($,i.rects,y),P},{}),T=x[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]=x}var Dl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rl};const[Nl,Xt]=ja("popover"),_l=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Ll={show:Boolean,theme:_n("light"),overlay:Boolean,actions:$a(),actionsDirection:_n("vertical"),trigger:_n("click"),duration:qa,showArrow:Ln,placement:_n("bottom"),iconPrefix:String,overlayClass:Ua,overlayStyle:Object,closeOnClickAction:Ln,closeOnClickOverlay:Ln,closeOnClickOutside:Ln,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Bl=ct({name:Nl,props:Ll,emits:["select","touchstart","update:show"],setup(e,{emit:i,slots:o,attrs:f}){let d;const y=Ce(),x=Ce(),T=Ce(),M=zs(()=>e.show,K=>i("update:show",K)),C=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Va({},Dl,{options:{offset:e.offset}})]}),P=()=>x.value&&T.value?Pl(x.value,T.value.popupRef.value,C()):null,$=()=>{Mr(()=>{M.value&&(d?d.setOptions(C()):(d=P(),pi&&(window.addEventListener("animationend",$),window.addEventListener("transitionend",$))))})},X=K=>{M.value=K},q=()=>{e.trigger==="click"&&(M.value=!M.value)},re=(K,j)=>{K.disabled||(i("select",K,j),e.closeOnClickAction&&(M.value=!1))},N=()=>{M.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(M.value=!1)},_=(K,j)=>o.action?o.action({action:K,index:j}):[K.icon&&ne(Ya,{name:K.icon,classPrefix:e.iconPrefix,class:Xt("action-icon")},null),ne("div",{class:[Xt("action-text"),{[Ga]:e.actionsDirection==="vertical"}]},[K.text])],Q=(K,j)=>{const{icon:he,color:G,disabled:le,className:ue}=K;return ne("div",{role:"menuitem",class:[Xt("action",{disabled:le,"with-icon":he}),{[Xa]:e.actionsDirection==="horizontal"},ue],style:{color:G},tabindex:le?void 0:0,"aria-disabled":le||void 0,onClick:()=>re(K,j)},[_(K,j)])};return Ot(()=>{$(),Wt(()=>{var K;y.value=(K=T.value)==null?void 0:K.popupRef.value})}),nn(()=>{d&&(pi&&(window.removeEventListener("animationend",$),window.removeEventListener("transitionend",$)),d.destroy(),d=null)}),tn(()=>[M.value,e.offset,e.placement],$),Wa([x,y],N,{eventName:"touchstart"}),()=>{var K;return ne(Pt,null,[ne("span",{ref:x,class:Xt("wrapper"),onClick:q},[(K=o.reference)==null?void 0:K.call(o)]),ne(Wr,Mn({ref:T,show:M.value,class:Xt([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":X},f,Ha(e,_l)),{default:()=>[e.showArrow&&ne("div",{class:Xt("arrow")},null),ne("div",{role:"menu",class:Xt("content",e.actionsDirection)},[o.default?o.default():e.actions.map(Q)])]})])}}});const Fl=Ka(Bl),Il="_container_jrmsw_1",zl="_head_jrmsw_10",jl="_back_jrmsw_18",Wl="_tabs_jrmsw_21",Hl="_downBtn_jrmsw_37",$l="_icon_jrmsw_61",ql="_iconUp_jrmsw_67",Ul="_popover_jrmsw_72",Xl="_content_jrmsw_91",Vl="_wrap_jrmsw_97",Yl="_emtpyWrap_jrmsw_103",Gl="_wrapItem_jrmsw_114",Kl="_item_jrmsw_124",Zl="_name_jrmsw_155",Jl="_favoriteBtn_jrmsw_162",Ql="_containerImg_jrmsw_168",eu="_cover_jrmsw_194",tu="_loaded_jrmsw_224",nu="_book_jrmsw_227",ru="_bookWrap_jrmsw_241",iu="_show_jrmsw_249",lt={container:Il,head:zl,back:jl,tabs:Wl,downBtn:Hl,icon:$l,iconUp:ql,popover:Ul,content:Xl,wrap:Vl,emtpyWrap:Yl,wrapItem:Gl,item:Kl,name:Zl,favoriteBtn:Jl,containerImg:Ql,cover:eu,loaded:tu,book:nu,bookWrap:ru,show:iu},Eo=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,ou=e=>rn.post("/edu-app/lessonCourseware/page",{data:e}),au=e=>rn.post("/edu-app/lessonCoursewareFavorite/page",{data:e}),su=e=>rn.post("/edu-app/classLessonCourseware/page ",{data:e}),lu=e=>rn.post("/edu-app/lessonCoursewareFavorite/save",{data:e}),uu=e=>rn.post("/edu-app/lessonCoursewareFavorite/remove",{data:e}),cu=e=>rn.get(`/edu-app/lessonCourseware/detail/${e}`),fu=e=>rn.get(`/edu-app/classLessonCourseware/detail/${e}`);function Qn(e){return e.composedPath()[0]||null}function du(e=8){return Math.random().toString(16).slice(2,2+e)}function hu(e,i=[],o){const f={};return i.forEach(d=>{f[d]=e[d]}),Object.assign(f,o)}function Dr(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)){Dr(f,i,o);return}if(f.type===Pt){if(f.children===null)return;Array.isArray(f.children)&&Dr(f.children,i,o)}else f.type!==Za&&o.push(f)}}),o}function Mi(e,i="default",o=void 0){const f=e[i];if(!f)return vi("getFirstSlotVNode",`slot[${i}] is empty`),null;const d=Dr(f(o));return d.length===1?d[0]:(vi("getFirstSlotVNode",`slot[${i}] should have exactly one child`),null)}const Ei=ct({render(){var e,i;return(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e)}}),pu=/^(\d|\.)+$/,Oi=/(\d|\.)+/;function gr(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(pu.test(e)){const d=(Number(e)+o)*i;return f?d===0?"0":`${d}px`:`${d}`}else{const d=Oi.exec(e);return d?e.replace(Oi,String((Number(d[0])+o)*i)):e}return e}function vu(e,i){if(e===void 0)return!1;if(i){const{context:{ids:o}}=i;return o.has(e)}return fs(e)!==null}let mr;function gu(){return mr===void 0&&(mr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),mr}const mu=typeof document<"u"&&typeof window<"u";function yu(e,i){return Ue(()=>{for(const o of i)if(e[o]!==void 0)return e[o];return e[i[i.length-1]]})}const wu=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function bu(){return wu}const un="@@mmoContext",xu={mounted(e,{value:i}){e[un]={handler:void 0},typeof i=="function"&&(e[un].handler=i,gt("mousemoveoutside",e,i))},updated(e,{value:i}){const o=e[un];typeof i=="function"?o.handler?o.handler!==i&&(ut("mousemoveoutside",e,o.handler),o.handler=i,gt("mousemoveoutside",e,i)):(e[un].handler=i,gt("mousemoveoutside",e,i)):o.handler&&(ut("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:i}=e[un];i&&ut("mousemoveoutside",e,i),e[un].handler=void 0}},Au=xu,cn="@@coContext",Su={mounted(e,{value:i,modifiers:o}){e[cn]={handler:void 0},typeof i=="function"&&(e[cn].handler=i,gt("clickoutside",e,i,{capture:o.capture}))},updated(e,{value:i,modifiers:o}){const f=e[cn];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[cn].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[cn];o&&ut("clickoutside",e,o,{capture:i.capture}),e[cn].handler=void 0}},Pi=Su;function ki(e,i){console.error(`[vueuc/${e}]: ${i}`)}function Ri(e){return typeof e=="string"?document.querySelector(e):e()}var Qt=[],Cu=function(){return Qt.some(function(e){return e.activeTargets.length>0})},Tu=function(){return Qt.some(function(e){return e.skippedTargets.length>0})},Di="ResizeObserver loop completed with undelivered notifications.",Mu=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Di}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Di),window.dispatchEvent(e)},Pn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pn||(Pn={}));var en=function(e){return Object.freeze(e)},Eu=function(){function e(i,o){this.inlineSize=i,this.blockSize=o,en(this)}return e}(),Oo=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,en(this)}return e.prototype.toJSON=function(){var i=this,o=i.x,f=i.y,d=i.top,y=i.right,x=i.bottom,T=i.left,M=i.width,C=i.height;return{x:o,y:f,top:d,right:y,bottom:x,left:T,width:M,height:C}},e.fromRect=function(i){return new e(i.x,i.y,i.width,i.height)},e}(),Kr=function(e){return e instanceof SVGElement&&"getBBox"in e},Po=function(e){if(Kr(e)){var i=e.getBBox(),o=i.width,f=i.height;return!o&&!f}var d=e,y=d.offsetWidth,x=d.offsetHeight;return!(y||x||e.getClientRects().length)},Ni=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)},Ou=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},Tn=typeof window<"u"?window:{},In=new WeakMap,_i=/auto|scroll/,Pu=/^tb|vertical/,ku=/msie|trident/i.test(Tn.navigator&&Tn.navigator.userAgent),Et=function(e){return parseFloat(e||"0")},vn=function(e,i,o){return e===void 0&&(e=0),i===void 0&&(i=0),o===void 0&&(o=!1),new Eu((o?i:e)||0,(o?e:i)||0)},Li=en({devicePixelContentBoxSize:vn(),borderBoxSize:vn(),contentBoxSize:vn(),contentRect:new Oo(0,0,0,0)}),ko=function(e,i){if(i===void 0&&(i=!1),In.has(e)&&!i)return In.get(e);if(Po(e))return In.set(e,Li),Li;var o=getComputedStyle(e),f=Kr(e)&&e.ownerSVGElement&&e.getBBox(),d=!ku&&o.boxSizing==="border-box",y=Pu.test(o.writingMode||""),x=!f&&_i.test(o.overflowY||""),T=!f&&_i.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),X=f?0:Et(o.borderTopWidth),q=f?0:Et(o.borderRightWidth),re=f?0:Et(o.borderBottomWidth),N=f?0:Et(o.borderLeftWidth),_=$+C,Q=M+P,K=N+q,j=X+re,he=T?e.offsetHeight-j-e.clientHeight:0,G=x?e.offsetWidth-K-e.clientWidth:0,le=d?_+K:0,ue=d?Q+j:0,ge=f?f.width:Et(o.width)-le-G,Ae=f?f.height:Et(o.height)-ue-he,be=ge+_+G+K,Pe=Ae+Q+he+j,Be=en({devicePixelContentBoxSize:vn(Math.round(ge*devicePixelRatio),Math.round(Ae*devicePixelRatio),y),borderBoxSize:vn(be,Pe,y),contentBoxSize:vn(ge,Ae,y),contentRect:new Oo($,M,ge,Ae)});return In.set(e,Be),Be},Ro=function(e,i,o){var f=ko(e,o),d=f.borderBoxSize,y=f.contentBoxSize,x=f.devicePixelContentBoxSize;switch(i){case Pn.DEVICE_PIXEL_CONTENT_BOX:return x;case Pn.BORDER_BOX:return d;default:return y}},Ru=function(){function e(i){var o=ko(i);this.target=i,this.contentRect=o.contentRect,this.borderBoxSize=en([o.borderBoxSize]),this.contentBoxSize=en([o.contentBoxSize]),this.devicePixelContentBoxSize=en([o.devicePixelContentBoxSize])}return e}(),Do=function(e){if(Po(e))return 1/0;for(var i=0,o=e.parentNode;o;)i+=1,o=o.parentNode;return i},Du=function(){var e=1/0,i=[];Qt.forEach(function(x){if(x.activeTargets.length!==0){var T=[];x.activeTargets.forEach(function(C){var P=new Ru(C.target),$=Do(C.target);T.push(P),C.lastReportedSize=Ro(C.target,C.observedBox),$<e&&(e=$)}),i.push(function(){x.callback.call(x.observer,T,x.observer)}),x.activeTargets.splice(0,x.activeTargets.length)}});for(var o=0,f=i;o<f.length;o++){var d=f[o];d()}return e},Bi=function(e){Qt.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(d){d.isActive()&&(Do(d.target)>e?o.activeTargets.push(d):o.skippedTargets.push(d))})})},Nu=function(){var e=0;for(Bi(e);Cu();)e=Du(),Bi(e);return Tu()&&Mu(),e>0},yr,No=[],_u=function(){return No.splice(0).forEach(function(e){return e()})},Lu=function(e){if(!yr){var i=0,o=document.createTextNode(""),f={characterData:!0};new MutationObserver(function(){return _u()}).observe(o,f),yr=function(){o.textContent="".concat(i?i--:i++)}}No.push(e),yr()},Bu=function(e){Lu(function(){requestAnimationFrame(e)})},Xn=0,Fu=function(){return!!Xn},Iu=250,zu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Fi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ii=function(e){return e===void 0&&(e=0),Date.now()+e},wr=!1,ju=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=Iu),!wr){wr=!0;var f=Ii(i);Bu(function(){var d=!1;try{d=Nu()}finally{if(wr=!1,i=f-Ii(),!Fu())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,zu)};document.body?o():Tn.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Fi.forEach(function(o){return Tn.addEventListener(o,i.listener,!0)}))},e.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Fi.forEach(function(o){return Tn.removeEventListener(o,i.listener,!0)}),this.stopped=!0)},e}(),Nr=new ju,zi=function(e){!Xn&&e>0&&Nr.start(),Xn+=e,!Xn&&Nr.stop()},Wu=function(e){return!Kr(e)&&!Ou(e)&&getComputedStyle(e).display==="inline"},Hu=function(){function e(i,o){this.target=i,this.observedBox=o||Pn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var i=Ro(this.target,this.observedBox,!0);return Wu(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},e}(),$u=function(){function e(i,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=o}return e}(),zn=new WeakMap,ji=function(e,i){for(var o=0;o<e.length;o+=1)if(e[o].target===i)return o;return-1},jn=function(){function e(){}return e.connect=function(i,o){var f=new $u(i,o);zn.set(i,f)},e.observe=function(i,o,f){var d=zn.get(i),y=d.observationTargets.length===0;ji(d.observationTargets,o)<0&&(y&&Qt.push(d),d.observationTargets.push(new Hu(o,f&&f.box)),zi(1),Nr.schedule())},e.unobserve=function(i,o){var f=zn.get(i),d=ji(f.observationTargets,o),y=f.observationTargets.length===1;d>=0&&(y&&Qt.splice(Qt.indexOf(f),1),f.observationTargets.splice(d,1),zi(-1))},e.disconnect=function(i){var o=this,f=zn.get(i);f.observationTargets.slice().forEach(function(d){return o.unobserve(i,d.target)}),f.activeTargets.splice(0,f.activeTargets.length)},e}(),qu=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.");jn.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(!Ni(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");jn.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(!Ni(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");jn.unobserve(this,i)},e.prototype.disconnect=function(){jn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Uu{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||qu)(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 Wi=new Uu,Hi=ct({name:"ResizeObserver",props:{onResize:Function},setup(e){let i=!1;const o=Ja().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&&(Wi.registerHandler(d.nextElementSibling,f),i=!0)}),nn(()=>{i&&Wi.unregisterHandler(o.$el.nextElementSibling)})},render(){return Qa(this.$slots,"default")}});function _o(e){return e instanceof HTMLElement}function Lo(e){for(let i=0;i<e.childNodes.length;i++){const o=e.childNodes[i];if(_o(o)&&(Fo(o)||Lo(o)))return!0}return!1}function Bo(e){for(let i=e.childNodes.length-1;i>=0;i--){const o=e.childNodes[i];if(_o(o)&&(Fo(o)||Bo(o)))return!0}return!1}function Fo(e){if(!Xu(e))return!1;try{e.focus({preventScroll:!0})}catch(i){}return document.activeElement===e}function Xu(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 xn=[];const Vu=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=du(),o=Ce(null),f=Ce(null);let d=!1,y=!1;const x=typeof document>"u"?null:document.activeElement;function T(){return xn[xn.length-1]===i}function M(_){var Q;_.code==="Escape"&&T()&&((Q=e.onEsc)===null||Q===void 0||Q.call(e,_))}Ot(()=>{tn(()=>e.active,_=>{_?($(),gt("keydown",document,M)):(ut("keydown",document,M),d&&X())},{immediate:!0})}),nn(()=>{ut("keydown",document,M),d&&X()});function C(_){if(!y&&T()){const Q=P();if(Q===null||Q.contains(Qn(_)))return;q("first")}}function P(){const _=o.value;if(_===null)return null;let Q=_;for(;Q=Q.nextSibling,!(Q===null||Q instanceof Element&&Q.tagName==="DIV"););return Q}function $(){var _;if(!e.disabled){if(xn.push(i),e.autoFocus){const{initialFocusTo:Q}=e;Q===void 0?q("first"):(_=Ri(Q))===null||_===void 0||_.focus({preventScroll:!0})}d=!0,document.addEventListener("focus",C,!0)}}function X(){var _;if(e.disabled||(document.removeEventListener("focus",C,!0),xn=xn.filter(K=>K!==i),T()))return;const{finalFocusTo:Q}=e;Q!==void 0?(_=Ri(Q))===null||_===void 0||_.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&x instanceof HTMLElement&&(y=!0,x.focus({preventScroll:!0}),y=!1)}function q(_){if(T()&&e.active){const Q=o.value,K=f.value;if(Q!==null&&K!==null){const j=P();if(j==null||j===K){y=!0,Q.focus({preventScroll:!0}),y=!1;return}y=!0;const he=_==="first"?Lo(j):Bo(j);y=!1,he||(y=!0,Q.focus({preventScroll:!0}),y=!1)}}}function re(_){if(y)return;const Q=P();Q!==null&&(_.relatedTarget!==null&&Q.contains(_.relatedTarget)?q("last"):q("first"))}function N(_){y||(_.relatedTarget!==null&&_.relatedTarget===o.value?q("last"):q("first"))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:re,handleEndFocus:N}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:i,focusableStyle:o}=this;return ee(Pt,null,[ee("div",{"aria-hidden":"true",tabindex:i?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),ee("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:i?"0":"-1",onFocus:this.handleEndFocus})])}});function Yu(e){const i={isDeactivated:!1};let o=!1;return es(()=>{if(i.isDeactivated=!1,!o){o=!0;return}e()}),ts(()=>{i.isDeactivated=!0,o||(o=!0)}),i}var Gu="[object Symbol]";function Zr(e){return typeof e=="symbol"||Er(e)&&Hr(e)==Gu}function Io(e,i){for(var o=-1,f=e==null?0:e.length,d=Array(f);++o<f;)d[o]=i(e[o],o,e);return d}var Ku=1/0,$i=Yn?Yn.prototype:void 0,qi=$i?$i.toString:void 0;function zo(e){if(typeof e=="string")return e;if(Nt(e))return Io(e,zo)+"";if(Zr(e))return qi?qi.call(e):"";var i=e+"";return i=="0"&&1/e==-Ku?"-0":i}var Zu=tr(nr,"WeakMap");const _r=Zu;var Ju=ds(Object.keys,Object);const Qu=Ju;var ec=Object.prototype,tc=ec.hasOwnProperty;function nc(e){if(!hs(e))return Qu(e);var i=[];for(var o in Object(e))tc.call(e,o)&&o!="constructor"&&i.push(o);return i}function Jr(e){return $r(e)?ps(e):nc(e)}var rc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ic=/^\w*$/;function Qr(e,i){if(Nt(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Zr(e)?!0:ic.test(e)||!rc.test(e)||i!=null&&e in Object(i)}var oc="Expected a function";function ei(e,i){if(typeof e!="function"||i!=null&&typeof i!="function")throw new TypeError(oc);var o=function(){var f=arguments,d=i?i.apply(this,f):f[0],y=o.cache;if(y.has(d))return y.get(d);var x=e.apply(this,f);return o.cache=y.set(d,x)||y,x};return o.cache=new(ei.Cache||qr),o}ei.Cache=qr;var ac=500;function sc(e){var i=ei(e,function(f){return o.size===ac&&o.clear(),f}),o=i.cache;return i}var lc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uc=/\\(\\)?/g,cc=sc(function(e){var i=[];return e.charCodeAt(0)===46&&i.push(""),e.replace(lc,function(o,f,d,y){i.push(d?y.replace(uc,"$1"):f||o)}),i});const fc=cc;function ar(e){return e==null?"":zo(e)}function jo(e,i){return Nt(e)?e:Qr(e,i)?[e]:fc(ar(e))}var dc=1/0;function sr(e){if(typeof e=="string"||Zr(e))return e;var i=e+"";return i=="0"&&1/e==-dc?"-0":i}function Wo(e,i){i=jo(i,e);for(var o=0,f=i.length;e!=null&&o<f;)e=e[sr(i[o++])];return o&&o==f?e:void 0}function hc(e,i,o){var f=e==null?void 0:Wo(e,i);return f===void 0?o:f}function pc(e,i){for(var o=-1,f=i.length,d=e.length;++o<f;)e[d+o]=i[o];return e}function vc(e,i,o){var f=-1,d=e.length;i<0&&(i=-i>d?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<d;)y[f]=e[f+i];return y}function gc(e,i,o){var f=e.length;return o=o===void 0?f:o,!i&&o>=f?e:vc(e,i,o)}var mc="\\ud800-\\udfff",yc="\\u0300-\\u036f",wc="\\ufe20-\\ufe2f",bc="\\u20d0-\\u20ff",xc=yc+wc+bc,Ac="\\ufe0e\\ufe0f",Sc="\\u200d",Cc=RegExp("["+Sc+mc+xc+Ac+"]");function Ho(e){return Cc.test(e)}function Tc(e){return e.split("")}var $o="\\ud800-\\udfff",Mc="\\u0300-\\u036f",Ec="\\ufe20-\\ufe2f",Oc="\\u20d0-\\u20ff",Pc=Mc+Ec+Oc,kc="\\ufe0e\\ufe0f",Rc="["+$o+"]",Lr="["+Pc+"]",Br="\\ud83c[\\udffb-\\udfff]",Dc="(?:"+Lr+"|"+Br+")",qo="[^"+$o+"]",Uo="(?:\\ud83c[\\udde6-\\uddff]){2}",Xo="[\\ud800-\\udbff][\\udc00-\\udfff]",Nc="\\u200d",Vo=Dc+"?",Yo="["+kc+"]?",_c="(?:"+Nc+"(?:"+[qo,Uo,Xo].join("|")+")"+Yo+Vo+")*",Lc=Yo+Vo+_c,Bc="(?:"+[qo+Lr+"?",Lr,Uo,Xo,Rc].join("|")+")",Fc=RegExp(Br+"(?="+Br+")|"+Bc+Lc,"g");function Ic(e){return e.match(Fc)||[]}function zc(e){return Ho(e)?Ic(e):Tc(e)}function jc(e){return function(i){i=ar(i);var o=Ho(i)?zc(i):void 0,f=o?o[0]:i.charAt(0),d=o?gc(o,1).join(""):i.slice(1);return f[e]()+d}}var Wc=jc("toUpperCase");const Hc=Wc;function $c(e,i,o,f){var d=-1,y=e==null?0:e.length;for(f&&y&&(o=e[++d]);++d<y;)o=i(o,e[d],d,e);return o}function qc(e){return function(i){return e==null?void 0:e[i]}}var Uc={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Xc=qc(Uc);const Vc=Xc;var Yc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gc="\\u0300-\\u036f",Kc="\\ufe20-\\ufe2f",Zc="\\u20d0-\\u20ff",Jc=Gc+Kc+Zc,Qc="["+Jc+"]",ef=RegExp(Qc,"g");function tf(e){return e=ar(e),e&&e.replace(Yc,Vc).replace(ef,"")}var nf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function rf(e){return e.match(nf)||[]}var of=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function af(e){return of.test(e)}var Go="\\ud800-\\udfff",sf="\\u0300-\\u036f",lf="\\ufe20-\\ufe2f",uf="\\u20d0-\\u20ff",cf=sf+lf+uf,Ko="\\u2700-\\u27bf",Zo="a-z\\xdf-\\xf6\\xf8-\\xff",ff="\\xac\\xb1\\xd7\\xf7",df="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hf="\\u2000-\\u206f",pf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jo="A-Z\\xc0-\\xd6\\xd8-\\xde",vf="\\ufe0e\\ufe0f",Qo=ff+df+hf+pf,ea="['’]",Ui="["+Qo+"]",gf="["+cf+"]",ta="\\d+",mf="["+Ko+"]",na="["+Zo+"]",ra="[^"+Go+Qo+ta+Ko+Zo+Jo+"]",yf="\\ud83c[\\udffb-\\udfff]",wf="(?:"+gf+"|"+yf+")",bf="[^"+Go+"]",ia="(?:\\ud83c[\\udde6-\\uddff]){2}",oa="[\\ud800-\\udbff][\\udc00-\\udfff]",fn="["+Jo+"]",xf="\\u200d",Xi="(?:"+na+"|"+ra+")",Af="(?:"+fn+"|"+ra+")",Vi="(?:"+ea+"(?:d|ll|m|re|s|t|ve))?",Yi="(?:"+ea+"(?:D|LL|M|RE|S|T|VE))?",aa=wf+"?",sa="["+vf+"]?",Sf="(?:"+xf+"(?:"+[bf,ia,oa].join("|")+")"+sa+aa+")*",Cf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mf=sa+aa+Sf,Ef="(?:"+[mf,ia,oa].join("|")+")"+Mf,Of=RegExp([fn+"?"+na+"+"+Vi+"(?="+[Ui,fn,"$"].join("|")+")",Af+"+"+Yi+"(?="+[Ui,fn+Xi,"$"].join("|")+")",fn+"?"+Xi+"+"+Vi,fn+"+"+Yi,Tf,Cf,ta,Ef].join("|"),"g");function Pf(e){return e.match(Of)||[]}function kf(e,i,o){return e=ar(e),i=o?void 0:i,i===void 0?af(e)?Pf(e):rf(e):e.match(i)||[]}var Rf="['’]",Df=RegExp(Rf,"g");function Nf(e){return function(i){return $c(kf(tf(i).replace(Df,"")),e,"")}}function _f(e,i){for(var o=-1,f=e==null?0:e.length,d=0,y=[];++o<f;){var x=e[o];i(x,o,e)&&(y[d++]=x)}return y}function Lf(){return[]}var Bf=Object.prototype,Ff=Bf.propertyIsEnumerable,Gi=Object.getOwnPropertySymbols,If=Gi?function(e){return e==null?[]:(e=Object(e),_f(Gi(e),function(i){return Ff.call(e,i)}))}:Lf;const zf=If;function jf(e,i,o){var f=i(e);return Nt(e)?f:pc(f,o(e))}function Ki(e){return jf(e,Jr,zf)}var Wf=tr(nr,"DataView");const Fr=Wf;var Hf=tr(nr,"Promise");const Ir=Hf;var $f=tr(nr,"Set");const zr=$f;var Zi="[object Map]",qf="[object Object]",Ji="[object Promise]",Qi="[object Set]",eo="[object WeakMap]",to="[object DataView]",Uf=yn(Fr),Xf=yn(Or),Vf=yn(Ir),Yf=yn(zr),Gf=yn(_r),Vt=Hr;(Fr&&Vt(new Fr(new ArrayBuffer(1)))!=to||Or&&Vt(new Or)!=Zi||Ir&&Vt(Ir.resolve())!=Ji||zr&&Vt(new zr)!=Qi||_r&&Vt(new _r)!=eo)&&(Vt=function(e){var i=Hr(e),o=i==qf?e.constructor:void 0,f=o?yn(o):"";if(f)switch(f){case Uf:return to;case Xf:return Zi;case Vf:return Ji;case Yf:return Qi;case Gf:return eo}return i});const no=Vt;var Kf="__lodash_hash_undefined__";function Zf(e){return this.__data__.set(e,Kf),this}function Jf(e){return this.__data__.has(e)}function er(e){var i=-1,o=e==null?0:e.length;for(this.__data__=new qr;++i<o;)this.add(e[i])}er.prototype.add=er.prototype.push=Zf;er.prototype.has=Jf;function Qf(e,i){for(var o=-1,f=e==null?0:e.length;++o<f;)if(i(e[o],o,e))return!0;return!1}function ed(e,i){return e.has(i)}var td=1,nd=2;function la(e,i,o,f,d,y){var x=o&td,T=e.length,M=i.length;if(T!=M&&!(x&&M>T))return!1;var C=y.get(e),P=y.get(i);if(C&&P)return C==i&&P==e;var $=-1,X=!0,q=o&nd?new er:void 0;for(y.set(e,i),y.set(i,e);++$<T;){var re=e[$],N=i[$];if(f)var _=x?f(N,re,$,i,e,y):f(re,N,$,e,i,y);if(_!==void 0){if(_)continue;X=!1;break}if(q){if(!Qf(i,function(Q,K){if(!ed(q,K)&&(re===Q||d(re,Q,o,f,y)))return q.push(K)})){X=!1;break}}else if(!(re===N||d(re,N,o,f,y))){X=!1;break}}return y.delete(e),y.delete(i),X}function rd(e){var i=-1,o=Array(e.size);return e.forEach(function(f,d){o[++i]=[d,f]}),o}function id(e){var i=-1,o=Array(e.size);return e.forEach(function(f){o[++i]=f}),o}var od=1,ad=2,sd="[object Boolean]",ld="[object Date]",ud="[object Error]",cd="[object Map]",fd="[object Number]",dd="[object RegExp]",hd="[object Set]",pd="[object String]",vd="[object Symbol]",gd="[object ArrayBuffer]",md="[object DataView]",ro=Yn?Yn.prototype:void 0,br=ro?ro.valueOf:void 0;function yd(e,i,o,f,d,y,x){switch(o){case md:if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case gd:return!(e.byteLength!=i.byteLength||!y(new gi(e),new gi(i)));case sd:case ld:case fd:return vs(+e,+i);case ud:return e.name==i.name&&e.message==i.message;case dd:case pd:return e==i+"";case cd:var T=rd;case hd:var M=f&od;if(T||(T=id),e.size!=i.size&&!M)return!1;var C=x.get(e);if(C)return C==i;f|=ad,x.set(e,i);var P=la(T(e),T(i),f,d,y,x);return x.delete(e),P;case vd:if(br)return br.call(e)==br.call(i)}return!1}var wd=1,bd=Object.prototype,xd=bd.hasOwnProperty;function Ad(e,i,o,f,d,y){var x=o&wd,T=Ki(e),M=T.length,C=Ki(i),P=C.length;if(M!=P&&!x)return!1;for(var $=M;$--;){var X=T[$];if(!(x?X in i:xd.call(i,X)))return!1}var q=y.get(e),re=y.get(i);if(q&&re)return q==i&&re==e;var N=!0;y.set(e,i),y.set(i,e);for(var _=x;++$<M;){X=T[$];var Q=e[X],K=i[X];if(f)var j=x?f(K,Q,X,i,e,y):f(Q,K,X,e,i,y);if(!(j===void 0?Q===K||d(Q,K,o,f,y):j)){N=!1;break}_||(_=X=="constructor")}if(N&&!_){var he=e.constructor,G=i.constructor;he!=G&&"constructor"in e&&"constructor"in i&&!(typeof he=="function"&&he instanceof he&&typeof G=="function"&&G instanceof G)&&(N=!1)}return y.delete(e),y.delete(i),N}var Sd=1,io="[object Arguments]",oo="[object Array]",Wn="[object Object]",Cd=Object.prototype,ao=Cd.hasOwnProperty;function Td(e,i,o,f,d,y){var x=Nt(e),T=Nt(i),M=x?oo:no(e),C=T?oo:no(i);M=M==io?Wn:M,C=C==io?Wn:C;var P=M==Wn,$=C==Wn,X=M==C;if(X&&mi(e)){if(!mi(i))return!1;x=!0,P=!1}if(X&&!P)return y||(y=new $n),x||gs(e)?la(e,i,o,f,d,y):yd(e,i,M,o,f,d,y);if(!(o&Sd)){var q=P&&ao.call(e,"__wrapped__"),re=$&&ao.call(i,"__wrapped__");if(q||re){var N=q?e.value():e,_=re?i.value():i;return y||(y=new $n),d(N,_,o,f,y)}}return X?(y||(y=new $n),Ad(e,i,o,f,d,y)):!1}function ti(e,i,o,f,d){return e===i?!0:e==null||i==null||!Er(e)&&!Er(i)?e!==e&&i!==i:Td(e,i,o,f,ti,d)}var Md=1,Ed=2;function Od(e,i,o,f){var d=o.length,y=d,x=!f;if(e==null)return!y;for(e=Object(e);d--;){var T=o[d];if(x&&T[2]?T[1]!==e[T[0]]:!(T[0]in e))return!1}for(;++d<y;){T=o[d];var M=T[0],C=e[M],P=T[1];if(x&&T[2]){if(C===void 0&&!(M in e))return!1}else{var $=new $n;if(f)var X=f(C,P,M,e,i,$);if(!(X===void 0?ti(P,C,Md|Ed,f,$):X))return!1}}return!0}function ua(e){return e===e&&!ms(e)}function Pd(e){for(var i=Jr(e),o=i.length;o--;){var f=i[o],d=e[f];i[o]=[f,d,ua(d)]}return i}function ca(e,i){return function(o){return o==null?!1:o[e]===i&&(i!==void 0||e in Object(o))}}function kd(e){var i=Pd(e);return i.length==1&&i[0][2]?ca(i[0][0],i[0][1]):function(o){return o===e||Od(o,e,i)}}function Rd(e,i){return e!=null&&i in Object(e)}function Dd(e,i,o){i=jo(i,e);for(var f=-1,d=i.length,y=!1;++f<d;){var x=sr(i[f]);if(!(y=e!=null&&o(e,x)))break;e=e[x]}return y||++f!=d?y:(d=e==null?0:e.length,!!d&&ys(d)&&ws(x,d)&&(Nt(e)||bs(e)))}function Nd(e,i){return e!=null&&Dd(e,i,Rd)}var _d=1,Ld=2;function Bd(e,i){return Qr(e)&&ua(i)?ca(sr(e),i):function(o){var f=hc(o,e);return f===void 0&&f===i?Nd(o,e):ti(i,f,_d|Ld)}}function Fd(e){return function(i){return i==null?void 0:i[e]}}function Id(e){return function(i){return Wo(i,e)}}function zd(e){return Qr(e)?Fd(sr(e)):Id(e)}function jd(e){return typeof e=="function"?e:e==null?xs:typeof e=="object"?Nt(e)?Bd(e[0],e[1]):kd(e):zd(e)}function Wd(e,i){return e&&As(e,i,Jr)}function Hd(e,i){return function(o,f){if(o==null)return o;if(!$r(o))return e(o,f);for(var d=o.length,y=i?d:-1,x=Object(o);(i?y--:++y<d)&&f(x[y],y,x)!==!1;);return o}}var $d=Hd(Wd);const qd=$d;function Ud(e,i){var o=-1,f=$r(e)?Array(e.length):[];return qd(e,function(d,y,x){f[++o]=i(d,y,x)}),f}function Xd(e,i){var o=Nt(e)?Io:Ud;return o(e,jd(i))}var Vd=Nf(function(e,i,o){return e+(o?"-":"")+i.toLowerCase()});const Yd=Vd,Gd={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage: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"}},Kd=Gd;function xr(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 An(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,x=o!=null&&o.width?String(o.width):y;d=e.formattingValues[x]||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 Sn(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 x=y[0],T=f&&e.parsePatterns[f]||e.parsePatterns[e.defaultParseWidth],M=Array.isArray(T)?Jd(T,function($){return $.test(x)}):Zd(T,function($){return $.test(x)}),C;C=e.valueCallback?e.valueCallback(M):M,C=o.valueCallback?o.valueCallback(C):C;var P=i.slice(x.length);return{value:C,rest:P}}}function Zd(e,i){for(var o in e)if(e.hasOwnProperty(o)&&i(e[o]))return o}function Jd(e,i){for(var o=0;o<e.length;o++)if(i(e[o]))return o}function Qd(e){return function(i){var o=arguments.length>1&&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 x=e.valueCallback?e.valueCallback(y[0]):y[0];x=o.valueCallback?o.valueCallback(x):x;var T=i.slice(d.length);return{value:x,rest:T}}}var eh={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"}},th=function(i,o,f){var d,y=eh[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 nh=th;var rh={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ih={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},oh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ah={date:xr({formats:rh,defaultWidth:"full"}),time:xr({formats:ih,defaultWidth:"full"}),dateTime:xr({formats:oh,defaultWidth:"full"})};const sh=ah;var lh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uh=function(i,o,f,d){return lh[i]};const ch=uh;var fh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},dh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hh={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"]},ph={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"]},vh={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"}},gh={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"}},mh=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"},yh={ordinalNumber:mh,era:An({values:fh,defaultWidth:"wide"}),quarter:An({values:dh,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:An({values:hh,defaultWidth:"wide"}),day:An({values:ph,defaultWidth:"wide"}),dayPeriod:An({values:vh,defaultWidth:"wide",formattingValues:gh,defaultFormattingWidth:"wide"})};const wh=yh;var bh=/^(\d+)(th|st|nd|rd)?/i,xh=/\d+/i,Ah={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},Sh={any:[/^b/i,/^(a|c)/i]},Ch={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Th={any:[/1/i,/2/i,/3/i,/4/i]},Mh={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},Eh={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]},Oh={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},Ph={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]},kh={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},Rh={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}},Dh={ordinalNumber:Qd({matchPattern:bh,parsePattern:xh,valueCallback:function(i){return parseInt(i,10)}}),era:Sn({matchPatterns:Ah,defaultMatchWidth:"wide",parsePatterns:Sh,defaultParseWidth:"any"}),quarter:Sn({matchPatterns:Ch,defaultMatchWidth:"wide",parsePatterns:Th,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:Sn({matchPatterns:Mh,defaultMatchWidth:"wide",parsePatterns:Eh,defaultParseWidth:"any"}),day:Sn({matchPatterns:Oh,defaultMatchWidth:"wide",parsePatterns:Ph,defaultParseWidth:"any"}),dayPeriod:Sn({matchPatterns:kh,defaultMatchWidth:"any",parsePatterns:Rh,defaultParseWidth:"any"})};const Nh=Dh;var _h={code:"en-US",formatDistance:nh,formatLong:sh,formatRelative:ch,localize:wh,match:Nh,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lh=_h,Bh={name:"en-US",locale:Lh},Fh=Bh;function Ih(e){const{mergedLocaleRef:i,mergedDateLocaleRef:o}=mn(Ur,null)||{},f=Ue(()=>{var y,x;return(x=(y=i==null?void 0:i.value)===null||y===void 0?void 0:y[e])!==null&&x!==void 0?x:Kd[e]});return{dateLocaleRef:Ue(()=>{var y;return(y=o==null?void 0:o.value)!==null&&y!==void 0?y:Fh}),localeRef:f}}function zh(e,i,o){if(!i){Ss("use-style","No style is specified.");return}const f=vo(),d=mn(Ur,null),y=()=>{const x=o==null?void 0:o.value;i.mount({id:x===void 0?e:x+e,head:!0,anchorMetaName:Pr,props:{bPrefix:x?`.${x}-`:void 0},ssr:f}),d!=null&&d.preflightStyleDisabled||Cs.mount({id:"n-global",head:!0,anchorMetaName:Pr,ssr:f})};f?y():uo(y)}function jh(e,i,o){if(!i)return;const f=vo(),d=Ue(()=>{const{value:x}=i;if(!x)return;const T=x[e];if(T)return T}),y=()=>{Wt(()=>{const{value:x}=o,T=`${x}${e}Rtl`;if(vu(T,f))return;const{value:M}=d;M&&M.style.mount({id:T,head:!0,anchorMetaName:Pr,props:{bPrefix:x?`.${x}-`:void 0},ssr:f})})};return f?y():uo(y),d}function lr(e,i){return ct({name:Hc(e),setup(){var o;const f=(o=mn(Ur,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 Wh=lr("rotateClockwise",ee("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ee("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"}),ee("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"}))),Hh=lr("rotateClockwise",ee("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ee("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"}),ee("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"}))),$h=lr("zoomIn",ee("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ee("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"}),ee("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"}))),qh=lr("zoomOut",ee("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ee("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"}),ee("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"}))),Uh=ct({name:"ResizeSmall",render(){return ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},ee("g",{fill:"none"},ee("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"})))}}),Xh=Qe("base-icon",`
  4. height: 1em;
  5. width: 1em;
  6. line-height: 1em;
  7. text-align: center;
  8. display: inline-block;
  9. position: relative;
  10. fill: currentColor;
  11. transform: translateZ(0);
  12. `,[Ve("svg",`
  13. height: 1em;
  14. width: 1em;
  15. `)]),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){zh("-base-icon",Xh,Kt(e,"clsPrefix"))},render(){return ee("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)}}),Vh=e=>{const{scrollbarColor:i,scrollbarColorHover:o}=e;return{color:i,colorHover:o}},Yh={name:"Scrollbar",common:rr,self:Vh},Gh=Yh,{cubicBezierEaseInOut:so}=Ts;function jr({name:e="fade-in",enterDuration:i="0.2s",leaveDuration:o="0.2s",enterCubicBezier:f=so,leaveCubicBezier:d=so}={}){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 Kh=Qe("scrollbar",`
  16. overflow: hidden;
  17. position: relative;
  18. z-index: auto;
  19. height: 100%;
  20. width: 100%;
  21. `,[Ve(">",[Qe("scrollbar-container",`
  22. width: 100%;
  23. overflow: scroll;
  24. height: 100%;
  25. max-height: inherit;
  26. scrollbar-width: none;
  27. `,[Ve("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  28. width: 0;
  29. height: 0;
  30. display: none;
  31. `),Ve(">",[Qe("scrollbar-content",`
  32. box-sizing: border-box;
  33. min-width: 100%;
  34. `)])])]),Ve(">, +",[Qe("scrollbar-rail",`
  35. position: absolute;
  36. pointer-events: none;
  37. user-select: none;
  38. -webkit-user-select: none;
  39. `,[Zt("horizontal",`
  40. left: 2px;
  41. right: 2px;
  42. bottom: 4px;
  43. height: var(--n-scrollbar-height);
  44. `,[Ve(">",[Gt("scrollbar",`
  45. height: var(--n-scrollbar-height);
  46. border-radius: var(--n-scrollbar-border-radius);
  47. right: 0;
  48. `)])]),Zt("vertical",`
  49. right: 4px;
  50. top: 2px;
  51. bottom: 2px;
  52. width: var(--n-scrollbar-width);
  53. `,[Ve(">",[Gt("scrollbar",`
  54. width: var(--n-scrollbar-width);
  55. border-radius: var(--n-scrollbar-border-radius);
  56. bottom: 0;
  57. `)])]),Zt("disabled",[Ve(">",[Gt("scrollbar",{pointerEvents:"none"})])]),Ve(">",[Gt("scrollbar",`
  58. position: absolute;
  59. cursor: pointer;
  60. pointer-events: all;
  61. background-color: var(--n-scrollbar-color);
  62. transition: background-color .2s var(--n-scrollbar-bezier);
  63. `,[jr(),Ve("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Zh=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}),Jh=ct({name:"Scrollbar",props:Zh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:o,mergedRtlRef:f}=kn(e),d=jh("Scrollbar",f,i),y=Ce(null),x=Ce(null),T=Ce(null),M=Ce(null),C=Ce(null),P=Ce(null),$=Ce(null),X=Ce(null),q=Ce(null),re=Ce(null),N=Ce(null),_=Ce(0),Q=Ce(0),K=Ce(!1),j=Ce(!1);let he=!1,G=!1,le,ue,ge=0,Ae=0,be=0,Pe=0;const Be=bu(),Te=Ue(()=>{const{value:Y}=X,{value:fe}=P,{value:we}=re;return Y===null||fe===null||we===null?0:Math.min(Y,we*Y/fe+e.size*1.5)}),pe=Ue(()=>`${Te.value}px`),ke=Ue(()=>{const{value:Y}=q,{value:fe}=$,{value:we}=N;return Y===null||fe===null||we===null?0:we*Y/fe+e.size*1.5}),U=Ue(()=>`${ke.value}px`),s=Ue(()=>{const{value:Y}=X,{value:fe}=_,{value:we}=P,{value:De}=re;if(Y===null||we===null||De===null)return 0;{const je=we-Y;return je?fe/je*(De-Te.value):0}}),l=Ue(()=>`${s.value}px`),n=Ue(()=>{const{value:Y}=q,{value:fe}=Q,{value:we}=$,{value:De}=N;if(Y===null||we===null||De===null)return 0;{const je=we-Y;return je?fe/je*(De-ke.value):0}}),m=Ue(()=>`${n.value}px`),b=Ue(()=>{const{value:Y}=X,{value:fe}=P;return Y!==null&&fe!==null&&fe>Y}),L=Ue(()=>{const{value:Y}=q,{value:fe}=$;return Y!==null&&fe!==null&&fe>Y}),ae=Ue(()=>{const{trigger:Y}=e;return Y==="none"||K.value}),te=Ue(()=>{const{trigger:Y}=e;return Y==="none"||j.value}),ve=Ue(()=>{const{container:Y}=e;return Y?Y():x.value}),Re=Ue(()=>{const{content:Y}=e;return Y?Y():T.value}),Ne=Yu(()=>{e.container||nt({top:_.value,left:Q.value})}),Ie=()=>{Ne.isDeactivated||mt()},st=Y=>{if(Ne.isDeactivated)return;const{onResize:fe}=e;fe&&fe(Y),mt()},nt=(Y,fe)=>{if(!e.scrollable)return;if(typeof Y=="number"){Z(fe!=null?fe:0,Y,0,!1,"auto");return}const{left:we,top:De,index:je,elSize:Ke,position:ft,behavior:Fe,el:$e,debounce:Ht=!0}=Y;(we!==void 0||De!==void 0)&&Z(we!=null?we:0,De!=null?De:0,0,!1,Fe),$e!==void 0?Z(0,$e.offsetTop,$e.offsetHeight,Ht,Fe):je!==void 0&&Ke!==void 0?Z(0,je*Ke,Ke,Ht,Fe):ft==="bottom"?Z(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):ft==="top"&&Z(0,0,0,!1,Fe)},He=(Y,fe)=>{if(!e.scrollable)return;const{value:we}=ve;we&&(typeof Y=="object"?we.scrollBy(Y):we.scrollBy(Y,fe||0))};function Z(Y,fe,we,De,je){const{value:Ke}=ve;if(Ke){if(De){const{scrollTop:ft,offsetHeight:Fe}=Ke;if(fe>ft){fe+we<=ft+Fe||Ke.scrollTo({left:Y,top:fe+we-Fe,behavior:je});return}}Ke.scrollTo({left:Y,top:fe,behavior:je})}}function me(){Ye(),rt(),mt()}function ce(){Ee()}function Ee(){_e(),Xe()}function _e(){ue!==void 0&&window.clearTimeout(ue),ue=window.setTimeout(()=>{j.value=!1},e.duration)}function Xe(){le!==void 0&&window.clearTimeout(le),le=window.setTimeout(()=>{K.value=!1},e.duration)}function Ye(){le!==void 0&&window.clearTimeout(le),K.value=!0}function rt(){ue!==void 0&&window.clearTimeout(ue),j.value=!0}function et(Y){const{onScroll:fe}=e;fe&&fe(Y),kt()}function kt(){const{value:Y}=ve;Y&&(_.value=Y.scrollTop,Q.value=Y.scrollLeft*(d!=null&&d.value?-1:1))}function on(){const{value:Y}=Re;Y&&(P.value=Y.offsetHeight,$.value=Y.offsetWidth);const{value:fe}=ve;fe&&(X.value=fe.offsetHeight,q.value=fe.offsetWidth);const{value:we}=C,{value:De}=M;we&&(N.value=we.offsetWidth),De&&(re.value=De.offsetHeight)}function pt(){const{value:Y}=ve;Y&&(_.value=Y.scrollTop,Q.value=Y.scrollLeft*(d!=null&&d.value?-1:1),X.value=Y.offsetHeight,q.value=Y.offsetWidth,P.value=Y.scrollHeight,$.value=Y.scrollWidth);const{value:fe}=C,{value:we}=M;fe&&(N.value=fe.offsetWidth),we&&(re.value=we.offsetHeight)}function mt(){e.scrollable&&(e.useUnifiedContainer?pt():(on(),kt()))}function Ge(Y){var fe;return!(!((fe=y.value)===null||fe===void 0)&&fe.contains(Qn(Y)))}function wn(Y){Y.preventDefault(),Y.stopPropagation(),G=!0,gt("mousemove",window,Rt,!0),gt("mouseup",window,Ft,!0),Ae=Q.value,be=d!=null&&d.value?window.innerWidth-Y.clientX:Y.clientX}function Rt(Y){if(!G)return;le!==void 0&&window.clearTimeout(le),ue!==void 0&&window.clearTimeout(ue);const{value:fe}=q,{value:we}=$,{value:De}=ke;if(fe===null||we===null)return;const Ke=(d!=null&&d.value?window.innerWidth-Y.clientX-be:Y.clientX-be)*(we-fe)/(fe-De),ft=we-fe;let Fe=Ae+Ke;Fe=Math.min(ft,Fe),Fe=Math.max(Fe,0);const{value:$e}=ve;if($e){$e.scrollLeft=Fe*(d!=null&&d.value?-1:1);const{internalOnUpdateScrollLeft:Ht}=e;Ht&&Ht(Fe)}}function Ft(Y){Y.preventDefault(),Y.stopPropagation(),ut("mousemove",window,Rt,!0),ut("mouseup",window,Ft,!0),G=!1,mt(),Ge(Y)&&Ee()}function At(Y){Y.preventDefault(),Y.stopPropagation(),he=!0,gt("mousemove",window,yt,!0),gt("mouseup",window,wt,!0),ge=_.value,Pe=Y.clientY}function yt(Y){if(!he)return;le!==void 0&&window.clearTimeout(le),ue!==void 0&&window.clearTimeout(ue);const{value:fe}=X,{value:we}=P,{value:De}=Te;if(fe===null||we===null)return;const Ke=(Y.clientY-Pe)*(we-fe)/(fe-De),ft=we-fe;let Fe=ge+Ke;Fe=Math.min(ft,Fe),Fe=Math.max(Fe,0);const{value:$e}=ve;$e&&($e.scrollTop=Fe)}function wt(Y){Y.preventDefault(),Y.stopPropagation(),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0),he=!1,mt(),Ge(Y)&&Ee()}Wt(()=>{const{value:Y}=L,{value:fe}=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&&(fe?je.classList.remove(`${we}-scrollbar-rail--disabled`):je.classList.add(`${we}-scrollbar-rail--disabled`))}),Ot(()=>{e.container||mt()}),nn(()=>{le!==void 0&&window.clearTimeout(le),ue!==void 0&&window.clearTimeout(ue),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0)});const It=Bt("Scrollbar","-scrollbar",Kh,Gh,e,i),qe=Ue(()=>{const{common:{cubicBezierEaseInOut:Y,scrollbarBorderRadius:fe,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":fe,"--n-scrollbar-width":De,"--n-scrollbar-height":we}}),Je=o?Xr("scrollbar",void 0,qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:nt,scrollBy:He,sync:mt,syncUnifiedContainer:pt,handleMouseEnterWrapper:me,handleMouseLeaveWrapper:ce}),{mergedClsPrefix:i,rtlEnabled:d,containerScrollTop:_,wrapperRef:y,containerRef:x,contentRef:T,yRailRef:M,xRailRef:C,needYBar:b,needXBar:L,yBarSizePx:pe,xBarSizePx:U,yBarTopPx:l,xBarLeftPx:m,isShowXBar:ae,isShowYBar:te,isIos:Be,handleScroll:et,handleContentResize:Ie,handleContainerResize:st,handleYScrollMouseDown:At,handleXScrollMouseDown:wn,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 x=this.trigger==="none",T=()=>ee("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},ee(x?Ei:dn,x?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?ee("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),ee("div",Mn(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):ee("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},ee(Hi,{onResize:this.handleContentResize},{default:()=>ee("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&&ee("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},ee(x?Ei:dn,x?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?ee("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():ee(Hi,{onResize:this.handleContainerResize},{default:M});return y?ee(Pt,null,C,T()):C}}),Qh=Jh,ep={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},tp=e=>{const{boxShadow2:i,popoverColor:o,textColor2:f,borderRadius:d,fontSize:y,dividerColor:x}=e;return Object.assign(Object.assign({},ep),{fontSize:y,borderRadius:d,color:o,dividerColor:x,textColor:f,boxShadow:i})},np={name:"Popover",common:rr,self:tp},fa=np,Ar={top:"bottom",bottom:"top",left:"right",right:"left"},at="var(--n-arrow-height) * 1.414",rp=Ve([Qe("popover",`
  64. transition:
  65. box-shadow .3s var(--n-bezier),
  66. background-color .3s var(--n-bezier),
  67. color .3s var(--n-bezier);
  68. position: relative;
  69. font-size: var(--n-font-size);
  70. color: var(--n-text-color);
  71. box-shadow: var(--n-box-shadow);
  72. word-break: break-word;
  73. `,[Ve(">",[Qe("scrollbar",`
  74. height: inherit;
  75. max-height: inherit;
  76. `)]),qn("raw",`
  77. background-color: var(--n-color);
  78. border-radius: var(--n-border-radius);
  79. `,[qn("scrollable",[qn("show-header-or-footer","padding: var(--n-padding);")])]),Gt("header",`
  80. padding: var(--n-padding);
  81. border-bottom: 1px solid var(--n-divider-color);
  82. transition: border-color .3s var(--n-bezier);
  83. `),Gt("footer",`
  84. padding: var(--n-padding);
  85. border-top: 1px solid var(--n-divider-color);
  86. transition: border-color .3s var(--n-bezier);
  87. `),Zt("scrollable, show-header-or-footer",[Gt("content",`
  88. padding: var(--n-padding);
  89. `)])]),Qe("popover-shared",`
  90. transform-origin: inherit;
  91. `,[Qe("popover-arrow-wrapper",`
  92. position: absolute;
  93. overflow: hidden;
  94. pointer-events: none;
  95. `,[Qe("popover-arrow",`
  96. transition: background-color .3s var(--n-bezier);
  97. position: absolute;
  98. display: block;
  99. width: calc(${at});
  100. height: calc(${at});
  101. box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
  102. transform: rotate(45deg);
  103. background-color: var(--n-color);
  104. pointer-events: all;
  105. `)]),Ve("&.popover-transition-enter-from, &.popover-transition-leave-to",`
  106. opacity: 0;
  107. transform: scale(.85);
  108. `),Ve("&.popover-transition-enter-to, &.popover-transition-leave-from",`
  109. transform: scale(1);
  110. opacity: 1;
  111. `),Ve("&.popover-transition-enter-active",`
  112. transition:
  113. box-shadow .3s var(--n-bezier),
  114. background-color .3s var(--n-bezier),
  115. color .3s var(--n-bezier),
  116. opacity .15s var(--n-bezier-ease-out),
  117. transform .15s var(--n-bezier-ease-out);
  118. `),Ve("&.popover-transition-leave-active",`
  119. transition:
  120. box-shadow .3s var(--n-bezier),
  121. background-color .3s var(--n-bezier),
  122. color .3s var(--n-bezier),
  123. opacity .15s var(--n-bezier-ease-in),
  124. transform .15s var(--n-bezier-ease-in);
  125. `)]),bt("top-start",`
  126. top: calc(${at} / -2);
  127. left: calc(${Dt("top-start")} - var(--v-offset-left));
  128. `),bt("top",`
  129. top: calc(${at} / -2);
  130. transform: translateX(calc(${at} / -2)) rotate(45deg);
  131. left: 50%;
  132. `),bt("top-end",`
  133. top: calc(${at} / -2);
  134. right: calc(${Dt("top-end")} + var(--v-offset-left));
  135. `),bt("bottom-start",`
  136. bottom: calc(${at} / -2);
  137. left: calc(${Dt("bottom-start")} - var(--v-offset-left));
  138. `),bt("bottom",`
  139. bottom: calc(${at} / -2);
  140. transform: translateX(calc(${at} / -2)) rotate(45deg);
  141. left: 50%;
  142. `),bt("bottom-end",`
  143. bottom: calc(${at} / -2);
  144. right: calc(${Dt("bottom-end")} + var(--v-offset-left));
  145. `),bt("left-start",`
  146. left: calc(${at} / -2);
  147. top: calc(${Dt("left-start")} - var(--v-offset-top));
  148. `),bt("left",`
  149. left: calc(${at} / -2);
  150. transform: translateY(calc(${at} / -2)) rotate(45deg);
  151. top: 50%;
  152. `),bt("left-end",`
  153. left: calc(${at} / -2);
  154. bottom: calc(${Dt("left-end")} + var(--v-offset-top));
  155. `),bt("right-start",`
  156. right: calc(${at} / -2);
  157. top: calc(${Dt("right-start")} - var(--v-offset-top));
  158. `),bt("right",`
  159. right: calc(${at} / -2);
  160. transform: translateY(calc(${at} / -2)) rotate(45deg);
  161. top: 50%;
  162. `),bt("right-end",`
  163. right: calc(${at} / -2);
  164. bottom: calc(${Dt("right-end")} + var(--v-offset-top));
  165. `),...Xd({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",[Zt("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",`
  166. margin-${Ar[o]}: var(--n-space);
  167. `,[Zt("show-arrow",`
  168. margin-${Ar[o]}: var(--n-space-arrow);
  169. `),Zt("overlap",`
  170. margin: 0;
  171. `),Ms("popover-arrow-wrapper",`
  172. right: 0;
  173. left: 0;
  174. top: 0;
  175. bottom: 0;
  176. ${o}: 100%;
  177. ${Ar[o]}: auto;
  178. ${f}
  179. `,[Qe("popover-arrow",i)])])])}const da=Object.assign(Object.assign({},Bt.props),{to:Gn.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}),ip=({arrowStyle:e,clsPrefix:i})=>ee("div",{key:"__popover-arrow__",class:`${i}-popover-arrow-wrapper`},ee("div",{class:`${i}-popover-arrow`,style:e})),op=ct({name:"PopoverBody",inheritAttrs:!1,props:da,setup(e,{slots:i,attrs:o}){const{namespaceRef:f,mergedClsPrefixRef:d,inlineThemeDisabled:y}=kn(e),x=Bt("Popover","-popover",rp,fa,e,d),T=Ce(null),M=mn("NPopover"),C=Ce(null),P=Ce(e.show),$=Ce(!1);Wt(()=>{const{show:ue}=e;ue&&!gu()&&!e.internalDeactivateImmediately&&($.value=!0)});const X=Ue(()=>{const{trigger:ue,onClickoutside:ge}=e,Ae=[],{positionManuallyRef:{value:be}}=M;return be||(ue==="click"&&!ge&&Ae.push([Pi,he,void 0,{capture:!0}]),ue==="hover"&&Ae.push([Au,j])),ge&&Ae.push([Pi,he,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&$.value)&&Ae.push([co,e.show]),Ae}),q=Ue(()=>{const ue=e.width==="trigger"?void 0:gr(e.width),ge=[];ue&&ge.push({width:ue});const{maxWidth:Ae,minWidth:be}=e;return Ae&&ge.push({maxWidth:gr(Ae)}),be&&ge.push({maxWidth:gr(be)}),y||ge.push(re.value),ge}),re=Ue(()=>{const{common:{cubicBezierEaseInOut:ue,cubicBezierEaseIn:ge,cubicBezierEaseOut:Ae},self:{space:be,spaceArrow:Pe,padding:Be,fontSize:Te,textColor:pe,dividerColor:ke,color:U,boxShadow:s,borderRadius:l,arrowHeight:n,arrowOffset:m,arrowOffsetVertical:b}}=x.value;return{"--n-box-shadow":s,"--n-bezier":ue,"--n-bezier-ease-in":ge,"--n-bezier-ease-out":Ae,"--n-font-size":Te,"--n-text-color":pe,"--n-color":U,"--n-divider-color":ke,"--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":Pe}}),N=y?Xr("popover",void 0,re,e):void 0;M.setBodyInstance({syncPosition:_}),nn(()=>{M.setBodyInstance(null)}),tn(Kt(e,"show"),ue=>{e.animated||(ue?P.value=!0:P.value=!1)});function _(){var ue;(ue=T.value)===null||ue===void 0||ue.syncPosition()}function Q(ue){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&M.handleMouseEnter(ue)}function K(ue){e.trigger==="hover"&&e.keepAliveOnHover&&M.handleMouseLeave(ue)}function j(ue){e.trigger==="hover"&&!G().contains(Qn(ue))&&M.handleMouseMoveOutside(ue)}function he(ue){(e.trigger==="click"&&!G().contains(Qn(ue))||e.onClickoutside)&&M.handleClickOutside(ue)}function G(){return M.getTriggerElement()}Cn(Es,C),Cn(Os,null),Cn(Ps,null);function le(){if(N==null||N.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&$.value))return null;let ge;const Ae=M.internalRenderBodyRef.value,{value:be}=d;if(Ae)ge=Ae([`${be}-popover-shared`,N==null?void 0:N.themeClass.value,e.overlap&&`${be}-popover-shared--overlap`,e.showArrow&&`${be}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${be}-popover-shared--center-arrow`],C,q.value,Q,K);else{const{value:Pe}=M.extraClassRef,{internalTrapFocus:Be}=e,Te=!yi(i.header)||!yi(i.footer),pe=()=>{var ke;const U=Te?ee(Pt,null,pr(i.header,n=>n?ee("div",{class:`${be}-popover__header`,style:e.headerStyle},n):null),pr(i.default,n=>n?ee("div",{class:`${be}-popover__content`,style:e.contentStyle},i):null),pr(i.footer,n=>n?ee("div",{class:`${be}-popover__footer`,style:e.footerStyle},n):null)):e.scrollable?(ke=i.default)===null||ke===void 0?void 0:ke.call(i):ee("div",{class:`${be}-popover__content`,style:e.contentStyle},i),s=e.scrollable?ee(Qh,{contentClass:Te?void 0:`${be}-popover__content`,contentStyle:Te?void 0:e.contentStyle},{default:()=>U}):U,l=e.showArrow?ip({arrowStyle:e.arrowStyle,clsPrefix:be}):null;return[s,l]};ge=ee("div",Mn({class:[`${be}-popover`,`${be}-popover-shared`,N==null?void 0:N.themeClass.value,Pe.map(ke=>`${be}-${ke}`),{[`${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:q.value,onKeydown:M.handleKeydown,onMouseenter:Q,onMouseleave:K},o),Be?ee(Vu,{active:e.show,autoFocus:!0},{default:pe}):pe())}return Vn(ge,X.value)}return{displayed:$,namespace:f,isMounted:M.isMountedRef,zIndex:M.zIndexRef,followerRef:T,adjustedTo:Gn(e),followerEnabled:P,renderContentNode:le}},render(){return ee(ks,{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===Gn.tdkey},{default:()=>this.animated?ee(dn,{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()})}}),ap=Object.keys(da),sp={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function lp(e,i,o){sp[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]=(...x)=>{d(...x),y(...x)}:e.props[f]=y})}const ha={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:Gn.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},up=Object.assign(Object.assign(Object.assign({},Bt.props),ha),{internalOnAfterLeave:Function,internalRenderBody:Function}),cp=ct({name:"Popover",inheritAttrs:!1,props:up,__popover__:!0,setup(e){Wt(()=>{e.maxWidth!==void 0&&bn("popover","`max-width` is deprecated, please use `style` instead."),e.minWidth!==void 0&&bn("popover","`min-width` is deprecated, please use `style` instead."),e.arrow!==void 0&&bn("popover","`arrow` is deprecated, please use `showArrow` instead."),e.onHide!==void 0&&bn("popover","`on-hide` is deprecated, please use `on-update:show` instead."),e.onShow!==void 0&&bn("popover","`on-show` is deprecated, please use `on-update:show` instead.")});const i=go(),o=Ce(null),f=Ue(()=>e.show),d=Ce(e.defaultShow),y=Rs(f,d),x=wi(()=>e.disabled?!1:y.value),T=()=>{if(e.disabled)return!0;const{getDisabled:pe}=e;return!!(pe!=null&&pe())},M=()=>T()?!1:y.value,C=yu(e,["arrow","showArrow"]),P=Ue(()=>e.overlap?!1:C.value);let $=null;const X=Ce(null),q=Ce(null),re=wi(()=>e.x!==void 0&&e.y!==void 0);function N(pe){const{"onUpdate:show":ke,onUpdateShow:U,onShow:s,onHide:l}=e;d.value=pe,ke&&Bn(ke,pe),U&&Bn(U,pe),pe&&s&&Bn(s,!0),pe&&l&&Bn(l,!1)}function _(){$&&$.syncPosition()}function Q(){const{value:pe}=X;pe&&(window.clearTimeout(pe),X.value=null)}function K(){const{value:pe}=q;pe&&(window.clearTimeout(pe),q.value=null)}function j(){const pe=T();if(e.trigger==="focus"&&!pe){if(M())return;N(!0)}}function he(){const pe=T();if(e.trigger==="focus"&&!pe){if(!M())return;N(!1)}}function G(){const pe=T();if(e.trigger==="hover"&&!pe){if(K(),X.value!==null||M())return;const ke=()=>{N(!0),X.value=null},{delay:U}=e;U===0?ke():X.value=window.setTimeout(ke,U)}}function le(){const pe=T();if(e.trigger==="hover"&&!pe){if(Q(),q.value!==null||!M())return;const ke=()=>{N(!1),q.value=null},{duration:U}=e;U===0?ke():q.value=window.setTimeout(ke,U)}}function ue(){le()}function ge(pe){var ke;M()&&(e.trigger==="click"&&(Q(),K(),N(!1)),(ke=e.onClickoutside)===null||ke===void 0||ke.call(e,pe))}function Ae(){if(e.trigger==="click"&&!T()){Q(),K();const pe=!M();N(pe)}}function be(pe){e.internalTrapFocus&&pe.key==="Escape"&&(Q(),K(),N(!1))}function Pe(pe){d.value=pe}function Be(){var pe;return(pe=o.value)===null||pe===void 0?void 0:pe.targetRef}function Te(pe){$=pe}return Cn("NPopover",{getTriggerElement:Be,handleKeydown:be,handleMouseEnter:G,handleMouseLeave:le,handleClickOutside:ge,handleMouseMoveOutside:ue,setBodyInstance:Te,positionManuallyRef:re,isMountedRef:i,zIndexRef:Kt(e,"zIndex"),extraClassRef:Kt(e,"internalExtraClass"),internalRenderBodyRef:Kt(e,"internalRenderBody")}),Wt(()=>{y.value&&T()&&N(!1)}),{binderInstRef:o,positionManually:re,mergedShowConsideringDisabledProp:x,uncontrolledShow:d,mergedShowArrow:P,getMergedShow:M,setShow:Pe,handleClick:Ae,handleMouseEnter:G,handleMouseLeave:le,handleFocus:j,handleBlur:he,syncPosition:_}},render(){var e;const{positionManually:i,$slots:o}=this;let f,d=!1;if(!i&&(o.activator?f=Mi(o,"activator"):f=Mi(o,"trigger"),f)){f=ns(f),f=f.type===rs?ee("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:x}=this,T=[y,...x],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)})}};lp(f,x?"nested":i?"manual":this.trigger,M)}}return ee(Ns,{ref:"binderInstRef",syncTarget:!d,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const y=this.getMergedShow();return[this.internalTrapFocus&&y?Vn(ee("div",{style:{position:"fixed",inset:0}}),[[mo,{enabled:y,zIndex:this.zIndex}]]):null,i?null:ee(Ds,null,{default:()=>f}),ee(op,hu(this.$props,ap,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:y})),{default:()=>{var x,T;return(T=(x=this.$slots).default)===null||T===void 0?void 0:T.call(x)},header:()=>{var x,T;return(T=(x=this.$slots).header)===null||T===void 0?void 0:T.call(x)},footer:()=>{var x,T;return(T=(x=this.$slots).footer)===null||T===void 0?void 0:T.call(x)}})]}})}}),fp=mu&&"loading"in document.createElement("img"),dp=(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})}},Sr=new WeakMap,Cr=new WeakMap,Tr=new WeakMap,hp=(e,i,o)=>{if(!e)return()=>{};const f=dp(i),{root:d}=f.options;let y;const x=Sr.get(d);x?y=x:(y=new Map,Sr.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(X=>{if(X.isIntersecting){const q=Cr.get(X.target),re=Tr.get(X.target);q&&q(),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||(Cr.delete(e),Tr.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||Sr.delete(d))};return Cr.set(e,P),Tr.set(e,o),P},pp={padding:"8px 14px"},vp=e=>{const{borderRadius:i,boxShadow2:o,baseColor:f}=e;return Object.assign(Object.assign({},pp),{borderRadius:i,boxShadow:o,color:_s(f,"rgba(0, 0, 0, .85)"),textColor:f})},gp=yo({name:"Tooltip",common:rr,peers:{Popover:fa},self:vp}),pa=gp,mp=Object.assign(Object.assign({},ha),Bt.props),yp=ct({name:"Tooltip",props:mp,__popover__:!0,setup(e){const{mergedClsPrefixRef:i}=kn(e),o=Bt("Tooltip","-tooltip",void 0,pa,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 ee(cp,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)}}),va=Object.assign(Object.assign({},Bt.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ga=wo("n-image");function wp(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const bp=yo({name:"Image",common:rr,peers:{Tooltip:pa},self:wp}),xp=ee("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ee("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"})),Ap=ee("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ee("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"})),Sp=ee("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ee("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"})),Cp=Ve([Ve("body >",[Qe("image-container","position: fixed;")]),Qe("image-preview-container",`
  180. position: fixed;
  181. left: 0;
  182. right: 0;
  183. top: 0;
  184. bottom: 0;
  185. display: flex;
  186. `),Qe("image-preview-overlay",`
  187. z-index: -1;
  188. position: absolute;
  189. left: 0;
  190. right: 0;
  191. top: 0;
  192. bottom: 0;
  193. background: rgba(0, 0, 0, .3);
  194. `,[jr()]),Qe("image-preview-toolbar",`
  195. z-index: 1;
  196. position: absolute;
  197. left: 50%;
  198. transform: translateX(-50%);
  199. border-radius: var(--n-toolbar-border-radius);
  200. height: 48px;
  201. bottom: 40px;
  202. padding: 0 12px;
  203. background: var(--n-toolbar-color);
  204. box-shadow: var(--n-toolbar-box-shadow);
  205. color: var(--n-toolbar-icon-color);
  206. transition: color .3s var(--n-bezier);
  207. display: flex;
  208. align-items: center;
  209. `,[Qe("base-icon",`
  210. padding: 0 8px;
  211. font-size: 28px;
  212. cursor: pointer;
  213. `),jr()]),Qe("image-preview-wrapper",`
  214. position: absolute;
  215. left: 0;
  216. right: 0;
  217. top: 0;
  218. bottom: 0;
  219. display: flex;
  220. pointer-events: none;
  221. `,[Ls()]),Qe("image-preview",`
  222. user-select: none;
  223. -webkit-user-select: none;
  224. pointer-events: all;
  225. margin: auto;
  226. max-height: calc(100vh - 32px);
  227. max-width: calc(100vw - 32px);
  228. transition: transform .3s var(--n-bezier);
  229. `),Qe("image",`
  230. display: inline-flex;
  231. max-height: 100%;
  232. max-width: 100%;
  233. `,[qn("preview-disabled",`
  234. cursor: pointer;
  235. `),Ve("img",`
  236. border-radius: inherit;
  237. `)])]),Hn=32,Tp=ct({name:"ImagePreview",props:Object.assign(Object.assign({},va),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const i=Bt("Image","-image",Cp,bp,e,Kt(e,"clsPrefix"));let o=null;const f=Ce(null),d=Ce(null),y=Ce(void 0),x=Ce(!1),T=Ce(!1),{localeRef:M}=Ih("Image");function C(){const{value:Z}=d;if(!o||!Z)return;const{style:me}=Z,ce=o.getBoundingClientRect(),Ee=ce.left+ce.width/2,_e=ce.top+ce.height/2;me.transformOrigin=`${Ee}px ${_e}px`}function P(Z){var me,ce;switch(Z.key){case" ":Z.preventDefault();break;case"ArrowLeft":(me=e.onPrev)===null||me===void 0||me.call(e);break;case"ArrowRight":(ce=e.onNext)===null||ce===void 0||ce.call(e);break;case"Escape":ve();break}}tn(x,Z=>{Z?gt("keydown",document,P):ut("keydown",document,P)}),nn(()=>{ut("keydown",document,P)});let $=0,X=0,q=0,re=0,N=0,_=0,Q=0,K=0,j=!1;function he(Z){const{clientX:me,clientY:ce}=Z;q=me-$,re=ce-X,Fs(te)}function G(Z){const{mouseUpClientX:me,mouseUpClientY:ce,mouseDownClientX:Ee,mouseDownClientY:_e}=Z,Xe=Ee-me,Ye=_e-ce,rt=`vertical${Ye>0?"Top":"Bottom"}`,et=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:rt,moveHorizontalDirection:et,deltaHorizontal:Xe,deltaVertical:Ye}}function le(Z){const{value:me}=f;if(!me)return{offsetX:0,offsetY:0};const ce=me.getBoundingClientRect(),{moveVerticalDirection:Ee,moveHorizontalDirection:_e,deltaHorizontal:Xe,deltaVertical:Ye}=Z||{};let rt=0,et=0;return ce.width<=window.innerWidth?rt=0:ce.left>0?rt=(ce.width-window.innerWidth)/2:ce.right<window.innerWidth?rt=-(ce.width-window.innerWidth)/2:_e==="horizontalRight"?rt=Math.min((ce.width-window.innerWidth)/2,N-(Xe!=null?Xe:0)):rt=Math.max(-((ce.width-window.innerWidth)/2),N-(Xe!=null?Xe:0)),ce.height<=window.innerHeight?et=0:ce.top>0?et=(ce.height-window.innerHeight)/2:ce.bottom<window.innerHeight?et=-(ce.height-window.innerHeight)/2:Ee==="verticalBottom"?et=Math.min((ce.height-window.innerHeight)/2,_-(Ye!=null?Ye:0)):et=Math.max(-((ce.height-window.innerHeight)/2),_-(Ye!=null?Ye:0)),{offsetX:rt,offsetY:et}}function ue(Z){ut("mousemove",document,he),ut("mouseup",document,ue);const{clientX:me,clientY:ce}=Z;j=!1;const Ee=G({mouseUpClientX:me,mouseUpClientY:ce,mouseDownClientX:Q,mouseDownClientY:K}),_e=le(Ee);q=_e.offsetX,re=_e.offsetY,te()}const ge=mn(ga,null);function Ae(Z){var me,ce;if((ce=(me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.onMousedown)===null||ce===void 0||ce.call(me,Z),Z.button!==0)return;const{clientX:Ee,clientY:_e}=Z;j=!0,$=Ee-q,X=_e-re,N=q,_=re,Q=Ee,K=_e,te(),gt("mousemove",document,he),gt("mouseup",document,ue)}function be(Z){var me,ce;(ce=(me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.onDblclick)===null||ce===void 0||ce.call(me,Z);const Ee=b();Te=Te===Ee?1:Ee,te()}const Pe=1.5;let Be=0,Te=1,pe=0;function ke(){Te=1,Be=0}function U(){var Z;ke(),pe=0,(Z=e.onPrev)===null||Z===void 0||Z.call(e)}function s(){var Z;ke(),pe=0,(Z=e.onNext)===null||Z===void 0||Z.call(e)}function l(){pe-=90,te()}function n(){pe+=90,te()}function m(){const{value:Z}=f;if(!Z)return 1;const{innerWidth:me,innerHeight:ce}=window,Ee=Math.max(1,Z.naturalHeight/(ce-Hn)),_e=Math.max(1,Z.naturalWidth/(me-Hn));return Math.max(3,Ee*2,_e*2)}function b(){const{value:Z}=f;if(!Z)return 1;const{innerWidth:me,innerHeight:ce}=window,Ee=Z.naturalHeight/(ce-Hn),_e=Z.naturalWidth/(me-Hn);return Ee<1&&_e<1?1:Math.max(Ee,_e)}function L(){const Z=m();Te<Z&&(Be+=1,Te=Math.min(Z,Math.pow(Pe,Be)),te())}function ae(){if(Te>.5){const Z=Te;Be-=1,Te=Math.max(.5,Math.pow(Pe,Be));const me=Z-Te;te(!1);const ce=le();Te+=me,te(!1),Te-=me,q=ce.offsetX,re=ce.offsetY,te()}}function te(Z=!0){var me;const{value:ce}=f;if(!ce)return;const{style:Ee}=ce,_e=is((me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.style);let Xe="";if(typeof _e=="string")Xe=_e+";";else for(const rt in _e)Xe+=`${Yd(rt)}: ${_e[rt]};`;const Ye=`transform-origin: center; transform: translateX(${q}px) translateY(${re}px) rotate(${pe}deg) scale(${Te});`;j?Ee.cssText=Xe+"cursor: grabbing; transition: none;"+Ye:Ee.cssText=Xe+"cursor: grab;"+Ye+(Z?"":"transition: none;"),Z||ce.offsetHeight}function ve(){x.value=!x.value,T.value=!0}function Re(){Te=b(),Be=Math.ceil(Math.log(Te)/Math.log(Pe)),q=0,re=0,te()}const Ne={setPreviewSrc:Z=>{y.value=Z},setThumbnailEl:Z=>{o=Z},toggleShow:ve};function Ie(Z,me){if(e.showToolbarTooltip){const{value:ce}=i;return ee(yp,{to:!1,theme:ce.peers.Tooltip,themeOverrides:ce.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>M.value[me],trigger:()=>Z})}else return Z}const st=Ue(()=>{const{common:{cubicBezierEaseInOut:Z},self:{toolbarIconColor:me,toolbarBorderRadius:ce,toolbarBoxShadow:Ee,toolbarColor:_e}}=i.value;return{"--n-bezier":Z,"--n-toolbar-icon-color":me,"--n-toolbar-color":_e,"--n-toolbar-border-radius":ce,"--n-toolbar-box-shadow":Ee}}),{inlineThemeDisabled:nt}=kn(),He=nt?Xr("image-preview",void 0,st,e):void 0;return Object.assign({previewRef:f,previewWrapperRef:d,previewSrc:y,show:x,appear:go(),displayed:T,previewedImgProps:ge==null?void 0:ge.previewedImgPropsRef,handleWheel(Z){Z.preventDefault()},handlePreviewMousedown:Ae,handlePreviewDblclick:be,syncTransformOrigin:C,handleAfterLeave:()=>{ke(),pe=0,T.value=!1},handleDragStart:Z=>{var me,ce;(ce=(me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.onDragstart)===null||ce===void 0||ce.call(me,Z),Z.preventDefault()},zoomIn:L,zoomOut:ae,rotateCounterclockwise:l,rotateClockwise:n,handleSwitchPrev:U,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 ee(Pt,null,(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e),ee(Bs,{show:this.show},{default:()=>{var f;return this.show||this.displayed?((f=this.onRender)===null||f===void 0||f.call(this),Vn(ee("div",{class:[`${o}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},ee(dn,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?ee("div",{class:`${o}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?ee(dn,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:d}=this;return ee("div",{class:`${o}-image-preview-toolbar`},this.onPrev?ee(Pt,null,d(ee(jt,{clsPrefix:o,onClick:this.handleSwitchPrev},{default:()=>xp}),"tipPrevious"),d(ee(jt,{clsPrefix:o,onClick:this.handleSwitchNext},{default:()=>Ap}),"tipNext")):null,d(ee(jt,{clsPrefix:o,onClick:this.rotateCounterclockwise},{default:()=>ee(Hh,null)}),"tipCounterclockwise"),d(ee(jt,{clsPrefix:o,onClick:this.rotateClockwise},{default:()=>ee(Wh,null)}),"tipClockwise"),d(ee(jt,{clsPrefix:o,onClick:this.resizeToOrignalImageSize},{default:()=>ee(Uh,null)}),"tipOriginalSize"),d(ee(jt,{clsPrefix:o,onClick:this.zoomOut},{default:()=>ee(qh,null)}),"tipZoomOut"),d(ee(jt,{clsPrefix:o,onClick:this.zoomIn},{default:()=>ee($h,null)}),"tipZoomIn"),d(ee(jt,{clsPrefix:o,onClick:this.toggleShow},{default:()=>Sp}),"tipClose"))}}):null,ee(dn,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:d={}}=this;return Vn(ee("div",{class:`${o}-image-preview-wrapper`,ref:"previewWrapperRef"},ee("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}))),[[co,this.show]])}})),[[mo,{enabled:this.show}]])):null}}))}}),Mp=wo("n-image-group"),Ep=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},va),Op=ct({name:"Image",props:Ep,inheritAttrs:!1,setup(e){const i=Ce(null),o=Ce(!1),f=Ce(null),d=mn(Mp,null),{mergedClsPrefixRef:y}=d||kn(e),x={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=Wt(()=>{C==null||C(),C=void 0,C=hp(i.value,e.intersectionObserverOptions,T)});nn(()=>{P(),C==null||C()})}}),Wt(()=>{var C;e.src,(C=e.imgProps)===null||C===void 0||C.src,o.value=!1});const M=Ce(!1);return Cn(ga,{previewedImgPropsRef:Kt(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,$;x.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}},x)},render(){var e,i;const{mergedClsPrefix:o,imgProps:f={},loaded:d,$attrs:y,lazy:x}=this,T=(i=(e=this.$slots).placeholder)===null||i===void 0?void 0:i.call(e),M=this.src||f.src,C=ee("img",Object.assign(Object.assign({},f),{ref:"imageRef",width:this.width||f.width,height:this.height||f.height,src:this.showError?this.fallbackSrc:x&&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:fp&&x&&!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 ee("div",Object.assign({},y,{role:"none",class:[y.class,`${o}-image`,(this.previewDisabled||this.showError)&&`${o}-image--preview-disabled`]}),this.groupId?C:ee(Tp,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:o,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>C}),!d&&T)}});const Pp="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",kp="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",Rp=ct({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(e){return()=>ne("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[ne("img",{class:"favoritIcon",src:e.isFavorite?kp:Pp},null)])}}),Dp="_book_1xtvx_1",Np="_back_1xtvx_11",_p="_bookHide_1xtvx_16",Lp="_wrap_1xtvx_36",Bp="_wrapItem_1xtvx_53",Fp="_item_1xtvx_60",Ip="_des_1xtvx_69",zp="_icon_1xtvx_74",jp="_last_1xtvx_79",xt={book:Dp,back:Np,bookHide:_p,wrap:Lp,wrapItem:Bp,item:Fp,des:Ip,icon:zp,last:jp},Wp="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=",Hp=ct({name:"courseware-detail",emits:["close"],setup(e,{emit:i}){const o=En({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("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",x)});const x=()=>{y()};fo(()=>{window.removeEventListener("resize",x)});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()=>ne(Wr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":C=>f.value=C},{default:()=>[ne("div",{class:Ze.content,onClick:()=>T()},[o.step!=o.steps.length-1&&ne("div",{class:Ze.backBtn,onClick:C=>{C.stopPropagation(),M()}},[vt("跳过")]),ne("div",{class:Ze.box,style:o.box,id:`modeType-${o.step}`},[o.steps.map((C,P)=>{var $,X;return ne("div",{onClick:q=>q.stopPropagation(),class:Ze.item,style:{display:P===o.step?"":"none",left:`${($=C.eleRect)==null?void 0:$.left}px`,top:`${(X=C.eleRect)==null?void 0:X.top}px`}},[ne("img",{class:Ze.img,style:C.imgStyle,src:C.img},null),ne("img",{class:Ze.iconHead,style:C.handStyle,src:Yt("indexDot.png")},null),ne("div",{class:Ze.btns,style:C.btnsStyle},[o.step+1==o.steps.length?ne(Pt,null,[ne(hn,{class:[Ze.btn,Ze.endBtn],round:!0,type:"primary",onClick:()=>M()},{default:()=>[vt("完成")]})]):ne(hn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("下一步 ("),o.step+1,vt("/"),o.steps.length,vt(")")]})])])})])])]})}}),$p=ct({name:"the-book",props:{bookData:{type:Object,default:()=>({})},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:i}){ho();const o=En({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem("lastTime")}),f=Ce(!1),d=async()=>{console.log("初始化完成")};let y=null,x=null;const T=()=>{y=window.$("#flipbook");const X=document.body.clientHeight*.8;o.height=X,o.width=X*(210/297)*2,y.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:o.width,height:o.height,gradients:!0})},M=()=>{const X=document.querySelector(".bookWrap");if(X){const q=X.getBoundingClientRect(),re=e.rect.width/(q.width/2),N=e.rect.height/q.height,_=(q.width/2*(re-1)/2+e.rect.x-q.x-q.width/4)/re,Q=(q.height*(N-1)/2+e.rect.y-q.y)/N,K=`scale3d(${re}, ${N}, 1) translate(${_}px, ${Q}px)`;X.style.transform=o.transform=K,X.style.transition="transform 0s",Mr(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{X.style.transition="transform 1s",X.style.transform="",o.show=!0,x=setTimeout(()=>{y.turn("page",2)},500),setTimeout(()=>{f.value=!0},1500)})})})}},C=()=>{clearTimeout(x);const X=document.querySelector(".bookWrap");y.turn("page",1),X&&(X.style.transform=o.transform),i("close"),setTimeout(()=>{X.style.transition="",X.style.transform="",o.show=!1,o.list=[]},1e3)};Ot(async()=>{await d(),os("webViewOnResume",()=>{o.lastTime=localStorage.getItem("lastTime")})});const P=()=>{var N;if(!((N=e.bookData)!=null&&N.lessonList))return;const X=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",X);const q=[];let re=[];for(let _=0;_<e.bookData.lessonList.length;_++){const Q=e.bookData.lessonList[_];re.length>=X?(q.push([...re]),re=[{name:Q.name}]):re.push({name:Q.name});for(let K=0;K<Q.knowledgeList.length;K++)re.length>=X?(q.push([...re]),re=[Q.knowledgeList[K]]):re.push(Q.knowledgeList[K])}re.length&&q.push(re),o.list=q};tn(()=>e.show,()=>{e.show&&(P(),Mr(()=>{T(),requestAnimationFrame(()=>{M()})}))});const $=X=>{if(X.id){if(!X.containMaterial){as("暂无资源");return}localStorage.setItem("lastTime",X.id);const q=cs.stringify({id:X.id,name:X.name,tab:e.tab}),re=location.origin+location.pathname+"#/courseware-play?"+q;console.log("🚀 ~ url:",re),po({api:"openWebView",content:{url:re,orientation:0,isHideTitle:!1}})}};return()=>ne("div",{class:[xt.book,o.show?"":xt.bookHide]},[ne("div",{class:xt.back,onClick:C},[ne("img",{src:Eo},null)]),ne("div",{class:"bookWrap",style:{width:o.width+"px"}},[!!o.list.length&&ne("div",{id:"flipbook",class:[o.show&&"animated"]},[ne("div",{class:"page"},[ne("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),o.list.map(X=>ne("div",{class:"page"},[ne("div",{class:xt.wrap},[ne("div",{class:xt.wrapItem},[X.map((q,re)=>ne(Pt,null,[ne("div",{class:[xt.item,q.id&&xt.des],onTouchstart:N=>{N.stopPropagation()},onClick:N=>{N.stopPropagation(),$(q)}},[q.id?ne("img",{id:re==1?"coursewareDetail-0":"",class:xt.icon,src:Wp},null):null,ne("div",{class:xt.name,style:{lineHeight:"20Px"}},[q.name,o.lastTime===q.id&&ne("span",{class:xt.last},[vt("上次观看")])])])]))])])])),ne("div",{class:"page",style:{pointerEvents:"none"}},[ne("div",{class:xt.wrap},[ne("div",{class:xt.wrapItem},null)])])])]),f.value?ne(Hp,null,null):null])}}),qp=ct({name:"courseware-list",emits:["close"],setup(e,{emit:i}){const o=En({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("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:Yt("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:Yt("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:Yt("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,$,X,q;const C=document.getElementById(`courseware-${o.step}`);if(C){const re=C.getBoundingClientRect(),N=((P=o.steps[o.step].eleRectPadding)==null?void 0:P.left)||0,_=(($=o.steps[o.step].eleRectPadding)==null?void 0:$.top)||0,Q=((X=o.steps[o.step].eleRectPadding)==null?void 0:X.width)||0,K=((q=o.steps[o.step].eleRectPadding)==null?void 0:q.height)||0;o.box={left:re.x-N+"px",top:re.y-_+"px",width:re.width+Q+"px",height:re.height+K+"px"}}else T()};Ot(()=>{y(),window.addEventListener("resize",x)});const x=()=>{y()};fo(()=>{window.removeEventListener("resize",x)});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()=>ne(Wr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":C=>f.value=C},{default:()=>[ne("div",{class:Ze.content,onClick:()=>T()},[o.step!=o.steps.length-1&&ne("div",{class:Ze.backBtn,onClick:C=>{C.stopPropagation(),M()}},[vt("跳过")]),ne("div",{class:Ze.box,style:{...o.box,...o.steps[o.step].boxStyle},id:`modeType-${o.step}`},[o.steps.map((C,P)=>{var $,X;return ne("div",{onClick:q=>q.stopPropagation(),class:Ze.item,style:{display:P===o.step?"":"none",left:`${($=C.eleRect)==null?void 0:$.left}px`,top:`${(X=C.eleRect)==null?void 0:X.top}px`}},[ne("img",{class:Ze.img,style:C.imgStyle,src:C.img},null),ne("img",{class:Ze.iconHead,style:C.handStyle,src:Yt("indexDot.png")},null),ne("div",{class:Ze.btns,style:C.btnsStyle},[o.step+1==o.steps.length?ne(Pt,null,[ne(hn,{class:[Ze.btn],round:!0,type:"primary",onClick:()=>M()},{default:()=>[vt("完成")]}),ne(hn,{class:[Ze.btn,Ze.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{o.step=0,y()}},{default:()=>[vt("再看一遍")]})]):ne(hn,{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(!dr[t]){var r=U.body,a=n("<"+t+">").appendTo(r),u=a.css("display");a.remove(),(u==="none"||u==="")&&(Mt||(Mt=U.createElement("iframe"),Mt.frameBorder=Mt.width=Mt.height=0),r.appendChild(Mt),(!ln||!Mt.createElement)&&(ln=(Mt.contentWindow||Mt.contentDocument).document,ln.write((U.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ln.close()),a=ln.createElement(t),ln.body.appendChild(a),u=n.css(a,"display"),r.removeChild(Mt)),dr[t]=u}return dr[t]}function d(t,r){var a={};return n.each(di.concat.apply([],di.slice(0,r)),function(){a[this]=t}),a}function y(){Nn=i}function x(){return setTimeout(y,0),Nn=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,B,z;for(c=1;c<v;c++){if(c===1)for(h in t.converters)typeof h=="string"&&(u[h.toLowerCase()]=t.converters[h]);if(k=S,S=a[c],S==="*")S=k;else if(k!=="*"&&k!==S){if(E=k+" "+S,O=u[E]||u["* "+S],!O){z=i;for(B in u)if(g=B.split(" "),(g[0]===k||g[0]==="*")&&(z=u[g[1]+" "+S],z)){B=u[B],B===!0?O=z:z===!0&&(O=B);break}}!O&&!z&&n.error("No conversion from "+E.replace(" "," to ")),O!==!0&&(r=O?O(r):z(B(r)))}}return r}function P(t,r,a){var u=t.contents,c=t.dataTypes,h=t.responseFields,v,g,S,k;for(g in h)g in a&&(r[h[g]]=a[g]);for(;c[0]==="*";)c.shift(),v===i&&(v=t.mimeType||r.getResponseHeader("content-type"));if(v){for(g in u)if(u[g]&&u[g].test(v)){c.unshift(g);break}}if(c[0]in a)S=c[0];else{for(g in a){if(!c[0]||t.converters[g+" "+c[0]]){S=g;break}k||(k=g)}S=S||k}if(S)return S!==c[0]&&c.unshift(S),a[S]}function $(t,r,a,u){if(n.isArray(r))n.each(r,function(h,v){a||Ta.test(t)?u(t,v):$(t+"["+(typeof v=="object"||n.isArray(v)?h:"")+"]",v,a,u)});else if(!a&&r!=null&&typeof r=="object")for(var c in r)$(t+"["+c+"]",r[c],a,u);else u(t,r)}function X(t,r){var a,u,c=n.ajaxSettings.flatOptions||{};for(a in r)r[a]!==i&&((c[a]?t:u||(u={}))[a]=r[a]);u&&n.extend(!0,t,u)}function q(t,r,a,u,c,h){c=c||r.dataTypes[0],h=h||{},h[c]=!0;for(var v=t[c],g=0,S=v?v.length:0,k=t===cr,E;g<S&&(k||!E);g++)E=v[g](r,a,u),typeof E=="string"&&(!k||h[E]?E=i:(r.dataTypes.unshift(E),E=q(t,r,a,u,E,h)));return(k||!E)&&!h["*"]&&(E=q(t,r,a,u,"*",h)),E}function re(t){return function(r,a){if(typeof r!="string"&&(a=r,r="*"),n.isFunction(a))for(var u=r.toLowerCase().split(si),c=0,h=u.length,v,g,S;c<h;c++)v=u[c],S=/^\+/.test(v),S&&(v=v.substr(1)||"*"),g=t[v]=t[v]||[],g[S?"unshift":"push"](a)}}function N(t,r,a){var u=r==="width"?t.offsetWidth:t.offsetHeight,c=r==="width"?Aa:Sa;return u>0?(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=an(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 _(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 Q(t){var r=(t.nodeName||"").toLowerCase();r==="input"?K(t):r!=="script"&&typeof t.getElementsByTagName<"u"&&n.grep(t.getElementsByTagName("input"),K)}function K(t){(t.type==="checkbox"||t.type==="radio")&&(t.defaultChecked=t.checked)}function j(t){return typeof t.getElementsByTagName<"u"?t.getElementsByTagName("*"):typeof t.querySelectorAll<"u"?t.querySelectorAll("*"):[]}function he(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 G(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<c;u++)n.event.add(r,a+(g[a][u].namespace?".":"")+g[a][u].namespace,g[a][u],g[a][u].data)}v.data&&(v.data=n.extend({},v.data))}}function le(t,r){return n.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function ue(t){var r=wt.split(" "),a=t.createDocumentFragment();if(a.createElement)for(;r.length;)a.createElement(r.pop());return a}function ge(t,r,a){if(r=r||0,n.isFunction(r))return n.grep(t,function(c,h){var v=!!r.call(c,h,c);return v===a});if(r.nodeType)return n.grep(t,function(c,h){return c===r===a});if(typeof r=="string"){var u=n.grep(t,function(c){return c.nodeType===1});if(Rt.test(r))return n.filter(r,u,!a);r=n.filter(r,u)}return n.grep(t,function(c,h){return n.inArray(c,r)>=0===a})}function Ae(t){return!t||!t.parentNode||t.parentNode.nodeType===11}function be(){return!0}function Pe(){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 pe(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):L.test(a)?n.parseJSON(a):a}catch(c){}n.data(t,r,a)}else a=i}return a}function ke(t){var r=m[t]={},a,u;for(t=t.split(/\s+/),a=0,u=t.length;a<u;a++)r[t[a]]=!0;return r}var U=e.document,s=e.navigator,l=e.location,n=function(){function t(){if(!r.isReady){try{U.documentElement.doScroll("left")}catch(w){setTimeout(t,1);return}r.ready()}}var r=function(w,H){return new r.fn.init(w,H,c)},a=e.jQuery,u=e.$,c,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/\S/,g=/^\s+/,S=/\s+$/,k=/\d/,E=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=/^[\],:{}\s]*$/,B=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,z=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,J=/(?:^|:|,)(?:\s*\[)+/g,ye=/(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()},A=s.userAgent,R,D,F,I=Object.prototype.toString,V=Object.prototype.hasOwnProperty,se=Array.prototype.push,ie=Array.prototype.slice,de=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&&U.body)return this.context=U,this[0]=U.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:U,Le=E.exec(w),Le?r.isPlainObject(H)?(w=[U.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=U.getElementById(W[2]),Oe&&Oe.parentNode){if(Oe.id!==W[2])return oe.find(w);this.length=1,this[0]=Oe}return this.context=U,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(),D.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,hr=!1;for(typeof We=="boolean"&&(hr=We,We=arguments[1]||{},ht=2),typeof We!="object"&&!r.isFunction(We)&&(We={}),St===ht&&(We=this,--ht);ht<St;ht++)if((w=arguments[ht])!=null)for(H in w)oe=We[H],W=w[H],We!==W&&(hr&&W&&(r.isPlainObject(W)||(Oe=r.isArray(W)))?(Oe?(Oe=!1,Le=oe&&r.isArray(oe)?oe:[]):Le=oe&&r.isPlainObject(oe)?oe:{},We[H]=r.extend(hr,Le,W)):W!==i&&(We[H]=W));return We},r.extend({noConflict:function(w){return e.$===r&&(e.$=u),w&&e.jQuery===r&&(e.jQuery=a),r},isReady:!1,readyWait:1,holdReady:function(w){w?r.readyWait++:r.ready(!0)},ready:function(w){if(w===!0&&!--r.readyWait||w!==!0&&!r.isReady){if(!U.body)return setTimeout(r.ready,1);if(r.isReady=!0,w!==!0&&--r.readyWait>0)return;D.fireWith(U,[r]),r.fn.trigger&&r(U).trigger("ready").unbind("ready")}},bindReady:function(){if(!D){if(D=r.Callbacks("once memory"),U.readyState==="complete")return setTimeout(r.ready,1);if(U.addEventListener)U.addEventListener("DOMContentLoaded",F,!1),e.addEventListener("load",r.ready,!1);else if(U.attachEvent){U.attachEvent("onreadystatechange",F),e.attachEvent("onload",r.ready);var w=!1;try{w=e.frameElement==null}catch(H){}U.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[I.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(B,"@").replace(z,"]").replace(J,"")))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(;Oe<Le&&H.apply(w[Oe++],oe)!==!1;);else if(We){for(W in w)if(H.call(w[W],W,w[W])===!1)break}else for(;Oe<Le&&H.call(w[Oe],Oe,w[Oe++])!==!1;);return w},trim:de?function(w){return w==null?"":de.call(w)}:function(w){return w==null?"":(w+"").replace(g,"").replace(S,"")},makeArray:function(w,H){var oe=H||[];if(w!=null){var W=r.type(w);w.length==null||W==="string"||W==="function"||W==="regexp"||r.isWindow(w)?se.call(oe,w):r.merge(oe,w)}return oe},inArray:function(w,H,oe){var W;if(H){if(dt)return dt.call(H,w,oe);for(W=H.length,oe=oe?oe<0?Math.max(0,W+oe):oe:0;oe<W;oe++)if(oe in H&&H[oe]===w)return oe}return-1},merge:function(w,H){var oe=w.length,W=0;if(typeof H.length=="number")for(var Oe=H.length;W<Oe;W++)w[oe++]=H[W];else for(;H[W]!==i;)w[oe++]=H[W++];return w.length=oe,w},grep:function(w,H,oe){var W=[],Oe;oe=!!oe;for(var Le=0,We=w.length;Le<We;Le++)Oe=!!H(w[Le],Le),oe!==Oe&&W.push(w[Le]);return W},map:function(w,H,oe){var W,Oe,Le=[],We=0,ht=w.length,St=w instanceof r||ht!==i&&typeof ht=="number"&&(ht>0&&w[0]&&w[ht-1]||ht===0||r.isArray(w));if(St)for(;We<ht;We++)W=H(w[We],We,oe),W!=null&&(Le[Le.length]=W);else for(Oe in w)W=H(w[Oe],Oe,oe),W!=null&&(Le[Le.length]=W);return Le.concat.apply([],Le)},guid:1,proxy:function(w,H){if(typeof H=="string"){var oe=w[H];H=w,w=oe}if(!r.isFunction(w))return i;var W=ie.call(arguments,2),Oe=function(){return w.apply(H,W.concat(ie.call(arguments)))};return Oe.guid=w.guid=w.guid||Oe.guid||r.guid++,Oe},access:function(w,H,oe,W,Oe,Le){var We=w.length;if(typeof H=="object"){for(var ht in H)r.access(w,ht,H[ht],W,Oe,oe);return w}if(oe!==i){W=!Le&&W&&r.isFunction(oe);for(var St=0;St<We;St++)Oe(w[St],H,W?oe.call(w[St],St,Oe(w[St],H)):oe,Le);return w}return We?Oe(w[0],H):i},now:function(){return new Date().getTime()},uaMatch:function(w){w=w.toLowerCase();var H=ye.exec(w)||Me.exec(w)||Se.exec(w)||w.indexOf("compatible")<0&&it.exec(w)||[];return{browser:H[1]||"",version:H[2]||"0"}},sub:function(){function w(oe,W){return new w.fn.init(oe,W)}r.extend(!0,w,this),w.superclass=this,w.fn=w.prototype=this(),w.fn.constructor=w,w.sub=this.sub,w.fn.init=function(oe,W){return W&&W instanceof r&&!(W instanceof w)&&(W=w(W)),r.fn.init.call(this,oe,W,H)},w.fn.init.prototype=w.fn;var H=w(U);return w},browser:{}}),r.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(w,H){tt["[object "+H+"]"]=H.toLowerCase()}),R=r.uaMatch(A),R.browser&&(r.browser[R.browser]=!0,r.browser.version=R.version),r.browser.webkit&&(r.browser.safari=!0),v.test(" ")&&(g=/^[\s\xA0]+/,S=/[\s\xA0]+$/),c=r(U),U.addEventListener?F=function(){U.removeEventListener("DOMContentLoaded",F,!1),r.ready()}:U.attachEvent&&(F=function(){U.readyState==="complete"&&(U.detachEvent("onreadystatechange",F),r.ready())}),typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return r}),r}(),m={};n.Callbacks=function(t){t=t?m[t]||ke(t):{};var r=[],a=[],u,c,h,v,g,S=function(O){var B,z,J,ye;for(B=0,z=O.length;B<z;B++)J=O[B],ye=n.type(J),ye==="array"?S(J):ye==="function"&&(!t.unique||!E.has(J))&&r.push(J)},k=function(O,B){for(B=B||[],u=!t.memory||[O,B],c=!0,g=h||0,h=0,v=r.length;r&&g<v;g++)if(r[g].apply(O,B)===!1&&t.stopOnFalse){u=!0;break}c=!1,r&&(t.once?u===!0?E.disable():r=[]:a&&a.length&&(u=a.shift(),E.fireWith(u[0],u[1])))},E={add:function(){if(r){var O=r.length;S(arguments),c?v=r.length:u&&u!==!0&&(h=O,k(u[0],u[1]))}return this},remove:function(){if(r)for(var O=arguments,B=0,z=O.length;B<z;B++)for(var J=0;J<r.length&&!(O[B]===r[J]&&(c&&J<=v&&(v--,J<=g&&g--),r.splice(J--,1),t.unique));J++);return this},has:function(O){if(r){for(var B=0,z=r.length;B<z;B++)if(O===r[B])return!0}return!1},empty:function(){return r=[],this},disable:function(){return r=a=u=i,this},disabled:function(){return!r},lock:function(){return a=i,(!u||u===!0)&&E.disable(),this},locked:function(){return!a},fireWith:function(O,B){return a&&(c?t.once||a.push([O,B]):(!t.once||!u)&&k(O,B)),this},fire:function(){return E.fireWith(this,arguments),this},fired:function(){return!!u}};return E};var b=[].slice;n.extend({Deferred:function(t){var r=n.Callbacks("once memory"),a=n.Callbacks("once memory"),u=n.Callbacks("memory"),c="pending",h={resolve:r,reject:a,notify:u},v={done:r.add,fail:a.add,progress:u.add,state:function(){return c},isResolved:r.fired,isRejected:a.fired,then:function(k,E,O){return g.done(k).fail(E).progress(O),this},always:function(){return g.done.apply(g,arguments).fail.apply(g,arguments)},pipe:function(k,E,O){return n.Deferred(function(B){n.each({done:[k,"resolve"],fail:[E,"reject"],progress:[O,"notify"]},function(z,J){var ye=J[0],Me=J[1],Se;n.isFunction(ye)?g[z](function(){Se=ye.apply(this,arguments),Se&&n.isFunction(Se.promise)?Se.promise().then(B.resolve,B.reject,B.notify):B[Me+"With"](this===g?B:this,[Se])}):g[z](B[Me])})}).promise()},promise:function(k){if(k==null)k=v;else for(var E in v)k[E]=v[E];return k}},g=v.promise({}),S;for(S in h)g[S]=h[S].fire,g[S+"With"]=h[S].fireWith;return g.done(function(){c="resolved"},a.disable,u.lock).fail(function(){c="rejected"},r.disable,u.lock),t&&t.call(g,g),g},when:function(t){function r(E){return function(O){v[E]=arguments.length>1?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<h;c++)u[c]&&u[c].promise&&n.isFunction(u[c].promise)?u[c].promise().then(a(c),S.reject,r(c)):--g;g||S.resolveWith(S,u)}else S!==t&&S.resolveWith(S,h?[t]:[]);return k}}),n.support=function(){var t=U.createElement("div"),r=U.documentElement,a,u,c,h,v,g,S,k,E,O,B,z,J,ye,Me,Se;if(t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>",a=t.getElementsByTagName("*"),u=t.getElementsByTagName("a")[0],!a||!a.length||!u)return{};c=U.createElement("select"),h=c.appendChild(U.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:!!U.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=U.createElement("input"),v.value="t",v.setAttribute("type","radio"),S.radioValue=v.value==="t",v.setAttribute("checked","checked"),t.appendChild(v),k=U.createDocumentFragment(),k.appendChild(t.lastChild),S.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",E=U.getElementsByTagName("body")[0],B=U.createElement(E?"div":"body"),z={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},E&&n.extend(z,{position:"absolute",left:"-999px",top:"-999px"});for(Me in z)B.style[Me]=z[Me];if(B.appendChild(t),O=E||r,O.insertBefore(B,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="<div style='width:4px;'></div>",S.shrinkWrapBlocks=t.offsetWidth!==2),t.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",J=t.getElementsByTagName("td"),Se=J[0].offsetHeight===0,J[0].style.display="",J[1].style.display="none",S.reliableHiddenOffsets=Se&&J[0].offsetHeight===0,t.innerHTML="",U.defaultView&&U.defaultView.getComputedStyle&&(g=U.createElement("div"),g.style.width="0",g.style.marginRight="0",t.appendChild(g),S.reliableMarginRight=(parseInt((U.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(Me in{submit:1,change:1,focusin:1})ye="on"+Me,Se=ye in t,Se||(t.setAttribute(ye,"return;"),Se=typeof t[ye]=="function"),S[Me+"Bubbles"]=Se;return n(function(){var it,ot,xe,p,A,R=1,D="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",F="visibility:hidden;border:0;",I="style='"+D+"border:5px solid #000;padding:0;'",V="<div "+I+"><div></div></div><table "+I+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";E=U.getElementsByTagName("body")[0],!E||(it=U.createElement("div"),it.style.cssText=F+"width:0;height:0;position:static;top:0;margin-top:"+R+"px",E.insertBefore(it,E.firstChild),B=U.createElement("div"),B.style.cssText=D+F,B.innerHTML=V,it.appendChild(B),ot=B.firstChild,xe=ot.firstChild,p=ot.nextSibling.firstChild.firstChild,A={doesNotAddBorder:xe.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},xe.style.position="fixed",xe.style.top="20px",A.fixedPosition=xe.offsetTop===20||xe.offsetTop===15,xe.style.position=xe.style.top="",ot.style.overflow="hidden",ot.style.position="relative",A.subtractsBorderForOverflowNotVisible=xe.offsetTop===-5,A.doesNotIncludeMarginInBodyOffset=E.offsetTop!==R,E.removeChild(it),B=it=null,n.extend(S,A))}),B.innerHTML="",O.removeChild(B),B=k=c=h=E=g=t=v=null,S}(),n.boxModel=n.support.boxModel;var L=/^(?:\{.*\}|\[.*\])$/,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<h;c++)delete u[r[c]];if(!(a?Te:n.isEmptyObject)(u))return}if(!a&&(delete g[S].data,!Te(g[S])))return;n.support.deleteExpando||!g.setInterval?delete g[S]:g[S]=null,v&&(n.support.deleteExpando?delete t[n.expando]:t.removeAttribute?t.removeAttribute(n.expando):t[n.expando]=null)}},_data:function(t,r,a){return n.data(t,r,a,!0)},acceptData:function(t){if(t.nodeName){var r=n.noData[t.nodeName.toLowerCase()];if(r)return r!==!0&&t.getAttribute("classid")===r}return!0}}),n.fn.extend({data:function(t,r){var a,u,c,h=null;if(typeof t>"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<g;v++)c=u[v].name,c.indexOf("data-")===0&&(c=n.camelCase(c.substring(5)),pe(this[0],c,h[c]));n._data(this[0],"parsedAttrs",!0)}return h}return typeof t=="object"?this.each(function(){n.data(this,t)}):(a=t.split("."),a[1]=a[1]?"."+a[1]:"",r===i?(h=this.triggerHandler("getData"+a[1]+"!",[a[0]]),h===i&&this.length&&(h=n.data(this[0],t),h=pe(this[0],t,h)),h===i&&a[1]?this.data(a[0]):h):this.each(function(){var S=n(this),k=[a[0],r];S.triggerHandler("setData"+a[1]+"!",k),n.data(this,t,r),S.triggerHandler("changeData"+a[1]+"!",k)}))},removeData:function(t){return this.each(function(){n.removeData(this,t)})}}),n.extend({_mark:function(t,r){t&&(r=(r||"fx")+"mark",n._data(t,r,(n._data(t,r)||0)+1))},_unmark:function(t,r,a){if(t!==!0&&(a=r,r=t,t=!1),r){a=a||"fx";var u=a+"mark",c=t?0:(n._data(r,u)||1)-1;c?n._data(r,u,c):(n.removeData(r,u,!0),Be(r,a,"mark"))}},queue:function(t,r,a){var u;if(t)return r=(r||"fx")+"queue",u=n._data(t,r),a&&(!u||n.isArray(a)?u=n._data(t,r,n.makeArray(a)):u.push(a)),u||[]},dequeue:function(t,r){r=r||"fx";var a=n.queue(t,r),u=a.shift(),c={};u==="inprogress"&&(u=a.shift()),u&&(r==="fx"&&a.unshift("inprogress"),n._data(t,r+".run",c),u.call(t,function(){n.dequeue(t,r)},c)),a.length||(n.removeData(t,r+"queue "+r+".run",!0),Be(t,r,"queue"))}}),n.fn.extend({queue:function(t,r){return typeof t!="string"&&(r=t,t="fx"),r===i?n.queue(this[0],t):this.each(function(){var a=n.queue(this,t,r);t==="fx"&&a[0]!=="inprogress"&&n.dequeue(this,t)})},dequeue:function(t){return this.each(function(){n.dequeue(this,t)})},delay:function(t,r){return t=n.fx&&n.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(a,u){var c=setTimeout(a,t);u.stop=function(){clearTimeout(c)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,r){function a(){--v||u.resolveWith(c,[c])}typeof t!="string"&&(t=i),t=t||"fx";for(var u=n.Deferred(),c=this,h=c.length,v=1,g=t+"defer",S=t+"queue",k=t+"mark",E;h--;)(E=n.data(c[h],g,i,!0)||(n.data(c[h],S,i,!0)||n.data(c[h],k,i,!0))&&n.data(c[h],g,n.Callbacks("once memory"),!0))&&(v++,E.add(a));return a(),u.promise()}});var te=/[\n\t\r]/g,ve=/\s+/,Re=/\r/g,Ne=/^(?:button|input)$/i,Ie=/^(?:button|input|object|select|textarea)$/i,st=/^a(?:rea)?$/i,nt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,He=n.support.getSetAttribute,Z,me,ce;n.fn.extend({attr:function(t,r){return n.access(this,t,r,!0,n.attr)},removeAttr:function(t){return this.each(function(){n.removeAttr(this,t)})},prop:function(t,r){return n.access(this,t,r,!0,n.prop)},removeProp:function(t){return t=n.propFix[t]||t,this.each(function(){try{this[t]=i,delete this[t]}catch(r){}})},addClass:function(t){var r,a,u,c,h,v,g;if(n.isFunction(t))return this.each(function(S){n(this).addClass(t.call(this,S,this.className))});if(t&&typeof t=="string"){for(r=t.split(ve),a=0,u=this.length;a<u;a++)if(c=this[a],c.nodeType===1)if(!c.className&&r.length===1)c.className=t;else{for(h=" "+c.className+" ",v=0,g=r.length;v<g;v++)~h.indexOf(" "+r[v]+" ")||(h+=r[v]+" ");c.className=n.trim(h)}}return this},removeClass:function(t){var r,a,u,c,h,v,g;if(n.isFunction(t))return this.each(function(S){n(this).removeClass(t.call(this,S,this.className))});if(t&&typeof t=="string"||t===i){for(r=(t||"").split(ve),a=0,u=this.length;a<u;a++)if(c=this[a],c.nodeType===1&&c.className)if(t){for(h=(" "+c.className+" ").replace(te," "),v=0,g=r.length;v<g;v++)h=h.replace(" "+r[v]+" "," ");c.className=n.trim(h)}else c.className=""}return this},toggleClass:function(t,r){var a=typeof t,u=typeof r=="boolean";return n.isFunction(t)?this.each(function(c){n(this).toggleClass(t.call(this,c,this.className,r),r)}):this.each(function(){if(a==="string")for(var c,h=0,v=n(this),g=r,S=t.split(ve);c=S[h++];)g=u?g:!v.hasClass(c),v[g?"addClass":"removeClass"](c);else(a==="undefined"||a==="boolean")&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||t===!1?"":n._data(this,"__className__")||"")})},hasClass:function(t){for(var r=" "+t+" ",a=0,u=this.length;a<u;a++)if(this[a].nodeType===1&&(" "+this[a].className+" ").replace(te," ").indexOf(r)>-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<u;a++)if(c=g[a],c.selected&&(n.support.optDisabled?!c.disabled:c.getAttribute("disabled")===null)&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(r=n(c).val(),S)return r;v.push(r)}return S&&!v.length&&g.length?n(g[h]).val():v},set:function(t,r){var a=n.makeArray(r);return n(t).find("option").each(function(){this.selected=n.inArray(n(this).val(),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)?me:Z)),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(ve),h=u.length;v<h;v++)c=u[v].toLowerCase(),a=n.propFix[c]||c,n.attr(t,c,""),t.removeAttribute(He?c:a),nt.test(c)&&a in t&&(t[a]=!1)},attrHooks:{type:{set:function(t,r){if(Ne.test(t.nodeName)&&t.parentNode)n.error("type property can't be changed");else if(!n.support.radioValue&&r==="radio"&&n.nodeName(t,"input")){var a=t.value;return t.setAttribute("type",r),a&&(t.value=a),r}}},value:{get:function(t,r){return Z&&n.nodeName(t,"button")?Z.get(t,r):r in t?t.value:null},set:function(t,r,a){if(Z&&n.nodeName(t,"button"))return Z.set(t,r,a);t.value=r}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,r,a){var u,c,h,v=t.nodeType;return!t||v===3||v===8||v===2?i:(h=v!==1||!n.isXMLDoc(t),h&&(r=n.propFix[r]||r,c=n.propHooks[r]),a!==i?c&&"set"in c&&(u=c.set(t,a,r))!==i?u:t[r]=a:c&&"get"in c&&(u=c.get(t,r))!==null?u:t[r])},propHooks:{tabIndex:{get:function(t){var r=t.getAttributeNode("tabindex");return r&&r.specified?parseInt(r.value,10):Ie.test(t.nodeName)||st.test(t.nodeName)&&t.href?0:i}}}}),n.attrHooks.tabindex=n.propHooks.tabIndex,me={get:function(t,r){var a,u=n.prop(t,r);return u===!0||typeof u!="boolean"&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():i},set:function(t,r,a){var u;return r===!1?n.removeAttr(t,a):(u=n.propFix[a]||a,u in t&&(t[u]=!0),t.setAttribute(a,a.toLowerCase())),a}},He||(ce={name:!0,id:!0},Z=n.valHooks.button={get:function(t,r){var a;return a=t.getAttributeNode(r),a&&(ce[r]?a.nodeValue!=="":a.specified)?a.nodeValue:i},set:function(t,r,a){var u=t.getAttributeNode(a);return u||(u=U.createAttribute(a),t.setAttributeNode(u)),u.nodeValue=r+""}},n.attrHooks.tabindex.set=Z.set,n.each(["width","height"],function(t,r){n.attrHooks[r]=n.extend(n.attrHooks[r],{set:function(a,u){if(u==="")return a.setAttribute(r,"auto"),u}})}),n.attrHooks.contenteditable={get:Z.get,set:function(t,r,a){r===""&&(r="false"),Z.set(t,r,a)}}),n.support.hrefNormalized||n.each(["href","src","width","height"],function(t,r){n.attrHooks[r]=n.extend(n.attrHooks[r],{get:function(a){var u=a.getAttribute(r,2);return u===null?i:u}})}),n.support.style||(n.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||i},set:function(t,r){return t.style.cssText=""+r}}),n.support.optSelected||(n.propHooks.selected=n.extend(n.propHooks.selected,{get:function(t){var r=t.parentNode;return r&&(r.selectedIndex,r.parentNode&&r.parentNode.selectedIndex),null}})),n.support.enctype||(n.propFix.enctype="encoding"),n.support.checkOn||n.each(["radio","checkbox"],function(){n.valHooks[this]={get:function(t){return t.getAttribute("value")===null?"on":t.value}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]=n.extend(n.valHooks[this],{set:function(t,r){if(n.isArray(r))return t.checked=n.inArray(n(t).val(),r)>=0}})});var Ee=/^(?:textarea|input|select)$/i,_e=/^([^\.]*)?(?:\.(.+))?$/,Xe=/\bhover(\.\S+)?/,Ye=/^key/,rt=/^(?:mouse|contextmenu)|click/,et=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,kt=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},on=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,B,z,J,ye;if(!(t.nodeType===3||t.nodeType===8||!r||!a||!(h=n._data(t)))){for(a.handler&&(z=a,a=z.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<r.length;S++)k=_e.exec(r[S])||[],E=k[1],O=(k[2]||"").split(".").sort(),ye=n.event.special[E]||{},E=(c?ye.delegateType:ye.bindType)||E,ye=n.event.special[E]||{},B=n.extend({type:E,origType:k[1],data:u,handler:a,guid:a.guid,selector:c,namespace:O.join(".")},z),c&&(B.quick=kt(c),!B.quick&&n.expr.match.POS.test(c)&&(B.isPositional=!0)),J=g[E],J||(J=g[E]=[],J.delegateCount=0,(!ye.setup||ye.setup.call(t,u,O,v)===!1)&&(t.addEventListener?t.addEventListener(E,v,!1):t.attachEvent&&t.attachEvent("on"+E,v))),ye.add&&(ye.add.call(t,B),B.handler.guid||(B.handler.guid=a.guid)),c?J.splice(J.delegateCount++,0,B):J.push(B),n.event.global[E]=!0;t=null}},global:{},remove:function(t,r,a,u){var c=n.hasData(t)&&n._data(t),h,v,g,S,k,E,O,B,z,J,ye;if(c&&(O=c.events)){for(r=pt(r||"").split(" "),h=0;h<r.length;h++){if(v=_e.exec(r[h])||[],g=v[1],S=v[2],!g){S=S?"."+S:"";for(E in O)n.event.remove(t,E+S,a,u);return}if(B=n.event.special[g]||{},g=(u?B.delegateType:B.bindType)||g,J=O[g]||[],k=J.length,S=S?new RegExp("(^|\\.)"+S.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,a||S||u||B.remove)for(E=0;E<J.length;E++)ye=J[E],(!a||a.guid===ye.guid)&&(!S||S.test(ye.namespace))&&(!u||u===ye.selector||u==="**"&&ye.selector)&&(J.splice(E--,1),ye.selector&&J.delegateCount--,B.remove&&B.remove.call(t,ye));else J.length=0;J.length===0&&k!==J.length&&((!B.teardown||B.teardown.call(t,S)===!1)&&n.removeEvent(t,g,c.handle),delete O[g])}n.isEmptyObject(O)&&(z=c.handle,z&&(z.elem=null),n.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(t,r,a,u){if(!a||a.nodeType!==3&&a.nodeType!==8){var c=t.type||t,h=[],v,g,S,k,E,O,B,z,J,ye;if(c.indexOf("!")>=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),B=n.event.special[c]||{},B.trigger&&B.trigger.apply(a,r)===!1)return;if(J=[[a,B.bindType||c]],!u&&!B.noBubble&&!n.isWindow(a)){for(ye=B.delegateType||c,E=null,k=a.parentNode;k;k=k.parentNode)J.push([k,ye]),E=k;E&&E===a.ownerDocument&&J.push([E.defaultView||E.parentWindow||e,ye])}for(S=0;S<J.length&&(k=J[S][0],t.type=J[S][1],z=(n._data(k,"events")||{})[t.type]&&n._data(k,"handle"),z&&z.apply(k,r),z=O&&k[O],z&&n.acceptData(k)&&z.apply(k,r),!t.isPropagationStopped());S++);return t.type=c,t.isDefaultPrevented()||(!B._default||B._default.apply(a.ownerDocument,r)===!1)&&(c!=="click"||!n.nodeName(a,"a"))&&n.acceptData(a)&&O&&a[c]&&(c!=="focus"&&c!=="blur"||t.target.offsetWidth!==0)&&!n.isWindow(a)&&(E=a[O],E&&(a[O]=null),n.event.triggered=c,a[c](),n.event.triggered=i,E&&(a[O]=E)),t.result}},dispatch:function(t){t=n.event.fix(t||e.event);var r=(n._data(this,"events")||{})[t.type]||[],a=r.delegateCount,u=[].slice.call(arguments,0),c=!t.exclusive&&!t.namespace,h=(n.event.special[t.type]||{}).handle,v=[],g,S,k,E,O,B,z,J,ye,Me;if(u[0]=t,t.delegateTarget=this,a&&!t.target.disabled&&(!t.button||t.type!=="click"))for(k=t.target;k!=this;k=k.parentNode||this){for(O={},z=[],g=0;g<a;g++)J=r[g],ye=J.selector,Me=O[ye],J.isPositional?Me=(Me||(O[ye]=n(ye))).index(k)>=0:Me===i&&(Me=O[ye]=J.quick?on(k,J.quick):n(k).is(ye)),Me&&z.push(J);z.length&&v.push({elem:k,matches:z})}for(r.length>a&&v.push({elem:this,matches:r.slice(a)}),g=0;g<v.length&&!t.isPropagationStopped();g++)for(B=v[g],t.currentTarget=B.elem,S=0;S<B.matches.length&&!t.isImmediatePropagationStopped();S++)J=B.matches[S],(c||!t.namespace&&!J.namespace||t.namespace_re&&t.namespace_re.test(J.namespace))&&(t.data=J.data,t.handleObj=J,E=(h||J.handler).apply(B.elem,u),E!==i&&(t.result=E,E===!1&&(t.preventDefault(),t.stopPropagation())));return t.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,r){return t.which==null&&(t.which=r.charCode!=null?r.charCode:r.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(t,r){var a,u,c,h=r.button,v=r.fromElement;return t.pageX==null&&r.clientX!=null&&(a=t.target.ownerDocument||U,u=a.documentElement,c=a.body,t.pageX=r.clientX+(u&&u.scrollLeft||c&&c.scrollLeft||0)-(u&&u.clientLeft||c&&c.clientLeft||0),t.pageY=r.clientY+(u&&u.scrollTop||c&&c.scrollTop||0)-(u&&u.clientTop||c&&c.clientTop||0)),!t.relatedTarget&&v&&(t.relatedTarget=v===t.target?r.toElement:v),!t.which&&h!==i&&(t.which=h&1?1:h&2?3:h&4?2:0),t}},fix:function(t){if(t[n.expando])return t;var r,a,u=t,c=n.event.fixHooks[t.type]||{},h=c.props?this.props.concat(c.props):this.props;for(t=n.Event(u),r=h.length;r;)a=h[--r],t[a]=u[a];return t.target||(t.target=u.srcElement||U),t.target.nodeType===3&&(t.target=t.target.parentNode),t.metaKey===i&&(t.metaKey=t.ctrlKey),c.filter?c.filter(t,u):t},special:{ready:{setup:n.bindReady},focus:{delegateType:"focusin",noBubble:!0},blur:{delegateType:"focusout",noBubble:!0},beforeunload:{setup:function(t,r,a){n.isWindow(this)&&(this.onbeforeunload=a)},teardown:function(t,r){this.onbeforeunload===r&&(this.onbeforeunload=null)}}},simulate:function(t,r,a,u){var c=n.extend(new n.Event,a,{type:t,isSimulated:!0,originalEvent:{}});u?n.event.trigger(c,null,r):n.event.dispatch.call(r,c),c.isDefaultPrevented()&&a.preventDefault()}},n.event.handle=n.event.dispatch,n.removeEvent=U.removeEventListener?function(t,r,a){t.removeEventListener&&t.removeEventListener(r,a,!1)}:function(t,r,a){t.detachEvent&&t.detachEvent("on"+r,a)},n.Event=function(t,r){if(!(this instanceof n.Event))return new n.Event(t,r);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?be:Pe):this.type=t,r&&n.extend(this,r),this.timeStamp=t&&t.timeStamp||n.now(),this[n.expando]=!0},n.Event.prototype={preventDefault:function(){this.isDefaultPrevented=be;var t=this.originalEvent;!t||(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=be;var t=this.originalEvent;!t||(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=be,this.stopPropagation()},isDefaultPrevented:Pe,isPropagationStopped:Pe,isImmediatePropagationStopped:Pe},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,r){n.event.special[t]=n.event.special[r]={delegateType:r,bindType:r,handle:function(a){var u=this,c=a.relatedTarget,h=a.handleObj;h.selector;var v,g;return(!c||h.origType===a.type||c!==u&&!n.contains(u,c))&&(v=a.type,a.type=h.origType,g=h.handler.apply(this,arguments),a.type=v),g}}}),n.support.submitBubbles||(n.event.special.submit={setup:function(){if(n.nodeName(this,"form"))return!1;n.event.add(this,"click._submit keypress._submit",function(t){var r=t.target,a=n.nodeName(r,"input")||n.nodeName(r,"button")?r.form:i;a&&!a._submit_attached&&(n.event.add(a,"submit._submit",function(u){this.parentNode&&n.event.simulate("submit",this.parentNode,u,!0)}),a._submit_attached=!0)})},teardown:function(){if(n.nodeName(this,"form"))return!1;n.event.remove(this,"._submit")}}),n.support.changeBubbles||(n.event.special.change={setup:function(){if(Ee.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(n.event.add(this,"propertychange._change",function(t){t.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(t){this._just_changed&&(this._just_changed=!1,n.event.simulate("change",this,t,!0))})),!1;n.event.add(this,"beforeactivate._change",function(t){var r=t.target;Ee.test(r.nodeName)&&!r._change_attached&&(n.event.add(r,"change._change",function(a){this.parentNode&&!a.isSimulated&&n.event.simulate("change",this.parentNode,a,!0)}),r._change_attached=!0)})},handle:function(t){var r=t.target;if(this!==r||t.isSimulated||t.isTrigger||r.type!=="radio"&&r.type!=="checkbox")return t.handleObj.handler.apply(this,arguments)},teardown:function(){return n.event.remove(this,"._change"),Ee.test(this.nodeName)}}),n.support.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(t,r){var a=0,u=function(c){n.event.simulate(r,c.target,n.event.fix(c),!0)};n.event.special[r]={setup:function(){a++===0&&U.addEventListener(t,u,!0)},teardown:function(){--a===0&&U.removeEventListener(t,u,!0)}}}),n.fn.extend({on:function(t,r,a,u,c){var h,v;if(typeof t=="object"){typeof r!="string"&&(a=r,r=i);for(v in t)this.on(v,r,a,t[v],c);return this}if(a==null&&u==null?(u=r,a=r=i):u==null&&(typeof r=="string"?(u=a,a=i):(u=a,a=r,r=i)),u===!1)u=Pe;else if(!u)return this;return c===1&&(h=u,u=function(g){return n().off(g),h.apply(this,arguments)},u.guid=h.guid||(h.guid=n.guid++)),this.each(function(){n.event.add(this,t,u,a,r)})},one:function(t,r,a,u){return this.on.call(this,t,r,a,u,1)},off:function(t,r,a){if(t&&t.preventDefault&&t.handleObj){var u=t.handleObj;return n(t.delegateTarget).off(u.namespace?u.type+"."+u.namespace:u.type,u.selector,u.handler),this}if(typeof t=="object"){for(var c in t)this.off(c,r,t[c]);return this}return(r===!1||typeof r=="function")&&(a=r,r=i),a===!1&&(a=Pe),this.each(function(){n.event.remove(this,t,a,r)})},bind:function(t,r,a){return this.on(t,null,r,a)},unbind:function(t,r){return this.off(t,null,r)},live:function(t,r,a){return n(this.context).on(t,this.selector,r,a),this},die:function(t,r){return n(this.context).off(t,this.selector||"**",r),this},delegate:function(t,r,a,u){return this.on(r,t,a,u)},undelegate:function(t,r,a){return arguments.length==1?this.off(t,"**"):this.off(r,t,a)},trigger:function(t,r){return this.each(function(){n.event.trigger(t,r,this)})},triggerHandler:function(t,r){if(this[0])return n.event.trigger(t,r,this[0],!0)},toggle:function(t){var r=arguments,a=t.guid||n.guid++,u=0,c=function(h){var v=(n._data(this,"lastToggle"+t.guid)||0)%u;return n._data(this,"lastToggle"+t.guid,v+1),h.preventDefault(),r[v].apply(this,arguments)||!1};for(c.guid=a;u<r.length;)r[u++].guid=a;return this.click(c)},hover:function(t,r){return this.mouseenter(t).mouseleave(r||t)}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,r){n.fn[r]=function(a,u){return u==null&&(u=a,a=null),arguments.length>0?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,A,R,D,F,I){for(var V=0,se=D.length;V<se;V++){var ie=D[V];if(ie){var de=!1;for(ie=ie[p];ie;){if(ie[u]===R){de=D[ie.sizset];break}if(ie.nodeType===1){if(I||(ie[u]=R,ie.sizset=V),typeof A!="string"){if(ie===A){de=!0;break}}else if(O.filter(A,[ie]).length>0){de=ie;break}}ie=ie[p]}D[V]=de}}}function r(p,A,R,D,F,I){for(var V=0,se=D.length;V<se;V++){var ie=D[V];if(ie){var de=!1;for(ie=ie[p];ie;){if(ie[u]===R){de=D[ie.sizset];break}if(ie.nodeType===1&&!I&&(ie[u]=R,ie.sizset=V),ie.nodeName.toLowerCase()===A){de=ie;break}ie=ie[p]}D[V]=de}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\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,A,R,D){R=R||[],A=A||U;var F=A;if(A.nodeType!==1&&A.nodeType!==9)return[];if(!p||typeof p!="string")return R;var I,V,se,ie,de,dt,tt,w,H=!0,oe=O.isXML(A),W=[],Oe=p;do if(a.exec(""),I=a.exec(Oe),I&&(Oe=I[3],W.push(I[1]),I[2])){ie=I[3];break}while(I);if(W.length>1&&J.exec(p))if(W.length===2&&z.relative[W[0]])V=xe(W[0]+W[1],A,D);else for(V=z.relative[W[0]]?[A]:O(W.shift(),A);W.length;)p=W.shift(),z.relative[p]&&(p+=W.shift()),V=xe(p,V,D);else if(!D&&W.length>1&&A.nodeType===9&&!oe&&z.match.ID.test(W[0])&&!z.match.ID.test(W[W.length-1])&&(de=O.find(W.shift(),A,oe),A=de.expr?O.filter(de.expr,de.set)[0]:de.set[0]),A)for(de=D?{expr:W.pop(),set:Se(D)}:O.find(W.pop(),W.length===1&&(W[0]==="~"||W[0]==="+")&&A.parentNode?A.parentNode:A,oe),V=de.expr?O.filter(de.expr,de.set):de.set,W.length>0?se=Se(V):H=!1;W.length;)dt=W.pop(),tt=dt,z.relative[dt]?tt=W.pop():dt="",tt==null&&(tt=A),z.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(A&&A.nodeType===1)for(w=0;se[w]!=null;w++)se[w]&&(se[w]===!0||se[w].nodeType===1&&O.contains(A,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,F,R,D),O.uniqueSort(R)),R};O.uniqueSort=function(p){if(it&&(v=g,p.sort(it),v))for(var A=1;A<p.length;A++)p[A]===p[A-1]&&p.splice(A--,1);return p},O.matches=function(p,A){return O(p,null,null,A)},O.matchesSelector=function(p,A){return O(A,null,null,[p]).length>0},O.find=function(p,A,R){var D,F,I,V,se,ie;if(!p)return[];for(F=0,I=z.order.length;F<I;F++)if(se=z.order[F],(V=z.leftMatch[se].exec(p))&&(ie=V[1],V.splice(1,1),ie.substr(ie.length-1)!=="\\"&&(V[1]=(V[1]||"").replace(S,""),D=z.find[se](V,A,R),D!=null))){p=p.replace(z.match[se],"");break}return D||(D=typeof A.getElementsByTagName<"u"?A.getElementsByTagName("*"):[]),{set:D,expr:p}},O.filter=function(p,A,R,D){for(var F,I,V,se,ie,de,dt,tt,w,H=p,oe=[],W=A,Oe=A&&A[0]&&O.isXML(A[0]);p&&A.length;){for(V in z.filter)if((F=z.leftMatch[V].exec(p))!=null&&F[2]){if(de=z.filter[V],dt=F[1],I=!1,F.splice(1,1),dt.substr(dt.length-1)==="\\")continue;if(W===oe&&(oe=[]),z.preFilter[V]){if(F=z.preFilter[V](F,W,R,oe,D,Oe),!F)I=se=!0;else if(F===!0)continue}if(F)for(tt=0;(ie=W[tt])!=null;tt++)ie&&(se=de(ie,F,tt,W),w=D^se,R&&se!=null?w?I=!0:W[tt]=!1:w&&(oe.push(ie),I=!0));if(se!==i){if(R||(W=oe),p=p.replace(z.match[V],""),!I)return[];break}}if(p===H)if(I==null)O.error(p);else break;H=p}return W},O.error=function(p){throw"Syntax error, unrecognized expression: "+p};var B=O.getText=function(p){var A,R,D=p.nodeType,F="";if(D){if(D===1){if(typeof p.textContent=="string")return p.textContent;if(typeof p.innerText=="string")return p.innerText.replace(k,"");for(p=p.firstChild;p;p=p.nextSibling)F+=B(p)}else if(D===3||D===4)return p.nodeValue}else for(A=0;R=p[A];A++)R.nodeType!==8&&(F+=B(R));return F},z=O.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href")},type:function(p){return p.getAttribute("type")}},relative:{"+":function(p,A){var R=typeof A=="string",D=R&&!E.test(A),F=R&&!D;D&&(A=A.toLowerCase());for(var I=0,V=p.length,se;I<V;I++)if(se=p[I]){for(;(se=se.previousSibling)&&se.nodeType!==1;);p[I]=F||se&&se.nodeName.toLowerCase()===A?se||!1:se===A}F&&O.filter(A,p,!0)},">":function(p,A){var R,D=typeof A=="string",F=0,I=p.length;if(D&&!E.test(A)){for(A=A.toLowerCase();F<I;F++)if(R=p[F],R){var V=R.parentNode;p[F]=V.nodeName.toLowerCase()===A?V:!1}}else{for(;F<I;F++)R=p[F],R&&(p[F]=D?R.parentNode:R.parentNode===A);D&&O.filter(A,p,!0)}},"":function(p,A,R){var D,F=c++,I=t;typeof A=="string"&&!E.test(A)&&(A=A.toLowerCase(),D=A,I=r),I("parentNode",A,F,p,D,R)},"~":function(p,A,R){var D,F=c++,I=t;typeof A=="string"&&!E.test(A)&&(A=A.toLowerCase(),D=A,I=r),I("previousSibling",A,F,p,D,R)}},find:{ID:function(p,A,R){if(typeof A.getElementById<"u"&&!R){var D=A.getElementById(p[1]);return D&&D.parentNode?[D]:[]}},NAME:function(p,A){if(typeof A.getElementsByName<"u"){for(var R=[],D=A.getElementsByName(p[1]),F=0,I=D.length;F<I;F++)D[F].getAttribute("name")===p[1]&&R.push(D[F]);return R.length===0?null:R}},TAG:function(p,A){if(typeof A.getElementsByTagName<"u")return A.getElementsByTagName(p[1])}},preFilter:{CLASS:function(p,A,R,D,F,I){if(p=" "+p[1].replace(S,"")+" ",I)return p;for(var V=0,se;(se=A[V])!=null;V++)se&&(F^(se.className&&(" "+se.className+" ").replace(/[\t\n\r]/g," ").indexOf(p)>=0)?R||D.push(se):R&&(A[V]=!1));return!1},ID:function(p){return p[1].replace(S,"")},TAG:function(p,A){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 A=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(p[2]==="even"&&"2n"||p[2]==="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=A[1]+(A[2]||1)-0,p[3]=A[3]-0}else p[2]&&O.error(p[0]);return p[0]=c++,p},ATTR:function(p,A,R,D,F,I){var V=p[1]=p[1].replace(S,"");return!I&&z.attrMap[V]&&(p[1]=z.attrMap[V]),p[4]=(p[4]||p[5]||"").replace(S,""),p[2]==="~="&&(p[4]=" "+p[4]+" "),p},PSEUDO:function(p,A,R,D,F){if(p[1]==="not")if((a.exec(p[3])||"").length>1||/^\w/.test(p[3]))p[3]=O(p[3],null,null,A);else{var I=O.filter(p[3],A,R,!0^F);return R||D.push.apply(D,I),!1}else if(z.match.POS.test(p[0])||z.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,A,R){return!!O(R[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){var A=p.getAttribute("type"),R=p.type;return p.nodeName.toLowerCase()==="input"&&R==="text"&&(A===R||A===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 A=p.nodeName.toLowerCase();return(A==="input"||A==="button")&&p.type==="submit"},image:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="image"},reset:function(p){var A=p.nodeName.toLowerCase();return(A==="input"||A==="button")&&p.type==="reset"},button:function(p){var A=p.nodeName.toLowerCase();return A==="input"&&p.type==="button"||A==="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,A){return A===0},last:function(p,A,R,D){return A===D.length-1},even:function(p,A){return A%2===0},odd:function(p,A){return A%2===1},lt:function(p,A,R){return A<R[3]-0},gt:function(p,A,R){return A>R[3]-0},nth:function(p,A,R){return R[3]-0===A},eq:function(p,A,R){return R[3]-0===A}},filter:{PSEUDO:function(p,A,R,D){var F=A[1],I=z.filters[F];if(I)return I(p,R,A,D);if(F==="contains")return(p.textContent||p.innerText||B([p])||"").indexOf(A[3])>=0;if(F==="not"){for(var V=A[3],se=0,ie=V.length;se<ie;se++)if(V[se]===p)return!1;return!0}O.error(F)},CHILD:function(p,A){var R,D,F,I,V,se,ie=A[1],de=p;switch(ie){case"only":case"first":for(;de=de.previousSibling;)if(de.nodeType===1)return!1;if(ie==="first")return!0;de=p;case"last":for(;de=de.nextSibling;)if(de.nodeType===1)return!1;return!0;case"nth":if(R=A[2],D=A[3],R===1&&D===0)return!0;if(F=A[0],I=p.parentNode,I&&(I[u]!==F||!p.nodeIndex)){for(V=0,de=I.firstChild;de;de=de.nextSibling)de.nodeType===1&&(de.nodeIndex=++V);I[u]=F}return se=p.nodeIndex-D,R===0?se===0:se%R===0&&se/R>=0}},ID:function(p,A){return p.nodeType===1&&p.getAttribute("id")===A},TAG:function(p,A){return A==="*"&&p.nodeType===1||!!p.nodeName&&p.nodeName.toLowerCase()===A},CLASS:function(p,A){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(A)>-1},ATTR:function(p,A){var R=A[1],D=O.attr?O.attr(p,R):z.attrHandle[R]?z.attrHandle[R](p):p[R]!=null?p[R]:p.getAttribute(R),F=D+"",I=A[2],V=A[4];return D==null?I==="!=":!I&&O.attr?D!=null:I==="="?F===V:I==="*="?F.indexOf(V)>=0:I==="~="?(" "+F+" ").indexOf(V)>=0:V?I==="!="?F!==V:I==="^="?F.indexOf(V)===0:I==="$="?F.substr(F.length-V.length)===V:I==="|="?F===V||F.substr(0,V.length+1)===V+"-":!1:F&&D!==!1},POS:function(p,A,R,D){var F=A[2],I=z.setFilters[F];if(I)return I(p,R,A,D)}}},J=z.match.POS,ye=function(p,A){return"\\"+(A-0+1)};for(var Me in z.match)z.match[Me]=new RegExp(z.match[Me].source+/(?![^\[]*\])(?![^\(]*\))/.source),z.leftMatch[Me]=new RegExp(/(^(?:.|\r|\n)*?)/.source+z.match[Me].source.replace(/\\(\d+)/g,ye));var Se=function(p,A){return p=Array.prototype.slice.call(p,0),A?(A.push.apply(A,p),A):p};try{Array.prototype.slice.call(U.documentElement.childNodes,0)[0].nodeType}catch(p){Se=function(A,R){var D=0,F=R||[];if(h.call(A)==="[object Array]")Array.prototype.push.apply(F,A);else if(typeof A.length=="number")for(var I=A.length;D<I;D++)F.push(A[D]);else for(;A[D];D++)F.push(A[D]);return F}}var it,ot;U.documentElement.compareDocumentPosition?it=function(p,A){return p===A?(v=!0,0):!p.compareDocumentPosition||!A.compareDocumentPosition?p.compareDocumentPosition?-1:1:p.compareDocumentPosition(A)&4?-1:1}:(it=function(p,A){if(p===A)return v=!0,0;if(p.sourceIndex&&A.sourceIndex)return p.sourceIndex-A.sourceIndex;var R,D,F=[],I=[],V=p.parentNode,se=A.parentNode,ie=V;if(V===se)return ot(p,A);if(!V)return-1;if(!se)return 1;for(;ie;)F.unshift(ie),ie=ie.parentNode;for(ie=se;ie;)I.unshift(ie),ie=ie.parentNode;R=F.length,D=I.length;for(var de=0;de<R&&de<D;de++)if(F[de]!==I[de])return ot(F[de],I[de]);return de===R?ot(p,I[de],-1):ot(F[de],A,1)},ot=function(p,A,R){if(p===A)return R;for(var D=p.nextSibling;D;){if(D===A)return-1;D=D.nextSibling}return 1}),function(){var p=U.createElement("div"),A="script"+new Date().getTime(),R=U.documentElement;p.innerHTML="<a name='"+A+"'/>",R.insertBefore(p,R.firstChild),U.getElementById(A)&&(z.find.ID=function(D,F,I){if(typeof F.getElementById<"u"&&!I){var V=F.getElementById(D[1]);return V?V.id===D[1]||typeof V.getAttributeNode<"u"&&V.getAttributeNode("id").nodeValue===D[1]?[V]:i:[]}},z.filter.ID=function(D,F){var I=typeof D.getAttributeNode<"u"&&D.getAttributeNode("id");return D.nodeType===1&&I&&I.nodeValue===F}),R.removeChild(p),R=p=null}(),function(){var p=U.createElement("div");p.appendChild(U.createComment("")),p.getElementsByTagName("*").length>0&&(z.find.TAG=function(A,R){var D=R.getElementsByTagName(A[1]);if(A[1]==="*"){for(var F=[],I=0;D[I];I++)D[I].nodeType===1&&F.push(D[I]);D=F}return D}),p.innerHTML="<a href='#'></a>",p.firstChild&&typeof p.firstChild.getAttribute<"u"&&p.firstChild.getAttribute("href")!=="#"&&(z.attrHandle.href=function(A){return A.getAttribute("href",2)}),p=null}(),U.querySelectorAll&&function(){var p=O,A=U.createElement("div"),R="__sizzle__";if(A.innerHTML="<p class='TEST'></p>",!A.querySelectorAll||A.querySelectorAll(".TEST").length!==0){O=function(F,I,V,se){if(I=I||U,!se&&!O.isXML(I)){var ie=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(F);if(ie&&(I.nodeType===1||I.nodeType===9)){if(ie[1])return Se(I.getElementsByTagName(F),V);if(ie[2]&&z.find.CLASS&&I.getElementsByClassName)return Se(I.getElementsByClassName(ie[2]),V)}if(I.nodeType===9){if(F==="body"&&I.body)return Se([I.body],V);if(ie&&ie[3]){var de=I.getElementById(ie[3]);if(!de||!de.parentNode)return Se([],V);if(de.id===ie[3])return Se([de],V)}try{return Se(I.querySelectorAll(F),V)}catch(W){}}else if(I.nodeType===1&&I.nodeName.toLowerCase()!=="object"){var dt=I,tt=I.getAttribute("id"),w=tt||R,H=I.parentNode,oe=/^\s*[+~]/.test(F);tt?w=w.replace(/'/g,"\\$&"):I.setAttribute("id",w),oe&&H&&(I=I.parentNode);try{if(!oe||H)return Se(I.querySelectorAll("[id='"+w+"'] "+F),V)}catch(W){}finally{tt||dt.removeAttribute("id")}}}return p(F,I,V,se)};for(var D in p)O[D]=p[D];A=null}}(),function(){var p=U.documentElement,A=p.matchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.msMatchesSelector;if(A){var R=!A.call(U.createElement("div"),"div"),D=!1;try{A.call(U.documentElement,"[test!='']:sizzle")}catch(F){D=!0}O.matchesSelector=function(F,I){if(I=I.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!O.isXML(F))try{if(D||!z.match.PSEUDO.test(I)&&!/!=/.test(I)){var V=A.call(F,I);if(V||!R||F.document&&F.document.nodeType!==11)return V}}catch(se){}return O(I,null,null,[F]).length>0}}}(),function(){var p=U.createElement("div");if(p.innerHTML="<div class='test e'></div><div class='test'></div>",p.getElementsByClassName&&p.getElementsByClassName("e").length!==0){if(p.lastChild.className="e",p.getElementsByClassName("e").length===1)return;z.order.splice(1,0,"CLASS"),z.find.CLASS=function(A,R,D){if(typeof R.getElementsByClassName<"u"&&!D)return R.getElementsByClassName(A[1])},p=null}}(),U.documentElement.contains?O.contains=function(p,A){return p!==A&&(p.contains?p.contains(A):!0)}:U.documentElement.compareDocumentPosition?O.contains=function(p,A){return!!(p.compareDocumentPosition(A)&16)}:O.contains=function(){return!1},O.isXML=function(p){var A=(p?p.ownerDocument||p:0).documentElement;return A?A.nodeName!=="HTML":!1};var xe=function(p,A,R){for(var D,F=[],I="",V=A.nodeType?[A]:A;D=z.match.PSEUDO.exec(p);)I+=D[0],p=p.replace(z.match.PSEUDO,"");p=z.relative[p]?p+"*":p;for(var se=0,ie=V.length;se<ie;se++)O(p,V[se],F,R);return O.filter(I,F)};O.attr=n.attr,O.selectors.attrMap={},n.find=O,n.expr=O.selectors,n.expr[":"]=n.expr.filters,n.unique=O.uniqueSort,n.text=O.getText,n.isXMLDoc=O.isXML,n.contains=O.contains}();var mt=/Until$/,Ge=/^(?:parents|prevUntil|prevAll)/,wn=/,/,Rt=/^.[^:#\[\.,]*$/,Ft=Array.prototype.slice,At=n.expr.match.POS,yt={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({find:function(t){var r=this,a,u;if(typeof t!="string")return n(t).filter(function(){for(a=0,u=r.length;a<u;a++)if(n.contains(r[a],this))return!0});var c=this.pushStack("","find",t),h,v,g;for(a=0,u=this.length;a<u;a++)if(h=c.length,n.find(t,this[a],c),a>0){for(v=h;v<c.length;v++)for(g=0;g<h;g++)if(c[g]===c[v]){c.splice(v--,1);break}}return c},has:function(t){var r=n(t);return this.filter(function(){for(var a=0,u=r.length;a<u;a++)if(n.contains(this,r[a]))return!0})},not:function(t){return this.pushStack(ge(this,t,!1),"not",t)},filter:function(t){return this.pushStack(ge(this,t,!0),"filter",t)},is:function(t){return!!t&&(typeof t=="string"?At.test(t)?n(t,this.context).index(this[0])>=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<t.length;u++)n(h).is(t[u])&&a.push({selector:t[u],elem:h,level:v});h=h.parentNode,v++}return a}var g=At.test(t)||typeof t!="string"?n(t,r||this.context):0;for(u=0,c=this.length;u<c;u++)for(h=this[u];h;){if(g?g.index(h)>-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||wn.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=/<tbody/i,fe=/<|&#?\w+;/,we=/<(?:script|style)/i,De=/<(?:script|object|embed|option|style)/i,je=new RegExp("<(?:"+wt.replace(" ","|")+")","i"),Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,ft=/\/(java|ecma)script/i,Fe=/^\s*<!(?:\[CDATA\[|\-\-)/,$e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ht=ue(U);$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<div>","</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||U).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></$2>");try{for(var r=0,a=this.length;r<a;r++)this[r].nodeType===1&&(n.cleanData(this[r].getElementsByTagName("*")),this[r].innerHTML=t)}catch(u){this.empty().append(t)}}else n.isFunction(t)?this.each(function(u){var c=n(this);c.html(t.call(this,u,c.html()))}):this.empty().append(t);return this},replaceWith:function(t){return this[0]&&this[0].parentNode?n.isFunction(t)?this.each(function(r){var a=n(this),u=a.html();a.replaceWith(t.call(this,r,u))}):(typeof t!="string"&&(t=n(t).detach()),this.each(function(){var r=this.nextSibling,a=this.parentNode;n(this).remove(),r?n(r).before(t):n(a).append(t)})):this.length?this.pushStack(n(n.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,r,a){var u,c,h,v,g=t[0],S=[];if(!n.support.checkClone&&arguments.length===3&&typeof g=="string"&&Ke.test(g))return this.each(function(){n(this).domManip(t,r,a,!0)});if(n.isFunction(g))return this.each(function(B){var z=n(this);t[0]=g.call(this,B,r?z.html():i),z.domManip(t,r,a)});if(this[0]){if(v=g&&g.parentNode,n.support.parentNode&&v&&v.nodeType===11&&v.childNodes.length===this.length?u={fragment:v}:u=n.buildFragment(t,this,S),h=u.fragment,h.childNodes.length===1?c=h=h.firstChild:c=h.firstChild,c){r=r&&n.nodeName(c,"tr");for(var k=0,E=this.length,O=E-1;k<E;k++)a.call(r?le(this[k]):this[k],u.cacheable||E>1&&k<O?n.clone(h,!0,!0):h)}S.length&&n.each(S,_)}return this}}),n.buildFragment=function(t,r,a){var u,c,h,v,g=t[0];return r&&r[0]&&(v=r[0].ownerDocument||r[0]),v.createDocumentFragment||(v=U),t.length===1&&typeof g=="string"&&g.length<512&&v===U&&g.charAt(0)==="<"&&!De.test(g)&&(n.support.checkClone||!Ke.test(g))&&!n.support.unknownElems&&je.test(g)&&(c=!0,h=n.fragments[g],h&&h!==1&&(u=h)),u||(u=v.createDocumentFragment(),n.clean(t,v,u,a)),c&&(n.fragments[g]=h?u:1),{fragment:u,cacheable:c}},n.fragments={},n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){n.fn[t]=function(a){var u=[],c=n(a),h=this.length===1&&this[0].parentNode;if(h&&h.nodeType===11&&h.childNodes.length===1&&c.length===1)return c[r](this[0]),this;for(var v=0,g=c.length;v<g;v++){var S=(v>0?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(he(t,u),c=j(t),h=j(u),v=0;c[v];++v)h[v]&&he(c[v],h[v]);if(r&&(G(t,u),a))for(c=j(t),h=j(u),v=0;c[v];++v)G(c[v],h[v]);return c=h=null,u},clean:function(t,r,a,u){var c;r=r||U,typeof r.createElement>"u"&&(r=r.ownerDocument||r[0]&&r[0].ownerDocument||U);for(var h=[],v,g=0,S;(S=t[g])!=null;g++)if(typeof S=="number"&&(S+=""),!!S){if(typeof S=="string")if(!fe.test(S))S=r.createTextNode(S);else{S=S.replace(Je,"<$1></$2>");var k=(ze.exec(S)||["",""])[1].toLowerCase(),E=$e[k]||$e._default,O=E[0],B=r.createElement("div");for(r===U?Ht.appendChild(B):ue(r).appendChild(B),B.innerHTML=E[1]+S+E[2];O--;)B=B.lastChild;if(!n.support.tbody){var z=Y.test(S),J=k==="table"&&!z?B.firstChild&&B.firstChild.childNodes:E[1]==="<table>"&&!z?B.childNodes:[];for(v=J.length-1;v>=0;--v)n.nodeName(J[v],"tbody")&&!J[v].childNodes.length&&J[v].parentNode.removeChild(J[v])}!n.support.leadingWhitespace&&qe.test(S)&&B.insertBefore(r.createTextNode(qe.exec(S)[0]),B.firstChild),S=B.childNodes}var ye;if(!n.support.appendChecked)if(S[0]&&typeof(ye=S.length)=="number")for(v=0;v<ye;v++)Q(S[v]);else Q(S);S.nodeType?h.push(S):h=n.merge(h,S)}if(a)for(c=function(Se){return!Se.type||ft.test(Se.type)},g=0;h[g];g++)if(u&&n.nodeName(h[g],"script")&&(!h[g].type||h[g].type.toLowerCase()==="text/javascript"))u.push(h[g].parentNode?h[g].parentNode.removeChild(h[g]):h[g]);else{if(h[g].nodeType===1){var Me=n.grep(h[g].getElementsByTagName("script"),c);h.splice.apply(h,[g+1,0].concat(Me))}a.appendChild(h[g])}return h},cleanData:function(t){for(var r,a,u=n.cache,c=n.event.special,h=n.support.deleteExpando,v=0,g;(g=t[v])!=null;v++)if(!(g.nodeName&&n.noData[g.nodeName.toLowerCase()])&&(a=g[n.expando],a)){if(r=u[a],r&&r.events){for(var S in r.events)c[S]?n.event.remove(g,S):n.removeEvent(g,S,r.handle);r.handle&&(r.handle.elem=null)}h?delete g[n.expando]:g.removeAttribute&&g.removeAttribute(n.expando),delete u[a]}}});var ur=/alpha\([^)]*\)/i,ma=/opacity=([^)]*)/,ya=/([A-Z]|^ms)/g,ni=/^-?\d+(?:px)?$/i,wa=/^-?\d/,ba=/^([\-+])=([\-+.\de]+)/,xa={position:"absolute",visibility:"hidden",display:"block"},Aa=["Left","Right"],Sa=["Top","Bottom"],an,ri,ii;n.fn.css=function(t,r){return arguments.length===2&&r===i?this:n.access(this,t,r,!0,function(a,u,c){return c!==i?n.style(a,u,c):n.css(a,u)})},n.extend({cssHooks:{opacity:{get:function(t,r){if(r){var a=an(t,"opacity","opacity");return a===""?"1":a}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:n.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,r,a,u){if(t&&t.nodeType!==3&&t.nodeType!==8&&t.style){var c,h,v=n.camelCase(r),g=t.style,S=n.cssHooks[v];if(r=n.cssProps[v]||v,a===i)return S&&"get"in S&&(c=S.get(t,!1,u))!==i?c:g[r];if(h=typeof a,h==="string"&&(c=ba.exec(a))&&(a=+(c[1]+1)*+c[2]+parseFloat(n.css(t,r)),h="number"),a==null||h==="number"&&isNaN(a))return;if(h==="number"&&!n.cssNumber[v]&&(a+="px"),!S||!("set"in S)||(a=S.set(t,a))!==i)try{g[r]=a}catch(k){}}},css:function(t,r,a){var u,c;if(r=n.camelCase(r),c=n.cssHooks[r],r=n.cssProps[r]||r,r==="cssFloat"&&(r="float"),c&&"get"in c&&(u=c.get(t,!0,a))!==i)return u;if(an)return an(t,r)},swap:function(t,r,a){var u={};for(var c in r)u[c]=t.style[c],t.style[c]=r[c];a.call(t);for(c in r)t.style[c]=u[c]}}),n.curCSS=n.css,n.each(["height","width"],function(t,r){n.cssHooks[r]={get:function(a,u,c){var h;if(u)return a.offsetWidth!==0?N(a,r,c):(n.swap(a,xa,function(){h=N(a,r,c)}),h)},set:function(a,u){if(!ni.test(u))return u;if(u=parseFloat(u),u>=0)return u+"px"}}}),n.support.opacity||(n.cssHooks.opacity={get:function(t,r){return ma.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(ur,""))===""&&(a.removeAttribute("filter"),u&&!u.filter))&&(a.filter=ur.test(h)?h.replace(ur,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=an(t,"margin-right","marginRight"):a=t.style.marginRight}),a}})}),U.defaultView&&U.defaultView.getComputedStyle&&(ri=function(t,r){var a,u,c;return r=r.replace(ya,"-$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}),U.documentElement.currentStyle&&(ii=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),!ni.test(h)&&wa.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}),an=ri||ii,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 Ca=/%20/g,Ta=/\[\]$/,oi=/\r?\n/g,Ma=/#.*$/,Ea=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Oa=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Pa=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,ka=/^(?:GET|HEAD)$/,Ra=/^\/\//,ai=/\?/,Da=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Na=/^(?:select|textarea)/i,si=/\s+/,_a=/([?&])_=[^&]*/,li=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ui=n.fn.load,cr={},ci={},$t,qt,fi=["*/"]+["*"];try{$t=l.href}catch(t){$t=U.createElement("a"),$t.href="",$t=$t.href}qt=li.exec($t.toLowerCase())||[],n.fn.extend({load:function(t,r,a){if(typeof t!="string"&&ui)return ui.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("<div>").append(k.replace(Da,"")).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||Na.test(this.nodeName)||Oa.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(oi,`\r
  238. `)}}):{name:r.name,value:a.replace(oi,`\r
  239. `)}}).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?X(t,n.ajaxSettings):(r=t,t=n.ajaxSettings),X(t,r),t},ajaxSettings:{url:$t,isLocal:Pa.test(qt[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","*":fi},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(cr),ajaxTransport:re(ci),ajax:function(t,r){function a(R,D,F,I){if(Se!==2){Se=2,ye&&clearTimeout(ye),J=i,B=I||"",xe.readyState=R>0?4:0;var V,se,ie,de=D,dt=F?P(u,xe,F):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)de="notmodified",V=!0;else try{se=C(u,dt),de="success",V=!0}catch(H){de="parsererror",ie=H}else ie=de,(!de||R)&&(de="error",R<0&&(R=0));xe.status=R,xe.statusText=""+(D||de),V?v.resolveWith(c,[se,de,xe]):v.rejectWith(c,[xe,de,ie]),xe.statusCode(S),S=i,it&&h.trigger("ajax"+(V?"Success":"Error"),[xe,u,V?se:ie]),g.fireWith(c,[xe,de]),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={},B,z,J,ye,Me,Se=0,it,ot,xe={readyState:0,setRequestHeader:function(R,D){if(!Se){var F=R.toLowerCase();R=O[F]=O[F]||R,E[R]=D}return this},getAllResponseHeaders:function(){return Se===2?B:null},getResponseHeader:function(R){var D;if(Se===2){if(!z)for(z={};D=Ea.exec(B);)z[D[1].toLowerCase()]=D[2];D=z[R.toLowerCase()]}return D===i?null:D},overrideMimeType:function(R){return Se||(u.mimeType=R),this},abort:function(R){return R=R||"abort",J&&J.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 D;if(Se<2)for(D in R)S[D]=[S[D],R[D]];else D=R[xe.status],xe.then(D,D)}return this},u.url=((t||u.url)+"").replace(Ma,"").replace(Ra,qt[1]+"//"),u.dataTypes=n.trim(u.dataType||"*").toLowerCase().split(si),u.crossDomain==null&&(Me=li.exec(u.url.toLowerCase()),u.crossDomain=!(!Me||Me[1]==qt[1]&&Me[2]==qt[2]&&(Me[3]||(Me[1]==="http:"?80:443))==(qt[3]||(qt[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=n.param(u.data,u.traditional)),q(cr,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+=(ai.test(u.url)?"&":"?")+u.data,delete u.data),k=u.url,u.cache===!1)){var p=n.now(),A=u.url.replace(_a,"$1_="+p);u.url=A+(A===u.url?(ai.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]!=="*"?", "+fi+"; 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(J=q(ci,u,r,xe),!J)a(-1,"No Transport");else{xe.readyState=1,it&&h.trigger("ajaxSend",[xe,u]),u.async&&u.timeout>0&&(ye=setTimeout(function(){xe.abort("timeout")},u.timeout));try{Se=1,J.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(Ca,"+")}}),n.extend({active:0,lastModified:{},etag:{}});var La=n.now(),Rn=/(\=)\?(&|$)|\?\?/i;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return n.expando+"_"+La++}}),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&&(Rn.test(t.url)||u&&Rn.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(Rn,k),t.url===g&&(u&&(S=S.replace(Rn,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=U.head||U.getElementsByTagName("head")[0]||U.documentElement;return{send:function(u,c){r=U.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 fr=e.ActiveXObject?function(){for(var t in sn)sn[t](0,1)}:!1,Ba=0,sn;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,B,z;try{if(r&&(S||c.readyState===4))if(r=i,h&&(c.onreadystatechange=n.noop,fr&&delete sn[h]),S)c.readyState!==4&&c.abort();else{k=c.status,O=c.getAllResponseHeaders(),B={},z=c.responseXML,z&&z.documentElement&&(B.xml=z),B.text=c.responseText;try{E=c.statusText}catch(J){E=""}!k&&t.isLocal&&!t.crossDomain?k=B.text?200:404:k===1223&&(k=204)}}catch(J){S||u(-1,J)}B&&u(k,E,B,O)},!t.async||c.readyState===4?r():(h=++Ba,fr&&(sn||(sn={},n(e).unload(fr)),sn[h]=r),c.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var dr={},Mt,ln,Fa=/^(?:toggle|show|hide)$/,Ia=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Dn,di=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Nn;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<v;h++)u=this[h],u.style&&(c=u.style.display,!n._data(u,"olddisplay")&&c==="none"&&(c=u.style.display=""),c===""&&n.css(u,"display")==="none"&&n._data(u,"olddisplay",f(u.nodeName)));for(h=0;h<v;h++)u=this[h],u.style&&(c=u.style.display,(c===""||c==="none")&&(u.style.display=n._data(u,"olddisplay")||""));return this},hide:function(t,r,a){if(t||t===0)return this.animate(d("hide",3),t,r,a);for(var u,c,h=0,v=this.length;h<v;h++)u=this[h],u.style&&(c=n.css(u,"display"),c!=="none"&&!n._data(u,"olddisplay")&&n._data(u,"olddisplay",c));for(h=0;h<v;h++)this[h].style&&(this[h].style.display="none");return this},_toggle:n.fn.toggle,toggle:function(t,r,a){var u=typeof t=="boolean";return n.isFunction(t)&&n.isFunction(r)?this._toggle.apply(this,arguments):t==null||u?this.each(function(){var c=u?t:n(this).is(":hidden");n(this)[c?"show":"hide"]()}):this.animate(d("toggle",3),t,r,a),this},fadeTo:function(t,r,a,u){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:r},t,a,u)},animate:function(t,r,a,u){function c(){h.queue===!1&&n._mark(this);var v=n.extend({},h),g=this.nodeType===1,S=g&&n(this).is(":hidden"),k,E,O,B,z,J,ye,Me,Se;v.animatedProperties={};for(O in t){if(k=n.camelCase(O),O!==k&&(t[k]=t[O],delete t[O]),E=t[k],n.isArray(E)?(v.animatedProperties[k]=E[1],E=t[k]=E[0]):v.animatedProperties[k]=v.specialEasing&&v.specialEasing[k]||v.easing||"swing",E==="hide"&&S||E==="show"&&!S)return v.complete.call(this);g&&(k==="height"||k==="width")&&(v.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],n.css(this,"display")==="inline"&&n.css(this,"float")==="none"&&(!n.support.inlineBlockNeedsLayout||f(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}v.overflow!=null&&(this.style.overflow="hidden");for(O in t)B=new n.fx(this,v,O),E=t[O],Fa.test(E)?(Se=n._data(this,"toggle"+O)||(E==="toggle"?S?"show":"hide":0),Se?(n._data(this,"toggle"+O,Se==="show"?"hide":"show"),B[Se]()):B[E]()):(z=Ia.exec(E),J=B.cur(),z?(ye=parseFloat(z[2]),Me=z[3]||(n.cssNumber[O]?"":"px"),Me!=="px"&&(n.style(this,O,(ye||1)+Me),J=(ye||1)/B.cur()*J,n.style(this,O,J+Me)),z[1]&&(ye=(z[1]==="-="?-1:1)*ye+J),B.custom(J,ye,Me)):B.custom(J,E,""));return!0}var h=n.speed(r,a,u);return n.isEmptyObject(t)?this.each(h.complete,[!1]):(t=n.extend({},t),h.queue===!1?this.each(c):this.queue(h.queue,c))},stop:function(t,r,a){return typeof t!="string"&&(a=r,r=t,t=i),r&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){function u(S,k,E){var O=k[E];n.removeData(S,E,!0),O.stop(a)}var c,h=!1,v=n.timers,g=n._data(this);if(a||n._unmark(!0,this),t==null)for(c in g)g[c].stop&&c.indexOf(".run")===c.length-4&&u(this,g,c);else g[c=t+".run"]&&g[c].stop&&u(this,g,c);for(c=v.length;c--;)v[c].elem===this&&(t==null||v[c].queue===t)&&(a?v[c](!0):v[c].saveState(),h=!0,v.splice(c,1));(!a||!h)&&n.dequeue(this,t)})}}),n.each({slideDown:d("show",1),slideUp:d("hide",1),slideToggle:d("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){n.fn[t]=function(a,u,c){return this.animate(r,a,u,c)}}),n.extend({speed:function(t,r,a){var u=t&&typeof t=="object"?n.extend({},t):{complete:a||!a&&r||n.isFunction(t)&&t,duration:t,easing:a&&r||r&&!n.isFunction(r)&&r};return u.duration=n.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in n.fx.speeds?n.fx.speeds[u.duration]:n.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(c){n.isFunction(u.old)&&u.old.call(this),u.queue?n.dequeue(this,u.queue):c!==!1&&n._unmark(this)},u},easing:{linear:function(t,r,a,u){return a+u*t},swing:function(t,r,a,u){return(-Math.cos(t*Math.PI)/2+.5)*u+a}},timers:[],fx:function(t,r,a){this.options=r,this.elem=t,this.prop=a,r.orig=r.orig||{}}}),n.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(n.fx.step[this.prop]||n.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,r=n.css(this.elem,this.prop);return isNaN(t=parseFloat(r))?!r||r==="auto"?0:r:t},custom:function(t,r,a){function u(v){return c.step(v)}var c=this,h=n.fx;this.startTime=Nn||x(),this.end=r,this.now=this.start=t,this.pos=this.state=0,this.unit=a||this.unit||(n.cssNumber[this.prop]?"":"px"),u.queue=this.options.queue,u.elem=this.elem,u.saveState=function(){c.options.hide&&n._data(c.elem,"fxshow"+c.prop)===i&&n._data(c.elem,"fxshow"+c.prop,c.start)},u()&&n.timers.push(u)&&!Dn&&(Dn=setInterval(h.tick,h.interval))},show:function(){var t=n._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=t||n.style(this.elem,this.prop),this.options.show=!0,t!==i?this.custom(this.cur(),t):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),n(this.elem).show()},hide:function(){this.options.orig[this.prop]=n._data(this.elem,"fxshow"+this.prop)||n.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var r,a,u,c=Nn||x(),h=!0,v=this.elem,g=this.options;if(t||c>=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<r.length;a++)t=r[a],!t()&&r[a]===t&&r.splice(a--,1);r.length||n.fx.stop()},interval:13,stop:function(){clearInterval(Dn),Dn=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(t){n.style(t.elem,"opacity",t.now)},_default:function(t){t.elem.style&&t.elem.style[t.prop]!=null?t.elem.style[t.prop]=t.now+t.unit:t.elem[t.prop]=t.now}}}),n.each(["width","height"],function(t,r){n.fx.step[r]=function(a){n.style(a.elem,r,Math.max(0,a.now))}}),n.expr&&n.expr.filters&&(n.expr.filters.animated=function(t){return n.grep(n.timers,function(r){return t===r.elem}).length});var za=/^t(?:able|d|h)$/i,hi=/^(?:body|html)$/i;"getBoundingClientRect"in U.documentElement?n.fn.offset=function(t){var r=this[0],a;if(t)return this.each(function(z){n.offset.setOffset(this,t,z)});if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return n.offset.bodyOffset(r);try{a=r.getBoundingClientRect()}catch(z){}var u=r.ownerDocument,c=u.documentElement;if(!a||!n.contains(c,r))return a?{top:a.top,left:a.left}:{top:0,left:0};var h=u.body,v=o(u),g=c.clientTop||h.clientTop||0,S=c.clientLeft||h.clientLeft||0,k=v.pageYOffset||n.support.boxModel&&c.scrollTop||h.scrollTop,E=v.pageXOffset||n.support.boxModel&&c.scrollLeft||h.scrollLeft,O=a.top+k-g,B=a.left+E-S;return{top:O,left:B}}:n.fn.offset=function(t){var r=this[0];if(t)return this.each(function(O){n.offset.setOffset(this,t,O)});if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return n.offset.bodyOffset(r);for(var a,u=r.offsetParent,c=r.ownerDocument,h=c.documentElement,v=c.body,g=c.defaultView,S=g?g.getComputedStyle(r,null):r.currentStyle,k=r.offsetTop,E=r.offsetLeft;(r=r.parentNode)&&r!==v&&r!==h&&!(n.support.fixedPosition&&S.position==="fixed");)a=g?g.getComputedStyle(r,null):r.currentStyle,k-=r.scrollTop,E-=r.scrollLeft,r===u&&(k+=r.offsetTop,E+=r.offsetLeft,n.support.doesNotAddBorder&&(!n.support.doesAddBorderForTableAndCells||!za.test(r.nodeName))&&(k+=parseFloat(a.borderTopWidth)||0,E+=parseFloat(a.borderLeftWidth)||0),u=r.offsetParent),n.support.subtractsBorderForOverflowNotVisible&&a.overflow!=="visible"&&(k+=parseFloat(a.borderTopWidth)||0,E+=parseFloat(a.borderLeftWidth)||0),S=a;return(S.position==="relative"||S.position==="static")&&(k+=v.offsetTop,E+=v.offsetLeft),n.support.fixedPosition&&S.position==="fixed"&&(k+=Math.max(h.scrollTop,v.scrollTop),E+=Math.max(h.scrollLeft,v.scrollLeft)),{top:k,left:E}},n.offset={bodyOffset:function(t){var r=t.offsetTop,a=t.offsetLeft;return n.support.doesNotIncludeMarginInBodyOffset&&(r+=parseFloat(n.css(t,"marginTop"))||0,a+=parseFloat(n.css(t,"marginLeft"))||0),{top:r,left:a}},setOffset:function(t,r,a){var u=n.css(t,"position");u==="static"&&(t.style.position="relative");var c=n(t),h=c.offset(),v=n.css(t,"top"),g=n.css(t,"left"),S=(u==="absolute"||u==="fixed")&&n.inArray("auto",[v,g])>-1,k={},E={},O,B;S?(E=c.position(),O=E.top,B=E.left):(O=parseFloat(v)||0,B=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+B),"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=hi.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||U.body;t&&!hi.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,x=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"],X={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},q={cornerSize:100},re=6,N={init:function(s){i="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,o=le(),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"},X,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(N._touchStart,this),touchMove:e.proxy(N._touchMove,this),touchEnd:e.proxy(N._touchEnd,this),start:e.proxy(N._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(ue(0,0,!0)),l=0;l<b.length;l++)e(b[l]).attr("ignore")!="1"&&this.turn("addPage",b[l],++n);return e(this).bind(M.down,m.eventHandlers.touchStart).bind("end",N._eventEnd).bind("pressed",N._eventPressed).bind("released",N._eventReleased).bind("flip",N._flip),e(this).parent().bind("start",m.eventHandlers.start),e(document).bind(M.move,m.eventHandlers.touchMove).bind(M.up,m.eventHandlers.touchEnd),this.turn("page",s.page),m.done=!0,this},addPage:function(s,l){var n,m,b=!1,L=this.data(),ae=L.totalPages+1;if(L.destroying)return!1;if((n=/\bp([0-9]+)\b/.exec(e(s).attr("class")))&&(l=parseInt(n[1],10)),l){if(l==ae)b=!0;else if(l>ae)throw pe('Page "'+l+'" cannot be inserted')}else l=ae,b=!0;return l>=1&&l<=ae&&(L.display=="double"?m=l%2?" odd":" even":m="",L.done&&this.turn("stop"),l in L.pageObjs&&N._movePages.call(this,l,1),b&&(L.totalPages=ae),L.pageObjs[l]=e(s).css({float:"left"}).addClass("page p"+l+m),!U()&&L.pageObjs[l].hasClass("hard")&&L.pageObjs[l].removeClass("hard"),N._addPage.call(this,l),N._removeFromDOM.call(this)),this},_addPage:function(s){var l=this.data(),n=l.pageObjs[s];if(n)if(N._necessPage.call(this,s)){if(!l.pageWrap[s]){l.pageWrap[s]=e("<div/>",{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=N._pageSize.call(this,s,!0);n.css({width:m.width,height:m.height}),l.pageWrap[s].css(m)}l.pagePlace[s]==s&&N._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 pe(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,L=Math.round(n.width*b*s),ae=Math.round(n.height*b*s);l.zoom=s,e(this).turn("stop").turn("size",L,ae),l.opts.autoCenter&&this.turn("center"),N._updateShadow.call(this);for(var te=0;te<m.length;te++)m[te]&&l.pageZoom[m[te]]!=l.zoom&&(this.trigger("zoomed",[m[te],m,l.pageZoom[m[te]],l.zoom]),l.pageZoom[m[te]]=l.zoom);return this}else return l.zoom},_pageSize:function(s,l){var n=this.data(),m={};if(n.display=="single")m.width=this.width(),m.height=this.height(),l&&(m.top=0,m.left=0,m.right="auto");else{var b=this.width()/2,L=this.height();if(n.pageObjs[s].hasClass("own-size")?(m.width=n.pageObjs[s].width(),m.height=n.pageObjs[s].height()):(m.width=b,m.height=L),l){var ae=s%2;m.top=(L-m.height)/2,n.direction=="ltr"?(m[ae?"right":"left"]=b-m.width,m[ae?"left":"right"]="auto"):(m[ae?"left":"right"]=b-m.width,m[ae?"right":"left"]="auto")}}return m},_makeFlip:function(s){var l=this.data();if(!l.pages[s]&&l.pagePlace[s]==s){var n=l.display=="single",m=s%2;l.pages[s]=l.pageObjs[s].css(N._pageSize.call(this,s)).flip({page:s,next:m||n?s+1:s-1,turn:this}).flip("disable",l.disabled),N._setPageLoc.call(this,s),l.pageZoom[s]=l.zoom}return l.pages[s]},_makeRange:function(){var s,l,n=this.data();if(!(n.totalPages<1))for(l=this.turn("range"),s=l[0];s<=l[1];s++)N._addPage.call(this,s)},range:function(s){var l,n,m,b,L=this.data();if(s=s||L.tpage||L.page||1,b=N._view.call(this,s),s<1||s>L.totalPages)throw pe('"'+s+'" is not a valid page');return b[1]=b[1]||b[0],b[0]>=1&&b[1]<=L.totalPages?(l=Math.floor((re-2)/2),L.totalPages-b[1]>b[0]?(n=Math.min(b[0]-1,l),m=2*l-n):(m=Math.min(L.totalPages-b[1],l),n=2*l-m)):(n=re-1,m=re-1),[Math.max(1,b[0]-n),Math.min(L.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)&&!N._necessPage.call(this,s)&&N._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var l=this.data();if(l.pages[s]){var n=l.pages[s].data();_._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]),N._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 pe("The page "+s+" doesn't exist");l.pageObjs[s]&&(this.turn("stop"),N._removePageFromDOM.call(this,s),delete l.pageObjs[s]),N._movePages.call(this,s,-1),l.totalPages=l.totalPages-1,l.page>l.totalPages?(l.page=null,N._fitPage.call(this,l.totalPages)):(N._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,l){var n,m=this,b=this.data(),L=b.display=="single",ae=function(te){var ve=te+l,Re=ve%2,Ne=Re?" odd ":" even ";b.pageObjs[te]&&(b.pageObjs[ve]=b.pageObjs[te].removeClass("p"+te+" odd even").addClass("p"+ve+Ne)),b.pagePlace[te]&&b.pageWrap[te]&&(b.pagePlace[ve]=ve,b.pageObjs[ve].hasClass("fixed")?b.pageWrap[ve]=b.pageWrap[te].attr("page",ve):b.pageWrap[ve]=b.pageWrap[te].css(N._pageSize.call(m,ve,!0)).attr("page",ve),b.pages[te]&&(b.pages[ve]=b.pages[te].flip("options",{page:ve,next:L||Re?ve+1:ve-1})),l&&(delete b.pages[te],delete b.pagePlace[te],delete b.pageZoom[te],delete b.pageObjs[te],delete b.pageWrap[te]))};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 pe('"'+s+'" is not a value for display');switch(s){case"single":l.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),l.pageObjs[0]=e("<div />",{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");N._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 pe('"'+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(),L=b.display=="double"?s/2:s;this.css({width:s,height:l}),b.pageObjs[0]&&b.pageObjs[0].css({width:L,height:l});for(n in b.pageWrap)Ae(n,b.pageWrap)&&(m=N._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);N._updateShadow.call(this),l.opts.autoCenter&&this.turn("center")},_removeMv:function(s){var l,n=this.data();for(l=0;l<n.pageMv.length;l++)if(n.pageMv[l]==s)return n.pageMv.splice(l,1),!0;return!1},_addMv:function(s){var l=this.data();N._removeMv.call(this,s),l.pageMv.push(s)},_view:function(s){var l=this.data();return s=s||l.page,l.display=="double"?s%2?[s-1,s]:[s,s+1]:[s]},view:function(s){var l=this.data(),n=N._view.call(this,s);return l.display=="double"?[n[0]>0?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,L=this.data();for(L.tpage&&(L.page=L.tpage,delete L.tpage),n=0;n<L.pageMv.length;n++)!L.pageMv[n]||L.pageMv[n]===s||(b=L.pages[L.pageMv[n]],m=b.data().f.opts,b.flip("hideFoldedPage",l),l||_._moveFoldingPage.call(b,!1),m.force&&(m.next=m.page%2===0?m.page-1:m.page+1,delete m.force))}return this.turn("update"),this},pages:function(s){var l=this.data();if(s){if(s<l.totalPages)for(var n=l.totalPages;n>s;n--)this.turn("removePage",n);return l.totalPages=s,N._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(N._missing.call(this,s),!!l.pageObjs[s]){l.page=s,this.turn("stop");for(var m=0;m<n.length;m++)n[m]&&l.pageZoom[n[m]]!=l.zoom&&(this.trigger("zoomed",[n[m],n,l.pageZoom[n[m]],l.zoom]),l.pageZoom[n[m]]=l.zoom);N._removeFromDOM.call(this),N._makeRange.call(this),N._updateShadow.call(this),this.trigger("turned",[s,n]),this.turn("update"),l.opts.autoCenter&&this.turn("center")}},_turnPage:function(s){var l,n,m=this.data(),b=m.pagePlace[s],L=this.turn("view"),ae=this.turn("view",s);if(m.page!=s){var te=m.page;if(Te("turning",this,[s,ae])=="prevented"){te==m.page&&e.inArray(b,m.pageMv)!=-1&&m.pages[b].flip("hideFoldedPage",!0);return}e.inArray(1,ae)!=-1&&this.trigger("first"),e.inArray(m.totalPages,ae)!=-1&&this.trigger("last")}m.display=="single"?(l=L[0],n=ae[0]):L[1]&&s>L[1]?(l=L[1],n=ae[0]):L[0]&&s<L[0]&&(l=L[0],n=ae[1]);var ve=m.opts.turnCorners.split(","),Re=m.pages[l].data().f,Ne=Re.opts,Ie=Re.point;N._missing.call(this,s),m.pageObjs[s]&&(this.turn("stop"),m.page=s,N._makeRange.call(this),m.tpage=n,Ne.next!=n&&(Ne.next=n,Ne.force=!0),this.turn("update"),Re.point=Ie,Re.effect=="hard"?m.direction=="ltr"?m.pages[l].flip("turnPage",s>l?"r":"l"):m.pages[l].flip("turnPage",s>l?"l":"r"):m.direction=="ltr"?m.pages[l].flip("turnPage",ve[s>l?1:0]):m.pages[l].flip("turnPage",ve[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?N._fitPage.call(this,s):N._turnPage.call(this,s)),this;throw pe("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,N._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,N._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(),N._addMv.call(l,s.page)},_eventStart:function(s,l,n){var m=l.turn.data(),b=m.pageZoom[l.page];if(s.isDefaultPrevented()){N._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.next<l.page?l.next:l.page-1,l.force=!0):l.next=l.next>l.page?l.next:l.page+1),N._addMotionPage.call(s.target),N._updateShadow.call(l.turn)},_eventEnd:function(s,l,n){var m=e(s.target);m.data().f;var b=l.turn,L=b.data();if(n){var ae=L.tpage||L.page;(ae==l.next||ae==l.page)&&(delete L.tpage,N._fitPage.call(b,ae||l.next,!0))}else N._removeMv.call(b,l.page),N._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,L=b.opts.turn,ae=L.data();ae.display=="single"?n=l.corner=="br"||l.corner=="tr"?l.x<m.width()/2:l.x>m.width()/2:n=l.x<0||l.x>m.width(),(new Date().getTime()-b.time<200||n)&&(s.preventDefault(),N._turnPage.call(L,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)&&_._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)&&_._eventMove.apply(s.pages[l],arguments)},_touchEnd:function(){var s=this.data();for(var l in s.pages)Ae(l,s.pages)&&_._eventEnd.apply(s.pages[l],arguments)},calculateZ:function(s){var l,n,m,b,L,ae=this,te=this.data(),ve=this.turn("view"),Re=ve[0]||ve[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=te.pages[n].data().f.opts.next,b=te.pagePlace[n],st(n),st(m),L=te.pagePlace[m]==m?m:n,Ie.pageZ[L]=te.totalPages-Math.abs(Re-L),Ie.partZ[b]=te.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),L=this.turn("corner"),ae=this.turn("view"),te=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!=te[0]&&s!=te[1]):n.flip("hover",L===!1).flip("disable",s!=ae[0]&&s!=ae[1])))}else for(s in l.pageWrap)if(Ae(s,l.pageWrap)){var ve=N._setPageLoc.call(this,s);l.pages[s]&&l.pages[s].flip("disable",l.disabled||ve!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,l,n,m=this.data(),b=this.width(),L=this.height(),ae=m.display=="single"?b:b/2;s=this.turn("view"),m.shadow||(m.shadow=e("<div />",{class:"shadow",css:K(0,0,0).css}).appendTo(this));for(var te=0;te<m.pageMv.length&&!(!s[0]||!s[1]);te++)s=this.turn("view",m.pages[m.pageMv[te]].data().f.opts.next),l=this.turn("view",m.pageMv[te]),s[0]=s[0]&&l[0],s[1]=s[1]&&l[1];switch(s[0]?s[1]?n=3:n=m.direction=="ltr"?2:1:n=m.direction=="ltr"?1:2,n){case 1:m.shadow.css({width:ae,height:L,top:0,left:ae});break;case 2:m.shadow.css({width:ae,height:L,top:0,left:0});break;case 3:m.shadow.css({width:b,height:L,top:0,left:0});break}},_setPageLoc:function(s){var l=this.data(),n=this.turn("view"),m=0;if(s==n[0]||s==n[1]?m=1:(l.display=="single"&&s==n[0]+1||l.display=="double"&&s==n[0]-2||s==n[1]+2)&&(m=2),!this.turn("animating"))switch(m){case 1:l.pageWrap[s].css({zIndex:l.totalPages,display:""});break;case 2:l.pageWrap[s].css({zIndex:l.totalPages-1,display:""});break;case 0:l.pageWrap[s].css({zIndex:0,display:l.pageObjs[s].hasClass("fixed")?"":"none"});break}return m},options:function(s){if(s===void 0)return this.data().opts;var l=this.data();if(e.extend(l.opts,s),s.pages&&this.turn("pages",s.pages),s.page&&this.turn("page",s.page),s.display&&this.turn("display",s.display),s.direction&&this.turn("direction",s.direction),s.width&&s.height&&this.turn("size",s.width,s.height),s.when)for(var n in s.when)Ae(n,s.when)&&this.unbind(n).bind(n,s.when[n]);return this},version:function(){return d}},_={init:function(s){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",s),_._addPageWrapper.call(this),this},setData:function(s){var l=this.data();return l.f=e.extend(l.f,s),this},options:function(s){var l=this.data().f;return s?(_.setData.call(this,{opts:e.extend({},l.opts||q,s)}),this):l.opts},z:function(s){var l=this.data().f;return l.opts["z-index"]=s,l.fwrapper&&l.fwrapper.css({zIndex:s||parseInt(l.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var s=this.data().f,l=s.opts.page,n=s.opts.turn.data(),m=l%2;return s.effect=="hard"?n.direction=="ltr"?[m?"r":"l"]:[m?"l":"r"]:n.display=="single"?l==1?n.direction=="ltr"?C.forward:C.backward:l==n.totalPages?n.direction=="ltr"?C.backward:C.forward:C.all:n.direction=="ltr"?C[m?"forward":"backward"]:C[m?"backward":"forward"]},_cornerActivated:function(s){var l=this.data().f,n=this.width(),m=this.height(),b={x:s.x,y:s.y,corner:""},L=l.opts.cornerSize;if(b.x<=0||b.y<=0||b.x>=n||b.y>=m)return!1;var ae=_._cAllowed.call(this);switch(l.effect){case"hard":if(b.x>n-L)b.corner="r";else if(b.x<L)b.corner="l";else return!1;break;case"sheet":if(b.y<L)b.corner+="t";else if(b.y>=m-L)b.corner+="b";else return!1;if(b.x<=L)b.corner+="l";else if(b.x>=n-L)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,_._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 G(l,l);case"tr":return G(this.width()-l,l);case"bl":return G(l,this.height()-l);case"br":return G(this.width()-l,this.height()-l);case"l":return G(l,0);case"r":return G(this.width()-l,0)}},_c2:function(s){switch(s){case"tl":return G(this.width()*2,0);case"tr":return G(-this.width(),0);case"bl":return G(this.width()*2,this.height());case"br":return G(-this.width(),this.height());case"l":return G(this.width()*2,0);case"r":return G(-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("<div/>",K(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 L=Math.round(Math.sqrt(Math.pow(m,2)+Math.pow(b,2)));l.wrapper.css({width:L,height:L}),l.fwrapper.css({width:L,height:L}).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}),_._backGradient.call(this)&&l.bshadow.css({width:m,height:b})}if(l.parent.is(":visible")){var ae=ke(l.parent[0]);l.fwrapper.css({top:ae.top,left:ae.left}),ae=ke(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("<div/>",K(0,0,2)).css(m).appendTo(n).prepend(this),s.fpage=e("<div/>",K(0,0,1)).css(m).appendTo(n),l.opts.gradients&&(s.ashadow=e("<div/>",K(0,0,0)).hide().appendTo(n),s.bshadow=e("<div/>",K(0,0,0)));break;case"sheet":if(this.width(),this.height(),s.fparent=s.opts.turn.data().fparent,!s.fparent){var b=e("<div/>",{css:{"pointer-events":"none"}}).hide();b.data().flips=0,b.css(K(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("<div/>",K(0,0,this.css("z-index"))).appendTo(n).prepend(this),s.fwrapper=e("<div/>",K(n.offset().top,n.offset().left)).hide().appendTo(s.fparent),s.fpage=e("<div/>",K(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),l.opts.gradients&&(s.ashadow=e("<div/>",K(0,0,1)).appendTo(s.fpage)),_.setData.call(this,s);break}_.resize.call(this,!0)},_fold:function(s){var l=this.data().f,n=l.opts.turn.data(),m=_._c.call(this,s.corner),b=this.width(),L=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,te,ve,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,Z=He*90,me=Z<90;switch(s.corner){case"l":Re="0% 50%",Ne="100% 50%",me?(ae=0,te=l.opts.next-1>0,ve=1):(ae="100%",te=l.opts.page+1<Ie,ve=0);break;case"r":Re="100% 50%",Ne="0% 50%",Z=-Z,b=-b,me?(ae=0,te=l.opts.next+1<Ie,ve=0):(ae="-100%",te=l.opts.page!=1,ve=1);break}nt[f+"perspective-origin"]=Ne,l.wrapper.transform("rotateY("+Z+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",Ne),l.fpage.transform("translateX("+b+"px) rotateY("+(180+Z)+"deg)",Re),l.parent.css(nt),me?(He=-He+1,l.wrapper.css({zIndex:st+1}),l.fpage.css({zIndex:st})):(He=He-1,l.wrapper.css({zIndex:st}),l.fpage.css({zIndex:st+1})),n.opts.gradients&&(te?l.ashadow.css({display:"",left:ae,backgroundColor:"rgba(0,0,0,"+.5*He+")"}).transform("rotateY(0deg)"):l.ashadow.hide(),l.bshadow.css({opacity:-He+1}),me?l.bshadow.parent()[0]!=l.wrapper[0]&&l.bshadow.appendTo(l.wrapper):l.bshadow.parent()[0]!=l.fpage[0]&&l.bshadow.appendTo(l.fpage),Be(l.bshadow,G(ve*100,0),G((-ve+1)*100,0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var ce=this,Ee=0,_e,Xe,Ye,rt,et,kt,on,pt=G(0,0),mt=G(0,0),Ge=G(0,0),wn=_._foldingPage.call(this),Rt=n.opts.acceleration,Ft=l.wrapper.height(),At=s.corner.substr(0,1)=="t",yt=s.corner.substr(1,1)=="l",wt=function(){var qe=G(0,0),Je=G(0,0);qe.x=m.x?m.x-s.x:s.x,o?qe.y=m.y?m.y-s.y:s.y:qe.y=0,Je.x=yt?b-qe.x/2:s.x+qe.x/2,Je.y=qe.y/2;var ze=x-Math.atan2(qe.y,qe.x),Y=ze-Math.atan2(Je.y,Je.x),fe=Math.max(0,Math.sin(Y)*Math.sqrt(Math.pow(Je.x,2)+Math.pow(Je.y,2)));if(Ee=he(ze),Ge=G(fe*Math.sin(ze),fe*Math.cos(ze)),ze>x&&(Ge.x=Ge.x+Math.abs(Ge.y*qe.y/qe.x),Ge.y=0,Math.round(Ge.x*Math.tan(y-ze))<L))return s.y=Math.sqrt(Math.pow(L,2)+2*Je.x*qe.x),At&&(s.y=L-s.y),wt();if(ze>x){var we=y-ze,De=Ft-L/Math.sin(we);pt=G(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=G(Math.round(yt?je-Ke:_e+Ke),Math.round(At?ft:L-ft)),n.opts.gradients){et=je*Math.sin(ze);var Fe=_._c2.call(ce,s.corner),$e=Math.sqrt(Math.pow(Fe.x-s.x,2)+Math.pow(Fe.y-s.y,2))/b;on=Math.sin(x*($e>1?2-$e:$e)),kt=Math.min($e,1),rt=et>100?(et-100)/et:0,Xe=G(et*Math.sin(ze)/b*100,et*Math.cos(ze)/L*100),_._backGradient.call(ce)&&(Ye=G(et*1.2*Math.sin(ze)/b*100,et*1.2*Math.cos(ze)/L*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 fe=["0","auto"],we=(b-Ft)*ze[0]/100,De=(L-Ft)*ze[1]/100,je={left:fe[Je[0]],top:fe[Je[1]],right:fe[Je[2]],bottom:fe[Je[3]]},Ke={},ft=Y!=90&&Y!=-90?yt?-1:1:0,Fe=ze[0]+"% "+ze[1]+"%";ce.css(je).transform(ge(Y)+ue(qe.x+ft,qe.y,Rt),Fe),l.fpage.css(je).transform(ge(Y)+ue(qe.x+mt.x-pt.x-b*ze[0]/100,qe.y+mt.y-pt.y-L*ze[1]/100,Rt)+ge((180/Y-2)*Y),Fe),l.wrapper.transform(ue(-qe.x+we-ft,-qe.y+De,Rt)+ge(-Y),Fe),l.fwrapper.transform(ue(-qe.x+pt.x+we,-qe.y+pt.y+De,Rt)+ge(-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*on+")",wn.css(Ke),Be(l.ashadow,G(yt?100:0,At?0:100),G(Xe.x,Xe.y),[[rt,"rgba(0,0,0,0)"],[(1-rt)*.8+rt,"rgba(0,0,0,"+.2*kt+")"],[1,"rgba(255,255,255,"+.2*kt+")"]],3),_._backGradient.call(ce)&&Be(l.bshadow,G(yt?0:100,At?0:100),G(Ye.x,Ye.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*kt+")"],[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(G(-Ge.x,Ge.y),[0,0,0,1],[0,0],-Ee);break;case"bl":s.x=Math.max(s.x,1),wt(),It(G(Ge.x,-Ge.y),[1,1,0,0],[100,100],-Ee);break;case"br":s.x=Math.min(s.x,b-1),wt(),It(G(-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 L=l.opts.next;if(b[L]!=l.opts.page){l.folding&&_._moveFoldingPage.call(this,!1);var ae=_._foldingPage.call(this);ae.appendTo(l.fpage),b[L]=l.opts.page,l.folding=L}n.turn("update")}else if(l.folding){if(m.pages[l.folding]){var te=m.pages[l.folding].data().f;m.pageObjs[l.folding].appendTo(te.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=_._foldingPage.call(this),m=this.data(),b=m.f,L=b.visible;if(n){if(!L||!b.point||b.point.corner!=s.corner){var ae=b.status=="hover"||b.status=="peel"||b.opts.turn.data().mouseAction?s.corner:null;if(L=!1,Te("start",this,[b.opts,ae])=="prevented")return!1}if(l){var te=this,ve=b.point&&b.point.corner==s.corner?b.point:_._c.call(this,s.corner,1);this.animatef({from:[ve.x,ve.y],to:[s.x,s.y],duration:500,frame:function(Re){s.x=Math.round(Re[0]),s.y=Math.round(Re[1]),_._fold.call(te,s)}})}else _._fold.call(this,s),m.effect&&!m.effect.turning&&this.animatef(!1);if(!L)switch(b.effect){case"hard":b.visible=!0,_._moveFoldingPage.call(this,!0),b.fpage.show(),b.opts.shadows&&b.bshadow.show();break;case"sheet":b.visible=!0,b.fparent.show().data().flips++,_._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=_._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 L=_._c.call(this,m.corner),ae=m.corner.substr(0,1)=="t",te=ae?Math.min(0,m.y-L.y)/2:Math.max(0,m.y-L.y)/2,ve=G(m.x,m.y+te),Re=G(L.x,L.y-te);this.animatef({from:0,to:1,frame:function(Ne){var Ie=j(m,ve,Re,L,Ne);m.x=Ie.x,m.y=Ie.y,_._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||_._cAllowed.call(this)[0]};var b=n.point||_._c.call(this,s.corner,n.opts.turn?m.opts.elevation:0),L=_._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(ae){var te=j(b,b,L,L,ae);s.x=te.x,s.y=te.y,_._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=_._isIArea.call(this,s),l.corner&&_._foldingPage.call(this))return this.trigger("pressed",[l.point]),_._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,_._showFoldedPage.call(this,l.corner)}else if(l.hover&&!this.data().effect&&this.is(":visible")){var m=_._isIArea.call(this,s[0]);if(m){if(l.effect=="sheet"&&m.corner.length==2||l.effect=="hard"){l.status="hover";var b=_._c.call(this,m.corner,l.opts.cornerSize/2);m.x=b.x,m.y=b.y,_._showFoldedPage.call(this,m,!0)}}else l.status=="hover"&&(l.status="",_.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,l=s.corner;!s.disabled&&l&&Te("released",this,[s.point||l])!="prevented"&&_.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return _.setData.call(this,{disabled:s}),this},hover:function(s){return _.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 pe("Corner "+s+" is not permitted");if(e.inArray(s,_._cAllowed.call(this))!=-1){var m=_._c.call(this,s,n.opts.cornerSize/2);n.status="peel",_._showFoldedPage.call(this,{corner:s,x:m.x,y:m.y},l)}}else n.status="",_.hideFoldedPage.call(this,l);return this}};function Q(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 pe(n[0]+" is not a method or property")}function K(s,l,n,m){return{css:{position:"absolute",top:s,left:l,overflow:m||"hidden",zIndex:n||"auto"}}}function j(s,l,n,m,b){var L=1-b,ae=L*L*L,te=b*b*b;return G(Math.round(ae*s.x+3*b*L*L*l.x+3*b*b*L*n.x+te*m.x),Math.round(ae*s.y+3*b*L*L*l.y+3*b*b*L*n.y+te*m.y))}function he(s){return s/y*180}function G(s,l){return{x:s,y:l}}function le(){var s;if(s=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var l=parseFloat(s[1]);return l>534.3}else return!0}function ue(s,l,n){return i&&n?" translate3d("+s+"px,"+l+"px, 0px) ":" translate("+s+"px, "+l+"px) "}function ge(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 Pe(){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 L,ae=[];if(f=="-webkit-"){for(L=0;L<b;L++)ae.push("color-stop("+m[L][0]+", "+m[L][1]+")");s.css({"background-image":"-webkit-gradient(linear, "+l.x+"% "+l.y+"%,"+n.x+"% "+n.y+"%, "+ae.join(",")+" )"})}else{l={x:l.x/100*s.width(),y:l.y/100*s.height()},n={x:n.x/100*s.width(),y:n.y/100*s.height()};var te=n.x-l.x,ve=n.y-l.y,Re=Math.atan2(ve,te),Ne=Re-Math.PI/2,Ie=Math.abs(s.width()*Math.sin(Ne))+Math.abs(s.height()*Math.cos(Ne)),st=Math.sqrt(ve*ve+te*te),nt=G(n.x<l.x?s.width():0,n.y<l.y?s.height():0),He=Math.tan(Re),Z=-1/He,me=(Z*nt.x-nt.y-He*l.x+l.y)/(Z-He),ce={x:me,y:Z*me-Z*nt.x+nt.y},Ee=Math.sqrt(Math.pow(ce.x-l.x,2)+Math.pow(ce.y-l.y,2));for(L=0;L<b;L++)ae.push(" "+m[L][1]+" "+(Ee+st*m[L][0])*100/Ie+"%");s.css({"background-image":f+"linear-gradient("+-Re+"rad,"+ae.join(",")+")"})}}function Te(s,l,n){var m=e.Event(s);return l.trigger(m,n),m.isDefaultPrevented()?"prevented":m.isPropagationStopped()?"stopped":""}function pe(s){function l(n){this.name="TurnJsError",this.message=n}return l.prototype=new Error,l.prototype.constructor=l,new l(s)}function ke(s){var l={top:0,left:0};do l.left+=s.offsetLeft,l.top+=s.offsetTop;while(s=s.offsetParent);return l}function U(){return navigator.userAgent.indexOf("MSIE 9.0")==-1}window.requestAnim=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(s){window.setTimeout(s,1e3/60)}}(),e.extend(e.fn,{flip:function(){return Q(e(this[0]),_,arguments)},turn:function(){return Q(e(this[0]),N,arguments)},transform:function(s,l){var n={};return l&&(n[f+"transform-origin"]=l),n[f+"transform"]=s,this.css(n)},animatef:function(s){var l=this.data();if(l.effect&&l.effect.stop(),s){s.to.length||(s.to=[s.to]),s.from.length||(s.from=[s.from]);for(var n=[],m=s.to.length,b=!0,L=this,ae=new Date().getTime(),te=function(){if(!(!l.effect||!b)){for(var Re=[],Ne=Math.min(s.duration,new Date().getTime()-ae),Ie=0;Ie<m;Ie++)Re.push(l.effect.easing(1,Ne,s.from[Ie],n[Ie],s.duration));s.frame(m==1?Re[0]:Re),Ne==s.duration?(delete l.effect,L.data(l),s.complete&&s.complete()):window.requestAnim(te)}},ve=0;ve<m;ve++)n.push(s.to[ve]-s.from[ve]);l.effect=e.extend({stop:function(){b=!1},easing:function(Re,Ne,Ie,st,nt){return st*Math.sqrt(1-(Ne=Ne/nt-1)*Ne)+Ie}},s),this.data(l),te()}else delete l.effect}}),e.isTouch=T,e.mouseEvents=M,e.cssPrefix=be,e.cssTransitionEnd=Pe,e.findPos=ke})(jQuery);const lo={grades:[{text:"全部年级",value:""},{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5},{text:"六年级",value:6},{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}],bookTypes:{LAST:"上册",NEXT:"下册"}},Jp=ct({name:"courseware-list",setup(){ho();const e=Ce(!1),i=()=>{po({api:"goBack"})},o=En({currentGradeNum:0,page:1,rows:999,type:"COURSEWARE"}),f=Ue(()=>lo.grades.map((j,he)=>({...j,color:o.currentGradeNum===he?"var(--van-primary-color)":"",className:o.currentGradeNum===he?"fontBlod":""}))),d=(j,he)=>{o.currentGradeNum=he,$()},y=Ce(!1),x=En({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),T=async()=>{var he;x.loading=!0;const j=await ou({...o,currentGradeNum:o.currentGradeNum?o.currentGradeNum:""});(j==null?void 0:j.code)===200&&Array.isArray((he=j==null?void 0:j.data)==null?void 0:he.rows)&&(x.list=j.data.rows.map(G=>(G.load=!1,G.key=Date.now()+G.id,G))),x.loading=!1,y.value=!0},M=async()=>{var he,G,le;x.loading=!0;const j=await au({clientType:"STUDENT",userId:(G=(he=ls.user)==null?void 0:he.data)==null?void 0:G.id,page:o.page,rows:o.rows,currentGradeNum:o.currentGradeNum?o.currentGradeNum:""});(j==null?void 0:j.code)===200&&Array.isArray((le=j==null?void 0:j.data)==null?void 0:le.rows)&&(x.list=j.data.rows.map(ue=>(ue.name=`${ue.name}`,ue.load=!1,ue.favoriteFlag=!0,ue.key=Date.now()+ue.id,ue))),x.loading=!1},C=async()=>{var he;x.loading=!0;const j=await su({page:o.page,rows:o.rows});(j==null?void 0:j.code)===200&&Array.isArray((he=j==null?void 0:j.data)==null?void 0:he.rows)&&(x.list=j.data.rows.map(G=>(G.load=!1,G.key=Date.now()+G.id,G))),x.loading=!1,y.value=!0},P=()=>{x.tab==="all"&&T(),x.tab==="favorite"&&M(),x.tab==="course"&&C()},$=()=>{P()};Ot(()=>{P()});const X=async j=>{j.favoriteFlag?await lu({lessonCoursewareId:j.id}):(await uu({lessonCoursewareId:j.id}),x.tab==="favorite"&&P())};let q=null;const re=(j,he=300)=>{q&&clearTimeout(q),q=setTimeout(j,he)},N=async j=>{var he,G;if(x.tab==="course"){const le=await fu(j.id);if(console.log(le,j,"course"),(le==null?void 0:le.code)==200&&Array.isArray((he=le==null?void 0:le.data)==null?void 0:he.lessonList))x.details=le.data.lessonList||[],x.bookData=le.data,console.log("🚀 ~ data.details course:",x.details);else{us({title:"提示",message:"课程教材已更新,是否重新加载?"}).then(()=>{P()}).catch(()=>{});return}}else{const le=await cu(j.id);(le==null?void 0:le.code)==200&&Array.isArray((G=le==null?void 0:le.data)==null?void 0:G.lessonList)&&(x.details=le.data.lessonList||[],x.bookData=le.data,console.log("🚀 ~ data.details:",x.details))}_(j.id),Q(()=>{x.showBook=!0})},_=j=>{const he=document.querySelector(`[data-id="${j}"]`);if(!he)return;const G=he.getBoundingClientRect();x.book=G},Q=j=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{j()})})},K=async j=>{await N(j)};return()=>ne("div",{class:lt.container},[ne("div",{class:lt.head,style:{opacity:x.showBook?0:""}},[ne("div",{class:lt.back,onClick:i},[ne("img",{src:Eo},null)]),ne(Is,{class:lt.tabs,active:x.tab,"onUpdate:active":j=>x.tab=j,onChange:()=>$()},{default:()=>[ne(vr,{title:"全部教材",name:"all"},null),ne(vr,{title:"课程教材",name:"course"},null),ne(vr,{name:"favorite"},{title:()=>ne("div",{id:"courseware-2"},[vt("我的收藏")])})]}),ne(Fl,{show:e.value,"onUpdate:show":j=>e.value=j,class:lt.popover,actions:f.value,onSelect:d},{reference:()=>ne(hn,Mn({class:lt.downBtn,round:!0,size:"small"},{id:"courseware-3"}),{default:()=>[lo.grades[o.currentGradeNum].text," ",ne("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"},[ne("title",null,[vt("三角形")]),ne("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[ne("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[ne("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[ne("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[ne("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)])])])])])]})})]),ne("div",{class:lt.content},[ne("div",{class:[lt.wrap,x.list.length<=0&&!x.loading?lt.emtpyWrap:""]},[x.list.map((j,he)=>ne("div",{class:[lt.wrapItem,x.bookData.id===j.id&&x.showBook?lt.wrapItemHide:""],key:j.key,onClick:()=>K(j)},[ne("div",{class:lt.item},[ne(Op,Mn({"data-id":j.id},{id:he==0?"courseware-0":""},{class:[lt.cover,j.load?lt.loaded:""],objectFit:"cover",src:j.coverImg,onLoad:()=>{j.load=!0},onError:()=>{j.load=!0}}),null)]),ne("div",{class:lt.name},[j.name]),x.tab!=="course"&&ne("div",{id:he===0?"courseware-1":"",class:lt.favoriteBtn,onClick:G=>{G.stopPropagation(),j.favoriteFlag=!j.favoriteFlag,re(()=>X(j))}},[ne(Rp,{isFavorite:j.favoriteFlag},null)])])),x.list.length<=0&&!x.loading&&ne(ss,{image:"list",description:"暂无数据"},null)])]),ne($p,{show:x.showBook,bookData:x.bookData,tab:x.tab,rect:x.book,onClose:()=>{x.showBook=!1}},null),y.value?ne(qp,null,null):null])}});export{lo as BOOK_DATA,Jp as default};