index-legacy-3cb5c8c5.js 159 KB

1
  1. !function(){const e=["bookVersionId","currentGradeNum"];function t(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,a)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,l,"next",e)}function l(e){i(o,r,a,s,l,"throw",e)}s(void 0)}))}}System.register(["./index-legacy-3b5d15b6.js","./api-legacy-a6952314.js","./base-legacy-f60ccc23.js","./api-legacy-710bf92d.js","./deep-clone-legacy-0f45d9f6.js","./Image-legacy-1c7445a3.js","./index-legacy-7135aa8e.js","./index-legacy-ab2fba20.js","./fade-in-scale-up.cssr-legacy-268d9db3.js","./use-tab-status-legacy-96d80100.js","./index-legacy-f49663b6.js"],(function(n,a){"use strict";var i,s,l,c,u,d,p,f,h,g,m,v,y,b,x,w,_,A,k,T,C,N,S,P,M,E,j,F,D,O,L,B,I,z,W,H,R,q,V,X=document.createElement("style");return X.textContent="._container_1xc3a_1{position:relative;width:100vw;height:100vh;overflow:hidden;background:url("+new URL("icon_bg-f94bd665.png",a.meta.url).href+') no-repeat center center / cover;display:flex;flex-direction:column}._head_1xc3a_10{position:relative;display:flex;align-items:center;justify-content:space-between;padding:.50667rem .61333rem .21333rem 1.09333rem;transition:opacity .3s ease-in-out}._head_1xc3a_10 ._back_1xc3a_18 img{display:block}._head_1xc3a_10 ._tabs_1xc3a_21 .van-tab{color:rgba(255,255,255,.9);font-size:.4rem;padding:0 .42667rem}._head_1xc3a_10 ._tabs_1xc3a_21 .van-tab.van-tab--active{color:#fff}._head_1xc3a_10 ._tabs_1xc3a_21 .van-tabs__nav.van-tabs__nav--line{background:transparent}._head_1xc3a_10 ._tabs_1xc3a_21 .van-tabs__line{background:#fff;width:.48rem;height:.10667rem}._downBtn_1xc3a_37{width:2.24rem;height:.85333rem;background:#f8f9fc;border-radius:.42667rem;border:none;padding:0;display:flex;justify-content:center;align-items:center}._downBtn_1xc3a_37._activeBtn_1xc3a_48 ._icon_1xc3a_48{color:var(--van-primary-color)!important}._downBtn_1xc3a_37._activeBtn_1xc3a_48 .van-button__text{color:var(--van-primary-color)}._downBtn_1xc3a_37 .van-button__content{width:100%}._downBtn_1xc3a_37 .van-button__text{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:.34667rem;color:#333;font-weight:400}._downBtn_1xc3a_37 ._icon_1xc3a_48{width:.21333rem;height:.13333rem;margin-left:.10667rem;transition:transform .2s ease}._downBtn_1xc3a_37 ._iconUp_1xc3a_73{color:var(--van-primary-color);transform:rotate(180deg);transition:transform .2s ease}._popover_1xc3a_78{width:2.21333rem;border:none}._popover_1xc3a_78 .van-popover__action{display:flex;justify-content:center;align-items:center;padding:0;width:100%;height:.96rem;color:#999;font-size:.34667rem}._popover_1xc3a_78 .van-popover__content{max-height:70vh;overflow-x:hidden;overflow-y:auto}._content_1xc3a_97{flex:1;overflow-y:hidden;overflow-x:auto;display:flex}._content_1xc3a_97 ._wrap_1xc3a_103{position:relative;display:flex;height:100%;padding:.53333rem 1.68rem 0}._content_1xc3a_97 ._wrap_1xc3a_103._emtpyWrap_1xc3a_109{width:100%}._content_1xc3a_97 .van-empty__description{font-size:.37333rem;color:#fff}._content_1xc3a_97 .van-empty__image{width:5.33333rem;height:5.33333rem}._wrapItem_1xc3a_120{position:relative;width:4.10667rem;display:flex;flex-direction:column;align-items:center;padding:0 .42667rem;flex-shrink:0;z-index:1}._wrapItem_1xc3a_120 ._item_1xc3a_130{position:relative;margin-bottom:.4rem;width:100%;height:4.53333rem;background-color:#edeff2;box-shadow:0 .13333rem .37333rem rgba(0,0,0,.4)}._wrapItem_1xc3a_120 ._item_1xc3a_130 img{position:absolute}._wrapItem_1xc3a_120 ._item_1xc3a_130:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._wrapItem_1xc3a_120 ._item_1xc3a_130:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._wrapItem_1xc3a_120 ._name_1xc3a_161{font-size:.29333rem;font-weight:400;color:#fff;line-height:.42667rem;text-align:center}._wrapItem_1xc3a_120 ._favoriteBtn_1xc3a_168{position:absolute;top:3.6rem;right:.53333rem;z-index:3}._containerImg_1xc3a_174{position:relative;display:block;width:100%;height:4.53333rem}._containerImg_1xc3a_174:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._containerImg_1xc3a_174:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._cover_1xc3a_200{position:relative;z-index:3;display:block;width:100%;height:4.53333rem;background-color:#edeff2;background-image:url('+new URL("icon_default-c2fa566e.svg",a.meta.url).href+');background-repeat:no-repeat;background-position:center center}._cover_1xc3a_200:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;background-repeat:no-repeat;background-image:linear-gradient(to right,rgba(0,0,0,.2) 0,rgba(255,255,255,.08) 0%,transparent .5%),linear-gradient(to right,rgba(0,0,0,.1) .3%,rgba(255,255,255,.09) 1.1%,transparent 1.3%);background-size:50% 100%,50% 100%;background-position:0% top,9% top}._cover_1xc3a_200 img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-in-out}._cover_1xc3a_200._loaded_1xc3a_230 img{opacity:1}._book_1xc3a_233{position:fixed;top:50%;left:50%;width:50vw;transform:translate(-50%,-50%) scale(0);z-index:20;background-color:#fff;transition:all .3s ease-in-out;visibility:hidden;pointer-events:none;border-radius:.21333rem;box-shadow:0 0 .26667rem rgba(0,0,0,.2)}._book_1xc3a_233 ._bookWrap_1xc3a_247{height:60vh;overflow-y:auto}._book_1xc3a_233 ._bookWrap_1xc3a_247 ul{list-style:circle;padding:.26667rem 1.06667rem}._book_1xc3a_233._show_1xc3a_255{visibility:visible;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}._popupContainer_1xc3a_260{background:#FFFFFF;border-radius:.32rem;width:7.94667rem;padding-top:.32rem}._popupContainer_1xc3a_260 ._searchList_1xc3a_266{padding:0 0 0 .29333rem;max-height:58vh;overflow-x:hidden;overflow-y:auto}._popupContainer_1xc3a_260 ._popoverTitle_1xc3a_272{display:flex;align-items:center;font-size:.37333rem;font-weight:600;color:#333}._popupContainer_1xc3a_260 ._popoverTitle_1xc3a_272:before{content:" ";display:inline-block;width:.10667rem;height:.29333rem;background:#2AA4FE;border-radius:.05333rem;margin-right:.16rem}._popupContainer_1xc3a_260 ._popupList_1xc3a_288{display:flex;flex-flow:wrap;justify-content:flex-start;padding-top:.29333rem;padding-bottom:.37333rem}._popupContainer_1xc3a_260 ._popupList_1xc3a_288 .van-tag{padding:.18667rem .64rem;height:.8rem;font-size:.32rem;background:#F6F6F6;border:none;color:#333;margin-right:.21333rem;margin-bottom:.24rem}._popupContainer_1xc3a_260 ._popupList_1xc3a_288 .van-tag--plain{background:rgba(42,164,254,.08);border:none;color:#2aa4fe}._popupContainer_1xc3a_260 ._btnGroup_1xc3a_310{border:.02667rem solid #F2F2F2;padding:.42667rem .32rem;display:flex;align-items:center;justify-content:space-between}._popupContainer_1xc3a_260 ._btnGroup_1xc3a_310 .van-button{font-size:.4rem;color:#333;line-height:.58667rem;padding:0 1.28rem;height:.98667rem;font-weight:400}._popupContainer_1xc3a_260 ._btnGroup_1xc3a_310 ._btnSure_1xc3a_325{background:linear-gradient(135deg,#19F1E1 0%,#0094FF 100%),linear-gradient(73deg,#5BECFF 0%,#259CFE 100%);border:none;color:#fff}.favoriteWrap{width:.74667rem;height:.74667rem;background:rgba(255,255,255,.61);border:.02667rem solid #FFFFFF;border-radius:50%;cursor:pointer;display:flex;justify-content:center;align-items:center}.liked .favoritIcon{animation:blink 1s forwards}.favoritIcon{width:.45333rem;height:.4rem}@keyframes blink{10%{transform:scale(1.4)}to{transform:scale(1)}}._book_1xtvx_1{position:fixed;left:0;top:0;right:0;bottom:0;inset:0;z-index:100;padding-top:10vh}._book_1xtvx_1 ._back_1xtvx_11{position:absolute;left:1.09333rem;top:.64rem}._book_1xtvx_1._bookHide_1xtvx_16{visibility:hidden;pointer-events:none;opacity:0}._book_1xtvx_1 .bookWrap{margin:0 auto}._book_1xtvx_1 .animated{transition:margin-left .2s ease-in-out}._book_1xtvx_1 .page{background:white}._book_1xtvx_1 .shadow{box-shadow:0 0 .53333rem rgba(0,0,0,.4)}._book_1xtvx_1 .page-wrapper{perspective:53.33333rem}._wrap_1xtvx_36{position:relative;height:100%;overflow:hidden;background-color:#ffd8a1;width:calc(100% + 1Px)}._wrap_1xtvx_36:before{content:"";position:absolute;left:10Px;right:10Px;top:10Px;bottom:10Px;background-color:#fff;z-index:1}._wrap_1xtvx_36 ._wrapItem_1xtvx_53{position:relative;padding:20Px;height:100%;overflow:hidden;z-index:2}._wrap_1xtvx_36 ._item_1xtvx_60{display:flex;font-size:.37333rem;font-weight:600;color:#333;line-height:20Px;padding:13Px 0;word-break:break-all}._wrap_1xtvx_36 ._des_1xtvx_69{line-height:16Px;font-size:.32rem;font-weight:400}._wrap_1xtvx_36 ._icon_1xtvx_74{width:20Px;height:20Px;margin-right:6Px}._wrap_1xtvx_36 ._last_1xtvx_79{font-size:12Px;color:#ff5a56;margin-left:.16rem;font-weight:400}.even ._wrap_1xtvx_36{left:-1Px}.even ._wrap_1xtvx_36:before{right:0;border-radius:4Px 0 0 4Px}.even ._wrap_1xtvx_36:after{content:"";position:absolute;right:0;top:0;bottom:0;width:24Px;background:linear-gradient(to right,rgba(255,255,255,0) 20%,rgba(229,199,156,.4) 100%);z-index:3}.odd ._wrap_1xtvx_36{left:-1Px}.odd ._wrap_1xtvx_36:before{left:0;border-radius:0 4Px 4Px 0}.odd ._wrap_1xtvx_36:after{content:"";position:absolute;left:0;top:0;bottom:0;width:24Px;background:linear-gradient(to right,rgba(255,225,183,.35) 8%,rgba(255,255,255,0) 100%);z-index:2}.odd ._wrapItem_1xtvx_53{padding-left:20Px}\n',document.head.appendChild(X),{setters:[e=>{i=e.d,s=e.a,l=e.x,c=e.r,u=e.y,d=e.a7,p=e.V,f=e.A,h=e.F,g=e.C,m=e.q,v=e.M,y=e.al,b=e.w,x=e.z,w=e.E,_=e.a5,A=e.e,k=e.h,T=e.a0,C=e.Q},e=>{N=e.a,S=e.b,P=e.c,M=e.d,E=e.e,j=e.f,F=e.g,D=e.h},e=>{O=e.q},e=>{L=e.g,B=e.s,I=e.a,z=e.b},e=>{W=e.d},e=>{H=e.N},e=>{R=e.T,q=e.a},e=>{V=e.T},null,null,null],execute:function(){const X={container:"_container_1xc3a_1",head:"_head_1xc3a_10",back:"_back_1xc3a_18",tabs:"_tabs_1xc3a_21",downBtn:"_downBtn_1xc3a_37",activeBtn:"_activeBtn_1xc3a_48",icon:"_icon_1xc3a_48",iconUp:"_iconUp_1xc3a_73",popover:"_popover_1xc3a_78",content:"_content_1xc3a_97",wrap:"_wrap_1xc3a_103",emtpyWrap:"_emtpyWrap_1xc3a_109",wrapItem:"_wrapItem_1xc3a_120",item:"_item_1xc3a_130",name:"_name_1xc3a_161",favoriteBtn:"_favoriteBtn_1xc3a_168",containerImg:"_containerImg_1xc3a_174",cover:"_cover_1xc3a_200",loaded:"_loaded_1xc3a_230",book:"_book_1xc3a_233",bookWrap:"_bookWrap_1xc3a_247",show:"_show_1xc3a_255",popupContainer:"_popupContainer_1xc3a_260",searchList:"_searchList_1xc3a_266",popoverTitle:"_popoverTitle_1xc3a_272",popupList:"_popupList_1xc3a_288",btnGroup:"_btnGroup_1xc3a_310",btnSure:"_btnSure_1xc3a_325"},U=""+new URL("icon_back-b80c2fc2.svg",a.meta.url).href,G=i({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup:e=>()=>s("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[s("img",{class:"favoritIcon",src:e.isFavorite?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAJKADAAQAAAABAAAAIAAAAADfjkU8AAAHv0lEQVRYCZVXW6hWRRReM/u/HM/xclRCUzHLEFIkyqfwIUylG5pKIFqBhSgUkj1kGYT2ENJDUQhhF4QgDBRJPGZHo9KkHoISzUsmPQl5yfvlePz33jN935qZ39+T132Yf9bMrMs331ozex8jN3h6X180Nqv1e8kb+4QxdoR3MsSXZSGFOyul32tco6s6+O41ZuVK1+rCr1+f5bt2LYTNLG+z8eL8MKwbyd1ZnxfH/JX8+0Zv8cnADWsPtdol2SQh9X75K0Pzava+qdTniStrxnmBUwGgqz2mxBvB2lFTuhWVj1Z/Rvti6dKFpmJXOicjDQ2g5wv+wL6kDzSMvTO5uXy5q7jc83L/zV8dp216rgHUeHvJQ1m1vskbP9rAK4EI+zLK6himAOOxaf4xqHi7UaMaedZgTedowzXaF0435NXeYIqgsFy4E9JzZU775i9+/h+gxhuLH8wGDNjpnRtkXIHdw6JaExkzTmT/HjgtuVExaJ5BxUYf6BkYT1hDDzbAbtgQOmWYDKktl7AhjB03Vvqesrd3+sBvvvxFffDHL13aWXaa3djwGAsw6mz0WDHzF4u09RNZ9abIqZO6KwYnC5pCgrIEBL7SHDZisJfALoGRjYgEQFQkVgiUnbcE9a87f2r8wB1dJysElHcU71mfjTG6K2gbK2beIpH2DpEtG0ROHIMlphkITiApgIAqZh3zzXWkSBWVqTAP5jFFOyiSNcji2JBOsXeZen/W4WzTs2zhqGq945A1rt2UOZRLhIPRYzNE9u0W+fswjDHW7cAEq+oMU/pghwqS47Bl9H1kXYMa5/Gw595DaYI1+ARTeS1vPFDJfH2BuKJdte4bJ2bkPSLbN4OZ9cFCdwmPdBYdq1ewGAKnKJjVnVMPirRL+uwxvppW6pA52LKedGirufOvVcDM44KyMQbeJk8TGTdBZOc2kfMNBORWoN4KhtZkCUwG2oPzZnAuN8HQFo3poR39YKxXiW40+NHTiiWsTK1A6V54wAio1n0qMrBT5MJFTMGaTmhIAAmYynFNgTIgA8WGLtjFnmu6jp8ElL4pg50AGDJFa4dXfOmGWnjjSTDnzomcPoMVesdDEKqJjrvkoyDQ666xTpUkt65TTmvJhr4AhjUUWIKAGFpbvDMy6QBDuDsJALN6AijH2zU4pGMGjrvBsj4E2wwYZa5xTtegr+ucg6AnKuiBhHBjs2eDb1wC3LuzvpEfxztKkZNGRdt0lJzHQATFRxmJfQKWwNCWTCQfaZ1YdA4/0NW7SeNhjPgat5Dz1pTmKG/NAAYsUaZzbZA1eGRHmeJanG8JdhVAWk89bYM90xSAMG2BHX2tgCWiRYZO4WLODyRmPI9gWIMCHKadJgCca7JDUBynFscYNnVa7NUvAfH80B/Z0XSFrBAgoh+y1rnP9Q3M25UKrCEijqwpG3RMJ5i+yk4CwrkIQoFTpm5s9KPA6BsyY7Dx3YjeUVbmwZDYDxFJpPeF5w8bKe/HW0Usql2LWymkc2pEQJTZFECU01jBQK9VJ26gyQg27QDENUopiwLYUMpopcFNVK2eGLxn6zBct3hyt5HXkL6B+akAWvVqUuSQGUx3SRmNTxNIlLnOR+fxowBjzUBmypSNnAVMIGGsajA11m6huQKqnxu6AiCO8UWvOWZ+1UOoKQVB6hnsmsa5OB/ZCKkKTNEFCxrfPSFFZAd+SrwznZ4sxMGflex8z/GjS5qAzLerr5iyXEXlAIoswRFBNHMMdTJHQAzEXllrSZOucYwwyTYFJhiwo0CwpqcMTljKlazywYh/fuuJHtmF5/LsufvgaYIlhagl1hTfMxjiwScJAyoQ9IlrBYEf7aGp6cEAoLV4Wbg5NkgwrBsAK7lx5MzZTGy1emTw/u7RjMAn1FCQxRbFXOhddDl2gObwNcKdKvXax8CQ9W5REFEmewoGPY829QGkCQaACEazQNahZozprbnqrBheu2sA1bs27pfSvkrwNCQQrSm+SjCpaUhB6bEFGEspAIIRPnbSsQ7MhFQ5njKmEH8OKcjq/ZZ3HOz6vRVQyEbrDORLT85Zi9p5kWg1fRCQMIxwU+jeMh0pc0DCL8XAIgMCGRrTw2LWY57SBDAlLlYPp5W22qbOfdtm9wkdy6PvLMaXps/eiAtrjkWkjPcE4Wgfq4pAmHEWsLJFNskMmIynimyUjcCKgxLLDsxIVm/7YfCB7qnXCXtjQFS+MG3mJsn9MxnQWDhTQFEmW9oYRQGRjZBWpovMlDqGjHVegh5gKvXajs6D3025HhjO0etNn54ps9ahGOfx9iYwfoaCdDSwg7pSenjXsFAJAHMKBDIKES0ww/9OAGbroAPbn75ZQJbJTZ/2HzfNN9YsQ/p6SxS3Hlse4bxAY4+ADRznPA9rkHUN6dJ/CLlna/JKve2dW4EhkFsylNBemDxzCnhfhzoZTrb4KaH3EutGixopURkAyQrm1Lu1Z+qVtnn9/+zGh/qtn9sGRFdHRj3Sb9DIIR9Lo3gO76Nq+gzVLwQFwTQRB1JopMhqta97zp1ekG7hW8O5A4ZanV2aNOPhoszXoHAn4drFQQQKANKjbywuYPuH9ZVFg/7a9mur3e3Id8RQX4cXJz41sTTuXXxKPIoaM3gn/YR/M98asq97b1/d2x3/B8k9N3E67sAEAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAJAAAAAC/FoutAAADKklEQVRYCc2YW4hNYRiGx3FyaJxPMUYOOZWSUBgjE8odk3AhXChR5E5qTG5QUmhScoFxNXKIckiZUk4hlJBcGJPzIeVYzOB5prWy7TFr9p7Zs9d+69nrX+v7//97117/+tbaOy8vx9UhBX/j6VMG82AYDIFv8AKuwQmogV+QqMnsLAXHFUIBvAbHXYaTcBtarXGMvAC/U+AufUpAeRLVkMq4W/SbCWlrIyN+gkk+wkFYCCOhG/SDqVABtWA/v8Hd8DbY/8x2DxTDAMiHIiiFvfASHCeV0AlS0k56hQn30+7bwigTl0MDhAnP0R4KUfJEt4LLxXFnwGORWkPUzj9geWTPpkHXWz1UQeem4WaPTCfyDsx7qNleBCZAeDbLojpGxOYTS/lSJcwzkfYX0OTKhOP/NE8FHVxvcWgFSTX4Bppcas/ARf4V+kNcukpiTW5KNrArCOxLDmR530qhwYfJee8FgdnJgSzvu34ta5osDHNbRsLL2zU8GOP2OLk1uEoPHcHK7yPvCVhe4tb9wECRWw0ODA5Yi3JBPonUID802MMG8g7OBVkPVU8/NPjKBvItJRcU+mj0pcHngauWnp3ZMu89oRp9adDK/RN07ltK3JoUGKhLNHKaHW/tDYkHY2iPIKclz3XYuAbZNmoRnxq0YMepbSTXx5FkE1044KU2uDo5mKX9UeTxJVcP/32i+T5n0E6jIZvy/fE6mL8qKvHRoNMdtn2iOmY4VhnkrWXbK2ruAoKPwTNxPfpboj1lFTkA5vsOs6BFWW4egIMeQViXaGZUrvvwivkUK01ndl9avcya9OYpgUxqMJNdAef/BMWQtnoz4iI4iYV8M3hJ2qq5TBD+5KyjPaUtE2poO1g8NXoJWvtI9E7dAQ3gXDWQsTW+gMn828KJP8ASSEdj6XwTHF8P5ZCJq8E0f+V741kwibjAI0sCcbUOvAkc8xRmQLtqLbOHCZ/RntNMNqvBeQhP6DBty1hWNIYsN8Dkrk9/FeZDKJ/t78G42zLIulz0FeAdrhF/Ki6G6mDfY36DfpOxahrZLegaCvF1aT3kjLy8W0Bjx2A45KS6Z9rVH+dMzG9PPT/rAAAAAElFTkSuQmCC"},null)])}),K={book:"_book_1xtvx_1",back:"_back_1xtvx_11",bookHide:"_bookHide_1xtvx_16",wrap:"_wrap_1xtvx_36",wrapItem:"_wrapItem_1xtvx_53",item:"_item_1xtvx_60",des:"_des_1xtvx_69",icon:"_icon_1xtvx_74",last:"_last_1xtvx_79"},Q=i({name:"courseware-detail",emits:["close"],setup(e,{emit:t}){const n=l({box:{},show:!1,steps:[{ele:"",eleRect:{},img:L("courseware-detail1.png"),handStyle:{top:"-0.4rem",left:"0.98rem",transform:"rotate(-90deg)"},boxStyle:{borderRadius:"0.1rem"},imgStyle:{top:"-1.3rem",left:"2.2rem"},btnsStyle:{top:"1.5rem",left:"3.5rem"}}],step:0}),a=c(!1),i=c({}),m=function(){var e=o((function*(){try{const t=yield I({guideTag:"guideInfo"});var e;if(t.data)i.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else i.value={};i.value&&i.value.coursewareDetail?a.value=!1:a.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();m();const v=()=>{console.log(`coursewareDetail-${n.step}`);const e=document.getElementById(`coursewareDetail-${n.step}`);if(e){const t=e.getBoundingClientRect();n.box={left:t.x+"px",top:t.y+"px",width:t.width+"px",height:t.height+"px"}}else b()};u((()=>{v(),window.addEventListener("resize",y)}));const y=()=>{v()};d((()=>{window.removeEventListener("resize",y)}));const b=()=>{n.step>=2?x():(n.step=n.step+1,v())},x=function(){var e=o((function*(){i.value?i.value.coursewareDetail=!0:i.value={coursewareDetail:!0};try{yield z({guideTag:"guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}a.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>s(p,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",B.guidePopup],show:a.value,"onUpdate:show":e=>a.value=e},{default:()=>[s("div",{class:B.content,onClick:()=>b()},[n.step!=n.steps.length-1&&s("div",{class:B.backBtn,onClick:e=>{e.stopPropagation(),x()}},[f("跳过")]),s("div",{class:B.box,style:r(r({},n.box),n.steps[n.step].boxStyle),id:`modeType-${n.step}`},[n.steps.map(((e,t)=>{var r,a;return s("div",{onClick:e=>e.stopPropagation(),class:B.item,style:{display:t===n.step?"":"none",left:`${null===(r=e.eleRect)||void 0===r?void 0:r.left}px`,top:`${null===(a=e.eleRect)||void 0===a?void 0:a.top}px`}},[s("img",{class:B.img,style:e.imgStyle,src:e.img},null),s("img",{class:B.iconHead,style:e.handStyle,src:L("indexDot.png")},null),s("div",{class:B.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(h,null,[s(g,{class:[B.btn,B.endBtn],round:!0,type:"primary",onClick:()=>x()},{default:()=>[f("完成")]})]):s(g,{class:B.btn,round:!0,type:"primary",onClick:()=>b()},{default:()=>[f("下一步 ("),n.step+1,f("/"),n.steps.length,f(")")]})])])}))])])]})}}),Y=i({name:"the-book",props:{bookData:{type:Object,default:()=>({})},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){var n,r,a,i;m(),console.log(v.user.data.phone);const d="lastTime"+(null!==(n=null===(r=v)||void 0===r||null===(a=r.user)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.phone)&&void 0!==n?n:""),p=l({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem(d)}),g=c(!1),A=function(){var e=o((function*(){console.log("初始化完成")}));return function(){return e.apply(this,arguments)}}();let k=null,T=null;const C=()=>{clearTimeout(T);const e=document.querySelector(".bookWrap");k.turn("page",1),e&&(e.style.transform=p.transform),t("close"),setTimeout((()=>{e.style.transition="",e.style.transform="",p.show=!1,p.list=[]}),1e3)};u(o((function*(){yield A(),y("webViewOnResume",(()=>{p.lastTime=localStorage.getItem(d)}))})));b((()=>e.show),(()=>{e.show&&((()=>{var t;if(null===(t=e.bookData)||void 0===t||!t.lessonList)return;const n=Math.floor((.8*document.body.clientHeight-40)/50);console.log("🚀 ~ step:",n);const r=[];let a=[];for(let i=0;i<e.bookData.lessonList.length;i++){const t=e.bookData.lessonList[i];a.length>=n?(r.push([...a]),a=[{name:t.name}]):a.push({name:t.name});for(let e=0;e<t.knowledgeList.length;e++)a.length>=n?(r.push([...a]),a=[t.knowledgeList[e]]):a.push(t.knowledgeList[e])}a.length&&r.push(a),p.list=r})(),x((()=>{(()=>{k=window.$("#flipbook");const e=.8*document.body.clientHeight;p.height=e,p.width=e*(210/297)*2,k.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:p.width,height:p.height,gradients:!0})})(),requestAnimationFrame((()=>{(()=>{const t=document.querySelector(".bookWrap");if(t){const n=t.getBoundingClientRect(),r=e.rect.width/(n.width/2),a=e.rect.height/n.height,i=`scale3d(${r}, ${a}, 1) translate(${(n.width/2*(r-1)/2+e.rect.x-n.x-n.width/4)/r}px, ${(n.height*(a-1)/2+e.rect.y-n.y)/a}px)`;t.style.transform=p.transform=i,t.style.transition="transform 0s",x((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.style.transition="transform 1s",t.style.transform="",p.show=!0,T=setTimeout((()=>{k.turn("page",2),setTimeout((()=>{g.value=!0}),1500)}),500)}))}))}))}})()}))})))}));return()=>s("div",{class:[K.book,p.show?"":K.bookHide]},[s("div",{class:K.back,onClick:C},[s("img",{src:U},null)]),s("div",{class:"bookWrap",style:{width:p.width+"px"}},[!!p.list.length&&s("div",{id:"flipbook",class:[p.show&&"animated"]},[s("div",{class:"page"},[s("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),p.list.map((t=>s("div",{class:"page"},[s("div",{class:K.wrap},[s("div",{class:K.wrapItem},[t.map(((t,n)=>s(h,null,[s("div",{class:[K.item,t.id&&K.des],onTouchstart:e=>{e.stopPropagation()},onClick:n=>{n.stopPropagation(),(t=>{if(t.id){if(!t.containMaterial)return void w("暂无资源");localStorage.setItem(d,t.id);const n=O.stringify({id:t.id,lessonCoursewareId:t.lessonCoursewareId,lessonCoursewareDetailId:t.lessonCoursewareDetailId,name:t.name,tab:e.tab}),r=location.origin+location.pathname+"#/courseware-play?"+n;console.log("🚀 ~ url:",r),_({api:"openWebView",content:{url:r,orientation:0,isHideTitle:!1,c_orientation:0}})}})(t)}},[t.id?s("img",{id:1==n?"coursewareDetail-0":"",class:K.icon,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAFDElEQVRYCcWZy24cRRSGT3XPxbHj+MIlwXLCJkJKkLJmzSICicfIhi0Pwg55k9dASF6AxAOwQAIhgRRkQpwQRMaZxjOeme7i/8+pmqtlVwMzLqlVl66u+uo/p0731DiZS/6s+754eYTmhyL+DsrX57r892obQzon0nkmUlUF5jnCoIcizcfujXd+mJ4AvSx571tyVnyO2qfifRbbl5K3NwCIKU5eiJSDyRTOVagcyM7+Z845vaGAAe4rgH046b3EUuuaSNYQOX0l0oeAC8l9Lbv7HxPSlKJyq4IjTFkaUgtKnpsg1KuntKa44HPfL92sMyAwnJoZefGXyODvmbtaobl940GmG2LZPrcwvZ/43saOSKO10MMEGz6iibFbryCNsAfKke3mzbdN0UWMh873X3eXEkoWJzu/pYkNk2PDMJVDmPtUhPAV/dQVzvdeQ+8rTjlMTDMzNs6lgD7XmlTFukZ9XEPx1UA8Vu0rlGG2CkpU2KllWUnlR8i9lJWXUVXJta1bcuOt27MzMBbyypsWfhgjA2w64M9firz8EdIT6gwvAEzqGlJlTSmlgXLTymgrxcoVy2zHpX2Rd4tiETDi0sS8plIiINT67Vu8kezJyuU6KQHsAgQgWfaA8Ch7vWftpfYnLPr4RTNO8SwUEwHDcxjbS6Yg40mpngAYbwYqWY3LOYC4kLgIgybkN0/gBhjpvd1cbm/Zu2KBLDSkA3oPVUy5aC6aNyrH3ANyUg/3CA0ohScs6s8LvnKxWF/+j4CAU6WQm/kAS7W0DhiFoGoRCPcIHKAM3u4HcZKyZAVpLvoXFYgKTnKCEsZAI5T2jSaP9/F8nXSxA0yNZGAThQyIZm2JW9sOgKauKQ3goGD0TbZzoXVS8nI4me5QNRkmUvM2ZOv+R9Lc2pM+Pj47v/8kvdPClEY/6xNVxe6Gz3KMGA1SQNMBaVoqgJybw8ydS7Z2Q+dZ296TW7hOOy/kz+MnMuz1gsnNT6m4PV9PwXQTB3PpBlFQbgKoIbNxbX37pty594G8uXcXiyDUrG+qginShT7JCkaTTmKbmXmObzx13myrv9mOByh8T1Vcjg+6MDjVMBNz09Cn5hXswwf/eP5UOt3uJCbyGaqpeT0TJyvICUwNvnttNzIOjgZ9yVvrctYr5OXxr9I5OVHTR19lHtWPz49lTijUADQwew/bjib08S/fSWN9Wwp8BNiHQVBZfS/ERy0HUCyqTkoHxMDxy8XMFXwKn1T9AuZE+Bj72XRflmlaQsIlqGidlNxbgy4m01eWmtvim4Yb1OMrzlwhqm1QsQ9dgs/XScm9LVzQfAYWYxpNHu9FECo53r1UEFf0Qy6gTkruHb9UxmCMi/wwBTBhDCCYE/W4EDUv6hGept5slfiSEXn3kk8tLiQZUFWCD2l4oYr0qRjbUGbIYZuBTvwxgkUX4InCJ3eT3w/4+kxMa7v7AAgbI4AZ1JRqhOSlChps3DhqZlUyWRMlq/2rzuPnYIWdWyIv8SMo/hjiacYQZsMt5E6GVYYfSZkMcA418DnacuQNubnh5N7O7O+OizSqDXjRYMu4l+Fdet7x0jLmqj8m2OCD7qj+k6t6wh1xkxyuarp/Mc/hFR2/JaDy+M3Jg8y1N3kmfJDwyKq7HJBNP4dXfgR82VIdjoDb1ydHwHpgjQYc2HyBy35VXzbIMu6rWcEQ4DjF7A8KNKzkb4jpxWmY00hyCJrHweXGPf4B6HyHtp8LqjYAAAAASUVORK5CYII="},null):null,s("div",{class:K.name,style:{lineHeight:"20Px"}},[t.name,p.lastTime===t.id&&s("span",{class:K.last},[f("上次观看")])])])])))])])]))),p.list.length%2==1&&s("div",{class:"page",style:{pointerEvents:"none"}},[s("div",{class:K.wrap},[s("div",{class:K.wrapItem},null)])])])]),g.value?s(Q,null,null):null])}}),Z=i({name:"courseware-list",emits:["close"],setup(e,{emit:t}){const n=l({box:{},show:!1,steps:[{ele:"",eleRect:{},img:L("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:L("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:L("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:L("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}),a=c(!1),i=c({}),m=function(){var e=o((function*(){try{const t=yield I({guideTag:"guideInfo"});var e;if(t.data)i.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else i.value={};i.value&&i.value.courseware?a.value=!1:a.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();m();const v=()=>{const e=document.getElementById(`courseware-${n.step}`);if(e){var t,r,a,i;const o=e.getBoundingClientRect(),s=(null===(t=n.steps[n.step].eleRectPadding)||void 0===t?void 0:t.left)||0,l=(null===(r=n.steps[n.step].eleRectPadding)||void 0===r?void 0:r.top)||0,c=(null===(a=n.steps[n.step].eleRectPadding)||void 0===a?void 0:a.width)||0,u=(null===(i=n.steps[n.step].eleRectPadding)||void 0===i?void 0:i.height)||0;n.box={left:o.x-s+"px",top:o.y-l+"px",width:o.width+c+"px",height:o.height+u+"px"}}else b()};u((()=>{v(),window.addEventListener("resize",y)}));const y=()=>{v()};d((()=>{window.removeEventListener("resize",y)}));const b=()=>{n.step>=3?x():(n.step=n.step+1,v())},x=function(){var e=o((function*(){i.value?i.value.courseware=!0:i.value={courseware:!0};try{yield z({guideTag:"guideInfo",guideValue:JSON.stringify(i.value)})}catch(e){console.log(e)}a.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>s(p,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",B.guidePopup],show:a.value,"onUpdate:show":e=>a.value=e},{default:()=>[s("div",{class:B.content,onClick:()=>b()},[n.step!=n.steps.length-1&&s("div",{class:B.backBtn,onClick:e=>{e.stopPropagation(),x()}},[f("跳过")]),s("div",{class:B.box,style:r(r({},n.box),n.steps[n.step].boxStyle),id:`modeType-${n.step}`},[n.steps.map(((e,t)=>{var r,a;return s("div",{onClick:e=>e.stopPropagation(),class:B.item,style:{display:t===n.step?"":"none",left:`${null===(r=e.eleRect)||void 0===r?void 0:r.left}px`,top:`${null===(a=e.eleRect)||void 0===a?void 0:a.top}px`}},[s("img",{class:B.img,style:e.imgStyle,src:e.img},null),s("img",{class:B.iconHead,style:e.handStyle,src:L("indexDot.png")},null),s("div",{class:B.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(h,null,[s(g,{class:[B.btn],round:!0,type:"primary",onClick:()=>x()},{default:()=>[f("完成")]}),s(g,{class:[B.btn,B.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{n.step=0,v()}},{default:()=>[f("再看一遍")]})]):s(g,{class:B.btn,round:!0,type:"primary",onClick:()=>b()},{default:()=>[f("下一步 ("),n.step+1,f("/"),n.steps.length,f(")")]})])])}))])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */!function(e,t){function n(e){return E.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function r(e){if(!dt[e]){var t=S.body,n=E("<"+e+">").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(st||((st=S.createElement("iframe")).frameBorder=st.width=st.height=0),t.appendChild(st),lt&&st.createElement||((lt=(st.contentWindow||st.contentDocument).document).write(("CSS1Compat"===S.compatMode?"<!doctype html>":"")+"<html><body>"),lt.close()),n=lt.createElement(e),lt.body.appendChild(n),r=E.css(n,"display"),t.removeChild(st)),dt[e]=r}return dt[e]}function a(e,t){var n={};return E.each(ht.concat.apply([],ht.slice(0,t)),(function(){n[this]=e})),n}function i(){ut=t}function o(){return setTimeout(i,0),ut=E.now()}function s(){try{return new e.XMLHttpRequest}catch(t){}}function l(e,t,n,r){if(E.isArray(t))E.each(t,(function(t,a){n||ze.test(e)?r(e,a):l(e+"["+("object"==typeof a||E.isArray(a)?t:"")+"]",a,n,r)}));else if(n||null==t||"object"!=typeof t)r(e,t);else for(var a in t)l(e+"["+a+"]",t[a],n,r)}function c(e,n){var r,a,i=E.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((i[r]?e:a||(a={}))[r]=n[r]);a&&E.extend(!0,e,a)}function u(e,n,r,a,i,o){(o=o||{})[i=i||n.dataTypes[0]]=!0;for(var s,l=e[i],c=0,d=l?l.length:0,p=e===$e;c<d&&(p||!s);c++)"string"==typeof(s=l[c](n,r,a))&&(!p||o[s]?s=t:(n.dataTypes.unshift(s),s=u(e,n,r,a,s,o)));return(p||!s)&&!o["*"]&&(s=u(e,n,r,a,"*",o)),s}function d(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),E.isFunction(n))for(var r,a,i=t.toLowerCase().split(Qe),o=0,s=i.length;o<s;o++)r=i[o],(a=/^\+/.test(r))&&(r=r.substr(1)||"*"),(e[r]=e[r]||[])[a?"unshift":"push"](n)}}function p(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,a="width"===t?De:Oe;return r>0?("border"!==n&&E.each(a,(function(){n||(r-=parseFloat(E.css(e,"padding"+this))||0),"margin"===n?r+=parseFloat(E.css(e,n+this))||0:r-=parseFloat(E.css(e,"border"+this+"Width"))||0})),r+"px"):(((r=ke(e,t,t))<0||null==r)&&(r=e.style[t]||0),r=parseFloat(r)||0,n&&E.each(a,(function(){r+=parseFloat(E.css(e,"padding"+this))||0,"padding"!==n&&(r+=parseFloat(E.css(e,"border"+this+"Width"))||0),"margin"===n&&(r+=parseFloat(E.css(e,n+this))||0)})),r+"px")}function f(e,t){t.src?E.ajax({url:t.src,async:!1,dataType:"script"}):E.globalEval((t.text||t.textContent||t.innerHTML||"").replace(we,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}function h(e){var t=(e.nodeName||"").toLowerCase();"input"===t?g(e):"script"!==t&&void 0!==e.getElementsByTagName&&E.grep(e.getElementsByTagName("input"),g)}function g(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function m(e){return void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):void 0!==e.querySelectorAll?e.querySelectorAll("*"):[]}function v(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),"object"===(n=t.nodeName.toLowerCase())?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(E.expando))}function y(e,t){if(1===t.nodeType&&E.hasData(e)){var n,r,a,i=E._data(e),o=E._data(t,i),s=i.events;if(s)for(n in delete o.handle,o.events={},s)for(r=0,a=s[n].length;r<a;r++)E.event.add(t,n+(s[n][r].namespace?".":"")+s[n][r].namespace,s[n][r],s[n][r].data);o.data&&(o.data=E.extend({},o.data))}}function b(e,t){return E.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function x(e){var t=ce.split(" "),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function w(e,t,n){if(t=t||0,E.isFunction(t))return E.grep(e,(function(e,r){return!!t.call(e,r,e)===n}));if(t.nodeType)return E.grep(e,(function(e,r){return e===t===n}));if("string"==typeof t){var r=E.grep(e,(function(e){return 1===e.nodeType}));if(ie.test(t))return E.filter(t,r,!n);t=E.filter(t,r)}return E.grep(e,(function(e,r){return E.inArray(e,t)>=0===n}))}function _(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function A(){return!0}function k(){return!1}function T(e,t,n){var r=t+"defer",a=t+"queue",i=t+"mark",o=E._data(e,r);o&&("queue"===n||!E._data(e,a))&&("mark"===n||!E._data(e,i))&&setTimeout((function(){!E._data(e,a)&&!E._data(e,i)&&(E.removeData(e,r,!0),o.fire())}),0)}function C(e){for(var t in e)if(("data"!==t||!E.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function N(e,n,r){if(r===t&&1===e.nodeType){var a="data-"+n.replace(O,"-$1").toLowerCase();if("string"==typeof(r=e.getAttribute(a))){try{r="true"===r||"false"!==r&&("null"===r?null:E.isNumeric(r)?parseFloat(r):D.test(r)?E.parseJSON(r):r)}catch(j){}E.data(e,n,r)}else r=t}return r}var S=e.document,P=e.navigator,M=e.location,E=function(){function n(){if(!s.isReady){try{S.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var r,a,i,o,s=function(e,t){return new s.fn.init(e,t,r)},l=e.jQuery,c=e.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/\S/,p=/^\s+/,f=/\s+$/,h=/\d/,g=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,v=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,b=/(?:^|:|,)(?:\s*\[)+/g,x=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,_=/(msie) ([\w.]+)/,A=/(mozilla)(?:.*? rv:([\w.]+))?/,k=/-([a-z]|[0-9])/gi,T=/^-ms-/,C=function(e,t){return(t+"").toUpperCase()},N=P.userAgent,M=Object.prototype.toString,E=Object.prototype.hasOwnProperty,j=Array.prototype.push,F=Array.prototype.slice,D=String.prototype.trim,O=Array.prototype.indexOf,L={};return s.fn=s.prototype={constructor:s,init:function(e,n,r){var a,i,o,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&S.body)return this.context=S,this[0]=S.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((a="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?u.exec(e):[null,e,null])&&(a[1]||!n)){if(a[1])return l=(n=n instanceof s?n[0]:n)?n.ownerDocument||n:S,(o=g.exec(e))?s.isPlainObject(n)?(e=[S.createElement(o[1])],s.fn.attr.call(e,n,!0)):e=[l.createElement(o[1])]:e=((o=s.buildFragment([a[1]],[l])).cacheable?s.clone(o.fragment):o.fragment).childNodes,s.merge(this,e);if((i=S.getElementById(a[2]))&&i.parentNode){if(i.id!==a[2])return r.find(e);this.length=1,this[0]=i}return this.context=S,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return s.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return s.isArray(e)?j.apply(r,e):s.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),i.add(e),this},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,r,a,i,o,l=arguments[0]||{},c=1,u=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},c=2),"object"!=typeof l&&!s.isFunction(l)&&(l={}),u===c&&(l=this,--c);c<u;c++)if(null!=(e=arguments[c]))for(n in e)r=l[n],l!==(a=e[n])&&(d&&a&&(s.isPlainObject(a)||(i=s.isArray(a)))?(i?(i=!1,o=r&&s.isArray(r)?r:[]):o=r&&s.isPlainObject(r)?r:{},l[n]=s.extend(d,o,a)):a!==t&&(l[n]=a));return l},s.extend({noConflict:function(t){return e.$===s&&(e.$=c),t&&e.jQuery===s&&(e.jQuery=l),s},isReady:!1,readyWait:1,holdReady:function(e){e?s.readyWait++:s.ready(!0)},ready:function(e){if(!0===e&&!--s.readyWait||!0!==e&&!s.isReady){if(!S.body)return setTimeout(s.ready,1);if(s.isReady=!0,!0!==e&&--s.readyWait>0)return;i.fireWith(S,[s]),s.fn.trigger&&s(S).trigger("ready").unbind("ready")}},bindReady:function(){if(!i){if(i=s.Callbacks("once memory"),"complete"===S.readyState)return setTimeout(s.ready,1);if(S.addEventListener)S.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",s.ready,!1);else if(S.attachEvent){S.attachEvent("onreadystatechange",o),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(P){}S.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return e&&"object"==typeof e&&"setInterval"in e},isNumeric:function(e){return null!=e&&h.test(e)&&!isNaN(e)},type:function(e){return null==e?String(e):L[M.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!E.call(e,"constructor")&&!E.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(S){return!1}var n;for(n in e);return n===t||E.call(e,n)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw e},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):m.test(t.replace(v,"@").replace(y,"]").replace(b,""))?new Function("return "+t)():void s.error("Invalid JSON: "+t)):null},parseXML:function(n){var r;try{e.DOMParser?r=(new DOMParser).parseFromString(n,"text/xml"):((r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n))}catch(c){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&d.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(T,"ms-").replace(k,C)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var a,i=0,o=e.length,l=o===t||s.isFunction(e);if(r)if(l){for(a in e)if(!1===n.apply(e[a],r))break}else for(;i<o&&!1!==n.apply(e[i++],r););else if(l){for(a in e)if(!1===n.call(e[a],a,e[a]))break}else for(;i<o&&!1!==n.call(e[i],i,e[i++]););return e},trim:D?function(e){return null==e?"":D.call(e)}:function(e){return null==e?"":(e+"").replace(p,"").replace(f,"")},makeArray:function(e,t){var n=t||[];if(null!=e){var r=s.type(e);null==e.length||"string"===r||"function"===r||"regexp"===r||s.isWindow(e)?j.call(n,e):s.merge(n,e)}return n},inArray:function(e,t,n){var r;if(t){if(O)return O.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=e.length,a=0;if("number"==typeof n.length)for(var i=n.length;a<i;a++)e[r++]=n[a];else for(;n[a]!==t;)e[r++]=n[a++];return e.length=r,e},grep:function(e,t,n){var r=[];n=!!n;for(var a=0,i=e.length;a<i;a++)n!==!!t(e[a],a)&&r.push(e[a]);return r},map:function(e,n,r){var a,i,o=[],l=0,c=e.length;if(e instanceof s||c!==t&&"number"==typeof c&&(c>0&&e[0]&&e[c-1]||0===c||s.isArray(e)))for(;l<c;l++)null!=(a=n(e[l],l,r))&&(o[o.length]=a);else for(i in e)null!=(a=n(e[i],i,r))&&(o[o.length]=a);return o.concat.apply([],o)},guid:1,proxy:function(e,n){if("string"==typeof n){var r=e[n];n=e,e=r}if(!s.isFunction(e))return t;var a=F.call(arguments,2),i=function(){return e.apply(n,a.concat(F.call(arguments)))};return i.guid=e.guid=e.guid||i.guid||s.guid++,i},access:function(e,n,r,a,i,o){var l=e.length;if("object"==typeof n){for(var c in n)s.access(e,c,n[c],a,i,r);return e}if(r!==t){a=!o&&a&&s.isFunction(r);for(var u=0;u<l;u++)i(e[u],n,a?r.call(e[u],u,i(e[u],n)):r,o);return e}return l?i(e[0],n):t},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=x.exec(e)||w.exec(e)||_.exec(e)||e.indexOf("compatible")<0&&A.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}s.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,r){return r&&r instanceof s&&!(r instanceof e)&&(r=e(r)),s.fn.init.call(this,n,r,t)},e.fn.init.prototype=e.fn;var t=e(S);return e},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(e,t){L["[object "+t+"]"]=t.toLowerCase()})),(a=s.uaMatch(N)).browser&&(s.browser[a.browser]=!0,s.browser.version=a.version),s.browser.webkit&&(s.browser.safari=!0),d.test(" ")&&(p=/^[\s\xA0]+/,f=/[\s\xA0]+$/),r=s(S),S.addEventListener?o=function(){S.removeEventListener("DOMContentLoaded",o,!1),s.ready()}:S.attachEvent&&(o=function(){"complete"===S.readyState&&(S.detachEvent("onreadystatechange",o),s.ready())}),"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return s})),s}(),j={};E.Callbacks=function(e){e=e?j[e]||function(e){var t,n,r=j[e]={};for(t=0,n=(e=e.split(/\s+/)).length;t<n;t++)r[e[t]]=!0;return r}(e):{};var n,r,a,i,o,s=[],l=[],c=function(t){var n,r,a,i;for(n=0,r=t.length;n<r;n++)a=t[n],"array"===(i=E.type(a))?c(a):"function"===i&&(!e.unique||!d.has(a))&&s.push(a)},u=function(t,c){for(c=c||[],n=!e.memory||[t,c],r=!0,o=a||0,a=0,i=s.length;s&&o<i;o++)if(!1===s[o].apply(t,c)&&e.stopOnFalse){n=!0;break}r=!1,s&&(e.once?!0===n?d.disable():s=[]:l&&l.length&&(n=l.shift(),d.fireWith(n[0],n[1])))},d={add:function(){if(s){var e=s.length;c(arguments),r?i=s.length:n&&!0!==n&&(a=e,u(n[0],n[1]))}return this},remove:function(){if(s)for(var t=arguments,n=0,a=t.length;n<a;n++)for(var l=0;l<s.length&&(t[n]!==s[l]||(r&&l<=i&&(i--,l<=o&&o--),s.splice(l--,1),!e.unique));l++);return this},has:function(e){if(s)for(var t=0,n=s.length;t<n;t++)if(e===s[t])return!0;return!1},empty:function(){return s=[],this},disable:function(){return s=l=n=t,this},disabled:function(){return!s},lock:function(){return l=t,(!n||!0===n)&&d.disable(),this},locked:function(){return!l},fireWith:function(t,a){return l&&(r?e.once||l.push([t,a]):(!e.once||!n)&&u(t,a)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d};var F=[].slice;E.extend({Deferred:function(e){var t,n=E.Callbacks("once memory"),r=E.Callbacks("once memory"),a=E.Callbacks("memory"),i="pending",o={resolve:n,reject:r,notify:a},s={done:n.add,fail:r.add,progress:a.add,state:function(){return i},isResolved:n.fired,isRejected:r.fired,then:function(e,t,n){return l.done(e).fail(t).progress(n),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments)},pipe:function(e,t,n){return E.Deferred((function(r){E.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},(function(e,t){var n,a=t[0],i=t[1];E.isFunction(a)?l[e]((function(){(n=a.apply(this,arguments))&&E.isFunction(n.promise)?n.promise().then(r.resolve,r.reject,r.notify):r[i+"With"](this===l?r:this,[n])})):l[e](r[i])}))})).promise()},promise:function(e){if(null==e)e=s;else for(var t in s)e[t]=s[t];return e}},l=s.promise({});for(t in o)l[t]=o[t].fire,l[t+"With"]=o[t].fireWith;return l.done((function(){i="resolved"}),r.disable,a.lock).fail((function(){i="rejected"}),n.disable,a.lock),e&&e.call(l,l),l},when:function(e){function t(e){return function(t){o[e]=arguments.length>1?F.call(arguments,0):t,l.notifyWith(c,o)}}function n(e){return function(t){r[e]=arguments.length>1?F.call(arguments,0):t,--s||l.resolveWith(l,r)}}var r=F.call(arguments,0),a=0,i=r.length,o=Array(i),s=i,l=i<=1&&e&&E.isFunction(e.promise)?e:E.Deferred(),c=l.promise();if(i>1){for(;a<i;a++)r[a]&&r[a].promise&&E.isFunction(r[a].promise)?r[a].promise().then(n(a),l.reject,t(a)):--s;s||l.resolveWith(l,r)}else l!==e&&l.resolveWith(l,i?[e]:[]);return c}}),E.support=function(){var e,t,n,r,a,i,o,s,l,c,u,d,p,f,h,g,m=S.createElement("div"),v=S.documentElement;if(m.setAttribute("className","t"),m.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>",e=m.getElementsByTagName("*"),t=m.getElementsByTagName("a")[0],!e||!e.length||!t)return{};r=(n=S.createElement("select")).appendChild(S.createElement("option")),a=m.getElementsByTagName("input")[0],o={leadingWhitespace:3===m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.55/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,unknownElems:!!m.getElementsByTagName("nav").length,checkOn:"on"===a.value,optSelected:r.selected,getSetAttribute:"t"!==m.className,enctype:!!S.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},a.checked=!0,o.noCloneChecked=a.cloneNode(!0).checked,n.disabled=!0,o.optDisabled=!r.disabled;try{delete m.test}catch(U){o.deleteExpando=!1}for(h in!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",(function(){o.noCloneEvent=!1})),m.cloneNode(!0).fireEvent("onclick")),(a=S.createElement("input")).value="t",a.setAttribute("type","radio"),o.radioValue="t"===a.value,a.setAttribute("checked","checked"),m.appendChild(a),(s=S.createDocumentFragment()).appendChild(m.lastChild),o.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="",m.style.width=m.style.paddingLeft="1px",l=S.getElementsByTagName("body")[0],u=S.createElement(l?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},l&&E.extend(d,{position:"absolute",left:"-999px",top:"-999px"}),d)u.style[h]=d[h];if(u.appendChild(m),(c=l||v).insertBefore(u,c.firstChild),o.appendChecked=a.checked,o.boxModel=2===m.offsetWidth,"zoom"in m.style&&(m.style.display="inline",m.style.zoom=1,o.inlineBlockNeedsLayout=2===m.offsetWidth,m.style.display="",m.innerHTML="<div style='width:4px;'></div>",o.shrinkWrapBlocks=2!==m.offsetWidth),m.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",g=0===(p=m.getElementsByTagName("td"))[0].offsetHeight,p[0].style.display="",p[1].style.display="none",o.reliableHiddenOffsets=g&&0===p[0].offsetHeight,m.innerHTML="",S.defaultView&&S.defaultView.getComputedStyle&&((i=S.createElement("div")).style.width="0",i.style.marginRight="0",m.appendChild(i),o.reliableMarginRight=0===(parseInt((S.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)),m.attachEvent)for(h in{submit:1,change:1,focusin:1})(g=(f="on"+h)in m)||(m.setAttribute(f,"return;"),g="function"==typeof m[f]),o[h+"Bubbles"]=g;return E((function(){var e,t,n,r,a,i="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",s="visibility:hidden;border:0;",c="style='"+i+"border:5px solid #000;padding:0;'",d="<div "+c+"><div></div></div><table "+c+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";!(l=S.getElementsByTagName("body")[0])||((e=S.createElement("div")).style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(e,l.firstChild),(u=S.createElement("div")).style.cssText=i+s,u.innerHTML=d,e.appendChild(u),n=(t=u.firstChild).firstChild,r=t.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===r.offsetTop},n.style.position="fixed",n.style.top="20px",a.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",t.style.overflow="hidden",t.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,a.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,l.removeChild(e),u=e=null,E.extend(o,a))})),u.innerHTML="",c.removeChild(u),u=s=n=r=l=i=m=a=null,o}(),E.boxModel=E.support.boxModel;var D=/^(?:\{.*\}|\[.*\])$/,O=/([A-Z])/g;E.extend({cache:{},uuid:0,expando:"jQuery"+(E.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?E.cache[e[E.expando]]:e[E.expando])&&!C(e)},data:function(e,n,r,a){if(E.acceptData(e)){var i,o,s;E.expando;var l="string"==typeof n,c=e.nodeType,u=c?E.cache:e,d=c?e[E.expando]:e[E.expando]&&E.expando,p="events"===n;if((!d||!u[d]||!p&&!a&&!u[d].data)&&l&&r===t)return;return d||(c?e[E.expando]=d=++E.uuid:d=E.expando),u[d]||(u[d]={},c||(u[d].toJSON=E.noop)),"object"!=typeof n&&"function"!=typeof n||(a?u[d]=E.extend(u[d],n):u[d].data=E.extend(u[d].data,n)),i=o=u[d],a||(o.data||(o.data={}),o=o.data),r!==t&&(o[E.camelCase(n)]=r),p&&!o[n]?i.events:(l?null==(s=o[n])&&(s=o[E.camelCase(n)]):s=o,s)}},removeData:function(e,t,n){if(E.acceptData(e)){var r,a,i;E.expando;var o=e.nodeType,s=o?E.cache:e,l=o?e[E.expando]:E.expando;if(!s[l])return;if(t&&(r=n?s[l]:s[l].data)){E.isArray(t)||(t in r?t=[t]:t=(t=E.camelCase(t))in r?[t]:t.split(" "));for(a=0,i=t.length;a<i;a++)delete r[t[a]];if(!(n?C:E.isEmptyObject)(r))return}if(!n&&(delete s[l].data,!C(s[l])))return;E.support.deleteExpando||!s.setInterval?delete s[l]:s[l]=null,o&&(E.support.deleteExpando?delete e[E.expando]:e.removeAttribute?e.removeAttribute(E.expando):e[E.expando]=null)}},_data:function(e,t,n){return E.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=E.noData[e.nodeName.toLowerCase()];if(t)return!0!==t&&e.getAttribute("classid")===t}return!0}}),E.fn.extend({data:function(e,n){var r,a,i,o=null;if(void 0===e){if(this.length&&(o=E.data(this[0]),1===this[0].nodeType&&!E._data(this[0],"parsedAttrs"))){for(var s=0,l=(a=this[0].attributes).length;s<l;s++)0===(i=a[s].name).indexOf("data-")&&(i=E.camelCase(i.substring(5)),N(this[0],i,o[i]));E._data(this[0],"parsedAttrs",!0)}return o}return"object"==typeof e?this.each((function(){E.data(this,e)})):((r=e.split("."))[1]=r[1]?"."+r[1]:"",n===t?((o=this.triggerHandler("getData"+r[1]+"!",[r[0]]))===t&&this.length&&(o=E.data(this[0],e),o=N(this[0],e,o)),o===t&&r[1]?this.data(r[0]):o):this.each((function(){var t=E(this),a=[r[0],n];t.triggerHandler("setData"+r[1]+"!",a),E.data(this,e,n),t.triggerHandler("changeData"+r[1]+"!",a)})))},removeData:function(e){return this.each((function(){E.removeData(this,e)}))}}),E.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",E._data(e,t,(E._data(e,t)||0)+1))},_unmark:function(e,t,n){if(!0!==e&&(n=t,t=e,e=!1),t){var r=(n=n||"fx")+"mark",a=e?0:(E._data(t,r)||1)-1;a?E._data(t,r,a):(E.removeData(t,r,!0),T(t,n,"mark"))}},queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=E._data(e,t),n&&(!r||E.isArray(n)?r=E._data(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.shift(),a={};"inprogress"===r&&(r=n.shift()),r&&("fx"===t&&n.unshift("inprogress"),E._data(e,t+".run",a),r.call(e,(function(){E.dequeue(e,t)}),a)),n.length||(E.removeData(e,t+"queue "+t+".run",!0),T(e,t,"queue"))}}),E.fn.extend({queue:function(e,n){return"string"!=typeof e&&(n=e,e="fx"),n===t?E.queue(this[0],e):this.each((function(){var t=E.queue(this,e,n);"fx"===e&&"inprogress"!==t[0]&&E.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){E.dequeue(this,e)}))},delay:function(e,t){return e=E.fx&&E.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){function r(){--l||i.resolveWith(o,[o])}"string"!=typeof e&&(e=t),e=e||"fx";for(var a,i=E.Deferred(),o=this,s=o.length,l=1,c=e+"defer",u=e+"queue",d=e+"mark";s--;)(a=E.data(o[s],c,t,!0)||(E.data(o[s],u,t,!0)||E.data(o[s],d,t,!0))&&E.data(o[s],c,E.Callbacks("once memory"),!0))&&(l++,a.add(r));return r(),i.promise()}});var L,B,I,z=/[\n\t\r]/g,W=/\s+/,H=/\r/g,R=/^(?:button|input)$/i,q=/^(?:button|input|object|select|textarea)$/i,V=/^a(?:rea)?$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,U=E.support.getSetAttribute;E.fn.extend({attr:function(e,t){return E.access(this,e,t,!0,E.attr)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))},prop:function(e,t){return E.access(this,e,t,!0,E.prop)},removeProp:function(e){return e=E.propFix[e]||e,this.each((function(){try{this[e]=t,delete this[e]}catch(S){}}))},addClass:function(e){var t,n,r,a,i,o,s;if(E.isFunction(e))return this.each((function(t){E(this).addClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e)for(t=e.split(W),n=0,r=this.length;n<r;n++)if(1===(a=this[n]).nodeType)if(a.className||1!==t.length){for(i=" "+a.className+" ",o=0,s=t.length;o<s;o++)~i.indexOf(" "+t[o]+" ")||(i+=t[o]+" ");a.className=E.trim(i)}else a.className=e;return this},removeClass:function(e){var n,r,a,i,o,s,l;if(E.isFunction(e))return this.each((function(t){E(this).removeClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e||e===t)for(n=(e||"").split(W),r=0,a=this.length;r<a;r++)if(1===(i=this[r]).nodeType&&i.className)if(e){for(o=(" "+i.className+" ").replace(z," "),s=0,l=n.length;s<l;s++)o=o.replace(" "+n[s]+" "," ");i.className=E.trim(o)}else i.className="";return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return E.isFunction(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var a,i=0,o=E(this),s=t,l=e.split(W);a=l[i++];)s=r?s:!o.hasClass(a),o[s?"addClass":"removeClass"](a);else"undefined"!==n&&"boolean"!==n||(this.className&&E._data(this,"__className__",this.className),this.className=this.className||!1===e?"":E._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(z," ").indexOf(t)>-1)return!0;return!1},val:function(e){var n,r,a,i=this[0];return arguments.length?(a=E.isFunction(e),this.each((function(r){var i,o=E(this);1===this.nodeType&&(null==(i=a?e.call(this,r,o.val()):e)?i="":"number"==typeof i?i+="":E.isArray(i)&&(i=E.map(i,(function(e){return null==e?"":e+""}))),(n=E.valHooks[this.nodeName.toLowerCase()]||E.valHooks[this.type])&&"set"in n&&n.set(this,i,"value")!==t||(this.value=i))}))):i?(n=E.valHooks[i.nodeName.toLowerCase()]||E.valHooks[i.type])&&"get"in n&&(r=n.get(i,"value"))!==t?r:"string"==typeof(r=i.value)?r.replace(H,""):null==r?"":r:t}}),E.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,a,i=e.selectedIndex,o=[],s=e.options,l="select-one"===e.type;if(i<0)return null;for(n=l?i:0,r=l?i+1:s.length;n<r;n++)if((a=s[n]).selected&&(E.support.optDisabled?!a.disabled:null===a.getAttribute("disabled"))&&(!a.parentNode.disabled||!E.nodeName(a.parentNode,"optgroup"))){if(t=E(a).val(),l)return t;o.push(t)}return l&&!o.length&&s.length?E(s[i]).val():o},set:function(e,t){var n=E.makeArray(t);return E(e).find("option").each((function(){this.selected=E.inArray(E(this).val(),n)>=0})),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,a){var i,o,s,l=e.nodeType;return e&&3!==l&&8!==l&&2!==l?a&&n in E.attrFn?E(e)[n](r):"getAttribute"in e?((s=1!==l||!E.isXMLDoc(e))&&(n=n.toLowerCase(),o=E.attrHooks[n]||(X.test(n)?B:L)),r!==t?null===r?(E.removeAttr(e,n),t):o&&"set"in o&&s&&(i=o.set(e,r,n))!==t?i:(e.setAttribute(n,""+r),r):o&&"get"in o&&s&&null!==(i=o.get(e,n))?i:null===(i=e.getAttribute(n))?t:i):E.prop(e,n,r):t},removeAttr:function(e,t){var n,r,a,i,o=0;if(1===e.nodeType)for(i=(r=(t||"").split(W)).length;o<i;o++)a=r[o].toLowerCase(),n=E.propFix[a]||a,E.attr(e,a,""),e.removeAttribute(U?a:n),X.test(a)&&n in e&&(e[n]=!1)},attrHooks:{type:{set:function(e,t){if(R.test(e.nodeName)&&e.parentNode)E.error("type property can't be changed");else if(!E.support.radioValue&&"radio"===t&&E.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return L&&E.nodeName(e,"button")?L.get(e,t):t in e?e.value:null},set:function(e,t,n){if(L&&E.nodeName(e,"button"))return L.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var a,i,o=e.nodeType;return e&&3!==o&&8!==o&&2!==o?((1!==o||!E.isXMLDoc(e))&&(n=E.propFix[n]||n,i=E.propHooks[n]),r!==t?i&&"set"in i&&(a=i.set(e,r,n))!==t?a:e[n]=r:i&&"get"in i&&null!==(a=i.get(e,n))?a:e[n]):t},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):q.test(e.nodeName)||V.test(e.nodeName)&&e.href?0:t}}}}),E.attrHooks.tabindex=E.propHooks.tabIndex,B={get:function(e,n){var r,a=E.prop(e,n);return!0===a||"boolean"!=typeof a&&(r=e.getAttributeNode(n))&&!1!==r.nodeValue?n.toLowerCase():t},set:function(e,t,n){var r;return!1===t?E.removeAttr(e,n):((r=E.propFix[n]||n)in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},U||(I={name:!0,id:!0},L=E.valHooks.button={get:function(e,n){var r;return(r=e.getAttributeNode(n))&&(I[n]?""!==r.nodeValue:r.specified)?r.nodeValue:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=S.createAttribute(n),e.setAttributeNode(r)),r.nodeValue=t+""}},E.attrHooks.tabindex.set=L.set,E.each(["width","height"],(function(e,t){E.attrHooks[t]=E.extend(E.attrHooks[t],{set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}})})),E.attrHooks.contenteditable={get:L.get,set:function(e,t,n){""===t&&(t="false"),L.set(e,t,n)}}),E.support.hrefNormalized||E.each(["href","src","width","height"],(function(e,n){E.attrHooks[n]=E.extend(E.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null===r?t:r}})})),E.support.style||(E.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=""+t}}),E.support.optSelected||(E.propHooks.selected=E.extend(E.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),E.support.enctype||(E.propFix.enctype="encoding"),E.support.checkOn||E.each(["radio","checkbox"],(function(){E.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}})),E.each(["radio","checkbox"],(function(){E.valHooks[this]=E.extend(E.valHooks[this],{set:function(e,t){if(E.isArray(t))return e.checked=E.inArray(E(e).val(),t)>=0}})}));var G=/^(?:textarea|input|select)$/i,K=/^([^\.]*)?(?:\.(.+))?$/,Q=/\bhover(\.\S+)?/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,J=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,$=function(e){var t=J.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},ee=function(e,t){return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||e.id===t[2])&&(!t[3]||t[3].test(e.className))},te=function(e){return E.event.special.hover?e:e.replace(Q,"mouseenter$1 mouseleave$1")};E.event={add:function(e,n,r,a,i){var o,s,l,c,u,d,p,f,h,g,m;if(3!==e.nodeType&&8!==e.nodeType&&n&&r&&(o=E._data(e))){for(r.handler&&(r=(h=r).handler),r.guid||(r.guid=E.guid++),(l=o.events)||(o.events=l={}),(s=o.handle)||(o.handle=s=function(e){return void 0===E||e&&E.event.triggered===e.type?t:E.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=te(n).split(" "),c=0;c<n.length;c++)d=(u=K.exec(n[c])||[])[1],p=(u[2]||"").split(".").sort(),m=E.event.special[d]||{},d=(i?m.delegateType:m.bindType)||d,m=E.event.special[d]||{},f=E.extend({type:d,origType:u[1],data:a,handler:r,guid:r.guid,selector:i,namespace:p.join(".")},h),i&&(f.quick=$(i),!f.quick&&E.expr.match.POS.test(i)&&(f.isPositional=!0)),(g=l[d])||((g=l[d]=[]).delegateCount=0,m.setup&&!1!==m.setup.call(e,a,p,s)||(e.addEventListener?e.addEventListener(d,s,!1):e.attachEvent&&e.attachEvent("on"+d,s))),m.add&&(m.add.call(e,f),f.handler.guid||(f.handler.guid=r.guid)),i?g.splice(g.delegateCount++,0,f):g.push(f),E.event.global[d]=!0;e=null}},global:{},remove:function(e,t,n,r){var a,i,o,s,l,c,u,d,p,f,h,g=E.hasData(e)&&E._data(e);if(g&&(u=g.events)){for(t=te(t||"").split(" "),a=0;a<t.length;a++){if(o=(i=K.exec(t[a])||[])[1],s=i[2],!o){for(c in s=s?"."+s:"",u)E.event.remove(e,c+s,n,r);return}if(d=E.event.special[o]||{},l=(f=u[o=(r?d.delegateType:d.bindType)||o]||[]).length,s=s?new RegExp("(^|\\.)"+s.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,n||s||r||d.remove)for(c=0;c<f.length;c++)h=f[c],n&&n.guid!==h.guid||s&&!s.test(h.namespace)||(!r||r===h.selector||"**"===r&&h.selector)&&(f.splice(c--,1),h.selector&&f.delegateCount--,d.remove&&d.remove.call(e,h));else f.length=0;0===f.length&&l!==f.length&&((!d.teardown||!1===d.teardown.call(e,s))&&E.removeEvent(e,o,g.handle),delete u[o])}E.isEmptyObject(u)&&((p=g.handle)&&(p.elem=null),E.removeData(e,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,a,i){if(!a||3!==a.nodeType&&8!==a.nodeType){var o,s,l,c,u,d,p,f,h,g,m=n.type||n,v=[];if(m.indexOf("!")>=0&&(m=m.slice(0,-1),s=!0),m.indexOf(".")>=0&&(v=m.split("."),m=v.shift(),v.sort()),(!a||E.event.customEvent[m])&&!E.event.global[m])return;if((n="object"==typeof n?n[E.expando]?n:new E.Event(m,n):new E.Event(m)).type=m,n.isTrigger=!0,n.exclusive=s,n.namespace=v.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=m.indexOf(":")<0?"on"+m:"",(i||!a)&&n.preventDefault(),!a){for(l in o=E.cache)o[l].events&&o[l].events[m]&&E.event.trigger(n,r,o[l].handle.elem,!0);return}if(n.result=t,n.target||(n.target=a),(r=null!=r?E.makeArray(r):[]).unshift(n),(p=E.event.special[m]||{}).trigger&&!1===p.trigger.apply(a,r))return;if(h=[[a,p.bindType||m]],!i&&!p.noBubble&&!E.isWindow(a)){for(g=p.delegateType||m,u=null,c=a.parentNode;c;c=c.parentNode)h.push([c,g]),u=c;u&&u===a.ownerDocument&&h.push([u.defaultView||u.parentWindow||e,g])}for(l=0;l<h.length&&(c=h[l][0],n.type=h[l][1],(f=(E._data(c,"events")||{})[n.type]&&E._data(c,"handle"))&&f.apply(c,r),(f=d&&c[d])&&E.acceptData(c)&&f.apply(c,r),!n.isPropagationStopped());l++);return n.type=m,n.isDefaultPrevented()||(!p._default||!1===p._default.apply(a.ownerDocument,r))&&("click"!==m||!E.nodeName(a,"a"))&&E.acceptData(a)&&d&&a[m]&&("focus"!==m&&"blur"!==m||0!==n.target.offsetWidth)&&!E.isWindow(a)&&((u=a[d])&&(a[d]=null),E.event.triggered=m,a[m](),E.event.triggered=t,u&&(a[d]=u)),n.result}},dispatch:function(n){n=E.event.fix(n||e.event);var r,a,i,o,s,l,c,u,d,p,f=(E._data(this,"events")||{})[n.type]||[],h=f.delegateCount,g=[].slice.call(arguments,0),m=!n.exclusive&&!n.namespace,v=(E.event.special[n.type]||{}).handle,y=[];if(g[0]=n,n.delegateTarget=this,h&&!n.target.disabled&&(!n.button||"click"!==n.type))for(i=n.target;i!=this;i=i.parentNode||this){for(s={},c=[],r=0;r<h;r++)p=s[d=(u=f[r]).selector],u.isPositional?p=(p||(s[d]=E(d))).index(i)>=0:p===t&&(p=s[d]=u.quick?ee(i,u.quick):E(i).is(d)),p&&c.push(u);c.length&&y.push({elem:i,matches:c})}for(f.length>h&&y.push({elem:this,matches:f.slice(h)}),r=0;r<y.length&&!n.isPropagationStopped();r++)for(l=y[r],n.currentTarget=l.elem,a=0;a<l.matches.length&&!n.isImmediatePropagationStopped();a++)u=l.matches[a],(m||!n.namespace&&!u.namespace||n.namespace_re&&n.namespace_re.test(u.namespace))&&(n.data=u.data,n.handleObj=u,(o=(v||u.handler).apply(l.elem,g))!==t&&(n.result=o,!1===o&&(n.preventDefault(),n.stopPropagation())));return n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(e,n){var r,a,i,o=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(a=(r=e.target.ownerDocument||S).documentElement,i=r.body,e.pageX=n.clientX+(a&&a.scrollLeft||i&&i.scrollLeft||0)-(a&&a.clientLeft||i&&i.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||i&&i.scrollTop||0)-(a&&a.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?n.toElement:s),!e.which&&o!==t&&(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[E.expando])return e;var n,r,a=e,i=E.event.fixHooks[e.type]||{},o=i.props?this.props.concat(i.props):this.props;for(e=E.Event(a),n=o.length;n;)e[r=o[--n]]=a[r];return e.target||(e.target=a.srcElement||S),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey===t&&(e.metaKey=e.ctrlKey),i.filter?i.filter(e,a):e},special:{ready:{setup:E.bindReady},focus:{delegateType:"focusin",noBubble:!0},blur:{delegateType:"focusout",noBubble:!0},beforeunload:{setup:function(e,t,n){E.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var a=E.extend(new E.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?E.event.trigger(a,null,t):E.event.dispatch.call(t,a),a.isDefaultPrevented()&&n.preventDefault()}},E.event.handle=E.event.dispatch,E.removeEvent=S.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent("on"+t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?A:k):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||E.now(),this[E.expando]=!0},E.Event.prototype={preventDefault:function(){this.isDefaultPrevented=A;var e=this.originalEvent;!e||(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=A;var e=this.originalEvent;!e||(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=A,this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k},E.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(e,t){E.event.special[e]=E.event.special[t]={delegateType:t,bindType:t,handle:function(e){var t,n,r=e.relatedTarget,a=e.handleObj;return a.selector,r&&a.origType!==e.type&&(r===this||E.contains(this,r))||(t=e.type,e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),E.support.submitBubbles||(E.event.special.submit={setup:function(){if(E.nodeName(this,"form"))return!1;E.event.add(this,"click._submit keypress._submit",(function(e){var n=e.target,r=E.nodeName(n,"input")||E.nodeName(n,"button")?n.form:t;r&&!r._submit_attached&&(E.event.add(r,"submit._submit",(function(e){this.parentNode&&E.event.simulate("submit",this.parentNode,e,!0)})),r._submit_attached=!0)}))},teardown:function(){if(E.nodeName(this,"form"))return!1;E.event.remove(this,"._submit")}}),E.support.changeBubbles||(E.event.special.change={setup:function(){if(G.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(E.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)})),E.event.add(this,"click._change",(function(e){this._just_changed&&(this._just_changed=!1,E.event.simulate("change",this,e,!0))}))),!1;E.event.add(this,"beforeactivate._change",(function(e){var t=e.target;G.test(t.nodeName)&&!t._change_attached&&(E.event.add(t,"change._change",(function(e){this.parentNode&&!e.isSimulated&&E.event.simulate("change",this.parentNode,e,!0)})),t._change_attached=!0)}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return E.event.remove(this,"._change"),G.test(this.nodeName)}}),E.support.focusinBubbles||E.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=0,r=function(e){E.event.simulate(t,e.target,E.event.fix(e),!0)};E.event.special[t]={setup:function(){0==n++&&S.addEventListener(e,r,!0)},teardown:function(){0==--n&&S.removeEventListener(e,r,!0)}}})),E.fn.extend({on:function(e,n,r,a,i){var o,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=n,n=t),e)this.on(s,n,r,e[s],i);return this}if(null==r&&null==a?(a=n,r=n=t):null==a&&("string"==typeof n?(a=r,r=t):(a=r,r=n,n=t)),!1===a)a=k;else if(!a)return this;return 1===i&&(o=a,a=function(e){return E().off(e),o.apply(this,arguments)},a.guid=o.guid||(o.guid=E.guid++)),this.each((function(){E.event.add(this,e,a,r,n)}))},one:function(e,t,n,r){return this.on.call(this,e,t,n,r,1)},off:function(e,n,r){if(e&&e.preventDefault&&e.handleObj){var a=e.handleObj;return E(e.delegateTarget).off(a.namespace?a.type+"."+a.namespace:a.type,a.selector,a.handler),this}if("object"==typeof e){for(var i in e)this.off(i,n,e[i]);return this}return!1!==n&&"function"!=typeof n||(r=n,n=t),!1===r&&(r=k),this.each((function(){E.event.remove(this,e,r,n)}))},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return E(this.context).on(e,this.selector,t,n),this},die:function(e,t){return E(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1==arguments.length?this.off(e,"**"):this.off(t,e,n)},trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){if(this[0])return E.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||E.guid++,r=0,a=function(n){var a=(E._data(this,"lastToggle"+e.guid)||0)%r;return E._data(this,"lastToggle"+e.guid,a+1),n.preventDefault(),t[a].apply(this,arguments)||!1};for(a.guid=n;r<t.length;)t[r++].guid=n;return this.click(a)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){E.fn[t]=function(e,n){return null==n&&(n=e,e=null),arguments.length>0?this.bind(t,e,n):this.trigger(t)},E.attrFn&&(E.attrFn[t]=!0),Y.test(t)&&(E.event.fixHooks[t]=E.event.keyHooks),Z.test(t)&&(E.event.fixHooks[t]=E.event.mouseHooks)})),function(){function e(e,t,n,r,i,o){for(var s=0,l=r.length;s<l;s++){var c=r[s];if(c){var u=!1;for(c=c[e];c;){if(c[a]===n){u=r[c.sizset];break}if(1===c.nodeType)if(o||(c[a]=n,c.sizset=s),"string"!=typeof t){if(c===t){u=!0;break}}else if(p.filter(t,[c]).length>0){u=c;break}c=c[e]}r[s]=u}}}function n(e,t,n,r,i,o){for(var s=0,l=r.length;s<l;s++){var c=r[s];if(c){var u=!1;for(c=c[e];c;){if(c[a]===n){u=r[c.sizset];break}if(1===c.nodeType&&!o&&(c[a]=n,c.sizset=s),c.nodeName.toLowerCase()===t){u=c;break}c=c[e]}r[s]=u}}}var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,a="sizcache"+(Math.random()+"").replace(".",""),i=0,o=Object.prototype.toString,s=!1,l=!0,c=/\\/g,u=/\r\n/g,d=/\W/;[0,0].sort((function(){return l=!1,0}));var p=function(e,t,n,a){n=n||[];var i=t=t||S;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,c,u,d,f,m,v,y=!0,b=p.isXML(t),_=[],A=e;do{if(r.exec(""),(s=r.exec(A))&&(A=s[3],_.push(s[1]),s[2])){u=s[3];break}}while(s);if(_.length>1&&g.exec(e))if(2===_.length&&h.relative[_[0]])l=w(_[0]+_[1],t,a);else for(l=h.relative[_[0]]?[t]:p(_.shift(),t);_.length;)e=_.shift(),h.relative[e]&&(e+=_.shift()),l=w(e,l,a);else if(!a&&_.length>1&&9===t.nodeType&&!b&&h.match.ID.test(_[0])&&!h.match.ID.test(_[_.length-1])&&(t=(d=p.find(_.shift(),t,b)).expr?p.filter(d.expr,d.set)[0]:d.set[0]),t)for(l=(d=a?{expr:_.pop(),set:x(a)}:p.find(_.pop(),1!==_.length||"~"!==_[0]&&"+"!==_[0]||!t.parentNode?t:t.parentNode,b)).expr?p.filter(d.expr,d.set):d.set,_.length>0?c=x(l):y=!1;_.length;)m=f=_.pop(),h.relative[f]?m=_.pop():f="",null==m&&(m=t),h.relative[f](c,m,b);else c=_=[];if(c||(c=l),c||p.error(f||e),"[object Array]"===o.call(c))if(y)if(t&&1===t.nodeType)for(v=0;null!=c[v];v++)c[v]&&(!0===c[v]||1===c[v].nodeType&&p.contains(t,c[v]))&&n.push(l[v]);else for(v=0;null!=c[v];v++)c[v]&&1===c[v].nodeType&&n.push(l[v]);else n.push.apply(n,c);else x(c,n);return u&&(p(u,i,n,a),p.uniqueSort(n)),n};p.uniqueSort=function(e){if(y&&(s=l,e.sort(y),s))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},p.matches=function(e,t){return p(e,null,null,t)},p.matchesSelector=function(e,t){return p(t,null,null,[e]).length>0},p.find=function(e,t,n){var r,a,i,o,s,l;if(!e)return[];for(a=0,i=h.order.length;a<i;a++)if(s=h.order[a],(o=h.leftMatch[s].exec(e))&&(l=o[1],o.splice(1,1),"\\"!==l.substr(l.length-1)&&(o[1]=(o[1]||"").replace(c,""),null!=(r=h.find[s](o,t,n))))){e=e.replace(h.match[s],"");break}return r||(r=void 0!==t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:r,expr:e}},p.filter=function(e,n,r,a){for(var i,o,s,l,c,u,d,f,g,m=e,v=[],y=n,b=n&&n[0]&&p.isXML(n[0]);e&&n.length;){for(s in h.filter)if(null!=(i=h.leftMatch[s].exec(e))&&i[2]){if(u=h.filter[s],d=i[1],o=!1,i.splice(1,1),"\\"===d.substr(d.length-1))continue;if(y===v&&(v=[]),h.preFilter[s])if(i=h.preFilter[s](i,y,r,v,a,b)){if(!0===i)continue}else o=l=!0;if(i)for(f=0;null!=(c=y[f]);f++)c&&(g=a^(l=u(c,i,f,y)),r&&null!=l?g?o=!0:y[f]=!1:g&&(v.push(c),o=!0));if(l!==t){if(r||(y=v),e=e.replace(h.match[s],""),!o)return[];break}}if(e===m){if(null!=o)break;p.error(e)}m=e}return y},p.error=function(e){throw"Syntax error, unrecognized expression: "+e};var f=p.getText=function(e){var t,n,r=e.nodeType,a="";if(r){if(1===r){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(u,"");for(e=e.firstChild;e;e=e.nextSibling)a+=f(e)}else if(3===r||4===r)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(a+=f(n));return a},h=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var n="string"==typeof t,r=n&&!d.test(t),a=n&&!r;r&&(t=t.toLowerCase());for(var i,o=0,s=e.length;o<s;o++)if(i=e[o]){for(;(i=i.previousSibling)&&1!==i.nodeType;);e[o]=a||i&&i.nodeName.toLowerCase()===t?i||!1:i===t}a&&p.filter(t,e,!0)},">":function(e,t){var n,r="string"==typeof t,a=0,i=e.length;if(r&&!d.test(t)){for(t=t.toLowerCase();a<i;a++)if(n=e[a]){var o=n.parentNode;e[a]=o.nodeName.toLowerCase()===t&&o}}else{for(;a<i;a++)(n=e[a])&&(e[a]=r?n.parentNode:n.parentNode===t);r&&p.filter(t,e,!0)}},"":function(t,r,a){var o,s=i++,l=e;"string"==typeof r&&!d.test(r)&&(o=r=r.toLowerCase(),l=n),l("parentNode",r,s,t,o,a)},"~":function(t,r,a){var o,s=i++,l=e;"string"==typeof r&&!d.test(r)&&(o=r=r.toLowerCase(),l=n),l("previousSibling",r,s,t,o,a)}},find:{ID:function(e,t,n){if(void 0!==t.getElementById&&!n){var r=t.getElementById(e[1]);return r&&r.parentNode?[r]:[]}},NAME:function(e,t){if(void 0!==t.getElementsByName){for(var n=[],r=t.getElementsByName(e[1]),a=0,i=r.length;a<i;a++)r[a].getAttribute("name")===e[1]&&n.push(r[a]);return 0===n.length?null:n}},TAG:function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,r,a,i){if(e=" "+e[1].replace(c,"")+" ",i)return e;for(var o,s=0;null!=(o=t[s]);s++)o&&(a^(o.className&&(" "+o.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?n||r.push(o):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(c,"")},TAG:function(e,t){return e[1].replace(c,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||p.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===e[2]?"2n":"odd"===e[2]&&"2n+1")||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&p.error(e[0]);return e[0]=i++,e},ATTR:function(e,t,n,r,a,i){var o=e[1]=e[1].replace(c,"");return!i&&h.attrMap[o]&&(e[1]=h.attrMap[o]),e[4]=(e[4]||e[5]||"").replace(c,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,a,i){if("not"===e[1]){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var o=p.filter(e[3],t,n,!0^i);return n||a.push.apply(a,o),!1}e[3]=p(e[3],null,null,t)}else if(h.match.POS.test(e[0])||h.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!p(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var a=t[1],i=h.filters[a];if(i)return i(e,n,t,r);if("contains"===a)return(e.textContent||e.innerText||f([e])||"").indexOf(t[3])>=0;if("not"===a){for(var o=t[3],s=0,l=o.length;s<l;s++)if(o[s]===e)return!1;return!0}p.error(a)},CHILD:function(e,t){var n,r,i,o,s,l,c=t[1],u=e;switch(c){case"only":case"first":for(;u=u.previousSibling;)if(1===u.nodeType)return!1;if("first"===c)return!0;u=e;case"last":for(;u=u.nextSibling;)if(1===u.nodeType)return!1;return!0;case"nth":if(n=t[2],r=t[3],1===n&&0===r)return!0;if(i=t[0],(o=e.parentNode)&&(o[a]!==i||!e.nodeIndex)){for(s=0,u=o.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++s);o[a]=i}return l=e.nodeIndex-r,0===n?0===l:l%n==0&&l/n>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=p.attr?p.attr(e,n):h.attrHandle[n]?h.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),a=r+"",i=t[2],o=t[4];return null==r?"!="===i:!i&&p.attr?null!=r:"="===i?a===o:"*="===i?a.indexOf(o)>=0:"~="===i?(" "+a+" ").indexOf(o)>=0:o?"!="===i?a!==o:"^="===i?0===a.indexOf(o):"$="===i?a.substr(a.length-o.length)===o:"|="===i&&(a===o||a.substr(0,o.length+1)===o+"-"):a&&!1!==r},POS:function(e,t,n,r){var a=t[2],i=h.setFilters[a];if(i)return i(e,n,t,r)}}},g=h.match.POS,m=function(e,t){return"\\"+(t-0+1)};for(var v in h.match)h.match[v]=new RegExp(h.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),h.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[v].source.replace(/\\(\d+)/g,m));var y,b,x=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(S.documentElement.childNodes,0)[0].nodeType}catch(V){x=function(e,t){var n=0,r=t||[];if("[object Array]"===o.call(e))Array.prototype.push.apply(r,e);else if("number"==typeof e.length)for(var a=e.length;n<a;n++)r.push(e[n]);else for(;e[n];n++)r.push(e[n]);return r}}S.documentElement.compareDocumentPosition?y=function(e,t){return e===t?(s=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(y=function(e,t){if(e===t)return s=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,a=[],i=[],o=e.parentNode,l=t.parentNode,c=o;if(o===l)return b(e,t);if(!o)return-1;if(!l)return 1;for(;c;)a.unshift(c),c=c.parentNode;for(c=l;c;)i.unshift(c),c=c.parentNode;n=a.length,r=i.length;for(var u=0;u<n&&u<r;u++)if(a[u]!==i[u])return b(a[u],i[u]);return u===n?b(e,i[u],-1):b(a[u],t,1)},b=function(e,t,n){if(e===t)return n;for(var r=e.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var e=S.createElement("div"),n="script"+(new Date).getTime(),r=S.documentElement;e.innerHTML="<a name='"+n+"'/>",r.insertBefore(e,r.firstChild),S.getElementById(n)&&(h.find.ID=function(e,n,r){if(void 0!==n.getElementById&&!r){var a=n.getElementById(e[1]);return a?a.id===e[1]||void 0!==a.getAttributeNode&&a.getAttributeNode("id").nodeValue===e[1]?[a]:t:[]}},h.filter.ID=function(e,t){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),r.removeChild(e),r=e=null}(),function(){var e=S.createElement("div");e.appendChild(S.createComment("")),e.getElementsByTagName("*").length>0&&(h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var r=[],a=0;n[a];a++)1===n[a].nodeType&&r.push(n[a]);n=r}return n}),e.innerHTML="<a href='#'></a>",e.firstChild&&void 0!==e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(h.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),S.querySelectorAll&&function(){var e=p,t=S.createElement("div");if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){for(var n in p=function(t,n,r,a){if(n=n||S,!a&&!p.isXML(n)){var i=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(i&&(1===n.nodeType||9===n.nodeType)){if(i[1])return x(n.getElementsByTagName(t),r);if(i[2]&&h.find.CLASS&&n.getElementsByClassName)return x(n.getElementsByClassName(i[2]),r)}if(9===n.nodeType){if("body"===t&&n.body)return x([n.body],r);if(i&&i[3]){var o=n.getElementById(i[3]);if(!o||!o.parentNode)return x([],r);if(o.id===i[3])return x([o],r)}try{return x(n.querySelectorAll(t),r)}catch(c){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var s=n,l=n.getAttribute("id"),u=l||"__sizzle__",d=n.parentNode,f=/^\s*[+~]/.test(t);l?u=u.replace(/'/g,"\\$&"):n.setAttribute("id",u),f&&d&&(n=n.parentNode);try{if(!f||d)return x(n.querySelectorAll("[id='"+u+"'] "+t),r)}catch(v){}finally{l||s.removeAttribute("id")}}}return e(t,n,r,a)},e)p[n]=e[n];t=null}}(),function(){var e=S.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(S.createElement("div"),"div"),r=!1;try{t.call(S.documentElement,"[test!='']:sizzle")}catch(E){r=!0}p.matchesSelector=function(e,a){if(a=a.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!p.isXML(e))try{if(r||!h.match.PSEUDO.test(a)&&!/!=/.test(a)){var i=t.call(e,a);if(i||!n||e.document&&11!==e.document.nodeType)return i}}catch(o){}return p(a,null,null,[e]).length>0}}}(),function(){var e=S.createElement("div");if(e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length){if(e.lastChild.className="e",1===e.getElementsByClassName("e").length)return;h.order.splice(1,0,"CLASS"),h.find.CLASS=function(e,t,n){if(void 0!==t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},e=null}}(),S.documentElement.contains?p.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:S.documentElement.compareDocumentPosition?p.contains=function(e,t){return!!(16&e.compareDocumentPosition(t))}:p.contains=function(){return!1},p.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName};var w=function(e,t,n){for(var r,a=[],i="",o=t.nodeType?[t]:t;r=h.match.PSEUDO.exec(e);)i+=r[0],e=e.replace(h.match.PSEUDO,"");e=h.relative[e]?e+"*":e;for(var s=0,l=o.length;s<l;s++)p(e,o[s],a,n);return p.filter(i,a)};p.attr=E.attr,p.selectors.attrMap={},E.find=p,E.expr=p.selectors,E.expr[":"]=E.expr.filters,E.unique=p.uniqueSort,E.text=p.getText,E.isXMLDoc=p.isXML,E.contains=p.contains}();var ne=/Until$/,re=/^(?:parents|prevUntil|prevAll)/,ae=/,/,ie=/^.[^:#\[\.,]*$/,oe=Array.prototype.slice,se=E.expr.match.POS,le={children:!0,contents:!0,next:!0,prev:!0};E.fn.extend({find:function(e){var t,n,r=this;if("string"!=typeof e)return E(e).filter((function(){for(t=0,n=r.length;t<n;t++)if(E.contains(r[t],this))return!0}));var a,i,o,s=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++)if(a=s.length,E.find(e,this[t],s),t>0)for(i=a;i<s.length;i++)for(o=0;o<a;o++)if(s[o]===s[i]){s.splice(i--,1);break}return s},has:function(e){var t=E(e);return this.filter((function(){for(var e=0,n=t.length;e<n;e++)if(E.contains(this,t[e]))return!0}))},not:function(e){return this.pushStack(w(this,e,!1),"not",e)},filter:function(e){return this.pushStack(w(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?se.test(e)?E(e,this.context).index(this[0])>=0:E.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r,a=[],i=this[0];if(E.isArray(e)){for(var o=1;i&&i.ownerDocument&&i!==t;){for(n=0;n<e.length;n++)E(i).is(e[n])&&a.push({selector:e[n],elem:i,level:o});i=i.parentNode,o++}return a}var s=se.test(e)||"string"!=typeof e?E(e,t||this.context):0;for(n=0,r=this.length;n<r;n++)for(i=this[n];i;){if(s?s.index(i)>-1:E.find.matchesSelector(i,e)){a.push(i);break}if(!(i=i.parentNode)||!i.ownerDocument||i===t||11===i.nodeType)break}return a=a.length>1?E.unique(a):a,this.pushStack(a,"closest",e)},index:function(e){return e?"string"==typeof e?E.inArray(this[0],E(e)):E.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?E(e,t):E.makeArray(e&&e.nodeType?[e]:e),r=E.merge(this.get(),n);return this.pushStack(_(n[0])||_(r[0])?r:E.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E.dir(e,"parentNode")},parentsUntil:function(e,t,n){return E.dir(e,"parentNode",n)},next:function(e){return E.nth(e,2,"nextSibling")},prev:function(e){return E.nth(e,2,"previousSibling")},nextAll:function(e){return E.dir(e,"nextSibling")},prevAll:function(e){return E.dir(e,"previousSibling")},nextUntil:function(e,t,n){return E.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return E.dir(e,"previousSibling",n)},siblings:function(e){return E.sibling(e.parentNode.firstChild,e)},children:function(e){return E.sibling(e.firstChild)},contents:function(e){return E.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:E.makeArray(e.childNodes)}},(function(e,t){E.fn[e]=function(n,r){var a=E.map(this,t,n),i=oe.call(arguments);return ne.test(e)||(r=n),r&&"string"==typeof r&&(a=E.filter(r,a)),a=this.length>1&&!le[e]?E.unique(a):a,(this.length>1||ae.test(r))&&re.test(e)&&(a=a.reverse()),this.pushStack(a,e,i.join(","))}})),E.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?E.find.matchesSelector(t[0],e)?[t[0]]:[]:E.find.matches(e,t)},dir:function(e,n,r){for(var a=[],i=e[n];i&&9!==i.nodeType&&(r===t||1!==i.nodeType||!E(i).is(r));)1===i.nodeType&&a.push(i),i=i[n];return a},nth:function(e,t,n,r){t=t||1;for(var a=0;e&&(1!==e.nodeType||++a!==t);e=e[n]);return e},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var ce="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",ue=/ jQuery\d+="(?:\d+|null)"/g,de=/^\s+/,pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,fe=/<([\w:]+)/,he=/<tbody/i,ge=/<|&#?\w+;/,me=/<(?:script|style)/i,ve=/<(?:script|object|embed|option|style)/i,ye=new RegExp("<(?:"+ce.replace(" ","|")+")","i"),be=/checked\s*(?:[^=]|=\s*.checked.)/i,xe=/\/(java|ecma)script/i,we=/^\s*<!(?:\[CDATA\[|\-\-)/,_e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ae=x(S);_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td,E.support.htmlSerialize||(_e._default=[1,"div<div>","</div>"]),E.fn.extend({text:function(e){return E.isFunction(e)?this.each((function(t){var n=E(this);n.text(e.call(this,t,n.text()))})):"object"!=typeof e&&e!==t?this.empty().append((this[0]&&this[0].ownerDocument||S).createTextNode(e)):E.text(this)},wrapAll:function(e){if(E.isFunction(e))return this.each((function(t){E(this).wrapAll(e.call(this,t))}));if(this[0]){var t=E(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return E.isFunction(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){return this.each((function(){E(this).wrapAll(e)}))},unwrap:function(){return this.parent().each((function(){E.nodeName(this,"body")||E(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.appendChild(e)}))},prepend:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)}))},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this)}));if(arguments.length){var e=E(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(e){this.parentNode.insertBefore(e,this.nextSibling)}));if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,E(arguments[0]).toArray()),e}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)e&&!E.filter(e,[n]).length||(!t&&1===n.nodeType&&(E.cleanData(n.getElementsByTagName("*")),E.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&E.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){if(e===t)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(ue,""):null;if("string"!=typeof e||me.test(e)||!E.support.leadingWhitespace&&de.test(e)||_e[(fe.exec(e)||["",""])[1].toLowerCase()])E.isFunction(e)?this.each((function(t){var n=E(this);n.html(e.call(this,t,n.html()))})):this.empty().append(e);else{e=e.replace(pe,"<$1></$2>");try{for(var n=0,r=this.length;n<r;n++)1===this[n].nodeType&&(E.cleanData(this[n].getElementsByTagName("*")),this[n].innerHTML=e)}catch(M){this.empty().append(e)}}return this},replaceWith:function(e){return this[0]&&this[0].parentNode?E.isFunction(e)?this.each((function(t){var n=E(this),r=n.html();n.replaceWith(e.call(this,t,r))})):("string"!=typeof e&&(e=E(e).detach()),this.each((function(){var t=this.nextSibling,n=this.parentNode;E(this).remove(),t?E(t).before(e):E(n).append(e)}))):this.length?this.pushStack(E(E.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){var a,i,o,s,l=e[0],c=[];if(!E.support.checkClone&&3===arguments.length&&"string"==typeof l&&be.test(l))return this.each((function(){E(this).domManip(e,n,r,!0)}));if(E.isFunction(l))return this.each((function(a){var i=E(this);e[0]=l.call(this,a,n?i.html():t),i.domManip(e,n,r)}));if(this[0]){if(s=l&&l.parentNode,i=1===(o=(a=E.support.parentNode&&s&&11===s.nodeType&&s.childNodes.length===this.length?{fragment:s}:E.buildFragment(e,this,c)).fragment).childNodes.length?o=o.firstChild:o.firstChild){n=n&&E.nodeName(i,"tr");for(var u=0,d=this.length,p=d-1;u<d;u++)r.call(n?b(this[u]):this[u],a.cacheable||d>1&&u<p?E.clone(o,!0,!0):o)}c.length&&E.each(c,f)}return this}}),E.buildFragment=function(e,t,n){var r,a,i,o,s=e[0];return t&&t[0]&&(o=t[0].ownerDocument||t[0]),o.createDocumentFragment||(o=S),1===e.length&&"string"==typeof s&&s.length<512&&o===S&&"<"===s.charAt(0)&&!ve.test(s)&&(E.support.checkClone||!be.test(s))&&!E.support.unknownElems&&ye.test(s)&&(a=!0,(i=E.fragments[s])&&1!==i&&(r=i)),r||(r=o.createDocumentFragment(),E.clean(e,o,r,n)),a&&(E.fragments[s]=i?r:1),{fragment:r,cacheable:a}},E.fragments={},E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){E.fn[e]=function(n){var r=[],a=E(n),i=1===this.length&&this[0].parentNode;if(i&&11===i.nodeType&&1===i.childNodes.length&&1===a.length)return a[t](this[0]),this;for(var o=0,s=a.length;o<s;o++){var l=(o>0?this.clone(!0):this).get();E(a[o])[t](l),r=r.concat(l)}return this.pushStack(r,e,a.selector)}})),E.extend({clone:function(e,t,n){var r,a,i,o=e.cloneNode(!0);if(!(E.support.noCloneEvent&&E.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(v(e,o),r=m(e),a=m(o),i=0;r[i];++i)a[i]&&v(r[i],a[i]);if(t&&(y(e,o),n))for(r=m(e),a=m(o),i=0;r[i];++i)y(r[i],a[i]);return r=a=null,o},clean:function(e,t,n,r){var a;void 0===(t=t||S).createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||S);for(var i,o,s=[],l=0;null!=(o=e[l]);l++)if("number"==typeof o&&(o+=""),o){if("string"==typeof o)if(ge.test(o)){o=o.replace(pe,"<$1></$2>");var c=(fe.exec(o)||["",""])[1].toLowerCase(),u=_e[c]||_e._default,d=u[0],p=t.createElement("div");for(t===S?Ae.appendChild(p):x(t).appendChild(p),p.innerHTML=u[1]+o+u[2];d--;)p=p.lastChild;if(!E.support.tbody){var f=he.test(o),g="table"!==c||f?"<table>"!==u[1]||f?[]:p.childNodes:p.firstChild&&p.firstChild.childNodes;for(i=g.length-1;i>=0;--i)E.nodeName(g[i],"tbody")&&!g[i].childNodes.length&&g[i].parentNode.removeChild(g[i])}!E.support.leadingWhitespace&&de.test(o)&&p.insertBefore(t.createTextNode(de.exec(o)[0]),p.firstChild),o=p.childNodes}else o=t.createTextNode(o);var m;if(!E.support.appendChecked)if(o[0]&&"number"==typeof(m=o.length))for(i=0;i<m;i++)h(o[i]);else h(o);o.nodeType?s.push(o):s=E.merge(s,o)}if(n)for(a=function(e){return!e.type||xe.test(e.type)},l=0;s[l];l++)if(!r||!E.nodeName(s[l],"script")||s[l].type&&"text/javascript"!==s[l].type.toLowerCase()){if(1===s[l].nodeType){var v=E.grep(s[l].getElementsByTagName("script"),a);s.splice.apply(s,[l+1,0].concat(v))}n.appendChild(s[l])}else r.push(s[l].parentNode?s[l].parentNode.removeChild(s[l]):s[l]);return s},cleanData:function(e){for(var t,n,r,a=E.cache,i=E.event.special,o=E.support.deleteExpando,s=0;null!=(r=e[s]);s++)if((!r.nodeName||!E.noData[r.nodeName.toLowerCase()])&&(n=r[E.expando])){if((t=a[n])&&t.events){for(var l in t.events)i[l]?E.event.remove(r,l):E.removeEvent(r,l,t.handle);t.handle&&(t.handle.elem=null)}o?delete r[E.expando]:r.removeAttribute&&r.removeAttribute(E.expando),delete a[n]}}});var ke,Te,Ce,Ne=/alpha\([^)]*\)/i,Se=/opacity=([^)]*)/,Pe=/([A-Z]|^ms)/g,Me=/^-?\d+(?:px)?$/i,Ee=/^-?\d/,je=/^([\-+])=([\-+.\de]+)/,Fe={position:"absolute",visibility:"hidden",display:"block"},De=["Left","Right"],Oe=["Top","Bottom"];E.fn.css=function(e,n){return 2===arguments.length&&n===t?this:E.access(this,e,n,!0,(function(e,n,r){return r!==t?E.style(e,n,r):E.css(e,n)}))},E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ke(e,"opacity","opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:E.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,a){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s=E.camelCase(n),l=e.style,c=E.cssHooks[s];if(n=E.cssProps[s]||s,r===t)return c&&"get"in c&&(i=c.get(e,!1,a))!==t?i:l[n];if("string"===(o=typeof r)&&(i=je.exec(r))&&(r=+(i[1]+1)*+i[2]+parseFloat(E.css(e,n)),o="number"),null==r||"number"===o&&isNaN(r))return;if("number"===o&&!E.cssNumber[s]&&(r+="px"),!c||!("set"in c)||(r=c.set(e,r))!==t)try{l[n]=r}catch(N){}}},css:function(e,n,r){var a,i;return n=E.camelCase(n),i=E.cssHooks[n],"cssFloat"===(n=E.cssProps[n]||n)&&(n="float"),i&&"get"in i&&(a=i.get(e,!0,r))!==t?a:ke?ke(e,n):void 0},swap:function(e,t,n){var r={};for(var a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in n.call(e),t)e.style[a]=r[a]}}),E.curCSS=E.css,E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,r){var a;if(n)return 0!==e.offsetWidth?p(e,t,r):(E.swap(e,Fe,(function(){a=p(e,t,r)})),a)},set:function(e,t){return Me.test(t)?(t=parseFloat(t))>=0?t+"px":void 0:t}}})),E.support.opacity||(E.cssHooks.opacity={get:function(e,t){return Se.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,a=E.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===E.trim(i.replace(Ne,""))&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=Ne.test(i)?i.replace(Ne,a):i+" "+a)}}),E((function(){E.support.reliableMarginRight||(E.cssHooks.marginRight={get:function(e,t){var n;return E.swap(e,{display:"inline-block"},(function(){n=t?ke(e,"margin-right","marginRight"):e.style.marginRight})),n}})})),S.defaultView&&S.defaultView.getComputedStyle&&(Te=function(e,n){var r,a,i;return n=n.replace(Pe,"-$1").toLowerCase(),(a=e.ownerDocument.defaultView)?((i=a.getComputedStyle(e,null))&&(""===(r=i.getPropertyValue(n))&&!E.contains(e.ownerDocument.documentElement,e)&&(r=E.style(e,n))),r):t}),S.documentElement.currentStyle&&(Ce=function(e,t){var n,r,a,i=e.currentStyle&&e.currentStyle[t],o=e.style;return null===i&&o&&(a=o[t])&&(i=a),!Me.test(i)&&Ee.test(i)&&(n=o.left,(r=e.runtimeStyle&&e.runtimeStyle.left)&&(e.runtimeStyle.left=e.currentStyle.left),o.left="fontSize"===t?"1em":i||0,i=o.pixelLeft+"px",o.left=n,r&&(e.runtimeStyle.left=r)),""===i?"auto":i}),ke=Te||Ce,E.expr&&E.expr.filters&&(E.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!E.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||E.css(e,"display"))},E.expr.filters.visible=function(e){return!E.expr.filters.hidden(e)});var Le,Be,Ie=/%20/g,ze=/\[\]$/,We=/\r?\n/g,He=/#.*$/,Re=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,qe=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ve=/^(?:GET|HEAD)$/,Xe=/^\/\//,Ue=/\?/,Ge=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ke=/^(?:select|textarea)/i,Qe=/\s+/,Ye=/([?&])_=[^&]*/,Ze=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Je=E.fn.load,$e={},et={},tt=["*/"]+["*"];try{Le=M.href}catch(vt){(Le=S.createElement("a")).href="",Le=Le.href}Be=Ze.exec(Le.toLowerCase())||[],E.fn.extend({load:function(e,n,r){if("string"!=typeof e&&Je)return Je.apply(this,arguments);if(!this.length)return this;var a=e.indexOf(" ");if(a>=0){var i=e.slice(a,e.length);e=e.slice(0,a)}var o="GET";n&&(E.isFunction(n)?(r=n,n=t):"object"==typeof n&&(n=E.param(n,E.ajaxSettings.traditional),o="POST"));var s=this;return E.ajax({url:e,type:o,dataType:"html",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done((function(e){n=e})),s.html(i?E("<div>").append(n.replace(Ge,"")).find(i):n)),r&&s.each(r,[n,t,e])}}),this},serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?E.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Ke.test(this.nodeName)||qe.test(this.type))})).map((function(e,t){var n=E(this).val();return null==n?null:E.isArray(n)?E.map(n,(function(e,n){return{name:t.name,value:e.replace(We,"\r\n")}})):{name:t.name,value:n.replace(We,"\r\n")}})).get()}}),E.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(e,t){E.fn[t]=function(e){return this.bind(t,e)}})),E.each(["get","post"],(function(e,n){E[n]=function(e,r,a,i){return E.isFunction(r)&&(i=i||a,a=r,r=t),E.ajax({type:n,url:e,data:r,success:a,dataType:i})}})),E.extend({getScript:function(e,n){return E.get(e,t,n,"script")},getJSON:function(e,t,n){return E.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?c(e,E.ajaxSettings):(t=e,e=E.ajaxSettings),c(e,t),e},ajaxSettings:{url:Le,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Be[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","*":tt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":E.parseJSON,"text xml":E.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:d($e),ajaxTransport:d(et),ajax:function(e,n){function r(e,n,r,o){if(2!==w){w=2,l&&clearTimeout(l),s=t,i=o||"",_.readyState=e>0?4:0;var c,u,p,b,x,A=n,k=r?function(e,n,r){var a,i,o,s,l=e.contents,c=e.dataTypes,u=e.responseFields;for(i in u)i in r&&(n[u[i]]=r[i]);for(;"*"===c[0];)c.shift(),a===t&&(a=e.mimeType||n.getResponseHeader("content-type"));if(a)for(i in l)if(l[i]&&l[i].test(a)){c.unshift(i);break}if(c[0]in r)o=c[0];else{for(i in r){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==c[0]&&c.unshift(o),r[o]}(f,_,r):t;if(e>=200&&e<300||304===e)if(f.ifModified&&((b=_.getResponseHeader("Last-Modified"))&&(E.lastModified[a]=b),(x=_.getResponseHeader("Etag"))&&(E.etag[a]=x)),304===e)A="notmodified",c=!0;else try{u=function(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r,a,i,o,s,l,c,u,d=e.dataTypes,p={},f=d.length,h=d[0];for(r=1;r<f;r++){if(1===r)for(a in e.converters)"string"==typeof a&&(p[a.toLowerCase()]=e.converters[a]);if(o=h,"*"===(h=d[r]))h=o;else if("*"!==o&&o!==h){if(!(l=p[s=o+" "+h]||p["* "+h]))for(c in u=t,p)if(((i=c.split(" "))[0]===o||"*"===i[0])&&(u=p[i[1]+" "+h])){!0===(c=p[c])?l=u:!0===u&&(l=c);break}!l&&!u&&E.error("No conversion from "+s.replace(" "," to ")),!0!==l&&(n=l?l(n):u(c(n)))}}return n}(f,k),A="success",c=!0}catch(G){A="parsererror",p=G}else p=A,A&&!e||(A="error",e<0&&(e=0));_.status=e,_.statusText=""+(n||A),c?m.resolveWith(h,[u,A,_]):m.rejectWith(h,[_,A,p]),_.statusCode(y),y=t,d&&g.trigger("ajax"+(c?"Success":"Error"),[_,f,c?u:p]),v.fireWith(h,[_,A]),d&&(g.trigger("ajaxComplete",[_,f]),--E.active||E.event.trigger("ajaxStop"))}}"object"==typeof e&&(n=e,e=t),n=n||{};var a,i,o,s,l,c,d,p,f=E.ajaxSetup({},n),h=f.context||f,g=h!==f&&(h.nodeType||h instanceof E)?E(h):E.event,m=E.Deferred(),v=E.Callbacks("once memory"),y=f.statusCode||{},b={},x={},w=0,_={readyState:0,setRequestHeader:function(e,t){if(!w){var n=e.toLowerCase();e=x[n]=x[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return 2===w?i:null},getResponseHeader:function(e){var n;if(2===w){if(!o)for(o={};n=Re.exec(i);)o[n[1].toLowerCase()]=n[2];n=o[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return w||(f.mimeType=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),r(0,e),this}};if(m.promise(_),_.success=_.done,_.error=_.fail,_.complete=v.add,_.statusCode=function(e){var t;if(e)if(w<2)for(t in e)y[t]=[y[t],e[t]];else t=e[_.status],_.then(t,t);return this},f.url=((e||f.url)+"").replace(He,"").replace(Xe,Be[1]+"//"),f.dataTypes=E.trim(f.dataType||"*").toLowerCase().split(Qe),null==f.crossDomain&&(c=Ze.exec(f.url.toLowerCase()),f.crossDomain=!(!c||c[1]==Be[1]&&c[2]==Be[2]&&(c[3]||("http:"===c[1]?80:443))==(Be[3]||("http:"===Be[1]?80:443)))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),u($e,f,n,_),2===w)return!1;if(d=f.global,f.type=f.type.toUpperCase(),f.hasContent=!Ve.test(f.type),d&&0==E.active++&&E.event.trigger("ajaxStart"),!f.hasContent&&(f.data&&(f.url+=(Ue.test(f.url)?"&":"?")+f.data,delete f.data),a=f.url,!1===f.cache)){var A=E.now(),k=f.url.replace(Ye,"$1_="+A);f.url=k+(k===f.url?(Ue.test(f.url)?"&":"?")+"_="+A:"")}for(p in(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&_.setRequestHeader("Content-Type",f.contentType),f.ifModified&&(a=a||f.url,E.lastModified[a]&&_.setRequestHeader("If-Modified-Since",E.lastModified[a]),E.etag[a]&&_.setRequestHeader("If-None-Match",E.etag[a])),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+tt+"; q=0.01":""):f.accepts["*"]),f.headers)_.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(h,_,f)||2===w))return _.abort(),!1;for(p in{success:1,error:1,complete:1})_[p](f[p]);if(s=u(et,f,n,_)){_.readyState=1,d&&g.trigger("ajaxSend",[_,f]),f.async&&f.timeout>0&&(l=setTimeout((function(){_.abort("timeout")}),f.timeout));try{w=1,s.send(b,r)}catch(T){w<2?r(-1,T):E.error(T)}}else r(-1,"No Transport");return _},param:function(e,n){var r=[],a=function(e,t){t=E.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=E.ajaxSettings.traditional),E.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){a(this.name,this.value)}));else for(var i in e)l(i,e[i],n,a);return r.join("&").replace(Ie,"+")}}),E.extend({active:0,lastModified:{},etag:{}});var nt=E.now(),rt=/(\=)\?(&|$)|\?\?/i;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return E.expando+"_"+nt++}}),E.ajaxPrefilter("json jsonp",(function(t,n,r){var a="application/x-www-form-urlencoded"===t.contentType&&"string"==typeof t.data;if("jsonp"===t.dataTypes[0]||!1!==t.jsonp&&(rt.test(t.url)||a&&rt.test(t.data))){var i,o=t.jsonpCallback=E.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s=e[o],l=t.url,c=t.data,u="$1"+o+"$2";return!1!==t.jsonp&&(l=l.replace(rt,u),t.url===l&&(a&&(c=c.replace(rt,u)),t.data===c&&(l+=(/\?/.test(l)?"&":"?")+t.jsonp+"="+o))),t.url=l,t.data=c,e[o]=function(e){i=[e]},r.always((function(){e[o]=s,i&&E.isFunction(s)&&e[o](i[0])})),t.converters["script json"]=function(){return i||E.error(o+" was not called"),i[0]},t.dataTypes[0]="json","script"}})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),E.ajaxTransport("script",(function(e){if(e.crossDomain){var n,r=S.head||S.getElementsByTagName("head")[0]||S.documentElement;return{send:function(a,i){(n=S.createElement("script")).async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,a){(a||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,a||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}}));var at,it=!!e.ActiveXObject&&function(){for(var e in at)at[e](0,1)},ot=0;E.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&s()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:s,function(e){E.extend(E.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(E.ajaxSettings.xhr()),E.support.ajax&&E.ajaxTransport((function(n){var r;if(!n.crossDomain||E.support.cors)return{send:function(a,i){var o,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),!n.crossDomain&&!a["X-Requested-With"]&&(a["X-Requested-With"]="XMLHttpRequest");try{for(s in a)l.setRequestHeader(s,a[s])}catch(O){}l.send(n.hasContent&&n.data||null),r=function(e,a){var s,c,u,d,p;try{if(r&&(a||4===l.readyState))if(r=t,o&&(l.onreadystatechange=E.noop,it&&delete at[o]),a)4!==l.readyState&&l.abort();else{s=l.status,u=l.getAllResponseHeaders(),d={},(p=l.responseXML)&&p.documentElement&&(d.xml=p),d.text=l.responseText;try{c=l.statusText}catch(z){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(W){a||i(-1,W)}d&&i(s,c,d,u)},n.async&&4!==l.readyState?(o=++ot,it&&(at||(at={},E(e).unload(it)),at[o]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}));var st,lt,ct,ut,dt={},pt=/^(?:toggle|show|hide)$/,ft=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ht=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];E.fn.extend({show:function(e,t,n){var i,o;if(e||0===e)return this.animate(a("show",3),e,t,n);for(var s=0,l=this.length;s<l;s++)(i=this[s]).style&&(o=i.style.display,!E._data(i,"olddisplay")&&"none"===o&&(o=i.style.display=""),""===o&&"none"===E.css(i,"display")&&E._data(i,"olddisplay",r(i.nodeName)));for(s=0;s<l;s++)(i=this[s]).style&&(""!==(o=i.style.display)&&"none"!==o||(i.style.display=E._data(i,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(a("hide",3),e,t,n);for(var r,i,o=0,s=this.length;o<s;o++)(r=this[o]).style&&("none"!==(i=E.css(r,"display"))&&!E._data(r,"olddisplay")&&E._data(r,"olddisplay",i));for(o=0;o<s;o++)this[o].style&&(this[o].style.display="none");return this},_toggle:E.fn.toggle,toggle:function(e,t,n){var r="boolean"==typeof e;return E.isFunction(e)&&E.isFunction(t)?this._toggle.apply(this,arguments):null==e||r?this.each((function(){var t=r?e:E(this).is(":hidden");E(this)[t?"show":"hide"]()})):this.animate(a("toggle",3),e,t,n),this},fadeTo:function(e,t,n,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,a){function i(){!1===o.queue&&E._mark(this);var t,n,a,i,s,l,c,u,d,p=E.extend({},o),f=1===this.nodeType,h=f&&E(this).is(":hidden");for(a in p.animatedProperties={},e){if(a!==(t=E.camelCase(a))&&(e[t]=e[a],delete e[a]),n=e[t],E.isArray(n)?(p.animatedProperties[t]=n[1],n=e[t]=n[0]):p.animatedProperties[t]=p.specialEasing&&p.specialEasing[t]||p.easing||"swing","hide"===n&&h||"show"===n&&!h)return p.complete.call(this);f&&("height"===t||"width"===t)&&(p.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===E.css(this,"display")&&"none"===E.css(this,"float")&&(E.support.inlineBlockNeedsLayout&&"inline"!==r(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(a in null!=p.overflow&&(this.style.overflow="hidden"),e)i=new E.fx(this,p,a),n=e[a],pt.test(n)?(d=E._data(this,"toggle"+a)||("toggle"===n?h?"show":"hide":0))?(E._data(this,"toggle"+a,"show"===d?"hide":"show"),i[d]()):i[n]():(s=ft.exec(n),l=i.cur(),s?(c=parseFloat(s[2]),"px"!==(u=s[3]||(E.cssNumber[a]?"":"px"))&&(E.style(this,a,(c||1)+u),l=(c||1)/i.cur()*l,E.style(this,a,l+u)),s[1]&&(c=("-="===s[1]?-1:1)*c+l),i.custom(l,c,u)):i.custom(l,n,""));return!0}var o=E.speed(t,n,a);return E.isEmptyObject(e)?this.each(o.complete,[!1]):(e=E.extend({},e),!1===o.queue?this.each(i):this.queue(o.queue,i))},stop:function(e,n,r){return"string"!=typeof e&&(r=n,n=e,e=t),n&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){function t(e,t,n){var a=t[n];E.removeData(e,n,!0),a.stop(r)}var n,a=!1,i=E.timers,o=E._data(this);if(r||E._unmark(!0,this),null==e)for(n in o)o[n].stop&&n.indexOf(".run")===n.length-4&&t(this,o,n);else o[n=e+".run"]&&o[n].stop&&t(this,o,n);for(n=i.length;n--;)i[n].elem===this&&(null==e||i[n].queue===e)&&(r?i[n](!0):i[n].saveState(),a=!0,i.splice(n,1));(!r||!a)&&E.dequeue(this,e)}))}}),E.each({slideDown:a("show",1),slideUp:a("hide",1),slideToggle:a("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){E.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),E.extend({speed:function(e,t,n){var r=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||E.isFunction(e)&&e,duration:e,easing:n&&t||t&&!E.isFunction(t)&&t};return r.duration=E.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in E.fx.speeds?E.fx.speeds[r.duration]:E.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(e){E.isFunction(r.old)&&r.old.call(this),r.queue?E.dequeue(this,r.queue):!1!==e&&E._unmark(this)},r},easing:{linear:function(e,t,n,r){return n+r*e},swing:function(e,t,n,r){return(-Math.cos(e*Math.PI)/2+.5)*r+n}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),E.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(E.fx.step[this.prop]||E.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var e,t=E.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,n,r){function a(e){return i.step(e)}var i=this,s=E.fx;this.startTime=ut||o(),this.end=n,this.now=this.start=e,this.pos=this.state=0,this.unit=r||this.unit||(E.cssNumber[this.prop]?"":"px"),a.queue=this.options.queue,a.elem=this.elem,a.saveState=function(){i.options.hide&&E._data(i.elem,"fxshow"+i.prop)===t&&E._data(i.elem,"fxshow"+i.prop,i.start)},a()&&E.timers.push(a)&&!ct&&(ct=setInterval(s.tick,s.interval))},show:function(){var e=E._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||E.style(this.elem,this.prop),this.options.show=!0,e!==t?this.custom(this.cur(),e):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),E(this.elem).show()},hide:function(){this.options.orig[this.prop]=E._data(this.elem,"fxshow"+this.prop)||E.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,r,a=ut||o(),i=!0,s=this.elem,l=this.options;if(e||a>=l.duration+this.startTime){for(t in this.now=this.end,this.pos=this.state=1,this.update(),l.animatedProperties[this.prop]=!0,l.animatedProperties)!0!==l.animatedProperties[t]&&(i=!1);if(i){if(null!=l.overflow&&!E.support.shrinkWrapBlocks&&E.each(["","X","Y"],(function(e,t){s.style["overflow"+t]=l.overflow[e]})),l.hide&&E(s).hide(),l.hide||l.show)for(t in l.animatedProperties)E.style(s,t,l.orig[t]),E.removeData(s,"fxshow"+t,!0),E.removeData(s,"toggle"+t,!0);(r=l.complete)&&(l.complete=!1,r.call(s))}return!1}return l.duration==1/0?this.now=a:(n=a-this.startTime,this.state=n/l.duration,this.pos=E.easing[l.animatedProperties[this.prop]](this.state,n,0,1,l.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},E.extend(E.fx,{tick:function(){for(var e,t=E.timers,n=0;n<t.length;n++)!(e=t[n])()&&t[n]===e&&t.splice(n--,1);t.length||E.fx.stop()},interval:13,stop:function(){clearInterval(ct),ct=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){E.style(e.elem,"opacity",e.now)},_default:function(e){e.elem.style&&null!=e.elem.style[e.prop]?e.elem.style[e.prop]=e.now+e.unit:e.elem[e.prop]=e.now}}}),E.each(["width","height"],(function(e,t){E.fx.step[t]=function(e){E.style(e.elem,t,Math.max(0,e.now))}})),E.expr&&E.expr.filters&&(E.expr.filters.animated=function(e){return E.grep(E.timers,(function(t){return e===t.elem})).length});var gt=/^t(?:able|d|h)$/i,mt=/^(?:body|html)$/i;"getBoundingClientRect"in S.documentElement?E.fn.offset=function(e){var t,r=this[0];if(e)return this.each((function(t){E.offset.setOffset(this,e,t)}));if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return E.offset.bodyOffset(r);try{t=r.getBoundingClientRect()}catch(P){}var a=r.ownerDocument,i=a.documentElement;if(!t||!E.contains(i,r))return t?{top:t.top,left:t.left}:{top:0,left:0};var o=a.body,s=n(a),l=i.clientTop||o.clientTop||0,c=i.clientLeft||o.clientLeft||0,u=s.pageYOffset||E.support.boxModel&&i.scrollTop||o.scrollTop,d=s.pageXOffset||E.support.boxModel&&i.scrollLeft||o.scrollLeft;return{top:t.top+u-l,left:t.left+d-c}}:E.fn.offset=function(e){var t=this[0];if(e)return this.each((function(t){E.offset.setOffset(this,e,t)}));if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return E.offset.bodyOffset(t);for(var n,r=t.offsetParent,a=t.ownerDocument,i=a.documentElement,o=a.body,s=a.defaultView,l=s?s.getComputedStyle(t,null):t.currentStyle,c=t.offsetTop,u=t.offsetLeft;(t=t.parentNode)&&t!==o&&t!==i&&(!E.support.fixedPosition||"fixed"!==l.position);)n=s?s.getComputedStyle(t,null):t.currentStyle,c-=t.scrollTop,u-=t.scrollLeft,t===r&&(c+=t.offsetTop,u+=t.offsetLeft,E.support.doesNotAddBorder&&(!E.support.doesAddBorderForTableAndCells||!gt.test(t.nodeName))&&(c+=parseFloat(n.borderTopWidth)||0,u+=parseFloat(n.borderLeftWidth)||0),r=t.offsetParent),E.support.subtractsBorderForOverflowNotVisible&&"visible"!==n.overflow&&(c+=parseFloat(n.borderTopWidth)||0,u+=parseFloat(n.borderLeftWidth)||0),l=n;return"relative"!==l.position&&"static"!==l.position||(c+=o.offsetTop,u+=o.offsetLeft),E.support.fixedPosition&&"fixed"===l.position&&(c+=Math.max(i.scrollTop,o.scrollTop),u+=Math.max(i.scrollLeft,o.scrollLeft)),{top:c,left:u}},E.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return E.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(E.css(e,"marginTop"))||0,n+=parseFloat(E.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=E.css(e,"position");"static"===r&&(e.style.position="relative");var a,i,o=E(e),s=o.offset(),l=E.css(e,"top"),c=E.css(e,"left"),u={},d={};("absolute"===r||"fixed"===r)&&E.inArray("auto",[l,c])>-1?(a=(d=o.position()).top,i=d.left):(a=parseFloat(l)||0,i=parseFloat(c)||0),E.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(u.top=t.top-s.top+a),null!=t.left&&(u.left=t.left-s.left+i),"using"in t?t.using.call(e,u):o.css(u)}},E.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=mt.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(E.css(e,"marginTop"))||0,n.left-=parseFloat(E.css(e,"marginLeft"))||0,r.top+=parseFloat(E.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(E.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||S.body;e&&!mt.test(e.nodeName)&&"static"===E.css(e,"position");)e=e.offsetParent;return e}))}}),E.each(["Left","Top"],(function(e,r){var a="scroll"+r;E.fn[a]=function(r){var i,o;return r===t?(i=this[0])?(o=n(i))?"pageXOffset"in o?o[e?"pageYOffset":"pageXOffset"]:E.support.boxModel&&o.document.documentElement[a]||o.document.body[a]:i[a]:null:this.each((function(){(o=n(this))?o.scrollTo(e?E(o).scrollLeft():r,e?r:E(o).scrollTop()):this[a]=r}))}})),E.each(["Height","Width"],(function(e,n){var r=n.toLowerCase();E.fn["inner"+n]=function(){var e=this[0];return e?e.style?parseFloat(E.css(e,r,"padding")):this[r]():null},E.fn["outer"+n]=function(e){var t=this[0];return t?t.style?parseFloat(E.css(t,r,e?"margin":"border")):this[r]():null},E.fn[r]=function(e){var a=this[0];if(!a)return null==e?null:this;if(E.isFunction(e))return this.each((function(t){var n=E(this);n[r](e.call(this,t,n[r]()))}));if(E.isWindow(a)){var i=a.document.documentElement["client"+n],o=a.document.body;return"CSS1Compat"===a.document.compatMode&&i||o&&o["client"+n]||i}if(9===a.nodeType)return Math.max(a.documentElement["client"+n],a.body["scroll"+n],a.documentElement["scroll"+n],a.body["offset"+n],a.documentElement["offset"+n]);if(e===t){var s=E.css(a,r),l=parseFloat(s);return E.isNumeric(l)?l:s}return this.css(r,"string"==typeof e?e:e+"px")}})),e.jQuery=e.$=E}(window),function(e){var t,n,r="",a=Math.PI,i=a/2,o="ontouchstart"in window,s=o?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},l={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},c=["single","double"],u=["ltr","rtl"],d={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},p={cornerSize:100},f={init:function(a){var i;t="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,n=!(i=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||parseFloat(i[1])>534.3,r=_();var l,c=0,u=this.data(),p=this.children();if(a=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},d,a),u.opts=a,u.pageObjs={},u.pages={},u.pageWrap={},u.pageZoom={},u.pagePlace={},u.pageMv=[],u.zoom=1,u.totalPages=a.pages||0,u.eventHandlers={touchStart:e.proxy(f._touchStart,this),touchMove:e.proxy(f._touchMove,this),touchEnd:e.proxy(f._touchEnd,this),start:e.proxy(f._eventStart,this)},a.when)for(l in a.when)w(l,a.when)&&this.bind(l,a.when[l]);for(this.css({position:"relative",width:a.width,height:a.height}),this.turn("display",a.display),""!==a.direction&&this.turn("direction",a.direction),t&&!o&&a.acceleration&&this.transform(b(0,0,!0)),l=0;l<p.length;l++)"1"!=e(p[l]).attr("ignore")&&this.turn("addPage",p[l],++c);return e(this).bind(s.down,u.eventHandlers.touchStart).bind("end",f._eventEnd).bind("pressed",f._eventPressed).bind("released",f._eventReleased).bind("flip",f._flip),e(this).parent().bind("start",u.eventHandlers.start),e(document).bind(s.move,u.eventHandlers.touchMove).bind(s.up,u.eventHandlers.touchEnd),this.turn("page",a.page),u.done=!0,this},addPage:function(t,n){var r,a,i=!1,o=this.data(),s=o.totalPages+1;if(o.destroying)return!1;if((r=/\bp([0-9]+)\b/.exec(e(t).attr("class")))&&(n=parseInt(r[1],10)),n){if(n==s)i=!0;else if(n>s)throw T('Page "'+n+'" cannot be inserted')}else n=s,i=!0;return n>=1&&n<=s&&(a="double"==o.display?n%2?" odd":" even":"",o.done&&this.turn("stop"),n in o.pageObjs&&f._movePages.call(this,n,1),i&&(o.totalPages=s),o.pageObjs[n]=e(t).css({float:"left"}).addClass("page p"+n+a),-1!=navigator.userAgent.indexOf("MSIE 9.0")&&o.pageObjs[n].hasClass("hard")&&o.pageObjs[n].removeClass("hard"),f._addPage.call(this,n),f._removeFromDOM.call(this)),this},_addPage:function(t){var n=this.data(),r=n.pageObjs[t];if(r)if(f._necessPage.call(this,t)){if(!n.pageWrap[t]){n.pageWrap[t]=e("<div/>",{class:"page-wrapper",page:t,css:{position:"absolute",overflow:"hidden"}}),this.append(n.pageWrap[t]),n.pagePlace[t]||(n.pagePlace[t]=t,n.pageObjs[t].appendTo(n.pageWrap[t]));var a=f._pageSize.call(this,t,!0);r.css({width:a.width,height:a.height}),n.pageWrap[t].css(a)}n.pagePlace[t]==t&&f._makeFlip.call(this,t)}else n.pagePlace[t]=0,n.pageObjs[t]&&n.pageObjs[t].remove()},hasPage:function(e){return w(e,this.data().pageObjs)},center:function(t){var n=this.data(),r=e(this).turn("size"),a=0;if(!n.noCenter){if("double"==n.display){var i=this.turn("view",t||n.tpage||n.page);"ltr"==n.direction?i[0]?i[1]||(a+=r.width/4):a-=r.width/4:i[0]?i[1]||(a-=r.width/4):a+=r.width/4}e(this).css({marginLeft:a})}return this},destroy:function(){var t=this,n=this.data();if("prevented"!=k("destroying",this)){for(n.destroying=!0,e.each(["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"],(function(e,n){t.unbind(n)})),this.parent().unbind("start",n.eventHandlers.start),e(document).unbind(s.move,n.eventHandlers.touchMove).unbind(s.up,n.eventHandlers.touchEnd);0!==n.totalPages;)this.turn("removePage",n.totalPages);return n.fparent&&n.fparent.remove(),n.shadow&&n.shadow.remove(),this.removeData(),n=null,this}},is:function(){return"object"==typeof this.data().pages},zoom:function(t){var n=this.data();if("number"==typeof t){if(t<.001||t>100)throw T(t+" is not a value for zoom");if("prevented"==k("zooming",this,[t,n.zoom]))return this;var r=this.turn("size"),a=this.turn("view"),i=1/n.zoom,o=Math.round(r.width*i*t),s=Math.round(r.height*i*t);n.zoom=t,e(this).turn("stop").turn("size",o,s),n.opts.autoCenter&&this.turn("center"),f._updateShadow.call(this);for(var l=0;l<a.length;l++)a[l]&&n.pageZoom[a[l]]!=n.zoom&&(this.trigger("zoomed",[a[l],a,n.pageZoom[a[l]],n.zoom]),n.pageZoom[a[l]]=n.zoom);return this}return n.zoom},_pageSize:function(e,t){var n=this.data(),r={};if("single"==n.display)r.width=this.width(),r.height=this.height(),t&&(r.top=0,r.left=0,r.right="auto");else{var a=this.width()/2,i=this.height();if(n.pageObjs[e].hasClass("own-size")?(r.width=n.pageObjs[e].width(),r.height=n.pageObjs[e].height()):(r.width=a,r.height=i),t){var o=e%2;r.top=(i-r.height)/2,"ltr"==n.direction?(r[o?"right":"left"]=a-r.width,r[o?"left":"right"]="auto"):(r[o?"left":"right"]=a-r.width,r[o?"right":"left"]="auto")}}return r},_makeFlip:function(e){var t=this.data();if(!t.pages[e]&&t.pagePlace[e]==e){var n="single"==t.display,r=e%2;t.pages[e]=t.pageObjs[e].css(f._pageSize.call(this,e)).flip({page:e,next:r||n?e+1:e-1,turn:this}).flip("disable",t.disabled),f._setPageLoc.call(this,e),t.pageZoom[e]=t.zoom}return t.pages[e]},_makeRange:function(){var e,t;if(!(this.data().totalPages<1))for(e=(t=this.turn("range"))[0];e<=t[1];e++)f._addPage.call(this,e)},range:function(e){var t,n,r,a,i=this.data();if(e=e||i.tpage||i.page||1,a=f._view.call(this,e),e<1||e>i.totalPages)throw T('"'+e+'" is not a valid page');return a[1]=a[1]||a[0],a[0]>=1&&a[1]<=i.totalPages?(t=Math.floor(2),i.totalPages-a[1]>a[0]?r=2*t-(n=Math.min(a[0]-1,t)):n=2*t-(r=Math.min(i.totalPages-a[1],t))):(n=5,r=5),[Math.max(1,a[0]-n),Math.min(i.totalPages,a[1]+r)]},_necessPage:function(e){if(0===e)return!0;var t=this.turn("range");return this.data().pageObjs[e].hasClass("fixed")||e>=t[0]&&e<=t[1]},_removeFromDOM:function(){var e,t=this.data();for(e in t.pageWrap)w(e,t.pageWrap)&&!f._necessPage.call(this,e)&&f._removePageFromDOM.call(this,e)},_removePageFromDOM:function(e){var t=this.data();if(t.pages[e]){var n=t.pages[e].data();h._moveFoldingPage.call(t.pages[e],!1),n.f&&n.f.fwrapper&&n.f.fwrapper.remove(),t.pages[e].removeData(),t.pages[e].remove(),delete t.pages[e]}t.pageObjs[e]&&t.pageObjs[e].remove(),t.pageWrap[e]&&(t.pageWrap[e].remove(),delete t.pageWrap[e]),f._removeMv.call(this,e),delete t.pagePlace[e],delete t.pageZoom[e]},removePage:function(e){var t=this.data();if("*"==e)for(;0!==t.totalPages;)this.turn("removePage",t.totalPages);else{if(e<1||e>t.totalPages)throw T("The page "+e+" doesn't exist");t.pageObjs[e]&&(this.turn("stop"),f._removePageFromDOM.call(this,e),delete t.pageObjs[e]),f._movePages.call(this,e,-1),t.totalPages=t.totalPages-1,t.page>t.totalPages?(t.page=null,f._fitPage.call(this,t.totalPages)):(f._makeRange.call(this),this.turn("update"))}return this},_movePages:function(e,t){var n,r=this,a=this.data(),i="single"==a.display,o=function(e){var n=e+t,o=n%2,s=o?" odd ":" even ";a.pageObjs[e]&&(a.pageObjs[n]=a.pageObjs[e].removeClass("p"+e+" odd even").addClass("p"+n+s)),a.pagePlace[e]&&a.pageWrap[e]&&(a.pagePlace[n]=n,a.pageObjs[n].hasClass("fixed")?a.pageWrap[n]=a.pageWrap[e].attr("page",n):a.pageWrap[n]=a.pageWrap[e].css(f._pageSize.call(r,n,!0)).attr("page",n),a.pages[e]&&(a.pages[n]=a.pages[e].flip("options",{page:n,next:i||o?n+1:n-1})),t&&(delete a.pages[e],delete a.pagePlace[e],delete a.pageZoom[e],delete a.pageObjs[e],delete a.pageWrap[e]))};if(t>0)for(n=a.totalPages;n>=e;n--)o(n);else for(n=e;n<=a.totalPages;n++)o(n)},display:function(t){var n=this.data(),r=n.display;if(void 0===t)return r;if(-1==e.inArray(t,c))throw T('"'+t+'" is not a value for display');switch(t){case"single":n.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),n.pageObjs[0]=e("<div />",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":n.pageObjs[0]&&(this.turn("stop").css({overflow:""}),n.pageObjs[0].remove(),delete n.pageObjs[0]),this.removeClass("shadow")}if(n.display=t,r){var a=this.turn("size");f._movePages.call(this,1,0),this.turn("size",a.width,a.height).turn("update")}return this},direction:function(t){var n=this.data();if(void 0===t)return n.direction;if(t=t.toLowerCase(),-1==e.inArray(t,u))throw T('"'+t+'" is not a value for direction');return"rtl"==t&&e(this).attr("dir","ltr").css({direction:"ltr"}),n.direction=t,n.done&&this.turn("size",e(this).width(),e(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var e,t,n=this.data();for(t in n.pages)if(w(t,n.pages)&&(e=n.pages[t].flip("corner")))return e;return!1},data:function(){return this.data()},disable:function(t){var n,r=this.data(),a=this.turn("view");for(n in r.disabled=void 0===t||!0===t,r.pages)w(n,r.pages)&&r.pages[n].flip("disable",!!r.disabled||-1==e.inArray(parseInt(n,10),a));return this},disabled:function(e){return void 0===e?!0===this.data().disabled:this.turn("disable",e)},size:function(e,t){if(void 0===e||void 0===t)return{width:this.width(),height:this.height()};this.turn("stop");var n,r,a=this.data(),i="double"==a.display?e/2:e;for(n in this.css({width:e,height:t}),a.pageObjs[0]&&a.pageObjs[0].css({width:i,height:t}),a.pageWrap)w(n,a.pageWrap)&&(r=f._pageSize.call(this,n,!0),a.pageObjs[n].css({width:r.width,height:r.height}),a.pageWrap[n].css(r),a.pages[n]&&a.pages[n].css({width:r.width,height:r.height}));return this.turn("resize"),this},resize:function(){var e,t=this.data();for(t.pages[0]&&(t.pageWrap[0].css({left:-this.width()}),t.pages[0].flip("resize",!0)),e=1;e<=t.totalPages;e++)t.pages[e]&&t.pages[e].flip("resize",!0);f._updateShadow.call(this),t.opts.autoCenter&&this.turn("center")},_removeMv:function(e){var t,n=this.data();for(t=0;t<n.pageMv.length;t++)if(n.pageMv[t]==e)return n.pageMv.splice(t,1),!0;return!1},_addMv:function(e){var t=this.data();f._removeMv.call(this,e),t.pageMv.push(e)},_view:function(e){var t=this.data();return e=e||t.page,"double"==t.display?e%2?[e-1,e]:[e,e+1]:[e]},view:function(e){var t=this.data(),n=f._view.call(this,e);return"double"==t.display?[n[0]>0?n[0]:0,n[1]<=t.totalPages?n[1]:0]:[n[0]>0&&n[0]<=t.totalPages?n[0]:0]},stop:function(e,t){if(this.turn("animating")){var n,r,a,i=this.data();for(i.tpage&&(i.page=i.tpage,delete i.tpage),n=0;n<i.pageMv.length;n++)i.pageMv[n]&&i.pageMv[n]!==e&&(r=(a=i.pages[i.pageMv[n]]).data().f.opts,a.flip("hideFoldedPage",t),t||h._moveFoldingPage.call(a,!1),r.force&&(r.next=r.page%2==0?r.page-1:r.page+1,delete r.force))}return this.turn("update"),this},pages:function(e){var t=this.data();if(e){if(e<t.totalPages)for(var n=t.totalPages;n>e;n--)this.turn("removePage",n);return t.totalPages=e,f._fitPage.call(this,t.page),this}return t.totalPages},_missing:function(e){var t=this.data();if(!(t.totalPages<1)){var n,r=this.turn("range",e),a=[];for(n=r[0];n<=r[1];n++)t.pageObjs[n]||a.push(n);a.length>0&&this.trigger("missing",[a])}},_fitPage:function(e){var t=this.data(),n=this.turn("view",e);if(f._missing.call(this,e),t.pageObjs[e]){t.page=e,this.turn("stop");for(var r=0;r<n.length;r++)n[r]&&t.pageZoom[n[r]]!=t.zoom&&(this.trigger("zoomed",[n[r],n,t.pageZoom[n[r]],t.zoom]),t.pageZoom[n[r]]=t.zoom);f._removeFromDOM.call(this),f._makeRange.call(this),f._updateShadow.call(this),this.trigger("turned",[e,n]),this.turn("update"),t.opts.autoCenter&&this.turn("center")}},_turnPage:function(t){var n,r,a=this.data(),i=a.pagePlace[t],o=this.turn("view"),s=this.turn("view",t);if(a.page!=t){var l=a.page;if("prevented"==k("turning",this,[t,s]))return void(l==a.page&&-1!=e.inArray(i,a.pageMv)&&a.pages[i].flip("hideFoldedPage",!0));-1!=e.inArray(1,s)&&this.trigger("first"),-1!=e.inArray(a.totalPages,s)&&this.trigger("last")}"single"==a.display?(n=o[0],r=s[0]):o[1]&&t>o[1]?(n=o[1],r=s[0]):o[0]&&t<o[0]&&(n=o[0],r=s[1]);var c=a.opts.turnCorners.split(","),u=a.pages[n].data().f,d=u.opts,p=u.point;f._missing.call(this,t),a.pageObjs[t]&&(this.turn("stop"),a.page=t,f._makeRange.call(this),a.tpage=r,d.next!=r&&(d.next=r,d.force=!0),this.turn("update"),u.point=p,"hard"==u.effect?"ltr"==a.direction?a.pages[n].flip("turnPage",t>n?"r":"l"):a.pages[n].flip("turnPage",t>n?"l":"r"):"ltr"==a.direction?a.pages[n].flip("turnPage",c[t>n?1:0]):a.pages[n].flip("turnPage",c[t>n?0:1]))},page:function(t){var n=this.data();if(void 0===t)return n.page;if(!n.disabled&&!n.destroying){if((t=parseInt(t,10))>0&&t<=n.totalPages)return t!=n.page&&(n.done&&-1==e.inArray(t,this.turn("view"))?f._turnPage.call(this,t):f._fitPage.call(this,t)),this;throw T("The page "+t+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,f._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,f._view.call(this,this.data().page).shift()-1))},peel:function(e,t){var n,r=this.data(),a=this.turn("view");(t=void 0===t||!0===t,!1===e)?this.turn("stop",null,t):"single"==r.display?r.pages[r.page].flip("peel",e,t):(n="ltr"==r.direction?-1!=e.indexOf("l")?a[0]:a[1]:-1!=e.indexOf("l")?a[1]:a[0],r.pages[n]&&r.pages[n].flip("peel",e,t));return this},_addMotionPage:function(){var t=e(this).data().f.opts,n=t.turn;n.data(),f._addMv.call(n,t.page)},_eventStart:function(e,t,n){var r=t.turn.data(),a=r.pageZoom[t.page];e.isDefaultPrevented()||(a&&a!=r.zoom&&(t.turn.trigger("zoomed",[t.page,t.turn.turn("view",t.page),a,r.zoom]),r.pageZoom[t.page]=r.zoom),"single"==r.display&&n&&("l"==n.charAt(1)&&"ltr"==r.direction||"r"==n.charAt(1)&&"rtl"==r.direction?(t.next=t.next<t.page?t.next:t.page-1,t.force=!0):t.next=t.next>t.page?t.next:t.page+1),f._addMotionPage.call(e.target)),f._updateShadow.call(t.turn)},_eventEnd:function(t,n,r){e(t.target).data().f;var a=n.turn,i=a.data();if(r){var o=i.tpage||i.page;o!=n.next&&o!=n.page||(delete i.tpage,f._fitPage.call(a,o||n.next,!0))}else f._removeMv.call(a,n.page),f._updateShadow.call(a),a.turn("update")},_eventPressed:function(t){var n=e(t.target).data().f,r=n.opts.turn,a=r.data();return a.pages,a.mouseAction=!0,r.turn("update"),n.time=(new Date).getTime()},_eventReleased:function(t,n){var r,a=e(t.target),i=a.data().f,o=i.opts.turn,s=o.data();r="single"==s.display?"br"==n.corner||"tr"==n.corner?n.x<a.width()/2:n.x>a.width()/2:n.x<0||n.x>a.width(),((new Date).getTime()-i.time<200||r)&&(t.preventDefault(),f._turnPage.call(o,i.opts.next)),s.mouseAction=!1},_flip:function(t){t.stopPropagation();var n=e(t.target).data().f.opts;n.turn.trigger("turn",[n.next]),n.turn.data().opts.autoCenter&&n.turn.turn("center",n.next)},_touchStart:function(){var e=this.data();for(var t in e.pages)if(w(t,e.pages)&&!1===h._eventStart.apply(e.pages[t],arguments))return!1},_touchMove:function(){var e=this.data();for(var t in e.pages)w(t,e.pages)&&h._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var e=this.data();for(var t in e.pages)w(t,e.pages)&&h._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(e){var t,n,r,a,i,o=this,s=this.data(),l=this.turn("view"),c=l[0]||l[1],u=e.length-1,d={pageZ:{},partZ:{},pageV:{}},p=function(e){var t=o.turn("view",e);t[0]&&(d.pageV[t[0]]=!0),t[1]&&(d.pageV[t[1]]=!0)};for(t=0;t<=u;t++)n=e[t],r=s.pages[n].data().f.opts.next,a=s.pagePlace[n],p(n),p(r),i=s.pagePlace[r]==r?r:n,d.pageZ[i]=s.totalPages-Math.abs(c-i),d.partZ[a]=2*s.totalPages-u+t;return d},update:function(){var t,n=this.data();if(this.turn("animating")&&0!==n.pageMv[0]){var r,a,i=this.turn("calculateZ",n.pageMv),o=this.turn("corner"),s=this.turn("view"),l=this.turn("view",n.tpage);for(t in n.pageWrap)w(t,n.pageWrap)&&(a=n.pageObjs[t].hasClass("fixed"),n.pageWrap[t].css({display:i.pageV[t]||a?"":"none",zIndex:(n.pageObjs[t].hasClass("hard")?i.partZ[t]:i.pageZ[t])||(a?-1:0)}),(r=n.pages[t])&&(r.flip("z",i.partZ[t]||null),i.pageV[t]&&r.flip("resize"),n.tpage?r.flip("hover",!1).flip("disable",-1==e.inArray(parseInt(t,10),n.pageMv)&&t!=l[0]&&t!=l[1]):r.flip("hover",!1===o).flip("disable",t!=s[0]&&t!=s[1])))}else for(t in n.pageWrap)if(w(t,n.pageWrap)){var c=f._setPageLoc.call(this,t);n.pages[t]&&n.pages[t].flip("disable",n.disabled||1!=c).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var t,n,r=this.data(),a=this.width(),i=this.height(),o="single"==r.display?a:a/2;t=this.turn("view"),r.shadow||(r.shadow=e("<div />",{class:"shadow",css:m(0,0,0).css}).appendTo(this));for(var s=0;s<r.pageMv.length&&(t[0]&&t[1]);s++)t=this.turn("view",r.pages[r.pageMv[s]].data().f.opts.next),n=this.turn("view",r.pageMv[s]),t[0]=t[0]&&n[0],t[1]=t[1]&&n[1];switch(t[0]?t[1]?3:"ltr"==r.direction?2:1:"ltr"==r.direction?1:2){case 1:r.shadow.css({width:o,height:i,top:0,left:o});break;case 2:r.shadow.css({width:o,height:i,top:0,left:0});break;case 3:r.shadow.css({width:a,height:i,top:0,left:0})}},_setPageLoc:function(e){var t=this.data(),n=this.turn("view"),r=0;if(e==n[0]||e==n[1]?r=1:("single"==t.display&&e==n[0]+1||"double"==t.display&&e==n[0]-2||e==n[1]+2)&&(r=2),!this.turn("animating"))switch(r){case 1:t.pageWrap[e].css({zIndex:t.totalPages,display:""});break;case 2:t.pageWrap[e].css({zIndex:t.totalPages-1,display:""});break;case 0:t.pageWrap[e].css({zIndex:0,display:t.pageObjs[e].hasClass("fixed")?"":"none"})}return r},options:function(t){if(void 0===t)return this.data().opts;var n=this.data();if(e.extend(n.opts,t),t.pages&&this.turn("pages",t.pages),t.page&&this.turn("page",t.page),t.display&&this.turn("display",t.display),t.direction&&this.turn("direction",t.direction),t.width&&t.height&&this.turn("size",t.width,t.height),t.when)for(var r in t.when)w(r,t.when)&&this.unbind(r).bind(r,t.when[r]);return this},version:function(){return"4.1.0"}},h={init:function(e){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",e),h._addPageWrapper.call(this),this},setData:function(t){var n=this.data();return n.f=e.extend(n.f,t),this},options:function(t){var n=this.data().f;return t?(h.setData.call(this,{opts:e.extend({},n.opts||p,t)}),this):n.opts},z:function(e){var t=this.data().f;return t.opts["z-index"]=e,t.fwrapper&&t.fwrapper.css({zIndex:e||parseInt(t.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var e=this.data().f,t=e.opts.page,n=e.opts.turn.data(),r=t%2;return"hard"==e.effect?"ltr"==n.direction?[r?"r":"l"]:[r?"l":"r"]:"single"==n.display?1==t?"ltr"==n.direction?l.forward:l.backward:t==n.totalPages?"ltr"==n.direction?l.backward:l.forward:l.all:"ltr"==n.direction?l[r?"forward":"backward"]:l[r?"backward":"forward"]},_cornerActivated:function(t){var n=this.data().f,r=this.width(),a=this.height(),i={x:t.x,y:t.y,corner:""},o=n.opts.cornerSize;if(i.x<=0||i.y<=0||i.x>=r||i.y>=a)return!1;var s=h._cAllowed.call(this);switch(n.effect){case"hard":if(i.x>r-o)i.corner="r";else{if(!(i.x<o))return!1;i.corner="l"}break;case"sheet":if(i.y<o)i.corner+="t";else{if(!(i.y>=a-o))return!1;i.corner+="b"}if(i.x<=o)i.corner+="l";else{if(!(i.x>=r-o))return!1;i.corner+="r"}}return!(!i.corner||-1==e.inArray(i.corner,s))&&i},_isIArea:function(e){var t=this.data().f.parent.offset();return e=o&&e.originalEvent?e.originalEvent.touches[0]:e,h._cornerActivated.call(this,{x:e.pageX-t.left,y:e.pageY-t.top})},_c:function(e,t){switch(t=t||0,e){case"tl":return y(t,t);case"tr":return y(this.width()-t,t);case"bl":return y(t,this.height()-t);case"br":return y(this.width()-t,this.height()-t);case"l":return y(t,0);case"r":return y(this.width()-t,0)}},_c2:function(e){switch(e){case"tl":case"l":return y(2*this.width(),0);case"tr":case"r":return y(-this.width(),0);case"bl":return y(2*this.width(),this.height());case"br":return y(-this.width(),this.height())}},_foldingPage:function(){var e=this.data().f;if(e){var t=e.opts;return t.turn?"single"==(e=t.turn.data()).display?t.next>1||t.page>1?e.pageObjs[0]:null:e.pageObjs[t.next]:void 0}},_backGradient:function(){var t=this.data().f,n=t.opts.turn.data(),r=n.opts.gradients&&("single"==n.display||2!=t.opts.page&&t.opts.page!=n.totalPages-1);return r&&!t.bshadow&&(t.bshadow=e("<div/>",m(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(t.parent)),r},type:function(){return this.data().f.effect},resize:function(e){var t=this.data().f,n=t.opts.turn.data(),r=this.width(),a=this.height();switch(t.effect){case"hard":e&&(t.wrapper.css({width:r,height:a}),t.fpage.css({width:r,height:a}),n.opts.gradients&&(t.ashadow.css({width:r,height:a}),t.bshadow.css({width:r,height:a})));break;case"sheet":if(e){var i=Math.round(Math.sqrt(Math.pow(r,2)+Math.pow(a,2)));t.wrapper.css({width:i,height:i}),t.fwrapper.css({width:i,height:i}).children(":first-child").css({width:r,height:a}),t.fpage.css({width:r,height:a}),n.opts.gradients&&t.ashadow.css({width:r,height:a}),h._backGradient.call(this)&&t.bshadow.css({width:r,height:a})}if(t.parent.is(":visible")){var o=C(t.parent[0]);t.fwrapper.css({top:o.top,left:o.left}),o=C(t.opts.turn[0]),t.fparent.css({top:-o.top,left:-o.left})}this.flip("z",t.opts["z-index"])}},_addPageWrapper:function(){var t=this.data().f,n=t.opts.turn.data(),a=this.parent();if(t.parent=a,!t.wrapper)switch(t.effect){case"hard":var i={};i[r+"transform-style"]="preserve-3d",i[r+"backface-visibility"]="hidden",t.wrapper=e("<div/>",m(0,0,2)).css(i).appendTo(a).prepend(this),t.fpage=e("<div/>",m(0,0,1)).css(i).appendTo(a),n.opts.gradients&&(t.ashadow=e("<div/>",m(0,0,0)).hide().appendTo(a),t.bshadow=e("<div/>",m(0,0,0)));break;case"sheet":if(this.width(),this.height(),t.fparent=t.opts.turn.data().fparent,!t.fparent){var o=e("<div/>",{css:{"pointer-events":"none"}}).hide();o.data().flips=0,o.css(m(0,0,"auto","visible").css).appendTo(t.opts.turn),t.opts.turn.data().fparent=o,t.fparent=o}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),t.wrapper=e("<div/>",m(0,0,this.css("z-index"))).appendTo(a).prepend(this),t.fwrapper=e("<div/>",m(a.offset().top,a.offset().left)).hide().appendTo(t.fparent),t.fpage=e("<div/>",m(0,0,0,"visible")).css({cursor:"default"}).appendTo(t.fwrapper),n.opts.gradients&&(t.ashadow=e("<div/>",m(0,0,1)).appendTo(t.fpage)),h.setData.call(this,t)}h.resize.call(this,!0)},_fold:function(e){var t=this.data().f,o=t.opts.turn.data(),s=h._c.call(this,e.corner),l=this.width(),c=this.height();switch(t.effect){case"hard":"l"==e.corner?e.x=Math.min(Math.max(e.x,0),2*l):e.x=Math.max(Math.min(e.x,l),-l);var u,d,p,f,g,m=o.totalPages,v=t.opts["z-index"]||m,w={overflow:"visible"},_=s.x?(s.x-e.x)/l:e.x/l,k=90*_,T=k<90;switch(e.corner){case"l":f="0% 50%",g="100% 50%",T?(u=0,d=t.opts.next-1>0,p=1):(u="100%",d=t.opts.page+1<m,p=0);break;case"r":f="100% 50%",g="0% 50%",k=-k,l=-l,T?(u=0,d=t.opts.next+1<m,p=0):(u="-100%",d=1!=t.opts.page,p=1)}w[r+"perspective-origin"]=g,t.wrapper.transform("rotateY("+k+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",g),t.fpage.transform("translateX("+l+"px) rotateY("+(180+k)+"deg)",f),t.parent.css(w),T?(_=1-_,t.wrapper.css({zIndex:v+1}),t.fpage.css({zIndex:v})):(_-=1,t.wrapper.css({zIndex:v}),t.fpage.css({zIndex:v+1})),o.opts.gradients&&(d?t.ashadow.css({display:"",left:u,backgroundColor:"rgba(0,0,0,"+.5*_+")"}).transform("rotateY(0deg)"):t.ashadow.hide(),t.bshadow.css({opacity:1-_}),T?t.bshadow.parent()[0]!=t.wrapper[0]&&t.bshadow.appendTo(t.wrapper):t.bshadow.parent()[0]!=t.fpage[0]&&t.bshadow.appendTo(t.fpage),A(t.bshadow,y(100*p,0),y(100*(1-p),0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var C,N,S,P,M,E,j,F=this,D=0,O=y(0,0),L=y(0,0),B=y(0,0),I=h._foldingPage.call(this),z=o.opts.acceleration,W=t.wrapper.height(),H="t"==e.corner.substr(0,1),R="l"==e.corner.substr(1,1),q=function(){var t=y(0,0),r=y(0,0);t.x=s.x?s.x-e.x:e.x,t.y=n?s.y?s.y-e.y:e.y:0,r.x=R?l-t.x/2:e.x+t.x/2,r.y=t.y/2;var u=i-Math.atan2(t.y,t.x),d=u-Math.atan2(r.y,r.x),p=Math.max(0,Math.sin(d)*Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2)));if(D=u/a*180,B=y(p*Math.sin(u),p*Math.cos(u)),u>i&&(B.x=B.x+Math.abs(B.y*t.y/t.x),B.y=0,Math.round(B.x*Math.tan(a-u))<c))return e.y=Math.sqrt(Math.pow(c,2)+2*r.x*t.x),H&&(e.y=c-e.y),q();if(u>i){var f=a-u,g=W-c/Math.sin(f);O=y(Math.round(g*Math.cos(f)),Math.round(g*Math.sin(f))),R&&(O.x=-O.x),H&&(O.y=-O.y)}C=Math.round(B.y/Math.tan(u)+B.x);var m=l-C,v=m*Math.cos(2*u),b=m*Math.sin(2*u);if(L=y(Math.round(R?m-v:C+v),Math.round(H?b:c-b)),o.opts.gradients){M=m*Math.sin(u);var x=h._c2.call(F,e.corner),w=Math.sqrt(Math.pow(x.x-e.x,2)+Math.pow(x.y-e.y,2))/l;j=Math.sin(i*(w>1?2-w:w)),E=Math.min(w,1),P=M>100?(M-100)/M:0,N=y(M*Math.sin(u)/l*100,M*Math.cos(u)/c*100),h._backGradient.call(F)&&(S=y(1.2*M*Math.sin(u)/l*100,1.2*M*Math.cos(u)/c*100),R||(S.x=100-S.x),H||(S.y=100-S.y))}return B.x=Math.round(B.x),B.y=Math.round(B.y),!0},V=function(e,n,r,a){var i=["0","auto"],s=(l-W)*r[0]/100,u=(c-W)*r[1]/100,d={left:i[n[0]],top:i[n[1]],right:i[n[2]],bottom:i[n[3]]},p={},f=90!=a&&-90!=a?R?-1:1:0,g=r[0]+"% "+r[1]+"%";F.css(d).transform(x(a)+b(e.x+f,e.y,z),g),t.fpage.css(d).transform(x(a)+b(e.x+L.x-O.x-l*r[0]/100,e.y+L.y-O.y-c*r[1]/100,z)+x((180/a-2)*a),g),t.wrapper.transform(b(-e.x+s-f,-e.y+u,z)+x(-a),g),t.fwrapper.transform(b(-e.x+O.x+s,-e.y+O.y+u,z)+x(-a),g),o.opts.gradients&&(r[0]&&(N.x=100-N.x),r[1]&&(N.y=100-N.y),p["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*j+")",I.css(p),A(t.ashadow,y(R?100:0,H?0:100),y(N.x,N.y),[[P,"rgba(0,0,0,0)"],[.8*(1-P)+P,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),h._backGradient.call(F)&&A(t.bshadow,y(R?0:100,H?0:100),y(S.x,S.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*E+")"],[1,"rgba(0,0,0,0)"]],3))};switch(e.corner){case"l":case"r":break;case"tl":e.x=Math.max(e.x,1),q(),V(B,[1,0,0,1],[100,0],D);break;case"tr":e.x=Math.min(e.x,l-1),q(),V(y(-B.x,B.y),[0,0,0,1],[0,0],-D);break;case"bl":e.x=Math.max(e.x,1),q(),V(y(B.x,-B.y),[1,1,0,0],[100,100],-D);break;case"br":e.x=Math.min(e.x,l-1),q(),V(y(-B.x,-B.y),[0,1,1,0],[0,100],D)}}t.point=e},_moveFoldingPage:function(e){var t=this.data().f;if(t){var n=t.opts.turn,r=n.data(),a=r.pagePlace;if(e){var i=t.opts.next;if(a[i]!=t.opts.page)t.folding&&h._moveFoldingPage.call(this,!1),h._foldingPage.call(this).appendTo(t.fpage),a[i]=t.opts.page,t.folding=i;n.turn("update")}else if(t.folding){if(r.pages[t.folding]){var o=r.pages[t.folding].data().f;r.pageObjs[t.folding].appendTo(o.wrapper)}else r.pageWrap[t.folding]&&r.pageObjs[t.folding].appendTo(r.pageWrap[t.folding]);t.folding in a&&(a[t.folding]=t.folding),delete t.folding}}},_showFoldedPage:function(e,t){var n=h._foldingPage.call(this),r=this.data(),a=r.f,i=a.visible;if(n){if(!i||!a.point||a.point.corner!=e.corner){var o="hover"==a.status||"peel"==a.status||a.opts.turn.data().mouseAction?e.corner:null;if(i=!1,"prevented"==k("start",this,[a.opts,o]))return!1}if(t){var s=this,l=a.point&&a.point.corner==e.corner?a.point:h._c.call(this,e.corner,1);this.animatef({from:[l.x,l.y],to:[e.x,e.y],duration:500,frame:function(t){e.x=Math.round(t[0]),e.y=Math.round(t[1]),h._fold.call(s,e)}})}else h._fold.call(this,e),r.effect&&!r.effect.turning&&this.animatef(!1);if(!i)switch(a.effect){case"hard":a.visible=!0,h._moveFoldingPage.call(this,!0),a.fpage.show(),a.opts.shadows&&a.bshadow.show();break;case"sheet":a.visible=!0,a.fparent.show().data().flips++,h._moveFoldingPage.call(this,!0),a.fwrapper.show(),a.bshadow&&a.bshadow.show()}return!0}return!1},hide:function(){var e=this.data().f,t=e.opts.turn.data(),n=h._foldingPage.call(this);switch(e.effect){case"hard":t.opts.gradients&&(e.bshadowLoc=0,e.bshadow.remove(),e.ashadow.hide()),e.wrapper.transform(""),e.fpage.hide();break;case"sheet":0==--e.fparent.data().flips&&e.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),e.wrapper.transform(""),e.fwrapper.hide(),e.bshadow&&e.bshadow.hide(),n.transform("")}return e.visible=!1,this},hideFoldedPage:function(e){var t=this.data().f;if(t.point){var n=this,r=t.point,a=function(){t.point=null,t.status="",n.flip("hide"),n.trigger("end",[t.opts,!1])};if(e){var i=h._c.call(this,r.corner),o="t"==r.corner.substr(0,1)?Math.min(0,r.y-i.y)/2:Math.max(0,r.y-i.y)/2,s=y(r.x,r.y+o),l=y(i.x,i.y-o);this.animatef({from:0,to:1,frame:function(e){var t=v(r,s,l,i,e);r.x=t.x,r.y=t.y,h._fold.call(n,r)},complete:a,duration:800,hiding:!0})}else this.animatef(!1),a()}},turnPage:function(e){var t=this,n=this.data().f,r=n.opts.turn.data();e={corner:n.corner?n.corner.corner:e||h._cAllowed.call(this)[0]};var a=n.point||h._c.call(this,e.corner,n.opts.turn?r.opts.elevation:0),i=h._c2.call(this,e.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(n){var r=v(a,a,i,i,n);e.x=r.x,e.y=r.y,h._showFoldedPage.call(t,e)},complete:function(){t.trigger("end",[n.opts,!0])},duration:r.opts.duration,turning:!0}),n.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(e){var t=this.data().f,n=t.opts.turn;if(!t.corner&&!t.disabled&&!this.flip("isTurning")&&t.opts.page==n.data().pagePlace[t.opts.page]){if(t.corner=h._isIArea.call(this,e),t.corner&&h._foldingPage.call(this))return this.trigger("pressed",[t.point]),h._showFoldedPage.call(this,t.corner),!1;t.corner=null}},_eventMove:function(e){var t=this.data().f;if(!t.disabled)if(e=o?e.originalEvent.touches:[e],t.corner){var n=t.parent.offset();t.corner.x=e[0].pageX-n.left,t.corner.y=e[0].pageY-n.top,h._showFoldedPage.call(this,t.corner)}else if(t.hover&&!this.data().effect&&this.is(":visible")){var r=h._isIArea.call(this,e[0]);if(r){if("sheet"==t.effect&&2==r.corner.length||"hard"==t.effect){t.status="hover";var a=h._c.call(this,r.corner,t.opts.cornerSize/2);r.x=a.x,r.y=a.y,h._showFoldedPage.call(this,r,!0)}}else"hover"==t.status&&(t.status="",h.hideFoldedPage.call(this,!0))}},_eventEnd:function(){var e=this.data().f,t=e.corner;!e.disabled&&t&&"prevented"!=k("released",this,[e.point||t])&&h.hideFoldedPage.call(this,!0),e.corner=null},disable:function(e){return h.setData.call(this,{disabled:e}),this},hover:function(e){return h.setData.call(this,{hover:e}),this},peel:function(t,n){var r=this.data().f;if(t){if(-1==e.inArray(t,l.all))throw T("Corner "+t+" is not permitted");if(-1!=e.inArray(t,h._cAllowed.call(this))){var a=h._c.call(this,t,r.opts.cornerSize/2);r.status="peel",h._showFoldedPage.call(this,{corner:t,x:a.x,y:a.y},n)}}else r.status="",h.hideFoldedPage.call(this,n);return this}};function g(e,t,n){if(n[0]&&"object"!=typeof n[0]){if(t[n[0]])return t[n[0]].apply(e,Array.prototype.slice.call(n,1));throw T(n[0]+" is not a method or property")}return t.init.apply(e,n)}function m(e,t,n,r){return{css:{position:"absolute",top:e,left:t,overflow:r||"hidden",zIndex:n||"auto"}}}function v(e,t,n,r,a){var i=1-a,o=i*i*i,s=a*a*a;return y(Math.round(o*e.x+3*a*i*i*t.x+3*a*a*i*n.x+s*r.x),Math.round(o*e.y+3*a*i*i*t.y+3*a*a*i*n.y+s*r.y))}function y(e,t){return{x:e,y:t}}function b(e,n,r){return t&&r?" translate3d("+e+"px,"+n+"px, 0px) ":" translate("+e+"px, "+n+"px) "}function x(e){return" rotate("+e+"deg) "}function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function _(){for(var e=["Moz","Webkit","Khtml","O","ms"],t=e.length,n="";t--;)e[t]+"Transform"in document.body.style&&(n="-"+e[t].toLowerCase()+"-");return n}function A(e,t,n,a,i){var o,s=[];if("-webkit-"==r){for(o=0;o<i;o++)s.push("color-stop("+a[o][0]+", "+a[o][1]+")");e.css({"background-image":"-webkit-gradient(linear, "+t.x+"% "+t.y+"%,"+n.x+"% "+n.y+"%, "+s.join(",")+" )"})}else{t={x:t.x/100*e.width(),y:t.y/100*e.height()};var l=(n={x:n.x/100*e.width(),y:n.y/100*e.height()}).x-t.x,c=n.y-t.y,u=Math.atan2(c,l),d=u-Math.PI/2,p=Math.abs(e.width()*Math.sin(d))+Math.abs(e.height()*Math.cos(d)),f=Math.sqrt(c*c+l*l),h=y(n.x<t.x?e.width():0,n.y<t.y?e.height():0),g=Math.tan(u),m=-1/g,v=(m*h.x-h.y-g*t.x+t.y)/(m-g),b={x:v,y:m*v-m*h.x+h.y},x=Math.sqrt(Math.pow(b.x-t.x,2)+Math.pow(b.y-t.y,2));for(o=0;o<i;o++)s.push(" "+a[o][1]+" "+100*(x+f*a[o][0])/p+"%");e.css({"background-image":r+"linear-gradient("+-u+"rad,"+s.join(",")+")"})}}function k(t,n,r){var a=e.Event(t);return n.trigger(a,r),a.isDefaultPrevented()?"prevented":a.isPropagationStopped()?"stopped":""}function T(e){function t(e){this.name="TurnJsError",this.message=e}return t.prototype=new Error,t.prototype.constructor=t,new t(e)}function C(e){var t={top:0,left:0};do{t.left+=e.offsetLeft,t.top+=e.offsetTop}while(e=e.offsetParent);return t}window.requestAnim=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},e.extend(e.fn,{flip:function(){return g(e(this[0]),h,arguments)},turn:function(){return g(e(this[0]),f,arguments)},transform:function(e,t){var n={};return t&&(n[r+"transform-origin"]=t),n[r+"transform"]=e,this.css(n)},animatef:function(t){var n=this.data();if(n.effect&&n.effect.stop(),t){t.to.length||(t.to=[t.to]),t.from.length||(t.from=[t.from]);for(var r=[],a=t.to.length,i=!0,o=this,s=(new Date).getTime(),l=function(){if(n.effect&&i){for(var e=[],c=Math.min(t.duration,(new Date).getTime()-s),u=0;u<a;u++)e.push(n.effect.easing(1,c,t.from[u],r[u],t.duration));t.frame(1==a?e[0]:e),c==t.duration?(delete n.effect,o.data(n),t.complete&&t.complete()):window.requestAnim(l)}},c=0;c<a;c++)r.push(t.to[c]-t.from[c]);n.effect=e.extend({stop:function(){i=!1},easing:function(e,t,n,r,a){return r*Math.sqrt(1-(t=t/a-1)*t)+n}},t),this.data(n),l()}else delete n.effect}}),e.isTouch=o,e.mouseEvents=s,e.cssPrefix=_,e.cssTransitionEnd=function(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e]},e.findPos=C}(jQuery);const J=n("BOOK_DATA",{grades:[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5},{text:"六年级",value:6},{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}],bookTypes:{LAST:"上册",NEXT:"下册"}});n("default",i({name:"courseware-list",setup(){m();const n=c(!1),a=c([]),i=c([]),d=()=>{_({api:"goBack"})},h=l({currentGradeNum:null,bookVersionId:null,page:1,rows:999,type:"COURSEWARE"});A((()=>J.grades.map(((e,t)=>r(r({},e),{},{color:h.currentGradeNum===t?"var(--van-primary-color)":"",className:h.currentGradeNum===t?"fontBlod":""})))));const y=c(!1),b=l({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),x=function(){var e=o((function*(){try{const e=v.user.data.schoolInfos,t=e.length>0?e[0].tenantId:null;if(t){const{data:e}=yield N({id:t});a.value=e.bookVersionList||[],i.value=W(a.value)}}catch(e){}}));return function(){return e.apply(this,arguments)}}(),w=function(){var n=o((function*(){var n;b.loading=!0;const{bookVersionId:a,currentGradeNum:i}=h,o=t(h,e),s=yield S(r(r({},o),{},{bookVersionId:-1==a?null:a,currentGradeNum:i||""}));200===(null==s?void 0:s.code)&&Array.isArray(null==s||null===(n=s.data)||void 0===n?void 0:n.rows)&&(b.list=s.data.rows.map((e=>(e.load=!1,e.key=Date.now()+e.id,e)))),b.loading=!1,y.value=!0}));return function(){return n.apply(this,arguments)}}(),O=function(){var e=o((function*(){var e,t,n;b.loading=!0;const r=yield P({clientType:"STUDENT",userId:null===(e=v.user)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.id,page:h.page,rows:h.rows,bookVersionId:-1!=h.bookVersionId?h.bookVersionId:"",currentGradeNum:h.currentGradeNum?h.currentGradeNum:""});200===(null==r?void 0:r.code)&&Array.isArray(null==r||null===(n=r.data)||void 0===n?void 0:n.rows)&&(b.list=r.data.rows.map((e=>(e.name=`${e.name}`,e.load=!1,e.favoriteFlag=!0,e.key=Date.now()+e.id,e)))),b.loading=!1}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=o((function*(){var e;b.loading=!0;const t=yield M({bookVersionId:h.bookVersionId?h.bookVersionId:"",page:h.page,rows:h.rows,currentGradeNum:h.currentGradeNum?h.currentGradeNum:""});200===(null==t?void 0:t.code)&&Array.isArray(null==t||null===(e=t.data)||void 0===e?void 0:e.rows)&&(b.list=t.data.rows.map((e=>(e.load=!1,e.key=Date.now()+e.id,e)))),b.loading=!1,y.value=!0}));return function(){return e.apply(this,arguments)}}(),B=()=>{"all"===b.tab&&w(),"favorite"===b.tab&&O(),"course"===b.tab&&L()};u((()=>{x(),B()}));const I=function(){var e=o((function*(e){e.favoriteFlag?yield E({lessonCoursewareId:e.id}):(yield j({lessonCoursewareId:e.id}),"favorite"===b.tab&&B())}));return function(t){return e.apply(this,arguments)}}();let z=null;const K=function(){var e=o((function*(e){if("course"===b.tab){var t;const n=yield F(e.id);if(200!=(null==n?void 0:n.code)||!Array.isArray(null==n||null===(t=n.data)||void 0===t?void 0:t.lessonList))return void C({title:"提示",message:"课程教材已更新,是否重新加载?"}).then((()=>{B()})).catch((()=>{}));b.details=n.data.lessonList||[],b.bookData=n.data,console.log("🚀 ~ data.details course:",b.details)}else{var n;const t=yield D(e.id);200==(null==t?void 0:t.code)&&Array.isArray(null==t||null===(n=t.data)||void 0===n?void 0:n.lessonList)&&(b.details=t.data.lessonList||[],b.bookData=t.data,console.log("🚀 ~ data.details:",b.details))}Q(e.id),$((()=>{b.showBook=!0}))}));return function(t){return e.apply(this,arguments)}}(),Q=e=>{const t=document.querySelector(`[data-id="${e}"]`);if(!t)return;const n=t.getBoundingClientRect();b.book=n},$=e=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e()}))}))},ee=function(){var e=o((function*(e){yield K(e)}));return function(t){return e.apply(this,arguments)}}();return()=>s("div",{class:X.container},[s("div",{class:X.head,style:{opacity:b.showBook?0:""}},[s("div",{class:X.back,onClick:d},[s("img",{src:U},null)]),s(R,{class:X.tabs,active:b.tab,"onUpdate:active":e=>b.tab=e,onChange:()=>("course"===b.tab?i.value=[...W(a.value),{bookVersionId:-1,bookVersionName:"自定义"}]:i.value=W(a.value),void B())},{default:()=>[s(q,{title:"全部教材",name:"all"},null),s(q,{title:"课程教材",name:"course"},null),s(q,{name:"favorite"},{title:()=>s("div",{id:"courseware-2"},[f("我的收藏")])})]}),s(g,k({class:[X.downBtn,"course"!=b.tab&&h.bookVersionId>0||"course"==b.tab&&h.bookVersionId||h.currentGradeNum?X.activeBtn:""],round:!0,size:"small",onClick:()=>n.value=!0},{id:"courseware-3"}),{default:()=>[f("筛选"),s("svg",{class:[X.icon,n.value?X.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[s("title",null,[f("三角形")]),s("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[s("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[s("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[s("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[s("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)])])])])])]})]),s("div",{class:X.content},[s("div",{class:[X.wrap,b.list.length<=0&&!b.loading?X.emtpyWrap:""]},[b.list.map(((e,t)=>s("div",{class:[X.wrapItem,b.bookData.id===e.id&&b.showBook?X.wrapItemHide:""],key:e.key,onClick:()=>ee(e)},[s("div",{class:X.item},[s(H,k({"data-id":e.id},{id:0==t?"courseware-0":""},{class:[X.cover,e.load?X.loaded:""],objectFit:"cover",src:e.coverImg,onLoad:()=>{e.load=!0},onError:()=>{e.load=!0}}),null)]),s("div",{class:X.name},[e.name]),!b.loading&&"course"!==b.tab&&s("div",{id:0===t?"courseware-1":"",class:X.favoriteBtn,onClick:t=>{t.stopPropagation(),e.favoriteFlag=!e.favoriteFlag,((e,t=300)=>{z&&clearTimeout(z),z=setTimeout(e,t)})((()=>I(e)))}},[s(G,{isFavorite:e.favoriteFlag},null)])]))),b.list.length<=0&&!b.loading&&s(T,{image:"list",description:"暂无数据"},null)])]),s(Y,{show:b.showBook,bookData:b.bookData,tab:b.tab,rect:b.book,onClose:()=>{b.showBook=!1}},null),y.value?s(Z,null,null):null,s(p,{show:n.value,"onUpdate:show":e=>n.value=e,class:X.popupContainer},{default:()=>[s("div",{class:X.popoverContainer},[s("div",{class:X.searchList},[s("div",{class:X.popoverTitle},[f("教材版本")]),s("div",{class:[X.popupList,X.versionList]},[i.value.map((e=>s(V,{plain:h.bookVersionId==e.bookVersionId,round:!0,onClick:()=>h.bookVersionId=e.bookVersionId},{default:()=>[e.bookVersionName]})))]),s("div",{class:X.popoverTitle},[f("选择年级")]),s("div",{class:[X.popupList,X.versionList]},[J.grades.map((e=>s(V,{plain:h.currentGradeNum===e.value,round:!0,onClick:()=>h.currentGradeNum=e.value},{default:()=>[e.text]})))])]),s("div",{class:X.btnGroup},[s(g,{round:!0,onClick:()=>{h.bookVersionId=null,h.currentGradeNum=null}},{default:()=>[f("重置")]}),s(g,{round:!0,class:X.btnSure,onClick:()=>{B(),n.value=!1}},{default:()=>[f("确认")]})])])]})])}}))}}}))}();