!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b="length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+K.uid++}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){
return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ba=/<([\w:]+)/,ca=/<|&#?\w+;/,da=/<(?:script|style|link)/i,ea=/checked\s*(?:[^=]|=\s*.checked.)/i,fa=/^$|\/(?:java|ecma)script/i,ga=/^true\/(.*)/,ha=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ia={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ia.optgroup=ia.option,ia.tbody=ia.tfoot=ia.colgroup=ia.caption=ia.thead,ia.th=ia.td;function ja(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function ka(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function la(a){var b=ga.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function ma(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function na(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function oa(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pa(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=oa(h),f=oa(a),d=0,e=f.length;e>d;d++)pa(f[d],g[d]);if(b)if(c)for(f=f||oa(a),g=g||oa(h),d=0,e=f.length;e>d;d++)na(f[d],g[d]);else na(a,h);return g=oa(h,"script"),g.length>0&&ma(g,!i&&oa(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(ca.test(e)){f=f||k.appendChild(b.createElement("div")),g=(ba.exec(e)||["",""])[1].toLowerCase(),h=ia[g]||ia._default,f.innerHTML=h[1]+e.replace(aa,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=oa(k.appendChild(e),"script"),i&&ma(f),c)){j=0;while(e=f[j++])fa.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ja(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(oa(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&ma(oa(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(oa(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!da.test(a)&&!ia[(ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(aa,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(oa(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(oa(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&ea.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(oa(c,"script"),ka),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,oa(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,la),j=0;g>j;j++)h=f[j],fa.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(ha,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qa,ra={};function sa(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function ta(a){var b=l,c=ra[a];return c||(c=sa(a,b),"none"!==c&&c||(qa=(qa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qa[0].contentDocument,b.write(),b.close(),c=sa(a,b),qa.detach()),ra[a]=c),c}var ua=/^margin/,va=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wa=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};function xa(a,b,c){var d,e,f,g,h=a.style;return c=c||wa(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),va.test(g)&&ua.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function ya(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.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",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),f.removeChild(c),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var za=/^(none|table(?!-c[ea]).+)/,Aa=new RegExp("^("+Q+")(.*)$","i"),Ba=new RegExp("^([+-])=("+Q+")","i"),Ca={position:"absolute",visibility:"hidden",display:"block"},Da={letterSpacing:"0",fontWeight:"400"},Ea=["Webkit","O","Moz","ms"];function Fa(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Ea.length;while(e--)if(b=Ea[e]+c,b in a)return b;return d}function Ga(a,b,c){var d=Aa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Ha(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ia(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wa(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xa(a,b,f),(0>e||null==e)&&(e=a.style[b]),va.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Ha(a,b,c||(g?"border":"content"),d,f)+"px"}function Ja(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",ta(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fa(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ba.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fa(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xa(a,b,d)),"normal"===e&&b in Da&&(e=Da[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?za.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Ca,function(){return Ia(a,b,d)}):Ia(a,b,d):void 0},set:function(a,c,d){var e=d&&wa(a);return Ga(a,c,d?Ha(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=ya(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ua.test(a)||(n.cssHooks[a+b].set=Ga)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wa(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Ja(this,!0)},hide:function(){return Ja(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Ka(a,b,c,d,e){return new Ka.prototype.init(a,b,c,d,e)}n.Tween=Ka,Ka.prototype={constructor:Ka,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ka.propHooks[this.prop];return a&&a.get?a.get(this):Ka.propHooks._default.get(this)},run:function(a){var b,c=Ka.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ka.propHooks._default.set(this),this}},Ka.prototype.init.prototype=Ka.prototype,Ka.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Ka.propHooks.scrollTop=Ka.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Ka.prototype.init,n.fx.step={};var La,Ma,Na=/^(?:toggle|show|hide)$/,Oa=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pa=/queueHooks$/,Qa=[Va],Ra={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Oa.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Oa.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sa(){return setTimeout(function(){La=void 0}),La=n.now()}function Ta(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ua(a,b,c){for(var d,e=(Ra[b]||[]).concat(Ra["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Va(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||ta(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Na.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?ta(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ua(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wa(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xa(a,b,c){var d,e,f=0,g=Qa.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=La||Sa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:La||Sa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wa(k,j.opts.specialEasing);g>f;f++)if(d=Qa[f].call(j,a,k,j.opts))return d;return n.map(k,Ua,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xa,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Ra[c]=Ra[c]||[],Ra[c].unshift(b)},prefilter:function(a,b){b?Qa.unshift(a):Qa.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xa(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pa.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Ta(b,!0),a,d,e)}}),n.each({slideDown:Ta("show"),slideUp:Ta("hide"),slideToggle:Ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(La=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),La=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ma||(Ma=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Ma),Ma=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Ya,Za,$a=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Za:Ya)),
void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Za={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$a[b]||n.find.attr;$a[b]=function(a,b,d){var e,f;return d||(f=$a[b],$a[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$a[b]=f),e}});var _a=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_a.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ab=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ab," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ab," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ab," ").indexOf(b)>=0)return!0;return!1}});var bb=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cb=n.now(),db=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var eb=/#.*$/,fb=/([?&])_=[^&]*/,gb=/^(.*?):[ \t]*([^\r\n]*)$/gm,hb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ib=/^(?:GET|HEAD)$/,jb=/^\/\//,kb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,lb={},mb={},nb="*/".concat("*"),ob=a.location.href,pb=kb.exec(ob.toLowerCase())||[];function qb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function rb(a,b,c,d){var e={},f=a===mb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function sb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function tb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function ub(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ob,type:"GET",isLocal:hb.test(pb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?sb(sb(a,n.ajaxSettings),b):sb(n.ajaxSettings,a)},ajaxPrefilter:qb(lb),ajaxTransport:qb(mb),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=gb.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||ob)+"").replace(eb,"").replace(jb,pb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=kb.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===pb[1]&&h[2]===pb[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(pb[3]||("http:"===pb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),rb(lb,k,b,v),2===t)return v;i=n.event&&k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!ib.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(db.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=fb.test(d)?d.replace(fb,"$1_="+cb++):d+(db.test(d)?"&":"?")+"_="+cb++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+nb+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=rb(mb,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=tb(k,v,f)),u=ub(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var vb=/%20/g,wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&").replace(vb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Bb=0,Cb={},Db={0:200,1223:204},Eb=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Cb)Cb[a]()}),k.cors=!!Eb&&"withCredentials"in Eb,k.ajax=Eb=!!Eb,n.ajaxTransport(function(a){var b;return k.cors||Eb&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Bb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Cb[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Db[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Cb[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Fb=[],Gb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Fb.pop()||n.expando+"_"+cb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Gb.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Gb,"$1"+e):b.jsonp!==!1&&(b.url+=(db.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Fb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Hb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Hb)return Hb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Ib=a.document.documentElement;function Jb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Jb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Ib;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ib})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Jb(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=ya(k.pixelPosition,function(a,c){return c?(c=xa(a,b),va.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Kb=a.jQuery,Lb=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Lb),b&&a.jQuery===n&&(a.jQuery=Kb),n},typeof b===U&&(a.jQuery=a.$=n),n});
+function(a){"use strict";var b={autoInit:!1,showPageLoadingIndicator:!0,router:!1,swipePanel:"left",swipePanelOnlyClose:!1,pushAnimationDuration:400};a.smConfig=a.extend(b,a.config)}($),function(a){"use strict";var b={},c=navigator.userAgent,d=c.match(/(Android);?[\s\/]+([\d.]+)?/),e=c.match(/(iPad).*OS\s([\d_]+)/),f=c.match(/(iPod)(.*OS\s([\d_]+))?/),g=!e&&c.match(/(iPhone\sOS)\s([\d_]+)/);if(b.ios=b.android=b.iphone=b.ipad=b.androidChrome=!1,d&&(b.os="android",b.osVersion=d[2],b.android=!0,b.androidChrome=c.toLowerCase().indexOf("chrome")>=0),(e||g||f)&&(b.os="ios",b.ios=!0),g&&!f&&(b.osVersion=g[2].replace(/_/g,"."),b.iphone=!0),e&&(b.osVersion=e[2].replace(/_/g,"."),b.ipad=!0),f&&(b.osVersion=f[3]?f[3].replace(/_/g,"."):null,b.iphone=!0),b.ios&&b.osVersion&&c.indexOf("Version/")>=0&&"10"===b.osVersion.split(".")[0]&&(b.osVersion=c.toLowerCase().split("version/")[1].split(" ")[0]),b.webView=(g||e||f)&&c.match(/.*AppleWebKit(?!.*Safari)/i),b.os&&"ios"===b.os){var h=b.osVersion.split(".");b.minimalUi=!b.webView&&(f||g)&&(1*h[0]===7?1*h[1]>=1:1*h[0]>7)&&a('meta[name="viewport"]').length>0&&a('meta[name="viewport"]').attr("content").indexOf("minimal-ui")>=0}var i=a(window).width(),j=a(window).height();b.statusBar=!1,b.webView&&i*j===screen.width*screen.height?b.statusBar=!0:b.statusBar=!1;var k=[];if(b.pixelRatio=window.devicePixelRatio||1,k.push("pixel-ratio-"+Math.floor(b.pixelRatio)),b.pixelRatio>=2&&k.push("retina"),b.os&&(k.push(b.os,b.os+"-"+b.osVersion.split(".")[0],b.os+"-"+b.osVersion.replace(/\./g,"-")),"ios"===b.os))for(var l=parseInt(b.osVersion.split(".")[0],10),m=l-1;m>=6;m--)k.push("ios-gt-"+m);b.statusBar?k.push("with-statusbar-overlay"):a("html").removeClass("with-statusbar-overlay"),k.length>0&&a("html").addClass(k.join(" ")),a.device=b}($),+function(a){"use strict";a.compareVersion=function(a,b){var c=a.split("."),d=b.split(".");if(a===b)return 0;for(var e=0;e<c.length;e++){var f=parseInt(c[e]);if(!d[e])return 1;var g=parseInt(d[e]);if(g>f)return-1;if(f>g)return 1}return 1},a.getTouchPosition=function(a){return a=a.originalEvent||a,"touchstart"===a.type||"touchmove"===a.type||"touchend"===a.type?{x:a.targetTouches[0].pageX,y:a.targetTouches[0].pageY}:{x:a.pageX,y:a.pageY}}}($),+function(a){"use strict";function b(a,b){var c=this.os={},d=this.browser={},e=a.match(/Web[kK]it[\/]{0,1}([\d.]+)/),f=a.match(/(Android);?[\s\/]+([\d.]+)?/),g=!!a.match(/\(Macintosh\; Intel /),h=a.match(/(iPad).*OS\s([\d_]+)/),i=a.match(/(iPod)(.*OS\s([\d_]+))?/),j=!h&&a.match(/(iPhone\sOS)\s([\d_]+)/),k=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),l=/Win\d{2}|Windows/.test(b),m=a.match(/Windows Phone ([\d.]+)/),n=k&&a.match(/TouchPad/),o=a.match(/Kindle\/([\d.]+)/),p=a.match(/Silk\/([\d._]+)/),q=a.match(/(BlackBerry).*Version\/([\d.]+)/),r=a.match(/(BB10).*Version\/([\d.]+)/),s=a.match(/(RIM\sTablet\sOS)\s([\d.]+)/),t=a.match(/PlayBook/),u=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),v=a.match(/Firefox\/([\d.]+)/),w=a.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),x=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),y=!u&&a.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),z=y||a.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(d.webkit=!!e)&&(d.version=e[1]),f&&(c.android=!0,c.version=f[2]),j&&!i&&(c.ios=c.iphone=!0,c.version=j[2].replace(/_/g,".")),h&&(c.ios=c.ipad=!0,c.version=h[2].replace(/_/g,".")),i&&(c.ios=c.ipod=!0,c.version=i[3]?i[3].replace(/_/g,"."):null),m&&(c.wp=!0,c.version=m[1]),k&&(c.webos=!0,c.version=k[2]),n&&(c.touchpad=!0),q&&(c.blackberry=!0,c.version=q[2]),r&&(c.bb10=!0,c.version=r[2]),s&&(c.rimtabletos=!0,c.version=s[2]),t&&(d.playbook=!0),o&&(c.kindle=!0,c.version=o[1]),p&&(d.silk=!0,d.version=p[1]),!p&&c.android&&a.match(/Kindle Fire/)&&(d.silk=!0),u&&(d.chrome=!0,d.version=u[1]),v&&(d.firefox=!0,d.version=v[1]),w&&(c.firefoxos=!0,c.version=w[1]),x&&(d.ie=!0,d.version=x[1]),z&&(g||c.ios||l)&&(d.safari=!0,c.ios||(d.version=z[1])),y&&(d.webview=!0),c.tablet=!!(h||t||f&&!a.match(/Mobile/)||v&&a.match(/Tablet/)||x&&!a.match(/Phone/)&&a.match(/Touch/)),c.phone=!(c.tablet||c.ipod||!(f||j||k||q||r||u&&a.match(/Android/)||u&&a.match(/CriOS\/([\d.]+)/)||v&&a.match(/Mobile/)||x&&a.match(/Touch/)))}b.call(a,navigator.userAgent,navigator.platform),a.__detect=b}($),function(a){"use strict";["width","height"].forEach(function(b){var c=b.replace(/./,function(a){return a[0].toUpperCase()});a.fn["outer"+c]=function(a){var c=this;if(c){var d=c[b](),e={width:["left","right"],height:["top","bottom"]};return e[b].forEach(function(b){a&&(d+=parseInt(c.css("margin-"+b),10))}),d}return null}}),a.noop=function(){},a.support=function(){var a={touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)};return a}(),a.touchEvents={start:a.support.touch?"touchstart":"mousedown",move:a.support.touch?"touchmove":"mousemove",end:a.support.touch?"touchend":"mouseup"},a.getTranslate=function(a,b){var c,d,e,f;return"undefined"==typeof b&&(b="x"),e=window.getComputedStyle(a,null),window.WebKitCSSMatrix?f=new WebKitCSSMatrix("none"===e.webkitTransform?"":e.webkitTransform):(f=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),c=f.toString().split(",")),"x"===b&&(d=window.WebKitCSSMatrix?f.m41:16===c.length?parseFloat(c[12]):parseFloat(c[4])),"y"===b&&(d=window.WebKitCSSMatrix?f.m42:16===c.length?parseFloat(c[13]):parseFloat(c[5])),d||0},a.requestAnimationFrame=function(a){return window.requestAnimationFrame?window.requestAnimationFrame(a):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(a):window.mozRequestAnimationFrame?window.mozRequestAnimationFrame(a):window.setTimeout(a,1e3/60)},a.cancelAnimationFrame=function(a){return window.cancelAnimationFrame?window.cancelAnimationFrame(a):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(a):window.mozCancelAnimationFrame?window.mozCancelAnimationFrame(a):window.clearTimeout(a)},a.fn.transitionEnd=function(a){function b(f){if(f.target===this)for(a.call(this,f),c=0;c<d.length;c++)e.off(d[c],b)}var c,d=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],e=this;if(a)for(c=0;c<d.length;c++)e.on(d[c],b);return this},a.fn.dataset=function(){var b=this[0];if(b){var c={};if(b.dataset)for(var d in b.dataset)c[d]=b.dataset[d];else for(var e=0;e<b.attributes.length;e++){var f=b.attributes[e];f.name.indexOf("data-")>=0&&(c[a.toCamelCase(f.name.split("data-")[1])]=f.value)}for(var g in c)"false"===c[g]?c[g]=!1:"true"===c[g]?c[g]=!0:parseFloat(c[g])===1*c[g]&&(c[g]=1*c[g]);return c}},a.fn.data=function(a,b){if("undefined"!=typeof b){for(var c=0;c<this.length;c++){var d=this[c];d.smElementDataStorage||(d.smElementDataStorage={}),d.smElementDataStorage[a]=b}return this}if(this[0]&&this[0].getAttribute){var e=this[0].getAttribute("data-"+a);return e?e:this[0].smElementDataStorage&&a in this[0].smElementDataStorage?this[0].smElementDataStorage[a]:void 0}},a.fn.animationEnd=function(a){function b(f){for(a(f),c=0;c<d.length;c++)e.off(d[c],b)}var c,d=["webkitAnimationEnd","OAnimationEnd","MSAnimationEnd","animationend"],e=this;if(a)for(c=0;c<d.length;c++)e.on(d[c],b);return this},a.fn.transition=function(a){"string"!=typeof a&&(a+="ms");for(var b=0;b<this.length;b++){var c=this[b].style;c.webkitTransitionDuration=c.MsTransitionDuration=c.msTransitionDuration=c.MozTransitionDuration=c.OTransitionDuration=c.transitionDuration=a}return this},a.fn.transform=function(a){for(var b=0;b<this.length;b++){var c=this[b].style;c.webkitTransform=c.MsTransform=c.msTransform=c.MozTransform=c.OTransform=c.transform=a}return this},a.fn.prevAll=function(b){var c=[],d=this[0];if(!d)return a([]);for(;d.previousElementSibling;){var e=d.previousElementSibling;b?a(e).is(b)&&c.push(e):c.push(e),d=e}return a(c)},a.fn.nextAll=function(b){var c=[],d=this[0];if(!d)return a([]);for(;d.nextElementSibling;){var e=d.nextElementSibling;b?a(e).is(b)&&c.push(e):c.push(e),d=e}return a(c)},a.fn.show=function(){function a(a){var c,d;return b[a]||(c=document.createElement(a),document.body.appendChild(c),d=getComputedStyle(c,"").getPropertyValue("display"),c.parentNode.removeChild(c),"none"===d&&(d="block"),b[a]=d),b[a]}var b={};return this.each(function(){"none"===this.style.display&&(this.style.display=""),"none"===getComputedStyle(this,"").getPropertyValue("display"),this.style.display=a(this.nodeName)})},a.fn.scrollHeight=function(){return this[0].scrollHeight}}($),function(a){"use strict";function b(a,c){function e(a,b){return function(){return a.apply(b,arguments)}}var f;if(c=c||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=c.touchBoundary||10,this.layer=a,this.tapDelay=c.tapDelay||200,this.tapTimeout=c.tapTimeout||700,!b.notNeeded(a)){for(var g=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],h=this,i=0,j=g.length;j>i;i++)h[g[i]]=e(h[g[i]],h);d&&(a.addEventListener("mouseover",this.onMouse,!0),a.addEventListener("mousedown",this.onMouse,!0),a.addEventListener("mouseup",this.onMouse,!0)),a.addEventListener("click",this.onClick,!0),a.addEventListener("touchstart",this.onTouchStart,!1),a.addEventListener("touchmove",this.onTouchMove,!1),a.addEventListener("touchend",this.onTouchEnd,!1),a.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(a.removeEventListener=function(b,c,d){var e=Node.prototype.removeEventListener;"click"===b?e.call(a,b,c.hijacked||c,d):e.call(a,b,c,d)},a.addEventListener=function(b,c,d){var e=Node.prototype.addEventListener;"click"===b?e.call(a,b,c.hijacked||(c.hijacked=function(a){a.propagationStopped||c(a)}),d):e.call(a,b,c,d)}),"function"==typeof a.onclick&&(f=a.onclick,a.addEventListener("click",function(a){f(a)},!1),a.onclick=null)}}var c=navigator.userAgent.indexOf("Windows Phone")>=0,d=navigator.userAgent.indexOf("Android")>0&&!c,e=/iP(ad|hone|od)/.test(navigator.userAgent)&&!c,f=e&&/OS 4_\d(_\d)?/.test(navigator.userAgent),g=e&&/OS [6-7]_\d/.test(navigator.userAgent),h=navigator.userAgent.indexOf("BB10")>0;b.prototype.needsClick=function(a){switch(a.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(a.disabled)return!0;break;case"input":if(e&&"file"===a.type||a.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(a.className)},b.prototype.needsFocus=function(a){switch(a.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!d;case"input":switch(a.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!a.disabled&&!a.readOnly;default:return/\bneedsfocus\b/.test(a.className)}},b.prototype.sendClick=function(a,b){var c,d;document.activeElement&&document.activeElement!==a&&document.activeElement.blur(),d=b.changedTouches[0],c=document.createEvent("MouseEvents"),c.initMouseEvent(this.determineEventType(a),!0,!0,window,1,d.screenX,d.screenY,d.clientX,d.clientY,!1,!1,!1,!1,0,null),c.forwardedTouchEvent=!0,a.dispatchEvent(c)},b.prototype.determineEventType=function(a){return d&&"select"===a.tagName.toLowerCase()?"mousedown":"click"},b.prototype.focus=function(a){var b;e&&a.setSelectionRange&&0!==a.type.indexOf("date")&&"time"!==a.type&&"month"!==a.type?(b=a.value.length,a.setSelectionRange(b,b)):a.focus()},b.prototype.updateScrollParent=function(a){var b,c;if(b=a.fastClickScrollParent,!b||!b.contains(a)){c=a;do{if(c.scrollHeight>c.offsetHeight){b=c,a.fastClickScrollParent=c;break}c=c.parentElement}while(c)}b&&(b.fastClickLastScrollTop=b.scrollTop)},b.prototype.getTargetElementFromEventTarget=function(a){return a.nodeType===Node.TEXT_NODE?a.parentNode:a},b.prototype.onTouchStart=function(a){var b,c,d;if(a.targetTouches.length>1)return!0;if(b=this.getTargetElementFromEventTarget(a.target),c=a.targetTouches[0],e){if(d=window.getSelection(),d.rangeCount&&!d.isCollapsed)return!0;if(!f){if(c.identifier&&c.identifier===this.lastTouchIdentifier)return a.preventDefault(),!1;this.lastTouchIdentifier=c.identifier,this.updateScrollParent(b)}}return this.trackingClick=!0,this.trackingClickStart=a.timeStamp,this.targetElement=b,this.touchStartX=c.pageX,this.touchStartY=c.pageY,a.timeStamp-this.lastClickTime<this.tapDelay&&a.preventDefault(),!0},b.prototype.touchHasMoved=function(a){var b=a.changedTouches[0],c=this.touchBoundary;return Math.abs(b.pageX-this.touchStartX)>c||Math.abs(b.pageY-this.touchStartY)>c?!0:!1},b.prototype.onTouchMove=function(a){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(a.target)||this.touchHasMoved(a))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},b.prototype.findControl=function(a){return void 0!==a.control?a.control:a.htmlFor?document.getElementById(a.htmlFor):a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},b.prototype.onTouchEnd=function(b){var c,h,i,j,k,l=this.targetElement;if(!this.trackingClick)return!0;if(b.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(b.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=b.timeStamp,h=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,g&&(k=b.changedTouches[0],l=document.elementFromPoint(k.pageX-window.pageXOffset,k.pageY-window.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=l.tagName.toLowerCase(),"label"===i){if(c=this.findControl(l)){if(this.focus(l),d)return!1;l=c}}else{if(this.needsFocus(l))return b.timeStamp-h>100||e&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(l),this.sendClick(l,b),e&&"select"===i||(this.targetElement=null,b.preventDefault()),!1);for(var m=l;m&&"BODY"!==m.tagName.toUpperCase();)"LABEL"===m.tagName.toUpperCase()&&a(m).find("input").click(),m=m.parentNode}return e&&!f&&(j=l.fastClickScrollParent,j&&j.fastClickLastScrollTop!==j.scrollTop)?!0:(this.needsClick(l)||(b.preventDefault(),this.sendClick(l,b)),!1)},b.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},b.prototype.onMouse=function(a){return this.targetElement?a.forwardedTouchEvent?!0:a.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(a.stopImmediatePropagation?a.stopImmediatePropagation():a.propagationStopped=!0,a.stopPropagation(),a.preventDefault(),!1):!0:!0},b.prototype.onClick=function(a){var b;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===a.target.type&&0===a.detail?!0:(b=this.onMouse(a),b||(this.targetElement=null),b)},b.prototype.destroy=function(){var a=this.layer;d&&(a.removeEventListener("mouseover",this.onMouse,!0),a.removeEventListener("mousedown",this.onMouse,!0),a.removeEventListener("mouseup",this.onMouse,!0)),a.removeEventListener("click",this.onClick,!0),a.removeEventListener("touchstart",this.onTouchStart,!1),a.removeEventListener("touchmove",this.onTouchMove,!1),a.removeEventListener("touchend",this.onTouchEnd,!1),a.removeEventListener("touchcancel",this.onTouchCancel,!1)},b.notNeeded=function(a){var b,c,e,f;if("undefined"==typeof window.ontouchstart)return!0;if(c=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!d)return!0;if(b=document.querySelector("meta[name=viewport]")){if(-1!==b.content.indexOf("user-scalable=no"))return!0;if(c>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(h&&(e=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),e[1]>=10&&e[2]>=3&&(b=document.querySelector("meta[name=viewport]")))){if(-1!==b.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===a.style.msTouchAction||"manipulation"===a.style.touchAction?!0:(f=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],f>=27&&(b=document.querySelector("meta[name=viewport]"),b&&(-1!==b.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))?!0:"none"===a.style.touchAction||"manipulation"===a.style.touchAction?!0:!1)},b.attach=function(a,c){return new b(a,c)},a(function(){b.attach(document.body)})}($),+function(a){"use strict";a.Template7=a.t7=function(){function a(a){return"[object Array]"===Object.prototype.toString.apply(a)}function b(a){return"function"==typeof a}function c(a){var b,c,d,e=a.replace(/[{}#}]/g,"").split(" "),f=[];for(c=0;c<e.length;c++){var g=e[c];if(0===c)f.push(g);else if(0===g.indexOf('"'))if(2===g.match(/"/g).length)f.push(g);else{for(b=0,d=c+1;d<e.length;d++)if(g+=" "+e[d],e[d].indexOf('"')>=0){b=d,f.push(g);break}b&&(c=b)}else if(g.indexOf("=")>0){var h=g.split("="),i=h[0],j=h[1];if(2!==j.match(/"/g).length){for(b=0,d=c+1;d<e.length;d++)if(j+=" "+e[d],e[d].indexOf('"')>=0){b=d;break}b&&(c=b)}var k=[i,j.replace(/"/g,"")];f.push(k)}else f.push(g)}return f}function d(b){var d,e,f=[];if(!b)return[];var g=b.split(/({{[^{^}]*}})/);for(d=0;d<g.length;d++){var h=g[d];if(""!==h)if(h.indexOf("{{")<0)f.push({type:"plain",content:h});else{if(h.indexOf("{/")>=0)continue;if(h.indexOf("{#")<0&&h.indexOf(" ")<0&&h.indexOf("else")<0){f.push({type:"variable",contextName:h.replace(/[{}]/g,"")});continue}var i=c(h),j=i[0],k=[],l={};for(e=1;e<i.length;e++){var m=i[e];a(m)?l[m[0]]="false"===m[1]?!1:m[1]:k.push(m)}if(h.indexOf("{#")>=0){var n,o="",p="",q=0,r=!1,s=!1,t=0;for(e=d+1;e<g.length;e++)if(g[e].indexOf("{{#")>=0&&t++,g[e].indexOf("{{/")>=0&&t--,g[e].indexOf("{{#"+j)>=0)o+=g[e],s&&(p+=g[e]),q++;else if(g[e].indexOf("{{/"+j)>=0){if(!(q>0)){n=e,r=!0;break}q--,o+=g[e],s&&(p+=g[e])}else g[e].indexOf("else")>=0&&0===t?s=!0:(s||(o+=g[e]),s&&(p+=g[e]));r&&(n&&(d=n),f.push({type:"helper",helperName:j,contextName:k,content:o,inverseContent:p,hash:l}))}else h.indexOf(" ")>0&&f.push({type:"helper",helperName:j,contextName:k,hash:l})}}return f}var e=function(a){function b(a,b){return a.content?g(a.content,b):function(){return""}}function c(a,b){return a.inverseContent?g(a.inverseContent,b):function(){return""}}function e(a,b){var c,d,e=0;if(0===a.indexOf("../")){e=a.split("../").length-1;var f=b.split("_")[1]-e;b="ctx_"+(f>=1?f:1),d=a.split("../")[e].split(".")}else 0===a.indexOf("@global")?(b="$.Template7.global",d=a.split("@global.")[1].split(".")):0===a.indexOf("@root")?(b="ctx_1",d=a.split("@root.")[1].split(".")):d=a.split(".");c=b;for(var g=0;g<d.length;g++){var h=d[g];0===h.indexOf("@")?g>0?c+="[(data && data."+h.replace("@","")+")]":c="(data && data."+a.replace("@","")+")":isFinite(h)?c+="["+h+"]":0===h.indexOf("this")?c=h.replace("this",b):c+="."+h}return c}function f(a,b){for(var c=[],d=0;d<a.length;d++)0===a[d].indexOf('"')?c.push(a[d]):c.push(e(a[d],b));return c.join(", ")}function g(a,g){if(g=g||1,a=a||h.template,"string"!=typeof a)throw new Error("Template7: Template must be a string");var i=d(a);if(0===i.length)return function(){return""};var j="ctx_"+g,k="(function ("+j+", data) {\n";1===g&&(k+="function isArray(arr){return Object.prototype.toString.apply(arr) === '[object Array]';}\n",k+="function isFunction(func){return (typeof func === 'function');}\n",k+='function c(val, ctx) {if (typeof val !== "undefined") {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n'),k+="var r = '';\n";var l;for(l=0;l<i.length;l++){var m=i[l];if("plain"!==m.type){var n,o;if("variable"===m.type&&(n=e(m.contextName,j),k+="r += c("+n+", "+j+");"),"helper"===m.type)if(m.helperName in h.helpers)o=f(m.contextName,j),k+="r += ($.Template7.helpers."+m.helperName+").call("+j+", "+(o&&o+", ")+"{hash:"+JSON.stringify(m.hash)+", data: data || {}, fn: "+b(m,g+1)+", inverse: "+c(m,g+1)+", root: ctx_1});";else{if(m.contextName.length>0)throw new Error('Template7: Missing helper: "'+m.helperName+'"');n=e(m.helperName,j),k+="if ("+n+") {",k+="if (isArray("+n+")) {",k+="r += ($.Template7.helpers.each).call("+j+", "+n+", {hash:"+JSON.stringify(m.hash)+", data: data || {}, fn: "+b(m,g+1)+", inverse: "+c(m,g+1)+", root: ctx_1});",k+="}else {",k+="r += ($.Template7.helpers.with).call("+j+", "+n+", {hash:"+JSON.stringify(m.hash)+", data: data || {}, fn: "+b(m,g+1)+", inverse: "+c(m,g+1)+", root: ctx_1});",k+="}}"}}else k+="r +='"+m.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'")+"';"}return k+="\nreturn r;})",eval.call(window,k)}var h=this;h.template=a,h.compile=function(a){return h.compiled||(h.compiled=g(a)),h.compiled}};e.prototype={options:{},helpers:{"if":function(a,c){return b(a)&&(a=a.call(this)),a?c.fn(this,c.data):c.inverse(this,c.data)},unless:function(a,c){return b(a)&&(a=a.call(this)),a?c.inverse(this,c.data):c.fn(this,c.data)},each:function(c,d){var e="",f=0;if(b(c)&&(c=c.call(this)),a(c)){for(d.hash.reverse&&(c=c.reverse()),f=0;f<c.length;f++)e+=d.fn(c[f],{first:0===f,last:f===c.length-1,index:f});d.hash.reverse&&(c=c.reverse())}else for(var g in c)f++,e+=d.fn(c[g],{key:g});return f>0?e:d.inverse(this)},"with":function(a,c){return b(a)&&(a=a.call(this)),c.fn(a)},join:function(a,c){return b(a)&&(a=a.call(this)),a.join(c.hash.delimiter||c.hash.delimeter)},js:function(a,b){var c;return c=a.indexOf("return")>=0?"(function(){"+a+"})":"(function(){return ("+a+")})",eval.call(this,c).call(this)},js_compare:function(a,b){var c;c=a.indexOf("return")>=0?"(function(){"+a+"})":"(function(){return ("+a+")})";var d=eval.call(this,c).call(this);return d?b.fn(this,b.data):b.inverse(this,b.data)}}};var f=function(a,b){if(2===arguments.length){var c=new e(a),d=c.compile()(b);return c=null,d}return new e(a)};return f.registerHelper=function(a,b){e.prototype.helpers[a]=b},f.unregisterHelper=function(a){e.prototype.helpers[a]=void 0,delete e.prototype.helpers[a]},f.compile=function(a,b){var c=new e(a,b);return c.compile()},f.options=e.prototype.options,f.helpers=e.prototype.helpers,f}()}($),+function(a){"use strict";a.getCurrentPage=function(){return a(".page")[0]||document.body}}($),+function(a){"use strict";var b=function(b,c,d){var e=a(b),f=e.hasClass("page")?"page-current":"active";if(2===arguments.length&&"boolean"==typeof c&&(d=c),0===e.length)return!1;if(e.hasClass(f))return d&&e.trigger("show"),!1;var g=e.parent(".tabs");if(0===g.length)return!1;var h=g.children(".tab."+f).removeClass(f);if(e.addClass(f),e.trigger("show"),c?c=a(c):(c=a("string"==typeof b?'.tab-link[href="'+b+'"]':'.tab-link[href="#'+e.attr("id")+'"]'),(!c||c&&0===c.length)&&a("[data-tab]").each(function(){e.is(a(this).attr("data-tab"))&&(c=a(this))})),0!==c.length){var i;if(h&&h.length>0){var j=h.attr("id");j&&(i=a('.tab-link[href="#'+j+'"]')),(!i||i&&0===i.length)&&a("[data-tab]").each(function(){h.is(a(this).attr("data-tab"))&&(i=a(this))})}return c&&c.length>0&&c.addClass("active"),i&&i.length>0&&i.removeClass("active"),!0}},c=a.showTab;a.showTab=b,a.showTab.noConflict=function(){return a.showTab=c,this},a(document).on("click",".tab-link",function(c){c.preventDefault();var d=a(this);b(d.data("tab")||d.attr("href"),d)})}($),+function(a){"use strict";a(document).on("click",".tab-item",function(b){var c=a(b.currentTarget);c.hasClass("tab-link")||(c.parent().find(".active").removeClass("active"),c.addClass("active"))});var b=function(b,c){var d=a(".bar-tab .tab-item[href='#"+c+"']");d.parent().find(".active").removeClass("active"),d.addClass("active")};a(document).on("pageInit",b),a(document).on("pageReinit",b),a.showToolbar=function(b){a(document.body)[b?"removeClass":"addClass"]("tabbar-hidden")}}($),+function(a){"use strict";function b(b){var c=a(this),d=(c.attr("href"),c.dataset());if(c.hasClass("open-popover")){var f;f=d.popover?d.popover:".popover",a.popover(f,c)}c.hasClass("close-popover")&&a.closeModal(".popover.modal-in");var g;c.hasClass("open-popup")&&(g=d.popup?d.popup:".popup",a.popup(g)),c.hasClass("close-popup")&&(g=d.popup?d.popup:".popup.modal-in",a.closeModal(g)),c.hasClass("modal-overlay")&&(a(".modal.modal-in").length>0&&e.modalCloseByOutside&&a.closeModal(".modal.modal-in"),a(".actions-modal.modal-in").length>0&&e.actionsCloseByOutside&&a.closeModal(".actions-modal.modal-in"),a(".popover.modal-in").length>0&&a.closeModal(".popover.modal-in")),c.hasClass("popup-overlay")&&a(".popup.modal-in").length>0&&e.popupCloseByOutside&&a.closeModal(".popup.modal-in")}var c=document.createElement("div");a.modalStack=[];var d=a.Template7;a.modalStackClearQueue=function(){a.modalStack.length&&a.modalStack.shift()()},a.modal=function(b){b=b||{};var f="";if(e.modalTemplate)a._compiledTemplates.modal||(a._compiledTemplates.modal=d.compile(e.modalTemplate)),f=a._compiledTemplates.modal(b);else{var g="";if(b.buttons&&b.buttons.length>0)for(var h=0;h<b.buttons.length;h++)g+='<span class="modal-button'+(b.buttons[h].bold?" modal-button-bold":"")+'">'+b.buttons[h].text+"</span>";var i=b.title?'<div class="modal-title">'+b.title+"</div>":"",j=b.text?'<div class="modal-text">'+b.text+"</div>":"",k=b.afterText?b.afterText:"",l=b.buttons&&0!==b.buttons.length?"":"modal-no-buttons",m=b.verticalButtons?"modal-buttons-vertical":"";f='<div class="modal '+l+'"><div class="modal-inner">'+(i+j+k)+'</div><div class="modal-buttons '+m+'">'+g+"</div></div>"}c.innerHTML=f;var n=a(c).children();return a(e.modalContainer).append(n[0]),n.find(".modal-button").each(function(c,d){a(d).on("click",function(d){b.buttons[c].close!==!1&&a.closeModal(n),b.buttons[c].onClick&&b.buttons[c].onClick(n,d),b.onClick&&b.onClick(n,c)})}),a.openModal(n),n[0]},a.alert=function(b,c,d){return"function"==typeof c&&(d=arguments[1],c=void 0),a.modal({text:b||"",title:"undefined"==typeof c?e.modalTitle:c,buttons:[{text:e.modalButtonOk,bold:!0,onClick:d}]})},a.confirm=function(b,c,d,f){return"function"==typeof c&&(f=arguments[2],d=arguments[1],c=void 0),a.modal({text:b||"",title:"undefined"==typeof c?e.modalTitle:c,buttons:[{text:e.modalButtonCancel,onClick:f},{text:e.modalButtonOk,bold:!0,onClick:d}]})},a.prompt=function(b,c,d,f){return"function"==typeof c&&(f=arguments[2],d=arguments[1],c=void 0),a.modal({text:b||"",title:"undefined"==typeof c?e.modalTitle:c,afterText:'<input type="text" class="modal-text-input">',buttons:[{text:e.modalButtonCancel},{text:e.modalButtonOk,bold:!0}],onClick:function(b,c){0===c&&f&&f(a(b).find(".modal-text-input").val()),1===c&&d&&d(a(b).find(".modal-text-input").val())}})},a.modalLogin=function(b,c,d,f){return"function"==typeof c&&(f=arguments[2],d=arguments[1],c=void 0),a.modal({text:b||"",title:"undefined"==typeof c?e.modalTitle:c,afterText:'<input type="text" name="modal-username" placeholder="'+e.modalUsernamePlaceholder+'" class="modal-text-input modal-text-input-double"><input type="password" name="modal-password" placeholder="'+e.modalPasswordPlaceholder+'" class="modal-text-input modal-text-input-double">',buttons:[{text:e.modalButtonCancel},{text:e.modalButtonOk,bold:!0}],onClick:function(b,c){var e=a(b).find('.modal-text-input[name="modal-username"]').val(),g=a(b).find('.modal-text-input[name="modal-password"]').val();0===c&&f&&f(e,g),1===c&&d&&d(e,g)}})},a.modalPassword=function(b,c,d,f){return"function"==typeof c&&(f=arguments[2],d=arguments[1],c=void 0),a.modal({text:b||"",title:"undefined"==typeof c?e.modalTitle:c,afterText:'<input type="password" name="modal-password" placeholder="'+e.modalPasswordPlaceholder+'" class="modal-text-input">',buttons:[{text:e.modalButtonCancel},{text:e.modalButtonOk,bold:!0}],onClick:function(b,c){var e=a(b).find('.modal-text-input[name="modal-password"]').val();0===c&&f&&f(e),1===c&&d&&d(e)}})},a.showPreloader=function(b){return a.modal({title:b||e.modalPreloaderTitle,text:'<div class="preloader"></div>'})},a.hidePreloader=function(){a.closeModal(".modal.modal-in")},a.showIndicator=function(){a(e.modalContainer).append('<div class="preloader-indicator-overlay"></div><div class="preloader-indicator-modal"><span class="preloader preloader-white"></span></div>')},a.hideIndicator=function(){a(".preloader-indicator-overlay, .preloader-indicator-modal").remove()},a.actions=function(b,f){var g,h,i,j=!1;1===arguments.length?f=b:a.device.ios?a.device.ipad&&(j=!0):a(window).width()>=768&&(j=!0),f=f||[],f.length>0&&!a.isArray(f[0])&&(f=[f]);var k;if(j){var l=e.modalActionsToPopoverTemplate||'<div class="popover actions-popover"><div class="popover-inner">{{#each this}}<div class="list-block"><ul>{{#each this}}{{#if label}}<li class="actions-popover-label {{#if color}}color-{{color}}{{/if}} {{#if bold}}actions-popover-bold{{/if}}">{{text}}</li>{{else}}<li><a href="#" class="item-link list-button {{#if color}}color-{{color}}{{/if}} {{#if bg}}bg-{{bg}}{{/if}} {{#if bold}}actions-popover-bold{{/if}} {{#if disabled}}disabled{{/if}}">{{text}}</a></li>{{/if}}{{/each}}</ul></div>{{/each}}</div></div>';a._compiledTemplates.actionsToPopover||(a._compiledTemplates.actionsToPopover=d.compile(l));var m=a._compiledTemplates.actionsToPopover(f);g=a(a.popover(m,b,!0)),h=".list-block ul",i=".list-button"}else{if(e.modalActionsTemplate)a._compiledTemplates.actions||(a._compiledTemplates.actions=d.compile(e.modalActionsTemplate)),k=a._compiledTemplates.actions(f);else{for(var n="",o=0;o<f.length;o++)for(var p=0;p<f[o].length;p++){0===p&&(n+='<div class="actions-modal-group">');var q=f[o][p],r=q.label?"actions-modal-label":"actions-modal-button";q.bold&&(r+=" actions-modal-button-bold"),q.color&&(r+=" color-"+q.color),q.bg&&(r+=" bg-"+q.bg),q.disabled&&(r+=" disabled"),n+='<span class="'+r+'">'+q.text+"</span>",p===f[o].length-1&&(n+="</div>")}k='<div class="actions-modal">'+n+"</div>"}c.innerHTML=k,g=a(c).children(),a(e.modalContainer).append(g[0]),h=".actions-modal-group",i=".actions-modal-button"}var s=g.find(h);return s.each(function(b,c){var d=b;a(c).children().each(function(b,c){var e,h=b,k=f[d][h];!j&&a(c).is(i)&&(e=a(c)),j&&a(c).find(i).length>0&&(e=a(c).find(i)),e&&e.on("click",function(b){k.close!==!1&&a.closeModal(g),k.onClick&&k.onClick(g,b)})})}),j||a.openModal(g),g[0]},a.popover=function(b,c,d){function f(){b.css({left:"",top:""});var d,e,f=b.width(),g=b.height(),h=b.find(".popover-angle"),i=h.width()/2;h.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""});var j=c.outerWidth(),k=c.outerHeight(),l=c.offset(),m=c.parents(".page");m.length>0&&(l.top=l.top-m[0].scrollTop);var n=a(window).height(),o=a(window).width(),p=0,q=0,r=0,s="top";g+i<l.top?p=l.top-g-i:g+i<n-l.top-k?(s="bottom",p=l.top+k+i):(s="middle",p=k/2+l.top-g/2,r=p,0>p?p=5:p+g>n&&(p=n-g-5),r-=p),"top"===s||"bottom"===s?(q=j/2+l.left-f/2,r=q,5>q&&(q=5),q+f>o&&(q=o-f-5),"top"===s&&h.addClass("on-bottom"),"bottom"===s&&h.addClass("on-top"),r-=q,d=f/2-i+r,d=Math.max(Math.min(d,f-2*i-6),6),h.css({left:d+"px"})):"middle"===s&&(q=l.left-f-i,h.addClass("on-right"),5>q&&(q=l.left+j+i,h.removeClass("on-right").addClass("on-left")),q+f>o&&(q=o-f-5,h.removeClass("on-right").addClass("on-left")),e=g/2-i+r,e=Math.max(Math.min(e,g-2*i-6),6),h.css({top:e+"px"})),b.css({top:p+"px",left:q+"px"})}if("undefined"==typeof d&&(d=!0),"string"==typeof b&&b.indexOf("<")>=0){var g=document.createElement("div");if(g.innerHTML=b.trim(),!(g.childNodes.length>0))return!1;b=g.childNodes[0],d&&b.classList.add("remove-on-close"),a(e.modalContainer).append(b)}return b=a(b),c=a(c),0===b.length||0===c.length?!1:(0===b.find(".popover-angle").length&&b.append('<div class="popover-angle"></div>'),b.show(),f(),a(window).on("resize",f),b.on("close",function(){a(window).off("resize",f)}),b.find("."+e.viewClass).length>0&&a.sizeNavbars(b.find("."+e.viewClass)[0]),a.openModal(b),b[0])},a.popup=function(b,c){if("undefined"==typeof c&&(c=!0),"string"==typeof b&&b.indexOf("<")>=0){var d=document.createElement("div");if(d.innerHTML=b.trim(),!(d.childNodes.length>0))return!1;b=d.childNodes[0],c&&b.classList.add("remove-on-close"),a(e.modalContainer).append(b)}return b=a(b),0===b.length?!1:(b.show(),b.find("."+e.viewClass).length>0&&a.sizeNavbars(b.find("."+e.viewClass)[0]),a.openModal(b),b[0])},a.pickerModal=function(b,c){if("undefined"==typeof c&&(c=!0),
"string"==typeof b&&b.indexOf("<")>=0){if(b=a(b),!(b.length>0))return!1;c&&b.addClass("remove-on-close"),a(e.modalContainer).append(b[0])}return b=a(b),0===b.length?!1:(b.show(),a.openModal(b),b[0])},a.loginScreen=function(b){return b||(b=".login-screen"),b=a(b),0===b.length?!1:(b.show(),b.find("."+e.viewClass).length>0&&a.sizeNavbars(b.find("."+e.viewClass)[0]),a.openModal(b),b[0])},a.toast=function(b,c){var d=a("<div class='modal toast'>"+b+"</div>").appendTo(document.body);a.openModal(d),setTimeout(function(){a.closeModal(d)},c||2e3)},a.openModal=function(b){e.closePrevious&&a.closeModal(),b=a(b);var c=b.hasClass("modal");if(a(".modal.modal-in:not(.modal-out)").length&&e.modalStack&&c)return void a.modalStack.push(function(){a.openModal(b)});var d=(b.hasClass("popover"),b.hasClass("popup")),f=b.hasClass("login-screen"),g=b.hasClass("picker-modal"),h=b.hasClass("toast");c&&(b.show(),b.css({marginTop:-Math.round(b.outerHeight()/2)+"px"})),h&&(b.show(),b.css({marginLeft:-Math.round(parseInt(window.getComputedStyle(b[0]).width)/2)+"px"}));var i;f||g||h||(0!==a(".modal-overlay").length||d||a(e.modalContainer).append('<div class="modal-overlay"></div>'),0===a(".popup-overlay").length&&d&&a(e.modalContainer).append('<div class="popup-overlay"></div>'),i=a(d?".popup-overlay":".modal-overlay"));b[0].clientLeft;return b.trigger("open"),g&&a(e.modalContainer).addClass("with-picker-modal"),f||g||h||i.addClass("modal-overlay-visible"),b.removeClass("modal-out").addClass("modal-in").transitionEnd(function(a){b.hasClass("modal-out")?b.trigger("closed"):b.trigger("opened")}),!0},a.closeModal=function(b){if(b=a(b||".modal-in"),"undefined"==typeof b||0!==b.length){var c=b.hasClass("modal"),d=b.hasClass("popover"),f=b.hasClass("popup"),g=b.hasClass("login-screen"),h=b.hasClass("picker-modal"),i=b.hasClass("remove-on-close"),j=a(f?".popup-overlay":".modal-overlay");return f?b.length===a(".popup.modal-in").length&&j.removeClass("modal-overlay-visible"):h||j.removeClass("modal-overlay-visible"),b.trigger("close"),h&&(a(e.modalContainer).removeClass("with-picker-modal"),a(e.modalContainer).addClass("picker-modal-closing")),d?(b.removeClass("modal-in modal-out").trigger("closed").hide(),i&&b.remove()):(b.removeClass("modal-in").addClass("modal-out").transitionEnd(function(c){b.hasClass("modal-out")?b.trigger("closed"):b.trigger("opened"),h&&a(e.modalContainer).removeClass("picker-modal-closing"),f||g||h?(b.removeClass("modal-out").hide(),i&&b.length>0&&b.remove()):b.remove()}),c&&e.modalStack&&a.modalStackClearQueue()),!0}};var e=a.modal.prototype.defaults={modalButtonOk:"OK",modalButtonCancel:"Cancel",modalPreloaderTitle:"Loading...",modalContainer:document.body,modalCloseByOutside:!0,actionsCloseByOutside:!1,popupCloseByOutside:!0,closePrevious:!0};a(function(){a(document).on("click"," .modal-overlay, .popup-overlay, .close-popup, .open-popup, .open-popover, .close-popover, .close-picker",b),e.modalContainer=e.modalContainer||document.body})}($),+function(a){"use strict";var b,c=!1,d=function(d){function e(){var b=!1;return k.params.convertToPopover||k.params.onlyInPopover?(!k.inline&&k.params.input&&(k.params.onlyInPopover?b=!0:a.device.ios?b=a.device.ipad?!0:!1:a(window).width()>=768&&(b=!0)),b):b}function f(){return k.opened&&k.container&&k.container.length>0&&k.container.parents(".popover").length>0?!0:!1}function g(a){a=new Date(a);var b=a.getFullYear(),c=a.getMonth(),d=c+1,e=a.getDate(),f=a.getDay();return k.params.dateFormat.replace(/yyyy/g,b).replace(/yy/g,(b+"").substring(2)).replace(/mm/g,10>d?"0"+d:d).replace(/m/g,d).replace(/MM/g,k.params.monthNames[c]).replace(/M/g,k.params.monthNamesShort[c]).replace(/dd/g,10>e?"0"+e:e).replace(/d/g,e).replace(/DD/g,k.params.dayNames[f]).replace(/D/g,k.params.dayNamesShort[f])}function h(a){if(a.preventDefault(),!k.opened&&(k.open(),k.params.scrollToInput&&!e())){var b=k.input.parents(".page-content");if(0===b.length)return;var c,d=parseInt(b.css("padding-top"),10),f=parseInt(b.css("padding-bottom"),10),g=b[0].offsetHeight-d-k.container.height(),h=b[0].scrollHeight-d-k.container.height(),i=k.input.offset().top-d+k.input[0].offsetHeight;if(i>g){var j=b.scrollTop()+i-g;j+g>h&&(c=j+g-h+f,g===h&&(c=k.container.height()),b.css({"padding-bottom":c+"px"})),b.scrollTop(j,300)}}}function i(b){f()||(k.input&&k.input.length>0?b.target!==k.input[0]&&0===a(b.target).parents(".picker-modal").length&&k.close():0===a(b.target).parents(".picker-modal").length&&k.close())}function j(){k.opened=!1,k.input&&k.input.length>0&&k.input.parents(".page-content").css({"padding-bottom":""}),k.params.onClose&&k.params.onClose(k),k.destroyCalendarEvents()}var k=this;d=d||{};for(var l in b)"undefined"==typeof d[l]&&(d[l]=b[l]);k.params=d,k.initialized=!1,k.inline=k.params.container?!0:!1,k.isH="horizontal"===k.params.direction;var m=k.isH&&c?-1:1;return k.animating=!1,k.addValue=function(a){if(k.params.multiple){k.value||(k.value=[]);for(var b,c=0;c<k.value.length;c++)new Date(a).getTime()===new Date(k.value[c]).getTime()&&(b=c);"undefined"==typeof b?k.value.push(a):k.value.splice(b,1),k.updateValue()}else k.value=[a],k.updateValue()},k.setValue=function(a){k.value=a,k.updateValue()},k.updateValue=function(){k.wrapper.find(".picker-calendar-day-selected").removeClass("picker-calendar-day-selected");var b,c;for(b=0;b<k.value.length;b++){var d=new Date(k.value[b]);k.wrapper.find('.picker-calendar-day[data-date="'+d.getFullYear()+"-"+d.getMonth()+"-"+d.getDate()+'"]').addClass("picker-calendar-day-selected")}if(k.params.onChange&&k.params.onChange(k,k.value,k.value.map(g)),k.input&&k.input.length>0){if(k.params.formatValue)c=k.params.formatValue(k,k.value);else{for(c=[],b=0;b<k.value.length;b++)c.push(g(k.value[b]));c=c.join(", ")}a(k.input).val(c),a(k.input).trigger("change")}},k.initCalendarEvents=function(){function b(b){if(!h&&!g){g=!0;var c=a.getTouchPosition(b);i=n=c.x,j=n=c.y,o=(new Date).getTime(),u=0,x=!0,w=void 0,q=r=k.monthsTranslate}}function d(b){if(g){var c=a.getTouchPosition(b);if(l=c.x,n=c.y,"undefined"==typeof w&&(w=!!(w||Math.abs(n-j)>Math.abs(l-i))),k.isH&&w)return void(g=!1);if(b.preventDefault(),k.animating)return void(g=!1);x=!1,h||(h=!0,s=k.wrapper[0].offsetWidth,t=k.wrapper[0].offsetHeight,k.wrapper.transition(0)),b.preventDefault(),v=k.isH?l-i:n-j,u=v/(k.isH?s:t),r=100*(k.monthsTranslate*m+u),k.wrapper.transform("translate3d("+(k.isH?r:0)+"%, "+(k.isH?0:r)+"%, 0)")}}function e(a){return g&&h?(g=h=!1,p=(new Date).getTime(),300>p-o?Math.abs(v)<10?k.resetMonth():v>=10?c?k.nextMonth():k.prevMonth():c?k.prevMonth():k.nextMonth():-.5>=u?c?k.prevMonth():k.nextMonth():u>=.5?c?k.nextMonth():k.prevMonth():k.resetMonth(),void setTimeout(function(){x=!0},100)):void(g=h=!1)}function f(b){if(x){var c=a(b.target).parents(".picker-calendar-day");if(0===c.length&&a(b.target).hasClass("picker-calendar-day")&&(c=a(b.target)),0!==c.length&&(!c.hasClass("picker-calendar-day-selected")||k.params.multiple)&&!c.hasClass("picker-calendar-day-disabled")){c.hasClass("picker-calendar-day-next")&&k.nextMonth(),c.hasClass("picker-calendar-day-prev")&&k.prevMonth();var d=c.attr("data-year"),e=c.attr("data-month"),f=c.attr("data-day");k.params.onDayClick&&k.params.onDayClick(k,c[0],d,e,f),k.addValue(new Date(d,e,f).getTime()),k.params.closeOnSelect&&k.close()}}}var g,h,i,j,l,n,o,p,q,r,s,t,u,v,w,x=!0;k.container.find(".picker-calendar-prev-month").on("click",k.prevMonth),k.container.find(".picker-calendar-next-month").on("click",k.nextMonth),k.container.find(".picker-calendar-prev-year").on("click",k.prevYear),k.container.find(".picker-calendar-next-year").on("click",k.nextYear),k.wrapper.on("click",f),k.params.touchMove&&(k.wrapper.on(a.touchEvents.start,b),k.wrapper.on(a.touchEvents.move,d),k.wrapper.on(a.touchEvents.end,e)),k.container[0].f7DestroyCalendarEvents=function(){k.container.find(".picker-calendar-prev-month").off("click",k.prevMonth),k.container.find(".picker-calendar-next-month").off("click",k.nextMonth),k.container.find(".picker-calendar-prev-year").off("click",k.prevYear),k.container.find(".picker-calendar-next-year").off("click",k.nextYear),k.wrapper.off("click",f),k.params.touchMove&&(k.wrapper.off(a.touchEvents.start,b),k.wrapper.off(a.touchEvents.move,d),k.wrapper.off(a.touchEvents.end,e))}},k.destroyCalendarEvents=function(a){"f7DestroyCalendarEvents"in k.container[0]&&k.container[0].f7DestroyCalendarEvents()},k.daysInMonth=function(a){var b=new Date(a);return new Date(b.getFullYear(),b.getMonth()+1,0).getDate()},k.monthHTML=function(a,b){a=new Date(a);var c=a.getFullYear(),d=a.getMonth();a.getDate();"next"===b&&(a=11===d?new Date(c+1,0):new Date(c,d+1,1)),"prev"===b&&(a=0===d?new Date(c-1,11):new Date(c,d-1,1)),("next"===b||"prev"===b)&&(d=a.getMonth(),c=a.getFullYear());var e=k.daysInMonth(new Date(a.getFullYear(),a.getMonth()).getTime()-864e6),f=k.daysInMonth(a),g=new Date(a.getFullYear(),a.getMonth()).getDay();0===g&&(g=7);var h,i,j,l=[],m=6,n=7,o="",p=0+(k.params.firstDay-1),q=(new Date).setHours(0,0,0,0),r=k.params.minDate?new Date(k.params.minDate).getTime():null,s=k.params.maxDate?new Date(k.params.maxDate).getTime():null;if(k.value&&k.value.length)for(i=0;i<k.value.length;i++)l.push(new Date(k.value[i]).setHours(0,0,0,0));for(i=1;m>=i;i++){var t="";for(j=1;n>=j;j++){var u=j;p++;var v=p-g,w="";0>v?(v=e+v+1,w+=" picker-calendar-day-prev",h=new Date(0>d-1?c-1:c,0>d-1?11:d-1,v).getTime()):(v+=1,v>f?(v-=f,w+=" picker-calendar-day-next",h=new Date(d+1>11?c+1:c,d+1>11?0:d+1,v).getTime()):h=new Date(c,d,v).getTime()),h===q&&(w+=" picker-calendar-day-today"),l.indexOf(h)>=0&&(w+=" picker-calendar-day-selected"),k.params.weekendDays.indexOf(u-1)>=0&&(w+=" picker-calendar-day-weekend"),(r&&r>h||s&&h>s)&&(w+=" picker-calendar-day-disabled"),h=new Date(h);var x=h.getFullYear(),y=h.getMonth();t+='<div data-year="'+x+'" data-month="'+y+'" data-day="'+v+'" class="picker-calendar-day'+w+'" data-date="'+(x+"-"+y+"-"+v)+'"><span>'+v+"</span></div>"}o+='<div class="picker-calendar-row">'+t+"</div>"}return o='<div class="picker-calendar-month" data-year="'+c+'" data-month="'+d+'">'+o+"</div>"},k.animating=!1,k.updateCurrentMonthYear=function(a){"undefined"==typeof a?(k.currentMonth=parseInt(k.months.eq(1).attr("data-month"),10),k.currentYear=parseInt(k.months.eq(1).attr("data-year"),10)):(k.currentMonth=parseInt(k.months.eq("next"===a?k.months.length-1:0).attr("data-month"),10),k.currentYear=parseInt(k.months.eq("next"===a?k.months.length-1:0).attr("data-year"),10)),k.container.find(".current-month-value").text(k.params.monthNames[k.currentMonth]),k.container.find(".current-year-value").text(k.currentYear)},k.onMonthChangeStart=function(a){k.updateCurrentMonthYear(a),k.months.removeClass("picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next");var b="next"===a?k.months.length-1:0;k.months.eq(b).addClass("picker-calendar-month-current"),k.months.eq("next"===a?b-1:b+1).addClass("next"===a?"picker-calendar-month-prev":"picker-calendar-month-next"),k.params.onMonthYearChangeStart&&k.params.onMonthYearChangeStart(k,k.currentYear,k.currentMonth)},k.onMonthChangeEnd=function(a,b){k.animating=!1;var c,d,e;k.wrapper.find(".picker-calendar-month:not(.picker-calendar-month-prev):not(.picker-calendar-month-current):not(.picker-calendar-month-next)").remove(),"undefined"==typeof a&&(a="next",b=!0),b?(k.wrapper.find(".picker-calendar-month-next, .picker-calendar-month-prev").remove(),d=k.monthHTML(new Date(k.currentYear,k.currentMonth),"prev"),c=k.monthHTML(new Date(k.currentYear,k.currentMonth),"next")):e=k.monthHTML(new Date(k.currentYear,k.currentMonth),a),("next"===a||b)&&k.wrapper.append(e||c),("prev"===a||b)&&k.wrapper.prepend(e||d),k.months=k.wrapper.find(".picker-calendar-month"),k.setMonthsTranslate(k.monthsTranslate),k.params.onMonthAdd&&k.params.onMonthAdd(k,"next"===a?k.months.eq(k.months.length-1)[0]:k.months.eq(0)[0]),k.params.onMonthYearChangeEnd&&k.params.onMonthYearChangeEnd(k,k.currentYear,k.currentMonth)},k.setMonthsTranslate=function(a){a=a||k.monthsTranslate||0,"undefined"==typeof k.monthsTranslate&&(k.monthsTranslate=a),k.months.removeClass("picker-calendar-month-current picker-calendar-month-prev picker-calendar-month-next");var b=100*-(a+1)*m,c=100*-a*m,d=100*-(a-1)*m;k.months.eq(0).transform("translate3d("+(k.isH?b:0)+"%, "+(k.isH?0:b)+"%, 0)").addClass("picker-calendar-month-prev"),k.months.eq(1).transform("translate3d("+(k.isH?c:0)+"%, "+(k.isH?0:c)+"%, 0)").addClass("picker-calendar-month-current"),k.months.eq(2).transform("translate3d("+(k.isH?d:0)+"%, "+(k.isH?0:d)+"%, 0)").addClass("picker-calendar-month-next")},k.nextMonth=function(b){("undefined"==typeof b||"object"==typeof b)&&(b="",k.params.animate||(b=0));var c=parseInt(k.months.eq(k.months.length-1).attr("data-month"),10),d=parseInt(k.months.eq(k.months.length-1).attr("data-year"),10),e=new Date(d,c),f=e.getTime(),g=k.animating?!1:!0;if(k.params.maxDate&&f>new Date(k.params.maxDate).getTime())return k.resetMonth();if(k.monthsTranslate--,c===k.currentMonth){var h=100*-k.monthsTranslate*m,i=a(k.monthHTML(f,"next")).transform("translate3d("+(k.isH?h:0)+"%, "+(k.isH?0:h)+"%, 0)").addClass("picker-calendar-month-next");k.wrapper.append(i[0]),k.months=k.wrapper.find(".picker-calendar-month"),k.params.onMonthAdd&&k.params.onMonthAdd(k,k.months.eq(k.months.length-1)[0])}k.animating=!0,k.onMonthChangeStart("next");var j=100*k.monthsTranslate*m;k.wrapper.transition(b).transform("translate3d("+(k.isH?j:0)+"%, "+(k.isH?0:j)+"%, 0)"),g&&k.wrapper.transitionEnd(function(){k.onMonthChangeEnd("next")}),k.params.animate||k.onMonthChangeEnd("next")},k.prevMonth=function(b){("undefined"==typeof b||"object"==typeof b)&&(b="",k.params.animate||(b=0));var c=parseInt(k.months.eq(0).attr("data-month"),10),d=parseInt(k.months.eq(0).attr("data-year"),10),e=new Date(d,c+1,-1),f=e.getTime(),g=k.animating?!1:!0;if(k.params.minDate&&f<new Date(k.params.minDate).getTime())return k.resetMonth();if(k.monthsTranslate++,c===k.currentMonth){var h=100*-k.monthsTranslate*m,i=a(k.monthHTML(f,"prev")).transform("translate3d("+(k.isH?h:0)+"%, "+(k.isH?0:h)+"%, 0)").addClass("picker-calendar-month-prev");k.wrapper.prepend(i[0]),k.months=k.wrapper.find(".picker-calendar-month"),k.params.onMonthAdd&&k.params.onMonthAdd(k,k.months.eq(0)[0])}k.animating=!0,k.onMonthChangeStart("prev");var j=100*k.monthsTranslate*m;k.wrapper.transition(b).transform("translate3d("+(k.isH?j:0)+"%, "+(k.isH?0:j)+"%, 0)"),g&&k.wrapper.transitionEnd(function(){k.onMonthChangeEnd("prev")}),k.params.animate||k.onMonthChangeEnd("prev")},k.resetMonth=function(a){"undefined"==typeof a&&(a="");var b=100*k.monthsTranslate*m;k.wrapper.transition(a).transform("translate3d("+(k.isH?b:0)+"%, "+(k.isH?0:b)+"%, 0)")},k.setYearMonth=function(a,b,c){"undefined"==typeof a&&(a=k.currentYear),"undefined"==typeof b&&(b=k.currentMonth),("undefined"==typeof c||"object"==typeof c)&&(c="",k.params.animate||(c=0));var d;if(d=a<k.currentYear?new Date(a,b+1,-1).getTime():new Date(a,b).getTime(),k.params.maxDate&&d>new Date(k.params.maxDate).getTime())return!1;if(k.params.minDate&&d<new Date(k.params.minDate).getTime())return!1;var e=new Date(k.currentYear,k.currentMonth).getTime(),f=d>e?"next":"prev",g=k.monthHTML(new Date(a,b));k.monthsTranslate=k.monthsTranslate||0;var h,i,j=k.monthsTranslate,l=k.animating?!1:!0;d>e?(k.monthsTranslate--,k.animating||k.months.eq(k.months.length-1).remove(),k.wrapper.append(g),k.months=k.wrapper.find(".picker-calendar-month"),h=100*-(j-1)*m,k.months.eq(k.months.length-1).transform("translate3d("+(k.isH?h:0)+"%, "+(k.isH?0:h)+"%, 0)").addClass("picker-calendar-month-next")):(k.monthsTranslate++,k.animating||k.months.eq(0).remove(),k.wrapper.prepend(g),k.months=k.wrapper.find(".picker-calendar-month"),h=100*-(j+1)*m,k.months.eq(0).transform("translate3d("+(k.isH?h:0)+"%, "+(k.isH?0:h)+"%, 0)").addClass("picker-calendar-month-prev")),k.params.onMonthAdd&&k.params.onMonthAdd(k,"next"===f?k.months.eq(k.months.length-1)[0]:k.months.eq(0)[0]),k.animating=!0,k.onMonthChangeStart(f),i=100*k.monthsTranslate*m,k.wrapper.transition(c).transform("translate3d("+(k.isH?i:0)+"%, "+(k.isH?0:i)+"%, 0)"),l&&k.wrapper.transitionEnd(function(){k.onMonthChangeEnd(f,!0)}),k.params.animate||k.onMonthChangeEnd(f)},k.nextYear=function(){k.setYearMonth(k.currentYear+1)},k.prevYear=function(){k.setYearMonth(k.currentYear-1)},k.layout=function(){var a,b="",c="",d=k.value&&k.value.length?k.value[0]:(new Date).setHours(0,0,0,0),e=k.monthHTML(d,"prev"),f=k.monthHTML(d),g=k.monthHTML(d,"next"),h='<div class="picker-calendar-months"><div class="picker-calendar-months-wrapper">'+(e+f+g)+"</div></div>",i="";if(k.params.weekHeader){for(a=0;7>a;a++){var j=a+k.params.firstDay>6?a-7+k.params.firstDay:a+k.params.firstDay,l=k.params.dayNamesShort[j];i+='<div class="picker-calendar-week-day '+(k.params.weekendDays.indexOf(j)>=0?"picker-calendar-week-day-weekend":"")+'"> '+l+"</div>"}i='<div class="picker-calendar-week-days">'+i+"</div>"}c="picker-modal picker-calendar "+(k.params.cssClass||"");var m=k.params.toolbar?k.params.toolbarTemplate.replace(/{{closeText}}/g,k.params.toolbarCloseText):"";k.params.toolbar&&(m=k.params.toolbarTemplate.replace(/{{closeText}}/g,k.params.toolbarCloseText).replace(/{{monthPicker}}/g,k.params.monthPicker?k.params.monthPickerTemplate:"").replace(/{{yearPicker}}/g,k.params.yearPicker?k.params.yearPickerTemplate:"")),b='<div class="'+c+'">'+m+'<div class="picker-modal-inner">'+i+h+"</div></div>",k.pickerHTML=b},k.params.input&&(k.input=a(k.params.input),k.input.length>0&&(k.params.inputReadOnly&&k.input.prop("readOnly",!0),k.inline||k.input.on("click",function(a){h(a),k.params.inputReadOnly&&(this.focus(),this.blur())}),k.params.inputReadOnly&&k.input.on("focus mousedown",function(a){a.preventDefault()}))),k.inline||a("html").on("click",i),k.opened=!1,k.open=function(){var b=e(),c=!1;k.opened||(k.value||k.params.value&&(k.value=k.params.value,c=!0),k.layout(),b?(k.pickerHTML='<div class="popover popover-picker-calendar"><div class="popover-inner">'+k.pickerHTML+"</div></div>",k.popover=a.popover(k.pickerHTML,k.params.input,!0),k.container=a(k.popover).find(".picker-modal"),a(k.popover).on("close",function(){j()})):k.inline?(k.container=a(k.pickerHTML),k.container.addClass("picker-modal-inline"),a(k.params.container).append(k.container)):(k.container=a(a.pickerModal(k.pickerHTML)),a(k.container).on("close",function(){j()})),k.container[0].f7Calendar=k,k.wrapper=k.container.find(".picker-calendar-months-wrapper"),k.months=k.wrapper.find(".picker-calendar-month"),k.updateCurrentMonthYear(),k.monthsTranslate=0,k.setMonthsTranslate(),k.initCalendarEvents(),c&&k.updateValue()),k.opened=!0,k.initialized=!0,k.params.onMonthAdd&&k.months.each(function(){k.params.onMonthAdd(k,this)}),k.params.onOpen&&k.params.onOpen(k)},k.close=function(){return k.opened&&!k.inline?f()?void a.closeModal(k.popover):void a.closeModal(k.container):void 0},k.destroy=function(){k.close(),k.params.input&&k.input.length>0&&k.input.off("click focus",h),a("html").off("click",i)},k.inline&&k.open(),k};a.fn.calendar=function(b){return this.each(function(){var c=a(this);if(c[0]){var e=c.data("calendar");if(!e){var f={};"INPUT"===c[0].tagName.toUpperCase()?f.input=c:f.container=c,c.data("calendar",new d(a.extend(f,b)))}}})},b=a.fn.calendar.prototype.defaults={monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDay:1,weekendDays:[0,6],multiple:!1,dateFormat:"yyyy-mm-dd",direction:"horizontal",minDate:null,maxDate:null,touchMove:!0,animate:!0,closeOnSelect:!0,monthPicker:!0,monthPickerTemplate:'<div class="picker-calendar-month-picker"><a href="#" class="link icon-only picker-calendar-prev-month"><i class="icon icon-prev"></i></a><div class="current-month-value"></div><a href="#" class="link icon-only picker-calendar-next-month"><i class="icon icon-next"></i></a></div>',yearPicker:!0,yearPickerTemplate:'<div class="picker-calendar-year-picker"><a href="#" class="link icon-only picker-calendar-prev-year"><i class="icon icon-prev"></i></a><span class="current-year-value"></span><a href="#" class="link icon-only picker-calendar-next-year"><i class="icon icon-next"></i></a></div>',weekHeader:!0,scrollToInput:!0,inputReadOnly:!0,convertToPopover:!0,onlyInPopover:!1,toolbar:!0,toolbarCloseText:"Done",toolbarTemplate:'<div class="toolbar"><div class="toolbar-inner">{{monthPicker}}{{yearPicker}}</div></div>'},a.initCalendar=function(b){var c=a(b?b:document.body);c.find("[data-toggle='date']").each(function(){a(this).calendar()})}}($),+function(a){"use strict";var b=function(b){function c(){var b=!1;return i.params.convertToPopover||i.params.onlyInPopover?(!i.inline&&i.params.input&&(i.params.onlyInPopover?b=!0:a.device.ios?b=a.device.ipad?!0:!1:a(window).width()>=768&&(b=!0)),b):b}function d(){return i.opened&&i.container&&i.container.length>0&&i.container.parents(".popover").length>0?!0:!1}function e(){if(i.opened)for(var a=0;a<i.cols.length;a++)i.cols[a].divider||(i.cols[a].calcSize(),i.cols[a].setValue(i.cols[a].value,0,!1))}function f(a){if(a.preventDefault(),!i.opened&&(i.open(),i.params.scrollToInput&&!c())){var b=i.input.parents(".content");if(0===b.length)return;var d,e=parseInt(b.css("padding-top"),10),f=parseInt(b.css("padding-bottom"),10),g=b[0].offsetHeight-e-i.container.height(),h=b[0].scrollHeight-e-i.container.height(),j=i.input.offset().top-e+i.input[0].offsetHeight;if(j>g){var k=b.scrollTop()+j-g;k+g>h&&(d=k+g-h+f,g===h&&(d=i.container.height()),b.css({"padding-bottom":d+"px"})),b.scrollTop(k,300)}}}function g(b){d()||(i.input&&i.input.length>0?b.target!==i.input[0]&&0===a(b.target).parents(".picker-modal").length&&i.close():0===a(b.target).parents(".picker-modal").length&&i.close())}function h(){i.opened=!1,i.input&&i.input.length>0&&i.input.parents(".page-content").css({"padding-bottom":""}),i.params.onClose&&i.params.onClose(i),i.container.find(".picker-items-col").each(function(){i.destroyPickerCol(this)})}var i=this,j={updateValuesOnMomentum:!1,updateValuesOnTouchmove:!0,rotateEffect:!1,momentumRatio:7,freeMode:!1,scrollToInput:!0,inputReadOnly:!0,convertToPopover:!0,onlyInPopover:!1,toolbar:!0,toolbarCloseText:"OK",toolbarTemplate:'<header class="bar bar-nav">          <button class="button button-link pull-right close-picker">OK</button>          <h1 class="title"></h1>          </header>'};b=b||{};for(var k in j)"undefined"==typeof b[k]&&(b[k]=j[k]);i.params=b,i.cols=[],i.initialized=!1,i.inline=i.params.container?!0:!1;var l=a.device.ios||navigator.userAgent.toLowerCase().indexOf("safari")>=0&&navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!a.device.android;return i.setValue=function(a,b){for(var c=0,d=0;d<i.cols.length;d++)i.cols[d]&&!i.cols[d].divider&&(i.cols[d].setValue(a[c],b),c++)},i.updateValue=function(){for(var b=[],c=[],d=0;d<i.cols.length;d++)i.cols[d].divider||(b.push(i.cols[d].value),c.push(i.cols[d].displayValue));b.indexOf(void 0)>=0||(i.value=b,i.displayValue=c,i.params.onChange&&i.params.onChange(i,i.value,i.displayValue),i.input&&i.input.length>0&&(a(i.input).val(i.params.formatValue?i.params.formatValue(i,i.value,i.displayValue):i.value.join(" ")),a(i.input).trigger("change")))},i.initPickerCol=function(b,c){function d(){s=a.requestAnimationFrame(function(){m.updateItems(void 0,void 0,0),d()})}function e(b){if(!u&&!t){b.preventDefault(),t=!0;var c=a.getTouchPosition(b);v=w=c.y,x=(new Date).getTime(),F=!0,z=B=a.getTranslate(m.wrapper[0],"y")}}function f(b){if(t){b.preventDefault(),F=!1;var c=a.getTouchPosition(b);w=c.y,u||(a.cancelAnimationFrame(s),u=!0,z=B=a.getTranslate(m.wrapper[0],"y"),m.wrapper.transition(0)),b.preventDefault();var d=w-v;B=z+d,A=void 0,q>B&&(B=q-Math.pow(q-B,.8),A="min"),B>r&&(B=r+Math.pow(B-r,.8),A="max"),m.wrapper.transform("translate3d(0,"+B+"px,0)"),m.updateItems(void 0,B,0,i.params.updateValuesOnTouchmove),D=B-C||B,E=(new Date).getTime(),C=B}}function g(b){if(!t||!u)return void(t=u=!1);t=u=!1,m.wrapper.transition(""),A&&("min"===A?m.wrapper.transform("translate3d(0,"+q+"px,0)"):m.wrapper.transform("translate3d(0,"+r+"px,0)")),y=(new Date).getTime();var c,e;y-x>300?e=B:(c=Math.abs(D/(y-E)),e=B+D*i.params.momentumRatio),e=Math.max(Math.min(e,r),q);var f=-Math.floor((e-r)/o);i.params.freeMode||(e=-f*o+r),m.wrapper.transform("translate3d(0,"+parseInt(e,10)+"px,0)"),m.updateItems(f,e,"",!0),i.params.updateValuesOnMomentum&&(d(),m.wrapper.transitionEnd(function(){a.cancelAnimationFrame(s)})),setTimeout(function(){F=!0},100)}function h(b){if(F){a.cancelAnimationFrame(s);var c=a(this).attr("data-picker-value");m.setValue(c)}}var j=a(b),k=j.index(),m=i.cols[k];if(!m.divider){m.container=j,m.wrapper=m.container.find(".picker-items-col-wrapper"),m.items=m.wrapper.find(".picker-item");var n,o,p,q,r;m.replaceValues=function(a,b){m.destroyEvents(),m.values=a,m.displayValues=b;var c=i.columnHTML(m,!0);m.wrapper.html(c),m.items=m.wrapper.find(".picker-item"),m.calcSize(),m.setValue(m.values[0],0,!0),m.initEvents()},m.calcSize=function(){i.params.rotateEffect&&(m.container.removeClass("picker-items-col-absolute"),m.width||m.container.css({width:""}));var b,c;b=0,c=m.container[0].offsetHeight,n=m.wrapper[0].offsetHeight,o=m.items[0].offsetHeight,p=o*m.items.length,q=c/2-p+o/2,r=c/2-o/2,m.width&&(b=m.width,parseInt(b,10)===b&&(b+="px"),m.container.css({width:b})),i.params.rotateEffect&&(m.width||(m.items.each(function(){var c=a(this);c.css({width:"auto"}),b=Math.max(b,c[0].offsetWidth),c.css({width:""})}),m.container.css({width:b+2+"px"})),m.container.addClass("picker-items-col-absolute"))},m.calcSize(),m.wrapper.transform("translate3d(0,"+r+"px,0)").transition(0);var s;m.setValue=function(b,c,e){"undefined"==typeof c&&(c="");var f=m.wrapper.find('.picker-item[data-picker-value="'+b+'"]').index();if("undefined"!=typeof f&&-1!==f){var g=-f*o+r;m.wrapper.transition(c),m.wrapper.transform("translate3d(0,"+g+"px,0)"),i.params.updateValuesOnMomentum&&m.activeIndex&&m.activeIndex!==f&&(a.cancelAnimationFrame(s),m.wrapper.transitionEnd(function(){a.cancelAnimationFrame(s)}),d()),m.updateItems(f,g,c,e)}},m.updateItems=function(b,c,d,e){"undefined"==typeof c&&(c=a.getTranslate(m.wrapper[0],"y")),"undefined"==typeof b&&(b=-Math.round((c-r)/o)),0>b&&(b=0),b>=m.items.length&&(b=m.items.length-1);var f=m.activeIndex;m.activeIndex=b,m.wrapper.find(".picker-selected").removeClass("picker-selected"),i.params.rotateEffect&&m.items.transition(d);var g=m.items.eq(b).addClass("picker-selected").transform("");if((e||"undefined"==typeof e)&&(m.value=g.attr("data-picker-value"),m.displayValue=m.displayValues?m.displayValues[b]:m.value,f!==b&&(m.onChange&&m.onChange(i,m.value,m.displayValue),i.updateValue())),i.params.rotateEffect){(c-(Math.floor((c-r)/o)*o+r))/o;m.items.each(function(){var b=a(this),d=b.index()*o,e=r-c,f=d-e,g=f/o,h=Math.ceil(m.height/o/2)+1,i=-18*g;i>180&&(i=180),-180>i&&(i=-180),Math.abs(g)>h?b.addClass("picker-item-far"):b.removeClass("picker-item-far"),b.transform("translate3d(0, "+(-c+r)+"px, "+(l?-110:0)+"px) rotateX("+i+"deg)")})}},c&&m.updateItems(0,r,0);var t,u,v,w,x,y,z,A,B,C,D,E,F=!0;m.initEvents=function(b){var c=b?"off":"on";m.container[c](a.touchEvents.start,e),m.container[c](a.touchEvents.move,f),m.container[c](a.touchEvents.end,g),m.items[c]("click",h)},m.destroyEvents=function(){m.initEvents(!0)},m.container[0].f7DestroyPickerCol=function(){m.destroyEvents()},m.initEvents()}},i.destroyPickerCol=function(b){b=a(b),"f7DestroyPickerCol"in b[0]&&b[0].f7DestroyPickerCol()},a(window).on("resize",e),i.columnHTML=function(a,b){var c="",d="";if(a.divider)d+='<div class="picker-items-col picker-items-col-divider '+(a.textAlign?"picker-items-col-"+a.textAlign:"")+" "+(a.cssClass||"")+'">'+a.content+"</div>";else{for(var e=0;e<a.values.length;e++)c+='<div class="picker-item" data-picker-value="'+a.values[e]+'">'+(a.displayValues?a.displayValues[e]:a.values[e])+"</div>";d+='<div class="picker-items-col '+(a.textAlign?"picker-items-col-"+a.textAlign:"")+" "+(a.cssClass||"")+'"><div class="picker-items-col-wrapper">'+c+"</div></div>"}return b?c:d},i.layout=function(){var a,b="",c="";i.cols=[];var d="";for(a=0;a<i.params.cols.length;a++){var e=i.params.cols[a];d+=i.columnHTML(i.params.cols[a]),i.cols.push(e)}c="picker-modal picker-columns "+(i.params.cssClass||"")+(i.params.rotateEffect?" picker-3d":""),b='<div class="'+c+'">'+(i.params.toolbar?i.params.toolbarTemplate.replace(/{{closeText}}/g,i.params.toolbarCloseText):"")+'<div class="picker-modal-inner picker-items">'+d+'<div class="picker-center-highlight"></div></div></div>',i.pickerHTML=b},i.params.input&&(i.input=a(i.params.input),i.input.length>0&&(i.params.inputReadOnly&&i.input.prop("readOnly",!0),i.inline||i.input.on("click",function(a){f(a),i.params.inputReadOnly&&(this.focus(),this.blur())}),i.params.inputReadOnly&&i.input.on("focus mousedown",function(a){a.preventDefault()}))),i.inline||a("html").on("click",g),i.opened=!1,i.open=function(){var b=c();i.opened||(i.layout(),b?(i.pickerHTML='<div class="popover popover-picker-columns"><div class="popover-inner">'+i.pickerHTML+"</div></div>",i.popover=a.popover(i.pickerHTML,i.params.input,!0),i.container=a(i.popover).find(".picker-modal"),a(i.popover).on("close",function(){h()})):i.inline?(i.container=a(i.pickerHTML),i.container.addClass("picker-modal-inline"),a(i.params.container).append(i.container)):(i.container=a(a.pickerModal(i.pickerHTML)),a(i.container).on("close",function(){h()})),i.container[0].f7Picker=i,i.container.find(".picker-items-col").each(function(){var a=!0;(!i.initialized&&i.params.value||i.initialized&&i.value)&&(a=!1),i.initPickerCol(this,a)}),i.initialized?i.value&&i.setValue(i.value,0):i.params.value&&i.setValue(i.params.value,0)),i.opened=!0,i.initialized=!0,i.params.onOpen&&i.params.onOpen(i)},i.close=function(){return i.opened&&!i.inline?d()?void a.closeModal(i.popover):void a.closeModal(i.container):void 0},i.destroy=function(){i.close(),i.params.input&&i.input.length>0&&i.input.off("click focus",f),a("html").off("click",g),a(window).off("resize",e)},i.inline&&i.open(),i};a(document).on("click",".close-picker",function(){var b=a(".picker-modal.modal-in");b.length>0?a.closeModal(b):(b=a(".popover.modal-in .picker-modal"),b.length>0&&a.closeModal(b.parents(".popover")))}),a(document).on(a.touchEvents.move,".picker-modal-inner",function(a){a.preventDefault()}),a.fn.picker=function(c){var d=arguments;return this.each(function(){if(this){var e=a(this),f=e.data("picker");if(!f){c=c||{};var g=e.val();void 0===c.value&&""!==g&&(c.value=c.cols.length>1?g.split(" "):[g]);var h=a.extend({input:this},c);f=new b(h),e.data("picker",f)}"string"==typeof c&&f[c].apply(f,Array.prototype.slice.call(d,1))}})}}($),+function(a){"use strict";a.fn.datetimePicker=function(b){return this.each(function(){if(this){var c=new Date,d=function(a){for(var b=[],c=1;(a||31)>=c;c++)b.push(10>c?"0"+c:c);return b},e=function(a,b){var c=new Date(b,parseInt(a)+1-1,1),e=new Date(c-1);return d(e.getDate())},f=function(a){return 10>a?"0"+a:a},g="01 02 03 04 05 06 07 08 09 10 11 12".split(" "),h=function(){for(var a=[],b=1950;2030>=b;b++)a.push(b);return a}(),i={rotateEffect:!1,value:[c.getFullYear(),f(c.getMonth()+1),c.getDate(),f(c.getHours()),f(c.getMinutes())],onChange:function(a,b,c){var d=e(a.cols[1].value,a.cols[0].value),f=a.cols[2].value;f>d.length&&(f=d.length),a.cols[2].setValue(f)},formatValue:function(a,b,c){return c[0]+"-"+b[1]+"-"+b[2]+" "+b[3]+":"+b[4]},cols:[{values:h},{values:g},{values:d()},{divider:!0,content:"  "},{values:function(){for(var a=[],b=0;23>=b;b++)a.push(f(b));return a}()},{divider:!0,content:":"},{values:function(){for(var a=[],b=0;59>=b;b++)a.push(f(b));return a}()}]};b=b||{};var j=a(this).val();void 0===b.value&&""!==j&&(b.value=[].concat(j.split(" ")[0].split("-"),j.split(" ")[1].split(":")));
var k=a.extend(i,b);a(this).picker(k)}})}}($),+function(a){"use strict";a.initPullToRefresh=function(b){function c(b){if(h){if(!a.os.android)return;if("targetTouches"in b&&b.targetTouches.length>1)return}i=!1,h=!0,j=void 0,p=void 0;var c=a.getTouchPosition(b);s.x=c.x,s.y=c.y,l=(new Date).getTime(),m=a(this)}function d(b){if(h){var c=a.getTouchPosition(b),d=c.x,e=c.y;if("undefined"==typeof j&&(j=!!(j||Math.abs(e-s.y)>Math.abs(d-s.x))),!j)return void(h=!1);if(o=m[0].scrollTop,"undefined"==typeof p&&0!==o&&(p=!0),!i){if(m.removeClass("transitioning"),o>m[0].offsetHeight)return void(h=!1);r&&(q=m.attr("data-ptr-distance"),q.indexOf("%")>=0&&(q=m[0].offsetHeight*parseInt(q,10)/100)),v=m.hasClass("refreshing")?q:0,u=m[0].scrollHeight!==m[0].offsetHeight&&a.os.ios?!1:!0,u=!0}return i=!0,k=e-s.y,k>0&&0>=o||0>o?(a.os.ios&&parseInt(a.os.version.split(".")[0],10)>7&&0===o&&!p&&(u=!0),u&&(b.preventDefault(),n=Math.pow(k,.85)+v,m.transform("translate3d(0,"+n+"px,0)")),u&&Math.pow(k,.85)>q||!u&&k>=2*q?(t=!0,m.addClass("pull-up").removeClass("pull-down")):(t=!1,m.removeClass("pull-up").addClass("pull-down")),void 0):(m.removeClass("pull-up pull-down"),void(t=!1))}}function e(){return h&&i?(n&&(m.addClass("transitioning"),n=0),m.transform(""),t?(m.addClass("refreshing"),m.trigger("refresh",{done:function(){a.pullToRefreshDone(m)}})):m.removeClass("pull-down"),h=!1,void(i=!1)):(h=!1,void(i=!1))}function f(){g.off(a.touchEvents.start,c),g.off(a.touchEvents.move,d),g.off(a.touchEvents.end,e)}var g=a(b);if(g.hasClass("pull-to-refresh-content")||(g=g.find(".pull-to-refresh-content")),g&&0!==g.length){var h,i,j,k,l,m,n,o,p,q,r,s={},t=!1,u=!1,v=0;m=g,m.attr("data-ptr-distance")?r=!0:q=44,g.on(a.touchEvents.start,c),g.on(a.touchEvents.move,d),g.on(a.touchEvents.end,e),g[0].destroyPullToRefresh=f}},a.pullToRefreshDone=function(b){b=a(b),0===b.length&&(b=a(".pull-to-refresh-content.refreshing")),b.removeClass("refreshing").addClass("transitioning"),b.transitionEnd(function(){b.removeClass("transitioning pull-up pull-down")})},a.pullToRefreshTrigger=function(b){b=a(b),0===b.length&&(b=a(".pull-to-refresh-content")),b.hasClass("refreshing")||(b.addClass("transitioning refreshing"),b.trigger("refresh",{done:function(){a.pullToRefreshDone(b)}}))},a.destroyPullToRefresh=function(b){b=a(b);var c=b.hasClass("pull-to-refresh-content")?b:b.find(".pull-to-refresh-content");0!==c.length&&c[0].destroyPullToRefresh&&c[0].destroyPullToRefresh()}}($),+function(a){"use strict";function b(){var b,c=a(this),d=c.scrollTop(),e=c.scrollHeight(),f=c[0].offsetHeight,g=c[0].getAttribute("data-distance"),h=c.find(".virtual-list"),i=c.hasClass("infinite-scroll-top");if(g||(g=50),"string"==typeof g&&g.indexOf("%")>=0&&(g=parseInt(g,10)/100*f),g>f&&(g=f),i)g>d&&c.trigger("infinite");else if(d+f>=e-g){if(h.length>0&&(b=h[0].f7VirtualList,b&&!b.reachEnd))return;c.trigger("infinite")}}a.attachInfiniteScroll=function(c){a(c).on("scroll",b)},a.detachInfiniteScroll=function(c){a(c).off("scroll",b)},a.initInfiniteScroll=function(b){function c(){a.detachInfiniteScroll(d),b.off("pageBeforeRemove",c)}b=a(b);var d=b.hasClass("infinite-scroll")?b:b.find(".infinite-scroll");0!==d.length&&(a.attachInfiniteScroll(d),b.on("pageBeforeRemove",c))}}($),+function(a){"use strict";var b,c,d,e,f,g,h=function(c){var d=a.getTouchPosition(c);e=d,f=g=0,b.addClass("touching")},i=function(c){if(!e)return!1;c.preventDefault(),c.stopPropagation();var d=a.getTouchPosition(c);f=d.x-e.x,g=d.y-e.y,g>0&&(g=Math.sqrt(g)),b.css("transform","translate3d(0, "+g+"px, 0)")},j=function(){b.removeClass("touching"),b.attr("style",""),0>g&&Math.abs(g)>.38*b.height()&&a.closeNotification(),Math.abs(f)<=1&&Math.abs(g)<=1&&b.trigger("noti-click"),e=!1},k=function(b){b.on(a.touchEvents.start,h),b.on(a.touchEvents.move,i),b.on(a.touchEvents.end,j)};a.notification=a.noti=function(e){e=a.extend({},c,e),b=a(".notification"),b[0]||(b=a('<div class="notification"></div>').appendTo(document.body),k(b)),b.off("noti-click"),e.onClick&&b.on("noti-click",function(){e.onClick(e.data)}),b.html(a.t7.compile(e.tpl)(e)),b.show(),b.addClass("notification-in"),b.data("params",e);var f=function(){d&&(clearTimeout(d),d=null),d=setTimeout(function(){b.hasClass("touching")?f():a.closeNotification()},e.time)};f()},a.closeNotification=function(){d&&clearTimeout(d),d=null;var b=a(".notification").removeClass("notification-in").transitionEnd(function(){a(this).remove()});if(b[0]){var c=a(".notification").data("params");c&&c.onClose&&c.onClose(c.data)}},c=a.noti.prototype.defaults={title:void 0,text:void 0,media:void 0,time:4e3,onClick:void 0,onClose:void 0,data:void 0,tpl:'<div class="notification-inner">{{#if media}}<div class="notification-media">{{media}}</div>{{/if}}<div class="notification-content">{{#if title}}<div class="notification-title">{{title}}</div>{{/if}}{{#if text}}<div class="notification-text">{{text}}</div>{{/if}}</div><div class="notification-handle-bar"></div></div>'}}($),+function(a){"use strict";var b=function(b){this.params=b,this.tpl=a.t7(this.params.indexListTemplate).compile()};b.prototype.render=function(b){this.list=a(b||".list"),this.draw()},b.prototype.draw=function(){this.indexList&&this.indexList.remove(),this.titles=this.list.find(this.params.titleSelector);var b=this.titles.map(function(b,c){return a(c).data("index")||a(c).text()}).toArray();this.indexList=a("<ul class='index-list-bar'></ul>").appendTo(this.list.parents(".page")),this.indexList.html(this.tpl({indexes:b})),this.indexList.on(a.touchEvents.start,a.proxy(this.touchStart,this)),this.indexList.on(a.touchEvents.start+" "+a.touchEvents.move,a.proxy(this.touchMove,this)),this.indexList.on(a.touchEvents.end,a.proxy(this.touchEnd,this)),this.content=this.list.parents(".content")},b.prototype.touchStart=function(){this.pageOffsetTop=this.content.offset().top,this.touching=!0},b.prototype.touchMove=function(b){if(this.touching){b.preventDefault();var c=this.getElementOnTouch(a.getTouchPosition(b));if(c){var d=this.titles.eq(c.data("index")),e=d.parent().offset().top,f=e-this.pageOffsetTop+this.content.scrollTop();this.content.scrollTop(f)}}},b.prototype.touchEnd=function(){this.touching=!1},b.prototype.getElementOnTouch=function(b){var c=null;return this.indexList.find("li").each(function(){if(!c){var d=a(this),e=d.offset();e.top<b.y&&e.top+d.outerHeight()>b.y&&(c=d)}}),c},a.fn.indexList=function(c){return this.each(function(){if(this){var d=a(this),e=d.data("index");return e||(c=a.extend({},a.fn.indexList.prototype.defaults,c),e=new b(c).render(d),d.data("index",e)),e}})},a.fn.indexList.prototype.defaults={titleSelector:".list-group-title",indexListTemplate:"{{#indexes}}<li data-index={{@index}}><strong>{{this}}</strong></li>{{/indexes}}"},a.initIndexList=function(b){var c=a(b);c.hasClass(".contacts-block")?c.indexList():c.find(".contacts-block").indexList()}}($),+function(a){"use strict";a(function(){a(document).on("focus",".searchbar input",function(b){var c=a(b.target);c.parents(".searchbar").addClass("searchbar-active")}),a(document).on("click",".searchbar-cancel",function(b){var c=a(b.target);c.parents(".searchbar").removeClass("searchbar-active")}),a(document).on("blur",".searchbar input",function(b){var c=a(b.target);c.parents(".searchbar").removeClass("searchbar-active")})})}($),+function(a){"use strict";a.allowPanelOpen=!0,a.openPanel=function(b){function c(){f.transitionEnd(function(d){d.target===f[0]?(b.hasClass("active")?b.trigger("opened"):b.trigger("closed"),a.allowPanelOpen=!0):c()})}if(!a.allowPanelOpen)return!1;("left"===b||"right"===b)&&(b=".panel-"+b),b=b?a(b):a(".panel").eq(0);var d=b.hasClass("panel-right")?"right":"left";if(0===b.length||b.hasClass("active"))return!1;a.closePanel(),a.allowPanelOpen=!1;var e=b.hasClass("panel-reveal")?"reveal":"cover";b.css({display:"block"}).addClass("active"),b.trigger("open");var f=(b[0].clientLeft,"reveal"===e?a(a.getCurrentPage()):b);return c(),a(document.body).addClass("with-panel-"+d+"-"+e),!0},a.closePanel=function(){var b=a(".panel.active");if(0===b.length)return!1;var c=b.hasClass("panel-reveal")?"reveal":"cover",d=b.hasClass("panel-left")?"left":"right";b.removeClass("active");var e="reveal"===c?a(".page"):b;b.trigger("close"),a.allowPanelOpen=!1,e.transitionEnd(function(){b.hasClass("active")||(b.css({display:""}),b.trigger("closed"),a("body").removeClass("panel-closing"),a.allowPanelOpen=!0)}),a("body").addClass("panel-closing").removeClass("with-panel-"+d+"-"+c)},a(document).on("click",".open-panel",function(b){var c=a(b.target).data(c);a.openPanel(c)}),a(document).on("click",".close-panel, .panel-overlay",function(b){a.closePanel()}),a.initSwipePanels=function(){function b(b){if(y=a(a.getCurrentPage()),a.allowPanelOpen&&(g||h)&&!m&&!(a(".modal-in, .photo-browser-in").length>0)&&(i||h||!(a(".panel.active").length>0)||e.hasClass("active"))){var c=a.getTouchPosition(b);if(x.x=c.x,x.y=c.y,i||h){if(a(".panel.active").length>0)f=a(".panel.active").hasClass("panel-left")?"left":"right";else{if(h)return;f=g}if(!f)return}if(e=a(".panel.panel-"+f),e[0]){if(s=e.hasClass("active"),j&&!s){if("left"===f&&x.x>j)return;if("right"===f&&x.x<window.innerWidth-j)return}n=!1,m=!0,o=void 0,p=(new Date).getTime(),v=void 0}}}function c(b){if(m&&e[0]&&!b.f7PreventPanelSwipe){var c=a.getTouchPosition(b),d=c.x,g=c.y;if("undefined"==typeof o&&(o=!!(o||Math.abs(g-x.y)>Math.abs(d-x.x))),o)return void(m=!1);if(!v&&(v=d>x.x?"to-right":"to-left","left"===f&&"to-left"===v&&!e.hasClass("active")||"right"===f&&"to-right"===v&&!e.hasClass("active")))return void(m=!1);if(l){var h=(new Date).getTime()-p;return 300>h&&("to-left"===v&&("right"===f&&a.openPanel(f),"left"===f&&e.hasClass("active")&&a.closePanel()),"to-right"===v&&("left"===f&&a.openPanel(f),"right"===f&&e.hasClass("active")&&a.closePanel())),m=!1,void(n=!1)}n||(u=e.hasClass("panel-cover")?"cover":"reveal",s||(e.show(),w.show()),t=e[0].offsetWidth,e.transition(0)),n=!0,b.preventDefault();var i=s?0:-k;"right"===f&&(i=-i),q=d-x.x+i,"right"===f?(r=q-(s?t:0),r>0&&(r=0),-t>r&&(r=-t)):(r=q+(s?t:0),0>r&&(r=0),r>t&&(r=t)),"reveal"===u?(y.transform("translate3d("+r+"px,0,0)").transition(0),w.transform("translate3d("+r+"px,0,0)")):e.transform("translate3d("+r+"px,0,0)").transition(0)}}function d(b){if(!m||!n)return m=!1,void(n=!1);m=!1,n=!1;var c,d=(new Date).getTime()-p,g=0===r||Math.abs(r)===t;if(c=s?r===-t?"reset":300>d&&Math.abs(r)>=0||d>=300&&Math.abs(r)<=t/2?"left"===f&&r===t?"reset":"swap":"reset":0===r?"reset":300>d&&Math.abs(r)>0||d>=300&&Math.abs(r)>=t/2?"swap":"reset","swap"===c&&(a.allowPanelOpen=!0,s?(a.closePanel(),g&&(e.css({display:""}),a("body").removeClass("panel-closing"))):a.openPanel(f),g&&(a.allowPanelOpen=!0)),"reset"===c)if(s)a.allowPanelOpen=!0,a.openPanel(f);else if(a.closePanel(),g)a.allowPanelOpen=!0,e.css({display:""});else{var h="reveal"===u?y:e;a("body").addClass("panel-closing"),h.transitionEnd(function(){a.allowPanelOpen=!0,e.css({display:""}),a("body").removeClass("panel-closing")})}"reveal"===u&&(y.transition(""),y.transform("")),e.transition("").transform(""),w.css({display:""}).transform("")}var e,f,g=a.smConfig.swipePanel,h=a.smConfig.swipePanelOnlyClose,i=!0,j=!1,k=2,l=!1;if(g||h){var m,n,o,p,q,r,s,t,u,v,w=a(".panel-overlay"),x={},y=a(a.getCurrentPage());a(document).on(a.touchEvents.start,b),a(document).on(a.touchEvents.move,c),a(document).on(a.touchEvents.end,d)}},a.initSwipePanels()}($),+function(a){"use strict";window.CustomEvent||(window.CustomEvent=function(a,b){var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail,b.id),c});var b=function(){this.state=sessionStorage,this.state.setItem("stateid",parseInt(this.state.getItem("stateid")||1)+1),this.state.setItem("currentStateID",this.state.getItem("stateid")),this.stack=sessionStorage,this.stack.setItem("back","[]"),this.stack.setItem("forward","[]"),this.extras={},this.init(),this.xhr=null};b.prototype.defaults={transition:!0},b.prototype.init=function(){var b=this.getCurrentPage();b[0]||(b=a(".page").eq(0).addClass("page-current"));var c=location.hash;if(b[0]&&!b[0].id&&(b[0].id=c?c.slice(1):this.genRandomID()),!b[0])throw new Error("can't find .page element");var d=a(c);!d[0]||b[0]&&c.slice(1)===b[0].id||(b.removeClass("page-current"),d.addClass("page-current"),b=d);var e=history.state;if(!e){var f=this.genStateID();this.replaceState(location.href,f),this.setCurrentStateID(f)}var g=this;window.addEventListener("load",function(){setTimeout(function(){window.addEventListener("popstate",a.proxy(g.onpopstate,g))},0)},!1)},b.prototype.loadPage=function(b,c,d,e){var f=b;void 0===c&&(c=!this.defaults.transition),"string"==typeof b&&(f={url:b,noAnimation:c,replace:d});var b=f.url,c=f.noAnimation,d=f.replace;this.getPage(b,function(f,g){var h=this.getCurrentPage(),i=h[0].id,j="pushBack";d&&(j="replaceBack"),e&&(j="reloadBack"),this[j]({url:location.href,pageid:"#"+i,id:this.getCurrentStateID(),animation:!c});for(var k=JSON.parse(this.state.getItem("forward")||"[]"),l=this,m=0;m<k.length;m++)a(k[m].pageid).each(function(){var b=a(this);if(b.data("page-remote")){var c=l.extras[b[0].id];c&&c.remove(),l.extras[b[0].id]=void 0,b.remove()}});this.state.setItem("forward","[]");var n=a("#"+a(f)[0].id);f.insertBefore(a(".page")[0]),n[0]!==f[0]&&n.remove(),g&&(l.extras[f[0].id]=g.appendTo(document.body));var o=this.genStateID();this.setCurrentStateID(o),this[d||e?"replaceState":"pushState"](b,o),this.forwardStack=[],this.animatePages(this.getCurrentPage(),f,null,c)})},b.prototype.replacePage=function(a,b){return this.loadPage(a,b,!0)},b.prototype.reloadPage=function(){return this.loadPage(location.href,!0,!1,!0)},b.prototype.animatePages=function(b,c,d,e){function f(a){a.removeClass(g),a.trigger("pageAnimationEnd",[a[0].id,a])}var g="page-left page-right page-from-center-to-left page-from-center-to-right page-from-right-to-center page-from-left-to-center";e?d?(b.trigger("pageAnimationStart",[c[0].id,c]),c.removeClass(g).removeClass("page-current"),b.removeClass(g).addClass("page-current"),b.hasClass("no-tabbar")?a(document.body).addClass("tabbar-hidden"):a(document.body).removeClass("tabbar-hidden"),c.trigger("pageInitInternal",[b[0].id,b])):(c.trigger("pageAnimationStart",[c[0].id,c]),b.removeClass(g).removeClass("page-current"),c.removeClass(g).addClass("page-current"),c.trigger("pageInitInternal",[c[0].id,c]),c.hasClass("no-tabbar")?a(document.body).addClass("tabbar-hidden"):a(document.body).removeClass("tabbar-hidden")):d?(b.trigger("pageAnimationStart",[c[0].id,c]),c.removeClass(g).addClass("page-from-center-to-right").removeClass("page-current"),b.removeClass(g).addClass("page-from-left-to-center page-current"),b.animationEnd(function(){f(b)}),c.animationEnd(function(){c.removeClass(g)}),b.hasClass("no-tabbar")?a(document.body).addClass("tabbar-hidden"):a(document.body).removeClass("tabbar-hidden"),c.trigger("pageInitInternal",[b[0].id,b])):(c.trigger("pageAnimationStart",[c[0].id,c]),b.removeClass(g).addClass("page-from-center-to-left").removeClass("page-current"),c.removeClass(g).addClass("page-from-right-to-center page-current"),b.animationEnd(function(){b.removeClass(g)}),c.animationEnd(function(){f(c)}),c.hasClass("no-tabbar")?a(document.body).addClass("tabbar-hidden"):a(document.body).removeClass("tabbar-hidden"),c.trigger("pageInitInternal",[c[0].id,c]))},b.prototype.getCurrentPage=function(){return a(".page-current")},b.prototype.forward=function(a){var b=JSON.parse(this.stack.getItem("forward"));b.length?history.forward():location.href=a},b.prototype.back=function(a){var b=JSON.parse(this.stack.getItem("back"));b.length?history.back():a?location.href=a:history.back()},b.prototype._back=function(){var b=this.popBack();if(b){var c=this.getCurrentPage(),d=a(b.pageid);d[0]&&(this.pushForward({url:location.href,pageid:"#"+c[0].id,id:this.getCurrentStateID(),animation:b.animation}),this.setCurrentStateID(b.id),this.animatePages(d,c,!0,!b.animation))}},b.prototype._forward=function(){var b=this.popForward();if(b){var c=this.getCurrentPage(),d=a(b.pageid);d[0]&&(this.pushBack({url:location.href,pageid:"#"+c[0].id,id:this.getCurrentStateID(),animation:b.animation}),this.setCurrentStateID(b.id),this.animatePages(c,d,!1,!b.animation))}},b.prototype.pushState=function(a,b){history.pushState({url:a,id:b},"",a)},b.prototype.replaceState=function(a,b){history.replaceState({url:a,id:b},"",a)},b.prototype.onpopstate=function(a){var b=a.state;if(!b)return!0;if(b.id===this.getCurrentStateID())return!1;var c=b.id>this.getCurrentStateID();c?this._forward():this._back()},b.prototype.getPage=function(b,c){if("#"===b[0])return c.apply(this,[a(b)]);this.dispatch("pageLoadStart"),this.xhr&&this.xhr.readyState<4&&(this.xhr.onreadystatechange=a.noop,this.xhr.abort(),this.dispatch("pageLoadCancel"));var d=this;this.xhr=a.ajax({url:b,success:a.proxy(function(a,b,d){var e=this.parseXHR(d),f=e[0],g=e[1];f[0].id||(f[0].id=this.genRandomID()),f.data("page-remote",1),c.apply(this,[f,g])},this),error:function(){d.dispatch("pageLoadError")},complete:function(){d.dispatch("pageLoadComplete")}})},b.prototype.parseXHR=function(b){var c=b.responseText,d=c.match(/<body[^>]*>([\s\S.]*)<\/body>/i),e=d?d[1]:c;e="<div>"+e+"</div>";var f=a(e),g=f.find(".popup, .popover, .panel, .panel-overlay"),h=f.find(".page");return h[0]||(h=f.addClass("page")),[h,g]},b.prototype.genStateID=function(){var a=parseInt(this.state.getItem("stateid"))+1;return this.state.setItem("stateid",a),a},b.prototype.getCurrentStateID=function(){return parseInt(this.state.getItem("currentStateID"))},b.prototype.setCurrentStateID=function(a){this.state.setItem("currentStateID",a)},b.prototype.genRandomID=function(){return"page-"+ +new Date},b.prototype.popBack=function(){var a=JSON.parse(this.stack.getItem("back"));if(!a.length)return null;var b=a.splice(a.length-1,1)[0];return this.stack.setItem("back",JSON.stringify(a)),b},b.prototype.pushBack=function(a){var b=JSON.parse(this.stack.getItem("back"));b.push(a),this.stack.setItem("back",JSON.stringify(b))},b.prototype.replaceBack=function(a){var b=JSON.parse(this.stack.getItem("back"));b.pop(),b.push(a),this.stack.setItem("back",JSON.stringify(b))},b.prototype.reloadBack=function(a){},b.prototype.popForward=function(){var a=JSON.parse(this.stack.getItem("forward"));if(!a.length)return null;var b=a.splice(a.length-1,1)[0];return this.stack.setItem("forward",JSON.stringify(a)),b},b.prototype.pushForward=function(a){var b=JSON.parse(this.stack.getItem("forward"));b.push(a),this.stack.setItem("forward",JSON.stringify(b))},b.prototype.dispatch=function(a){var b=new CustomEvent(a,{bubbles:!0,cancelable:!0});window.dispatchEvent(b)},a(function(){if(a.smConfig.router){var c=a.router=new b;c.defaults=b.prototype.defaults,a(document).on("click","a",function(b){var d=a(b.currentTarget);if(!(d.hasClass("external")||d[0].hasAttribute("external")||d.hasClass("tab-link")||d.hasClass("open-popup")||d.hasClass("open-panel"))){b.preventDefault();var e=d.attr("href");return d.hasClass("back")?void c.back(e):void(e&&"#"!==e&&!/javascript:.*;/.test(e)&&c.loadPage(e,d.hasClass("no-transition")?!0:void 0,d.hasClass("replace")?!0:void 0))}})}})}($),+function(a){"use strict";var b=function(){var b=a(".page-current");return b[0]||(b=a(".page").addClass("page-current")),b};a.initPage=function(c){var d=c?a(c):b();d[0]||(d=a(document.body));var e=d.hasClass("content")?d:d.find(".content");a.initPullToRefresh(e),a.initInfiniteScroll(e),a.initCalendar(e),a.initIndexList(e),a.initSwiper&&a.initSwiper(e),a.initSwipeout&&a.initSwipeout()},a.smConfig.showPageLoadingIndicator&&(a(window).on("pageLoadStart",function(){a.showIndicator()}),a(document).on("pageAnimationStart",function(){a.hideIndicator()}),a(window).on("pageLoadCancel",function(){a.hideIndicator()}),a(window).on("pageLoadError",function(){a.hideIndicator(),a.toast("加载失败")})),a.init=function(){var c=b(),d=c[0].id;c.hasClass("page-inited")?c.trigger("pageReinit",[d,c]):(a.initPage(),c.addClass("page-inited"),c.trigger("pageInit",[d,c]))},a(function(){a.smConfig.autoInit&&a.init(),a(document).on("pageInitInternal",function(b,c,d){a.init()})})}($);
/*!
 * =====================================================
 * light7 V0.4.3 - http://light7.org/
 *
 * =====================================================
 */
+function(a){a.smConfig.rawCitiesData=[{name:"北京",sub:[{name:"请选择"},{name:"东城区"},{name:"西城区"},{name:"崇文区"},{name:"宣武区"},{name:"朝阳区"},{name:"海淀区"},{name:"丰台区"},{name:"石景山区"},{name:"房山区"},{name:"通州区"},{name:"顺义区"},{name:"昌平区"},{name:"大兴区"},{name:"怀柔区"},{name:"平谷区"},{name:"门头沟区"},{name:"密云县"},{name:"延庆县"},{name:"其他"}],type:0},{name:"广东",sub:[{name:"请选择",sub:[]},{name:"广州",sub:[{name:"请选择"},{name:"越秀区"},{name:"荔湾区"},{name:"海珠区"},{name:"天河区"},{name:"白云区"},{name:"黄埔区"},{name:"番禺区"},{name:"花都区"},{name:"南沙区"},{name:"萝岗区"},{name:"增城市"},{name:"从化市"},{name:"其他"}],type:0},{name:"深圳",sub:[{name:"请选择"},{name:"福田区"},{name:"罗湖区"},{name:"南山区"},{name:"宝安区"},{name:"龙岗区"},{name:"盐田区"},{name:"其他"}],type:0},{name:"珠海",sub:[{name:"请选择"},{name:"香洲区"},{name:"斗门区"},{name:"金湾区"},{name:"其他"}],type:0},{name:"汕头",sub:[{name:"请选择"},{name:"金平区"},{name:"濠江区"},{name:"龙湖区"},{name:"潮阳区"},{name:"潮南区"},{name:"澄海区"},{name:"南澳县"},{name:"其他"}],type:0},{name:"韶关",sub:[{name:"请选择"},{name:"浈江区"},{name:"武江区"},{name:"曲江区"},{name:"乐昌市"},{name:"南雄市"},{name:"始兴县"},{name:"仁化县"},{name:"翁源县"},{name:"新丰县"},{name:"乳源瑶族自治县"},{name:"其他"}],type:0},{name:"佛山",sub:[{name:"请选择"},{name:"禅城区"},{name:"南海区"},{name:"顺德区"},{name:"三水区"},{name:"高明区"},{name:"其他"}],type:0},{name:"江门",sub:[{name:"请选择"},{name:"蓬江区"},{name:"江海区"},{name:"新会区"},{name:"恩平市"},{name:"台山市"},{name:"开平市"},{name:"鹤山市"},{name:"其他"}],type:0},{name:"湛江",sub:[{name:"请选择"},{name:"赤坎区"},{name:"霞山区"},{name:"坡头区"},{name:"麻章区"},{name:"吴川市"},{name:"廉江市"},{name:"雷州市"},{name:"遂溪县"},{name:"徐闻县"},{name:"其他"}],type:0},{name:"茂名",sub:[{name:"请选择"},{name:"茂南区"},{name:"茂港区"},{name:"化州市"},{name:"信宜市"},{name:"高州市"},{name:"电白县"},{name:"其他"}],type:0},{name:"肇庆",sub:[{name:"请选择"},{name:"端州区"},{name:"鼎湖区"},{name:"高要市"},{name:"四会市"},{name:"广宁县"},{name:"怀集县"},{name:"封开县"},{name:"德庆县"},{name:"其他"}],type:0},{name:"惠州",sub:[{name:"请选择"},{name:"惠城区"},{name:"惠阳区"},{name:"博罗县"},{name:"惠东县"},{name:"龙门县"},{name:"其他"}],type:0},{name:"梅州",sub:[{name:"请选择"},{name:"梅江区"},{name:"兴宁市"},{name:"梅县"},{name:"大埔县"},{name:"丰顺县"},{name:"五华县"},{name:"平远县"},{name:"蕉岭县"},{name:"其他"}],type:0},{name:"汕尾",sub:[{name:"请选择"},{name:"城区"},{name:"陆丰市"},{name:"海丰县"},{name:"陆河县"},{name:"其他"}],type:0},{name:"河源",sub:[{name:"请选择"},{name:"源城区"},{name:"紫金县"},{name:"龙川县"},{name:"连平县"},{name:"和平县"},{name:"东源县"},{name:"其他"}],type:0},{name:"阳江",sub:[{name:"请选择"},{name:"江城区"},{name:"阳春市"},{name:"阳西县"},{name:"阳东县"},{name:"其他"}],type:0},{name:"清远",sub:[{name:"请选择"},{name:"清城区"},{name:"英德市"},{name:"连州市"},{name:"佛冈县"},{name:"阳山县"},{name:"清新县"},{name:"连山壮族瑶族自治县"},{name:"连南瑶族自治县"},{name:"其他"}],type:0},{name:"东莞",sub:[],type:0},{name:"中山",sub:[],type:0},{name:"潮州",sub:[{name:"请选择"},{name:"湘桥区"},{name:"潮安县"},{name:"饶平县"},{name:"其他"}],type:0},{name:"揭阳",sub:[{name:"请选择"},{name:"榕城区"},{name:"普宁市"},{name:"揭东县"},{name:"揭西县"},{name:"惠来县"},{name:"其他"}],type:0},{name:"云浮",sub:[{name:"请选择"},{name:"云城区"},{name:"罗定市"},{name:"云安县"},{name:"新兴县"},{name:"郁南县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"上海",sub:[{name:"请选择"},{name:"黄浦区"},{name:"卢湾区"},{name:"徐汇区"},{name:"长宁区"},{name:"静安区"},{name:"普陀区"},{name:"闸北区"},{name:"虹口区"},{name:"杨浦区"},{name:"宝山区"},{name:"闵行区"},{name:"嘉定区"},{name:"松江区"},{name:"金山区"},{name:"青浦区"},{name:"南汇区"},{name:"奉贤区"},{name:"浦东新区"},{name:"崇明县"},{name:"其他"}],type:0},{name:"天津",sub:[{name:"请选择"},{name:"和平区"},{name:"河东区"},{name:"河西区"},{name:"南开区"},{name:"河北区"},{name:"红桥区"},{name:"塘沽区"},{name:"汉沽区"},{name:"大港区"},{name:"东丽区"},{name:"西青区"},{name:"北辰区"},{name:"津南区"},{name:"武清区"},{name:"宝坻区"},{name:"静海县"},{name:"宁河县"},{name:"蓟县"},{name:"其他"}],type:0},{name:"重庆",sub:[{name:"请选择"},{name:"渝中区"},{name:"大渡口区"},{name:"江北区"},{name:"南岸区"},{name:"北碚区"},{name:"渝北区"},{name:"巴南区"},{name:"长寿区"},{name:"双桥区"},{name:"沙坪坝区"},{name:"万盛区"},{name:"万州区"},{name:"涪陵区"},{name:"黔江区"},{name:"永川区"},{name:"合川区"},{name:"江津区"},{name:"九龙坡区"},{name:"南川区"},{name:"綦江县"},{name:"潼南县"},{name:"荣昌县"},{name:"璧山县"},{name:"大足县"},{name:"铜梁县"},{name:"梁平县"},{name:"开县"},{name:"忠县"},{name:"城口县"},{name:"垫江县"},{name:"武隆县"},{name:"丰都县"},{name:"奉节县"},{name:"云阳县"},{name:"巫溪县"},{name:"巫山县"},{name:"石柱土家族自治县"},{name:"秀山土家族苗族自治县"},{name:"酉阳土家族苗族自治县"},{name:"彭水苗族土家族自治县"},{name:"其他"}],type:0},{name:"辽宁",sub:[{name:"请选择",sub:[]},{name:"沈阳",sub:[{name:"请选择"},{name:"沈河区"},{name:"皇姑区"},{name:"和平区"},{name:"大东区"},{name:"铁西区"},{name:"苏家屯区"},{name:"东陵区"},{name:"于洪区"},{name:"新民市"},{name:"法库县"},{name:"辽中县"},{name:"康平县"},{name:"新城子区"},{name:"其他"}],type:0},{name:"大连",sub:[{name:"请选择"},{name:"西岗区"},{name:"中山区"},{name:"沙河口区"},{name:"甘井子区"},{name:"旅顺口区"},{name:"金州区"},{name:"瓦房店市"},{name:"普兰店市"},{name:"庄河市"},{name:"长海县"},{name:"其他"}],type:0},{name:"鞍山",sub:[{name:"请选择"},{name:"铁东区"},{name:"铁西区"},{name:"立山区"},{name:"千山区"},{name:"海城市"},{name:"台安县"},{name:"岫岩满族自治县"},{name:"其他"}],type:0},{name:"抚顺",sub:[{name:"请选择"},{name:"顺城区"},{name:"新抚区"},{name:"东洲区"},{name:"望花区"},{name:"抚顺县"},{name:"清原满族自治县"},{name:"新宾满族自治县"},{name:"其他"}],type:0},{name:"本溪",sub:[{name:"请选择"},{name:"平山区"},{name:"明山区"},{name:"溪湖区"},{name:"南芬区"},{name:"本溪满族自治县"},{name:"桓仁满族自治县"},{name:"其他"}],type:0},{name:"丹东",sub:[{name:"请选择"},{name:"振兴区"},{name:"元宝区"},{name:"振安区"},{name:"东港市"},{name:"凤城市"},{name:"宽甸满族自治县"},{name:"其他"}],type:0},{name:"锦州",sub:[{name:"请选择"},{name:"太和区"},{name:"古塔区"},{name:"凌河区"},{name:"凌海市"},{name:"黑山县"},{name:"义县"},{name:"北宁市"},{name:"其他"}],type:0},{name:"营口",sub:[{name:"请选择"},{name:"站前区"},{name:"西市区"},{name:"鲅鱼圈区"},{name:"老边区"},{name:"大石桥市"},{name:"盖州市"},{name:"其他"}],type:0},{name:"阜新",sub:[{name:"请选择"},{name:"海州区"},{name:"新邱区"},{name:"太平区"},{name:"清河门区"},{name:"细河区"},{name:"彰武县"},{name:"阜新蒙古族自治县"},{name:"其他"}],type:0},{name:"辽阳",sub:[{name:"请选择"},{name:"白塔区"},{name:"文圣区"},{name:"宏伟区"},{name:"太子河区"},{name:"弓长岭区"},{name:"灯塔市"},{name:"辽阳县"},{name:"其他"}],type:0},{name:"盘锦",sub:[{name:"请选择"},{name:"双台子区"},{name:"兴隆台区"},{name:"盘山县"},{name:"大洼县"},{name:"其他"}],type:0},{name:"铁岭",sub:[{name:"请选择"},{name:"银州区"},{name:"清河区"},{name:"调兵山市"},{name:"开原市"},{name:"铁岭县"},{name:"昌图县"},{name:"西丰县"},{name:"其他"}],type:0},{name:"朝阳",sub:[{name:"请选择"},{name:"双塔区"},{name:"龙城区"},{name:"凌源市"},{name:"北票市"},{name:"朝阳县"},{name:"建平县"},{name:"喀喇沁左翼蒙古族自治县"},{name:"其他"}],type:0},{name:"葫芦岛",sub:[{name:"请选择"},{name:"龙港区"},{name:"南票区"},{name:"连山区"},{name:"兴城市"},{name:"绥中县"},{name:"建昌县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"江苏",sub:[{name:"请选择",sub:[]},{name:"南京",sub:[{name:"请选择"},{name:"玄武区"},{name:"白下区"},{name:"秦淮区"},{name:"建邺区"},{name:"鼓楼区"},{name:"下关区"},{name:"栖霞区"},{name:"雨花台区"},{name:"浦口区"},{name:"江宁区"},{name:"六合区"},{name:"溧水县"},{name:"高淳县"},{name:"其他"}],type:0},{name:"苏州",sub:[{name:"请选择"},{name:"金阊区"},{name:"平江区"},{name:"沧浪区"},{name:"虎丘区"},{name:"吴中区"},{name:"相城区"},{name:"常熟市"},{name:"张家港市"},{name:"昆山市"},{name:"吴江市"},{name:"太仓市"},{name:"其他"}],type:0},{name:"无锡",sub:[{name:"请选择"},{name:"崇安区"},{name:"南长区"},{name:"北塘区"},{name:"滨湖区"},{name:"锡山区"},{name:"惠山区"},{name:"江阴市"},{name:"宜兴市"},{name:"其他"}],type:0},{name:"常州",sub:[{name:"请选择"},{name:"钟楼区"},{name:"天宁区"},{name:"戚墅堰区"},{name:"新北区"},{name:"武进区"},{name:"金坛市"},{name:"溧阳市"},{name:"其他"}],type:0},{name:"镇江",sub:[{name:"请选择"},{name:"京口区"},{name:"润州区"},{name:"丹徒区"},{name:"丹阳市"},{name:"扬中市"},{name:"句容市"},{name:"其他"}],type:0},{name:"南通",sub:[{name:"请选择"},{name:"崇川区"},{name:"港闸区"},{name:"通州市"},{name:"如皋市"},{name:"海门市"},{name:"启东市"},{name:"海安县"},{name:"如东县"},{name:"其他"}],type:0},{name:"泰州",sub:[{name:"请选择"},{name:"海陵区"},{name:"高港区"},{name:"姜堰市"},{name:"泰兴市"},{name:"靖江市"},{name:"兴化市"},{name:"其他"}],type:0},{name:"扬州",sub:[{name:"请选择"},{name:"广陵区"},{name:"维扬区"},{name:"邗江区"},{name:"江都市"},{name:"仪征市"},{name:"高邮市"},{name:"宝应县"},{name:"其他"}],type:0},{name:"盐城",sub:[{name:"请选择"},{name:"亭湖区"},{name:"盐都区"},{name:"大丰市"},{name:"东台市"},{name:"建湖县"},{name:"射阳县"},{name:"阜宁县"},{name:"滨海县"},{name:"响水县"},{name:"其他"}],type:0},{name:"连云港",sub:[{name:"请选择"},{name:"新浦区"},{name:"海州区"},{name:"连云区"},{name:"东海县"},{name:"灌云县"},{name:"赣榆县"},{name:"灌南县"},{name:"其他"}],type:0},{name:"徐州",sub:[{name:"请选择"},{name:"云龙区"},{name:"鼓楼区"},{name:"九里区"},{name:"泉山区"},{name:"贾汪区"},{name:"邳州市"},{name:"新沂市"},{name:"铜山县"},{name:"睢宁县"},{name:"沛县"},{name:"丰县"},{name:"其他"}],type:0},{name:"淮安",sub:[{name:"请选择"},{name:"清河区"},{name:"清浦区"},{name:"楚州区"},{name:"淮阴区"},{name:"涟水县"},{name:"洪泽县"},{name:"金湖县"},{name:"盱眙县"},{name:"其他"}],type:0},{name:"宿迁",sub:[{name:"请选择"},{name:"宿城区"},{name:"宿豫区"},{name:"沭阳县"},{name:"泗阳县"},{name:"泗洪县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"湖北",sub:[{name:"请选择",sub:[]},{name:"武汉",sub:[{name:"请选择"},{name:"江岸区"},{name:"武昌区"},{name:"江汉区"},{name:"硚口区"},{name:"汉阳区"},{name:"青山区"},{name:"洪山区"},{name:"东西湖区"},{name:"汉南区"},{name:"蔡甸区"},{name:"江夏区"},{name:"黄陂区"},{name:"新洲区"},{name:"其他"}],type:0},{name:"黄石",sub:[{name:"请选择"},{name:"黄石港区"},{name:"西塞山区"},{name:"下陆区"},{name:"铁山区"},{name:"大冶市"},{name:"阳新县"},{name:"其他"}],type:0},{name:"十堰",sub:[{name:"请选择"},{name:"张湾区"},{name:"茅箭区"},{name:"丹江口市"},{name:"郧县"},{name:"竹山县"},{name:"房县"},{name:"郧西县"},{name:"竹溪县"},{name:"其他"}],type:0},{name:"荆州",sub:[{name:"请选择"},{name:"沙市区"},{name:"荆州区"},{name:"洪湖市"},{name:"石首市"},{name:"松滋市"},{name:"监利县"},{name:"公安县"},{name:"江陵县"},{name:"其他"}],type:0},{name:"宜昌",sub:[{name:"请选择"},{name:"西陵区"},{name:"伍家岗区"},{name:"点军区"},{name:"猇亭区"},{name:"夷陵区"},{name:"宜都市"},{name:"当阳市"},{name:"枝江市"},{name:"秭归县"},{name:"远安县"},{name:"兴山县"},{name:"五峰土家族自治县"},{name:"长阳土家族自治县"},{name:"其他"}],type:0},{name:"襄樊",sub:[{name:"请选择"},{name:"襄城区"},{name:"樊城区"},{name:"襄阳区"},{name:"老河口市"},{name:"枣阳市"},{name:"宜城市"},{name:"南漳县"},{name:"谷城县"},{name:"保康县"},{name:"其他"}],type:0},{name:"鄂州",sub:[{name:"请选择"},{name:"鄂城区"},{name:"华容区"},{name:"梁子湖区"},{name:"其他"}],type:0},{name:"荆门",sub:[{name:"请选择"},{name:"东宝区"},{name:"掇刀区"},{name:"钟祥市"},{name:"京山县"},{name:"沙洋县"},{name:"其他"}],type:0},{name:"孝感",sub:[{name:"请选择"},{name:"孝南区"},{name:"应城市"},{name:"安陆市"},{name:"汉川市"},{name:"云梦县"},{name:"大悟县"},{name:"孝昌县"},{name:"其他"}],type:0},{name:"黄冈",sub:[{name:"请选择"},{name:"黄州区"},{name:"麻城市"},{name:"武穴市"},{name:"红安县"},{name:"罗田县"},{name:"浠水县"},{name:"蕲春县"},{name:"黄梅县"},{name:"英山县"},{name:"团风县"},{name:"其他"}],type:0},{name:"咸宁",sub:[{name:"请选择"},{name:"咸安区"},{name:"赤壁市"},{name:"嘉鱼县"},{name:"通山县"},{name:"崇阳县"},{name:"通城县"},{name:"其他"}],type:0},{name:"随州",sub:[{name:"请选择"},{name:"曾都区"},{name:"广水市"},{name:"其他"}],type:0},{name:"恩施土家族苗族自治州",sub:[{name:"请选择"},{name:"恩施市"},{name:"利川市"},{name:"建始县"},{name:"来凤县"},{name:"巴东县"},{name:"鹤峰县"},{name:"宣恩县"},{name:"咸丰县"},{name:"其他"}],type:0},{name:"仙桃",sub:[],type:0},{name:"天门",sub:[],type:0},{name:"潜江",sub:[],type:0},{name:"神农架林区",sub:[],type:0},{name:"其他"}],type:1},{name:"四川",sub:[{name:"请选择",sub:[]},{name:"成都",sub:[{name:"请选择"},{name:"青羊区"},{name:"锦江区"},{name:"金牛区"},{name:"武侯区"},{name:"成华区"},{name:"龙泉驿区"},{name:"青白江区"},{name:"新都区"},{name:"温江区"},{name:"都江堰市"},{name:"彭州市"},{name:"邛崃市"},{name:"崇州市"},{name:"金堂县"},{name:"郫县"},{name:"新津县"},{name:"双流县"},{name:"蒲江县"},{name:"大邑县"},{name:"其他"}],type:0},{name:"自贡",sub:[{name:"请选择"},{name:"大安区"},{name:"自流井区"},{name:"贡井区"},{name:"沿滩区"},{name:"荣县"},{name:"富顺县"},{name:"其他"}],type:0},{name:"攀枝花",sub:[{name:"请选择"},{name:"仁和区"},{name:"米易县"},{name:"盐边县"},{name:"东区"},{name:"西区"},{name:"其他"}],type:0},{name:"泸州",sub:[{name:"请选择"},{name:"江阳区"},{name:"纳溪区"},{name:"龙马潭区"},{name:"泸县"},{name:"合江县"},{name:"叙永县"},{name:"古蔺县"},{name:"其他"}],type:0},{name:"德阳",sub:[{name:"请选择"},{name:"旌阳区"},{name:"广汉市"},{name:"什邡市"},{name:"绵竹市"},{name:"罗江县"},{name:"中江县"},{name:"其他"}],type:0},{name:"绵阳",sub:[{name:"请选择"},{name:"涪城区"},{name:"游仙区"},{name:"江油市"},{name:"盐亭县"},{name:"三台县"},{name:"平武县"},{name:"安县"},{name:"梓潼县"},{name:"北川羌族自治县"},{name:"其他"}],type:0},{name:"广元",sub:[{name:"请选择"},{name:"元坝区"},{name:"朝天区"},{name:"青川县"},{name:"旺苍县"},{name:"剑阁县"},{name:"苍溪县"},{name:"市中区"},{name:"其他"}],type:0},{name:"遂宁",sub:[{name:"请选择"},{name:"船山区"},{name:"安居区"},{name:"射洪县"},{name:"蓬溪县"},{name:"大英县"},{name:"其他"}],type:0},{name:"内江",sub:[{name:"请选择"},{name:"市中区"},{name:"东兴区"},{name:"资中县"},{name:"隆昌县"},{name:"威远县"},{name:"其他"}],type:0},{name:"乐山",sub:[{name:"请选择"},{name:"市中区"},{name:"五通桥区"},{name:"沙湾区"},{name:"金口河区"},{name:"峨眉山市"},{name:"夹江县"},{name:"井研县"},{name:"犍为县"},{name:"沐川县"},{name:"马边彝族自治县"},{name:"峨边彝族自治县"},{name:"其他"}],type:0},{name:"南充",sub:[{name:"请选择"},{name:"顺庆区"},{name:"高坪区"},{name:"嘉陵区"},{name:"阆中市"},{name:"营山县"},{name:"蓬安县"},{name:"仪陇县"},{name:"南部县"},{name:"西充县"},{name:"其他"}],type:0},{name:"眉山",sub:[{name:"请选择"},{name:"东坡区"},{name:"仁寿县"},{name:"彭山县"},{name:"洪雅县"},{name:"丹棱县"},{name:"青神县"},{name:"其他"}],type:0},{name:"宜宾",sub:[{name:"请选择"},{name:"翠屏区"},{name:"宜宾县"},{name:"兴文县"},{name:"南溪县"},{name:"珙县"},{name:"长宁县"},{name:"高县"},{name:"江安县"},{name:"筠连县"},{name:"屏山县"},{name:"其他"}],type:0},{name:"广安",sub:[{name:"请选择"},{name:"广安区"},{name:"华蓥市"},{name:"岳池县"},{name:"邻水县"},{name:"武胜县"},{name:"其他"}],type:0},{name:"达州",sub:[{name:"请选择"},{name:"通川区"},{name:"万源市"},{name:"达县"},{name:"渠县"},{name:"宣汉县"},{name:"开江县"},{name:"大竹县"},{name:"其他"}],type:0},{name:"雅安",sub:[{name:"请选择"},{name:"雨城区"},{name:"芦山县"},{name:"石棉县"},{name:"名山县"},{name:"天全县"},{name:"荥经县"},{name:"宝兴县"},{name:"汉源县"},{name:"其他"}],type:0},{name:"巴中",sub:[{name:"请选择"},{name:"巴州区"},{name:"南江县"},{name:"平昌县"},{name:"通江县"},{name:"其他"}],type:0},{name:"资阳",sub:[{name:"请选择"},{name:"雁江区"},{name:"简阳市"},{name:"安岳县"},{name:"乐至县"},{name:"其他"}],type:0},{name:"阿坝藏族羌族自治州",sub:[{name:"请选择"},{name:"马尔康县"},{name:"九寨沟县"},{name:"红原县"},{name:"汶川县"},{name:"阿坝县"},{name:"理县"},{name:"若尔盖县"},{name:"小金县"},{name:"黑水县"},{name:"金川县"},{name:"松潘县"},{name:"壤塘县"},{name:"茂县"},{name:"其他"}],type:0},{name:"甘孜藏族自治州",sub:[{name:"请选择"},{name:"康定县"},{name:"丹巴县"},{name:"炉霍县"},{name:"九龙县"},{name:"甘孜县"},{name:"雅江县"},{name:"新龙县"},{name:"道孚县"},{name:"白玉县"},{name:"理塘县"},{name:"德格县"},{name:"乡城县"},{name:"石渠县"},{name:"稻城县"},{name:"色达县"},{name:"巴塘县"},{name:"泸定县"},{name:"得荣县"},{name:"其他"}],type:0},{name:"凉山彝族自治州",sub:[{name:"请选择"},{name:"西昌市"},{name:"美姑县"},{name:"昭觉县"},{name:"金阳县"},{name:"甘洛县"},{name:"布拖县"},{name:"雷波县"},{name:"普格县"},{name:"宁南县"},{name:"喜德县"},{name:"会东县"},{name:"越西县"},{name:"会理县"},{name:"盐源县"},{name:"德昌县"},{name:"冕宁县"},{name:"木里藏族自治县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"陕西",sub:[{name:"请选择",sub:[]},{name:"西安",sub:[{name:"请选择"},{name:"莲湖区"},{name:"新城区"},{name:"碑林区"},{name:"雁塔区"},{name:"灞桥区"},{name:"未央区"},{name:"阎良区"},{name:"临潼区"},{name:"长安区"},{name:"高陵县"},{name:"蓝田县"},{name:"户县"},{name:"周至县"},{name:"其他"}],type:0},{name:"铜川",sub:[{name:"请选择"},{name:"耀州区"},{name:"王益区"},{name:"印台区"},{name:"宜君县"},{name:"其他"}],type:0},{name:"宝鸡",sub:[{name:"请选择"},{name:"渭滨区"},{name:"金台区"},{name:"陈仓区"},{name:"岐山县"},{name:"凤翔县"},{name:"陇县"},{name:"太白县"},{name:"麟游县"},{name:"扶风县"},{name:"千阳县"},{name:"眉县"},{name:"凤县"},{name:"其他"}],type:0},{name:"咸阳",sub:[{name:"请选择"},{name:"秦都区"},{name:"渭城区"},{name:"杨陵区"},{name:"兴平市"},{name:"礼泉县"},{name:"泾阳县"},{name:"永寿县"},{name:"三原县"},{name:"彬县"},{name:"旬邑县"},{name:"长武县"},{name:"乾县"},{name:"武功县"},{name:"淳化县"},{name:"其他"}],type:0},{name:"渭南",sub:[{name:"请选择"},{name:"临渭区"},{name:"韩城市"},{name:"华阴市"},{name:"蒲城县"},{name:"潼关县"},{name:"白水县"},{name:"澄城县"},{name:"华县"},{name:"合阳县"},{name:"富平县"},{name:"大荔县"},{name:"其他"}],type:0},{name:"延安",sub:[{name:"请选择"},{name:"宝塔区"},{name:"安塞县"},{name:"洛川县"},{name:"子长县"},{name:"黄陵县"},{name:"延川县"},{name:"富县"},{name:"延长县"},{name:"甘泉县"},{name:"宜川县"},{name:"志丹县"},{name:"黄龙县"},{name:"吴起县"},{name:"其他"}],type:0},{name:"汉中",sub:[{name:"请选择"},{name:"汉台区"},{name:"留坝县"},{name:"镇巴县"},{name:"城固县"},{name:"南郑县"},{name:"洋县"},{name:"宁强县"},{name:"佛坪县"},{name:"勉县"},{name:"西乡县"},{name:"略阳县"},{name:"其他"}],type:0},{name:"榆林",sub:[{name:"请选择"},{name:"榆阳区"},{name:"清涧县"},{name:"绥德县"},{name:"神木县"},{name:"佳县"},{name:"府谷县"},{name:"子洲县"},{name:"靖边县"},{name:"横山县"},{name:"米脂县"},{name:"吴堡县"},{name:"定边县"},{name:"其他"}],type:0},{name:"安康",sub:[{name:"请选择"},{name:"汉滨区"},{name:"紫阳县"},{name:"岚皋县"},{name:"旬阳县"},{name:"镇坪县"},{name:"平利县"},{name:"石泉县"},{name:"宁陕县"},{name:"白河县"},{name:"汉阴县"},{name:"其他"}],type:0},{name:"商洛",sub:[{name:"请选择"},{name:"商州区"},{name:"镇安县"},{name:"山阳县"},{name:"洛南县"},{name:"商南县"},{name:"丹凤县"},{name:"柞水县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"河北",sub:[{name:"请选择",sub:[]},{name:"石家庄",sub:[{name:"请选择"},{name:"长安区"},{name:"桥东区"},{name:"桥西区"},{name:"新华区"},{name:"裕华区"},{name:"井陉矿区"},{name:"鹿泉市"},{name:"辛集市"},{name:"藁城市"},{name:"晋州市"},{name:"新乐市"},{name:"深泽县"},{name:"无极县"},{name:"赵县"},{name:"灵寿县"},{name:"高邑县"},{name:"元氏县"},{name:"赞皇县"},{name:"平山县"},{name:"井陉县"},{name:"栾城县"},{name:"正定县"},{name:"行唐县"},{name:"其他"}],type:0},{name:"唐山",sub:[{name:"请选择"},{name:"路北区"},{name:"路南区"},{name:"古冶区"},{name:"开平区"},{name:"丰南区"},{name:"丰润区"},{name:"遵化市"},{name:"迁安市"},{name:"迁西县"},{name:"滦南县"},{name:"玉田县"},{name:"唐海县"},{name:"乐亭县"},{name:"滦县"},{name:"其他"}],type:0},{name:"秦皇岛",sub:[{name:"请选择"},{name:"海港区"},{name:"山海关区"},{name:"北戴河区"},{name:"昌黎县"},{name:"抚宁县"},{name:"卢龙县"},{name:"青龙满族自治县"},{name:"其他"}],type:0},{name:"邯郸",sub:[{name:"请选择"},{name:"邯山区"},{name:"丛台区"},{name:"复兴区"},{name:"峰峰矿区"},{name:"武安市"},{name:"邱县"},{name:"大名县"},{name:"魏县"},{name:"曲周县"},{name:"鸡泽县"},{name:"肥乡县"},{name:"广平县"},{name:"成安县"},{name:"临漳县"},{name:"磁县"},{name:"涉县"},{name:"永年县"},{name:"馆陶县"},{name:"邯郸县"},{name:"其他"}],type:0},{name:"邢台",sub:[{name:"请选择"},{name:"桥东区"},{name:"桥西区"},{name:"南宫市"},{name:"沙河市"},{name:"临城县"},{name:"内丘县"},{name:"柏乡县"},{name:"隆尧县"},{name:"任县"},{name:"南和县"},{name:"宁晋县"},{name:"巨鹿县"},{name:"新河县"},{name:"广宗县"},{name:"平乡县"},{name:"威县"},{name:"清河县"},{name:"临西县"},{name:"邢台县"},{name:"其他"}],type:0},{name:"保定",sub:[{name:"请选择"},{name:"新市区"},{name:"北市区"},{name:"南市区"},{name:"定州市"},{name:"涿州市"},{name:"安国市"},{name:"高碑店市"},{name:"易县"},{name:"徐水县"},{name:"涞源县"},{name:"顺平县"},{name:"唐县"},{name:"望都县"},{name:"涞水县"},{name:"高阳县"},{name:"安新县"},{name:"雄县"},{name:"容城县"},{name:"蠡县"},{name:"曲阳县"},{name:"阜平县"},{name:"博野县"},{name:"满城县"},{name:"清苑县"},{name:"定兴县"},{name:"其他"}],type:0},{name:"张家口",sub:[{name:"请选择"},{name:"桥东区"},{name:"桥西区"},{name:"宣化区"},{name:"下花园区"},{name:"张北县"},{name:"康保县"},{name:"沽源县"},{name:"尚义县"},{name:"蔚县"},{name:"阳原县"},{name:"怀安县"},{name:"万全县"},{name:"怀来县"},{name:"赤城县"},{name:"崇礼县"},{name:"宣化县"},{name:"涿鹿县"},{name:"其他"}],type:0},{name:"承德",sub:[{name:"请选择"},{name:"双桥区"},{name:"双滦区"},{name:"鹰手营子矿区"},{name:"兴隆县"},{name:"平泉县"},{name:"滦平县"},{name:"隆化县"},{name:"承德县"},{name:"丰宁满族自治县"},{name:"宽城满族自治县"},{name:"围场满族蒙古族自治县"},{name:"其他"}],type:0},{name:"沧州",sub:[{name:"请选择"},{name:"新华区"},{name:"运河区"},{name:"泊头市"},{name:"任丘市"},{name:"黄骅市"},{name:"河间市"},{name:"献县"},{name:"吴桥县"},{name:"沧县"},{name:"东光县"},{name:"肃宁县"},{name:"南皮县"},{name:"盐山县"},{name:"青县"},{name:"海兴县"},{name:"孟村回族自治县"},{name:"其他"}],type:0},{name:"廊坊",sub:[{name:"请选择"},{name:"安次区"},{name:"广阳区"},{name:"霸州市"},{name:"三河市"},{name:"香河县"},{name:"永清县"},{name:"固安县"},{name:"文安县"},{name:"大城县"},{name:"大厂回族自治县"},{name:"其他"}],type:0},{name:"衡水",sub:[{name:"请选择"},{name:"桃城区"},{name:"冀州市"},{name:"深州市"},{name:"枣强县"},{name:"武邑县"},{name:"武强县"},{name:"饶阳县"},{name:"安平县"},{name:"故城县"},{name:"景县"},{name:"阜城县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"山西",sub:[{name:"请选择",sub:[]},{name:"太原",sub:[{name:"请选择"},{name:"杏花岭区"},{name:"小店区"},{name:"迎泽区"},{name:"尖草坪区"},{name:"万柏林区"},{name:"晋源区"},{name:"古交市"},{name:"阳曲县"},{name:"清徐县"},{name:"娄烦县"},{name:"其他"}],type:0},{name:"大同",sub:[{name:"请选择"},{name:"城区"},{name:"矿区"},{name:"南郊区"},{name:"新荣区"},{name:"大同县"},{name:"天镇县"},{name:"灵丘县"},{name:"阳高县"},{name:"左云县"},{name:"广灵县"},{name:"浑源县"},{name:"其他"}],type:0},{name:"阳泉",sub:[{name:"请选择"},{name:"城区"},{name:"矿区"},{name:"郊区"},{name:"平定县"},{name:"盂县"},{name:"其他"}],type:0},{name:"长治",sub:[{name:"请选择"},{name:"城区"},{name:"郊区"},{name:"潞城市"},{name:"长治县"},{name:"长子县"},{name:"平顺县"},{name:"襄垣县"},{name:"沁源县"},{name:"屯留县"},{name:"黎城县"},{name:"武乡县"},{name:"沁县"},{name:"壶关县"},{name:"其他"}],type:0},{name:"晋城",sub:[{name:"请选择"},{name:"城区"},{name:"高平市"},{name:"泽州县"},{name:"陵川县"},{name:"阳城县"},{name:"沁水县"},{name:"其他"}],type:0},{name:"朔州",sub:[{name:"请选择"},{name:"朔城区"},{name:"平鲁区"},{name:"山阴县"},{name:"右玉县"},{name:"应县"},{name:"怀仁县"},{name:"其他"}],type:0},{name:"晋中",sub:[{name:"请选择"},{name:"榆次区"},{name:"介休市"},{name:"昔阳县"},{name:"灵石县"},{name:"祁县"},{name:"左权县"},{name:"寿阳县"},{name:"太谷县"},{name:"和顺县"},{name:"平遥县"},{name:"榆社县"},{name:"其他"}],type:0},{name:"运城",sub:[{name:"请选择"},{name:"盐湖区"},{name:"河津市"},{name:"永济市"},{name:"闻喜县"},{name:"新绛县"},{name:"平陆县"},{name:"垣曲县"},{name:"绛县"},{name:"稷山县"},{name:"芮城县"},{name:"夏县"},{name:"万荣县"},{name:"临猗县"},{name:"其他"}],type:0},{name:"忻州",sub:[{name:"请选择"},{name:"忻府区"},{name:"原平市"},{name:"代县"},{name:"神池县"},{name:"五寨县"},{name:"五台县"},{name:"偏关县"},{name:"宁武县"},{name:"静乐县"},{name:"繁峙县"},{name:"河曲县"},{name:"保德县"},{name:"定襄县"},{name:"岢岚县"},{name:"其他"}],type:0},{name:"临汾",sub:[{name:"请选择"},{name:"尧都区"},{name:"侯马市"},{name:"霍州市"},{name:"汾西县"},{name:"吉县"},{name:"安泽县"},{name:"大宁县"},{name:"浮山县"},{name:"古县"},{name:"隰县"},{name:"襄汾县"},{name:"翼城县"},{name:"永和县"},{name:"乡宁县"},{name:"曲沃县"},{name:"洪洞县"},{name:"蒲县"},{name:"其他"}],type:0},{name:"吕梁",sub:[{name:"请选择"},{name:"离石区"},{name:"孝义市"},{name:"汾阳市"},{name:"文水县"},{name:"中阳县"},{name:"兴县"},{name:"临县"},{name:"方山县"},{name:"柳林县"},{name:"岚县"},{name:"交口县"},{name:"交城县"},{name:"石楼县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"河南",sub:[{name:"请选择",sub:[]},{name:"郑州",sub:[{name:"请选择"},{name:"中原区"},{name:"金水区"},{name:"二七区"},{name:"管城回族区"},{name:"上街区"},{name:"惠济区"},{name:"巩义市"},{name:"新郑市"},{name:"新密市"},{name:"登封市"},{name:"荥阳市"},{name:"中牟县"},{name:"其他"}],type:0},{name:"开封",sub:[{name:"请选择"},{name:"鼓楼区"},{name:"龙亭区"},{name:"顺河回族区"},{name:"禹王台区"},{name:"金明区"},{name:"开封县"},{name:"尉氏县"},{name:"兰考县"},{name:"杞县"},{name:"通许县"},{name:"其他"}],type:0},{name:"洛阳",sub:[{name:"请选择"},{name:"西工区"},{name:"老城区"},{name:"涧西区"},{name:"瀍河回族区"},{name:"洛龙区"},{name:"吉利区"},{name:"偃师市"},{name:"孟津县"},{name:"汝阳县"},{name:"伊川县"},{name:"洛宁县"},{name:"嵩县"},{name:"宜阳县"},{name:"新安县"},{name:"栾川县"},{name:"其他"}],type:0},{name:"平顶山",sub:[{name:"请选择"},{name:"新华区"},{name:"卫东区"},{name:"湛河区"},{name:"石龙区"},{name:"汝州市"},{name:"舞钢市"},{name:"宝丰县"},{name:"叶县"},{name:"郏县"},{name:"鲁山县"},{name:"其他"}],type:0},{name:"安阳",sub:[{name:"请选择"},{name:"北关区"},{name:"文峰区"},{name:"殷都区"},{name:"龙安区"},{name:"林州市"},{name:"安阳县"},{name:"滑县"},{name:"内黄县"},{name:"汤阴县"},{name:"其他"}],type:0},{name:"鹤壁",sub:[{name:"请选择"},{name:"淇滨区"},{name:"山城区"},{name:"鹤山区"},{name:"浚县"},{name:"淇县"},{name:"其他"}],type:0},{name:"新乡",sub:[{name:"请选择"},{name:"卫滨区"},{name:"红旗区"},{name:"凤泉区"},{name:"牧野区"},{name:"卫辉市"},{name:"辉县市"},{name:"新乡县"},{name:"获嘉县"},{name:"原阳县"},{name:"长垣县"},{name:"封丘县"},{name:"延津县"},{name:"其他"}],type:0},{name:"焦作",sub:[{name:"请选择"},{name:"解放区"},{name:"中站区"},{name:"马村区"},{name:"山阳区"},{name:"沁阳市"},{name:"孟州市"},{name:"修武县"},{name:"温县"},{name:"武陟县"},{name:"博爱县"},{name:"其他"}],type:0},{name:"濮阳",sub:[{name:"请选择"},{name:"华龙区"},{name:"濮阳县"},{name:"南乐县"},{name:"台前县"},{name:"清丰县"},{name:"范县"},{name:"其他"}],type:0},{name:"许昌",sub:[{name:"请选择"},{name:"魏都区"},{name:"禹州市"},{name:"长葛市"},{name:"许昌县"},{name:"鄢陵县"},{name:"襄城县"},{name:"其他"}],type:0},{name:"漯河",sub:[{name:"请选择"},{name:"源汇区"},{name:"郾城区"},{name:"召陵区"},{name:"临颍县"},{name:"舞阳县"},{name:"其他"}],type:0},{name:"三门峡",sub:[{name:"请选择"},{name:"湖滨区"},{name:"义马市"},{name:"灵宝市"},{name:"渑池县"},{name:"卢氏县"},{name:"陕县"},{name:"其他"}],type:0},{name:"南阳",sub:[{name:"请选择"},{name:"卧龙区"},{name:"宛城区"},{name:"邓州市"},{name:"桐柏县"},{name:"方城县"},{name:"淅川县"},{name:"镇平县"},{name:"唐河县"},{name:"南召县"},{name:"内乡县"},{name:"新野县"},{name:"社旗县"},{name:"西峡县"},{name:"其他"}],type:0},{name:"商丘",sub:[{name:"请选择"},{name:"梁园区"},{name:"睢阳区"},{name:"永城市"},{name:"宁陵县"},{name:"虞城县"},{name:"民权县"},{name:"夏邑县"},{name:"柘城县"},{name:"睢县"},{name:"其他"}],type:0},{name:"信阳",sub:[{name:"请选择"},{name:"浉河区"},{name:"平桥区"},{name:"潢川县"},{name:"淮滨县"},{name:"息县"},{name:"新县"},{name:"商城县"},{name:"固始县"},{name:"罗山县"},{name:"光山县"},{name:"其他"}],type:0},{name:"周口",sub:[{name:"请选择"},{name:"川汇区"},{name:"项城市"},{name:"商水县"},{name:"淮阳县"},{name:"太康县"},{name:"鹿邑县"},{name:"西华县"},{name:"扶沟县"},{name:"沈丘县"},{name:"郸城县"},{name:"其他"}],type:0},{name:"驻马店",sub:[{name:"请选择"},{name:"驿城区"},{name:"确山县"},{name:"新蔡县"},{name:"上蔡县"},{name:"西平县"},{name:"泌阳县"},{name:"平舆县"},{name:"汝南县"},{name:"遂平县"},{name:"正阳县"},{name:"其他"}],type:0},{name:"焦作",sub:[{name:"请选择"},{name:"济源市"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"吉林",sub:[{name:"请选择",sub:[]},{name:"长春",sub:[{name:"请选择"},{name:"朝阳区"},{name:"宽城区"},{name:"二道区"},{name:"南关区"},{name:"绿园区"},{name:"双阳区"},{name:"九台市"},{name:"榆树市"},{name:"德惠市"},{name:"农安县"},{name:"其他"}],type:0},{name:"吉林",sub:[{name:"请选择"},{name:"船营区"},{name:"昌邑区"},{name:"龙潭区"},{name:"丰满区"},{name:"舒兰市"},{name:"桦甸市"},{name:"蛟河市"},{name:"磐石市"},{name:"永吉县"},{name:"其他"}],type:0},{name:"四平",sub:[{name:"请选择"},{name:"铁西区"},{name:"铁东区"},{name:"公主岭市"},{name:"双辽市"},{name:"梨树县"},{name:"伊通满族自治县"},{name:"其他"}],type:0},{name:"辽源",sub:[{name:"请选择"},{name:"龙山区"},{name:"西安区"},{name:"东辽县"},{name:"东丰县"},{name:"其他"}],type:0},{name:"通化",sub:[{name:"请选择"},{name:"东昌区"},{name:"二道江区"},{name:"梅河口市"},{name:"集安市"},{name:"通化县"},{name:"辉南县"},{name:"柳河县"},{name:"其他"}],type:0},{name:"白山",sub:[{name:"请选择"},{name:"八道江区"},{name:"江源区"},{name:"临江市"},{name:"靖宇县"},{name:"抚松县"},{name:"长白朝鲜族自治县"},{name:"其他"}],type:0},{name:"松原",sub:[{name:"请选择"},{name:"宁江区"},{name:"乾安县"},{name:"长岭县"},{name:"扶余县"},{name:"前郭尔罗斯蒙古族自治县"},{name:"其他"}],type:0},{name:"白城",sub:[{name:"请选择"},{name:"洮北区"},{name:"大安市"},{name:"洮南市"},{name:"镇赉县"},{name:"通榆县"},{name:"其他"}],type:0},{name:"延边朝鲜族自治州",sub:[{name:"请选择"},{name:"延吉市"},{name:"图们市"},{name:"敦化市"},{name:"龙井市"},{name:"珲春市"},{name:"和龙市"},{name:"安图县"},{name:"汪清县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"黑龙江",sub:[{name:"请选择",sub:[]},{name:"哈尔滨",sub:[{name:"请选择"},{name:"松北区"},{name:"道里区"},{name:"南岗区"},{name:"平房区"},{name:"香坊区"},{name:"道外区"},{name:"呼兰区"},{name:"阿城区"},{name:"双城市"},{name:"尚志市"},{name:"五常市"},{name:"宾县"},{name:"方正县"},{name:"通河县"},{name:"巴彦县"},{name:"延寿县"},{name:"木兰县"},{name:"依兰县"},{name:"其他"}],type:0},{name:"齐齐哈尔",sub:[{name:"请选择"},{name:"龙沙区"},{name:"昂昂溪区"},{name:"铁锋区"},{name:"建华区"},{name:"富拉尔基区"},{name:"碾子山区"},{name:"梅里斯达斡尔族区"},{name:"讷河市"},{name:"富裕县"},{name:"拜泉县"},{name:"甘南县"},{name:"依安县"},{name:"克山县"},{name:"泰来县"},{name:"克东县"},{name:"龙江县"},{name:"其他"}],type:0},{name:"鹤岗",sub:[{name:"请选择"},{name:"兴山区"},{name:"工农区"},{name:"南山区"},{name:"兴安区"},{name:"向阳区"},{name:"东山区"},{name:"萝北县"},{name:"绥滨县"},{name:"其他"}],type:0},{name:"双鸭山",sub:[{name:"请选择"},{name:"尖山区"},{name:"岭东区"},{name:"四方台区"},{name:"宝山区"},{name:"集贤县"},{name:"宝清县"},{name:"友谊县"},{name:"饶河县"},{name:"其他"}],type:0},{name:"鸡西",sub:[{name:"请选择"},{name:"鸡冠区"},{name:"恒山区"},{name:"城子河区"},{name:"滴道区"},{name:"梨树区"},{name:"麻山区"},{name:"密山市"},{name:"虎林市"},{name:"鸡东县"},{name:"其他"}],type:0},{name:"大庆",sub:[{name:"请选择"},{name:"萨尔图区"},{name:"红岗区"},{name:"龙凤区"},{name:"让胡路区"},{name:"大同区"},{name:"林甸县"},{name:"肇州县"},{name:"肇源县"},{name:"杜尔伯特蒙古族自治县"},{name:"其他"}],type:0},{name:"伊春",sub:[{name:"请选择"},{name:"伊春区"},{name:"带岭区"},{name:"南岔区"},{name:"金山屯区"},{name:"西林区"},{name:"美溪区"},{name:"乌马河区"},{name:"翠峦区"},{name:"友好区"},{name:"上甘岭区"},{name:"五营区"},{name:"红星区"},{name:"新青区"},{name:"汤旺河区"},{name:"乌伊岭区"},{name:"铁力市"},{name:"嘉荫县"},{name:"其他"}],type:0},{name:"牡丹江",sub:[{name:"请选择"},{name:"爱民区"},{name:"东安区"},{name:"阳明区"},{name:"西安区"},{name:"绥芬河市"},{name:"宁安市"},{name:"海林市"},{name:"穆棱市"},{name:"林口县"},{name:"东宁县"},{name:"其他"}],type:0},{name:"佳木斯",sub:[{name:"请选择"},{name:"向阳区"},{name:"前进区"},{name:"东风区"},{name:"郊区"},{name:"同江市"},{name:"富锦市"},{name:"桦川县"},{name:"抚远县"},{name:"桦南县"},{name:"汤原县"},{name:"其他"}],type:0},{name:"七台河",sub:[{name:"请选择"},{name:"桃山区"},{name:"新兴区"},{name:"茄子河区"},{name:"勃利县"},{name:"其他"}],type:0},{name:"黑河",sub:[{name:"请选择"},{name:"爱辉区"},{name:"北安市"},{name:"五大连池市"},{name:"逊克县"},{name:"嫩江县"},{name:"孙吴县"},{name:"其他"}],type:0},{name:"绥化",sub:[{name:"请选择"},{name:"北林区"},{name:"安达市"},{name:"肇东市"},{name:"海伦市"},{name:"绥棱县"},{name:"兰西县"},{name:"明水县"},{name:"青冈县"},{name:"庆安县"},{name:"望奎县"},{name:"其他"}],type:0},{name:"大兴安岭地区",sub:[{name:"请选择"},{name:"呼玛县"},{name:"塔河县"},{name:"漠河县"},{name:"大兴安岭辖区"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"内蒙古",sub:[{name:"请选择",sub:[]},{name:"呼和浩特",sub:[{name:"请选择"},{name:"回民区"},{name:"玉泉区"},{name:"新城区"},{name:"赛罕区"},{name:"托克托县"},{name:"清水河县"},{name:"武川县"},{name:"和林格尔县"},{name:"土默特左旗"},{name:"其他"}],type:0},{name:"包头",sub:[{name:"请选择"},{name:"昆都仑区"},{name:"青山区"},{name:"东河区"},{name:"九原区"},{name:"石拐区"},{name:"白云矿区"},{name:"固阳县"},{name:"土默特右旗"},{name:"达尔罕茂明安联合旗"},{name:"其他"}],type:0},{name:"乌海",sub:[{name:"请选择"},{name:"海勃湾区"},{name:"乌达区"},{name:"海南区"},{name:"其他"}],type:0},{name:"赤峰",sub:[{name:"请选择"},{name:"红山区"},{name:"元宝山区"},{name:"松山区"},{name:"宁城县"},{name:"林西县"},{name:"喀喇沁旗"},{name:"巴林左旗"},{name:"敖汉旗"},{name:"阿鲁科尔沁旗"},{name:"翁牛特旗"},{name:"克什克腾旗"},{name:"巴林右旗"},{name:"其他"}],type:0},{name:"通辽",sub:[{name:"请选择"},{name:"科尔沁区"},{name:"霍林郭勒市"},{name:"开鲁县"},{name:"科尔沁左翼中旗"},{name:"科尔沁左翼后旗"},{name:"库伦旗"},{name:"奈曼旗"},{name:"扎鲁特旗"},{name:"其他"}],type:0},{name:"鄂尔多斯",sub:[{name:"请选择"},{name:"东胜区"},{name:"准格尔旗"},{name:"乌审旗"},{name:"伊金霍洛旗"},{name:"鄂托克旗"},{name:"鄂托克前旗"},{name:"杭锦旗"},{name:"达拉特旗"},{name:"其他"}],type:0},{name:"呼伦贝尔",sub:[{name:"请选择"},{name:"海拉尔区"},{name:"满洲里市"},{name:"牙克石市"},{name:"扎兰屯市"},{name:"根河市"},{name:"额尔古纳市"},{name:"陈巴尔虎旗"},{name:"阿荣旗"},{name:"新巴尔虎左旗"},{name:"新巴尔虎右旗"},{name:"鄂伦春自治旗"},{name:"莫力达瓦达斡尔族自治旗"},{name:"鄂温克族自治旗"},{name:"其他"}],type:0},{name:"巴彦淖尔",sub:[{name:"请选择"},{name:"临河区"},{name:"五原县"},{name:"磴口县"},{name:"杭锦后旗"},{name:"乌拉特中旗"},{name:"乌拉特前旗"},{name:"乌拉特后旗"},{name:"其他"}],type:0},{name:"乌兰察布",sub:[{name:"请选择"},{name:"集宁区"},{name:"丰镇市"},{name:"兴和县"},{name:"卓资县"},{name:"商都县"},{name:"凉城县"},{name:"化德县"},{name:"四子王旗"},{name:"察哈尔右翼前旗"},{name:"察哈尔右翼中旗"},{name:"察哈尔右翼后旗"},{name:"其他"}],type:0},{name:"锡林郭勒盟",sub:[{name:"请选择"},{name:"锡林浩特市"},{name:"二连浩特市"},{name:"多伦县"},{name:"阿巴嘎旗"},{name:"西乌珠穆沁旗"},{name:"东乌珠穆沁旗"},{name:"苏尼特左旗"},{name:"苏尼特右旗"},{name:"太仆寺旗"},{name:"正镶白旗"},{name:"正蓝旗"},{name:"镶黄旗"},{name:"其他"}],type:0},{name:"兴安盟",sub:[{name:"请选择"},{name:"乌兰浩特市"},{name:"阿尔山市"},{name:"突泉县"},{name:"扎赉特旗"},{name:"科尔沁右翼前旗"},{name:"科尔沁右翼中旗"},{name:"其他"}],type:0},{name:"阿拉善盟",sub:[{name:"请选择"},{name:"阿拉善左旗"},{name:"阿拉善右旗"},{name:"额济纳旗"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"山东",sub:[{name:"请选择",sub:[]},{name:"济南",sub:[{name:"请选择"},{name:"市中区"},{name:"历下区"},{name:"天桥区"},{name:"槐荫区"},{name:"历城区"},{name:"长清区"},{name:"章丘市"},{name:"平阴县"},{name:"济阳县"},{name:"商河县"},{name:"其他"}],type:0},{name:"青岛",sub:[{name:"请选择"},{name:"市南区"},{name:"市北区"},{name:"城阳区"},{name:"四方区"},{name:"李沧区"},{name:"黄岛区"},{name:"崂山区"},{name:"胶南市"},{name:"胶州市"},{name:"平度市"},{name:"莱西市"},{name:"即墨市"},{name:"其他"}],type:0},{name:"淄博",sub:[{name:"请选择"},{name:"张店区"},{name:"临淄区"},{name:"淄川区"},{name:"博山区"},{name:"周村区"},{name:"桓台县"},{name:"高青县"},{name:"沂源县"},{name:"其他"}],type:0},{name:"枣庄",sub:[{name:"请选择"},{name:"市中区"},{name:"山亭区"},{name:"峄城区"},{name:"台儿庄区"},{name:"薛城区"},{name:"滕州市"},{name:"其他"}],type:0},{name:"东营",sub:[{name:"请选择"},{name:"东营区"},{name:"河口区"},{name:"垦利县"},{name:"广饶县"},{name:"利津县"},{name:"其他"}],type:0},{name:"烟台",sub:[{name:"请选择"},{name:"芝罘区"},{name:"福山区"},{name:"牟平区"},{name:"莱山区"},{name:"龙口市"},{name:"莱阳市"},{name:"莱州市"},{name:"招远市"},{name:"蓬莱市"},{name:"栖霞市"},{name:"海阳市"},{name:"长岛县"},{name:"其他"}],type:0},{name:"潍坊",sub:[{name:"请选择"},{name:"潍城区"},{name:"寒亭区"},{name:"坊子区"},{name:"奎文区"},{name:"青州市"},{name:"诸城市"},{name:"寿光市"},{name:"安丘市"},{name:"高密市"},{name:"昌邑市"},{name:"昌乐县"},{name:"临朐县"},{name:"其他"}],type:0},{name:"济宁",sub:[{name:"请选择"},{name:"市中区"},{name:"任城区"},{name:"曲阜市"},{name:"兖州市"},{name:"邹城市"},{name:"鱼台县"},{name:"金乡县"},{name:"嘉祥县"},{name:"微山县"},{name:"汶上县"},{name:"泗水县"},{name:"梁山县"},{name:"其他"}],type:0},{name:"泰安",sub:[{name:"请选择"},{name:"泰山区"},{name:"岱岳区"},{name:"新泰市"},{name:"肥城市"},{name:"宁阳县"},{name:"东平县"},{name:"其他"}],type:0},{name:"威海",sub:[{name:"请选择"},{name:"环翠区"},{name:"乳山市"},{name:"文登市"},{name:"荣成市"},{name:"其他"}],type:0},{name:"日照",sub:[{name:"请选择"},{name:"东港区"},{name:"岚山区"},{name:"五莲县"},{name:"莒县"},{name:"其他"}],type:0},{name:"莱芜",sub:[{name:"请选择"},{name:"莱城区"},{name:"钢城区"},{name:"其他"}],type:0},{name:"临沂",sub:[{name:"请选择"},{name:"兰山区"},{name:"罗庄区"},{name:"河东区"},{name:"沂南县"},{name:"郯城县"},{name:"沂水县"},{name:"苍山县"},{name:"费县"},{name:"平邑县"},{name:"莒南县"},{name:"蒙阴县"},{name:"临沭县"},{name:"其他"}],type:0},{name:"德州",sub:[{name:"请选择"},{name:"德城区"},{name:"乐陵市"},{name:"禹城市"},{name:"陵县"},{name:"宁津县"},{name:"齐河县"},{name:"武城县"},{name:"庆云县"},{name:"平原县"},{name:"夏津县"},{name:"临邑县"},{name:"其他"}],type:0
},{name:"聊城",sub:[{name:"请选择"},{name:"东昌府区"},{name:"临清市"},{name:"高唐县"},{name:"阳谷县"},{name:"茌平县"},{name:"莘县"},{name:"东阿县"},{name:"冠县"},{name:"其他"}],type:0},{name:"滨州",sub:[{name:"请选择"},{name:"滨城区"},{name:"邹平县"},{name:"沾化县"},{name:"惠民县"},{name:"博兴县"},{name:"阳信县"},{name:"无棣县"},{name:"其他"}],type:0},{name:"菏泽",sub:[{name:"请选择"},{name:"牡丹区"},{name:"鄄城县"},{name:"单县"},{name:"郓城县"},{name:"曹县"},{name:"定陶县"},{name:"巨野县"},{name:"东明县"},{name:"成武县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"安徽",sub:[{name:"请选择",sub:[]},{name:"合肥",sub:[{name:"请选择"},{name:"庐阳区"},{name:"瑶海区"},{name:"蜀山区"},{name:"包河区"},{name:"长丰县"},{name:"肥东县"},{name:"肥西县"},{name:"其他"}],type:0},{name:"芜湖",sub:[{name:"请选择"},{name:"镜湖区"},{name:"弋江区"},{name:"鸠江区"},{name:"三山区"},{name:"芜湖县"},{name:"南陵县"},{name:"繁昌县"},{name:"其他"}],type:0},{name:"蚌埠",sub:[{name:"请选择"},{name:"蚌山区"},{name:"龙子湖区"},{name:"禹会区"},{name:"淮上区"},{name:"怀远县"},{name:"固镇县"},{name:"五河县"},{name:"其他"}],type:0},{name:"淮南",sub:[{name:"请选择"},{name:"田家庵区"},{name:"大通区"},{name:"谢家集区"},{name:"八公山区"},{name:"潘集区"},{name:"凤台县"},{name:"其他"}],type:0},{name:"马鞍山",sub:[{name:"请选择"},{name:"雨山区"},{name:"花山区"},{name:"金家庄区"},{name:"当涂县"},{name:"其他"}],type:0},{name:"淮北",sub:[{name:"请选择"},{name:"相山区"},{name:"杜集区"},{name:"烈山区"},{name:"濉溪县"},{name:"其他"}],type:0},{name:"铜陵",sub:[{name:"请选择"},{name:"铜官山区"},{name:"狮子山区"},{name:"郊区"},{name:"铜陵县"},{name:"其他"}],type:0},{name:"安庆",sub:[{name:"请选择"},{name:"迎江区"},{name:"大观区"},{name:"宜秀区"},{name:"桐城市"},{name:"宿松县"},{name:"枞阳县"},{name:"太湖县"},{name:"怀宁县"},{name:"岳西县"},{name:"望江县"},{name:"潜山县"},{name:"其他"}],type:0},{name:"黄山",sub:[{name:"请选择"},{name:"屯溪区"},{name:"黄山区"},{name:"徽州区"},{name:"休宁县"},{name:"歙县"},{name:"祁门县"},{name:"黟县"},{name:"其他"}],type:0},{name:"滁州",sub:[{name:"请选择"},{name:"琅琊区"},{name:"南谯区"},{name:"天长市"},{name:"明光市"},{name:"全椒县"},{name:"来安县"},{name:"定远县"},{name:"凤阳县"},{name:"其他"}],type:0},{name:"阜阳",sub:[{name:"请选择"},{name:"颍州区"},{name:"颍东区"},{name:"颍泉区"},{name:"界首市"},{name:"临泉县"},{name:"颍上县"},{name:"阜南县"},{name:"太和县"},{name:"其他"}],type:0},{name:"宿州",sub:[{name:"请选择"},{name:"埇桥区"},{name:"萧县"},{name:"泗县"},{name:"砀山县"},{name:"灵璧县"},{name:"其他"}],type:0},{name:"巢湖",sub:[{name:"请选择"},{name:"居巢区"},{name:"含山县"},{name:"无为县"},{name:"庐江县"},{name:"和县"},{name:"其他"}],type:0},{name:"六安",sub:[{name:"请选择"},{name:"金安区"},{name:"裕安区"},{name:"寿县"},{name:"霍山县"},{name:"霍邱县"},{name:"舒城县"},{name:"金寨县"},{name:"其他"}],type:0},{name:"亳州",sub:[{name:"请选择"},{name:"谯城区"},{name:"利辛县"},{name:"涡阳县"},{name:"蒙城县"},{name:"其他"}],type:0},{name:"池州",sub:[{name:"请选择"},{name:"贵池区"},{name:"东至县"},{name:"石台县"},{name:"青阳县"},{name:"其他"}],type:0},{name:"宣城",sub:[{name:"请选择"},{name:"宣州区"},{name:"宁国市"},{name:"广德县"},{name:"郎溪县"},{name:"泾县"},{name:"旌德县"},{name:"绩溪县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"浙江",sub:[{name:"请选择",sub:[]},{name:"杭州",sub:[{name:"请选择"},{name:"拱墅区"},{name:"西湖区"},{name:"上城区"},{name:"下城区"},{name:"江干区"},{name:"滨江区"},{name:"余杭区"},{name:"萧山区"},{name:"建德市"},{name:"富阳市"},{name:"临安市"},{name:"桐庐县"},{name:"淳安县"},{name:"其他"}],type:0},{name:"宁波",sub:[{name:"请选择"},{name:"海曙区"},{name:"江东区"},{name:"江北区"},{name:"镇海区"},{name:"北仑区"},{name:"鄞州区"},{name:"余姚市"},{name:"慈溪市"},{name:"奉化市"},{name:"宁海县"},{name:"象山县"},{name:"其他"}],type:0},{name:"温州",sub:[{name:"请选择"},{name:"鹿城区"},{name:"龙湾区"},{name:"瓯海区"},{name:"瑞安市"},{name:"乐清市"},{name:"永嘉县"},{name:"洞头县"},{name:"平阳县"},{name:"苍南县"},{name:"文成县"},{name:"泰顺县"},{name:"其他"}],type:0},{name:"嘉兴",sub:[{name:"请选择"},{name:"秀城区"},{name:"秀洲区"},{name:"海宁市"},{name:"平湖市"},{name:"桐乡市"},{name:"嘉善县"},{name:"海盐县"},{name:"其他"}],type:0},{name:"湖州",sub:[{name:"请选择"},{name:"吴兴区"},{name:"南浔区"},{name:"长兴县"},{name:"德清县"},{name:"安吉县"},{name:"其他"}],type:0},{name:"绍兴",sub:[{name:"请选择"},{name:"越城区"},{name:"诸暨市"},{name:"上虞市"},{name:"嵊州市"},{name:"绍兴县"},{name:"新昌县"},{name:"其他"}],type:0},{name:"金华",sub:[{name:"请选择"},{name:"婺城区"},{name:"金东区"},{name:"兰溪市"},{name:"义乌市"},{name:"东阳市"},{name:"永康市"},{name:"武义县"},{name:"浦江县"},{name:"磐安县"},{name:"其他"}],type:0},{name:"衢州",sub:[{name:"请选择"},{name:"柯城区"},{name:"衢江区"},{name:"江山市"},{name:"龙游县"},{name:"常山县"},{name:"开化县"},{name:"其他"}],type:0},{name:"舟山",sub:[{name:"请选择"},{name:"定海区"},{name:"普陀区"},{name:"岱山县"},{name:"嵊泗县"},{name:"其他"}],type:0},{name:"台州",sub:[{name:"请选择"},{name:"椒江区"},{name:"黄岩区"},{name:"路桥区"},{name:"临海市"},{name:"温岭市"},{name:"玉环县"},{name:"天台县"},{name:"仙居县"},{name:"三门县"},{name:"其他"}],type:0},{name:"丽水",sub:[{name:"请选择"},{name:"莲都区"},{name:"龙泉市"},{name:"缙云县"},{name:"青田县"},{name:"云和县"},{name:"遂昌县"},{name:"松阳县"},{name:"庆元县"},{name:"景宁畲族自治县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"福建",sub:[{name:"请选择",sub:[]},{name:"福州",sub:[{name:"请选择"},{name:"鼓楼区"},{name:"台江区"},{name:"仓山区"},{name:"马尾区"},{name:"晋安区"},{name:"福清市"},{name:"长乐市"},{name:"闽侯县"},{name:"闽清县"},{name:"永泰县"},{name:"连江县"},{name:"罗源县"},{name:"平潭县"},{name:"其他"}],type:0},{name:"厦门",sub:[{name:"请选择"},{name:"思明区"},{name:"海沧区"},{name:"湖里区"},{name:"集美区"},{name:"同安区"},{name:"翔安区"},{name:"其他"}],type:0},{name:"莆田",sub:[{name:"请选择"},{name:"城厢区"},{name:"涵江区"},{name:"荔城区"},{name:"秀屿区"},{name:"仙游县"},{name:"其他"}],type:0},{name:"三明",sub:[{name:"请选择"},{name:"梅列区"},{name:"三元区"},{name:"永安市"},{name:"明溪县"},{name:"将乐县"},{name:"大田县"},{name:"宁化县"},{name:"建宁县"},{name:"沙县"},{name:"尤溪县"},{name:"清流县"},{name:"泰宁县"},{name:"其他"}],type:0},{name:"泉州",sub:[{name:"请选择"},{name:"鲤城区"},{name:"丰泽区"},{name:"洛江区"},{name:"泉港区"},{name:"石狮市"},{name:"晋江市"},{name:"南安市"},{name:"惠安县"},{name:"永春县"},{name:"安溪县"},{name:"德化县"},{name:"金门县"},{name:"其他"}],type:0},{name:"漳州",sub:[{name:"请选择"},{name:"芗城区"},{name:"龙文区"},{name:"龙海市"},{name:"平和县"},{name:"南靖县"},{name:"诏安县"},{name:"漳浦县"},{name:"华安县"},{name:"东山县"},{name:"长泰县"},{name:"云霄县"},{name:"其他"}],type:0},{name:"南平",sub:[{name:"请选择"},{name:"延平区"},{name:"建瓯市"},{name:"邵武市"},{name:"武夷山市"},{name:"建阳市"},{name:"松溪县"},{name:"光泽县"},{name:"顺昌县"},{name:"浦城县"},{name:"政和县"},{name:"其他"}],type:0},{name:"龙岩",sub:[{name:"请选择"},{name:"新罗区"},{name:"漳平市"},{name:"长汀县"},{name:"武平县"},{name:"上杭县"},{name:"永定县"},{name:"连城县"},{name:"其他"}],type:0},{name:"宁德",sub:[{name:"请选择"},{name:"蕉城区"},{name:"福安市"},{name:"福鼎市"},{name:"寿宁县"},{name:"霞浦县"},{name:"柘荣县"},{name:"屏南县"},{name:"古田县"},{name:"周宁县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"湖南",sub:[{name:"请选择",sub:[]},{name:"长沙",sub:[{name:"请选择"},{name:"岳麓区"},{name:"芙蓉区"},{name:"天心区"},{name:"开福区"},{name:"雨花区"},{name:"浏阳市"},{name:"长沙县"},{name:"望城县"},{name:"宁乡县"},{name:"其他"}],type:0},{name:"株洲",sub:[{name:"请选择"},{name:"天元区"},{name:"荷塘区"},{name:"芦淞区"},{name:"石峰区"},{name:"醴陵市"},{name:"株洲县"},{name:"炎陵县"},{name:"茶陵县"},{name:"攸县"},{name:"其他"}],type:0},{name:"湘潭",sub:[{name:"请选择"},{name:"岳塘区"},{name:"雨湖区"},{name:"湘乡市"},{name:"韶山市"},{name:"湘潭县"},{name:"其他"}],type:0},{name:"衡阳",sub:[{name:"请选择"},{name:"雁峰区"},{name:"珠晖区"},{name:"石鼓区"},{name:"蒸湘区"},{name:"南岳区"},{name:"耒阳市"},{name:"常宁市"},{name:"衡阳县"},{name:"衡东县"},{name:"衡山县"},{name:"衡南县"},{name:"祁东县"},{name:"其他"}],type:0},{name:"邵阳",sub:[{name:"请选择"},{name:"双清区"},{name:"大祥区"},{name:"北塔区"},{name:"武冈市"},{name:"邵东县"},{name:"洞口县"},{name:"新邵县"},{name:"绥宁县"},{name:"新宁县"},{name:"邵阳县"},{name:"隆回县"},{name:"城步苗族自治县"},{name:"其他"}],type:0},{name:"岳阳",sub:[{name:"请选择"},{name:"岳阳楼区"},{name:"云溪区"},{name:"君山区"},{name:"临湘市"},{name:"汨罗市"},{name:"岳阳县"},{name:"湘阴县"},{name:"平江县"},{name:"华容县"},{name:"其他"}],type:0},{name:"常德",sub:[{name:"请选择"},{name:"武陵区"},{name:"鼎城区"},{name:"津市市"},{name:"澧县"},{name:"临澧县"},{name:"桃源县"},{name:"汉寿县"},{name:"安乡县"},{name:"石门县"},{name:"其他"}],type:0},{name:"张家界",sub:[{name:"请选择"},{name:"永定区"},{name:"武陵源区"},{name:"慈利县"},{name:"桑植县"},{name:"其他"}],type:0},{name:"益阳",sub:[{name:"请选择"},{name:"赫山区"},{name:"资阳区"},{name:"沅江市"},{name:"桃江县"},{name:"南县"},{name:"安化县"},{name:"其他"}],type:0},{name:"郴州",sub:[{name:"请选择"},{name:"北湖区"},{name:"苏仙区"},{name:"资兴市"},{name:"宜章县"},{name:"汝城县"},{name:"安仁县"},{name:"嘉禾县"},{name:"临武县"},{name:"桂东县"},{name:"永兴县"},{name:"桂阳县"},{name:"其他"}],type:0},{name:"永州",sub:[{name:"请选择"},{name:"冷水滩区"},{name:"零陵区"},{name:"祁阳县"},{name:"蓝山县"},{name:"宁远县"},{name:"新田县"},{name:"东安县"},{name:"江永县"},{name:"道县"},{name:"双牌县"},{name:"江华瑶族自治县"},{name:"其他"}],type:0},{name:"怀化",sub:[{name:"请选择"},{name:"鹤城区"},{name:"洪江市"},{name:"会同县"},{name:"沅陵县"},{name:"辰溪县"},{name:"溆浦县"},{name:"中方县"},{name:"新晃侗族自治县"},{name:"芷江侗族自治县"},{name:"通道侗族自治县"},{name:"靖州苗族侗族自治县"},{name:"麻阳苗族自治县"},{name:"其他"}],type:0},{name:"娄底",sub:[{name:"请选择"},{name:"娄星区"},{name:"冷水江市"},{name:"涟源市"},{name:"新化县"},{name:"双峰县"},{name:"其他"}],type:0},{name:"湘西土家族苗族自治州",sub:[{name:"请选择"},{name:"吉首市"},{name:"古丈县"},{name:"龙山县"},{name:"永顺县"},{name:"凤凰县"},{name:"泸溪县"},{name:"保靖县"},{name:"花垣县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"广西",sub:[{name:"请选择",sub:[]},{name:"南宁",sub:[{name:"请选择"},{name:"青秀区"},{name:"兴宁区"},{name:"西乡塘区"},{name:"良庆区"},{name:"江南区"},{name:"邕宁区"},{name:"武鸣县"},{name:"隆安县"},{name:"马山县"},{name:"上林县"},{name:"宾阳县"},{name:"横县"},{name:"其他"}],type:0},{name:"柳州",sub:[{name:"请选择"},{name:"城中区"},{name:"鱼峰区"},{name:"柳北区"},{name:"柳南区"},{name:"柳江县"},{name:"柳城县"},{name:"鹿寨县"},{name:"融安县"},{name:"融水苗族自治县"},{name:"三江侗族自治县"},{name:"其他"}],type:0},{name:"桂林",sub:[{name:"请选择"},{name:"象山区"},{name:"秀峰区"},{name:"叠彩区"},{name:"七星区"},{name:"雁山区"},{name:"阳朔县"},{name:"临桂县"},{name:"灵川县"},{name:"全州县"},{name:"平乐县"},{name:"兴安县"},{name:"灌阳县"},{name:"荔浦县"},{name:"资源县"},{name:"永福县"},{name:"龙胜各族自治县"},{name:"恭城瑶族自治县"},{name:"其他"}],type:0},{name:"梧州",sub:[{name:"请选择"},{name:"万秀区"},{name:"蝶山区"},{name:"长洲区"},{name:"岑溪市"},{name:"苍梧县"},{name:"藤县"},{name:"蒙山县"},{name:"其他"}],type:0},{name:"北海",sub:[{name:"请选择"},{name:"海城区"},{name:"银海区"},{name:"铁山港区"},{name:"合浦县"},{name:"其他"}],type:0},{name:"防城港",sub:[{name:"请选择"},{name:"港口区"},{name:"防城区"},{name:"东兴市"},{name:"上思县"},{name:"其他"}],type:0},{name:"钦州",sub:[{name:"请选择"},{name:"钦南区"},{name:"钦北区"},{name:"灵山县"},{name:"浦北县"},{name:"其他"}],type:0},{name:"贵港",sub:[{name:"请选择"},{name:"港北区"},{name:"港南区"},{name:"覃塘区"},{name:"桂平市"},{name:"平南县"},{name:"其他"}],type:0},{name:"玉林",sub:[{name:"请选择"},{name:"玉州区"},{name:"北流市"},{name:"容县"},{name:"陆川县"},{name:"博白县"},{name:"兴业县"},{name:"其他"}],type:0},{name:"百色",sub:[{name:"请选择"},{name:"右江区"},{name:"凌云县"},{name:"平果县"},{name:"西林县"},{name:"乐业县"},{name:"德保县"},{name:"田林县"},{name:"田阳县"},{name:"靖西县"},{name:"田东县"},{name:"那坡县"},{name:"隆林各族自治县"},{name:"其他"}],type:0},{name:"贺州",sub:[{name:"请选择"},{name:"八步区"},{name:"钟山县"},{name:"昭平县"},{name:"富川瑶族自治县"},{name:"其他"}],type:0},{name:"河池",sub:[{name:"请选择"},{name:"金城江区"},{name:"宜州市"},{name:"天峨县"},{name:"凤山县"},{name:"南丹县"},{name:"东兰县"},{name:"都安瑶族自治县"},{name:"罗城仫佬族自治县"},{name:"巴马瑶族自治县"},{name:"环江毛南族自治县"},{name:"大化瑶族自治县"},{name:"其他"}],type:0},{name:"来宾",sub:[{name:"请选择"},{name:"兴宾区"},{name:"合山市"},{name:"象州县"},{name:"武宣县"},{name:"忻城县"},{name:"金秀瑶族自治县"},{name:"其他"}],type:0},{name:"崇左",sub:[{name:"请选择"},{name:"江州区"},{name:"凭祥市"},{name:"宁明县"},{name:"扶绥县"},{name:"龙州县"},{name:"大新县"},{name:"天等县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"江西",sub:[{name:"请选择",sub:[]},{name:"南昌",sub:[{name:"请选择"},{name:"东湖区"},{name:"西湖区"},{name:"青云谱区"},{name:"湾里区"},{name:"青山湖区"},{name:"新建县"},{name:"南昌县"},{name:"进贤县"},{name:"安义县"},{name:"其他"}],type:0},{name:"景德镇",sub:[{name:"请选择"},{name:"珠山区"},{name:"昌江区"},{name:"乐平市"},{name:"浮梁县"},{name:"其他"}],type:0},{name:"萍乡",sub:[{name:"请选择"},{name:"安源区"},{name:"湘东区"},{name:"莲花县"},{name:"上栗县"},{name:"芦溪县"},{name:"其他"}],type:0},{name:"九江",sub:[{name:"请选择"},{name:"浔阳区"},{name:"庐山区"},{name:"瑞昌市"},{name:"九江县"},{name:"星子县"},{name:"武宁县"},{name:"彭泽县"},{name:"永修县"},{name:"修水县"},{name:"湖口县"},{name:"德安县"},{name:"都昌县"},{name:"其他"}],type:0},{name:"新余",sub:[{name:"请选择"},{name:"渝水区"},{name:"分宜县"},{name:"其他"}],type:0},{name:"鹰潭",sub:[{name:"请选择"},{name:"月湖区"},{name:"贵溪市"},{name:"余江县"},{name:"其他"}],type:0},{name:"赣州",sub:[{name:"请选择"},{name:"章贡区"},{name:"瑞金市"},{name:"南康市"},{name:"石城县"},{name:"安远县"},{name:"赣县"},{name:"宁都县"},{name:"寻乌县"},{name:"兴国县"},{name:"定南县"},{name:"上犹县"},{name:"于都县"},{name:"龙南县"},{name:"崇义县"},{name:"信丰县"},{name:"全南县"},{name:"大余县"},{name:"会昌县"},{name:"其他"}],type:0},{name:"吉安",sub:[{name:"请选择"},{name:"吉州区"},{name:"青原区"},{name:"井冈山市"},{name:"吉安县"},{name:"永丰县"},{name:"永新县"},{name:"新干县"},{name:"泰和县"},{name:"峡江县"},{name:"遂川县"},{name:"安福县"},{name:"吉水县"},{name:"万安县"},{name:"其他"}],type:0},{name:"宜春",sub:[{name:"请选择"},{name:"袁州区"},{name:"丰城市"},{name:"樟树市"},{name:"高安市"},{name:"铜鼓县"},{name:"靖安县"},{name:"宜丰县"},{name:"奉新县"},{name:"万载县"},{name:"上高县"},{name:"其他"}],type:0},{name:"抚州",sub:[{name:"请选择"},{name:"临川区"},{name:"南丰县"},{name:"乐安县"},{name:"金溪县"},{name:"南城县"},{name:"东乡县"},{name:"资溪县"},{name:"宜黄县"},{name:"广昌县"},{name:"黎川县"},{name:"崇仁县"},{name:"其他"}],type:0},{name:"上饶",sub:[{name:"请选择"},{name:"信州区"},{name:"德兴市"},{name:"上饶县"},{name:"广丰县"},{name:"鄱阳县"},{name:"婺源县"},{name:"铅山县"},{name:"余干县"},{name:"横峰县"},{name:"弋阳县"},{name:"玉山县"},{name:"万年县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"贵州",sub:[{name:"请选择",sub:[]},{name:"贵阳",sub:[{name:"请选择"},{name:"南明区"},{name:"云岩区"},{name:"花溪区"},{name:"乌当区"},{name:"白云区"},{name:"小河区"},{name:"清镇市"},{name:"开阳县"},{name:"修文县"},{name:"息烽县"},{name:"其他"}],type:0},{name:"六盘水",sub:[{name:"请选择"},{name:"钟山区"},{name:"水城县"},{name:"盘县"},{name:"六枝特区"},{name:"其他"}],type:0},{name:"遵义",sub:[{name:"请选择"},{name:"红花岗区"},{name:"汇川区"},{name:"赤水市"},{name:"仁怀市"},{name:"遵义县"},{name:"绥阳县"},{name:"桐梓县"},{name:"习水县"},{name:"凤冈县"},{name:"正安县"},{name:"余庆县"},{name:"湄潭县"},{name:"道真仡佬族苗族自治县"},{name:"务川仡佬族苗族自治县"},{name:"其他"}],type:0},{name:"安顺",sub:[{name:"请选择"},{name:"西秀区"},{name:"普定县"},{name:"平坝县"},{name:"镇宁布依族苗族自治县"},{name:"紫云苗族布依族自治县"},{name:"关岭布依族苗族自治县"},{name:"其他"}],type:0},{name:"铜仁地区",sub:[{name:"请选择"},{name:"铜仁市"},{name:"德江县"},{name:"江口县"},{name:"思南县"},{name:"石阡县"},{name:"玉屏侗族自治县"},{name:"松桃苗族自治县"},{name:"印江土家族苗族自治县"},{name:"沿河土家族自治县"},{name:"万山特区"},{name:"其他"}],type:0},{name:"毕节地区",sub:[{name:"请选择"},{name:"毕节市"},{name:"黔西县"},{name:"大方县"},{name:"织金县"},{name:"金沙县"},{name:"赫章县"},{name:"纳雍县"},{name:"威宁彝族回族苗族自治县"},{name:"其他"}],type:0},{name:"黔西南布依族苗族自治州",sub:[{name:"请选择"},{name:"兴义市"},{name:"望谟县"},{name:"兴仁县"},{name:"普安县"},{name:"册亨县"},{name:"晴隆县"},{name:"贞丰县"},{name:"安龙县"},{name:"其他"}],type:0},{name:"黔东南苗族侗族自治州",sub:[{name:"请选择"},{name:"凯里市"},{name:"施秉县"},{name:"从江县"},{name:"锦屏县"},{name:"镇远县"},{name:"麻江县"},{name:"台江县"},{name:"天柱县"},{name:"黄平县"},{name:"榕江县"},{name:"剑河县"},{name:"三穗县"},{name:"雷山县"},{name:"黎平县"},{name:"岑巩县"},{name:"丹寨县"},{name:"其他"}],type:0},{name:"黔南布依族苗族自治州",sub:[{name:"请选择"},{name:"都匀市"},{name:"福泉市"},{name:"贵定县"},{name:"惠水县"},{name:"罗甸县"},{name:"瓮安县"},{name:"荔波县"},{name:"龙里县"},{name:"平塘县"},{name:"长顺县"},{name:"独山县"},{name:"三都水族自治县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"云南",sub:[{name:"请选择",sub:[]},{name:"昆明",sub:[{name:"请选择"},{name:"盘龙区"},{name:"五华区"},{name:"官渡区"},{name:"西山区"},{name:"东川区"},{name:"安宁市"},{name:"呈贡县"},{name:"晋宁县"},{name:"富民县"},{name:"宜良县"},{name:"嵩明县"},{name:"石林彝族自治县"},{name:"禄劝彝族苗族自治县"},{name:"寻甸回族彝族自治县"},{name:"其他"}],type:0},{name:"曲靖",sub:[{name:"请选择"},{name:"麒麟区"},{name:"宣威市"},{name:"马龙县"},{name:"沾益县"},{name:"富源县"},{name:"罗平县"},{name:"师宗县"},{name:"陆良县"},{name:"会泽县"},{name:"其他"}],type:0},{name:"玉溪",sub:[{name:"请选择"},{name:"红塔区"},{name:"江川县"},{name:"澄江县"},{name:"通海县"},{name:"华宁县"},{name:"易门县"},{name:"峨山彝族自治县"},{name:"新平彝族傣族自治县"},{name:"元江哈尼族彝族傣族自治县"},{name:"其他"}],type:0},{name:"保山",sub:[{name:"请选择"},{name:"隆阳区"},{name:"施甸县"},{name:"腾冲县"},{name:"龙陵县"},{name:"昌宁县"},{name:"其他"}],type:0},{name:"昭通",sub:[{name:"请选择"},{name:"昭阳区"},{name:"鲁甸县"},{name:"巧家县"},{name:"盐津县"},{name:"大关县"},{name:"永善县"},{name:"绥江县"},{name:"镇雄县"},{name:"彝良县"},{name:"威信县"},{name:"水富县"},{name:"其他"}],type:0},{name:"丽江",sub:[{name:"请选择"},{name:"古城区"},{name:"永胜县"},{name:"华坪县"},{name:"玉龙纳西族自治县"},{name:"宁蒗彝族自治县"},{name:"其他"}],type:0},{name:"普洱",sub:[{name:"请选择"},{name:"思茅区"},{name:"普洱哈尼族彝族自治县"},{name:"墨江哈尼族自治县"},{name:"景东彝族自治县"},{name:"景谷傣族彝族自治县"},{name:"镇沅彝族哈尼族拉祜族自治县"},{name:"江城哈尼族彝族自治县"},{name:"孟连傣族拉祜族佤族自治县"},{name:"澜沧拉祜族自治县"},{name:"西盟佤族自治县"},{name:"其他"}],type:0},{name:"临沧",sub:[{name:"请选择"},{name:"临翔区"},{name:"凤庆县"},{name:"云县"},{name:"永德县"},{name:"镇康县"},{name:"双江拉祜族佤族布朗族傣族自治县"},{name:"耿马傣族佤族自治县"},{name:"沧源佤族自治县"},{name:"其他"}],type:0},{name:"德宏傣族景颇族自治州",sub:[{name:"请选择"},{name:"潞西市"},{name:"瑞丽市"},{name:"梁河县"},{name:"盈江县"},{name:"陇川县"},{name:"其他"}],type:0},{name:"怒江傈僳族自治州",sub:[{name:"请选择"},{name:"泸水县"},{name:"福贡县"},{name:"贡山独龙族怒族自治县"},{name:"兰坪白族普米族自治县"},{name:"其他"}],type:0},{name:"迪庆藏族自治州",sub:[{name:"请选择"},{name:"香格里拉县"},{name:"德钦县"},{name:"维西傈僳族自治县"},{name:"其他"}],type:0},{name:"大理白族自治州",sub:[{name:"请选择"},{name:"大理市"},{name:"祥云县"},{name:"宾川县"},{name:"弥渡县"},{name:"永平县"},{name:"云龙县"},{name:"洱源县"},{name:"剑川县"},{name:"鹤庆县"},{name:"漾濞彝族自治县"},{name:"南涧彝族自治县"},{name:"巍山彝族回族自治县"},{name:"其他"}],type:0},{name:"楚雄彝族自治州",sub:[{name:"请选择"},{name:"楚雄市"},{name:"双柏县"},{name:"牟定县"},{name:"南华县"},{name:"姚安县"},{name:"大姚县"},{name:"永仁县"},{name:"元谋县"},{name:"武定县"},{name:"禄丰县"},{name:"其他"}],type:0},{name:"红河哈尼族彝族自治州",sub:[{name:"请选择"},{name:"蒙自县"},{name:"个旧市"},{name:"开远市"},{name:"绿春县"},{name:"建水县"},{name:"石屏县"},{name:"弥勒县"},{name:"泸西县"},{name:"元阳县"},{name:"红河县"},{name:"金平苗族瑶族傣族自治县"},{name:"河口瑶族自治县"},{name:"屏边苗族自治县"},{name:"其他"}],type:0},{name:"文山壮族苗族自治州",sub:[{name:"请选择"},{name:"文山县"},{name:"砚山县"},{name:"西畴县"},{name:"麻栗坡县"},{name:"马关县"},{name:"丘北县"},{name:"广南县"},{name:"富宁县"},{name:"其他"}],type:0},{name:"西双版纳傣族自治州",sub:[{name:"请选择"},{name:"景洪市"},{name:"勐海县"},{name:"勐腊县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"西藏",sub:[{name:"请选择",sub:[]},{name:"拉萨",sub:[{name:"请选择"},{name:"城关区"},{name:"林周县"},{name:"当雄县"},{name:"尼木县"},{name:"曲水县"},{name:"堆龙德庆县"},{name:"达孜县"},{name:"墨竹工卡县"},{name:"其他"}],type:0},{name:"那曲地区",sub:[{name:"请选择"},{name:"那曲县"},{name:"嘉黎县"},{name:"比如县"},{name:"聂荣县"},{name:"安多县"},{name:"申扎县"},{name:"索县"},{name:"班戈县"},{name:"巴青县"},{name:"尼玛县"},{name:"其他"}],type:0},{name:"昌都地区",sub:[{name:"请选择"},{name:"昌都县"},{name:"江达县"},{name:"贡觉县"},{name:"类乌齐县"},{name:"丁青县"},{name:"察雅县"},{name:"八宿县"},{name:"左贡县"},{name:"芒康县"},{name:"洛隆县"},{name:"边坝县"},{name:"其他"}],type:0},{name:"林芝地区",sub:[{name:"请选择"},{name:"林芝县"},{name:"工布江达县"},{name:"米林县"},{name:"墨脱县"},{name:"波密县"},{name:"察隅县"},{name:"朗县"},{name:"其他"}],type:0},{name:"山南地区",sub:[{name:"请选择"},{name:"乃东县"},{name:"扎囊县"},{name:"贡嘎县"},{name:"桑日县"},{name:"琼结县"},{name:"曲松县"},{name:"措美县"},{name:"洛扎县"},{name:"加查县"},{name:"隆子县"},{name:"错那县"},{name:"浪卡子县"},{name:"其他"}],type:0},{name:"日喀则地区",sub:[{name:"请选择"},{name:"日喀则市"},{name:"南木林县"},{name:"江孜县"},{name:"定日县"},{name:"萨迦县"},{name:"拉孜县"},{name:"昂仁县"},{name:"谢通门县"},{name:"白朗县"},{name:"仁布县"},{name:"康马县"},{name:"定结县"},{name:"仲巴县"},{name:"亚东县"},{name:"吉隆县"},{name:"聂拉木县"},{name:"萨嘎县"},{name:"岗巴县"},{name:"其他"}],type:0},{name:"阿里地区",sub:[{name:"请选择"},{name:"噶尔县"},{name:"普兰县"},{name:"札达县"},{name:"日土县"},{name:"革吉县"},{name:"改则县"},{name:"措勤县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"海南",sub:[{name:"请选择",sub:[]},{name:"海口",sub:[{name:"请选择"},{name:"龙华区"},{name:"秀英区"},{name:"琼山区"},{name:"美兰区"},{name:"其他"}],type:0},{name:"三亚",sub:[{name:"请选择"},{name:"三亚市"},{name:"其他"}],type:0},{name:"五指山",sub:[],type:0},{name:"琼海",sub:[],type:0},{name:"儋州",sub:[],type:0},{name:"文昌",sub:[],type:0},{name:"万宁",sub:[],type:0},{name:"东方",sub:[],type:0},{name:"澄迈县",sub:[],type:0},{name:"定安县",sub:[],type:0},{name:"屯昌县",sub:[],type:0},{name:"临高县",sub:[],type:0},{name:"白沙黎族自治县",sub:[],type:0},{name:"昌江黎族自治县",sub:[],type:0},{name:"乐东黎族自治县",sub:[],type:0},{name:"陵水黎族自治县",sub:[],type:0},{name:"保亭黎族苗族自治县",sub:[],type:0},{name:"琼中黎族苗族自治县",sub:[],type:0},{name:"其他"}],type:1},{name:"甘肃",sub:[{name:"请选择",sub:[]},{name:"兰州",sub:[{name:"请选择"},{name:"城关区"},{name:"七里河区"},{name:"西固区"},{name:"安宁区"},{name:"红古区"},{name:"永登县"},{name:"皋兰县"},{name:"榆中县"},{name:"其他"}],type:0},{name:"嘉峪关",sub:[{name:"请选择"},{name:"嘉峪关市"},{name:"其他"}],type:0},{name:"金昌",sub:[{name:"请选择"},{name:"金川区"},{name:"永昌县"},{name:"其他"}],type:0},{name:"白银",sub:[{name:"请选择"},{name:"白银区"},{name:"平川区"},{name:"靖远县"},{name:"会宁县"},{name:"景泰县"},{name:"其他"}],type:0},{name:"天水",sub:[{name:"请选择"},{name:"清水县"},{name:"秦安县"},{name:"甘谷县"},{name:"武山县"},{name:"张家川回族自治县"},{name:"北道区"},{name:"秦城区"},{name:"其他"}],type:0},{name:"武威",sub:[{name:"请选择"},{name:"凉州区"},{name:"民勤县"},{name:"古浪县"},{name:"天祝藏族自治县"},{name:"其他"}],type:0},{name:"酒泉",sub:[{name:"请选择"},{name:"肃州区"},{name:"玉门市"},{name:"敦煌市"},{name:"金塔县"},{name:"肃北蒙古族自治县"},{name:"阿克塞哈萨克族自治县"},{name:"安西县"},{name:"其他"}],type:0},{name:"张掖",sub:[{name:"请选择"},{name:"甘州区"},{name:"民乐县"},{name:"临泽县"},{name:"高台县"},{name:"山丹县"},{name:"肃南裕固族自治县"},{name:"其他"}],type:0},{name:"庆阳",sub:[{name:"请选择"},{name:"西峰区"},{name:"庆城县"},{name:"环县"},{name:"华池县"},{name:"合水县"},{name:"正宁县"},{name:"宁县"},{name:"镇原县"},{name:"其他"}],type:0},{name:"平凉",sub:[{name:"请选择"},{name:"崆峒区"},{name:"泾川县"},{name:"灵台县"},{name:"崇信县"},{name:"华亭县"},{name:"庄浪县"},{name:"静宁县"},{name:"其他"}],type:0},{name:"定西",sub:[{name:"请选择"},{name:"安定区"},{name:"通渭县"},{name:"临洮县"},{name:"漳县"},{name:"岷县"},{name:"渭源县"},{name:"陇西县"},{name:"其他"}],type:0},{name:"陇南",sub:[{name:"请选择"},{name:"武都区"},{name:"成县"},{name:"宕昌县"},{name:"康县"},{name:"文县"},{name:"西和县"},{name:"礼县"},{name:"两当县"},{name:"徽县"},{name:"其他"}],type:0},{name:"临夏回族自治州",sub:[{name:"请选择"},{name:"临夏市"},{name:"临夏县"},{name:"康乐县"},{name:"永靖县"},{name:"广河县"},{name:"和政县"},{name:"东乡族自治县"},{name:"积石山保安族东乡族撒拉族自治县"},{name:"其他"}],type:0},{name:"甘南藏族自治州",sub:[{name:"请选择"},{name:"合作市"},{name:"临潭县"},{name:"卓尼县"},{name:"舟曲县"},{name:"迭部县"},{name:"玛曲县"},{name:"碌曲县"},{name:"夏河县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"宁夏",sub:[{name:"请选择",sub:[]},{name:"银川",sub:[{name:"请选择"},{name:"兴庆区"},{name:"西夏区"},{name:"金凤区"},{name:"灵武市"},{name:"永宁县"},{name:"贺兰县"},{name:"其他"}],type:0},{name:"石嘴山",sub:[{name:"请选择"},{name:"大武口区"},{name:"惠农区"},{name:"平罗县"},{name:"其他"}],type:0},{name:"吴忠",sub:[{name:"请选择"},{name:"利通区"},{name:"青铜峡市"},{name:"盐池县"},{name:"同心县"},{name:"其他"}],type:0},{name:"固原",sub:[{name:"请选择"},{name:"原州区"},{name:"西吉县"},{name:"隆德县"},{name:"泾源县"},{name:"彭阳县"},{name:"其他"}],type:0},{name:"中卫",sub:[{name:"请选择"},{name:"沙坡头区"},{name:"中宁县"},{name:"海原县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"青海",sub:[{name:"请选择",sub:[]},{name:"西宁",sub:[{name:"请选择"},{name:"城中区"},{name:"城东区"},{name:"城西区"},{name:"城北区"},{name:"湟源县"},{name:"湟中县"},{name:"大通回族土族自治县"},{name:"其他"}],type:0},{name:"海东地区",sub:[{name:"请选择"},{name:"平安县"},{name:"乐都县"},{name:"民和回族土族自治县"},{name:"互助土族自治县"},{name:"化隆回族自治县"},{name:"循化撒拉族自治县"},{name:"其他"}],type:0},{name:"海北藏族自治州",sub:[{name:"请选择"},{name:"海晏县"},{name:"祁连县"},{name:"刚察县"},{name:"门源回族自治县"},{name:"其他"}],type:0},{name:"海南藏族自治州",sub:[{name:"请选择"},{name:"共和县"},{name:"同德县"},{name:"贵德县"},{name:"兴海县"},{name:"贵南县"},{name:"其他"}],type:0},{name:"黄南藏族自治州",sub:[{name:"请选择"},{name:"同仁县"},{name:"尖扎县"},{name:"泽库县"},{name:"河南蒙古族自治县"},{name:"其他"}],type:0},{name:"果洛藏族自治州",sub:[{name:"请选择"},{name:"玛沁县"},{name:"班玛县"},{name:"甘德县"},{name:"达日县"},{name:"久治县"},{name:"玛多县"},{name:"其他"}],type:0},{name:"玉树藏族自治州",sub:[{name:"请选择"},{name:"玉树县"},{name:"杂多县"},{name:"称多县"},{name:"治多县"},{name:"囊谦县"},{name:"曲麻莱县"},{name:"其他"}],type:0},{name:"海西蒙古族藏族自治州",sub:[{name:"请选择"},{name:"德令哈市"},{name:"格尔木市"},{name:"乌兰县"},{name:"都兰县"},{name:"天峻县"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"新疆",sub:[{name:"请选择",sub:[]},{name:"乌鲁木齐",sub:[{name:"请选择"},{name:"天山区"},{name:"沙依巴克区"},{name:"新市区"},{name:"水磨沟区"},{name:"头屯河区"},{name:"达坂城区"},{name:"东山区"},{name:"乌鲁木齐县"},{name:"其他"}],type:0},{name:"克拉玛依",sub:[{name:"请选择"},{name:"克拉玛依区"},{name:"独山子区"},{name:"白碱滩区"},{name:"乌尔禾区"},{name:"其他"}],type:0},{name:"吐鲁番地区",sub:[{name:"请选择"},{name:"吐鲁番市"},{name:"托克逊县"},{name:"鄯善县"},{name:"其他"}],type:0},{name:"哈密地区",sub:[{name:"请选择"},{name:"哈密市"},{name:"伊吾县"},{name:"巴里坤哈萨克自治县"},{name:"其他"}],type:0},{name:"和田地区",sub:[{name:"请选择"},{name:"和田市"},{name:"和田县"},{name:"洛浦县"},{name:"民丰县"},{name:"皮山县"},{name:"策勒县"},{name:"于田县"},{name:"墨玉县"},{name:"其他"}],type:0},{name:"阿克苏地区",sub:[{name:"请选择"},{name:"阿克苏市"},{name:"温宿县"},{name:"沙雅县"},{name:"拜城县"},{name:"阿瓦提县"},{name:"库车县"},{name:"柯坪县"},{name:"新和县"},{name:"乌什县"},{name:"其他"}],type:0},{name:"喀什地区",sub:[{name:"请选择"},{name:"喀什市"},{name:"巴楚县"},{name:"泽普县"},{name:"伽师县"},{name:"叶城县"},{name:"岳普湖县"},{name:"疏勒县"},{name:"麦盖提县"},{name:"英吉沙县"},{name:"莎车县"},{name:"疏附县"},{name:"塔什库尔干塔吉克自治县"},{name:"其他"}],type:0},{name:"克孜勒苏柯尔克孜自治州",sub:[{name:"请选择"},{name:"阿图什市"},{name:"阿合奇县"},{name:"乌恰县"},{name:"阿克陶县"},{name:"其他"}],type:0},{name:"巴音郭楞蒙古自治州",sub:[{name:"请选择"},{name:"库尔勒市"},{name:"和静县"},{name:"尉犁县"},{name:"和硕县"},{name:"且末县"},{name:"博湖县"},{name:"轮台县"},{name:"若羌县"},{name:"焉耆回族自治县"},{name:"其他"}],type:0},{name:"昌吉回族自治州",sub:[{name:"请选择"},{name:"昌吉市"},{name:"阜康市"},{name:"奇台县"},{name:"玛纳斯县"},{name:"吉木萨尔县"},{name:"呼图壁县"},{name:"木垒哈萨克自治县"},{name:"米泉市"},{name:"其他"}],type:0},{name:"博尔塔拉蒙古自治州",sub:[{name:"请选择"},{name:"博乐市"},{name:"精河县"},{name:"温泉县"},{name:"其他"}],type:0},{name:"石河子",sub:[],type:0},{name:"阿拉尔",sub:[],type:0},{name:"图木舒克",sub:[],type:0},{name:"五家渠",sub:[],type:0},{name:"伊犁哈萨克自治州",sub:[{name:"请选择"},{name:"伊宁市"},{name:"奎屯市"},{name:"伊宁县"},{name:"特克斯县"},{name:"尼勒克县"},{name:"昭苏县"},{name:"新源县"},{name:"霍城县"},{name:"巩留县"},{name:"察布查尔锡伯自治县"},{name:"塔城地区"},{name:"阿勒泰地区"},{name:"其他"}],type:0},{name:"其他"}],type:1},{name:"香港",sub:[{name:"请选择"},{name:"中西区"},{name:"湾仔区"},{name:"东区"},{name:"南区"},{name:"深水埗区"},{name:"油尖旺区"},{name:"九龙城区"},{name:"黄大仙区"},{name:"观塘区"},{name:"北区"},{name:"大埔区"},{name:"沙田区"},{name:"西贡区"},{name:"元朗区"},{name:"屯门区"},{name:"荃湾区"},{name:"葵青区"},{name:"离岛区"},{name:"其他"}],type:0},{name:"澳门",sub:[{name:"请选择"},{name:"花地玛堂区"},{name:"圣安多尼堂区"},{name:"大堂区"},{name:"望德堂区"},{name:"风顺堂区"},{name:"嘉模堂区"},{name:"圣方济各堂区"},{name:"路凼"},{name:"其他"}],type:0},{name:"台湾",sub:[{name:"请选择"},{name:"台北市"},{name:"高雄市"},{name:"台北县"},{name:"桃园县"},{name:"新竹县"},{name:"苗栗县"},{name:"台中县"},{name:"彰化县"},{name:"南投县"},{name:"云林县"},{name:"嘉义县"},{name:"台南县"},{name:"高雄县"},{name:"屏东县"},{name:"宜兰县"},{name:"花莲县"},{name:"台东县"},{name:"澎湖县"},{name:"基隆市"},{name:"新竹市"},{name:"台中市"},{name:"嘉义市"},{name:"台南市"},{name:"其他"}],type:0},{name:"海外",sub:[{name:"请选择"},{name:"其他"}],type:0}]}($),+function(a){"use strict";a.fn.cityPicker=function(b){return this.each(function(){if(this){var c=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];"请选择"!==d.name&&b.push(d.name)}return b.length?b:[""]},d=function(a){return a.sub?c(a.sub):[""]},e=function(a){for(var b=0;b<g.length;b++)if(g[b].name===a)return d(g[b]);return[""]},f=function(a,b){for(var c=0;c<g.length;c++)if(g[c].name===a)for(var e=0;e<g[c].sub.length;e++)if(g[c].sub[e].name===b)return d(g[c].sub[e]);return[""]},g=a.smConfig.rawCitiesData,h=g.map(function(a){return a.name}),i=d(g[0]),j=[""],k=h[0],l=i[0],m=j[0],n={cssClass:"city-picker",rotateEffect:!1,onChange:function(a,b,c){var d,g=b[0];if(g!==k){var h=e(g);d=h[0];var i=f(g,d);return a.cols[1].replaceValues(h),a.cols[2].replaceValues(i),k=g,l=d,void a.updateValue()}d=a.cols[1].value,d!==l&&(a.cols[2].replaceValues(f(g,d)),l=d,a.updateValue())},cols:[{values:h,cssClass:"col-province"},{values:i,cssClass:"col-city"},{values:j,cssClass:"col-district"}]},o=a.extend(n,b),p=a(this).val();p&&(o.value=p.split(" "),o.value[0]&&(k=o.value[0],o.cols[1].values=e(o.value[0])),o.value[1]?(l=o.value[1],o.cols[2].values=f(o.value[0],o.value[1])):(m=o.value[2],o.cols[2].values=f(o.value[0],o.cols[1].values[0]))),a(this).picker(o)}})}}($);/*!
 * =====================================================
 * light7 V0.4.3 - http://light7.org/
 *
 * =====================================================
 */
!function(a){"use strict";var b={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},c=function(d,e){function f(a){return Math.floor(a)}function g(){t.autoplayTimeoutId=setTimeout(function(){t.params.loop?(t.fixLoop(),t._slideNext(),t.emit("onAutoplay",t)):t.isEnd?e.autoplayStopOnLast?t.stopAutoplay():(t._slideTo(0),t.emit("onAutoplay",t)):(t._slideNext(),t.emit("onAutoplay",t))},t.params.autoplay)}function h(b,c){var d=a(b.target);if(!d.is(c))if("string"==typeof c)d=d.parents(c);else if(c.nodeType){var e;return d.parents().each(function(a,b){b===c&&(e=c)}),e?c:void 0}if(0!==d.length)return d[0]}function i(a,b){b=b||{};var c=window.MutationObserver||window.WebkitMutationObserver,d=new c(function(a){a.forEach(function(a){t.onResize(!0),t.emit("onObserverUpdate",t,a)})});d.observe(a,{attributes:"undefined"==typeof b.attributes?!0:b.attributes,childList:"undefined"==typeof b.childList?!0:b.childList,characterData:"undefined"==typeof b.characterData?!0:b.characterData}),t.observers.push(d)}function j(a){a.originalEvent&&(a=a.originalEvent);var b=a.keyCode||a.charCode;if(!t.params.allowSwipeToNext&&(t.isHorizontal()&&39===b||!t.isHorizontal()&&40===b))return!1;if(!t.params.allowSwipeToPrev&&(t.isHorizontal()&&37===b||!t.isHorizontal()&&38===b))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===b||39===b||38===b||40===b){var c=!1;if(t.container.parents(".swiper-slide").length>0&&0===t.container.parents(".swiper-slide-active").length)return;var d={left:window.pageXOffset,top:window.pageYOffset},e=window.innerWidth,f=window.innerHeight,g=t.container.offset();t.rtl&&(g.left=g.left-t.container[0].scrollLeft);for(var h=[[g.left,g.top],[g.left+t.width,g.top],[g.left,g.top+t.height],[g.left+t.width,g.top+t.height]],i=0;i<h.length;i++){var j=h[i];j[0]>=d.left&&j[0]<=d.left+e&&j[1]>=d.top&&j[1]<=d.top+f&&(c=!0)}if(!c)return}t.isHorizontal()?((37===b||39===b)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(39===b&&!t.rtl||37===b&&t.rtl)&&t.slideNext(),(37===b&&!t.rtl||39===b&&t.rtl)&&t.slidePrev()):((38===b||40===b)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),40===b&&t.slideNext(),38===b&&t.slidePrev())}}function k(a){a.originalEvent&&(a=a.originalEvent);var b=t.mousewheel.event,c=0,d=t.rtl?-1:1;if("mousewheel"===b)if(t.params.mousewheelForceToAxis)if(t.isHorizontal()){if(!(Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)))return;c=a.wheelDeltaX*d}else{if(!(Math.abs(a.wheelDeltaY)>Math.abs(a.wheelDeltaX)))return;c=a.wheelDeltaY}else c=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?-a.wheelDeltaX*d:-a.wheelDeltaY;else if("DOMMouseScroll"===b)c=-a.detail;else if("wheel"===b)if(t.params.mousewheelForceToAxis)if(t.isHorizontal()){if(!(Math.abs(a.deltaX)>Math.abs(a.deltaY)))return;c=-a.deltaX*d}else{if(!(Math.abs(a.deltaY)>Math.abs(a.deltaX)))return;c=-a.deltaY}else c=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-a.deltaX*d:-a.deltaY;if(0!==c){if(t.params.mousewheelInvert&&(c=-c),t.params.freeMode){var e=t.getWrapperTranslate()+c*t.params.mousewheelSensitivity,f=t.isBeginning,g=t.isEnd;if(e>=t.minTranslate()&&(e=t.minTranslate()),e<=t.maxTranslate()&&(e=t.maxTranslate()),t.setWrapperTransition(0),t.setWrapperTranslate(e),t.updateProgress(),t.updateActiveIndex(),(!f&&t.isBeginning||!g&&t.isEnd)&&t.updateClasses(),t.params.freeModeSticky?(clearTimeout(t.mousewheel.timeout),t.mousewheel.timeout=setTimeout(function(){t.slideReset()},300)):t.params.lazyLoading&&t.lazy&&t.lazy.load(),0===e||e===t.maxTranslate())return}else{if((new window.Date).getTime()-t.mousewheel.lastScrollTime>60)if(0>c)if(t.isEnd&&!t.params.loop||t.animating){if(t.params.mousewheelReleaseOnEdges)return!0}else t.slideNext();else if(t.isBeginning&&!t.params.loop||t.animating){if(t.params.mousewheelReleaseOnEdges)return!0}else t.slidePrev();t.mousewheel.lastScrollTime=(new window.Date).getTime()}return t.params.autoplay&&t.stopAutoplay(),a.preventDefault?a.preventDefault():a.returnValue=!1,!1}}function l(b,c){b=a(b);var d,e,f,g=t.rtl?-1:1;d=b.attr("data-swiper-parallax")||"0",e=b.attr("data-swiper-parallax-x"),f=b.attr("data-swiper-parallax-y"),e||f?(e=e||"0",f=f||"0"):t.isHorizontal()?(e=d,f="0"):(f=d,e="0"),e=e.indexOf("%")>=0?parseInt(e,10)*c*g+"%":e*c*g+"px",f=f.indexOf("%")>=0?parseInt(f,10)*c+"%":f*c+"px",b.transform("translate3d("+e+", "+f+",0px)")}function m(a){return 0!==a.indexOf("on")&&(a=a[0]!==a[0].toUpperCase()?"on"+a[0].toUpperCase()+a.substring(1):"on"+a),a}if(!(this instanceof c))return new c(d,e);var n=e&&e.virtualTranslate;e=e||{};var o={};for(var p in e)if("object"!=typeof e[p]||null===e[p]||(e[p].nodeType||e[p]===window||e[p]===document||"undefined"!=typeof Dom7&&e[p]instanceof Dom7||"undefined"!=typeof jQuery&&e[p]instanceof jQuery))o[p]=e[p];else{o[p]={};for(var q in e[p])o[p][q]=e[p][q]}for(var r in b)if("undefined"==typeof e[r])e[r]=b[r];else if("object"==typeof e[r])for(var s in b[r])"undefined"==typeof e[r][s]&&(e[r][s]=b[r][s]);var t=this;if(t.params=e,t.originalParams=o,t.classNames=[],t.$=a,t.currentBreakpoint=void 0,t.getActiveBreakpoint=function(){if(!t.params.breakpoints)return!1;var a,b=!1,c=[];for(a in t.params.breakpoints)t.params.breakpoints.hasOwnProperty(a)&&c.push(a);c.sort(function(a,b){return parseInt(a,10)>parseInt(b,10)});for(var d=0;d<c.length;d++)a=c[d],a>=window.innerWidth&&!b&&(b=a);return b||"max"},t.setBreakpoint=function(){var a=t.getActiveBreakpoint();if(a&&t.currentBreakpoint!==a){var b=a in t.params.breakpoints?t.params.breakpoints[a]:t.originalParams,c=t.params.loop&&b.slidesPerView!==t.params.slidesPerView;for(var d in b)t.params[d]=b[d];t.currentBreakpoint=a,c&&t.destroyLoop&&t.reLoop(!0)}},t.params.breakpoints&&t.setBreakpoint(),t.container=a(d),0!==t.container.length){if(t.container.length>1){var u=[];return t.container.each(function(){u.push(new c(this,e))}),u}t.container[0].swiper=t,t.container.data("swiper",t),t.classNames.push("swiper-container-"+t.params.direction),t.params.freeMode&&t.classNames.push("swiper-container-free-mode"),t.support.flexbox||(t.classNames.push("swiper-container-no-flexbox"),t.params.slidesPerColumn=1),t.params.autoHeight&&t.classNames.push("swiper-container-autoheight"),(t.params.parallax||t.params.watchSlidesVisibility)&&(t.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(t.params.effect)>=0&&(t.support.transforms3d?(t.params.watchSlidesProgress=!0,t.classNames.push("swiper-container-3d")):t.params.effect="slide"),"slide"!==t.params.effect&&t.classNames.push("swiper-container-"+t.params.effect),"cube"===t.params.effect&&(t.params.resistanceRatio=0,t.params.slidesPerView=1,t.params.slidesPerColumn=1,t.params.slidesPerGroup=1,t.params.centeredSlides=!1,t.params.spaceBetween=0,t.params.virtualTranslate=!0,t.params.setWrapperSize=!1),("fade"===t.params.effect||"flip"===t.params.effect)&&(t.params.slidesPerView=1,t.params.slidesPerColumn=1,t.params.slidesPerGroup=1,t.params.watchSlidesProgress=!0,t.params.spaceBetween=0,t.params.setWrapperSize=!1,"undefined"==typeof n&&(t.params.virtualTranslate=!0)),t.params.grabCursor&&t.support.touch&&(t.params.grabCursor=!1),t.wrapper=t.container.children("."+t.params.wrapperClass),t.params.pagination&&(t.paginationContainer=a(t.params.pagination),t.params.uniqueNavElements&&"string"==typeof t.params.pagination&&t.paginationContainer.length>1&&1===t.container.find(t.params.pagination).length&&(t.paginationContainer=t.container.find(t.params.pagination)),"bullets"===t.params.paginationType&&t.params.paginationClickable?t.paginationContainer.addClass("swiper-pagination-clickable"):t.params.paginationClickable=!1,t.paginationContainer.addClass("swiper-pagination-"+t.params.paginationType)),(t.params.nextButton||t.params.prevButton)&&(t.params.nextButton&&(t.nextButton=a(t.params.nextButton),t.params.uniqueNavElements&&"string"==typeof t.params.nextButton&&t.nextButton.length>1&&1===t.container.find(t.params.nextButton).length&&(t.nextButton=t.container.find(t.params.nextButton))),t.params.prevButton&&(t.prevButton=a(t.params.prevButton),t.params.uniqueNavElements&&"string"==typeof t.params.prevButton&&t.prevButton.length>1&&1===t.container.find(t.params.prevButton).length&&(t.prevButton=t.container.find(t.params.prevButton)))),t.isHorizontal=function(){return"horizontal"===t.params.direction},t.rtl=t.isHorizontal()&&("rtl"===t.container[0].dir.toLowerCase()||"rtl"===t.container.css("direction")),t.rtl&&t.classNames.push("swiper-container-rtl"),t.rtl&&(t.wrongRTL="-webkit-box"===t.wrapper.css("display")),t.params.slidesPerColumn>1&&t.classNames.push("swiper-container-multirow"),t.device.android&&t.classNames.push("swiper-container-android"),t.container.addClass(t.classNames.join(" ")),t.translate=0,t.progress=0,t.velocity=0,t.lockSwipeToNext=function(){t.params.allowSwipeToNext=!1},t.lockSwipeToPrev=function(){t.params.allowSwipeToPrev=!1},t.lockSwipes=function(){t.params.allowSwipeToNext=t.params.allowSwipeToPrev=!1},t.unlockSwipeToNext=function(){t.params.allowSwipeToNext=!0},t.unlockSwipeToPrev=function(){t.params.allowSwipeToPrev=!0},t.unlockSwipes=function(){t.params.allowSwipeToNext=t.params.allowSwipeToPrev=!0},t.params.grabCursor&&(t.container[0].style.cursor="move",t.container[0].style.cursor="-webkit-grab",t.container[0].style.cursor="-moz-grab",t.container[0].style.cursor="grab"),t.imagesToLoad=[],t.imagesLoaded=0,t.loadImage=function(a,b,c,d,e){function f(){e&&e()}var g;a.complete&&d?f():b?(g=new window.Image,g.onload=f,g.onerror=f,c&&(g.srcset=c),b&&(g.src=b)):f()},t.preloadImages=function(){function a(){"undefined"!=typeof t&&null!==t&&(void 0!==t.imagesLoaded&&t.imagesLoaded++,t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("onImagesReady",t)))}t.imagesToLoad=t.container.find("img");for(var b=0;b<t.imagesToLoad.length;b++)t.loadImage(t.imagesToLoad[b],t.imagesToLoad[b].currentSrc||t.imagesToLoad[b].getAttribute("src"),t.imagesToLoad[b].srcset||t.imagesToLoad[b].getAttribute("srcset"),!0,a)},t.autoplayTimeoutId=void 0,t.autoplaying=!1,t.autoplayPaused=!1,t.startAutoplay=function(){return"undefined"!=typeof t.autoplayTimeoutId?!1:t.params.autoplay?t.autoplaying?!1:(t.autoplaying=!0,t.emit("onAutoplayStart",t),void g()):!1},t.stopAutoplay=function(a){t.autoplayTimeoutId&&(t.autoplayTimeoutId&&clearTimeout(t.autoplayTimeoutId),t.autoplaying=!1,t.autoplayTimeoutId=void 0,t.emit("onAutoplayStop",t))},t.pauseAutoplay=function(a){t.autoplayPaused||(t.autoplayTimeoutId&&clearTimeout(t.autoplayTimeoutId),t.autoplayPaused=!0,0===a?(t.autoplayPaused=!1,g()):t.wrapper.transitionEnd(function(){t&&(t.autoplayPaused=!1,t.autoplaying?g():t.stopAutoplay())}))},t.minTranslate=function(){return-t.snapGrid[0]},t.maxTranslate=function(){return-t.snapGrid[t.snapGrid.length-1]},t.updateAutoHeight=function(){var a=t.slides.eq(t.activeIndex)[0];if("undefined"!=typeof a){var b=a.offsetHeight;b&&t.wrapper.css("height",b+"px")}},t.updateContainerSize=function(){var a,b;a="undefined"!=typeof t.params.width?t.params.width:t.container[0].clientWidth,b="undefined"!=typeof t.params.height?t.params.height:t.container[0].clientHeight,0===a&&t.isHorizontal()||0===b&&!t.isHorizontal()||(a=a-parseInt(t.container.css("padding-left"),10)-parseInt(t.container.css("padding-right"),10),b=b-parseInt(t.container.css("padding-top"),10)-parseInt(t.container.css("padding-bottom"),10),t.width=a,t.height=b,t.size=t.isHorizontal()?t.width:t.height)},t.updateSlidesSize=function(){t.slides=t.wrapper.children("."+t.params.slideClass),t.snapGrid=[],t.slidesGrid=[],t.slidesSizesGrid=[];var a,b=t.params.spaceBetween,c=-t.params.slidesOffsetBefore,d=0,e=0;if("undefined"!=typeof t.size){"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*t.size),t.virtualSize=-b,t.rtl?t.slides.css({marginLeft:"",marginTop:""}):t.slides.css({marginRight:"",marginBottom:""});var g;t.params.slidesPerColumn>1&&(g=Math.floor(t.slides.length/t.params.slidesPerColumn)===t.slides.length/t.params.slidesPerColumn?t.slides.length:Math.ceil(t.slides.length/t.params.slidesPerColumn)*t.params.slidesPerColumn,"auto"!==t.params.slidesPerView&&"row"===t.params.slidesPerColumnFill&&(g=Math.max(g,t.params.slidesPerView*t.params.slidesPerColumn)));var h,i=t.params.slidesPerColumn,j=g/i,k=j-(t.params.slidesPerColumn*j-t.slides.length);for(a=0;a<t.slides.length;a++){h=0;var l=t.slides.eq(a);if(t.params.slidesPerColumn>1){var m,n,o;"column"===t.params.slidesPerColumnFill?(n=Math.floor(a/i),o=a-n*i,(n>k||n===k&&o===i-1)&&++o>=i&&(o=0,n++),m=n+o*g/i,l.css({"-webkit-box-ordinal-group":m,"-moz-box-ordinal-group":m,"-ms-flex-order":m,"-webkit-order":m,order:m})):(o=Math.floor(a/j),n=a-o*j),l.css({"margin-top":0!==o&&t.params.spaceBetween&&t.params.spaceBetween+"px"}).attr("data-swiper-column",n).attr("data-swiper-row",o)}"none"!==l.css("display")&&("auto"===t.params.slidesPerView?(h=t.isHorizontal()?l.outerWidth(!0):l.outerHeight(!0),t.params.roundLengths&&(h=f(h))):(h=(t.size-(t.params.slidesPerView-1)*b)/t.params.slidesPerView,t.params.roundLengths&&(h=f(h)),t.isHorizontal()?t.slides[a].style.width=h+"px":t.slides[a].style.height=h+"px"),t.slides[a].swiperSlideSize=h,t.slidesSizesGrid.push(h),t.params.centeredSlides?(c=c+h/2+d/2+b,0===a&&(c=c-t.size/2-b),Math.abs(c)<.001&&(c=0),e%t.params.slidesPerGroup===0&&t.snapGrid.push(c),t.slidesGrid.push(c)):(e%t.params.slidesPerGroup===0&&t.snapGrid.push(c),t.slidesGrid.push(c),c=c+h+b),t.virtualSize+=h+b,d=h,e++)}t.virtualSize=Math.max(t.virtualSize,t.size)+t.params.slidesOffsetAfter;var p;if(t.rtl&&t.wrongRTL&&("slide"===t.params.effect||"coverflow"===t.params.effect)&&t.wrapper.css({width:t.virtualSize+t.params.spaceBetween+"px"}),(!t.support.flexbox||t.params.setWrapperSize)&&(t.isHorizontal()?t.wrapper.css({width:t.virtualSize+t.params.spaceBetween+"px"}):t.wrapper.css({height:t.virtualSize+t.params.spaceBetween+"px"})),t.params.slidesPerColumn>1&&(t.virtualSize=(h+t.params.spaceBetween)*g,t.virtualSize=Math.ceil(t.virtualSize/t.params.slidesPerColumn)-t.params.spaceBetween,t.wrapper.css({width:t.virtualSize+t.params.spaceBetween+"px"}),t.params.centeredSlides)){for(p=[],a=0;a<t.snapGrid.length;a++)t.snapGrid[a]<t.virtualSize+t.snapGrid[0]&&p.push(t.snapGrid[a]);t.snapGrid=p}if(!t.params.centeredSlides){for(p=[],a=0;a<t.snapGrid.length;a++)t.snapGrid[a]<=t.virtualSize-t.size&&p.push(t.snapGrid[a]);t.snapGrid=p,Math.floor(t.virtualSize-t.size)-Math.floor(t.snapGrid[t.snapGrid.length-1])>1&&t.snapGrid.push(t.virtualSize-t.size)}0===t.snapGrid.length&&(t.snapGrid=[0]),0!==t.params.spaceBetween&&(t.isHorizontal()?t.rtl?t.slides.css({marginLeft:b+"px"}):t.slides.css({marginRight:b+"px"}):t.slides.css({marginBottom:b+"px"})),t.params.watchSlidesProgress&&t.updateSlidesOffset()}},t.updateSlidesOffset=function(){for(var a=0;a<t.slides.length;a++)t.slides[a].swiperSlideOffset=t.isHorizontal()?t.slides[a].offsetLeft:t.slides[a].offsetTop},t.updateSlidesProgress=function(a){if("undefined"==typeof a&&(a=t.translate||0),0!==t.slides.length){"undefined"==typeof t.slides[0].swiperSlideOffset&&t.updateSlidesOffset();var b=-a;t.rtl&&(b=a),t.slides.removeClass(t.params.slideVisibleClass);for(var c=0;c<t.slides.length;c++){var d=t.slides[c],e=(b-d.swiperSlideOffset)/(d.swiperSlideSize+t.params.spaceBetween);if(t.params.watchSlidesVisibility){var f=-(b-d.swiperSlideOffset),g=f+t.slidesSizesGrid[c],h=f>=0&&f<t.size||g>0&&g<=t.size||0>=f&&g>=t.size;h&&t.slides.eq(c).addClass(t.params.slideVisibleClass)}d.progress=t.rtl?-e:e}}},t.updateProgress=function(a){"undefined"==typeof a&&(a=t.translate||0);var b=t.maxTranslate()-t.minTranslate(),c=t.isBeginning,d=t.isEnd;0===b?(t.progress=0,t.isBeginning=t.isEnd=!0):(t.progress=(a-t.minTranslate())/b,t.isBeginning=t.progress<=0,t.isEnd=t.progress>=1),t.isBeginning&&!c&&t.emit("onReachBeginning",t),t.isEnd&&!d&&t.emit("onReachEnd",t),t.params.watchSlidesProgress&&t.updateSlidesProgress(a),t.emit("onProgress",t,t.progress)},t.updateActiveIndex=function(){var a,b,c,d=t.rtl?t.translate:-t.translate;for(b=0;b<t.slidesGrid.length;b++)"undefined"!=typeof t.slidesGrid[b+1]?d>=t.slidesGrid[b]&&d<t.slidesGrid[b+1]-(t.slidesGrid[b+1]-t.slidesGrid[b])/2?a=b:d>=t.slidesGrid[b]&&d<t.slidesGrid[b+1]&&(a=b+1):d>=t.slidesGrid[b]&&(a=b);(0>a||"undefined"==typeof a)&&(a=0),c=Math.floor(a/t.params.slidesPerGroup),c>=t.snapGrid.length&&(c=t.snapGrid.length-1),a!==t.activeIndex&&(t.snapIndex=c,t.previousIndex=t.activeIndex,t.activeIndex=a,t.updateClasses())},t.updateClasses=function(){t.slides.removeClass(t.params.slideActiveClass+" "+t.params.slideNextClass+" "+t.params.slidePrevClass);var b=t.slides.eq(t.activeIndex);b.addClass(t.params.slideActiveClass);var c=b.next("."+t.params.slideClass).addClass(t.params.slideNextClass);t.params.loop&&0===c.length&&t.slides.eq(0).addClass(t.params.slideNextClass);var d=b.prev("."+t.params.slideClass).addClass(t.params.slidePrevClass);if(t.params.loop&&0===d.length&&t.slides.eq(-1).addClass(t.params.slidePrevClass),t.paginationContainer&&t.paginationContainer.length>0){var e,f=t.params.loop?Math.ceil((t.slides.length-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(e=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),e>t.slides.length-1-2*t.loopedSlides&&(e-=t.slides.length-2*t.loopedSlides),e>f-1&&(e-=f),0>e&&"bullets"!==t.params.paginationType&&(e=f+e)):e="undefined"!=typeof t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===t.params.paginationType&&t.bullets&&t.bullets.length>0&&(t.bullets.removeClass(t.params.bulletActiveClass),t.paginationContainer.length>1?t.bullets.each(function(){a(this).index()===e&&a(this).addClass(t.params.bulletActiveClass)}):t.bullets.eq(e).addClass(t.params.bulletActiveClass)),"fraction"===t.params.paginationType&&(t.paginationContainer.find("."+t.params.paginationCurrentClass).text(e+1),t.paginationContainer.find("."+t.params.paginationTotalClass).text(f)),"progress"===t.params.paginationType){var g=(e+1)/f,h=g,i=1;t.isHorizontal()||(i=g,h=1),t.paginationContainer.find("."+t.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+h+") scaleY("+i+")").transition(t.params.speed)}"custom"===t.params.paginationType&&t.params.paginationCustomRender&&(t.paginationContainer.html(t.params.paginationCustomRender(t,e+1,f)),t.emit("onPaginationRendered",t,t.paginationContainer[0]))}t.params.loop||(t.params.prevButton&&t.prevButton&&t.prevButton.length>0&&(t.isBeginning?(t.prevButton.addClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.disable(t.prevButton)):(t.prevButton.removeClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.enable(t.prevButton))),t.params.nextButton&&t.nextButton&&t.nextButton.length>0&&(t.isEnd?(t.nextButton.addClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.disable(t.nextButton)):(t.nextButton.removeClass(t.params.buttonDisabledClass),t.params.a11y&&t.a11y&&t.a11y.enable(t.nextButton))))},t.updatePagination=function(){if(t.params.pagination&&t.paginationContainer&&t.paginationContainer.length>0){var a="";if("bullets"===t.params.paginationType){for(var b=t.params.loop?Math.ceil((t.slides.length-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length,c=0;b>c;c++)a+=t.params.paginationBulletRender?t.params.paginationBulletRender(c,t.params.bulletClass):"<"+t.params.paginationElement+' class="'+t.params.bulletClass+'"></'+t.params.paginationElement+">";t.paginationContainer.html(a),t.bullets=t.paginationContainer.find("."+t.params.bulletClass),t.params.paginationClickable&&t.params.a11y&&t.a11y&&t.a11y.initPagination()}"fraction"===t.params.paginationType&&(a=t.params.paginationFractionRender?t.params.paginationFractionRender(t,t.params.paginationCurrentClass,t.params.paginationTotalClass):'<span class="'+t.params.paginationCurrentClass+'"></span> / <span class="'+t.params.paginationTotalClass+'"></span>',t.paginationContainer.html(a)),"progress"===t.params.paginationType&&(a=t.params.paginationProgressRender?t.params.paginationProgressRender(t,t.params.paginationProgressbarClass):'<span class="'+t.params.paginationProgressbarClass+'"></span>',t.paginationContainer.html(a)),"custom"!==t.params.paginationType&&t.emit("onPaginationRendered",t,t.paginationContainer[0])}},t.update=function(a){function b(){d=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate()),t.setWrapperTranslate(d),t.updateActiveIndex(),t.updateClasses()}if(t.updateContainerSize(),t.updateSlidesSize(),t.updateProgress(),t.updatePagination(),t.updateClasses(),t.params.scrollbar&&t.scrollbar&&t.scrollbar.set(),a){var c,d;t.controller&&t.controller.spline&&(t.controller.spline=void 0),t.params.freeMode?(b(),t.params.autoHeight&&t.updateAutoHeight()):(c=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),c||b())}else t.params.autoHeight&&t.updateAutoHeight()},t.onResize=function(a){t.params.breakpoints&&t.setBreakpoint();var b=t.params.allowSwipeToPrev,c=t.params.allowSwipeToNext;t.params.allowSwipeToPrev=t.params.allowSwipeToNext=!0,t.updateContainerSize(),t.updateSlidesSize(),("auto"===t.params.slidesPerView||t.params.freeMode||a)&&t.updatePagination(),t.params.scrollbar&&t.scrollbar&&t.scrollbar.set(),t.controller&&t.controller.spline&&(t.controller.spline=void 0);var d=!1;if(t.params.freeMode){var e=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate());t.setWrapperTranslate(e),t.updateActiveIndex(),t.updateClasses(),t.params.autoHeight&&t.updateAutoHeight()}else t.updateClasses(),d=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);t.params.lazyLoading&&!d&&t.lazy&&t.lazy.load(),t.params.allowSwipeToPrev=b,t.params.allowSwipeToNext=c};var v=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?v=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(v=["MSPointerDown","MSPointerMove","MSPointerUp"]),t.touchEvents={start:t.support.touch||!t.params.simulateTouch?"touchstart":v[0],move:t.support.touch||!t.params.simulateTouch?"touchmove":v[1],end:t.support.touch||!t.params.simulateTouch?"touchend":v[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===t.params.touchEventsTarget?t.container:t.wrapper).addClass("swiper-wp8-"+t.params.direction),t.initEvents=function(a){var b=a?"off":"on",c=a?"removeEventListener":"addEventListener",d="container"===t.params.touchEventsTarget?t.container[0]:t.wrapper[0],f=t.support.touch?d:document,g=t.params.nested?!0:!1;t.browser.ie?(d[c](t.touchEvents.start,t.onTouchStart,!1),f[c](t.touchEvents.move,t.onTouchMove,g),f[c](t.touchEvents.end,t.onTouchEnd,!1)):(t.support.touch&&(d[c](t.touchEvents.start,t.onTouchStart,!1),d[c](t.touchEvents.move,t.onTouchMove,g),d[c](t.touchEvents.end,t.onTouchEnd,!1)),!e.simulateTouch||t.device.ios||t.device.android||(d[c]("mousedown",t.onTouchStart,!1),document[c]("mousemove",t.onTouchMove,g),document[c]("mouseup",t.onTouchEnd,!1))),window[c]("resize",t.onResize),t.params.nextButton&&t.nextButton&&t.nextButton.length>0&&(t.nextButton[b]("click",t.onClickNext),t.params.a11y&&t.a11y&&t.nextButton[b]("keydown",t.a11y.onEnterKey)),t.params.prevButton&&t.prevButton&&t.prevButton.length>0&&(t.prevButton[b]("click",t.onClickPrev),t.params.a11y&&t.a11y&&t.prevButton[b]("keydown",t.a11y.onEnterKey)),t.params.pagination&&t.params.paginationClickable&&(t.paginationContainer[b]("click","."+t.params.bulletClass,t.onClickIndex),t.params.a11y&&t.a11y&&t.paginationContainer[b]("keydown","."+t.params.bulletClass,t.a11y.onEnterKey)),(t.params.preventClicks||t.params.preventClicksPropagation)&&d[c]("click",t.preventClicks,!0)},t.attachEvents=function(){t.initEvents()},t.detachEvents=function(){t.initEvents(!0)},t.allowClick=!0,t.preventClicks=function(a){t.allowClick||(t.params.preventClicks&&a.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(a.stopPropagation(),a.stopImmediatePropagation()))},t.onClickNext=function(a){a.preventDefault(),(!t.isEnd||t.params.loop)&&t.slideNext()},t.onClickPrev=function(a){a.preventDefault(),(!t.isBeginning||t.params.loop)&&t.slidePrev()},t.onClickIndex=function(b){b.preventDefault();var c=a(this).index()*t.params.slidesPerGroup;t.params.loop&&(c+=t.loopedSlides),t.slideTo(c)},t.updateClickedSlide=function(b){var c=h(b,"."+t.params.slideClass),d=!1;if(c)for(var e=0;e<t.slides.length;e++)t.slides[e]===c&&(d=!0);if(!c||!d)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);if(t.clickedSlide=c,t.clickedIndex=a(c).index(),t.params.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex){var f,g=t.clickedIndex;if(t.params.loop){if(t.animating)return;f=a(t.clickedSlide).attr("data-swiper-slide-index"),t.params.centeredSlides?g<t.loopedSlides-t.params.slidesPerView/2||g>t.slides.length-t.loopedSlides+t.params.slidesPerView/2?(t.fixLoop(),g=t.wrapper.children("."+t.params.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){t.slideTo(g)},0)):t.slideTo(g):g>t.slides.length-t.params.slidesPerView?(t.fixLoop(),g=t.wrapper.children("."+t.params.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){t.slideTo(g)},0)):t.slideTo(g)}else t.slideTo(g)}};var w,x,y,z,A,B,C,D,E,F,G="input, select, textarea, button",H=Date.now(),I=[];t.animating=!1,t.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var J,K;if(t.onTouchStart=function(b){if(b.originalEvent&&(b=b.originalEvent),J="touchstart"===b.type,J||!("which"in b)||3!==b.which){if(t.params.noSwiping&&h(b,"."+t.params.noSwipingClass))return void(t.allowClick=!0);if(!t.params.swipeHandler||h(b,t.params.swipeHandler)){var c=t.touches.currentX="touchstart"===b.type?b.targetTouches[0].pageX:b.pageX,d=t.touches.currentY="touchstart"===b.type?b.targetTouches[0].pageY:b.pageY;if(!(t.device.ios&&t.params.iOSEdgeSwipeDetection&&c<=t.params.iOSEdgeSwipeThreshold)){if(w=!0,x=!1,y=!0,A=void 0,K=void 0,t.touches.startX=c,t.touches.startY=d,z=Date.now(),t.allowClick=!0,t.updateContainerSize(),t.swipeDirection=void 0,t.params.threshold>0&&(D=!1),"touchstart"!==b.type){var e=!0;a(b.target).is(G)&&(e=!1),document.activeElement&&a(document.activeElement).is(G)&&document.activeElement.blur(),e&&b.preventDefault()}t.emit("onTouchStart",t,b)}}}},t.onTouchMove=function(b){if(b.originalEvent&&(b=b.originalEvent),!J||"mousemove"!==b.type){if(b.preventedByNestedSwiper)return t.touches.startX="touchmove"===b.type?b.targetTouches[0].pageX:b.pageX,void(t.touches.startY="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY);if(t.params.onlyExternal)return t.allowClick=!1,void(w&&(t.touches.startX=t.touches.currentX="touchmove"===b.type?b.targetTouches[0].pageX:b.pageX,t.touches.startY=t.touches.currentY="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,z=Date.now()));if(J&&document.activeElement&&b.target===document.activeElement&&a(b.target).is(G))return x=!0,void(t.allowClick=!1);if(y&&t.emit("onTouchMove",t,b),!(b.targetTouches&&b.targetTouches.length>1)){if(t.touches.currentX="touchmove"===b.type?b.targetTouches[0].pageX:b.pageX,t.touches.currentY="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,"undefined"==typeof A){var c=180*Math.atan2(Math.abs(t.touches.currentY-t.touches.startY),Math.abs(t.touches.currentX-t.touches.startX))/Math.PI;A=t.isHorizontal()?c>t.params.touchAngle:90-c>t.params.touchAngle}if(A&&t.emit("onTouchMoveOpposite",t,b),"undefined"==typeof K&&t.browser.ieTouch&&(t.touches.currentX!==t.touches.startX||t.touches.currentY!==t.touches.startY)&&(K=!0),w){if(A)return void(w=!1);if(K||!t.browser.ieTouch){t.allowClick=!1,t.emit("onSliderMove",t,b),b.preventDefault(),t.params.touchMoveStopPropagation&&!t.params.nested&&b.stopPropagation(),x||(e.loop&&t.fixLoop(),C=t.getWrapperTranslate(),t.setWrapperTransition(0),t.animating&&t.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),t.params.autoplay&&t.autoplaying&&(t.params.autoplayDisableOnInteraction?t.stopAutoplay():t.pauseAutoplay()),F=!1,t.params.grabCursor&&(t.container[0].style.cursor="move",t.container[0].style.cursor="-webkit-grabbing",t.container[0].style.cursor="-moz-grabbin",t.container[0].style.cursor="grabbing")),x=!0;var d=t.touches.diff=t.isHorizontal()?t.touches.currentX-t.touches.startX:t.touches.currentY-t.touches.startY;d*=t.params.touchRatio,t.rtl&&(d=-d),t.swipeDirection=d>0?"prev":"next",B=d+C;var f=!0;if(d>0&&B>t.minTranslate()?(f=!1,t.params.resistance&&(B=t.minTranslate()-1+Math.pow(-t.minTranslate()+C+d,t.params.resistanceRatio))):0>d&&B<t.maxTranslate()&&(f=!1,t.params.resistance&&(B=t.maxTranslate()+1-Math.pow(t.maxTranslate()-C-d,t.params.resistanceRatio))),f&&(b.preventedByNestedSwiper=!0),!t.params.allowSwipeToNext&&"next"===t.swipeDirection&&C>B&&(B=C),!t.params.allowSwipeToPrev&&"prev"===t.swipeDirection&&B>C&&(B=C),t.params.followFinger){if(t.params.threshold>0){
if(!(Math.abs(d)>t.params.threshold||D))return void(B=C);if(!D)return D=!0,t.touches.startX=t.touches.currentX,t.touches.startY=t.touches.currentY,B=C,void(t.touches.diff=t.isHorizontal()?t.touches.currentX-t.touches.startX:t.touches.currentY-t.touches.startY)}(t.params.freeMode||t.params.watchSlidesProgress)&&t.updateActiveIndex(),t.params.freeMode&&(0===I.length&&I.push({position:t.touches[t.isHorizontal()?"startX":"startY"],time:z}),I.push({position:t.touches[t.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),t.updateProgress(B),t.setWrapperTranslate(B)}}}}}},t.onTouchEnd=function(b){if(b.originalEvent&&(b=b.originalEvent),y&&t.emit("onTouchEnd",t,b),y=!1,w){t.params.grabCursor&&x&&w&&(t.container[0].style.cursor="move",t.container[0].style.cursor="-webkit-grab",t.container[0].style.cursor="-moz-grab",t.container[0].style.cursor="grab");var c=Date.now(),d=c-z;if(t.allowClick&&(t.updateClickedSlide(b),t.emit("onTap",t,b),300>d&&c-H>300&&(E&&clearTimeout(E),E=setTimeout(function(){t&&(t.params.paginationHide&&t.paginationContainer.length>0&&!a(b.target).hasClass(t.params.bulletClass)&&t.paginationContainer.toggleClass(t.params.paginationHiddenClass),t.emit("onClick",t,b))},300)),300>d&&300>c-H&&(E&&clearTimeout(E),t.emit("onDoubleTap",t,b))),H=Date.now(),setTimeout(function(){t&&(t.allowClick=!0)},0),!w||!x||!t.swipeDirection||0===t.touches.diff||B===C)return void(w=x=!1);w=x=!1;var e;if(e=t.params.followFinger?t.rtl?t.translate:-t.translate:-B,t.params.freeMode){if(e<-t.minTranslate())return void t.slideTo(t.activeIndex);if(e>-t.maxTranslate())return void(t.slides.length<t.snapGrid.length?t.slideTo(t.snapGrid.length-1):t.slideTo(t.slides.length-1));if(t.params.freeModeMomentum){if(I.length>1){var f=I.pop(),g=I.pop(),h=f.position-g.position,i=f.time-g.time;t.velocity=h/i,t.velocity=t.velocity/2,Math.abs(t.velocity)<t.params.freeModeMinimumVelocity&&(t.velocity=0),(i>150||(new window.Date).getTime()-f.time>300)&&(t.velocity=0)}else t.velocity=0;I.length=0;var j=1e3*t.params.freeModeMomentumRatio,k=t.velocity*j,l=t.translate+k;t.rtl&&(l=-l);var m,n=!1,o=20*Math.abs(t.velocity)*t.params.freeModeMomentumBounceRatio;if(l<t.maxTranslate())t.params.freeModeMomentumBounce?(l+t.maxTranslate()<-o&&(l=t.maxTranslate()-o),m=t.maxTranslate(),n=!0,F=!0):l=t.maxTranslate();else if(l>t.minTranslate())t.params.freeModeMomentumBounce?(l-t.minTranslate()>o&&(l=t.minTranslate()+o),m=t.minTranslate(),n=!0,F=!0):l=t.minTranslate();else if(t.params.freeModeSticky){var p,q=0;for(q=0;q<t.snapGrid.length;q+=1)if(t.snapGrid[q]>-l){p=q;break}l=Math.abs(t.snapGrid[p]-l)<Math.abs(t.snapGrid[p-1]-l)||"next"===t.swipeDirection?t.snapGrid[p]:t.snapGrid[p-1],t.rtl||(l=-l)}if(0!==t.velocity)j=t.rtl?Math.abs((-l-t.translate)/t.velocity):Math.abs((l-t.translate)/t.velocity);else if(t.params.freeModeSticky)return void t.slideReset();t.params.freeModeMomentumBounce&&n?(t.updateProgress(m),t.setWrapperTransition(j),t.setWrapperTranslate(l),t.onTransitionStart(),t.animating=!0,t.wrapper.transitionEnd(function(){t&&F&&(t.emit("onMomentumBounce",t),t.setWrapperTransition(t.params.speed),t.setWrapperTranslate(m),t.wrapper.transitionEnd(function(){t&&t.onTransitionEnd()}))})):t.velocity?(t.updateProgress(l),t.setWrapperTransition(j),t.setWrapperTranslate(l),t.onTransitionStart(),t.animating||(t.animating=!0,t.wrapper.transitionEnd(function(){t&&t.onTransitionEnd()}))):t.updateProgress(l),t.updateActiveIndex()}return void((!t.params.freeModeMomentum||d>=t.params.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex()))}var r,s=0,u=t.slidesSizesGrid[0];for(r=0;r<t.slidesGrid.length;r+=t.params.slidesPerGroup)"undefined"!=typeof t.slidesGrid[r+t.params.slidesPerGroup]?e>=t.slidesGrid[r]&&e<t.slidesGrid[r+t.params.slidesPerGroup]&&(s=r,u=t.slidesGrid[r+t.params.slidesPerGroup]-t.slidesGrid[r]):e>=t.slidesGrid[r]&&(s=r,u=t.slidesGrid[t.slidesGrid.length-1]-t.slidesGrid[t.slidesGrid.length-2]);var v=(e-t.slidesGrid[s])/u;if(d>t.params.longSwipesMs){if(!t.params.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=t.params.longSwipesRatio?t.slideTo(s+t.params.slidesPerGroup):t.slideTo(s)),"prev"===t.swipeDirection&&(v>1-t.params.longSwipesRatio?t.slideTo(s+t.params.slidesPerGroup):t.slideTo(s))}else{if(!t.params.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(s+t.params.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(s)}}},t._slideTo=function(a,b){return t.slideTo(a,b,!0,!0)},t.slideTo=function(a,b,c,d){"undefined"==typeof c&&(c=!0),"undefined"==typeof a&&(a=0),0>a&&(a=0),t.snapIndex=Math.floor(a/t.params.slidesPerGroup),t.snapIndex>=t.snapGrid.length&&(t.snapIndex=t.snapGrid.length-1);var e=-t.snapGrid[t.snapIndex];t.params.autoplay&&t.autoplaying&&(d||!t.params.autoplayDisableOnInteraction?t.pauseAutoplay(b):t.stopAutoplay()),t.updateProgress(e);for(var f=0;f<t.slidesGrid.length;f++)-Math.floor(100*e)>=Math.floor(100*t.slidesGrid[f])&&(a=f);return!t.params.allowSwipeToNext&&e<t.translate&&e<t.minTranslate()?!1:!t.params.allowSwipeToPrev&&e>t.translate&&e>t.maxTranslate()&&(t.activeIndex||0)!==a?!1:("undefined"==typeof b&&(b=t.params.speed),t.previousIndex=t.activeIndex||0,t.activeIndex=a,t.rtl&&-e===t.translate||!t.rtl&&e===t.translate?(t.params.autoHeight&&t.updateAutoHeight(),t.updateClasses(),"slide"!==t.params.effect&&t.setWrapperTranslate(e),!1):(t.updateClasses(),t.onTransitionStart(c),0===b?(t.setWrapperTranslate(e),t.setWrapperTransition(0),t.onTransitionEnd(c)):(t.setWrapperTranslate(e),t.setWrapperTransition(b),t.animating||(t.animating=!0,t.wrapper.transitionEnd(function(){t&&t.onTransitionEnd(c)}))),!0))},t.onTransitionStart=function(a){"undefined"==typeof a&&(a=!0),t.params.autoHeight&&t.updateAutoHeight(),t.lazy&&t.lazy.onTransitionStart(),a&&(t.emit("onTransitionStart",t),t.activeIndex!==t.previousIndex&&(t.emit("onSlideChangeStart",t),t.activeIndex>t.previousIndex?t.emit("onSlideNextStart",t):t.emit("onSlidePrevStart",t)))},t.onTransitionEnd=function(a){t.animating=!1,t.setWrapperTransition(0),"undefined"==typeof a&&(a=!0),t.lazy&&t.lazy.onTransitionEnd(),a&&(t.emit("onTransitionEnd",t),t.activeIndex!==t.previousIndex&&(t.emit("onSlideChangeEnd",t),t.activeIndex>t.previousIndex?t.emit("onSlideNextEnd",t):t.emit("onSlidePrevEnd",t))),t.params.hashnav&&t.hashnav&&t.hashnav.setHash()},t.slideNext=function(a,b,c){if(t.params.loop){if(t.animating)return!1;t.fixLoop();t.container[0].clientLeft;return t.slideTo(t.activeIndex+t.params.slidesPerGroup,b,a,c)}return t.slideTo(t.activeIndex+t.params.slidesPerGroup,b,a,c)},t._slideNext=function(a){return t.slideNext(!0,a,!0)},t.slidePrev=function(a,b,c){if(t.params.loop){if(t.animating)return!1;t.fixLoop();t.container[0].clientLeft;return t.slideTo(t.activeIndex-1,b,a,c)}return t.slideTo(t.activeIndex-1,b,a,c)},t._slidePrev=function(a){return t.slidePrev(!0,a,!0)},t.slideReset=function(a,b,c){return t.slideTo(t.activeIndex,b,a)},t.setWrapperTransition=function(a,b){t.wrapper.transition(a),"slide"!==t.params.effect&&t.effects[t.params.effect]&&t.effects[t.params.effect].setTransition(a),t.params.parallax&&t.parallax&&t.parallax.setTransition(a),t.params.scrollbar&&t.scrollbar&&t.scrollbar.setTransition(a),t.params.control&&t.controller&&t.controller.setTransition(a,b),t.emit("onSetTransition",t,a)},t.setWrapperTranslate=function(a,b,c){var d=0,e=0,g=0;t.isHorizontal()?d=t.rtl?-a:a:e=a,t.params.roundLengths&&(d=f(d),e=f(e)),t.params.virtualTranslate||(t.support.transforms3d?t.wrapper.transform("translate3d("+d+"px, "+e+"px, "+g+"px)"):t.wrapper.transform("translate("+d+"px, "+e+"px)")),t.translate=t.isHorizontal()?d:e;var h,i=t.maxTranslate()-t.minTranslate();h=0===i?0:(a-t.minTranslate())/i,h!==t.progress&&t.updateProgress(a),b&&t.updateActiveIndex(),"slide"!==t.params.effect&&t.effects[t.params.effect]&&t.effects[t.params.effect].setTranslate(t.translate),t.params.parallax&&t.parallax&&t.parallax.setTranslate(t.translate),t.params.scrollbar&&t.scrollbar&&t.scrollbar.setTranslate(t.translate),t.params.control&&t.controller&&t.controller.setTranslate(t.translate,c),t.emit("onSetTranslate",t,t.translate)},t.getTranslate=function(a,b){var c,d,e,f;return"undefined"==typeof b&&(b="x"),t.params.virtualTranslate?t.rtl?-t.translate:t.translate:(e=window.getComputedStyle(a,null),window.WebKitCSSMatrix?(d=e.transform||e.webkitTransform,d.split(",").length>6&&(d=d.split(", ").map(function(a){return a.replace(",",".")}).join(", ")),f=new window.WebKitCSSMatrix("none"===d?"":d)):(f=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),c=f.toString().split(",")),"x"===b&&(d=window.WebKitCSSMatrix?f.m41:16===c.length?parseFloat(c[12]):parseFloat(c[4])),"y"===b&&(d=window.WebKitCSSMatrix?f.m42:16===c.length?parseFloat(c[13]):parseFloat(c[5])),t.rtl&&d&&(d=-d),d||0)},t.getWrapperTranslate=function(a){return"undefined"==typeof a&&(a=t.isHorizontal()?"x":"y"),t.getTranslate(t.wrapper[0],a)},t.observers=[],t.initObservers=function(){if(t.params.observeParents)for(var a=t.container.parents(),b=0;b<a.length;b++)i(a[b]);i(t.container[0],{childList:!1}),i(t.wrapper[0],{attributes:!1})},t.disconnectObservers=function(){for(var a=0;a<t.observers.length;a++)t.observers[a].disconnect();t.observers=[]},t.createLoop=function(){t.wrapper.children("."+t.params.slideClass+"."+t.params.slideDuplicateClass).remove();var b=t.wrapper.children("."+t.params.slideClass);"auto"!==t.params.slidesPerView||t.params.loopedSlides||(t.params.loopedSlides=b.length),t.loopedSlides=parseInt(t.params.loopedSlides||t.params.slidesPerView,10),t.loopedSlides=t.loopedSlides+t.params.loopAdditionalSlides,t.loopedSlides>b.length&&(t.loopedSlides=b.length);var c,d=[],e=[];for(b.each(function(c,f){var g=a(this);c<t.loopedSlides&&e.push(f),c<b.length&&c>=b.length-t.loopedSlides&&d.push(f),g.attr("data-swiper-slide-index",c)}),c=0;c<e.length;c++)t.wrapper.append(a(e[c].cloneNode(!0)).addClass(t.params.slideDuplicateClass));for(c=d.length-1;c>=0;c--)t.wrapper.prepend(a(d[c].cloneNode(!0)).addClass(t.params.slideDuplicateClass))},t.destroyLoop=function(){t.wrapper.children("."+t.params.slideClass+"."+t.params.slideDuplicateClass).remove(),t.slides.removeAttr("data-swiper-slide-index")},t.reLoop=function(a){var b=t.activeIndex-t.loopedSlides;t.destroyLoop(),t.createLoop(),t.updateSlidesSize(),a&&t.slideTo(b+t.loopedSlides,0,!1)},t.fixLoop=function(){var a;t.activeIndex<t.loopedSlides?(a=t.slides.length-3*t.loopedSlides+t.activeIndex,a+=t.loopedSlides,t.slideTo(a,0,!1,!0)):("auto"===t.params.slidesPerView&&t.activeIndex>=2*t.loopedSlides||t.activeIndex>t.slides.length-2*t.params.slidesPerView)&&(a=-t.slides.length+t.activeIndex+t.loopedSlides,a+=t.loopedSlides,t.slideTo(a,0,!1,!0))},t.appendSlide=function(a){if(t.params.loop&&t.destroyLoop(),"object"==typeof a&&a.length)for(var b=0;b<a.length;b++)a[b]&&t.wrapper.append(a[b]);else t.wrapper.append(a);t.params.loop&&t.createLoop(),t.params.observer&&t.support.observer||t.update(!0)},t.prependSlide=function(a){t.params.loop&&t.destroyLoop();var b=t.activeIndex+1;if("object"==typeof a&&a.length){for(var c=0;c<a.length;c++)a[c]&&t.wrapper.prepend(a[c]);b=t.activeIndex+a.length}else t.wrapper.prepend(a);t.params.loop&&t.createLoop(),t.params.observer&&t.support.observer||t.update(!0),t.slideTo(b,0,!1)},t.removeSlide=function(a){t.params.loop&&(t.destroyLoop(),t.slides=t.wrapper.children("."+t.params.slideClass));var b,c=t.activeIndex;if("object"==typeof a&&a.length){for(var d=0;d<a.length;d++)b=a[d],t.slides[b]&&t.slides.eq(b).remove(),c>b&&c--;c=Math.max(c,0)}else b=a,t.slides[b]&&t.slides.eq(b).remove(),c>b&&c--,c=Math.max(c,0);t.params.loop&&t.createLoop(),t.params.observer&&t.support.observer||t.update(!0),t.params.loop?t.slideTo(c+t.loopedSlides,0,!1):t.slideTo(c,0,!1)},t.removeAllSlides=function(){for(var a=[],b=0;b<t.slides.length;b++)a.push(b);t.removeSlide(a)},t.effects={fade:{setTranslate:function(){for(var a=0;a<t.slides.length;a++){var b=t.slides.eq(a),c=b[0].swiperSlideOffset,d=-c;t.params.virtualTranslate||(d-=t.translate);var e=0;t.isHorizontal()||(e=d,d=0);var f=t.params.fade.crossFade?Math.max(1-Math.abs(b[0].progress),0):1+Math.min(Math.max(b[0].progress,-1),0);b.css({opacity:f}).transform("translate3d("+d+"px, "+e+"px, 0px)")}},setTransition:function(a){if(t.slides.transition(a),t.params.virtualTranslate&&0!==a){var b=!1;t.slides.transitionEnd(function(){if(!b&&t){b=!0,t.animating=!1;for(var a=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],c=0;c<a.length;c++)t.wrapper.trigger(a[c])}})}}},flip:{setTranslate:function(){for(var b=0;b<t.slides.length;b++){var c=t.slides.eq(b),d=c[0].progress;t.params.flip.limitRotation&&(d=Math.max(Math.min(c[0].progress,1),-1));var e=c[0].swiperSlideOffset,f=-180*d,g=f,h=0,i=-e,j=0;if(t.isHorizontal()?t.rtl&&(g=-g):(j=i,i=0,h=-g,g=0),c[0].style.zIndex=-Math.abs(Math.round(d))+t.slides.length,t.params.flip.slideShadows){var k=t.isHorizontal()?c.find(".swiper-slide-shadow-left"):c.find(".swiper-slide-shadow-top"),l=t.isHorizontal()?c.find(".swiper-slide-shadow-right"):c.find(".swiper-slide-shadow-bottom");0===k.length&&(k=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),c.append(k)),0===l.length&&(l=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),c.append(l)),k.length&&(k[0].style.opacity=Math.max(-d,0)),l.length&&(l[0].style.opacity=Math.max(d,0))}c.transform("translate3d("+i+"px, "+j+"px, 0px) rotateX("+h+"deg) rotateY("+g+"deg)")}},setTransition:function(b){if(t.slides.transition(b).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(b),t.params.virtualTranslate&&0!==b){var c=!1;t.slides.eq(t.activeIndex).transitionEnd(function(){if(!c&&t&&a(this).hasClass(t.params.slideActiveClass)){c=!0,t.animating=!1;for(var b=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],d=0;d<b.length;d++)t.wrapper.trigger(b[d])}})}}},cube:{setTranslate:function(){var b,c=0;t.params.cube.shadow&&(t.isHorizontal()?(b=t.wrapper.find(".swiper-cube-shadow"),0===b.length&&(b=a('<div class="swiper-cube-shadow"></div>'),t.wrapper.append(b)),b.css({height:t.width+"px"})):(b=t.container.find(".swiper-cube-shadow"),0===b.length&&(b=a('<div class="swiper-cube-shadow"></div>'),t.container.append(b))));for(var d=0;d<t.slides.length;d++){var e=t.slides.eq(d),f=90*d,g=Math.floor(f/360);t.rtl&&(f=-f,g=Math.floor(-f/360));var h=Math.max(Math.min(e[0].progress,1),-1),i=0,j=0,k=0;d%4===0?(i=4*-g*t.size,k=0):(d-1)%4===0?(i=0,k=4*-g*t.size):(d-2)%4===0?(i=t.size+4*g*t.size,k=t.size):(d-3)%4===0&&(i=-t.size,k=3*t.size+4*t.size*g),t.rtl&&(i=-i),t.isHorizontal()||(j=i,i=0);var l="rotateX("+(t.isHorizontal()?0:-f)+"deg) rotateY("+(t.isHorizontal()?f:0)+"deg) translate3d("+i+"px, "+j+"px, "+k+"px)";if(1>=h&&h>-1&&(c=90*d+90*h,t.rtl&&(c=90*-d-90*h)),e.transform(l),t.params.cube.slideShadows){var m=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===m.length&&(m=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),e.append(m)),0===n.length&&(n=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),e.append(n)),m.length&&(m[0].style.opacity=Math.max(-h,0)),n.length&&(n[0].style.opacity=Math.max(h,0))}}if(t.wrapper.css({"-webkit-transform-origin":"50% 50% -"+t.size/2+"px","-moz-transform-origin":"50% 50% -"+t.size/2+"px","-ms-transform-origin":"50% 50% -"+t.size/2+"px","transform-origin":"50% 50% -"+t.size/2+"px"}),t.params.cube.shadow)if(t.isHorizontal())b.transform("translate3d(0px, "+(t.width/2+t.params.cube.shadowOffset)+"px, "+-t.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+t.params.cube.shadowScale+")");else{var o=Math.abs(c)-90*Math.floor(Math.abs(c)/90),p=1.5-(Math.sin(2*o*Math.PI/360)/2+Math.cos(2*o*Math.PI/360)/2),q=t.params.cube.shadowScale,r=t.params.cube.shadowScale/p,s=t.params.cube.shadowOffset;b.transform("scale3d("+q+", 1, "+r+") translate3d(0px, "+(t.height/2+s)+"px, "+-t.height/2/r+"px) rotateX(-90deg)")}var u=t.isSafari||t.isUiWebView?-t.size/2:0;t.wrapper.transform("translate3d(0px,0,"+u+"px) rotateX("+(t.isHorizontal()?0:c)+"deg) rotateY("+(t.isHorizontal()?-c:0)+"deg)")},setTransition:function(a){t.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),t.params.cube.shadow&&!t.isHorizontal()&&t.container.find(".swiper-cube-shadow").transition(a)}},coverflow:{setTranslate:function(){for(var b=t.translate,c=t.isHorizontal()?-b+t.width/2:-b+t.height/2,d=t.isHorizontal()?t.params.coverflow.rotate:-t.params.coverflow.rotate,e=t.params.coverflow.depth,f=0,g=t.slides.length;g>f;f++){var h=t.slides.eq(f),i=t.slidesSizesGrid[f],j=h[0].swiperSlideOffset,k=(c-j-i/2)/i*t.params.coverflow.modifier,l=t.isHorizontal()?d*k:0,m=t.isHorizontal()?0:d*k,n=-e*Math.abs(k),o=t.isHorizontal()?0:t.params.coverflow.stretch*k,p=t.isHorizontal()?t.params.coverflow.stretch*k:0;Math.abs(p)<.001&&(p=0),Math.abs(o)<.001&&(o=0),Math.abs(n)<.001&&(n=0),Math.abs(l)<.001&&(l=0),Math.abs(m)<.001&&(m=0);var q="translate3d("+p+"px,"+o+"px,"+n+"px)  rotateX("+m+"deg) rotateY("+l+"deg)";if(h.transform(q),h[0].style.zIndex=-Math.abs(Math.round(k))+1,t.params.coverflow.slideShadows){var r=t.isHorizontal()?h.find(".swiper-slide-shadow-left"):h.find(".swiper-slide-shadow-top"),s=t.isHorizontal()?h.find(".swiper-slide-shadow-right"):h.find(".swiper-slide-shadow-bottom");0===r.length&&(r=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),h.append(r)),0===s.length&&(s=a('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),h.append(s)),r.length&&(r[0].style.opacity=k>0?k:0),s.length&&(s[0].style.opacity=-k>0?-k:0)}}if(t.browser.ie){var u=t.wrapper[0].style;u.perspectiveOrigin=c+"px 50%"}},setTransition:function(a){t.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a)}}},t.lazy={initialImageLoaded:!1,loadImageInSlide:function(b,c){if("undefined"!=typeof b&&("undefined"==typeof c&&(c=!0),0!==t.slides.length)){var d=t.slides.eq(b),e=d.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!d.hasClass("swiper-lazy")||d.hasClass("swiper-lazy-loaded")||d.hasClass("swiper-lazy-loading")||(e=e.add(d[0])),0!==e.length&&e.each(function(){var b=a(this);b.addClass("swiper-lazy-loading");var e=b.attr("data-background"),f=b.attr("data-src"),g=b.attr("data-srcset");t.loadImage(b[0],f||e,g,!1,function(){if(e?(b.css("background-image",'url("'+e+'")'),b.removeAttr("data-background")):(g&&(b.attr("srcset",g),b.removeAttr("data-srcset")),f&&(b.attr("src",f),b.removeAttr("data-src"))),b.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),d.find(".swiper-lazy-preloader, .preloader").remove(),t.params.loop&&c){var a=d.attr("data-swiper-slide-index");if(d.hasClass(t.params.slideDuplicateClass)){var h=t.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+t.params.slideDuplicateClass+")");t.lazy.loadImageInSlide(h.index(),!1)}else{var i=t.wrapper.children("."+t.params.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]');t.lazy.loadImageInSlide(i.index(),!1)}}t.emit("onLazyImageReady",t,d[0],b[0])}),t.emit("onLazyImageLoad",t,d[0],b[0])})}},load:function(){var b;if(t.params.watchSlidesVisibility)t.wrapper.children("."+t.params.slideVisibleClass).each(function(){t.lazy.loadImageInSlide(a(this).index())});else if(t.params.slidesPerView>1)for(b=t.activeIndex;b<t.activeIndex+t.params.slidesPerView;b++)t.slides[b]&&t.lazy.loadImageInSlide(b);else t.lazy.loadImageInSlide(t.activeIndex);if(t.params.lazyLoadingInPrevNext)if(t.params.slidesPerView>1||t.params.lazyLoadingInPrevNextAmount&&t.params.lazyLoadingInPrevNextAmount>1){var c=t.params.lazyLoadingInPrevNextAmount,d=t.params.slidesPerView,e=Math.min(t.activeIndex+d+Math.max(c,d),t.slides.length),f=Math.max(t.activeIndex-Math.max(d,c),0);for(b=t.activeIndex+t.params.slidesPerView;e>b;b++)t.slides[b]&&t.lazy.loadImageInSlide(b);for(b=f;b<t.activeIndex;b++)t.slides[b]&&t.lazy.loadImageInSlide(b)}else{var g=t.wrapper.children("."+t.params.slideNextClass);g.length>0&&t.lazy.loadImageInSlide(g.index());var h=t.wrapper.children("."+t.params.slidePrevClass);h.length>0&&t.lazy.loadImageInSlide(h.index())}},onTransitionStart:function(){t.params.lazyLoading&&(t.params.lazyLoadingOnTransitionStart||!t.params.lazyLoadingOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},onTransitionEnd:function(){t.params.lazyLoading&&!t.params.lazyLoadingOnTransitionStart&&t.lazy.load()}},t.scrollbar={isTouched:!1,setDragPosition:function(a){var b=t.scrollbar,c=t.isHorizontal()?"touchstart"===a.type||"touchmove"===a.type?a.targetTouches[0].pageX:a.pageX||a.clientX:"touchstart"===a.type||"touchmove"===a.type?a.targetTouches[0].pageY:a.pageY||a.clientY,d=c-b.track.offset()[t.isHorizontal()?"left":"top"]-b.dragSize/2,e=-t.minTranslate()*b.moveDivider,f=-t.maxTranslate()*b.moveDivider;e>d?d=e:d>f&&(d=f),d=-d/b.moveDivider,t.updateProgress(d),t.setWrapperTranslate(d,!0)},dragStart:function(a){var b=t.scrollbar;b.isTouched=!0,a.preventDefault(),a.stopPropagation(),b.setDragPosition(a),clearTimeout(b.dragTimeout),b.track.transition(0),t.params.scrollbarHide&&b.track.css("opacity",1),t.wrapper.transition(100),b.drag.transition(100),t.emit("onScrollbarDragStart",t)},dragMove:function(a){var b=t.scrollbar;b.isTouched&&(a.preventDefault?a.preventDefault():a.returnValue=!1,b.setDragPosition(a),t.wrapper.transition(0),b.track.transition(0),b.drag.transition(0),t.emit("onScrollbarDragMove",t))},dragEnd:function(a){var b=t.scrollbar;b.isTouched&&(b.isTouched=!1,t.params.scrollbarHide&&(clearTimeout(b.dragTimeout),b.dragTimeout=setTimeout(function(){b.track.css("opacity",0),b.track.transition(400)},1e3)),t.emit("onScrollbarDragEnd",t),t.params.scrollbarSnapOnRelease&&t.slideReset())},enableDraggable:function(){var b=t.scrollbar,c=t.support.touch?b.track:document;a(b.track).on(t.touchEvents.start,b.dragStart),a(c).on(t.touchEvents.move,b.dragMove),a(c).on(t.touchEvents.end,b.dragEnd)},disableDraggable:function(){var b=t.scrollbar,c=t.support.touch?b.track:document;a(b.track).off(t.touchEvents.start,b.dragStart),a(c).off(t.touchEvents.move,b.dragMove),a(c).off(t.touchEvents.end,b.dragEnd)},set:function(){if(t.params.scrollbar){var b=t.scrollbar;b.track=a(t.params.scrollbar),t.params.uniqueNavElements&&"string"==typeof t.params.scrollbar&&b.track.length>1&&1===t.container.find(t.params.scrollbar).length&&(b.track=t.container.find(t.params.scrollbar)),b.drag=b.track.find(".swiper-scrollbar-drag"),0===b.drag.length&&(b.drag=a('<div class="swiper-scrollbar-drag"></div>'),b.track.append(b.drag)),b.drag[0].style.width="",b.drag[0].style.height="",b.trackSize=t.isHorizontal()?b.track[0].offsetWidth:b.track[0].offsetHeight,b.divider=t.size/t.virtualSize,b.moveDivider=b.divider*(b.trackSize/t.size),b.dragSize=b.trackSize*b.divider,t.isHorizontal()?b.drag[0].style.width=b.dragSize+"px":b.drag[0].style.height=b.dragSize+"px",b.divider>=1?b.track[0].style.display="none":b.track[0].style.display="",t.params.scrollbarHide&&(b.track[0].style.opacity=0)}},setTranslate:function(){if(t.params.scrollbar){var a,b=t.scrollbar,c=(t.translate||0,b.dragSize);a=(b.trackSize-b.dragSize)*t.progress,t.rtl&&t.isHorizontal()?(a=-a,a>0?(c=b.dragSize-a,a=0):-a+b.dragSize>b.trackSize&&(c=b.trackSize+a)):0>a?(c=b.dragSize+a,a=0):a+b.dragSize>b.trackSize&&(c=b.trackSize-a),t.isHorizontal()?(t.support.transforms3d?b.drag.transform("translate3d("+a+"px, 0, 0)"):b.drag.transform("translateX("+a+"px)"),b.drag[0].style.width=c+"px"):(t.support.transforms3d?b.drag.transform("translate3d(0px, "+a+"px, 0)"):b.drag.transform("translateY("+a+"px)"),b.drag[0].style.height=c+"px"),t.params.scrollbarHide&&(clearTimeout(b.timeout),b.track[0].style.opacity=1,b.timeout=setTimeout(function(){b.track[0].style.opacity=0,b.track.transition(400)},1e3))}},setTransition:function(a){t.params.scrollbar&&t.scrollbar.drag.transition(a)}},t.controller={LinearSpline:function(a,b){this.x=a,this.y=b,this.lastIndex=a.length-1;var c,d;this.x.length;this.interpolate=function(a){return a?(d=e(this.x,a),c=d-1,(a-this.x[c])*(this.y[d]-this.y[c])/(this.x[d]-this.x[c])+this.y[c]):0};var e=function(){var a,b,c;return function(d,e){for(b=-1,a=d.length;a-b>1;)d[c=a+b>>1]<=e?b=c:a=c;return a}}()},getInterpolateFunction:function(a){t.controller.spline||(t.controller.spline=t.params.loop?new t.controller.LinearSpline(t.slidesGrid,a.slidesGrid):new t.controller.LinearSpline(t.snapGrid,a.snapGrid))},setTranslate:function(a,b){function d(b){a=b.rtl&&"horizontal"===b.params.direction?-t.translate:t.translate,"slide"===t.params.controlBy&&(t.controller.getInterpolateFunction(b),f=-t.controller.spline.interpolate(-a)),f&&"container"!==t.params.controlBy||(e=(b.maxTranslate()-b.minTranslate())/(t.maxTranslate()-t.minTranslate()),f=(a-t.minTranslate())*e+b.minTranslate()),t.params.controlInverse&&(f=b.maxTranslate()-f),b.updateProgress(f),b.setWrapperTranslate(f,!1,t),b.updateActiveIndex()}var e,f,g=t.params.control;if(t.isArray(g))for(var h=0;h<g.length;h++)g[h]!==b&&g[h]instanceof c&&d(g[h]);else g instanceof c&&b!==g&&d(g)},setTransition:function(a,b){function d(b){b.setWrapperTransition(a,t),0!==a&&(b.onTransitionStart(),b.wrapper.transitionEnd(function(){f&&(b.params.loop&&"slide"===t.params.controlBy&&b.fixLoop(),b.onTransitionEnd())}))}var e,f=t.params.control;if(t.isArray(f))for(e=0;e<f.length;e++)f[e]!==b&&f[e]instanceof c&&d(f[e]);else f instanceof c&&b!==f&&d(f)}},t.hashnav={init:function(){if(t.params.hashnav){t.hashnav.initialized=!0;var a=document.location.hash.replace("#","");if(a)for(var b=0,c=0,d=t.slides.length;d>c;c++){var e=t.slides.eq(c),f=e.attr("data-hash");if(f===a&&!e.hasClass(t.params.slideDuplicateClass)){var g=e.index();t.slideTo(g,b,t.params.runCallbacksOnInit,!0)}}}},setHash:function(){t.hashnav.initialized&&t.params.hashnav&&(document.location.hash=t.slides.eq(t.activeIndex).attr("data-hash")||"")}},t.disableKeyboardControl=function(){t.params.keyboardControl=!1,a(document).off("keydown",j)},t.enableKeyboardControl=function(){t.params.keyboardControl=!0,a(document).on("keydown",j)},t.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},t.params.mousewheelControl){try{new window.WheelEvent("wheel"),t.mousewheel.event="wheel"}catch(L){(window.WheelEvent||t.container[0]&&"wheel"in t.container[0])&&(t.mousewheel.event="wheel")}!t.mousewheel.event&&window.WheelEvent,t.mousewheel.event||void 0===document.onmousewheel||(t.mousewheel.event="mousewheel"),t.mousewheel.event||(t.mousewheel.event="DOMMouseScroll")}t.disableMousewheelControl=function(){return t.mousewheel.event?(t.container.off(t.mousewheel.event,k),!0):!1},t.enableMousewheelControl=function(){return t.mousewheel.event?(t.container.on(t.mousewheel.event,k),!0):!1},t.parallax={setTranslate:function(){t.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){l(this,t.progress)}),t.slides.each(function(){var b=a(this);b.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(b[0].progress,-1),1);l(this,a)})})},setTransition:function(b){"undefined"==typeof b&&(b=t.params.speed),t.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var c=a(this),d=parseInt(c.attr("data-swiper-parallax-duration"),10)||b;0===b&&(d=0),c.transition(d)})}},t._plugins=[];for(var M in t.plugins){var N=t.plugins[M](t,t.params[M]);N&&t._plugins.push(N)}return t.callPlugins=function(a){for(var b=0;b<t._plugins.length;b++)a in t._plugins[b]&&t._plugins[b][a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},t.emitterEventListeners={},t.emit=function(a){t.params[a]&&t.params[a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var b;if(t.emitterEventListeners[a])for(b=0;b<t.emitterEventListeners[a].length;b++)t.emitterEventListeners[a][b](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);t.callPlugins&&t.callPlugins(a,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},t.on=function(a,b){return a=m(a),t.emitterEventListeners[a]||(t.emitterEventListeners[a]=[]),t.emitterEventListeners[a].push(b),t},t.off=function(a,b){var c;if(a=m(a),"undefined"==typeof b)return t.emitterEventListeners[a]=[],t;if(t.emitterEventListeners[a]&&0!==t.emitterEventListeners[a].length){for(c=0;c<t.emitterEventListeners[a].length;c++)t.emitterEventListeners[a][c]===b&&t.emitterEventListeners[a].splice(c,1);return t}},t.once=function(a,b){a=m(a);var c=function(){b(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),t.off(a,c)};return t.on(a,c),t},t.a11y={makeFocusable:function(a){return a.attr("tabIndex","0"),a},addRole:function(a,b){return a.attr("role",b),a},addLabel:function(a,b){return a.attr("aria-label",b),a},disable:function(a){return a.attr("aria-disabled",!0),a},enable:function(a){return a.attr("aria-disabled",!1),a},onEnterKey:function(b){13===b.keyCode&&(a(b.target).is(t.params.nextButton)?(t.onClickNext(b),t.isEnd?t.a11y.notify(t.params.lastSlideMessage):t.a11y.notify(t.params.nextSlideMessage)):a(b.target).is(t.params.prevButton)&&(t.onClickPrev(b),t.isBeginning?t.a11y.notify(t.params.firstSlideMessage):t.a11y.notify(t.params.prevSlideMessage)),a(b.target).is("."+t.params.bulletClass)&&a(b.target)[0].click())},liveRegion:a('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(a){var b=t.a11y.liveRegion;0!==b.length&&(b.html(""),b.html(a))},init:function(){t.params.nextButton&&t.nextButton&&t.nextButton.length>0&&(t.a11y.makeFocusable(t.nextButton),t.a11y.addRole(t.nextButton,"button"),t.a11y.addLabel(t.nextButton,t.params.nextSlideMessage)),t.params.prevButton&&t.prevButton&&t.prevButton.length>0&&(t.a11y.makeFocusable(t.prevButton),t.a11y.addRole(t.prevButton,"button"),t.a11y.addLabel(t.prevButton,t.params.prevSlideMessage)),a(t.container).append(t.a11y.liveRegion)},initPagination:function(){t.params.pagination&&t.params.paginationClickable&&t.bullets&&t.bullets.length&&t.bullets.each(function(){var b=a(this);t.a11y.makeFocusable(b),t.a11y.addRole(b,"button"),t.a11y.addLabel(b,t.params.paginationBulletMessage.replace(/{{index}}/,b.index()+1))})},destroy:function(){t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove()}},t.init=function(){t.params.loop&&t.createLoop(),t.updateContainerSize(),t.updateSlidesSize(),t.updatePagination(),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.set(),t.params.scrollbarDraggable&&t.scrollbar.enableDraggable()),"slide"!==t.params.effect&&t.effects[t.params.effect]&&(t.params.loop||t.updateProgress(),t.effects[t.params.effect].setTranslate()),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):(t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),0===t.params.initialSlide&&(t.parallax&&t.params.parallax&&t.parallax.setTranslate(),t.lazy&&t.params.lazyLoading&&(t.lazy.load(),t.lazy.initialImageLoaded=!0))),t.attachEvents(),t.params.observer&&t.support.observer&&t.initObservers(),t.params.preloadImages&&!t.params.lazyLoading&&t.preloadImages(),t.params.autoplay&&t.startAutoplay(),t.params.keyboardControl&&t.enableKeyboardControl&&t.enableKeyboardControl(),t.params.mousewheelControl&&t.enableMousewheelControl&&t.enableMousewheelControl(),t.params.hashnav&&t.hashnav&&t.hashnav.init(),t.params.a11y&&t.a11y&&t.a11y.init(),t.emit("onInit",t)},t.cleanupStyles=function(){t.container.removeClass(t.classNames.join(" ")).removeAttr("style"),
t.wrapper.removeAttr("style"),t.slides&&t.slides.length&&t.slides.removeClass([t.params.slideVisibleClass,t.params.slideActiveClass,t.params.slideNextClass,t.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),t.paginationContainer&&t.paginationContainer.length&&t.paginationContainer.removeClass(t.params.paginationHiddenClass),t.bullets&&t.bullets.length&&t.bullets.removeClass(t.params.bulletActiveClass),t.params.prevButton&&a(t.params.prevButton).removeClass(t.params.buttonDisabledClass),t.params.nextButton&&a(t.params.nextButton).removeClass(t.params.buttonDisabledClass),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.track&&t.scrollbar.track.length&&t.scrollbar.track.removeAttr("style"),t.scrollbar.drag&&t.scrollbar.drag.length&&t.scrollbar.drag.removeAttr("style"))},t.destroy=function(a,b){t.detachEvents(),t.stopAutoplay(),t.params.scrollbar&&t.scrollbar&&t.params.scrollbarDraggable&&t.scrollbar.disableDraggable(),t.params.loop&&t.destroyLoop(),b&&t.cleanupStyles(),t.disconnectObservers(),t.params.keyboardControl&&t.disableKeyboardControl&&t.disableKeyboardControl(),t.params.mousewheelControl&&t.disableMousewheelControl&&t.disableMousewheelControl(),t.params.a11y&&t.a11y&&t.a11y.destroy(),t.emit("onDestroy"),a!==!1&&(t=null)},t.init(),t}};c.prototype={isSafari:function(){var a=navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(a){return"[object Array]"===Object.prototype.toString.apply(a)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var a=navigator.userAgent,b=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),d=a.match(/(iPod)(.*OS\s([\d_]+))?/),e=!c&&a.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:c||e||d,android:b}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var a=document.createElement("div").style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),flexbox:function(){for(var a=document.createElement("div").style,b="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),c=0;c<b.length;c++)if(b[c]in a)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var d=function(a){a.fn.swiper=function(b){var d;return a(this).each(function(){var a=new c(this,b);d||(d=a)}),d}},e=["jQuery","Zepto","Dom7"],f=0;f<e.length;f++)window[e[f]]&&d(window[e[f]]);var g;g="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,g&&("transitionEnd"in g.fn||(g.fn.transitionEnd=function(a){function b(f){if(f.target===this)for(a.call(this,f),c=0;c<d.length;c++)e.off(d[c],b)}var c,d=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],e=this;if(a)for(c=0;c<d.length;c++)e.on(d[c],b);return this}),"transform"in g.fn||(g.fn.transform=function(a){for(var b=0;b<this.length;b++){var c=this[b].style;c.webkitTransform=c.MsTransform=c.msTransform=c.MozTransform=c.OTransform=c.transform=a}return this}),"transition"in g.fn||(g.fn.transition=function(a){"string"!=typeof a&&(a+="ms");for(var b=0;b<this.length;b++){var c=this[b].style;c.webkitTransitionDuration=c.MsTransitionDuration=c.msTransitionDuration=c.MozTransitionDuration=c.OTransitionDuration=c.transitionDuration=a}return this})),a.Swiper=c,a.Swiper.prototype.defaults=b}($),+function(a){"use strict";a.Swiper.prototype.defaults.pagination=".swiper-pagination",a.swiper=function(b,c){return new a.Swiper(b,c)},a.fn.swiper=function(b){return new a.Swiper(this,b)},a.initSwiper=function(b){var c=a(b||document.body),d=c.find(".swiper-container");if(0!==d.length)for(var e=0;e<d.length;e++){var f,g=d.eq(e);g.data("swiper")?g.data("swiper").update(!0):(f=g.dataset(),a.swiper(g[0],f))}},a.reinitSwiper=function(b){var c=a(b),d=c.find(".swiper-container");if(0!==d.length)for(var e=0;e<d.length;e++){var f=d[0].swiper;f&&f.update(!0)}}}($),+function(a){"use strict";var b=function(b){var c,d=this,e=this.defaults;b=b||{};for(var f in e)"undefined"==typeof b[f]&&(b[f]=e[f]);d.params=b;var g=d.params.navbarTemplate||'<header class="bar bar-nav"><a class="icon icon-left pull-left photo-browser-close-link'+("popup"===d.params.type?" close-popup":"")+'"></a><h1 class="title"><div class="center sliding"><span class="photo-browser-current"></span> <span class="photo-browser-of">'+d.params.ofText+'</span> <span class="photo-browser-total"></span></div></h1></header>',h=d.params.toolbarTemplate||'<nav class="bar bar-tab"><a class="tab-item photo-browser-prev" href="#"><i class="icon icon-prev"></i></a><a class="tab-item photo-browser-next" href="#"><i class="icon icon-next"></i></a></nav>',i=d.params.template||'<div class="photo-browser photo-browser-'+d.params.theme+'">{{navbar}}{{toolbar}}<div data-page="photo-browser-slides" style="height:100%">{{captions}}<div class="photo-browser-swiper-container swiper-container"><div class="photo-browser-swiper-wrapper swiper-wrapper">{{photos}}</div></div></div></div>',j=d.params.lazyLoading?d.params.photoLazyTemplate||'<div class="photo-browser-slide photo-browser-slide-lazy swiper-slide"><div class="preloader'+("dark"===d.params.theme?" preloader-white":"")+'"></div><span class="photo-browser-zoom-container"><img data-src="{{url}}" class="swiper-lazy"></span></div>':d.params.photoTemplate||'<div class="photo-browser-slide swiper-slide"><span class="photo-browser-zoom-container"><img src="{{url}}"></span></div>',k=d.params.captionsTheme||d.params.theme,l=d.params.captionsTemplate||'<div class="photo-browser-captions photo-browser-captions-'+k+'">{{captions}}</div>',m=d.params.captionTemplate||'<div class="photo-browser-caption" data-caption-index="{{captionIndex}}">{{caption}}</div>',n=d.params.objectTemplate||'<div class="photo-browser-slide photo-browser-object-slide swiper-slide">{{html}}</div>',o="",p="";for(c=0;c<d.params.photos.length;c++){var q=d.params.photos[c],r="";"string"==typeof q||q instanceof String?r=q.indexOf("<")>=0||q.indexOf(">")>=0?n.replace(/{{html}}/g,q):j.replace(/{{url}}/g,q):"object"==typeof q&&(q.hasOwnProperty("html")&&q.html.length>0?r=n.replace(/{{html}}/g,q.html):q.hasOwnProperty("url")&&q.url.length>0&&(r=j.replace(/{{url}}/g,q.url)),q.hasOwnProperty("caption")&&q.caption.length>0?p+=m.replace(/{{caption}}/g,q.caption).replace(/{{captionIndex}}/g,c):r=r.replace(/{{caption}}/g,"")),o+=r}var s=i.replace("{{navbar}}",d.params.navbar?g:"").replace("{{noNavbar}}",d.params.navbar?"":"no-navbar").replace("{{photos}}",o).replace("{{captions}}",l.replace(/{{captions}}/g,p)).replace("{{toolbar}}",d.params.toolbar?h:"");d.activeIndex=d.params.initialSlide,d.openIndex=d.activeIndex,d.opened=!1,d.open=function(b){return"undefined"==typeof b&&(b=d.activeIndex),b=parseInt(b,10),d.opened&&d.swiper?void d.swiper.slideTo(b):(d.opened=!0,d.openIndex=b,"standalone"===d.params.type&&a(d.params.container).append(s),"popup"===d.params.type&&(d.popup=a.popup('<div class="popup photo-browser-popup">'+s+"</div>"),a(d.popup).on("closed",d.onPopupClose)),"page"===d.params.type?(a(document).on("pageBeforeInit",d.onPageBeforeInit),a(document).on("pageBeforeRemove",d.onPageBeforeRemove),d.params.view||(d.params.view=a.mainView),void d.params.view.loadContent(s)):(d.layout(d.openIndex),void(d.params.onOpen&&d.params.onOpen(d))))},d.close=function(){d.opened=!1,d.swiperContainer&&0!==d.swiperContainer.length&&(d.params.onClose&&d.params.onClose(d),d.attachEvents(!0),"standalone"===d.params.type&&d.container.removeClass("photo-browser-in").addClass("photo-browser-out").animationEnd(function(){d.container.remove()}),d.swiper.destroy(),d.swiper=d.swiperContainer=d.swiperWrapper=d.slides=t=u=v=void 0)},d.onPopupClose=function(){d.close(),a(d.popup).off("pageBeforeInit",d.onPopupClose)},d.onPageBeforeInit=function(b){"photo-browser-slides"===b.detail.page.name&&d.layout(d.openIndex),a(document).off("pageBeforeInit",d.onPageBeforeInit)},d.onPageBeforeRemove=function(b){"photo-browser-slides"===b.detail.page.name&&d.close(),a(document).off("pageBeforeRemove",d.onPageBeforeRemove)},d.onSliderTransitionStart=function(b){d.activeIndex=b.activeIndex;var c=b.activeIndex+1,e=b.slides.length;if(d.params.loop&&(e-=2,c-=b.loopedSlides,1>c&&(c=e+c),c>e&&(c-=e)),d.container.find(".photo-browser-current").text(c),d.container.find(".photo-browser-total").text(e),a(".photo-browser-prev, .photo-browser-next").removeClass("photo-browser-link-inactive"),b.isBeginning&&!d.params.loop&&a(".photo-browser-prev").addClass("photo-browser-link-inactive"),b.isEnd&&!d.params.loop&&a(".photo-browser-next").addClass("photo-browser-link-inactive"),d.captions.length>0){d.captionsContainer.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active");var f=d.params.loop?b.slides.eq(b.activeIndex).attr("data-swiper-slide-index"):d.activeIndex;d.captionsContainer.find('[data-caption-index="'+f+'"]').addClass("photo-browser-caption-active")}var g=b.slides.eq(b.previousIndex).find("video");g.length>0&&"pause"in g[0]&&g[0].pause(),d.params.onSlideChangeStart&&d.params.onSlideChangeStart(b)},d.onSliderTransitionEnd=function(a){d.params.zoom&&t&&a.previousIndex!==a.activeIndex&&(u.transform("translate3d(0,0,0) scale(1)"),v.transform("translate3d(0,0,0)"),t=u=v=void 0,w=x=1),d.params.onSlideChangeEnd&&d.params.onSlideChangeEnd(a)},d.layout=function(b){"page"===d.params.type?d.container=a(".photo-browser-swiper-container").parents(".view"):d.container=a(".photo-browser"),"standalone"===d.params.type&&d.container.addClass("photo-browser-in"),d.swiperContainer=d.container.find(".photo-browser-swiper-container"),d.swiperWrapper=d.container.find(".photo-browser-swiper-wrapper"),d.slides=d.container.find(".photo-browser-slide"),d.captionsContainer=d.container.find(".photo-browser-captions"),d.captions=d.container.find(".photo-browser-caption");var c={nextButton:d.params.nextButton||".photo-browser-next",prevButton:d.params.prevButton||".photo-browser-prev",indexButton:d.params.indexButton,initialSlide:b,spaceBetween:d.params.spaceBetween,speed:d.params.speed,loop:d.params.loop,lazyLoading:d.params.lazyLoading,lazyLoadingInPrevNext:d.params.lazyLoadingInPrevNext,lazyLoadingOnTransitionStart:d.params.lazyLoadingOnTransitionStart,preloadImages:d.params.lazyLoading?!1:!0,onTap:function(a,b){d.params.onTap&&d.params.onTap(a,b)},onClick:function(a,b){d.params.exposition&&d.toggleExposition(),d.params.onClick&&d.params.onClick(a,b)},onDoubleTap:function(b,c){d.toggleZoom(a(c.target).parents(".photo-browser-slide")),d.params.onDoubleTap&&d.params.onDoubleTap(b,c)},onTransitionStart:function(a){d.onSliderTransitionStart(a)},onTransitionEnd:function(a){d.onSliderTransitionEnd(a)},onLazyImageLoad:function(a,b,c){d.params.onLazyImageLoad&&d.params.onLazyImageLoad(d,b,c)},onLazyImageReady:function(b,c,e){a(c).removeClass("photo-browser-slide-lazy"),d.params.onLazyImageReady&&d.params.onLazyImageReady(d,c,e)}};d.params.swipeToClose&&"page"!==d.params.type&&(c.onTouchStart=d.swipeCloseTouchStart,c.onTouchMoveOpposite=d.swipeCloseTouchMove,c.onTouchEnd=d.swipeCloseTouchEnd),d.swiper=a.swiper(d.swiperContainer,c),0===b&&d.onSliderTransitionStart(d.swiper),d.attachEvents()},d.attachEvents=function(a){var b=a?"off":"on";if(d.params.zoom){var c=d.params.loop?d.swiper.slides:d.slides;c[b]("gesturestart",d.onSlideGestureStart),c[b]("gesturechange",d.onSlideGestureChange),c[b]("gestureend",d.onSlideGestureEnd),c[b]("touchstart",d.onSlideTouchStart),c[b]("touchmove",d.onSlideTouchMove),c[b]("touchend",d.onSlideTouchEnd)}d.container.find(".photo-browser-close-link")[b]("click",d.close)},d.exposed=!1,d.toggleExposition=function(){d.container&&d.container.toggleClass("photo-browser-exposed"),d.params.expositionHideCaptions&&d.captionsContainer.toggleClass("photo-browser-captions-exposed"),d.exposed=!d.exposed},d.enableExposition=function(){d.container&&d.container.addClass("photo-browser-exposed"),d.params.expositionHideCaptions&&d.captionsContainer.addClass("photo-browser-captions-exposed"),d.exposed=!0},d.disableExposition=function(){d.container&&d.container.removeClass("photo-browser-exposed"),d.params.expositionHideCaptions&&d.captionsContainer.removeClass("photo-browser-captions-exposed"),d.exposed=!1};var t,u,v,w=1,x=1,y=!1;d.onSlideGestureStart=function(){return t||(t=a(this),u=t.find("img, svg, canvas"),v=u.parent(".photo-browser-zoom-container"),0!==v.length)?(u.transition(0),void(y=!0)):void(u=void 0)},d.onSlideGestureChange=function(a){u&&0!==u.length&&(w=(a.scale||a.originalEvent.scale)*x,w>d.params.maxZoom&&(w=d.params.maxZoom-1+Math.pow(w-d.params.maxZoom+1,.5)),w<d.params.minZoom&&(w=d.params.minZoom+1-Math.pow(d.params.minZoom-w+1,.5)),u.transform("translate3d(0,0,0) scale("+w+")"))},d.onSlideGestureEnd=function(){u&&0!==u.length&&(w=Math.max(Math.min(w,d.params.maxZoom),d.params.minZoom),u.transition(d.params.speed).transform("translate3d(0,0,0) scale("+w+")"),x=w,y=!1,1===w&&(t=void 0))},d.toggleZoom=function(){t||(t=d.swiper.slides.eq(d.swiper.activeIndex),u=t.find("img, svg, canvas"),v=u.parent(".photo-browser-zoom-container")),u&&0!==u.length&&(v.transition(300).transform("translate3d(0,0,0)"),w&&1!==w?(w=x=1,u.transition(300).transform("translate3d(0,0,0) scale(1)"),t=void 0):(w=x=d.params.maxZoom,u.transition(300).transform("translate3d(0,0,0) scale("+w+")")))};var z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q={},R={};d.onSlideTouchStart=function(b){u&&0!==u.length&&(z||("android"===a.device.os&&b.preventDefault(),z=!0,Q=a.getTouchPosition(b)))},d.onSlideTouchMove=function(b){if(u&&0!==u.length&&(d.swiper.allowClick=!1,z&&t)){A||(H=u[0].offsetWidth,I=u[0].offsetHeight,J=a.getTranslate(v[0],"x")||0,K=a.getTranslate(v[0],"y")||0,v.transition(0));var c=H*w,e=I*w;if(!(c<d.swiper.width&&e<d.swiper.height)){if(D=Math.min(d.swiper.width/2-c/2,0),F=-D,E=Math.min(d.swiper.height/2-e/2,0),G=-E,R=a.getTouchPosition(b),!A&&!y&&(Math.floor(D)===Math.floor(J)&&R.x<Q.x||Math.floor(F)===Math.floor(J)&&R.x>Q.x))return void(z=!1);b.preventDefault(),b.stopPropagation(),A=!0,B=R.x-Q.x+J,C=R.y-Q.y+K,D>B&&(B=D+1-Math.pow(D-B+1,.8)),B>F&&(B=F-1+Math.pow(B-F+1,.8)),E>C&&(C=E+1-Math.pow(E-C+1,.8)),C>G&&(C=G-1+Math.pow(C-G+1,.8)),L||(L=R.x),O||(O=R.y),M||(M=Date.now()),N=(R.x-L)/(Date.now()-M)/2,P=(R.y-O)/(Date.now()-M)/2,Math.abs(R.x-L)<2&&(N=0),Math.abs(R.y-O)<2&&(P=0),L=R.x,O=R.y,M=Date.now(),v.transform("translate3d("+B+"px, "+C+"px,0)")}}},d.onSlideTouchEnd=function(){if(u&&0!==u.length){if(!z||!A)return z=!1,void(A=!1);z=!1,A=!1;var a=300,b=300,c=N*a,e=B+c,f=P*b,g=C+f;0!==N&&(a=Math.abs((e-B)/N)),0!==P&&(b=Math.abs((g-C)/P));var h=Math.max(a,b);B=e,C=g;var i=H*w,j=I*w;D=Math.min(d.swiper.width/2-i/2,0),F=-D,E=Math.min(d.swiper.height/2-j/2,0),G=-E,B=Math.max(Math.min(B,F),D),C=Math.max(Math.min(C,G),E),v.transition(h).transform("translate3d("+B+"px, "+C+"px,0)")}};var S,T,U,V,W,X=!1,Y=!0,Z=!1;return d.swipeCloseTouchStart=function(){Y&&(X=!0)},d.swipeCloseTouchMove=function(a,b){if(X){Z||(Z=!0,T="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,V=d.swiper.slides.eq(d.swiper.activeIndex),W=(new Date).getTime()),b.preventDefault(),U="touchmove"===b.type?b.targetTouches[0].pageY:b.pageY,S=T-U;var c=1-Math.abs(S)/300;V.transform("translate3d(0,"+-S+"px,0)"),d.swiper.container.css("opacity",c).transition(0)}},d.swipeCloseTouchEnd=function(){if(X=!1,!Z)return void(Z=!1);Z=!1,Y=!1;var b=Math.abs(S),c=(new Date).getTime()-W;return 300>c&&b>20||c>=300&&b>100?void setTimeout(function(){"standalone"===d.params.type&&d.close(),"popup"===d.params.type&&a.closeModal(d.popup),d.params.onSwipeToClose&&d.params.onSwipeToClose(d),Y=!0},0):(0!==b?V.addClass("transitioning").transitionEnd(function(){Y=!0,V.removeClass("transitioning")}):Y=!0,d.swiper.container.css("opacity","").transition(""),void V.transform(""))},d};b.prototype={defaults:{photos:[],container:"body",initialSlide:0,spaceBetween:20,speed:300,zoom:!0,maxZoom:3,minZoom:1,exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",swipeToClose:!0,backLinkText:"Close",ofText:"of",loop:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1}},a.photoBrowser=function(c){return a.extend(c,a.photoBrowser.prototype.defaults),new b(c)},a.photoBrowser.prototype={defaults:{}}}($);/*!
 * clipboard.js v1.7.1
 * https://zenorocha.github.io/clipboard.js
 *
 * Licensed MIT © Zeno Rocha
 */
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){function o(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=o},{}],2:[function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}var r=t("./closest");e.exports=o},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return l(document.body,t,e,n)}var c=t("./is"),l=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}e.exports=o},{}],6:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},e.exports=o},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","select"],r);else if(void 0!==o)r(n,e("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});!function(a,b,c){function f(a,d){this.wrapper="string"==typeof a?b.querySelector(a):a,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={zoomMin:1,zoomMax:4,zoomStart:1,resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0};for(var f in d)this.options[f]=d[f];this.translateZ=this.options.HWCompositing&&e.hasPerspective?" translateZ(0)":"",this.options.useTransition=e.hasTransition&&this.options.useTransition,this.options.useTransform=e.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"==this.options.eventPassthrough?!1:this.options.scrollY,this.options.scrollX="horizontal"==this.options.eventPassthrough?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?e.ease[this.options.bounceEasing]||e.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this.scale=c.min(c.max(this.options.zoomStart,this.options.zoomMin),this.options.zoomMax),this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function g(a,c,d){var e=b.createElement("div"),f=b.createElement("div");return d===!0&&(e.style.cssText="position:absolute;z-index:9999",f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),f.className="iScrollIndicator","h"==a?(d===!0&&(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",f.style.height="100%"),e.className="iScrollHorizontalScrollbar"):(d===!0&&(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",f.style.width="100%"),e.className="iScrollVerticalScrollbar"),e.style.cssText+=";overflow:hidden",c||(e.style.pointerEvents="none"),e.appendChild(f),e}function h(c,d){this.wrapper="string"==typeof d.el?b.querySelector(d.el):d.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=c,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var f in d)this.options[f]=d[f];this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(e.addEvent(this.indicator,"touchstart",this),e.addEvent(a,"touchend",this)),this.options.disablePointer||(e.addEvent(this.indicator,e.prefixPointerEvent("pointerdown"),this),e.addEvent(a,e.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(e.addEvent(this.indicator,"mousedown",this),e.addEvent(a,"mouseup",this))),this.options.fade&&(this.wrapperStyle[e.style.transform]=this.scroller.translateZ,this.wrapperStyle[e.style.transitionDuration]=e.isBadAndroid?"0.001s":"0ms",this.wrapperStyle.opacity="0")}var d=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(b){a.setTimeout(b,1e3/60)},e=function(){function g(a){return f===!1?!1:""===f?a:f+a.charAt(0).toUpperCase()+a.substr(1)}var h,d={},e=b.createElement("div").style,f=function(){for(var b,a=["t","webkitT","MozT","msT","OT"],c=0,d=a.length;d>c;c++)if(b=a[c]+"ransform",b in e)return a[c].substr(0,a[c].length-1);return!1}();return d.getTime=Date.now||function(){return(new Date).getTime()},d.extend=function(a,b){for(var c in b)a[c]=b[c]},d.addEvent=function(a,b,c,d){a.addEventListener(b,c,!!d)},d.removeEvent=function(a,b,c,d){a.removeEventListener(b,c,!!d)},d.prefixPointerEvent=function(b){return a.MSPointerEvent?"MSPointer"+b.charAt(9).toUpperCase()+b.substr(10):b},d.momentum=function(a,b,d,e,f,g){var j,k,h=a-b,i=c.abs(h)/d;return g=void 0===g?6e-4:g,j=a+i*i/(2*g)*(0>h?-1:1),k=i/g,e>j?(j=f?e-f/2.5*(i/8):e,h=c.abs(j-a),k=h/i):j>0&&(j=f?f/2.5*(i/8):0,h=c.abs(a)+j,k=h/i),{destination:c.round(j),duration:k}},h=g("transform"),d.extend(d,{hasTransform:h!==!1,hasPerspective:g("perspective")in e,hasTouch:"ontouchstart"in a,hasPointer:a.PointerEvent||a.MSPointerEvent,hasTransition:g("transition")in e}),d.isBadAndroid=/Android /.test(a.navigator.appVersion)&&!/Chrome\/\d/.test(a.navigator.appVersion),d.extend(d.style={},{transform:h,transitionTimingFunction:g("transitionTimingFunction"),transitionDuration:g("transitionDuration"),transitionDelay:g("transitionDelay"),transformOrigin:g("transformOrigin")}),d.hasClass=function(a,b){var c=new RegExp("(^|\\s)"+b+"(\\s|$)");return c.test(a.className)},d.addClass=function(a,b){if(!d.hasClass(a,b)){var c=a.className.split(" ");c.push(b),a.className=c.join(" ")}},d.removeClass=function(a,b){if(d.hasClass(a,b)){var c=new RegExp("(^|\\s)"+b+"(\\s|$)","g");a.className=a.className.replace(c," ")}},d.offset=function(a){for(var b=-a.offsetLeft,c=-a.offsetTop;a=a.offsetParent;)b-=a.offsetLeft,c-=a.offsetTop;return{left:b,top:c}},d.preventDefaultException=function(a,b){for(var c in b)if(b[c].test(a[c]))return!0;return!1},d.extend(d.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),d.extend(d.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(a){return a*(2-a)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(a){return c.sqrt(1- --a*a)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(a){var b=4;return(a-=1)*a*((b+1)*a+b)+1}},bounce:{style:"",fn:function(a){return(a/=1)<1/2.75?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}},elastic:{style:"",fn:function(a){var b=.22,d=.4;return 0===a?0:1==a?1:d*c.pow(2,-10*a)*c.sin((a-b/4)*2*c.PI/b)+1}}}),d.tap=function(a,c){var d=b.createEvent("Event");d.initEvent(c,!0,!0),d.pageX=a.pageX,d.pageY=a.pageY,a.target.dispatchEvent(d)},d.click=function(a){var d,c=a.target;/(SELECT|INPUT|TEXTAREA)/i.test(c.tagName)||(d=b.createEvent("MouseEvents"),d.initMouseEvent("click",!0,!0,a.view,1,c.screenX,c.screenY,c.clientX,c.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null),d._constructed=!0,c.dispatchEvent(d))},d}();f.prototype={version:"5.1.3",_init:function(){this._initEvents(),this.options.zoom&&this._initZoom(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),this._execEvent("destroy")},_transitionEnd:function(a){a.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(a){if(!(1!=e.eventType[a.type]&&0!==a.button||!this.enabled||this.initiated&&e.eventType[a.type]!==this.initiated)){!this.options.preventDefault||e.isBadAndroid||e.preventDefaultException(a.target,this.options.preventDefaultException)||a.preventDefault();var d,b=a.touches?a.touches[0]:a;this.initiated=e.eventType[a.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=e.getTime(),this.options.useTransition&&this.isInTransition?(this.isInTransition=!1,d=this.getComputedPosition(),this._translate(c.round(d.x),c.round(d.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=b.pageX,this.pointY=b.pageY,this._execEvent("beforeScrollStart")}},_move:function(a){if(this.enabled&&e.eventType[a.type]===this.initiated){this.options.preventDefault&&a.preventDefault();var h,i,j,k,b=a.touches?a.touches[0]:a,d=b.pageX-this.pointX,f=b.pageY-this.pointY,g=e.getTime();if(this.pointX=b.pageX,this.pointY=b.pageY,this.distX+=d,this.distY+=f,j=c.abs(this.distX),k=c.abs(this.distY),!(g-this.endTime>300&&10>j&&10>k)){if(this.directionLocked||this.options.freeScroll||(this.directionLocked=j>k+this.options.directionLockThreshold?"h":k>=j+this.options.directionLockThreshold?"v":"n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)a.preventDefault();else if("horizontal"==this.options.eventPassthrough)return this.initiated=!1,void 0;f=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)a.preventDefault();else if("vertical"==this.options.eventPassthrough)return this.initiated=!1,void 0;d=0}d=this.hasHorizontalScroll?d:0,f=this.hasVerticalScroll?f:0,h=this.x+d,i=this.y+f,(h>0||h<this.maxScrollX)&&(h=this.options.bounce?this.x+d/3:h>0?0:this.maxScrollX),(i>0||i<this.maxScrollY)&&(i=this.options.bounce?this.y+f/3:i>0?0:this.maxScrollY),this.directionX=d>0?-1:0>d?1:0,this.directionY=f>0?-1:0>f?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(h,i),g-this.startTime>300&&(this.startTime=g,this.startX=this.x,this.startY=this.y)}}},_end:function(a){var d,f,g,h,i,j,k,l,m,n;if(this.enabled&&e.eventType[a.type]===this.initiated&&(this.options.preventDefault&&!e.preventDefaultException(a.target,this.options.preventDefaultException)&&a.preventDefault(),a.changedTouches?a.changedTouches[0]:a,g=e.getTime()-this.startTime,h=c.round(this.x),i=c.round(this.y),j=c.abs(h-this.startX),k=c.abs(i-this.startY),l=0,m="",this.isInTransition=0,this.initiated=0,this.endTime=e.getTime(),!this.resetPosition(this.options.bounceTime)))return this.scrollTo(h,i),this.moved?this._events.flick&&200>g&&100>j&&100>k?(this._execEvent("flick"),void 0):(this.options.momentum&&300>g&&(d=this.hasHorizontalScroll?e.momentum(this.x,this.startX,g,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:h,duration:0},f=this.hasVerticalScroll?e.momentum(this.y,this.startY,g,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:i,duration:0},h=d.destination,i=f.destination,l=c.max(d.duration,f.duration),this.isInTransition=1),this.options.snap&&(n=this._nearestSnap(h,i),this.currentPage=n,l=this.options.snapSpeed||c.max(c.max(c.min(c.abs(h-n.x),1e3),c.min(c.abs(i-n.y),1e3)),300),h=n.x,i=n.y,this.directionX=0,this.directionY=0,m=this.options.bounceEasing),h!=this.x||i!=this.y?((h>0||h<this.maxScrollX||i>0||i<this.maxScrollY)&&(m=e.ease.quadratic),this.scrollTo(h,i,l,m),void 0):(this._execEvent("scrollEnd"),void 0)):(this.options.tap&&e.tap(a,this.options.tap),this.options.click&&e.click(a),this._execEvent("scrollCancel"),void 0)},_resize:function(){var a=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){a.refresh()},this.options.resizePolling)},resetPosition:function(a){var b=this.x,c=this.y;return a=a||0,!this.hasHorizontalScroll||this.x>0?b=0:this.x<this.maxScrollX&&(b=this.maxScrollX),!this.hasVerticalScroll||this.y>0?c=0:this.y<this.maxScrollY&&(c=this.maxScrollY),b==this.x&&c==this.y?!1:(this.scrollTo(b,c,a,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight,this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=c.round(this.scroller.offsetWidth*this.scale),this.scrollerHeight=c.round(this.scroller.offsetHeight*this.scale),this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=e.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition(this.options.bounceTime)},on:function(a,b){this._events[a]||(this._events[a]=[]),this._events[a].push(b)},off:function(a,b){if(this._events[a]){var c=this._events[a].indexOf(b);c>-1&&this._events[a].splice(c,1)}},_execEvent:function(a){if(this._events[a]){var b=0,c=this._events[a].length;if(c)for(;c>b;b++)this._events[a][b].apply(this,[].slice.call(arguments,1))}},scrollBy:function(a,b,c,d){a=this.x+a,b=this.y+b,c=c||0,this.scrollTo(a,b,c,d)},scrollTo:function(a,b,c,d){d=d||e.ease.circular,this.isInTransition=this.options.useTransition&&c>0,!c||this.options.useTransition&&d.style?(this._transitionTimingFunction(d.style),this._transitionTime(c),this._translate(a,b)):this._animate(a,b,c,d.fn)},scrollToElement:function(a,b,d,f,g){if(a=a.nodeType?a:this.scroller.querySelector(a)){var h=e.offset(a);h.left-=this.wrapperOffset.left,h.top-=this.wrapperOffset.top,d===!0&&(d=c.round(a.offsetWidth/2-this.wrapper.offsetWidth/2)),f===!0&&(f=c.round(a.offsetHeight/2-this.wrapper.offsetHeight/2)),h.left-=d||0,h.top-=f||0,h.left=h.left>0?0:h.left<this.maxScrollX?this.maxScrollX:h.left,h.top=h.top>0?0:h.top<this.maxScrollY?this.maxScrollY:h.top,b=void 0===b||null===b||"auto"===b?c.max(c.abs(this.x-h.left),c.abs(this.y-h.top)):b,this.scrollTo(h.left,h.top,b,g)}},_transitionTime:function(a){if(a=a||0,this.scrollerStyle[e.style.transitionDuration]=a+"ms",!a&&e.isBadAndroid&&(this.scrollerStyle[e.style.transitionDuration]="0.001s"),this.indicators)for(var b=this.indicators.length;b--;)this.indicators[b].transitionTime(a)},_transitionTimingFunction:function(a){if(this.scrollerStyle[e.style.transitionTimingFunction]=a,this.indicators)for(var b=this.indicators.length;b--;)this.indicators[b].transitionTimingFunction(a)},_translate:function(a,b){if(this.options.useTransform?this.scrollerStyle[e.style.transform]="translate("+a+"px,"+b+"px) scale("+this.scale+") "+this.translateZ:(a=c.round(a),b=c.round(b),this.scrollerStyle.left=a+"px",this.scrollerStyle.top=b+"px"),this.x=a,this.y=b,this.indicators)for(var d=this.indicators.length;d--;)this.indicators[d].updatePosition()},_initEvents:function(b){var c=b?e.removeEvent:e.addEvent,d=this.options.bindToWrapper?this.wrapper:a;c(a,"orientationchange",this),c(a,"resize",this),this.options.click&&c(this.wrapper,"click",this,!0),this.options.disableMouse||(c(this.wrapper,"mousedown",this),c(d,"mousemove",this),c(d,"mousecancel",this),c(d,"mouseup",this)),e.hasPointer&&!this.options.disablePointer&&(c(this.wrapper,e.prefixPointerEvent("pointerdown"),this),c(d,e.prefixPointerEvent("pointermove"),this),c(d,e.prefixPointerEvent("pointercancel"),this),c(d,e.prefixPointerEvent("pointerup"),this)),e.hasTouch&&!this.options.disableTouch&&(c(this.wrapper,"touchstart",this),c(d,"touchmove",this),c(d,"touchcancel",this),c(d,"touchend",this)),c(this.scroller,"transitionend",this),c(this.scroller,"webkitTransitionEnd",this),c(this.scroller,"oTransitionEnd",this),c(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var c,d,b=a.getComputedStyle(this.scroller,null);return this.options.useTransform?(b=b[e.style.transform].split(")")[0].split(", "),c=+(b[12]||b[4]),d=+(b[13]||b[5])):(c=+b.left.replace(/[^-\d.]/g,""),d=+b.top.replace(/[^-\d.]/g,"")),{x:c,y:d}},_initIndicators:function(){function i(a){for(var b=e.indicators.length;b--;)a.call(e.indicators[b])}var d,f,a=this.options.interactiveScrollbars,b="string"!=typeof this.options.scrollbars,c=[],e=this;for(this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(d={el:g("v",a,this.options.scrollbars),interactive:a,defaultScrollbars:!0,customStyle:b,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(d.el),c.push(d)),this.options.scrollX&&(d={el:g("h",a,this.options.scrollbars),interactive:a,defaultScrollbars:!0,customStyle:b,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(d.el),c.push(d))),this.options.indicators&&(c=c.concat(this.options.indicators)),f=c.length;f--;)this.indicators.push(new h(this,c[f]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){i(function(){this.fade()})}),this.on("scrollCancel",function(){i(function(){this.fade()})}),this.on("scrollStart",function(){i(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){i(function(){this.fade(1,!0)})})),this.on("refresh",function(){i(function(){this.refresh()})}),this.on("destroy",function(){i(function(){this.destroy()}),delete this.indicators})},_initZoom:function(){this.scrollerStyle[e.style.transformOrigin]="0 0"},_zoomStart:function(a){var b=c.abs(a.touches[0].pageX-a.touches[1].pageX),d=c.abs(a.touches[0].pageY-a.touches[1].pageY);this.touchesDistanceStart=c.sqrt(b*b+d*d),this.startScale=this.scale,this.originX=c.abs(a.touches[0].pageX+a.touches[1].pageX)/2+this.wrapperOffset.left-this.x,this.originY=c.abs(a.touches[0].pageY+a.touches[1].pageY)/2+this.wrapperOffset.top-this.y,this._execEvent("zoomStart")},_zoom:function(a){if(this.enabled&&e.eventType[a.type]===this.initiated){this.options.preventDefault&&a.preventDefault();var h,i,j,b=c.abs(a.touches[0].pageX-a.touches[1].pageX),d=c.abs(a.touches[0].pageY-a.touches[1].pageY),f=c.sqrt(b*b+d*d),g=1/this.touchesDistanceStart*f*this.startScale;this.scaled=!0,g<this.options.zoomMin?g=.5*this.options.zoomMin*c.pow(2,g/this.options.zoomMin):g>this.options.zoomMax&&(g=2*this.options.zoomMax*c.pow(.5,this.options.zoomMax/g)),h=g/this.startScale,i=this.originX-this.originX*h+this.startX,j=this.originY-this.originY*h+this.startY,this.scale=g,this.scrollTo(i,j,0)}},_zoomEnd:function(a){if(this.enabled&&e.eventType[a.type]===this.initiated){this.options.preventDefault&&a.preventDefault();var b,c,d;this.isInTransition=0,this.initiated=0,this.scale>this.options.zoomMax?this.scale=this.options.zoomMax:this.scale<this.options.zoomMin&&(this.scale=this.options.zoomMin),this.refresh(),d=this.scale/this.startScale,b=this.originX-this.originX*d+this.startX,c=this.originY-this.originY*d+this.startY,b>0?b=0:b<this.maxScrollX&&(b=this.maxScrollX),c>0?c=0:c<this.maxScrollY&&(c=this.maxScrollY),this.scrollTo(b,c,this.options.bounceTime),this.scaled=!1,this._execEvent("zoomEnd")}},zoom:function(a,b,c,d){if(a<this.options.zoomMin?a=this.options.zoomMin:a>this.options.zoomMax&&(a=this.options.zoomMax),a!=this.scale){var e=a/this.scale;b=void 0===b?this.wrapperWidth/2-this.wrapperOffset.left:b,c=void 0===c?this.wrapperHeight/2-this.wrapperOffset.top:c,d=void 0===d?300:d,b=b+this.wrapperOffset.left-this.x,c=c+this.wrapperOffset.top-this.y,b=b-b*e+this.x,c=c-c*e+this.y,this.scale=a,this.refresh(),b>0?b=0:b<this.maxScrollX&&(b=this.maxScrollX),c>0?c=0:c<this.maxScrollY&&(c=this.maxScrollY),this.scrollTo(b,c,d)}},_wheelZoom:function(a){var b,d,e=this;if(clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){e._execEvent("zoomEnd")},400),"deltaY"in a)b=-a.deltaY/c.abs(a.deltaY);else if("wheelDeltaY"in a)b=a.wheelDeltaY/c.abs(a.wheelDeltaY);else if("wheelDelta"in a)b=a.wheelDelta/c.abs(a.wheelDelta);else{if(!("detail"in a))return;b=-a.detail/c.abs(a.detail)}isNaN(b)&&(b=0),d=this.scale+.01*b,this.zoom(d,a.pageX,a.pageY,0),a.preventDefault(),a.stopPropagation()},_initWheel:function(){e.addEvent(this.wrapper,"wheel",this),e.addEvent(this.wrapper,"mousewheel",this),e.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){e.removeEvent(this.wrapper,"wheel",this),e.removeEvent(this.wrapper,"mousewheel",this),e.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(a){if(this.enabled){a.preventDefault(),a.stopPropagation();var b,d,e,f,g=this;if(void 0===this.wheelTimeout&&g._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){g._execEvent("scrollEnd"),g.wheelTimeout=void 0},400),"deltaX"in a)1===a.deltaMode?(b=-a.deltaX*this.options.mouseWheelSpeed,d=-a.deltaY*this.options.mouseWheelSpeed):(b=-a.deltaX,d=-a.deltaY);else if("wheelDeltaX"in a)b=a.wheelDeltaX/120*this.options.mouseWheelSpeed,d=a.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in a)b=d=a.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in a))return;b=d=-a.detail/3*this.options.mouseWheelSpeed}if(b*=this.options.invertWheelDirection,d*=this.options.invertWheelDirection,this.hasVerticalScroll||(b=d,d=0),this.options.snap)return e=this.currentPage.pageX,f=this.currentPage.pageY,b>0?e--:0>b&&e++,d>0?f--:0>d&&f++,this.goToPage(e,f),void 0;e=this.x+c.round(this.hasHorizontalScroll?b:0),f=this.y+c.round(this.hasVerticalScroll?d:0),e>0?e=0:e<this.maxScrollX&&(e=this.maxScrollX),f>0?f=0:f<this.maxScrollY&&(f=this.maxScrollY),this.scrollTo(e,f,0)}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var b,e,f,g,i,l,a=0,d=0,h=0,j=this.options.snapStepX||this.wrapperWidth,k=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(this.options.snap===!0)for(f=c.round(j/2),g=c.round(k/2);h>-this.scrollerWidth;){for(this.pages[a]=[],b=0,i=0;i>-this.scrollerHeight;)this.pages[a][b]={x:c.max(h,this.maxScrollX),y:c.max(i,this.maxScrollY),width:j,height:k,cx:h-f,cy:i-g},i-=k,b++;h-=j,a++}else for(l=this.options.snap,b=l.length,e=-1;b>a;a++)(0===a||l[a].offsetLeft<=l[a-1].offsetLeft)&&(d=0,e++),this.pages[d]||(this.pages[d]=[]),h=c.max(-l[a].offsetLeft,this.maxScrollX),i=c.max(-l[a].offsetTop,this.maxScrollY),f=h-c.round(l[a].offsetWidth/2),g=i-c.round(l[a].offsetHeight/2),this.pages[d][e]={x:h,y:i,width:l[a].offsetWidth,height:l[a].offsetHeight,cx:f,cy:g},h>this.maxScrollX&&d++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),0===this.options.snapThreshold%1?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=c.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=c.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var a=this.options.snapSpeed||c.max(c.max(c.min(c.abs(this.x-this.startX),1e3),c.min(c.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,a)})},_nearestSnap:function(a,b){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var d=0,e=this.pages.length,f=0;if(c.abs(a-this.absStartX)<this.snapThresholdX&&c.abs(b-this.absStartY)<this.snapThresholdY)return this.currentPage;for(a>0?a=0:a<this.maxScrollX&&(a=this.maxScrollX),b>0?b=0:b<this.maxScrollY&&(b=this.maxScrollY);e>d;d++)if(a>=this.pages[d][0].cx){a=this.pages[d][0].x;break}for(e=this.pages[d].length;e>f;f++)if(b>=this.pages[0][f].cy){b=this.pages[0][f].y;break}return d==this.currentPage.pageX&&(d+=this.directionX,0>d?d=0:d>=this.pages.length&&(d=this.pages.length-1),a=this.pages[d][0].x),f==this.currentPage.pageY&&(f+=this.directionY,0>f?f=0:f>=this.pages[0].length&&(f=this.pages[0].length-1),b=this.pages[0][f].y),{x:a,y:b,pageX:d,pageY:f}},goToPage:function(a,b,d,e){e=e||this.options.bounceEasing,a>=this.pages.length?a=this.pages.length-1:0>a&&(a=0),b>=this.pages[a].length?b=this.pages[a].length-1:0>b&&(b=0);var f=this.pages[a][b].x,g=this.pages[a][b].y;d=void 0===d?this.options.snapSpeed||c.max(c.max(c.min(c.abs(f-this.x),1e3),c.min(c.abs(g-this.y),1e3)),300):d,this.currentPage={x:f,y:g,pageX:a,pageY:b},this.scrollTo(f,g,d,e)},next:function(a,b){var c=this.currentPage.pageX,d=this.currentPage.pageY;c++,c>=this.pages.length&&this.hasVerticalScroll&&(c=0,d++),this.goToPage(c,d,a,b)},prev:function(a,b){var c=this.currentPage.pageX,d=this.currentPage.pageY;c--,0>c&&this.hasVerticalScroll&&(c=0,d--),this.goToPage(c,d,a,b)},_initKeys:function(){var d,c={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(d in this.options.keyBindings)"string"==typeof this.options.keyBindings[d]&&(this.options.keyBindings[d]=this.options.keyBindings[d].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(d in c)this.options.keyBindings[d]=this.options.keyBindings[d]||c[d];e.addEvent(a,"keydown",this),this.on("destroy",function(){e.removeEvent(a,"keydown",this)})},_key:function(a){if(this.enabled){var j,b=this.options.snap,d=b?this.currentPage.pageX:this.x,f=b?this.currentPage.pageY:this.y,g=e.getTime(),h=this.keyTime||0,i=.25;switch(this.options.useTransition&&this.isInTransition&&(j=this.getComputedPosition(),this._translate(c.round(j.x),c.round(j.y)),this.isInTransition=!1),this.keyAcceleration=200>g-h?c.min(this.keyAcceleration+i,50):0,a.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?d+=b?1:this.wrapperWidth:f+=b?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?d-=b?1:this.wrapperWidth:f-=b?1:this.wrapperHeight;break;case this.options.keyBindings.end:d=b?this.pages.length-1:this.maxScrollX,f=b?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:d=0,f=0;break;case this.options.keyBindings.left:d+=b?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:f+=b?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:d-=b?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:f-=b?1:5+this.keyAcceleration>>0;break;default:return}if(b)return this.goToPage(d,f),void 0;d>0?(d=0,this.keyAcceleration=0):d<this.maxScrollX&&(d=this.maxScrollX,this.keyAcceleration=0),f>0?(f=0,this.keyAcceleration=0):f<this.maxScrollY&&(f=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(d,f,0),this.keyTime=g}},_animate:function(a,b,c,f){function l(){var n,o,p,m=e.getTime();return m>=k?(g.isAnimating=!1,g._translate(a,b),g.resetPosition(g.options.bounceTime)||g._execEvent("scrollEnd"),void 0):(m=(m-j)/c,p=f(m),n=(a-h)*p+h,o=(b-i)*p+i,g._translate(n,o),g.isAnimating&&d(l),void 0)}var g=this,h=this.x,i=this.y,j=e.getTime(),k=j+c;this.isAnimating=!0,l()},handleEvent:function(a){switch(a.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(a),this.options.zoom&&a.touches&&a.touches.length>1&&this._zoomStart(a);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":if(this.options.zoom&&a.touches&&a.touches[1])return this._zoom(a),void 0;this._move(a);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":if(this.scaled)return this._zoomEnd(a),void 0;this._end(a);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(a);break;case"wheel":case"DOMMouseScroll":case"mousewheel":if("zoom"==this.options.wheelAction)return this._wheelZoom(a),void 0;this._wheel(a);break;case"keydown":this._key(a)}}},h.prototype={handleEvent:function(a){switch(a.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(a);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(a);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(a)}},destroy:function(){this.options.interactive&&(e.removeEvent(this.indicator,"touchstart",this),e.removeEvent(this.indicator,e.prefixPointerEvent("pointerdown"),this),e.removeEvent(this.indicator,"mousedown",this),e.removeEvent(a,"touchmove",this),e.removeEvent(a,e.prefixPointerEvent("pointermove"),this),e.removeEvent(a,"mousemove",this),e.removeEvent(a,"touchend",this),e.removeEvent(a,e.prefixPointerEvent("pointerup"),this),e.removeEvent(a,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(b){var c=b.touches?b.touches[0]:b;b.preventDefault(),b.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=c.pageX,this.lastPointY=c.pageY,this.startTime=e.getTime(),this.options.disableTouch||e.addEvent(a,"touchmove",this),this.options.disablePointer||e.addEvent(a,e.prefixPointerEvent("pointermove"),this),this.options.disableMouse||e.addEvent(a,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(a){var c,d,f,g,b=a.touches?a.touches[0]:a;e.getTime(),this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,c=b.pageX-this.lastPointX,this.lastPointX=b.pageX,d=b.pageY-this.lastPointY,this.lastPointY=b.pageY,f=this.x+c,g=this.y+d,this._pos(f,g),a.preventDefault(),a.stopPropagation()},_end:function(b){var d,f;this.initiated&&(this.initiated=!1,b.preventDefault(),b.stopPropagation(),e.removeEvent(a,"touchmove",this),e.removeEvent(a,e.prefixPointerEvent("pointermove"),this),e.removeEvent(a,"mousemove",this),this.scroller.options.snap&&(d=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),f=this.options.snapSpeed||c.max(c.max(c.min(c.abs(this.scroller.x-d.x),1e3),c.min(c.abs(this.scroller.y-d.y),1e3)),300),(this.scroller.x!=d.x||this.scroller.y!=d.y)&&(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=d,this.scroller.scrollTo(d.x,d.y,f,this.scroller.options.bounceEasing))),this.moved&&this.scroller._execEvent("scrollEnd"))},transitionTime:function(a){a=a||0,this.indicatorStyle[e.style.transitionDuration]=a+"ms",!a&&e.isBadAndroid&&(this.indicatorStyle[e.style.transitionDuration]="0.001s")},transitionTimingFunction:function(a){this.indicatorStyle[e.style.transitionTimingFunction]=a},refresh:function(){this.transitionTime(),this.indicatorStyle.display=this.options.listenX&&!this.options.listenY?this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.scroller.hasVerticalScroll?"block":"none":this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(e.addClass(this.wrapper,"iScrollBothScrollbars"),e.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(e.removeClass(this.wrapper,"iScrollBothScrollbars"),e.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px")),this.wrapper.offsetHeight,this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=c.max(c.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=c.max(c.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()
},updatePosition:function(){var a=this.options.listenX&&c.round(this.sizeRatioX*this.scroller.x)||0,b=this.options.listenY&&c.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(a<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=c.max(this.indicatorWidth+a,8),this.indicatorStyle.width=this.width+"px"),a=this.minBoundaryX):a>this.maxBoundaryX?"scale"==this.options.shrink?(this.width=c.max(this.indicatorWidth-(a-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",a=this.maxPosX+this.indicatorWidth-this.width):a=this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),b<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=c.max(this.indicatorHeight+3*b,8),this.indicatorStyle.height=this.height+"px"),b=this.minBoundaryY):b>this.maxBoundaryY?"scale"==this.options.shrink?(this.height=c.max(this.indicatorHeight-3*(b-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",b=this.maxPosY+this.indicatorHeight-this.height):b=this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=a,this.y=b,this.scroller.options.useTransform?this.indicatorStyle[e.style.transform]="translate("+a+"px,"+b+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=a+"px",this.indicatorStyle.top=b+"px")},_pos:function(a,b){0>a?a=0:a>this.maxPosX&&(a=this.maxPosX),0>b?b=0:b>this.maxPosY&&(b=this.maxPosY),a=this.options.listenX?c.round(a/this.sizeRatioX):this.scroller.x,b=this.options.listenY?c.round(b/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(a,b)},fade:function(a,b){if(!b||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var c=a?250:500,d=a?0:300;a=a?"1":"0",this.wrapperStyle[e.style.transitionDuration]=c+"ms",this.fadeTimeout=setTimeout(function(a){this.wrapperStyle.opacity=a,this.visible=+a}.bind(this,a),d)}}},f.utils=e,"undefined"!=typeof module&&module.exports?module.exports=f:a.IScroll=f}(window,document,Math);

!function(a,b,c,d){"use strict";function k(a,b,c){return setTimeout(q(a,c),b)}function l(a,b,c){return Array.isArray(a)?(m(a,c[b],c),!0):!1}function m(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function n(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a}function o(a,b){return n(a,b,!0)}function p(a,b,c){var e,d=b.prototype;e=a.prototype=Object.create(d),e.constructor=a,e._super=d,c&&n(e,c)}function q(a,b){return function(){return a.apply(b,arguments)}}function r(a,b){return typeof a==g?a.apply(b?b[0]||d:d,b):a}function s(a,b){return a===d?b:a}function t(a,b,c){m(x(b),function(b){a.addEventListener(b,c,!1)})}function u(a,b,c){m(x(b),function(b){a.removeEventListener(b,c,!1)})}function v(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function w(a,b){return a.indexOf(b)>-1}function x(a){return a.trim().split(/\s+/g)}function y(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function z(a){return Array.prototype.slice.call(a,0)}function A(a,b,c){for(var g,d=[],e=[],f=0;f<a.length;)g=b?a[f][b]:a[f],y(e,g)<0&&d.push(a[f]),e[f]=g,f++;return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function B(a,b){for(var c,f,g=b[0].toUpperCase()+b.slice(1),h=0;h<e.length;){if(c=e[h],f=c?c+g:b,f in a)return f;h++}return d}function D(){return C++}function E(a){var b=a.ownerDocument;return b.defaultView||b.parentWindow}function ab(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){r(a.options.enable,[a])&&c.handler(b)},this.init()}function bb(a){var b,c=a.options.inputClass;return b=c?c:H?wb:I?Eb:G?Gb:rb,new b(a,cb)}function cb(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&O&&0===d-e,g=b&(Q|R)&&0===d-e;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,db(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function db(a,b){var f,g,h,i,k,c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=gb(b)),e>1&&!c.firstMultiple?c.firstMultiple=gb(b):1===e&&(c.firstMultiple=!1),f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=hb(d),b.timeStamp=j(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=lb(h,i),b.distance=kb(h,i),eb(c,b),b.offsetDirection=jb(b.deltaX,b.deltaY),b.scale=g?nb(g.pointers,d):1,b.rotation=g?mb(g.pointers,d):0,fb(c,b),k=a.element,v(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function eb(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===O||f.eventType===Q)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function fb(a,b){var f,g,h,j,k,l,m,c=a.lastInterval||b,e=b.timeStamp-c.timeStamp;b.eventType!=R&&(e>N||c.velocity===d)?(k=c.deltaX-b.deltaX,l=c.deltaY-b.deltaY,m=ib(e,k,l),g=m.x,h=m.y,f=i(m.x)>i(m.y)?m.x:m.y,j=jb(k,l),a.lastInterval=b):(f=c.velocity,g=c.velocityX,h=c.velocityY,j=c.direction),b.velocity=f,b.velocityX=g,b.velocityY=h,b.direction=j}function gb(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:h(a.pointers[c].clientX),clientY:h(a.pointers[c].clientY)},c++;return{timeStamp:j(),pointers:b,center:hb(b),deltaX:a.deltaX,deltaY:a.deltaY}}function hb(a){var c,d,e,b=a.length;if(1===b)return{x:h(a[0].clientX),y:h(a[0].clientY)};for(c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:h(c/b),y:h(d/b)}}function ib(a,b,c){return{x:b/a||0,y:c/a||0}}function jb(a,b){return a===b?S:i(a)>=i(b)?a>0?T:U:b>0?V:W}function kb(a,b,c){c||(c=$);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function lb(a,b,c){c||(c=$);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function mb(a,b){return lb(b[1],b[0],_)-lb(a[1],a[0],_)}function nb(a,b){return kb(b[0],b[1],_)/kb(a[0],a[1],_)}function rb(){this.evEl=pb,this.evWin=qb,this.allow=!0,this.pressed=!1,ab.apply(this,arguments)}function wb(){this.evEl=ub,this.evWin=vb,ab.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Ab(){this.evTarget=yb,this.evWin=zb,this.started=!1,ab.apply(this,arguments)}function Bb(a,b){var c=z(a.touches),d=z(a.changedTouches);return b&(Q|R)&&(c=A(c.concat(d),"identifier",!0)),[c,d]}function Eb(){this.evTarget=Db,this.targetIds={},ab.apply(this,arguments)}function Fb(a,b){var e,f,g,h,i,c=z(a.touches),d=this.targetIds;if(b&(O|P)&&1===c.length)return d[c[0].identifier]=!0,[c,c];if(g=z(a.changedTouches),h=[],i=this.target,f=c.filter(function(a){return v(a.target,i)}),b===O)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Q|R)&&delete d[g[e].identifier],e++;return h.length?[A(f.concat(h),"identifier",!0),h]:void 0}function Gb(){ab.apply(this,arguments);var a=q(this.handler,this);this.touch=new Eb(this.manager,a),this.mouse=new rb(this.manager,a)}function Pb(a,b){this.manager=a,this.set(b)}function Qb(a){var b,c;return w(a,Mb)?Mb:(b=w(a,Nb),c=w(a,Ob),b&&c?Nb+" "+Ob:b||c?b?Nb:Ob:w(a,Lb)?Lb:Kb)}function Yb(a){this.id=D(),this.manager=null,this.options=o(a||{},this.defaults),this.options.enable=s(this.options.enable,!0),this.state=Rb,this.simultaneous={},this.requireFail=[]}function Zb(a){return a&Wb?"cancel":a&Ub?"end":a&Tb?"move":a&Sb?"start":""}function $b(a){return a==W?"down":a==V?"up":a==T?"left":a==U?"right":""}function _b(a,b){var c=b.manager;return c?c.get(a):a}function ac(){Yb.apply(this,arguments)}function bc(){ac.apply(this,arguments),this.pX=null,this.pY=null}function cc(){ac.apply(this,arguments)}function dc(){Yb.apply(this,arguments),this._timer=null,this._input=null}function ec(){ac.apply(this,arguments)}function fc(){ac.apply(this,arguments)}function gc(){Yb.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function hc(a,b){return b=b||{},b.recognizers=s(b.recognizers,hc.defaults.preset),new kc(a,b)}function kc(a,b){b=b||{},this.options=o(b,hc.defaults),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.element=a,this.input=bb(this),this.touchAction=new Pb(this,this.options.touchAction),lc(this,!0),m(b.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function lc(a,b){var c=a.element;m(a.options.cssProps,function(a,d){c.style[B(c.style,d)]=b?a:""})}function mc(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var ob,pb,qb,sb,tb,ub,vb,xb,yb,zb,Cb,Db,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Rb,Sb,Tb,Ub,Vb,Wb,Xb,ic,jc,e=["","webkit","moz","MS","ms","o"],f=b.createElement("div"),g="function",h=Math.round,i=Math.abs,j=Date.now,C=1,F=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in a,H=B(a,"PointerEvent")!==d,I=G&&F.test(navigator.userAgent),J="touch",K="pen",L="mouse",M="kinect",N=25,O=1,P=2,Q=4,R=8,S=1,T=2,U=4,V=8,W=16,X=T|U,Y=V|W,Z=X|Y,$=["x","y"],_=["clientX","clientY"];ab.prototype={handler:function(){},init:function(){this.evEl&&t(this.element,this.evEl,this.domHandler),this.evTarget&&t(this.target,this.evTarget,this.domHandler),this.evWin&&t(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&u(this.element,this.evEl,this.domHandler),this.evTarget&&u(this.target,this.evTarget,this.domHandler),this.evWin&&u(E(this.element),this.evWin,this.domHandler)}},ob={mousedown:O,mousemove:P,mouseup:Q},pb="mousedown",qb="mousemove mouseup",p(rb,ab,{handler:function(a){var b=ob[a.type];b&O&&0===a.button&&(this.pressed=!0),b&P&&1!==a.which&&(b=Q),this.pressed&&this.allow&&(b&Q&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:L,srcEvent:a}))}}),sb={pointerdown:O,pointermove:P,pointerup:Q,pointercancel:R,pointerout:R},tb={2:J,3:K,4:L,5:M},ub="pointerdown",vb="pointermove pointerup pointercancel",a.MSPointerEvent&&(ub="MSPointerDown",vb="MSPointerMove MSPointerUp MSPointerCancel"),p(wb,ab,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=sb[d],f=tb[a.pointerType]||a.pointerType,g=f==J,h=y(b,a.pointerId,"pointerId");e&O&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Q|R)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}}),xb={touchstart:O,touchmove:P,touchend:Q,touchcancel:R},yb="touchstart",zb="touchstart touchmove touchend touchcancel",p(Ab,ab,{handler:function(a){var c,b=xb[a.type];b===O&&(this.started=!0),this.started&&(c=Bb.call(this,a,b),b&(Q|R)&&0===c[0].length-c[1].length&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:J,srcEvent:a}))}}),Cb={touchstart:O,touchmove:P,touchend:Q,touchcancel:R},Db="touchstart touchmove touchend touchcancel",p(Eb,ab,{handler:function(a){var b=Cb[a.type],c=Fb.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:J,srcEvent:a})}}),p(Gb,ab,{handler:function(a,b,c){var d=c.pointerType==J,e=c.pointerType==L;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Q|R)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}}),Hb=B(f.style,"touchAction"),Ib=Hb!==d,Jb="compute",Kb="auto",Lb="manipulation",Mb="none",Nb="pan-x",Ob="pan-y",Pb.prototype={set:function(a){a==Jb&&(a=this.compute()),Ib&&(this.manager.element.style[Hb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return m(this.manager.recognizers,function(b){r(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),Qb(a.join(" "))},preventDefaults:function(a){var b,c,d,e,f,g;if(!Ib)return b=a.srcEvent,c=a.offsetDirection,this.manager.session.prevented?(b.preventDefault(),void 0):(d=this.actions,e=w(d,Mb),f=w(d,Ob),g=w(d,Nb),e||f&&c&X||g&&c&Y?this.preventSrc(b):void 0)},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}},Rb=1,Sb=2,Tb=4,Ub=8,Vb=Ub,Wb=16,Xb=32,Yb.prototype={defaults:{},set:function(a){return n(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(l(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_b(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return l(a,"dropRecognizeWith",this)?this:(a=_b(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(l(a,"requireFailure",this))return this;var b=this.requireFail;return a=_b(a,this),-1===y(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(l(a,"dropRequireFailure",this))return this;a=_b(a,this);var b=y(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function d(d){b.manager.emit(b.options.event+(d?Zb(c):""),a)}var b=this,c=this.state;Ub>c&&d(!0),d(),c>=Ub&&d(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):(this.state=Xb,void 0)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(Xb|Rb)))return!1;a++}return!0},recognize:function(a){var b=n({},a);return r(this.options.enable,[this,b])?(this.state&(Vb|Wb|Xb)&&(this.state=Rb),this.state=this.process(b),this.state&(Sb|Tb|Ub|Wb)&&this.tryEmit(b),void 0):(this.reset(),this.state=Xb,void 0)},process:function(){},getTouchAction:function(){},reset:function(){}},p(ac,Yb,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(Sb|Tb),e=this.attrTest(a);return d&&(c&R||!e)?b|Wb:d||e?c&Q?b|Ub:b&Sb?b|Tb:Sb:Xb}}),p(bc,ac,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var a=this.options.direction,b=[];return a&X&&b.push(Ob),a&Y&&b.push(Nb),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&X?(e=0===f?S:0>f?T:U,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?S:0>g?V:W,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return ac.prototype.attrTest.call(this,a)&&(this.state&Sb||!(this.state&Sb)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$b(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),p(cc,ac,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Mb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&Sb)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),p(dc,Yb,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Kb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,e=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Q|R)&&!e)this.reset();else if(a.eventType&O)this.reset(),this._timer=k(function(){this.state=Vb,this.tryEmit()},b.time,this);else if(a.eventType&Q)return Vb;return Xb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===Vb&&(a&&a.eventType&Q?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=j(),this.manager.emit(this.options.event,this._input)))}}),p(ec,ac,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Mb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&Sb)}}),p(fc,ac,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:X|Y,pointers:1},getTouchAction:function(){return bc.prototype.getTouchAction.call(this)},attrTest:function(a){var c,b=this.options.direction;return b&(X|Y)?c=a.velocity:b&X?c=a.velocityX:b&Y&&(c=a.velocityY),this._super.attrTest.call(this,a)&&b&a.direction&&a.distance>this.options.threshold&&i(c)>this.options.velocity&&a.eventType&Q},emit:function(a){var b=$b(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),p(gc,Yb,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[Lb]},process:function(a){var f,g,h,b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,e=a.deltaTime<b.time;if(this.reset(),a.eventType&O&&0===this.count)return this.failTimeout();if(d&&e&&c){if(a.eventType!=Q)return this.failTimeout();if(f=this.pTime?a.timeStamp-this.pTime<b.interval:!0,g=!this.pCenter||kb(this.pCenter,a.center)<b.posThreshold,this.pTime=a.timeStamp,this.pCenter=a.center,g&&f?this.count+=1:this.count=1,this._input=a,h=this.count%b.taps,0===h)return this.hasRequireFailures()?(this._timer=k(function(){this.state=Vb,this.tryEmit()},b.interval,this),Sb):Vb}return Xb},failTimeout:function(){return this._timer=k(function(){this.state=Xb},this.options.interval,this),Xb},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Vb&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),hc.VERSION="2.0.4",hc.defaults={domEvents:!1,touchAction:Jb,enable:!0,inputTarget:null,inputClass:null,preset:[[ec,{enable:!1}],[cc,{enable:!1},["rotate"]],[fc,{direction:X}],[bc,{direction:X},["swipe"]],[gc],[gc,{event:"doubletap",taps:2},["tap"]],[dc]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ic=1,jc=2,kc.prototype={set:function(a){return n(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?jc:ic},recognize:function(a){var c,d,e,f,b=this.session;if(!b.stopped)for(this.touchAction.preventDefaults(a),d=this.recognizers,e=b.curRecognizer,(!e||e&&e.state&Vb)&&(e=b.curRecognizer=null),f=0;f<d.length;)c=d[f],b.stopped===jc||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(Sb|Tb|Ub)&&(e=b.curRecognizer=c),f++},get:function(a){var b,c;if(a instanceof Yb)return a;for(b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(l(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(l(a,"remove",this))return this;var b=this.recognizers;return a=this.get(a),b.splice(y(b,a),1),this.touchAction.update(),this},on:function(a,b){var c=this.handlers;return m(x(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this},off:function(a,b){var c=this.handlers;return m(x(a),function(a){b?c[a].splice(y(c[a],b),1):delete c[a]}),this},emit:function(a,b){var c,d;if(this.options.domEvents&&mc(a,b),c=this.handlers[a]&&this.handlers[a].slice(),c&&c.length)for(b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()},d=0;d<c.length;)c[d](b),d++},destroy:function(){this.element&&lc(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},n(hc,{INPUT_START:O,INPUT_MOVE:P,INPUT_END:Q,INPUT_CANCEL:R,STATE_POSSIBLE:Rb,STATE_BEGAN:Sb,STATE_CHANGED:Tb,STATE_ENDED:Ub,STATE_RECOGNIZED:Vb,STATE_CANCELLED:Wb,STATE_FAILED:Xb,DIRECTION_NONE:S,DIRECTION_LEFT:T,DIRECTION_RIGHT:U,DIRECTION_UP:V,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:Y,DIRECTION_ALL:Z,Manager:kc,Input:ab,TouchAction:Pb,TouchInput:Eb,MouseInput:rb,PointerEventInput:wb,TouchMouseInput:Gb,SingleTouchInput:Ab,Recognizer:Yb,AttrRecognizer:ac,Tap:gc,Pan:bc,Swipe:fc,Pinch:cc,Rotate:ec,Press:dc,on:t,off:u,each:m,merge:o,extend:n,inherit:p,bindFn:q,prefixed:B}),typeof define==g&&define.amd?define(function(){return hc}):"undefined"!=typeof module&&module.exports?module.exports=hc:a[c]=hc}(window,document,"Hammer");

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){n(6),n(7),e.exports=n(8)},function(e,t,n){(function(t){!function(n){function r(e,t){return function(){e.apply(t,arguments)}}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(e,r(a,this),r(s,this))}function o(e){var t=this;return null===this._state?void this._deferreds.push(e):void f(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return void(t._state?e.resolve:e.reject)(t._value);var r;try{r=n(t._value)}catch(i){return void e.reject(i)}e.resolve(r)})}function a(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void l(r(t,e),r(a,this),r(s,this))}this._state=!0,this._value=e,u.call(this)}catch(n){s.call(this,n)}}function s(e){this._state=!1,this._value=e,u.call(this)}function u(){for(var e=0,t=this._deferreds.length;t>e;e++)o.call(this,this._deferreds[e]);this._deferreds=null}function c(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function l(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(i){if(r)return;r=!0,n(i)}}var f="function"==typeof t&&t||function(e){setTimeout(e,1)},d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=this;return new i(function(r,i){o.call(n,new c(e,t,r,i))})},i.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&d(arguments[0])?arguments[0]:arguments);return new i(function(t,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(o,e)},n)}e[o]=a,0===--i&&t(e)}catch(u){n(u)}}if(0===e.length)return t([]);for(var i=e.length,o=0;o<e.length;o++)r(o,e[o])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(t){t(e)})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(t,n){for(var r=0,i=e.length;i>r;r++)e[r].then(t,n)})},i._setImmediateFn=function(e){f=e},i.prototype.always=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},"undefined"!=typeof e&&e.exports?e.exports=i:n.Promise||(n.Promise=i)}(this)}).call(t,n(2).setImmediate)},function(e,t,n){(function(e,r){function i(e,t){this._id=e,this._clearFn=t}var o=n(3).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,u={},c=0;t.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=c++,r=arguments.length<2?!1:s.call(arguments,1);return u[n]=!0,o(function(){u[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete u[e]}}).call(t,n(2).setImmediate,n(2).clearImmediate)},function(e,t){function n(){c=!1,a.length?u=a.concat(u):l=-1,u.length&&r()}function r(){if(!c){var e=setTimeout(n);c=!0;for(var t=u.length;t;){for(a=u,u=[];++l<t;)a&&a[l].run();l=-1,t=u.length}a=null,c=!1,clearTimeout(e)}}function i(e,t){this.fun=e,this.array=t}function o(){}var a,s=e.exports={},u=[],c=!1,l=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new i(e,t)),1!==u.length||c||setTimeout(r,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=o,s.addListener=o,s.once=o,s.off=o,s.removeListener=o,s.removeAllListeners=o,s.emit=o,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t){function n(){var e=~navigator.userAgent.indexOf("Android")&&~navigator.vendor.indexOf("Google")&&!~navigator.userAgent.indexOf("Chrome");return e&&navigator.userAgent.match(/AppleWebKit\/(\d+)/).pop()<=534||/MQQBrowser/g.test(navigator.userAgent)}function r(){var e=this,t=[],n=Array(21).join("-")+(+new Date*(1e16*Math.random())).toString(36),r=XMLHttpRequest.prototype.send;this.getParts=function(){return t.toString()},this.append=function(e,r,i){t.push("--"+n+'\r\nContent-Disposition: form-data; name="'+e+'"'),r instanceof Blob?(t.push('; filename="'+(i||"blob")+'"\r\nContent-Type: '+r.type+"\r\n\r\n"),t.push(r)):t.push("\r\n\r\n"+r),t.push("\r\n")},XMLHttpRequest.prototype.send=function(o){var a,s,u=this;o===e?(t.push("--"+n+"--\r\n"),s=new i(t),a=new FileReader,a.onload=function(){r.call(u,a.result)},a.onerror=function(e){throw e},a.readAsArrayBuffer(s),this.setRequestHeader("Content-Type","multipart/form-data; boundary="+n),XMLHttpRequest.prototype.send=r):r.call(this,o)}}var i=function(){try{return new Blob,!0}catch(e){return!1}}()?window.Blob:function(e,t){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MSBlobBuilder||window.MozBlobBuilder);return e.forEach(function(e){n.append(e)}),n.getBlob(t?t.type:void 0)};e.exports={Blob:i,FormData:n()?r:FormData}},function(e,t,n){var r,i;(function(){function n(e){return!!e.exifdata}function o(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;r>a;a++)o[a]=n.charCodeAt(a);return i}function a(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){(200==this.status||0===this.status)&&t(this.response)},n.send()}function s(e,t){function n(n){var r=u(n),i=c(n);e.exifdata=r||{},e.iptcdata=i||{},t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src)){var r=o(e.src);n(r)}else if(/^blob\:/i.test(e.src)){var i=new FileReader;i.onload=function(e){n(e.target.result)},a(e.src,function(e){i.readAsArrayBuffer(e)})}else{var s=new XMLHttpRequest;s.onload=function(){200==this.status||0===this.status?n(s.response):t(new Error("Could not load image")),s=null},s.open("GET",e.src,!0),s.responseType="arraybuffer",s.send(null)}else if(window.FileReader&&(e instanceof window.Blob||e instanceof window.File)){var i=new FileReader;i.onload=function(e){p&&console.log("Got file of length "+e.target.result.byteLength),n(e.target.result)},i.readAsArrayBuffer(e)}}function u(e){var t=new DataView(e);if(p&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return p&&console.log("Not a valid JPEG"),!1;for(var n,r=2,i=e.byteLength;i>r;){if(255!=t.getUint8(r))return p&&console.log("Not a valid marker at offset "+r+", found: "+t.getUint8(r)),!1;if(n=t.getUint8(r+1),p&&console.log(n),225==n)return p&&console.log("Found 0xFFE1 marker"),g(t,r+4,t.getUint16(r+2)-2);r+=2+t.getUint16(r+2)}}function c(e){var t=new DataView(e);if(p&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return p&&console.log("Not a valid JPEG"),!1;for(var n=2,r=e.byteLength,i=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};r>n;){if(i(t,n)){var o=t.getUint8(n+7);o%2!==0&&(o+=1),0===o&&(o=4);var a=n+8+o,s=t.getUint16(n+6+o);return l(e,a,s)}n++}}function l(e,t,n){for(var r,i,o,a,s,u=new DataView(e),c={},l=t;t+n>l;)28===u.getUint8(l)&&2===u.getUint8(l+1)&&(a=u.getUint8(l+2),a in S&&(o=u.getInt16(l+3),s=o+5,i=S[a],r=h(u,l+5,o),c.hasOwnProperty(i)?c[i]instanceof Array?c[i].push(r):c[i]=[c[i],r]:c[i]=r)),l++;return c}function f(e,t,n,r,i){var o,a,s,u=e.getUint16(n,!i),c={};for(s=0;u>s;s++)o=n+12*s+2,a=r[e.getUint16(o,!i)],!a&&p&&console.log("Unknown tag: "+e.getUint16(o,!i)),c[a]=d(e,o,t,n,i);return c}function d(e,t,n,r,i){var o,a,s,u,c,l,f=e.getUint16(t+2,!i),d=e.getUint32(t+4,!i),g=e.getUint32(t+8,!i)+n;switch(f){case 1:case 7:if(1==d)return e.getUint8(t+8,!i);for(o=d>4?g:t+8,a=[],u=0;d>u;u++)a[u]=e.getUint8(o+u);return a;case 2:return o=d>4?g:t+8,h(e,o,d-1);case 3:if(1==d)return e.getUint16(t+8,!i);for(o=d>2?g:t+8,a=[],u=0;d>u;u++)a[u]=e.getUint16(o+2*u,!i);return a;case 4:if(1==d)return e.getUint32(t+8,!i);for(a=[],u=0;d>u;u++)a[u]=e.getUint32(g+4*u,!i);return a;case 5:if(1==d)return c=e.getUint32(g,!i),l=e.getUint32(g+4,!i),s=new Number(c/l),s.numerator=c,s.denominator=l,s;for(a=[],u=0;d>u;u++)c=e.getUint32(g+8*u,!i),l=e.getUint32(g+4+8*u,!i),a[u]=new Number(c/l),a[u].numerator=c,a[u].denominator=l;return a;case 9:if(1==d)return e.getInt32(t+8,!i);for(a=[],u=0;d>u;u++)a[u]=e.getInt32(g+4*u,!i);return a;case 10:if(1==d)return e.getInt32(g,!i)/e.getInt32(g+4,!i);for(a=[],u=0;d>u;u++)a[u]=e.getInt32(g+8*u,!i)/e.getInt32(g+4+8*u,!i);return a}}function h(e,t,n){var r,i="";for(r=t;t+n>r;r++)i+=String.fromCharCode(e.getUint8(r));return i}function g(e,t){if("Exif"!=h(e,t,4))return p&&console.log("Not valid EXIF data! "+h(e,t,4)),!1;var n,r,i,o,a,s=t+6;if(18761==e.getUint16(s))n=!1;else{if(19789!=e.getUint16(s))return p&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;n=!0}if(42!=e.getUint16(s+2,!n))return p&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var u=e.getUint32(s+4,!n);if(8>u)return p&&console.log("Not valid TIFF data! (First offset less than 8)",e.getUint32(s+4,!n)),!1;if(r=f(e,s,s+u,v,n),r.ExifIFDPointer){o=f(e,s,s+r.ExifIFDPointer,w,n);for(i in o){switch(i){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":o[i]=b[i][o[i]];break;case"ExifVersion":case"FlashpixVersion":o[i]=String.fromCharCode(o[i][0],o[i][1],o[i][2],o[i][3]);break;case"ComponentsConfiguration":o[i]=b.Components[o[i][0]]+b.Components[o[i][1]]+b.Components[o[i][2]]+b.Components[o[i][3]]}r[i]=o[i]}}if(r.GPSInfoIFDPointer){a=f(e,s,s+r.GPSInfoIFDPointer,y,n);for(i in a){switch(i){case"GPSVersionID":a[i]=a[i][0]+"."+a[i][1]+"."+a[i][2]+"."+a[i][3]}r[i]=a[i]}}return r}var p=!1,m=function(e){return e instanceof m?e:this instanceof m?void(this.EXIFwrapped=e):new m(e)};"undefined"!=typeof e&&e.exports&&(t=e.exports=m),t.EXIF=m;var w=m.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},v=m.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},y=m.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},b=m.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}},S={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};m.getData=function(e,t){return(e instanceof Image||e instanceof HTMLImageElement)&&!e.complete?!1:(n(e)?t&&t.call(e):s(e,t),!0)},m.getTag=function(e,t){return n(e)?e.exifdata[t]:void 0},m.getAllTags=function(e){if(!n(e))return{};var t,r=e.exifdata,i={};for(t in r)r.hasOwnProperty(t)&&(i[t]=r[t]);return i},m.pretty=function(e){if(!n(e))return"";var t,r=e.exifdata,i="";for(t in r)r.hasOwnProperty(t)&&(i+="object"==typeof r[t]?r[t]instanceof Number?t+" : "+r[t]+" ["+r[t].numerator+"/"+r[t].denominator+"]\r\n":t+" : ["+r[t].length+" values]\r\n":t+" : "+r[t]+"\r\n");return i},m.readFromBinaryFile=function(e){return u(e)},r=[],i=function(){return m}.apply(t,r),!(void 0!==i&&(e.exports=i))}).call(this)},function(e,t,n){var r,i;!function(){function n(e){var t=e.naturalWidth,n=e.naturalHeight;if(t*n>1048576){var r=document.createElement("canvas");r.width=r.height=1;var i=r.getContext("2d");return i.drawImage(e,-t+1,0),0===i.getImageData(0,0,1,1).data[3]}return!1}function o(e,t,n){var r=document.createElement("canvas");r.width=1,r.height=n;var i=r.getContext("2d");i.drawImage(e,0,0);for(var o=i.getImageData(0,0,1,n).data,a=0,s=n,u=n;u>a;){var c=o[4*(u-1)+3];0===c?s=u:a=u,u=s+a>>1}var l=u/n;return 0===l?1:l}function a(e,t,n){var r=document.createElement("canvas");return s(e,r,t,n),r.toDataURL("image/jpeg",t.quality||.8)}function s(e,t,r,i){var a=e.naturalWidth,s=e.naturalHeight,c=r.width,l=r.height,f=t.getContext("2d");f.save(),u(t,f,c,l,r.orientation);var d=n(e);d&&(a/=2,s/=2);var h=1024,g=document.createElement("canvas");g.width=g.height=h;for(var p=g.getContext("2d"),m=i?o(e,a,s):1,w=Math.ceil(h*c/a),v=Math.ceil(h*l/s/m),y=0,b=0;s>y;){for(var S=0,I=0;a>S;)p.clearRect(0,0,h,h),p.drawImage(e,-S,-y),f.drawImage(g,0,0,h,h,I,b,w,v),S+=h,I+=w;y+=h,b+=v}f.restore(),g=p=null}function u(e,t,n,r,i){switch(i){case 5:case 6:case 7:case 8:e.width=r,e.height=n;break;default:e.width=n,e.height=r}switch(i){case 2:t.translate(n,0),t.scale(-1,1);break;case 3:t.translate(n,r),t.rotate(Math.PI);break;case 4:t.translate(0,r),t.scale(1,-1);break;case 5:t.rotate(.5*Math.PI),t.scale(1,-1);break;case 6:t.rotate(.5*Math.PI),t.translate(0,-r);break;case 7:t.rotate(.5*Math.PI),t.translate(n,-r),t.scale(-1,1);break;case 8:t.rotate(-.5*Math.PI),t.translate(-n,0)}}function c(e){if(window.Blob&&e instanceof Blob){var t=new Image,n=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;if(!n)throw Error("No createObjectURL function found to create blob url");t.src=n.createObjectURL(e),this.blob=e,e=t}if(!e.naturalWidth&&!e.naturalHeight){var r=this;e.onload=function(){var e=r.imageLoadListeners;if(e){r.imageLoadListeners=null;for(var t=0,n=e.length;n>t;t++)e[t]()}},this.imageLoadListeners=[]}this.srcImage=e}c.prototype.render=function(e,t,n){if(this.imageLoadListeners){var r=this;return void this.imageLoadListeners.push(function(){r.render(e,t,n)})}t=t||{};var i=this.srcImage,o=i.src,u=o.length,c=i.naturalWidth,l=i.naturalHeight,f=t.width,d=t.height,h=t.maxWidth,g=t.maxHeight,p=this.blob&&"image/jpeg"===this.blob.type||0===o.indexOf("data:image/jpeg")||o.indexOf(".jpg")===u-4||o.indexOf(".jpeg")===u-5;f&&!d?d=l*f/c<<0:d&&!f?f=c*d/l<<0:(f=c,d=l),h&&f>h&&(f=h,d=l*f/c<<0),g&&d>g&&(d=g,f=c*d/l<<0);var m={width:f,height:d};for(var w in t)m[w]=t[w];var v=e.tagName.toLowerCase();"img"===v?e.src=a(this.srcImage,m,p):"canvas"===v&&s(this.srcImage,e,m,p),"function"==typeof this.onrender&&this.onrender(e),n&&n()},r=[],i=function(){return c}.apply(t,r),!(void 0!==i&&(e.exports=i))}()},function(e,t){function n(e){function t(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;64>n;n++){var r=F((t[n]*e+50)/100);1>r?r=1:r>255&&(r=255),x[N[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;64>o;o++){var a=F((i[o]*e+50)/100);1>a?a=1:a>255&&(a=255),D[N[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],u=0,c=0;8>c;c++)for(var l=0;8>l;l++)U[u]=1/(x[N[u]]*s[c]*s[l]*8),C[u]=1/(D[N[u]]*s[c]*s[l]*8),u++}function n(e,t){for(var n=0,r=0,i=new Array,o=1;16>=o;o++){for(var a=1;a<=e[o];a++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=o,r++,n++;n*=2}return i}function r(){y=n(W,H),b=n(V,X),S=n(z,q),I=n(Q,Y)}function i(){for(var e=1,t=2,n=1;15>=n;n++){for(var r=e;t>r;r++)A[32767+r]=n,T[32767+r]=[],T[32767+r][1]=n,T[32767+r][0]=r;for(var i=-(t-1);-e>=i;i++)A[32767+i]=n,T[32767+i]=[],T[32767+i][1]=n,T[32767+i][0]=t-1+i;e<<=1,t<<=1}}function o(){for(var e=0;256>e;e++)k[e]=19595*e,k[e+256>>0]=38470*e,k[e+512>>0]=7471*e+32768,k[e+768>>0]=-11059*e,k[e+1024>>0]=-21709*e,k[e+1280>>0]=32768*e+8421375,k[e+1536>>0]=-27439*e,k[e+1792>>0]=-5329*e}function a(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(G|=1<<O),n--,O--,0>O&&(255==G?(s(255),s(0)):s(G),O=7,G=0)}function s(e){M.push(j[e])}function u(e){s(e>>8&255),s(255&e)}function c(e,t){var n,r,i,o,a,s,u,c,l,f=0;const d=8,h=64;for(l=0;d>l;++l){n=e[f],r=e[f+1],i=e[f+2],o=e[f+3],a=e[f+4],s=e[f+5],u=e[f+6],c=e[f+7];var g=n+c,p=n-c,m=r+u,w=r-u,v=i+s,y=i-s,b=o+a,S=o-a,I=g+b,P=g-b,F=m+v,x=m-v;e[f]=I+F,e[f+4]=I-F;var D=.707106781*(x+P);e[f+2]=P+D,e[f+6]=P-D,I=S+y,F=y+w,x=w+p;var U=.382683433*(I-x),C=.5411961*I+U,T=1.306562965*x+U,A=.707106781*F,R=p+A,M=p-A;e[f+5]=M+C,e[f+3]=M-C,e[f+1]=R+T,e[f+7]=R-T,f+=8}for(f=0,l=0;d>l;++l){n=e[f],r=e[f+8],i=e[f+16],o=e[f+24],a=e[f+32],s=e[f+40],u=e[f+48],c=e[f+56];var G=n+c,O=n-c,_=r+u,B=r-u,E=i+s,j=i-s,k=o+a,N=o-a,W=G+k,H=G-k,z=_+E,q=_-E;e[f]=W+z,e[f+32]=W-z;var V=.707106781*(q+H);e[f+16]=H+V,e[f+48]=H-V,W=N+j,z=j+B,q=B+O;var X=.382683433*(W-q),Q=.5411961*W+X,Y=1.306562965*q+X,K=.707106781*z,J=O+K,Z=O-K;e[f+40]=Z+Q,e[f+24]=Z-Q,e[f+8]=J+Y,e[f+56]=J-Y,f++}var $;for(l=0;h>l;++l)$=e[l]*t[l],L[l]=$>0?$+.5|0:$-.5|0;return L}function l(){u(65504),u(16),s(74),s(70),s(73),s(70),s(0),s(1),s(1),s(0),u(1),u(1),s(0),s(0)}function f(e,t){u(65472),u(17),s(8),u(t),u(e),s(3),s(1),s(17),s(0),s(2),s(17),s(1),s(3),s(17),s(1)}function d(){u(65499),u(132),s(0);for(var e=0;64>e;e++)s(x[e]);s(1);for(var t=0;64>t;t++)s(D[t])}function h(){u(65476),u(418),s(0);for(var e=0;16>e;e++)s(W[e+1]);for(var t=0;11>=t;t++)s(H[t]);s(16);for(var n=0;16>n;n++)s(z[n+1]);for(var r=0;161>=r;r++)s(q[r]);s(1);for(var i=0;16>i;i++)s(V[i+1]);for(var o=0;11>=o;o++)s(X[o]);s(17);for(var a=0;16>a;a++)s(Q[a+1]);for(var c=0;161>=c;c++)s(Y[c])}function g(){u(65498),u(12),s(3),s(1),s(0),s(2),s(17),s(3),s(17),s(0),s(63),s(0)}function p(e,t,n,r,i){var o,s=i[0],u=i[240];const l=16,f=63,d=64;for(var h=c(e,t),g=0;d>g;++g)R[N[g]]=h[g];var p=R[0]-n;n=R[0],0==p?a(r[0]):(o=32767+p,a(r[A[o]]),a(T[o]));for(var m=63;m>0&&0==R[m];m--);if(0==m)return a(s),n;for(var w,v=1;m>=v;){for(var y=v;0==R[v]&&m>=v;++v);var b=v-y;if(b>=l){w=b>>4;for(var S=1;w>=S;++S)a(u);b=15&b}o=32767+R[v],a(i[(b<<4)+A[o]]),a(T[o]),v++}return m!=f&&a(s),n}function m(){for(var e=String.fromCharCode,t=0;256>t;t++)j[t]=e(t)}function w(e){if(0>=e&&(e=1),e>100&&(e=100),P!=e){var n=0;n=50>e?Math.floor(5e3/e):Math.floor(200-2*e),t(n),P=e}}function v(){var t=(new Date).getTime();e||(e=50),m(),r(),i(),o(),w(e);(new Date).getTime()-t}var y,b,S,I,P,F=(Math.round,Math.floor),x=new Array(64),D=new Array(64),U=new Array(64),C=new Array(64),T=new Array(65535),A=new Array(65535),L=new Array(64),R=new Array(64),M=[],G=0,O=7,_=new Array(64),B=new Array(64),E=new Array(64),j=new Array(256),k=new Array(2048),N=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],W=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],H=[0,1,2,3,4,5,6,7,8,9,10,11],z=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],q=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],V=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],X=[0,1,2,3,4,5,6,7,8,9,10,11],Q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Y=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];this.encode=function(e,t,n){var r=(new Date).getTime();t&&w(t),M=new Array,G=0,O=7,u(65496),l(),d(),f(e.width,e.height),h(),g();var i=0,o=0,s=0;G=0,O=7,this.encode.displayName="_encode_";for(var c,m,v,P,F,x,D,T,A,L=e.data,R=e.width,j=e.height,N=4*R,W=0;j>W;){for(c=0;N>c;){for(F=N*W+c,x=F,D=-1,T=0,A=0;64>A;A++)T=A>>3,D=4*(7&A),x=F+T*N+D,W+T>=j&&(x-=N*(W+1+T-j)),c+D>=N&&(x-=c+D-N+4),m=L[x++],v=L[x++],P=L[x++],_[A]=(k[m]+k[v+256>>0]+k[P+512>>0]>>16)-128,B[A]=(k[m+768>>0]+k[v+1024>>0]+k[P+1280>>0]>>16)-128,E[A]=(k[m+1280>>0]+k[v+1536>>0]+k[P+1792>>0]>>16)-128;i=p(_,U,i,y,S),o=p(B,C,o,b,I),s=p(E,C,s,b,I),c+=32}W+=8}if(O>=0){var H=[];H[1]=O+1,H[0]=(1<<O+1)-1,a(H)}if(u(65497),n){for(var z=M.length,q=new Uint8Array(z),V=0;z>V;V++)q[V]=M[V].charCodeAt();M=[];(new Date).getTime()-r;return q}var X="data:image/jpeg;base64,"+btoa(M.join(""));M=[];(new Date).getTime()-r;return X},v()}e.exports=n},function(e,t,n){function r(e,t){var n=this;if(!e)throw new Error("没有收到图片，可能的解决方案：https://github.com/think2011/localResizeIMG/issues/7");t=t||{},n.defaults={width:null,height:null,fieldName:"file",quality:.7},n.file=e;for(var r in t)t.hasOwnProperty(r)&&(n.defaults[r]=t[r]);return this.init()}function i(e){var t=null;return t=e?[].filter.call(document.scripts,function(t){return-1!==t.src.indexOf(e)})[0]:document.scripts[document.scripts.length-1],t?t.src.substr(0,t.src.lastIndexOf("/")):null}function o(e){var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var n=e.split(",")[0].split(":")[1].split(";")[0],r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return new s.Blob([r.buffer],{type:n})}n.p=i("lrz")+"/",window.URL=window.URL||window.webkitURL;var a=n(1),s=n(4),u=n(5),c=function(e){var t=/OS (\d)_.* like Mac OS X/g.exec(e),n=/Android (\d.*?);/g.exec(e)||/Android\/(\d.*?) /g.exec(e);return{oldIOS:t?+t.pop()<8:!1,oldAndroid:n?+n.pop().substr(0,3)<4.5:!1,iOS:/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(e),android:/Android/g.test(e),mQQBrowser:/MQQBrowser/g.test(e)}}(navigator.userAgent);r.prototype.init=function(){var e=this,t=e.file,n="string"==typeof t,r=/^data:/.test(t),i=new Image,u=document.createElement("canvas"),c=n?t:URL.createObjectURL(t);if(e.img=i,e.blob=c,e.canvas=u,n?e.fileName=r?"base64.jpg":t.split("/").pop():e.fileName=t.name,!document.createElement("canvas").getContext)throw new Error("浏览器不支持canvas");return new a(function(n,a){i.onerror=function(){throw new Error("加载图片文件失败")},i.onload=function(){e._getBase64().then(function(e){return e.length<10&&a("生成base64失败"),e}).then(function(r){var i=null;"object"==typeof e.file&&r.length>e.file.size?(i=new FormData,t=e.file):(i=new s.FormData,t=o(r)),i.append(e.defaults.fieldName,t,e.fileName.replace(/\..+/g,".jpg")),n({formData:i,fileLen:+t.size,base64:r,base64Len:r.length,origin:e.file});for(var a in e)e.hasOwnProperty(a)&&(e[a]=null);URL.revokeObjectURL(e.blob)})},!r&&(i.crossOrigin="*"),i.src=c})},r.prototype._getBase64=function(){var e=this,t=e.img,n=e.file,r=e.canvas;return new a(function(i){try{u.getData("object"==typeof n?n:t,function(){e.orientation=u.getTag(this,"Orientation"),e.resize=e._getResize(),e.ctx=r.getContext("2d"),r.width=e.resize.width,r.height=e.resize.height,e.ctx.fillStyle="#fff",e.ctx.fillRect(0,0,r.width,r.height),c.oldIOS?e._createBase64ForOldIOS().then(i):e._createBase64().then(i)})}catch(o){throw new Error(o)}})},r.prototype._createBase64ForOldIOS=function(){var e=this,t=e.img,r=e.canvas,i=e.defaults,o=e.orientation;return new a(function(e){!function(){var a=[n(6)];(function(n){var a=new n(t);"5678".indexOf(o)>-1?a.render(r,{width:r.height,height:r.width,orientation:o}):a.render(r,{width:r.width,height:r.height,orientation:o}),e(r.toDataURL("image/jpeg",i.quality))}).apply(null,a)}()})},r.prototype._createBase64=function(){var e=this,t=e.resize,r=e.img,i=e.canvas,o=e.ctx,s=e.defaults,u=e.orientation;switch(u){case 3:o.rotate(180*Math.PI/180),o.drawImage(r,-t.width,-t.height,t.width,t.height);break;case 6:o.rotate(90*Math.PI/180),o.drawImage(r,0,-t.width,t.height,t.width);break;case 8:o.rotate(270*Math.PI/180),o.drawImage(r,-t.height,0,t.height,t.width);break;case 2:o.translate(t.width,0),o.scale(-1,1),o.drawImage(r,0,0,t.width,t.height);break;case 4:o.translate(t.width,0),o.scale(-1,1),o.rotate(180*Math.PI/180),o.drawImage(r,-t.width,-t.height,t.width,t.height);break;case 5:o.translate(t.width,0),o.scale(-1,1),o.rotate(90*Math.PI/180),o.drawImage(r,0,-t.width,t.height,t.width);break;case 7:o.translate(t.width,0),o.scale(-1,1),o.rotate(270*Math.PI/180),o.drawImage(r,-t.height,0,t.height,t.width);break;default:o.drawImage(r,0,0,t.width,t.height)}return new a(function(e){c.oldAndroid||c.mQQBrowser||!navigator.userAgent?!function(){var t=[n(7)];(function(t){var n=new t,r=o.getImageData(0,0,i.width,i.height);e(n.encode(r,100*s.quality))}).apply(null,t)}():e(i.toDataURL("image/jpeg",s.quality))})},r.prototype._getResize=function(){var e=this,t=e.img,n=e.defaults,r=n.width,i=n.height,o=e.orientation,a={width:t.width,height:t.height};if("5678".indexOf(o)>-1&&(a.width=t.height,a.height=t.width),a.width<r||a.height<i)return a;var s=a.width/a.height;for(r&&i?s>=r/i?a.width>r&&(a.width=r,a.height=Math.ceil(r/s)):a.height>i&&(a.height=i,a.width=Math.ceil(i*s)):r?r<a.width&&(a.width=r,a.height=Math.ceil(r/s)):i&&i<a.height&&(a.width=Math.ceil(i*s),a.height=i);a.width>=3264||a.height>=2448;)a.width*=.8,a.height*=.8;return a},window.lrz=function(e,t){return new r(e,t)},window.lrz.version="4.8.35",e.exports=window.lrz}])});

!function(a,b){"use strict";"function"==typeof define&&define.amd?define(["jquery","iscroll-zoom","hammer","lrz"],b):"object"==typeof exports?module.exports=b(require("jquery"),require("iscroll-zoom"),require("hammer"),require("lrz")):(a.bjj=a.bjj||{},a.bjj.PhotoClip=b(a.jQuery,a.IScroll,a.Hammer,a.lrz))}(this,function(a,b,c,d){"use strict";function f(b,c){var d,f;return window.FileReader?(d=a.extend({},e,c),f=g(b,d),this.destroy=f.destroy,void 0):(alert("您的浏览器不支持 HTML5 的 FileReader API， 因此无法初始化图片裁剪插件，请更换最新的浏览器！"),void 0)}function g(e,f){function R(){A=!0,E.append(this),cb.call(this,x,function(){y=this.naturalWidth,z=this.naturalHeight}),cb(D,function(){T()}),p.call(this,this.src)}function S(){var a={zoom:!0,scrollX:!0,scrollY:!0,freeScroll:!0,mouseWheel:!0,wheelAction:"zoom"};I=new b(C[0],a)}function T(){O=0,P=0,Q=0,E.css({width:y,height:z}),ib(E,O,P,Q),fb(y,z),I.zoom(I.options.zoomStart),U(y,z);var a=.5*(s-y*I.options.zoomStart),b=.5*(t-z*I.options.zoomStart);I.scrollTo(a,b)}function U(a,b){D.css({width:a,height:b}),C.append(D),I.refresh()}function V(){var b,d,a=!!navigator.userAgent.match(/mobile/i);a?(H=new c(D[0]),H.add(new c.Rotate),H.on("rotatemove",function(a){N||(b=a.rotation,b>180?b-=360:-180>b&&(b+=360),d=b>0?1:0>b?-1:0)}),H.on("rotateend",function(a){N||Math.abs(b)>30&&(1==d?W(a.center):-1==d&&X(a.center))})):D.on("dblclick",function(a){W({x:a.clientX,y:a.clientY})})}function W(a){Y(90,a)}function X(a){Y(-90,a)}function Y(a,b){var c,l,m,d,e,f,g,h,i,j,k;N||(N=!0,c=b?bb(D,b.x,b.y):ab(D,C,.5*s,.5*t),d=db(Q,c),e=d.x,f=d.y,g=0,h=0,i=0,j=0,k=Q+a,90==k||-270==k?(g=e+f,h=f-e,k>Q?(i=z-e-f,j=e-f):Q>k&&(i=z-f-(y-e),j=e+f-z),l=z,m=y):180==k||-180==k?(g=2*e,h=2*f,k>Q?(i=y-e-(z-f),j=z-(e+f)):Q>k&&(i=y-(e+f),j=z-f-(y-e)),l=y,m=z):270==k||-90==k?(g=e-f,h=e+f,k>Q?(i=e+f-y,j=y-e-(z-f)):Q>k&&(i=f-e,j=y-e-f),l=z,m=y):(0==k||360==k||-360==k)&&(g=0,h=0,k>Q?(i=e-f,j=e+f-y):Q>k&&(i=e+f-z,j=f-e),l=y,m=z),0==Q?(O=0,P=0):90==Q||-270==Q?(O-=e+f,P-=f-e):180==Q||-180==Q?(O-=2*e,P-=2*f):(270==Q||-90==Q)&&(O-=e-f,P-=e+f),O=O.toFixed(2)-0,P=P.toFixed(2)-0,ib(E,O,P,Q,e,f),jb(E,O,P,k,200,function(){N=!1,Q=k%360,O+=g+i,P+=h+j,O=O.toFixed(2)-0,P=P.toFixed(2)-0,ib(E,O,P,Q),I.scrollTo(I.x-i*I.scale,I.y-j*I.scale),fb(l,m),I.scale<I.options.zoomMin&&I.zoom(I.options.zoomMin),U(l,m)}))}function Z(){G=document.createElement("canvas")}function $(){var a,b,c,d;return A?(a=ab(D,C),b=I.scale,c=G.getContext("2d"),c.clearRect(0,0,G.width,G.height),c.save(),u&&v?(G.width=u,G.height=v,c.scale(u/s*b,v/t*b)):(G.width=s/b,G.height=t/b),c.translate(O-a.x/b,P-a.y/b),c.rotate(Q*Math.PI/180),c.drawImage(x[0],0,0),c.restore(),d=G.toDataURL(n,1),F.css("background-image","url("+d+")"),r.call(x[0],d),void 0):(alert("亲，当前没有图片可以裁剪!"),void 0)}function _(){cb(B,function(){J=B.width(),K=B.height()})}function ab(a,b,c,d){c=c||0,d=d||0;var e,f;return cb(a,function(){e=a.offset()}),cb(b,function(){f=b.offset()}),{x:f.left-e.left+c,y:f.top-e.top+d}}function bb(a,b,c){b=b||0,c=c||0;var d;return cb(a,function(){d=a.offset()}),{x:b+M.scrollLeft()-d.left,y:c+M.scrollTop()-d.top}}function cb(b,c){var d=a();a.each(b,function(b,c){var g,e=a(c),f=e.parents().andSelf().filter(":hidden");for(b=0;b<f.length&&e.is(":hidden");b++)g=f.eq(b),"none"==g.css("display")&&(d=d.add(g.show()))}),"function"==typeof c&&c.call(this),d.hide()}function db(a,b){var c=I.scale,d={};return 0==a?(d.x=b.x/c,d.y=b.y/c):90==a||-270==a?(d.x=b.y/c,d.y=z-b.x/c):180==a||-180==a?(d.x=y-b.x/c,d.y=z-b.y/c):(270==a||-90==a)&&(d.x=y-b.y/c,d.y=b.x/c),d}function eb(a,b,c,d){var e=a/c,f=b/d;return e>f?e:f}function fb(a,b){I.options.zoomMin=eb(s,t,a,b),I.options.zoomMax=Math.max(1,I.options.zoomMin),I.options.zoomStart=Math.min(I.options.zoomMax,eb(J,K,a,b))}function gb(){x&&x.length&&(x.remove(),delete x[0])}function hb(b){gb(),x=a("<img>").css({"user-select":"none","pointer-events":"none"}),x.load(R),x.attr("src",b)}function ib(a,b,c,d,e,f){e=e||0,f=f||0;var g={};g[h+"transform"]="translateZ(0) translate("+b+"px,"+c+"px) rotate("+d+"deg)",g[h+"transform-origin"]=e+"px "+f+"px",a.css(g)}function jb(a,b,c,d,e,f){a.css(h+"transform"),a.css(h+"transition",h+"transform "+e+"ms"),a.one(i,function(){a.css(h+"transition",""),f.call(this)}),a.css(h+"transform","translateZ(0) translate("+b+"px,"+c+"px) rotate("+d+"deg)")}function kb(a){return"[object Array]"===Object.prototype.toString.call(a)}function lb(){B=a(e).css({"user-select":"none",overflow:"hidden"}),"static"==B.css("position")&&B.css("position","relative"),C=a("<div class='photo-clip-view'>").css({position:"absolute",left:"50%",top:"50%",width:s,height:t,"margin-left":-s/2,"margin-top":-t/2}).appendTo(B),D=a("<div class='photo-clip-moveLayer'>").appendTo(C),E=a("<div class='photo-clip-rotateLayer'>").appendTo(D);var b=a("<div class='photo-clip-mask'>").css({position:"absolute",left:0,top:0,width:"100%",height:"100%","pointer-events":"none"}).appendTo(B);a("<div class='photo-clip-mask-left'>").css({position:"absolute",left:0,right:"50%",top:"50%",bottom:"50%",width:"auto",height:t,"margin-right":s/2,"margin-top":-t/2,"margin-bottom":-t/2,"background-color":"rgba(0,0,0,.5)"}).appendTo(b),a("<div class='photo-clip-mask-right'>").css({position:"absolute",left:"50%",right:0,top:"50%",bottom:"50%","margin-left":s/2,"margin-top":-t/2,"margin-bottom":-t/2,"background-color":"rgba(0,0,0,.5)"}).appendTo(b),a("<div class='photo-clip-mask-top'>").css({position:"absolute",left:0,right:0,top:0,bottom:"50%","margin-bottom":t/2,"background-color":"rgba(0,0,0,.5)"}).appendTo(b),a("<div class='photo-clip-mask-bottom'>").css({position:"absolute",left:0,right:0,top:"50%",bottom:0,"margin-top":t/2,"background-color":"rgba(0,0,0,.5)"}).appendTo(b),a("<div class='photo-clip-area'>").css({border:"1px dashed #ddd",position:"absolute",left:"50%",top:"50%",width:s,height:t,"margin-left":-s/2-1,"margin-top":-t/2-1}).appendTo(b),F=a(l),F.length&&F.css({"background-color":"#666","background-repeat":"no-repeat","background-position":"center","background-size":"contain"})}function mb(){w.off("change"),w=null,H?(H.off("rotatemove"),H.off("rotateend"),H=null):D.off("dblclick"),I.destroy(),I=null,B.empty(),B=null,C=null,D=null,E=null,F.css({"background-color":"","background-repeat":"","background-position":"","background-size":""}),F=null}var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,g=f.size,j=f.outputSize,k=f.file,l=f.view,m=f.ok,n="image/jpeg",o=f.loadStart,p=f.loadComplete,q=f.loadError,r=f.clipFinish;return kb(g)||(g=[260,260]),kb(j)||(j=[0,0]),s=g[0]||260,t=g[1]||260,u=Math.max(j[0],0),v=Math.max(j[1],0),w=a(k),w.length?(w.attr("accept","image/*"),w.on("change",function(){var a,b;if(this.files.length)return a=this.files[0],/image\/\w+/.test(a.type)?(b=new FileReader,b.onprogress=function(a){console.log((100*(a.loaded/a.total)).toFixed()+"%")},b.onload=function(){d(a).then(function(a){hb(a.base64)}).catch(function(a){alert("图片处理失败"),q.call(this,a)})},b.onerror=function(a){alert("图片加载失败"),q.call(this,a)},b.readAsDataURL(a),o.call(b,a),void 0):(alert("图片格式不正确，请选择正确格式的图片文件！"),!1)}),w.click(function(){this.value=""}),lb(),S(),V(),Z(),L=a(m),L.length&&L.click(function(){$()}),M=a(window),_(),M.resize(_),{destroy:mb}):void 0}var i,e={size:[260,260],outputSize:[0,0],file:"",view:"",ok:"",loadStart:function(){},loadComplete:function(){},loadError:function(){},clipFinish:function(){}},h="";return function(){var a,e,b={Webkit:"webkit",Moz:"",O:"o"},c=document.documentElement,d=function(b){return a?a+b:b.toLowerCase()};for(e in b)if(void 0!==c.style[e+"TransitionProperty"]){h="-"+e.toLowerCase()+"-",a=b[e];break}i=d("TransitionEnd")}(),f});var WxConfig = null,IsWX=PHSys=false,InUrl = window.location.href.split('#')[0];

var _sys_Indexing = false,_sys_Indexing_PY = '', isPageSta=0;		//车型索引


var ua = navigator.userAgent.toLowerCase();//srSys = null;

if(ua.match(/MicroMessenger/i) == 'micromessenger'){
	IsWX=true;
}
if(ua.indexOf('iphone') > -1){
	PHSys='IOS';
}else if(ua.indexOf('android') > -1 || ua.indexOf('linux') > -1){
	PHSys='ARD';
}else{
	PHSys='PC';
}



function countNum(to,item,obj){
	if($(to).length > 0 && $(to+'_count').length >0){
	
	var num = $(to+item).length,all = $(to+obj).length;
	
	
	if(all>num){
		$(to+'_count').html(num+'/'+all);
	}else{
		$(to+'_count').html(num);
	}
	$(to+obj).unbind('click').click(function(){countNum(to,item,obj)});
	
}
}


function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }
$(document).ready(function () {
  'use strict';
  $(document).on("pageInit", "#page-ptr", function(e, id, page) {
    var $content = $(page).find(".content").on('refresh', function(e) {
      // 2s timeout
      setTimeout(function() {
        var cardHTML = '<div class="card">' +
          '<div class="card-header">Title</div>' +
          '<div class="card-content">' +
          '<div class="card-content-inner">Contents Contents Contents Contents Contents Contents Contents Contents Contents ' +
          '</div>' +
          '</div>' +
          '</div>';

        $content.find('.card-container').prepend(cardHTML);
        // Done
        $.pullToRefreshDone($content);
      }, 2000);
    });
  });


  $(document).on("pageInit", "#page-ptr-tabs", function(e, id, page) {
    $(page).find(".pull-to-refresh-content").on('refresh', function(e) {
      // 2s timeout
      var $this = $(this);
      setTimeout(function() {

        $this.find('.content-block').prepend("<p>New Content......</p>");
        // Done
        $.pullToRefreshDone($this);
      }, 2000);
    });
    $(page).find(".infinite-scroll").on('infinite', function(e) {
      // 2s timeout
      var $this = $(this);
      if($this.data("loading")) return;
      $this.data("loading", 1);
      setTimeout(function() {
        $this.find('.content-block').append("<p>New Content......</p><p>New Content......</p><p>New Content......</p>");
        $this.data("loading", 0);
      }, 2000);
    });
  });

  $(document).on("pageInit", "#page-infinite-scroll", function(e, id, page) {
    function addItems(number, lastIndex) {
      var html = '';
      for (var i = 0; i < 20; i++) {
        html += '<li class="item-content"><div class="item-inner"><div class="item-title">Item'+i+'</div></div></li>';
      }
      $('.infinite-scroll .list-container').append(html);
    }
    var loading = false;
    $(page).on('infinite', function() {

      if (loading) return;

      loading = true;

      setTimeout(function() {
        loading = false;

        addItems();
      }, 1000);
    });
  });


  $(document).on("pageInit", "#page-photo-browser", function(e, id, page) {
    var myPhotoBrowserStandalone = $.photoBrowser({
      photos : [
        '//img.alicdn.com/tps/i3/TB1kt4wHVXXXXb_XVXX0HY8HXXX-1024-1024.jpeg',
        '//img.alicdn.com/tps/i1/TB1SKhUHVXXXXb7XXXX0HY8HXXX-1024-1024.jpeg',
        '//img.alicdn.com/tps/i4/TB1AdxNHVXXXXasXpXX0HY8HXXX-1024-1024.jpeg',
      ]
    });
    $(page).on('click','.pb-standalone',function () {
      myPhotoBrowserStandalone.open();
    });
    /*=== Popup ===*/
    var myPhotoBrowserPopup = $.photoBrowser({
      photos : [
        '//img.alicdn.com/tps/i3/TB1kt4wHVXXXXb_XVXX0HY8HXXX-1024-1024.jpeg',
        '//img.alicdn.com/tps/i1/TB1SKhUHVXXXXb7XXXX0HY8HXXX-1024-1024.jpeg',
        '//img.alicdn.com/tps/i4/TB1AdxNHVXXXXasXpXX0HY8HXXX-1024-1024.jpeg',
      ],
      type: 'popup'
    });
    $(page).on('click','.pb-popup',function () {
      myPhotoBrowserPopup.open();
    });
    /*=== 有标题 ===*/
    var myPhotoBrowserCaptions = $.photoBrowser({
      photos : [
        {
          url: '//img.alicdn.com/tps/i3/TB1kt4wHVXXXXb_XVXX0HY8HXXX-1024-1024.jpeg',
          caption: 'Caption 1 Text'
        },
        {
          url: '//img.alicdn.com/tps/i1/TB1SKhUHVXXXXb7XXXX0HY8HXXX-1024-1024.jpeg',
          caption: 'Second Caption Text'
        },
        // 这个没有标题
        {
          url: '//img.alicdn.com/tps/i4/TB1AdxNHVXXXXasXpXX0HY8HXXX-1024-1024.jpeg',
        },
      ],
      theme: 'dark',
      type: 'standalone'
    });
    $(page).on('click','.pb-standalone-captions',function () {
      myPhotoBrowserCaptions.open();
    });
  });
  
/*
  //对话框
  $(document).on("pageInit", "#page-modal", function(e, id, page) {
    var $content = $(page).find('.content');
    $content.on('click','.alert-text',function () {
      $.alert('Hello Fool');
    });

    $content.on('click','.alert-text-title', function () {
      $.alert('Alter message', 'title!');
    });

    $content.on('click', '.alert-text-title-callback',function () {
      $.alert('Custom Alert message', 'custom alert title!', function () {
        $.alert('Yout clicked OK button!')
      });
    });
    $content.on('click','.confirm-ok', function () {
      $.confirm('Are you sure?', function () {
        $.alert('You clicked OK button!');
      });
    });
    $content.on('click','.prompt-ok', function () {
      $.prompt("What's your name?", function (value) {
        $.alert('Your name is "' + value + '"');
      });
    });
    $content.on('click','.show-toast', function () {
      $.toast("Toast");
    });
  });*/

  //操作表
  $(document).on("pageInit", "#page-action", function(e, id, page) {
    $(page).on('click','.create-actions', function () {
      var buttons1 = [
        {
          text: 'Please Choose',
          label: true
        },
        {
          text: 'Potato',
          bold: true,
          color: 'danger',
          onClick: function() {
            $.alert("You choosed Potato");
          }
        },
        {
          text: 'Tomato',
          color: "success",
          onClick: function() {
            $.alert("You choosed Tomato");
          }
        }
      ];
      var buttons2 = [
        {
          text: 'Cancel',
          bg: 'danger'
        }
      ];
      var groups = [buttons1, buttons2];
      $.actions(groups);
    }); 
  });

  $(document).on("pageInit", "#page-preloader", function(e, id, page) {
    $(page).on('click','.open-preloader-title', function () {
      $.showPreloader('Loading...')
      setTimeout(function () {
        $.hidePreloader();
      }, 2000);
    });
    $(page).on('click','.open-indicator', function () {
      $.showIndicator();
      setTimeout(function () {
        $.hideIndicator();
      }, 2000);
    });
  });


  $(document).on("click", ".select-color", function(e) {
    var b = $(e.target);
    document.body.className = "theme-" + (b.data("color") || "");
    b.parent().find(".active").removeClass("active");
    b.addClass("active");
  });

  $(document).on("pageInit", "#page-datetime-picker", function(e) {
    $("#datetime-picker").datetimePicker({
      toolbarTemplate: '<header class="bar bar-nav">\
      <button class="button button-link pull-right close-picker">OK</button>\
      <h1 class="title">datetime</h1>\
      </header>'
    });
  });

  $(document).on("pageInit", "#page-layout", function(e) {
    $("#city-picker").cityPicker({});
  });
  

  
$(document).on("click", ".submit", function(e) {
	//$.showPreloader('提交中...');
	var evt	=	$(this).attr('toForm');
	var v	=	$(this).attr('data-v');
	if(v){
	if ($("#"+evt+" input[name='f_ok']").length == 0){
		$("#"+evt).append('<input type="hidden" value="'+v+'" name="f_ok">');
	}else{
		$("#"+evt+" input[name='f_ok']").val(v);
	}}
	if ($("#"+evt+" input[name='f_id']").length == 0){
		$("#"+evt).append('<input type="hidden" value="'+evt+'" name="f_id">');
	}else{
		$("#"+evt+" input[name='f_id']").val(evt);
	}
	evt=$('#'+evt);
	//$('#'+$(this).attr('toForm')).submit();
		var f,fdata=[];
	//fdata['beforeSend']=function () {$.hidePreloader();};
	//fdata['error']=function () {$.alert('信息发送失败');};
	fdata['url']	=	evt.attr("action");
	//alert(evt.id);
	f = fdata['url'].split('#');
	
	if(f.length<2){
		fdata['dataType']	=	'script';
	}else{
		fdata['dataType']	=	f[1];
	}
	fdata['type']	=	evt.attr("method");
	//fdata['dataType']	=	'script';
	
	if(evt.attr('btn')){	f = evt.attr('btn').split(',');	}else{f=null;}

	if(f){
		fdata['data']=new FormData(evt[0]);

		$.each(f,function (k,v){

			$.each(imgFile[v],function (k1,v1){

					fdata['data'].append(v+'[]',v1);

			});
		});
		fdata['processData']=false;
		fdata['contentType']=false;
		$.ajax(fdata);
	}else{
		
		fdata['data']=evt.serialize();
		$.ajax(fdata);
		
		return false;
	}
  //$.ajax({  
        //url:	fdata['url'],  
	    //type:	fdata['type'],  
        //data:	$(this).serialize(),  
        //data:	fdata['data'],
        //processData: false,
        //contentType: false,  
        //dataType:	"script"
    //});  
  return false;
	
  });  
$(document).on('submit',function(e) {
    //alert('系统繁忙');
    e.preventDefault();
}); 


$(document).on("pageAnimationStart", function(e, pageId, $page) {$.closeModal();});
  
    

  $(document).on("click", "#show-noti", function() {
    $.notification({
      title: "Baby",
      text: "I miss you",
      media: "<img src='/assets/img/i-wechat.png'>",
      data: "123",
      onClick: function(data) {
        $.alert("Click" + data);
      },
      onClose: function(data) {
        $.alert("Close "+data);
      }
    });
  });

$(document).on("click", "#close-noti", function() {
	$.closeNotification();
});

$(document).on('click','.prompt-search', function () {
      $.prompt('请输入搜索关键字', function (value) {
          $.router.loadPage("./?s=" + value);
      });
  });

$(document).on("pageInit", function(e, id, page) {

	if($(".page_style").length){
		
			if(isPageSta == 1){
				window.location.reload();
			}
			$("a[href]").addClass("external");
			//isPageSta = 0;
		
	}else{
		isPageSta = 1;
		//window.location.reload();
	}

	$("img[alt!=''][alt],img[title!=''][title]").wrap("<figure></figure>").each(function (i){
			var txt='';
			if(this.alt){
				txt += '<span>'+this.alt+'</span>';
				$(this).removeAttr("alt");
			}
			if(this.title){
				txt = '<h5>'+this.title+'</h5>' + txt;
				$(this).removeAttr("title");
			}
			if(txt){
				$(this).after("<figcaption>"+ txt +"</figcaption>");
			}
			
			
});

});
$(document).on("pageInit", '.page_script', function(e, id, page) {
	//有JS
});
$(document).on("pageInit", function(e, id, page) {

	//console.log($(page).find('.LiADWin').length);

		var LiADWin = [];
		$(".LiADWin").text('载入中...');
		$(".LiADWin").map(function(i){
			
			LiADWin[i] = {'k':this.id, 'v':$(this).attr('data-to')} ;
			
	            		});
	            		
  	//console.log(LiADWin);
  	if(LiADWin.length){
  		
		$.post("/_JsCss/a.php", {s:LiADWin},
			function(data){
				
				$.map(JSON.parse(data), function(v,k){
					//console.log(k);
					if(k =='copy'){
						
					}else{
						$("#"+k).html(v) ;
					}
					
				});
			}
		);
  		
  	}
}
);


$(document).on('click','.create-actions', function (e, id, page) {
	var groups=[];
	var toUrl = $(this).attr('toUrl');
	var totaobao = toUrl.replace(/https:\/\/|http:\/\//i,'taobao://');
	var toWord = $(this).find(".item-title").first().text() + $(this).attr('toWord');

	var buttons1 = [
	{
		text: '请选择',
		label: true
	},
	{
		text: '<div class="li_copy_btn" data-clipboard-text="'+ toWord +'">复制口令</div>',
		color: 'danger',
		onClick: function(e) {
		}
	},{
		text: '<a href="'+ toUrl +'" class="external" target="_blank">直达购买</a>',
		color: 'success',
		onClick: function(e) {

		}
	},{
		text: '<a href="'+ totaobao +'" class="li_copy_btn external" data-clipboard-text="http://rongyiban.com"><div>手淘购买</div></a>',
		color: 'success',
		onClick: function(e) {

		}
	},
	];
	var buttons2 = [
	{
	text: '取消',
	bg: 'danger'
	}
	];
	//alert(totaobao);
	//var groups = [buttons1, buttons2];
	//WX屏蔽
	if(IsWX == true){
		$.actions([[buttons1[0], buttons1[1], {text: '复制后打开【手机淘宝】直达',label: true}], buttons2]);
	}else
	if(PHSys != 'PC'){
		$.actions([[buttons1[0], buttons1[1], buttons1[2]], buttons2]);
	}else{
		$.actions([[buttons1[0], buttons1[1], buttons1[2]], buttons2]);
	}
	
});

var clipboard = new Clipboard('.CpoyBtn');

clipboard.on('success', function(e) {
$.toast("复制成功");
    e.clearSelection();
});

clipboard.on('error', function(e) {
    console.error('Action:', e.action);
    console.error('Trigger:', e.trigger);
});

var clip = new Clipboard(".li_copy_btn");
clip.on('success', function () {
    $.toast("复制成功");
})


//索引
$(document).on("click", ".icon-search", function(e){
	
	if(_sys_Indexing == false){

		$.getJSON("/user/do.php?to=Indexing", function(data){

			_sys_Indexing = data;
			_sys_Indexing_PY = '<div class="buttons-tab">';
			var tabs = new Array('ABCD','EFGH','JKLM','NOPQ','RSTW','XYZ'),tab=[];
			
			$.each(tabs,function(k1,v1){
				_sys_Indexing_PY += '<a href="#PY' + k1 + '" class="tab-link button">'+v1+'</a>';
				tab[k1]='<div id="PY' + k1 + '" class="tab">';
			});
			
			_sys_Indexing_PY += '</div><div class="content-block"><div class="tabs">';
					     
			
				$.each(_sys_Indexing,function(k,v){
					
					$.each(tabs,function(k1,v1){
						//console.log(v1);
						//console.log(v[1][0]);
						
						if(v1.indexOf(v[1][0]) > -1){
							tab[k1] += '<a href="' + v[0] +'">' + v[3] +'</a>';
						}
					     
					});
				});
				//console.log(_sys_Indexing_PY + tab.join('</div>') + '</div></div></div>');
				_sys_Indexing_PY = '<div class="popup"><div class="content-block">' + _sys_Indexing_PY + tab.join('</div>') + '</div></div></div></div>';
				$.popup(_sys_Indexing_PY);
		});
	}else{
		
		$.popup(_sys_Indexing_PY);
		
	}
})
$.config={
swipePanelOnlyClose : false,
swipePanel: false,
autoInit: true,
router:false,
};
  $.init();


});

+function ($) {
	"use strict";
  var modal = $.modal.prototype.defaults;
  modal.modalButtonOk = "确定";
  modal.modalButtonCancel = "取消";
  modal.modalPreloaderTitle = "正在加载...";

  var calendar = $.fn.calendar.prototype.defaults;
  
  calendar.monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月' , '九月' , '十月', '十一月', '十二月'];
  calendar.monthNamesShort = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月' , '九月' , '十月', '十一月', '十二月'];
  calendar.dayNames = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
  calendar.dayNamesShort = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
}($);
(function($){
  $.fn.extend({
    addClear: function(options) {
      var options =  $.extend({
        closeSymbol: "&#10006;",
        color: "#CCC",
        top: 1,
        right: 4,
        returnFocus: true,
        showOnLoad: false,
        onClear: null
      }, options);

      $(this).wrap("<span style='position:relative;' class='add-clear-span'>");
      $(this).after("<a href='#clear'>"+options.closeSymbol+"</a>");
      $("a[href='#clear']").css({
        color: options.color,
        'text-decoration': 'none',
        display: 'none',
        'line-height': 1,
        overflow: 'hidden',
        position: 'absolute',
        right: options.right,
        top: options.top
      }, this);

      if($(this).val().length >= 1 && options.showOnLoad === true) {
        $(this).siblings("a[href='#clear']").show();
      }

      $(this).keyup(function() {
        if($(this).val().length >= 1) {
          $(this).siblings("a[href='#clear']").show();
        } else {
          $(this).siblings("a[href='#clear']").hide();
        }
      });

      $("a[href='#clear']").click(function(){
        $(this).siblings("input").val("");
        $(this).hide();
        if(options.returnFocus === true){
          $(this).siblings("input").focus();
        }
        if (options.onClear){
          options.onClear($(this).siblings("input"));
        }
        return false;
      });
      return this;
    }
  });
})(jQuery);
