import{d as Mt,a as L,A as je,q as un,K as qt,r as Fe,x as Lt,y as Gt,_ as On,w as jn,F as Xt,z as Bt,N as zn,Y as Hn,Q as Ut,R as Wn,U as cn,C as Tt,h as on,a7 as Rn,V as an}from"./index-042da08e.js";import{S as qn,a as Un,b as Gn,c as Xn,d as Kn,e as Qn,f as Vn,g as Yn,h as Jn,i as Zn,j as $n,k as er,l as tr}from"./index-baaf4a8f.js";import{g as Nt,s as Ge}from"./index-f29d9041.js";import{g as nr,s as rr}from"./api-0698988f.js";import{d as Wt}from"./deep-clone-c0d00fc2.js";import{N as ir}from"./Image-1d3977f1.js";import{T as sr,a as Rt}from"./index-be2ca64a.js";import{T as ln}from"./index-d158f18b.js";import"./use-tab-status-8f48c975.js";import"./index-d4d0be32.js";import"./use-refs-dec66328.js";import"./index-8e84fb3a.js";const or="_container_sfmc2_1",ar="_head_sfmc2_12",lr="_back_sfmc2_20",ur="_tabs_sfmc2_23",cr="_downBtn_sfmc2_39",fr="_activeBtn_sfmc2_50",dr="_icon_sfmc2_50",hr="_iconUp_sfmc2_75",pr="_popover_sfmc2_80",gr="_content_sfmc2_99",mr="_wrap_sfmc2_105",vr="_emtpyWrap_sfmc2_111",yr="_wrapItem_sfmc2_122",wr="_item_sfmc2_132",Ar="_name_sfmc2_163",xr="_favoriteBtn_sfmc2_170",br="_containerImg_sfmc2_176",Tr="_cover_sfmc2_202",Cr="_loaded_sfmc2_232",kr="_book_sfmc2_235",Pr="_bookWrap_sfmc2_249",Nr="_show_sfmc2_257",Mr="_popupContainer_sfmc2_262",Dr="_searchList_sfmc2_268",Sr="_popoverTitle_sfmc2_274",Er="_popupList_sfmc2_290",Fr="_subjectItem_sfmc2_312",Br="_arrow_sfmc2_330",Lr="_active_sfmc2_50",_r="_btnGroup_sfmc2_351",Ir="_btnSure_sfmc2_366",Or="_containerTablet_sfmc2_371",jr="_contentEmpty_sfmc2_375",oe={container:or,head:ar,back:lr,tabs:ur,downBtn:cr,activeBtn:fr,icon:dr,iconUp:hr,popover:pr,content:gr,wrap:mr,emtpyWrap:vr,wrapItem:yr,item:wr,name:Ar,favoriteBtn:xr,containerImg:br,cover:Tr,loaded:Cr,book:kr,bookWrap:Pr,show:Nr,popupContainer:Mr,searchList:Dr,popoverTitle:Sr,popupList:Er,subjectItem:Fr,arrow:Br,active:Lr,btnGroup:_r,btnSure:Ir,containerTablet:Or,contentEmpty:jr},fn=""+new URL("icon_back-5e4a9810.svg",import.meta.url).href;const zr="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/tDYkHY2iPIKclz3XYuAbZNmo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TuXXxKPIoaM3gn/YR/M98asq97b1/d2x3/B8k9N3E67sAEAAAAAElFTkSuQmCC",Wr=Mt({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(T){return()=>L("div",{class:["favoriteWrap",T.isFavorite?"liked":""]},[L("img",{class:"favoritIcon",src:T.isFavorite?Hr:zr},null)])}}),Rr="_book_f8oe1_1",qr="_back_f8oe1_11",Ur="_bookHide_f8oe1_16",Gr="_wrap_f8oe1_36",Xr="_wrapItem_f8oe1_53",Kr="_item_f8oe1_60",Qr="_name_f8oe1_69",Vr="_des_f8oe1_76",Yr="_icon_f8oe1_81",Jr="_last_f8oe1_86",Zr="_preIcon_f8oe1_129",$r="_nameText_f8oe1_134",We={book:Rr,back:qr,bookHide:Ur,wrap:Gr,wrapItem:Xr,item:Kr,name:Qr,des:Vr,icon:Yr,last:Jr,preIcon:Zr,nameText:$r},ei="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAFDElEQVRYCcWZy24cRRSGT3XPxbHj+MIlwXLCJkJKkLJmzSICicfIhi0Pwg55k9dASF6AxAOwQAIhgRRkQpwQRMaZxjOeme7i/8+pmqtlVwMzLqlVl66u+uo/p0731DiZS/6s+754eYTmhyL+DsrX57r892obQzon0nkmUlUF5jnCoIcizcfujXd+mJ4AvSx571tyVnyO2qfifRbbl5K3NwCIKU5eiJSDyRTOVagcyM7+Z845vaGAAe4rgH046b3EUuuaSNYQOX0l0oeAC8l9Lbv7HxPSlKJyq4IjTFkaUgtKnpsg1KuntKa44HPfL92sMyAwnJoZefGXyODvmbtaobl940GmG2LZPrcwvZ/43saOSKO10MMEGz6iibFbryCNsAfKke3mzbdN0UWMh873X3eXEkoWJzu/pYkNk2PDMJVDmPtUhPAV/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zaCxtV77jf9bXXw7WFY/ZbpHzkI587BzNmm71EmBzgUguNBj2WENXmKN9/htrbAzk+NZq8YabiqALV3hxr3QJF8uE+ITQ7whIlik+ud5ZOruzrgBomlZXLkDvWcgayBzBoWzQab4YlnHalnnRxgzyUGYaoTHZajLpJjnl7kHqwabjkl8VXMRLVavckt9+gFPHj/L0tj7rtio3//5V73/Hn4RTR6phu+2GFkAYGjPx/yl/pMTFhUXwPFd8LoXPeUk8eNA5bcBep8GkESoNQC/uYQnBBgi5bEQ9FUnz8ZXlhh7Ljhs/gxHpzUAq4T7aqj6S+WDh2AXZ/Dcy/CiBHG0bZKrO6Q9D8IpQ7wsaPQfExSdLkbgqbjDzbA3ffBTZINlW6bA1Ouh1UV0N5meJco46PE6ZPeQ7vFOdTOLiV3ZjnxuHaL0eys2x0JNO6GD6th/AR47KkoX1svVcLrrxrQa6pg3Hi3fKBn2R9vCjGnOINJ+YZVtljeTBKK/i1t2Sb3Vvm45c9AxUqT/fr64P134MjX8JCk5LJl3rc1fRatXWUuRW++B3ljoyh+bYWvmvotu66mhWuvy6dwuhFqMP8vNGq0ma1hzMloytGUPneeXMSn+a+uqbt2M5Q/7v4oveWdOtFq2bu+rBJjr2CxeLJPSvTfJcVSTSw7tsPYq9cN/0eogm3ae+ERGrl5XFbPfOcwL5c/Uv4BMfRITu69WqwAAAAASUVORK5CYII=",ni="_popBox_eldxy_1",ri="_popBody_eldxy_10",ii="_popBg_eldxy_19",si="_popClose_eldxy_26",oi="_list_eldxy_33",ai="_btnGroup_eldxy_47",ct={popBox:ni,popBody:ri,popBg:ii,popClose:si,list:oi,btnGroup:ai},li=""+new URL("select_courseware_box-d8662525.png",import.meta.url).href,ui="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAMAAAAtFKi+AAABzlBMVEUAAAAtwP80tf8ts/8lnv8wrv8vrf8vvP82tf8lnv8+wv8lnv8nn/8lnf8qpP9Bx/8vrP9AxP83t/85vf88wP8knf8qpP9CyP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URdk9w7mIDahoIMYuJdRkGioVg9UCApzTfjxEcP1iuaoYGfAsBA0WEWrNzTRw60qdEkoOtyg3K+VzKFVNxwP1LxHeURgseJVKCGOf+xP4CVz8LqoRmTaRg4yw2qobQ5mYpSxlBTQSBmudMBCCe3nYI/Dfsi/CGWscZNCllOd3HhVfuVzcI+FHOxxOgczE0nKaPOReTS3U51kusGZzai5J6+gQ0VMoXw6q0gRPmSFTuR+Q60a1EoOsmWFkRg1aCQl8LZRg0japFFt5yDgOViqiFZzMJPKUcAHTAmaWuhfXLnZPTsCNc9BSApOtOhIPELN/ICvnc7BlYjPTu/XOLHfJvu0Q2MAB7vnj5z+fizcijiIdRCLc1G/1x6PptK5JAXl+5PTvZbOJ5JI9H7DsSBJJCJwK6RtFanA4pW0zlnjI5XpbKf1zFI3McO93kXrlVYvqQbf1vpU7PCQaune1kLrDNfyLmIFd+eKNlo/dDR2E8ssbmpct5oueFpaV3qayT/j9jVt7Fy0QPF0NXmbyf/Ob4d7z2aD6A+sAAAAAElFTkSuQmCC",fi=""+new URL("btn-confirm-43a14702.png",import.meta.url).href,dn=Mt({name:"courseware-reload",props:{list:{type:Array,default:()=>[]},kjId:{type:String,default:""}},emits:["close","confirm"],setup(T,{emit:E}){return()=>L("div",{class:ct.popBox,onClick:Y=>Y.stopPropagation(),onTouchmove:Y=>Y.stopPropagation()},[L("div",{class:ct.popBody},[L("img",{class:ct.popBg,src:li},null),L("img",{class:ct.popClose,src:ui,onClick:Y=>{E("close")}},null),L("div",{class:ct.list,id:"list"},[je("课程教材已更新,是否重新加载?")]),L("div",{class:ct.btnGroup},[L("img",{class:ct.btn,src:ci,onClick:()=>{E("close")}},null),L("img",{class:ct.btn,src:fi,onClick:()=>{E("close"),E("confirm")}},null)])])])}}),di=Mt({name:"the-book",props:{bookData:{type:Object,default:()=>({})},bookLessonId:{type:String,default:""},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})},subjectId:{type:[String,Number],default:""}},emits:["close","confirm"],setup(T,{emit:E}){var Ze,te,ot,ze;un();const Y="lastTime"+((ze=(ot=(te=(Ze=qt)==null?void 0:Ze.user)==null?void 0:te.data)==null?void 0:ot.phone)!=null?ze:""),ce=Fe(!1),$=Lt({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem(Y),isClick:!1,coursewareList:[]}),De=Fe(!1),ee=Fe(!1),Se=Fe(!1),U=Fe(!1),Ae=Fe(0);Fe();const fe=async()=>{console.log("初始化完成")};Fe(!0);let de=null,Be=null;const xe=()=>{de=window.$("#flipbook");const k=document.body.clientHeight*.8;$.height=k,$.width=k*(210/297)*2,de.turn({autoCenter:!0,duration:1e3,disabled:!0,acceleration:!0,elevation:50,width:$.width,height:$.height,gradients:!0}),de.bind("start",(O,Z,H)=>{(H=="tl"||H=="tr")&&O.preventDefault(),$.isClick&&Bt(()=>{$.isClick=!1,H=="tl"||H=="tr"?O.preventDefault():de.turn("page",Z.next)})}),de.bind("turned",(O,Z,H)=>{Bt(()=>{Se.value=!0})}),de.bind("turning",(O,Z,H)=>{Z===de.turn("pages")&&R(!1),Z===1&&R(!1)})},Ne=()=>{const k=document.querySelector(".bookWrap");if(k){const O=k.getBoundingClientRect(),Z=T.rect.width/(O.width/2),H=T.rect.height/O.height,ie=(O.width/2*(Z-1)/2+T.rect.x-O.x-O.width/4)/Z,ve=(O.height*(H-1)/2+T.rect.y-O.y)/H,Ie=`scale3d(${Z}, ${H}, 1) translate(${ie}px, ${ve}px)`;k.style.transform=$.transform=Ie,k.style.transition="transform 0s",Bt(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{k.style.transition="transform 1s",k.style.transform="",$.show=!0,Be=setTimeout(()=>{de.turn("page",2)},500)})})})}},R=(k=!0)=>{if(Se.value=!1,U.value)return;U.value=!0,clearTimeout(Be);const O=document.querySelector(".bookWrap");k&&de.turn("page",1),O&&(O.style.transform=$.transform),E("close"),setTimeout(()=>{O.style.transition="",O.style.transform="",$.show=!1,$.list=[],U.value=!1},1e3)};Gt(async()=>{await fe(),On("webViewOnResume",()=>{$.lastTime=localStorage.getItem(Y)})});const K=()=>{var Z;if(!((Z=T.bookData)!=null&&Z.lessonList))return;Ae.value=Math.floor((document.body.clientHeight*.8-40)/50);const k=[];let O=[];for(let H=0;H=Ae.value?(k.push([...O]),O=[{name:ie.name}]):O.push({name:ie.name});for(let ve=0;ve=Ae.value?(k.push([...O]),O=[ie.knowledgeList[ve]]):O.push(ie.knowledgeList[ve])}O.length&&k.push(O),$.list=k};jn(()=>T.show,()=>{T.show&&(K(),Bt(()=>{xe(),requestAnimationFrame(()=>{Ne()})}))});const Re=async()=>{if(T.tab==="course"){const{data:k}=await Xn({id:T.bookLessonId});return k||!1}return!1},me=async k=>{var O;if(console.log(T.tab,"tab"),k.id){if(!k.containMaterial){zn("暂无资源");return}if(await Re()){ee.value=!0;return}if(k.coursewareNum)try{const H=T.tab=="all"||T.tab=="favorite"?await Un({lessonCoursewareKnowledgeDetailId:k.id}):await Gn({lessonCoursewareKnowledgeDetailId:k.id});(H==null?void 0:H.code)==200&&((O=H.data)!=null&&O.length)&&(H.data.forEach(ie=>{ie.coursewareDetailKnowledgeId=ie.coursewareDetailKnowledgeId||k.id,ie.lessonCoursewareId=k.lessonCoursewareId,ie.lessonCoursewareDetailId=k.lessonCoursewareDetailId,ie.zjName=k.name}),$.coursewareList=H.data,H.data.length==1?_e(H.data[0]):De.value=!0)}catch(H){}}},_e=async k=>{if(await Re()){ee.value=!0;return}if(k.id){if(ce.value)return;ce.value=!0,localStorage.setItem(Y,k.id);const Z=Hn.stringify({id:k.id,lessonCoursewareId:k.lessonCoursewareId,courseId:T.bookData.id,lessonCoursewareDetailId:k.lessonCoursewareDetailId,name:k.zjName,subjectId:T.subjectId,tab:T.tab,coursewareDetailKnowledgeId:k.coursewareDetailKnowledgeId}),H=location.origin+location.pathname+"#/courseware-play?"+Z;console.log("🚀 ~ url:",H),Ut({api:"openWebView",content:{url:H,orientation:0,isHideTitle:!1,c_orientation:0}}),ce.value=!1}};return()=>L("div",{class:[We.book,$.show?"":We.bookHide],onClick:()=>R(),onTouchmove:()=>{console.log("sdfds"),$.isClick=!0}},[L("div",{class:We.back},[L("img",{src:fn},null)]),L("div",{class:"bookWrap",style:{width:$.width+"px"},onClick:k=>{k.stopPropagation()}},[!!$.list.length&&L("div",{id:"flipbook",class:[$.show&&"animated"]},[L("div",{class:"page"},[L("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:T.bookData.coverImg},null)]),$.list.map(k=>L("div",{class:"page"},[L("div",{class:We.wrap},[L("div",{class:We.wrapItem},[k.map((O,Z)=>L(Xt,null,[L("div",{class:[We.item,O.id&&We.des],onTouchstart:H=>{H.stopPropagation()},onClick:H=>{H.stopPropagation(),me(O)},onTouchend:H=>{console.log(H)}},[O.id?L("img",{id:Z==1?"coursewareDetail-0":"",class:We.icon,src:ei},null):null,L("div",{class:We.name,style:{lineHeight:"20Px"}},[$.lastTime===O.id&&L("img",{src:ti,alt:"",class:We.preIcon},null),L("div",{class:We.nameText},[" ",O.name])])])]))])])])),$.list.length%2===1&&L("div",{class:"page",style:{pointerEvents:"none"}},[L("div",{class:We.wrap},[L("div",{class:We.wrapItem},null)])]),L("div",{class:"page"},[L("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:T.bookData.coverImg},null)])])]),De.value&&L(qn,{list:$.coursewareList,onClose:()=>{De.value=!1},onSelect:k=>_e(k)},null),ee.value&&L(dn,{onClose:()=>{ee.value=!1},onConfirm:()=>{R(),De.value=!1,E("confirm")}},null)])}}),hi=Mt({name:"courseware-list",emits:["close"],setup(T,{emit:E}){const Y=Lt({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Nt("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:Nt("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:Nt("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:Nt("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}),ce=Fe(!1),$=Fe({});(async()=>{var fe;try{const de=await nr({guideTag:"guideInfo"});de.data?$.value=JSON.parse((fe=de.data)==null?void 0:fe.guideValue)||null:$.value={},$.value&&$.value.courseware?ce.value=!1:ce.value=!0}catch(de){console.log(de)}})();const ee=()=>{var de,Be,xe,Ne;const fe=document.getElementById(`courseware-${Y.step}`);if(fe){const R=fe.getBoundingClientRect(),K=((de=Y.steps[Y.step].eleRectPadding)==null?void 0:de.left)||0,Re=((Be=Y.steps[Y.step].eleRectPadding)==null?void 0:Be.top)||0,me=((xe=Y.steps[Y.step].eleRectPadding)==null?void 0:xe.width)||0,_e=((Ne=Y.steps[Y.step].eleRectPadding)==null?void 0:Ne.height)||0;Y.box={left:R.x-K+"px",top:R.y-Re+"px",width:R.width+me+"px",height:R.height+_e+"px"}}else U()};Gt(()=>{ee(),window.addEventListener("resize",Se)});const Se=()=>{ee()};Wn(()=>{window.removeEventListener("resize",Se)});const U=()=>{if(Y.step>=3){Ae();return}Y.step=Y.step+1,ee()},Ae=async()=>{$.value?$.value.courseware=!0:$.value={courseware:!0};try{const fe=await rr({guideTag:"guideInfo",guideValue:JSON.stringify($.value)})}catch(fe){console.log(fe)}console.log("调用list完成"),ce.value=!1};return()=>L(cn,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ge.guidePopup],show:ce.value,"onUpdate:show":fe=>ce.value=fe},{default:()=>[L("div",{class:Ge.content,onClick:()=>U()},[Y.step!=Y.steps.length-1&&L("div",{class:Ge.backBtn,onClick:fe=>{fe.stopPropagation(),Ae()}},[je("跳过")]),L("div",{class:Ge.box,style:{...Y.box,...Y.steps[Y.step].boxStyle},id:`modeType-${Y.step}`},[Y.steps.map((fe,de)=>{var Be,xe;return L("div",{onClick:Ne=>Ne.stopPropagation(),class:Ge.item,style:{display:de===Y.step?"":"none",left:`${(Be=fe.eleRect)==null?void 0:Be.left}px`,top:`${(xe=fe.eleRect)==null?void 0:xe.top}px`}},[L("img",{class:Ge.img,style:fe.imgStyle,src:fe.img},null),L("img",{class:Ge.iconHead,style:fe.handStyle,src:Nt("indexDot.png")},null),L("div",{class:Ge.btns,style:fe.btnsStyle},[Y.step+1==Y.steps.length?L(Xt,null,[L(Tt,{class:[Ge.btn],round:!0,type:"primary",onClick:()=>Ae()},{default:()=>[je("完成")]}),L(Tt,{class:[Ge.btn,Ge.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{Y.step=0,ee()}},{default:()=>[je("再看一遍")]})]):L(Tt,{class:Ge.btn,round:!0,type:"primary",onClick:()=>U()},{default:()=>[je("下一步 ("),Y.step+1,je("/"),Y.steps.length,je(")")]})])])})])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */(function(T,E){function Y(e){return t.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}function ce(e){if(!zt[e]){var n=_.body,r=t("<"+e+">").appendTo(n),i=r.css("display");r.remove(),(i==="none"||i==="")&&(Je||(Je=_.createElement("iframe"),Je.frameBorder=Je.width=Je.height=0),n.appendChild(Je),(!bt||!Je.createElement)&&(bt=(Je.contentWindow||Je.contentDocument).document,bt.write((_.compatMode==="CSS1Compat"?"":"")+""),bt.close()),r=bt.createElement(e),bt.body.appendChild(r),i=t.css(r,"display"),n.removeChild(Je)),zt[e]=i}return zt[e]}function $(e,n){var r={};return t.each(rn.concat.apply([],rn.slice(0,n)),function(){r[this]=e}),r}function De(){Ft=E}function ee(){return setTimeout(De,0),Ft=t.now()}function Se(){try{return new T.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function U(){try{return new T.XMLHttpRequest}catch(e){}}function Ae(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r=e.dataTypes,i={},a,l,c=r.length,f,m=r[0],w,v,y,b,M;for(a=1;a0?(r!=="border"&&t.each(a,function(){r||(i-=parseFloat(t.css(e,"padding"+this))||0),r==="margin"?i+=parseFloat(t.css(e,r+this))||0:i-=parseFloat(t.css(e,"border"+this+"Width"))||0}),i+"px"):(i=At(e,n,n),(i<0||i==null)&&(i=e.style[n]||0),i=parseFloat(i)||0,r&&t.each(a,function(){i+=parseFloat(t.css(e,"padding"+this))||0,r!=="padding"&&(i+=parseFloat(t.css(e,"border"+this+"Width"))||0),r==="margin"&&(i+=parseFloat(t.css(e,r+this))||0)}),i+"px")}function K(e,n){n.src?t.ajax({url:n.src,async:!1,dataType:"script"}):t.globalEval((n.text||n.textContent||n.innerHTML||"").replace(st,"/*$0*/")),n.parentNode&&n.parentNode.removeChild(n)}function Re(e){var n=(e.nodeName||"").toLowerCase();n==="input"?me(e):n!=="script"&&typeof e.getElementsByTagName<"u"&&t.grep(e.getElementsByTagName("input"),me)}function me(e){(e.type==="checkbox"||e.type==="radio")&&(e.defaultChecked=e.checked)}function _e(e){return typeof e.getElementsByTagName<"u"?e.getElementsByTagName("*"):typeof e.querySelectorAll<"u"?e.querySelectorAll("*"):[]}function Ze(e,n){var r;n.nodeType===1&&(n.clearAttributes&&n.clearAttributes(),n.mergeAttributes&&n.mergeAttributes(e),r=n.nodeName.toLowerCase(),r==="object"?n.outerHTML=e.outerHTML:r!=="input"||e.type!=="checkbox"&&e.type!=="radio"?r==="option"?n.selected=e.defaultSelected:(r==="input"||r==="textarea")&&(n.defaultValue=e.defaultValue):(e.checked&&(n.defaultChecked=n.checked=e.checked),n.value!==e.value&&(n.value=e.value)),n.removeAttribute(t.expando))}function te(e,n){if(n.nodeType===1&&t.hasData(e)){var r,i,a,l=t._data(e),c=t._data(n,l),f=l.events;if(f){delete c.handle,c.events={};for(r in f)for(i=0,a=f[r].length;i=0===r})}function O(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function Z(){return!0}function H(){return!1}function ie(e,n,r){var i=n+"defer",a=n+"queue",l=n+"mark",c=t._data(e,i);c&&(r==="queue"||!t._data(e,a))&&(r==="mark"||!t._data(e,l))&&setTimeout(function(){!t._data(e,a)&&!t._data(e,l)&&(t.removeData(e,i,!0),c.fire())},0)}function ve(e){for(var n in e)if(!(n==="data"&&t.isEmptyObject(e[n]))&&n!=="toJSON")return!1;return!0}function Ie(e,n,r){if(r===E&&e.nodeType===1){var i="data-"+n.replace(W,"-$1").toLowerCase();if(r=e.getAttribute(i),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:t.isNumeric(r)?parseFloat(r):C.test(r)?t.parseJSON(r):r}catch(a){}t.data(e,n,r)}else r=E}return r}function Ct(e){var n=d[e]={},r,i;for(e=e.split(/\s+/),r=0,i=e.length;r)[^>]*$|#([\w\-]*)$)/,c=/\S/,f=/^\s+/,m=/\s+$/,w=/\d/,v=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,y=/^[\],:{}\s]*$/,b=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,M=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,B=/(?:^|:|,)(?:\s*\[)+/g,X=/(webkit)[ \/]([\w.]+)/,ne=/(opera)(?:.*version)?[ \/]([\w.]+)/,J=/(msie) ([\w.]+)/,Te=/(mozilla)(?:.*? rv:([\w.]+))?/,Ce=/-([a-z]|[0-9])/ig,Q=/^-ms-/,u=function(h,S){return(S+"").toUpperCase()},p=s.userAgent,A,x,P,N=Object.prototype.toString,F=Object.prototype.hasOwnProperty,z=Array.prototype.push,I=Array.prototype.slice,G=String.prototype.trim,Me=Array.prototype.indexOf,we={};return n.fn=n.prototype={constructor:n,init:function(h,S,j){var D,re,se,le;if(!h)return this;if(h.nodeType)return this.context=this[0]=h,this.length=1,this;if(h==="body"&&!S&&_.body)return this.context=_,this[0]=_.body,this.selector=h,this.length=1,this;if(typeof h=="string"){if(h.charAt(0)!=="<"||h.charAt(h.length-1)!==">"||h.length<3?D=l.exec(h):D=[null,h,null],D&&(D[1]||!S)){if(D[1])return S=S instanceof n?S[0]:S,le=S?S.ownerDocument||S:_,se=v.exec(h),se?n.isPlainObject(S)?(h=[_.createElement(se[1])],n.fn.attr.call(h,S,!0)):h=[le.createElement(se[1])]:(se=n.buildFragment([D[1]],[le]),h=(se.cacheable?n.clone(se.fragment):se.fragment).childNodes),n.merge(this,h);if(re=_.getElementById(D[2]),re&&re.parentNode){if(re.id!==D[2])return j.find(h);this.length=1,this[0]=re}return this.context=_,this.selector=h,this}return!S||S.jquery?(S||j).find(h):this.constructor(S).find(h)}return n.isFunction(h)?j.ready(h):(h.selector!==E&&(this.selector=h.selector,this.context=h.context),n.makeArray(h,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(h){return h==null?this.toArray():h<0?this[this.length+h]:this[h]},pushStack:function(h,S,j){var D=this.constructor();return n.isArray(h)?z.apply(D,h):n.merge(D,h),D.prevObject=this,D.context=this.context,S==="find"?D.selector=this.selector+(this.selector?" ":"")+j:S&&(D.selector=this.selector+"."+S+"("+j+")"),D},each:function(h,S){return n.each(this,h,S)},ready:function(h){return n.bindReady(),x.add(h),this},eq:function(h){return h===-1?this.slice(h):this.slice(h,+h+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(h){return this.pushStack(n.map(this,function(S,j){return h.call(S,j,S)}))},end:function(){return this.prevObject||this.constructor(null)},push:z,sort:[].sort,splice:[].splice},n.fn.init.prototype=n.fn,n.extend=n.fn.extend=function(){var h,S,j,D,re,se,le=arguments[0]||{},Ee=1,Ke=arguments.length,Ht=!1;for(typeof le=="boolean"&&(Ht=le,le=arguments[1]||{},Ee=2),typeof le!="object"&&!n.isFunction(le)&&(le={}),Ke===Ee&&(le=this,--Ee);Ee0)return;x.fireWith(_,[n]),n.fn.trigger&&n(_).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){if(x=n.Callbacks("once memory"),_.readyState==="complete")return setTimeout(n.ready,1);if(_.addEventListener)_.addEventListener("DOMContentLoaded",P,!1),T.addEventListener("load",n.ready,!1);else if(_.attachEvent){_.attachEvent("onreadystatechange",P),T.attachEvent("onload",n.ready);var h=!1;try{h=T.frameElement==null}catch(S){}_.documentElement.doScroll&&h&&e()}}},isFunction:function(h){return n.type(h)==="function"},isArray:Array.isArray||function(h){return n.type(h)==="array"},isWindow:function(h){return h&&typeof h=="object"&&"setInterval"in h},isNumeric:function(h){return h!=null&&w.test(h)&&!isNaN(h)},type:function(h){return h==null?String(h):we[N.call(h)]||"object"},isPlainObject:function(h){if(!h||n.type(h)!=="object"||h.nodeType||n.isWindow(h))return!1;try{if(h.constructor&&!F.call(h,"constructor")&&!F.call(h.constructor.prototype,"isPrototypeOf"))return!1}catch(j){return!1}var S;for(S in h);return S===E||F.call(h,S)},isEmptyObject:function(h){for(var S in h)return!1;return!0},error:function(h){throw h},parseJSON:function(h){if(typeof h!="string"||!h)return null;if(h=n.trim(h),T.JSON&&T.JSON.parse)return T.JSON.parse(h);if(y.test(h.replace(b,"@").replace(M,"]").replace(B,"")))return new Function("return "+h)();n.error("Invalid JSON: "+h)},parseXML:function(h){var S,j;try{T.DOMParser?(j=new DOMParser,S=j.parseFromString(h,"text/xml")):(S=new ActiveXObject("Microsoft.XMLDOM"),S.async="false",S.loadXML(h))}catch(D){S=E}return(!S||!S.documentElement||S.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+h),S},noop:function(){},globalEval:function(h){h&&c.test(h)&&(T.execScript||function(S){T.eval.call(T,S)})(h)},camelCase:function(h){return h.replace(Q,"ms-").replace(Ce,u)},nodeName:function(h,S){return h.nodeName&&h.nodeName.toUpperCase()===S.toUpperCase()},each:function(h,S,j){var D,re=0,se=h.length,le=se===E||n.isFunction(h);if(j)if(le){for(D in h)if(S.apply(h[D],j)===!1)break}else for(;re0&&h[0]&&h[Ee-1]||Ee===0||n.isArray(h));if(Ke)for(;le1?g.call(arguments,0):y,m.notifyWith(w,c)}}function r(v){return function(y){i[v]=arguments.length>1?g.call(arguments,0):y,--f||m.resolveWith(m,i)}}var i=g.call(arguments,0),a=0,l=i.length,c=Array(l),f=l,m=l<=1&&e&&t.isFunction(e.promise)?e:t.Deferred(),w=m.promise();if(l>1){for(;a
a",r=e.getElementsByTagName("*"),i=e.getElementsByTagName("a")[0],!r||!r.length||!i)return{};a=_.createElement("select"),l=a.appendChild(_.createElement("option")),c=e.getElementsByTagName("input")[0],m={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,unknownElems:!!e.getElementsByTagName("nav").length,checkOn:c.value==="on",optSelected:l.selected,getSetAttribute:e.className!=="t",enctype:!!_.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},c.checked=!0,m.noCloneChecked=c.cloneNode(!0).checked,a.disabled=!0,m.optDisabled=!l.disabled;try{delete e.test}catch(Te){m.deleteExpando=!1}!e.addEventListener&&e.attachEvent&&e.fireEvent&&(e.attachEvent("onclick",function(){m.noCloneEvent=!1}),e.cloneNode(!0).fireEvent("onclick")),c=_.createElement("input"),c.value="t",c.setAttribute("type","radio"),m.radioValue=c.value==="t",c.setAttribute("checked","checked"),e.appendChild(c),w=_.createDocumentFragment(),w.appendChild(e.lastChild),m.checkClone=w.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",e.style.width=e.style.paddingLeft="1px",v=_.getElementsByTagName("body")[0],b=_.createElement(v?"div":"body"),M={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},v&&t.extend(M,{position:"absolute",left:"-999px",top:"-999px"});for(ne in M)b.style[ne]=M[ne];if(b.appendChild(e),y=v||n,y.insertBefore(b,y.firstChild),m.appendChecked=c.checked,m.boxModel=e.offsetWidth===2,"zoom"in e.style&&(e.style.display="inline",e.style.zoom=1,m.inlineBlockNeedsLayout=e.offsetWidth===2,e.style.display="",e.innerHTML="
",m.shrinkWrapBlocks=e.offsetWidth!==2),e.innerHTML="
t
",B=e.getElementsByTagName("td"),J=B[0].offsetHeight===0,B[0].style.display="",B[1].style.display="none",m.reliableHiddenOffsets=J&&B[0].offsetHeight===0,e.innerHTML="",_.defaultView&&_.defaultView.getComputedStyle&&(f=_.createElement("div"),f.style.width="0",f.style.marginRight="0",e.appendChild(f),m.reliableMarginRight=(parseInt((_.defaultView.getComputedStyle(f,null)||{marginRight:0}).marginRight,10)||0)===0),e.attachEvent)for(ne in{submit:1,change:1,focusin:1})X="on"+ne,J=X in e,J||(e.setAttribute(X,"return;"),J=typeof e[X]=="function"),m[ne+"Bubbles"]=J;return t(function(){var Te,Ce,Q,u,p,A=1,x="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",P="visibility:hidden;border:0;",N="style='"+x+"border:5px solid #000;padding:0;'",F="
";v=_.getElementsByTagName("body")[0],!v||(Te=_.createElement("div"),Te.style.cssText=P+"width:0;height:0;position:static;top:0;margin-top:"+A+"px",v.insertBefore(Te,v.firstChild),b=_.createElement("div"),b.style.cssText=x+P,b.innerHTML=F,Te.appendChild(b),Ce=b.firstChild,Q=Ce.firstChild,u=Ce.nextSibling.firstChild.firstChild,p={doesNotAddBorder:Q.offsetTop!==5,doesAddBorderForTableAndCells:u.offsetTop===5},Q.style.position="fixed",Q.style.top="20px",p.fixedPosition=Q.offsetTop===20||Q.offsetTop===15,Q.style.position=Q.style.top="",Ce.style.overflow="hidden",Ce.style.position="relative",p.subtractsBorderForOverflowNotVisible=Q.offsetTop===-5,p.doesNotIncludeMarginInBodyOffset=v.offsetTop!==A,v.removeChild(Te),b=Te=null,t.extend(m,p))}),b.innerHTML="",y.removeChild(b),b=w=a=l=v=f=e=c=null,m}(),t.boxModel=t.support.boxModel;var C=/^(?:\{.*\}|\[.*\])$/,W=/([A-Z])/g;t.extend({cache:{},uuid:0,expando:"jQuery"+(t.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?t.cache[e[t.expando]]:e[t.expando],!!e&&!ve(e)},data:function(e,n,r,i){if(t.acceptData(e)){var a,l,c;t.expando;var f=typeof n=="string",m=e.nodeType,w=m?t.cache:e,v=m?e[t.expando]:e[t.expando]&&t.expando,y=n==="events";return(!v||!w[v]||!y&&!i&&!w[v].data)&&f&&r===E?void 0:(v||(m?e[t.expando]=v=++t.uuid:v=t.expando),w[v]||(w[v]={},m||(w[v].toJSON=t.noop)),(typeof n=="object"||typeof n=="function")&&(i?w[v]=t.extend(w[v],n):w[v].data=t.extend(w[v].data,n)),a=l=w[v],i||(l.data||(l.data={}),l=l.data),r!==E&&(l[t.camelCase(n)]=r),y&&!l[n]?a.events:(f?(c=l[n],c==null&&(c=l[t.camelCase(n)])):c=l,c))}},removeData:function(e,n,r){if(t.acceptData(e)){var i,a,l;t.expando;var c=e.nodeType,f=c?t.cache:e,m=c?e[t.expando]:t.expando;if(!f[m])return;if(n&&(i=r?f[m]:f[m].data,i)){for(t.isArray(n)?n=n:(n in i)?n=[n]:(n=t.camelCase(n),n in i?n=[n]:n=n.split(" ")),a=0,l=n.length;a"u"){if(this.length&&(l=t.data(this[0]),this[0].nodeType===1&&!t._data(this[0],"parsedAttrs"))){i=this[0].attributes;for(var c=0,f=i.length;c-1)return!0;return!1},val:function(e){var n,r,i,a=this[0];return arguments.length?(i=t.isFunction(e),this.each(function(l){var c=t(this),f;this.nodeType===1&&(i?f=e.call(this,l,c.val()):f=e,f==null?f="":typeof f=="number"?f+="":t.isArray(f)&&(f=t.map(f,function(m){return m==null?"":m+""})),n=t.valHooks[this.nodeName.toLowerCase()]||t.valHooks[this.type],(!n||!("set"in n)||n.set(this,f,"value")===E)&&(this.value=f))})):a?(n=t.valHooks[a.nodeName.toLowerCase()]||t.valHooks[a.type],n&&"get"in n&&(r=n.get(a,"value"))!==E?r:(r=a.value,typeof r=="string"?r.replace(ae,""):r==null?"":r)):E}}),t.extend({valHooks:{option:{get:function(e){var n=e.attributes.value;return!n||n.specified?e.value:e.text}},select:{get:function(e){var n,r,i,a,l=e.selectedIndex,c=[],f=e.options,m=e.type==="select-one";if(l<0)return null;for(r=m?l:0,i=m?l+1:f.length;r=0}),r.length||(e.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,i){var a,l,c,f=e.nodeType;return!e||f===3||f===8||f===2?E:i&&n in t.attrFn?t(e)[n](r):"getAttribute"in e?(c=f!==1||!t.isXMLDoc(e),c&&(n=n.toLowerCase(),l=t.attrHooks[n]||(Oe.test(n)?Qe:be)),r!==E?r===null?(t.removeAttr(e,n),E):l&&"set"in l&&c&&(a=l.set(e,r,n))!==E?a:(e.setAttribute(n,""+r),r):l&&"get"in l&&c&&(a=l.get(e,n))!==null?a:(a=e.getAttribute(n),a===null?E:a)):t.prop(e,n,r)},removeAttr:function(e,n){var r,i,a,l,c=0;if(e.nodeType===1)for(i=(n||"").split(V),l=i.length;c=0}})});var Xe=/^(?:textarea|input|select)$/i,gt=/^([^\.]*)?(?:\.(.+))?$/,$e=/\bhover(\.\S+)?/,et=/^key/,mt=/^(?:mouse|contextmenu)|click/,Ye=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,vt=function(e){var n=Ye.exec(e);return n&&(n[1]=(n[1]||"").toLowerCase(),n[3]=n[3]&&new RegExp("(?:^|\\s)"+n[3]+"(?:\\s|$)")),n},Dt=function(e,n){return(!n[1]||e.nodeName.toLowerCase()===n[1])&&(!n[2]||e.id===n[2])&&(!n[3]||n[3].test(e.className))},qe=function(e){return t.event.special.hover?e:e.replace($e,"mouseenter$1 mouseleave$1")};t.event={add:function(e,n,r,i,a){var l,c,f,m,w,v,y,b,M,B,X;if(!(e.nodeType===3||e.nodeType===8||!n||!r||!(l=t._data(e)))){for(r.handler&&(M=r,r=M.handler),r.guid||(r.guid=t.guid++),f=l.events,f||(l.events=f={}),c=l.handle,c||(l.handle=c=function(ne){return typeof t<"u"&&(!ne||t.event.triggered!==ne.type)?t.event.dispatch.apply(c.elem,arguments):E},c.elem=e),n=qe(n).split(" "),m=0;m=0&&(a=a.slice(0,-1),f=!0),a.indexOf(".")>=0&&(l=a.split("."),a=l.shift(),l.sort()),(!r||t.event.customEvent[a])&&!t.event.global[a])return;if(e=typeof e=="object"?e[t.expando]?e:new t.Event(a,e):new t.Event(a),e.type=a,e.isTrigger=!0,e.exclusive=f,e.namespace=l.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,y=a.indexOf(":")<0?"on"+a:"",(i||!r)&&e.preventDefault(),!r){c=t.cache;for(m in c)c[m].events&&c[m].events[a]&&t.event.trigger(e,n,c[m].handle.elem,!0);return}if(e.result=E,e.target||(e.target=r),n=n!=null?t.makeArray(n):[],n.unshift(e),b=t.event.special[a]||{},b.trigger&&b.trigger.apply(r,n)===!1)return;if(B=[[r,b.bindType||a]],!i&&!b.noBubble&&!t.isWindow(r)){for(X=b.delegateType||a,v=null,w=r.parentNode;w;w=w.parentNode)B.push([w,X]),v=w;v&&v===r.ownerDocument&&B.push([v.defaultView||v.parentWindow||T,X])}for(m=0;m=0:ne===E&&(ne=y[X]=B.quick?Dt(w,B.quick):t(w).is(X)),ne&&M.push(B);M.length&&c.push({elem:w,matches:M})}for(n.length>r&&c.push({elem:this,matches:n.slice(r)}),f=0;f0?this.bind(n,r,i):this.trigger(n)},t.attrFn&&(t.attrFn[n]=!0),et.test(n)&&(t.event.fixHooks[n]=t.event.keyHooks),mt.test(n)&&(t.event.fixHooks[n]=t.event.mouseHooks)}),function(){function e(u,p,A,x,P,N){for(var F=0,z=x.length;F0){G=I;break}}I=I[u]}x[F]=G}}}function n(u,p,A,x,P,N){for(var F=0,z=x.length;F+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),a=0,l=Object.prototype.toString,c=!1,f=!0,m=/\\/g,w=/\r\n/g,v=/\W/;[0,0].sort(function(){return f=!1,0});var y=function(u,p,A,x){A=A||[],p=p||_;var P=p;if(p.nodeType!==1&&p.nodeType!==9)return[];if(!u||typeof u!="string")return A;var N,F,z,I,G,Me,we,h,S=!0,j=y.isXML(p),D=[],re=u;do if(r.exec(""),N=r.exec(re),N&&(re=N[3],D.push(N[1]),N[2])){I=N[3];break}while(N);if(D.length>1&&B.exec(u))if(D.length===2&&M.relative[D[0]])F=Q(D[0]+D[1],p,x);else for(F=M.relative[D[0]]?[p]:y(D.shift(),p);D.length;)u=D.shift(),M.relative[u]&&(u+=D.shift()),F=Q(u,F,x);else if(!x&&D.length>1&&p.nodeType===9&&!j&&M.match.ID.test(D[0])&&!M.match.ID.test(D[D.length-1])&&(G=y.find(D.shift(),p,j),p=G.expr?y.filter(G.expr,G.set)[0]:G.set[0]),p)for(G=x?{expr:D.pop(),set:J(x)}:y.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&p.parentNode?p.parentNode:p,j),F=G.expr?y.filter(G.expr,G.set):G.set,D.length>0?z=J(F):S=!1;D.length;)Me=D.pop(),we=Me,M.relative[Me]?we=D.pop():Me="",we==null&&(we=p),M.relative[Me](z,we,j);else z=D=[];if(z||(z=F),z||y.error(Me||u),l.call(z)==="[object Array]")if(!S)A.push.apply(A,z);else if(p&&p.nodeType===1)for(h=0;z[h]!=null;h++)z[h]&&(z[h]===!0||z[h].nodeType===1&&y.contains(p,z[h]))&&A.push(F[h]);else for(h=0;z[h]!=null;h++)z[h]&&z[h].nodeType===1&&A.push(F[h]);else J(z,A);return I&&(y(I,P,A,x),y.uniqueSort(A)),A};y.uniqueSort=function(u){if(Te&&(c=f,u.sort(Te),c))for(var p=1;p0},y.find=function(u,p,A){var x,P,N,F,z,I;if(!u)return[];for(P=0,N=M.order.length;P":function(u,p){var A,x=typeof p=="string",P=0,N=u.length;if(x&&!v.test(p)){for(p=p.toLowerCase();P=0)?A||x.push(z):A&&(p[F]=!1));return!1},ID:function(u){return u[1].replace(m,"")},TAG:function(u,p){return u[1].replace(m,"").toLowerCase()},CHILD:function(u){if(u[1]==="nth"){u[2]||y.error(u[0]),u[2]=u[2].replace(/^\+|\s*/g,"");var p=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(u[2]==="even"&&"2n"||u[2]==="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);u[2]=p[1]+(p[2]||1)-0,u[3]=p[3]-0}else u[2]&&y.error(u[0]);return u[0]=a++,u},ATTR:function(u,p,A,x,P,N){var F=u[1]=u[1].replace(m,"");return!N&&M.attrMap[F]&&(u[1]=M.attrMap[F]),u[4]=(u[4]||u[5]||"").replace(m,""),u[2]==="~="&&(u[4]=" "+u[4]+" "),u},PSEUDO:function(u,p,A,x,P){if(u[1]==="not")if((r.exec(u[3])||"").length>1||/^\w/.test(u[3]))u[3]=y(u[3],null,null,p);else{var N=y.filter(u[3],p,A,!0^P);return A||x.push.apply(x,N),!1}else if(M.match.POS.test(u[0])||M.match.CHILD.test(u[0]))return!0;return u},POS:function(u){return u.unshift(!0),u}},filters:{enabled:function(u){return u.disabled===!1&&u.type!=="hidden"},disabled:function(u){return u.disabled===!0},checked:function(u){return u.checked===!0},selected:function(u){return u.parentNode&&u.parentNode.selectedIndex,u.selected===!0},parent:function(u){return!!u.firstChild},empty:function(u){return!u.firstChild},has:function(u,p,A){return!!y(A[3],u).length},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){var p=u.getAttribute("type"),A=u.type;return u.nodeName.toLowerCase()==="input"&&A==="text"&&(p===A||p===null)},radio:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="radio"},checkbox:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="checkbox"},file:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="file"},password:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="password"},submit:function(u){var p=u.nodeName.toLowerCase();return(p==="input"||p==="button")&&u.type==="submit"},image:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="image"},reset:function(u){var p=u.nodeName.toLowerCase();return(p==="input"||p==="button")&&u.type==="reset"},button:function(u){var p=u.nodeName.toLowerCase();return p==="input"&&u.type==="button"||p==="button"},input:function(u){return/input|select|textarea|button/i.test(u.nodeName)},focus:function(u){return u===u.ownerDocument.activeElement}},setFilters:{first:function(u,p){return p===0},last:function(u,p,A,x){return p===x.length-1},even:function(u,p){return p%2===0},odd:function(u,p){return p%2===1},lt:function(u,p,A){return pA[3]-0},nth:function(u,p,A){return A[3]-0===p},eq:function(u,p,A){return A[3]-0===p}},filter:{PSEUDO:function(u,p,A,x){var P=p[1],N=M.filters[P];if(N)return N(u,A,p,x);if(P==="contains")return(u.textContent||u.innerText||b([u])||"").indexOf(p[3])>=0;if(P==="not"){for(var F=p[3],z=0,I=F.length;z=0}},ID:function(u,p){return u.nodeType===1&&u.getAttribute("id")===p},TAG:function(u,p){return p==="*"&&u.nodeType===1||!!u.nodeName&&u.nodeName.toLowerCase()===p},CLASS:function(u,p){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(p)>-1},ATTR:function(u,p){var A=p[1],x=y.attr?y.attr(u,A):M.attrHandle[A]?M.attrHandle[A](u):u[A]!=null?u[A]:u.getAttribute(A),P=x+"",N=p[2],F=p[4];return x==null?N==="!=":!N&&y.attr?x!=null:N==="="?P===F:N==="*="?P.indexOf(F)>=0:N==="~="?(" "+P+" ").indexOf(F)>=0:F?N==="!="?P!==F:N==="^="?P.indexOf(F)===0:N==="$="?P.substr(P.length-F.length)===F:N==="|="?P===F||P.substr(0,F.length+1)===F+"-":!1:P&&x!==!1},POS:function(u,p,A,x){var P=p[2],N=M.setFilters[P];if(N)return N(u,A,p,x)}}},B=M.match.POS,X=function(u,p){return"\\"+(p-0+1)};for(var ne in M.match)M.match[ne]=new RegExp(M.match[ne].source+/(?![^\[]*\])(?![^\(]*\))/.source),M.leftMatch[ne]=new RegExp(/(^(?:.|\r|\n)*?)/.source+M.match[ne].source.replace(/\\(\d+)/g,X));var J=function(u,p){return u=Array.prototype.slice.call(u,0),p?(p.push.apply(p,u),p):u};try{Array.prototype.slice.call(_.documentElement.childNodes,0)[0].nodeType}catch(u){J=function(p,A){var x=0,P=A||[];if(l.call(p)==="[object Array]")Array.prototype.push.apply(P,p);else if(typeof p.length=="number")for(var N=p.length;x",A.insertBefore(u,A.firstChild),_.getElementById(p)&&(M.find.ID=function(x,P,N){if(typeof P.getElementById<"u"&&!N){var F=P.getElementById(x[1]);return F?F.id===x[1]||typeof F.getAttributeNode<"u"&&F.getAttributeNode("id").nodeValue===x[1]?[F]:E:[]}},M.filter.ID=function(x,P){var N=typeof x.getAttributeNode<"u"&&x.getAttributeNode("id");return x.nodeType===1&&N&&N.nodeValue===P}),A.removeChild(u),A=u=null}(),function(){var u=_.createElement("div");u.appendChild(_.createComment("")),u.getElementsByTagName("*").length>0&&(M.find.TAG=function(p,A){var x=A.getElementsByTagName(p[1]);if(p[1]==="*"){for(var P=[],N=0;x[N];N++)x[N].nodeType===1&&P.push(x[N]);x=P}return x}),u.innerHTML="",u.firstChild&&typeof u.firstChild.getAttribute<"u"&&u.firstChild.getAttribute("href")!=="#"&&(M.attrHandle.href=function(p){return p.getAttribute("href",2)}),u=null}(),_.querySelectorAll&&function(){var u=y,p=_.createElement("div"),A="__sizzle__";if(p.innerHTML="

",!p.querySelectorAll||p.querySelectorAll(".TEST").length!==0){y=function(P,N,F,z){if(N=N||_,!z&&!y.isXML(N)){var I=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(P);if(I&&(N.nodeType===1||N.nodeType===9)){if(I[1])return J(N.getElementsByTagName(P),F);if(I[2]&&M.find.CLASS&&N.getElementsByClassName)return J(N.getElementsByClassName(I[2]),F)}if(N.nodeType===9){if(P==="body"&&N.body)return J([N.body],F);if(I&&I[3]){var G=N.getElementById(I[3]);if(!G||!G.parentNode)return J([],F);if(G.id===I[3])return J([G],F)}try{return J(N.querySelectorAll(P),F)}catch(D){}}else if(N.nodeType===1&&N.nodeName.toLowerCase()!=="object"){var Me=N,we=N.getAttribute("id"),h=we||A,S=N.parentNode,j=/^\s*[+~]/.test(P);we?h=h.replace(/'/g,"\\$&"):N.setAttribute("id",h),j&&S&&(N=N.parentNode);try{if(!j||S)return J(N.querySelectorAll("[id='"+h+"'] "+P),F)}catch(D){}finally{we||Me.removeAttribute("id")}}}return u(P,N,F,z)};for(var x in u)y[x]=u[x];p=null}}(),function(){var u=_.documentElement,p=u.matchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.msMatchesSelector;if(p){var A=!p.call(_.createElement("div"),"div"),x=!1;try{p.call(_.documentElement,"[test!='']:sizzle")}catch(P){x=!0}y.matchesSelector=function(P,N){if(N=N.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!y.isXML(P))try{if(x||!M.match.PSEUDO.test(N)&&!/!=/.test(N)){var F=p.call(P,N);if(F||!A||P.document&&P.document.nodeType!==11)return F}}catch(z){}return y(N,null,null,[P]).length>0}}}(),function(){var u=_.createElement("div");if(u.innerHTML="
",u.getElementsByClassName&&u.getElementsByClassName("e").length!==0){if(u.lastChild.className="e",u.getElementsByClassName("e").length===1)return;M.order.splice(1,0,"CLASS"),M.find.CLASS=function(p,A,x){if(typeof A.getElementsByClassName<"u"&&!x)return A.getElementsByClassName(p[1])},u=null}}(),_.documentElement.contains?y.contains=function(u,p){return u!==p&&(u.contains?u.contains(p):!0)}:_.documentElement.compareDocumentPosition?y.contains=function(u,p){return!!(u.compareDocumentPosition(p)&16)}:y.contains=function(){return!1},y.isXML=function(u){var p=(u?u.ownerDocument||u:0).documentElement;return p?p.nodeName!=="HTML":!1};var Q=function(u,p,A){for(var x,P=[],N="",F=p.nodeType?[p]:p;x=M.match.PSEUDO.exec(u);)N+=x[0],u=u.replace(M.match.PSEUDO,"");u=M.relative[u]?u+"*":u;for(var z=0,I=F.length;z0){for(c=l;c=0:t.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,n){var r=[],i,a,l=this[0];if(t.isArray(e)){for(var c=1;l&&l.ownerDocument&&l!==n;){for(i=0;i-1:t.find.matchesSelector(l,e)){r.push(l);break}if(l=l.parentNode,!l||!l.ownerDocument||l===n||l.nodeType===11)break}return r=r.length>1?t.unique(r):r,this.pushStack(r,"closest",e)},index:function(e){return e?typeof e=="string"?t.inArray(this[0],t(e)):t.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,n){var r=typeof e=="string"?t(e,n):t.makeArray(e&&e.nodeType?[e]:e),i=t.merge(this.get(),r);return this.pushStack(O(r[0])||O(i[0])?i:t.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),t.each({parent:function(e){var n=e.parentNode;return n&&n.nodeType!==11?n:null},parents:function(e){return t.dir(e,"parentNode")},parentsUntil:function(e,n,r){return t.dir(e,"parentNode",r)},next:function(e){return t.nth(e,2,"nextSibling")},prev:function(e){return t.nth(e,2,"previousSibling")},nextAll:function(e){return t.dir(e,"nextSibling")},prevAll:function(e){return t.dir(e,"previousSibling")},nextUntil:function(e,n,r){return t.dir(e,"nextSibling",r)},prevUntil:function(e,n,r){return t.dir(e,"previousSibling",r)},siblings:function(e){return t.sibling(e.parentNode.firstChild,e)},children:function(e){return t.sibling(e.firstChild)},contents:function(e){return t.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:t.makeArray(e.childNodes)}},function(e,n){t.fn[e]=function(r,i){var a=t.map(this,n,r),l=Pt.call(arguments);return kt.test(e)||(i=r),i&&typeof i=="string"&&(a=t.filter(i,a)),a=this.length>1&&!nt[e]?t.unique(a):a,(this.length>1||_t.test(i))&&ye.test(e)&&(a=a.reverse()),this.pushStack(a,e,l.join(","))}}),t.extend({filter:function(e,n,r){return r&&(e=":not("+e+")"),n.length===1?t.find.matchesSelector(n[0],e)?[n[0]]:[]:t.find.matches(e,n)},dir:function(e,n,r){for(var i=[],a=e[n];a&&a.nodeType!==9&&(r===E||a.nodeType!==1||!t(a).is(r));)a.nodeType===1&&i.push(a),a=a[n];return i},nth:function(e,n,r,i){n=n||1;for(var a=0;e&&!(e.nodeType===1&&++a===n);e=e[r]);return e},sibling:function(e,n){for(var r=[];e;e=e.nextSibling)e.nodeType===1&&e!==n&&r.push(e);return r}});var at="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",wt=/ jQuery\d+="(?:\d+|null)"/g,ge=/^\s+/,Le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ue=/<([\w:]+)/,Ue=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},hn=ze(_);Pe.optgroup=Pe.option,Pe.tbody=Pe.tfoot=Pe.colgroup=Pe.caption=Pe.thead,Pe.th=Pe.td,t.support.htmlSerialize||(Pe._default=[1,"div
","
"]),t.fn.extend({text:function(e){return t.isFunction(e)?this.each(function(n){var r=t(this);r.text(e.call(this,n,r.text()))}):typeof e!="object"&&e!==E?this.empty().append((this[0]&&this[0].ownerDocument||_).createTextNode(e)):t.text(this)},wrapAll:function(e){if(t.isFunction(e))return this.each(function(r){t(this).wrapAll(e.call(this,r))});if(this[0]){var n=t(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var r=this;r.firstChild&&r.firstChild.nodeType===1;)r=r.firstChild;return r}).append(this)}return this},wrapInner:function(e){return t.isFunction(e)?this.each(function(n){t(this).wrapInner(e.call(this,n))}):this.each(function(){var n=t(this),r=n.contents();r.length?r.wrapAll(e):n.append(e)})},wrap:function(e){return this.each(function(){t(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){t.nodeName(this,"body")||t(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var e=t(arguments[0]);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,t(arguments[0]).toArray()),e}},remove:function(e,n){for(var r=0,i;(i=this[r])!=null;r++)(!e||t.filter(e,[i]).length)&&(!n&&i.nodeType===1&&(t.cleanData(i.getElementsByTagName("*")),t.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var e=0,n;(n=this[e])!=null;e++)for(n.nodeType===1&&t.cleanData(n.getElementsByTagName("*"));n.firstChild;)n.removeChild(n.firstChild);return this},clone:function(e,n){return e=e==null?!1:e,n=n==null?e:n,this.map(function(){return t.clone(this,e,n)})},html:function(e){if(e===E)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(wt,""):null;if(typeof e=="string"&&!lt.test(e)&&(t.support.leadingWhitespace||!ge.test(e))&&!Pe[(ue.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Le,"<$1>");try{for(var n=0,r=this.length;n1&&w0?this.clone(!0):this).get();t(a[c])[n](m),i=i.concat(m)}return this.pushStack(i,e,a.selector)}}),t.extend({clone:function(e,n,r){var i=e.cloneNode(!0),a,l,c;if((!t.support.noCloneEvent||!t.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!t.isXMLDoc(e))for(Ze(e,i),a=_e(e),l=_e(i),c=0;a[c];++c)l[c]&&Ze(a[c],l[c]);if(n&&(te(e,i),r))for(a=_e(e),l=_e(i),c=0;a[c];++c)te(a[c],l[c]);return a=l=null,i},clean:function(e,n,r,i){var a;n=n||_,typeof n.createElement>"u"&&(n=n.ownerDocument||n[0]&&n[0].ownerDocument||_);for(var l=[],c,f=0,m;(m=e[f])!=null;f++)if(typeof m=="number"&&(m+=""),!!m){if(typeof m=="string")if(!rt.test(m))m=n.createTextNode(m);else{m=m.replace(Le,"<$1>");var w=(ue.exec(m)||["",""])[1].toLowerCase(),v=Pe[w]||Pe._default,y=v[0],b=n.createElement("div");for(n===_?hn.appendChild(b):ze(n).appendChild(b),b.innerHTML=v[1]+m+v[2];y--;)b=b.lastChild;if(!t.support.tbody){var M=Ue.test(m),B=w==="table"&&!M?b.firstChild&&b.firstChild.childNodes:v[1]===""&&!M?b.childNodes:[];for(c=B.length-1;c>=0;--c)t.nodeName(B[c],"tbody")&&!B[c].childNodes.length&&B[c].parentNode.removeChild(B[c])}!t.support.leadingWhitespace&&ge.test(m)&&b.insertBefore(n.createTextNode(ge.exec(m)[0]),b.firstChild),m=b.childNodes}var X;if(!t.support.appendChecked)if(m[0]&&typeof(X=m.length)=="number")for(c=0;c=0)return i+"px"}}}),t.support.opacity||(t.cssHooks.opacity={get:function(e,n){return pn.test((n&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":n?"1":""},set:function(e,n){var r=e.style,i=e.currentStyle,a=t.isNumeric(n)?"alpha(opacity="+n*100+")":"",l=i&&i.filter||r.filter||"";r.zoom=1,!(n>=1&&t.trim(l.replace(It,""))===""&&(r.removeAttribute("filter"),i&&!i.filter))&&(r.filter=It.test(l)?l.replace(It,a):l+" "+a)}}),t(function(){t.support.reliableMarginRight||(t.cssHooks.marginRight={get:function(e,n){var r;return t.swap(e,{display:"inline-block"},function(){n?r=At(e,"margin-right","marginRight"):r=e.style.marginRight}),r}})}),_.defaultView&&_.defaultView.getComputedStyle&&(Qt=function(e,n){var r,i,a;return n=n.replace(gn,"-$1").toLowerCase(),(i=e.ownerDocument.defaultView)?((a=i.getComputedStyle(e,null))&&(r=a.getPropertyValue(n),r===""&&!t.contains(e.ownerDocument.documentElement,e)&&(r=t.style(e,n))),r):E}),_.documentElement.currentStyle&&(Vt=function(e,n){var r,i,a,l=e.currentStyle&&e.currentStyle[n],c=e.style;return l===null&&c&&(a=c[n])&&(l=a),!Kt.test(l)&&mn.test(l)&&(r=c.left,i=e.runtimeStyle&&e.runtimeStyle.left,i&&(e.runtimeStyle.left=e.currentStyle.left),c.left=n==="fontSize"?"1em":l||0,l=c.pixelLeft+"px",c.left=r,i&&(e.runtimeStyle.left=i)),l===""?"auto":l}),At=Qt||Vt,t.expr&&t.expr.filters&&(t.expr.filters.hidden=function(e){var n=e.offsetWidth,r=e.offsetHeight;return n===0&&r===0||!t.support.reliableHiddenOffsets&&(e.style&&e.style.display||t.css(e,"display"))==="none"},t.expr.filters.visible=function(e){return!t.expr.filters.hidden(e)});var xn=/%20/g,bn=/\[\]$/,Yt=/\r?\n/g,Tn=/#.*$/,Cn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,kn=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Pn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,Mn=/^\/\//,Jt=/\?/,Dn=/)<[^<]*)*<\/script>/gi,Sn=/^(?:select|textarea)/i,Zt=/\s+/,En=/([?&])_=[^&]*/,$t=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,en=t.fn.load,Ot={},tn={},ht,pt,nn=["*/"]+["*"];try{ht=o.href}catch(e){ht=_.createElement("a"),ht.href="",ht=ht.href}pt=$t.exec(ht.toLowerCase())||[],t.fn.extend({load:function(e,n,r){if(typeof e!="string"&&en)return en.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(" ");if(i>=0){var a=e.slice(i,e.length);e=e.slice(0,i)}var l="GET";n&&(t.isFunction(n)?(r=n,n=E):typeof n=="object"&&(n=t.param(n,t.ajaxSettings.traditional),l="POST"));var c=this;return t.ajax({url:e,type:l,dataType:"html",data:n,complete:function(f,m,w){w=f.responseText,f.isResolved()&&(f.done(function(v){w=v}),c.html(a?t("
").append(w.replace(Dn,"")).find(a):w)),r&&c.each(r,[w,m,f])}}),this},serialize:function(){return t.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?t.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Sn.test(this.nodeName)||kn.test(this.type))}).map(function(e,n){var r=t(this).val();return r==null?null:t.isArray(r)?t.map(r,function(i,a){return{name:n.name,value:i.replace(Yt,`\r `)}}):{name:n.name,value:r.replace(Yt,`\r `)}}).get()}}),t.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,n){t.fn[n]=function(r){return this.bind(n,r)}}),t.each(["get","post"],function(e,n){t[n]=function(r,i,a,l){return t.isFunction(i)&&(l=l||a,a=i,i=E),t.ajax({type:n,url:r,data:i,success:a,dataType:l})}}),t.extend({getScript:function(e,n){return t.get(e,E,n,"script")},getJSON:function(e,n,r){return t.get(e,n,r,"json")},ajaxSetup:function(e,n){return n?Be(e,t.ajaxSettings):(n=e,e=t.ajaxSettings),Be(e,n),e},ajaxSettings:{url:ht,isLocal:Pn.test(pt[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","*":nn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":T.String,"text html":!0,"text json":t.parseJSON,"text xml":t.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Ne(Ot),ajaxTransport:Ne(tn),ajax:function(e,n){function r(A,x,P,N){if(J!==2){J=2,X&&clearTimeout(X),B=E,b=N||"",Q.readyState=A>0?4:0;var F,z,I,G=x,Me=P?fe(i,Q,P):E,we,h;if(A>=200&&A<300||A===304)if(i.ifModified&&((we=Q.getResponseHeader("Last-Modified"))&&(t.lastModified[w]=we),(h=Q.getResponseHeader("Etag"))&&(t.etag[w]=h)),A===304)G="notmodified",F=!0;else try{z=Ae(i,Me),G="success",F=!0}catch(S){G="parsererror",I=S}else I=G,(!G||A)&&(G="error",A<0&&(A=0));Q.status=A,Q.statusText=""+(x||G),F?c.resolveWith(a,[z,G,Q]):c.rejectWith(a,[Q,G,I]),Q.statusCode(m),m=E,Te&&l.trigger("ajax"+(F?"Success":"Error"),[Q,i,F?z:I]),f.fireWith(a,[Q,G]),Te&&(l.trigger("ajaxComplete",[Q,i]),--t.active||t.event.trigger("ajaxStop"))}}typeof e=="object"&&(n=e,e=E),n=n||{};var i=t.ajaxSetup({},n),a=i.context||i,l=a!==i&&(a.nodeType||a instanceof t)?t(a):t.event,c=t.Deferred(),f=t.Callbacks("once memory"),m=i.statusCode||{},w,v={},y={},b,M,B,X,ne,J=0,Te,Ce,Q={readyState:0,setRequestHeader:function(A,x){if(!J){var P=A.toLowerCase();A=y[P]=y[P]||A,v[A]=x}return this},getAllResponseHeaders:function(){return J===2?b:null},getResponseHeader:function(A){var x;if(J===2){if(!M)for(M={};x=Cn.exec(b);)M[x[1].toLowerCase()]=x[2];x=M[A.toLowerCase()]}return x===E?null:x},overrideMimeType:function(A){return J||(i.mimeType=A),this},abort:function(A){return A=A||"abort",B&&B.abort(A),r(0,A),this}};if(c.promise(Q),Q.success=Q.done,Q.error=Q.fail,Q.complete=f.add,Q.statusCode=function(A){if(A){var x;if(J<2)for(x in A)m[x]=[m[x],A[x]];else x=A[Q.status],Q.then(x,x)}return this},i.url=((e||i.url)+"").replace(Tn,"").replace(Mn,pt[1]+"//"),i.dataTypes=t.trim(i.dataType||"*").toLowerCase().split(Zt),i.crossDomain==null&&(ne=$t.exec(i.url.toLowerCase()),i.crossDomain=!(!ne||ne[1]==pt[1]&&ne[2]==pt[2]&&(ne[3]||(ne[1]==="http:"?80:443))==(pt[3]||(pt[1]==="http:"?80:443)))),i.data&&i.processData&&typeof i.data!="string"&&(i.data=t.param(i.data,i.traditional)),xe(Ot,i,n,Q),J===2)return!1;if(Te=i.global,i.type=i.type.toUpperCase(),i.hasContent=!Nn.test(i.type),Te&&t.active++===0&&t.event.trigger("ajaxStart"),!i.hasContent&&(i.data&&(i.url+=(Jt.test(i.url)?"&":"?")+i.data,delete i.data),w=i.url,i.cache===!1)){var u=t.now(),p=i.url.replace(En,"$1_="+u);i.url=p+(p===i.url?(Jt.test(i.url)?"&":"?")+"_="+u:"")}(i.data&&i.hasContent&&i.contentType!==!1||n.contentType)&&Q.setRequestHeader("Content-Type",i.contentType),i.ifModified&&(w=w||i.url,t.lastModified[w]&&Q.setRequestHeader("If-Modified-Since",t.lastModified[w]),t.etag[w]&&Q.setRequestHeader("If-None-Match",t.etag[w])),Q.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+(i.dataTypes[0]!=="*"?", "+nn+"; q=0.01":""):i.accepts["*"]);for(Ce in i.headers)Q.setRequestHeader(Ce,i.headers[Ce]);if(i.beforeSend&&(i.beforeSend.call(a,Q,i)===!1||J===2))return Q.abort(),!1;for(Ce in{success:1,error:1,complete:1})Q[Ce](i[Ce]);if(B=xe(tn,i,n,Q),!B)r(-1,"No Transport");else{Q.readyState=1,Te&&l.trigger("ajaxSend",[Q,i]),i.async&&i.timeout>0&&(X=setTimeout(function(){Q.abort("timeout")},i.timeout));try{J=1,B.send(v,r)}catch(A){J<2?r(-1,A):t.error(A)}}return Q},param:function(e,n){var r=[],i=function(l,c){c=t.isFunction(c)?c():c,r[r.length]=encodeURIComponent(l)+"="+encodeURIComponent(c)};if(n===E&&(n=t.ajaxSettings.traditional),t.isArray(e)||e.jquery&&!t.isPlainObject(e))t.each(e,function(){i(this.name,this.value)});else for(var a in e)de(a,e[a],n,i);return r.join("&").replace(xn,"+")}}),t.extend({active:0,lastModified:{},etag:{}});var Fn=t.now(),St=/(\=)\?(&|$)|\?\?/i;t.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return t.expando+"_"+Fn++}}),t.ajaxPrefilter("json jsonp",function(e,n,r){var i=e.contentType==="application/x-www-form-urlencoded"&&typeof e.data=="string";if(e.dataTypes[0]==="jsonp"||e.jsonp!==!1&&(St.test(e.url)||i&&St.test(e.data))){var a,l=e.jsonpCallback=t.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,c=T[l],f=e.url,m=e.data,w="$1"+l+"$2";return e.jsonp!==!1&&(f=f.replace(St,w),e.url===f&&(i&&(m=m.replace(St,w)),e.data===m&&(f+=(/\?/.test(f)?"&":"?")+e.jsonp+"="+l))),e.url=f,e.data=m,T[l]=function(v){a=[v]},r.always(function(){T[l]=c,a&&t.isFunction(c)&&T[l](a[0])}),e.converters["script json"]=function(){return a||t.error(l+" was not called"),a[0]},e.dataTypes[0]="json","script"}}),t.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return t.globalEval(e),e}}}),t.ajaxPrefilter("script",function(e){e.cache===E&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),t.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=_.head||_.getElementsByTagName("head")[0]||_.documentElement;return{send:function(i,a){n=_.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(l,c){(c||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=E,c||a(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var jt=T.ActiveXObject?function(){for(var e in xt)xt[e](0,1)}:!1,Bn=0,xt;t.ajaxSettings.xhr=T.ActiveXObject?function(){return!this.isLocal&&U()||Se()}:U,function(e){t.extend(t.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(t.ajaxSettings.xhr()),t.support.ajax&&t.ajaxTransport(function(e){if(!e.crossDomain||t.support.cors){var n;return{send:function(r,i){var a=e.xhr(),l,c;if(e.username?a.open(e.type,e.url,e.async,e.username,e.password):a.open(e.type,e.url,e.async),e.xhrFields)for(c in e.xhrFields)a[c]=e.xhrFields[c];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");try{for(c in r)a.setRequestHeader(c,r[c])}catch(f){}a.send(e.hasContent&&e.data||null),n=function(f,m){var w,v,y,b,M;try{if(n&&(m||a.readyState===4))if(n=E,l&&(a.onreadystatechange=t.noop,jt&&delete xt[l]),m)a.readyState!==4&&a.abort();else{w=a.status,y=a.getAllResponseHeaders(),b={},M=a.responseXML,M&&M.documentElement&&(b.xml=M),b.text=a.responseText;try{v=a.statusText}catch(B){v=""}!w&&e.isLocal&&!e.crossDomain?w=b.text?200:404:w===1223&&(w=204)}}catch(B){m||i(-1,B)}b&&i(w,v,b,y)},!e.async||a.readyState===4?n():(l=++Bn,jt&&(xt||(xt={},t(T).unload(jt)),xt[l]=n),a.onreadystatechange=n)},abort:function(){n&&n(0,1)}}}});var zt={},Je,bt,Ln=/^(?:toggle|show|hide)$/,_n=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Et,rn=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Ft;t.fn.extend({show:function(e,n,r){var i,a;if(e||e===0)return this.animate($("show",3),e,n,r);for(var l=0,c=this.length;l=f.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),f.animatedProperties[this.prop]=!0;for(n in f.animatedProperties)f.animatedProperties[n]!==!0&&(l=!1);if(l){if(f.overflow!=null&&!t.support.shrinkWrapBlocks&&t.each(["","X","Y"],function(m,w){c.style["overflow"+w]=f.overflow[m]}),f.hide&&t(c).hide(),f.hide||f.show)for(n in f.animatedProperties)t.style(c,n,f.orig[n]),t.removeData(c,"fxshow"+n,!0),t.removeData(c,"toggle"+n,!0);i=f.complete,i&&(f.complete=!1,i.call(c))}return!1}return f.duration==1/0?this.now=a:(r=a-this.startTime,this.state=r/f.duration,this.pos=t.easing[f.animatedProperties[this.prop]](this.state,r,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},t.extend(t.fx,{tick:function(){for(var e,n=t.timers,r=0;r-1,w={},v={},y,b;m?(v=a.position(),y=v.top,b=v.left):(y=parseFloat(c)||0,b=parseFloat(f)||0),t.isFunction(n)&&(n=n.call(e,r,l)),n.top!=null&&(w.top=n.top-l.top+y),n.left!=null&&(w.left=n.left-l.left+b),"using"in n?n.using.call(e,w):a.css(w)}},t.fn.extend({position:function(){if(!this[0])return null;var e=this[0],n=this.offsetParent(),r=this.offset(),i=sn.test(n[0].nodeName)?{top:0,left:0}:n.offset();return r.top-=parseFloat(t.css(e,"marginTop"))||0,r.left-=parseFloat(t.css(e,"marginLeft"))||0,i.top+=parseFloat(t.css(n[0],"borderTopWidth"))||0,i.left+=parseFloat(t.css(n[0],"borderLeftWidth"))||0,{top:r.top-i.top,left:r.left-i.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||_.body;e&&!sn.test(e.nodeName)&&t.css(e,"position")==="static";)e=e.offsetParent;return e})}}),t.each(["Left","Top"],function(e,n){var r="scroll"+n;t.fn[r]=function(i){var a,l;return i===E?(a=this[0],a?(l=Y(a),l?"pageXOffset"in l?l[e?"pageYOffset":"pageXOffset"]:t.support.boxModel&&l.document.documentElement[r]||l.document.body[r]:a[r]):null):this.each(function(){l=Y(this),l?l.scrollTo(e?t(l).scrollLeft():i,e?i:t(l).scrollTop()):this[r]=i})}}),t.each(["Height","Width"],function(e,n){var r=n.toLowerCase();t.fn["inner"+n]=function(){var i=this[0];return i?i.style?parseFloat(t.css(i,r,"padding")):this[r]():null},t.fn["outer"+n]=function(i){var a=this[0];return a?a.style?parseFloat(t.css(a,r,i?"margin":"border")):this[r]():null},t.fn[r]=function(i){var a=this[0];if(!a)return i==null?null:this;if(t.isFunction(i))return this.each(function(w){var v=t(this);v[r](i.call(this,w,v[r]()))});if(t.isWindow(a)){var l=a.document.documentElement["client"+n],c=a.document.body;return a.document.compatMode==="CSS1Compat"&&l||c&&c["client"+n]||l}if(a.nodeType===9)return Math.max(a.documentElement["client"+n],a.body["scroll"+n],a.documentElement["scroll"+n],a.body["offset"+n],a.documentElement["offset"+n]);if(i===E){var f=t.css(a,r),m=parseFloat(f);return t.isNumeric(m)?m:f}return this.css(r,typeof i=="string"?i:i+"px")}}),T.jQuery=T.$=t})(window);(function(T){var E,Y,ce="",$="4.1.0",De=Math.PI,ee=De/2,Se="ontouchstart"in window,U=Se?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},Ae={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},fe=["single","double"],de=["ltr","rtl"],Be={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},xe={cornerSize:100},Ne=6,R={init:function(s){E="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,Y=ot(),ce=Z();var o,t=0,d=this.data(),g=this.children();if(s=T.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},Be,s),d.opts=s,d.pageObjs={},d.pages={},d.pageWrap={},d.pageZoom={},d.pagePlace={},d.pageMv=[],d.zoom=1,d.totalPages=s.pages||0,d.eventHandlers={touchStart:T.proxy(R._touchStart,this),touchMove:T.proxy(R._touchMove,this),touchEnd:T.proxy(R._touchEnd,this),start:T.proxy(R._eventStart,this)},s.when)for(o in s.when)O(o,s.when)&&this.bind(o,s.when[o]);for(this.css({position:"relative",width:s.width,height:s.height}),this.turn("display",s.display),s.direction!==""&&this.turn("direction",s.direction),E&&!Se&&s.acceleration&&this.transform(ze(0,0,!0)),o=0;oW)throw Ie('Page "'+o+'" cannot be inserted')}else o=W,g=!0;return o>=1&&o<=W&&(C.display=="double"?d=o%2?" odd":" even":d="",C.done&&this.turn("stop"),o in C.pageObjs&&R._movePages.call(this,o,1),g&&(C.totalPages=W),C.pageObjs[o]=T(s).css({float:"left"}).addClass("page p"+o+d),!_()&&C.pageObjs[o].hasClass("hard")&&C.pageObjs[o].removeClass("hard"),R._addPage.call(this,o),R._removeFromDOM.call(this)),this},_addPage:function(s){var o=this.data(),t=o.pageObjs[s];if(t)if(R._necessPage.call(this,s)){if(!o.pageWrap[s]){o.pageWrap[s]=T("
",{class:"page-wrapper",page:s,css:{position:"absolute",overflow:"hidden"}}),this.append(o.pageWrap[s]),o.pagePlace[s]||(o.pagePlace[s]=s,o.pageObjs[s].appendTo(o.pageWrap[s]));var d=R._pageSize.call(this,s,!0);t.css({width:d.width,height:d.height}),o.pageWrap[s].css(d)}o.pagePlace[s]==s&&R._makeFlip.call(this,s)}else o.pagePlace[s]=0,o.pageObjs[s]&&o.pageObjs[s].remove()},hasPage:function(s){return O(s,this.data().pageObjs)},center:function(s){var o=this.data(),t=T(this).turn("size"),d=0;if(!o.noCenter){if(o.display=="double"){var g=this.turn("view",s||o.tpage||o.page);o.direction=="ltr"?g[0]?g[1]||(d+=t.width/4):d-=t.width/4:g[0]?g[1]||(d-=t.width/4):d+=t.width/4}T(this).css({marginLeft:d})}return this},destroy:function(){var s=this,o=this.data(),t=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(ve("destroying",this)!="prevented"){for(o.destroying=!0,T.each(t,function(d,g){s.unbind(g)}),this.parent().unbind("start",o.eventHandlers.start),T(document).unbind(U.move,o.eventHandlers.touchMove).unbind(U.up,o.eventHandlers.touchEnd);o.totalPages!==0;)this.turn("removePage",o.totalPages);return o.fparent&&o.fparent.remove(),o.shadow&&o.shadow.remove(),this.removeData(),o=null,this}},is:function(){return typeof this.data().pages=="object"},zoom:function(s){var o=this.data();if(typeof s=="number"){if(s<.001||s>100)throw Ie(s+" is not a value for zoom");if(ve("zooming",this,[s,o.zoom])=="prevented")return this;var t=this.turn("size"),d=this.turn("view"),g=1/o.zoom,C=Math.round(t.width*g*s),W=Math.round(t.height*g*s);o.zoom=s,T(this).turn("stop").turn("size",C,W),o.opts.autoCenter&&this.turn("center"),R._updateShadow.call(this);for(var q=0;qC.totalPages)throw Ie('"'+s+'" is not a valid page');return g[1]=g[1]||g[0],g[0]>=1&&g[1]<=C.totalPages?(o=Math.floor((Ne-2)/2),C.totalPages-g[1]>g[0]?(t=Math.min(g[0]-1,o),d=2*o-t):(d=Math.min(C.totalPages-g[1],o),t=2*o-d)):(t=Ne-1,d=Ne-1),[Math.max(1,g[0]-t),Math.min(C.totalPages,g[1]+d)]},_necessPage:function(s){if(s===0)return!0;var o=this.turn("range");return this.data().pageObjs[s].hasClass("fixed")||s>=o[0]&&s<=o[1]},_removeFromDOM:function(){var s,o=this.data();for(s in o.pageWrap)O(s,o.pageWrap)&&!R._necessPage.call(this,s)&&R._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var o=this.data();if(o.pages[s]){var t=o.pages[s].data();K._moveFoldingPage.call(o.pages[s],!1),t.f&&t.f.fwrapper&&t.f.fwrapper.remove(),o.pages[s].removeData(),o.pages[s].remove(),delete o.pages[s]}o.pageObjs[s]&&o.pageObjs[s].remove(),o.pageWrap[s]&&(o.pageWrap[s].remove(),delete o.pageWrap[s]),R._removeMv.call(this,s),delete o.pagePlace[s],delete o.pageZoom[s]},removePage:function(s){var o=this.data();if(s=="*")for(;o.totalPages!==0;)this.turn("removePage",o.totalPages);else{if(s<1||s>o.totalPages)throw Ie("The page "+s+" doesn't exist");o.pageObjs[s]&&(this.turn("stop"),R._removePageFromDOM.call(this,s),delete o.pageObjs[s]),R._movePages.call(this,s,-1),o.totalPages=o.totalPages-1,o.page>o.totalPages?(o.page=null,R._fitPage.call(this,o.totalPages)):(R._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,o){var t,d=this,g=this.data(),C=g.display=="single",W=function(q){var V=q+o,ae=V%2,he=ae?" odd ":" even ";g.pageObjs[q]&&(g.pageObjs[V]=g.pageObjs[q].removeClass("p"+q+" odd even").addClass("p"+V+he)),g.pagePlace[q]&&g.pageWrap[q]&&(g.pagePlace[V]=V,g.pageObjs[V].hasClass("fixed")?g.pageWrap[V]=g.pageWrap[q].attr("page",V):g.pageWrap[V]=g.pageWrap[q].css(R._pageSize.call(d,V,!0)).attr("page",V),g.pages[q]&&(g.pages[V]=g.pages[q].flip("options",{page:V,next:C||ae?V+1:V-1})),o&&(delete g.pages[q],delete g.pagePlace[q],delete g.pageZoom[q],delete g.pageObjs[q],delete g.pageWrap[q]))};if(o>0)for(t=g.totalPages;t>=s;t--)W(t);else for(t=s;t<=g.totalPages;t++)W(t)},display:function(s){var o=this.data(),t=o.display;if(s===void 0)return t;if(T.inArray(s,fe)==-1)throw Ie('"'+s+'" is not a value for display');switch(s){case"single":o.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),o.pageObjs[0]=T("
",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":o.pageObjs[0]&&(this.turn("stop").css({overflow:""}),o.pageObjs[0].remove(),delete o.pageObjs[0]),this.removeClass("shadow");break}if(o.display=s,t){var d=this.turn("size");R._movePages.call(this,1,0),this.turn("size",d.width,d.height).turn("update")}return this},direction:function(s){var o=this.data();if(s===void 0)return o.direction;if(s=s.toLowerCase(),T.inArray(s,de)==-1)throw Ie('"'+s+'" is not a value for direction');return s=="rtl"&&T(this).attr("dir","ltr").css({direction:"ltr"}),o.direction=s,o.done&&this.turn("size",T(this).width(),T(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var s,o,t=this.data();for(o in t.pages)if(O(o,t.pages)&&(s=t.pages[o].flip("corner")))return s;return!1},data:function(){return this.data()},disable:function(s){var o,t=this.data(),d=this.turn("view");t.disabled=s===void 0||s===!0;for(o in t.pages)O(o,t.pages)&&t.pages[o].flip("disable",t.disabled?!0:T.inArray(parseInt(o,10),d)==-1);return this},disabled:function(s){return s===void 0?this.data().disabled===!0:this.turn("disable",s)},size:function(s,o){if(s===void 0||o===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var t,d,g=this.data(),C=g.display=="double"?s/2:s;this.css({width:s,height:o}),g.pageObjs[0]&&g.pageObjs[0].css({width:C,height:o});for(t in g.pageWrap)O(t,g.pageWrap)&&(d=R._pageSize.call(this,t,!0),g.pageObjs[t].css({width:d.width,height:d.height}),g.pageWrap[t].css(d),g.pages[t]&&g.pages[t].css({width:d.width,height:d.height}));return this.turn("resize"),this},resize:function(){var s,o=this.data();for(o.pages[0]&&(o.pageWrap[0].css({left:-this.width()}),o.pages[0].flip("resize",!0)),s=1;s<=o.totalPages;s++)o.pages[s]&&o.pages[s].flip("resize",!0);R._updateShadow.call(this),o.opts.autoCenter&&this.turn("center")},_removeMv:function(s){var o,t=this.data();for(o=0;o0?t[0]:0,t[1]<=o.totalPages?t[1]:0]:[t[0]>0&&t[0]<=o.totalPages?t[0]:0]},stop:function(s,o){if(this.turn("animating")){var t,d,g,C=this.data();for(C.tpage&&(C.page=C.tpage,delete C.tpage),t=0;ts;t--)this.turn("removePage",t);return o.totalPages=s,R._fitPage.call(this,o.page),this}else return o.totalPages},_missing:function(s){var o=this.data();if(!(o.totalPages<1)){var t,d=this.turn("range",s),g=[];for(t=d[0];t<=d[1];t++)o.pageObjs[t]||g.push(t);g.length>0&&this.trigger("missing",[g])}},_fitPage:function(s){var o=this.data(),t=this.turn("view",s);if(R._missing.call(this,s),!!o.pageObjs[s]){o.page=s,this.turn("stop");for(var d=0;dC[1]?(o=C[1],t=W[0]):C[0]&&so?"r":"l"):d.pages[o].flip("turnPage",s>o?"l":"r"):d.direction=="ltr"?d.pages[o].flip("turnPage",V[s>o?1:0]):d.pages[o].flip("turnPage",V[s>o?0:1]))},page:function(s){var o=this.data();if(s===void 0)return o.page;if(!o.disabled&&!o.destroying){if(s=parseInt(s,10),s>0&&s<=o.totalPages)return s!=o.page&&(!o.done||T.inArray(s,this.turn("view"))!=-1?R._fitPage.call(this,s):R._turnPage.call(this,s)),this;throw Ie("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,R._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,R._view.call(this,this.data().page).shift()-1))},peel:function(s,o){var t=this.data(),d=this.turn("view");if(o=o===void 0?!0:o===!0,s===!1)this.turn("stop",null,o);else if(t.display=="single")t.pages[t.page].flip("peel",s,o);else{var g;t.direction=="ltr"?g=s.indexOf("l")!=-1?d[0]:d[1]:g=s.indexOf("l")!=-1?d[1]:d[0],t.pages[g]&&t.pages[g].flip("peel",s,o)}return this},_addMotionPage:function(){var s=T(this).data().f.opts,o=s.turn;o.data(),R._addMv.call(o,s.page)},_eventStart:function(s,o,t){var d=o.turn.data(),g=d.pageZoom[o.page];if(s.isDefaultPrevented()){R._updateShadow.call(o.turn);return}g&&g!=d.zoom&&(o.turn.trigger("zoomed",[o.page,o.turn.turn("view",o.page),g,d.zoom]),d.pageZoom[o.page]=d.zoom),d.display=="single"&&t&&(t.charAt(1)=="l"&&d.direction=="ltr"||t.charAt(1)=="r"&&d.direction=="rtl"?(o.next=o.nexto.page?o.next:o.page+1),R._addMotionPage.call(s.target),R._updateShadow.call(o.turn)},_eventEnd:function(s,o,t){var d=T(s.target);d.data().f;var g=o.turn,C=g.data();if(t){var W=C.tpage||C.page;(W==o.next||W==o.page)&&(delete C.tpage,R._fitPage.call(g,W||o.next,!0))}else R._removeMv.call(g,o.page),R._updateShadow.call(g),g.turn("update")},_eventPressed:function(s){var o=T(s.target).data().f,t=o.opts.turn,d=t.data();return d.pages,d.mouseAction=!0,t.turn("update"),o.time=new Date().getTime()},_eventReleased:function(s,o){var t,d=T(s.target),g=d.data().f,C=g.opts.turn,W=C.data();W.display=="single"?t=o.corner=="br"||o.corner=="tr"?o.xd.width()/2:t=o.x<0||o.x>d.width(),(new Date().getTime()-g.time<200||t)&&(s.preventDefault(),R._turnPage.call(C,g.opts.next)),W.mouseAction=!1},_flip:function(s){s.stopPropagation();var o=T(s.target).data().f.opts;o.turn.trigger("turn",[o.next]),o.turn.data().opts.autoCenter&&o.turn.turn("center",o.next)},_touchStart:function(){var s=this.data();for(var o in s.pages)if(O(o,s.pages)&&K._eventStart.apply(s.pages[o],arguments)===!1)return!1},_touchMove:function(){var s=this.data();for(var o in s.pages)O(o,s.pages)&&K._eventMove.apply(s.pages[o],arguments)},_touchEnd:function(){var s=this.data();for(var o in s.pages)O(o,s.pages)&&K._eventEnd.apply(s.pages[o],arguments)},calculateZ:function(s){var o,t,d,g,C,W=this,q=this.data(),V=this.turn("view"),ae=V[0]||V[1],he=s.length-1,pe={pageZ:{},partZ:{},pageV:{}},He=function(Oe){var ke=W.turn("view",Oe);ke[0]&&(pe.pageV[ke[0]]=!0),ke[1]&&(pe.pageV[ke[1]]=!0)};for(o=0;o<=he;o++)t=s[o],d=q.pages[t].data().f.opts.next,g=q.pagePlace[t],He(t),He(d),C=q.pagePlace[d]==d?d:t,pe.pageZ[C]=q.totalPages-Math.abs(ae-C),pe.partZ[g]=q.totalPages*2-he+o;return pe},update:function(){var s,o=this.data();if(this.turn("animating")&&o.pageMv[0]!==0){var t,d,g=this.turn("calculateZ",o.pageMv),C=this.turn("corner"),W=this.turn("view"),q=this.turn("view",o.tpage);for(s in o.pageWrap)O(s,o.pageWrap)&&(d=o.pageObjs[s].hasClass("fixed"),o.pageWrap[s].css({display:g.pageV[s]||d?"":"none",zIndex:(o.pageObjs[s].hasClass("hard")?g.partZ[s]:g.pageZ[s])||(d?-1:0)}),(t=o.pages[s])&&(t.flip("z",g.partZ[s]||null),g.pageV[s]&&t.flip("resize"),o.tpage?t.flip("hover",!1).flip("disable",T.inArray(parseInt(s,10),o.pageMv)==-1&&s!=q[0]&&s!=q[1]):t.flip("hover",C===!1).flip("disable",s!=W[0]&&s!=W[1])))}else for(s in o.pageWrap)if(O(s,o.pageWrap)){var V=R._setPageLoc.call(this,s);o.pages[s]&&o.pages[s].flip("disable",o.disabled||V!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,o,t,d=this.data(),g=this.width(),C=this.height(),W=d.display=="single"?g:g/2;s=this.turn("view"),d.shadow||(d.shadow=T("
",{class:"shadow",css:me(0,0,0).css}).appendTo(this));for(var q=0;q=t||g.y>=d)return!1;var W=K._cAllowed.call(this);switch(o.effect){case"hard":if(g.x>t-C)g.corner="r";else if(g.x=d-C)g.corner+="b";else return!1;if(g.x<=C)g.corner+="l";else if(g.x>=t-C)g.corner+="r";else return!1;break}return!g.corner||T.inArray(g.corner,W)==-1?!1:g},_isIArea:function(s){var o=this.data().f.parent.offset();return s=Se&&s.originalEvent?s.originalEvent.touches[0]:s,K._cornerActivated.call(this,{x:s.pageX-o.left,y:s.pageY-o.top})},_c:function(s,o){switch(o=o||0,s){case"tl":return te(o,o);case"tr":return te(this.width()-o,o);case"bl":return te(o,this.height()-o);case"br":return te(this.width()-o,this.height()-o);case"l":return te(o,0);case"r":return te(this.width()-o,0)}},_c2:function(s){switch(s){case"tl":return te(this.width()*2,0);case"tr":return te(-this.width(),0);case"bl":return te(this.width()*2,this.height());case"br":return te(-this.width(),this.height());case"l":return te(this.width()*2,0);case"r":return te(-this.width(),0)}},_foldingPage:function(){var s=this.data().f;if(s){var o=s.opts;if(o.turn)return s=o.turn.data(),s.display=="single"?o.next>1||o.page>1?s.pageObjs[0]:null:s.pageObjs[o.next]}},_backGradient:function(){var s=this.data().f,o=s.opts.turn.data(),t=o.opts.gradients&&(o.display=="single"||s.opts.page!=2&&s.opts.page!=o.totalPages-1);return t&&!s.bshadow&&(s.bshadow=T("
",me(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(s.parent)),t},type:function(){return this.data().f.effect},resize:function(s){var o=this.data().f,t=o.opts.turn.data(),d=this.width(),g=this.height();switch(o.effect){case"hard":s&&(o.wrapper.css({width:d,height:g}),o.fpage.css({width:d,height:g}),t.opts.gradients&&(o.ashadow.css({width:d,height:g}),o.bshadow.css({width:d,height:g})));break;case"sheet":if(s){var C=Math.round(Math.sqrt(Math.pow(d,2)+Math.pow(g,2)));o.wrapper.css({width:C,height:C}),o.fwrapper.css({width:C,height:C}).children(":first-child").css({width:d,height:g}),o.fpage.css({width:d,height:g}),t.opts.gradients&&o.ashadow.css({width:d,height:g}),K._backGradient.call(this)&&o.bshadow.css({width:d,height:g})}if(o.parent.is(":visible")){var W=Ct(o.parent[0]);o.fwrapper.css({top:W.top,left:W.left}),W=Ct(o.opts.turn[0]),o.fparent.css({top:-W.top,left:-W.left})}this.flip("z",o.opts["z-index"]);break}},_addPageWrapper:function(){var s=this.data().f,o=s.opts.turn.data(),t=this.parent();if(s.parent=t,!s.wrapper)switch(s.effect){case"hard":var d={};d[ce+"transform-style"]="preserve-3d",d[ce+"backface-visibility"]="hidden",s.wrapper=T("
",me(0,0,2)).css(d).appendTo(t).prepend(this),s.fpage=T("
",me(0,0,1)).css(d).appendTo(t),o.opts.gradients&&(s.ashadow=T("
",me(0,0,0)).hide().appendTo(t),s.bshadow=T("
",me(0,0,0)));break;case"sheet":if(this.width(),this.height(),s.fparent=s.opts.turn.data().fparent,!s.fparent){var g=T("
",{css:{"pointer-events":"none"}}).hide();g.data().flips=0,g.css(me(0,0,"auto","visible").css).appendTo(s.opts.turn),s.opts.turn.data().fparent=g,s.fparent=g}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),s.wrapper=T("
",me(0,0,this.css("z-index"))).appendTo(t).prepend(this),s.fwrapper=T("
",me(t.offset().top,t.offset().left)).hide().appendTo(s.fparent),s.fpage=T("
",me(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),o.opts.gradients&&(s.ashadow=T("
",me(0,0,1)).appendTo(s.fpage)),K.setData.call(this,s);break}K.resize.call(this,!0)},_fold:function(s){var o=this.data().f,t=o.opts.turn.data(),d=K._c.call(this,s.corner),g=this.width(),C=this.height();switch(o.effect){case"hard":s.corner=="l"?s.x=Math.min(Math.max(s.x,0),g*2):s.x=Math.max(Math.min(s.x,g),-g);var W,q,V,ae,he,pe=t.totalPages,He=o.opts["z-index"]||pe,Oe={overflow:"visible"},ke=d.x?(d.x-s.x)/g:s.x/g,be=ke*90,Qe=be<90;switch(s.corner){case"l":ae="0% 50%",he="100% 50%",Qe?(W=0,q=o.opts.next-1>0,V=1):(W="100%",q=o.opts.page+1ee&&(ye.x=ye.x+Math.abs(ye.y*ge.y/ge.x),ye.y=0,Math.round(ye.x*Math.tan(De-ue))ee){var lt=De-ue,ft=Pt-C/Math.sin(lt);qe=te(Math.round(ft*Math.cos(lt)),Math.round(ft*Math.sin(lt))),nt&&(qe.x=-qe.x),tt&&(qe.y=-qe.y)}gt=Math.round(ye.y/Math.tan(ue)+ye.x);var it=g-gt,ut=it*Math.cos(ue*2),dt=it*Math.sin(ue*2);if(kt=te(Math.round(nt?it-ut:gt+ut),Math.round(tt?dt:C-dt)),t.opts.gradients){Ye=it*Math.sin(ue);var st=K._c2.call(Ve,s.corner),Pe=Math.sqrt(Math.pow(st.x-s.x,2)+Math.pow(st.y-s.y,2))/g;Dt=Math.sin(ee*(Pe>1?2-Pe:Pe)),vt=Math.min(Pe,1),mt=Ye>100?(Ye-100)/Ye:0,$e=te(Ye*Math.sin(ue)/g*100,Ye*Math.cos(ue)/C*100),K._backGradient.call(Ve)&&(et=te(Ye*1.2*Math.sin(ue)/g*100,Ye*1.2*Math.cos(ue)/C*100),nt||(et.x=100-et.x),tt||(et.y=100-et.y))}return ye.x=Math.round(ye.x),ye.y=Math.round(ye.y),!0},wt=function(ge,Le,ue,Ue){var rt=["0","auto"],lt=(g-Pt)*ue[0]/100,ft=(C-Pt)*ue[1]/100,it={left:rt[Le[0]],top:rt[Le[1]],right:rt[Le[2]],bottom:rt[Le[3]]},ut={},dt=Ue!=90&&Ue!=-90?nt?-1:1:0,st=ue[0]+"% "+ue[1]+"%";Ve.css(it).transform(k(Ue)+ze(ge.x+dt,ge.y,yt),st),o.fpage.css(it).transform(k(Ue)+ze(ge.x+kt.x-qe.x-g*ue[0]/100,ge.y+kt.y-qe.y-C*ue[1]/100,yt)+k((180/Ue-2)*Ue),st),o.wrapper.transform(ze(-ge.x+lt-dt,-ge.y+ft,yt)+k(-Ue),st),o.fwrapper.transform(ze(-ge.x+qe.x+lt,-ge.y+qe.y+ft,yt)+k(-Ue),st),t.opts.gradients&&(ue[0]&&($e.x=100-$e.x),ue[1]&&($e.y=100-$e.y),ut["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*Dt+")",_t.css(ut),ie(o.ashadow,te(nt?100:0,tt?0:100),te($e.x,$e.y),[[mt,"rgba(0,0,0,0)"],[(1-mt)*.8+mt,"rgba(0,0,0,"+.2*vt+")"],[1,"rgba(255,255,255,"+.2*vt+")"]],3),K._backGradient.call(Ve)&&ie(o.bshadow,te(nt?0:100,tt?0:100),te(et.x,et.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*vt+")"],[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),at(),wt(ye,[1,0,0,1],[100,0],Xe);break;case"tr":s.x=Math.min(s.x,g-1),at(),wt(te(-ye.x,ye.y),[0,0,0,1],[0,0],-Xe);break;case"bl":s.x=Math.max(s.x,1),at(),wt(te(ye.x,-ye.y),[1,1,0,0],[100,100],-Xe);break;case"br":s.x=Math.min(s.x,g-1),at(),wt(te(-ye.x,-ye.y),[0,1,1,0],[0,100],Xe);break}break}o.point=s},_moveFoldingPage:function(s){var o=this.data().f;if(o){var t=o.opts.turn,d=t.data(),g=d.pagePlace;if(s){var C=o.opts.next;if(g[C]!=o.opts.page){o.folding&&K._moveFoldingPage.call(this,!1);var W=K._foldingPage.call(this);W.appendTo(o.fpage),g[C]=o.opts.page,o.folding=C}t.turn("update")}else if(o.folding){if(d.pages[o.folding]){var q=d.pages[o.folding].data().f;d.pageObjs[o.folding].appendTo(q.wrapper)}else d.pageWrap[o.folding]&&d.pageObjs[o.folding].appendTo(d.pageWrap[o.folding]);o.folding in g&&(g[o.folding]=o.folding),delete o.folding}}},_showFoldedPage:function(s,o){var t=K._foldingPage.call(this),d=this.data(),g=d.f,C=g.visible;if(t){if(!C||!g.point||g.point.corner!=s.corner){var W=g.status=="hover"||g.status=="peel"||g.opts.turn.data().mouseAction?s.corner:null;if(C=!1,ve("start",this,[g.opts,W])=="prevented")return!1}if(o){var q=this,V=g.point&&g.point.corner==s.corner?g.point:K._c.call(this,s.corner,1);this.animatef({from:[V.x,V.y],to:[s.x,s.y],duration:500,frame:function(ae){s.x=Math.round(ae[0]),s.y=Math.round(ae[1]),K._fold.call(q,s)}})}else K._fold.call(this,s),d.effect&&!d.effect.turning&&this.animatef(!1);if(!C)switch(g.effect){case"hard":g.visible=!0,K._moveFoldingPage.call(this,!0),g.fpage.show(),g.opts.shadows&&g.bshadow.show();break;case"sheet":g.visible=!0,g.fparent.show().data().flips++,K._moveFoldingPage.call(this,!0),g.fwrapper.show(),g.bshadow&&g.bshadow.show();break}return!0}return!1},hide:function(){var s=this.data().f,o=s.opts.turn.data(),t=K._foldingPage.call(this);switch(s.effect){case"hard":o.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(),t.transform("");break}return s.visible=!1,this},hideFoldedPage:function(s){var o=this.data().f;if(o.point){var t=this,d=o.point,g=function(){o.point=null,o.status="",t.flip("hide"),t.trigger("end",[o.opts,!1])};if(s){var C=K._c.call(this,d.corner),W=d.corner.substr(0,1)=="t",q=W?Math.min(0,d.y-C.y)/2:Math.max(0,d.y-C.y)/2,V=te(d.x,d.y+q),ae=te(C.x,C.y-q);this.animatef({from:0,to:1,frame:function(he){var pe=_e(d,V,ae,C,he);d.x=pe.x,d.y=pe.y,K._fold.call(t,d)},complete:g,duration:800,hiding:!0})}else this.animatef(!1),g()}},turnPage:function(s){var o=this,t=this.data().f,d=t.opts.turn.data();s={corner:t.corner?t.corner.corner:s||K._cAllowed.call(this)[0]};var g=t.point||K._c.call(this,s.corner,t.opts.turn?d.opts.elevation:0),C=K._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(W){var q=_e(g,g,C,C,W);s.x=q.x,s.y=q.y,K._showFoldedPage.call(o,s)},complete:function(){o.trigger("end",[t.opts,!0])},duration:d.opts.duration,turning:!0}),t.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 o=this.data().f,t=o.opts.turn;if(!o.corner&&!o.disabled&&!this.flip("isTurning")&&o.opts.page==t.data().pagePlace[o.opts.page]){if(o.corner=K._isIArea.call(this,s),o.corner&&K._foldingPage.call(this))return this.trigger("pressed",[o.point]),K._showFoldedPage.call(this,o.corner),!1;o.corner=null}},_eventMove:function(s){var o=this.data().f;if(!o.disabled){if(s=Se?s.originalEvent.touches:[s],o.corner){var t=o.parent.offset();o.corner.x=s[0].pageX-t.left,o.corner.y=s[0].pageY-t.top,K._showFoldedPage.call(this,o.corner)}else if(o.hover&&!this.data().effect&&this.is(":visible")){var d=K._isIArea.call(this,s[0]);if(d){if(o.effect=="sheet"&&d.corner.length==2||o.effect=="hard"){o.status="hover";var g=K._c.call(this,d.corner,o.opts.cornerSize/2);d.x=g.x,d.y=g.y,K._showFoldedPage.call(this,d,!0)}}else o.status=="hover"&&(o.status="",K.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,o=s.corner;!s.disabled&&o&&ve("released",this,[s.point||o])!="prevented"&&K.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return K.setData.call(this,{disabled:s}),this},hover:function(s){return K.setData.call(this,{hover:s}),this},peel:function(s,o){var t=this.data().f;if(s){if(T.inArray(s,Ae.all)==-1)throw Ie("Corner "+s+" is not permitted");if(T.inArray(s,K._cAllowed.call(this))!=-1){var d=K._c.call(this,s,t.opts.cornerSize/2);t.status="peel",K._showFoldedPage.call(this,{corner:s,x:d.x,y:d.y},o)}}else t.status="",K.hideFoldedPage.call(this,o);return this}};function Re(s,o,t){if(!t[0]||typeof t[0]=="object")return o.init.apply(s,t);if(o[t[0]])return o[t[0]].apply(s,Array.prototype.slice.call(t,1));throw Ie(t[0]+" is not a method or property")}function me(s,o,t,d){return{css:{position:"absolute",top:s,left:o,overflow:d||"hidden",zIndex:t||"auto"}}}function _e(s,o,t,d,g){var C=1-g,W=C*C*C,q=g*g*g;return te(Math.round(W*s.x+3*g*C*C*o.x+3*g*g*C*t.x+q*d.x),Math.round(W*s.y+3*g*C*C*o.y+3*g*g*C*t.y+q*d.y))}function Ze(s){return s/De*180}function te(s,o){return{x:s,y:o}}function ot(){var s;if(s=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var o=parseFloat(s[1]);return o>534.3}else return!0}function ze(s,o,t){return E&&t?" translate3d("+s+"px,"+o+"px, 0px) ":" translate("+s+"px, "+o+"px) "}function k(s){return" rotate("+s+"deg) "}function O(s,o){return Object.prototype.hasOwnProperty.call(o,s)}function Z(){for(var s=["Moz","Webkit","Khtml","O","ms"],o=s.length,t="";o--;)s[o]+"Transform"in document.body.style&&(t="-"+s[o].toLowerCase()+"-");return t}function H(){var s,o=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(s in t)if(o.style[s]!==void 0)return t[s]}function ie(s,o,t,d,g){var C,W=[];if(ce=="-webkit-"){for(C=0;C{Ut({api:"goBack"})},De=localStorage.getItem("courseware-list")?JSON.parse(localStorage.getItem("courseware-list")):{},ee=Lt({currentGradeNum:De.currentGradeNum||null,bookVersionId:De.bookVersionId||null,page:1,rows:999,type:"COURSEWARE"}),Se=Fe(!1),U=Lt({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},bookLessonId:"",subjectList:[],instrumentList:[],showBook:!1,book:{}}),Ae=async()=>{try{const k=qt.user.data.schoolInfos,O=k&&k.length>0?k[0].id:null;if(!O)return;const{data:Z}=await Kn({id:O});Y.value=Z.bookVersionList||[],ce.value=Wt(Y.value),Y.value.findIndex(ie=>ie.bookVersionId==De.bookVersoinId)<0&&(ee.bookVersionId=null)}catch(k){console.log(k)}},fe=async()=>{var ie;U.loading=!0;const{bookVersionId:k,currentGradeNum:O,...Z}=ee,H=await Vn({...Z,bookVersionId:k==-1?null:k,currentGradeNum:O||""});(H==null?void 0:H.code)===200&&Array.isArray((ie=H==null?void 0:H.data)==null?void 0:ie.rows)&&(U.list=H.data.rows.map(ve=>(ve.load=!1,ve.key=Date.now()+ve.id,ve))),U.loading=!1,setTimeout(()=>{Se.value=!0},100)},de=async()=>{var O,Z,H;U.loading=!0;const k=await Yn({clientType:"STUDENT",userId:(Z=(O=qt.user)==null?void 0:O.data)==null?void 0:Z.id,page:ee.page,rows:ee.rows,bookVersionId:ee.bookVersionId!=-1?ee.bookVersionId:"",currentGradeNum:ee.currentGradeNum?ee.currentGradeNum:""});(k==null?void 0:k.code)===200&&Array.isArray((H=k==null?void 0:k.data)==null?void 0:H.rows)&&(U.list=k.data.rows.map(ie=>(ie.name=`${ie.name}`,ie.load=!1,ie.favoriteFlag=!0,ie.key=Date.now()+ie.id,ie))),U.loading=!1},Be=async()=>{var O;U.loading=!0;const k=await Jn({bookVersionId:ee.bookVersionId?ee.bookVersionId:"",page:ee.page,rows:ee.rows,currentGradeNum:ee.currentGradeNum?ee.currentGradeNum:""});(k==null?void 0:k.code)===200&&Array.isArray((O=k==null?void 0:k.data)==null?void 0:O.rows)&&(U.list=k.data.rows.map(Z=>(Z.load=!1,Z.key=Date.now()+Z.id,Z))),U.loading=!1},xe=()=>{U.tab==="all"&&fe(),U.tab==="favorite"&&de(),U.tab==="course"&&Be()},Ne=Fe(),R=()=>{U.tab==="course"?ce.value=[...Wt(Y.value),{bookVersionId:-1,bookVersionName:"自定义"}]:ce.value=Wt(Y.value),xe(),Ne.value&&an().isTablet&&Ne.value.scrollTo(0,0)},K=async()=>{try{const k=await Qn({enableFlag:!0,delFlag:0,page:1,rows:999});U.subjectList=k.data.rows||[]}catch(k){}};Gt(async()=>{window.addEventListener("error",k=>{console.log(k,"error")}),await Ae(),await K(),xe(),Ut({api:"setStatusBarVisibility",content:{isVisibility:0}})});const Re=async k=>{k.favoriteFlag?await Zn({lessonCoursewareId:k.id}):(await $n({lessonCoursewareId:k.id}),U.tab)};let me=null;const _e=(k,O=300)=>{me&&clearTimeout(me),me=setTimeout(k,O)},Ze=async k=>{var O,Z;if(U.tab==="course"){const H=await er({id:k.id});if((H==null?void 0:H.code)==200&&Array.isArray((O=H==null?void 0:H.data)==null?void 0:O.lessonList))U.details=H.data.lessonList||[],U.bookData=H.data,U.bookLessonId=k.id,console.log("🚀 ~ data.details course:",U.details);else{E.value=!0;return}}else{const H=await tr({id:k.id});(H==null?void 0:H.code)==200&&Array.isArray((Z=H==null?void 0:H.data)==null?void 0:Z.lessonList)&&(U.details=H.data.lessonList||[],U.bookData=H.data,U.bookLessonId=k.id,console.log("🚀 ~ data.details:",U.details))}te(k.id),ot(()=>{U.showBook=!0})},te=k=>{const O=document.querySelector(`[data-id="${k}"]`);if(!O)return;const Z=O.getBoundingClientRect();U.book=Z},ot=k=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{k()})})},ze=async k=>{await Ze(k)};return()=>L("div",{class:[oe.container,an().isTablet?oe.containerTablet:""]},[L("div",{class:oe.head,style:{opacity:U.showBook?0:""}},[L("div",{class:oe.back,onClick:$},[L("img",{src:fn},null)]),L(sr,{class:oe.tabs,active:U.tab,"onUpdate:active":k=>U.tab=k,onChange:()=>R()},{default:()=>[L(Rt,{title:"全部教材",name:"all"},null),L(Rt,{title:"课程教材",name:"course"},null),L(Rt,{name:"favorite"},{title:()=>L("div",{id:"courseware-2"},[je("我的收藏")])})]}),L(Tt,on({class:[oe.downBtn,U.tab!="course"&&ee.bookVersionId>0||U.tab=="course"&&ee.bookVersionId||ee.currentGradeNum?oe.activeBtn:""],round:!0,size:"small",onClick:()=>T.value=!0},{id:"courseware-3"}),{default:()=>[je("筛选"),L("svg",{class:[oe.icon,T.value?oe.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[L("title",null,[je("三角形")]),L("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[L("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[L("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[L("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[L("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)])])])])])]})]),L("div",{ref:Ne,class:[oe.content,U.list.length<=0&&!U.loading?oe.contentEmpty:""]},[L("div",{class:[oe.wrap,U.list.length<=0&&!U.loading?oe.emtpyWrap:""]},[U.list.map((k,O)=>L("div",{class:[oe.wrapItem,U.bookData.id===k.id&&U.showBook?oe.wrapItemHide:""],key:k.key,onClick:()=>ze(k)},[L("div",{class:oe.item},[L(ir,on({"data-id":k.id},{id:O==0?"courseware-0":""},{class:[oe.cover,k.load?oe.loaded:""],objectFit:"cover",src:k.coverImg,onLoad:()=>{k.load=!0}}),null)]),L("div",{class:oe.name},[k.name]),!U.loading&&U.tab!=="course"&&L("div",{id:O===0?"courseware-1":"",class:oe.favoriteBtn,onClick:Z=>{Z.stopPropagation(),k.favoriteFlag=!k.favoriteFlag,_e(()=>Re(k))}},[L(Wr,{isFavorite:k.favoriteFlag},null)])])),U.list.length<=0&&!U.loading&&L(Rn,{image:"list",description:"暂无数据"},null)])]),L(di,{show:U.showBook,bookData:U.bookData,bookLessonId:U.bookLessonId,tab:U.tab,rect:U.book,onClose:()=>{U.showBook=!1},onConfirm:()=>{xe()}},null),Se.value?L(hi,null,null):null,L(cn,{show:T.value,"onUpdate:show":k=>T.value=k,class:oe.popupContainer},{default:()=>[L("div",{class:oe.popoverContainer},[L("div",{class:oe.searchList},[ce.value.length>0&&L(Xt,null,[L("div",{class:oe.popoverTitle},[je("教材版本")]),L("div",{class:[oe.popupList,oe.versionList]},[ce.value.map(k=>L(ln,{plain:ee.bookVersionId==k.bookVersionId,round:!0,onClick:()=>ee.bookVersionId=k.bookVersionId},{default:()=>[k.bookVersionName]}))])]),L("div",{class:oe.popoverTitle},[je("选择年级")]),L("div",{class:[oe.popupList,oe.versionList]},[pi.grades.map(k=>L(ln,{plain:ee.currentGradeNum===k.value,round:!0,onClick:()=>ee.currentGradeNum=k.value},{default:()=>[k.text]}))])]),L("div",{class:oe.btnGroup},[L(Tt,{round:!0,onClick:()=>{ee.bookVersionId=null,ee.currentGradeNum=null}},{default:()=>[je("重置")]}),L(Tt,{round:!0,class:oe.btnSure,onClick:()=>{localStorage.setItem("courseware-list",JSON.stringify({bookVersionId:ee.bookVersionId,currentGradeNum:ee.currentGradeNum})),xe(),T.value=!1}},{default:()=>[je("确认")]})])])]}),E.value&&L(dn,{onClose:()=>{E.value=!1},onConfirm:()=>{xe()}},null)])}});export{pi as BOOK_DATA,Ni as default};