function dianji(){$(".bottomXFK").hide()}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(f,t){function e(t,e){return e.toUpperCase()}var d=[],u=d.slice,m=d.concat,r=d.push,o=d.indexOf,n={},i=n.toString,v=n.hasOwnProperty,g={},s="1.11.1",x=function(t,e){return new x.fn.init(t,e)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,c=/-([\da-z])/gi;function h(t){var e=t.length,n=x.type(t);return"function"!==n&&!x.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0>10|55296,1023&i|56320)}var t,h,b,s,e,p,f,m,x,c,u,v,T,i,g,y,o,a,w,C="sizzle"+-new Date,E=n.document,S=0,k=0,r=ot(),A=ot(),l=ot(),D=function(t,e){return t===e&&(u=!0),0},N="undefined",I={}.hasOwnProperty,F=[],$=F.pop,P=F.push,M=F.push,L=F.slice,O=F.indexOf||function(t){for(var e=0,n=this.length;e+~]|"+z+")"+z+"*"),V=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),U=new RegExp(R),Y=new RegExp("^"+H+"$"),G={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j.replace("w","w*")+")"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+_+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig");try{M.apply(F=L.call(E.childNodes),E.childNodes),F[E.childNodes.length].nodeType}catch(t){M={apply:F.length?function(t,e){P.apply(t,L.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function it(t,e,n,i){var o,s,a,r,l,c,u;if((e?e.ownerDocument||e:E)!==T&&v(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(o=(e=e||T).nodeType)&&9!==o)return[];if(g&&!i){if(c=K.exec(t))if(u=c[1]){if(9===o){if(!(r=e.getElementById(u))||!r.parentNode)return n;if(r.id===u)return n.push(r),n}else if(e.ownerDocument&&(r=e.ownerDocument.getElementById(u))&&w(e,r)&&r.id===u)return n.push(r),n}else{if(c[2])return M.apply(n,e.getElementsByTagName(t)),n;if((u=c[3])&&h.getElementsByClassName&&e.getElementsByClassName)return M.apply(n,e.getElementsByClassName(u)),n}if(h.qsa&&(!y||!y.test(t))){if(l=r=C,c=e,u=9===o&&t,1===o&&"object"!==e.nodeName.toLowerCase()){for(a=p(t),(r=e.getAttribute("id"))?l=r.replace(et,"\\$&"):e.setAttribute("id",l),l="[id='"+l+"'] ",s=a.length;s--;)a[s]=l+ht(a[s]);c=tt.test(t)&&ut(e.parentNode)||e,u=a.join(",")}if(u)try{return M.apply(n,c.querySelectorAll(u)),n}catch(t){}finally{r||e.removeAttribute("id")}}}return m(t.replace(W,"$1"),e,n,i)}function ot(){var n=[];function i(t,e){return n.push(t+" ")>b.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function st(t){return t[C]=!0,t}function at(t){var e=T.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t,e){for(var n=t.split("|"),i=t.length;i--;)b.attrHandle[n[i]]=e}function lt(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(a){return st(function(s){return s=+s,st(function(t,e){for(var n,i=a([],t.length,s),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function ut(t){return t&&typeof t.getElementsByTagName!==N&&t}for(t in h=it.support={},e=it.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},v=it.setDocument=function(t){var l=t?t.ownerDocument||t:E,t=l.defaultView;return l!==T&&9===l.nodeType&&l.documentElement?(i=(T=l).documentElement,g=!e(l),t&&t!==t.top&&(t.addEventListener?t.addEventListener("unload",function(){v()},!1):t.attachEvent&&t.attachEvent("onunload",function(){v()})),h.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),h.getElementsByTagName=at(function(t){return t.appendChild(l.createComment("")),!t.getElementsByTagName("*").length}),h.getElementsByClassName=J.test(l.getElementsByClassName)&&at(function(t){return t.innerHTML="
",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),h.getById=at(function(t){return i.appendChild(t).id=C,!l.getElementsByName||!l.getElementsByName(C).length}),h.getById?(b.find.ID=function(t,e){if(typeof e.getElementById!==N&&g){t=e.getElementById(t);return t&&t.parentNode?[t]:[]}},b.filter.ID=function(t){var e=t.replace(nt,d);return function(t){return t.getAttribute("id")===e}}):(delete b.find.ID,b.filter.ID=function(t){var e=t.replace(nt,d);return function(t){t=typeof t.getAttributeNode!==N&&t.getAttributeNode("id");return t&&t.value===e}}),b.find.TAG=h.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==N?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],o=0,s=e.getElementsByTagName(t);if("*"!==t)return s;for(;n=s[o++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=h.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==N&&g?e.getElementsByClassName(t):void 0},o=[],y=[],(h.qsa=J.test(l.querySelectorAll))&&(at(function(t){t.innerHTML="",t.querySelectorAll("[msallowclip^='']").length&&y.push("[*^$]="+z+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\["+z+"*(?:value|"+_+")"),t.querySelectorAll(":checked").length||y.push(":checked")}),at(function(t){var e=l.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name"+z+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")})),(h.matchesSelector=J.test(a=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&at(function(t){h.disconnectedMatch=a.call(t,"div"),a.call(t,"[s!='']:x"),o.push("!=",R)}),y=y.length&&new RegExp(y.join("|")),o=o.length&&new RegExp(o.join("|")),t=J.test(i.compareDocumentPosition),w=t||J.test(i.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},D=t?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!h.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument===E&&w(E,t)?-1:e===l||e.ownerDocument===E&&w(E,e)?1:c?O.call(c,t)-O.call(c,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,o=t.parentNode,s=e.parentNode,a=[t],r=[e];if(!o||!s)return t===l?-1:e===l?1:o?-1:s?1:c?O.call(c,t)-O.call(c,e):0;if(o===s)return lt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)r.unshift(n);for(;a[i]===r[i];)i++;return i?lt(a[i],r[i]):a[i]===E?-1:r[i]===E?1:0},l):T},it.matches=function(t,e){return it(t,null,null,e)},it.matchesSelector=function(t,e){if((t.ownerDocument||t)!==T&&v(t),e=e.replace(V,"='$1']"),!(!h.matchesSelector||!g||o&&o.test(e)||y&&y.test(e)))try{var n=a.call(t,e);if(n||h.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,d),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||it.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&it.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=p(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=r[t+" "];return e||(e=new RegExp("(^|"+z+")"+t+"("+z+"|$)"))&&r(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==N&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=it.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1(?:<\/\1>|)$/,b=/^.[^:#\[\.,]*$/;function T(t,n,i){if(x.isFunction(n))return x.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return x.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(b.test(n))return x.filter(n,t,i);n=x.filter(n,t)}return x.grep(t,function(t){return 0<=x.inArray(t,n)!==i})}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,n=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e)[^>]*|#([\w-]*))$/;(x.fn.init=function(t,e){var n,i;if(!t)return this;if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):x.isFunction(t)?void 0!==S.ready?S.ready(t):t(x):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),x.makeArray(t,this));if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:E.exec(t))||!n[1]&&e)return(!e||e.jquery?e||S:this.constructor(e)).find(t);if(n[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),w.test(n[1])&&x.isPlainObject(e))for(n in e)x.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((i=C.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return S.find(t);this.length=1,this[0]=i}return this.context=C,this.selector=t,this}).prototype=x.fn;var S=x(C),k=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function D(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.extend({dir:function(t,e,n){for(var i=[],o=t[e];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!x(o).is(n));)1===o.nodeType&&i.push(o),o=o[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),x.fn.extend({has:function(t){var e,n=x(t,this),i=n.length;return this.filter(function(){for(e=0;e
a",g.leadingWhitespace=3===e.firstChild.nodeType,g.tbody=!e.getElementsByTagName("tbody").length,g.htmlSerialize=!!e.getElementsByTagName("link").length,g.html5Clone="<:nav>"!==C.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),g.appendChecked=t.checked,e.innerHTML="",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="",g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){g.noCloneEvent=!1}),e.cloneNode(!0).click()),null==g.deleteExpando){g.deleteExpando=!0;try{delete e.test}catch(t){g.deleteExpando=!1}}}(),function(){var t,e,n=C.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(g[t+"Bubbles"]=e in f)||(n.setAttribute(e,"t"),g[t+"Bubbles"]=!1===n.attributes[e].expando);n=null}();var U=/^(?:input|select|textarea)$/i,Y=/^key/,G=/^(?:mouse|pointer|contextmenu)|click/,Z=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function J(){return!0}function K(){return!1}function tt(){try{return C.activeElement}catch(t){}}function et(t){var e=nt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}x.event={global:{},add:function(t,e,n,i,o){var s,a,r,l,c,u,d,h,p,f=x._data(t);if(f){for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=x.guid++),(s=f.events)||(s=f.events={}),(c=f.handle)||((c=f.handle=function(t){return typeof x===L||t&&x.event.triggered===t.type?void 0:x.event.dispatch.apply(c.elem,arguments)}).elem=t),a=(e=(e||"").match(I)||[""]).length;a--;)d=p=(u=Q.exec(e[a])||[])[1],h=(u[2]||"").split(".").sort(),d&&(l=x.event.special[d]||{},d=(o?l.delegateType:l.bindType)||d,l=x.event.special[d]||{},u=x.extend({type:d,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:h.join(".")},r),(p=s[d])||((p=s[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,i,h,c)||(t.addEventListener?t.addEventListener(d,c,!1):t.attachEvent&&t.attachEvent("on"+d,c))),l.add&&(l.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),x.event.global[d]=!0);t=null}},remove:function(t,e,n,i,o){var s,a,r,l,c,u,d,h,p,f,m,v=x.hasData(t)&&x._data(t);if(v&&(u=v.events)){for(c=(e=(e||"").match(I)||[""]).length;c--;)if(p=m=(r=Q.exec(e[c])||[])[1],f=(r[2]||"").split(".").sort(),p){for(d=x.event.special[p]||{},h=u[p=(i?d.delegateType:d.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=h.length;s--;)a=h[s],!o&&m!==a.origType||n&&n.guid!==a.guid||r&&!r.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(h.splice(s,1),a.selector&&h.delegateCount--,d.remove&&d.remove.call(t,a));l&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,v.handle)||x.removeEvent(t,p,v.handle),delete u[p])}else for(p in u)x.event.remove(t,p+e[c],n,i,!0);x.isEmptyObject(u)&&(delete v.handle,x._removeData(t,"events"))}},trigger:function(t,e,n,i){var o,s,a,r,l,c,u=[n||C],d=v.call(t,"type")?t.type:t,h=v.call(t,"namespace")?t.namespace.split("."):[],p=l=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!Z.test(d+x.event.triggered)&&(0<=d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),s=d.indexOf(":")<0&&"on"+d,(t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:x.makeArray(e,[t]),r=x.event.special[d]||{},i||!r.trigger||!1!==r.trigger.apply(n,e))){if(!i&&!r.noBubble&&!x.isWindow(n)){for(a=r.delegateType||d,Z.test(a+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),l=p;l===(n.ownerDocument||C)&&u.push(l.defaultView||l.parentWindow||f)}for(c=0;(p=u[c++])&&!t.isPropagationStopped();)t.type=1]","i"),st=/^\s+/,at=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rt=/<([\w:]+)/,lt=/\s*$/g,mt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:g.htmlSerialize?[0,"",""]:[1,"X
","
"]},vt=et(C).appendChild(C.createElement("div"));function gt(t,e){var n,i,o=0,s=typeof t.getElementsByTagName!==L?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==L?t.querySelectorAll(e||"*"):void 0;if(!s)for(s=[],n=t.childNodes||t;null!=(i=n[o]);o++)!e||x.nodeName(i,e)?s.push(i):x.merge(s,gt(i,e));return void 0===e||e&&x.nodeName(t,e)?x.merge([t],s):s}function yt(t){V.test(t.type)&&(t.defaultChecked=t.checked)}function wt(t,e){return x.nodeName(t,"table")&&x.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function bt(t){return t.type=(null!==x.find.attr(t,"type"))+"/"+t.type,t}function xt(t){var e=pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Tt(t,e){for(var n,i=0;null!=(n=t[i]);i++)x._data(n,"globalEval",!e||x._data(e[i],"globalEval"))}function Ct(t,e){if(1===e.nodeType&&x.hasData(t)){var n,i,o,s=x._data(t),t=x._data(e,s),a=s.events;if(a)for(n in delete t.handle,t.events={},a)for(i=0,o=a[n].length;i")?s=t.cloneNode(!0):(vt.innerHTML=t.outerHTML,vt.removeChild(s=vt.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(i=gt(s),r=gt(t),a=0;null!=(o=r[a]);++a)i[a]&&function(t,e){var n,i,o;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!g.noCloneEvent&&e[x.expando]){for(i in(o=x._data(e)).events)x.removeEvent(e,i,o.handle);e.removeAttribute(x.expando)}"script"===n&&e.text!==t.text?(bt(e).text=t.text,xt(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),g.html5Clone&&t.innerHTML&&!x.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&V.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}(o,i[a]);if(e)if(n)for(r=r||gt(t),i=i||gt(s),a=0;null!=(o=r[a]);a++)Ct(o,i[a]);else Ct(t,s);return 0<(i=gt(s,"script")).length&&Tt(i,!l&>(t,"script")),i=r=o=null,s},buildFragment:function(t,e,n,i){for(var o,s,a,r,l,c,u,d=t.length,h=et(e),p=[],f=0;f")+u[2],o=u[0];o--;)r=r.lastChild;if(!g.leadingWhitespace&&st.test(s)&&p.push(e.createTextNode(st.exec(s)[0])),!g.tbody)for(o=(s="table"!==l||lt.test(s)?""!==u[1]||lt.test(s)?0:r:r.firstChild)&&s.childNodes.length;o--;)x.nodeName(c=s.childNodes[o],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(x.merge(p,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=h.lastChild}else p.push(e.createTextNode(s));for(r&&h.removeChild(r),g.appendChecked||x.grep(gt(p,"input"),yt),f=0;s=p[f++];)if((!i||-1===x.inArray(s,i))&&(a=x.contains(s.ownerDocument,s),r=gt(h.appendChild(s),"script"),a&&Tt(r),n))for(o=0;s=r[o++];)ht.test(s.type||"")&&n.push(s);return r=null,h},cleanData:function(t,e){for(var n,i,o,s,a=0,r=x.expando,l=x.cache,c=g.deleteExpando,u=x.event.special;null!=(n=t[a]);a++)if((e||x.acceptData(n))&&(s=(o=n[r])&&l[o])){if(s.events)for(i in s.events)u[i]?x.event.remove(n,i):x.removeEvent(n,i,s.handle);l[o]&&(delete l[o],c?delete n[r]:typeof n.removeAttribute!==L?n.removeAttribute(r):n[r]=null,d.push(o))}}}),x.fn.extend({text:function(t){return X(this,function(t){return void 0===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||wt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=wt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?x.filter(t,this):this,o=0;null!=(n=i[o]);o++)e||1!==n.nodeType||x.cleanData(gt(n)),n.parentNode&&(e&&x.contains(n.ownerDocument,n)&&Tt(gt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&x.cleanData(gt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&x.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return X(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(it,""):void 0;if(!("string"!=typeof t||ut.test(t)||!g.htmlSerialize&&ot.test(t)||!g.leadingWhitespace&&st.test(t)||mt[(rt.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(at,"<$1>");try{for(;n")).appendTo(e.documentElement))[0].contentWindow||Et[0].contentDocument).document).write(),e.close(),n=At(t,e),Et.detach()),kt[t]=n),n}g.shrinkWrapBlocks=function(){return null!=St?St:(St=!1,(e=C.getElementsByTagName("body")[0])&&e.style?(t=C.createElement("div"),(n=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),typeof t.style.zoom!==L&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(C.createElement("div")).style.width="5px",St=3!==t.offsetWidth),e.removeChild(n),St):void 0);var t,e,n};var Nt,It,Ft,$t,Pt,Mt,Lt=/^margin/,Ot=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),_t=/^(top|right|bottom|left)$/;function zt(e,n){return{get:function(){var t=e();if(null!=t)return t?void delete this.get:(this.get=n).apply(this,arguments)}}}function jt(){var t,e,n,i=C.getElementsByTagName("body")[0];i&&i.style&&(t=C.createElement("div"),(e=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(e).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",Ft=$t=!1,Mt=!0,f.getComputedStyle&&(Ft="1%"!==(f.getComputedStyle(t,null)||{}).top,$t="4px"===(f.getComputedStyle(t,null)||{width:"4px"}).width,(n=t.appendChild(C.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",t.style.width="1px",Mt=!parseFloat((f.getComputedStyle(n,null)||{}).marginRight)),t.innerHTML="
t
",(n=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(Pt=0===n[0].offsetHeight)&&(n[0].style.display="",n[1].style.display="none",Pt=0===n[0].offsetHeight),i.removeChild(e))}f.getComputedStyle?(Nt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},It=function(t,e,n){var i,o=t.style,s=(n=n||Nt(t))?n.getPropertyValue(e)||n[e]:void 0;return n&&(""!==s||x.contains(t.ownerDocument,t)||(s=x.style(t,e)),Ot.test(s)&&Lt.test(e)&&(i=o.width,t=o.minWidth,e=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=i,o.minWidth=t,o.maxWidth=e)),void 0===s?s:s+""}):C.documentElement.currentStyle&&(Nt=function(t){return t.currentStyle},It=function(t,e,n){var i,o,s,a=t.style;return null==(s=(n=n||Nt(t))?n[e]:void 0)&&a&&a[e]&&(s=a[e]),Ot.test(s)&&!_t.test(e)&&(i=a.left,(n=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=i,n&&(o.left=n)),void 0===s?s:s+""||"auto"}),(ne=C.createElement("div")).innerHTML="
a",(ie=(ie=ne.getElementsByTagName("a")[0])&&ie.style)&&(ie.cssText="float:left;opacity:.5",g.opacity="0.5"===ie.opacity,g.cssFloat=!!ie.cssFloat,ne.style.backgroundClip="content-box",ne.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===ne.style.backgroundClip,g.boxSizing=""===ie.boxSizing||""===ie.MozBoxSizing||""===ie.WebkitBoxSizing,x.extend(g,{reliableHiddenOffsets:function(){return null==Pt&&jt(),Pt},boxSizingReliable:function(){return null==$t&&jt(),$t},pixelPosition:function(){return null==Ft&&jt(),Ft},reliableMarginRight:function(){return null==Mt&&jt(),Mt}})),x.swap=function(t,e,n,i){var o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,i||[]),e)t.style[o]=s[o];return i};var Ht=/alpha\([^)]*\)/i,qt=/opacity\s*=\s*([^)]*)/,Rt=/^(none|table(?!-c[ea]).+)/,Wt=new RegExp("^("+W+")(.*)$","i"),Bt=new RegExp("^([+-])=("+W+")","i"),Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:"0",fontWeight:"400"},Ut=["Webkit","O","Moz","ms"];function Yt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,o=Ut.length;o--;)if((e=Ut[o]+n)in t)return e;return i}function Gt(t,e){for(var n,i,o,s=[],a=0,r=t.length;a
a",p=s.getElementsByTagName("a")[0],ie=(ne=C.createElement("select")).appendChild(C.createElement("option")),W=s.getElementsByTagName("input")[0],p.style.cssText="top:1px",g.getSetAttribute="t"!==s.className,g.style=/top/.test(p.getAttribute("style")),g.hrefNormalized="/a"===p.getAttribute("href"),g.checkOn=!!W.value,g.optSelected=ie.selected,g.enctype=!!C.createElement("form").enctype,ne.disabled=!0,g.optDisabled=!ie.disabled,(W=C.createElement("input")).setAttribute("value",""),g.input=""===W.getAttribute("value"),W.value="t",W.setAttribute("type","radio"),g.radioValue="t"===W.value;var pe=/\r/g;x.fn.extend({val:function(e){var n,t,i,o=this[0];return arguments.length?(i=x.isFunction(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,x(this).val()):e)?t="":"number"==typeof t?t+="":x.isArray(t)&&(t=x.map(t,function(t){return null==t?"":t+""})),(n=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):o?(n=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(pe,""):null==t?"":t:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:x.trim(x.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,s=o?null:[],a=o?i+1:n.length,r=i<0?a:o?i:0;r").append(x.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length};var Qe=f.document.documentElement;function Je(t){return x.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}x.offset={setOffset:function(t,e,n){var i,o,s,a,r=x.css(t,"position"),l=x(t),c={};"static"===r&&(t.style.position="relative"),s=l.offset(),i=x.css(t,"top"),a=x.css(t,"left"),a=("absolute"===r||"fixed"===r)&&-1=o&&s-e.topOffset<=o+a.height()&&t+n.width()>=i&&t-e.leftOffset<=i+a.width()},h.utils.parseOptions=h.utils.options=function(t){if(d.isPlainObject(t))return t;var e=t?t.indexOf("{"):-1,n={};if(-1!=e)try{n=new Function("","var json = "+t.substr(e)+"; return JSON.parse(JSON.stringify(json));")()}catch(t){}return n},h.utils.generateGUID=function(t){for(var e=t+"-"||"am-";e+=Math.random().toString(36).substring(2,7),document.getElementById(e););return e},h.utils.getAbsoluteUrl=function(t){return(i=i||document.createElement("a")).href=t,i.href},h.plugin=function(l,c,u){var t=d.fn[l];u=u||{},d.fn[l]=function(o){var s,a=Array.prototype.slice.call(arguments,0),r=a.slice(1),t=this.each(function(){var t=d(this),e="amui."+l,n=u.dataOptions||"data-am-"+l,i=t.data(e),n=d.extend({},h.utils.parseOptions(t.attr(n)),"object"==typeof o&&o);!i&&"destroy"===o||(i||t.data(e,i=new c(this,n)),u.methodCall?u.methodCall.call(t,a,i):(u.before&&u.before.call(t,a,i),"string"==typeof o&&(s="function"==typeof i[o]?i[o].apply(i,r):i[o]),u.after&&u.after.call(t,a,i)))});return void 0===s?t:s},d.fn[l].Constructor=c,d.fn[l].noConflict=function(){return d.fn[l]=t,this},h[l]=c},d.fn.emulateTransitionEnd=function(t){var e=!1,n=this;d(this).one(h.support.transition.end,function(){e=!0});return this.transitionEndTimmer=setTimeout(function(){e||d(n).trigger(h.support.transition.end),n.transitionEndTimmer=void 0},t),this},d.fn.redraw=function(){return this.each(function(){this.offsetHeight})},d.fn.transitionEnd=function(n){var i=h.support.transition.end,o=this;return n&&i&&o.on(i,function t(e){n.call(this,e),i&&o.off(i,t)}),this},d.fn.removeClassRegEx=function(){return this.each(function(t){var e=d(this).attr("class");if(!e||!t)return!1;for(var n=[],i=0,o=(e=e.split(" ")).length;i=window.innerWidth)return 0;var t=d('
');d(document.body).append(t);var e=t[0].offsetWidth-t[0].clientWidth;return t.remove(),e},h.utils.imageLoader=function(t,e){function n(){e(t[0])}return t.attr("src")?void(t[0].complete||4===t[0].readyState?n():function(){var t,e;this.one("load",n),/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&(e=(t=this.attr("src")).match(/\?/)?"&":"?",e+="random="+(new Date).getTime(),this.attr("src",t+e))}.call(t)):void n()},h.template=function(t,e){var n,i,o,s,a,r=h.template;return r.cache[t]||(r.cache[t]=(i=/^[\w\-]+$/.test(n=t)?r.get(t):(n="template(string)",t),o=1,n=("try { "+(r.variable?"var "+r.variable+" = this.stash;":"with (this.stash) { ")+"this.ret += '"+i.replace(/<%/g,"").replace(/%>/g,"").replace(/'(?![^\x11\x13]+?\x13)/g,"\\x27").replace(/^\s*|\s*$/g,"").replace(/\n/g,function(){return"';\nthis.line = "+ ++o+"; this.ret += '\\n"}).replace(/\x11-(.+?)\x13/g,"' + ($1) + '").replace(/\x11=(.+?)\x13/g,"' + this.escapeHTML($1) + '").replace(/\x11(.+?)\x13/g,"'; $1; this.ret += '")+"'; "+(r.variable?"":"}")+"return this.ret;} catch (e) { throw 'TemplateError: ' + e + ' (on "+n+"' + ' line ' + this.line + ')'; } //@ sourceURL="+n+"\n").replace(/this\.ret \+= '';/g,""),s=new Function(n),a={"&":"&","<":"<",">":">",'"':""","'":"'"},function(t){return s.call(r.context={escapeHTML:l,line:1,ret:"",stash:t})})),e?r.cache[t](e):r.cache[t];function l(t){return(""+t).replace(/[&<>\'\"]/g,function(t){return a[t]})}},h.template.cache={},h.template.get=function(t){if(t){t=document.getElementById(t);return t&&t.innerHTML||""}},h.DOMWatchers=[],h.DOMReady=!1,h.ready=function(t){h.DOMWatchers.push(t),h.DOMReady&&t(document)},h.DOMObserve=function(t,e,o){var s=h.support.mutationobserver;s&&(e=d.isPlainObject(e)?e:{childList:!0,subtree:!0},o="function"==typeof o&&o||function(){},d(t).each(function(){var n=this,i=d(n);if(!i.data("am.observer"))try{var t=new s(h.utils.debounce(function(t,e){o.call(n,t,e),i.trigger("changed.dom.amui")},50));t.observe(n,e),i.data("am.observer",t)}catch(t){}}))},d.fn.DOMObserve=function(t,e){return this.each(function(){h.DOMObserve(this,t,e)})},h.support.touch&&s.addClass("am-touch"),d(document).on("changed.dom.amui",function(t){var n=t.target;d.each(h.DOMWatchers,function(t,e){e(n)})}),d(function(){var t=d(document.body);h.DOMReady=!0,d.each(h.DOMWatchers,function(t,e){e(document)}),h.DOMObserve("[data-am-observe]"),s.removeClass("no-js").addClass("js"),h.support.animation&&s.addClass("cssanimations"),window.navigator.standalone&&s.addClass("am-standalone"),d(".am-topbar-fixed-top").length&&t.addClass("am-with-topbar-fixed-top"),d(".am-topbar-fixed-bottom").length&&t.addClass("am-with-topbar-fixed-bottom");t=d(".am-layout");t.find('[class*="md-block-grid"]').alterClass("md-block-grid-*"),t.find('[class*="lg-block-grid"]').alterClass("lg-block-grid"),d("[data-am-widget]").each(function(){var t=d(this);0===t.parents(".am-layout").length&&t.addClass("am-no-layout")})}),t.exports=h},function(t,e,n){"use strict";function s(t,e,n){return setTimeout(l(t,n),e)}function i(t,e,n){return Array.isArray(t)&&(a(t,n[e],n),1)}function a(t,e,n){if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",t=window.console&&(window.console.warn||window.console.log);return t&&t.call(window.console,i,e),n.apply(this,arguments)}}function r(t,e,n){var i=e.prototype,e=t.prototype=Object.create(i);e.constructor=t,e._super=i,n&&ot(e,n)}function l(t,e){return function(){return t.apply(e,arguments)}}function c(t,e){return typeof t==tt?t.apply(e&&e[0]||void 0,e):t}function u(t,e){return void 0===t?e:t}function d(e,t,n){a(m(t),function(t){e.addEventListener(t,n,!1)})}function h(e,t,n){a(m(t),function(t){e.removeEventListener(t,n,!1)})}function p(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function f(t,e){return-1e[n]}):i.sort():i}function w(t,e){for(var n,i=e[0].toUpperCase()+e.slice(1),o=0;ont(o.y)?o.x:o.y,e.scale=a?function(t,e){return A(e[0],e[1],St)/A(t[0],t[1],St)}(a.pointers,i):1,e.rotation=a?function(t,e){return D(e[1],e[0],St)+D(t[1],t[0],St)}(a.pointers,i):0,e.maxPointers=!n.prevInput||e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers,function(t,e){var n,i,o=t.lastInterval||e,s=e.timeStamp-o.timeStamp;{var a,r,l;e.eventType!=vt&&(ptnt(l.y)?l.x:l.y,r=k(a,r),t.lastInterval=e):(l=o.velocity,n=o.velocityX,i=o.velocityY,r=o.direction)}e.velocity=l,e.velocityX=n,e.velocityY=i,e.direction=r}(n,e);t=t.element;p(e.srcEvent.target,t)&&(t=e.srcEvent.target),e.target=t}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function C(t){for(var e=[],n=0;n=nt(e)?t<0?yt:wt:e<0?bt:xt}function A(t,e,n){var i=e[(n=n||Et)[0]]-t[n[0]],n=e[n[1]]-t[n[1]];return Math.sqrt(i*i+n*n)}function D(t,e,n){var i=e[(n=n||Et)[0]]-t[n[0]],n=e[n[1]]-t[n[1]];return 180*Math.atan2(n,i)/Math.PI}function N(){this.evEl=At,this.evWin=Dt,this.pressed=!1,x.apply(this,arguments)}function I(){this.evEl=Ft,this.evWin=$t,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function F(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,x.apply(this,arguments)}function $(){this.evTarget=Lt,this.targetIds={},x.apply(this,arguments)}function P(){x.apply(this,arguments);var t=l(this.handler,this);this.touch=new $(this.manager,t),this.mouse=new N(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function M(t){var e,n,t=t.changedPointers[0];t.identifier===this.primaryTouch&&(e={x:t.clientX,y:t.clientY},this.lastTouches.push(e),n=this.lastTouches,setTimeout(function(){var t=n.indexOf(e);-1e.threshold&&o&e.direction},attrTest:function(t){return H.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=z(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),r(R,H,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){var e;1!==t.scale&&(e=t.scale<1?"in":"out",t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),r(W,O,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||t.eventType&(mt|vt)&&!o)this.reset();else if(t.eventType&ft)this.reset(),this._timer=s(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&mt)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&mt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=it(),this.manager.emit(this.options.event,this._input)))}}),r(B,H,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),r(X,H,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Tt|Ct,pointers:1},getTouchAction:function(){return q.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Tt|Ct)?e=t.overallVelocity:n&Tt?e=t.overallVelocityX:n&Ct&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&nt(e)>this.options.velocity&&t.eventType&mt},emit:function(t){var e=z(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),r(V,O,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ht]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distanceAdd to Home Screen.",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'},zh_cn:{ios:"如要把应用程式加至主屏幕,请点击%icon, 然后加至主屏幕",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'},zh_tw:{ios:"如要把應用程式加至主屏幕, 請點擊%icon, 然後加至主屏幕.",android:'To add this web app to the home screen open the browser option menu and tap on Add to homescreen. The menu can be accessed by pressing the menu hardware button if your device has one, or by tapping the top right menu icon icon.'}},i.intl)i.intl[u.substr(0,2)]=i.intl[u];i.defaults={appID:"org.cubiq.addtohome",fontSize:15,debug:!1,logging:!1,modal:!1,mandatory:!1,autostart:!0,skipFirstVisit:!1,startDelay:1,lifespan:15,displayPace:1440,maxDisplayCount:0,icon:!0,message:"",validLocation:[],onInit:null,onShow:null,onRemove:null,onAdd:null,onPrivate:null,privateModeOverride:!1,detectHomescreen:!1};var p=window.navigator.userAgent,n=window.navigator;o(i,{hasToken:"#ath"==document.location.hash||d.test(document.location.href)||h.test(document.location.search),isRetina:window.devicePixelRatio&&1=this.options.maxDisplayCount)return void this.doLog("Add to homescreen: not displaying callout because displayed too many times already")}this.shown=!0,this.session.lastDisplayTime=e,this.session.displayCount++,this.updateSession(),this.applicationIcon||("ios"==i.OS?this.applicationIcon=document.querySelector('head link[rel^=apple-touch-icon][sizes="152x152"],head link[rel^=apple-touch-icon][sizes="144x144"],head link[rel^=apple-touch-icon][sizes="120x120"],head link[rel^=apple-touch-icon][sizes="114x114"],head link[rel^=apple-touch-icon]'):this.applicationIcon=document.querySelector('head link[rel^="shortcut icon"][sizes="196x196"],head link[rel^=apple-touch-icon]'));e="";"object"==typeof this.options.message&&i.language in this.options.message?e=this.options.message[i.language][i.OS]:"object"==typeof this.options.message&&i.OS in this.options.message?e=this.options.message[i.OS]:this.options.message in i.intl?e=i.intl[this.options.message][i.OS]:""!==this.options.message?e=this.options.message:i.OS in i.intl[i.language]&&(e=i.intl[i.language][i.OS]),e="

"+e.replace("%icon",'icon')+"

",this.viewport=document.createElement("div"),this.viewport.className="ath-viewport",this.options.modal&&(this.viewport.className+=" ath-modal"),this.options.mandatory&&(this.viewport.className+=" ath-mandatory"),this.viewport.style.position="absolute",this.element=document.createElement("div"),this.element.className="ath-container ath-"+i.OS+" ath-"+i.OS+(i.OSVersion+"").substr(0,1)+" ath-"+(i.isTablet?"tablet":"phone"),this.element.style.cssText="-webkit-transition-property:-webkit-transform,opacity;-webkit-transition-duration:0s;-webkit-transition-timing-function:ease-out;transition-property:transform,opacity;transition-duration:0s;transition-timing-function:ease-out;",this.element.style.webkitTransform="translate3d(0,-"+window.innerHeight+"px,0)",this.element.style.transform="translate3d(0,-"+window.innerHeight+"px,0)",this.options.icon&&this.applicationIcon&&(this.element.className+=" ath-icon",this.img=document.createElement("img"),this.img.className="ath-application-icon",this.img.addEventListener("load",this,!1),this.img.addEventListener("error",this,!1),this.img.src=this.applicationIcon.href,this.element.appendChild(this.img)),this.element.innerHTML+=e,this.viewport.style.left="-99999em",this.viewport.appendChild(this.element),this.container.appendChild(this.viewport),this.img?this.doLog("Add to homescreen: not displaying callout because waiting for img to load"):this._delayedShow()}else setTimeout(this.show.bind(this),50)},_delayedShow:function(t){setTimeout(this._show.bind(this),1e3*this.options.startDelay+500)},_show:function(){var t=this;this.updateViewport(),window.addEventListener("resize",this,!1),window.addEventListener("scroll",this,!1),window.addEventListener("orientationchange",this,!1),this.options.modal&&document.addEventListener("touchmove",this,!0),this.options.mandatory||setTimeout(function(){t.element.addEventListener("click",t,!0)},1e3),setTimeout(function(){t.element.style.webkitTransitionDuration="1.2s",t.element.style.transitionDuration="1.2s",t.element.style.webkitTransform="translate3d(0,0,0)",t.element.style.transform="translate3d(0,0,0)"},0),this.options.lifespan&&(this.removeTimer=setTimeout(this.remove.bind(this),1e3*this.options.lifespan)),this.options.onShow&&this.options.onShow.call(this)},remove:function(){clearTimeout(this.removeTimer),this.img&&(this.img.removeEventListener("load",this,!1),this.img.removeEventListener("error",this,!1)),window.removeEventListener("resize",this,!1),window.removeEventListener("scroll",this,!1),window.removeEventListener("orientationchange",this,!1),document.removeEventListener("touchmove",this,!0),this.element.removeEventListener("click",this,!0),this.element.addEventListener("transitionend",this,!1),this.element.addEventListener("webkitTransitionEnd",this,!1),this.element.addEventListener("MSTransitionEnd",this,!1),this.element.style.webkitTransitionDuration="0.3s",this.element.style.opacity="0"},_removeElements:function(){this.element.removeEventListener("transitionend",this,!1),this.element.removeEventListener("webkitTransitionEnd",this,!1),this.element.removeEventListener("MSTransitionEnd",this,!1),this.container.removeChild(this.viewport),this.shown=!1,this.options.onRemove&&this.options.onRemove.call(this)},updateViewport:function(){var t,e;this.shown&&(this.viewport.style.width=window.innerWidth+"px",this.viewport.style.height=window.innerHeight+"px",this.viewport.style.left=window.scrollX+"px",this.viewport.style.top=window.scrollY+"px",t=document.documentElement.clientWidth,this.orientation=t>document.documentElement.clientHeight?"landscape":"portrait",e="ios"!=i.OS||"portrait"==this.orientation?screen.width:screen.height,this.scale=screen.width>t?1:e/window.innerWidth,this.element.style.fontSize=this.options.fontSize/this.scale+"px")},resize:function(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.updateViewport.bind(this),100)},updateSession:function(){!1!==i.hasLocalStorage&&localStorage&&localStorage.setItem(this.options.appID,JSON.stringify(this.session))},clearSession:function(){this.session=f,this.updateSession()},getItem:function(t){try{if(!localStorage)throw new Error("localStorage is not defined");return localStorage.getItem(t)}catch(t){i.hasLocalStorage=!1}},optOut:function(){this.session.optedout=!0,this.updateSession()},optIn:function(){this.session.optedout=!1,this.updateSession()},clearDisplayCount:function(){this.session.displayCount=0,this.updateSession()},_preventDefault:function(t){t.preventDefault(),t.stopPropagation()}},i.VERSION="3.2.2",t.exports=a.addToHomescreen=i},function(t,e,n){"use strict";var i=n(1),o=n(2),s=function(t,e){var n=this;this.options=i.extend({},s.DEFAULTS,e),this.$element=i(t),this.$element.addClass("am-fade am-in").on("click.alert.amui",".am-close",function(){n.close()})};s.DEFAULTS={removeElement:!0},s.prototype.close=function(){function t(){e.trigger("closed.alert.amui").remove()}var e=this.$element;e.trigger("close.alert.amui").removeClass("am-in"),o.support.transition&&e.hasClass("am-fade")?e.one(o.support.transition.end,t).emulateTransitionEnd(200):t()},o.plugin("alert",s),i(document).on("click.alert.amui.data-api","[data-am-alert]",function(t){i(t.target).is(".am-close")&&i(this).alert("close")}),t.exports=s},function(t,e,n){"use strict";var l=n(1),c=n(2),s=function(t,e){this.$element=l(t),this.options=l.extend({},s.DEFAULTS,e),this.isLoading=!1,this.hasSpinner=!1};s.DEFAULTS={loadingText:"loading...",disabledClassName:"am-disabled",activeClassName:"am-active",spinner:void 0},s.prototype.setState=function(t,e){var n=this.$element,i="disabled",o=n.data(),s=this.options,a=n.is("input")?"val":"html",r="am-btn-"+t+" "+s.disabledClassName;t+="Text",s.resetText||(s.resetText=n[a]()),c.support.animation&&s.spinner&&"html"==a&&!this.hasSpinner&&(s.loadingText=''+s.loadingText,this.hasSpinner=!0),e=e||(void 0===o[t]?s:o)[t],n[a](e),setTimeout(l.proxy(function(){"loadingText"===t?(n.addClass(r).attr(i,i),this.isLoading=!0):this.isLoading&&(n.removeClass(r).removeAttr(i),this.isLoading=!1)},this),0)},s.prototype.toggle=function(){var t,e=!0,n=this.$element,i=this.$element.parent('[class*="am-btn-group"]'),o=s.DEFAULTS.activeClassName;i.length&&("radio"==(t=this.$element.find("input")).prop("type")&&(t.prop("checked")&&n.hasClass(o)?e=!1:i.find("."+o).removeClass(o)),e&&t.prop("checked",!n.hasClass(o)).trigger("change")),e&&(n.toggleClass(o),n.hasClass(o)||n.blur())},c.plugin("button",s,{dataOptions:"data-am-loading",methodCall:function(t,e){"toggle"===t[0]?e.toggle():"string"==typeof t[0]&&e.setState.apply(e,t)}}),l(document).on("click.button.amui.data-api","[data-am-button]",function(t){t.preventDefault();t=l(t.target);(t=!t.hasClass("am-btn")?t.closest(".am-btn"):t).button("toggle")}),c.ready(function(t){l("[data-am-loading]",t).button(),l("[data-am-button]",t).find("input:checked").each(function(){l(this).parent("label").addClass(s.DEFAULTS.activeClassName)})}),t.exports=c.button=s},function(t,e,n){"use strict";function s(i){return this.each(function(){var t=a(this),e=t.data("amui.collapse"),n=a.extend({},o.DEFAULTS,r.utils.options(t.attr("data-am-collapse")),"object"==typeof i&&i);!e&&n.toggle&&"open"===i&&(i=!i),e||t.data("amui.collapse",e=new o(this,n)),"string"==typeof i&&e[i]()})}var a=n(1),r=n(2),o=function(t,e){this.$element=a(t),this.options=a.extend({},o.DEFAULTS,e),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};o.DEFAULTS={toggle:!0},o.prototype.open=function(){if(!this.transitioning&&!this.$element.hasClass("am-in")){var t=a.Event("open.collapse.amui");if(this.$element.trigger(t),!t.isDefaultPrevented()){t=this.$parent&&this.$parent.find("> .am-panel > .am-in");if(t&&t.length){var e=t.data("amui.collapse");if(e&&e.transitioning)return;s.call(t,"close"),e||t.data("amui.collapse",null)}this.$element.removeClass("am-collapse").addClass("am-collapsing").height(0),this.transitioning=1;e=function(){this.$element.removeClass("am-collapsing").addClass("am-collapse am-in").height("").trigger("opened.collapse.amui"),this.transitioning=0};if(!r.support.transition)return e.call(this);t=this.$element[0].scrollHeight;this.$element.one(r.support.transition.end,a.proxy(e,this)).emulateTransitionEnd(300).css({height:t})}}},o.prototype.close=function(){if(!this.transitioning&&this.$element.hasClass("am-in")){var t=a.Event("close.collapse.amui");if(this.$element.trigger(t),!t.isDefaultPrevented()){this.$element.height(this.$element.height()).redraw(),this.$element.addClass("am-collapsing").removeClass("am-collapse am-in"),this.transitioning=1;t=function(){this.transitioning=0,this.$element.trigger("closed.collapse.amui").removeClass("am-collapsing").addClass("am-collapse")};return r.support.transition?void this.$element.height(0).one(r.support.transition.end,a.proxy(t,this)).emulateTransitionEnd(300):t.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("am-in")?"close":"open"]()},a.fn.collapse=s,a(document).on("click.collapse.amui.data-api","[data-am-collapse]",function(t){var e=a(this),n=r.utils.options(e.attr("data-am-collapse")),i=n.target||t.preventDefault()||(o=e.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),t=a(i),o=t.data("amui.collapse"),i=o?"toggle":n,n=n.parent,n=n&&a(n);o&&o.transitioning||(n&&n.find("[data-am-collapse]").not(e).addClass("am-collapsed"),e[t.hasClass("am-in")?"addClass":"removeClass"]("am-collapsed")),s.call(t,i)}),t.exports=r.collapse=o},function(t,e,n){"use strict";var r=n(1),n=n(2),s=r(document),g=function(t,e){if(this.$element=r(t),this.options=r.extend({},g.DEFAULTS,e),this.format=y.parseFormat(this.options.format),this.$element.data("date",this.options.date),this.language=this.getLocale(this.options.locale),this.theme=this.options.theme,this.$picker=r(y.template).appendTo("body").on({click:r.proxy(this.click,this)}),this.isInput=this.$element.is("input"),this.component=!!this.$element.is(".am-datepicker-date")&&this.$element.find(".am-datepicker-add-on"),this.isInput?this.$element.on({"click.datepicker.amui":r.proxy(this.open,this),"keyup.datepicker.amui":r.proxy(this.update,this)}):(this.component||this.$element).on("click.datepicker.amui",r.proxy(this.open,this)),this.minViewMode=this.options.minViewMode,"string"==typeof this.minViewMode)switch(this.minViewMode){case"months":this.minViewMode=1;break;case"years":this.minViewMode=2;break;default:this.minViewMode=0}if(this.viewMode=this.options.viewMode,"string"==typeof this.viewMode)switch(this.viewMode){case"months":this.viewMode=1;break;case"years":this.viewMode=2;break;default:this.viewMode=0}this.startViewMode=this.viewMode,this.weekStart=(this.options.weekStart||g.locales[this.language].weekStart||0)%7,this.weekEnd=(this.weekStart+6)%7,this.onRender=this.options.onRender,this.setTheme(),this.fillDow(),this.fillMonths(),this.update(),this.showMode()};g.DEFAULTS={locale:"zh_CN",format:"yyyy-mm-dd",weekStart:void 0,viewMode:0,minViewMode:0,date:"",theme:"",autoClose:1,onRender:function(t){return""}},g.prototype.open=function(t){this.$picker.show(),this.height=(this.component||this.$element).outerHeight(),this.place(),r(window).on("resize.datepicker.amui",r.proxy(this.place,this)),t&&(t.stopPropagation(),t.preventDefault());var e=this;s.on("mousedown.datapicker.amui touchstart.datepicker.amui",function(t){0===r(t.target).closest(".am-datepicker").length&&e.close()}),this.$element.trigger({type:"open.datepicker.amui",date:this.date})},g.prototype.close=function(){this.$picker.hide(),r(window).off("resize.datepicker.amui",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||r(document).off("mousedown.datapicker.amui touchstart.datepicker.amui",this.close),this.$element.trigger({type:"close.datepicker.amui",date:this.date})},g.prototype.set=function(){var t,e=y.formatDate(this.date,this.format);this.isInput?t=this.$element.attr("value",e):(this.component&&(t=this.$element.find("input").attr("value",e)),this.$element.data("date",e)),t&&t.trigger("change")},g.prototype.setValue=function(t){this.date="string"==typeof t?y.parseDate(t,this.format):new Date(t),this.set(),this.viewDate=new Date(this.date.getFullYear(),this.date.getMonth(),1,0,0,0,0),this.fill()},g.prototype.place=function(){var t=(this.component||this.$element).offset(),e=(this.component||this.$element).width(),n=t.top+this.height,i=t.left,o=s.width()-t.left-e,e=this.isOutView();if(this.$picker.removeClass("am-datepicker-right"),this.$picker.removeClass("am-datepicker-up"),640";t'+g.locales[this.language].daysMin[t++%7]+"";e+="",this.$picker.find(".am-datepicker-days thead").append(e)},g.prototype.fillMonths=function(){for(var t="",e=0;e<12;)t+=''+g.locales[this.language].monthsShort[e++]+"";this.$picker.find(".am-datepicker-months td").append(t)},g.prototype.fill=function(){var t=new Date(this.viewDate),e=t.getFullYear(),n=t.getMonth(),i=this.date.valueOf(),o=new Date(e,n-1,28,0,0,0,0),s=y.getDaysInMonth(o.getFullYear(),o.getMonth()),a=this.$picker.find(".am-datepicker-days .am-datepicker-select");"zh_CN"===this.language?a.text(e+g.locales[this.language].year[0]+" "+g.locales[this.language].months[n]):a.text(g.locales[this.language].months[n]+" "+e),o.setDate(s),o.setDate(s-(o.getDay()-this.weekStart+7)%7),(u=new Date(o)).setDate(u.getDate()+42);for(var r,l,c,u=u.valueOf(),d=[];o.valueOf()"),r=this.onRender(o,0),l=o.getFullYear(),(c=o.getMonth())'+o.getDate()+""),o.getDay()===this.weekEnd&&d.push(""),o.setDate(o.getDate()+1);this.$picker.find(".am-datepicker-days tbody").empty().append(d.join(""));for(var h=this.date.getFullYear(),p=(p=this.$picker.find(".am-datepicker-months").find(".am-datepicker-select").text(e)).end().find("span").removeClass("am-active").removeClass("am-disabled"),f=0;f<12;)this.onRender(t.setFullYear(e,f),1)&&p.eq(f).addClass("am-disabled"),f++;h===e&&p.eq(this.date.getMonth()).removeClass("am-disabled").addClass("am-active");var d="",e=10*parseInt(e/10,10),s=this.$picker.find(".am-datepicker-years").find(".am-datepicker-select").text(e+"-"+(e+9)).end().find("td"),m=new Date(this.viewDate);--e;for(var v=-1;v<11;v++)d+=''+e+"",e+=1;s.html(d)},g.prototype.click=function(t){t.stopPropagation(),t.preventDefault();var e,n,i,o=this.$picker.find(".am-datepicker-days").find(".am-active"),s=this.$picker.find(".am-datepicker-months").find(".am-active").index(),a=r(t.target).closest("span, td, th");if(1===a.length)switch(a[0].nodeName.toLowerCase()){case"th":switch(a[0].className){case"am-datepicker-switch":this.showMode(1);break;case"am-datepicker-prev":case"am-datepicker-next":this.viewDate["set"+y.modes[this.viewMode].navFnc].call(this.viewDate,this.viewDate["get"+y.modes[this.viewMode].navFnc].call(this.viewDate)+y.modes[this.viewMode].navStep*("am-datepicker-prev"===a[0].className?-1:1)),this.fill(),this.set()}break;case"span":if(a.is(".am-disabled"))return;a.is(".am-datepicker-month")?(i=a.parent().find("span").index(a),a.is(".am-active")?this.viewDate.setMonth(i,o.text()):this.viewDate.setMonth(i)):(e=parseInt(a.text(),10)||0,a.is(".am-active")?this.viewDate.setFullYear(e,s,o.text()):this.viewDate.setFullYear(e)),0!==this.viewMode&&(this.date=new Date(this.viewDate),this.$element.trigger({type:"changeDate.datepicker.amui",date:this.date,viewMode:y.modes[this.viewMode].clsName})),this.showMode(-1),this.fill(),this.set();break;case"td":a.is(".am-datepicker-day")&&!a.is(".am-disabled")&&(n=parseInt(a.text(),10)||1,i=this.viewDate.getMonth(),a.is(".am-datepicker-old")?--i:a.is(".am-datepicker-new")&&(i+=1),e=this.viewDate.getFullYear(),this.date=new Date(e,i,n,0,0,0,0),this.viewDate=new Date(e,i,Math.min(28,n),0,0,0,0),this.fill(),this.set(),this.$element.trigger({type:"changeDate.datepicker.amui",date:this.date,viewMode:y.modes[this.viewMode].clsName}),this.options.autoClose&&this.close())}},g.prototype.mousedown=function(t){t.stopPropagation(),t.preventDefault()},g.prototype.showMode=function(t){t&&(this.viewMode=Math.max(this.minViewMode,Math.min(2,this.viewMode+t))),this.$picker.find(">div").hide().filter(".am-datepicker-"+y.modes[this.viewMode].clsName).show()},g.prototype.isOutView=function(){var t=(this.component||this.$element).offset(),e={outRight:!1,outBottom:!1},n=this.$picker,i=t.left+n.outerWidth(!0),n=t.top+n.outerHeight(!0)+this.$element.innerHeight();return i>s.width()&&(e.outRight=!0),n>s.height()&&(e.outBottom=!0),e},g.prototype.getLocale=function(t){return t||((t=navigator.language&&navigator.language.split("-"))[1]=t[1].toUpperCase(),t=t.join("_")),t=!g.locales[t]?"en_US":t},g.prototype.setTheme=function(){this.theme&&this.$picker.addClass("am-datepicker-"+this.theme)},g.locales={en_US:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekStart:0},zh_CN:{days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],daysShort:["周日","周一","周二","周三","周四","周五","周六"],daysMin:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],weekStart:1,year:["年"]}};var y={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,y.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},parseFormat:function(t){var e=t.match(/[.\/\-\s].*?/),t=t.split(/\W+/);if(!e||!t||0===t.length)throw new Error("Invalid date format.");return{separator:e,parts:t}},parseDate:function(t,e){var n,i=t.split(e.separator);if((t=new Date).setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),i.length===e.parts.length){for(var o=t.getFullYear(),s=t.getDate(),a=t.getMonth(),r=0,l=e.parts.length;r
',contTemplate:''};y.template='
'+y.headTemplate+'
'+y.headTemplate+y.contTemplate+'
'+y.headTemplate+y.contTemplate+"
",n.plugin("datepicker",g),n.ready(function(t){r("[data-am-datepicker]").datepicker()}),t.exports=n.datepicker=g},function(t,e,n){"use strict";var i=n(1),o=n(2),s=i(document),a=o.support.transition,r=function(){this.id=o.utils.generateGUID("am-dimmer"),this.$element=i(r.DEFAULTS.tpl,{id:this.id}),this.inited=!1,this.scrollbarWidth=0,this.$used=i([])};r.DEFAULTS={tpl:'
'},r.prototype.init=function(){return this.inited||(i(document.body).append(this.$element),this.inited=!0,s.trigger("init.dimmer.amui"),this.$element.on("touchmove.dimmer.amui",function(t){t.preventDefault()})),this},r.prototype.open=function(t){this.inited||this.init();var e=this.$element;return t&&(this.$used=this.$used.add(i(t))),this.checkScrollbar().setScrollbar(),e.show().trigger("open.dimmer.amui"),a&&e.off(a.end),setTimeout(function(){e.addClass("am-active")},0),this},r.prototype.close=function(t,e){if(this.$used=this.$used.not(i(t)),!e&&this.$used.length)return this;var n=this.$element;return n.removeClass("am-active").trigger("close.dimmer.amui"),function(){n.hide(),this.resetScrollbar()}.call(this),this},r.prototype.checkScrollbar=function(){return this.scrollbarWidth=o.utils.measureScrollbar(),this},r.prototype.setScrollbar=function(){var t=i(document.body),e=parseInt(t.css("padding-right")||0,10);return this.scrollbarWidth&&t.css("padding-right",e+this.scrollbarWidth),t.addClass("am-dimmer-active"),this},r.prototype.resetScrollbar=function(){return i(document.body).css("padding-right","").removeClass("am-dimmer-active"),this},t.exports=o.dimmer=new r},function(t,e,n){"use strict";var s=n(1),n=n(2),a=n.support.animation,i=function(t,e){this.options=s.extend({},i.DEFAULTS,e),e=this.options,this.$element=s(t),this.$toggle=this.$element.find(e.selector.toggle),this.$dropdown=this.$element.find(e.selector.dropdown),this.$boundary=e.boundary===window?s(window):this.$element.closest(e.boundary),this.$justify=e.justify&&s(e.justify).length&&s(e.justify)||void 0,this.$boundary.length||(this.$boundary=s(window)),this.active=!!this.$element.hasClass("am-active"),this.animating=null,this.events()};i.DEFAULTS={animation:"am-animation-slide-top-fixed",boundary:window,justify:void 0,selector:{dropdown:".am-dropdown-content",toggle:".am-dropdown-toggle"},trigger:"click"},i.prototype.toggle=function(){this.clear(),this.animating||this[this.active?"close":"open"]()},i.prototype.open=function(t){var e,n=this.$toggle,i=this.$element,o=this.$dropdown;n.is(".am-disabled, :disabled")||this.active||(i.trigger("open.dropdown.amui").addClass("am-active"),n.trigger("focus"),this.checkDimensions(t),e=s.proxy(function(){i.trigger("opened.dropdown.amui"),this.active=!0,this.animating=0},this),a?(this.animating=1,o.addClass(this.options.animation).on(a.end+".open.dropdown.amui",s.proxy(function(){e(),o.removeClass(this.options.animation)},this))):e())},i.prototype.close=function(){var t,e,n,i;this.active&&(t="am-dropdown-animation",e=this.$element,n=this.$dropdown,e.trigger("close.dropdown.amui"),i=s.proxy(function(){e.removeClass("am-active").trigger("closed.dropdown.amui"),this.active=!1,this.animating=0,this.$toggle.blur()},this),a?(n.removeClass(this.options.animation),n.addClass(t),this.animating=1,n.one(a.end+".close.dropdown.amui",function(){n.removeClass(t),i()})):i())},i.prototype.enable=function(){this.$toggle.prop("disabled",!1)},i.prototype.disable=function(){this.$toggle.prop("disabled",!0)},i.prototype.checkDimensions=function(t){var e,n,i,o;this.$dropdown.length&&(e=this.$dropdown,t&&t.offset&&e.offset(t.offset),n=e.offset(),i=e.outerWidth(),o=this.$boundary.width(),t=s.isWindow(this.boundary)&&this.$boundary.offset()?this.$boundary.offset().left:0,this.$justify&&e.css({"min-width":this.$justify.css("width")}),i+(n.left-t)>o&&this.$element.addClass("am-dropdown-flip"))},i.prototype.clear=function(){s("[data-am-dropdown]").not(this.$element).each(function(){var t=s(this).data("amui.dropdown");t&&t.close()})},i.prototype.events=function(){this.$toggle.on("click.dropdown.amui",s.proxy(function(t){t.preventDefault(),this.toggle()},this)),s(document).on("keydown.dropdown.amui",s.proxy(function(t){27===t.keyCode&&this.active&&this.close()},this)).on("click.outer.dropdown.amui",s.proxy(function(t){!this.active||this.$element[0]!==t.target&&this.$element.find(t.target).length||this.close()},this))},n.plugin("dropdown",i),n.ready(function(t){s("[data-am-dropdown]",t).dropdown()}),s(document).on("click.dropdown.amui.data-api",".am-dropdown form",function(t){t.stopPropagation()}),t.exports=n.dropdown=i},function(t,e,o){!function(b){var h=o(1),i=o(2),n=!0;h.flexslider=function(p,t){var f=h(p);f.vars=h.extend({},h.flexslider.defaults,t);var e,a=f.vars.namespace,m=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,r=("ontouchstart"in window||m||window.DocumentTouch&&document instanceof DocumentTouch)&&f.vars.touch,l="click touchend MSPointerUp keyup",c="",v="vertical"===f.vars.direction,g=f.vars.reverse,y=0'),1":''+n+"";"thumbnails"===f.vars.controlNav&&!0===f.vars.thumbCaptions&&""!==(o=t.attr("data-thumbcaption"))&&void 0!==o&&(s+=''+o+""),f.controlNavScaffold.append("
  • "+s+"
  • "),n++}(f.controlsContainer?h(f.controlsContainer):f).append(f.controlNavScaffold),d.controlNav.set(),d.controlNav.active(),f.controlNavScaffold.delegate("a, img",l,function(t){var e,n;t.preventDefault(),""!==c&&c!==t.type||(e=h(this),n=f.controlNav.index(e),e.hasClass(a+"active")||(f.direction=n>f.currentSlide?"next":"prev",f.flexAnimate(n,f.vars.pauseOnAction))),""===c&&(c=t.type),d.setToClearWatchedEvent()})},setupManual:function(){f.controlNav=f.manualControls,d.controlNav.active(),f.controlNav.bind(l,function(t){var e,n;t.preventDefault(),""!==c&&c!==t.type||(e=h(this),n=f.controlNav.index(e),e.hasClass(a+"active")||(n>f.currentSlide?f.direction="next":f.direction="prev",f.flexAnimate(n,f.vars.pauseOnAction))),""===c&&(c=t.type),d.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===f.vars.controlNav?"img":"a";f.controlNav=h("."+a+"control-nav li "+t,f.controlsContainer||f)},active:function(){f.controlNav.removeClass(a+"active").eq(f.animatingTo).addClass(a+"active")},update:function(t,e){1'+f.count+"")):(1===f.pagingCount?f.controlNavScaffold.find("li"):f.controlNav.eq(e).closest("li")).remove(),d.controlNav.set(),1
  • '+f.vars.prevText+'
  • '+f.vars.nextText+"
  • ");f.customDirectionNav?f.directionNav=f.customDirectionNav:f.controlsContainer?(h(f.controlsContainer).append(t),f.directionNav=h("."+a+"direction-nav li a",f.controlsContainer)):(f.append(t),f.directionNav=h("."+a+"direction-nav li a",f)),d.directionNav.update(),f.directionNav.bind(l,function(t){var e;t.preventDefault(),""!==c&&c!==t.type||(e=h(this).hasClass(a+"next")?f.getTarget("next"):f.getTarget("prev"),f.flexAnimate(e,f.vars.pauseOnAction)),""===c&&(c=t.type),d.setToClearWatchedEvent()})},update:function(){var t=a+"disabled";1===f.pagingCount?f.directionNav.addClass(t).attr("tabindex","-1"):f.vars.animationLoop?f.directionNav.removeClass(t).removeAttr("tabindex"):0===f.animatingTo?f.directionNav.removeClass(t).filter("."+a+"prev").addClass(t).attr("tabindex","-1"):f.animatingTo===f.last?f.directionNav.removeClass(t).filter("."+a+"next").addClass(t).attr("tabindex","-1"):f.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=h('
    ');f.controlsContainer?(f.controlsContainer.append(t),f.pausePlay=h("."+a+"pauseplay a",f.controlsContainer)):(f.append(t),f.pausePlay=h("."+a+"pauseplay a",f)),d.pausePlay.update(f.vars.slideshow?a+"pause":a+"play"),f.pausePlay.bind(l,function(t){t.preventDefault(),""!==c&&c!==t.type||(h(this).hasClass(a+"pause")?(f.manualPause=!0,f.manualPlay=!1,f.pause()):(f.manualPause=!1,f.manualPlay=!0,f.play())),""===c&&(c=t.type),d.setToClearWatchedEvent()})},update:function(t){"play"===t?f.pausePlay.removeClass(a+"pause").addClass(a+"play").html(f.vars.playText):f.pausePlay.removeClass(a+"play").addClass(a+"pause").html(f.vars.pauseText)}},touch:function(){var i,o,s,a,r,l,t,c,u,d=!1,e=0,n=0,h=0;m?(p.style.msTouchAction="none",p._gesture=new MSGesture,(p._gesture.target=p).addEventListener("MSPointerDown",function(t){t.stopPropagation(),f.animating?t.preventDefault():(f.pause(),p._gesture.addPointer(t.pointerId),h=0,a=v?f.h:f.w,l=Number(new Date),s=y&&g&&f.animatingTo===f.last?0:y&&g?f.limit-(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo:y&&f.currentSlide===f.last?f.limit:y?(f.itemW+f.vars.itemMargin)*f.move*f.currentSlide:g?(f.last-f.currentSlide+f.cloneOffset)*a:(f.currentSlide+f.cloneOffset)*a)},!1),p._slider=f,p.addEventListener("MSGestureChange",function(t){t.stopPropagation();var e=t.target._slider;if(e){var n=-t.translationX,i=-t.translationY;return r=h+=v?i:n,d=v?Math.abs(h)a/2)?n.flexAnimate(t,n.vars.pauseOnAction):w||n.flexAnimate(n.currentSlide,n.vars.pauseOnAction,!0)),s=r=o=i=null,h=0)},!1)):(t=function(t){f.animating?t.preventDefault():!window.navigator.msPointerEnabled&&1!==t.touches.length||(f.pause(),a=v?f.h:f.w,l=Number(new Date),e=t.touches[0].pageX,n=t.touches[0].pageY,s=y&&g&&f.animatingTo===f.last?0:y&&g?f.limit-(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo:y&&f.currentSlide===f.last?f.limit:y?(f.itemW+f.vars.itemMargin)*f.move*f.currentSlide:g?(f.last-f.currentSlide+f.cloneOffset)*a:(f.currentSlide+f.cloneOffset)*a,i=v?n:e,o=v?e:n,p.addEventListener("touchmove",c,!1),p.addEventListener("touchend",u,!1))},u=function(t){var e,n;p.removeEventListener("touchmove",c,!1),f.animatingTo!==f.currentSlide||d||null===r||(n=0<(e=g?-r:r)?f.getTarget("next"):f.getTarget("prev"),f.canAdvance(n)&&(Number(new Date)-l<550&&50a/2)?f.flexAnimate(n,f.vars.pauseOnAction):w||f.flexAnimate(f.currentSlide,f.vars.pauseOnAction,!0)),p.removeEventListener("touchend",u,!1),s=r=o=i=null},p.addEventListener("touchstart",t,!(c=function(t){e=t.touches[0].pageX,n=t.touches[0].pageY,r=v?i-n:i-e;(!(d=v?Math.abs(r)f.currentSlide?"next":"prev"),u&&1===f.pagingCount&&(f.direction=f.currentItemf.limit&&1!==f.visible?f.limit:o):0===f.currentSlide&&t===f.count-1&&f.vars.animationLoop&&"next"!==f.direction?g?(f.count+f.cloneOffset)*s:0:f.currentSlide===f.last&&0===t&&f.vars.animationLoop&&"prev"!==f.direction?g?0:(f.count+1)*s:g?(f.count-1-t+f.cloneOffset)*s:(t+f.cloneOffset)*s,f.setProps(t,"",f.vars.animationSpeed),f.transitions?(f.vars.animationLoop&&f.atEnd||(f.animating=!1,f.currentSlide=f.animatingTo),f.container.unbind("webkitTransitionEnd transitionend"),f.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(f.ensureAnimationEnd),f.wrapup(s)}),clearTimeout(f.ensureAnimationEnd),f.ensureAnimationEnd=setTimeout(function(){f.wrapup(s)},f.vars.animationSpeed+100)):f.container.animate(f.args,f.vars.animationSpeed,f.vars.easing,function(){f.wrapup(s)})),f.vars.smoothHeight&&d.smoothHeight(f.vars.animationSpeed)}},f.wrapup=function(t){w||y||(0===f.currentSlide&&f.animatingTo===f.last&&f.vars.animationLoop?f.setProps(t,"jumpEnd"):f.currentSlide===f.last&&0===f.animatingTo&&f.vars.animationLoop&&f.setProps(t,"jumpStart")),f.animating=!1,f.currentSlide=f.animatingTo,f.vars.after(f)},f.animateSlides=function(){!f.animating&&n&&f.flexAnimate(f.getTarget("next"))},f.pause=function(){clearInterval(f.animatedSlides),f.animatedSlides=null,f.playing=!1,f.vars.pausePlay&&d.pausePlay.update("play"),f.syncExists&&d.sync("pause")},f.play=function(){f.playing&&clearInterval(f.animatedSlides),f.animatedSlides=f.animatedSlides||setInterval(f.animateSlides,f.vars.slideshowSpeed),f.started=f.playing=!0,f.vars.pausePlay&&d.pausePlay.update("pause"),f.syncExists&&d.sync("play")},f.stop=function(){f.pause(),f.stopped=!0},f.canAdvance=function(t,e){var n=u?f.pagingCount-1:f.last;return!(!e&&(!u||f.currentItem!==f.count-1||0!==t||"prev"!==f.direction)&&(u&&0===f.currentItem&&t===f.pagingCount-1&&"next"!==f.direction||t===f.currentSlide&&!u||!f.vars.animationLoop&&(f.atEnd&&0===f.currentSlide&&t===n&&"next"!==f.direction||f.atEnd&&f.currentSlide===n&&0===t&&"next"===f.direction)))},f.getTarget=function(t){return"next"===(f.direction=t)?f.currentSlide===f.last?0:f.currentSlide+1:0===f.currentSlide?f.last:f.currentSlide-1},f.setProps=function(t,e,n){var i,o=(i=t||(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo,-1*function(){if(y)return"setTouch"===e?t:g&&f.animatingTo===f.last?0:g?f.limit-(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo:f.animatingTo===f.last?f.limit:i;switch(e){case"setTotal":return g?(f.count-1-f.currentSlide+f.cloneOffset)*t:(f.currentSlide+f.cloneOffset)*t;case"setTouch":return t;case"jumpEnd":return g?t:f.count*t;case"jumpStart":return g?f.count*t:t;default:return t}}()+"px");f.transitions&&(o=v?"translate3d(0,"+o+",0)":"translate3d("+o+",0,0)",f.container.css("-"+f.pfx+"-transition-duration",n=void 0!==n?n/1e3+"s":"0s"),f.container.css("transition-duration",n)),f.args[f.prop]=o,!f.transitions&&void 0!==n||f.container.css(f.args),f.container.css("transform",o)},f.setup=function(t){var e,n;w?(f.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(r?f.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+f.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(f.currentSlide).css({opacity:1,zIndex:2}):0==f.vars.fadeFirstSlide?f.slides.css({opacity:0,display:"block",zIndex:1}).eq(f.currentSlide).css({zIndex:2}).css({opacity:1}):f.slides.css({opacity:0,display:"block",zIndex:1}).eq(f.currentSlide).css({zIndex:2}).animate({opacity:1},f.vars.animationSpeed,f.vars.easing)),f.vars.smoothHeight&&d.smoothHeight()):("init"===t&&(f.viewport=h('
    ').css({overflow:"hidden",position:"relative"}).appendTo(f).append(f.container),f.cloneCount=0,f.cloneOffset=0,g&&(n=h.makeArray(f.slides).reverse(),f.slides=h(n),f.container.empty().append(f.slides))),f.vars.animationLoop&&!y&&(f.cloneCount=2,f.cloneOffset=1,"init"!==t&&f.container.find(".clone").remove(),f.container.append(d.uniqueID(f.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(d.uniqueID(f.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),f.newSlides=h(f.vars.selector,f),e=g?f.count-1-f.currentSlide+f.cloneOffset:f.currentSlide+f.cloneOffset,v&&!y?(f.container.height(200*(f.count+f.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){f.newSlides.css({display:"block"}),f.doMath(),f.viewport.height(f.h),f.setProps(e*f.h,"init")},"init"===t?100:0)):(f.container.width(200*(f.count+f.cloneCount)+"%"),f.setProps(e*f.computedW,"init"),setTimeout(function(){f.doMath(),f.newSlides.css({width:f.computedW,marginRight:f.computedM,float:"left",display:"block"}),f.vars.smoothHeight&&d.smoothHeight()},"init"===t?100:0))),y||f.slides.removeClass(a+"active-slide").eq(f.currentSlide).addClass(a+"active-slide"),f.vars.init(f)},f.doMath=function(){var t=f.slides.first(),e=f.vars.itemMargin,n=f.vars.minItems,i=f.vars.maxItems;f.w=(void 0===f.viewport?f:f.viewport).width(),f.h=t.height(),f.boxPadding=t.outerWidth()-t.width(),y?(f.itemT=f.vars.itemWidth+e,f.itemM=e,f.minW=n?n*f.itemT:f.w,f.maxW=i?i*f.itemT-e:f.w,f.itemW=f.minW>f.w?(f.w-e*(n-1))/n:f.maxWf.w?f.w:f.vars.itemWidth,f.visible=Math.floor(f.w/f.itemW),f.move=0f.w?f.itemW*(f.count-1)+e*(f.count-1):(f.itemW+e)*f.count-f.w-e):(f.itemW=f.w,f.itemM=e,f.pagingCount=f.count,f.last=f.count-1),f.computedW=f.itemW-f.boxPadding,f.computedM=f.itemM},f.update=function(t,e){f.doMath(),y||(tf.controlNav.length?d.controlNav.update("add"):("remove"===e&&!y||f.pagingCountf.last&&(--f.currentSlide,--f.animatingTo),d.controlNav.update("remove",f.last))),f.vars.directionNav&&d.directionNav.update()},f.addSlide=function(t,e){t=h(t);f.count+=1,f.last=f.count-1,v&&g?void 0!==e?f.slides.eq(f.count-e).after(t):f.container.prepend(t):void 0!==e?f.slides.eq(e).before(t):f.container.append(t),f.update(e,"add"),f.slides=h(f.vars.selector+":not(.clone)",f),f.setup(),f.vars.added(f)},f.removeSlide=function(t){var e=isNaN(t)?f.slides.index(h(t)):t;--f.count,f.last=f.count-1,(isNaN(t)?h(t,f.slides):v&&g?f.slides.eq(f.last):f.slides.eq(t)).remove(),f.doMath(),f.update(e,"remove"),f.slides=h(f.vars.selector+":not(.clone)",f),f.setup(),f.vars.removed(f)},d.init()},h(window).blur(function(t){n=!1}).focus(function(t){n=!0}),h.flexslider.defaults={namespace:"am-",selector:".am-slides > li",animation:"slide",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:5e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:" ",nextText:" ",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},h.fn.flexslider=function(n){var t=Array.prototype.slice.call(arguments,1);if("object"==typeof(n=void 0===n?{}:n))return this.each(function(){var t=h(this),e=n.selector||".am-slides > li",e=t.find(e);1===e.length&&!1===n.allowOneSlide||0===e.length?(e.fadeIn(400),n.start&&n.start(t)):void 0===t.data("flexslider")&&new h.flexslider(this,n)});var e,i=h(this).data("flexslider");switch(n){case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:"number"==typeof n?i.flexAnimate(n,!0):"string"==typeof n&&(e="function"==typeof i[n]?i[n].apply(i,t):i[n])}return void 0===e?this:e},i.ready(function(t){h("[data-am-flexslider]",t).each(function(t,e){var n=h(e),e=i.utils.parseOptions(n.data("amFlexslider"));e.before=function(t){t._pausedTimer&&(window.clearTimeout(t._pausedTimer),t._pausedTimer=null)},e.after=function(t){var e=t.vars.playAfterPaused;!e||isNaN(e)||t.playing||t.manualPause||t.manualPlay||t.stopped||(t._pausedTimer=window.setTimeout(function(){t.play()},e))},n.flexslider(e)})}),t.exports=h.flexslider}.call(e,o(12).setImmediate)},function(t,l,c){!function(t,e){function n(t,e){this._id=t,this._clearFn=e}var i=c(13).nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},r=0;l.setTimeout=function(){return new n(o.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new n(o.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(t){t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},l.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},l._unrefActive=l.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},l.setImmediate="function"==typeof t?t:function(t){var e=r++,n=!(arguments.length<2)&&s.call(arguments,1);return a[e]=!0,i(function(){a[e]&&(n?t.apply(null,n):t.call(null),l.clearImmediate(e))}),e},l.clearImmediate="function"==typeof e?e:function(t){delete a[t]}}.call(l,c(12).setImmediate,c(12).clearImmediate)},function(t,e){function i(e){if(r===setTimeout)return setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function n(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&o())}function o(){if(!d){var t=i(n);d=!0;for(var e=u.length;e;){for(c=u,u=[];++hn+this.options.directionLockThreshold?this.directionLocked="h":n>=e+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,e=this.x+i,t=this.y+o,(0Math.abs(t.y-e.y)?this.addOffset({x:-(t.x-e.x),y:0}):this.addOffset({y:-(t.y-e.y),x:0}):this.addOffset({y:-(t.y-e.y),x:-(t.x-e.x)}))},getTouchCenter:function(t){return this.getVectorAvg(t)},getVectorAvg:function(t){return{x:t.map(function(t){return t.x}).reduce(e)/t.length,y:t.map(function(t){return t.y}).reduce(e)/t.length}},addOffset:function(t){this.offset={x:this.offset.x+t.x,y:this.offset.y+t.y}},sanitize:function(){this.zoomFactor'),this.el.before(this.container),this.container.append(this.el),this.container.css({overflow:"hidden",position:"relative"}),this.el.css({"-webkit-transform-origin":"0% 0%","-moz-transform-origin":"0% 0%","-ms-transform-origin":"0% 0%","-o-transform-origin":"0% 0%","transform-origin":"0% 0%",position:"absolute"})},end:function(){this.hasInteraction=!1,this.sanitize(),this.update()},bindEvents:function(){i(this.container.get(0),this),n(window).on("resize",this.update.bind(this)),n(this.el).find("img").on("load",this.update.bind(this))},update:function(){this.updatePlaned||(this.updatePlaned=!0,setTimeout(function(){this.updatePlaned=!1,this.updateAspectRatio();var t=this.getInitialZoomFactor()*this.zoomFactor,e=-this.offset.x/t,n=-this.offset.y/t,i="scale3d("+t+", "+t+",1) translate3d("+e+"px,"+n+"px,0px)",e="scale("+t+", "+t+") translate("+e+"px,"+n+"px)",n=function(){this.clone&&(this.clone.remove(),delete this.clone)}.bind(this);!this.options.use2d||this.hasInteraction||this.inAnimation?(this.is3d=!0,n(),this.el.css({"-webkit-transform":i,"-o-transform":e,"-ms-transform":e,"-moz-transform":e,transform:i})):(this.is3d&&(this.clone=this.el.clone(),this.clone.css("pointer-events","none"),this.clone.appendTo(this.container),setTimeout(n,200)),this.el.css({"-webkit-transform":e,"-o-transform":e,"-ms-transform":e,"-moz-transform":e,transform:e}),this.is3d=!1)}.bind(this),0))},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1}};var i=function(t,n){function e(t,e){if(r!==t){if(r&&!t)switch(r){case"zoom":n.handleZoomEnd(e);break;case"drag":n.handleDragEnd(e)}switch(t){case"zoom":n.handleZoomStart(e);break;case"drag":n.handleDragStart(e)}}r=t}function i(t){2===l?e("zoom"):1===l&&n.canDrag()?e("drag",t):e(null,t)}function o(t){return Array.prototype.slice.call(t).map(function(t){return{x:t.pageX,y:t.pageY}})}function s(t,e){var n=t.x-e.x,e=t.y-e.y;return Math.sqrt(n*n+e*e)}function a(t){t.stopPropagation(),t.preventDefault()}var r=null,l=0,c=null,u=null,d=!0;t.addEventListener("touchstart",function(t){n.enabled&&(d=!0,l=t.touches.length,function(t){var e=(new Date).getTime();if(e-(c=1
    '},o.prototype.init=function(){function t(){e.sizePopover()}var e=this,n=this.$element;this.options.target||(this.$popover=this.getPopover(),this.setContent()),this.$popover.appendTo(s("body")),this.sizePopover(),n.on("open.popover.amui",function(){s(window).on("resize.popover.amui",i.utils.debounce(t,50))}),n.on("close.popover.amui",function(){s(window).off("resize.popover.amui",t)}),this.options.open&&this.open()},o.prototype.sizePopover=function(){var t,e,n,i,o,s,a,r,l,c,u,d,h=this.$element,p=this.$popover;p&&p.length&&(t=p.outerWidth(),e=p.outerHeight(),n=p.find(".am-popover-caret").outerWidth()/2||8,i=e+8,o=h.outerWidth(),s=h.outerHeight(),a=h.offset(),r=h[0].getBoundingClientRect(),l=f.height(),c=f.width(),d=u=0,h="top",p.css({left:"",top:""}).removeClass("am-popover-left am-popover-right am-popover-top am-popover-bottom"),u=i-2
    '};u.configure=function(t){var e,n;for(e in t)n=t[e],void 0!==n&&t.hasOwnProperty(e)&&(d[e]=n);return this},u.status=null,u.set=function(o){var t=u.isStarted();o=n(o,d.minimum,1),u.status=1===o?null:o;var s=u.render(!t),a=s.querySelector(d.barSelector),r=d.speed,l=d.easing;return s.offsetWidth,m(function(t){var e,n,i;""===d.positionUsing&&(d.positionUsing=u.getPositioningCSS()),v(a,(e=o,n=r,i=l,(e="translate3d"===d.positionUsing?{transform:"translate3d("+c(e)+"%,0,0)"}:"translate"===d.positionUsing?{transform:"translate("+c(e)+"%,0)"}:{"margin-left":c(e)+"%"}).transition="all "+n+"ms "+i,e)),1===o?(v(s,{transition:"none",opacity:1}),s.offsetWidth,setTimeout(function(){v(s,{transition:"all "+r+"ms linear",opacity:0}),setTimeout(function(){u.remove(),t()},r)},r)):setTimeout(t,r)}),this},u.isStarted=function(){return"number"==typeof u.status},u.start=function(){u.status||u.set(0);var t=function(){setTimeout(function(){u.status&&(u.trickle(),t())},d.trickleSpeed)};return d.trickle&&t(),this},u.done=function(t){return t||u.status?u.inc(.3+.5*Math.random()).set(1):this},u.inc=function(t){var e=u.status;return e?("number"!=typeof t&&(t=(1-e)*n(Math.random()*e,.1,.95)),e=n(e+t,0,.994),u.set(e)):u.start()},u.trickle=function(){return u.inc(Math.random()*d.trickleRate)},l=i=0,u.promise=function(t){return t&&"resolved"!==t.state()&&(0===l&&u.start(),i++,l++,t.always(function(){0===--l?(i=0,u.done()):u.set((i-l)/i)})),this},u.render=function(t){if(u.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=d.template;var n=e.querySelector(d.barSelector),i=t?"-100":c(u.status||0),t=document.querySelector(d.parent);return v(n,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),d.showSpinner||(i=e.querySelector(d.spinnerSelector))&&r(i),t!=document.body&&s(t,"nprogress-custom-parent"),t.appendChild(e),e},u.remove=function(){e(document.documentElement,"nprogress-busy"),e(document.querySelector(d.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&r(t)},u.isRendered=function(){return!!document.getElementById("nprogress")},u.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var h,p,f,m=(f=[],function(t){f.push(t),1==f.length&&w()}),v=(h=["Webkit","O","Moz","ms"],p={},function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)i=e[n],void 0!==i&&e.hasOwnProperty(n)&&y(t,n,i);else y(t,o[1],o[2])});function g(t){return t=t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()}),p[t]||(p[t]=function(t){var e=document.body.style;if(t in e)return t;for(var n,i=h.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=h[i]+o)in e)return n;return t}(t))}function y(t,e,n){e=g(e),t.style[e]=n}function w(){var t=f.shift();t&&t(w)}return u}();t.exports=i.progress=n},function(t,e,n){"use strict";var l=n(1),c=n(2),i=n(17),o=n(3),s=c.support.animation,a=c.support.transition,r=function(t,e){this.$element=l(t),this.$body=l(document.body),this.options=l.extend({},r.DEFAULTS,e),this.$pureview=l(this.options.tpl).attr("id",c.utils.generateGUID("am-pureview")),this.$slides=null,this.transitioning=null,this.scrollbarWidth=0,this.init()};r.DEFAULTS={tpl:'
        /
        ',className:{prevSlide:"am-pureview-slide-prev",nextSlide:"am-pureview-slide-next",onlyOne:"am-pureview-only",active:"am-active",barActive:"am-pureview-bar-active",activeBody:"am-pureview-active"},selector:{slider:".am-pureview-slider",close:'[data-am-close="pureview"]',total:".am-pureview-total",current:".am-pureview-current",title:".am-pureview-title",actions:".am-pureview-actions",bar:".am-pureview-bar",pinchZoom:".am-pinch-zoom",nav:".am-pureview-nav"},shareBtn:!1,toggleToolbar:!0,target:"img",weChatImagePreview:!0},r.prototype.init=function(){var e=this,n=this.options,t=this.$element,i=this.$pureview;this.refreshSlides(),l("body").append(i),this.$title=i.find(n.selector.title),this.$current=i.find(n.selector.current),this.$bar=i.find(n.selector.bar),this.$actions=i.find(n.selector.actions),n.shareBtn&&this.$actions.append(''),this.$element.on("click.pureview.amui",n.target,function(t){t.preventDefault();t=e.$images.index(this);n.weChatImagePreview&&window.WeixinJSBridge?window.WeixinJSBridge.invoke("imagePreview",{current:e.imgUrls[t],urls:e.imgUrls}):e.open(t)}),i.find(".am-pureview-direction").on("click.direction.pureview.amui","li",function(t){t.preventDefault(),l(this).is(".am-pureview-prev")?e.prevSlide():e.nextSlide()}),i.find(n.selector.nav).on("click.nav.pureview.amui","li",function(){var t=e.$navItems.index(l(this));e.activate(e.$slides.eq(t))}),i.find(n.selector.close).on("click.close.pureview.amui",function(t){t.preventDefault(),e.close()}),this.$slider.hammer().on("swipeleft.pureview.amui",function(t){t.preventDefault(),e.nextSlide()}).on("swiperight.pureview.amui",function(t){t.preventDefault(),e.prevSlide()}).on("press.pureview.amui",function(t){t.preventDefault(),n.toggleToolbar&&e.toggleToolBar()}),this.$slider.data("hammer").get("swipe").set({direction:o.DIRECTION_HORIZONTAL,velocity:.35}),t.DOMObserve({childList:!0,subtree:!0},function(t,e){}),t.on("changed.dom.amui",function(t){t.stopPropagation(),e.refreshSlides()}),l(document).on("keydown.pureview.amui",l.proxy(function(t){t=t.keyCode;37==t?this.prevSlide():39==t?this.nextSlide():27==t&&this.close()},this))},r.prototype.refreshSlides=function(){this.$images=this.$element.find(this.options.target);var o=this,t=this.options,e=this.$pureview,s=l([]),a=l([]),n=this.$images,i=n.length;this.$slider=e.find(t.selector.slider),this.$nav=e.find(t.selector.nav);var r="data-am-pureviewed";this.imgUrls=this.imgUrls||[],i&&(1===i&&e.addClass(t.className.onlyOne),n.not("["+r+"]").each(function(t,e){var n,i="A"===e.nodeName?(n=e.href,e.title||""):(n=l(e).data("rel")||e.src,n=c.utils.getAbsoluteUrl(n),l(e).attr("alt")||"");e.setAttribute(r,"1"),o.imgUrls.push(n),s=s.add(l('
      1. ')),a=a.add(l("
      2. "+(t+1)+"
      3. "))}),e.find(t.selector.total).text(i),this.$slider.append(s),this.$nav.append(a),this.$navItems=this.$nav.find("li"),this.$slides=this.$slider.find("li"))},r.prototype.loadImage=function(t,e){var n;t.data("image-appended")||(n=l("",{src:t.data("src"),alt:t.data("title")}),t.html(n).wrapInner('
        ').redraw(),(n=t.find(this.options.selector.pinchZoom)).data("amui.pinchzoom",new i(n[0],{})),t.data("image-appended",!0)),e&&e.call(this)},r.prototype.activate=function(e){var t=this.options,n=this.$slides,i=n.index(e),o=e.data("title")||"",s=t.className.active;n.find("."+s).is(e)||this.transitioning||(this.loadImage(e,function(){c.utils.imageLoader(e.find("img"),function(t){e.find(".am-pinch-zoom").addClass("am-pureview-loaded"),l(t).addClass("am-img-loaded")})}),this.transitioning=1,this.$title.text(o),this.$current.text(i+1),n.removeClass(),e.addClass(s),n.eq(i-1).addClass(t.className.prevSlide),n.eq(i+1).addClass(t.className.nextSlide),this.$navItems.removeClass().eq(i).addClass(t.className.active),a?e.one(a.end,l.proxy(function(){this.transitioning=0},this)).emulateTransitionEnd(300):this.transitioning=0)},r.prototype.nextSlide=function(){var t,e,n,i;1!==this.$slides.length&&(t=this.$slides,e=t.filter(".am-active"),n=t.index(e),i="am-animation-right-spring",n+1>=t.length?s&&e.addClass(i).on(s.end,function(){e.removeClass(i)}):this.activate(t.eq(n+1)))},r.prototype.prevSlide=function(){var t,e,n,i;1!==this.$slides.length&&(t=this.$slides,e=t.filter(".am-active"),n=this.$slides.index(e),i="am-animation-left-spring",0===n?s&&e.addClass(i).on(s.end,function(){e.removeClass(i)}):this.activate(t.eq(n-1)))},r.prototype.toggleToolBar=function(){this.$pureview.toggleClass(this.options.className.barActive)},r.prototype.open=function(t){t=t||0;this.checkScrollbar(),this.setScrollbar(),this.activate(this.$slides.eq(t)),this.$pureview.show().redraw().addClass(this.options.className.active),this.$body.addClass(this.options.className.activeBody)},r.prototype.close=function(){function t(){this.$pureview.hide(),this.$body.removeClass(e.className.activeBody),this.resetScrollbar()}var e=this.options;this.$pureview.removeClass(e.className.active),this.$slides.removeClass(),a?this.$pureview.one(a.end,l.proxy(t,this)).emulateTransitionEnd(300):t.call(this)},r.prototype.checkScrollbar=function(){this.scrollbarWidth=c.utils.measureScrollbar()},r.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},r.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},c.plugin("pureview",r),c.ready(function(t){l("[data-am-pureview]",t).pureview()}),t.exports=r},function(t,e,n){"use strict";var i=n(1),o=n(2),s=function(t,e){o.support.animation&&(this.options=i.extend({},s.DEFAULTS,e),this.$element=i(t),t=function(){o.utils.rAF.call(window,i.proxy(this.checkView,this))}.bind(this),this.$window=i(window).on("scroll.scrollspy.amui",t).on("resize.scrollspy.amui orientationchange.scrollspy.amui",o.utils.debounce(t,50)),this.timer=this.inViewState=this.initInView=null,t())};s.DEFAULTS={animation:"fade",className:{inView:"am-scrollspy-inview",init:"am-scrollspy-init"},repeat:!0,delay:0,topOffset:0,leftOffset:0},s.prototype.checkView=function(){var t=this.$element,e=this.options,n=o.utils.isInView(t,e),i=e.animation?" am-animation-"+e.animation:"";n&&!this.inViewState&&(this.timer&&clearTimeout(this.timer),this.initInView||(t.addClass(e.className.init),this.offset=t.offset(),this.initInView=!0,t.trigger("init.scrollspy.amui")),this.timer=setTimeout(function(){n&&t.addClass(e.className.inView+i).width()},e.delay),this.inViewState=!0,t.trigger("inview.scrollspy.amui")),!n&&this.inViewState&&e.repeat&&(t.removeClass(e.className.inView+i),this.inViewState=!1,t.trigger("outview.scrollspy.amui"))},s.prototype.check=function(){o.utils.rAF.call(window,i.proxy(this.checkView,this))},o.plugin("scrollspy",s),o.ready(function(t){i("[data-am-scrollspy]",t).scrollspy()}),t.exports=s},function(t,e,n){"use strict";var a=n(1),r=n(2);n(23);var i=function(t,e){this.options=a.extend({},i.DEFAULTS,e),this.$element=a(t),this.anchors=[],this.$links=this.$element.find('a[href^="#"]').each(function(t,e){this.anchors.push(a(e).attr("href"))}.bind(this)),this.$targets=a(this.anchors.join(", "));t=function(){r.utils.rAF.call(window,a.proxy(this.process,this))}.bind(this);this.$window=a(window).on("scroll.scrollspynav.amui",t).on("resize.scrollspynav.amui orientationchange.scrollspynav.amui",r.utils.debounce(t,50)),t(),this.scrollProcess()};i.DEFAULTS={className:{active:"am-active"},closest:!1,smooth:!0,offsetTop:0},i.prototype.process=function(){var n,i=this.$window.scrollTop(),o=this.options,s=[],t=this.$links;this.$targets.each(function(t,e){r.utils.isInView(e,o)&&s.push(e)}),s.length&&(a.each(s,function(t,e){if(a(e).offset().top>=i)return n=a(e),!1}),n&&(o.closest?(t.closest(o.closest).removeClass(o.className.active),t.filter('a[href="#'+n.attr("id")+'"]').closest(o.closest).addClass(o.className.active)):t.removeClass(o.className.active).filter('a[href="#'+n.attr("id")+'"]').addClass(o.className.active)))},i.prototype.scrollProcess=function(){var t=this.$links,n=this.options;n.smooth&&a.fn.smoothScroll&&t.on("click",function(t){t.preventDefault();var e=a(this),t=a(e.attr("href"));t&&(e=n.offsetTop&&!isNaN(parseInt(n.offsetTop))&&parseInt(n.offsetTop)||0,a(window).smoothScroll({position:t.offset().top-e}))})},r.plugin("scrollspynav",i),r.ready(function(t){a("[data-am-scrollspynav]",t).scrollspynav()}),t.exports=i},function(t,e,n){"use strict";var f=n(1),i=n(2),m=i.utils.rAF,v=i.utils.cancelAF,g=!1,y=function(t,e){function n(){r.off("touchstart.smoothscroll.amui",p),g=!1}function i(t){g&&(o=o||t,s=Math.min(1,Math.max((t-o)/h,0)),s=Math.round(c+d*(t=s,(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2))),0

        返回

        <% if (searchBox) { %> <% } %>
          <% for (var i = 0; i < options.length; i++) { %> <% var option = options[i] %> <% if (option.header) { %>
        • <%= option.text %>
        • <% } else { %>
        • <%= option.text %>
        • <% } %> <% } %>
        ',listTpl:'<% for (var i = 0; i < options.length; i++) { %> <% var option = options[i] %> <% if (option.header) { %>
      4. <%= option.text %>
      5. <% } else { %>
      6. <%= option.text %>
      7. <% } %> <% } %>'},i.prototype.init=function(){var t=this,e=this.$element,n=this.options;e.hide();var i={id:r.utils.generateGUID("am-selected"),multiple:this.multiple,options:[],searchBox:n.searchBox,dropUp:n.dropUp,placeholder:n.placeholder};this.$selector=a(r.template(this.options.tpl,i)),this.$selector.css({width:this.options.btnWidth}),this.$list=this.$selector.find(".am-selected-list"),this.$searchField=this.$selector.find(".am-selected-search input"),this.$hint=this.$selector.find(".am-selected-hint");var o=this.$selector.find(".am-selected-btn"),i=[];n.btnSize&&i.push("am-btn-"+n.btnSize),n.btnStyle&&i.push("am-btn-"+n.btnStyle),o.addClass(i.join(" ")),this.$selector.dropdown({justify:o}),e[0].disabled&&this.disable(),n.maxHeight&&this.$selector.find(".am-selected-list").css({"max-height":n.maxHeight,"overflow-y":"scroll"});i=[],o=e.attr("minchecked"),n=e.attr("maxchecked")||n.maxChecked;this.maxChecked=n||1/0,e[0].required&&i.push("必选"),(o||n)&&(o&&i.push("至少选择 "+o+" 项"),n&&i.push("至多选择 "+n+" 项")),this.$hint.text(i.join(",")),this.renderOptions(),this.$element.after(this.$selector),this.dropdown=this.$selector.data("amui.dropdown"),this.$status=this.$selector.find(".am-selected-status"),setTimeout(function(){t.syncData(),t.initialized=!0},0),this.bindEvents()},i.prototype.renderOptions=function(){function i(t,e,n){if(""===e.value)return 1;var i="";e.disabled&&(i+=o.disabledClass),!e.disabled&&e.selected&&(i+=o.selectedClass),s.push({group:n,index:t,classNames:i,text:e.text,value:e.value})}var t=this.$element,o=this.options,s=[],e=t.find("optgroup");this.$originalOptions=this.$element.find("option"),this.multiple||null!==t.val()||this.$originalOptions.length&&(this.$originalOptions.get(0).selected=!0),e.length?e.each(function(n){s.push({header:!0,group:n+1,text:this.label}),e.eq(n).find("option").each(function(t,e){i(t,e,n)})}):this.$originalOptions.each(function(t,e){i(t,e,null)}),this.$list.html(r.template(o.listTpl,{options:s})),this.$shadowOptions=this.$list.find("> li").not(".am-selected-list-header")},i.prototype.setChecked=function(t){var e=this.options,n=a(t),i=n.hasClass(e.selectedClass);if(this.multiple){var o=this.$list.find("."+e.selectedClass).length;if(!i&&this.maxChecked<=o)return this.$element.trigger("checkedOverflow.selected.amui",{selected:this}),!1}else{if(this.dropdown.close(),i)return!1;this.$shadowOptions.not(n).removeClass(e.selectedClass)}n.toggleClass(e.selectedClass),this.syncData(t)},i.prototype.syncData=function(e){var t,n=this,i=this.options,o=[],s=a([]);this.$shadowOptions.filter("."+i.selectedClass).each(function(){var t=a(this);o.push(t.find(".am-selected-text").text()),e||(s=s.add(n.$originalOptions.filter('[value="'+t.data("value")+'"]').prop("selected",!0)))}),e?(t=a(e),this.$originalOptions.filter('[value="'+t.data("value")+'"]').prop("selected",t.hasClass(i.selectedClass))):this.$originalOptions.not(s).prop("selected",!1),this.$element.val()||(o=[i.placeholder]),this.$status.text(o.join(", ")),this.initialized&&this.$element.trigger("change")},i.prototype.bindEvents=function(){var n=this,i="am-selected-list-header",t=r.utils.debounce(function(t){n.$shadowOptions.not("."+i).hide().filter(':containsNC("'+t.target.value+'")').show()},100);this.$list.on("click","> li",function(t){var e=a(this);e.hasClass(n.options.disabledClass)||e.hasClass(i)||n.setChecked(this)}),this.$searchField.on("keyup.selected.amui",t),this.$selector.on("closed.dropdown.amui",function(){n.$searchField.val(""),n.$shadowOptions.css({display:""})}),this.$element.on("validated.field.validator.amui",function(t){t.validity&&(t=t.validity.valid,n.$selector[(t?"remove":"add")+"Class"]("am-invalid"))}),r.support.mutationobserver&&(this.observer=new r.support.mutationobserver(function(){n.$element.trigger("changed.selected.amui")}),this.observer.observe(this.$element[0],{childList:!0,subtree:!0,characterData:!0})),this.$element.on("changed.selected.amui",function(){n.renderOptions(),n.syncData()})},i.prototype.select=function(t){("number"==typeof t?this.$list.find("> li").not(".am-selected-list-header").eq(t):"string"==typeof t?this.$list.find(t):a(t)).trigger("click")},i.prototype.enable=function(){this.$element.prop("disable",!1),this.$selector.dropdown("enable")},i.prototype.disable=function(){this.$element.prop("disable",!0),this.$selector.dropdown("disable")},i.prototype.destroy=function(){this.$element.removeData("amui.selected").show(),this.$selector.remove()},r.plugin("selected",i),r.ready(function(t){a("[data-am-selected]",t).selected()}),t.exports=i},function(t,e,n){"use strict";n(15);var l=n(1),c=n(2),i=n(26),u=document,o=l(u),d=function(t){this.options=l.extend({},d.DEFAULTS,t||{}),this.$element=null,this.$wechatQr=null,this.pics=null,this.inited=!1,this.active=!1};d.DEFAULTS={sns:["weibo","qq","qzone","tqq","wechat","renren"],title:"分享到",cancel:"取消",closeOnShare:!0,id:c.utils.generateGUID("am-share"),desc:"Hi,孤夜观天象,发现一个不错的西西,分享一下下 ;-)",via:"Amaze UI",tpl:''},d.SNS={weibo:{title:"新浪微博",url:"http://service.weibo.com/share/share.php",width:620,height:450,icon:"weibo"},qq:{title:"QQ 好友",url:"http://connect.qq.com/widget/shareqq/index.html",icon:"qq"},qzone:{title:"QQ 空间",url:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",icon:"star"},tqq:{title:"腾讯微博",url:"http://v.t.qq.com/share/share.php",icon:"tencent-weibo"},wechat:{title:"微信",url:"[qrcode]",icon:"wechat"},renren:{title:"人人网",url:"http://widget.renren.com/dialog/share",icon:"renren"},douban:{title:"豆瓣",url:"http://www.douban.com/recommend/",icon:"share-alt"},mail:{title:"邮件分享",url:"mailto:",icon:"envelope-o"},sms:{title:"短信分享",url:"sms:",icon:"comment"}},d.prototype.render=function(){var i=this.options,o=[],s=encodeURIComponent(u.title),a=encodeURIComponent(u.location),r="?body="+s+a;return i.sns.forEach(function(t,e){var n;d.SNS[t]&&(t="mail"===((n=d.SNS[t]).id=t)?r+"&subject="+i.desc:"sms"===t?r:"?url="+a+"&title="+s,n.shareUrl=n.url+t,o.push(n))}),c.template(i.tpl,l.extend({},i,{sns:o}))},d.prototype.init=function(){var t,n;this.inited||(n="[data-am-share-to]",o.ready(l.proxy(function(){l("body").append(this.render()),this.$element=l("#"+this.options.id),this.$element.find("[data-am-share-close]").on("click.share.amui",function(){t.close()})},t=this)),o.on("click.share.amui",n,l.proxy(function(t){var e=l(t.target),e=(e.is(n)&&e||e.parent(n)).attr("data-am-share-to");"mail"!==e&&"sms"!==e&&(t.preventDefault(),this.shareTo(e,this.setData(e))),this.close()},this)),this.inited=!0)},d.prototype.open=function(){this.inited||this.init(),this.$element&&this.$element.modal("open"),this.$element.trigger("open.share.amui"),this.active=!0},d.prototype.close=function(){this.$element&&this.$element.modal("close"),this.$element.trigger("close.share.amui"),this.active=!1},d.prototype.toggle=function(){this.active?this.close():this.open()},d.prototype.setData=function(t){if(t){var e={url:u.location,title:u.title},n=this.options.desc,i=this.pics||[];if(/^(qzone|qq|tqq)$/.test(t)&&!i.length){for(var o=u.images,s=0;s