index-legacy-14cb6a62.js 160 KB

1
  1. !function(){const e=["bookVersionId","currentGradeNum"];function t(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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){i(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 i(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 a(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)}))}}System.register(["./index-legacy-e1ea41b7.js","./api-legacy-8d3894b6.js","./api-legacy-ab9dabcf.js","./deep-clone-legacy-0f45d9f6.js","./Image-legacy-1c337f42.js","./index-legacy-23b68ef7.js","./index-legacy-f9c3c6d2.js","./fade-in-scale-up.cssr-legacy-9162e935.js","./use-tab-status-legacy-478dc445.js","./index-legacy-c2783a73.js"],(function(n,i){"use strict";var a,s,l,c,u,d,p,f,h,g,m,v,y,b,w,x,A,_,k,T,C,N,j,S,M,E,P,D,O,L,F,I,B,W,z,H,R,q,V,U;return{setters:[e=>{a=e.d,s=e.a,l=e.q,c=e.M,u=e.x,d=e.r,p=e.y,f=e.am,h=e.w,g=e.F,m=e.z,v=e.E,y=e.W,b=e.a6,w=e.a8,x=e.V,A=e.A,_=e.C,k=e.e,T=e.h,C=e.a1,N=e.Q},e=>{j=e.a,S=e.b,M=e.c,E=e.d,P=e.e,D=e.f,O=e.g,L=e.h,F=e.i},e=>{I=e.g,B=e.s,W=e.a,z=e.b},e=>{H=e.d},e=>{R=e.N},e=>{q=e.T,V=e.a},e=>{U=e.T},null,null,null],execute:function(){var G=document.createElement("style");G.textContent="._container_1mit6_1{position:fixed;left:0;top:0;width:100vw;height:100vh;overflow:hidden;background:url("+new URL("icon_bg-f94bd665.png",i.meta.url).href+') no-repeat center center / cover;display:flex;flex-direction:column}._head_1mit6_12{position:relative;display:flex;align-items:center;justify-content:space-between;padding:.50667rem .61333rem .21333rem 1.09333rem;transition:opacity .3s ease-in-out}._head_1mit6_12 ._back_1mit6_20 img{display:block}._head_1mit6_12 ._tabs_1mit6_23 .van-tab{color:rgba(255,255,255,.9);font-size:.4rem;padding:0 .42667rem}._head_1mit6_12 ._tabs_1mit6_23 .van-tab.van-tab--active{color:#fff}._head_1mit6_12 ._tabs_1mit6_23 .van-tabs__nav.van-tabs__nav--line{background:transparent}._head_1mit6_12 ._tabs_1mit6_23 .van-tabs__line{background:#fff;width:.48rem;height:.10667rem}._downBtn_1mit6_39{width:2.24rem;height:.85333rem;background:#f8f9fc;border-radius:.42667rem;border:none;padding:0;display:flex;justify-content:center;align-items:center}._downBtn_1mit6_39._activeBtn_1mit6_50 ._icon_1mit6_50{color:var(--van-primary-color)!important}._downBtn_1mit6_39._activeBtn_1mit6_50 .van-button__text{color:var(--van-primary-color)}._downBtn_1mit6_39 .van-button__content{width:100%}._downBtn_1mit6_39 .van-button__text{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:.34667rem;color:#333;font-weight:400}._downBtn_1mit6_39 ._icon_1mit6_50{width:.21333rem;height:.13333rem;margin-left:.10667rem;transition:transform .2s ease}._downBtn_1mit6_39 ._iconUp_1mit6_75{color:var(--van-primary-color);transform:rotate(180deg);transition:transform .2s ease}._popover_1mit6_80{width:2.21333rem;border:none}._popover_1mit6_80 .van-popover__action{display:flex;justify-content:center;align-items:center;padding:0;width:100%;height:.96rem;color:#999;font-size:.34667rem}._popover_1mit6_80 .van-popover__content{max-height:70vh;overflow-x:hidden;overflow-y:auto}._content_1mit6_99{flex:1;overflow-y:hidden;overflow-x:auto;display:flex}._content_1mit6_99 ._wrap_1mit6_105{position:relative;display:flex;height:100%;padding:.53333rem 1.68rem 0}._content_1mit6_99 ._wrap_1mit6_105._emtpyWrap_1mit6_111{width:100%}._content_1mit6_99 .van-empty__description{font-size:.37333rem;color:#fff}._content_1mit6_99 .van-empty__image{width:5.33333rem;height:5.33333rem}._wrapItem_1mit6_122{position:relative;width:4.10667rem;display:flex;flex-direction:column;align-items:center;padding:0 .42667rem;flex-shrink:0;z-index:1}._wrapItem_1mit6_122 ._item_1mit6_132{position:relative;margin-bottom:.4rem;width:100%;height:4.53333rem;background-color:#edeff2;box-shadow:0 .13333rem .37333rem rgba(0,0,0,.4)}._wrapItem_1mit6_122 ._item_1mit6_132 img{position:absolute}._wrapItem_1mit6_122 ._item_1mit6_132:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._wrapItem_1mit6_122 ._item_1mit6_132:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._wrapItem_1mit6_122 ._name_1mit6_163{font-size:.29333rem;font-weight:400;color:#fff;line-height:.42667rem;text-align:center}._wrapItem_1mit6_122 ._favoriteBtn_1mit6_170{position:absolute;top:3.6rem;right:.53333rem;z-index:3}._containerImg_1mit6_176{position:relative;display:block;width:100%;height:4.53333rem}._containerImg_1mit6_176:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._containerImg_1mit6_176:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._cover_1mit6_202{position:relative;z-index:3;display:block;width:100%;height:4.53333rem;background-color:#edeff2;background-image:url('+new URL("icon_default-c2fa566e.svg",i.meta.url).href+');background-repeat:no-repeat;background-position:center center}._cover_1mit6_202: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_1mit6_202 img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-in-out}._cover_1mit6_202._loaded_1mit6_232 img{opacity:1}._book_1mit6_235{position:fixed;top:50%;left:50%;width:55vw;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_1mit6_235 ._bookWrap_1mit6_249{height:60vh;overflow-y:auto}._book_1mit6_235 ._bookWrap_1mit6_249 ul{list-style:circle;padding:.26667rem 1.06667rem}._book_1mit6_235._show_1mit6_257{visibility:visible;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}._popupContainer_1mit6_262{background:#ffffff;border-radius:.32rem;width:7.94667rem;padding-top:.32rem}._popupContainer_1mit6_262 ._searchList_1mit6_268{padding:0 0 0 .29333rem;max-height:58vh;overflow-x:hidden;overflow-y:auto}._popupContainer_1mit6_262 ._popoverTitle_1mit6_274{display:flex;align-items:center;font-size:.37333rem;font-weight:600;color:#333}._popupContainer_1mit6_262 ._popoverTitle_1mit6_274:before{content:" ";display:inline-block;width:.10667rem;height:.29333rem;background:#2aa4fe;border-radius:.05333rem;margin-right:.16rem}._popupContainer_1mit6_262 ._popupList_1mit6_290{display:flex;flex-flow:wrap;justify-content:flex-start;padding-top:.29333rem;padding-bottom:.37333rem}._popupContainer_1mit6_262 ._popupList_1mit6_290 .van-tag{padding:.18667rem .64rem;height:.8rem;font-size:.32rem;background:#f6f6f6;border:none;color:#333;margin-right:.21333rem;margin-bottom:.24rem}._popupContainer_1mit6_262 ._popupList_1mit6_290 .van-tag--plain{background:rgba(42,164,254,.08);border:none;color:#2aa4fe}._popupContainer_1mit6_262 ._btnGroup_1mit6_312{border:.02667rem solid #f2f2f2;padding:.42667rem .32rem;display:flex;align-items:center;justify-content:space-between}._popupContainer_1mit6_262 ._btnGroup_1mit6_312 .van-button{font-size:.4rem;color:#333;line-height:.58667rem;padding:0 1.28rem;height:.98667rem;font-weight:400}._popupContainer_1mit6_262 ._btnGroup_1mit6_312 ._btnSure_1mit6_327{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_f8oe1_1{position:fixed;left:0;top:0;right:0;bottom:0;inset:0;z-index:100;padding-top:10vh}._book_f8oe1_1 ._back_f8oe1_11{position:absolute;left:1.09333rem;top:.64rem}._book_f8oe1_1._bookHide_f8oe1_16{visibility:hidden;pointer-events:none;opacity:0}._book_f8oe1_1 .bookWrap{margin:0 auto}._book_f8oe1_1 .animated{transition:margin-left .2s ease-in-out}._book_f8oe1_1 .page{background:white}._book_f8oe1_1 .shadow{box-shadow:0 0 .53333rem rgba(0,0,0,.4)}._book_f8oe1_1 .page-wrapper{perspective:53.33333rem}._wrap_f8oe1_36{position:relative;height:100%;overflow:hidden;background-color:#ffd8a1;width:calc(100% + .02667rem)}._wrap_f8oe1_36:before{content:"";position:absolute;left:.26667rem;right:.26667rem;top:.26667rem;bottom:.26667rem;background-color:#fff;z-index:1}._wrap_f8oe1_36 ._wrapItem_f8oe1_53{position:relative;padding:.53333rem;height:100%;overflow:hidden;z-index:2}._wrap_f8oe1_36 ._item_f8oe1_60{display:flex;font-size:.32rem;font-weight:600;color:#333;line-height:.53333rem;margin:.53333rem 0;word-break:break-all}._wrap_f8oe1_36 ._name_f8oe1_69{width:100%;display:flex;flex-direction:row;align-items:center;overflow:hidden}._wrap_f8oe1_36 ._des_f8oe1_76{line-height:.42667rem;font-size:.32rem;font-weight:400}._wrap_f8oe1_36 ._icon_f8oe1_81{width:.53333rem;height:.53333rem;margin-right:.16rem}._wrap_f8oe1_36 ._last_f8oe1_86{font-size:.32rem;color:#ff5a56;margin-left:.16rem;font-weight:400}.even ._wrap_f8oe1_36{left:-.02667rem}.even ._wrap_f8oe1_36:before{right:0;border-radius:.10667rem 0 0 .10667rem}.even ._wrap_f8oe1_36:after{content:"";position:absolute;right:0;top:0;bottom:0;width:.64rem;background:linear-gradient(to right,rgba(255,255,255,0) 20%,rgba(229,199,156,.4) 100%);z-index:3}.odd ._wrap_f8oe1_36{left:-.02667rem}.odd ._wrap_f8oe1_36:before{left:0;border-radius:0 .10667rem .10667rem 0}.odd ._wrap_f8oe1_36:after{content:"";position:absolute;left:0;top:0;bottom:0;width:.64rem;background:linear-gradient(to right,rgba(255,225,183,.35) 8%,rgba(255,255,255,0) 100%);z-index:2}.odd ._wrapItem_f8oe1_53{padding-left:.53333rem}._preIcon_f8oe1_129{width:.58667rem;height:.34667rem;margin-right:.13333rem}._nameText_f8oe1_134{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n',document.head.appendChild(G);const X={container:"_container_1mit6_1",head:"_head_1mit6_12",back:"_back_1mit6_20",tabs:"_tabs_1mit6_23",downBtn:"_downBtn_1mit6_39",activeBtn:"_activeBtn_1mit6_50",icon:"_icon_1mit6_50",iconUp:"_iconUp_1mit6_75",popover:"_popover_1mit6_80",content:"_content_1mit6_99",wrap:"_wrap_1mit6_105",emtpyWrap:"_emtpyWrap_1mit6_111",wrapItem:"_wrapItem_1mit6_122",item:"_item_1mit6_132",name:"_name_1mit6_163",favoriteBtn:"_favoriteBtn_1mit6_170",containerImg:"_containerImg_1mit6_176",cover:"_cover_1mit6_202",loaded:"_loaded_1mit6_232",book:"_book_1mit6_235",bookWrap:"_bookWrap_1mit6_249",show:"_show_1mit6_257",popupContainer:"_popupContainer_1mit6_262",searchList:"_searchList_1mit6_268",popoverTitle:"_popoverTitle_1mit6_274",popupList:"_popupList_1mit6_290",btnGroup:"_btnGroup_1mit6_312",btnSure:"_btnSure_1mit6_327"},Q=""+new URL("icon_back-b80c2fc2.svg",i.meta.url).href,K=a({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)])}),Y="_book_f8oe1_1",Z="_back_f8oe1_11",J="_bookHide_f8oe1_16",$="_wrap_f8oe1_36",ee="_wrapItem_f8oe1_53",te="_item_f8oe1_60",ne="_name_f8oe1_69",re="_des_f8oe1_76",ie="_icon_f8oe1_81",ae="_preIcon_f8oe1_129",oe="_nameText_f8oe1_134",se=a({name:"the-book",props:{bookData:{type:Object,default:()=>({})},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})},subjectId:{type:[String,Number],default:""}},emits:["close"],setup(e,{emit:t}){var n,r,i,a;l(),console.log(c.user.data.phone);const w="lastTime"+(null!==(n=null===(r=c)||void 0===r||null===(i=r.user)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.phone)&&void 0!==n?n:""),x=u({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem(w),isClick:!1}),A=d(!1),_=d(!1),k=d(0);d();const T=function(){var e=o((function*(){console.log("初始化完成")}));return function(){return e.apply(this,arguments)}}();d(!0);let C=null,N=null;const j=(e=!0)=>{if(A.value=!1,_.value)return;_.value=!0,clearTimeout(N);const n=document.querySelector(".bookWrap");e&&C.turn("page",1),n&&(n.style.transform=x.transform),t("close"),setTimeout((()=>{n.style.transition="",n.style.transform="",x.show=!1,x.list=[],_.value=!1}),1e3)};p(o((function*(){yield T(),f("webViewOnResume",(()=>{x.lastTime=localStorage.getItem(w)}))})));h((()=>e.show),(()=>{e.show&&((()=>{var t;if(null===(t=e.bookData)||void 0===t||!t.lessonList)return;k.value=Math.floor((.8*document.body.clientHeight-40)/50);const n=[];let r=[];for(let i=0;i<e.bookData.lessonList.length;i++){const t=e.bookData.lessonList[i];r.length>=k.value?(n.push([...r]),r=[{name:t.name}]):r.push({name:t.name});for(let e=0;e<t.knowledgeList.length;e++)r.length>=k.value?(n.push([...r]),r=[t.knowledgeList[e]]):r.push(t.knowledgeList[e])}r.length&&n.push(r),x.list=n})(),m((()=>{(()=>{C=window.$("#flipbook");const e=.8*document.body.clientHeight;x.height=e,x.width=e*(210/297)*2,C.turn({autoCenter:!0,duration:1e3,disabled:!0,acceleration:!0,elevation:50,width:x.width,height:x.height,gradients:!0}),C.bind("start",((e,t,n)=>{"tl"!=n&&"tr"!=n||e.preventDefault(),x.isClick&&m((()=>{x.isClick=!1,"tl"==n||"tr"==n?e.preventDefault():C.turn("page",t.next)}))})),C.bind("turned",((e,t,n)=>{m((()=>{A.value=!0}))})),C.bind("turning",((e,t,n)=>{t===C.turn("pages")&&j(!1),1===t&&j(!1)}))})(),requestAnimationFrame((()=>{(()=>{const t=document.querySelector(".bookWrap");if(t){const n=t.getBoundingClientRect(),r=e.rect.width/(n.width/2),i=e.rect.height/n.height,a=`scale3d(${r}, ${i}, 1) translate(${(n.width/2*(r-1)/2+e.rect.x-n.x-n.width/4)/r}px, ${(n.height*(i-1)/2+e.rect.y-n.y)/i}px)`;t.style.transform=x.transform=a,t.style.transition="transform 0s",m((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.style.transition="transform 1s",t.style.transform="",x.show=!0,N=setTimeout((()=>{C.turn("page",2)}),500)}))}))}))}})()}))})))}));return()=>s("div",{class:[Y,x.show?"":J],onClick:()=>j(),onTouchmove:()=>{console.log("sdfds"),x.isClick=!0}},[s("div",{class:Z},[s("img",{src:Q},null)]),s("div",{class:"bookWrap",style:{width:x.width+"px"},onClick:e=>{e.stopPropagation()}},[!!x.list.length&&s("div",{id:"flipbook",class:[x.show&&"animated"]},[s("div",{class:"page"},[s("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),x.list.map((t=>s("div",{class:"page"},[s("div",{class:$},[s("div",{class:ee},[t.map(((t,n)=>s(g,null,[s("div",{class:[te,t.id&&re],onTouchstart:e=>{e.stopPropagation()},onClick:n=>{n.stopPropagation(),(t=>{if(t.id){if(!t.containMaterial)return void v("暂无资源");localStorage.setItem(w,t.id);const n=y.stringify({id:t.id,lessonCoursewareId:t.lessonCoursewareId,courseId:e.bookData.id,lessonCoursewareDetailId:t.lessonCoursewareDetailId,name:t.name,subjectId:e.subjectId,tab:e.tab}),r=location.origin+location.pathname+"#/courseware-play?"+n;console.log("🚀 ~ url:",r),b({api:"openWebView",content:{url:r,orientation:0,isHideTitle:!1,c_orientation:0}})}})(t)},onTouchend:e=>{console.log(e)}},[t.id?s("img",{id:1==n?"coursewareDetail-0":"",class:ie,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:ne,style:{lineHeight:"20Px"}},[x.lastTime===t.id&&s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAaCAYAAADMp76xAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAAGgAAAADSD6qFAAAD9UlEQVRYCdWYaWxUVRTHf29auglUKcqWBlErqGnAAiopFQOiIkGDaY2VuMQ1MfIBP9TGCELEpYgm+MX0iySYCDUtDRJELZA0UAQBjRLROrK1MbG1rZZqy5QJz3Pm9jHzmMfrjDppOcnc5Zy7/N+5Z7l3LAbItm2L3Q1v0/1HOaHQOMLhDEc2JHV6ej+ZmW3kXrWZBQsrLcuyFYelhb1vz1TaO7fT319AwY0wZgxk56ho6KivF7q6IPgzZGQEuSZviTV3frMV0Wx9bTM5OQUUl0Bm1tCB9Nr57FnYvxd6e4MsLZ2atrqkuIqengdE7cMPrH5AejpMnAQ//ZhH22/ZgYjNqhkMN83GaluxKUbxr0DEwdRmB6OGnbBh3WCjEpOvfwP2NSY21hmlGCUYBCLRIBEH6/wdWk470/1rWxx67UrYWhM/rvtPONAEaWnxMj+OYpTIJQaSArIk+JQ+YkArsAdLo5sc/c60c6+EjvYoP7aVlQ0jR8VyLrRTA1iXn3YLvLLGgNbNF9xrNv3he1O/9rKpLy71dBYugueXXyyJ9FMHWJe/uRBWVEL9JzBvPhLn4eB+WPYkLH04AsBVhMPw9KNQOMPFju0kB7irEzZWx86Ptm+dBTNmRvtOa/YdoD+ljzaCxtV77jf9bXXw7WFY/ZbpHzkI587BzNmm71EmBzgUguNBj2WENXmKN9/htrbAzk+NZq8YabiqALV3hxr3QJF8uE+ITQ7whIlik+ud5ZOruzrgBomlZXLkDvWcgayBzBoWzQab4YlnHalnnRxgzyUGYaoTHZajLpJjnl7kHqwabjkl8VXMRLVavckt9+gFPHj/L0tj7rtio3//5V73/Hn4RTR6phu+2GFkAYGjPx/yl/pMTFhUXwPFd8LoXPeUk8eNA5bcBep8GkESoNQC/uYQnBBgi5bEQ9FUnz8ZXlhh7Ljhs/gxHpzUAq4T7aqj6S+WDh2AXZ/Dcy/CiBHG0bZKrO6Q9D8IpQ7wsaPQfExSdLkbgqbjDzbA3ffBTZINlW6bA1Ouh1UV0N5meJco46PE6ZPeQ7vFOdTOLiV3ZjnxuHaL0eys2x0JNO6GD6th/AR47KkoX1svVcLrrxrQa6pg3Hi3fKBn2R9vCjGnOINJ+YZVtljeTBKK/i1t2Sb3Vvm45c9AxUqT/fr64P134MjX8JCk5LJl3rc1fRatXWUuRW++B3ljoyh+bYWvmvotu66mhWuvy6dwuhFqMP8vNGq0ma1hzMloytGUPneeXMSn+a+uqbt2M5Q/7v4oveWdOtFq2bu+rBJjr2CxeLJPSvTfJcVSTSw7tsPYq9cN/0eogm3ae+ERGrl5XFbPfOcwL5c/Uv4BMfRITu69WqwAAAAASUVORK5CYII=",alt:"",class:ae},null),s("div",{class:oe},[" ",t.name])])])])))])])]))),x.list.length%2==1&&s("div",{class:"page",style:{pointerEvents:"none"}},[s("div",{class:$},[s("div",{class:ee},null)])]),s("div",{class:"page"},[s("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)])])])])}}),le=a({name:"courseware-list",emits:["close"],setup(e,{emit:t}){const n=u({box:{},show:!1,steps:[{ele:"",eleRect:{},img:I("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:I("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:I("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:I("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}),i=d(!1),a=d({}),l=function(){var e=o((function*(){try{const t=yield W({guideTag:"guideInfo"});var e;if(t.data)a.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else a.value={};a.value&&a.value.courseware?i.value=!1:i.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();l();const c=()=>{const e=document.getElementById(`courseware-${n.step}`);if(e){var t,r,i,a;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===(i=n.steps[n.step].eleRectPadding)||void 0===i?void 0:i.width)||0,u=(null===(a=n.steps[n.step].eleRectPadding)||void 0===a?void 0:a.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 h()};p((()=>{c(),window.addEventListener("resize",f)}));const f=()=>{c()};w((()=>{window.removeEventListener("resize",f)}));const h=()=>{n.step>=3?m():(n.step=n.step+1,c())},m=function(){var e=o((function*(){a.value?a.value.courseware=!0:a.value={courseware:!0};try{yield z({guideTag:"guideInfo",guideValue:JSON.stringify(a.value)})}catch(e){console.log(e)}console.log("调用list完成"),i.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>s(x,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",B.guidePopup],show:i.value,"onUpdate:show":e=>i.value=e},{default:()=>[s("div",{class:B.content,onClick:()=>h()},[n.step!=n.steps.length-1&&s("div",{class:B.backBtn,onClick:e=>{e.stopPropagation(),m()}},[A("跳过")]),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,i;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===(i=e.eleRect)||void 0===i?void 0:i.top}px`}},[s("img",{class:B.img,style:e.imgStyle,src:e.img},null),s("img",{class:B.iconHead,style:e.handStyle,src:I("indexDot.png")},null),s("div",{class:B.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(g,null,[s(_,{class:[B.btn],round:!0,type:"primary",onClick:()=>m()},{default:()=>[A("完成")]}),s(_,{class:[B.btn,B.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{n.step=0,c()}},{default:()=>[A("再看一遍")]})]):s(_,{class:B.btn,round:!0,type:"primary",onClick:()=>h()},{default:()=>[A("下一步 ("),n.step+1,A("/"),n.steps.length,A(")")]})])])}))])])]})}});/*! 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=j.body,n=E("<"+e+">").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(st||((st=j.createElement("iframe")).frameBorder=st.width=st.height=0),t.appendChild(st),lt&&st.createElement||((lt=(st.contentWindow||st.contentDocument).document).write(("CSS1Compat"===j.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 i(e,t){var n={};return E.each(ht.concat.apply([],ht.slice(0,t)),(function(){n[this]=e})),n}function a(){ut=t}function o(){return setTimeout(a,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,i){n||We.test(e)?r(e,i):l(e+"["+("object"==typeof i||E.isArray(i)?t:"")+"]",i,n,r)}));else if(n||null==t||"object"!=typeof t)r(e,t);else for(var i in t)l(e+"["+i+"]",t[i],n,r)}function c(e,n){var r,i,a=E.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((a[r]?e:i||(i={}))[r]=n[r]);i&&E.extend(!0,e,i)}function u(e,n,r,i,a,o){(o=o||{})[a=a||n.dataTypes[0]]=!0;for(var s,l=e[a],c=0,d=l?l.length:0,p=e===$e;c<d&&(p||!s);c++)"string"==typeof(s=l[c](n,r,i))&&(!p||o[s]?s=t:(n.dataTypes.unshift(s),s=u(e,n,r,i,s,o)));return(p||!s)&&!o["*"]&&(s=u(e,n,r,i,"*",o)),s}function d(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),E.isFunction(n))for(var r,i,a=t.toLowerCase().split(Ke),o=0,s=a.length;o<s;o++)r=a[o],(i=/^\+/.test(r))&&(r=r.substr(1)||"*"),(e[r]=e[r]||[])[i?"unshift":"push"](n)}}function p(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,i="width"===t?Oe:Le;return r>0?("border"!==n&&E.each(i,(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(i,(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(xe,"/*$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,i,a=E._data(e),o=E._data(t,a),s=a.events;if(s)for(n in delete o.handle,o.events={},s)for(r=0,i=s[n].length;r<i;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 w(e){var t=ce.split(" "),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function x(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(ae.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 A(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function _(){return!0}function k(){return!1}function T(e,t,n){var r=t+"defer",i=t+"queue",a=t+"mark",o=E._data(e,r);o&&("queue"===n||!E._data(e,i))&&("mark"===n||!E._data(e,a))&&setTimeout((function(){!E._data(e,i)&&!E._data(e,a)&&(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 i="data-"+n.replace(L,"-$1").toLowerCase();if("string"==typeof(r=e.getAttribute(i))){try{r="true"===r||"false"!==r&&("null"===r?null:E.isNumeric(r)?parseFloat(r):O.test(r)?E.parseJSON(r):r)}catch(P){}E.data(e,n,r)}else r=t}return r}var j=e.document,S=e.navigator,M=e.location,E=function(){function n(){if(!s.isReady){try{j.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var r,i,a,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,w=/(webkit)[ \/]([\w.]+)/,x=/(opera)(?:.*version)?[ \/]([\w.]+)/,A=/(msie) ([\w.]+)/,_=/(mozilla)(?:.*? rv:([\w.]+))?/,k=/-([a-z]|[0-9])/gi,T=/^-ms-/,C=function(e,t){return(t+"").toUpperCase()},N=S.userAgent,M=Object.prototype.toString,E=Object.prototype.hasOwnProperty,P=Array.prototype.push,D=Array.prototype.slice,O=String.prototype.trim,L=Array.prototype.indexOf,F={};return s.fn=s.prototype={constructor:s,init:function(e,n,r){var i,a,o,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&j.body)return this.context=j,this[0]=j.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((i="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?u.exec(e):[null,e,null])&&(i[1]||!n)){if(i[1])return l=(n=n instanceof s?n[0]:n)?n.ownerDocument||n:j,(o=g.exec(e))?s.isPlainObject(n)?(e=[j.createElement(o[1])],s.fn.attr.call(e,n,!0)):e=[l.createElement(o[1])]:e=((o=s.buildFragment([i[1]],[l])).cacheable?s.clone(o.fragment):o.fragment).childNodes,s.merge(this,e);if((a=j.getElementById(i[2]))&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=j,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 D.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)?P.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(),a.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(D.apply(this,arguments),"slice",D.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:P,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,r,i,a,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!==(i=e[n])&&(d&&i&&(s.isPlainObject(i)||(a=s.isArray(i)))?(a?(a=!1,o=r&&s.isArray(r)?r:[]):o=r&&s.isPlainObject(r)?r:{},l[n]=s.extend(d,o,i)):i!==t&&(l[n]=i));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(!j.body)return setTimeout(s.ready,1);if(s.isReady=!0,!0!==e&&--s.readyWait>0)return;a.fireWith(j,[s]),s.fn.trigger&&s(j).trigger("ready").unbind("ready")}},bindReady:function(){if(!a){if(a=s.Callbacks("once memory"),"complete"===j.readyState)return setTimeout(s.ready,1);if(j.addEventListener)j.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",s.ready,!1);else if(j.attachEvent){j.attachEvent("onreadystatechange",o),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(S){}j.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):F[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(j){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 i,a=0,o=e.length,l=o===t||s.isFunction(e);if(r)if(l){for(i in e)if(!1===n.apply(e[i],r))break}else for(;a<o&&!1!==n.apply(e[a++],r););else if(l){for(i in e)if(!1===n.call(e[i],i,e[i]))break}else for(;a<o&&!1!==n.call(e[a],a,e[a++]););return e},trim:O?function(e){return null==e?"":O.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)?P.call(n,e):s.merge(n,e)}return n},inArray:function(e,t,n){var r;if(t){if(L)return L.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,i=0;if("number"==typeof n.length)for(var a=n.length;i<a;i++)e[r++]=n[i];else for(;n[i]!==t;)e[r++]=n[i++];return e.length=r,e},grep:function(e,t,n){var r=[];n=!!n;for(var i=0,a=e.length;i<a;i++)n!==!!t(e[i],i)&&r.push(e[i]);return r},map:function(e,n,r){var i,a,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!=(i=n(e[l],l,r))&&(o[o.length]=i);else for(a in e)null!=(i=n(e[a],a,r))&&(o[o.length]=i);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 i=D.call(arguments,2),a=function(){return e.apply(n,i.concat(D.call(arguments)))};return a.guid=e.guid=e.guid||a.guid||s.guid++,a},access:function(e,n,r,i,a,o){var l=e.length;if("object"==typeof n){for(var c in n)s.access(e,c,n[c],i,a,r);return e}if(r!==t){i=!o&&i&&s.isFunction(r);for(var u=0;u<l;u++)a(e[u],n,i?r.call(e[u],u,a(e[u],n)):r,o);return e}return l?a(e[0],n):t},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=w.exec(e)||x.exec(e)||A.exec(e)||e.indexOf("compatible")<0&&_.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(j);return e},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(e,t){F["[object "+t+"]"]=t.toLowerCase()})),(i=s.uaMatch(N)).browser&&(s.browser[i.browser]=!0,s.browser.version=i.version),s.browser.webkit&&(s.browser.safari=!0),d.test(" ")&&(p=/^[\s\xA0]+/,f=/[\s\xA0]+$/),r=s(j),j.addEventListener?o=function(){j.removeEventListener("DOMContentLoaded",o,!1),s.ready()}:j.attachEvent&&(o=function(){"complete"===j.readyState&&(j.detachEvent("onreadystatechange",o),s.ready())}),"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return s})),s}(),P={};E.Callbacks=function(e){e=e?P[e]||function(e){var t,n,r=P[e]={};for(t=0,n=(e=e.split(/\s+/)).length;t<n;t++)r[e[t]]=!0;return r}(e):{};var n,r,i,a,o,s=[],l=[],c=function(t){var n,r,i,a;for(n=0,r=t.length;n<r;n++)i=t[n],"array"===(a=E.type(i))?c(i):"function"===a&&(!e.unique||!d.has(i))&&s.push(i)},u=function(t,c){for(c=c||[],n=!e.memory||[t,c],r=!0,o=i||0,i=0,a=s.length;s&&o<a;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?a=s.length:n&&!0!==n&&(i=e,u(n[0],n[1]))}return this},remove:function(){if(s)for(var t=arguments,n=0,i=t.length;n<i;n++)for(var l=0;l<s.length&&(t[n]!==s[l]||(r&&l<=a&&(a--,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,i){return l&&(r?e.once||l.push([t,i]):(!e.once||!n)&&u(t,i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d};var D=[].slice;E.extend({Deferred:function(e){var t,n=E.Callbacks("once memory"),r=E.Callbacks("once memory"),i=E.Callbacks("memory"),a="pending",o={resolve:n,reject:r,notify:i},s={done:n.add,fail:r.add,progress:i.add,state:function(){return a},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,i=t[0],a=t[1];E.isFunction(i)?l[e]((function(){(n=i.apply(this,arguments))&&E.isFunction(n.promise)?n.promise().then(r.resolve,r.reject,r.notify):r[a+"With"](this===l?r:this,[n])})):l[e](r[a])}))})).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(){a="resolved"}),r.disable,i.lock).fail((function(){a="rejected"}),n.disable,i.lock),e&&e.call(l,l),l},when:function(e){function t(e){return function(t){o[e]=arguments.length>1?D.call(arguments,0):t,l.notifyWith(c,o)}}function n(e){return function(t){r[e]=arguments.length>1?D.call(arguments,0):t,--s||l.resolveWith(l,r)}}var r=D.call(arguments,0),i=0,a=r.length,o=Array(a),s=a,l=a<=1&&e&&E.isFunction(e.promise)?e:E.Deferred(),c=l.promise();if(a>1){for(;i<a;i++)r[i]&&r[i].promise&&E.isFunction(r[i].promise)?r[i].promise().then(n(i),l.reject,t(i)):--s;s||l.resolveWith(l,r)}else l!==e&&l.resolveWith(l,a?[e]:[]);return c}}),E.support=function(){var e,t,n,r,i,a,o,s,l,c,u,d,p,f,h,g,m=j.createElement("div"),v=j.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=j.createElement("select")).appendChild(j.createElement("option")),i=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"===i.value,optSelected:r.selected,getSetAttribute:"t"!==m.className,enctype:!!j.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,o.noCloneChecked=i.cloneNode(!0).checked,n.disabled=!0,o.optDisabled=!r.disabled;try{delete m.test}catch(G){o.deleteExpando=!1}for(h in!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",(function(){o.noCloneEvent=!1})),m.cloneNode(!0).fireEvent("onclick")),(i=j.createElement("input")).value="t",i.setAttribute("type","radio"),o.radioValue="t"===i.value,i.setAttribute("checked","checked"),m.appendChild(i),(s=j.createDocumentFragment()).appendChild(m.lastChild),o.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="",m.style.width=m.style.paddingLeft="1px",l=j.getElementsByTagName("body")[0],u=j.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=i.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="",j.defaultView&&j.defaultView.getComputedStyle&&((a=j.createElement("div")).style.width="0",a.style.marginRight="0",m.appendChild(a),o.reliableMarginRight=0===(parseInt((j.defaultView.getComputedStyle(a,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,i,a="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",s="visibility:hidden;border:0;",c="style='"+a+"border:5px solid #000;padding:0;'",d="<div "+c+"><div></div></div><table "+c+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";!(l=j.getElementsByTagName("body")[0])||((e=j.createElement("div")).style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(e,l.firstChild),(u=j.createElement("div")).style.cssText=a+s,u.innerHTML=d,e.appendChild(u),n=(t=u.firstChild).firstChild,r=t.nextSibling.firstChild.firstChild,i={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===r.offsetTop},n.style.position="fixed",n.style.top="20px",i.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",t.style.overflow="hidden",t.style.position="relative",i.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,i.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,l.removeChild(e),u=e=null,E.extend(o,i))})),u.innerHTML="",c.removeChild(u),u=s=n=r=l=a=m=i=null,o}(),E.boxModel=E.support.boxModel;var O=/^(?:\{.*\}|\[.*\])$/,L=/([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,i){if(E.acceptData(e)){var a,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&&!i&&!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||(i?u[d]=E.extend(u[d],n):u[d].data=E.extend(u[d].data,n)),a=o=u[d],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[E.camelCase(n)]=r),p&&!o[n]?a.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,i,a;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(i=0,a=t.length;i<a;i++)delete r[t[i]];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,i,a,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=(i=this[0].attributes).length;s<l;s++)0===(a=i[s].name).indexOf("data-")&&(a=E.camelCase(a.substring(5)),N(this[0],a,o[a]));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),i=[r[0],n];t.triggerHandler("setData"+r[1]+"!",i),E.data(this,e,n),t.triggerHandler("changeData"+r[1]+"!",i)})))},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",i=e?0:(E._data(t,r)||1)-1;i?E._data(t,r,i):(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(),i={};"inprogress"===r&&(r=n.shift()),r&&("fx"===t&&n.unshift("inprogress"),E._data(e,t+".run",i),r.call(e,(function(){E.dequeue(e,t)}),i)),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||a.resolveWith(o,[o])}"string"!=typeof e&&(e=t),e=e||"fx";for(var i,a=E.Deferred(),o=this,s=o.length,l=1,c=e+"defer",u=e+"queue",d=e+"mark";s--;)(i=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++,i.add(r));return r(),a.promise()}});var F,I,B,W=/[\n\t\r]/g,z=/\s+/,H=/\r/g,R=/^(?:button|input)$/i,q=/^(?:button|input|object|select|textarea)$/i,V=/^a(?:rea)?$/i,U=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,G=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(j){}}))},addClass:function(e){var t,n,r,i,a,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(z),n=0,r=this.length;n<r;n++)if(1===(i=this[n]).nodeType)if(i.className||1!==t.length){for(a=" "+i.className+" ",o=0,s=t.length;o<s;o++)~a.indexOf(" "+t[o]+" ")||(a+=t[o]+" ");i.className=E.trim(a)}else i.className=e;return this},removeClass:function(e){var n,r,i,a,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(z),r=0,i=this.length;r<i;r++)if(1===(a=this[r]).nodeType&&a.className)if(e){for(o=(" "+a.className+" ").replace(W," "),s=0,l=n.length;s<l;s++)o=o.replace(" "+n[s]+" "," ");a.className=E.trim(o)}else a.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 i,a=0,o=E(this),s=t,l=e.split(z);i=l[a++];)s=r?s:!o.hasClass(i),o[s?"addClass":"removeClass"](i);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(W," ").indexOf(t)>-1)return!0;return!1},val:function(e){var n,r,i,a=this[0];return arguments.length?(i=E.isFunction(e),this.each((function(r){var a,o=E(this);1===this.nodeType&&(null==(a=i?e.call(this,r,o.val()):e)?a="":"number"==typeof a?a+="":E.isArray(a)&&(a=E.map(a,(function(e){return null==e?"":e+""}))),(n=E.valHooks[this.nodeName.toLowerCase()]||E.valHooks[this.type])&&"set"in n&&n.set(this,a,"value")!==t||(this.value=a))}))):a?(n=E.valHooks[a.nodeName.toLowerCase()]||E.valHooks[a.type])&&"get"in n&&(r=n.get(a,"value"))!==t?r:"string"==typeof(r=a.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,i,a=e.selectedIndex,o=[],s=e.options,l="select-one"===e.type;if(a<0)return null;for(n=l?a:0,r=l?a+1:s.length;n<r;n++)if((i=s[n]).selected&&(E.support.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!E.nodeName(i.parentNode,"optgroup"))){if(t=E(i).val(),l)return t;o.push(t)}return l&&!o.length&&s.length?E(s[a]).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,i){var a,o,s,l=e.nodeType;return e&&3!==l&&8!==l&&2!==l?i&&n in E.attrFn?E(e)[n](r):"getAttribute"in e?((s=1!==l||!E.isXMLDoc(e))&&(n=n.toLowerCase(),o=E.attrHooks[n]||(U.test(n)?I:F)),r!==t?null===r?(E.removeAttr(e,n),t):o&&"set"in o&&s&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,""+r),r):o&&"get"in o&&s&&null!==(a=o.get(e,n))?a:null===(a=e.getAttribute(n))?t:a):E.prop(e,n,r):t},removeAttr:function(e,t){var n,r,i,a,o=0;if(1===e.nodeType)for(a=(r=(t||"").split(z)).length;o<a;o++)i=r[o].toLowerCase(),n=E.propFix[i]||i,E.attr(e,i,""),e.removeAttribute(G?i:n),U.test(i)&&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 F&&E.nodeName(e,"button")?F.get(e,t):t in e?e.value:null},set:function(e,t,n){if(F&&E.nodeName(e,"button"))return F.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 i,a,o=e.nodeType;return e&&3!==o&&8!==o&&2!==o?((1!==o||!E.isXMLDoc(e))&&(n=E.propFix[n]||n,a=E.propHooks[n]),r!==t?a&&"set"in a&&(i=a.set(e,r,n))!==t?i:e[n]=r:a&&"get"in a&&null!==(i=a.get(e,n))?i: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,I={get:function(e,n){var r,i=E.prop(e,n);return!0===i||"boolean"!=typeof i&&(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}},G||(B={name:!0,id:!0},F=E.valHooks.button={get:function(e,n){var r;return(r=e.getAttributeNode(n))&&(B[n]?""!==r.nodeValue:r.specified)?r.nodeValue:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=j.createAttribute(n),e.setAttributeNode(r)),r.nodeValue=t+""}},E.attrHooks.tabindex.set=F.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:F.get,set:function(e,t,n){""===t&&(t="false"),F.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 X=/^(?:textarea|input|select)$/i,Q=/^([^\.]*)?(?:\.(.+))?$/,K=/\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(K,"mouseenter$1 mouseleave$1")};E.event={add:function(e,n,r,i,a){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=Q.exec(n[c])||[])[1],p=(u[2]||"").split(".").sort(),m=E.event.special[d]||{},d=(a?m.delegateType:m.bindType)||d,m=E.event.special[d]||{},f=E.extend({type:d,origType:u[1],data:i,handler:r,guid:r.guid,selector:a,namespace:p.join(".")},h),a&&(f.quick=$(a),!f.quick&&E.expr.match.POS.test(a)&&(f.isPositional=!0)),(g=l[d])||((g=l[d]=[]).delegateCount=0,m.setup&&!1!==m.setup.call(e,i,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)),a?g.splice(g.delegateCount++,0,f):g.push(f),E.event.global[d]=!0;e=null}},global:{},remove:function(e,t,n,r){var i,a,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(" "),i=0;i<t.length;i++){if(o=(a=Q.exec(t[i])||[])[1],s=a[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,i,a){if(!i||3!==i.nodeType&&8!==i.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()),(!i||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:"",(a||!i)&&n.preventDefault(),!i){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=i),(r=null!=r?E.makeArray(r):[]).unshift(n),(p=E.event.special[m]||{}).trigger&&!1===p.trigger.apply(i,r))return;if(h=[[i,p.bindType||m]],!a&&!p.noBubble&&!E.isWindow(i)){for(g=p.delegateType||m,u=null,c=i.parentNode;c;c=c.parentNode)h.push([c,g]),u=c;u&&u===i.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(i.ownerDocument,r))&&("click"!==m||!E.nodeName(i,"a"))&&E.acceptData(i)&&d&&i[m]&&("focus"!==m&&"blur"!==m||0!==n.target.offsetWidth)&&!E.isWindow(i)&&((u=i[d])&&(i[d]=null),E.event.triggered=m,i[m](),E.event.triggered=t,u&&(i[d]=u)),n.result}},dispatch:function(n){n=E.event.fix(n||e.event);var r,i,a,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(a=n.target;a!=this;a=a.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(a)>=0:p===t&&(p=s[d]=u.quick?ee(a,u.quick):E(a).is(d)),p&&c.push(u);c.length&&y.push({elem:a,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,i=0;i<l.matches.length&&!n.isImmediatePropagationStopped();i++)u=l.matches[i],(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,i,a,o=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=(r=e.target.ownerDocument||j).documentElement,a=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.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,i=e,a=E.event.fixHooks[e.type]||{},o=a.props?this.props.concat(a.props):this.props;for(e=E.Event(i),n=o.length;n;)e[r=o[--n]]=i[r];return e.target||(e.target=i.srcElement||j),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey===t&&(e.metaKey=e.ctrlKey),a.filter?a.filter(e,i):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 i=E.extend(new E.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?E.event.trigger(i,null,t):E.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},E.event.handle=E.event.dispatch,E.removeEvent=j.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()?_: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=_;var e=this.originalEvent;!e||(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=_;var e=this.originalEvent;!e||(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=_,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,i=e.handleObj;return i.selector,r&&i.origType!==e.type&&(r===this||E.contains(this,r))||(t=e.type,e.type=i.origType,n=i.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(X.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;X.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"),X.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++&&j.addEventListener(e,r,!0)},teardown:function(){0==--n&&j.removeEventListener(e,r,!0)}}})),E.fn.extend({on:function(e,n,r,i,a){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],a);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),!1===i)i=k;else if(!i)return this;return 1===a&&(o=i,i=function(e){return E().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=E.guid++)),this.each((function(){E.event.add(this,e,i,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 i=e.handleObj;return E(e.delegateTarget).off(i.namespace?i.type+"."+i.namespace:i.type,i.selector,i.handler),this}if("object"==typeof e){for(var a in e)this.off(a,n,e[a]);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,i=function(n){var i=(E._data(this,"lastToggle"+e.guid)||0)%r;return E._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};for(i.guid=n;r<t.length;)t[r++].guid=n;return this.click(i)},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,a,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[i]===n){u=r[c.sizset];break}if(1===c.nodeType)if(o||(c[i]=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,a,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[i]===n){u=r[c.sizset];break}if(1===c.nodeType&&!o&&(c[i]=n,c.sizset=s),c.nodeName.toLowerCase()===t){u=c;break}c=c[e]}r[s]=u}}}var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),a=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,i){n=n||[];var a=t=t||j;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(_))&&(_=s[3],A.push(s[1]),s[2])){u=s[3];break}}while(s);if(A.length>1&&g.exec(e))if(2===A.length&&h.relative[A[0]])l=x(A[0]+A[1],t,i);else for(l=h.relative[A[0]]?[t]:p(A.shift(),t);A.length;)e=A.shift(),h.relative[e]&&(e+=A.shift()),l=x(e,l,i);else if(!i&&A.length>1&&9===t.nodeType&&!b&&h.match.ID.test(A[0])&&!h.match.ID.test(A[A.length-1])&&(t=(d=p.find(A.shift(),t,b)).expr?p.filter(d.expr,d.set)[0]:d.set[0]),t)for(l=(d=i?{expr:A.pop(),set:w(i)}:p.find(A.pop(),1!==A.length||"~"!==A[0]&&"+"!==A[0]||!t.parentNode?t:t.parentNode,b)).expr?p.filter(d.expr,d.set):d.set,A.length>0?c=w(l):y=!1;A.length;)m=f=A.pop(),h.relative[f]?m=A.pop():f="",null==m&&(m=t),h.relative[f](c,m,b);else c=A=[];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 w(c,n);return u&&(p(u,a,n,i),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,i,a,o,s,l;if(!e)return[];for(i=0,a=h.order.length;i<a;i++)if(s=h.order[i],(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,i){for(var a,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!=(a=h.leftMatch[s].exec(e))&&a[2]){if(u=h.filter[s],d=a[1],o=!1,a.splice(1,1),"\\"===d.substr(d.length-1))continue;if(y===v&&(v=[]),h.preFilter[s])if(a=h.preFilter[s](a,y,r,v,i,b)){if(!0===a)continue}else o=l=!0;if(a)for(f=0;null!=(c=y[f]);f++)c&&(g=i^(l=u(c,a,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,i="";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)i+=f(e)}else if(3===r||4===r)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(i+=f(n));return i},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),i=n&&!r;r&&(t=t.toLowerCase());for(var a,o=0,s=e.length;o<s;o++)if(a=e[o]){for(;(a=a.previousSibling)&&1!==a.nodeType;);e[o]=i||a&&a.nodeName.toLowerCase()===t?a||!1:a===t}i&&p.filter(t,e,!0)},">":function(e,t){var n,r="string"==typeof t,i=0,a=e.length;if(r&&!d.test(t)){for(t=t.toLowerCase();i<a;i++)if(n=e[i]){var o=n.parentNode;e[i]=o.nodeName.toLowerCase()===t&&o}}else{for(;i<a;i++)(n=e[i])&&(e[i]=r?n.parentNode:n.parentNode===t);r&&p.filter(t,e,!0)}},"":function(t,r,i){var o,s=a++,l=e;"string"==typeof r&&!d.test(r)&&(o=r=r.toLowerCase(),l=n),l("parentNode",r,s,t,o,i)},"~":function(t,r,i){var o,s=a++,l=e;"string"==typeof r&&!d.test(r)&&(o=r=r.toLowerCase(),l=n),l("previousSibling",r,s,t,o,i)}},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]),i=0,a=r.length;i<a;i++)r[i].getAttribute("name")===e[1]&&n.push(r[i]);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,i,a){if(e=" "+e[1].replace(c,"")+" ",a)return e;for(var o,s=0;null!=(o=t[s]);s++)o&&(i^(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]=a++,e},ATTR:function(e,t,n,r,i,a){var o=e[1]=e[1].replace(c,"");return!a&&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,i,a){if("not"===e[1]){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var o=p.filter(e[3],t,n,!0^a);return n||i.push.apply(i,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 i=t[1],a=h.filters[i];if(a)return a(e,n,t,r);if("contains"===i)return(e.textContent||e.innerText||f([e])||"").indexOf(t[3])>=0;if("not"===i){for(var o=t[3],s=0,l=o.length;s<l;s++)if(o[s]===e)return!1;return!0}p.error(i)},CHILD:function(e,t){var n,r,a,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(a=t[0],(o=e.parentNode)&&(o[i]!==a||!e.nodeIndex)){for(s=0,u=o.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++s);o[i]=a}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),i=r+"",a=t[2],o=t[4];return null==r?"!="===a:!a&&p.attr?null!=r:"="===a?i===o:"*="===a?i.indexOf(o)>=0:"~="===a?(" "+i+" ").indexOf(o)>=0:o?"!="===a?i!==o:"^="===a?0===i.indexOf(o):"$="===a?i.substr(i.length-o.length)===o:"|="===a&&(i===o||i.substr(0,o.length+1)===o+"-"):i&&!1!==r},POS:function(e,t,n,r){var i=t[2],a=h.setFilters[i];if(a)return a(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,w=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(j.documentElement.childNodes,0)[0].nodeType}catch(V){w=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 i=e.length;n<i;n++)r.push(e[n]);else for(;e[n];n++)r.push(e[n]);return r}}j.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,i=[],a=[],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;)i.unshift(c),c=c.parentNode;for(c=l;c;)a.unshift(c),c=c.parentNode;n=i.length,r=a.length;for(var u=0;u<n&&u<r;u++)if(i[u]!==a[u])return b(i[u],a[u]);return u===n?b(e,a[u],-1):b(i[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=j.createElement("div"),n="script"+(new Date).getTime(),r=j.documentElement;e.innerHTML="<a name='"+n+"'/>",r.insertBefore(e,r.firstChild),j.getElementById(n)&&(h.find.ID=function(e,n,r){if(void 0!==n.getElementById&&!r){var i=n.getElementById(e[1]);return i?i.id===e[1]||void 0!==i.getAttributeNode&&i.getAttributeNode("id").nodeValue===e[1]?[i]: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=j.createElement("div");e.appendChild(j.createComment("")),e.getElementsByTagName("*").length>0&&(h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var r=[],i=0;n[i];i++)1===n[i].nodeType&&r.push(n[i]);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}(),j.querySelectorAll&&function(){var e=p,t=j.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,i){if(n=n||j,!i&&!p.isXML(n)){var a=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(a&&(1===n.nodeType||9===n.nodeType)){if(a[1])return w(n.getElementsByTagName(t),r);if(a[2]&&h.find.CLASS&&n.getElementsByClassName)return w(n.getElementsByClassName(a[2]),r)}if(9===n.nodeType){if("body"===t&&n.body)return w([n.body],r);if(a&&a[3]){var o=n.getElementById(a[3]);if(!o||!o.parentNode)return w([],r);if(o.id===a[3])return w([o],r)}try{return w(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 w(n.querySelectorAll("[id='"+u+"'] "+t),r)}catch(v){}finally{l||s.removeAttribute("id")}}}return e(t,n,r,i)},e)p[n]=e[n];t=null}}(),function(){var e=j.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(j.createElement("div"),"div"),r=!1;try{t.call(j.documentElement,"[test!='']:sizzle")}catch(E){r=!0}p.matchesSelector=function(e,i){if(i=i.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!p.isXML(e))try{if(r||!h.match.PSEUDO.test(i)&&!/!=/.test(i)){var a=t.call(e,i);if(a||!n||e.document&&11!==e.document.nodeType)return a}}catch(o){}return p(i,null,null,[e]).length>0}}}(),function(){var e=j.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}}(),j.documentElement.contains?p.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:j.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 x=function(e,t,n){for(var r,i=[],a="",o=t.nodeType?[t]:t;r=h.match.PSEUDO.exec(e);)a+=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],i,n);return p.filter(a,i)};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)/,ie=/,/,ae=/^.[^:#\[\.,]*$/,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 i,a,o,s=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++)if(i=s.length,E.find(e,this[t],s),t>0)for(a=i;a<s.length;a++)for(o=0;o<i;o++)if(s[o]===s[a]){s.splice(a--,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(x(this,e,!1),"not",e)},filter:function(e){return this.pushStack(x(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,i=[],a=this[0];if(E.isArray(e)){for(var o=1;a&&a.ownerDocument&&a!==t;){for(n=0;n<e.length;n++)E(a).is(e[n])&&i.push({selector:e[n],elem:a,level:o});a=a.parentNode,o++}return i}var s=se.test(e)||"string"!=typeof e?E(e,t||this.context):0;for(n=0,r=this.length;n<r;n++)for(a=this[n];a;){if(s?s.index(a)>-1:E.find.matchesSelector(a,e)){i.push(a);break}if(!(a=a.parentNode)||!a.ownerDocument||a===t||11===a.nodeType)break}return i=i.length>1?E.unique(i):i,this.pushStack(i,"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(A(n[0])||A(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 i=E.map(this,t,n),a=oe.call(arguments);return ne.test(e)||(r=n),r&&"string"==typeof r&&(i=E.filter(r,i)),i=this.length>1&&!le[e]?E.unique(i):i,(this.length>1||ie.test(r))&&re.test(e)&&(i=i.reverse()),this.pushStack(i,e,a.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 i=[],a=e[n];a&&9!==a.nodeType&&(r===t||1!==a.nodeType||!E(a).is(r));)1===a.nodeType&&i.push(a),a=a[n];return i},nth:function(e,t,n,r){t=t||1;for(var i=0;e&&(1!==e.nodeType||++i!==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,we=/\/(java|ecma)script/i,xe=/^\s*<!(?:\[CDATA\[|\-\-)/,Ae={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,"",""]},_e=w(j);Ae.optgroup=Ae.option,Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,E.support.htmlSerialize||(Ae._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||j).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)||Ae[(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 i,a,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(i){var a=E(this);e[0]=l.call(this,i,n?a.html():t),a.domManip(e,n,r)}));if(this[0]){if(s=l&&l.parentNode,a=1===(o=(i=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(a,"tr");for(var u=0,d=this.length,p=d-1;u<d;u++)r.call(n?b(this[u]):this[u],i.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,i,a,o,s=e[0];return t&&t[0]&&(o=t[0].ownerDocument||t[0]),o.createDocumentFragment||(o=j),1===e.length&&"string"==typeof s&&s.length<512&&o===j&&"<"===s.charAt(0)&&!ve.test(s)&&(E.support.checkClone||!be.test(s))&&!E.support.unknownElems&&ye.test(s)&&(i=!0,(a=E.fragments[s])&&1!==a&&(r=a)),r||(r=o.createDocumentFragment(),E.clean(e,o,r,n)),i&&(E.fragments[s]=a?r:1),{fragment:r,cacheable:i}},E.fragments={},E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){E.fn[e]=function(n){var r=[],i=E(n),a=1===this.length&&this[0].parentNode;if(a&&11===a.nodeType&&1===a.childNodes.length&&1===i.length)return i[t](this[0]),this;for(var o=0,s=i.length;o<s;o++){var l=(o>0?this.clone(!0):this).get();E(i[o])[t](l),r=r.concat(l)}return this.pushStack(r,e,i.selector)}})),E.extend({clone:function(e,t,n){var r,i,a,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),i=m(o),a=0;r[a];++a)i[a]&&v(r[a],i[a]);if(t&&(y(e,o),n))for(r=m(e),i=m(o),a=0;r[a];++a)y(r[a],i[a]);return r=i=null,o},clean:function(e,t,n,r){var i;void 0===(t=t||j).createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||j);for(var a,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=Ae[c]||Ae._default,d=u[0],p=t.createElement("div");for(t===j?_e.appendChild(p):w(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(a=g.length-1;a>=0;--a)E.nodeName(g[a],"tbody")&&!g[a].childNodes.length&&g[a].parentNode.removeChild(g[a])}!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(a=0;a<m;a++)h(o[a]);else h(o);o.nodeType?s.push(o):s=E.merge(s,o)}if(n)for(i=function(e){return!e.type||we.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"),i);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,i=E.cache,a=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=i[n])&&t.events){for(var l in t.events)a[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 i[n]}}});var ke,Te,Ce,Ne=/alpha\([^)]*\)/i,je=/opacity=([^)]*)/,Se=/([A-Z]|^ms)/g,Me=/^-?\d+(?:px)?$/i,Ee=/^-?\d/,Pe=/^([\-+])=([\-+.\de]+)/,De={position:"absolute",visibility:"hidden",display:"block"},Oe=["Left","Right"],Le=["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,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,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&&(a=c.get(e,!1,i))!==t?a:l[n];if("string"===(o=typeof r)&&(a=Pe.exec(r))&&(r=+(a[1]+1)*+a[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 i,a;return n=E.camelCase(n),a=E.cssHooks[n],"cssFloat"===(n=E.cssProps[n]||n)&&(n="float"),a&&"get"in a&&(i=a.get(e,!0,r))!==t?i:ke?ke(e,n):void 0},swap:function(e,t,n){var r={};for(var i in t)r[i]=e.style[i],e.style[i]=t[i];for(i in n.call(e),t)e.style[i]=r[i]}}),E.curCSS=E.css,E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,r){var i;if(n)return 0!==e.offsetWidth?p(e,t,r):(E.swap(e,De,(function(){i=p(e,t,r)})),i)},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 je.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,i=E.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===E.trim(a.replace(Ne,""))&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=Ne.test(a)?a.replace(Ne,i):a+" "+i)}}),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}})})),j.defaultView&&j.defaultView.getComputedStyle&&(Te=function(e,n){var r,i,a;return n=n.replace(Se,"-$1").toLowerCase(),(i=e.ownerDocument.defaultView)?((a=i.getComputedStyle(e,null))&&(""===(r=a.getPropertyValue(n))&&!E.contains(e.ownerDocument.documentElement,e)&&(r=E.style(e,n))),r):t}),j.documentElement.currentStyle&&(Ce=function(e,t){var n,r,i,a=e.currentStyle&&e.currentStyle[t],o=e.style;return null===a&&o&&(i=o[t])&&(a=i),!Me.test(a)&&Ee.test(a)&&(n=o.left,(r=e.runtimeStyle&&e.runtimeStyle.left)&&(e.runtimeStyle.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a||0,a=o.pixelLeft+"px",o.left=n,r&&(e.runtimeStyle.left=r)),""===a?"auto":a}),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 Fe,Ie,Be=/%20/g,We=/\[\]$/,ze=/\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)$/,Ue=/^\/\//,Ge=/\?/,Xe=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Qe=/^(?:select|textarea)/i,Ke=/\s+/,Ye=/([?&])_=[^&]*/,Ze=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Je=E.fn.load,$e={},et={},tt=["*/"]+["*"];try{Fe=M.href}catch(vt){(Fe=j.createElement("a")).href="",Fe=Fe.href}Ie=Ze.exec(Fe.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 i=e.indexOf(" ");if(i>=0){var a=e.slice(i,e.length);e=e.slice(0,i)}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(a?E("<div>").append(n.replace(Xe,"")).find(a):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||Qe.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(ze,"\r\n")}})):{name:t.name,value:n.replace(ze,"\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,i,a){return E.isFunction(r)&&(a=a||i,i=r,r=t),E.ajax({type:n,url:e,data:r,success:i,dataType:a})}})),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:Fe,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Ie[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!==x){x=2,l&&clearTimeout(l),s=t,a=o||"",A.readyState=e>0?4:0;var c,u,p,b,w,_=n,k=r?function(e,n,r){var i,a,o,s,l=e.contents,c=e.dataTypes,u=e.responseFields;for(a in u)a in r&&(n[u[a]]=r[a]);for(;"*"===c[0];)c.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(a in l)if(l[a]&&l[a].test(i)){c.unshift(a);break}if(c[0]in r)o=c[0];else{for(a in r){if(!c[0]||e.converters[a+" "+c[0]]){o=a;break}s||(s=a)}o=o||s}if(o)return o!==c[0]&&c.unshift(o),r[o]}(f,A,r):t;if(e>=200&&e<300||304===e)if(f.ifModified&&((b=A.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=b),(w=A.getResponseHeader("Etag"))&&(E.etag[i]=w)),304===e)_="notmodified",c=!0;else try{u=function(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r,i,a,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(i in e.converters)"string"==typeof i&&(p[i.toLowerCase()]=e.converters[i]);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(((a=c.split(" "))[0]===o||"*"===a[0])&&(u=p[a[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),_="success",c=!0}catch(X){_="parsererror",p=X}else p=_,_&&!e||(_="error",e<0&&(e=0));A.status=e,A.statusText=""+(n||_),c?m.resolveWith(h,[u,_,A]):m.rejectWith(h,[A,_,p]),A.statusCode(y),y=t,d&&g.trigger("ajax"+(c?"Success":"Error"),[A,f,c?u:p]),v.fireWith(h,[A,_]),d&&(g.trigger("ajaxComplete",[A,f]),--E.active||E.event.trigger("ajaxStop"))}}"object"==typeof e&&(n=e,e=t),n=n||{};var i,a,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={},w={},x=0,A={readyState:0,setRequestHeader:function(e,t){if(!x){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return 2===x?a:null},getResponseHeader:function(e){var n;if(2===x){if(!o)for(o={};n=Re.exec(a);)o[n[1].toLowerCase()]=n[2];n=o[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return x||(f.mimeType=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),r(0,e),this}};if(m.promise(A),A.success=A.done,A.error=A.fail,A.complete=v.add,A.statusCode=function(e){var t;if(e)if(x<2)for(t in e)y[t]=[y[t],e[t]];else t=e[A.status],A.then(t,t);return this},f.url=((e||f.url)+"").replace(He,"").replace(Ue,Ie[1]+"//"),f.dataTypes=E.trim(f.dataType||"*").toLowerCase().split(Ke),null==f.crossDomain&&(c=Ze.exec(f.url.toLowerCase()),f.crossDomain=!(!c||c[1]==Ie[1]&&c[2]==Ie[2]&&(c[3]||("http:"===c[1]?80:443))==(Ie[3]||("http:"===Ie[1]?80:443)))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),u($e,f,n,A),2===x)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+=(Ge.test(f.url)?"&":"?")+f.data,delete f.data),i=f.url,!1===f.cache)){var _=E.now(),k=f.url.replace(Ye,"$1_="+_);f.url=k+(k===f.url?(Ge.test(f.url)?"&":"?")+"_="+_:"")}for(p in(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&A.setRequestHeader("Content-Type",f.contentType),f.ifModified&&(i=i||f.url,E.lastModified[i]&&A.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&A.setRequestHeader("If-None-Match",E.etag[i])),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)A.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(!1===f.beforeSend.call(h,A,f)||2===x))return A.abort(),!1;for(p in{success:1,error:1,complete:1})A[p](f[p]);if(s=u(et,f,n,A)){A.readyState=1,d&&g.trigger("ajaxSend",[A,f]),f.async&&f.timeout>0&&(l=setTimeout((function(){A.abort("timeout")}),f.timeout));try{x=1,s.send(b,r)}catch(T){x<2?r(-1,T):E.error(T)}}else r(-1,"No Transport");return A},param:function(e,n){var r=[],i=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(){i(this.name,this.value)}));else for(var a in e)l(a,e[a],n,i);return r.join("&").replace(Be,"+")}}),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 i="application/x-www-form-urlencoded"===t.contentType&&"string"==typeof t.data;if("jsonp"===t.dataTypes[0]||!1!==t.jsonp&&(rt.test(t.url)||i&&rt.test(t.data))){var a,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&&(i&&(c=c.replace(rt,u)),t.data===c&&(l+=(/\?/.test(l)?"&":"?")+t.jsonp+"="+o))),t.url=l,t.data=c,e[o]=function(e){a=[e]},r.always((function(){e[o]=s,a&&E.isFunction(s)&&e[o](a[0])})),t.converters["script json"]=function(){return a||E.error(o+" was not called"),a[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=j.head||j.getElementsByTagName("head")[0]||j.documentElement;return{send:function(i,a){(n=j.createElement("script")).async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){(i||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||a(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}}));var it,at=!!e.ActiveXObject&&function(){for(var e in it)it[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(i,a){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&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(L){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,c,u,d,p;try{if(r&&(i||4===l.readyState))if(r=t,o&&(l.onreadystatechange=E.noop,at&&delete it[o]),i)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(W){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(z){i||a(-1,z)}d&&a(s,c,d,u)},n.async&&4!==l.readyState?(o=++ot,at&&(it||(it={},E(e).unload(at)),it[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 a,o;if(e||0===e)return this.animate(i("show",3),e,t,n);for(var s=0,l=this.length;s<l;s++)(a=this[s]).style&&(o=a.style.display,!E._data(a,"olddisplay")&&"none"===o&&(o=a.style.display=""),""===o&&"none"===E.css(a,"display")&&E._data(a,"olddisplay",r(a.nodeName)));for(s=0;s<l;s++)(a=this[s]).style&&(""!==(o=a.style.display)&&"none"!==o||(a.style.display=E._data(a,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(i("hide",3),e,t,n);for(var r,a,o=0,s=this.length;o<s;o++)(r=this[o]).style&&("none"!==(a=E.css(r,"display"))&&!E._data(r,"olddisplay")&&E._data(r,"olddisplay",a));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(i("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,i){function a(){!1===o.queue&&E._mark(this);var t,n,i,a,s,l,c,u,d,p=E.extend({},o),f=1===this.nodeType,h=f&&E(this).is(":hidden");for(i in p.animatedProperties={},e){if(i!==(t=E.camelCase(i))&&(e[t]=e[i],delete e[i]),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(i in null!=p.overflow&&(this.style.overflow="hidden"),e)a=new E.fx(this,p,i),n=e[i],pt.test(n)?(d=E._data(this,"toggle"+i)||("toggle"===n?h?"show":"hide":0))?(E._data(this,"toggle"+i,"show"===d?"hide":"show"),a[d]()):a[n]():(s=ft.exec(n),l=a.cur(),s?(c=parseFloat(s[2]),"px"!==(u=s[3]||(E.cssNumber[i]?"":"px"))&&(E.style(this,i,(c||1)+u),l=(c||1)/a.cur()*l,E.style(this,i,l+u)),s[1]&&(c=("-="===s[1]?-1:1)*c+l),a.custom(l,c,u)):a.custom(l,n,""));return!0}var o=E.speed(t,n,i);return E.isEmptyObject(e)?this.each(o.complete,[!1]):(e=E.extend({},e),!1===o.queue?this.each(a):this.queue(o.queue,a))},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 i=t[n];E.removeData(e,n,!0),i.stop(r)}var n,i=!1,a=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=a.length;n--;)a[n].elem===this&&(null==e||a[n].queue===e)&&(r?a[n](!0):a[n].saveState(),i=!0,a.splice(n,1));(!r||!i)&&E.dequeue(this,e)}))}}),E.each({slideDown:i("show",1),slideUp:i("hide",1),slideToggle:i("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 i(e){return a.step(e)}var a=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"),i.queue=this.options.queue,i.elem=this.elem,i.saveState=function(){a.options.hide&&E._data(a.elem,"fxshow"+a.prop)===t&&E._data(a.elem,"fxshow"+a.prop,a.start)},i()&&E.timers.push(i)&&!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,i=ut||o(),a=!0,s=this.elem,l=this.options;if(e||i>=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]&&(a=!1);if(a){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=i:(n=i-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 j.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(S){}var i=r.ownerDocument,a=i.documentElement;if(!t||!E.contains(a,r))return t?{top:t.top,left:t.left}:{top:0,left:0};var o=i.body,s=n(i),l=a.clientTop||o.clientTop||0,c=a.clientLeft||o.clientLeft||0,u=s.pageYOffset||E.support.boxModel&&a.scrollTop||o.scrollTop,d=s.pageXOffset||E.support.boxModel&&a.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,i=t.ownerDocument,a=i.documentElement,o=i.body,s=i.defaultView,l=s?s.getComputedStyle(t,null):t.currentStyle,c=t.offsetTop,u=t.offsetLeft;(t=t.parentNode)&&t!==o&&t!==a&&(!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(a.scrollTop,o.scrollTop),u+=Math.max(a.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 i,a,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?(i=(d=o.position()).top,a=d.left):(i=parseFloat(l)||0,a=parseFloat(c)||0),E.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(u.top=t.top-s.top+i),null!=t.left&&(u.left=t.left-s.left+a),"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||j.body;e&&!mt.test(e.nodeName)&&"static"===E.css(e,"position");)e=e.offsetParent;return e}))}}),E.each(["Left","Top"],(function(e,r){var i="scroll"+r;E.fn[i]=function(r){var a,o;return r===t?(a=this[0])?(o=n(a))?"pageXOffset"in o?o[e?"pageYOffset":"pageXOffset"]:E.support.boxModel&&o.document.documentElement[i]||o.document.body[i]:a[i]:null:this.each((function(){(o=n(this))?o.scrollTo(e?E(o).scrollLeft():r,e?r:E(o).scrollTop()):this[i]=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 i=this[0];if(!i)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(i)){var a=i.document.documentElement["client"+n],o=i.document.body;return"CSS1Compat"===i.document.compatMode&&a||o&&o["client"+n]||a}if(9===i.nodeType)return Math.max(i.documentElement["client"+n],i.body["scroll"+n],i.documentElement["scroll"+n],i.body["offset"+n],i.documentElement["offset"+n]);if(e===t){var s=E.css(i,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="",i=Math.PI,a=i/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(i){var a;t="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,n=!(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||parseFloat(a[1])>534.3,r=A();var l,c=0,u=this.data(),p=this.children();if(i=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},d,i),u.opts=i,u.pageObjs={},u.pages={},u.pageWrap={},u.pageZoom={},u.pagePlace={},u.pageMv=[],u.zoom=1,u.totalPages=i.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)},i.when)for(l in i.when)x(l,i.when)&&this.bind(l,i.when[l]);for(this.css({position:"relative",width:i.width,height:i.height}),this.turn("display",i.display),""!==i.direction&&this.turn("direction",i.direction),t&&!o&&i.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",i.page),u.done=!0,this},addPage:function(t,n){var r,i,a=!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)a=!0;else if(n>s)throw T('Page "'+n+'" cannot be inserted')}else n=s,a=!0;return n>=1&&n<=s&&(i="double"==o.display?n%2?" odd":" even":"",o.done&&this.turn("stop"),n in o.pageObjs&&f._movePages.call(this,n,1),a&&(o.totalPages=s),o.pageObjs[n]=e(t).css({float:"left"}).addClass("page p"+n+i),-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 i=f._pageSize.call(this,t,!0);r.css({width:i.width,height:i.height}),n.pageWrap[t].css(i)}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 x(e,this.data().pageObjs)},center:function(t){var n=this.data(),r=e(this).turn("size"),i=0;if(!n.noCenter){if("double"==n.display){var a=this.turn("view",t||n.tpage||n.page);"ltr"==n.direction?a[0]?a[1]||(i+=r.width/4):i-=r.width/4:a[0]?a[1]||(i-=r.width/4):i+=r.width/4}e(this).css({marginLeft:i})}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"),i=this.turn("view"),a=1/n.zoom,o=Math.round(r.width*a*t),s=Math.round(r.height*a*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<i.length;l++)i[l]&&n.pageZoom[i[l]]!=n.zoom&&(this.trigger("zoomed",[i[l],i,n.pageZoom[i[l]],n.zoom]),n.pageZoom[i[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 i=this.width()/2,a=this.height();if(n.pageObjs[e].hasClass("own-size")?(r.width=n.pageObjs[e].width(),r.height=n.pageObjs[e].height()):(r.width=i,r.height=a),t){var o=e%2;r.top=(a-r.height)/2,"ltr"==n.direction?(r[o?"right":"left"]=i-r.width,r[o?"left":"right"]="auto"):(r[o?"left":"right"]=i-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,i,a=this.data();if(e=e||a.tpage||a.page||1,i=f._view.call(this,e),e<1||e>a.totalPages)throw T('"'+e+'" is not a valid page');return i[1]=i[1]||i[0],i[0]>=1&&i[1]<=a.totalPages?(t=Math.floor(2),a.totalPages-i[1]>i[0]?r=2*t-(n=Math.min(i[0]-1,t)):n=2*t-(r=Math.min(a.totalPages-i[1],t))):(n=5,r=5),[Math.max(1,i[0]-n),Math.min(a.totalPages,i[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)x(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,i=this.data(),a="single"==i.display,o=function(e){var n=e+t,o=n%2,s=o?" odd ":" even ";i.pageObjs[e]&&(i.pageObjs[n]=i.pageObjs[e].removeClass("p"+e+" odd even").addClass("p"+n+s)),i.pagePlace[e]&&i.pageWrap[e]&&(i.pagePlace[n]=n,i.pageObjs[n].hasClass("fixed")?i.pageWrap[n]=i.pageWrap[e].attr("page",n):i.pageWrap[n]=i.pageWrap[e].css(f._pageSize.call(r,n,!0)).attr("page",n),i.pages[e]&&(i.pages[n]=i.pages[e].flip("options",{page:n,next:a||o?n+1:n-1})),t&&(delete i.pages[e],delete i.pagePlace[e],delete i.pageZoom[e],delete i.pageObjs[e],delete i.pageWrap[e]))};if(t>0)for(n=i.totalPages;n>=e;n--)o(n);else for(n=e;n<=i.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 i=this.turn("size");f._movePages.call(this,1,0),this.turn("size",i.width,i.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(x(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(),i=this.turn("view");for(n in r.disabled=void 0===t||!0===t,r.pages)x(n,r.pages)&&r.pages[n].flip("disable",!!r.disabled||-1==e.inArray(parseInt(n,10),i));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,i=this.data(),a="double"==i.display?e/2:e;for(n in this.css({width:e,height:t}),i.pageObjs[0]&&i.pageObjs[0].css({width:a,height:t}),i.pageWrap)x(n,i.pageWrap)&&(r=f._pageSize.call(this,n,!0),i.pageObjs[n].css({width:r.width,height:r.height}),i.pageWrap[n].css(r),i.pages[n]&&i.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,i,a=this.data();for(a.tpage&&(a.page=a.tpage,delete a.tpage),n=0;n<a.pageMv.length;n++)a.pageMv[n]&&a.pageMv[n]!==e&&(r=(i=a.pages[a.pageMv[n]]).data().f.opts,i.flip("hideFoldedPage",t),t||h._moveFoldingPage.call(i,!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),i=[];for(n=r[0];n<=r[1];n++)t.pageObjs[n]||i.push(n);i.length>0&&this.trigger("missing",[i])}},_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,i=this.data(),a=i.pagePlace[t],o=this.turn("view"),s=this.turn("view",t);if(i.page!=t){var l=i.page;if("prevented"==k("turning",this,[t,s]))return void(l==i.page&&-1!=e.inArray(a,i.pageMv)&&i.pages[a].flip("hideFoldedPage",!0));-1!=e.inArray(1,s)&&this.trigger("first"),-1!=e.inArray(i.totalPages,s)&&this.trigger("last")}"single"==i.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=i.opts.turnCorners.split(","),u=i.pages[n].data().f,d=u.opts,p=u.point;f._missing.call(this,t),i.pageObjs[t]&&(this.turn("stop"),i.page=t,f._makeRange.call(this),i.tpage=r,d.next!=r&&(d.next=r,d.force=!0),this.turn("update"),u.point=p,"hard"==u.effect?"ltr"==i.direction?i.pages[n].flip("turnPage",t>n?"r":"l"):i.pages[n].flip("turnPage",t>n?"l":"r"):"ltr"==i.direction?i.pages[n].flip("turnPage",c[t>n?1:0]):i.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(),i=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")?i[0]:i[1]:-1!=e.indexOf("l")?i[1]:i[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(),i=r.pageZoom[t.page];e.isDefaultPrevented()||(i&&i!=r.zoom&&(t.turn.trigger("zoomed",[t.page,t.turn.turn("view",t.page),i,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 i=n.turn,a=i.data();if(r){var o=a.tpage||a.page;o!=n.next&&o!=n.page||(delete a.tpage,f._fitPage.call(i,o||n.next,!0))}else f._removeMv.call(i,n.page),f._updateShadow.call(i),i.turn("update")},_eventPressed:function(t){var n=e(t.target).data().f,r=n.opts.turn,i=r.data();return i.pages,i.mouseAction=!0,r.turn("update"),n.time=(new Date).getTime()},_eventReleased:function(t,n){var r,i=e(t.target),a=i.data().f,o=a.opts.turn,s=o.data();r="single"==s.display?"br"==n.corner||"tr"==n.corner?n.x<i.width()/2:n.x>i.width()/2:n.x<0||n.x>i.width(),((new Date).getTime()-a.time<200||r)&&(t.preventDefault(),f._turnPage.call(o,a.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(x(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)x(t,e.pages)&&h._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var e=this.data();for(var t in e.pages)x(t,e.pages)&&h._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(e){var t,n,r,i,a,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,i=s.pagePlace[n],p(n),p(r),a=s.pagePlace[r]==r?r:n,d.pageZ[a]=s.totalPages-Math.abs(c-a),d.partZ[i]=2*s.totalPages-u+t;return d},update:function(){var t,n=this.data();if(this.turn("animating")&&0!==n.pageMv[0]){var r,i,a=this.turn("calculateZ",n.pageMv),o=this.turn("corner"),s=this.turn("view"),l=this.turn("view",n.tpage);for(t in n.pageWrap)x(t,n.pageWrap)&&(i=n.pageObjs[t].hasClass("fixed"),n.pageWrap[t].css({display:a.pageV[t]||i?"":"none",zIndex:(n.pageObjs[t].hasClass("hard")?a.partZ[t]:a.pageZ[t])||(i?-1:0)}),(r=n.pages[t])&&(r.flip("z",a.partZ[t]||null),a.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(x(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(),i=this.width(),a=this.height(),o="single"==r.display?i:i/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:a,top:0,left:o});break;case 2:r.shadow.css({width:o,height:a,top:0,left:0});break;case 3:r.shadow.css({width:i,height:a,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)x(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(),i=this.height(),a={x:t.x,y:t.y,corner:""},o=n.opts.cornerSize;if(a.x<=0||a.y<=0||a.x>=r||a.y>=i)return!1;var s=h._cAllowed.call(this);switch(n.effect){case"hard":if(a.x>r-o)a.corner="r";else{if(!(a.x<o))return!1;a.corner="l"}break;case"sheet":if(a.y<o)a.corner+="t";else{if(!(a.y>=i-o))return!1;a.corner+="b"}if(a.x<=o)a.corner+="l";else{if(!(a.x>=r-o))return!1;a.corner+="r"}}return!(!a.corner||-1==e.inArray(a.corner,s))&&a},_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(),i=this.height();switch(t.effect){case"hard":e&&(t.wrapper.css({width:r,height:i}),t.fpage.css({width:r,height:i}),n.opts.gradients&&(t.ashadow.css({width:r,height:i}),t.bshadow.css({width:r,height:i})));break;case"sheet":if(e){var a=Math.round(Math.sqrt(Math.pow(r,2)+Math.pow(i,2)));t.wrapper.css({width:a,height:a}),t.fwrapper.css({width:a,height:a}).children(":first-child").css({width:r,height:i}),t.fpage.css({width:r,height:i}),n.opts.gradients&&t.ashadow.css({width:r,height:i}),h._backGradient.call(this)&&t.bshadow.css({width:r,height:i})}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(),i=this.parent();if(t.parent=i,!t.wrapper)switch(t.effect){case"hard":var a={};a[r+"transform-style"]="preserve-3d",a[r+"backface-visibility"]="hidden",t.wrapper=e("<div/>",m(0,0,2)).css(a).appendTo(i).prepend(this),t.fpage=e("<div/>",m(0,0,1)).css(a).appendTo(i),n.opts.gradients&&(t.ashadow=e("<div/>",m(0,0,0)).hide().appendTo(i),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(i).prepend(this),t.fwrapper=e("<div/>",m(i.offset().top,i.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,x={overflow:"visible"},A=s.x?(s.x-e.x)/l:e.x/l,k=90*A,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)}x[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(x),T?(A=1-A,t.wrapper.css({zIndex:v+1}),t.fpage.css({zIndex:v})):(A-=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*A+")"}).transform("rotateY(0deg)"):t.ashadow.hide(),t.bshadow.css({opacity:1-A}),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),_(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,j,S,M,E,P,D=this,O=0,L=y(0,0),F=y(0,0),I=y(0,0),B=h._foldingPage.call(this),W=o.opts.acceleration,z=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=a-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(O=u/i*180,I=y(p*Math.sin(u),p*Math.cos(u)),u>a&&(I.x=I.x+Math.abs(I.y*t.y/t.x),I.y=0,Math.round(I.x*Math.tan(i-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>a){var f=i-u,g=z-c/Math.sin(f);L=y(Math.round(g*Math.cos(f)),Math.round(g*Math.sin(f))),R&&(L.x=-L.x),H&&(L.y=-L.y)}C=Math.round(I.y/Math.tan(u)+I.x);var m=l-C,v=m*Math.cos(2*u),b=m*Math.sin(2*u);if(F=y(Math.round(R?m-v:C+v),Math.round(H?b:c-b)),o.opts.gradients){M=m*Math.sin(u);var w=h._c2.call(D,e.corner),x=Math.sqrt(Math.pow(w.x-e.x,2)+Math.pow(w.y-e.y,2))/l;P=Math.sin(a*(x>1?2-x:x)),E=Math.min(x,1),S=M>100?(M-100)/M:0,N=y(M*Math.sin(u)/l*100,M*Math.cos(u)/c*100),h._backGradient.call(D)&&(j=y(1.2*M*Math.sin(u)/l*100,1.2*M*Math.cos(u)/c*100),R||(j.x=100-j.x),H||(j.y=100-j.y))}return I.x=Math.round(I.x),I.y=Math.round(I.y),!0},V=function(e,n,r,i){var a=["0","auto"],s=(l-z)*r[0]/100,u=(c-z)*r[1]/100,d={left:a[n[0]],top:a[n[1]],right:a[n[2]],bottom:a[n[3]]},p={},f=90!=i&&-90!=i?R?-1:1:0,g=r[0]+"% "+r[1]+"%";D.css(d).transform(w(i)+b(e.x+f,e.y,W),g),t.fpage.css(d).transform(w(i)+b(e.x+F.x-L.x-l*r[0]/100,e.y+F.y-L.y-c*r[1]/100,W)+w((180/i-2)*i),g),t.wrapper.transform(b(-e.x+s-f,-e.y+u,W)+w(-i),g),t.fwrapper.transform(b(-e.x+L.x+s,-e.y+L.y+u,W)+w(-i),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*P+")",B.css(p),_(t.ashadow,y(R?100:0,H?0:100),y(N.x,N.y),[[S,"rgba(0,0,0,0)"],[.8*(1-S)+S,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),h._backGradient.call(D)&&_(t.bshadow,y(R?0:100,H?0:100),y(j.x,j.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(I,[1,0,0,1],[100,0],O);break;case"tr":e.x=Math.min(e.x,l-1),q(),V(y(-I.x,I.y),[0,0,0,1],[0,0],-O);break;case"bl":e.x=Math.max(e.x,1),q(),V(y(I.x,-I.y),[1,1,0,0],[100,100],-O);break;case"br":e.x=Math.min(e.x,l-1),q(),V(y(-I.x,-I.y),[0,1,1,0],[0,100],O)}}t.point=e},_moveFoldingPage:function(e){var t=this.data().f;if(t){var n=t.opts.turn,r=n.data(),i=r.pagePlace;if(e){var a=t.opts.next;if(i[a]!=t.opts.page)t.folding&&h._moveFoldingPage.call(this,!1),h._foldingPage.call(this).appendTo(t.fpage),i[a]=t.opts.page,t.folding=a;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 i&&(i[t.folding]=t.folding),delete t.folding}}},_showFoldedPage:function(e,t){var n=h._foldingPage.call(this),r=this.data(),i=r.f,a=i.visible;if(n){if(!a||!i.point||i.point.corner!=e.corner){var o="hover"==i.status||"peel"==i.status||i.opts.turn.data().mouseAction?e.corner:null;if(a=!1,"prevented"==k("start",this,[i.opts,o]))return!1}if(t){var s=this,l=i.point&&i.point.corner==e.corner?i.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(!a)switch(i.effect){case"hard":i.visible=!0,h._moveFoldingPage.call(this,!0),i.fpage.show(),i.opts.shadows&&i.bshadow.show();break;case"sheet":i.visible=!0,i.fparent.show().data().flips++,h._moveFoldingPage.call(this,!0),i.fwrapper.show(),i.bshadow&&i.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,i=function(){t.point=null,t.status="",n.flip("hide"),n.trigger("end",[t.opts,!1])};if(e){var a=h._c.call(this,r.corner),o="t"==r.corner.substr(0,1)?Math.min(0,r.y-a.y)/2:Math.max(0,r.y-a.y)/2,s=y(r.x,r.y+o),l=y(a.x,a.y-o);this.animatef({from:0,to:1,frame:function(e){var t=v(r,s,l,a,e);r.x=t.x,r.y=t.y,h._fold.call(n,r)},complete:i,duration:800,hiding:!0})}else this.animatef(!1),i()}},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 i=n.point||h._c.call(this,e.corner,n.opts.turn?r.opts.elevation:0),a=h._c2.call(this,e.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(n){var r=v(i,i,a,a,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 i=h._c.call(this,r.corner,t.opts.cornerSize/2);r.x=i.x,r.y=i.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 i=h._c.call(this,t,r.opts.cornerSize/2);r.status="peel",h._showFoldedPage.call(this,{corner:t,x:i.x,y:i.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,i){var a=1-i,o=a*a*a,s=i*i*i;return y(Math.round(o*e.x+3*i*a*a*t.x+3*i*i*a*n.x+s*r.x),Math.round(o*e.y+3*i*a*a*t.y+3*i*i*a*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 w(e){return" rotate("+e+"deg) "}function x(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function A(){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 _(e,t,n,i,a){var o,s=[];if("-webkit-"==r){for(o=0;o<a;o++)s.push("color-stop("+i[o][0]+", "+i[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},w=Math.sqrt(Math.pow(b.x-t.x,2)+Math.pow(b.y-t.y,2));for(o=0;o<a;o++)s.push(" "+i[o][1]+" "+100*(w+f*i[o][0])/p+"%");e.css({"background-image":r+"linear-gradient("+-u+"rad,"+s.join(",")+")"})}}function k(t,n,r){var i=e.Event(t);return n.trigger(i,r),i.isDefaultPrevented()?"prevented":i.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=[],i=t.to.length,a=!0,o=this,s=(new Date).getTime(),l=function(){if(n.effect&&a){for(var e=[],c=Math.min(t.duration,(new Date).getTime()-s),u=0;u<i;u++)e.push(n.effect.easing(1,c,t.from[u],r[u],t.duration));t.frame(1==i?e[0]:e),c==t.duration?(delete n.effect,o.data(n),t.complete&&t.complete()):window.requestAnim(l)}},c=0;c<i;c++)r.push(t.to[c]-t.from[c]);n.effect=e.extend({stop:function(){a=!1},easing:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n}},t),this.data(n),l()}else delete n.effect}}),e.isTouch=o,e.mouseEvents=s,e.cssPrefix=A,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 ce=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",a({name:"courseware-list",setup(){var n;l();const i=d(!1),a=d([]),f=d([]),h=()=>{b({api:"goBack"})},g=localStorage.getItem("courseware-list")?JSON.parse(localStorage.getItem("courseware-list")):{},m=u({currentGradeNum:g.currentGradeNum||null,bookVersionId:g.bookVersionId||null,subjectId:g.subjectId||(null===(n=c.user.data)||void 0===n?void 0:n.subjectId)||null,page:1,rows:999,type:"COURSEWARE"});k((()=>ce.grades.map(((e,t)=>r(r({},e),{},{color:m.currentGradeNum===t?"var(--van-primary-color)":"",className:m.currentGradeNum===t?"fontBlod":""})))));const v=d(!1),y=u({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},subjectList:[],showBook:!1,book:{}}),w=function(){var e=o((function*(){try{const e=c.user.data.schoolInfos,t=e.length>0?e[0].tenantId:null;if(t){const{data:e}=yield j({id:t});a.value=e.bookVersionList||[],f.value=H(a.value);const n=a.findIndex((e=>e.bookVersionId==g.bookVersoinId));n<0&&(m.bookVersionId=null)}}catch(e){}}));return function(){return e.apply(this,arguments)}}(),I=function(){var n=o((function*(){var n;y.loading=!0;const{bookVersionId:i,currentGradeNum:a}=m,o=t(m,e),s=yield M(r(r({},o),{},{bookVersionId:-1==i?null:i,currentGradeNum:a||""}));200===(null==s?void 0:s.code)&&Array.isArray(null==s||null===(n=s.data)||void 0===n?void 0:n.rows)&&(y.list=s.data.rows.map((e=>(e.load=!1,e.key=Date.now()+e.id,e)))),y.loading=!1,setTimeout((()=>{v.value=!0}),100)}));return function(){return n.apply(this,arguments)}}(),B=function(){var e=o((function*(){var e,t,n;y.loading=!0;const r=yield E({clientType:"STUDENT",userId:null===(e=c.user)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.id,page:m.page,rows:m.rows,subjectId:m.subjectId,bookVersionId:-1!=m.bookVersionId?m.bookVersionId:"",currentGradeNum:m.currentGradeNum?m.currentGradeNum:""});200===(null==r?void 0:r.code)&&Array.isArray(null==r||null===(n=r.data)||void 0===n?void 0:n.rows)&&(y.list=r.data.rows.map((e=>(e.name=`${e.name}`,e.load=!1,e.favoriteFlag=!0,e.key=Date.now()+e.id,e)))),y.loading=!1}));return function(){return e.apply(this,arguments)}}(),W=function(){var e=o((function*(){var e;y.loading=!0;const t=yield P({bookVersionId:m.bookVersionId?m.bookVersionId:"",page:m.page,rows:m.rows,subjectId:m.subjectId,currentGradeNum:m.currentGradeNum?m.currentGradeNum:""});200===(null==t?void 0:t.code)&&Array.isArray(null==t||null===(e=t.data)||void 0===e?void 0:e.rows)&&(y.list=t.data.rows.map((e=>(e.load=!1,e.key=Date.now()+e.id,e)))),y.loading=!1}));return function(){return e.apply(this,arguments)}}(),z=()=>{"all"===y.tab&&I(),"favorite"===y.tab&&B(),"course"===y.tab&&W()},G=function(){var e=o((function*(){try{const e=yield S({enableFlag:!0,delFlag:0,page:1,rows:999});console.log(e.data," subjectList"),y.subjectList=e.data.rows||[]}catch(e){}}));return function(){return e.apply(this,arguments)}}();p(o((function*(){yield w(),yield G(),z(),b({api:"setStatusBarVisibility",content:{isVisibility:0}})})));const Y=function(){var e=o((function*(e){e.favoriteFlag?yield D({lessonCoursewareId:e.id}):(yield O({lessonCoursewareId:e.id}),y.tab)}));return function(t){return e.apply(this,arguments)}}();let Z=null;const J=function(){var e=o((function*(e){if("course"===y.tab){var t;const n=yield L({id:e.id,subjectId:m.subjectId});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 N({title:"提示",message:"课程教材已更新,是否重新加载?"}).then((()=>{z()})).catch((()=>{}));y.details=n.data.lessonList||[],y.bookData=n.data,console.log("🚀 ~ data.details course:",y.details)}else{var n;const t=yield F({id:e.id,subjectId:m.subjectId});200==(null==t?void 0:t.code)&&Array.isArray(null==t||null===(n=t.data)||void 0===n?void 0:n.lessonList)&&(y.details=t.data.lessonList||[],y.bookData=t.data,console.log("🚀 ~ data.details:",y.details))}$(e.id),ee((()=>{y.showBook=!0}))}));return function(t){return e.apply(this,arguments)}}(),$=e=>{const t=document.querySelector(`[data-id="${e}"]`);if(!t)return;const n=t.getBoundingClientRect();y.book=n},ee=e=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e()}))}))},te=function(){var e=o((function*(e){yield J(e)}));return function(t){return e.apply(this,arguments)}}();return()=>s("div",{class:X.container},[s("div",{class:X.head,style:{opacity:y.showBook?0:""}},[s("div",{class:X.back,onClick:h},[s("img",{src:Q},null)]),s(q,{class:X.tabs,active:y.tab,"onUpdate:active":e=>y.tab=e,onChange:()=>("course"===y.tab?f.value=[...H(a.value),{bookVersionId:-1,bookVersionName:"自定义"}]:f.value=H(a.value),void z())},{default:()=>[s(V,{title:"全部教材",name:"all"},null),s(V,{title:"课程教材",name:"course"},null),s(V,{name:"favorite"},{title:()=>s("div",{id:"courseware-2"},[A("我的收藏")])})]}),s(_,T({class:[X.downBtn,"course"!=y.tab&&m.bookVersionId>0||"course"==y.tab&&m.bookVersionId||m.subjectId||m.currentGradeNum?X.activeBtn:""],round:!0,size:"small",onClick:()=>i.value=!0},{id:"courseware-3"}),{default:()=>[A("筛选"),s("svg",{class:[X.icon,i.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,[A("三角形")]),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,y.list.length<=0&&!y.loading?X.emtpyWrap:""]},[y.list.map(((e,t)=>s("div",{class:[X.wrapItem,y.bookData.id===e.id&&y.showBook?X.wrapItemHide:""],key:e.key,onClick:()=>te(e)},[s("div",{class:X.item},[s(R,T({"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}}),null)]),s("div",{class:X.name},[e.name]),!y.loading&&"course"!==y.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)})((()=>Y(e)))}},[s(K,{isFavorite:e.favoriteFlag},null)])]))),y.list.length<=0&&!y.loading&&s(C,{image:"list",description:"暂无数据"},null)])]),s(se,{show:y.showBook,bookData:y.bookData,subjectId:m.subjectId,tab:y.tab,rect:y.book,onClose:()=>{y.showBook=!1}},null),v.value?s(le,null,null):null,s(x,{show:i.value,"onUpdate:show":e=>i.value=e,class:X.popupContainer},{default:()=>[s("div",{class:X.popoverContainer},[s("div",{class:X.searchList},[s("div",{class:X.popoverTitle},[A("教材版本")]),s("div",{class:[X.popupList,X.versionList]},[f.value.map((e=>s(U,{plain:m.bookVersionId==e.bookVersionId,round:!0,onClick:()=>m.bookVersionId=e.bookVersionId},{default:()=>[e.bookVersionName]})))]),s("div",{class:X.popoverTitle},[A("选择年级")]),s("div",{class:[X.popupList,X.versionList]},[ce.grades.map((e=>s(U,{plain:m.currentGradeNum===e.value,round:!0,onClick:()=>m.currentGradeNum=e.value},{default:()=>[e.text]})))]),s("div",{class:X.popoverTitle},[A("选择声部")]),s("div",{class:[X.popupList,X.versionList]},[y.subjectList.map((e=>s(U,{plain:m.subjectId==e.id,round:!0,onClick:()=>m.subjectId=e.id},{default:()=>[e.name]})))])]),s("div",{class:X.btnGroup},[s(_,{round:!0,onClick:()=>{var e;m.bookVersionId=null,m.currentGradeNum=null,m.subjectId=(null===(e=c.user.data)||void 0===e?void 0:e.subjectId)||null}},{default:()=>[A("重置")]}),s(_,{round:!0,class:X.btnSure,onClick:()=>{localStorage.setItem("courseware-list",JSON.stringify({bookVersionId:m.bookVersionId,currentGradeNum:m.currentGradeNum,subjectId:m.subjectId})),z(),i.value=!1}},{default:()=>[A("确认")]})])])]})])}}))}}}))}();