;/*!aipage:static/js/third_party/san/san.min.js*/ !function(e){function t(){}function i(e,t){for(var i in t)if(t.hasOwnProperty(i)){var s=t[i];void 0!==s&&(e[i]=s)}return e}function s(e,t){var s=e.prototype,n=new Function;n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,i(e.prototype,s)}function n(e,t){if(e&&e.length>0)for(var i=0,s=e.length;i..<"+t[1],n=ot[s];n||(n=new RegExp(U(t[0])+"\\s*([\\s\\S]+?)\\s*"+U(t[1]),"g"),ot[s]=n);for(var r,a=new v(e),o=0,h={type:7,segs:[]},c=t[1].length;null!=(r=a.match(n));){var l=r[1],p=r[0].length;a.cut(a.index+1-c,a.index+1)===t[1]&&(l+=a.cut(a.index,a.index+1),a.go(1),p++),i(a.cut(o,a.index-p));var d=z(l);h.original=h.original||d.original,h.segs.push(d),o=a.index}return i(a.cut(o)),1===h.segs.length&&1===h.segs[0].type&&(h.value=h.segs[0].value),h}function F(e,t,i,s){"else-if"===t&&(t="elif");var n=ht[t];n&&((e.directives[t]=n(i,s)).raw=i)}function j(e,t,i,s){var n,r,a=t.indexOf("-");switch(a>0&&(r=t.slice(0,a),n=t.slice(a+1)),r){case"on":var o={name:n,modifier:{}};e.events.push(o);for(var h;(h=i.indexOf(":"))>0;){var c=i.slice(0,h);if(!/^[a-z]+$/i.test(c))break;o.modifier[c]=!0,i=i.slice(h+1)}o.expr=O(i,[g([{type:1,value:"$event"}])]);break;case"san":case"s":F(e,n,i,s);break;case"prop":B(e,n,i,s);break;case"var":e.vars||(e.vars=[]),n=m(n),e.vars.push({name:n,expr:A(i.replace(/(^\{\{|\}\}$)/g,""))});break;default:B(e,t,i,s)}}function B(e,t,i,s){var r=i||"",a=r.match(/^\{=\s*(.*?)\s*=\}$/);if(a)return void e.props.push({name:t,expr:A(a[1]),x:1,raw:r});var o=L(r,s.delimiters);switch(t){case"class":case"style":n(o.segs,function(e){5===e.type&&e.filters.push({type:6,name:g([{type:1,value:"_"+t}]),args:[]})})}if(7===o.type)switch(o.segs.length){case 0:nt[t]&&(o={type:3,value:!0});break;case 1:o=o.segs[0],5===o.type&&0===o.filters.length&&(o=o.expr)}e.props.push({name:t,expr:o,raw:i})}function $(e,t){function i(e){switch(t.trimWhitespace){case"blank":/^\s+$/.test(e)&&(e=null);break;case"all":e=e.replace(/(^\s+|\s+$)/g,"")}e&&h.children.push({textExpr:L(e,t.delimiters)})}t=t||{},t.trimWhitespace=t.trimWhitespace||"none";var s={directives:{},props:[],events:[],children:[]};if("string"!=typeof e)return s;e=e.replace(//gm,"").replace(/(^\s+|\s+$)/g,"");for(var n,r=new v(e),a=/<(\/)?([a-z][a-z0-9-]*)\s*/gi,o=/([-:0-9a-z\[\]_]+)(\s*=\s*(['"])([^\3]*?)\3)?\s*/gi,h=s,c=[s],l=0,p=0;null!=(n=r.match(a));){var d=r.index-n[0].length,u=n[1],f=n[2];if(Ge[f]||(f=f.toLowerCase()),u){if(62===r.currentCode()){var m=l;for(i(e.slice(p,d));m>0&&c[m].tagName!==f;)m--;m>0&&(l=m-1,h=c[l]),r.go(1)}}else{for(var g={directives:{},props:[],events:[],children:[],tagName:f},y=it[f];;){var x=r.currentCode();if(62===x){r.go(1);break}if(47===x&&62===r.charCode(r.index+1)){r.go(2),y=1;break}if(!x){i(r.cut(p)),g=null;break}var w=r.match(o);w&&j(g,w[1],w[3]?w[4]:void 0,t)}if(g){i(e.slice(p,d));if(g.directives["else"]||g.directives.elif){for(var C=h.children.length,N=null;C--;){var _=h.children[C];{if(!_.textExpr){N=_;break}h.children.splice(C,1)}}N&&(N.elses=N.elses||[],N.elses.push(g))}else{if("tr"===g.tagName&&"table"===h.tagName){var b={directives:{},props:[],events:[],children:[],tagName:"tbody"};h.children.push(b),h=b,c[++l]=b}h.children.push(g)}y||(h=g,c[++l]=g)}}p=r.index}return i(r.cut(p)),s}function M(e){if("object"==typeof e){var t="";for(var i in e)e.hasOwnProperty(i)&&(t+=i+":"+e[i]+";");return t}return e}function W(e,t,s){if(null!=e.value)return e.value;var n;switch(e.type){case 13:return null;case 9:switch(n=W(e.expr,t,s),e.operator){case 33:n=!n;break;case 45:n=0-n}return n;case 8:n=W(e.segs[0],t,s);var r=W(e.segs[1],t,s);switch(e.operator){case 37:n%=r;break;case 43:n+=r;break;case 45:n-=r;break;case 42:n*=r;break;case 47:n/=r;break;case 60:n=nr;break;case 76:n=n&&r;break;case 94:n=n!=r;break;case 121:n=n<=r;break;case 122:n=n==r;break;case 123:n=n>=r;break;case 155:n=n!==r;break;case 183:n=n===r;break;case 248:n=n||r}return n;case 10:return W(e.segs[W(e.segs[0],t,s)?1:2],t,s);case 12:n=[];for(var a=0,o=e.items.length;a=s)return n;null==e&&(e={});var a=t[i],o=W(a,r),h=e;if(e instanceof Array){var c=+o;o=isNaN(c)?o:c,h=e.slice(0),h[o]=ne(e[o],t,i+1,s,n,r)}else if("object"==typeof e){h={};for(var l in e)l!==o&&e.hasOwnProperty(l)&&(h[l]=e[l]);h[o]=ne(e[o],t,i+1,s,n,r)}return null==a.value&&(t[i]={type:"string"==typeof o?1:2,value:o}),h}function re(e,t,i,s){var n=e.expr.args;return function(r){r=s?r:r||window.event;var a=ie(t,e.expr.name,i);if("function"==typeof a&&a.apply(t,n.length?q(n,new se({$event:r},i),t):[]),e.modifier.prevent)return r.preventDefault&&r.preventDefault(),!1;e.modifier.stop&&(r.stopPropagation?r.stopPropagation():r.cancelBubble=!0)}}function ae(e,t){if(t)for(var i=0;i1&&(s.extOverview=n[0].value+"."+n[1].value,s.wildOverview=n[0].value+".*")}if(t[s.overview]||s.wildOverview&&t[s.wildOverview]||s.extOverview&&t[s.extOverview])return!0}}function oe(e,t,i){t&&(i?t.insertBefore(e,i):t.appendChild(e))}function he(e){this.raw=[],this.index=0,this.target=e;for(var t,i=e.firstChild;i;){switch(t=i.nextSibling,i.nodeType){case 3:/^\s*$/.test(i.data||i.textContent)?p(i):this.raw.push(i);break;case 1:case 8:this.raw.push(i)}i=t}this.current=this.raw[this.index],this.next=this.raw[this.index+1]}function ce(e,t,i,s,n){if(this.aNode=e,this.owner=s,this.scope=i,this.parent=t,this.lifeCycle=lt.start,this.children=[],this._elFns=[],this.parentComponent=5===t.nodeType?t:t.parentComponent,this.tagName=e.tagName,tt&&this.tagName.indexOf("-")>0&&(this.tagName="div"),this._sbindData=Se(e.directives.bind,this.scope,this.owner),this.lifeCycle=lt.inited,n){var r=n.current;if(!r)throw new Error("[SAN REVERSE ERROR] Element not found. \nPaths: "+Ae(this).join(" > "));if(1!==r.nodeType)throw new Error("[SAN REVERSE ERROR] Element type not match, expect 1 but "+r.nodeType+".\nPaths: "+Ae(this).join(" > "));if(r.tagName.toLowerCase()!==this.tagName)throw new Error("[SAN REVERSE ERROR] Element tagName not match, expect "+this.tagName+" but meat "+r.tagName.toLowerCase()+".\nPaths: "+Ae(this).join(" > "));this.el=r,n.goNext(),ve(this,this.scope,this.owner),this.lifeCycle=lt.created,this._attached(),this.lifeCycle=lt.attached}}function le(){this.el=this.el||document.createComment(this.id)}function pe(e,t,i){for(var s=e&&e.length;s--;)e[s].dispose(t,i)}function de(e){pe(this.children,e,1),e||p(this.el),this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=lt.disposed,this._ondisposed&&this._ondisposed()}function ue(e,t){this.options=e,this.loader=t,this.id=Ke++,this.children=[];var i=e.reverseWalker;if(i){var s=this.loader.placeholder;s&&(this.children[0]=new s(e)),this._create(),oe(this.el,i.target,i.current);var n=this;this.loader.start(function(e){n.onload(e)})}e.reverseWalker=null}function fe(e,t,i,s,n){if(e.Clazz)return new e.Clazz(e,t,i,s,n);var r=s.getComponentType?s.getComponentType(e,i):s.components[e.tagName];return r?"function"==typeof r?new r({source:e,owner:s,scope:i,parent:t,subTag:e.tagName,reverseWalker:n}):new ue({source:e,owner:s,scope:i,parent:t,subTag:e.tagName,reverseWalker:n},r):new ce(e,t,i,s,n)}function ve(e,t,i){if(!e.aNode.directives.html)for(var s=new he(e.el),n=e.aNode.children,r=0,a=n.length;r0&&(this.tagName="div"),this.computedDeps={};for(var v in this.computed)this.computed.hasOwnProperty(v)&&!this.computedDeps[v]&&this._calcComputed(v);if(this._initDataChanger(),this._sbindData=Se(this.aNode.directives.bind,this.data,this),this._toPhase("inited"),this.el)ve(this,this.data,this),this._toPhase("created"),this._attached(),this._toPhase("attached");else{var m=e.reverseWalker;if(m){var g=this.aNode.directives["if"];if(!g||W(g.value,this.data,this)){var y=m.current;y&&1===y.nodeType&&(this.el=y,m.goNext()),ve(this,this.data,this)}else this.el=document.createComment(this.id),oe(this.el,m.target,m.current);this._toPhase("created"),this._attached(),this._toPhase("attached")}}}function ze(e,t){function i(e){Oe.call(this,e)}return"function"==typeof e?e:(i.prototype=e,s(i,t||Oe),i)}function Ie(e,t,i){this.load=e,this.placeholder=t,this.fallback=i,this.listeners=[]}function Ue(e){var t=e.prototype;if(!t.hasOwnProperty("_cmptReady")){t.components=e.components||t.components||{};var i=t.components;for(var s in i){var n=i[s];"object"!=typeof n||n instanceof Ie?"self"===n&&(i[s]=e):i[s]=ze(n)}t._cmptReady=1}if(!t.hasOwnProperty("aNode")){var r=$(e.template||t.template,{trimWhitespace:t.trimWhitespace||e.trimWhitespace,delimiters:t.delimiters||e.delimiters}),a=r.children[0];if(a&&a.textExpr&&(a=null),t.aNode=a=a||{directives:{},props:[],events:[],children:[]},"template"===a.tagName&&(a.tagName=null),!1!==t.autoFillStyleAndId&&!1!==e.autoFillStyleAndId){for(var o={"class":0,style:0,id:0},h=a.props.length;h--;){var c=a.props[h];null!=o[c.name]&&(o[c.name]=c,a.props.splice(h,1))}if(o.id=o.id||{name:"id",expr:A("id")},o["class"]){var l=L("{{class | _xclass}}").segs[0];l.filters[0].args.push(o["class"].expr),o["class"].expr=l}else o["class"]={name:"class",expr:L("{{class | _class}}")};if(o.style){var p=L("{{style | _xstyle}}").segs[0];p.filters[0].args.push(o.style.expr),o.style.expr=p}else o.style={name:"style",expr:L("{{style | _style}}")};a.props.push(o["class"],o.style,o.id)}}}function Le(e,t){return 8===e.nodeType&&e.data==="/s-"+t}function Fe(e,t,i,s,n){if(this.aNode=e,this.owner=s,this.scope=i,this.parent=t,n){var r=n.current;if(r)switch(r.nodeType){case 8:if("s-text"===r.data)for(this.sel=r,r.data=this.id,n.goNext();;){if(!(r=n.current))throw new Error("[SAN REVERSE ERROR] Text end flag not found. \nPaths: "+Ae(this).join(" > "));if(Le(r,"text")){this.el=r,n.goNext(),r.data=this.id;break}n.goNext()}break;case 3:n.goNext(),this.aNode.textExpr.original||(this.el=r)}else this.el=document.createTextNode(""),oe(this.el,n.target,n.current)}}function je(e,t){this.sel=document.createComment(this.id),oe(this.sel,e,t);for(var i=0;i1&&r.push(a[0].value+"."+(a[1].value||"*")),i(a.slice(1),1);break;case 9:r=Ve(e.expr,t),s=e.expr.dynamic;break;case 7:case 8:case 10:i(e.segs,t);break;case 5:r=Ve(e.expr),s=e.expr.dynamic,n(e.filters,function(e){i(e.name.paths),i(e.args)});break;case 6:i(e.name.paths),i(e.args);break;case 12:case 11:for(var o=0;o",nbsp:" ",quot:'"',emsp:" ",ensp:" ",thinsp:" ",copy:"©",reg:"®",zwnj:"‌",zwj:"‍",amp:"&"},ot={},ht={"for":function(e){var t=new v(e),i=t.match(/^\s*([$0-9a-z_]+)(\s*,\s*([$0-9a-z_]+))?\s+in\s+/gi,1);if(i){var s={item:i[1],value:x(t)};if(i[3]&&(s.index=i[3]),t.match(/\s*trackby\s+/gi,1)){var n=t.index;s.trackBy=_(t),s.trackBy.raw=t.cut(n,t.index)}return s}},ref:function(e,t){return{value:L(e,t.delimiters)}},"if":function(e){return{value:A(e.replace(/(^\{\{|\}\}$)/g,""))}},elif:function(e){return{value:A(e.replace(/(^\{\{|\}\}$)/g,""))}},"else":function(){return{value:{}}},bind:function(e){return{value:A(e.replace(/(^\{\{|\}\}$)/g,""))}},html:function(e){return{value:A(e.replace(/(^\{\{|\}\}$)/g,""))}},transition:function(e){return{value:O(e)}}},ct={url:encodeURIComponent,_class:function(e){return e instanceof Array?e.join(" "):e},_style:M,_xclass:function(e,t){return e instanceof Array&&(e=e.join(" ")),e?t?t+" "+e:e:t},_xstyle:function(e,t){return e=e&&M(e),e?t?t+";"+e:e:t}},lt={start:{},compiled:{is:Y,compiled:!0},inited:{is:Y,compiled:!0,inited:!0},created:{is:Y,compiled:!0,inited:!0,created:!0},attached:{is:Y,compiled:!0,inited:!0,created:!0,attached:!0},leaving:{is:Y,compiled:!0,inited:!0,created:!0,attached:!0,leaving:!0},detached:{is:Y,compiled:!0,inited:!0,created:!0,detached:!0},disposed:{is:Y,disposed:!0}},pt={TEXT:1,IF:2,FOR:3,ELEM:4,CMPT:5,SLOT:6,TPL:7,LOADER:8},dt={readonly:"readOnly",cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder","for":"htmlFor"},ut={style:function(e,t){e.style.cssText=t},"class":function(e,t){(et||e.className!==t)&&(e.className=t)},slot:t,draggable:J},ft={checkbox:r,radio:function(e,t){return e===t}},vt={input:{multiple:J,checked:function(e,t,i,s){var n=Z(s,t);J(e,null!=n?n:t,"checked",s),et&&et<8&&!s.lifeCycle.attached&&J(e,null!=n?n:t,"defaultChecked",s)},readonly:J,disabled:J,autofocus:J,required:J},option:{value:function(e,t,i,s){K(e,t,i,s),Q(s,t)&&(e.selected=!0)}},select:{readonly:J,disabled:J,autofocus:J,required:J},textarea:{readonly:J,disabled:J,autofocus:J,required:J},button:{disabled:J,autofocus:J,type:function(e,t){e.setAttribute("type",t)}}};se.prototype.listen=function(e){"function"==typeof e&&this.listeners.push(e)},se.prototype.unlisten=function(e){for(var t=this.listeners.length;t--;)e&&this.listeners[t]!==e||this.listeners.splice(t,1)},se.prototype.fire=function(e){if(!(e.option.silent||e.option.silence||e.option.quiet))for(var t=0;ta?r=a:r<0&&(r=a+r)<0&&(r=0);var o=s.slice(0);n=o.splice.apply(o,t),this.raw=ne(this.raw,e.paths,0,e.paths.length,o,this),this.fire({expr:e,type:2,index:r,deleteCount:n.length,value:n,insertions:t.slice(2),option:i})}return n},se.prototype.push=function(e,t,i){var s=this.get(e);if(s instanceof Array)return this.splice(e,[s.length,0,t],i),s.length+1},se.prototype.pop=function(e,t){var i=this.get(e);if(i instanceof Array){var s=i.length;if(s)return this.splice(e,[s-1,1],t)[0]}},se.prototype.shift=function(e,t){return this.splice(e,[0,1],t)[0]},se.prototype.unshift=function(e,t,i){var s=this.get(e);if(s instanceof Array)return this.splice(e,[0,0,t],i),s.length+1},se.prototype.removeAt=function(e,t,i){this.splice(e,[t,1],i)},se.prototype.remove=function(e,t,i){var s=this.get(e);if(s instanceof Array)for(var n=s.length;n--;)if(s[n]===t){this.splice(e,[n,1],i);break}};var mt={"class":1,style:1,id:1};he.prototype.goNext=function(){this.current=this.raw[++this.index],this.next=this.raw[this.index+1]},ce.prototype.nodeType=4,ce.prototype.attach=function(e,t){if(!this.lifeCycle.attached){if(!this.el){var i=this.aNode.hotspot.sourceNode,s=this.aNode.props;if(i?(this.el=i.cloneNode(!1),s=this.aNode.hotspot.dynamicProps):this.el=l(this.tagName),this._sbindData)for(var n in this._sbindData)this._sbindData.hasOwnProperty(n)&&ee(this.tagName,n)(this.el,this._sbindData[n],n,this);for(var r=0,a=s.length;r2&&(r=g([{type:1,value:r}].concat(s.paths.slice(a.paths.length))),a=s),n>=2&&2===e.type?t.data.splice(r,[e.index,e.deleteCount].concat(e.insertions),{target:{node:t.owner}}):t.data.set(r,W(a,t.scope,t.owner),{target:{node:t.owner}}))}),n(t.sourceSlotNameProps,function(e){return!(i=i||V(s,e.expr,t.scope))})}),i)this._initSourceSlots(),this._repaintChildren();else for(var s=this.slotChildren.length;s--;){var r=this.slotChildren[s];r.lifeCycle.disposed?this.slotChildren.splice(s,1):r.isInserted&&r._update(e,1)}var a=this._dataChanges;if(a){this._dataChanges=null;var o=this.aNode.directives["if"],h=!o||W(o.value,this.data,this)?1:8;if(this._sbindData=Re(this.aNode.directives.bind,this._sbindData,this.data,this,a,function(e,i){1!==t.el.nodeType||e in t.aNode.hotspot.props||ee(t.tagName,e)(t.el,i,e,t)}),this.el.nodeType===h){if(1===h){for(var c=this.aNode.hotspot.dynamicProps,l=0;l1&&(r=g(s.expr.paths.concat(n.paths.slice(1)))),t=1,i.scope.set(r,W(n,i.data,i),{target:{node:i,prop:s.name}})}})}),t},Oe.prototype._repaintChildren=function(){if(1===this.el.nodeType){pe(this.children,0,1),this.children=[],this.slotChildren=[];for(var e=0,t=this.aNode.children.length;e=a&&t&&t()}var s=this.el.parentNode,n=s.firstChild,r=s.lastChild,a=this.children.length,o=!this.aNode.directives.transition&&!e&&a&&n===this.children[0].el&&r===this.el;e||(e=this.children,this.children=[]);var h=0;a=e.length;for(var c=0;c2){var v=u.expr.paths,m=this.param.value.paths.length,y=+W(v[m],this.scope,this.owner);isNaN(y)?i(u):n||(h=!1,c&&(c[y]=1),a[y]=a[y]||[],this.param.index&&a[y].push(u),u=1===u.type?{type:u.type,expr:g(this.itemPaths.concat(v.slice(m+1))),value:u.value,option:u.option}:{index:u.index,deleteCount:u.deleteCount,insertions:u.insertions,type:u.type,expr:g(this.itemPaths.concat(v.slice(m+1))),value:u.value,option:u.option},a[y].push(u),1===u.type?this.children[y]?this.children[y].scope._set(u.expr,u.value,{silent:1}):this.children[y]=0:this.children[y]&&this.children[y].scope._splice(u.expr,[].concat(u.index,u.deleteCount,u.insertions),{silent:1}))}else{if(n)continue;if(2!==f||2!==u.type||"optimized"===this.owner.updateMode&&this.opti&&!this.aNode.directives.transition)if(c=null,h=!1,n=1,p&&l&&r){for(var x=[],w=[],C={},N=[],_={},b=0;bE&&S>D&&x[T-1]===w[S-1];)T--,S--,this.listData[S]!==t[T]&&(this.children[S].scope.raw[this.param.item]=t[T],(a[S]=a[S]||[]).push({type:1,option:u.option,expr:this.itemExpr,value:t[T]})),T!==S&&(this.children[S].scope.raw[this.children[S].scope.indexName]=T,P&&(a[S]=a[S]||[]).push(P)),f<2&&(a[S]=a[S]||[]).push(u);for(var R=[],A=[],O=-1,z=N.slice(D,S),I=S-D,U=new Array(I),b=0;b0&&R[j-1]<=L)F=j-1;else for(;j-F>1;){var B=Math.floor((F+j)/2);R[B]>L?j=B:F=B}-1!==F&&(U[b]=A[F]),F===O?(O++,R[O]=L,A[O]=b):L=0;b=U[b],O--)R[O]=b;for(var $=R.length,M=$?N[R[--$]+D]:-1,q=[],H=[],b=l-1;b>=0;b--)if(b>=T)q[b]=this.children[r-l+b],H[b]=a[r-l+b];else if(bl&&(o=o.concat(this.children.slice(l)),a=a.slice(0,l),this.children=this.children.slice(0,l));for(var b=0;b0){h=!1;var te=[K+G,0].concat(new Array(Z));this.children.splice.apply(this.children,te),a.splice.apply(a,te)}}}else i(u)}if(l!==r&&this.param.value.paths){var ie={type:1,option:{},expr:g(this.param.value.paths.concat({type:1,value:"length"}))};ae([ie],this.aNode.hotspot.data)&&i(ie)}this._doCreateAndUpdate=s;var se=this;0===o.length?s():this._disposeChildren(o,function(){s===se._doCreateAndUpdate&&s()})},We.prototype.nodeType=2,We.prototype._create=le,We.prototype.dispose=de,We.prototype.attach=function(e,t){var i,s,r=this;W(this.aNode.directives["if"].value,this.scope,this.owner)?(s=me(this.aNode.ifRinsed,this,this.scope,this.owner),i=-1):n(this.aNode.elses,function(e,t){var n=e.directives.elif;if(!n||n&&W(n.value,r.scope,r.owner))return s=me(e,r,r.scope,r.owner),i=t,!1}),s&&(this.children[0]=s,s.attach(e,t),this.elseIndex=i),this._create(),oe(this.el,e,t)},We.prototype._update=function(e){function t(){void 0!==i&&(s.children[0]=me(r,s,s.scope,s.owner)).attach(s.el.parentNode,s.el)}var i,s=this,r=this.aNode.ifRinsed;W(this.aNode.directives["if"].value,this.scope,this.owner)?i=-1:n(this.aNode.elses,function(e,t){var n=e.directives.elif;if(n&&W(n.value,s.scope,s.owner)||!n)return i=t,r=e,!1});var a=this.children[0];i===this.elseIndex?a&&a._update(e):(this.children=[],a?(a._ondisposed=t,a.dispose()):t(),this.elseIndex=i)},qe.prototype.nodeType=7,qe.prototype.attach=je,qe.prototype.dispose=function(e,t){pe(this.children,e,t),e||(p(this.el),p(this.sel)),this.sel=null,this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=lt.disposed,this._ondisposed&&this._ondisposed()},qe.prototype._update=function(e){for(var t=0;ti;i++){var u=e[i].id,s=e[i].url;if(!(s in c)){c[s]=!0;var p=document.createElement("script");t&&!function(e,a){var r=setTimeout(function(){t(a)},n.timeout);e.onerror=function(){clearTimeout(r),t(a)};var i=function(){clearTimeout(r)};"onload"in e?e.onload=i:e.onreadystatechange=function(){("loaded"===this.readyState||"complete"===this.readyState)&&i()}}(p,u),p.type="text/javascript",p.src=s,a.appendChild(p)}}r.appendChild(a)},f=function(e,n,t){for(var a=[],r=0,o=e.length;o>r;r++){var u=e[r],c=i[u]||(i[u]=[]);c.push(n);var f,l=s[u]||s[u+".js"]||{},h=l.pkg;f=h?p[h].url||p[h].uri:l.url||l.uri||u,a.push({id:u,url:f})}d(a,t)};t=function(e,n){e=e.replace(/\.js$/i,""),o[e]=n;var t=i[e];if(t){for(var a=0,r=t.length;r>a;a++)t[a]();delete i[e]}},n=function(e){if(e&&e.splice)return n.async.apply(this,arguments);e=n.alias(e);var t=u[e];if(t)return t.exports;var a=o[e];if(!a)throw"[ModJS] Cannot find module `"+e+"`";t=u[e]={exports:{}};var r="function"==typeof a?a.apply(t,[n,t.exports,t]):a;return r&&(t.exports=r),t.exports},n.async=function(t,a,r){function i(e){for(var t,a=0,r=e.length;r>a;a++){var u=n.alias(e[a]);u in c||(c[u]=!0,u in o?(t=s[u]||s[u+".js"],t&&"deps"in t&&i(t.deps)):(d.push(u),p++,t=s[u]||s[u+".js"],t&&"deps"in t&&i(t.deps)))}}function u(){if(0===p--){for(var r=[],i=0,o=t.length;o>i;i++)r[i]=n(t[i]);a&&a.apply(e,r)}}"string"==typeof t&&(t=[t]);var c={},p=0,d=[];i(t),f(d,u,r),u()},n.ensure=function(e,t){n.async(e,function(){t&&t.call(this,n)})},n.resourceMap=function(e){var n,t;t=e.res;for(n in t)t.hasOwnProperty(n)&&(s[n]=t[n]);t=e.pkg;for(n in t)t.hasOwnProperty(n)&&(p[n]=t[n])},n.loadJs=function(e,n){if(e in c)return void(n&&n());var t=document.createElement("script");t.type="text/javascript",t.readyState?t.onreadystatechange=function(){("loaded"==t.readyState||"complete"==t.readyState)&&(t.onreadystatechange=null,c[e]=!0,n&&n())}:t.onload=function(){c[e]=!0,n&&n()},t.src=e,r.appendChild(t)},n.alias=function(e){return e.replace(/\.js$/i,"")},n.timeout=5e3,a.require=n,a.define=t,window.aipage=window.aipage||{},window.aipage.require=a.require,window.aipage.define=a.define}(this); ;/*!aipage:static/js/third_party/jquery/jquery.min.js*/ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0