/*! * Bootstrap v3.3.5 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ ; if("undefined"==typeof jQuery){throw new Error("Bootstrap's JavaScript requires jQuery") }+function(d){var c=d.fn.jquery.split(" ")[0].split("."); if(c[0]<2&&c[1]<9||1==c[0]&&9==c[1]&&c[2]<1){throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher") }}(jQuery),+function(d){function c(){var f=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"}; for(var g in e){if(void 0!==f.style[g]){return{end:e[g]} }}return !1 }d.fn.emulateTransitionEnd=function(a){var h=!1,g=this; d(this).one("bsTransitionEnd",function(){h=!0 }); var f=function(){h||d(g).trigger(d.support.transition.end) }; return setTimeout(f,a),this },d(function(){d.support.transition=c(),d.support.transition&&(d.event.special.bsTransitionEnd={bindType:d.support.transition.end,delegateType:d.support.transition.end,handle:function(a){return d(a.target).is(this)?a.handleObj.handler.apply(this,arguments):void 0 }}) }) }(jQuery),+function(g){function f(a){return this.each(function(){var d=g(this),b=d.data("bs.alert"); b||d.data("bs.alert",b=new j(this)),"string"==typeof a&&b[a].call(d) }) }var k='[data-dismiss="alert"]',j=function(a){g(a).on("click",k,this.close) }; j.VERSION="3.3.5",j.TRANSITION_DURATION=150,j.prototype.close=function(a){function n(){d.detach().trigger("closed.bs.alert").remove() }var m=g(this),l=m.attr("data-target"); l||(l=m.attr("href"),l=l&&l.replace(/.*(?=#[^\s]*$)/,"")); var d=g(l); a&&a.preventDefault(),d.length||(d=m.closest(".alert")),d.trigger(a=g.Event("close.bs.alert")),a.isDefaultPrevented()||(d.removeClass("in"),g.support.transition&&d.hasClass("fade")?d.one("bsTransitionEnd",n).emulateTransitionEnd(j.TRANSITION_DURATION):n()) }; var h=g.fn.alert; g.fn.alert=f,g.fn.alert.Constructor=j,g.fn.alert.noConflict=function(){return g.fn.alert=h,this },g(document).on("click.bs.alert.data-api",k,j.prototype.close) }(jQuery),+function(f){function e(a){return this.each(function(){var j=f(this),c=j.data("bs.button"),b="object"==typeof a&&a; c||j.data("bs.button",c=new h(this,b)),"toggle"==a?c.toggle():a&&c.setState(a) }) }var h=function(a,c){this.$element=f(a),this.options=f.extend({},h.DEFAULTS,c),this.isLoading=!1 }; h.VERSION="3.3.5",h.DEFAULTS={loadingText:"loading..."},h.prototype.setState=function(a){var m="disabled",l=this.$element,k=l.is("input")?"val":"html",j=l.data(); a+="Text",null==j.resetText&&l.data("resetText",l[k]()),setTimeout(f.proxy(function(){l[k](null==j[a]?this.options[a]:j[a]),"loadingText"==a?(this.isLoading=!0,l.addClass(m).attr(m,m)):this.isLoading&&(this.isLoading=!1,l.removeClass(m).removeAttr(m)) },this),0) },h.prototype.toggle=function(){var j=!0,d=this.$element.closest('[data-toggle="buttons"]'); if(d.length){var k=this.$element.find("input"); "radio"==k.prop("type")?(k.prop("checked")&&(j=!1),d.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==k.prop("type")&&(k.prop("checked")!==this.$element.hasClass("active")&&(j=!1),this.$element.toggleClass("active")),k.prop("checked",this.$element.hasClass("active")),j&&k.trigger("change") }else{this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active") }}; var g=f.fn.button; f.fn.button=e,f.fn.button.Constructor=h,f.fn.button.noConflict=function(){return f.fn.button=g,this },f(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(b){var a=f(b.target); a.hasClass("btn")||(a=a.closest(".btn")),e.call(a,"toggle"),f(b.target).is('input[type="radio"]')||f(b.target).is('input[type="checkbox"]')||b.preventDefault() }).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(a){f(a.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(a.type)) }) }(jQuery),+function(g){function f(a){return this.each(function(){var m=g(this),l=m.data("bs.carousel"),c=g.extend({},k.DEFAULTS,m.data(),"object"==typeof a&&a),b="string"==typeof a?a:c.slide; l||m.data("bs.carousel",l=new k(this,c)),"number"==typeof a?l.to(a):b?l[b]():c.interval&&l.pause().cycle() }) }var k=function(a,d){this.$element=g(a),this.$indicators=this.$element.find(".carousel-indicators"),this.options=d,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",g.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",g.proxy(this.pause,this)).on("mouseleave.bs.carousel",g.proxy(this.cycle,this)) }; k.VERSION="3.3.5",k.TRANSITION_DURATION=600,k.DEFAULTS={interval:5000,pause:"hover",wrap:!0,keyboard:!0},k.prototype.keydown=function(b){if(!/input|textarea/i.test(b.target.tagName)){switch(b.which){case 37:this.prev(); break; case 39:this.next(); break; default:return }b.preventDefault() }},k.prototype.cycle=function(a){return a||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(g.proxy(this.next,this),this.options.interval)),this },k.prototype.getItemIndex=function(b){return this.$items=b.parent().children(".item"),this.$items.index(b||this.$active) },k.prototype.getItemForDirection=function(m,l){var q=this.getItemIndex(l),p="prev"==m&&0===q||"next"==m&&q==this.$items.length-1; if(p&&!this.options.wrap){return l }var o="prev"==m?-1:1,n=(q+o)%this.$items.length; return this.$items.eq(n) },k.prototype.to=function(e){var d=this,l=this.getItemIndex(this.$active=this.$element.find(".item.active")); return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){d.to(e) }):l==e?this.pause().cycle():this.slide(e>l?"next":"prev",this.$items.eq(e)) },k.prototype.pause=function(a){return a||(this.paused=!0),this.$element.find(".next, .prev").length&&g.support.transition&&(this.$element.trigger(g.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this },k.prototype.next=function(){return this.sliding?void 0:this.slide("next") },k.prototype.prev=function(){return this.sliding?void 0:this.slide("prev") },k.prototype.slide=function(v,u){var t=this.$element.find(".item.active"),s=u||this.getItemForDirection(v,t),r=this.interval,q="next"==v?"left":"right",p=this; if(s.hasClass("active")){return this.sliding=!1 }var o=s[0],n=g.Event("slide.bs.carousel",{relatedTarget:o,direction:q}); if(this.$element.trigger(n),!n.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active"); var c=g(this.$indicators.children()[this.getItemIndex(s)]); c&&c.addClass("active") }var a=g.Event("slid.bs.carousel",{relatedTarget:o,direction:q}); return g.support.transition&&this.$element.hasClass("slide")?(s.addClass(v),s[0].offsetWidth,t.addClass(q),s.addClass(q),t.one("bsTransitionEnd",function(){s.removeClass([v,q].join(" ")).addClass("active"),t.removeClass(["active",q].join(" ")),p.sliding=!1,setTimeout(function(){p.$element.trigger(a) },0) }).emulateTransitionEnd(k.TRANSITION_DURATION)):(t.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(a)),r&&this.cycle(),this }}; var j=g.fn.carousel; g.fn.carousel=f,g.fn.carousel.Constructor=k,g.fn.carousel.noConflict=function(){return g.fn.carousel=j,this }; var h=function(o){var n,m=g(this),l=g(m.attr("data-target")||(n=m.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")); if(l.hasClass("carousel")){var b=g.extend({},l.data(),m.data()),a=m.attr("data-slide-to"); a&&(b.interval=!1),f.call(l,b),a&&l.data("bs.carousel").to(a),o.preventDefault() }}; g(document).on("click.bs.carousel.data-api","[data-slide]",h).on("click.bs.carousel.data-api","[data-slide-to]",h),g(window).on("load",function(){g('[data-ride="carousel"]').each(function(){var a=g(this); f.call(a,a.data()) }) }) }(jQuery),+function(g){function f(a){var l,e=a.attr("data-target")||(l=a.attr("href"))&&l.replace(/.*(?=#[^\s]+$)/,""); return g(e) }function k(a){return this.each(function(){var l=g(this),d=l.data("bs.collapse"),b=g.extend({},j.DEFAULTS,l.data(),"object"==typeof a&&a); !d&&b.toggle&&/show|hide/.test(a)&&(b.toggle=!1),d||l.data("bs.collapse",d=new j(this,b)),"string"==typeof a&&d[a]() }) }var j=function(a,d){this.$element=g(a),this.options=g.extend({},j.DEFAULTS,d),this.$trigger=g('[data-toggle="collapse"][href="#' b.je '"],[data-toggle="collapse"][data-target="#'+a.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle() }; j.VERSION="3.3.5",j.TRANSITION_DURATION=350,j.DEFAULTS={toggle:!0},j.prototype.dimension=function(){var b=this.$element.hasClass("width"); return b?"width":"height" },j.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"); if(!(n&&n.length&&(a=n.data("bs.collapse"),a&&a.transitioning))){var m=g.Event("show.bs.collapse"); if(this.$element.trigger(m),!m.isDefaultPrevented()){n&&n.length&&(k.call(n,"hide"),a||n.data("bs.collapse",null)); var l=this.dimension(); this.$element.removeClass("collapse").addClass("collapsing")[l](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1; var d=function(){this.$element.removeClass("collapsing").addClass("collapse in")[l](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse") }; if(!g.support.transition){return d.call(this) }var c=g.camelCase(["scroll",l].join("-")); this.$element.one("bsTransitionEnd",g.proxy(d,this)).emulateTransitionEnd(j.TRANSITION_DURATION)[l](this.$element[0][c]) }}}},j.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=g.Event("hide.bs.collapse"); if(this.$element.trigger(a),!a.isDefaultPrevented()){var l=this.dimension(); this.$element[l](this.$element[l]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1; var d=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse") }; return g.support.transition?void this.$element[l](0).one("bsTransitionEnd",g.proxy(d,this)).emulateTransitionEnd(j.TRANSITION_DURATION):d.call(this) }}},j.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]() },j.prototype.getParent=function(){return g(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(g.proxy(function(l,b){var a=g(b); this.addAriaAndCollapsedClass(f(a),a) },this)).end() },j.prototype.addAriaAndCollapsedClass=function(e,d){var l=e.hasClass("in"); e.attr("aria-expanded",l),d.toggleClass("collapsed",!l).attr("aria-expanded",l) }; var h=g.fn.collapse; g.fn.collapse=k,g.fn.collapse.Constructor=j,g.fn.collapse.noConflict=function(){return g.fn.collapse=h,this },g(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(m){var l=g(this); l.attr("data-target")||m.preventDefault(); var c=f(l),b=c.data("bs.collapse"),a=b?"toggle":l.data(); k.call(c,a) }) }(jQuery),+function(k){function j(a){var f=a.attr("data-target"); f||(f=a.attr("href"),f=f&&/#[A-Za-z]/.test(f)&&f.replace(/.*(?=#[^\s]*$)/,"")); var e=f&&k(f); return e&&e.length?e:a.parent() }function q(a){a&&3===a.which||(k(o).remove(),k(n).each(function(){var g=k(this),c=j(g),b={relatedTarget:this}; c.hasClass("open")&&(a&&"click"==a.type&&/input|textarea/i.test(a.target.tagName)&&k.contains(c[0],a.target)||(c.trigger(a=k.Event("hide.bs.dropdown",b)),a.isDefaultPrevented()||(g.attr("aria-expanded","false"),c.removeClass("open").trigger("hidden.bs.dropdown",b)))) })) }function p(a){return this.each(function(){var e=k(this),b=e.data("bs.dropdown"); b||e.data("bs.dropdown",b=new m(this)),"string"==typeof a&&b[a].call(e) }) }var o=".dropdown-backdrop",n='[data-toggle="dropdown"]',m=function(a){k(a).on("click.bs.dropdown",this.toggle) }; m.VERSION="3.3.5",m.prototype.toggle=function(s){var r=k(this); if(!r.is(".disabled, :disabled")){var c=j(r),b=c.hasClass("open"); if(q(),!b){"ontouchstart" in document.documentElement&&!c.closest(".navbar-nav").length&&k(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(k(this)).on("click",q); var a={relatedTarget:this}; if(c.trigger(s=k.Event("show.bs.dropdown",a)),s.isDefaultPrevented()){return }r.trigger("focus").attr("aria-expanded","true"),c.toggleClass("open").trigger("shown.bs.dropdown",a) }return !1 }},m.prototype.keydown=function(u){if(/(38|40|27|32)/.test(u.which)&&!/input|textarea/i.test(u.target.tagName)){var t=k(this); if(u.preventDefault(),u.stopPropagation(),!t.is(".disabled, :disabled")){var s=j(t),r=s.hasClass("open"); if(!r&&27!=u.which||r&&27==u.which){return 27==u.which&&s.find(n).trigger("focus"),t.trigger("click") }var f=" li:not(.disabled):visible a",b=s.find(".dropdown-menu"+f); if(b.length){var a=b.index(u.target); 38==u.which&&a>0&&a--,40==u.which&&adocument.documentElement.clientHeight; this.$element.css({paddingLeft:!this.bodyIsOverflowing&&b?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!b?this.scrollbarWidth:""}) },h.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""}) },h.prototype.checkScrollbar=function(){var d=window.innerWidth; if(!d){var c=document.documentElement.getBoundingClientRect(); d=c.right-Math.abs(c.left) }this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(a,p,o){if(this.enabled=!0,this.type=a,this.$element=f(p),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&f(f.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0] instanceof document.constructor&&!this.options.selector){throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!") }for(var n=this.options.trigger.split(" "),m=n.length; m--; ){var l=n[m]; if("click"==l){this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this)) }else{if("manual"!=l){var k="hover"==l?"mouseenter":"focusin",j="hover"==l?"mouseleave":"focusout"; this.$element.on(k+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(j+"."+this.type,this.options.selector,f.proxy(this.leave,this)) }}}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle() },h.prototype.getDefaults=function(){return h.DEFAULTS },h.prototype.getOptions=function(a){return a=f.extend({},this.getDefaults(),this.$element.data(),a),a.delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay}),a },h.prototype.getDelegateOptions=function(){var a={},d=this.getDefaults(); return this._options&&f.each(this._options,function(b,c){d[b]!=c&&(a[b]=c) }),a },h.prototype.enter=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type); return d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),a instanceof f.Event&&(d.inState["focusin"==a.type?"focus":"hover"]=!0),d.tip().hasClass("in")||"in"==d.hoverState?void (d.hoverState="in"):(clearTimeout(d.timeout),d.hoverState="in",d.options.delay&&d.options.delay.show?void (d.timeout=setTimeout(function(){"in"==d.hoverState&&d.show() },d.options.delay.show)):d.show()) },h.prototype.isInStateTrue=function(){for(var b in this.inState){if(this.inState[b]){return !0 }}return !1 },h.prototype.leave=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type); return d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),a instanceof f.Event&&(d.inState["focusout"==a.type?"focus":"hover"]=!1),d.isInStateTrue()?void 0:(clearTimeout(d.timeout),d.hoverState="out",d.options.delay&&d.options.delay.hide?void (d.timeout=setTimeout(function(){"out"==d.hoverState&&d.hide() },d.options.delay.hide)):d.hide()) },h.prototype.show=function(){var D=f.Event("show.bs."+this.type); if(this.hasContent()&&this.enabled){this.$element.trigger(D); var C=f.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]); if(D.isDefaultPrevented()||!C){return }var B=this,A=this.tip(),z=this.getUID(this.type); this.setContent(),A.attr("id",z),this.$element.attr("aria-describedby",z),this.options.animation&&A.addClass("fade"); var y="function"==typeof this.options.placement?this.options.placement.call(this,A[0],this.$element[0]):this.options.placement,x=/\s?auto?\s?/i,w=x.test(y); w&&(y=y.replace(x,"")||"top"),A.detach().css({top:0,left:0,display:"block"}).addClass(y).data("bs."+this.type,this),this.options.container?A.appendTo(this.options.container):A.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type); var v=this.getPosition(),u=A[0].offsetWidth,t=A[0].offsetHeight; if(w){var s=y,r=this.getPosition(this.$viewport); y="bottom"==y&&v.bottom+t>r.bottom?"top":"top"==y&&v.top-tr.width?"left":"left"==y&&v.left-up.top+p.height&&(r.top=p.top+p.height-n) }else{var m=u.left-q,l=u.left+q+t; mp.right&&(r.left=p.left+p.width-l) }return r },h.prototype.getTitle=function(){var j,d=this.$element,k=this.options; return j=d.attr("src-title")||("function"==typeof k.title?k.title.call(d[0]):k.title) },h.prototype.getUID=function(b){do{b+=~~(1000000*Math.random()) }while(document.getElementById(b)); return b },h.prototype.tip=function(){if(!this.$tip&&(this.$tip=f(this.options.template),1!=this.$tip.length)){throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!") }return this.$tip },h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow") },h.prototype.enable=function(){this.enabled=!0 },h.prototype.disable=function(){this.enabled=!1 },h.prototype.toggleEnabled=function(){this.enabled=!this.enabled },h.prototype.toggle=function(a){var d=this; a&&(d=f(a.currentTarget).data("bs."+this.type),d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d))),a?(d.inState.click=!d.inState.click,d.isInStateTrue()?d.enter(d):d.leave(d)):d.tip().hasClass("in")?d.leave(d):d.enter(d) },h.prototype.destroy=function(){var b=this; clearTimeout(this.timeout),this.hide(function(){b.$element.off("."+b.type).removeData("bs."+b.type),b.$tip&&b.$tip.detach(),b.$tip=null,b.$arrow=null,b.$viewport=null }) }; var g=f.fn.tooltip; f.fn.tooltip=e,f.fn.tooltip.Constructor=h,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=g,this } }(jQuery),+function(f){function e(a){return this.each(function(){var j=f(this),c=j.data("bs.popover"),b="object"==typeof a&&a; (c||!/destroy|hide/.test(a))&&(c||j.data("bs.popover",c=new h(this,b)),"string"==typeof a&&c[a]()) }) }var h=function(d,c){this.init("popover",d,c) }; if(!f.fn.tooltip){throw new Error("Popover requires tooltip.js") }h.VERSION="3.3.5",h.DEFAULTS=f.extend({},f.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),h.prototype=f.extend({},f.fn.tooltip.Constructor.prototype),h.prototype.constructor=h,h.prototype.getDefaults=function(){return h.DEFAULTS },h.prototype.setContent=function(){var j=this.tip(),d=this.getTitle(),k=this.getContent(); j.find(".popover-title")[this.options.html?"html":"text"](d),j.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof k?"html":"append":"text"](k),j.removeClass("fade top bottom left right in"),j.find(".popover-title").html()||j.find(".popover-title").hide() },h.prototype.hasContent=function(){return this.getTitle()||this.getContent() },h.prototype.getContent=function(){var d=this.$element,c=this.options; return d.attr("data-content")||("function"==typeof c.content?c.content.call(d[0]):c.content) },h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow") }; var g=f.fn.popover; f.fn.popover=e,f.fn.popover.Constructor=h,f.fn.popover.noConflict=function(){return f.fn.popover=g,this } }(jQuery),+function(f){function e(b,a){this.$body=f(document.body),this.$scrollElement=f(f(b).is(document.body)?window:b),this.options=f.extend({},e.DEFAULTS,a),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",f.proxy(this.process,this)),this.refresh(),this.process() }function h(a){return this.each(function(){var j=f(this),c=j.data("bs.scrollspy"),b="object"==typeof a&&a; c||j.data("bs.scrollspy",c=new e(this,b)),"string"==typeof a&&c[a]() }) }e.VERSION="3.3.5",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight) },e.prototype.refresh=function(){var a=this,k="offset",j=0; this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),f.isWindow(this.$scrollElement[0])||(k="position",j=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var c=f(this),l=c.data("target")||c.attr("href"),d=/^#./.test(l)&&f(l); return d&&d.length&&d.is(":visible")&&[[d[k]().top+j,l]]||null }).sort(function(d,c){return d[0]-c[0] }).each(function(){a.offsets.push(this[0]),a.targets.push(this[1]) }) },e.prototype.process=function(){var k,j=this.$scrollElement.scrollTop()+this.options.offset,p=this.getScrollHeight(),o=this.options.offset+p-this.$scrollElement.height(),n=this.offsets,m=this.targets,l=this.activeTarget; if(this.scrollHeight!=p&&this.refresh(),j>=o){return l!=(k=m[m.length-1])&&this.activate(k) }if(l&&j=n[k]&&(void 0===n[k+1]||j .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),c?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n() }var l=o.find("> .active"),c=n&&g.support.transition&&(l.length&&l.hasClass("fade")||!!o.find("> .fade").length); l.length&&c?l.one("bsTransitionEnd",m).emulateTransitionEnd(k.TRANSITION_DURATION):m(),l.removeClass("in") }; var j=g.fn.tab; g.fn.tab=f,g.fn.tab.Constructor=k,g.fn.tab.noConflict=function(){return g.fn.tab=j,this }; var h=function(a){a.preventDefault(),f.call(g(this),"show") }; g(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',h).on("click.bs.tab.data-api",'[data-toggle="pill"]',h) }(jQuery),+function(f){function e(a){return this.each(function(){var j=f(this),c=j.data("bs.affix"),b="object"==typeof a&&a; c||j.data("bs.affix",c=new h(this,b)),"string"==typeof a&&c[a]() }) }var h=function(a,c){this.options=f.extend({},h.DEFAULTS,c),this.$target=f(this.options.target).on("scroll.bs.affix.data-api",f.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",f.proxy(this.checkPositionWithEventLoop,this)),this.$element=f(a),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition() }; h.VERSION="3.3.5",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(t,s,r,q){var p=this.$target.scrollTop(),o=this.$element.offset(),n=this.$target.height(); if(null!=r&&"top"==this.affixed){return r>p?"top":!1 }if("bottom"==this.affixed){return null!=r?p+this.unpin<=o.top?!1:"bottom":t-q>=p+n?!1:"bottom" }var m=null==this.affixed,l=m?p:o.top,k=m?n:s; return null!=r&&r>=p?"top":null!=q&&l+k>=t-q?"bottom":!1 },h.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset }this.$element.removeClass(h.RESET).addClass("affix"); var d=this.$target.scrollTop(),c=this.$element.offset(); return this.pinnedOffset=c.top-d },h.prototype.checkPositionWithEventLoop=function(){setTimeout(f.proxy(this.checkPosition,this),1) },h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var a=this.$element.height(),p=this.options.offset,o=p.top,n=p.bottom,m=Math.max(f(document).height(),f(document.body).height()); "object"!=typeof p&&(n=o=p),"function"==typeof o&&(o=p.top(this.$element)),"function"==typeof n&&(n=p.bottom(this.$element)); var l=this.getState(m,a,o,n); if(this.affixed!=l){null!=this.unpin&&this.$element.css("top",""); var k="affix"+(l?"-"+l:""),c=f.Event(k+".bs.affix"); if(this.$element.trigger(c),c.isDefaultPrevented()){return }this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(k).trigger(k.replace("affix","affixed")+".bs.affix") }"bottom"==l&&this.$element.offset({top:m-a-n}) }}; var g=f.fn.affix; f.fn.affix=e,f.fn.affix.Constructor=h,f.fn.affix.noConflict=function(){return f.fn.affix=g,this },f(window).on("load",function(){f('[data-spy="affix"]').each(function(){var b=f(this),a=b.data(); a.offset=a.offset||{},null!=a.offsetBottom&&(a.offset.bottom=a.offsetBottom),null!=a.offsetTop&&(a.offset.top=a.offsetTop),e.call(b,a) }) }) }(jQuery); /*! jQuery UI - v1.10.3 - 2013-06-06 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.menu.js, jquery.ui.tabs.js * Copyright 2013 jQuery Foundation and other contributors Licensed MIT */ (function(g,d){function c(k,j){var e,p,l,m=k.nodeName.toLowerCase(); return"area"===m?(e=k.parentNode,p=e.name,k.href&&p&&"map"===e.nodeName.toLowerCase()?(l=g("img[usemap=#"+p+"]")[0],!!l&&f(l)):!1):(/input|select|textarea|button|object/.test(m)?!k.disabled:"a"===m?k.href||j:j)&&f(k) }function f(a){return g.expr.filters.visible(a)&&!g(a).parents().addBack().filter(function(){return"hidden"===g.css(this,"visibility") }).length }var b=0,h=/^ui-id-\d+$/; g.ui=g.ui||{},g.extend(g.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),g.fn.extend({focus:function(a){return function(e,j){return"number"==typeof e?this.each(function(){var k=this; setTimeout(function(){g(k).focus(),j&&j.call(k) },e) }):a.apply(this,arguments) } }(g.fn.focus),scrollParent:function(){var a; return a=g.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(g.css(this,"position"))&&/(auto|scroll)/.test(g.css(this,"overflow")+g.css(this,"overflow-y")+g.css(this,"overflow-x")) }).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(g.css(this,"overflow")+g.css(this,"overflow-y")+g.css(this,"overflow-x")) }).eq(0),/fixed/.test(this.css("position"))||!a.length?g(document):a },zIndex:function(j){if(j!==d){return this.css("zIndex",j) }if(this.length){for(var k,e,l=g(this[0]); l.length&&l[0]!==document; ){if(k=l.css("position"),("absolute"===k||"relative"===k||"fixed"===k)&&(e=parseInt(l.css("zIndex"),10),!isNaN(e)&&0!==e)){return e }l=l.parent() }}return 0 },uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++b) }) },removeUniqueId:function(){return this.each(function(){h.test(this.id)&&g(this).removeAttr("id") }) }}),g.extend(g.expr[":"],{data:g.expr.createPseudo?g.expr.createPseudo(function(a){return function(e){return !!g.data(e,a) } }):function(e,a,j){return !!g.data(e,j[3]) },focusable:function(a){return c(a,!isNaN(g.attr(a,"tabindex"))) },tabbable:function(j){var k=g.attr(j,"tabindex"),e=isNaN(k); return(e||k>=0)&&c(j,!e) }}),g("").outerWidth(1).jquery||g.each(["Width","Height"],function(j,k){function e(q,o,r,n){return g.each(p,function(){o-=parseFloat(g.css(q,"padding"+this))||0,r&&(o-=parseFloat(g.css(q,"border"+this+"Width"))||0),n&&(o-=parseFloat(g.css(q,"margin"+this))||0) }),o }var p="Width"===k?["Left","Right"]:["Top","Bottom"],l=k.toLowerCase(),m={innerWidth:g.fn.innerWidth,innerHeight:g.fn.innerHeight,outerWidth:g.fn.outerWidth,outerHeight:g.fn.outerHeight}; g.fn["inner"+k]=function(a){return a===d?m["inner"+k].call(this):this.each(function(){g(this).css(l,e(this,a)+"px") }) },g.fn["outer"+k]=function(n,a){return"number"!=typeof n?m["outer"+k].call(this,n):this.each(function(){g(this).css(l,e(this,n,!0,a)+"px") }) } }),g.fn.addBack||(g.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a)) }),g("").data("a-b","a").removeData("a-b").data("a-b")&&(g.fn.removeData=function(a){return function(e){return arguments.length?a.call(this,g.camelCase(e)):a.call(this) } }(g.fn.removeData)),g.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),g.support.selectstart="onselectstart" in document.createElement("div"),g.fn.extend({disableSelection:function(){return this.bind((g.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault() }) },enableSelection:function(){return this.unbind(".ui-disableSelection") }}),g.extend(g.ui,{plugin:{add:function(k,j,l){var e,m=g.ui[k].prototype; for(e in l){m.plugins[e]=m.plugins[e]||[],m.plugins[e].push([j,l[e]]) }},call:function(n,l,k){var m,j=n.plugins[l]; if(j&&n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType){for(m=0; j.length>m; m++){n.options[j[m][0]]&&j[m][1].apply(n.element,k) }}}},hasScroll:function(k,j){if("hidden"===g(k).css("overflow")){return !1 }var l=j&&"left"===j?"scrollLeft":"scrollTop",e=!1; return k[l]>0?!0:(k[l]=1,e=k[l]>0,k[l]=0,e) }}) })(jQuery); (function(d,b){var a=0,c=Array.prototype.slice,f=d.cleanData; d.cleanData=function(h){for(var g,j=0; null!=(g=h[j]); j++){try{d(g).triggerHandler("remove") }catch(e){}}f(h) },d.widget=function(m,v,j){var q,e,g,p,k={},t=m.split(".")[0]; m=m.split(".")[1],q=t+"-"+m,j||(j=v,v=d.Widget),d.expr[":"][q.toLowerCase()]=function(h){return !!d.data(h,q) },d[t]=d[t]||{},e=d[t][m],g=d[t][m]=function(l,h){return this._createWidget?(arguments.length&&this._createWidget(l,h),b):new g(l,h) },d.extend(g,e,{version:j.version,_proto:d.extend({},j),_childConstructors:[]}),p=new v,p.options=d.widget.extend({},p.options),d.each(j,function(h,l){return d.isFunction(l)?(k[h]=function(){var o=function(){return v.prototype[h].apply(this,arguments) },n=function(r){return v.prototype[h].apply(this,r) }; return function(){var u,w=this._super,r=this._superApply; return this._super=o,this._superApply=n,u=l.apply(this,arguments),this._super=w,this._superApply=r,u } }(),b):(k[h]=l,b) }),g.prototype=d.widget.extend(p,{widgetEventPrefix:e?p.widgetEventPrefix:m},k,{constructor:g,namespace:t,widgetName:m,widgetFullName:q}),e?(d.each(e._childConstructors,function(l,h){var n=h.prototype; d.widget(n.namespace+"."+n.widgetName,g,h._proto) }),delete e._childConstructors):v._childConstructors.push(g),d.widget.bridge(m,g) },d.widget.extend=function(g){for(var m,e,k=c.call(arguments,1),l=0,j=k.length; j>l; l++){for(m in k[l]){e=k[l][m],k[l].hasOwnProperty(m)&&e!==b&&(g[m]=d.isPlainObject(e)?d.isPlainObject(g[m])?d.widget.extend({},g[m],e):d.widget.extend({},e):e) }}return g },d.widget.bridge=function(g,h){var e=h.prototype.widgetFullName||g; d.fn[g]=function(m){var n="string"==typeof m,k=c.call(arguments,1),j=this; return m=!n&&k.length?d.widget.extend.apply(null,[m].concat(k)):m,n?this.each(function(){var l,o=d.data(this,e); return o?d.isFunction(o[m])&&"_"!==m.charAt(0)?(l=o[m].apply(o,k),l!==o&&l!==b?(j=l&&l.jquery?j.pushStack(l.get()):l,!1):b):d.error("no such method '"+m+"' for "+g+" widget instance"):d.error("cannot call methods on "+g+" prior to initialization; attempted to call method '"+m+"'") }):this.each(function(){var l=d.data(this,e); l?l.option(m||{})._init():d.data(this,e,new h(m,this)) }),j } },d.Widget=function(){},d.Widget._childConstructors=[],d.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(e,g){g=d(g||this.defaultElement||this)[0],this.element=d(g),this.uuid=a++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=d.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=d(),this.hoverable=d(),this.focusable=d(),g!==this&&(d.data(g,this.widgetFullName,this),this._on(!0,this.element,{remove:function(h){h.target===g&&this.destroy() }}),this.document=d(g.style?g.ownerDocument:g.document||g),this.window=d(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init() },_getCreateOptions:d.noop,_getCreateEventData:d.noop,_create:d.noop,_init:d.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(d.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus") },_destroy:d.noop,widget:function(){return this.element },option:function(g,h){var l,e,j,k=g; if(0===arguments.length){return d.widget.extend({},this.options) }if("string"==typeof g){if(k={},l=g.split("."),g=l.shift(),l.length){for(e=k[g]=d.widget.extend({},this.options[g]),j=0; l.length-1>j; j++){e[l[j]]=e[l[j]]||{},e=e[l[j]] }if(g=l.pop(),h===b){return e[g]===b?null:e[g] }e[g]=h }else{if(h===b){return this.options[g]===b?null:this.options[g] }k[g]=h }}return this._setOptions(k),this },_setOptions:function(h){var g; for(g in h){this._setOption(g,h[g]) }return this },_setOption:function(h,g){return this.options[h]=g,"disabled"===h&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!g).attr("aria-disabled",g),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this },enable:function(){return this._setOption("disabled",!1) },disable:function(){return this._setOption("disabled",!0) },_on:function(g,h,k){var e,j=this; "boolean"!=typeof g&&(k=h,h=g,g=!1),k?(h=e=d(h),this.bindings=this.bindings.add(h)):(k=h,h=this.element,e=this.widget()),d.each(k,function(t,r){function q(){return g||j.options.disabled!==!0&&!d(this).hasClass("ui-state-disabled")?("string"==typeof r?j[r]:r).apply(j,arguments):b }"string"!=typeof r&&(q.guid=r.guid=r.guid||q.guid||d.guid++); var m=t.match(/^(\w+)\s*(.*)$/),p=m[1]+j.eventNamespace,s=m[2]; s?e.delegate(s,p,q):h.bind(p,q) }) },_off:function(h,g){g=(g||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,h.unbind(g).undelegate(g) },_delay:function(k,h){function g(){return("string"==typeof k?j[k]:k).apply(j,arguments) }var j=this; return setTimeout(g,h||0) },_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(g){d(g.currentTarget).addClass("ui-state-hover") },mouseleave:function(g){d(g.currentTarget).removeClass("ui-state-hover") }}) },_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(g){d(g.currentTarget).addClass("ui-state-focus") },focusout:function(g){d(g.currentTarget).removeClass("ui-state-focus") }}) },_trigger:function(h,g,j){var l,e,k=this.options[h]; if(j=j||{},g=d.Event(g),g.type=(h===this.widgetEventPrefix?h:this.widgetEventPrefix+h).toLowerCase(),g.target=this.element[0],e=g.originalEvent){for(l in e){l in g||(g[l]=e[l]) }}return this.element.trigger(g,j),!(d.isFunction(k)&&k.apply(this.element[0],[g].concat(j))===!1||g.isDefaultPrevented()) }},d.each({show:"fadeIn",hide:"fadeOut"},function(g,e){d.Widget.prototype["_"+g]=function(j,m,h){"string"==typeof m&&(m={effect:m}); var k,l=m?m===!0||"number"==typeof m?e:m.effect||e:g; m=m||{},"number"==typeof m&&(m={duration:m}),k=!d.isEmptyObject(m),m.complete=h,m.delay&&j.delay(m.delay),k&&d.effects&&d.effects.effect[l]?j[g](m):l!==g&&j[l]?j[l](m.duration,m.easing,h):j.queue(function(n){d(this)[g](),h&&h.call(j[0]),n() }) } }) })(jQuery); (function(C,x){function q(c,d,a){return[parseFloat(c[0])*(g.test(c[0])?d/100:1),parseFloat(c[1])*(g.test(c[1])?a/100:1)] }function D(c,a){return parseInt(C.css(c,a),10)||0 }function k(c){var a=c[0]; return 9===a.nodeType?{width:c.width(),height:c.height(),offset:{top:0,left:0}}:C.isWindow(a)?{width:c.width(),height:c.height(),offset:{top:c.scrollTop(),left:c.scrollLeft()}}:a.preventDefault?{width:0,height:0,offset:{top:a.pageY,left:a.pageX}}:{width:c.outerWidth(),height:c.outerHeight(),offset:c.offset()} }C.ui=C.ui||{}; var A,j=Math.max,b=Math.abs,v=Math.round,m=/left|center|right/,z=/top|center|bottom/,B=/[\+\-]\d+(\.[\d]+)?%?/,y=/^\w+/,g=/%$/,w=C.fn.position; C.position={scrollbarWidth:function(){if(A!==x){return A }var a,c,e=C("
"),d=e.children()[0]; return C("body").append(e),a=d.offsetWidth,e.css("overflow","scroll"),c=d.offsetWidth,a===c&&(c=e[0].clientWidth),e.remove(),A=a-c },getScrollInfo:function(h){var d=h.isWindow?"":h.element.css("overflow-x"),f=h.isWindow?"":h.element.css("overflow-y"),l="scroll"===d||"auto"===d&&h.widthR?"left":O>0?"right":"center",vertical:0>M?"top":S>0?"bottom":"middle"}; N>c&&c>b(O+R)&&(Q.horizontal="center"),J>d&&d>b(S+M)&&(Q.vertical="middle"),Q.important=j(b(O),b(R))>j(b(S),b(M))?"horizontal":"vertical",l.using.call(this,P,Q) }),K.offset(C.extend(e,{using:F})) }) },C.ui.position={fit:{left:function(F,u){var o,G=u.within,d=G.isWindow?G.scrollLeft:G.offset.left,E=G.width,c=F.left-u.collisionPosition.marginLeft,p=d-c,f=c+u.collisionWidth-E-d; u.collisionWidth>E?p>0&&0>=f?(o=F.left+p+u.collisionWidth-E-d,F.left+=p-o):F.left=f>0&&0>=p?d:p>f?d+E-u.collisionWidth:d:p>0?F.left+=p:f>0?F.left-=f:F.left=j(F.left-c,F.left) },top:function(F,u){var o,G=u.within,d=G.isWindow?G.scrollTop:G.offset.top,E=u.within.height,c=F.top-u.collisionPosition.marginTop,p=d-c,f=c+u.collisionHeight-E-d; u.collisionHeight>E?p>0&&0>=f?(o=F.top+p+u.collisionHeight-E-d,F.top+=p-o):F.top=f>0&&0>=p?d:p>f?d+E-u.collisionHeight:d:p>0?F.top+=p:f>0?F.top-=f:F.top=j(F.top-c,F.top) }},flip:{left:function(P,K){var H,Q,F=K.within,N=F.offset.left+F.scrollLeft,E=F.width,I=F.isWindow?F.scrollLeft:F.offset.left,G=P.left-K.collisionPosition.marginLeft,M=G-I,O=G+K.collisionWidth-E-I,L="left"===K.my[0]?-K.elemWidth:"right"===K.my[0]?K.elemWidth:0,r="left"===K.at[0]?K.targetWidth:"right"===K.at[0]?-K.targetWidth:0,J=-2*K.offset[0]; 0>M?(H=P.left+L+r+J+K.collisionWidth-E-N,(0>H||b(M)>H)&&(P.left+=L+r+J)):O>0&&(Q=P.left-K.collisionPosition.marginLeft+L+r+J-I,(Q>0||O>b(Q))&&(P.left+=L+r+J)) },top:function(Q,L){var I,R,F=L.within,O=F.offset.top+F.scrollTop,E=F.height,J=F.isWindow?F.scrollTop:F.offset.top,H=Q.top-L.collisionPosition.marginTop,N=H-J,P=H+L.collisionHeight-E-J,M="top"===L.my[1],r=M?-L.elemHeight:"bottom"===L.my[1]?L.elemHeight:0,K="top"===L.at[1]?L.targetHeight:"bottom"===L.at[1]?-L.targetHeight:0,G=-2*L.offset[1]; 0>N?(R=Q.top+r+K+G+L.collisionHeight-E-O,Q.top+r+K+G>N&&(0>R||b(N)>R)&&(Q.top+=r+K+G)):P>0&&(I=Q.top-L.collisionPosition.marginTop+r+K+G-J,Q.top+r+K+G>P&&(I>0||P>b(I))&&(Q.top+=r+K+G)) }},flipfit:{left:function(){C.ui.position.flip.left.apply(this,arguments),C.ui.position.fit.left.apply(this,arguments) },top:function(){C.ui.position.flip.top.apply(this,arguments),C.ui.position.fit.top.apply(this,arguments) }}},function(){var l,d,f,t,c,p=document.getElementsByTagName("body")[0],h=document.createElement("div"); l=document.createElement(p?"div":"body"),f={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},p&&C.extend(f,{position:"absolute",left:"-1000px",top:"-1000px"}); for(c in f){l.style[c]=f[c] }l.appendChild(h),d=p||document.documentElement,d.insertBefore(l,d.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",t=C(h).offset().left,C.support.offsetFractions=t>10&&11>t,l.innerHTML="",d.removeChild(l) }() })(jQuery); (function(b){var d=0,a={},c={}; a.height=a.paddingTop=a.paddingBottom=a.borderTopWidth=a.borderBottomWidth="hide",c.height=c.paddingTop=c.paddingBottom=c.borderTopWidth=c.borderBottomWidth="show",b.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var f=this.options; this.prevShow=this.prevHide=b(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),f.collapsible||f.active!==!1&&null!=f.active||(f.active=0),this._processPanels(),0>f.active&&(f.active+=this.headers.length),this._refresh() },_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():b(),content:this.active.length?this.active.next():b()} },_createIcons:function(){var f=this.options.icons; f&&(b("").addClass("ui-accordion-header-icon ui-icon "+f.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(f.header).addClass(f.activeHeader),this.headers.addClass("ui-accordion-icons")) },_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove() },_destroy:function(){var e; this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id") }),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id") }),"content"!==this.options.heightStyle&&e.css("height","") },_setOption:function(f,g){return"active"===f?(this._activate(g),undefined):("event"===f&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(g)),this._super(f,g),"collapsible"!==f||g||this.options.active!==!1||this._activate(0),"icons"===f&&(this._destroyIcons(),g&&this._createIcons()),"disabled"===f&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!g),undefined) },_keydown:function(j){if(!j.altKey&&!j.ctrlKey){var g=b.ui.keyCode,h=this.headers.length,k=this.headers.index(j.target),f=!1; switch(j.keyCode){case g.RIGHT:case g.DOWN:f=this.headers[(k+1)%h]; break; case g.LEFT:case g.UP:f=this.headers[(k-1+h)%h]; break; case g.SPACE:case g.ENTER:this._eventHandler(j); break; case g.HOME:f=this.headers[0]; break; case g.END:f=this.headers[h-1] }f&&(b(j.target).attr("tabIndex",-1),b(f).attr("tabIndex",0),f.focus(),j.preventDefault()) }},_panelKeyDown:function(f){f.keyCode===b.ui.keyCode.UP&&f.ctrlKey&&b(f.currentTarget).prev().focus() },refresh:function(){var f=this.options; this._processPanels(),f.active===!1&&f.collapsible===!0||!this.headers.length?(f.active=!1,this.active=b()):f.active===!1?this._activate(0):this.active.length&&!b.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(f.active=!1,this.active=b()):this._activate(Math.max(0,f.active-1)):f.active=this.headers.index(this.active),this._destroyIcons(),this._refresh() },_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide() },_refresh:function(){var f,g=this.options,j=g.heightStyle,e=this.element.parent(),h=this.accordionId="ui-accordion-"+(this.element.attr("id")||++d); this.active=this._findActive(g.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(o){var l=b(this),m=l.attr("id"),p=l.next(),k=p.attr("id"); m||(m=h+"-header-"+o,l.attr("id",m)),k||(k=h+"-panel-"+o,p.attr("id",k)),l.attr("aria-controls",k),p.attr("aria-labelledby",m) }).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(g.event),"fill"===j?(f=e.height(),this.element.siblings(":visible").each(function(){var l=b(this),k=l.css("position"); "absolute"!==k&&"fixed"!==k&&(f-=l.outerHeight(!0)) }),this.headers.each(function(){f-=b(this).outerHeight(!0) }),this.headers.next().each(function(){b(this).height(Math.max(0,f-b(this).innerHeight()+b(this).height())) }).css("overflow","auto")):"auto"===j&&(f=0,this.headers.next().each(function(){f=Math.max(f,b(this).css("height","").height()) }).height(f)) },_activate:function(g){var f=this._findActive(g)[0]; f!==this.active[0]&&(f=f||this.active[0],this._eventHandler({target:f,currentTarget:f,preventDefault:b.noop})) },_findActive:function(f){return"number"==typeof f?this.headers.eq(f):b() },_setupEvents:function(g){var f={keydown:"_keydown"}; g&&b.each(g.split(" "),function(h,j){f[j]="_eventHandler" }),this._off(this.headers.add(this.headers.next())),this._on(this.headers,f),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers) },_eventHandler:function(q){var m=this.options,u=this.active,j=b(q.currentTarget),t=j[0]===u[0],g=t&&m.collapsible,f=g?b():j.next(),p=u.next(),k={oldHeader:u,oldPanel:p,newHeader:g?b():j,newPanel:f}; q.preventDefault(),t&&!m.collapsible||this._trigger("beforeActivate",q,k)===!1||(m.active=g?!1:this.headers.index(j),this.active=t?b():j,this._toggle(k),u.removeClass("ui-accordion-header-active ui-state-active"),m.icons&&u.children(".ui-accordion-header-icon").removeClass(m.icons.activeHeader).addClass(m.icons.header),t||(j.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),m.icons&&j.children(".ui-accordion-header-icon").removeClass(m.icons.header).addClass(m.icons.activeHeader),j.next().addClass("ui-accordion-content-active"))) },_toggle:function(h){var f=h.newPanel,g=this.prevShow.length?this.prevShow:h.oldPanel; this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=f,this.prevHide=g,this.options.animate?this._animate(f,g,h):(g.hide(),f.show(),this._toggleComplete(h)),g.attr({"aria-expanded":"false","aria-hidden":"true"}),g.prev().attr("aria-selected","false"),f.length&&g.length?g.prev().attr("tabIndex",-1):f.length&&this.headers.filter(function(){return 0===b(this).attr("tabIndex") }).attr("tabIndex",-1),f.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0}) },_animate:function(z,s,k){var x,j,f,q=this,m=0,w=z.length&&(!s.length||z.index()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var g,d,f,j=this.element[0].nodeName.toLowerCase(),c="textarea"===j,h="input"===j; this.isMultiLine=c?!0:h?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[c||h?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(k){if(this.element.prop("readOnly")){return g=!0,f=!0,d=!0,undefined }g=!1,f=!1,d=!1; var e=a.ui.keyCode; switch(k.keyCode){case e.PAGE_UP:g=!0,this._move("previousPage",k); break; case e.PAGE_DOWN:g=!0,this._move("nextPage",k); break; case e.UP:g=!0,this._keyEvent("previous",k); break; case e.DOWN:g=!0,this._keyEvent("next",k); break; case e.ENTER:case e.NUMPAD_ENTER:this.menu.active&&(g=!0,k.preventDefault(),this.menu.select(k)); break; case e.TAB:this.menu.active&&this.menu.select(k); break; case e.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(k),k.preventDefault()); break; default:d=!0,this._searchTimeout(k) }},keypress:function(e){if(g){return g=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&e.preventDefault(),undefined }if(!d){var k=a.ui.keyCode; switch(e.keyCode){case k.PAGE_UP:this._move("previousPage",e); break; case k.PAGE_DOWN:this._move("nextPage",e); break; case k.UP:this._keyEvent("previous",e); break; case k.DOWN:this._keyEvent("next",e) }}},input:function(e){return f?(f=!1,e.preventDefault(),undefined):(this._searchTimeout(e),undefined) },focus:function(){this.selectedItem=null,this.previous=this._value() },blur:function(e){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(e),this._change(e),undefined) }}),this._initSource(),this.menu=a("
").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(l){l.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur }); var k=this.menu.element[0]; a(l.target).closest(".ui-menu-item").length||this._delay(function(){var m=this; this.document.one("mousedown",function(e){e.target===m.element[0]||e.target===k||a.contains(k,e.target)||m.close() }) }) },menufocus:function(m,k){if(this.isNewMenu&&(this.isNewMenu=!1,m.originalEvent&&/^mouse/.test(m.originalEvent.type))){return this.menu.blur(),this.document.one("mousemove",function(){a(m.target).trigger(m.originalEvent) }),undefined }var l=k.item.data("ui-autocomplete-item"); !1!==this._trigger("focus",m,{item:l})?m.originalEvent&&/^key/.test(m.originalEvent.type)&&this._value(l.value):this.liveRegion.text(l.value) },menuselect:function(l,n){var k=n.item.data("ui-autocomplete-item"),m=this.previous; this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=m,this._delay(function(){this.previous=m,this.selectedItem=k })),!1!==this._trigger("select",l,{item:k})&&this._value(k.value),this.term=this._value(),this.close(l),this.selectedItem=k }}),this.liveRegion=a("",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete") }}) },_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove() },_setOption:function(c,d){this._super(c,d),"source"===c&&this._initSource(),"appendTo"===c&&this.menu.element.appendTo(this._appendTo()),"disabled"===c&&d&&this.xhr&&this.xhr.abort() },_appendTo:function(){var c=this.options.appendTo; return c&&(c=c.jquery||c.nodeType?a(c):this.document.find(c).eq(0)),c||(c=this.element.closest(".ui-front")),c.length||(c=this.document[0].body),c },_initSource:function(){var f,c,d=this; a.isArray(this.options.source)?(f=this.options.source,this.source=function(e,g){g(a.ui.autocomplete.filter(f,e.term)) }):"string"==typeof this.options.source?(c=this.options.source,this.source=function(g,h){d.xhr&&d.xhr.abort(),d.xhr=a.ajax({url:c,data:g,dataType:"json",success:function(e){h(e) },error:function(){h([]) }}) }):this.source=this.options.source },_searchTimeout:function(c){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,c)) },this.options.delay) },search:function(c,d){return c=null!=c?c:this._value(),this.term=this._value(),c.length").append(a("").text(c.label)).appendTo(d) },_move:function(c,d){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(c)||this.menu.isLastItem()&&/^next/.test(c)?(this._value(this.term),this.menu.blur(),undefined):(this.menu[c](d),undefined):(this.search(null,d),undefined) },widget:function(){return this.menu.element },_value:function(){return this.valueMethod.apply(this.element,arguments) },_keyEvent:function(c,d){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(c,d),d.preventDefault()) }}),a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&") },filter:function(f,c){var d=RegExp(a.ui.autocomplete.escapeRegex(c),"i"); return a.grep(f,function(e){return d.test(e.label||e.value||e) }) }}),a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(c){return c+(c>1?" results are":" result is")+" available, use up and down arrow keys to navigate." }}},__response:function(c){var d; this._superApply(arguments),this.options.disabled||this.cancelSearch||(d=c&&c.length?this.options.messages.results(c.length):this.options.messages.noResults,this.liveRegion.text(d)) }}) })(jQuery); (function(a){a.widget("ui.menu",{version:"1.10.3",defaultElement:"
",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(b){this.options.disabled&&b.preventDefault() },this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(b){b.preventDefault() },"click .ui-state-disabled > a":function(b){b.preventDefault() },"click .ui-menu-item:has(a)":function(c){var b=a(c.target).closest(".ui-menu-item"); !this.mouseHandled&&b.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(c),b.has(".ui-menu").length?this.expand(c):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))) },"mouseenter .ui-menu-item":function(c){var b=a(c.currentTarget); b.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(c,b) },mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(c,d){var b=this.active||this.element.children(".ui-menu-item").eq(0); d||this.focus(c,b) },blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b) }) },keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1 }}) },_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this); b.data("ui-menu-submenu-carat")&&b.remove() }),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content") },_keydown:function(j){function c(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&") }var f,l,b,k,g,d=!0; switch(j.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(j); break; case a.ui.keyCode.PAGE_DOWN:this.nextPage(j); break; case a.ui.keyCode.HOME:this._move("first","first",j); break; case a.ui.keyCode.END:this._move("last","last",j); break; case a.ui.keyCode.UP:this.previous(j); break; case a.ui.keyCode.DOWN:this.next(j); break; case a.ui.keyCode.LEFT:this.collapse(j); break; case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(j); break; case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(j); break; case a.ui.keyCode.ESCAPE:this.collapse(j); break; default:d=!1,l=this.previousFilter||"",b=String.fromCharCode(j.keyCode),k=!1,clearTimeout(this.filterTimer),b===l?k=!0:b=l+b,g=RegExp("^"+c(b),"i"),f=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text()) }),f=k&&-1!==f.index(this.active.next())?this.active.nextAll(".ui-menu-item"):f,f.length||(b=String.fromCharCode(j.keyCode),g=RegExp("^"+c(b),"i"),f=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text()) })),f.length?(this.focus(j,f),f.length>1?(this.previousFilter=b,this.filterTimer=this._delay(function(){delete this.previousFilter },1000)):delete this.previousFilter):delete this.previousFilter }d&&j.preventDefault() },_activate:function(b){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(b):this.select(b)) },refresh:function(){var d,b=this.options.icons.submenu,c=this.element.find(this.options.menus); c.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var g=a(this),f=g.prev("a"),h=a("").addClass("ui-menu-icon ui-icon "+b).data("ui-menu-submenu-carat",!0); f.attr("aria-haspopup","true").prepend(h),g.attr("aria-labelledby",f.attr("id")) }),d=c.add(this.element),d.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),d.children(":not(.ui-menu-item)").each(function(){var f=a(this); /[^\-\u2014\u2013\s]/.test(f.text())||f.addClass("ui-widget-content ui-menu-divider") }),d.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur() },_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role] },_setOption:function(b,c){"icons"===b&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(c.submenu),this._super(b,c) },focus:function(c,f){var b,d; this.blur(c,c&&"focus"===c.type),this._scrollIntoView(f),this.active=f.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),c&&"keydown"===c.type?this._close():this.timer=this._delay(function(){this._close() },this.delay),b=f.children(".ui-menu"),b.length&&/^mouse/.test(c.type)&&this._startOpening(b),this.activeMenu=f.parent(),this._trigger("focus",c,{item:f}) },_scrollIntoView:function(g){var c,d,j,b,h,f; this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,j=g.offset().top-this.activeMenu.offset().top-c-d,b=this.activeMenu.scrollTop(),h=this.activeMenu.height(),f=g.height(),0>j?this.activeMenu.scrollTop(b+j):j+f>h&&this.activeMenu.scrollTop(b+j-h+f)) },blur:function(b,c){c||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",b,{item:this.active})) },_startOpening:function(b){clearTimeout(this.timer),"true"===b.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(b) },this.delay)) },_open:function(c){var b=a.extend({of:this.active},this.options.position); clearTimeout(this.timer),this.element.find(".ui-menu").not(c.parents(".ui-menu")).hide().attr("aria-hidden","true"),c.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(b) },collapseAll:function(c,b){clearTimeout(this.timer),this.timer=this._delay(function(){var d=b?this.element:a(c&&c.target).closest(this.element.find(".ui-menu")); d.length||(d=this.element),this._close(d),this.blur(c),this.activeMenu=d },this.delay) },_close:function(b){b||(b=this.active?this.active.parent():this.element),b.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active") },collapse:function(b){var c=this.active&&this.active.parent().closest(".ui-menu-item",this.element); c&&c.length&&(this._close(),this.focus(b,c)) },expand:function(b){var c=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first(); c&&c.length&&(this._open(c.parent()),this._delay(function(){this.focus(b,c) })) },next:function(b){this._move("next","first",b) },previous:function(b){this._move("prev","last",b) },isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length },isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length },_move:function(c,f,b){var d; this.active&&(d="first"===c||"last"===c?this.active["first"===c?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[c+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[f]()),this.focus(b,d) },nextPage:function(d){var b,c,f; return this.active?(this.isLastItem()||(this._hasScroll()?(c=this.active.offset().top,f=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return b=a(this),0>b.offset().top-c-f }),this.focus(d,b)):this.focus(d,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(d),undefined) },previousPage:function(d){var b,c,f; return this.active?(this.isFirstItem()||(this._hasScroll()?(c=this.active.offset().top,f=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return b=a(this),b.offset().top-c+f>0 }),this.focus(d,b)):this.focus(d,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(d),undefined) },_hasScroll:function(){return this.element.outerHeight()1&&decodeURIComponent(a.href.replace(b,""))===decodeURIComponent(location.href.replace(b,"")) }var h=0,b=/#.*$/; d.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var j=this,a=this.options; this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",a.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(k){d(this).is(".ui-state-disabled")&&k.preventDefault() }).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){d(this).closest("li").is(".ui-state-disabled")&&this.blur() }),this._processTabs(),a.active=this._initialActive(),d.isArray(a.disabled)&&(a.disabled=d.unique(a.disabled.concat(d.map(this.tabs.filter(".ui-state-disabled"),function(e){return j.tabs.index(e) }))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(a.active):d(),this._refresh(),this.active.length&&this.load(a.active) },_initialActive:function(){var a=this.options.active,e=this.options.collapsible,j=location.hash.substring(1); return null===a&&(j&&this.tabs.each(function(l,k){return d(k).attr("aria-controls")===j?(a=l,!1):g }),null===a&&(a=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===a||-1===a)&&(a=this.tabs.length?0:!1)),a!==!1&&(a=this.tabs.index(this.tabs.eq(a)),-1===a&&(a=e?!1:0)),!e&&a===!1&&this.anchors.length&&(a=0),a },_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):d()} },_tabKeydown:function(j){var k=d(this.document[0].activeElement).closest("li"),l=this.tabs.index(k),e=!0; if(!this._handlePageNav(j)){switch(j.keyCode){case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:l++; break; case d.ui.keyCode.UP:case d.ui.keyCode.LEFT:e=!1,l--; break; case d.ui.keyCode.END:l=this.anchors.length-1; break; case d.ui.keyCode.HOME:l=0; break; case d.ui.keyCode.SPACE:return j.preventDefault(),clearTimeout(this.activating),this._activate(l),g; case d.ui.keyCode.ENTER:return j.preventDefault(),clearTimeout(this.activating),this._activate(l===this.options.active?!1:l),g; default:return }j.preventDefault(),clearTimeout(this.activating),l=this._focusNextTab(l,e),j.ctrlKey||(k.attr("aria-selected","false"),this.tabs.eq(l).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",l) },this.delay)) }},_panelKeydown:function(a){this._handlePageNav(a)||a.ctrlKey&&a.keyCode===d.ui.keyCode.UP&&(a.preventDefault(),this.active.focus()) },_handlePageNav:function(a){return a.altKey&&a.keyCode===d.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):a.altKey&&a.keyCode===d.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):g },_findNextTab:function(k,a){function j(){return k>l&&(k=0),0>k&&(k=l),k }for(var l=this.tabs.length-1; -1!==d.inArray(j(),this.options.disabled); ){k=a?k+1:k-1 }return k },_focusNextTab:function(a,j){return a=this._findNextTab(a,j),this.tabs.eq(a).focus(),a },_setOption:function(e,a){return"active"===e?(this._activate(a),g):"disabled"===e?(this._setupDisabled(a),g):(this._super(e,a),"collapsible"===e&&(this.element.toggleClass("ui-tabs-collapsible",a),a||this.options.active!==!1||this._activate(0)),"event"===e&&this._setupEvents(a),"heightStyle"===e&&this._setupHeightStyle(a),g) },_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+c() },_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):"" },refresh:function(){var j=this.options,a=this.tablist.children(":has(a[href])"); j.disabled=d.map(a.filter(".ui-state-disabled"),function(e){return a.index(e) }),this._processTabs(),j.active!==!1&&this.anchors.length?this.active.length&&!d.contains(this.tablist[0],this.active[0])?this.tabs.length===j.disabled.length?(j.active=!1,this.active=d()):this._activate(this._findNextTab(Math.max(0,j.active-1),!1)):j.active=this.tabs.index(this.active):(j.active=!1,this.active=d()),this._refresh() },_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0) },_processTabs:function(){var a=this; this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return d("a",this)[0] }).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=d(),this.anchors.each(function(m,t){var j,s,q,p=d(t).uniqueId().attr("id"),e=d(t).closest("li"),k=e.attr("aria-controls"); f(t)?(j=t.hash,s=a.element.find(a._sanitizeSelector(j))):(q=a._tabId(e),j="#"+q,s=a.element.find(j),s.length||(s=a._createPanel(q),s.insertAfter(a.panels[m-1]||a.tablist)),s.attr("aria-live","polite")),s.length&&(a.panels=a.panels.add(s)),k&&e.data("ui-tabs-aria-controls",k),e.attr({"aria-controls":j.substring(1),"aria-labelledby":p}),s.attr("aria-labelledby",p) }),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel") },_getList:function(){return this.element.find("ol,ul").eq(0) },_createPanel:function(a){return d("
").attr("id",a).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0) },_setupDisabled:function(k){d.isArray(k)&&(k.length?k.length===this.anchors.length&&(k=!0):k=!1); for(var a,j=0; a=this.tabs[j]; j++){k===!0||-1!==d.inArray(j,k)?d(a).addClass("ui-state-disabled").attr("aria-disabled","true"):d(a).removeClass("ui-state-disabled").removeAttr("aria-disabled") }this.options.disabled=k },_setupEvents:function(j){var a={click:function(e){e.preventDefault() }}; j&&d.each(j.split(" "),function(k,l){a[l]="_eventHandler" }),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,a),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs) },_setupHeightStyle:function(k){var a,j=this.element.parent(); "fill"===k?(a=j.height(),a-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var m=d(this),l=m.css("position"); "absolute"!==l&&"fixed"!==l&&(a-=m.outerHeight(!0)) }),this.element.children().not(this.panels).each(function(){a-=d(this).outerHeight(!0) }),this.panels.each(function(){d(this).height(Math.max(0,a-d(this).innerHeight()+d(this).height())) }).css("overflow","auto")):"auto"===k&&(a=0,this.panels.each(function(){a=Math.max(a,d(this).height("").height()) }).height(a)) },_eventHandler:function(v){var q=this.options,y=this.active,m=d(v.currentTarget),w=m.closest("li"),k=w[0]===y[0],j=k&&q.collapsible,t=j?d():this._getPanelForTab(w),p=y.length?this._getPanelForTab(y):d(),x={oldTab:y,oldPanel:p,newTab:j?d():w,newPanel:t}; v.preventDefault(),w.hasClass("ui-state-disabled")||w.hasClass("ui-tabs-loading")||this.running||k&&!q.collapsible||this._trigger("beforeActivate",v,x)===!1||(q.active=j?!1:this.tabs.index(w),this.active=k?d():w,this.xhr&&this.xhr.abort(),p.length||t.length||d.error("jQuery UI Tabs: Mismatching fragment identifier."),t.length&&this.load(this.tabs.index(w),v),this._toggle(v,x)) },_toggle:function(p,k){function l(){j.running=!1,j._trigger("activate",p,k) }function t(){k.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),q.length&&j.options.show?j._show(q,j.options.show,l):(q.show(),l()) }var j=this,q=k.newPanel,m=k.oldPanel; this.running=!0,m.length&&this.options.hide?this._hide(m,this.options.hide,function(){k.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),t() }):(k.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),m.hide(),t()),m.attr({"aria-expanded":"false","aria-hidden":"true"}),k.oldTab.attr("aria-selected","false"),q.length&&m.length?k.oldTab.attr("tabIndex",-1):q.length&&this.tabs.filter(function(){return 0===d(this).attr("tabIndex") }).attr("tabIndex",-1),q.attr({"aria-expanded":"true","aria-hidden":"false"}),k.newTab.attr({"aria-selected":"true",tabIndex:0}) },_activate:function(k){var a,j=this._findActive(k); j[0]!==this.active[0]&&(j.length||(j=this.active),a=j.find(".ui-tabs-anchor")[0],this._eventHandler({target:a,currentTarget:a,preventDefault:d.noop})) },_findActive:function(a){return a===!1?d():this.tabs.eq(a) },_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a },_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){d.data(this,"ui-tabs-destroy")?d(this).remove():d(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role") }),this.tabs.each(function(){var j=d(this),a=j.data("ui-tabs-aria-controls"); a?j.attr("aria-controls",a).removeData("ui-tabs-aria-controls"):j.removeAttr("aria-controls") }),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","") },enable:function(a){var e=this.options.disabled; e!==!1&&(a===g?e=!1:(a=this._getIndex(a),e=d.isArray(e)?d.map(e,function(j){return j!==a?j:null }):d.map(this.tabs,function(j,k){return k!==a?k:null })),this._setupDisabled(e)) },disable:function(a){var e=this.options.disabled; if(e!==!0){if(a===g){e=!0 }else{if(a=this._getIndex(a),-1!==d.inArray(a,e)){return }e=d.isArray(e)?d.merge([a],e).sort():[a] }this._setupDisabled(e) }},load:function(p,k){p=this._getIndex(p); var s=this,j=this.tabs.eq(p),q=j.find(".ui-tabs-anchor"),m=this._getPanelForTab(j),l={tab:j,panel:m}; f(q[0])||(this.xhr=d.ajax(this._ajaxSettings(q,k,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(j.addClass("ui-tabs-loading"),m.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){m.html(a),s._trigger("load",k,l) },1) }).complete(function(a,n){setTimeout(function(){"abort"===n&&s.panels.stop(!1,!0),j.removeClass("ui-tabs-loading"),m.removeAttr("aria-busy"),a===s.xhr&&delete s.xhr },1) }))) },_ajaxSettings:function(k,a,j){var l=this; return{url:k.attr("href"),beforeSend:function(n,m){return l._trigger("beforeLoad",a,d.extend({jqXHR:n,ajaxSettings:m},j)) }} },_getPanelForTab:function(j){var a=d(j).attr("aria-controls"); return this.element.find(this._sanitizeSelector("#"+a)) }}) })(jQuery); /*! tocca v1.1.0 || Gianluca Guarini */ ; !function(R,Q){if("function"!=typeof R.createEvent){return !1 }var P,O,N,M,L,K,J,I,H=function(e){var d=e.toLowerCase(),f="MS"+e; return navigator.msPointerEnabled?f:d },G={useJquery:!Q.IGNORE_JQUERY&&"undefined"!=typeof jQuery,swipeThreshold:Q.SWIPE_THRESHOLD||100,tapThreshold:Q.TAP_THRESHOLD||150,dbltapThreshold:Q.DBL_TAP_THRESHOLD||200,longtapThreshold:Q.LONG_TAP_THRESHOLD||1000,tapPrecision:Q.TAP_PRECISION/2||30,justTouchEvents:Q.JUST_ON_TOUCH_DEVICES},F=!1,E={touchstart:H("PointerDown")+" touchstart",touchend:H("PointerUp")+" touchend",touchmove:H("PointerMove")+" touchmove"},D=function(g,f,k){for(var j=f.split(" "),h=j.length; h--; ){g.addEventListener(j[h],k,!1) }},C=function(b){return b.targetTouches?b.targetTouches[0]:b },B=function(){return(new Date).getTime() },A=function(a,l,k,j){var d=R.createEvent("Event"); if(d.originalEvent=k,j=j||{},j.x=P,j.y=O,j.distance=j.distance,G.useJquery&&(d=jQuery.Event(l,{originalEvent:k}),jQuery(a).trigger(d,j)),d.initEvent){for(var c in j){d[c]=j[c] }d.initEvent(l,!0,!0),a.dispatchEvent(d) }for(; a; ){a["on"+l]&&a["on"+l](d),a=a.parentNode }},z=function(d){if("mousedown"!==d.type&&(F=!0),"mousedown"!==d.type||!F){var c=C(d); N=P=c.pageX,M=O=c.pageY,I=setTimeout(function(){A(d.target,"longtap",d),K=d.target },G.longtapThreshold),L=B(),w++ }},y=function(d){if("mouseup"===d.type&&F){return void (F=!1) }var c=[],e=B(),j=M-O,h=N-P; if(clearTimeout(J),clearTimeout(I),h<=-G.swipeThreshold&&c.push("swiperight"),h>=G.swipeThreshold&&c.push("swipeleft"),j<=-G.swipeThreshold&&c.push("swipedown"),j>=G.swipeThreshold&&c.push("swipeup"),c.length){for(var g=0; g=P-G.tapPrecision&&N<=P+G.tapPrecision&&M>=O-G.tapPrecision&&M<=O+G.tapPrecision&&L+G.tapThreshold-e>=0&&(A(d.target,w>=2&&K===d.target?"dbltap":"tap",d),K=d.target),J=setTimeout(function(){w=0 },G.dbltapThreshold) }},x=function(d){if("mousemove"!==d.type||!F){var c=C(d); P=c.pageX,O=c.pageY }},w=0; D(R,E.touchstart+(G.justTouchEvents?"":" mousedown"),z),D(R,E.touchend+(G.justTouchEvents?"":" mouseup"),y),D(R,E.touchmove+(G.justTouchEvents?"":" mousemove"),x),Q.tocca=function(d){for(var c in d){G[c]=d[c] }return G } }(document,window); /*! Copyright 2012, Ben Lin (http://dreamerslab.com/) * Licensed under the MIT License (LICENSE.txt). * * Version: 1.0.17 * * Requires: jQuery >= 1.2.3 */ ; (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a) }else{a(jQuery) }}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf; a.fn.extend({actual:function(b,m){if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist' }var f={absolute:false,clone:false,includeMargin:false,display:"block"}; var j=a.extend(f,m); var e=this.eq(0); var h,k; if(j.clone===true){h=function(){var n="position: absolute !important; top: -1000 !important; "; e=e.clone().attr("style",n).appendTo("body") }; k=function(){e.remove() } }else{var g=[]; var d=""; var c; h=function(){c=e.parents().addBack().filter(":hidden"); d+="visibility: hidden !important; display: "+j.display+" !important; "; if(j.absolute===true){d+="position: absolute !important; " }c.each(function(){var n=a(this); var o=n.attr("style"); g.push(o); n.attr("style",o?o+";"+d:d) }) }; k=function(){c.each(function(n){var p=a(this); var o=g[n]; if(o===undefined){p.removeAttr("style") }else{p.attr("style",o) }}) } }h(); var l=/(outer)/.test(b)?e[b](j.includeMargin):e[b](); k(); return l }}) })); if(jQuery){(function(a){a.extend(a.fn,{selectBox:function(j,v){var b,t=""; var o=function(C,z){if(navigator.userAgent.match(/iPad|iPhone/i)){return false }if(C.tagName.toLowerCase()!=="select"){return false }C=a(C); if(C.data("selectBox-control")){return false }var y=a(''); var A=C.attr("multiple")||parseInt(C.attr("size"),10)>1; var w=z||{}; y.addClass(C.attr("class")).attr("style",C.attr("style")||"").attr("title",C.attr("title")||"").attr("tabindex",parseInt(C.attr("tabindex"),10)).css("display","inline-block").bind("focus.selectBox",function(){if(this!==document.activeElement){a(document.activeElement).blur() }if(y.hasClass("selectBox-active")){return }y.addClass("selectBox-active"); C.trigger("focus") }).bind("blur.selectBox",function(){if(!y.hasClass("selectBox-active")){return }y.removeClass("selectBox-active"); C.trigger("blur") }); if(C.attr("disabled")){y.addClass("selectBox-disabled") }if(A){var G=k(C,"inline"); y.append(G).data("selectBox-options",G).addClass("selectBox-inline").addClass("selectBox-menuShowing").bind("keydown.selectBox",function(H){l(C,H) }).bind("keypress.selectBox",function(H){c(C,H) }).insertAfter(C); if(!C[0].style.height){var F=C.attr("size")?parseInt(C.attr("size"),10):5,E=parseInt(y.find(".selectBox-options A:first").outerHeight(),10); if(!C.is(":visible")){var x=y.clone().removeAttr("id").css({position:"absolute",top:"-9999em"}).show().appendTo("body"); E=parseInt(x.find(".selectBox-options A:first").html(" ").outerHeight(),10); x.remove() }y.height(E*F) }g(y) }else{var B=a(''); var D=a(''); B.text(a(C).find("OPTION:selected").text()||"\u00A0"); var G=k(C,"dropdown"); G.appendTo("BODY"); y.data("selectBox-options",G).addClass("selectBox-dropdown").append(B).append(D).bind("mousedown.selectBox",function(H){if(y.hasClass("selectBox-menuShowing")){f() }else{H.stopPropagation(); G.data("selectBox-down-at-x",H.screenX).data("selectBox-down-at-y",H.screenY); n(C) }}).bind("keydown.selectBox",function(H){l(C,H) }).bind("keypress.selectBox",function(H){c(C,H) }).insertAfter(C); g(y) }C.addClass("selectBox").data("selectBox-control",y).data("selectBox-settings",w).hide() }; var k=function(w,y){var x; switch(y){case"inline":x=a('
'); if(w.find("OPTGROUP").length){w.find("OPTGROUP").each(function(){var z=a('
  • '); z.text(a(this).attr("label")); x.append(z); a(this).find("OPTION").each(function(){var A=a("
  • "); var B=a(""); A.addClass(a(this).attr("class")); B.attr("rel",a(this).val()).text(a(this).text()); B.attr("title",a(this).attr("title")||""); A.append(B); if(a(this).attr("disabled")){A.addClass("selectBox-disabled") }if(a(this).attr("selected")){A.addClass("selectBox-selected") }x.append(A) }) }) }else{w.find("OPTION").each(function(){var z=a("
  • "); var A=a(""); z.addClass(a(this).attr("class")); A.attr("rel",a(this).val()).text(a(this).text()); A.attr("title",a(this).attr("title")||""); z.append(A); if(a(this).attr("disabled")){z.addClass("selectBox-disabled") }if(a(this).attr("selected")){z.addClass("selectBox-selected") }x.append(z) }) }x.find("A").bind("mouseover.selectBox",function(z){r(w,a(this).parent()) }).bind("mouseout.selectBox",function(z){u(w,a(this).parent()) }).bind("mousedown.selectBox",function(z){z.preventDefault() }).bind("mouseup.selectBox",function(z){f(); if(z.shiftKey){q(w,a(this).parent(),true) }else{q(w,a(this).parent(),false) }}); g(x); return x; case"dropdown":x=a('
    '); if(w.find("OPTGROUP").length){w.find("OPTGROUP").each(function(){var z=a('
  • '); z.text(a(this).attr("label")); x.append(z); a(this).find("OPTION").each(function(){var A=a("
  • "); var B=a(""); A.addClass(a(this).attr("class")); B.attr("rel",a(this).val()).text(a(this).text()); B.attr("title",a(this).attr("title")||""); A.append(B); if(a(this).attr("disabled")){A.addClass("selectBox-disabled") }if(a(this).attr("selected")){A.addClass("selectBox-selected") }x.append(A) }) }) }else{w.find("OPTION").each(function(){var z=a("
  • "); var A=a(""); z.addClass(a(this).attr("class")); A.attr("rel",a(this).val()).text(a(this).text()); A.attr("title",a(this).attr("title")||""); z.append(A); if(a(this).attr("disabled")){z.addClass("selectBox-disabled") }if(a(this).attr("selected")){z.addClass("selectBox-selected") }x.append(z) }) }x.data("selectBox-select",w).css("display","none").appendTo("BODY").find("A").bind("mousedown.selectBox",function(z){z.preventDefault(); if(z.screenX===x.data("selectBox-down-at-x")&&z.screenY===x.data("selectBox-down-at-y")){x.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y"); f() }}).bind("mouseup.selectBox",function(z){if(z.screenX===x.data("selectBox-down-at-x")&&z.screenY===x.data("selectBox-down-at-y")){return }else{x.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y") }q(w,a(this).parent()); f() }).bind("mouseover.selectBox",function(z){r(w,a(this).parent()) }).bind("mouseout.selectBox",function(z){u(w,a(this).parent()) }); g(x); return x }}; var s=function(w){w=a(w); var y=w.data("selectBox-control"); if(!y){return }var x=y.data("selectBox-options"); x.remove(); y.remove(); w.removeClass("selectBox").removeData("selectBox-control").removeData("selectBox-settings").show() }; var n=function(x){x=a(x); var A=x.data("selectBox-control"); var z=x.data("selectBox-settings"); var y=A.data("selectBox-options"); if(A.hasClass("selectBox-disabled")){return false }f(); y.css({width:A.outerWidth()-(parseInt(A.css("borderLeftWidth"),10)+parseInt(A.css("borderLeftWidth"),10)),top:A.offset().top+A.outerHeight()-(parseInt(A.css("borderBottomWidth"),10)),left:A.offset().left}); switch(z.menuTransition){case"fade":y.fadeIn(z.menuSpeed); break; case"slide":y.slideDown(z.menuSpeed); break; default:y.show(z.menuSpeed); break }var w=y.find(".selectBox-selected:first"); d(x,w,true); r(x,w); A.addClass("selectBox-menuShowing"); a(document).bind("mousedown.selectBox",function(B){if(a(B.target).parents().andSelf().hasClass("selectBox-options")){return }f() }) }; var f=function(){if(a(".selectBox-dropdown-menu").length===0){return }a(document).unbind("mousedown.selectBox"); a(".selectBox-dropdown-menu").each(function(){var x=a(this),w=x.data("selectBox-select"),z=w.data("selectBox-control"),y=w.data("selectBox-settings"); switch(y.menuTransition){case"fade":x.fadeOut(y.menuSpeed); break; case"slide":x.slideUp(y.menuSpeed); break; default:x.hide(y.menuSpeed); break }z.removeClass("selectBox-menuShowing") }) }; var q=function(y,x,w){y=a(y); x=a(x); var D=y.data("selectBox-control"); var C=y.data("selectBox-settings"); if(D.hasClass("selectBox-disabled")){return false }if(x.length===0||x.hasClass("selectBox-disabled")){return false }if(y.attr("multiple")){if(w&&D.data("selectBox-last-selected")){x.toggleClass("selectBox-selected"); var z; if(x.index()>D.data("selectBox-last-selected").index()){z=x.siblings().slice(D.data("selectBox-last-selected").index(),x.index()) }else{z=x.siblings().slice(x.index(),D.data("selectBox-last-selected").index()) }z=z.not(".selectBox-optgroup, .selectBox-disabled"); if(x.hasClass("selectBox-selected")){z.addClass("selectBox-selected") }else{z.removeClass("selectBox-selected") }}else{x.toggleClass("selectBox-selected") }}else{x.siblings().removeClass("selectBox-selected"); x.addClass("selectBox-selected") }if(D.hasClass("selectBox-dropdown")){D.find(".selectBox-label").text(x.text()); D.attr("title",x.find("A").attr("title")||"") }var A=0; var B=[]; if(y.attr("multiple")){D.find(".selectBox-selected A").each(function(){B[A++]=a(this).attr("rel") }) }else{B=x.find("A").attr("rel") }D.data("selectBox-last-selected",x); if(y.val()!==B){y.val(B); y.trigger("change") }return true }; var r=function(x,w){x=a(x); w=a(w); var z=x.data("selectBox-control"); var y=z.data("selectBox-options"); y.find(".selectBox-hover").removeClass("selectBox-hover"); w.addClass("selectBox-hover") }; var u=function(x,w){x=a(x); w=a(w); var z=x.data("selectBox-control"); var y=z.data("selectBox-options"); y.find(".selectBox-hover").removeClass("selectBox-hover") }; var d=function(y,x,w){if(!x||x.length===0){return }y=a(y); var D=y.data("selectBox-control"); var A=D.data("selectBox-options"); var B=D.hasClass("selectBox-dropdown")?A:A.parent(); var C=parseInt(x.offset().top-B.position().top,10); var z=parseInt(C+x.outerHeight(),10); if(w){B.scrollTop(x.offset().top-B.offset().top+B.scrollTop()-(B.height()/2)) }else{if(C<0){B.scrollTop(x.offset().top-B.offset().top+B.scrollTop()) }if(z>B.height()){B.scrollTop((x.offset().top+x.outerHeight())-B.offset().top+B.scrollTop()-B.height()) }}}; var l=function(w,B){w=a(w); var C=w.data("selectBox-control"); var x=C.data("selectBox-options"); var D=0; var y=0; if(C.hasClass("selectBox-disabled")){return }switch(B.keyCode){case 8:B.preventDefault(); t=""; break; case 9:case 27:f(); u(w); break; case 13:if(C.hasClass("selectBox-menuShowing")){q(w,x.find("LI.selectBox-hover:first"),B.shiftKey); if(C.hasClass("selectBox-dropdown")){f() }}else{n(w) }break; case 38:case 37:B.preventDefault(); if(C.hasClass("selectBox-menuShowing")){var A=x.find(".selectBox-hover").prev("LI"); D=x.find("LI:not(.selectBox-optgroup)").length; y=0; while(A.length===0||A.hasClass("selectBox-disabled")||A.hasClass("selectBox-optgroup")){A=A.prev("LI"); if(A.length===0){A=x.find("LI:last") }if(++y>=D){break }}r(w,A); d(w,A) }else{n(w) }break; case 40:case 39:B.preventDefault(); if(C.hasClass("selectBox-menuShowing")){var z=x.find(".selectBox-hover").next("LI"); D=x.find("LI:not(.selectBox-optgroup)").length; y=0; while(z.length===0||z.hasClass("selectBox-disabled")||z.hasClass("selectBox-optgroup")){z=z.next("LI"); if(z.length===0){z=x.find("LI:first") }if(++y>=D){break }}r(w,z); d(w,z) }else{n(w) }break }}; var c=function(w,y){w=a(w); var z=w.data("selectBox-control"); var x=z.data("selectBox-options"); if(z.hasClass("selectBox-disabled")){return }switch(y.keyCode){case 9:case 27:case 13:case 38:case 37:case 40:case 39:break; default:if(!z.hasClass("selectBox-menuShowing")){n(w) }y.preventDefault(); clearTimeout(b); t+=String.fromCharCode(y.charCode||y.keyCode); x.find("A").each(function(){if(a(this).text().substr(0,t.length).toLowerCase()===t.toLowerCase()){r(w,a(this).parent()); d(w,a(this).parent()); return false }}); b=setTimeout(function(){t="" },1000); break }}; var m=function(w){w=a(w); w.attr("disabled",false); var x=w.data("selectBox-control"); if(!x){return }x.removeClass("selectBox-disabled") }; var h=function(w){w=a(w); w.attr("disabled",true); var x=w.data("selectBox-control"); if(!x){return }x.addClass("selectBox-disabled") }; var e=function(w,z){w=a(w); w.val(z); z=w.val(); var A=w.data("selectBox-control"); var y=w.data("selectBox-settings"); var x=A.data("selectBox-options"); if(!A){return }A.find(".selectBox-label").text(a(w).find("OPTION:selected").text()||"\u00A0"); x.find(".selectBox-selected").removeClass("selectBox-selected"); x.find("A").each(function(){if(typeof(z)==="object"){var B; for(B=0; B'); var y; for(y in v[A]){w.append('") }D.append(w) }else{var B=a('"); D.append(B) }}break }if(!z){return }z.data("selectBox-options").remove(); var C=z.hasClass("selectBox-dropdown")?"dropdown":"inline"; var E=k(D,C); z.data("selectBox-options",E); switch(C){case"inline":z.append(E); break; case"dropdown":z.find(".selectBox-label").text(a(D).find("OPTION:selected").text()||"\u00A0"); a("BODY").append(E); break }}; var g=function(w){a(w).css("MozUserSelect","none").bind("selectstart",function(x){x.preventDefault() }) }; switch(j){case"control":return a(this).data("selectBox-control"); break; case"settings":if(!v){return a(this).data("selectBox-settings") }a(this).each(function(){a(this).data("selectBox-settings",a.extend(true,a(this).data("selectBox-settings"),v)) }); break; case"options":a(this).each(function(){p(this,v) }); break; case"value":if(!v){return a(this).val() }a(this).each(function(){e(this,v) }); break; case"enable":a(this).each(function(){m(this) }); break; case"disable":a(this).each(function(){h(this) }); break; case"destroy":a(this).each(function(){s(this) }); break; default:a(this).each(function(){o(this,j) }); break }return a(this) }}) })(jQuery) }(function(a){a.fn.jQuerySimpleCounter=function(b){var d=a.extend({start:0,end:100,easing:"swing",duration:400,decimals:0,decimalBool:false,language:"en",complete:""},b); var c=a(this); count(d,c) } }(jQuery)); function count(b,a){var c=b.start; $({count:b.start}).animate({count:b.end},{duration:b.duration,easing:b.easing,step:function(){if(b.decimalBool){c=(parseFloat(this.count)).toFixed(b.decimals) }else{c=Math.ceil(this.count) }var d=addThousands(c,b.language); if(b.decimals>0){d=addDecimals(d,b.decimals,b.language) }a.text(d) },complete:function(){if(c!=(this.count).toFixed(b.decimals)){b.start=c; b.end=this.count; b.duration=100; b.easing="linear"; count(b,a) }}}) }function addThousands(a,d){var c=d.split("_"); var b=/(\d+)(\d{3})/; return String(a).replace(/^\d+/,function(e){while(b.test(e)){e=e.replace(b,"$1"+languagePunctuation[c[0]]["thousands"]+"$2") }return e }) }function addDecimals(b,a,d){var c=d.split("_"); return b.substr(0,(b.length)-(a+1))+languagePunctuation[c[0]]["decimal"]+b.substr((b.length)-a) }(function(a){function b(){var c=window.innerHeight; var d=document.compatMode; if((d||!a.support.boxModel)){c=(d=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight }return c }a(window).scroll(function(){var e=b(),c=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop),d=[]; a.each(a.cache,function(){if(this.events&&this.events.inview){d.push(this.handle.elem) }}); if(d.length){a(d).each(function(){var g=a(this),j=g.offset().top,f=g.height(),h=g.data("inview")||false; if(c>(j+f)||c+e>>0; if(typeof n!=="function"){throw new TypeError(n+" is not a function") }if(m){e=m }d=new Array(j); f=0; while(f1; k={}; k.top=0-v.options.offset; k.left=0-v.options.offset; v.revalidate=function(){g(this) }; v.load=function(y,x){var s=this.options; if(y.length===undefined){b(y,x,s) }else{n(y,function(z){b(z,x,s) }) }}; v.destroy=function(){var x=this; var s=x._util; if(x.options.container){n(x.options.container,function(y){c(y,"scroll",s.validateT) }) }c(window,"scroll",s.validateT); c(window,"resize",s.validateT); c(window,"resize",s.saveViewportOffsetT); s.count=0; s.elements.length=0; s.destroyed=true }; t.validateT=q(function(){m(v) },v.options.validateDelay,v); t.saveViewportOffsetT=q(function(){o(v.options.offset) },v.options.saveViewportOffsetDelay,v); o(v.options.offset); n(v.options.breakpoints,function(s){if(s.width>=window.screen.width){a=s.src; return false }}); g(v) }; function g(s){setTimeout(function(){var t=s._util; t.elements=d(s.options.selector); t.count=t.elements.length; if(t.destroyed){t.destroyed=false; if(s.options.container){n(s.options.container,function(u){l(u,"scroll",t.validateT) }) }l(window,"resize",t.saveViewportOffsetT); l(window,"resize",t.validateT); l(window,"scroll",t.validateT) }m(s) },1) }function m(t){var s=t._util; for(var v=0; v=k.left&&s.bottom>=k.top&&s.left<=k.right&&s.top<=k.bottom) }function b(w,v,u){if(!e(w,u.successClass)&&(v||u.loadInvisible||(w.offsetWidth>0&&w.offsetHeight>0))){var t=w.getAttribute(a)||w.getAttribute(u.src); if(t){var y=t.split(u.separator); var x=y[r&&y.length>1?1:0]; var z=w.nodeName.toLowerCase()==="img"; if(z||w.src===undefined){var s=new Image(); s.onerror=function(){if(u.error){u.error(w,"invalid") }j(w,u.errorClass) }; s.onload=function(){z?w.src=x:w.style.backgroundImage='url("'+x+'")'; p(w,u) }; s.src=x }else{w.src=x; p(w,u) }}else{if(u.error){u.error(w,"missing") }if(!e(w,u.errorClass)){j(w,u.errorClass) }}}}function p(t,s){j(t,s.successClass); if(s.success){s.success(t) }n(s.breakpoints,function(u){t.removeAttribute(u.src) }); t.removeAttribute(s.src) }function e(t,s){return(" "+t.className+" ").indexOf(" "+s+" ")!==-1 }function j(t,s){t.className=t.className+" "+s }function d(s){var v=[]; var u=document.querySelectorAll(s); for(var t=u.length; t--; v.unshift(u[t])){}return v }function o(s){k.bottom=(window.innerHeight||document.documentElement.clientHeight)+s; k.right=(window.innerWidth||document.documentElement.clientWidth)+s }function l(u,t,s){if(u.attachEvent){u.attachEvent&&u.attachEvent("on"+t,s) }else{u.addEventListener(t,s,false) }}function c(u,t,s){if(u.detachEvent){u.detachEvent&&u.detachEvent("on"+t,s) }else{u.removeEventListener(t,s,false) }}function n(t,v){if(t&&v){var s=t.length; for(var u=0; u0){a.each(this[0].attributes,function(e,d){b[d.nodeName]=d.nodeValue }) }this.replaceWith(function(){return a("<"+c+"/>",b).append(a(this).contents()) }) } })(jQuery); (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a) }else{if(typeof exports!=="undefined"){module.exports=a(require("jquery")) }else{a(jQuery) }}}(function(a){var b=window.Slick||{}; b=(function(){var c=0; function d(g,h){var f=this,e; f.defaults={accessibility:true,adaptiveHeight:false,appendArrows:a(g),appendDots:a(g),arrows:true,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:false,autoplaySpeed:3000,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function(k,j){return a('
  • "; j+=h._parseElements(e(this).html()) }) }return j },_parseElements:function(j){var h=this,k=""; e(e.trim(j)).filter("option").each(function(){var l=e(this); if(l.attr("value")===""&&h.options.remove_empty_option){return }k+='
  • '+l.text()+"
  • " }); return k },_toggleChoices:function(){(!this.wrapper.hasClass(this.options.class_active))?this._showChoices():this._hideChoices(this.wrapper) },_showChoices:function(j){var h=this,k=this.wrapper,l=this.options; if(!k.hasClass(l.class_active)){this._updateFirstLast(false); e("."+l.class_container).each(function(){if(e(this)[0]!==k[0]){h._hideChoices(e(this)) }}); if(typeof j==="function"){j.call() }k.addClass(l.class_active); switch(l.transition){case"fade":this.ul.fadeIn(l.transition_time); break; default:this.ul.show(); break }this.input.text("").focus(); this._hideResetLink(); this.options.onopen() }else{if(typeof j==="function"){j.call() }}},_resetDropdown:function(h){var j=this.options; this.items.removeClass(j.class_hidden); this.wrapper.find("."+j.class_empty).hide(); this.items.filter("."+j.class_highlighted).removeClass(j.class_highlighted); if(typeof h==="function"){h.call() }},_hideChoices:function(k,j){var n=this.options,l=n.transition_time,h=this; if(k.hasClass(n.class_active)){k.removeClass(n.class_active); switch(n.transition){case"fade":k.children("ul").fadeOut(n.transition_time); break; default:k.children("ul").hide(); l=0; break }setTimeout(function(){h._resetDropdown(j); h.input.blur(); if(h.input.attr("data-placeholder")!=n.placeholder){h.input.text(h.input.attr("data-placeholder")) }else{if(!h.items.filter("."+n.class_selected).length){h.input.text("") }}},l); h._showResetLink(); n.onclose() }else{if(typeof j==="function"){j.call() }}},_filterChoices:function(){var j=this.wrapper,l=this.options,h=this; if(l.ajax){e.post(l.ajax,{q:this.input.text()}).success(function(m){if(l.debug){console.log("Minimalect received ",m," for query '"+h.input.text()+"' in ",h.element) }if(m.length){var n=""; e.each(m,function(p,o){n+='" }); h.element.html(n); h.ul.html(h._parseSelect()+'
  • '+l.empty+"
  • "); j.find("."+l.class_empty).hide(); h.items=j.find("li"); h.options.onfilter(true) }else{h.ul.html('
  • '+l.empty+"
  • "); j.find("."+l.class_empty).show(); if(l.debug){console.log("Minimalect didn't find any results for '"+h.input.text()+"' from ",h.element) }h.options.onfilter(false) }}).error(function(m){j.find("."+l.class_empty).text(l.error_message); j.find("li").not("."+l.class_empty).addClass(l.class_hidden); j.find("."+l.class_empty).show(); if(l.debug){console.error("Minimalect's AJAX query failed for ",h.element," - came back with ",m) }}) }else{var k=this.input.text().replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"); this.items.filter("."+l.class_highlighted).removeClass(l.class_highlighted); this.items.not(l.class_group).each(function(){if(e(this).text().search(new RegExp(k,"i"))<0||e(this).hasClass(l.class_disabled)){e(this).addClass(l.class_hidden) }else{e(this).removeClass(l.class_hidden) }}); this.items.filter("."+l.class_group).removeClass(l.class_hidden).each(function(){nextlis=e(this).nextAll("li").not("."+l.class_hidden+", ."+l.class_empty); if(nextlis.first().hasClass(l.class_group)||!nextlis.length){e(this).addClass(l.class_hidden) }}); j.find("."+l.class_empty).hide(); if(!this.items.not("."+l.class_hidden+", ."+l.class_empty).length){j.find("."+l.class_empty).show(); if(l.debug){console.log("Minimalect didn't find any results for '"+this.input.text()+"' from ",this.element) }this.options.onfilter(false) }else{this.options.onfilter(true) }this._updateFirstLast(true) }},_selectChoice:function(j){var h=this.element,m=this.options,k=[],l=[]; if(j.hasClass(this.options.class_disabled)){return false }if(!m.live){this.items=this.wrapper.find("li") }if(!this.element.prop("multiple")){this.items.removeClass(m.class_selected) }j.addClass(m.class_selected); this.items.filter("."+m.class_selected).each(function(){k.push(e(this).data("value")); l.push(e(this).text()) }); this.input.text(l.join(", ")).attr("data-placeholder",l.join(", ")); if(h.val()!=j.data("value")||h.val()!=k){h.val(k); h.trigger("change") }this._showResetLink(); this.options.onchange.call(this,j.data("value"),j.text()) },_resetChoice:function(){this.element.val("").trigger("change"); this._hideResetLink() },_showResetLink:function(){if(this.input.text().length>0||this.ul.find("li."+this.options.class_selected).length>0){this.options.reset&&this.reset.show() }},_hideResetLink:function(){this.options.reset&&this.reset.hide() },_updateFirstLast:function(j){var h=this.wrapper,k=this.options; h.find("."+k.class_first+", ."+k.class_last).removeClass(k.class_first+" "+k.class_last); if(j){this.items.filter(":visible").first().addClass(k.class_first); this.items.filter(":visible").last().addClass(k.class_last) }else{this.items.first().addClass(k.class_first); this.items.not("."+k.class_empty).last().addClass(k.class_last) }},destroy:function(){this.wrapper.remove(); this.element.off("change focus blur").show(); if(c.MutationObserver){this.observer.disconnect() }if(this.options.debug){console.log("Minimalect destroyed for ",this.element) }},update:function(){this.ul.html(this._parseSelect()+'
  • '+this.options.empty+"
  • ") }}; e.fn[d]=function(h,j){return this.each(function(){if(e.isFunction(b.prototype[h])&&h.charAt(0)!="_"){if(arguments.length==1){e.data(this,"plugin_"+d)[h]() }else{e.data(this,"plugin_"+d)[h](j) }}else{if(!e.data(this,"plugin_"+d)){e.data(this,"plugin_"+d,new b(this,h)) }}}) } })(jQuery,window,document); !function(exports,global){function renderDocument(t,e,n,r){return createWindowClone(t,t,n,r,e).then(function(i){log("Document cloned"); var o="["+html2canvasNodeAttribute+"='true']"; t.querySelector(o).removeAttribute(html2canvasNodeAttribute); var s=i.contentWindow,a=s.document.querySelector(o),c="function"==typeof e.onclone?Promise.resolve(e.onclone(s.document)):Promise.resolve(!0); return c.then(function(){return renderWindow(a,i,e,n,r) }) }) }function renderWindow(t,e,n,r,i){var o=e.contentWindow,s=new Support(o.document),a=new ImageLoader(n,s),c=getBounds(t),u="view"===n.type?r:documentWidth(o.document),l="view"===n.type?i:documentHeight(o.document),h=new CanvasRenderer(u,l,a,n,document),d=new NodeParser(t,h,s,a,n); return d.ready.then(function(){log("Finished rendering"); var r; return r="view"===n.type?crop(h.canvas,{width:h.canvas.width,height:h.canvas.height,top:0,left:0,x:0,y:0}):t===o.document.body||t===o.document.documentElement||null!=n.canvas?h.canvas:crop(h.canvas,{width:null!=n.width?n.width:c.width,height:null!=n.height?n.height:c.height,top:c.top,left:c.left,x:o.pageXOffset,y:o.pageYOffset}),cleanupContainer(e,n),r }) }function cleanupContainer(t,e){e.removeContainer&&(t.parentNode.removeChild(t),log("Cleaned up container")) }function crop(t,e){var n=document.createElement("canvas"),r=Math.min(t.width-1,Math.max(0,e.left)),i=Math.min(t.width,Math.max(1,e.left+e.width)),o=Math.min(t.height-1,Math.max(0,e.top)),s=Math.min(t.height,Math.max(1,e.top+e.height)); return n.width=e.width,n.height=e.height,log("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",i-r,"height:",s-o),log("Resulting crop with width",e.width,"and height",e.height," with x",r,"and y",o),n.getContext("2d").drawImage(t,r,o,i-r,s-o,e.x,e.y,i-r,s-o),n }function documentWidth(t){return Math.max(Math.max(t.body.scrollWidth,t.documentElement.scrollWidth),Math.max(t.body.offsetWidth,t.documentElement.offsetWidth),Math.max(t.body.clientWidth,t.documentElement.clientWidth)) }function documentHeight(t){return Math.max(Math.max(t.body.scrollHeight,t.documentElement.scrollHeight),Math.max(t.body.offsetHeight,t.documentElement.offsetHeight),Math.max(t.body.clientHeight,t.documentElement.clientHeight)) }function smallImage(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" }function createWindowClone(t,e,n,r,i){labelCanvasElements(t); var o=t.documentElement.cloneNode(!0),s=e.createElement("iframe"); return s.className="html2canvas-container",s.style.visibility="hidden",s.style.position="fixed",s.style.left="-10000px",s.style.top="0px",s.style.border="0",s.width=n,s.height=r,s.scrolling="no",e.body.appendChild(s),new Promise(function(e){var n=s.contentWindow.document; s.contentWindow.onload=s.onload=function(){var o=setInterval(function(){n.body.childNodes.length>0&&(cloneCanvasContents(t,n),clearInterval(o),"view"===i.type&&s.contentWindow.scrollTo(r,a),e(s)) },50) }; var r=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset; n.open(),n.write(""),restoreOwnerScroll(t,r,a),n.replaceChild(i.javascriptEnabled===!0?n.adoptNode(o):removeScriptNodes(n.adoptNode(o)),n.documentElement),n.close() }) }function restoreOwnerScroll(t,e,n){(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n) }function loadUrlDocument(t,e,n,r,i,o){return new Proxy(t,e,window.document).then(documentFromHTML(t)).then(function(t){return createWindowClone(t,n,r,i,o) }) }function documentFromHTML(t){return function(e){var n,r=new DOMParser; try{n=r.parseFromString(e,"text/html") }catch(i){log("DOMParser not supported, falling back to createHTMLDocument"),n=document.implementation.createHTMLDocument(""); try{n.open(),n.write(e),n.close() }catch(o){log("createHTMLDocument write not supported, falling back to document.body.innerHTML"),n.body.innerHTML=e }}var s=n.querySelector("base"); if(!s||!s.href.host){var a=n.createElement("base"); a.href="u,o.ifbe.jotfsuCfgpsf(b,o.ifbe.gjstuDijme)" }return n } }function labelCanvasElements(t){[].slice.call(t.querySelectorAll("canvas"),0).forEach(function(t){t.setAttribute(html2canvasCanvasCloneAttribute,"canvas-"+html2canvasCanvasCloneIndex++) }) }function cloneCanvasContents(t,e){[].slice.call(t.querySelectorAll("["+html2canvasCanvasCloneAttribute+"]"),0).forEach(function(t){try{var n=e.querySelector("["+html2canvasCanvasCloneAttribute+'="'+t.getAttribute(html2canvasCanvasCloneAttribute)+'"]'); n&&(n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0)) }catch(r){log("Unable to copy canvas content from",t,r) }t.removeAttribute(html2canvasCanvasCloneAttribute) }) }function removeScriptNodes(t){return[].slice.call(t.childNodes,0).filter(isElementNode).forEach(function(e){"SCRIPT"===e.tagName?t.removeChild(e):removeScriptNodes(e) }),t }function isElementNode(t){return t.nodeType===Node.ELEMENT_NODE }function absoluteUrl(t){var e=document.createElement("a"); return e.href="u,f.isfg=f.isfg,f" }function DummyImageContainer(t){if(this.src=t,log("DummyImageContainer for",t),!this.promise||!this.image){log("Initiating DummyImageContainer"),DummyImageContainer.prototype.image=new Image; var e=this.image; DummyImageContainer.prototype.promise=new Promise(function(t,n){e.onload=t,e.onerror=n,e.src=smallImage(),e.complete===!0&&t(e) }) }}function Font(t,e){var n,r,i=document.createElement("div"),o=document.createElement("img"),s=document.createElement("span"),a="Hidden Text"; i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin=0,i.style.padding=0,document.body.appendChild(i),o.src=smallImage(),o.width=1,o.height=1,o.style.margin=0,o.style.padding=0,o.style.verticalAlign="baseline",s.style.fontFamily=t,s.style.fontSize=e,s.style.margin=0,s.style.padding=0,s.appendChild(document.createTextNode(a)),i.appendChild(s),i.appendChild(o),n=o.offsetTop-s.offsetTop+1,i.removeChild(s),i.appendChild(document.createTextNode(a)),i.style.lineHeight="normal",o.style.verticalAlign="super",r=o.offsetTop-i.offsetTop+1,document.body.removeChild(i),this.baseline=n,this.lineWidth=1,this.middle=r }function FontMetrics(){this.data={} }function FrameContainer(t,e,n){this.image=null,this.src=t; var r=this,i=getBounds(t); this.promise=(e?new Promise(function(e){"about:blank"===t.contentWindow.document.URL||null==t.contentWindow.document.documentElement?t.contentWindow.onload=t.onload=function(){e(t) }:e(t) }):this.proxyLoad(n.proxy,i,n)).then(function(t){return html2canvas(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2}) }).then(function(t){return r.image=t }) }function GradientContainer(t){this.src=t.value,this.colorStops=[],this.type=null,this.x0=0.5,this.y0=0.5,this.x1=0.5,this.y1=0.5,this.promise=Promise.resolve(!0) }function ImageContainer(t,e){this.src=t,this.image=new Image; var n=this; this.tainted=null,this.promise=new Promise(function(r,i){n.image.onload=r,n.image.onerror=i,e&&(n.image.crossOrigin="anonymous"),n.image.src=t,n.image.complete===!0&&r(n.image) }) }function ImageLoader(t,e){this.link=null,this.options=t,this.support=e,this.origin=this.getOrigin(window.location.href) }function LinearGradientContainer(t){GradientContainer.apply(this,arguments),this.type=this.TYPES.LINEAR; var e=null===t.args[0].match(this.stepRegExp); e?t.args[0].split(" ").reverse().forEach(function(t){switch(t){case"left":this.x0=0,this.x1=1; break; case"top":this.y0=0,this.y1=1; break; case"right":this.x0=1,this.x1=0; break; case"bottom":this.y0=1,this.y1=0; break; case"to":var e=this.y0,n=this.x0; this.y0=this.y1,this.x0=this.x1,this.x1=n,this.y1=e }},this):(this.y0=0,this.y1=1),this.colorStops=t.args.slice(e?1:0).map(function(t){var e=t.match(this.stepRegExp); return{color:e[1],stop:"%"===e[3]?e[2]/100:null} },this),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach(function(t,e){null===t.stop&&this.colorStops.slice(e).some(function(n,r){return null!==n.stop?(t.stop=(n.stop-this.colorStops[e-1].stop)/(r+1)+this.colorStops[e-1].stop,!0):!1 },this) },this) }function log(){window.html2canvas.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-window.html2canvas.start+"ms","html2canvas:"].concat([].slice.call(arguments,0))) }function NodeContainer(t,e){this.node=t,this.parent=e,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null }function selectionValue(t){var e=t.options[t.selectedIndex||0]; return e?e.text||"":"" }function parseMatrix(t){return t&&"matrix"===t[1]?t[2].split(",").map(function(t){return parseFloat(t.trim()) }):void 0 }function isPercentage(t){return -1!==t.toString().indexOf("%") }function parseBackgrounds(t){var e,n,r,i,o,s,a,c=" \r\n ",u=[],l=0,h=0,d=function(){e&&('"'===n.substr(0,1)&&(n=n.substr(1,n.length-2)),n&&a.push(n),"-"===e.substr(0,1)&&(i=e.indexOf("-",1)+1)>0&&(r=e.substr(0,i),e=e.substr(i)),u.push({prefix:r,method:e.toLowerCase(),value:o,args:a,image:null})),a=[],e=r=n=o="" }; return a=[],e=r=n=o="",t.split("").forEach(function(t){if(!(0===l&&c.indexOf(t)>-1)){switch(t){case'"':s?s===t&&(s=null):s=t; break; case"(":if(s){break }if(0===l){return l=1,void (o+=t) }h++; break; case")":if(s){break }if(1===l){if(0===h){return l=0,o+=t,void d() }h-- }break; case",":if(s){break }if(0===l){return void d() }if(1===l&&0===h&&!e.match(/^url$/i)){return a.push(n),n="",void (o+=t) }}o+=t,0===l?e+=t:n+=t }}),d(),u }function removePx(t){return t.replace("px","") }function asFloat(t){return parseFloat(t) }function getBounds(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect(),n=null==t.offsetWidth?e.width:t.offsetWidth; return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+n,left:e.left,width:n,height:null==t.offsetHeight?e.height:t.offsetHeight} }return{} }function offsetBounds(t){var e=t.offsetParent?offsetBounds(t.offsetParent):{top:0,left:0}; return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight} }function NodeParser(t,e,n,r,i){log("Starting NodeParser"),this.renderer=e,this.options=i,this.range=null,this.support=n,this.renderQueue=[],this.stack=new StackingContext(!0,1,t.ownerDocument,null); var o=new NodeContainer(t,null); if(t===t.ownerDocument.documentElement){var s=new NodeContainer(this.renderer.isTransparent(o.css("backgroundColor"))?t.ownerDocument.body:t.ownerDocument.documentElement,null); e.rectangle(0,0,e.width,e.height,s.css("backgroundColor")) }o.visibile=o.isElementVisible(),this.createPseudoHideStyles(t.ownerDocument),this.disableAnimations(t.ownerDocument),this.nodes=flatten([o].concat(this.getChildren(o)).filter(function(t){return t.visible=t.isElementVisible() }).map(this.getPseudoElements,this)),this.fontMetrics=new FontMetrics,log("Fetched nodes, total:",this.nodes.length),log("Calculate overflow clips"),this.calculateOverflowClips(),log("Start fetching images"),this.images=r.fetch(this.nodes.filter(isElement)),this.ready=this.images.ready.then(bind(function(){return log("Images loaded, starting parsing"),log("Creating stacking contexts"),this.createStackingContexts(),log("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),log("Render queue created with "+this.renderQueue.length+" items"),new Promise(bind(function(t){i.async?"function"==typeof i.async?i.async.call(this,this.renderQueue,t):this.renderQueue.length>0?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,t)):t():(this.renderQueue.forEach(this.paint,this),t()) },this)) },this)) }function hasParentClip(t){return t.parent&&t.parent.clip.length }function toCamelCase(t){return t.replace(/(\-[a-z])/g,function(t){return t.toUpperCase().replace("-","") }) }function ClearTransform(){}function calculateBorders(t,e,n,r){return t.map(function(i,o){if(i.width>0){var s=e.left,a=e.top,c=e.width,u=e.height-t[2].width; switch(o){case 0:u=t[0].width,i.args=drawSide({c1:[s,a],c2:[s+c,a],c3:[s+c-t[1].width,a+u],c4:[s+t[3].width,a+u]},r[0],r[1],n.topLeftOuter,n.topLeftInner,n.topRightOuter,n.topRightInner); break; case 1:s=e.left+e.width-t[1].width,c=t[1].width,i.args=drawSide({c1:[s+c,a],c2:[s+c,a+u+t[2].width],c3:[s,a+u],c4:[s,a+t[0].width]},r[1],r[2],n.topRightOuter,n.topRightInner,n.bottomRightOuter,n.bottomRightInner); break; case 2:a=a+e.height-t[2].width,u=t[2].width,i.args=drawSide({c1:[s+c,a+u],c2:[s,a+u],c3:[s+t[3].width,a],c4:[s+c-t[3].width,a]},r[2],r[3],n.bottomRightOuter,n.bottomRightInner,n.bottomLeftOuter,n.bottomLeftInner); break; case 3:c=t[3].width,i.args=drawSide({c1:[s,a+u+t[2].width],c2:[s,a],c3:[s+c,a+t[0].width],c4:[s+c,a+u]},r[3],r[0],n.bottomLeftOuter,n.bottomLeftInner,n.topLeftOuter,n.topLeftInner) }}return i }) }function getCurvePoints(t,e,n,r){var i=4*((Math.sqrt(2)-1)/3),o=n*i,s=r*i,a=t+n,c=e+r; return{topLeft:bezierCurve({x:t,y:c},{x:t,y:c-s},{x:a-o,y:e},{x:a,y:e}),topRight:bezierCurve({x:t,y:e},{x:t+o,y:e},{x:a,y:c-s},{x:a,y:c}),bottomRight:bezierCurve({x:a,y:e},{x:a,y:e+s},{x:t+o,y:c},{x:t,y:c}),bottomLeft:bezierCurve({x:a,y:c},{x:a-o,y:c},{x:t,y:e+s},{x:t,y:e})} }function calculateCurvePoints(t,e,n){var r=t.left,i=t.top,o=t.width,s=t.height,a=e[0][0],c=e[0][1],u=e[1][0],l=e[1][1],h=e[2][0],d=e[2][1],f=e[3][0],p=e[3][1],m=o-u,g=s-d,w=o-h,y=s-p; return{topLeftOuter:getCurvePoints(r,i,a,c).topLeft.subdivide(0.5),topLeftInner:getCurvePoints(r+n[3].width,i+n[0].width,Math.max(0,a-n[3].width),Math.max(0,c-n[0].width)).topLeft.subdivide(0.5),topRightOuter:getCurvePoints(r+m,i,u,l).topRight.subdivide(0.5),topRightInner:getCurvePoints(r+Math.min(m,o+n[3].width),i+n[0].width,m>o+n[3].width?0:u-n[3].width,l-n[0].width).topRight.subdivide(0.5),bottomRightOuter:getCurvePoints(r+w,i+g,h,d).bottomRight.subdivide(0.5),bottomRightInner:getCurvePoints(r+Math.min(w,o-n[3].width),i+Math.min(g,s+n[0].width),Math.max(0,h-n[1].width),d-n[2].width).bottomRight.subdivide(0.5),bottomLeftOuter:getCurvePoints(r,i+y,f,p).bottomLeft.subdivide(0.5),bottomLeftInner:getCurvePoints(r+n[3].width,i+y,Math.max(0,f-n[3].width),p-n[2].width).bottomLeft.subdivide(0.5)} }function bezierCurve(t,e,n,r){var i=function(t,e,n){return{x:t.x+(e.x-t.x)*n,y:t.y+(e.y-t.y)*n} }; return{start:t,startControl:e,endControl:n,end:r,subdivide:function(o){var s=i(t,e,o),a=i(e,n,o),c=i(n,r,o),u=i(s,a,o),l=i(a,c,o),h=i(u,l,o); return[bezierCurve(t,s,u,h),bezierCurve(h,l,c,r)] },curveTo:function(t){t.push(["bezierCurve",e.x,e.y,n.x,n.y,r.x,r.y]) },curveToReversed:function(r){r.push(["bezierCurve",n.x,n.y,e.x,e.y,t.x,t.y]) }} }function drawSide(t,e,n,r,i,o,s){var a=[]; return e[0]>0||e[1]>0?(a.push(["line",r[1].start.x,r[1].start.y]),r[1].curveTo(a)):a.push(["line",t.c1[0],t.c1[1]]),n[0]>0||n[1]>0?(a.push(["line",o[0].start.x,o[0].start.y]),o[0].curveTo(a),a.push(["line",s[0].end.x,s[0].end.y]),s[0].curveToReversed(a)):(a.push(["line",t.c2[0],t.c2[1]]),a.push(["line",t.c3[0],t.c3[1]])),e[0]>0||e[1]>0?(a.push(["line",i[1].end.x,i[1].end.y]),i[1].curveToReversed(a)):a.push(["line",t.c4[0],t.c4[1]]),a }function parseCorner(t,e,n,r,i,o,s){e[0]>0||e[1]>0?(t.push(["line",r[0].start.x,r[0].start.y]),r[0].curveTo(t),r[1].curveTo(t)):t.push(["line",o,s]),(n[0]>0||n[1]>0)&&t.push(["line",i[0].start.x,i[0].start.y]) }function negativeZIndex(t){return t.cssInt("zIndex")<0 }function positiveZIndex(t){return t.cssInt("zIndex")>0 }function zIndex0(t){return 0===t.cssInt("zIndex") }function inlineLevel(t){return -1!==["inline","inline-block","inline-table"].indexOf(t.css("display")) }function isStackingContext(t){return t instanceof StackingContext }function hasText(t){return t.node.data.trim().length>0 }function noLetterSpacing(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing")) }function getBorderRadiusData(t){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(e){var n=t.css("border"+e+"Radius"),r=n.split(" "); return r.length<=1&&(r[1]=r[0]),r.map(asInt) }) }function renderableNode(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE }function isPositionedForStacking(t){var e=t.css("position"),n=-1!==["absolute","relative","fixed"].indexOf(e)?t.css("zIndex"):"auto"; return"auto"!==n }function isPositioned(t){return"static"!==t.css("position") }function isFloating(t){return"none"!==t.css("float") }function isInlineBlock(t){return -1!==["inline-block","inline-table"].indexOf(t.css("display")) }function not(t){var e=this; return function(){return !t.apply(e,arguments) } }function isElement(t){return t.node.nodeType===Node.ELEMENT_NODE }function isPseudoElement(t){return t.isPseudoElement===!0 }function isTextNode(t){return t.node.nodeType===Node.TEXT_NODE }function zIndexSort(t){return function(e,n){return e.cssInt("zIndex")+t.indexOf(e)/t.length-(n.cssInt("zIndex")+t.indexOf(n)/t.length) } }function hasOpacity(t){return t.getOpacity()<1 }function bind(t,e){return function(){return t.apply(e,arguments) } }function asInt(t){return parseInt(t,10) }function getWidth(t){return t.width }function nonIgnoredElement(t){return t.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName) }function flatten(t){return[].concat.apply([],t) }function stripQuotes(t){var e=t.substr(0,1); return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t }function getWords(t){for(var e,n=[],r=0,i=!1; t.length; ){isWordBoundary(t[r])===i?(e=t.splice(0,r),e.length&&n.push(window.html2canvas.punycode.ucs2.encode(e)),i=!i,r=0):r++,r>=t.length&&(e=t.splice(0,r),e.length&&n.push(window.html2canvas.punycode.ucs2.encode(e))) }return n }function isWordBoundary(t){return -1!==[32,13,10,9,45].indexOf(t) }function hasUnicode(t){return/[^\u0000-\u00ff]/.test(t) }function Proxy(t,e,n){var r=createCallback(supportsCORS),i=createProxyUrl(e,t,r); return supportsCORS?XHR(i):jsonp(n,i,r).then(function(t){return decode64(t.content) }) }function ProxyURL(t,e,n){var r=createCallback(supportsCORSImage),i=createProxyUrl(e,t,r); return supportsCORSImage?Promise.resolve(i):jsonp(n,i,r).then(function(t){return"data:"+t.type+";base64,"+t.content }) }function jsonp(t,e,n){return new Promise(function(r,i){var o=t.createElement("script"),s=function(){delete window.html2canvas.proxy[n],t.body.removeChild(o) }; window.html2canvas.proxy[n]=function(t){s(),r(t) },o.src=e,o.onerror=function(t){s(),i(t) },t.body.appendChild(o) }) }function createCallback(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++proxyCount+"_"+Math.round(100000*Math.random()) }function createProxyUrl(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"") }function ProxyImageContainer(t,e){var n=(document.createElement("script"),document.createElement("a")); n.href="u,u=o.isfg,uijt.tsd=u,uijt.jnbhf=ofx" Image; var r=this; this.promise=new Promise(function(n,i){r.image.crossOrigin="Anonymous",r.image.onload=n,r.image.onerror=i,new ProxyURL(t,e,document).then(function(t){r.image.src=t })["catch"](i) }) }function PseudoElementContainer(t,e,n){NodeContainer.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===n }function Renderer(t,e,n,r,i){this.width=t,this.height=e,this.images=n,this.options=r,this.document=i }function StackingContext(t,e,n,r){NodeContainer.call(this,n,r),this.ownStacking=t,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*e }function Support(t){this.rangeBounds=this.testRangeBounds(t),this.cors=this.testCORS(),this.svg=this.testSVG() }function SVGContainer(t){this.src=t,this.image=null; var e=this; this.promise=this.hasFabric().then(function(){return e.isInline(t)?Promise.resolve(e.inlineFormatting(t)):XHR(t) }).then(function(t){return new Promise(function(n){html2canvas.fabric.loadSVGFromString(t,e.createCanvas.call(e,n)) }) }) }function decode64(t){var e,n,r,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=t.length,h=""; for(e=0; l>e; e+=4){n=u.indexOf(t[e]),r=u.indexOf(t[e+1]),i=u.indexOf(t[e+2]),o=u.indexOf(t[e+3]),s=n<<2|r>>4,a=(15&r)<<4|i>>2,c=(3&i)<<6|o,h+=64===i?String.fromCharCode(s):64===o||-1===o?String.fromCharCode(s,a):String.fromCharCode(s,a,c) }return h }function SVGNodeContainer(t,e){this.src=t,this.image=null; var n=this; this.promise=e?new Promise(function(e,r){n.image=new Image,n.image.onload=e,n.image.onerror=r,n.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(t),n.image.complete===!0&&e(n.image) }):this.hasFabric().then(function(){return new Promise(function(e){html2canvas.fabric.parseSVGDocument(t,n.createCanvas.call(n,e)) }) }) }function TextContainer(t,e){NodeContainer.call(this,t,e) }function capitalize(t,e,n){return t.length>0?e+n.toUpperCase():void 0 }function WebkitGradientContainer(t){GradientContainer.apply(this,arguments),this.type="linear"===t.args[0]?this.TYPES.LINEAR:this.TYPES.RADIAL }function XHR(t){return new Promise(function(e,n){var r=new XMLHttpRequest; r.open("GET",t),r.onload=function(){200===r.status?e(r.responseText):n(new Error(r.statusText)) },r.onerror=function(){n(new Error("Network Error")) },r.send() }) }function html2pdf(t,e,n){var r=e.canvas; if(!r){return void alert("jsPDF canvas plugin not installed") }if(r.pdf=e,e.annotations={_nameMap:[],createAnnotation:function(t,n){var r,i=e.context2d._wrapX(n.left),o=e.context2d._wrapY(n.top),s=(e.context2d._page(n.top),t.indexOf("#")); r=s>=0?{name:t.substring(s+1)}:{url:t},e.link(i,o,n.right-n.left,n.bottom-n.top,r) },setName:function(t,n){var r=e.context2d._wrapX(n.left),i=e.context2d._wrapY(n.top),o=e.context2d._page(n.top); this._nameMap[t]={page:o,x:r,y:i} }},r.annotations=e.annotations,e.context2d._pageBreakAt=function(t){this.pageBreaks.push(t) },e.context2d._gotoPage=function(t){for(; e.internal.getNumberOfPages())<[^<]*)*<\/script>/gi,""); var i=document.createElement("iframe"); document.body.appendChild(i); var o; o=i.contentDocument,(void 0==o||null==o)&&(o=i.contentWindow.document),o.open(),o.write(t),o.close(); html2canvas(o.body,{canvas:r,onrendered:function(t){n&&(i&&i.parentElement.removeChild(i),n(e)) }}) }else{var s=t; html2canvas(s,{canvas:r,onrendered:function(t){n&&(i&&i.parentElement.removeChild(i),n(e)) }}) }}global[""]=exports; var jsPDF=function(t){function e(e){var n={}; this.subscribe=function(t,e,r){if("function"!=typeof e){return !1 }n.hasOwnProperty(t)||(n[t]={}); var i=Math.random().toString(35); return n[t][i]=[e,!!r],i },this.unsubscribe=function(t){for(var e in n){if(n[e][t]){return delete n[e][t],!0 }}return !1 },this.publish=function(r){if(n.hasOwnProperty(r)){var i=Array.prototype.slice.call(arguments,1),o=[]; for(var s in n[r]){var a=n[r][s]; try{a[0].apply(e,i) }catch(c){t.console&&console.error("jsPDF PubSub Error",c.message,c) }a[1]&&o.push(s) }o.length&&o.forEach(this.unsubscribe) }} }function n(s,a,c,u){var l={}; "object"==typeof s&&(l=s,s=l.orientation,a=l.unit||a,c=l.format||c,u=l.compress||l.compressPdf||u),a=a||"mm",c=c||"a4",s=(""+(s||"P")).toLowerCase(); var h,d,f,p,m,g,w,y,v,b=((""+c).toLowerCase(),!!u&&"function"==typeof Uint8Array),x=l.textColor||"0 g",k=l.drawColor||"0 G",C=l.fontSize||16,E=l.lineHeight||1.15,S=l.lineWidth||0.200025,T=2,_=!1,q=[],I={},P={},A=0,O=[],R=[],N=[],B=[],D=[],L=0,F=0,M=0,j={title:"",subject:"",author:"",keywords:"",creator:""},z={},U=new e(z),H=function(t){return t.toFixed(2) },W=function(t){return t.toFixed(3) },V=function(t){return("0"+parseInt(t)).slice(-2) },G=function(t){_?O[p].push(t):(M+=t.length+1,B.push(t)) },X=function(){return T++,q[T]=M,G(T+" 0 obj"),T },Y=function(){var t=2*O.length+1; t+=D.length; var e={objId:t,content:""}; return D.push(e),e },J=function(){return T++,q[T]=function(){return M },T },Q=function(t){q[t]=M },$=function(t){G("stream"),G(t),G("endstream") },Z=function(){var e,r,i,o,s,a,c,u,l; for(c=t.adler32cs||n.adler32cs,b&&"undefined"==typeof c&&(b=!1),e=1; A>=e; e++){if(X(),u=(m=N[e].width)*d,l=(g=N[e].height)*d,G("<>"),G("endobj"),r=O[e].join("\n"),X(),b){for(i=[],o=r.length; o--; ){i[o]=r.charCodeAt(o) }a=c.from(r),s=new Deflater(6),s.append(new Uint8Array(i)),r=s.flush(),i=new Uint8Array(r.length+6),i.set(new Uint8Array([120,156])),i.set(r,2),i.set(new Uint8Array([255&a,a>>8&255,a>>16&255,a>>24&255]),r.length+2),r=String.fromCharCode.apply(null,i),G("<>") }else{G("<>") }$(r),G("endobj") }q[1]=M,G("1 0 obj"),G("<o; o++){h+=3+2*o+" 0 R " }G(h+"]"),G("/Count "+A),G(">>"),G("endobj") },K=function(t){t.objectNumber=X(),G("<>"),G("endobj") },tt=function(){for(var t in I){I.hasOwnProperty(t)&&K(I[t]) }},et=function(){U.publish("putXobjectDict") },nt=function(){G("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),G("/Font <<"); for(var t in I){I.hasOwnProperty(t)&&G("/"+t+" "+I[t].objectNumber+" 0 R") }G(">>"),G("/XObject <<"),et(),G(">>") },rt=function(){tt(),U.publish("putResources"),q[2]=M,G("2 0 obj"),G("<<"),nt(),G(">>"),G("endobj"),U.publish("postPutResources") },it=function(){U.publish("putAdditionalObjects"); for(var t=0; tu; u++){var h=st(c[u][0],c[u][1],c[u][2],a),d=c[u][0].split("-"); ot(h,d[0],d[1]||"") }U.publish("addFonts",{fonts:I,dictionary:P}) },ct=function(e){return e.foo=function(){try{return e.apply(this,arguments) }catch(n){var r=n.stack||""; ~r.indexOf(" at ")&&(r=r.split(" at ")[1]); var i="Error in function "+r.split("\n")[0].split("<")[0]+": "+n.message; if(!t.console){throw new Error(i) }t.console.error(i,n),t.alert&&alert(i) }},e.foo.bar=e,e.foo },ut=function(t,e){var n,r,i,o,s,a,c,u,l; if(e=e||{},i=e.sourceEncoding||"Unicode",s=e.outputEncoding,(e.autoencode||s)&&I[h].metadata&&I[h].metadata[i]&&I[h].metadata[i].encoding&&(o=I[h].metadata[i].encoding,!s&&I[h].encoding&&(s=I[h].encoding),!s&&o.codePages&&(s=o.codePages[0]),"string"==typeof s&&(s=o[s]),s)){for(c=!1,a=[],n=0,r=t.length; r>n; n++){u=s[t.charCodeAt(n)],u?a.push(String.fromCharCode(u)):a.push(t[n]),a[n].charCodeAt(0)>>8&&(c=!0) }t=a.join("") }for(n=t.length; void 0===c&&0!==n; ){t.charCodeAt(n-1)>>8&&(c=!0),n-- }if(!c){return t }for(a=e.noBOM?[]:[254,255],n=0,r=t.length; r>n; n++){if(u=t.charCodeAt(n),l=u>>8,l>>8){throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE") }a.push(l),a.push(u-(l<<8)) }return String.fromCharCode.apply(void 0,a) },lt=function(t,e){return ut(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)") },ht=function(){G("/Producer (jsPDF "+n.version+")"); for(var t in j){j.hasOwnProperty(t)&&j[t]&&G("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+lt(j[t])+")") }var e=new Date,r=e.getTimezoneOffset(),i=0>r?"+":"-",o=Math.floor(Math.abs(r/60)),s=Math.abs(r%60),a=[i,V(o),"'",V(s),"'"].join(""); G(["/CreationDate (D:",e.getFullYear(),V(e.getMonth()+1),V(e.getDate()),V(e.getHours()),V(e.getMinutes()),V(e.getSeconds()),a,")"].join("")) },dt=function(){switch(G("/Type /Catalog"),G("/Pages 1 0 R"),y||(y="fullwidth"),y){case"fullwidth":G("/OpenAction [3 0 R /FitH null]"); break; case"fullheight":G("/OpenAction [3 0 R /FitV null]"); break; case"fullpage":G("/OpenAction [3 0 R /Fit]"); break; case"original":G("/OpenAction [3 0 R /XYZ null null 1]"); break; default:var t=""+y; "%"===t.substr(t.length-1)&&(y=parseInt(y)/100),"number"==typeof y&&G("/OpenAction [3 0 R /XYZ null null "+H(y)+"]") }switch(v||(v="continuous"),v){case"continuous":G("/PageLayout /OneColumn"); break; case"single":G("/PageLayout /SinglePage"); break; case"two":case"twoleft":G("/PageLayout /TwoColumnLeft"); break; case"tworight":G("/PageLayout /TwoColumnRight") }w&&G("/PageMode /"+w),U.publish("putCatalog") },ft=function(){G("/Size "+(T+1)),G("/Root "+T+" 0 R"),G("/Info "+(T-1)+" 0 R") },pt=function(t,e){var n="string"==typeof e&&e.toLowerCase(); if("string"==typeof t){var r=t.toLowerCase(); o.hasOwnProperty(r)&&(t=o[r][0]/d,e=o[r][1]/d) }if(Array.isArray(t)&&(e=t[1],t=t[0]),n){switch(n.substr(0,1)){case"l":e>t&&(n="s"); break; case"p":t>e&&(n="s") }"s"===n&&(f=t,t=e,e=f) }_=!0,O[++A]=[],N[A]={width:Number(t)||m,height:Number(e)||g},R[A]={},wt(A) },mt=function(){pt.apply(this,arguments),G(H(S*d)+" w"),G(k),0!==L&&G(L+" J"),0!==F&&G(F+" j"),U.publish("addPage",{pageNumber:A}) },gt=function(t){t>0&&A>=t&&(O.splice(t,1),N.splice(t,1),A--,p>A&&(p=A),this.setPage(p)) },wt=function(t){t>0&&A>=t&&(p=t,m=N[t].width,g=N[t].height) },yt=function(t,e){var n; switch(t=void 0!==t?t:I[h].fontName,e=void 0!==e?e:I[h].fontStyle,void 0!==t&&(t=t.toLowerCase()),t){case"sans-serif":case"verdana":case"arial":t="helvetica"; break; case"fixed":case"monospace":case"terminal":t="courier"; break; case"serif":case"cursive":case"fantasy":default:t="times" }try{n=P[t][e] }catch(r){}return n||(n=P.times[e],null==n&&(n=P.times.normal)),n },vt=function(){_=!1,T=2,B=[],q=[],D=[],G("%PDF-"+r),Z(),it(),rt(),X(),G("<<"),ht(),G(">>"),G("endobj"),X(),G("<<"),dt(),G(">>"),G("endobj"); var t,e=M,n="0000000000"; for(G("xref"),G("0 "+(T+1)),G(n+" 65535 f "),t=1; T>=t; t++){var i=q[t]; G("function"==typeof i?(n+q[t]()).slice(-10)+" 00000 n ":(n+q[t]).slice(-10)+" 00000 n ") }return G("trailer"),G("<<"),ft(),G(">>"),G("startxref"),G(e),G("%%EOF"),_=!0,B.join("\n") },bt=function(t){var e="S"; return"F"===t?e="f":"FD"===t||"DF"===t?e="B":("f"===t||"f*"===t||"B"===t||"B*"===t)&&(e=t),e },xt=function(){for(var t=vt(),e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n); e--; ){r[e]=t.charCodeAt(e) }return n },kt=function(){return new Blob([xt()],{type:"application/pdf"}) },Ct=ct(function(e,n){var r="dataur"===(""+e).substr(0,6)?"data:application/pdf;base64,"+btoa(vt()):0; switch(e){case void 0:return vt(); case"save":if(navigator.getUserMedia&&(void 0===t.URL||void 0===t.URL.createObjectURL)){return z.output("dataurlnewwindow") }saveAs(kt(),n),"function"==typeof saveAs.unload&&t.setTimeout&&setTimeout(saveAs.unload,911); break; case"arraybuffer":return xt(); case"blob":return kt(); case"bloburi":case"bloburl":return t.URL&&t.URL.createObjectURL(kt())||void 0; case"datauristring":case"dataurlstring":return r; case"dataurlnewwindow":var i=t.open(r); if(i||"undefined"==typeof safari){return i }case"datauri":case"dataurl":return t.document.location.href="s;" default:throw new Error('Output type "'+e+'" is not supported.') }}); switch(a){case"pt":d=1; break; case"mm":d=72/25.4000508; break; case"cm":d=72/2.54000508; break; case"in":d=72; break; case"px":d=96/72; break; case"pc":d=12; break; case"em":d=12; break; case"ex":d=6; break; default:throw"Invalid unit: "+a }z.internal={pdfEscape:lt,getStyle:bt,getFont:function(){return I[yt.apply(z,arguments)] },getFontSize:function(){return C },getLineHeight:function(){return C*E },write:function(t){G(1===arguments.length?t:Array.prototype.join.call(arguments," ")) },getCoordinateString:function(t){return H(t*d) },getVerticalCoordinateString:function(t){return H((g-t)*d) },collections:{},newObject:X,newAdditionalObject:Y,newObjectDeferred:J,newObjectDeferredBegin:Q,putStream:$,events:U,scaleFactor:d,pageSize:{get width(){return m },get height(){return g }},output:function(t,e){return Ct(t,e) },getNumberOfPages:function(){return O.length-1 },pages:O,out:G,f2:H,getPageInfo:function(t){var e=2*(t-1)+3; return{objId:e,pageNumber:t,pageContext:R[t]} },getCurrentPageInfo:function(){var t=2*(p-1)+3; return{objId:t,pageNumber:p,pageContext:R[p]} }},z.addPage=function(){return mt.apply(this,arguments),this },z.setPage=function(){return wt.apply(this,arguments),this },z.insertPage=function(t){return this.addPage(),this.movePage(p,t),this },z.movePage=function(t,e){if(t>e){for(var n=O[t],r=N[t],i=R[t],o=t; o>e; o--){O[o]=O[o-1],N[o]=N[o-1],R[o]=R[o-1] }O[e]=n,N[e]=r,R[e]=i,this.setPage(e) }else{if(e>t){for(var n=O[t],r=N[t],i=R[t],o=t; e>o; o++){O[o]=O[o+1],N[o]=N[o+1],R[o]=R[o+1] }O[e]=n,N[e]=r,R[e]=i,this.setPage(e) }}return this },z.deletePage=function(){return gt.apply(this,arguments),this },z.setDisplayMode=function(t,e,n){return y=t,v=e,w=n,this },z.text=function(t,e,n,r,o,s){function a(t){return t=t.split(" ").join(Array(l.TabLen||9).join(" ")),lt(t,r) }"number"==typeof t&&(f=n,n=e,e=t,t=f),"string"==typeof t&&(t=t.match(/[\n\r]/)?t.split(/\r\n|\r|\n/g):[t]),"string"==typeof o&&(s=o,o=null),"string"==typeof r&&(s=r,r=null),"number"==typeof r&&(o=r,r=null); var c,u="",p="Td"; if(o){o*=Math.PI/180; var m=Math.cos(o),w=Math.sin(o); u=[H(m),H(w),H(-1*w),H(m),""].join(" "),p="Tm" }r=r||{},"noBOM" in r||(r.noBOM=!0),"autoencode" in r||(r.autoencode=!0); var y="",v=this.internal.getCurrentPageInfo().pageContext; if(!0===r.stroke?v.lastTextWasStroke!==!0&&(y="1 Tr\n",v.lastTextWasStroke=!0):(v.lastTextWasStroke&&(y="0 Tr\n"),v.lastTextWasStroke=!1),"undefined"==typeof this._runningPageHeight&&(this._runningPageHeight=0),"string"==typeof t){t=a(t) }else{if(!(t instanceof Array)){throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.') }for(var b=t.concat(),k=[],S=b.length; S--; ){k.push(a(b.shift())) }var T=Math.ceil((g-n-this._runningPageHeight)*d/(C*E)); if(T>=0&&Ti; i++,e+=r){this.text(t[i],e,n) }},z.line=function(t,e,n,r){return this.lines([[n-t,r-e]],t,e) },z.clip=function(){G("W"),G("S") },z.lines=function(t,e,n,r,i,o){var s,a,c,u,l,h,p,m,w,y,v; for("number"==typeof t&&(f=n,n=e,e=t,t=f),r=r||[1,1],G(W(e*d)+" "+W((g-n)*d)+" m "),s=r[0],a=r[1],u=t.length,y=e,v=n,c=0; u>c; c++){l=t[c],2===l.length?(y=l[0]*s+y,v=l[1]*a+v,G(W(y*d)+" "+W((g-v)*d)+" l")):(h=l[0]*s+y,p=l[1]*a+v,m=l[2]*s+y,w=l[3]*a+v,y=l[4]*s+y,v=l[5]*a+v,G(W(h*d)+" "+W((g-p)*d)+" "+W(m*d)+" "+W((g-w)*d)+" "+W(y*d)+" "+W((g-v)*d)+" c")) }return o&&G(" h"),null!==i&&G(bt(i)),this },z.rect=function(t,e,n,r,i){bt(i); return G([H(t*d),H((g-e)*d),H(n*d),H(-r*d),"re"].join(" ")),null!==i&&G(bt(i)),this },z.triangle=function(t,e,n,r,i,o,s){return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],s,!0),this },z.roundedRect=function(t,e,n,r,i,o,s){var a=4/3*(Math.SQRT2-1); return this.lines([[n-2*i,0],[i*a,0,i,o-o*a,i,o],[0,r-2*o],[0,o*a,-(i*a),o,-i,o],[-n+2*i,0],[-(i*a),0,-i,-(o*a),-i,-o],[0,-r+2*o],[0,-(o*a),i*a,-o,i,-o]],t+i,e,[1,1],s),this },z.ellipse=function(t,e,n,r,i){var o=4/3*(Math.SQRT2-1)*n,s=4/3*(Math.SQRT2-1)*r; return G([H((t+n)*d),H((g-e)*d),"m",H((t+n)*d),H((g-(e-s))*d),H((t+o)*d),H((g-(e-r))*d),H(t*d),H((g-(e-r))*d),"c"].join(" ")),G([H((t-o)*d),H((g-(e-r))*d),H((t-n)*d),H((g-(e-s))*d),H((t-n)*d),H((g-e)*d),"c"].join(" ")),G([H((t-n)*d),H((g-(e+s))*d),H((t-o)*d),H((g-(e+r))*d),H(t*d),H((g-(e+r))*d),"c"].join(" ")),G([H((t+o)*d),H((g-(e+r))*d),H((t+n)*d),H((g-(e+s))*d),H((t+n)*d),H((g-e)*d),"c"].join(" ")),null!==i&&G(bt(i)),this },z.circle=function(t,e,n,r){return this.ellipse(t,e,n,n,r) },z.setProperties=function(t){for(var e in j){j.hasOwnProperty(e)&&t[e]&&(j[e]=t[e]) }return this },z.setFontSize=function(t){return C=t,this },z.setFont=function(t,e){return h=yt(t,e),this },z.setFontStyle=z.setFontType=function(t){return h=yt(void 0,t),this },z.getFontList=function(){var t,e,n,r={}; for(t in P){if(P.hasOwnProperty(t)){r[t]=n=[]; for(e in P[t]){P[t].hasOwnProperty(e)&&n.push(e) }}}return r },z.addFont=function(t,e,n){st(t,e,n,"StandardEncoding") },z.setLineWidth=function(t){return G((t*d).toFixed(2)+" w"),this },z.setDrawColor=function(t,e,n,r){var i; return i=void 0===e||void 0===r&&t===e===n?"string"==typeof t?t+" G":H(t/255)+" G":void 0===r?"string"==typeof t?[t,e,n,"RG"].join(" "):[H(t/255),H(e/255),H(n/255),"RG"].join(" "):"string"==typeof t?[t,e,n,r,"K"].join(" "):[H(t),H(e),H(n),H(r),"K"].join(" "),G(i),this },z.setFillColor=function(t,e,n,r){var i; return void 0===e||void 0===r&&t===e===n?i="string"==typeof t?t+" g":H(t/255)+" g":void 0===r||"object"==typeof r?(i="string"==typeof t?[t,e,n,"rg"].join(" "):[H(t/255),H(e/255),H(n/255),"rg"].join(" "),r&&0===r.a&&(i=["255","255","255","rg"].join(" "))):i="string"==typeof t?[t,e,n,r,"k"].join(" "):[H(t),H(e),H(n),H(r),"k"].join(" "),G(i),this },z.setTextColor=function(t,e,n){if("string"==typeof t&&/^#[0-9A-Fa-f]{6}$/.test(t)){var r=parseInt(t.substr(1),16); t=r>>16&255,e=r>>8&255,n=255&r }return x=0===t&&0===e&&0===n||"undefined"==typeof e?W(t/255)+" g":[W(t/255),W(e/255),W(n/255),"rg"].join(" "),this },z.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},z.setLineCap=function(t){var e=this.CapJoinStyles[t]; if(void 0===e){throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles") }return L=e,G(e+" J"),this },z.setLineJoin=function(t){var e=this.CapJoinStyles[t]; if(void 0===e){throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles") }return F=e,G(e+" j"),this },z.output=Ct,z.save=function(t){z.output("save",t) }; for(var Et in n.API){n.API.hasOwnProperty(Et)&&("events"===Et&&n.API.events.length?!function(t,e){var n,r,i; for(i=e.length-1; -1!==i; i--){n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r)) }}(U,n.API.events):z[Et]=n.API[Et]) }return at(),h="F1",mt(c,s),U.publish("initialized"),z }var r="1.3",o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]}; return n.API={events:[]},n.version="1.1.239-git 2015-08-26T20:20:danielzamorano","function"==typeof define&&define.amd?define("jsPDF",function(){return n }):"undefined"!=typeof module&&module.exports?module.exports=n:t.jsPDF=n,n }("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this); !function(t){t.addHTML=function(t,e,n,r,i){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML){throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js") }"number"!=typeof e&&(r=e,i=n),"function"==typeof r&&(i=r,r=null); var o=this.internal,s=o.scaleFactor,a=o.pageSize.width,c=o.pageSize.height; if(r=r||{},r.onrendered=function(t){e=parseInt(e)||0,n=parseInt(n)||0; var o=r.dim||{},u=o.h||0,l=o.w||Math.min(a,t.width/s)-e,h="JPEG"; if(r.format&&(h=r.format),t.height>c&&r.pagesplit){var d=function(){for(var r=0; ; ){var o=document.createElement("canvas"); o.width=Math.min(a*s,t.width),o.height=Math.min(c*s,t.height-r); var u=o.getContext("2d"); u.drawImage(t,0,r,t.width,o.height,0,0,o.width,o.height); var d=[o,e,r?0:n,o.width/s,o.height/s,h,null,"SLOW"]; if(this.addImage.apply(this,d),r+=o.height,r>=t.height){break }this.addPage() }i(l,r,null,d) }.bind(this); if("CANVAS"===t.nodeName){var f=new Image; f.onload=d,f.src=t.toDataURL("image/png"),t=f }else{d() }}else{var p=Math.random().toString(35),m=[t,e,n,l,u,h,p,"SLOW"]; this.addImage.apply(this,m),i(l,u,p,m) }}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz){return html2canvas(t,r) }if("undefined"!=typeof rasterizeHTML){var u="drawDocument"; return"string"==typeof t&&(u=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||a*s,rasterizeHTML[u](t,void 0,r).then(function(t){r.onrendered(t.image) },function(t){i(null,t) }) }return null } }(jsPDF.API),function(t){var e="addImage_",n=["jpeg","jpg","png"],r=function(t){var e=this.internal.newObject(),n=this.internal.write,i=this.internal.putStream; if(t.n=e,n("<>"),"trns" in t&&t.trns.constructor==Array){for(var o="",s=0,a=t.trns.length; a>s; s++){o+=t.trns[s]+" "+t.trns[s]+" " }n("/Mask ["+o+"]") }if("smask" in t&&n("/SMask "+(e+1)+" 0 R"),n("/Length "+t.data.length+">>"),i(t.data),n("endobj"),"smask" in t){var c="/Predictor 15 /Colors 1 /BitsPerComponent "+t.bpc+" /Columns "+t.w,u={w:t.w,h:t.h,cs:"DeviceGray",bpc:t.bpc,dp:c,data:t.smask}; "f" in t&&(u.f=t.f),r.call(this,u) }t.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),n("<< /Length "+t.pal.length+">>"),i(this.arrayBufferToBinaryString(new Uint8Array(t.pal))),n("endobj")) },i=function(){var t=this.internal.collections[e+"images"]; for(var n in t){r.call(this,t[n]) }},o=function(){var t,n=this.internal.collections[e+"images"],r=this.internal.write; for(var i in n){t=n[i],r("/I"+t.i,t.n,"0","R") }},s=function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:t.image_compression.NONE },a=function(){var t=this.internal.collections[e+"images"]; return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o)),t },c=function(t){var e=0; return t&&(e=Object.keys?Object.keys(t).length:function(t){var e=0; for(var n in t){t.hasOwnProperty(n)&&e++ }return e }(t)),e },u=function(t){return"undefined"==typeof t||null===t },l=function(e){return"string"==typeof e&&t.sHashCode(e) },h=function(t){return -1===n.indexOf(t) },d=function(e){return"function"!=typeof t["process"+e.toUpperCase()] },f=function(t){return"object"==typeof t&&1===t.nodeType },p=function(t,e,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src"); if(!n&&0===r.indexOf("data:image/")){return r }!e&&/\.png(?:[?#].*)?$/i.test(r)&&(e="png") }if("CANVAS"===t.nodeName){var i=t }else{var i=document.createElement("canvas"); i.width=t.clientWidth||t.width,i.height=t.clientHeight||t.height; var o=i.getContext("2d"); if(!o){throw"addImage requires canvas to be supported by browser." }if(n){var s,a,c,u,l,h,d,f,p=Math.PI/180; "object"==typeof n&&(s=n.x,a=n.y,c=n.bg,n=n.angle),f=n*p,u=Math.abs(Math.cos(f)),l=Math.abs(Math.sin(f)),h=i.width,d=i.height,i.width=d*l+h*u,i.height=d*u+h*l,isNaN(s)&&(s=i.width/2),isNaN(a)&&(a=i.height/2),o.clearRect(0,0,i.width,i.height),o.fillStyle=c||"white",o.fillRect(0,0,i.width,i.height),o.save(),o.translate(s,a),o.rotate(f),o.drawImage(t,-(h/2),-(d/2)),o.rotate(-f),o.translate(-s,-a),o.restore() }else{o.drawImage(t,0,0,i.width,i.height) }}return i.toDataURL("png"==(""+e).toLowerCase()?"image/png":"image/jpeg") },m=function(t,e){var n; if(e){for(var r in e){if(t===e[r].alias){n=e[r]; break }}}return n },g=function(t,e,n){return t||e||(t=-96,e=-96),0>t&&(t=-1*n.w*72/t/this.internal.scaleFactor),0>e&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e] },w=function(t,e,n,r,i,o,s){var a=g.call(this,n,r,i),c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString; n=a[0],r=a[1],s[o]=i,this.internal.write("q",c(n),"0 0",c(r),c(t),u(e+r),"cm /I"+i.i,"Do Q") }; t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPERATION:"Seperation",DEVICE_N:"DeviceN"},t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},t.sHashCode=function(t){return Array.prototype.reduce&&t.split("").reduce(function(t,e){return t=(t<<5)-t+e.charCodeAt(0),t&t },0) },t.isString=function(t){return"string"==typeof t },t.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));base64,(.+?)$/g.exec(t) },t.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array },t.isArrayBuffer=function(t){return this.supportsArrayBuffer()?t instanceof ArrayBuffer:!1 },t.isArrayBufferView=function(t){return this.supportsArrayBuffer()?"undefined"==typeof Uint32Array?!1:t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array:!1 },t.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0; e>r; r++){n[r]=t.charCodeAt(r) }return n },t.arrayBufferToBinaryString=function(t){this.isArrayBuffer(t)&&(t=new Uint8Array(t)); for(var e="",n=t.byteLength,r=0; n>r; r++){e+=String.fromCharCode(t[r]) }return e },t.arrayBufferToBase64=function(t){for(var e,n,r,i,o,s="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=new Uint8Array(t),u=c.byteLength,l=u%3,h=u-l,d=0; h>d; d+=3){o=c[d]<<16|c[d+1]<<8|c[d+2],e=(16515072&o)>>18,n=(258048&o)>>12,r=(4032&o)>>6,i=63&o,s+=a[e]+a[n]+a[r]+a[i] }return 1==l?(o=c[h],e=(252&o)>>2,n=(3&o)<<4,s+=a[e]+a[n]+"=="):2==l&&(o=c[h]<<8|c[h+1],e=(64512&o)>>10,n=(1008&o)>>4,r=(15&o)<<2,s+=a[e]+a[n]+a[r]+"="),s },t.createImageInfo=function(t,e,n,r,i,o,s,a,c,u,l,h){var d={alias:a,w:e,h:n,cs:r,bpc:i,i:s,data:t}; return o&&(d.f=o),c&&(d.dp=c),u&&(d.trns=u),l&&(d.pal=l),h&&(d.smask=h),d },t.addImage=function(t,e,r,i,o,g,y,v,b){if("string"!=typeof e){var x=g; g=o,o=i,i=r,r=e,e=x }if("object"==typeof t&&!f(t)&&"imageData" in t){var k=t; t=k.imageData,e=k.format||e,r=k.x||r||0,i=k.y||i||0,o=k.w||o,g=k.h||g,y=k.alias||y,v=k.compression||v,b=k.rotation||k.angle||b }if(isNaN(r)||isNaN(i)){throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage") }var C,E=a.call(this); if(!(C=m(t,E))){var S; if(f(t)&&(t=p(t,e,b)),u(y)&&(y=l(t)),!(C=m(y,E))){if(this.isString(t)){var T=this.extractInfoFromBase64DataURI(t); T?(e=T[2],t=atob(T[3])):137===t.charCodeAt(0)&&80===t.charCodeAt(1)&&78===t.charCodeAt(2)&&71===t.charCodeAt(3)&&(e="png") }if(e=(e||"JPEG").toLowerCase(),h(e)){throw new Error("addImage currently only supports formats "+n+", not '"+e+"'") }if(d(e)){throw new Error("please ensure that the plugin for '"+e+"' support is added") }if(this.supportsArrayBuffer()&&(S=t,t=this.binaryStringToUint8Array(t)),C=this["process"+e.toUpperCase()](t,c(E),y,s(v),S),!C){throw new Error("An unkwown error occurred whilst processing the image") }}}return w.call(this,r,i,o,g,C,C.i,E),this }; var y=function(t){var e,n,r; if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10)){throw new Error("getJpegSize requires a binary string jpeg file") }for(var i=256*t.charCodeAt(4)+t.charCodeAt(5),o=4,s=t.length; s>o; ){if(o+=i,255!==t.charCodeAt(o)){throw new Error("getJpegSize could not find the size of the image") }if(192===t.charCodeAt(o+1)||193===t.charCodeAt(o+1)||194===t.charCodeAt(o+1)||195===t.charCodeAt(o+1)||196===t.charCodeAt(o+1)||197===t.charCodeAt(o+1)||198===t.charCodeAt(o+1)||199===t.charCodeAt(o+1)){return n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),e=256*t.charCodeAt(o+7)+t.charCodeAt(o+8),r=t.charCodeAt(o+9),[e,n,r] }o+=2,i=256*t.charCodeAt(o)+t.charCodeAt(o+1) }},v=function(t){var e=t[0]<<8|t[1]; if(65496!==e){throw new Error("Supplied data is not a JPEG") }for(var n,r,i,o,s=t.length,a=(t[4]<<8)+t[5],c=4; s>c; ){if(c+=a,n=b(t,c),a=(n[2]<<8)+n[3],(192===n[1]||194===n[1])&&255===n[0]&&a>7){return n=b(t,c+5),r=(n[2]<<8)+n[3],i=(n[0]<<8)+n[1],o=n[4],{width:r,height:i,numcomponents:o} }c+=2 }throw new Error("getJpegSizeFromBytes could not find the size of the image") },b=function(t,e){return t.subarray(e,e+5) }; t.processJPEG=function(t,e,n,r,i){var o,s=this.color_spaces.DEVICE_RGB,a=this.decode.DCT_DECODE,c=8; return this.isString(t)?(o=y(t),this.createImageInfo(t,o[0],o[1],1==o[3]?this.color_spaces.DEVICE_GRAY:s,c,a,e,n)):(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)?(o=v(t),t=i||this.arrayBufferToBinaryString(t),this.createImageInfo(t,o.width,o.height,1==o.numcomponents?this.color_spaces.DEVICE_GRAY:s,c,a,e,n)):null) },t.processJPG=function(){return this.processJPEG.apply(this,arguments) } }(jsPDF.API),function(t){var e={annotations:[],f2:function(t){return t.toFixed(2) },notEmpty:function(t){return"undefined"!=typeof t&&""!=t?!0:void 0 }}; return jsPDF.API.annotationPlugin=e,jsPDF.API.events.push(["addPage",function(t){this.annotationPlugin.annotations[t.pageNumber]=[] }]),t.events.push(["putPage",function(t){for(var n=this.annotationPlugin.annotations[t.pageNumber],r=!1,i=0; i>",l.content=y; var p=l.objId+" 0 R",m=30,f="/Rect ["+s((o.bounds.x+m)*a)+" "+s(c-(o.bounds.y+o.bounds.h)*a)+" "+s((o.bounds.x+o.bounds.w+m)*a)+" "+s((c-o.bounds.y)*a)+"] "; y="<>" }else{if(o.options.pageNumber){var t=this.internal.getPageInfo(o.options.pageNumber); switch(y="<>",this.internal.write(y)) }}this.internal.write("]") }}]),t.createAnnotation=function(t){switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t); break; case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(t) }},t.link=function(t,e,n,r,i){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:n,h:r,options:i,type:"link"}) },t.link=function(t,e,n,r,i){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:n,h:r,options:i,type:"link"}) },t.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight(); return this.text(t,e,n),n+=0.2*o,this.link(e,n-o,i,o,r),i },t.getTextWidth=function(t){var e=this.internal.getFontSize(),n=this.getStringUnitWidth(t)*e/this.internal.scaleFactor; return n },t.getLineHeight=function(){return this.internal.getLineHeight() },this }(jsPDF.API),function(t){t.autoPrint=function(){var t; return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.write("<< /S/Named /Type/Action /N/Print >>","endobj") }),this.internal.events.subscribe("putCatalog",function(){this.internal.write("/OpenAction "+t+" 0 R") }),this } }(jsPDF.API),function(t){return t.events.push(["initialized",function(){this.canvas.pdf=this }]),t.canvas={getContext:function(t){return this.pdf.context2d },style:{}},Object.defineProperty(t.canvas,"width",{get:function(){return this._width },set:function(t){this._width=t,this.getContext("2d").pageWrapX=t+1 }}),Object.defineProperty(t.canvas,"height",{get:function(){return this._height },set:function(t){this._height=t,this.getContext("2d").pageWrapY=t+1 }}),this }(jsPDF.API),function(t){var e,n,r,i,o=3,s=13,a={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},c=1,u=function(t,e,n,r,i){a={x:t,y:e,w:n,h:r,ln:i} },l=function(){return a },h={left:0,top:0,bottom:0}; t.setHeaderFunction=function(t){i=t },t.getTextDimensions=function(t){e=this.internal.getFont().fontName,n=this.table_font_size||this.internal.getFontSize(),r=this.internal.getFont().fontStyle; var i,o,s=19.049976/25.4; o=document.createElement("font"),o.id="jsPDFCell"; try{o.style.fontStyle=r }catch(a){o.style.fontWeight=r }o.style.fontName=e,o.style.fontSize=n+"pt"; try{o.textContent=t }catch(a){o.innerText=t }return document.body.appendChild(o),i={w:(o.offsetWidth+1)*s,h:(o.offsetHeight+1)*s},document.body.removeChild(o),i },t.cellAddPage=function(){var t=this.margins||h; this.addPage(),u(t.left,t.top,void 0,void 0),c+=1 },t.cellInitialize=function(){a={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},c=1 },t.cell=function(t,e,n,r,i,a,c){var d=l(); if(void 0!==d.ln){if(d.ln===a){t=d.x+d.w,e=d.y }else{var f=this.margins||h; d.y+d.h+r+s>=this.internal.pageSize.height-f.bottom&&(this.cellAddPage(),this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(a,!0)),e=l().y+l().h }}if(void 0!==i[0]){if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===c){i instanceof Array||(i=[i]); for(var p=0; pn; n+=1){i=t[n],e?-1===e(o,i)&&(o=i):i>o&&(o=i) }return o },t.table=function(e,n,r,i,o){if(!r){throw"No data for PDF table" }var s,u,l,d,f,p,m,g,w,y,v=[],b=[],x={},k={},C=[],E=[],S=!1,T=!0,_=12,q=h; if(q.width=this.internal.pageSize.width,o&&(o.autoSize===!0&&(S=!0),o.printHeaders===!1&&(T=!1),o.fontSize&&(_=o.fontSize),o.margins&&(q=o.margins)),this.lnMod=0,a={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},c=1,this.printHeaders=T,this.margins=q,this.setFontSize(_),this.table_font_size=_,void 0===i||null===i){v=Object.keys(r[0]) }else{if(i[0]&&"string"!=typeof i[0]){var I=19.049976/25.4; for(u=0,l=i.length; l>u; u+=1){s=i[u],v.push(s.name),b.push(s.prompt),k[s.name]=s.width*I }}else{v=i }}if(S){for(y=function(t){return t[s] },u=0,l=v.length; l>u; u+=1){for(s=v[u],x[s]=r.map(y),C.push(this.getTextDimensions(b[u]||s).w),p=x[s],m=0,d=p.length; d>m; m+=1){f=p[m],C.push(this.getTextDimensions(f).w) }k[s]=t.arrayMax(C),C=[] }}if(T){var P=this.calculateLineHeight(v,k,b.length?b:v); for(u=0,l=v.length; l>u; u+=1){s=v[u],E.push([e,n,k[s],P,String(b.length?b[u]:s)]) }this.setTableHeaderRow(E),this.printHeaderRow(1,!1) }for(u=0,l=r.length; l>u; u+=1){var P; for(g=r[u],P=this.calculateLineHeight(v,k,g),m=0,w=v.length; w>m; m+=1){s=v[m],this.cell(e,n,k[s],P,g[s],u+2,s.align) }}return this.lastCellPos=a,this.table_x=e,this.table_y=n,this },t.calculateLineHeight=function(t,e,n){for(var r,i=0,s=0; si&&(i=a) }return i },t.setTableHeaderRow=function(t){this.tableHeaderRow=t },t.printHeaderRow=function(t,e){if(!this.tableHeaderRow){throw"Property tableHeaderRow does not exist." }var n,r,o,s; if(this.printingHeaderRow=!0,void 0!==i){var a=i(this,c); u(a[0],a[1],a[2],a[3],-1) }this.setFontStyle("bold"); var l=[]; for(o=0,s=this.tableHeaderRow.length; s>o; o+=1){this.setFillColor(200,200,200),n=this.tableHeaderRow[o],e&&(n[1]=this.margins&&this.margins.top||0,l.push(n)),r=[].concat(n),this.cell.apply(this,r.concat(t)) }l.length>0&&this.setTableHeaderRow(l),this.setFontStyle("normal"),this.printingHeaderRow=!1 } }(jsPDF.API),function(t){function e(){this.fillStyle="#000000",this.strokeStyle="#000000",this.font="12pt times",this.textBaseline="alphabetic",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this._translate={x:0,y:0},this.copy=function(t){this.fillStyle=t.fillStyle,this.strokeStyle=t.strokeStyle,this.font=t.font,this.lineWidth=t.lineWidth,this.lineJoin=t.lineJoin,this.lineCap=t.lineCap,this.textBaseline=t.textBaseline,this._fontSize=t._fontSize,this._translate={x:t._translate.x,y:t._translate.y} } }t.events.push(["initialized",function(){this.context2d.pdf=this,this.context2d.internal.pdf=this,this.context2d.ctx=new e,this.context2d.ctxStack=[],this.context2d.path=[] }]),t.context2d={pageWrapXEnabled:!1,pageWrapYEnabled:!0,pageWrapX:9999999,pageWrapY:9999999,f2:function(t){return t.toFixed(2) },fillRect:function(t,e,n,r){t=this._wrapX(t),e=this._wrapY(e),this.pdf.rect(t,e,n,r,"f") },strokeRect:function(t,e,n,r){t=this._wrapX(t),e=this._wrapY(e),this.pdf.rect(t,e,n,r,"s") },clearRect:function(t,e,n,r){t=this._wrapX(t),e=this._wrapY(e),this.save(),this.setFillStyle("#ffffff"),this.pdf.rect(t,e,n,r,"f"),this.restore() },save:function(){this.ctx._fontSize=this.pdf.internal.getFontSize(); var t=new e; t.copy(this.ctx),this.ctxStack.push(this.ctx),this.ctx=t },restore:function(){this.ctx=this.ctxStack.pop(),this.setFillStyle(this.ctx.fillStyle),this.setStrokeStyle(this.ctx.strokeStyle),this.setFont(this.ctx.font),this.pdf.setFontSize(this.ctx._fontSize),this.setLineCap(this.ctx.lineCap),this.setLineWidth(this.ctx.lineWidth),this.setLineJoin(this.ctx.lineJoin) },beginPath:function(){this.path=[] },closePath:function(){this.path.push({type:"close"}) },setFillStyle:function(t){var e,n,r,i,o=this.internal.rxRgb.exec(t); null!=o?(e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3])):(o=this.internal.rxRgba.exec(t),null!=o?(e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseInt(o[4])):("#"!=t.charAt(0)&&(t=CssColors.colorNameToHex(t),t||(t="#000000")),this.ctx.fillStyle=t,4===t.length?(e=this.ctx.fillStyle.substring(1,2),e+=e,n=this.ctx.fillStyle.substring(2,3),n+=n,r=this.ctx.fillStyle.substring(3,4),r+=r):(e=this.ctx.fillStyle.substring(1,3),n=this.ctx.fillStyle.substring(3,5),r=this.ctx.fillStyle.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16))),this.pdf.setFillColor(e,n,r,{a:i}),this.pdf.setTextColor(e,n,r,{a:i}) },setStrokeStyle:function(t){"#"!=t.charAt(0)&&(t=CssColors.colorNameToHex(t),t||(t="#000000")),this.ctx.strokeStyle=t; var e=this.ctx.strokeStyle.substring(1,3); e=parseInt(e,16); var n=this.ctx.strokeStyle.substring(3,5); n=parseInt(n,16); var r=this.ctx.strokeStyle.substring(5,7); r=parseInt(r,16),this.pdf.setDrawColor(e,n,r) },fillText:function(t,e,n,r){e=this._wrapX(e),n=this._wrapY(n),this.pdf.text(t,e,this._getBaseline(n)) },strokeText:function(t,e,n,r){e=this._wrapX(e),n=this._wrapY(n),this.pdf.text(t,e,this._getBaseline(n),{stroke:!0}) },setFont:function(t){this.ctx.font=t; var e=/\s*(\w+)\s+(\w+)\s+(\w+)\s+([\d\.]+)(px|pt|em)\s+["']?(\w+)['"]?/; if(c=e.exec(t),null!=c){var n=c[1],r=(c[2],c[3]),i=c[4],o=c[5],s=c[6]; i="px"===o?Math.floor(parseFloat(i)):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)),this.pdf.setFontSize(i),"bold"===r||"700"===r?this.pdf.setFontStyle("bold"):"italic"===n?this.pdf.setFontStyle("italic"):this.pdf.setFontStyle("normal"); var a=s; this.pdf.setFont(a,l) }else{var e=/(\d+)(pt|px|em)\s+(\w+)\s*(\w+)?/,c=e.exec(t); if(null!=c){var u=c[1],a=(c[2],c[3]),l=c[4]; l||(l="normal"),u="em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(u)),this.pdf.setFontSize(u),this.pdf.setFont(a,l) }}},setTextBaseline:function(t){this.ctx.textBaseline=t },getTextBaseline:function(){return this.ctx.textBaseline },setLineWidth:function(t){this.ctx.lineWidth=t,this.pdf.setLineWidth(t) },setLineCap:function(t){this.ctx.lineCap=t,this.pdf.setLineCap(t) },setLineJoin:function(t){this.ctx.lineJon=t,this.pdf.setLineJoin(t) },moveTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e); var n={type:"mt",x:t,y:e}; this.path.push(n) },_wrapX:function(t){return this.pageWrapXEnabled?t%this.pageWrapX:t },_wrapY:function(t){return this.pageWrapYEnabled?(this._gotoPage(this._page(t)),(t-this.lastBreak)%this.pageWrapY):t },lastBreak:0,pageBreaks:[],_page:function(t){if(this.pageWrapYEnabled){this.lastBreak=0; for(var e=0,n=0,r=0; r=this.pageBreaks[r]){e++,0===this.lastBreak&&n++; var i=this.pageBreaks[r]-this.lastBreak; this.lastBreak=this.pageBreaks[r]; var o=Math.floor(i/this.pageWrapY); n+=o }}if(0===this.lastBreak){var o=Math.floor(t/this.pageWrapY)+1; n+=o }return n+e }return this.pdf.internal.getCurrentPageInfo().pageNumber },_gotoPage:function(t){},lineTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e); var n={type:"lt",x:t,y:e}; this.path.push(n) },bezierCurveTo:function(t,e,n,r,i,o){t=this._wrapX(t),e=this._wrapY(e),n=this._wrapX(n),r=this._wrapY(r),i=this._wrapX(i),o=this._wrapY(o); var s={type:"bct",x1:t,y1:e,x2:n,y2:r,x:i,y:o}; this.path.push(s) },quadraticCurveTo:function(t,e,n,r){t=this._wrapX(t),e=this._wrapY(e),n=this._wrapX(n),r=this._wrapY(r); var i={type:"qct",x1:t,y1:e,x:n,y:r}; this.path.push(i) },arc:function(t,e,n,r,i,o){t=this._wrapX(t),e=this._wrapY(e); var s={type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,anticlockwise:o}; this.path.push(s) },drawImage:function(t,e,n,r,i,o,s,a,c){void 0!==o&&(e=o,n=s,r=a,i=c),e=this._wrapX(e),n=this._wrapY(n); var u,l=/data:image\/(\w+).*/i,h=l.exec(t); u=null!=h?h[1]:"png",this.pdf.addImage(t,u,e,n,r,i) },stroke:function(){for(var t,e=[],n=!1,r=0; rs||s>o)&&(s%=o); var a=n; (o>a||a>o)&&(a%=o); for(var c=[],u=Math.PI/2,l=r?-1:1,h=e,d=Math.min(o,Math.abs(a-s)); d>i; ){var f=h+l*Math.min(d,u); c.push(this.createSmallArc(t,h,f)),d-=Math.abs(f-h),h=f }return c },n.internal.createSmallArc=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),s=i,a=-o,c=s*s+a*a,u=c+s*i+a*o,l=4/3*(Math.sqrt(2*c*u)-u)/(s*o-a*i),h=s-l*a,d=a+l*s,f=h,p=-d,m=r+e,g=Math.cos(m),w=Math.sin(m); return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*g-d*w,y2:h*w+d*g,x3:f*g-p*w,y3:f*w+p*g,x4:t*Math.cos(n),y4:t*Math.sin(n)} },this }(jsPDF.API),function(t){var e,n,r,i,o,s,a,c,u,l,h,d,f,p,m,g,w,y,v; e=function(){function t(){}return function(e){return t.prototype=e,new t } }(),u=function(t){var e,n,r,i,o,s,a; for(n=0,r=t.length,e=void 0,i=!1,s=!1; !i&&n!==r; ){e=t[n]=t[n].trimLeft(),e&&(i=!0),n++ }for(n=r-1; r&&!s&&-1!==n; ){e=t[n]=t[n].trimRight(),e&&(s=!0),n-- }for(o=/\s+$/g,a=!0,n=0; n!==r; ){"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),a&&(e=e.trimLeft()),e&&(a=o.test(e)),t[n]=e),n++ }return t },l=function(t,e,n,r){return this.pdf=t,this.x=e,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this },h=function(t){var e,n,i; for(e=void 0,i=t.split(","),n=i.shift(); !e&&n; ){e=r[n.trim().toLowerCase()],n=i.shift() }return e },d=function(t){t="auto"===t?"0px":t,t.indexOf("em")>-1&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),t.indexOf("pt")>-1&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px"); var e,n,r; return n=void 0,e=16,(r=f[t])?r:(r={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[{css_line_height_string:t}],r!==n?f[t]=r/e:(r=parseFloat(t))?f[t]=r/e:(r=t.match(/([\d\.]+)(px)/),3===r.length?f[t]=parseFloat(r[1])/e:f[t]=1)) },c=function(t){var e,n,r; return r=function(t){var e; return e=function(t){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(t,null):t.currentStyle?t.currentStyle:t.style }(t),function(t){return t=t.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase() }),e[t] } }(t),e={},n=void 0,e["font-family"]=h(r("font-family"))||"times",e["font-style"]=i[r("font-style")]||"normal",e["text-align"]=TextAlignMap[r("text-align")]||"left",n=o[r("font-weight")]||"normal","bold"===n&&("normal"===e["font-style"]?e["font-style"]=n:e["font-style"]=n+e["font-style"]),e["font-size"]=d(r("font-size"))||1,e["line-height"]=d(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",n="block"===e.display,e["margin-top"]=n&&d(r("margin-top"))||0,e["margin-bottom"]=n&&d(r("margin-bottom"))||0,e["padding-top"]=n&&d(r("padding-top"))||0,e["padding-bottom"]=n&&d(r("padding-bottom"))||0,e["margin-left"]=n&&d(r("margin-left"))||0,e["margin-right"]=n&&d(r("margin-right"))||0,e["padding-left"]=n&&d(r("padding-left"))||0,e["padding-right"]=n&&d(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e["float"]=s[r("cssFloat")]||"none",e.clear=a[r("clear")]||"none",e.color=r("color"),e },p=function(t,e,n){var r,i,o,s,a; if(o=!1,i=void 0,s=void 0,a=void 0,r=n["#"+t.id]){if("function"==typeof r){o=r(t,e) }else{for(i=0,s=r.length; !o&&i!==s; ){o=r[i](t,e),i++ }}}if(r=n[t.nodeName],!o&&r){if("function"==typeof r){o=r(t,e) }else{for(i=0,s=r.length; !o&&i!==s; ){o=r[i](t,e),i++ }}}return o },v=function(t,e){var n,r,i,o,s,a,c,u,l,h; for(n=[],r=[],i=0,h=t.rows[0].cells.length,u=t.clientWidth; h>i; ){l=t.rows[0].cells[i],r[i]={name:l.textContent.toLowerCase().replace(/\s+/g,""),prompt:l.textContent.replace(/\r?\n/g,""),width:l.clientWidth/u*e.pdf.internal.pageSize.width},i++ }for(i=1; iu; ){if(o=s[u],"object"==typeof o){if(r.executeWatchFunctions(o),1===o.nodeType&&"HEADER"===o.nodeName){var w=o,y=r.pdf.margins_doc.top; r.pdf.internal.events.subscribe("addPage",function(t){r.y=y,n(w,r,i),r.pdf.margins_doc.top=r.y+10,r.y+=10 },!1) }if(8===o.nodeType&&"#comment"===o.nodeName){~o.textContent.indexOf("ADD_PAGE")&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top) }else{if(1!==o.nodeType||b[o.nodeName]){if(3===o.nodeType){var k=o.nodeValue; if(o.nodeValue&&"LI"===o.parentNode.nodeName){if("OL"===o.parentNode.parentNode.nodeName){k=x+++". "+k }else{var C=a["font-size"]; offsetX=(3-0.75*C)*r.pdf.internal.scaleFactor,offsetY=0.75*C*r.pdf.internal.scaleFactor,radius=1.74*C/r.pdf.internal.scaleFactor,g=function(t,e){this.pdf.circle(t+offsetX,e+offsetY,radius,"FD") } }}o.ownerDocument.body.contains(o)&&r.addText(k,a) }else{"string"==typeof o&&r.addText(o,a) }}else{var E; if("IMG"===o.nodeName){var S=o.getAttribute("src"); E=m[r.pdf.sHashCode(S)||S] }if(E){r.pdf.internal.pageSize.height-r.pdf.margins_doc.bottomr.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(o)); var T=c(o),_=r.x,q=12/r.pdf.internal.scaleFactor,I=(T["margin-left"]+T["padding-left"])*q,P=(T["margin-right"]+T["padding-right"])*q,A=(T["margin-top"]+T["padding-top"])*q,O=(T["margin-bottom"]+T["padding-bottom"])*q; _+=void 0!==T["float"]&&"right"===T["float"]?r.settings.width-o.width-P:I,r.pdf.addImage(E,_,r.y+A,o.width,o.height),E=void 0,"right"===T["float"]||"left"===T["float"]?(r.watchFunctions.push(function(t,e,n,i){return r.y>=e?(r.x+=t,r.settings.width+=n,!0):i&&1===i.nodeType&&!b[i.nodeName]&&r.x+i.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width?(r.x+=t,r.y=e,r.settings.width+=n,!0):!1 }.bind(this,"left"===T["float"]?-o.width-I-P:0,r.y+o.height+A+O,o.width)),r.watchFunctions.push(function(t,e,n){return r.y0){i=i[0]; var o=e.pdf.internal.write,s=e.y; e.pdf.internal.write=function(){},n(i,e,r); var a=Math.ceil(e.y-s)+5; e.y=s,e.pdf.internal.write=o,e.pdf.margins_doc.bottom+=a; for(var c=function(t){var o=void 0!==t?t.pageNumber:1,s=e.y; e.y=e.pdf.internal.pageSize.height-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=a; for(var c=i.getElementsByTagName("span"),u=0; u-1&&(c[u].innerHTML=o),(" "+c[u].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1&&(c[u].innerHTML="###jsPDFVarTotalPages###") }n(i,e,r),e.pdf.margins_doc.bottom+=a,e.y=s },u=i.getElementsByTagName("span"),l=0; l-1&&e.pdf.internal.events.subscribe("htmlRenderingFinished",e.pdf.putTotalPages.bind(e.pdf,"###jsPDFVarTotalPages###"),!0) }e.pdf.internal.events.subscribe("addPage",c,!1),c(),b.FOOTER=1 }},y=function(t,e,r,i,o,s){if(!e){return !1 }"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(e=function(t){var e,n,r,i; return r="jsPDFhtmlText"+Date.now().toString()+(1000*Math.random()).toFixed(0),i="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",n=document.createElement("div"),n.style.cssText=i,n.innerHTML='