pelagia-portal/static/ref/Pelagia Marine Services _ Contact Us_files/archive.min.js.download

2677 lines
725 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0
(()=>{var Sl=Object.defineProperty,Dd=Object.defineProperties;var Md=Object.getOwnPropertyDescriptors;var hr=Object.getOwnPropertySymbols;var Tl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable;var Al=Math.pow,Cl=(t,i,r)=>i in t?Sl(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,si=(t,i)=>{for(var r in i||(i={}))Tl.call(i,r)&&Cl(t,r,i[r]);if(hr)for(var r of hr(i))El.call(i,r)&&Cl(t,r,i[r]);return t},Ni=(t,i)=>Dd(t,Md(i));var Ri=(t,i)=>{var r={};for(var l in t)Tl.call(t,l)&&i.indexOf(l)<0&&(r[l]=t[l]);if(t!=null&&hr)for(var l of hr(t))i.indexOf(l)<0&&El.call(t,l)&&(r[l]=t[l]);return r};var zi=(t,i)=>()=>(t&&(i=t(t=0)),i);var oo=(t,i)=>{for(var r in i)Sl(t,r,{get:i[r],enumerable:!0})};var ye=(t,i,r)=>new Promise((l,c)=>{var d=b=>{try{g(r.next(b))}catch(x){c(x)}},f=b=>{try{g(r.throw(b))}catch(x){c(x)}},g=b=>b.done?l(b.value):Promise.resolve(b.value).then(d,f);g((r=r.apply(t,i)).next())});var lg,hu,cg,hg,ug,dg,pg,fg,mg,gg,lu,cu,uu,Os=zi(()=>{lg=Object.create,hu=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,hg=Object.getOwnPropertyNames,ug=Object.getPrototypeOf,dg=Object.prototype.hasOwnProperty,pg=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),fg=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of hg(i))!dg.call(t,c)&&c!==r&&hu(t,c,{get:()=>i[c],enumerable:!(l=cg(i,c))||l.enumerable});return t},mg=(t,i,r)=>(r=t!=null?lg(ug(t)):{},fg(i||!t||!t.__esModule?hu(r,"default",{value:t,enumerable:!0}):r,t)),gg=pg(()=>{(function(){var t=function(r){return r.replace(/[^\-?0-9.]/g,"")},i=function(r,l){return r=parseFloat(r),l=parseFloat(l),r=isNaN(r)?0:r,l=isNaN(l)?0:l,r-l};Tablesort.extend("number",function(r){return r.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||r.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||r.match(/^[-+]?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(r,l){return r=t(r),l=t(l),i(l,r)})})()}),lu=mg(gg()),uu=(cu=lu.default)!=null?cu:lu});var du={};oo(du,{default:()=>uu});var pu=zi(()=>{Os();Os()});var vg,Rs,yg,bg,wg,_g,Pi,xg,Ns,kg,gu,Cg,Sg,Tg,Eg,Ag,$g,Dg,Mg,Ig,Pg,Og,Ng,vu,yu,Rg,fu,mu,zg,zs,Ls=zi(()=>{vg=Object.create,Rs=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,bg=Object.getOwnPropertyNames,wg=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty,Pi=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),xg=(t,i)=>{for(var r in i)Rs(t,r,{get:i[r],enumerable:!0})},Ns=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of bg(i))!_g.call(t,c)&&c!==r&&Rs(t,c,{get:()=>i[c],enumerable:!(l=yg(i,c))||l.enumerable});return t},kg=(t,i,r)=>(Ns(t,i,"default"),r&&Ns(r,i,"default")),gu=(t,i,r)=>(r=t!=null?vg(wg(t)):{},Ns(i||!t||!t.__esModule?Rs(r,"default",{value:t,enumerable:!0}):r,t)),Cg=Pi(()=>{+function(t){"use strict";function i(){var r=document.createElement("bootstrap"),l={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in l)if(r.style[c]!==void 0)return{end:l[c]};return!1}t.fn.emulateTransitionEnd=function(r){var l=!1,c=this;t(this).one("bsTransitionEnd",function(){l=!0});var d=function(){l||t(c).trigger(t.support.transition.end)};return setTimeout(d,r),this},t(function(){t.support.transition=i(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(r){if(t(r.target).is(this))return r.handleObj.handler.apply(this,arguments)}})})}(jQuery)}),Sg=Pi(()=>{+function(t){"use strict";var i='[data-dismiss="alert"]',r=function(d){t(d).on("click",i,this.close)};r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(d){var f=t(this),g=f.attr("data-target");g||(g=f.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,"")),g=g==="#"?[]:g;var b=t(document).find(g);if(d&&d.preventDefault(),b.length||(b=f.closest(".alert")),b.trigger(d=t.Event("close.bs.alert")),d.isDefaultPrevented())return;b.removeClass("in");function x(){b.detach().trigger("closed.bs.alert").remove()}t.support.transition&&b.hasClass("fade")?b.one("bsTransitionEnd",x).emulateTransitionEnd(r.TRANSITION_DURATION):x()};function l(d){return this.each(function(){var f=t(this),g=f.data("bs.alert");g||f.data("bs.alert",g=new r(this)),typeof d=="string"&&g[d].call(f)})}var c=t.fn.alert;t.fn.alert=l,t.fn.alert.Constructor=r,t.fn.alert.noConflict=function(){return t.fn.alert=c,this},t(document).on("click.bs.alert.data-api",i,r.prototype.close)}(jQuery)}),Tg=Pi(()=>{+function(t){"use strict";var i=function(c,d){this.$element=t(c),this.options=t.extend({},i.DEFAULTS,d),this.isLoading=!1};i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(c){var d="disabled",f=this.$element,g=f.is("input")?"val":"html",b=f.data();c+="Text",b.resetText==null&&f.data("resetText",f[g]()),setTimeout(t.proxy(function(){f[g](b[c]==null?this.options[c]:b[c]),c=="loadingText"?(this.isLoading=!0,f.addClass(d).attr(d,d).prop(d,!0)):this.isLoading&&(this.isLoading=!1,f.removeClass(d).removeAttr(d).prop(d,!1))},this),0)},i.prototype.toggle=function(){var c=!0,d=this.$element.closest('[data-toggle="buttons"]');if(d.length){var f=this.$element.find("input");f.prop("type")=="radio"?(f.prop("checked")&&(c=!1),d.find(".active").removeClass("active"),this.$element.addClass("active")):f.prop("type")=="checkbox"&&(f.prop("checked")!==this.$element.hasClass("active")&&(c=!1),this.$element.toggleClass("active")),f.prop("checked",this.$element.hasClass("active")),c&&f.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};function r(c){return this.each(function(){var d=t(this),f=d.data("bs.button"),g=typeof c=="object"&&c;f||d.data("bs.button",f=new i(this,g)),c=="toggle"?f.toggle():c&&f.setState(c)})}var l=t.fn.button;t.fn.button=r,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=l,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=t(c.target).closest(".btn");r.call(d,"toggle"),t(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(c){t(c.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(c.type))})}(jQuery)}),Eg=Pi(()=>{+function(t){"use strict";var i=function(d,f){this.$element=t(d),this.$indicators=this.$element.find(".carousel-indicators"),this.options=f,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.options.pause=="hover"&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(d){if(!/input|textarea/i.test(d.target.tagName)){switch(d.which){case 37:this.prev();break;case 39:this.next();break;default:return}d.preventDefault()}},i.prototype.cycle=function(d){return d||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(d){return this.$items=d.parent().children(".item"),this.$items.index(d||this.$active)},i.prototype.getItemForDirection=function(d,f){var g=this.getItemIndex(f),b=d=="prev"&&g===0||d=="next"&&g==this.$items.length-1;if(b&&!this.options.wrap)return f;var x=d=="prev"?-1:1,w=(g+x)%this.$items.length;return this.$items.eq(w)},i.prototype.to=function(d){var f=this,g=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(d>this.$items.length-1||d<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){f.to(d)}):g==d?this.pause().cycle():this.slide(d>g?"next":"prev",this.$items.eq(d))},i.prototype.pause=function(d){return d||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(d,f){var g=this.$element.find(".item.active"),b=f||this.getItemForDirection(d,g),x=this.interval,w=d=="next"?"left":"right",A=this;if(b.hasClass("active"))return this.sliding=!1;var M=b[0],O=t.Event("slide.bs.carousel",{relatedTarget:M,direction:w});if(this.$element.trigger(O),!O.isDefaultPrevented()){if(this.sliding=!0,x&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var E=t(this.$indicators.children()[this.getItemIndex(b)]);E&&E.addClass("active")}var U=t.Event("slid.bs.carousel",{relatedTarget:M,direction:w});return t.support.transition&&this.$element.hasClass("slide")?(b.addClass(d),typeof b=="object"&&b.length&&b[0].offsetWidth,g.addClass(w),b.addClass(w),g.one("bsTransitionEnd",function(){b.removeClass([d,w].join(" ")).addClass("active"),g.removeClass(["active",w].join(" ")),A.sliding=!1,setTimeout(function(){A.$element.trigger(U)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(g.removeClass("active"),b.addClass("active"),this.sliding=!1,this.$element.trigger(U)),x&&this.cycle(),this}};function r(d){return this.each(function(){var f=t(this),g=f.data("bs.carousel"),b=t.extend({},i.DEFAULTS,f.data(),typeof d=="object"&&d),x=typeof d=="string"?d:b.slide;g||f.data("bs.carousel",g=new i(this,b)),typeof d=="number"?g.to(d):x?g[x]():b.interval&&g.pause().cycle()})}var l=t.fn.carousel;t.fn.carousel=r,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=l,this};var c=function(d){var f=t(this),g=f.attr("href");g&&(g=g.replace(/.*(?=#[^\s]+$)/,""));var b=f.attr("data-target")||g,x=t(document).find(b);if(x.hasClass("carousel")){var w=t.extend({},x.data(),f.data()),A=f.attr("data-slide-to");A&&(w.interval=!1),r.call(x,w),A&&x.data("bs.carousel").to(A),d.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",c).on("click.bs.carousel.data-api","[data-slide-to]",c),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var d=t(this);r.call(d,d.data())})})}(jQuery)}),Ag=Pi(()=>{+function(t){"use strict";var i=function(d,f){this.$element=t(d),this.options=t.extend({},i.DEFAULTS,f),this.$trigger=t('[data-toggle="collapse"][href="#'+d.id+'"],[data-toggle="collapse"][data-target="#'+d.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var d=this.$element.hasClass("width");return d?"width":"height"},i.prototype.show=function(){if(!(this.transitioning||this.$element.hasClass("in"))){var d,f=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(f&&f.length&&(d=f.data("bs.collapse"),d&&d.transitioning))){var g=t.Event("show.bs.collapse");if(this.$element.trigger(g),!g.isDefaultPrevented()){f&&f.length&&(l.call(f,"hide"),d||f.data("bs.collapse",null));var b=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[b](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var x=function(){this.$element.removeClass("collapsing").addClass("collapse in")[b](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return x.call(this);var w=t.camelCase(["scroll",b].join("-"));this.$element.one("bsTransitionEnd",t.proxy(x,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[b](this.$element[0][w])}}}},i.prototype.hide=function(){if(!(this.transitioning||!this.$element.hasClass("in"))){var d=t.Event("hide.bs.collapse");if(this.$element.trigger(d),!d.isDefaultPrevented()){var f=this.dimension();this.$element[f](this.$element[f]())[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 g=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return g.call(this);this.$element[f](0).one("bsTransitionEnd",t.proxy(g,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(d,f){var g=t(f);this.addAriaAndCollapsedClass(r(g),g)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(d,f){var g=d.hasClass("in");d.attr("aria-expanded",g),f.toggleClass("collapsed",!g).attr("aria-expanded",g)};function r(d){var f,g=d.attr("data-target")||(f=d.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(g)}function l(d){return this.each(function(){var f=t(this),g=f.data("bs.collapse"),b=t.extend({},i.DEFAULTS,f.data(),typeof d=="object"&&d);!g&&b.toggle&&/show|hide/.test(d)&&(b.toggle=!1),g||f.data("bs.collapse",g=new i(this,b)),typeof d=="string"&&g[d]()})}var c=t.fn.collapse;t.fn.collapse=l,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=c,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var f=t(this);f.attr("data-target")||d.preventDefault();var g=r(f),b=g.data("bs.collapse"),x=b?"toggle":f.data();l.call(g,x)})}(jQuery)}),$g=Pi(()=>{+function(t){"use strict";var i=".dropdown-backdrop",r='[data-toggle="dropdown"]',l=function(b){t(b).on("click.bs.dropdown",this.toggle)};l.VERSION="3.4.1";function c(b){var x=b.attr("data-target");x||(x=b.attr("href"),x=x&&/#[A-Za-z]/.test(x)&&x.replace(/.*(?=#[^\s]*$)/,""));var w=x!=="#"?t(document).find(x):null;return w&&w.length?w:b.parent()}function d(b){b&&b.which===3||(t(i).remove(),t(r).each(function(){var x=t(this),w=c(x),A={relatedTarget:this};w.hasClass("open")&&(b&&b.type=="click"&&/input|textarea/i.test(b.target.tagName)&&t.contains(w[0],b.target)||(w.trigger(b=t.Event("hide.bs.dropdown",A)),!b.isDefaultPrevented()&&(x.attr("aria-expanded","false"),w.removeClass("open").trigger(t.Event("hidden.bs.dropdown",A)))))}))}l.prototype.toggle=function(b){var x=t(this);if(!x.is(".disabled, :disabled")){var w=c(x),A=w.hasClass("open");if(d(),!A){"ontouchstart"in document.documentElement&&!w.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",d);var M={relatedTarget:this};if(w.trigger(b=t.Event("show.bs.dropdown",M)),b.isDefaultPrevented())return;x.trigger("focus").attr("aria-expanded","true"),w.toggleClass("open").trigger(t.Event("shown.bs.dropdown",M))}return!1}},l.prototype.keydown=function(b){if(!(!/(38|40|27|32)/.test(b.which)||/input|textarea/i.test(b.target.tagName))){var x=t(this);if(b.preventDefault(),b.stopPropagation(),!x.is(".disabled, :disabled")){var w=c(x),A=w.hasClass("open");if(!A&&b.which!=27||A&&b.which==27)return b.which==27&&w.find(r).trigger("focus"),x.trigger("click");var M=" li:not(.disabled):visible a",O=w.find(".dropdown-menu"+M);if(O.length){var E=O.index(b.target);b.which==38&&E>0&&E--,b.which==40&&E<O.length-1&&E++,~E||(E=0),O.eq(E).trigger("focus")}}}};function f(b){return this.each(function(){var x=t(this),w=x.data("bs.dropdown");w||x.data("bs.dropdown",w=new l(this)),typeof b=="string"&&w[b].call(x)})}var g=t.fn.dropdown;t.fn.dropdown=f,t.fn.dropdown.Constructor=l,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=g,this},t(document).on("click.bs.dropdown.data-api",d).on("click.bs.dropdown.data-api",".dropdown form",function(b){b.stopPropagation()}).on("click.bs.dropdown.data-api",r,l.prototype.toggle).on("keydown.bs.dropdown.data-api",r,l.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",l.prototype.keydown)}(jQuery)}),Dg=Pi(()=>{+function(t){"use strict";var i=function(c,d){this.options=d,this.$body=t(document.body),this.$element=t(c),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(c){return this.isShown?this.hide():this.show(c)},i.prototype.show=function(c){var d=this,f=t.Event("show.bs.modal",{relatedTarget:c});this.$element.trigger(f),!(this.isShown||f.isDefaultPrevented())&&(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(g){t(g.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var g=t.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),g&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var b=t.Event("shown.bs.modal",{relatedTarget:c});g?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(b)}).emulateTransitionEnd(i.TRANSITION_DURATION):d.$element.trigger("focus").trigger(b)}))},i.prototype.hide=function(c){c&&c.preventDefault(),c=t.Event("hide.bs.modal"),this.$element.trigger(c),!(!this.isShown||c.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(c){document!==c.target&&this.$element[0]!==c.target&&!this.$element.has(c.target).length&&this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(c){c.which==27&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var c=this;this.$element.hide(),this.backdrop(function(){c.$body.removeClass("modal-open"),c.resetAdjustments(),c.resetScrollbar(),c.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(c){var d=this,f=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var g=t.support.transition&&f;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(x){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}x.target===x.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this)),g&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!c)return;g?this.$backdrop.one("bsTransitionEnd",c).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):c()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var b=function(){d.removeBackdrop(),c&&c()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):b()}else c&&c()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var c=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&c?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!c?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var c=window.innerWidth;if(!c){var d=document.documentElement.getBoundingClientRect();c=d.right-Math.abs(d.left)}this.bodyIsOverflowing=document.body.clientWidth<c,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var c=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var d=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",c+d),t(this.fixedContent).each(function(f,g){var b=g.style.paddingRight,x=t(g).css("padding-right");t(g).data("padding-right",b).css("padding-right",parseFloat(x)+d+"px")}))},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(c,d){var f=t(d).data("padding-right");t(d).removeData("padding-right"),d.style.paddingRight=f||""})},i.prototype.measureScrollbar=function(){var c=document.createElement("div");c.className="modal-scrollbar-measure",this.$body.append(c);var d=c.offsetWidth-c.clientWidth;return this.$body[0].removeChild(c),d};function r(c,d){return this.each(function(){var f=t(this),g=f.data("bs.modal"),b=t.extend({},i.DEFAULTS,f.data(),typeof c=="object"&&c);g||f.data("bs.modal",g=new i(this,b)),typeof c=="string"?g[c](d):b.show&&g.show(d)})}var l=t.fn.modal;t.fn.modal=r,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=l,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=t(this),f=d.attr("href"),g=d.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,""),b=t(document).find(g),x=b.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(f)&&f},b.data(),d.data());d.is("a")&&c.preventDefault(),b.one("show.bs.modal",function(w){w.isDefaultPrevented()||b.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),r.call(b,x,this)})}(jQuery)}),Mg=Pi(()=>{+function(t){"use strict";var i=["sanitize","whiteList","sanitizeFn"],r=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],l=/^aria-[\w-]*$/i,c={"*":["class","dir","id","lang","role",l],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},d=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,f=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function g(M,O){var E=M.nodeName.toLowerCase();if(t.inArray(E,O)!==-1)return t.inArray(E,r)!==-1?!!(M.nodeValue.match(d)||M.nodeValue.match(f)):!0;for(var U=t(O).filter(function(G,wt){return wt instanceof RegExp}),Y=0,ct=U.length;Y<ct;Y++)if(E.match(U[Y]))return!0;return!1}function b(M,O,E){if(M.length===0)return M;if(E&&typeof E=="function")return E(M);if(!document.implementation||!document.implementation.createHTMLDocument)return M;var U=document.implementation.createHTMLDocument("sanitization");U.body.innerHTML=M;for(var Y=t.map(O,function(y,C){return C}),ct=t(U.body).find("*"),G=0,wt=ct.length;G<wt;G++){var e=ct[G],n=e.nodeName.toLowerCase();if(t.inArray(n,Y)===-1){e.parentNode.removeChild(e);continue}for(var a=t.map(e.attributes,function(y){return y}),o=[].concat(O["*"]||[],O[n]||[]),h=0,p=a.length;h<p;h++)g(a[h],o)||e.removeAttribute(a[h].nodeName)}return U.body.innerHTML}var x=function(M,O){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",M,O)};x.VERSION="3.4.1",x.TRANSITION_DURATION=150,x.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:c},x.prototype.init=function(M,O,E){if(this.enabled=!0,this.type=M,this.$element=t(O),this.options=this.getOptions(E),this.$viewport=this.options.viewport&&t(document).find(t.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 U=this.options.trigger.split(" "),Y=U.length;Y--;){var ct=U[Y];if(ct=="click")this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if(ct!="manual"){var G=ct=="hover"?"mouseenter":"focusin",wt=ct=="hover"?"mouseleave":"focusout";this.$element.on(G+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(wt+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},x.prototype.getDefaults=function(){return x.DEFAULTS},x.prototype.getOptions=function(M){var O=this.$element.data();for(var E in O)O.hasOwnProperty(E)&&t.inArray(E,i)!==-1&&delete O[E];return M=t.extend({},this.getDefaults(),O,M),M.delay&&typeof M.delay=="number"&&(M.delay={show:M.delay,hide:M.delay}),M.sanitize&&(M.template=b(M.template,M.whiteList,M.sanitizeFn)),M},x.prototype.getDelegateOptions=function(){var M={},O=this.getDefaults();return this._options&&t.each(this._options,function(E,U){O[E]!=U&&(M[E]=U)}),M},x.prototype.enter=function(M){var O=M instanceof this.constructor?M:t(M.currentTarget).data("bs."+this.type);if(O||(O=new this.constructor(M.currentTarget,this.getDelegateOptions()),t(M.currentTarget).data("bs."+this.type,O)),M instanceof t.Event&&(O.inState[M.type=="focusin"?"focus":"hover"]=!0),O.tip().hasClass("in")||O.hoverState=="in"){O.hoverState="in";return}if(clearTimeout(O.timeout),O.hoverState="in",!O.options.delay||!O.options.delay.show)return O.show();O.timeout=setTimeout(function(){O.hoverState=="in"&&O.show()},O.options.delay.show)},x.prototype.isInStateTrue=function(){for(var M in this.inState)if(this.inState[M])return!0;return!1},x.prototype.leave=function(M){var O=M instanceof this.constructor?M:t(M.currentTarget).data("bs."+this.type);if(O||(O=new this.constructor(M.currentTarget,this.getDelegateOptions()),t(M.currentTarget).data("bs."+this.type,O)),M instanceof t.Event&&(O.inState[M.type=="focusout"?"focus":"hover"]=!1),!O.isInStateTrue()){if(clearTimeout(O.timeout),O.hoverState="out",!O.options.delay||!O.options.delay.hide)return O.hide();O.timeout=setTimeout(function(){O.hoverState=="out"&&O.hide()},O.options.delay.hide)}},x.prototype.show=function(){var M=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(M);var O=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(M.isDefaultPrevented()||!O)return;var E=this,U=this.tip(),Y=this.getUID(this.type);this.setContent(),U.attr("id",Y),this.$element.attr("aria-describedby",Y),this.options.animation&&U.addClass("fade");var ct=typeof this.options.placement=="function"?this.options.placement.call(this,U[0],this.$element[0]):this.options.placement,G=/\s?auto?\s?/i,wt=G.test(ct);wt&&(ct=ct.replace(G,"")||"top"),U.detach().css({top:0,left:0,display:"block"}).addClass(ct).data("bs."+this.type,this),this.options.container?U.appendTo(t(document).find(this.options.container)):U.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var e=this.getPosition(),n=U[0].offsetWidth,a=U[0].offsetHeight;if(wt){var o=ct,h=this.getPosition(this.$viewport);ct=ct=="bottom"&&e.bottom+a>h.bottom?"top":ct=="top"&&e.top-a<h.top?"bottom":ct=="right"&&e.right+n>h.width?"left":ct=="left"&&e.left-n<h.left?"right":ct,U.removeClass(o).addClass(ct)}var p=this.getCalculatedOffset(ct,e,n,a);this.applyPlacement(p,ct);var y=function(){var C=E.hoverState;E.$element.trigger("shown.bs."+E.type),E.hoverState=null,C=="out"&&E.leave(E)};t.support.transition&&this.$tip.hasClass("fade")?U.one("bsTransitionEnd",y).emulateTransitionEnd(x.TRANSITION_DURATION):y()}},x.prototype.applyPlacement=function(M,O){var E=this.tip(),U=E[0].offsetWidth,Y=E[0].offsetHeight,ct=parseInt(E.css("margin-top"),10),G=parseInt(E.css("margin-left"),10);isNaN(ct)&&(ct=0),isNaN(G)&&(G=0),M.top+=ct,M.left+=G,t.offset.setOffset(E[0],t.extend({using:function(p){E.css({top:Math.round(p.top),left:Math.round(p.left)})}},M),0),E.addClass("in");var wt=E[0].offsetWidth,e=E[0].offsetHeight;O=="top"&&e!=Y&&(M.top=M.top+Y-e);var n=this.getViewportAdjustedDelta(O,M,wt,e);n.left?M.left+=n.left:M.top+=n.top;var a=/top|bottom/.test(O),o=a?n.left*2-U+wt:n.top*2-Y+e,h=a?"offsetWidth":"offsetHeight";E.offset(M),this.replaceArrow(o,E[0][h],a)},x.prototype.replaceArrow=function(M,O,E){this.arrow().css(E?"left":"top",50*(1-M/O)+"%").css(E?"top":"left","")},x.prototype.setContent=function(){var M=this.tip(),O=this.getTitle();this.options.html?(this.options.sanitize&&(O=b(O,this.options.whiteList,this.options.sanitizeFn)),M.find(".tooltip-inner").html(O)):M.find(".tooltip-inner").text(O),M.removeClass("fade in top bottom left right")},x.prototype.hide=function(M){var O=this,E=t(this.$tip),U=t.Event("hide.bs."+this.type);function Y(){O.hoverState!="in"&&E.detach(),O.$element&&O.$element.removeAttr("aria-describedby").trigger("hidden.bs."+O.type),M&&M()}if(this.$element.trigger(U),!U.isDefaultPrevented())return E.removeClass("in"),t.support.transition&&E.hasClass("fade")?E.one("bsTransitionEnd",Y).emulateTransitionEnd(x.TRANSITION_DURATION):Y(),this.hoverState=null,this},x.prototype.fixTitle=function(){var M=this.$element;(M.attr("title")||typeof M.attr("data-original-title")!="string")&&M.attr("data-original-title",M.attr("title")||"").attr("title","")},x.prototype.hasContent=function(){return this.getTitle()},x.prototype.getPosition=function(M){M=M||this.$element;var O=M[0],E=O.tagName=="BODY",U=O.getBoundingClientRect();U.width==null&&(U=t.extend({},U,{width:U.right-U.left,height:U.bottom-U.top}));var Y=window.SVGElement&&O instanceof window.SVGElement,ct=E?{top:0,left:0}:Y?null:M.offset(),G={scroll:E?document.documentElement.scrollTop||document.body.scrollTop:M.scrollTop()},wt=E?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},U,G,wt,ct)},x.prototype.getCalculatedOffset=function(M,O,E,U){return M=="bottom"?{top:O.top+O.height,left:O.left+O.width/2-E/2}:M=="top"?{top:O.top-U,left:O.left+O.width/2-E/2}:M=="left"?{top:O.top+O.height/2-U/2,left:O.left-E}:{top:O.top+O.height/2-U/2,left:O.left+O.width}},x.prototype.getViewportAdjustedDelta=function(M,O,E,U){var Y={top:0,left:0};if(!this.$viewport)return Y;var ct=this.options.viewport&&this.options.viewport.padding||0,G=this.getPosition(this.$viewport);if(/right|left/.test(M)){var wt=O.top-ct-G.scroll,e=O.top+ct-G.scroll+U;wt<G.top?Y.top=G.top-wt:e>G.top+G.height&&(Y.top=G.top+G.height-e)}else{var n=O.left-ct,a=O.left+ct+E;n<G.left?Y.left=G.left-n:a>G.right&&(Y.left=G.left+G.width-a)}return Y},x.prototype.getTitle=function(){var M,O=this.$element,E=this.options;return M=O.attr("data-original-title")||(typeof E.title=="function"?E.title.call(O[0]):E.title),M},x.prototype.getUID=function(M){do M+=~~(Math.random()*1e6);while(document.getElementById(M));return M},x.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},x.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},x.prototype.enable=function(){this.enabled=!0},x.prototype.disable=function(){this.enabled=!1},x.prototype.toggleEnabled=function(){this.enabled=!this.enabled},x.prototype.toggle=function(M){var O=this;M&&(O=t(M.currentTarget).data("bs."+this.type),O||(O=new this.constructor(M.currentTarget,this.getDelegateOptions()),t(M.currentTarget).data("bs."+this.type,O))),M?(O.inState.click=!O.inState.click,O.isInStateTrue()?O.enter(O):O.leave(O)):O.tip().hasClass("in")?O.leave(O):O.enter(O)},x.prototype.destroy=function(){var M=this;clearTimeout(this.timeout),this.hide(function(){M.$element.off("."+M.type).removeData("bs."+M.type),M.$tip&&M.$tip.detach(),M.$tip=null,M.$arrow=null,M.$viewport=null,M.$element=null})},x.prototype.sanitizeHtml=function(M){return b(M,this.options.whiteList,this.options.sanitizeFn)};function w(M){return this.each(function(){var O=t(this),E=O.data("bs.tooltip"),U=typeof M=="object"&&M;!E&&/destroy|hide/.test(M)||(E||O.data("bs.tooltip",E=new x(this,U)),typeof M=="string"&&E[M]())})}var A=t.fn.tooltip;t.fn.tooltip=w,t.fn.tooltip.Constructor=x,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=A,this}}(jQuery)}),Ig=Pi(()=>{+function(t){"use strict";var i=function(c,d){this.init("popover",c,d)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.4.1",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var c=this.tip(),d=this.getTitle(),f=this.getContent();if(this.options.html){var g=typeof f;this.options.sanitize&&(d=this.sanitizeHtml(d),g==="string"&&(f=this.sanitizeHtml(f))),c.find(".popover-title").html(d),c.find(".popover-content").children().detach().end()[g==="string"?"html":"append"](f)}else c.find(".popover-title").text(d),c.find(".popover-content").children().detach().end().text(f);c.removeClass("fade top bottom left right in"),c.find(".popover-title").html()||c.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var c=this.$element,d=this.options;return c.attr("data-content")||(typeof d.content=="function"?d.content.call(c[0]):d.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};function r(c){return this.each(function(){var d=t(this),f=d.data("bs.popover"),g=typeof c=="object"&&c;!f&&/destroy|hide/.test(c)||(f||d.data("bs.popover",f=new i(this,g)),typeof c=="string"&&f[c]())})}var l=t.fn.popover;t.fn.popover=r,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=l,this}}(jQuery)}),Pg=Pi(()=>{+function(t){"use strict";function i(c,d){this.$body=t(document.body),this.$scrollElement=t(c).is(document.body)?t(window):t(c),this.options=t.extend({},i.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}i.VERSION="3.4.1",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var c=this,d="offset",f=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(d="position",f=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var g=t(this),b=g.data("target")||g.attr("href"),x=/^#./.test(b)&&t(b);return x&&x.length&&x.is(":visible")&&[[x[d]().top+f,b]]||null}).sort(function(g,b){return g[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},i.prototype.process=function(){var c=this.$scrollElement.scrollTop()+this.options.offset,d=this.getScrollHeight(),f=this.options.offset+d-this.$scrollElement.height(),g=this.offsets,b=this.targets,x=this.activeTarget,w;if(this.scrollHeight!=d&&this.refresh(),c>=f)return x!=(w=b[b.length-1])&&this.activate(w);if(x&&c<g[0])return this.activeTarget=null,this.clear();for(w=g.length;w--;)x!=b[w]&&c>=g[w]&&(g[w+1]===void 0||c<g[w+1])&&this.activate(b[w])},i.prototype.activate=function(c){this.activeTarget=c,this.clear();var d=this.selector+'[data-target="'+c+'"],'+this.selector+'[href="'+c+'"]',f=t(d).parents("li").addClass("active");f.parent(".dropdown-menu").length&&(f=f.closest("li.dropdown").addClass("active")),f.trigger("activate.bs.scrollspy")},i.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};function r(c){return this.each(function(){var d=t(this),f=d.data("bs.scrollspy"),g=typeof c=="object"&&c;f||d.data("bs.scrollspy",f=new i(this,g)),typeof c=="string"&&f[c]()})}var l=t.fn.scrollspy;t.fn.scrollspy=r,t.fn.scrollspy.Constructor=i,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=l,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var c=t(this);r.call(c,c.data())})})}(jQuery)}),Og=Pi(()=>{+function(t){"use strict";var i=function(d){this.element=t(d)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.show=function(){var d=this.element,f=d.closest("ul:not(.dropdown-menu)"),g=d.data("target");if(g||(g=d.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,"")),!d.parent("li").hasClass("active")){var b=f.find(".active:last a"),x=t.Event("hide.bs.tab",{relatedTarget:d[0]}),w=t.Event("show.bs.tab",{relatedTarget:b[0]});if(b.trigger(x),d.trigger(w),!(w.isDefaultPrevented()||x.isDefaultPrevented())){var A=t(document).find(g);this.activate(d.closest("li"),f),this.activate(A,A.parent(),function(){b.trigger({type:"hidden.bs.tab",relatedTarget:d[0]}),d.trigger({type:"shown.bs.tab",relatedTarget:b[0]})})}}},i.prototype.activate=function(d,f,g){var b=f.find("> .active"),x=g&&t.support.transition&&(b.length&&b.hasClass("fade")||!!f.find("> .fade").length);function w(){b.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),d.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),x?(d[0].offsetWidth,d.addClass("in")):d.removeClass("fade"),d.parent(".dropdown-menu").length&&d.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),g&&g()}b.length&&x?b.one("bsTransitionEnd",w).emulateTransitionEnd(i.TRANSITION_DURATION):w(),b.removeClass("in")};function r(d){return this.each(function(){var f=t(this),g=f.data("bs.tab");g||f.data("bs.tab",g=new i(this)),typeof d=="string"&&g[d]()})}var l=t.fn.tab;t.fn.tab=r,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=l,this};var c=function(d){d.preventDefault(),r.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',c).on("click.bs.tab.data-api",'[data-toggle="pill"]',c)}(jQuery)}),Ng=Pi(()=>{+function(t){"use strict";var i=function(c,d){this.options=t.extend({},i.DEFAULTS,d);var f=this.options.target===i.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=f.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(c),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.4.1",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(c,d,f,g){var b=this.$target.scrollTop(),x=this.$element.offset(),w=this.$target.height();if(f!=null&&this.affixed=="top")return b<f?"top":!1;if(this.affixed=="bottom")return f!=null?b+this.unpin<=x.top?!1:"bottom":b+w<=c-g?!1:"bottom";var A=this.affixed==null,M=A?b:x.top,O=A?w:d;return f!=null&&b<=f?"top":g!=null&&M+O>=c-g?"bottom":!1},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var c=this.$target.scrollTop(),d=this.$element.offset();return this.pinnedOffset=d.top-c},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=this.$element.height(),d=this.options.offset,f=d.top,g=d.bottom,b=Math.max(t(document).height(),t(document.body).height());typeof d!="object"&&(g=f=d),typeof f=="function"&&(f=d.top(this.$element)),typeof g=="function"&&(g=d.bottom(this.$element));var x=this.getState(b,c,f,g);if(this.affixed!=x){this.unpin!=null&&this.$element.css("top","");var w="affix"+(x?"-"+x:""),A=t.Event(w+".bs.affix");if(this.$element.trigger(A),A.isDefaultPrevented())return;this.affixed=x,this.unpin=x=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(w).trigger(w.replace("affix","affixed")+".bs.affix")}x=="bottom"&&this.$element.offset({top:b-c-g})}};function r(c){return this.each(function(){var d=t(this),f=d.data("bs.affix"),g=typeof c=="object"&&c;f||d.data("bs.affix",f=new i(this,g)),typeof c=="string"&&f[c]()})}var l=t.fn.affix;t.fn.affix=r,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=l,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var c=t(this),d=c.data();d.offset=d.offset||{},d.offsetBottom!=null&&(d.offset.bottom=d.offsetBottom),d.offsetTop!=null&&(d.offset.top=d.offsetTop),r.call(c,d)})})}(jQuery)}),vu=Pi(()=>{Cg(),Sg(),Tg(),Eg(),Ag(),$g(),Dg(),Mg(),Ig(),Pg(),Og(),Ng()}),yu={};xg(yu,{default:()=>zs});Rg=gu(vu());kg(yu,gu(vu()));fu=Rg,{default:mu}=fu,zg=Ri(fu,["default"]),zs=mu!==void 0?mu:zg;console.warn("[npm] %cdeprecated%c bootstrap@3.4.1: This version of Bootstrap is no longer supported. Please upgrade to the latest version.","color:red","")});var Hs={};oo(Hs,{default:()=>zs});var Bs=zi(()=>{Ls();Ls()});var Lg,Fs,Hg,Bg,jg,Fg,Wg,Ug,js,qg,_u,xu,ku,Vg,bu,wu,Yg,Ws,Us=zi(()=>{Lg=Object.create,Fs=Object.defineProperty,Hg=Object.getOwnPropertyDescriptor,Bg=Object.getOwnPropertyNames,jg=Object.getPrototypeOf,Fg=Object.prototype.hasOwnProperty,Wg=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Ug=(t,i)=>{for(var r in i)Fs(t,r,{get:i[r],enumerable:!0})},js=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Bg(i))!Fg.call(t,c)&&c!==r&&Fs(t,c,{get:()=>i[c],enumerable:!(l=Hg(i,c))||l.enumerable});return t},qg=(t,i,r)=>(js(t,i,"default"),r&&js(r,i,"default")),_u=(t,i,r)=>(r=t!=null?Lg(jg(t)):{},js(i||!t||!t.__esModule?Fs(r,"default",{value:t,enumerable:!0}):r,t)),xu=Wg(()=>{(function(t){t.color={},t.color.make=function(r,l,c,d){var f={};return f.r=r||0,f.g=l||0,f.b=c||0,f.a=d!=null?d:1,f.add=function(g,b){for(var x=0;x<g.length;++x)f[g.charAt(x)]+=b;return f.normalize()},f.scale=function(g,b){for(var x=0;x<g.length;++x)f[g.charAt(x)]*=b;return f.normalize()},f.toString=function(){return f.a>=1?"rgb("+[f.r,f.g,f.b].join(",")+")":"rgba("+[f.r,f.g,f.b,f.a].join(",")+")"},f.normalize=function(){function g(b,x,w){return x<b?b:x>w?w:x}return f.r=g(0,parseInt(f.r),255),f.g=g(0,parseInt(f.g),255),f.b=g(0,parseInt(f.b),255),f.a=g(0,f.a,1),f},f.clone=function(){return t.color.make(f.r,f.b,f.g,f.a)},f.normalize()},t.color.extract=function(r,l){var c;do{if(c=r.css(l).toLowerCase(),c!=""&&c!="transparent")break;r=r.parent()}while(r.length&&!t.nodeName(r.get(0),"body"));return c=="rgba(0, 0, 0, 0)"&&(c="transparent"),t.color.parse(c)},t.color.parse=function(r){var l,c=t.color.make;if(l=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(r))return c(parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10));if(l=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(r))return c(parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10),parseFloat(l[4]));if(l=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(r))return c(parseFloat(l[1])*2.55,parseFloat(l[2])*2.55,parseFloat(l[3])*2.55);if(l=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(r))return c(parseFloat(l[1])*2.55,parseFloat(l[2])*2.55,parseFloat(l[3])*2.55,parseFloat(l[4]));if(l=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(r))return c(parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16));if(l=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(r))return c(parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16));var d=t.trim(r).toLowerCase();return d=="transparent"?c(255,255,255,0):(l=i[d]||[0,0,0],c(l[0],l[1],l[2]))};var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery),function(t){var i=Object.prototype.hasOwnProperty;t.fn.detach||(t.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})});function r(d,f){var g=f.children("."+d)[0];if(g==null&&(g=document.createElement("canvas"),g.className=d,t(g).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(f),!g.getContext))if(window.G_vmlCanvasManager)g=window.G_vmlCanvasManager.initElement(g);else throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");this.element=g;var b=this.context=g.getContext("2d"),x=window.devicePixelRatio||1,w=b.webkitBackingStorePixelRatio||b.mozBackingStorePixelRatio||b.msBackingStorePixelRatio||b.oBackingStorePixelRatio||b.backingStorePixelRatio||1;this.pixelRatio=x/w,this.resize(f.width(),f.height()),this.textContainer=null,this.text={},this._textCache={}}r.prototype.resize=function(d,f){if(d<=0||f<=0)throw new Error("Invalid dimensions for plot, width = "+d+", height = "+f);var g=this.element,b=this.context,x=this.pixelRatio;this.width!=d&&(g.width=d*x,g.style.width=d+"px",this.width=d),this.height!=f&&(g.height=f*x,g.style.height=f+"px",this.height=f),b.restore(),b.save(),b.scale(x,x)},r.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},r.prototype.render=function(){var d=this._textCache;for(var f in d)if(i.call(d,f)){var g=this.getTextLayer(f),b=d[f];g.hide();for(var x in b)if(i.call(b,x)){var w=b[x];for(var A in w)if(i.call(w,A)){for(var M=w[A].positions,O=0,E;E=M[O];O++)E.active?E.rendered||(g.append(E.element),E.rendered=!0):(M.splice(O--,1),E.rendered&&E.element.detach());M.length==0&&delete w[A]}}g.show()}},r.prototype.getTextLayer=function(d){var f=this.text[d];return f==null&&(this.textContainer==null&&(this.textContainer=t("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),f=this.text[d]=t("<div></div>").addClass(d).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),f},r.prototype.getTextInfo=function(d,f,g,b,x){var w,A,M,O;if(f=""+f,typeof g=="object"?w=g.style+" "+g.variant+" "+g.weight+" "+g.size+"px/"+g.lineHeight+"px "+g.family:w=g,A=this._textCache[d],A==null&&(A=this._textCache[d]={}),M=A[w],M==null&&(M=A[w]={}),O=M[f],O==null){var E=t("<div></div>").html(f).css({position:"absolute","max-width":x,top:-9999}).appendTo(this.getTextLayer(d));typeof g=="object"?E.css({font:w,color:g.color}):typeof g=="string"&&E.addClass(g),O=M[f]={width:E.outerWidth(!0),height:E.outerHeight(!0),element:E,positions:[]},E.detach()}return O},r.prototype.addText=function(d,f,g,b,x,w,A,M,O){var E=this.getTextInfo(d,b,x,w,A),U=E.positions;M=="center"?f-=E.width/2:M=="right"&&(f-=E.width),O=="middle"?g-=E.height/2:O=="bottom"&&(g-=E.height);for(var Y=0,ct;ct=U[Y];Y++)if(ct.x==f&&ct.y==g){ct.active=!0;return}ct={active:!0,rendered:!1,element:U.length?E.element.clone():E.element,x:f,y:g},U.push(ct),ct.element.css({top:Math.round(g),left:Math.round(f),"text-align":M})},r.prototype.removeText=function(d,f,g,b,x,w){if(b==null){var A=this._textCache[d];if(A!=null){for(var M in A)if(i.call(A,M)){var O=A[M];for(var E in O)if(i.call(O,E))for(var U=O[E].positions,Y=0,ct;ct=U[Y];Y++)ct.active=!1}}}else for(var U=this.getTextInfo(d,b,x,w).positions,Y=0,ct;ct=U[Y];Y++)ct.x==f&&ct.y==g&&(ct.active=!1)};function l(d,f,g,b){var x=[],w={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:16.666666666666668},hooks:{}},A=null,M=null,O=null,E=null,U=null,Y=[],ct=[],G={left:0,right:0,top:0,bottom:0},wt=0,e=0,n={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},a=this;a.setData=y,a.setupGrid=$t,a.draw=Vt,a.getPlaceholder=function(){return d},a.getCanvas=function(){return A.element},a.getPlotOffset=function(){return G},a.width=function(){return wt},a.height=function(){return e},a.offset=function(){var S=O.offset();return S.left+=G.left,S.top+=G.top,S},a.getData=function(){return x},a.getAxes=function(){var S={},z;return t.each(Y.concat(ct),function(R,Q){Q&&(S[Q.direction+(Q.n!=1?Q.n:"")+"axis"]=Q)}),S},a.getXAxes=function(){return Y},a.getYAxes=function(){return ct},a.c2p=L,a.p2c=J,a.getOptions=function(){return w},a.highlight=ei,a.unhighlight=ni,a.triggerRedrawOverlay=vi,a.pointOffset=function(S){return{left:parseInt(Y[D(S,"x")-1].p2c(+S.x)+G.left,10),top:parseInt(ct[D(S,"y")-1].p2c(+S.y)+G.top,10)}},a.shutdown=ot,a.destroy=function(){ot(),d.removeData("plot").empty(),x=[],w=null,A=null,M=null,O=null,E=null,U=null,Y=[],ct=[],n=null,_e=[],a=null},a.resize=function(){var S=d.width(),z=d.height();A.resize(S,z),M.resize(S,z)},a.hooks=n,h(a),p(g),N(),y(f),$t(),Vt(),tt();function o(S,z){z=[a].concat(z);for(var R=0;R<S.length;++R)S[R].apply(this,z)}function h(){for(var S={Canvas:r},z=0;z<b.length;++z){var R=b[z];R.init(a,S),R.options&&t.extend(!0,w,R.options)}}function p(S){t.extend(!0,w,S),S&&S.colors&&(w.colors=S.colors),w.xaxis.color==null&&(w.xaxis.color=t.color.parse(w.grid.color).scale("a",.22).toString()),w.yaxis.color==null&&(w.yaxis.color=t.color.parse(w.grid.color).scale("a",.22).toString()),w.xaxis.tickColor==null&&(w.xaxis.tickColor=w.grid.tickColor||w.xaxis.color),w.yaxis.tickColor==null&&(w.yaxis.tickColor=w.grid.tickColor||w.yaxis.color),w.grid.borderColor==null&&(w.grid.borderColor=w.grid.color),w.grid.tickColor==null&&(w.grid.tickColor=t.color.parse(w.grid.color).scale("a",.22).toString());var z,R,Q,ut=d.css("font-size"),ft=ut?+ut.replace("px",""):13,lt={style:d.css("font-style"),size:Math.round(.8*ft),variant:d.css("font-variant"),weight:d.css("font-weight"),family:d.css("font-family")};for(Q=w.xaxes.length||1,z=0;z<Q;++z)R=w.xaxes[z],R&&!R.tickColor&&(R.tickColor=R.color),R=t.extend(!0,{},w.xaxis,R),w.xaxes[z]=R,R.font&&(R.font=t.extend({},lt,R.font),R.font.color||(R.font.color=R.color),R.font.lineHeight||(R.font.lineHeight=Math.round(R.font.size*1.15)));for(Q=w.yaxes.length||1,z=0;z<Q;++z)R=w.yaxes[z],R&&!R.tickColor&&(R.tickColor=R.color),R=t.extend(!0,{},w.yaxis,R),w.yaxes[z]=R,R.font&&(R.font=t.extend({},lt,R.font),R.font.color||(R.font.color=R.color),R.font.lineHeight||(R.font.lineHeight=Math.round(R.font.size*1.15)));for(w.xaxis.noTicks&&w.xaxis.ticks==null&&(w.xaxis.ticks=w.xaxis.noTicks),w.yaxis.noTicks&&w.yaxis.ticks==null&&(w.yaxis.ticks=w.yaxis.noTicks),w.x2axis&&(w.xaxes[1]=t.extend(!0,{},w.xaxis,w.x2axis),w.xaxes[1].position="top",w.x2axis.min==null&&(w.xaxes[1].min=null),w.x2axis.max==null&&(w.xaxes[1].max=null)),w.y2axis&&(w.yaxes[1]=t.extend(!0,{},w.yaxis,w.y2axis),w.yaxes[1].position="right",w.y2axis.min==null&&(w.yaxes[1].min=null),w.y2axis.max==null&&(w.yaxes[1].max=null)),w.grid.coloredAreas&&(w.grid.markings=w.grid.coloredAreas),w.grid.coloredAreasColor&&(w.grid.markingsColor=w.grid.coloredAreasColor),w.lines&&t.extend(!0,w.series.lines,w.lines),w.points&&t.extend(!0,w.series.points,w.points),w.bars&&t.extend(!0,w.series.bars,w.bars),w.shadowSize!=null&&(w.series.shadowSize=w.shadowSize),w.highlightColor!=null&&(w.series.highlightColor=w.highlightColor),z=0;z<w.xaxes.length;++z)dt(Y,z+1).options=w.xaxes[z];for(z=0;z<w.yaxes.length;++z)dt(ct,z+1).options=w.yaxes[z];for(var rt in n)w.hooks[rt]&&w.hooks[rt].length&&(n[rt]=n[rt].concat(w.hooks[rt]));o(n.processOptions,[w])}function y(S){x=C(S),Et(),V()}function C(S){for(var z=[],R=0;R<S.length;++R){var Q=t.extend(!0,{},w.series);S[R].data!=null?(Q.data=S[R].data,delete S[R].data,t.extend(!0,Q,S[R]),S[R].data=Q.data):Q.data=S[R],z.push(Q)}return z}function D(S,z){var R=S[z+"axis"];return typeof R=="object"&&(R=R.n),typeof R!="number"&&(R=1),R}function P(){return t.grep(Y.concat(ct),function(S){return S})}function L(S){var z={},R,Q;for(R=0;R<Y.length;++R)Q=Y[R],Q&&Q.used&&(z["x"+Q.n]=Q.c2p(S.left));for(R=0;R<ct.length;++R)Q=ct[R],Q&&Q.used&&(z["y"+Q.n]=Q.c2p(S.top));return z.x1!==void 0&&(z.x=z.x1),z.y1!==void 0&&(z.y=z.y1),z}function J(S){var z={},R,Q,ut;for(R=0;R<Y.length;++R)if(Q=Y[R],Q&&Q.used&&(ut="x"+Q.n,S[ut]==null&&Q.n==1&&(ut="x"),S[ut]!=null)){z.left=Q.p2c(S[ut]);break}for(R=0;R<ct.length;++R)if(Q=ct[R],Q&&Q.used&&(ut="y"+Q.n,S[ut]==null&&Q.n==1&&(ut="y"),S[ut]!=null)){z.top=Q.p2c(S[ut]);break}return z}function dt(S,z){return S[z-1]||(S[z-1]={n:z,direction:S==Y?"x":"y",options:t.extend(!0,{},S==Y?w.xaxis:w.yaxis)}),S[z-1]}function Et(){var S=x.length,z=-1,R;for(R=0;R<x.length;++R){var Q=x[R].color;Q!=null&&(S--,typeof Q=="number"&&Q>z&&(z=Q))}S<=z&&(S=z+1);var ut,ft=[],lt=w.colors,rt=lt.length,et=0;for(R=0;R<S;R++)ut=t.color.parse(lt[R%rt]||"#666"),R%rt==0&&R&&(et>=0?et<.5?et=-et-.2:et=0:et=-et),ft[R]=ut.scale("rgb",1+et);var vt=0,_t;for(R=0;R<x.length;++R){if(_t=x[R],_t.color==null?(_t.color=ft[vt].toString(),++vt):typeof _t.color=="number"&&(_t.color=ft[_t.color].toString()),_t.lines.show==null){var Mt,Yt=!0;for(Mt in _t)if(_t[Mt]&&_t[Mt].show){Yt=!1;break}Yt&&(_t.lines.show=!0)}_t.lines.zero==null&&(_t.lines.zero=!!_t.lines.fill),_t.xaxis=dt(Y,D(_t,"x")),_t.yaxis=dt(ct,D(_t,"y"))}}function V(){var S=Number.POSITIVE_INFINITY,z=Number.NEGATIVE_INFINITY,R=Number.MAX_VALUE,Q,ut,ft,lt,rt,et,vt,_t,Mt,Yt,kt,Dt,Ft,Ut,Rt,Ct;function St(Lt,At,me){At<Lt.datamin&&At!=-R&&(Lt.datamin=At),me>Lt.datamax&&me!=R&&(Lt.datamax=me)}for(t.each(P(),function(Lt,At){At.datamin=S,At.datamax=z,At.used=!1}),Q=0;Q<x.length;++Q)et=x[Q],et.datapoints={points:[]},o(n.processRawData,[et,et.data,et.datapoints]);for(Q=0;Q<x.length;++Q){if(et=x[Q],Rt=et.data,Ct=et.datapoints.format,!Ct){if(Ct=[],Ct.push({x:!0,number:!0,required:!0}),Ct.push({y:!0,number:!0,required:!0}),et.bars.show||et.lines.show&&et.lines.fill){var Bt=!!(et.bars.show&&et.bars.zero||et.lines.show&&et.lines.zero);Ct.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:Bt}),et.bars.horizontal&&(delete Ct[Ct.length-1].y,Ct[Ct.length-1].x=!0)}et.datapoints.format=Ct}if(et.datapoints.pointsize==null){et.datapoints.pointsize=Ct.length,_t=et.datapoints.pointsize,vt=et.datapoints.points;var oe=et.lines.show&&et.lines.steps;for(et.xaxis.used=et.yaxis.used=!0,ut=ft=0;ut<Rt.length;++ut,ft+=_t){Ut=Rt[ut];var he=Ut==null;if(!he)for(lt=0;lt<_t;++lt)Dt=Ut[lt],Ft=Ct[lt],Ft&&(Ft.number&&Dt!=null&&(Dt=+Dt,isNaN(Dt)?Dt=null:Dt==1/0?Dt=R:Dt==-1/0&&(Dt=-R)),Dt==null&&(Ft.required&&(he=!0),Ft.defaultValue!=null&&(Dt=Ft.defaultValue))),vt[ft+lt]=Dt;if(he)for(lt=0;lt<_t;++lt)Dt=vt[ft+lt],Dt!=null&&(Ft=Ct[lt],Ft.autoscale!==!1&&(Ft.x&&St(et.xaxis,Dt,Dt),Ft.y&&St(et.yaxis,Dt,Dt))),vt[ft+lt]=null;else if(oe&&ft>0&&vt[ft-_t]!=null&&vt[ft-_t]!=vt[ft]&&vt[ft-_t+1]!=vt[ft+1]){for(lt=0;lt<_t;++lt)vt[ft+_t+lt]=vt[ft+lt];vt[ft+1]=vt[ft-_t+1],ft+=_t}}}}for(Q=0;Q<x.length;++Q)et=x[Q],o(n.processDatapoints,[et,et.datapoints]);for(Q=0;Q<x.length;++Q){et=x[Q],vt=et.datapoints.points,_t=et.datapoints.pointsize,Ct=et.datapoints.format;var Ue=S,ri=S,ci=z,pn=z;for(ut=0;ut<vt.length;ut+=_t)if(vt[ut]!=null)for(lt=0;lt<_t;++lt)Dt=vt[ut+lt],Ft=Ct[lt],!(!Ft||Ft.autoscale===!1||Dt==R||Dt==-R)&&(Ft.x&&(Dt<Ue&&(Ue=Dt),Dt>ci&&(ci=Dt)),Ft.y&&(Dt<ri&&(ri=Dt),Dt>pn&&(pn=Dt)));if(et.bars.show){var H;switch(et.bars.align){case"left":H=0;break;case"right":H=-et.bars.barWidth;break;default:H=-et.bars.barWidth/2}et.bars.horizontal?(ri+=H,pn+=H+et.bars.barWidth):(Ue+=H,ci+=H+et.bars.barWidth)}St(et.xaxis,Ue,ci),St(et.yaxis,ri,pn)}t.each(P(),function(Lt,At){At.datamin==S&&(At.datamin=null),At.datamax==z&&(At.datamax=null)})}function N(){d.css("padding",0).children().filter(function(){return!t(this).hasClass("flot-overlay")&&!t(this).hasClass("flot-base")}).remove(),d.css("position")=="static"&&d.css("position","relative"),A=new r("flot-base",d),M=new r("flot-overlay",d),E=A.context,U=M.context,O=t(M.element).unbind();var S=d.data("plot");S&&(S.shutdown(),M.clear()),d.data("plot",a)}function tt(){w.grid.hoverable&&(O.mousemove(Le),O.bind("mouseleave",Fi)),w.grid.clickable&&O.click(gi),o(n.bindEvents,[O])}function ot(){Ce&&clearTimeout(Ce),O.unbind("mousemove",Le),O.unbind("mouseleave",Fi),O.unbind("click",gi),o(n.shutdown,[O])}function X(S){function z(lt){return lt}var R,Q,ut=S.options.transform||z,ft=S.options.inverseTransform;S.direction=="x"?(R=S.scale=wt/Math.abs(ut(S.max)-ut(S.min)),Q=Math.min(ut(S.max),ut(S.min))):(R=S.scale=e/Math.abs(ut(S.max)-ut(S.min)),R=-R,Q=Math.max(ut(S.max),ut(S.min))),ut==z?S.p2c=function(lt){return(lt-Q)*R}:S.p2c=function(lt){return(ut(lt)-Q)*R},ft?S.c2p=function(lt){return ft(Q+lt/R)}:S.c2p=function(lt){return Q+lt/R}}function K(S){for(var z=S.options,R=S.ticks||[],Q=z.labelWidth||0,ut=z.labelHeight||0,ft=Q||(S.direction=="x"?Math.floor(A.width/(R.length||1)):null),lt=S.direction+"Axis "+S.direction+S.n+"Axis",rt="flot-"+S.direction+"-axis flot-"+S.direction+S.n+"-axis "+lt,et=z.font||"flot-tick-label tickLabel",vt=0;vt<R.length;++vt){var _t=R[vt];if(_t.label){var Mt=A.getTextInfo(rt,_t.label,et,null,ft);Q=Math.max(Q,Mt.width),ut=Math.max(ut,Mt.height)}}S.labelWidth=z.labelWidth||Q,S.labelHeight=z.labelHeight||ut}function at(S){var z=S.labelWidth,R=S.labelHeight,Q=S.options.position,ut=S.direction==="x",ft=S.options.tickLength,lt=w.grid.axisMargin,rt=w.grid.labelMargin,et=!0,vt=!0,_t=!0,Mt=!1;t.each(ut?Y:ct,function(Yt,kt){kt&&(kt.show||kt.reserveSpace)&&(kt===S?Mt=!0:kt.options.position===Q&&(Mt?vt=!1:et=!1),Mt||(_t=!1))}),vt&&(lt=0),ft==null&&(ft=_t?"full":5),isNaN(+ft)||(rt+=+ft),ut?(R+=rt,Q=="bottom"?(G.bottom+=R+lt,S.box={top:A.height-G.bottom,height:R}):(S.box={top:G.top+lt,height:R},G.top+=R+lt)):(z+=rt,Q=="left"?(S.box={left:G.left+lt,width:z},G.left+=z+lt):(G.right+=z+lt,S.box={left:A.width-G.right,width:z})),S.position=Q,S.tickLength=ft,S.box.padding=rt,S.innermost=et}function st(S){S.direction=="x"?(S.box.left=G.left-S.labelWidth/2,S.box.width=A.width-G.left-G.right+S.labelWidth):(S.box.top=G.top-S.labelHeight/2,S.box.height=A.height-G.bottom-G.top+S.labelHeight)}function bt(){var S=w.grid.minBorderMargin,z,R;if(S==null)for(S=0,R=0;R<x.length;++R)S=Math.max(S,2*(x[R].points.radius+x[R].points.lineWidth/2));var Q={left:S,right:S,top:S,bottom:S};t.each(P(),function(ut,ft){ft.reserveSpace&&ft.ticks&&ft.ticks.length&&(ft.direction==="x"?(Q.left=Math.max(Q.left,ft.labelWidth/2),Q.right=Math.max(Q.right,ft.labelWidth/2)):(Q.bottom=Math.max(Q.bottom,ft.labelHeight/2),Q.top=Math.max(Q.top,ft.labelHeight/2)))}),G.left=Math.ceil(Math.max(Q.left,G.left)),G.right=Math.ceil(Math.max(Q.right,G.right)),G.top=Math.ceil(Math.max(Q.top,G.top)),G.bottom=Math.ceil(Math.max(Q.bottom,G.bottom))}function $t(){var S,z=P(),R=w.grid.show;for(var Q in G){var ut=w.grid.margin||0;G[Q]=typeof ut=="number"?ut:ut[Q]||0}o(n.processOffset,[G]);for(var Q in G)typeof w.grid.borderWidth=="object"?G[Q]+=R?w.grid.borderWidth[Q]:0:G[Q]+=R?w.grid.borderWidth:0;if(t.each(z,function(lt,rt){var et=rt.options;rt.show=et.show==null?rt.used:et.show,rt.reserveSpace=et.reserveSpace==null?rt.show:et.reserveSpace,Ht(rt)}),R){var ft=t.grep(z,function(lt){return lt.show||lt.reserveSpace});for(t.each(ft,function(lt,rt){Zt(rt),qt(rt),Kt(rt,rt.ticks),K(rt)}),S=ft.length-1;S>=0;--S)at(ft[S]);bt(),t.each(ft,function(lt,rt){st(rt)})}wt=A.width-G.left-G.right,e=A.height-G.bottom-G.top,t.each(z,function(lt,rt){X(rt)}),R&&Ze(),li()}function Ht(S){var z=S.options,R=+(z.min!=null?z.min:S.datamin),Q=+(z.max!=null?z.max:S.datamax),ut=Q-R;if(ut==0){var ft=Q==0?1:.01;z.min==null&&(R-=ft),(z.max==null||z.min!=null)&&(Q+=ft)}else{var lt=z.autoscaleMargin;lt!=null&&(z.min==null&&(R-=ut*lt,R<0&&S.datamin!=null&&S.datamin>=0&&(R=0)),z.max==null&&(Q+=ut*lt,Q>0&&S.datamax!=null&&S.datamax<=0&&(Q=0)))}S.min=R,S.max=Q}function Zt(S){var z=S.options,R;typeof z.ticks=="number"&&z.ticks>0?R=z.ticks:R=.3*Math.sqrt(S.direction=="x"?A.width:A.height);var Q=(S.max-S.min)/R,ut=-Math.floor(Math.log(Q)/Math.LN10),ft=z.tickDecimals;ft!=null&&ut>ft&&(ut=ft);var lt=Math.pow(10,-ut),rt=Q/lt,et;if(rt<1.5?et=1:rt<3?(et=2,rt>2.25&&(ft==null||ut+1<=ft)&&(et=2.5,++ut)):rt<7.5?et=5:et=10,et*=lt,z.minTickSize!=null&&et<z.minTickSize&&(et=z.minTickSize),S.delta=Q,S.tickDecimals=Math.max(0,ft!=null?ft:ut),S.tickSize=z.tickSize||et,z.mode=="time"&&!S.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(S.tickGenerator||(S.tickGenerator=function(kt){var Dt=[],Ft=c(kt.min,kt.tickSize),Ut=0,Rt=Number.NaN,Ct;do Ct=Rt,Rt=Ft+Ut*kt.tickSize,Dt.push(Rt),++Ut;while(Rt<kt.max&&Rt!=Ct);return Dt},S.tickFormatter=function(kt,Dt){var Ft=Dt.tickDecimals?Math.pow(10,Dt.tickDecimals):1,Ut=""+Math.round(kt*Ft)/Ft;if(Dt.tickDecimals!=null){var Rt=Ut.indexOf("."),Ct=Rt==-1?0:Ut.length-Rt-1;if(Ct<Dt.tickDecimals)return(Ct?Ut:Ut+".")+(""+Ft).substr(1,Dt.tickDecimals-Ct)}return Ut}),t.isFunction(z.tickFormatter)&&(S.tickFormatter=function(kt,Dt){return""+z.tickFormatter(kt,Dt)}),z.alignTicksWithAxis!=null){var vt=(S.direction=="x"?Y:ct)[z.alignTicksWithAxis-1];if(vt&&vt.used&&vt!=S){var _t=S.tickGenerator(S);if(_t.length>0&&(z.min==null&&(S.min=Math.min(S.min,_t[0])),z.max==null&&_t.length>1&&(S.max=Math.max(S.max,_t[_t.length-1]))),S.tickGenerator=function(kt){var Dt=[],Ft,Ut;for(Ut=0;Ut<vt.ticks.length;++Ut)Ft=(vt.ticks[Ut].v-vt.min)/(vt.max-vt.min),Ft=kt.min+Ft*(kt.max-kt.min),Dt.push(Ft);return Dt},!S.mode&&z.tickDecimals==null){var Mt=Math.max(0,-Math.floor(Math.log(S.delta)/Math.LN10)+1),Yt=S.tickGenerator(S);Yt.length>1&&/\..*0$/.test((Yt[1]-Yt[0]).toFixed(Mt))||(S.tickDecimals=Mt)}}}}function qt(S){var z=S.options.ticks,R=[];z==null||typeof z=="number"&&z>0?R=S.tickGenerator(S):z&&(t.isFunction(z)?R=z(S):R=z);var Q,ut;for(S.ticks=[],Q=0;Q<R.length;++Q){var ft=null,lt=R[Q];typeof lt=="object"?(ut=+lt[0],lt.length>1&&(ft=lt[1])):ut=+lt,ft==null&&(ft=S.tickFormatter(ut,S)),isNaN(ut)||S.ticks.push({v:ut,label:ft})}}function Kt(S,z){S.options.autoscaleMargin&&z.length>0&&(S.options.min==null&&(S.min=Math.min(S.min,z[0].v)),S.options.max==null&&z.length>1&&(S.max=Math.max(S.max,z[z.length-1].v)))}function Vt(){A.clear(),o(n.drawBackground,[E]);var S=w.grid;S.show&&S.backgroundColor&&ge(),S.show&&!S.aboveData&&Ne();for(var z=0;z<x.length;++z)o(n.drawSeries,[E,x[z]]),Gt(x[z]);o(n.draw,[E]),S.show&&S.aboveData&&Ne(),A.render(),vi()}function we(S,z){for(var R,Q,ut,ft,lt=P(),rt=0;rt<lt.length;++rt)if(R=lt[rt],R.direction==z&&(ft=z+R.n+"axis",!S[ft]&&R.n==1&&(ft=z+"axis"),S[ft])){Q=S[ft].from,ut=S[ft].to;break}if(S[ft]||(R=z=="x"?Y[0]:ct[0],Q=S[z+"1"],ut=S[z+"2"]),Q!=null&&ut!=null&&Q>ut){var et=Q;Q=ut,ut=et}return{from:Q,to:ut,axis:R}}function ge(){E.save(),E.translate(G.left,G.top),E.fillStyle=fe(w.grid.backgroundColor,e,0,"rgba(255, 255, 255, 0)"),E.fillRect(0,0,wt,e),E.restore()}function Ne(){var S,z,R,Q;E.save(),E.translate(G.left,G.top);var ut=w.grid.markings;if(ut)for(t.isFunction(ut)&&(z=a.getAxes(),z.xmin=z.xaxis.min,z.xmax=z.xaxis.max,z.ymin=z.yaxis.min,z.ymax=z.yaxis.max,ut=ut(z)),S=0;S<ut.length;++S){var ft=ut[S],lt=we(ft,"x"),rt=we(ft,"y");if(lt.from==null&&(lt.from=lt.axis.min),lt.to==null&&(lt.to=lt.axis.max),rt.from==null&&(rt.from=rt.axis.min),rt.to==null&&(rt.to=rt.axis.max),!(lt.to<lt.axis.min||lt.from>lt.axis.max||rt.to<rt.axis.min||rt.from>rt.axis.max)){lt.from=Math.max(lt.from,lt.axis.min),lt.to=Math.min(lt.to,lt.axis.max),rt.from=Math.max(rt.from,rt.axis.min),rt.to=Math.min(rt.to,rt.axis.max);var et=lt.from===lt.to,vt=rt.from===rt.to;if(!(et&&vt))if(lt.from=Math.floor(lt.axis.p2c(lt.from)),lt.to=Math.floor(lt.axis.p2c(lt.to)),rt.from=Math.floor(rt.axis.p2c(rt.from)),rt.to=Math.floor(rt.axis.p2c(rt.to)),et||vt){var _t=ft.lineWidth||w.grid.markingsLineWidth,Mt=_t%2?.5:0;E.beginPath(),E.strokeStyle=ft.color||w.grid.markingsColor,E.lineWidth=_t,et?(E.moveTo(lt.to+Mt,rt.from),E.lineTo(lt.to+Mt,rt.to)):(E.moveTo(lt.from,rt.to+Mt),E.lineTo(lt.to,rt.to+Mt)),E.stroke()}else E.fillStyle=ft.color||w.grid.markingsColor,E.fillRect(lt.from,rt.to,lt.to-lt.from,rt.from-rt.to)}}z=P(),R=w.grid.borderWidth;for(var Yt=0;Yt<z.length;++Yt){var kt=z[Yt],Dt=kt.box,Ft=kt.tickLength,Ut,Rt,Ct,St;if(!(!kt.show||kt.ticks.length==0)){for(E.lineWidth=1,kt.direction=="x"?(Ut=0,Ft=="full"?Rt=kt.position=="top"?0:e:Rt=Dt.top-G.top+(kt.position=="top"?Dt.height:0)):(Rt=0,Ft=="full"?Ut=kt.position=="left"?0:wt:Ut=Dt.left-G.left+(kt.position=="left"?Dt.width:0)),kt.innermost||(E.strokeStyle=kt.options.color,E.beginPath(),Ct=St=0,kt.direction=="x"?Ct=wt+1:St=e+1,E.lineWidth==1&&(kt.direction=="x"?Rt=Math.floor(Rt)+.5:Ut=Math.floor(Ut)+.5),E.moveTo(Ut,Rt),E.lineTo(Ut+Ct,Rt+St),E.stroke()),E.strokeStyle=kt.options.tickColor,E.beginPath(),S=0;S<kt.ticks.length;++S){var Bt=kt.ticks[S].v;Ct=St=0,!(isNaN(Bt)||Bt<kt.min||Bt>kt.max||Ft=="full"&&(typeof R=="object"&&R[kt.position]>0||R>0)&&(Bt==kt.min||Bt==kt.max))&&(kt.direction=="x"?(Ut=kt.p2c(Bt),St=Ft=="full"?-e:Ft,kt.position=="top"&&(St=-St)):(Rt=kt.p2c(Bt),Ct=Ft=="full"?-wt:Ft,kt.position=="left"&&(Ct=-Ct)),E.lineWidth==1&&(kt.direction=="x"?Ut=Math.floor(Ut)+.5:Rt=Math.floor(Rt)+.5),E.moveTo(Ut,Rt),E.lineTo(Ut+Ct,Rt+St))}E.stroke()}}R&&(Q=w.grid.borderColor,typeof R=="object"||typeof Q=="object"?(typeof R!="object"&&(R={top:R,right:R,bottom:R,left:R}),typeof Q!="object"&&(Q={top:Q,right:Q,bottom:Q,left:Q}),R.top>0&&(E.strokeStyle=Q.top,E.lineWidth=R.top,E.beginPath(),E.moveTo(0-R.left,0-R.top/2),E.lineTo(wt,0-R.top/2),E.stroke()),R.right>0&&(E.strokeStyle=Q.right,E.lineWidth=R.right,E.beginPath(),E.moveTo(wt+R.right/2,0-R.top),E.lineTo(wt+R.right/2,e),E.stroke()),R.bottom>0&&(E.strokeStyle=Q.bottom,E.lineWidth=R.bottom,E.beginPath(),E.moveTo(wt+R.right,e+R.bottom/2),E.lineTo(0,e+R.bottom/2),E.stroke()),R.left>0&&(E.strokeStyle=Q.left,E.lineWidth=R.left,E.beginPath(),E.moveTo(0-R.left/2,e+R.bottom),E.lineTo(0-R.left/2,0),E.stroke())):(E.lineWidth=R,E.strokeStyle=w.grid.borderColor,E.strokeRect(-R/2,-R/2,wt+R,e+R))),E.restore()}function Ze(){t.each(P(),function(S,z){var R=z.box,Q=z.direction+"Axis "+z.direction+z.n+"Axis",ut="flot-"+z.direction+"-axis flot-"+z.direction+z.n+"-axis "+Q,ft=z.options.font||"flot-tick-label tickLabel",lt,rt,et,vt,_t;if(A.removeText(ut),!(!z.show||z.ticks.length==0))for(var Mt=0;Mt<z.ticks.length;++Mt)lt=z.ticks[Mt],!(!lt.label||lt.v<z.min||lt.v>z.max)&&(z.direction=="x"?(vt="center",rt=G.left+z.p2c(lt.v),z.position=="bottom"?et=R.top+R.padding:(et=R.top+R.height-R.padding,_t="bottom")):(_t="middle",et=G.top+z.p2c(lt.v),z.position=="left"?(rt=R.left+R.width-R.padding,vt="right"):rt=R.left+R.padding),A.addText(ut,rt,et,lt.label,ft,null,null,vt,_t))})}function Gt(S){S.lines.show&&re(S),S.bars.show&&ii(S),S.points.show&&ke(S)}function re(S){function z(rt,et,vt,_t,Mt){var Yt=rt.points,kt=rt.pointsize,Dt=null,Ft=null;E.beginPath();for(var Ut=kt;Ut<Yt.length;Ut+=kt){var Rt=Yt[Ut-kt],Ct=Yt[Ut-kt+1],St=Yt[Ut],Bt=Yt[Ut+1];if(!(Rt==null||St==null)){if(Ct<=Bt&&Ct<Mt.min){if(Bt<Mt.min)continue;Rt=(Mt.min-Ct)/(Bt-Ct)*(St-Rt)+Rt,Ct=Mt.min}else if(Bt<=Ct&&Bt<Mt.min){if(Ct<Mt.min)continue;St=(Mt.min-Ct)/(Bt-Ct)*(St-Rt)+Rt,Bt=Mt.min}if(Ct>=Bt&&Ct>Mt.max){if(Bt>Mt.max)continue;Rt=(Mt.max-Ct)/(Bt-Ct)*(St-Rt)+Rt,Ct=Mt.max}else if(Bt>=Ct&&Bt>Mt.max){if(Ct>Mt.max)continue;St=(Mt.max-Ct)/(Bt-Ct)*(St-Rt)+Rt,Bt=Mt.max}if(Rt<=St&&Rt<_t.min){if(St<_t.min)continue;Ct=(_t.min-Rt)/(St-Rt)*(Bt-Ct)+Ct,Rt=_t.min}else if(St<=Rt&&St<_t.min){if(Rt<_t.min)continue;Bt=(_t.min-Rt)/(St-Rt)*(Bt-Ct)+Ct,St=_t.min}if(Rt>=St&&Rt>_t.max){if(St>_t.max)continue;Ct=(_t.max-Rt)/(St-Rt)*(Bt-Ct)+Ct,Rt=_t.max}else if(St>=Rt&&St>_t.max){if(Rt>_t.max)continue;Bt=(_t.max-Rt)/(St-Rt)*(Bt-Ct)+Ct,St=_t.max}(Rt!=Dt||Ct!=Ft)&&E.moveTo(_t.p2c(Rt)+et,Mt.p2c(Ct)+vt),Dt=St,Ft=Bt,E.lineTo(_t.p2c(St)+et,Mt.p2c(Bt)+vt)}}E.stroke()}function R(rt,et,vt){for(var _t=rt.points,Mt=rt.pointsize,Yt=Math.min(Math.max(0,vt.min),vt.max),kt=0,Dt,Ft=!1,Ut=1,Rt=0,Ct=0;!(Mt>0&&kt>_t.length+Mt);){kt+=Mt;var St=_t[kt-Mt],Bt=_t[kt-Mt+Ut],oe=_t[kt],he=_t[kt+Ut];if(Ft){if(Mt>0&&St!=null&&oe==null){Ct=kt,Mt=-Mt,Ut=2;continue}if(Mt<0&&kt==Rt+Mt){E.fill(),Ft=!1,Mt=-Mt,Ut=1,kt=Rt=Ct+Mt;continue}}if(!(St==null||oe==null)){if(St<=oe&&St<et.min){if(oe<et.min)continue;Bt=(et.min-St)/(oe-St)*(he-Bt)+Bt,St=et.min}else if(oe<=St&&oe<et.min){if(St<et.min)continue;he=(et.min-St)/(oe-St)*(he-Bt)+Bt,oe=et.min}if(St>=oe&&St>et.max){if(oe>et.max)continue;Bt=(et.max-St)/(oe-St)*(he-Bt)+Bt,St=et.max}else if(oe>=St&&oe>et.max){if(St>et.max)continue;he=(et.max-St)/(oe-St)*(he-Bt)+Bt,oe=et.max}if(Ft||(E.beginPath(),E.moveTo(et.p2c(St),vt.p2c(Yt)),Ft=!0),Bt>=vt.max&&he>=vt.max){E.lineTo(et.p2c(St),vt.p2c(vt.max)),E.lineTo(et.p2c(oe),vt.p2c(vt.max));continue}else if(Bt<=vt.min&&he<=vt.min){E.lineTo(et.p2c(St),vt.p2c(vt.min)),E.lineTo(et.p2c(oe),vt.p2c(vt.min));continue}var Ue=St,ri=oe;Bt<=he&&Bt<vt.min&&he>=vt.min?(St=(vt.min-Bt)/(he-Bt)*(oe-St)+St,Bt=vt.min):he<=Bt&&he<vt.min&&Bt>=vt.min&&(oe=(vt.min-Bt)/(he-Bt)*(oe-St)+St,he=vt.min),Bt>=he&&Bt>vt.max&&he<=vt.max?(St=(vt.max-Bt)/(he-Bt)*(oe-St)+St,Bt=vt.max):he>=Bt&&he>vt.max&&Bt<=vt.max&&(oe=(vt.max-Bt)/(he-Bt)*(oe-St)+St,he=vt.max),St!=Ue&&E.lineTo(et.p2c(Ue),vt.p2c(Bt)),E.lineTo(et.p2c(St),vt.p2c(Bt)),E.lineTo(et.p2c(oe),vt.p2c(he)),oe!=ri&&(E.lineTo(et.p2c(oe),vt.p2c(he)),E.lineTo(et.p2c(ri),vt.p2c(he)))}}}E.save(),E.translate(G.left,G.top),E.lineJoin="round";var Q=S.lines.lineWidth,ut=S.shadowSize;if(Q>0&&ut>0){E.lineWidth=ut,E.strokeStyle="rgba(0,0,0,0.1)";var ft=Math.PI/18;z(S.datapoints,Math.sin(ft)*(Q/2+ut/2),Math.cos(ft)*(Q/2+ut/2),S.xaxis,S.yaxis),E.lineWidth=ut/2,z(S.datapoints,Math.sin(ft)*(Q/2+ut/4),Math.cos(ft)*(Q/2+ut/4),S.xaxis,S.yaxis)}E.lineWidth=Q,E.strokeStyle=S.color;var lt=Pe(S.lines,S.color,0,e);lt&&(E.fillStyle=lt,R(S.datapoints,S.xaxis,S.yaxis)),Q>0&&z(S.datapoints,0,0,S.xaxis,S.yaxis),E.restore()}function ke(S){function z(rt,et,vt,_t,Mt,Yt,kt,Dt){for(var Ft=rt.points,Ut=rt.pointsize,Rt=0;Rt<Ft.length;Rt+=Ut){var Ct=Ft[Rt],St=Ft[Rt+1];Ct==null||Ct<Yt.min||Ct>Yt.max||St<kt.min||St>kt.max||(E.beginPath(),Ct=Yt.p2c(Ct),St=kt.p2c(St)+_t,Dt=="circle"?E.arc(Ct,St,et,0,Mt?Math.PI:Math.PI*2,!1):Dt(E,Ct,St,et,Mt),E.closePath(),vt&&(E.fillStyle=vt,E.fill()),E.stroke())}}E.save(),E.translate(G.left,G.top);var R=S.points.lineWidth,Q=S.shadowSize,ut=S.points.radius,ft=S.points.symbol;if(R==0&&(R=1e-4),R>0&&Q>0){var lt=Q/2;E.lineWidth=lt,E.strokeStyle="rgba(0,0,0,0.1)",z(S.datapoints,ut,null,lt+lt/2,!0,S.xaxis,S.yaxis,ft),E.strokeStyle="rgba(0,0,0,0.2)",z(S.datapoints,ut,null,lt/2,!0,S.xaxis,S.yaxis,ft)}E.lineWidth=R,E.strokeStyle=S.color,z(S.datapoints,ut,Pe(S.points,S.color),0,!1,S.xaxis,S.yaxis,ft),E.restore()}function ti(S,z,R,Q,ut,ft,lt,rt,et,vt,_t){var Mt,Yt,kt,Dt,Ft,Ut,Rt,Ct,St;vt?(Ct=Ut=Rt=!0,Ft=!1,Mt=R,Yt=S,Dt=z+Q,kt=z+ut,Yt<Mt&&(St=Yt,Yt=Mt,Mt=St,Ft=!0,Ut=!1)):(Ft=Ut=Rt=!0,Ct=!1,Mt=S+Q,Yt=S+ut,kt=R,Dt=z,Dt<kt&&(St=Dt,Dt=kt,kt=St,Ct=!0,Rt=!1)),!(Yt<lt.min||Mt>lt.max||Dt<rt.min||kt>rt.max)&&(Mt<lt.min&&(Mt=lt.min,Ft=!1),Yt>lt.max&&(Yt=lt.max,Ut=!1),kt<rt.min&&(kt=rt.min,Ct=!1),Dt>rt.max&&(Dt=rt.max,Rt=!1),Mt=lt.p2c(Mt),kt=rt.p2c(kt),Yt=lt.p2c(Yt),Dt=rt.p2c(Dt),ft&&(et.fillStyle=ft(kt,Dt),et.fillRect(Mt,Dt,Yt-Mt,kt-Dt)),_t>0&&(Ft||Ut||Rt||Ct)&&(et.beginPath(),et.moveTo(Mt,kt),Ft?et.lineTo(Mt,Dt):et.moveTo(Mt,Dt),Rt?et.lineTo(Yt,Dt):et.moveTo(Yt,Dt),Ut?et.lineTo(Yt,kt):et.moveTo(Yt,kt),Ct?et.lineTo(Mt,kt):et.moveTo(Mt,kt),et.stroke()))}function ii(S){function z(ut,ft,lt,rt,et,vt){for(var _t=ut.points,Mt=ut.pointsize,Yt=0;Yt<_t.length;Yt+=Mt)_t[Yt]!=null&&ti(_t[Yt],_t[Yt+1],_t[Yt+2],ft,lt,rt,et,vt,E,S.bars.horizontal,S.bars.lineWidth)}E.save(),E.translate(G.left,G.top),E.lineWidth=S.bars.lineWidth,E.strokeStyle=S.color;var R;switch(S.bars.align){case"left":R=0;break;case"right":R=-S.bars.barWidth;break;default:R=-S.bars.barWidth/2}var Q=S.bars.fill?function(ut,ft){return Pe(S.bars,S.color,ut,ft)}:null;z(S.datapoints,R,R+S.bars.barWidth,Q,S.xaxis,S.yaxis),E.restore()}function Pe(S,z,R,Q){var ut=S.fill;if(!ut)return null;if(S.fillColor)return fe(S.fillColor,R,Q,z);var ft=t.color.parse(z);return ft.a=typeof ut=="number"?ut:.4,ft.normalize(),ft.toString()}function li(){if(w.legend.container!=null?t(w.legend.container).html(""):d.find(".legend").remove(),!!w.legend.show){for(var S=[],z=[],R=!1,Q=w.legend.labelFormatter,ut,ft,lt=0;lt<x.length;++lt)ut=x[lt],ut.label&&(ft=Q?Q(ut.label,ut):ut.label,ft&&z.push({label:ft,color:ut.color}));if(w.legend.sorted)if(t.isFunction(w.legend.sorted))z.sort(w.legend.sorted);else if(w.legend.sorted=="reverse")z.reverse();else{var rt=w.legend.sorted!="descending";z.sort(function(Ut,Rt){return Ut.label==Rt.label?0:Ut.label<Rt.label!=rt?1:-1})}for(var lt=0;lt<z.length;++lt){var et=z[lt];lt%w.legend.noColumns==0&&(R&&S.push("</tr>"),S.push("<tr>"),R=!0),S.push('<td class="legendColorBox"><div style="border:1px solid '+w.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+et.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+et.label+"</td>")}if(R&&S.push("</tr>"),S.length!=0){var vt='<table style="font-size:smaller;color:'+w.grid.color+'">'+S.join("")+"</table>";if(w.legend.container!=null)t(w.legend.container).html(vt);else{var _t="",Mt=w.legend.position,Yt=w.legend.margin;Yt[0]==null&&(Yt=[Yt,Yt]),Mt.charAt(0)=="n"?_t+="top:"+(Yt[1]+G.top)+"px;":Mt.charAt(0)=="s"&&(_t+="bottom:"+(Yt[1]+G.bottom)+"px;"),Mt.charAt(1)=="e"?_t+="right:"+(Yt[0]+G.right)+"px;":Mt.charAt(1)=="w"&&(_t+="left:"+(Yt[0]+G.left)+"px;");var kt=t('<div class="legend">'+vt.replace('style="','style="position:absolute;'+_t+";")+"</div>").appendTo(d);if(w.legend.backgroundOpacity!=0){var Dt=w.legend.backgroundColor;Dt==null&&(Dt=w.grid.backgroundColor,Dt&&typeof Dt=="string"?Dt=t.color.parse(Dt):Dt=t.color.extract(kt,"background-color"),Dt.a=1,Dt=Dt.toString());var Ft=kt.children();t('<div style="position:absolute;width:'+Ft.width()+"px;height:"+Ft.height()+"px;"+_t+"background-color:"+Dt+';"> </div>').prependTo(kt).css("opacity",w.legend.backgroundOpacity)}}}}}var _e=[],Ce=null;function be(S,z,R){var Q=w.grid.mouseActiveRadius,ut=Q*Q+1,ft=null,lt=!1,rt,et,vt;for(rt=x.length-1;rt>=0;--rt)if(R(x[rt])){var _t=x[rt],Mt=_t.xaxis,Yt=_t.yaxis,kt=_t.datapoints.points,Dt=Mt.c2p(S),Ft=Yt.c2p(z),Ut=Q/Mt.scale,Rt=Q/Yt.scale;if(vt=_t.datapoints.pointsize,Mt.options.inverseTransform&&(Ut=Number.MAX_VALUE),Yt.options.inverseTransform&&(Rt=Number.MAX_VALUE),_t.lines.show||_t.points.show)for(et=0;et<kt.length;et+=vt){var Ct=kt[et],St=kt[et+1];if(Ct!=null&&!(Ct-Dt>Ut||Ct-Dt<-Ut||St-Ft>Rt||St-Ft<-Rt)){var Bt=Math.abs(Mt.p2c(Ct)-S),oe=Math.abs(Yt.p2c(St)-z),he=Bt*Bt+oe*oe;he<ut&&(ut=he,ft=[rt,et/vt])}}if(_t.bars.show&&!ft){var Ue,ri;switch(_t.bars.align){case"left":Ue=0;break;case"right":Ue=-_t.bars.barWidth;break;default:Ue=-_t.bars.barWidth/2}for(ri=Ue+_t.bars.barWidth,et=0;et<kt.length;et+=vt){var Ct=kt[et],St=kt[et+1],ci=kt[et+2];Ct!=null&&(x[rt].bars.horizontal?Dt<=Math.max(ci,Ct)&&Dt>=Math.min(ci,Ct)&&Ft>=St+Ue&&Ft<=St+ri:Dt>=Ct+Ue&&Dt<=Ct+ri&&Ft>=Math.min(ci,St)&&Ft<=Math.max(ci,St))&&(ft=[rt,et/vt])}}}return ft?(rt=ft[0],et=ft[1],vt=x[rt].datapoints.pointsize,{datapoint:x[rt].datapoints.points.slice(et*vt,(et+1)*vt),dataIndex:et,series:x[rt],seriesIndex:rt}):null}function Le(S){w.grid.hoverable&&We("plothover",S,function(z){return z.hoverable!=!1})}function Fi(S){w.grid.hoverable&&We("plothover",S,function(z){return!1})}function gi(S){We("plotclick",S,function(z){return z.clickable!=!1})}function We(S,z,R){var Q=O.offset(),ut=z.pageX-Q.left-G.left,ft=z.pageY-Q.top-G.top,lt=L({left:ut,top:ft});lt.pageX=z.pageX,lt.pageY=z.pageY;var rt=be(ut,ft,R);if(rt&&(rt.pageX=parseInt(rt.series.xaxis.p2c(rt.datapoint[0])+Q.left+G.left,10),rt.pageY=parseInt(rt.series.yaxis.p2c(rt.datapoint[1])+Q.top+G.top,10)),w.grid.autoHighlight){for(var et=0;et<_e.length;++et){var vt=_e[et];vt.auto==S&&!(rt&&vt.series==rt.series&&vt.point[0]==rt.datapoint[0]&&vt.point[1]==rt.datapoint[1])&&ni(vt.series,vt.point)}rt&&ei(rt.series,rt.datapoint,S)}d.trigger(S,[lt,rt])}function vi(){var S=w.interaction.redrawOverlayInterval;if(S==-1){Qi();return}Ce||(Ce=setTimeout(Qi,S))}function Qi(){Ce=null,U.save(),M.clear(),U.translate(G.left,G.top);var S,z;for(S=0;S<_e.length;++S)z=_e[S],z.series.bars.show?ce(z.series,z.point):Xe(z.series,z.point);U.restore(),o(n.drawOverlay,[U])}function ei(S,z,R){if(typeof S=="number"&&(S=x[S]),typeof z=="number"){var Q=S.datapoints.pointsize;z=S.datapoints.points.slice(Q*z,Q*(z+1))}var ut=He(S,z);ut==-1?(_e.push({series:S,point:z,auto:R}),vi()):R||(_e[ut].auto=!1)}function ni(S,z){if(S==null&&z==null){_e=[],vi();return}if(typeof S=="number"&&(S=x[S]),typeof z=="number"){var R=S.datapoints.pointsize;z=S.datapoints.points.slice(R*z,R*(z+1))}var Q=He(S,z);Q!=-1&&(_e.splice(Q,1),vi())}function He(S,z){for(var R=0;R<_e.length;++R){var Q=_e[R];if(Q.series==S&&Q.point[0]==z[0]&&Q.point[1]==z[1])return R}return-1}function Xe(S,z){var R=z[0],Q=z[1],ut=S.xaxis,ft=S.yaxis,lt=typeof S.highlightColor=="string"?S.highlightColor:t.color.parse(S.color).scale("a",.5).toString();if(!(R<ut.min||R>ut.max||Q<ft.min||Q>ft.max)){var rt=S.points.radius+S.points.lineWidth/2;U.lineWidth=rt,U.strokeStyle=lt;var et=1.5*rt;R=ut.p2c(R),Q=ft.p2c(Q),U.beginPath(),S.points.symbol=="circle"?U.arc(R,Q,et,0,2*Math.PI,!1):S.points.symbol(U,R,Q,et,!1),U.closePath(),U.stroke()}}function ce(S,z){var R=typeof S.highlightColor=="string"?S.highlightColor:t.color.parse(S.color).scale("a",.5).toString(),Q=R,ut;switch(S.bars.align){case"left":ut=0;break;case"right":ut=-S.bars.barWidth;break;default:ut=-S.bars.barWidth/2}U.lineWidth=S.bars.lineWidth,U.strokeStyle=R,ti(z[0],z[1],z[2]||0,ut,ut+S.bars.barWidth,function(){return Q},S.xaxis,S.yaxis,U,S.bars.horizontal,S.bars.lineWidth)}function fe(S,z,R,Q){if(typeof S=="string")return S;for(var ut=E.createLinearGradient(0,R,0,z),ft=0,lt=S.colors.length;ft<lt;++ft){var rt=S.colors[ft];if(typeof rt!="string"){var et=t.color.parse(Q);rt.brightness!=null&&(et=et.scale("rgb",rt.brightness)),rt.opacity!=null&&(et.a*=rt.opacity),rt=et.toString()}ut.addColorStop(ft/(lt-1),rt)}return ut}}t.plot=function(d,f,g){var b=new l(t(d),f,g,t.plot.plugins);return b},t.plot.version="0.8.3",t.plot.plugins=[],t.fn.plot=function(d,f){return this.each(function(){t.plot(this,d,f)})};function c(d,f){return f*Math.floor(d/f)}}(jQuery)}),ku={};Ug(ku,{default:()=>Ws});Vg=_u(xu());qg(ku,_u(xu()));bu=Vg,{default:wu}=bu,Yg=Ri(bu,["default"]),Ws=wu!==void 0?wu:Yg});var Cu={};oo(Cu,{default:()=>Ws});var Su=zi(()=>{Us();Us()});var Gg,Vs,Kg,Xg,Jg,Qg,Zg,tv,qs,ev,Au,$u,Du,iv,Tu,Eu,nv,Ys,Gs=zi(()=>{Gg=Object.create,Vs=Object.defineProperty,Kg=Object.getOwnPropertyDescriptor,Xg=Object.getOwnPropertyNames,Jg=Object.getPrototypeOf,Qg=Object.prototype.hasOwnProperty,Zg=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),tv=(t,i)=>{for(var r in i)Vs(t,r,{get:i[r],enumerable:!0})},qs=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Xg(i))!Qg.call(t,c)&&c!==r&&Vs(t,c,{get:()=>i[c],enumerable:!(l=Kg(i,c))||l.enumerable});return t},ev=(t,i,r)=>(qs(t,i,"default"),r&&qs(r,i,"default")),Au=(t,i,r)=>(r=t!=null?Gg(Jg(t)):{},qs(i||!t||!t.__esModule?Vs(r,"default",{value:t,enumerable:!0}):r,t)),$u=Zg(()=>{(function(t){var i={xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}};function r(A,M){return M*Math.floor(A/M)}function l(A,M,O,E){if(typeof A.strftime=="function")return A.strftime(M);var U=function(o,h){return o=""+o,h=""+(h!=null?h:"0"),o.length==1?h+o:o},Y=[],ct=!1,G=A.getHours(),wt=G<12;O==null&&(O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),E==null&&(E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);var e;G>12?e=G-12:G==0?e=12:e=G;for(var n=0;n<M.length;++n){var a=M.charAt(n);if(ct){switch(a){case"a":a=""+E[A.getDay()];break;case"b":a=""+O[A.getMonth()];break;case"d":a=U(A.getDate());break;case"e":a=U(A.getDate()," ");break;case"h":case"H":a=U(G);break;case"I":a=U(e);break;case"l":a=U(e," ");break;case"m":a=U(A.getMonth()+1);break;case"M":a=U(A.getMinutes());break;case"q":a=""+(Math.floor(A.getMonth()/3)+1);break;case"S":a=U(A.getSeconds());break;case"y":a=U(A.getFullYear()%100);break;case"Y":a=""+A.getFullYear();break;case"p":a=wt?"am":"pm";break;case"P":a=wt?"AM":"PM";break;case"w":a=""+A.getDay();break}Y.push(a),ct=!1}else a=="%"?ct=!0:Y.push(a)}return Y.join("")}function c(A){function M(Y,ct,G,wt){Y[ct]=function(){return G[wt].apply(G,arguments)}}var O={date:A};A.strftime!=null&&M(O,"strftime",A,"strftime"),M(O,"getTime",A,"getTime"),M(O,"setTime",A,"setTime");for(var E=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],U=0;U<E.length;U++)M(O,"get"+E[U],A,"getUTC"+E[U]),M(O,"set"+E[U],A,"setUTC"+E[U]);return O}function d(A,M){if(M.timezone=="browser")return new Date(A);if(!M.timezone||M.timezone=="utc")return c(new Date(A));if(typeof timezoneJS<"u"&&typeof timezoneJS.Date<"u"){var O=new timezoneJS.Date;return O.setTimezone(M.timezone),O.setTime(A),O}else return c(new Date(A))}var f={second:1e3,minute:60*1e3,hour:60*60*1e3,day:24*60*60*1e3,month:30*24*60*60*1e3,quarter:3*30*24*60*60*1e3,year:365.2425*24*60*60*1e3},g=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],b=g.concat([[3,"month"],[6,"month"],[1,"year"]]),x=g.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);function w(A){A.hooks.processOptions.push(function(M,O){t.each(M.getAxes(),function(E,U){var Y=U.options;Y.mode=="time"&&(U.tickGenerator=function(ct){var G=[],wt=d(ct.min,Y),e=0,n=Y.tickSize&&Y.tickSize[1]==="quarter"||Y.minTickSize&&Y.minTickSize[1]==="quarter"?x:b;Y.minTickSize!=null&&(typeof Y.tickSize=="number"?e=Y.tickSize:e=Y.minTickSize[0]*f[Y.minTickSize[1]]);for(var a=0;a<n.length-1&&!(ct.delta<(n[a][0]*f[n[a][1]]+n[a+1][0]*f[n[a+1][1]])/2&&n[a][0]*f[n[a][1]]>=e);++a);var o=n[a][0],h=n[a][1];if(h=="year"){if(Y.minTickSize!=null&&Y.minTickSize[1]=="year")o=Math.floor(Y.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(ct.delta/f.year)/Math.LN10)),y=ct.delta/f.year/p;y<1.5?o=1:y<3?o=2:y<7.5?o=5:o=10,o*=p}o<1&&(o=1)}ct.tickSize=Y.tickSize||[o,h];var C=ct.tickSize[0];h=ct.tickSize[1];var D=C*f[h];h=="second"?wt.setSeconds(r(wt.getSeconds(),C)):h=="minute"?wt.setMinutes(r(wt.getMinutes(),C)):h=="hour"?wt.setHours(r(wt.getHours(),C)):h=="month"?wt.setMonth(r(wt.getMonth(),C)):h=="quarter"?wt.setMonth(3*r(wt.getMonth()/3,C)):h=="year"&&wt.setFullYear(r(wt.getFullYear(),C)),wt.setMilliseconds(0),D>=f.minute&&wt.setSeconds(0),D>=f.hour&&wt.setMinutes(0),D>=f.day&&wt.setHours(0),D>=f.day*4&&wt.setDate(1),D>=f.month*2&&wt.setMonth(r(wt.getMonth(),3)),D>=f.quarter*2&&wt.setMonth(r(wt.getMonth(),6)),D>=f.year&&wt.setMonth(0);var P=0,L=Number.NaN,J;do if(J=L,L=wt.getTime(),G.push(L),h=="month"||h=="quarter")if(C<1){wt.setDate(1);var dt=wt.getTime();wt.setMonth(wt.getMonth()+(h=="quarter"?3:1));var Et=wt.getTime();wt.setTime(L+P*f.hour+(Et-dt)*C),P=wt.getHours(),wt.setHours(0)}else wt.setMonth(wt.getMonth()+C*(h=="quarter"?3:1));else h=="year"?wt.setFullYear(wt.getFullYear()+C):wt.setTime(L+D);while(L<ct.max&&L!=J);return G},U.tickFormatter=function(ct,G){var wt=d(ct,G.options);if(Y.timeformat!=null)return l(wt,Y.timeformat,Y.monthNames,Y.dayNames);var e=G.options.tickSize&&G.options.tickSize[1]=="quarter"||G.options.minTickSize&&G.options.minTickSize[1]=="quarter",n=G.tickSize[0]*f[G.tickSize[1]],a=G.max-G.min,o=Y.twelveHourClock?" %p":"",h=Y.twelveHourClock?"%I":"%H",p;n<f.minute?p=h+":%M:%S"+o:n<f.day?a<2*f.day?p=h+":%M"+o:p="%b %d "+h+":%M"+o:n<f.month?p="%b %d":e&&n<f.quarter||!e&&n<f.year?a<f.year?p="%b":p="%b %Y":e&&n<f.year?a<f.year?p="Q%q":p="Q%q %Y":p="%Y";var y=l(wt,p,Y.monthNames,Y.dayNames);return y})})})}t.plot.plugins.push({init:w,options:i,name:"time",version:"1.0"}),t.plot.formatDate=l,t.plot.dateGenerator=d})(jQuery)}),Du={};tv(Du,{default:()=>Ys});iv=Au($u());ev(Du,Au($u()));Tu=iv,{default:Eu}=Tu,nv=Ri(Tu,["default"]),Ys=Eu!==void 0?Eu:nv});var Mu={};oo(Mu,{default:()=>Ys});var Iu=zi(()=>{Gs();Gs()});var ov,Xs,rv,av,sv,lv,cv,hv,Ks,uv,Nu,Ru,zu,dv,Pu,Ou,pv,Js,Qs=zi(()=>{ov=Object.create,Xs=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,av=Object.getOwnPropertyNames,sv=Object.getPrototypeOf,lv=Object.prototype.hasOwnProperty,cv=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),hv=(t,i)=>{for(var r in i)Xs(t,r,{get:i[r],enumerable:!0})},Ks=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of av(i))!lv.call(t,c)&&c!==r&&Xs(t,c,{get:()=>i[c],enumerable:!(l=rv(i,c))||l.enumerable});return t},uv=(t,i,r)=>(Ks(t,i,"default"),r&&Ks(r,i,"default")),Nu=(t,i,r)=>(r=t!=null?ov(sv(t)):{},Ks(i||!t||!t.__esModule?Xs(r,"default",{value:t,enumerable:!0}):r,t)),Ru=cv(()=>{(function(t){var i={series:{stack:null}};function r(l){function c(f,g){for(var b=null,x=0;x<g.length&&f!=g[x];++x)g[x].stack==f.stack&&(b=g[x]);return b}function d(f,g,b){if(!(g.stack==null||g.stack===!1)){var x=c(g,f.getData());if(x){for(var w=b.pointsize,A=b.points,M=x.datapoints.pointsize,O=x.datapoints.points,E=[],U,Y,ct,G,wt,e,n=g.lines.show,a=g.bars.horizontal,o=w>2&&(a?b.format[2].x:b.format[2].y),h=n&&g.lines.steps,p=!0,y=a?1:0,C=a?0:1,D=0,P=0,L,J;!(D>=A.length);){if(L=E.length,A[D]==null){for(J=0;J<w;++J)E.push(A[D+J]);D+=w}else if(P>=O.length){if(!n)for(J=0;J<w;++J)E.push(A[D+J]);D+=w}else if(O[P]==null){for(J=0;J<w;++J)E.push(null);p=!0,P+=M}else{if(U=A[D+y],Y=A[D+C],G=O[P+y],wt=O[P+C],e=0,U==G){for(J=0;J<w;++J)E.push(A[D+J]);E[L+C]+=wt,e=wt,D+=w,P+=M}else if(U>G){if(n&&D>0&&A[D-w]!=null){for(ct=Y+(A[D-w+C]-Y)*(G-U)/(A[D-w+y]-U),E.push(G),E.push(ct+wt),J=2;J<w;++J)E.push(A[D+J]);e=wt}P+=M}else{if(p&&n){D+=w;continue}for(J=0;J<w;++J)E.push(A[D+J]);n&&P>0&&O[P-M]!=null&&(e=wt+(O[P-M+C]-wt)*(U-G)/(O[P-M+y]-G)),E[L+C]+=e,D+=w}p=!1,L!=E.length&&o&&(E[L+2]+=e)}if(h&&L!=E.length&&L>0&&E[L]!=null&&E[L]!=E[L-w]&&E[L+1]!=E[L-w+1]){for(J=0;J<w;++J)E[L+w+J]=E[L+J];E[L+1]=E[L-w+1]}}b.points=E}}}l.hooks.processDatapoints.push(d)}t.plot.plugins.push({init:r,options:i,name:"stack",version:"1.2"})})(jQuery)}),zu={};hv(zu,{default:()=>Js});dv=Nu(Ru());uv(zu,Nu(Ru()));Pu=dv,{default:Ou}=Pu,pv=Ri(Pu,["default"]),Js=Ou!==void 0?Ou:pv});var Lu={};oo(Lu,{default:()=>Js});var Hu=zi(()=>{Qs();Qs()});var fv,tl,mv,gv,vv,yv,bv,wv,Zs,_v,Fu,Wu,Uu,xv,Bu,ju,kv,el,il=zi(()=>{fv=Object.create,tl=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,gv=Object.getOwnPropertyNames,vv=Object.getPrototypeOf,yv=Object.prototype.hasOwnProperty,bv=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),wv=(t,i)=>{for(var r in i)tl(t,r,{get:i[r],enumerable:!0})},Zs=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of gv(i))!yv.call(t,c)&&c!==r&&tl(t,c,{get:()=>i[c],enumerable:!(l=mv(i,c))||l.enumerable});return t},_v=(t,i,r)=>(Zs(t,i,"default"),r&&Zs(r,i,"default")),Fu=(t,i,r)=>(r=t!=null?fv(vv(t)):{},Zs(i||!t||!t.__esModule?tl(r,"default",{value:t,enumerable:!0}):r,t)),Wu=bv(()=>{(function(t){typeof define=="function"&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function i(e,n){var a,o,h,p=e.nodeName.toLowerCase();return p==="area"?(a=e.parentNode,o=a.name,e.href&&o&&a.nodeName.toLowerCase()==="map"?(h=t("img[usemap='#"+o+"']")[0],!!h&&r(h)):!1):(/input|select|textarea|button|object/.test(p)?!e.disabled:p==="a"&&e.href||n)&&r(e)}function r(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return t.css(this,"visibility")==="hidden"}).length}function l(e){for(var n,a;e.length&&e[0]!==document;){if(n=e.css("position"),(n==="absolute"||n==="relative"||n==="fixed")&&(a=parseInt(e.css("zIndex"),10),!isNaN(a)&&a!==0))return a;e=e.parent()}return 0}function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=d(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function d(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(n,"mouseout",function(){t(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(n,"mouseover",f)}function f(){t.datepicker._isDisabledDatepicker(ct.inline?ct.dpDiv.parent()[0]:ct.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).addClass("ui-datepicker-next-hover"))}function g(e,n){t.extend(e,n);for(var a in n)n[a]==null&&(e[a]=n[a]);return e}function b(e){return function(){var n=this.element.val();e.apply(this,arguments),this._refresh(),n!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var n=this.css("position"),a=n==="absolute",o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,h=this.parents().filter(function(){var p=t(this);return a&&p.css("position")==="static"?!1:o.test(p.css("overflow")+p.css("overflow-y")+p.css("overflow-x"))}).eq(0);return n!=="fixed"&&h.length?h:t(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,a){return!!t.data(e,a[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),a=isNaN(n);return(a||n>=0)&&i(e,!a)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,n){function a(y,C,D,P){return t.each(o,function(){C-=parseFloat(t.css(y,"padding"+this))||0,D&&(C-=parseFloat(t.css(y,"border"+this+"Width"))||0),P&&(C-=parseFloat(t.css(y,"margin"+this))||0)}),C}var o=n==="Width"?["Left","Right"]:["Top","Bottom"],h=n.toLowerCase(),p={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(y){return y===void 0?p["inner"+n].call(this):this.each(function(){t(this).css(h,a(this,y)+"px")})},t.fn["outer"+n]=function(y,C){return typeof y!="number"?p["outer"+n].call(this,y):this.each(function(){t(this).css(h,a(this,y,!0,C)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(n,a){return typeof n=="number"?this.each(function(){var o=this;setTimeout(function(){t(o).focus(),a&&a.call(o)},n)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(e!==void 0)return this.css("zIndex",e);if(this.length)for(var n,a,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css("position"),(n==="absolute"||n==="relative"||n==="fixed")&&(a=parseInt(o.css("zIndex"),10),!isNaN(a)&&a!==0))return a;o=o.parent()}return 0}}),t.ui.plugin={add:function(e,n,a){var o,h=t.ui[e].prototype;for(o in a)h.plugins[o]=h.plugins[o]||[],h.plugins[o].push([n,a[o]])},call:function(e,n,a,o){var h,p=e.plugins[n];if(p&&(o||e.element[0].parentNode&&e.element[0].parentNode.nodeType!==11))for(h=0;p.length>h;h++)e.options[p[h][0]]&&p[h][1].apply(e.element,a)}};var x=0,w=Array.prototype.slice;t.cleanData=function(e){return function(n){var a,o,h;for(h=0;(o=n[h])!=null;h++)try{a=t._data(o,"events"),a&&a.remove&&t(o).triggerHandler("remove")}catch(p){}e(n)}}(t.cleanData),t.widget=function(e,n,a){var o,h,p,y,C={},D=e.split(".")[0];return e=e.split(".")[1],o=D+"-"+e,a||(a=n,n=t.Widget),t.expr[":"][o.toLowerCase()]=function(P){return!!t.data(P,o)},t[D]=t[D]||{},h=t[D][e],p=t[D][e]=function(P,L){return this._createWidget?(arguments.length&&this._createWidget(P,L),void 0):new p(P,L)},t.extend(p,h,{version:a.version,_proto:t.extend({},a),_childConstructors:[]}),y=new n,y.options=t.widget.extend({},y.options),t.each(a,function(P,L){return t.isFunction(L)?(C[P]=function(){var J=function(){return n.prototype[P].apply(this,arguments)},dt=function(Et){return n.prototype[P].apply(this,Et)};return function(){var Et,V=this._super,N=this._superApply;return this._super=J,this._superApply=dt,Et=L.apply(this,arguments),this._super=V,this._superApply=N,Et}}(),void 0):(C[P]=L,void 0)}),p.prototype=t.widget.extend(y,{widgetEventPrefix:h&&y.widgetEventPrefix||e},C,{constructor:p,namespace:D,widgetName:e,widgetFullName:o}),h?(t.each(h._childConstructors,function(P,L){var J=L.prototype;t.widget(J.namespace+"."+J.widgetName,p,L._proto)}),delete h._childConstructors):n._childConstructors.push(p),t.widget.bridge(e,p),p},t.widget.extend=function(e){for(var n,a,o=w.call(arguments,1),h=0,p=o.length;p>h;h++)for(n in o[h])a=o[h][n],o[h].hasOwnProperty(n)&&a!==void 0&&(e[n]=t.isPlainObject(a)?t.isPlainObject(e[n])?t.widget.extend({},e[n],a):t.widget.extend({},a):a);return e},t.widget.bridge=function(e,n){var a=n.prototype.widgetFullName||e;t.fn[e]=function(o){var h=typeof o=="string",p=w.call(arguments,1),y=this;return o=!h&&p.length?t.widget.extend.apply(null,[o].concat(p)):o,h?this.each(function(){var C,D=t.data(this,a);return o==="instance"?(y=D,!1):D?t.isFunction(D[o])&&o.charAt(0)!=="_"?(C=D[o].apply(D,p),C!==D&&C!==void 0?(y=C&&C.jquery?y.pushStack(C.get()):C,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var C=t.data(this,a);C?(C.option(o||{}),C._init&&C._init()):t.data(this,a,new n(o,this))}),y}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=x++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.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:t.noop,widget:function(){return this.element},option:function(e,n){var a,o,h,p=e;if(arguments.length===0)return t.widget.extend({},this.options);if(typeof e=="string")if(p={},a=e.split("."),e=a.shift(),a.length){for(o=p[e]=t.widget.extend({},this.options[e]),h=0;a.length-1>h;h++)o[a[h]]=o[a[h]]||{},o=o[a[h]];if(e=a.pop(),arguments.length===1)return o[e]===void 0?null:o[e];o[e]=n}else{if(arguments.length===1)return this.options[e]===void 0?null:this.options[e];p[e]=n}return this._setOptions(p),this},_setOptions:function(e){var n;for(n in e)this._setOption(n,e[n]);return this},_setOption:function(e,n){return this.options[e]=n,e==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!n),n&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,n,a){var o,h=this;typeof e!="boolean"&&(a=n,n=e,e=!1),a?(n=o=t(n),this.bindings=this.bindings.add(n)):(a=n,n=this.element,o=this.widget()),t.each(a,function(p,y){function C(){return e||h.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?(typeof y=="string"?h[y]:y).apply(h,arguments):void 0}typeof y!="string"&&(C.guid=y.guid=y.guid||C.guid||t.guid++);var D=p.match(/^([\w:-]*)\s*(.*)$/),P=D[1]+h.eventNamespace,L=D[2];L?o.delegate(L,P,C):n.bind(P,C)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(n).undelegate(n)},_delay:function(e,n){function a(){return(typeof e=="string"?o[e]:e).apply(o,arguments)}var o=this;return setTimeout(a,n||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(n){t(n.currentTarget).addClass("ui-state-hover")},mouseleave:function(n){t(n.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(n){t(n.currentTarget).addClass("ui-state-focus")},focusout:function(n){t(n.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,n,a){var o,h,p=this.options[e];if(a=a||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],h=n.originalEvent)for(o in h)o in n||(n[o]=h[o]);return this.element.trigger(n,a),!(t.isFunction(p)&&p.apply(this.element[0],[n].concat(a))===!1||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(a,o,h){typeof o=="string"&&(o={effect:o});var p,y=o?o===!0||typeof o=="number"?n:o.effect||n:e;o=o||{},typeof o=="number"&&(o={duration:o}),p=!t.isEmptyObject(o),o.complete=h,o.delay&&a.delay(o.delay),p&&t.effects&&t.effects.effect[y]?a[e](o):y!==e&&a[y]?a[y](o.duration,o.easing,h):a.queue(function(C){t(this)[e](),h&&h.call(a[0]),C()})}}),t.widget;var A=!1;t(document).mouseup(function(){A=!1}),t.widget("ui.mouse",{version:"1.11.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(n){return e._mouseDown(n)}).bind("click."+this.widgetName,function(n){return t.data(n.target,e.widgetName+".preventClickEvent")===!0?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!A){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,a=e.which===1,o=typeof this.options.cancel=="string"&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return a&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(t.data(e.target,this.widgetName+".preventClickEvent")===!0&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(h){return n._mouseMove(h)},this._mouseUpDelegate=function(h){return n._mouseUp(h)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),A=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):e.which?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),A=!1,!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function e(V,N,tt){return[parseFloat(V[0])*(dt.test(V[0])?N/100:1),parseFloat(V[1])*(dt.test(V[1])?tt/100:1)]}function n(V,N){return parseInt(t.css(V,N),10)||0}function a(V){var N=V[0];return N.nodeType===9?{width:V.width(),height:V.height(),offset:{top:0,left:0}}:t.isWindow(N)?{width:V.width(),height:V.height(),offset:{top:V.scrollTop(),left:V.scrollLeft()}}:N.preventDefault?{width:0,height:0,offset:{top:N.pageY,left:N.pageX}}:{width:V.outerWidth(),height:V.outerHeight(),offset:V.offset()}}t.ui=t.ui||{};var o,h,p=Math.max,y=Math.abs,C=Math.round,D=/left|center|right/,P=/top|center|bottom/,L=/[\+\-]\d+(\.[\d]+)?%?/,J=/^\w+/,dt=/%$/,Et=t.fn.position;t.position={scrollbarWidth:function(){if(o!==void 0)return o;var V,N,tt=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),ot=tt.children()[0];return t("body").append(tt),V=ot.offsetWidth,tt.css("overflow","scroll"),N=ot.offsetWidth,V===N&&(N=tt[0].clientWidth),tt.remove(),o=V-N},getScrollInfo:function(V){var N=V.isWindow||V.isDocument?"":V.element.css("overflow-x"),tt=V.isWindow||V.isDocument?"":V.element.css("overflow-y"),ot=N==="scroll"||N==="auto"&&V.width<V.element[0].scrollWidth,X=tt==="scroll"||tt==="auto"&&V.height<V.element[0].scrollHeight;return{width:X?t.position.scrollbarWidth():0,height:ot?t.position.scrollbarWidth():0}},getWithinInfo:function(V){var N=t(V||window),tt=t.isWindow(N[0]),ot=!!N[0]&&N[0].nodeType===9;return{element:N,isWindow:tt,isDocument:ot,offset:N.offset()||{left:0,top:0},scrollLeft:N.scrollLeft(),scrollTop:N.scrollTop(),width:tt||ot?N.width():N.outerWidth(),height:tt||ot?N.height():N.outerHeight()}}},t.fn.position=function(V){if(!V||!V.of)return Et.apply(this,arguments);V=t.extend({},V);var N,tt,ot,X,K,at,st=t(V.of),bt=t.position.getWithinInfo(V.within),$t=t.position.getScrollInfo(bt),Ht=(V.collision||"flip").split(" "),Zt={};return at=a(st),st[0].preventDefault&&(V.at="left top"),tt=at.width,ot=at.height,X=at.offset,K=t.extend({},X),t.each(["my","at"],function(){var qt,Kt,Vt=(V[this]||"").split(" ");Vt.length===1&&(Vt=D.test(Vt[0])?Vt.concat(["center"]):P.test(Vt[0])?["center"].concat(Vt):["center","center"]),Vt[0]=D.test(Vt[0])?Vt[0]:"center",Vt[1]=P.test(Vt[1])?Vt[1]:"center",qt=L.exec(Vt[0]),Kt=L.exec(Vt[1]),Zt[this]=[qt?qt[0]:0,Kt?Kt[0]:0],V[this]=[J.exec(Vt[0])[0],J.exec(Vt[1])[0]]}),Ht.length===1&&(Ht[1]=Ht[0]),V.at[0]==="right"?K.left+=tt:V.at[0]==="center"&&(K.left+=tt/2),V.at[1]==="bottom"?K.top+=ot:V.at[1]==="center"&&(K.top+=ot/2),N=e(Zt.at,tt,ot),K.left+=N[0],K.top+=N[1],this.each(function(){var qt,Kt,Vt=t(this),we=Vt.outerWidth(),ge=Vt.outerHeight(),Ne=n(this,"marginLeft"),Ze=n(this,"marginTop"),Gt=we+Ne+n(this,"marginRight")+$t.width,re=ge+Ze+n(this,"marginBottom")+$t.height,ke=t.extend({},K),ti=e(Zt.my,Vt.outerWidth(),Vt.outerHeight());V.my[0]==="right"?ke.left-=we:V.my[0]==="center"&&(ke.left-=we/2),V.my[1]==="bottom"?ke.top-=ge:V.my[1]==="center"&&(ke.top-=ge/2),ke.left+=ti[0],ke.top+=ti[1],h||(ke.left=C(ke.left),ke.top=C(ke.top)),qt={marginLeft:Ne,marginTop:Ze},t.each(["left","top"],function(ii,Pe){t.ui.position[Ht[ii]]&&t.ui.position[Ht[ii]][Pe](ke,{targetWidth:tt,targetHeight:ot,elemWidth:we,elemHeight:ge,collisionPosition:qt,collisionWidth:Gt,collisionHeight:re,offset:[N[0]+ti[0],N[1]+ti[1]],my:V.my,at:V.at,within:bt,elem:Vt})}),V.using&&(Kt=function(ii){var Pe=X.left-ke.left,li=Pe+tt-we,_e=X.top-ke.top,Ce=_e+ot-ge,be={target:{element:st,left:X.left,top:X.top,width:tt,height:ot},element:{element:Vt,left:ke.left,top:ke.top,width:we,height:ge},horizontal:0>li?"left":Pe>0?"right":"center",vertical:0>Ce?"top":_e>0?"bottom":"middle"};we>tt&&tt>y(Pe+li)&&(be.horizontal="center"),ge>ot&&ot>y(_e+Ce)&&(be.vertical="middle"),be.important=p(y(Pe),y(li))>p(y(_e),y(Ce))?"horizontal":"vertical",V.using.call(this,ii,be)}),Vt.offset(t.extend(ke,{using:Kt}))})},t.ui.position={fit:{left:function(V,N){var tt,ot=N.within,X=ot.isWindow?ot.scrollLeft:ot.offset.left,K=ot.width,at=V.left-N.collisionPosition.marginLeft,st=X-at,bt=at+N.collisionWidth-K-X;N.collisionWidth>K?st>0&&0>=bt?(tt=V.left+st+N.collisionWidth-K-X,V.left+=st-tt):V.left=bt>0&&0>=st?X:st>bt?X+K-N.collisionWidth:X:st>0?V.left+=st:bt>0?V.left-=bt:V.left=p(V.left-at,V.left)},top:function(V,N){var tt,ot=N.within,X=ot.isWindow?ot.scrollTop:ot.offset.top,K=N.within.height,at=V.top-N.collisionPosition.marginTop,st=X-at,bt=at+N.collisionHeight-K-X;N.collisionHeight>K?st>0&&0>=bt?(tt=V.top+st+N.collisionHeight-K-X,V.top+=st-tt):V.top=bt>0&&0>=st?X:st>bt?X+K-N.collisionHeight:X:st>0?V.top+=st:bt>0?V.top-=bt:V.top=p(V.top-at,V.top)}},flip:{left:function(V,N){var tt,ot,X=N.within,K=X.offset.left+X.scrollLeft,at=X.width,st=X.isWindow?X.scrollLeft:X.offset.left,bt=V.left-N.collisionPosition.marginLeft,$t=bt-st,Ht=bt+N.collisionWidth-at-st,Zt=N.my[0]==="left"?-N.elemWidth:N.my[0]==="right"?N.elemWidth:0,qt=N.at[0]==="left"?N.targetWidth:N.at[0]==="right"?-N.targetWidth:0,Kt=-2*N.offset[0];0>$t?(tt=V.left+Zt+qt+Kt+N.collisionWidth-at-K,(0>tt||y($t)>tt)&&(V.left+=Zt+qt+Kt)):Ht>0&&(ot=V.left-N.collisionPosition.marginLeft+Zt+qt+Kt-st,(ot>0||Ht>y(ot))&&(V.left+=Zt+qt+Kt))},top:function(V,N){var tt,ot,X=N.within,K=X.offset.top+X.scrollTop,at=X.height,st=X.isWindow?X.scrollTop:X.offset.top,bt=V.top-N.collisionPosition.marginTop,$t=bt-st,Ht=bt+N.collisionHeight-at-st,Zt=N.my[1]==="top",qt=Zt?-N.elemHeight:N.my[1]==="bottom"?N.elemHeight:0,Kt=N.at[1]==="top"?N.targetHeight:N.at[1]==="bottom"?-N.targetHeight:0,Vt=-2*N.offset[1];0>$t?(ot=V.top+qt+Kt+Vt+N.collisionHeight-at-K,V.top+qt+Kt+Vt>$t&&(0>ot||y($t)>ot)&&(V.top+=qt+Kt+Vt)):Ht>0&&(tt=V.top-N.collisionPosition.marginTop+qt+Kt+Vt-st,V.top+qt+Kt+Vt>Ht&&(tt>0||Ht>y(tt))&&(V.top+=qt+Kt+Vt))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var V,N,tt,ot,X,K=document.getElementsByTagName("body")[0],at=document.createElement("div");V=document.createElement(K?"div":"body"),tt={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},K&&t.extend(tt,{position:"absolute",left:"-1000px",top:"-1000px"});for(X in tt)V.style[X]=tt[X];V.appendChild(at),N=K||document.documentElement,N.insertBefore(V,N.firstChild),at.style.cssText="position: absolute; left: 10.7432222px;",ot=t(at).offset().left,h=ot>10&&11>ot,V.innerHTML="",N.removeChild(V)}()}(),t.ui.position,t.widget("ui.accordion",{version:"1.11.1",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},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&e.active!=null||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.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-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),this.options.heightStyle!=="content"&&e.css("height","")},_setOption:function(e,n){return e==="active"?(this._activate(n),void 0):(e==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(n)),this._super(e,n),e!=="collapsible"||n||this.options.active!==!1||this._activate(0),e==="icons"&&(this._destroyIcons(),n&&this._createIcons()),e==="disabled"&&(this.element.toggleClass("ui-state-disabled",!!n).attr("aria-disabled",n),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!n)),void 0)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,a=this.headers.length,o=this.headers.index(e.target),h=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:h=this.headers[(o+1)%a];break;case n.LEFT:case n.UP:h=this.headers[(o-1+a)%a];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:h=this.headers[0];break;case n.END:h=this.headers[a-1]}h&&(t(e.target).attr("tabIndex",-1),t(h).attr("tabIndex",0),h.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.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-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 e,n=this.options,a=n.heightStyle,o=this.element.parent();this.active=this._findActive(n.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(){var h=t(this),p=h.uniqueId().attr("id"),y=h.next(),C=y.uniqueId().attr("id");h.attr("aria-controls",C),y.attr("aria-labelledby",p)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),a==="fill"?(e=o.height(),this.element.siblings(":visible").each(function(){var h=t(this),p=h.css("position");p!=="absolute"&&p!=="fixed"&&(e-=h.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):a==="auto"&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return typeof e=="number"?this.headers.eq(e):t()},_setupEvents:function(e){var n={keydown:"_keydown"};e&&t.each(e.split(" "),function(a,o){n[o]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var n=this.options,a=this.active,o=t(e.currentTarget),h=o[0]===a[0],p=h&&n.collapsible,y=p?t():o.next(),C=a.next(),D={oldHeader:a,oldPanel:C,newHeader:p?t():o,newPanel:y};e.preventDefault(),h&&!n.collapsible||this._trigger("beforeActivate",e,D)===!1||(n.active=p?!1:this.headers.index(o),this.active=h?t():o,this._toggle(D),a.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&a.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),h||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&o.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,a=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=a,this.options.animate?this._animate(n,a,e):(a.hide(),n.show(),this._toggleComplete(e)),a.attr({"aria-hidden":"true"}),a.prev().attr("aria-selected","false"),n.length&&a.length?a.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return t(this).attr("tabIndex")===0}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(e,n,a){var o,h,p,y=this,C=0,D=e.length&&(!n.length||e.index()<n.index()),P=this.options.animate||{},L=D&&P.down||P,J=function(){y._toggleComplete(a)};return typeof L=="number"&&(p=L),typeof L=="string"&&(h=L),h=h||L.easing||P.easing,p=p||L.duration||P.duration,n.length?e.length?(o=e.show().outerHeight(),n.animate(this.hideProps,{duration:p,easing:h,step:function(dt,Et){Et.now=Math.round(dt)}}),e.hide().animate(this.showProps,{duration:p,easing:h,complete:J,step:function(dt,Et){Et.now=Math.round(dt),Et.prop!=="height"?C+=Et.now:y.options.heightStyle!=="content"&&(Et.now=Math.round(o-n.outerHeight()-C),C=0)}}),void 0):n.animate(this.hideProps,p,h,J):e.animate(this.showProps,p,h,J)},_toggleComplete:function(e){var n=e.oldPanel;n.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),n.length&&(n.parent()[0].className=n.parent()[0].className),this._trigger("activate",null,e)}}),t.widget("ui.menu",{version:"1.11.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 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").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target);!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var n=t(e.currentTarget);n.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,n){var a=this.active||this.element.find(this.options.items).eq(0);n||this.focus(e,a)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").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").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function n(D){return D.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var a,o,h,p,y,C=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:C=!1,o=this.previousFilter||"",h=String.fromCharCode(e.keyCode),p=!1,clearTimeout(this.filterTimer),h===o?p=!0:h=o+h,y=RegExp("^"+n(h),"i"),a=this.activeMenu.find(this.options.items).filter(function(){return y.test(t(this).text())}),a=p&&a.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):a,a.length||(h=String.fromCharCode(e.keyCode),y=RegExp("^"+n(h),"i"),a=this.activeMenu.find(this.options.items).filter(function(){return y.test(t(this).text())})),a.length?(this.focus(e,a),a.length>1?(this.previousFilter=h,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}C&&e.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(e):this.select(e))},refresh:function(){var e,n,a=this,o=this.options.icons.submenu,h=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),h.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var p=t(this),y=p.parent(),C=t("<span>").addClass("ui-menu-icon ui-icon "+o).data("ui-menu-submenu-carat",!0);y.attr("aria-haspopup","true").prepend(C),p.attr("aria-labelledby",y.attr("id"))}),e=h.add(this.element),n=e.find(this.options.items),n.not(".ui-menu-item").each(function(){var p=t(this);a._isDivider(p)&&p.addClass("ui-widget-content ui-menu-divider")}),n.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,n){e==="icons"&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(n.submenu),e==="disabled"&&this.element.toggleClass("ui-state-disabled",!!n).attr("aria-disabled",n),this._super(e,n)},focus:function(e,n){var a,o;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(n),this.active=n.first(),o=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",o.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),a=n.children(".ui-menu"),a.length&&e&&/^mouse/.test(e.type)&&this._startOpening(a),this.activeMenu=n.parent(),this._trigger("focus",e,{item:n})},_scrollIntoView:function(e){var n,a,o,h,p,y;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,a=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-n-a,h=this.activeMenu.scrollTop(),p=this.activeMenu.height(),y=e.outerHeight(),0>o?this.activeMenu.scrollTop(h+o):o+y>p&&this.activeMenu.scrollTop(h+o-p+y))},blur:function(e,n){n||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),e.attr("aria-hidden")==="true"&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var a=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));a.length||(a=this.element),this._close(a),this.blur(e),this.activeMenu=a},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var n=this.active&&this.active.parent().closest(".ui-menu-item",this.element);n&&n.length&&(this._close(),this.focus(e,n))},expand:function(e){var n=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();n&&n.length&&(this._open(n.parent()),this._delay(function(){this.focus(e,n)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},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(e,n,a){var o;this.active&&(o=e==="first"||e==="last"?this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),o&&o.length&&this.active||(o=this.activeMenu.find(this.options.items)[n]()),this.focus(a,o)},nextPage:function(e){var n,a,o;return this.active?(this.isLastItem()||(this._hasScroll()?(a=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),0>n.offset().top-a-o}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var n,a,o;return this.active?(this.isFirstItem()||(this._hasScroll()?(a=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-a+o>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)}}),t.widget("ui.autocomplete",{version:"1.11.1",defaultElement:"<input>",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},requestIndex:0,pending:0,_create:function(){var e,n,a,o=this.element[0].nodeName.toLowerCase(),h=o==="textarea",p=o==="input";this.isMultiLine=h?!0:p?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[h||p?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(y){if(this.element.prop("readOnly"))return e=!0,a=!0,n=!0,void 0;e=!1,a=!1,n=!1;var C=t.ui.keyCode;switch(y.keyCode){case C.PAGE_UP:e=!0,this._move("previousPage",y);break;case C.PAGE_DOWN:e=!0,this._move("nextPage",y);break;case C.UP:e=!0,this._keyEvent("previous",y);break;case C.DOWN:e=!0,this._keyEvent("next",y);break;case C.ENTER:this.menu.active&&(e=!0,y.preventDefault(),this.menu.select(y));break;case C.TAB:this.menu.active&&this.menu.select(y);break;case C.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(y),y.preventDefault());break;default:n=!0,this._searchTimeout(y)}},keypress:function(y){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&y.preventDefault(),void 0;if(!n){var C=t.ui.keyCode;switch(y.keyCode){case C.PAGE_UP:this._move("previousPage",y);break;case C.PAGE_DOWN:this._move("nextPage",y);break;case C.UP:this._keyEvent("previous",y);break;case C.DOWN:this._keyEvent("next",y)}}},input:function(y){return a?(a=!1,y.preventDefault(),void 0):(this._searchTimeout(y),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(y){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(y),this._change(y),void 0)}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(y){y.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var C=this.menu.element[0];t(y.target).closest(".ui-menu-item").length||this._delay(function(){var D=this;this.document.one("mousedown",function(P){P.target===D.element[0]||P.target===C||t.contains(C,P.target)||D.close()})})},menufocus:function(y,C){var D,P;return this.isNewMenu&&(this.isNewMenu=!1,y.originalEvent&&/^mouse/.test(y.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(y.target).trigger(y.originalEvent)}),void 0):(P=C.item.data("ui-autocomplete-item"),this._trigger("focus",y,{item:P})!==!1&&y.originalEvent&&/^key/.test(y.originalEvent.type)&&this._value(P.value),D=C.item.attr("aria-label")||P.value,D&&t.trim(D).length&&(this.liveRegion.children().hide(),t("<div>").text(D).appendTo(this.liveRegion)),void 0)},menuselect:function(y,C){var D=C.item.data("ui-autocomplete-item"),P=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=P,this._delay(function(){this.previous=P,this.selectedItem=D})),this._trigger("select",y,{item:D})!==!1&&this._value(D.value),this.term=this._value(),this.close(y),this.selectedItem=D}}),this.liveRegion=t("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),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(e,n){this._super(e,n),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&n&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,a=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(o,h){h(t.ui.autocomplete.filter(e,o.term))}):typeof this.options.source=="string"?(n=this.options.source,this.source=function(o,h){a.xhr&&a.xhr.abort(),a.xhr=t.ajax({url:n,data:o,dataType:"json",success:function(p){h(p)},error:function(){h([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var n=this.term===this._value(),a=this.menu.element.is(":visible"),o=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!n||n&&!a&&!o)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,n){return e=e!=null?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(n):this._trigger("search",n)!==!1?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(n){e===this.requestIndex&&this.__response(n),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(n){return typeof n=="string"?{label:n,value:n}:t.extend({},n,{label:n.label||n.value,value:n.value||n.label})})},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var a=this;t.each(n,function(o,h){a._renderItemData(e,h)})},_renderItemData:function(e,n){return this._renderItem(e,n).data("ui-autocomplete-item",n)},_renderItem:function(e,n){return t("<li>").text(n.label).appendTo(e)},_move:function(e,n){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[e](n),void 0):(this.search(null,n),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,n){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,n),n.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var a=RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(o){return a.test(o.label||o.value||o)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))}}),t.ui.autocomplete;var M,O="ui-button ui-widget ui-state-default ui-corner-all",E="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",U=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},Y=function(e){var n=e.name,a=e.form,o=t([]);return n&&(n=n.replace(/'/g,"\\'"),o=a?t(a).find("[name='"+n+"'][type=radio]"):t("[name='"+n+"'][type=radio]",e.ownerDocument).filter(function(){return!this.form})),o};t.widget("ui.button",{version:"1.11.1",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,U),typeof this.options.disabled!="boolean"?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,n=this.options,a=this.type==="checkbox"||this.type==="radio",o=a?"":"ui-state-active";n.label===null&&(n.label=this.type==="input"?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(O).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){n.disabled||this===M&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){n.disabled||t(this).removeClass(o)}).bind("click"+this.eventNamespace,function(h){n.disabled&&(h.preventDefault(),h.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),a&&this.element.bind("change"+this.eventNamespace,function(){e.refresh()}),this.type==="checkbox"?this.buttonElement.bind("click"+this.eventNamespace,function(){return n.disabled?!1:void 0}):this.type==="radio"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(n.disabled)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var h=e.element[0];Y(h).not(h).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return n.disabled?!1:(t(this).addClass("ui-state-active"),M=this,e.document.one("mouseup",function(){M=null}),void 0)}).bind("mouseup"+this.eventNamespace,function(){return n.disabled?!1:(t(this).removeClass("ui-state-active"),void 0)}).bind("keydown"+this.eventNamespace,function(h){return n.disabled?!1:((h.keyCode===t.ui.keyCode.SPACE||h.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"),void 0)}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(h){h.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",n.disabled),this._resetButton()},_determineButtonType:function(){var e,n,a;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button",this.type==="checkbox"||this.type==="radio"?(e=this.element.parents().last(),n="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(n),this.buttonElement.length||(e=e.length?e.siblings():this.element.siblings(),this.buttonElement=e.filter(n),this.buttonElement.length||(this.buttonElement=e.find(n))),this.element.addClass("ui-helper-hidden-accessible"),a=this.element.is(":checked"),a&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",a)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(O+" ui-state-active "+E).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(e,n){return this._super(e,n),e==="disabled"?(this.widget().toggleClass("ui-state-disabled",!!n),this.element.prop("disabled",!!n),n&&(this.type==="checkbox"||this.type==="radio"?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")),void 0):(this._resetButton(),void 0)},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),this.type==="radio"?Y(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input")return this.options.label&&this.element.val(this.options.label),void 0;var e=this.buttonElement.removeClass(E),n=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),a=this.options.icons,o=a.primary&&a.secondary,h=[];a.primary||a.secondary?(this.options.text&&h.push("ui-button-text-icon"+(o?"s":a.primary?"-primary":"-secondary")),a.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+a.primary+"'></span>"),a.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+a.secondary+"'></span>"),this.options.text||(h.push(o?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(n)))):h.push("ui-button-text-only"),e.addClass(h.join(" "))}}),t.widget("ui.buttonset",{version:"1.11.1",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,n){e==="disabled"&&this.buttons.button("option",e,n),this._super(e,n)},refresh:function(){var e=this.element.css("direction")==="rtl",n=this.element.find(this.options.items),a=n.filter(":ui-button");n.not(":ui-button").button(),a.button("refresh"),this.buttons=n.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.11.1"}});var ct;t.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return g(this._defaults,e||{}),this},_attachDatepicker:function(e,n){var a,o,h;a=e.nodeName.toLowerCase(),o=a==="div"||a==="span",e.id||(this.uuid+=1,e.id="dp"+this.uuid),h=this._newInst(t(e),o),h.settings=t.extend({},n||{}),a==="input"?this._connectDatepicker(e,h):o&&this._inlineDatepicker(e,h)},_newInst:function(e,n){var a=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:a,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?d(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,n){var a=t(e);n.append=t([]),n.trigger=t([]),a.hasClass(this.markerClassName)||(this._attachments(a,n),a.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(n),t.data(e,"datepicker",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var a,o,h,p=this._get(n,"appendText"),y=this._get(n,"isRTL");n.append&&n.append.remove(),p&&(n.append=t("<span class='"+this._appendClass+"'>"+p+"</span>"),e[y?"before":"after"](n.append)),e.unbind("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),a=this._get(n,"showOn"),(a==="focus"||a==="both")&&e.focus(this._showDatepicker),(a==="button"||a==="both")&&(o=this._get(n,"buttonText"),h=this._get(n,"buttonImage"),n.trigger=t(this._get(n,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:h,alt:o,title:o}):t("<button type='button'></button>").addClass(this._triggerClass).html(h?t("<img/>").attr({src:h,alt:o,title:o}):o)),e[y?"before":"after"](n.trigger),n.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var n,a,o,h,p=new Date(2009,11,20),y=this._get(e,"dateFormat");y.match(/[DM]/)&&(n=function(C){for(a=0,o=0,h=0;C.length>h;h++)C[h].length>a&&(a=C[h].length,o=h);return o},p.setMonth(n(this._get(e,y.match(/MM/)?"monthNames":"monthNamesShort"))),p.setDate(n(this._get(e,y.match(/DD/)?"dayNames":"dayNamesShort"))+20-p.getDay())),e.input.attr("size",this._formatDate(e,p).length)}},_inlineDatepicker:function(e,n){var a=t(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,a,o,h){var p,y,C,D,P,L=this._dialogInst;return L||(this.uuid+=1,p="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+p+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),L=this._dialogInst=this._newInst(this._dialogInput,!1),L.settings={},t.data(this._dialogInput[0],"datepicker",L)),g(L.settings,o||{}),n=n&&n.constructor===Date?this._formatDate(L,n):n,this._dialogInput.val(n),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,D=document.documentElement.scrollLeft||document.body.scrollLeft,P=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[y/2-100+D,C/2-150+P]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),L.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",L),this},_destroyDatepicker:function(e){var n,a=t(e),o=t.data(e,"datepicker");a.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),n==="input"?(o.append.remove(),o.trigger.remove(),a.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(n==="div"||n==="span")&&a.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var n,a,o=t(e),h=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),n==="input"?(e.disabled=!1,h.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(n==="div"||n==="span")&&(a=o.children("."+this._inlineClass),a.children().removeClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(p){return p===e?null:p}))},_disableDatepicker:function(e){var n,a,o=t(e),h=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),n==="input"?(e.disabled=!0,h.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(n==="div"||n==="span")&&(a=o.children("."+this._inlineClass),a.children().addClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(p){return p===e?null:p}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var n=0;this._disabledInputs.length>n;n++)if(this._disabledInputs[n]===e)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(n){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,a){var o,h,p,y,C=this._getInst(e);return arguments.length===2&&typeof n=="string"?n==="defaults"?t.extend({},t.datepicker._defaults):C?n==="all"?t.extend({},C.settings):this._get(C,n):null:(o=n||{},typeof n=="string"&&(o={},o[n]=a),C&&(this._curInst===C&&this._hideDatepicker(),h=this._getDateDatepicker(e,!0),p=this._getMinMaxDate(C,"min"),y=this._getMinMaxDate(C,"max"),g(C.settings,o),p!==null&&o.dateFormat!==void 0&&o.minDate===void 0&&(C.settings.minDate=this._formatDate(C,p)),y!==null&&o.dateFormat!==void 0&&o.maxDate===void 0&&(C.settings.maxDate=this._formatDate(C,y)),"disabled"in o&&(o.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),C),this._autoSize(C),this._setDate(C,h),this._updateAlternate(C),this._updateDatepicker(C)),void 0)},_changeDatepicker:function(e,n,a){this._optionDatepicker(e,n,a)},_refreshDatepicker:function(e){var n=this._getInst(e);n&&this._updateDatepicker(n)},_setDateDatepicker:function(e,n){var a=this._getInst(e);a&&(this._setDate(a,n),this._updateDatepicker(a),this._updateAlternate(a))},_getDateDatepicker:function(e,n){var a=this._getInst(e);return a&&!a.inline&&this._setDateFromField(a,n),a?this._getDate(a):null},_doKeyDown:function(e){var n,a,o,h=t.datepicker._getInst(e.target),p=!0,y=h.dpDiv.is(".ui-datepicker-rtl");if(h._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),p=!1;break;case 13:return o=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",h.dpDiv),o[0]&&t.datepicker._selectDay(e.target,h.selectedMonth,h.selectedYear,o[0]),n=t.datepicker._get(h,"onSelect"),n?(a=t.datepicker._formatDate(h),n.apply(h.input?h.input[0]:null,[a,h])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(h,"stepBigMonths"):-t.datepicker._get(h,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(h,"stepBigMonths"):+t.datepicker._get(h,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),p=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),p=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,y?1:-1,"D"),p=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(h,"stepBigMonths"):-t.datepicker._get(h,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),p=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,y?-1:1,"D"),p=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(h,"stepBigMonths"):+t.datepicker._get(h,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),p=e.ctrlKey||e.metaKey;break;default:p=!1}else e.keyCode===36&&e.ctrlKey?t.datepicker._showDatepicker(this):p=!1;p&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,a,o=t.datepicker._getInst(e.target);return t.datepicker._get(o,"constrainInput")?(n=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),a=String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">a||!n||n.indexOf(a)>-1):void 0},_doKeyUp:function(e){var n,a=t.datepicker._getInst(e.target);if(a.input.val()!==a.lastVal)try{n=t.datepicker.parseDate(t.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,t.datepicker._getFormatConfig(a)),n&&(t.datepicker._setDateFromField(a),t.datepicker._updateAlternate(a),t.datepicker._updateDatepicker(a))}catch(o){}return!0},_showDatepicker:function(e){if(e=e.target||e,e.nodeName.toLowerCase()!=="input"&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var n,a,o,h,p,y,C;n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),a=t.datepicker._get(n,"beforeShow"),o=a?a.apply(e,[e,n]):{},o!==!1&&(g(n.settings,o),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),h=!1,t(e).parents().each(function(){return h|=t(this).css("position")==="fixed",!h}),p={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),p=t.datepicker._checkOffset(n,p,h),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":h?"fixed":"absolute",display:"none",left:p.left+"px",top:p.top+"px"}),n.inline||(y=t.datepicker._get(n,"showAnim"),C=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",l(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[y]?n.dpDiv.show(y,t.datepicker._get(n,"showOptions"),C):n.dpDiv[y||"show"](y?C:null),t.datepicker._shouldFocusInput(n)&&n.input.focus(),t.datepicker._curInst=n))}},_updateDatepicker:function(e){this.maxRows=4,ct=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n,a=this._getNumberOfMonths(e),o=a[1],h=17,p=e.dpDiv.find("."+this._dayOverClass+" a");p.length>0&&f.apply(p.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",h*o+"em"),e.dpDiv[(a[0]!==1||a[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(n=e.yearshtml,setTimeout(function(){n===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),n=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,n,a){var o=e.dpDiv.outerWidth(),h=e.dpDiv.outerHeight(),p=e.input?e.input.outerWidth():0,y=e.input?e.input.outerHeight():0,C=document.documentElement.clientWidth+(a?0:t(document).scrollLeft()),D=document.documentElement.clientHeight+(a?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?o-p:0,n.left-=a&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=a&&n.top===e.input.offset().top+y?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+o>C&&C>o?Math.abs(n.left+o-C):0),n.top-=Math.min(n.top,n.top+h>D&&D>h?Math.abs(h+y):0),n},_findPos:function(e){for(var n,a=this._getInst(e),o=this._get(a,"isRTL");e&&(e.type==="hidden"||e.nodeType!==1||t.expr.filters.hidden(e));)e=e[o?"previousSibling":"nextSibling"];return n=t(e).offset(),[n.left,n.top]},_hideDatepicker:function(e){var n,a,o,h,p=this._curInst;!p||e&&p!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(p,"showAnim"),a=this._get(p,"duration"),o=function(){t.datepicker._tidyDialog(p)},t.effects&&(t.effects.effect[n]||t.effects[n])?p.dpDiv.hide(n,t.datepicker._get(p,"showOptions"),a,o):p.dpDiv[n==="slideDown"?"slideUp":n==="fadeIn"?"fadeOut":"hide"](n?a:null,o),n||o(),this._datepickerShowing=!1,h=this._get(p,"onClose"),h&&h.apply(p.input?p.input[0]:null,[p.input?p.input.val():"",p]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),a=t.datepicker._getInst(n[0]);(n[0].id!==t.datepicker._mainDivId&&n.parents("#"+t.datepicker._mainDivId).length===0&&!n.hasClass(t.datepicker.markerClassName)&&!n.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||n.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==a)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,a){var o=t(e),h=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(h,n+(a==="M"?this._get(h,"showCurrentAtPos"):0),a),this._updateDatepicker(h))},_gotoToday:function(e){var n,a=t(e),o=this._getInst(a[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(n=new Date,o.selectedDay=n.getDate(),o.drawMonth=o.selectedMonth=n.getMonth(),o.drawYear=o.selectedYear=n.getFullYear()),this._notifyChange(o),this._adjustDate(a)},_selectMonthYear:function(e,n,a){var o=t(e),h=this._getInst(o[0]);h["selected"+(a==="M"?"Month":"Year")]=h["draw"+(a==="M"?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(h),this._adjustDate(o)},_selectDay:function(e,n,a,o){var h,p=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(p[0])||(h=this._getInst(p[0]),h.selectedDay=h.currentDay=t("a",o).html(),h.selectedMonth=h.currentMonth=n,h.selectedYear=h.currentYear=a,this._selectDate(e,this._formatDate(h,h.currentDay,h.currentMonth,h.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var a,o=t(e),h=this._getInst(o[0]);n=n!=null?n:this._formatDate(h),h.input&&h.input.val(n),this._updateAlternate(h),a=this._get(h,"onSelect"),a?a.apply(h.input?h.input[0]:null,[n,h]):h.input&&h.input.trigger("change"),h.inline?this._updateDatepicker(h):(this._hideDatepicker(),this._lastInput=h.input[0],typeof h.input[0]!="object"&&h.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var n,a,o,h=this._get(e,"altField");h&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),a=this._getDate(e),o=this.formatDate(n,a,this._getFormatConfig(e)),t(h).each(function(){t(this).val(o)}))},noWeekends:function(e){var n=e.getDay();return[n>0&&6>n,""]},iso8601Week:function(e){var n,a=new Date(e.getTime());return a.setDate(a.getDate()+4-(a.getDay()||7)),n=a.getTime(),a.setMonth(0),a.setDate(1),Math.floor(Math.round((n-a)/864e5)/7)+1},parseDate:function(e,n,a){if(e==null||n==null)throw"Invalid arguments";if(n=typeof n=="object"?""+n:n+"",n==="")return null;var o,h,p,y,C=0,D=(a?a.shortYearCutoff:null)||this._defaults.shortYearCutoff,P=typeof D!="string"?D:new Date().getFullYear()%100+parseInt(D,10),L=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,J=(a?a.dayNames:null)||this._defaults.dayNames,dt=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,Et=(a?a.monthNames:null)||this._defaults.monthNames,V=-1,N=-1,tt=-1,ot=-1,X=!1,K=function($t){var Ht=e.length>o+1&&e.charAt(o+1)===$t;return Ht&&o++,Ht},at=function($t){var Ht=K($t),Zt=$t==="@"?14:$t==="!"?20:$t==="y"&&Ht?4:$t==="o"?3:2,qt=$t==="y"?Zt:1,Kt=RegExp("^\\d{"+qt+","+Zt+"}"),Vt=n.substring(C).match(Kt);if(!Vt)throw"Missing number at position "+C;return C+=Vt[0].length,parseInt(Vt[0],10)},st=function($t,Ht,Zt){var qt=-1,Kt=t.map(K($t)?Zt:Ht,function(Vt,we){return[[we,Vt]]}).sort(function(Vt,we){return-(Vt[1].length-we[1].length)});if(t.each(Kt,function(Vt,we){var ge=we[1];return n.substr(C,ge.length).toLowerCase()===ge.toLowerCase()?(qt=we[0],C+=ge.length,!1):void 0}),qt!==-1)return qt+1;throw"Unknown name at position "+C},bt=function(){if(n.charAt(C)!==e.charAt(o))throw"Unexpected literal at position "+C;C++};for(o=0;e.length>o;o++)if(X)e.charAt(o)!=="'"||K("'")?bt():X=!1;else switch(e.charAt(o)){case"d":tt=at("d");break;case"D":st("D",L,J);break;case"o":ot=at("o");break;case"m":N=at("m");break;case"M":N=st("M",dt,Et);break;case"y":V=at("y");break;case"@":y=new Date(at("@")),V=y.getFullYear(),N=y.getMonth()+1,tt=y.getDate();break;case"!":y=new Date((at("!")-this._ticksTo1970)/1e4),V=y.getFullYear(),N=y.getMonth()+1,tt=y.getDate();break;case"'":K("'")?bt():X=!0;break;default:bt()}if(n.length>C&&(p=n.substr(C),!/^\s+/.test(p)))throw"Extra/unparsed characters found in date: "+p;if(V===-1?V=new Date().getFullYear():100>V&&(V+=new Date().getFullYear()-new Date().getFullYear()%100+(P>=V?0:-100)),ot>-1)for(N=1,tt=ot;h=this._getDaysInMonth(V,N-1),!(h>=tt);)N++,tt-=h;if(y=this._daylightSavingAdjust(new Date(V,N-1,tt)),y.getFullYear()!==V||y.getMonth()+1!==N||y.getDate()!==tt)throw"Invalid date";return y},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,n,a){if(!n)return"";var o,h=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,p=(a?a.dayNames:null)||this._defaults.dayNames,y=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,C=(a?a.monthNames:null)||this._defaults.monthNames,D=function(Et){var V=e.length>o+1&&e.charAt(o+1)===Et;return V&&o++,V},P=function(Et,V,N){var tt=""+V;if(D(Et))for(;N>tt.length;)tt="0"+tt;return tt},L=function(Et,V,N,tt){return D(Et)?tt[V]:N[V]},J="",dt=!1;if(n)for(o=0;e.length>o;o++)if(dt)e.charAt(o)!=="'"||D("'")?J+=e.charAt(o):dt=!1;else switch(e.charAt(o)){case"d":J+=P("d",n.getDate(),2);break;case"D":J+=L("D",n.getDay(),h,p);break;case"o":J+=P("o",Math.round((new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()-new Date(n.getFullYear(),0,0).getTime())/864e5),3);break;case"m":J+=P("m",n.getMonth()+1,2);break;case"M":J+=L("M",n.getMonth(),y,C);break;case"y":J+=D("y")?n.getFullYear():(10>n.getYear()%100?"0":"")+n.getYear()%100;break;case"@":J+=n.getTime();break;case"!":J+=1e4*n.getTime()+this._ticksTo1970;break;case"'":D("'")?J+="'":dt=!0;break;default:J+=e.charAt(o)}return J},_possibleChars:function(e){var n,a="",o=!1,h=function(p){var y=e.length>n+1&&e.charAt(n+1)===p;return y&&n++,y};for(n=0;e.length>n;n++)if(o)e.charAt(n)!=="'"||h("'")?a+=e.charAt(n):o=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":a+="0123456789";break;case"D":case"M":return null;case"'":h("'")?a+="'":o=!0;break;default:a+=e.charAt(n)}return a},_get:function(e,n){return e.settings[n]!==void 0?e.settings[n]:this._defaults[n]},_setDateFromField:function(e,n){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),o=e.lastVal=e.input?e.input.val():null,h=this._getDefaultDate(e),p=h,y=this._getFormatConfig(e);try{p=this.parseDate(a,o,y)||h}catch(C){o=n?"":o}e.selectedDay=p.getDate(),e.drawMonth=e.selectedMonth=p.getMonth(),e.drawYear=e.selectedYear=p.getFullYear(),e.currentDay=o?p.getDate():0,e.currentMonth=o?p.getMonth():0,e.currentYear=o?p.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,n,a){var o=function(y){var C=new Date;return C.setDate(C.getDate()+y),C},h=function(y){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),y,t.datepicker._getFormatConfig(e))}catch(Et){}for(var C=(y.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,D=C.getFullYear(),P=C.getMonth(),L=C.getDate(),J=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,dt=J.exec(y);dt;){switch(dt[2]||"d"){case"d":case"D":L+=parseInt(dt[1],10);break;case"w":case"W":L+=7*parseInt(dt[1],10);break;case"m":case"M":P+=parseInt(dt[1],10),L=Math.min(L,t.datepicker._getDaysInMonth(D,P));break;case"y":case"Y":D+=parseInt(dt[1],10),L=Math.min(L,t.datepicker._getDaysInMonth(D,P))}dt=J.exec(y)}return new Date(D,P,L)},p=n==null||n===""?a:typeof n=="string"?h(n):typeof n=="number"?isNaN(n)?a:o(n):new Date(n.getTime());return p=p&&""+p=="Invalid Date"?a:p,p&&(p.setHours(0),p.setMinutes(0),p.setSeconds(0),p.setMilliseconds(0)),this._daylightSavingAdjust(p)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,n,a){var o=!n,h=e.selectedMonth,p=e.selectedYear,y=this._restrictMinMax(e,this._determineDate(e,n,new Date));e.selectedDay=e.currentDay=y.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=y.getMonth(),e.drawYear=e.selectedYear=e.currentYear=y.getFullYear(),h===e.selectedMonth&&p===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(o?"":this._formatDate(e))},_getDate:function(e){var n=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return n},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var o={prev:function(){t.datepicker._adjustDate(a,-n,"M")},next:function(){t.datepicker._adjustDate(a,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(a)},selectDay:function(){return t.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(a,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),o[this.getAttribute("data-handler")])})},_generateHTML:function(e){var n,a,o,h,p,y,C,D,P,L,J,dt,Et,V,N,tt,ot,X,K,at,st,bt,$t,Ht,Zt,qt,Kt,Vt,we,ge,Ne,Ze,Gt,re,ke,ti,ii,Pe,li,_e=new Date,Ce=this._daylightSavingAdjust(new Date(_e.getFullYear(),_e.getMonth(),_e.getDate())),be=this._get(e,"isRTL"),Le=this._get(e,"showButtonPanel"),Fi=this._get(e,"hideIfNoPrevNext"),gi=this._get(e,"navigationAsDateFormat"),We=this._getNumberOfMonths(e),vi=this._get(e,"showCurrentAtPos"),Qi=this._get(e,"stepMonths"),ei=We[0]!==1||We[1]!==1,ni=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),He=this._getMinMaxDate(e,"min"),Xe=this._getMinMaxDate(e,"max"),ce=e.drawMonth-vi,fe=e.drawYear;if(0>ce&&(ce+=12,fe--),Xe)for(n=this._daylightSavingAdjust(new Date(Xe.getFullYear(),Xe.getMonth()-We[0]*We[1]+1,Xe.getDate())),n=He&&He>n?He:n;this._daylightSavingAdjust(new Date(fe,ce,1))>n;)ce--,0>ce&&(ce=11,fe--);for(e.drawMonth=ce,e.drawYear=fe,a=this._get(e,"prevText"),a=gi?this.formatDate(a,this._daylightSavingAdjust(new Date(fe,ce-Qi,1)),this._getFormatConfig(e)):a,o=this._canAdjustMonth(e,-1,fe,ce)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(be?"e":"w")+"'>"+a+"</span></a>":Fi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(be?"e":"w")+"'>"+a+"</span></a>",h=this._get(e,"nextText"),h=gi?this.formatDate(h,this._daylightSavingAdjust(new Date(fe,ce+Qi,1)),this._getFormatConfig(e)):h,p=this._canAdjustMonth(e,1,fe,ce)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(be?"w":"e")+"'>"+h+"</span></a>":Fi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(be?"w":"e")+"'>"+h+"</span></a>",y=this._get(e,"currentText"),C=this._get(e,"gotoCurrent")&&e.currentDay?ni:Ce,y=gi?this.formatDate(y,C,this._getFormatConfig(e)):y,D=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",P=Le?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(be?D:"")+(this._isInRange(e,C)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+y+"</button>":"")+(be?"":D)+"</div>":"",L=parseInt(this._get(e,"firstDay"),10),L=isNaN(L)?0:L,J=this._get(e,"showWeek"),dt=this._get(e,"dayNames"),Et=this._get(e,"dayNamesMin"),V=this._get(e,"monthNames"),N=this._get(e,"monthNamesShort"),tt=this._get(e,"beforeShowDay"),ot=this._get(e,"showOtherMonths"),X=this._get(e,"selectOtherMonths"),K=this._getDefaultDate(e),at="",bt=0;We[0]>bt;bt++){for($t="",this.maxRows=4,Ht=0;We[1]>Ht;Ht++){if(Zt=this._daylightSavingAdjust(new Date(fe,ce,e.selectedDay)),qt=" ui-corner-all",Kt="",ei){if(Kt+="<div class='ui-datepicker-group",We[1]>1)switch(Ht){case 0:Kt+=" ui-datepicker-group-first",qt=" ui-corner-"+(be?"right":"left");break;case We[1]-1:Kt+=" ui-datepicker-group-last",qt=" ui-corner-"+(be?"left":"right");break;default:Kt+=" ui-datepicker-group-middle",qt=""}Kt+="'>"}for(Kt+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+qt+"'>"+(/all|left/.test(qt)&&bt===0?be?p:o:"")+(/all|right/.test(qt)&&bt===0?be?o:p:"")+this._generateMonthYearHeader(e,ce,fe,He,Xe,bt>0||Ht>0,V,N)+"</div><table class='ui-datepicker-calendar'><thead><tr>",Vt=J?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",st=0;7>st;st++)we=(st+L)%7,Vt+="<th scope='col'"+((st+L+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+dt[we]+"'>"+Et[we]+"</span></th>";for(Kt+=Vt+"</tr></thead><tbody>",ge=this._getDaysInMonth(fe,ce),fe===e.selectedYear&&ce===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,ge)),Ne=(this._getFirstDayOfMonth(fe,ce)-L+7)%7,Ze=Math.ceil((Ne+ge)/7),Gt=ei&&this.maxRows>Ze?this.maxRows:Ze,this.maxRows=Gt,re=this._daylightSavingAdjust(new Date(fe,ce,1-Ne)),ke=0;Gt>ke;ke++){for(Kt+="<tr>",ti=J?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(re)+"</td>":"",st=0;7>st;st++)ii=tt?tt.apply(e.input?e.input[0]:null,[re]):[!0,""],Pe=re.getMonth()!==ce,li=Pe&&!X||!ii[0]||He&&He>re||Xe&&re>Xe,ti+="<td class='"+((st+L+6)%7>=5?" ui-datepicker-week-end":"")+(Pe?" ui-datepicker-other-month":"")+(re.getTime()===Zt.getTime()&&ce===e.selectedMonth&&e._keyEvent||K.getTime()===re.getTime()&&K.getTime()===Zt.getTime()?" "+this._dayOverClass:"")+(li?" "+this._unselectableClass+" ui-state-disabled":"")+(Pe&&!ot?"":" "+ii[1]+(re.getTime()===ni.getTime()?" "+this._currentClass:"")+(re.getTime()===Ce.getTime()?" ui-datepicker-today":""))+"'"+(Pe&&!ot||!ii[2]?"":" title='"+ii[2].replace(/'/g,"&#39;")+"'")+(li?"":" data-handler='selectDay' data-event='click' data-month='"+re.getMonth()+"' data-year='"+re.getFullYear()+"'")+">"+(Pe&&!ot?"&#xa0;":li?"<span class='ui-state-default'>"+re.getDate()+"</span>":"<a class='ui-state-default"+(re.getTime()===Ce.getTime()?" ui-state-highlight":"")+(re.getTime()===ni.getTime()?" ui-state-active":"")+(Pe?" ui-priority-secondary":"")+"' href='#'>"+re.getDate()+"</a>")+"</td>",re.setDate(re.getDate()+1),re=this._daylightSavingAdjust(re);Kt+=ti+"</tr>"}ce++,ce>11&&(ce=0,fe++),Kt+="</tbody></table>"+(ei?"</div>"+(We[0]>0&&Ht===We[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),$t+=Kt}at+=$t}return at+=P,e._keyEvent=!1,at},_generateMonthYearHeader:function(e,n,a,o,h,p,y,C){var D,P,L,J,dt,Et,V,N,tt=this._get(e,"changeMonth"),ot=this._get(e,"changeYear"),X=this._get(e,"showMonthAfterYear"),K="<div class='ui-datepicker-title'>",at="";if(p||!tt)at+="<span class='ui-datepicker-month'>"+y[n]+"</span>";else{for(D=o&&o.getFullYear()===a,P=h&&h.getFullYear()===a,at+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",L=0;12>L;L++)(!D||L>=o.getMonth())&&(!P||h.getMonth()>=L)&&(at+="<option value='"+L+"'"+(L===n?" selected='selected'":"")+">"+C[L]+"</option>");at+="</select>"}if(X||(K+=at+(!p&&tt&&ot?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",p||!ot)K+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(J=this._get(e,"yearRange").split(":"),dt=new Date().getFullYear(),Et=function(st){var bt=st.match(/c[+\-].*/)?a+parseInt(st.substring(1),10):st.match(/[+\-].*/)?dt+parseInt(st,10):parseInt(st,10);return isNaN(bt)?dt:bt},V=Et(J[0]),N=Math.max(V,Et(J[1]||"")),V=o?Math.max(V,o.getFullYear()):V,N=h?Math.min(N,h.getFullYear()):N,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";N>=V;V++)e.yearshtml+="<option value='"+V+"'"+(V===a?" selected='selected'":"")+">"+V+"</option>";e.yearshtml+="</select>",K+=e.yearshtml,e.yearshtml=null}return K+=this._get(e,"yearSuffix"),X&&(K+=(!p&&tt&&ot?"":"&#xa0;")+at),K+="</div>"},_adjustInstDate:function(e,n,a){var o=e.drawYear+(a==="Y"?n:0),h=e.drawMonth+(a==="M"?n:0),p=Math.min(e.selectedDay,this._getDaysInMonth(o,h))+(a==="D"?n:0),y=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(o,h,p)));e.selectedDay=y.getDate(),e.drawMonth=e.selectedMonth=y.getMonth(),e.drawYear=e.selectedYear=y.getFullYear(),(a==="M"||a==="Y")&&this._notifyChange(e)},_restrictMinMax:function(e,n){var a=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),h=a&&a>n?a:n;return o&&h>o?o:h},_notifyChange:function(e){var n=this._get(e,"onChangeMonthYear");n&&n.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var n=this._get(e,"numberOfMonths");return n==null?[1,1]:typeof n=="number"?[1,n]:n},_getMinMaxDate:function(e,n){return this._determineDate(e,this._get(e,n+"Date"),null)},_getDaysInMonth:function(e,n){return 32-this._daylightSavingAdjust(new Date(e,n,32)).getDate()},_getFirstDayOfMonth:function(e,n){return new Date(e,n,1).getDay()},_canAdjustMonth:function(e,n,a,o){var h=this._getNumberOfMonths(e),p=this._daylightSavingAdjust(new Date(a,o+(0>n?n:h[0]*h[1]),1));return 0>n&&p.setDate(this._getDaysInMonth(p.getFullYear(),p.getMonth())),this._isInRange(e,p)},_isInRange:function(e,n){var a,o,h=this._getMinMaxDate(e,"min"),p=this._getMinMaxDate(e,"max"),y=null,C=null,D=this._get(e,"yearRange");return D&&(a=D.split(":"),o=new Date().getFullYear(),y=parseInt(a[0],10),C=parseInt(a[1],10),a[0].match(/[+\-].*/)&&(y+=o),a[1].match(/[+\-].*/)&&(C+=o)),(!h||n.getTime()>=h.getTime())&&(!p||n.getTime()<=p.getTime())&&(!y||n.getFullYear()>=y)&&(!C||C>=n.getFullYear())},_getFormatConfig:function(e){var n=this._get(e,"shortYearCutoff");return n=typeof n!="string"?n:new Date().getFullYear()%100+parseInt(n,10),{shortYearCutoff:n,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,n,a,o){n||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var h=n?typeof n=="object"?n:this._daylightSavingAdjust(new Date(o,a,n)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),h,this._getFormatConfig(e))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),t("#"+t.datepicker._mainDivId).length===0&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return typeof e!="string"||e!=="isDisabled"&&e!=="getDate"&&e!=="widget"?e==="option"&&arguments.length===2&&typeof arguments[1]=="string"?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each(function(){typeof e=="string"?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new c,t.datepicker.initialized=!1,t.datepicker.uuid=new Date().getTime(),t.datepicker.version="1.11.1",t.datepicker,t.widget("ui.draggable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper!=="original"||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,n){this._super(e,n),e==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(e){var n=this.document[0],a=this.options;try{n.activeElement&&n.activeElement.nodeName.toLowerCase()!=="body"&&t(n.activeElement).blur()}catch(o){}return this.helper||a.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(a.iframeFix===!0?"iframe":a.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,n){if(this.offsetParentCssPosition==="fixed"&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var a=this._uiHash();if(this._trigger("drag",e,a)===!1)return this._mouseUp({}),!1;this.position=a.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,a=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(a=t.ui.ddmanager.drop(this,e)),this.dropped&&(a=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!a||this.options.revert==="valid"&&a||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,a)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){n._trigger("stop",e)!==!1&&n._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var n=this.options,a=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e])):n.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return a.parents("body").length||a.appendTo(n.appendTo==="parent"?this.element[0].parentNode:n.appendTo),a[0]===this.element[0]||/(fixed|absolute)/.test(a.css("position"))||a.css("position","absolute"),a},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var e=this.element.position(),n=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(n?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(n?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,a,o=this.options,h=this.document[0];return this.relativeContainer=null,o.containment?o.containment==="window"?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||h.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):o.containment==="document"?(this.containment=[0,0,t(h).width()-this.helperProportions.width-this.margins.left,(t(h).height()||h.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):o.containment.constructor===Array?(this.containment=o.containment,void 0):(o.containment==="parent"&&(o.containment=this.helper[0].parentNode),n=t(o.containment),a=n[0],a&&(e=n.css("overflow")!=="hidden",this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(a.scrollWidth,a.offsetWidth):a.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(a.scrollHeight,a.offsetHeight):a.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n),void 0):(this.containment=null,void 0)},_convertPositionTo:function(e,n){n||(n=this.position);var a=e==="absolute"?1:-1,o=this._isRootNode(this.scrollParent[0]);return{top:n.top+this.offset.relative.top*a+this.offset.parent.top*a-(this.cssPosition==="fixed"?-this.offset.scroll.top:o?0:this.offset.scroll.top)*a,left:n.left+this.offset.relative.left*a+this.offset.parent.left*a-(this.cssPosition==="fixed"?-this.offset.scroll.left:o?0:this.offset.scroll.left)*a}},_generatePosition:function(e,n){var a,o,h,p,y=this.options,C=this._isRootNode(this.scrollParent[0]),D=e.pageX,P=e.pageY;return C&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),n&&(this.containment&&(this.relativeContainer?(o=this.relativeContainer.offset(),a=[this.containment[0]+o.left,this.containment[1]+o.top,this.containment[2]+o.left,this.containment[3]+o.top]):a=this.containment,e.pageX-this.offset.click.left<a[0]&&(D=a[0]+this.offset.click.left),e.pageY-this.offset.click.top<a[1]&&(P=a[1]+this.offset.click.top),e.pageX-this.offset.click.left>a[2]&&(D=a[2]+this.offset.click.left),e.pageY-this.offset.click.top>a[3]&&(P=a[3]+this.offset.click.top)),y.grid&&(h=y.grid[1]?this.originalPageY+Math.round((P-this.originalPageY)/y.grid[1])*y.grid[1]:this.originalPageY,P=a?h-this.offset.click.top>=a[1]||h-this.offset.click.top>a[3]?h:h-this.offset.click.top>=a[1]?h-y.grid[1]:h+y.grid[1]:h,p=y.grid[0]?this.originalPageX+Math.round((D-this.originalPageX)/y.grid[0])*y.grid[0]:this.originalPageX,D=a?p-this.offset.click.left>=a[0]||p-this.offset.click.left>a[2]?p:p-this.offset.click.left>=a[0]?p-y.grid[0]:p+y.grid[0]:p),y.axis==="y"&&(D=this.originalPageX),y.axis==="x"&&(P=this.originalPageY)),{top:P-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:C?0:this.offset.scroll.top),left:D-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:C?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,a){return a=a||this._uiHash(),t.ui.plugin.call(this,e,[n,a,this],!0),e==="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,n,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,a){var o=a.options,h=t.extend({},n,{item:a.element});a.sortables=[],t(o.connectToSortable).each(function(){var p=t(this).sortable("instance");p&&!p.options.disabled&&(a.sortables.push({instance:p,shouldRevert:p.options.revert}),p.refreshPositions(),p._trigger("activate",e,h))})},stop:function(e,n,a){var o=t.extend({},n,{item:a.element});t.each(a.sortables,function(){this.instance.isOver?(this.instance.isOver=0,a.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,a.options.helper==="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))})},drag:function(e,n,a){var o=this;t.each(a.sortables,function(){var h=!1,p=this;this.instance.positionAbs=a.positionAbs,this.instance.helperProportions=a.helperProportions,this.instance.offset.click=a.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(h=!0,t.each(a.sortables,function(){return this.instance.positionAbs=a.positionAbs,this.instance.helperProportions=a.helperProportions,this.instance.offset.click=a.offset.click,this!==p&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(p.instance.element[0],this.instance.element[0])&&(h=!1),h})),h?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return n.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=a.offset.click.top,this.instance.offset.click.left=a.offset.click.left,this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top,a._trigger("toSortable",e),a.dropped=this.instance.element,a.currentItem=a.element,this.instance.fromOutside=a),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),a._trigger("fromSortable",e),a.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,a){var o=t("body"),h=a.options;o.css("cursor")&&(h._cursor=o.css("cursor")),o.css("cursor",h.cursor)},stop:function(e,n,a){var o=a.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,a){var o=t(n.helper),h=a.options;o.css("opacity")&&(h._opacity=o.css("opacity")),o.css("opacity",h.opacity)},stop:function(e,n,a){var o=a.options;o._opacity&&t(n.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(e,n,a){a.scrollParentNotHidden||(a.scrollParentNotHidden=a.helper.scrollParent(!1)),a.scrollParentNotHidden[0]!==a.document[0]&&a.scrollParentNotHidden[0].tagName!=="HTML"&&(a.overflowOffset=a.scrollParentNotHidden.offset())},drag:function(e,n,a){var o=a.options,h=!1,p=a.scrollParentNotHidden[0],y=a.document[0];p!==y&&p.tagName!=="HTML"?(o.axis&&o.axis==="x"||(a.overflowOffset.top+p.offsetHeight-e.pageY<o.scrollSensitivity?p.scrollTop=h=p.scrollTop+o.scrollSpeed:e.pageY-a.overflowOffset.top<o.scrollSensitivity&&(p.scrollTop=h=p.scrollTop-o.scrollSpeed)),o.axis&&o.axis==="y"||(a.overflowOffset.left+p.offsetWidth-e.pageX<o.scrollSensitivity?p.scrollLeft=h=p.scrollLeft+o.scrollSpeed:e.pageX-a.overflowOffset.left<o.scrollSensitivity&&(p.scrollLeft=h=p.scrollLeft-o.scrollSpeed))):(o.axis&&o.axis==="x"||(e.pageY-t(y).scrollTop()<o.scrollSensitivity?h=t(y).scrollTop(t(y).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(y).scrollTop())<o.scrollSensitivity&&(h=t(y).scrollTop(t(y).scrollTop()+o.scrollSpeed))),o.axis&&o.axis==="y"||(e.pageX-t(y).scrollLeft()<o.scrollSensitivity?h=t(y).scrollLeft(t(y).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(y).scrollLeft())<o.scrollSensitivity&&(h=t(y).scrollLeft(t(y).scrollLeft()+o.scrollSpeed)))),h!==!1&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(a,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,a){var o=a.options;a.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var h=t(this),p=h.offset();this!==a.element[0]&&a.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:p.top,left:p.left})})},drag:function(e,n,a){var o,h,p,y,C,D,P,L,J,dt,Et=a.options,V=Et.snapTolerance,N=n.offset.left,tt=N+a.helperProportions.width,ot=n.offset.top,X=ot+a.helperProportions.height;for(J=a.snapElements.length-1;J>=0;J--)C=a.snapElements[J].left,D=C+a.snapElements[J].width,P=a.snapElements[J].top,L=P+a.snapElements[J].height,C-V>tt||N>D+V||P-V>X||ot>L+V||!t.contains(a.snapElements[J].item.ownerDocument,a.snapElements[J].item)?(a.snapElements[J].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,e,t.extend(a._uiHash(),{snapItem:a.snapElements[J].item})),a.snapElements[J].snapping=!1):(Et.snapMode!=="inner"&&(o=V>=Math.abs(P-X),h=V>=Math.abs(L-ot),p=V>=Math.abs(C-tt),y=V>=Math.abs(D-N),o&&(n.position.top=a._convertPositionTo("relative",{top:P-a.helperProportions.height,left:0}).top-a.margins.top),h&&(n.position.top=a._convertPositionTo("relative",{top:L,left:0}).top-a.margins.top),p&&(n.position.left=a._convertPositionTo("relative",{top:0,left:C-a.helperProportions.width}).left-a.margins.left),y&&(n.position.left=a._convertPositionTo("relative",{top:0,left:D}).left-a.margins.left)),dt=o||h||p||y,Et.snapMode!=="outer"&&(o=V>=Math.abs(P-ot),h=V>=Math.abs(L-X),p=V>=Math.abs(C-N),y=V>=Math.abs(D-tt),o&&(n.position.top=a._convertPositionTo("relative",{top:P,left:0}).top-a.margins.top),h&&(n.position.top=a._convertPositionTo("relative",{top:L-a.helperProportions.height,left:0}).top-a.margins.top),p&&(n.position.left=a._convertPositionTo("relative",{top:0,left:C}).left-a.margins.left),y&&(n.position.left=a._convertPositionTo("relative",{top:0,left:D-a.helperProportions.width}).left-a.margins.left)),!a.snapElements[J].snapping&&(o||h||p||y||dt)&&a.options.snap.snap&&a.options.snap.snap.call(a.element,e,t.extend(a._uiHash(),{snapItem:a.snapElements[J].item})),a.snapElements[J].snapping=o||h||p||y||dt)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,a){var o,h=a.options,p=t.makeArray(t(h.stack)).sort(function(y,C){return(parseInt(t(y).css("zIndex"),10)||0)-(parseInt(t(C).css("zIndex"),10)||0)});p.length&&(o=parseInt(t(p[0]).css("zIndex"),10)||0,t(p).each(function(y){t(this).css("zIndex",o+y)}),this.css("zIndex",o+p.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,a){var o=t(n.helper),h=a.options;o.css("zIndex")&&(h._zIndex=o.css("zIndex")),o.css("zIndex",h.zIndex)},stop:function(e,n,a){var o=a.options;o._zIndex&&t(n.helper).css("zIndex",o._zIndex)}}),t.ui.draggable,t.widget("ui.resizable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseInt(e,10)||0},_isNumber:function(e){return!isNaN(parseInt(e,10))},_hasScroll:function(e,n){if(t(e).css("overflow")==="hidden")return!1;var a=n&&n==="left"?"scrollLeft":"scrollTop",o=!1;return e[a]>0?!0:(e[a]=1,o=e[a]>0,e[a]=0,o)},_create:function(){var e,n,a,o,h,p=this,y=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!y.aspectRatio,aspectRatio:y.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:y.helper||y.ghost||y.animate?y.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=y.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},n=0;e.length>n;n++)a=t.trim(e[n]),h="ui-resizable-"+a,o=t("<div class='ui-resizable-handle "+h+"'></div>"),o.css({zIndex:y.zIndex}),a==="se"&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[a]=".ui-resizable-"+a,this.element.append(o);this._renderAxis=function(C){var D,P,L,J;C=C||this.element;for(D in this.handles)this.handles[D].constructor===String&&(this.handles[D]=this.element.children(this.handles[D]).first().show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(P=t(this.handles[D],this.element),J=/sw|ne|nw|se|n|s/.test(D)?P.outerHeight():P.outerWidth(),L=["padding",/ne|nw|n/.test(D)?"Top":/se|sw|s/.test(D)?"Bottom":/^e$/.test(D)?"Right":"Left"].join(""),C.css(L,J),this._proportionallyResize()),t(this.handles[D]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){p.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),p.axis=o&&o[1]?o[1]:"se")}),y.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){y.disabled||(t(this).removeClass("ui-resizable-autohide"),p._handles.show())}).mouseleave(function(){y.disabled||p.resizing||(t(this).addClass("ui-resizable-autohide"),p._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,n=function(a){t(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_mouseCapture:function(e){var n,a,o=!1;for(n in this.handles)a=t(this.handles[n])[0],(a===e.target||t.contains(a,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(e){var n,a,o,h=this.options,p=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),a=this._num(this.helper.css("top")),h.containment&&(n+=t(h.containment).scrollLeft()||0,a+=t(h.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:a},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:p.width(),height:p.height()},this.originalSize=this._helper?{width:p.outerWidth(),height:p.outerHeight()}:{width:p.width(),height:p.height()},this.sizeDiff={width:p.outerWidth()-p.width(),height:p.outerHeight()-p.height()},this.originalPosition={left:n,top:a},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio=typeof h.aspectRatio=="number"?h.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor",o==="auto"?this.axis+"-resize":o),p.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,a,o=this.originalMousePosition,h=this.axis,p=e.pageX-o.left||0,y=e.pageY-o.top||0,C=this._change[h];return this._updatePrevProperties(),C&&(n=C.apply(this,[e,p,y]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),a=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(a)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var n,a,o,h,p,y,C,D=this.options,P=this;return this._helper&&(n=this._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&this._hasScroll(n[0],"left")?0:P.sizeDiff.height,h=a?0:P.sizeDiff.width,p={width:P.helper.width()-h,height:P.helper.height()-o},y=parseInt(P.element.css("left"),10)+(P.position.left-P.originalPosition.left)||null,C=parseInt(P.element.css("top"),10)+(P.position.top-P.originalPosition.top)||null,D.animate||this.element.css(t.extend(p,{top:C,left:y})),P.helper.height(P.size.height),P.helper.width(P.size.width),this._helper&&!D.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var n,a,o,h,p,y=this.options;p={minWidth:this._isNumber(y.minWidth)?y.minWidth:0,maxWidth:this._isNumber(y.maxWidth)?y.maxWidth:1/0,minHeight:this._isNumber(y.minHeight)?y.minHeight:0,maxHeight:this._isNumber(y.maxHeight)?y.maxHeight:1/0},(this._aspectRatio||e)&&(n=p.minHeight*this.aspectRatio,o=p.minWidth/this.aspectRatio,a=p.maxHeight*this.aspectRatio,h=p.maxWidth/this.aspectRatio,n>p.minWidth&&(p.minWidth=n),o>p.minHeight&&(p.minHeight=o),p.maxWidth>a&&(p.maxWidth=a),p.maxHeight>h&&(p.maxHeight=h)),this._vBoundaries=p},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var n=this.position,a=this.size,o=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),o==="sw"&&(e.left=n.left+(a.width-e.width),e.top=null),o==="nw"&&(e.top=n.top+(a.height-e.height),e.left=n.left+(a.width-e.width)),e},_respectSize:function(e){var n=this._vBoundaries,a=this.axis,o=this._isNumber(e.width)&&n.maxWidth&&n.maxWidth<e.width,h=this._isNumber(e.height)&&n.maxHeight&&n.maxHeight<e.height,p=this._isNumber(e.width)&&n.minWidth&&n.minWidth>e.width,y=this._isNumber(e.height)&&n.minHeight&&n.minHeight>e.height,C=this.originalPosition.left+this.originalSize.width,D=this.position.top+this.size.height,P=/sw|nw|w/.test(a),L=/nw|ne|n/.test(a);return p&&(e.width=n.minWidth),y&&(e.height=n.minHeight),o&&(e.width=n.maxWidth),h&&(e.height=n.maxHeight),p&&P&&(e.left=C-n.minWidth),o&&P&&(e.left=C-n.maxWidth),y&&L&&(e.top=D-n.minHeight),h&&L&&(e.top=D-n.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var n=0,a=[],o=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],h=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];4>n;n++)a[n]=parseInt(o[n],10)||0,a[n]+=parseInt(h[n],10)||0;return{height:a[0]+a[2],width:a[1]+a[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,n=0,a=this.helper||this.element;this._proportionallyResizeElements.length>n;n++)e=this._proportionallyResizeElements[n],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:a.height()-this.outerDimensions.height||0,width:a.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,n){return{width:this.originalSize.width+n}},w:function(e,n){var a=this.originalSize,o=this.originalPosition;return{left:o.left+n,width:a.width-n}},n:function(e,n,a){var o=this.originalSize,h=this.originalPosition;return{top:h.top+a,height:o.height-a}},s:function(e,n,a){return{height:this.originalSize.height+a}},se:function(e,n,a){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,a]))},sw:function(e,n,a){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,a]))},ne:function(e,n,a){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,a]))},nw:function(e,n,a){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,a]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),e!=="resize"&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),a=n.options,o=n._proportionallyResizeElements,h=o.length&&/textarea/i.test(o[0].nodeName),p=h&&n._hasScroll(o[0],"left")?0:n.sizeDiff.height,y=h?0:n.sizeDiff.width,C={width:n.size.width-y,height:n.size.height-p},D=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,P=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(C,P&&D?{top:P,left:D}:{}),{duration:a.animateDuration,easing:a.animateEasing,step:function(){var L={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:L.width,height:L.height}),n._updateCache(L),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,a,o,h,p,y,C=t(this).resizable("instance"),D=C.options,P=C.element,L=D.containment,J=L instanceof t?L.get(0):/parent/.test(L)?P.parent().get(0):L;J&&(C.containerElement=t(J),/document/.test(L)||L===document?(C.containerOffset={left:0,top:0},C.containerPosition={left:0,top:0},C.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(J),n=[],t(["Top","Right","Left","Bottom"]).each(function(dt,Et){n[dt]=C._num(e.css("padding"+Et))}),C.containerOffset=e.offset(),C.containerPosition=e.position(),C.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},a=C.containerOffset,o=C.containerSize.height,h=C.containerSize.width,p=C._hasScroll(J,"left")?J.scrollWidth:h,y=C._hasScroll(J)?J.scrollHeight:o,C.parentData={element:J,left:a.left,top:a.top,width:p,height:y}))},resize:function(e){var n,a,o,h,p=t(this).resizable("instance"),y=p.options,C=p.containerOffset,D=p.position,P=p._aspectRatio||e.shiftKey,L={top:0,left:0},J=p.containerElement,dt=!0;J[0]!==document&&/static/.test(J.css("position"))&&(L=C),D.left<(p._helper?C.left:0)&&(p.size.width=p.size.width+(p._helper?p.position.left-C.left:p.position.left-L.left),P&&(p.size.height=p.size.width/p.aspectRatio,dt=!1),p.position.left=y.helper?C.left:0),D.top<(p._helper?C.top:0)&&(p.size.height=p.size.height+(p._helper?p.position.top-C.top:p.position.top),P&&(p.size.width=p.size.height*p.aspectRatio,dt=!1),p.position.top=p._helper?C.top:0),o=p.containerElement.get(0)===p.element.parent().get(0),h=/relative|absolute/.test(p.containerElement.css("position")),o&&h?(p.offset.left=p.parentData.left+p.position.left,p.offset.top=p.parentData.top+p.position.top):(p.offset.left=p.element.offset().left,p.offset.top=p.element.offset().top),n=Math.abs(p.sizeDiff.width+(p._helper?p.offset.left-L.left:p.offset.left-C.left)),a=Math.abs(p.sizeDiff.height+(p._helper?p.offset.top-L.top:p.offset.top-C.top)),n+p.size.width>=p.parentData.width&&(p.size.width=p.parentData.width-n,P&&(p.size.height=p.size.width/p.aspectRatio,dt=!1)),a+p.size.height>=p.parentData.height&&(p.size.height=p.parentData.height-a,P&&(p.size.width=p.size.height*p.aspectRatio,dt=!1)),dt||(p.position.left=p.prevPosition.left,p.position.top=p.prevPosition.top,p.size.width=p.prevSize.width,p.size.height=p.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,a=e.containerOffset,o=e.containerPosition,h=e.containerElement,p=t(e.helper),y=p.offset(),C=p.outerWidth()-e.sizeDiff.width,D=p.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(h.css("position"))&&t(this).css({left:y.left-o.left-a.left,width:C,height:D}),e._helper&&!n.animate&&/static/.test(h.css("position"))&&t(this).css({left:y.left-o.left-a.left,width:C,height:D})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),n=e.options,a=function(o){t(o).each(function(){var h=t(this);h.data("ui-resizable-alsoresize",{width:parseInt(h.width(),10),height:parseInt(h.height(),10),left:parseInt(h.css("left"),10),top:parseInt(h.css("top"),10)})})};typeof n.alsoResize!="object"||n.alsoResize.parentNode?a(n.alsoResize):n.alsoResize.length?(n.alsoResize=n.alsoResize[0],a(n.alsoResize)):t.each(n.alsoResize,function(o){a(o)})},resize:function(e,n){var a=t(this).resizable("instance"),o=a.options,h=a.originalSize,p=a.originalPosition,y={height:a.size.height-h.height||0,width:a.size.width-h.width||0,top:a.position.top-p.top||0,left:a.position.left-p.left||0},C=function(D,P){t(D).each(function(){var L=t(this),J=t(this).data("ui-resizable-alsoresize"),dt={},Et=P&&P.length?P:L.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(Et,function(V,N){var tt=(J[N]||0)+(y[N]||0);tt&&tt>=0&&(dt[N]=tt||null)}),L.css(dt)})};typeof o.alsoResize!="object"||o.alsoResize.nodeType?C(o.alsoResize):t.each(o.alsoResize,function(D,P){C(D,P)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.options,a=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof n.ghost=="string"?n.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),a=n.options,o=n.size,h=n.originalSize,p=n.originalPosition,y=n.axis,C=typeof a.grid=="number"?[a.grid,a.grid]:a.grid,D=C[0]||1,P=C[1]||1,L=Math.round((o.width-h.width)/D)*D,J=Math.round((o.height-h.height)/P)*P,dt=h.width+L,Et=h.height+J,V=a.maxWidth&&dt>a.maxWidth,N=a.maxHeight&&Et>a.maxHeight,tt=a.minWidth&&a.minWidth>dt,ot=a.minHeight&&a.minHeight>Et;a.grid=C,tt&&(dt+=D),ot&&(Et+=P),V&&(dt-=D),N&&(Et-=P),/^(se|s|e)$/.test(y)?(n.size.width=dt,n.size.height=Et):/^(ne)$/.test(y)?(n.size.width=dt,n.size.height=Et,n.position.top=p.top-J):/^(sw)$/.test(y)?(n.size.width=dt,n.size.height=Et,n.position.left=p.left-L):((0>=Et-P||0>=dt-D)&&(e=n._getPaddingPlusBorderDimensions(this)),Et-P>0?(n.size.height=Et,n.position.top=p.top-J):(Et=P-e.height,n.size.height=Et,n.position.top=p.top+h.height-Et),dt-D>0?(n.size.width=dt,n.position.left=p.left-L):(dt=P-e.height,n.size.width=dt,n.position.left=p.left+h.width-dt))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.11.1",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;0>n&&t(this).css("top",e.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var e,n=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=n.parent.children().eq(n.index),e.length&&e[0]!==this.element[0]?e.before(this.element):n.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var n,a=this;if(this._isOpen&&this._trigger("beforeClose",e)!==!1){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{n=this.document[0].activeElement,n&&n.nodeName.toLowerCase()!=="body"&&t(n).blur()}catch(o){}this._hide(this.uiDialog,this.options.hide,function(){a._trigger("close",e)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,n){var a=!1,o=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),h=Math.max.apply(null,o);return h>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",h+1),a=!0),a&&!n&&this._trigger("focus",e),a},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).focus()},_keepFocus:function(e){function n(){var a=this.document[0].activeElement,o=this.uiDialog[0]===a||t.contains(this.uiDialog[0],a);o||this._focusTabbable()}e.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),a=n.filter(":first"),o=n.filter(":last");e.target!==o[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==a[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){o.focus()}),e.preventDefault()):(this._delay(function(){a.focus()}),e.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(n){t(n.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault(),this.close(n)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){this.options.title||e.html("&#160;"),e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,n=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(n)||t.isArray(n)&&!n.length?(this.uiDialog.removeClass("ui-dialog-buttons"),void 0):(t.each(n,function(a,o){var h,p;o=t.isFunction(o)?{click:o,text:a}:o,o=t.extend({type:"button"},o),h=o.click,o.click=function(){h.apply(e.element[0],arguments)},p={icons:o.icons,text:o.showText},delete o.icons,delete o.showText,t("<button></button>",o).button(p).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function e(o){return{position:o.position,offset:o.offset}}var n=this,a=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(o,h){t(this).addClass("ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",o,e(h))},drag:function(o,h){n._trigger("drag",o,e(h))},stop:function(o,h){var p=h.offset.left-n.document.scrollLeft(),y=h.offset.top-n.document.scrollTop();a.position={my:"left top",at:"left"+(p>=0?"+":"")+p+" top"+(y>=0?"+":"")+y,of:n.window},t(this).removeClass("ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",o,e(h))}})},_makeResizable:function(){function e(y){return{originalPosition:y.originalPosition,originalSize:y.originalSize,position:y.position,size:y.size}}var n=this,a=this.options,o=a.resizable,h=this.uiDialog.css("position"),p=typeof o=="string"?o:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:p,start:function(y,C){t(this).addClass("ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",y,e(C))},resize:function(y,C){n._trigger("resize",y,e(C))},stop:function(y,C){var D=n.uiDialog.offset(),P=D.left-n.document.scrollLeft(),L=D.top-n.document.scrollTop();a.height=n.uiDialog.height(),a.width=n.uiDialog.width(),a.position={my:"left top",at:"left"+(P>=0?"+":"")+P+" top"+(L>=0?"+":"")+L,of:n.window},t(this).removeClass("ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",y,e(C))}}).css("position",h)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),n=t.inArray(this,e);n!==-1&&e.splice(n,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(e){var n=this,a=!1,o={};t.each(e,function(h,p){n._setOption(h,p),h in n.sizeRelatedOptions&&(a=!0),h in n.resizableRelatedOptions&&(o[h]=p)}),a&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,n){var a,o,h=this.uiDialog;e==="dialogClass"&&h.removeClass(this.options.dialogClass).addClass(n),e!=="disabled"&&(this._super(e,n),e==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),e==="buttons"&&this._createButtons(),e==="closeText"&&this.uiDialogTitlebarClose.button({label:""+n}),e==="draggable"&&(a=h.is(":data(ui-draggable)"),a&&!n&&h.draggable("destroy"),!a&&n&&this._makeDraggable()),e==="position"&&this._position(),e==="resizable"&&(o=h.is(":data(ui-resizable)"),o&&!n&&h.resizable("destroy"),o&&typeof n=="string"&&h.resizable("option","handles",n),o||n===!1||this._makeResizable()),e==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,n,a,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),e=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),n=Math.max(0,o.minHeight-e),a=typeof o.maxHeight=="number"?Math.max(0,o.maxHeight-e):"none",o.height==="auto"?this.element.css({minHeight:n,maxHeight:a,height:"auto"}):this.element.height(Math.max(0,o.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(n){e||this._allowInteraction(n)||(n.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),t.widget("ui.droppable",{version:"1.11.1",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,a=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(a)?a:function(o){return o.is(a)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(n.scope),n.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var n=0;e.length>n;n++)e[n]===this&&e.splice(n,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,n){if(e==="accept")this.accept=t.isFunction(n)?n:function(o){return o.is(n)};else if(e==="scope"){var a=t.ui.ddmanager.droppables[this.options.scope];this._splice(a),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var a=n||t.ui.ddmanager.current,o=!1;return a&&(a.currentItem||a.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var h=t(this).droppable("instance");return h.options.greedy&&!h.options.disabled&&h.options.scope===a.options.scope&&h.accept.call(h.element[0],a.currentItem||a.element)&&t.ui.intersect(a,t.extend(h,{offset:h.element.offset()}),h.options.tolerance,e)?(o=!0,!1):void 0}),o?!1:this.accept.call(this.element[0],a.currentItem||a.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(a)),this.element):!1):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),t.ui.intersect=function(){function e(n,a,o){return n>=a&&a+o>n}return function(n,a,o,h){if(!a.offset)return!1;var p=(n.positionAbs||n.position.absolute).left,y=(n.positionAbs||n.position.absolute).top,C=p+n.helperProportions.width,D=y+n.helperProportions.height,P=a.offset.left,L=a.offset.top,J=P+a.proportions().width,dt=L+a.proportions().height;switch(o){case"fit":return p>=P&&J>=C&&y>=L&&dt>=D;case"intersect":return p+n.helperProportions.width/2>P&&J>C-n.helperProportions.width/2&&y+n.helperProportions.height/2>L&&dt>D-n.helperProportions.height/2;case"pointer":return e(h.pageY,L,a.proportions().height)&&e(h.pageX,P,a.proportions().width);case"touch":return(y>=L&&dt>=y||D>=L&&dt>=D||L>y&&D>dt)&&(p>=P&&J>=p||C>=P&&J>=C||P>p&&C>J);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,n){var a,o,h=t.ui.ddmanager.droppables[e.options.scope]||[],p=n?n.type:null,y=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(a=0;h.length>a;a++)if(!(h[a].options.disabled||e&&!h[a].accept.call(h[a].element[0],e.currentItem||e.element))){for(o=0;y.length>o;o++)if(y[o]===h[a].element[0]){h[a].proportions().height=0;continue t}h[a].visible=h[a].element.css("display")!=="none",h[a].visible&&(p==="mousedown"&&h[a]._activate.call(h[a],n),h[a].offset=h[a].element.offset(),h[a].proportions({width:h[a].element[0].offsetWidth,height:h[a].element[0].offsetHeight}))}},drop:function(e,n){var a=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,n)&&(a=this._drop.call(this,n)||a),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),a},dragStart:function(e,n){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var a,o,h,p=t.ui.intersect(e,this,this.options.tolerance,n),y=!p&&this.isover?"isout":p&&!this.isover?"isover":null;y&&(this.options.greedy&&(o=this.options.scope,h=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===o}),h.length&&(a=t(h[0]).droppable("instance"),a.greedyChild=y==="isover")),a&&y==="isover"&&(a.isover=!1,a.isout=!0,a._out.call(a,n)),this[y]=!0,this[y==="isout"?"isover":"isout"]=!1,this[y==="isover"?"_over":"_out"].call(this,n),a&&y==="isout"&&(a.isout=!1,a.isover=!0,a._over.call(a,n)))}})},dragStop:function(e,n){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},t.ui.droppable;var G="ui-effects-",wt=t;t.effects={effect:{}},function(e,n){function a(N,tt,ot){var X=J[tt.type]||{};return N==null?ot||!tt.def?null:tt.def:(N=X.floor?~~N:parseFloat(N),isNaN(N)?tt.def:X.mod?(N+X.mod)%X.mod:0>N?0:N>X.max?X.max:N)}function o(N){var tt=P(),ot=tt._rgba=[];return N=N.toLowerCase(),V(D,function(X,K){var at,st=K.re.exec(N),bt=st&&K.parse(st),$t=K.space||"rgba";return bt?(at=tt[$t](bt),tt[L[$t].cache]=at[L[$t].cache],ot=tt._rgba=at._rgba,!1):n}),ot.length?(ot.join()==="0,0,0,0"&&e.extend(ot,p.transparent),tt):p[N]}function h(N,tt,ot){return ot=(ot+1)%1,1>6*ot?N+6*(tt-N)*ot:1>2*ot?tt:2>3*ot?N+6*(tt-N)*(2/3-ot):N}var p,y="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",C=/^([\-+])=\s*(\d+\.?\d*)/,D=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(N){return[N[1],N[2],N[3],N[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(N){return[2.55*N[1],2.55*N[2],2.55*N[3],N[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(N){return[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(N){return[parseInt(N[1]+N[1],16),parseInt(N[2]+N[2],16),parseInt(N[3]+N[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(N){return[N[1],N[2]/100,N[3]/100,N[4]]}}],P=e.Color=function(N,tt,ot,X){return new e.Color.fn.parse(N,tt,ot,X)},L={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},J={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},dt=P.support={},Et=e("<p>")[0],V=e.each;Et.style.cssText="background-color:rgba(1,1,1,.5)",dt.rgba=Et.style.backgroundColor.indexOf("rgba")>-1,V(L,function(N,tt){tt.cache="_"+N,tt.props.alpha={idx:3,type:"percent",def:1}}),P.fn=e.extend(P.prototype,{parse:function(N,tt,ot,X){if(N===n)return this._rgba=[null,null,null,null],this;(N.jquery||N.nodeType)&&(N=e(N).css(tt),tt=n);var K=this,at=e.type(N),st=this._rgba=[];return tt!==n&&(N=[N,tt,ot,X],at="array"),at==="string"?this.parse(o(N)||p._default):at==="array"?(V(L.rgba.props,function(bt,$t){st[$t.idx]=a(N[$t.idx],$t)}),this):at==="object"?(N instanceof P?V(L,function(bt,$t){N[$t.cache]&&(K[$t.cache]=N[$t.cache].slice())}):V(L,function(bt,$t){var Ht=$t.cache;V($t.props,function(Zt,qt){if(!K[Ht]&&$t.to){if(Zt==="alpha"||N[Zt]==null)return;K[Ht]=$t.to(K._rgba)}K[Ht][qt.idx]=a(N[Zt],qt,!0)}),K[Ht]&&0>e.inArray(null,K[Ht].slice(0,3))&&(K[Ht][3]=1,$t.from&&(K._rgba=$t.from(K[Ht])))}),this):n},is:function(N){var tt=P(N),ot=!0,X=this;return V(L,function(K,at){var st,bt=tt[at.cache];return bt&&(st=X[at.cache]||at.to&&at.to(X._rgba)||[],V(at.props,function($t,Ht){return bt[Ht.idx]!=null?ot=bt[Ht.idx]===st[Ht.idx]:n})),ot}),ot},_space:function(){var N=[],tt=this;return V(L,function(ot,X){tt[X.cache]&&N.push(ot)}),N.pop()},transition:function(N,tt){var ot=P(N),X=ot._space(),K=L[X],at=this.alpha()===0?P("transparent"):this,st=at[K.cache]||K.to(at._rgba),bt=st.slice();return ot=ot[K.cache],V(K.props,function($t,Ht){var Zt=Ht.idx,qt=st[Zt],Kt=ot[Zt],Vt=J[Ht.type]||{};Kt!==null&&(qt===null?bt[Zt]=Kt:(Vt.mod&&(Kt-qt>Vt.mod/2?qt+=Vt.mod:qt-Kt>Vt.mod/2&&(qt-=Vt.mod)),bt[Zt]=a((Kt-qt)*tt+qt,Ht)))}),this[X](bt)},blend:function(N){if(this._rgba[3]===1)return this;var tt=this._rgba.slice(),ot=tt.pop(),X=P(N)._rgba;return P(e.map(tt,function(K,at){return(1-ot)*X[at]+ot*K}))},toRgbaString:function(){var N="rgba(",tt=e.map(this._rgba,function(ot,X){return ot!=null?ot:X>2?1:0});return tt[3]===1&&(tt.pop(),N="rgb("),N+tt.join()+")"},toHslaString:function(){var N="hsla(",tt=e.map(this.hsla(),function(ot,X){return ot==null&&(ot=X>2?1:0),X&&3>X&&(ot=Math.round(100*ot)+"%"),ot});return tt[3]===1&&(tt.pop(),N="hsl("),N+tt.join()+")"},toHexString:function(N){var tt=this._rgba.slice(),ot=tt.pop();return N&&tt.push(~~(255*ot)),"#"+e.map(tt,function(X){return X=(X||0).toString(16),X.length===1?"0"+X:X}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),P.fn.parse.prototype=P.fn,L.hsla.to=function(N){if(N[0]==null||N[1]==null||N[2]==null)return[null,null,null,N[3]];var tt,ot,X=N[0]/255,K=N[1]/255,at=N[2]/255,st=N[3],bt=Math.max(X,K,at),$t=Math.min(X,K,at),Ht=bt-$t,Zt=bt+$t,qt=.5*Zt;return tt=$t===bt?0:X===bt?60*(K-at)/Ht+360:K===bt?60*(at-X)/Ht+120:60*(X-K)/Ht+240,ot=Ht===0?0:.5>=qt?Ht/Zt:Ht/(2-Zt),[Math.round(tt)%360,ot,qt,st!=null?st:1]},L.hsla.from=function(N){if(N[0]==null||N[1]==null||N[2]==null)return[null,null,null,N[3]];var tt=N[0]/360,ot=N[1],X=N[2],K=N[3],at=.5>=X?X*(1+ot):X+ot-X*ot,st=2*X-at;return[Math.round(255*h(st,at,tt+1/3)),Math.round(255*h(st,at,tt)),Math.round(255*h(st,at,tt-1/3)),K]},V(L,function(N,tt){var ot=tt.props,X=tt.cache,K=tt.to,at=tt.from;P.fn[N]=function(st){if(K&&!this[X]&&(this[X]=K(this._rgba)),st===n)return this[X].slice();var bt,$t=e.type(st),Ht=$t==="array"||$t==="object"?st:arguments,Zt=this[X].slice();return V(ot,function(qt,Kt){var Vt=Ht[$t==="object"?qt:Kt.idx];Vt==null&&(Vt=Zt[Kt.idx]),Zt[Kt.idx]=a(Vt,Kt)}),at?(bt=P(at(Zt)),bt[X]=Zt,bt):P(Zt)},V(ot,function(st,bt){P.fn[st]||(P.fn[st]=function($t){var Ht,Zt=e.type($t),qt=st==="alpha"?this._hsla?"hsla":"rgba":N,Kt=this[qt](),Vt=Kt[bt.idx];return Zt==="undefined"?Vt:(Zt==="function"&&($t=$t.call(this,Vt),Zt=e.type($t)),$t==null&&bt.empty?this:(Zt==="string"&&(Ht=C.exec($t),Ht&&($t=Vt+parseFloat(Ht[2])*(Ht[1]==="+"?1:-1))),Kt[bt.idx]=$t,this[qt](Kt)))})})}),P.hook=function(N){var tt=N.split(" ");V(tt,function(ot,X){e.cssHooks[X]={set:function(K,at){var st,bt,$t="";if(at!=="transparent"&&(e.type(at)!=="string"||(st=o(at)))){if(at=P(st||at),!dt.rgba&&at._rgba[3]!==1){for(bt=X==="backgroundColor"?K.parentNode:K;($t===""||$t==="transparent")&&bt&&bt.style;)try{$t=e.css(bt,"backgroundColor"),bt=bt.parentNode}catch(Ht){}at=at.blend($t&&$t!=="transparent"?$t:"_default")}at=at.toRgbaString()}try{K.style[X]=at}catch(Ht){}}},e.fx.step[X]=function(K){K.colorInit||(K.start=P(K.elem,X),K.end=P(K.end),K.colorInit=!0),e.cssHooks[X].set(K.elem,K.start.transition(K.end,K.pos))}})},P.hook(y),e.cssHooks.borderColor={expand:function(N){var tt={};return V(["Top","Right","Bottom","Left"],function(ot,X){tt["border"+X+"Color"]=N}),tt}},p=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(wt),function(){function e(h){var p,y,C=h.ownerDocument.defaultView?h.ownerDocument.defaultView.getComputedStyle(h,null):h.currentStyle,D={};if(C&&C.length&&C[0]&&C[C[0]])for(y=C.length;y--;)p=C[y],typeof C[p]=="string"&&(D[t.camelCase(p)]=C[p]);else for(p in C)typeof C[p]=="string"&&(D[p]=C[p]);return D}function n(h,p){var y,C,D={};for(y in p)C=p[y],h[y]!==C&&(o[y]||(t.fx.step[y]||!isNaN(parseFloat(C)))&&(D[y]=C));return D}var a=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(h,p){t.fx.step[p]=function(y){(y.end!=="none"&&!y.setAttr||y.pos===1&&!y.setAttr)&&(wt.style(y.elem,p,y.end),y.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(h){return this.add(h==null?this.prevObject:this.prevObject.filter(h))}),t.effects.animateClass=function(h,p,y,C){var D=t.speed(p,y,C);return this.queue(function(){var P,L=t(this),J=L.attr("class")||"",dt=D.children?L.find("*").addBack():L;dt=dt.map(function(){var Et=t(this);return{el:Et,start:e(this)}}),P=function(){t.each(a,function(Et,V){h[V]&&L[V+"Class"](h[V])})},P(),dt=dt.map(function(){return this.end=e(this.el[0]),this.diff=n(this.start,this.end),this}),L.attr("class",J),dt=dt.map(function(){var Et=this,V=t.Deferred(),N=t.extend({},D,{queue:!1,complete:function(){V.resolve(Et)}});return this.el.animate(this.diff,N),V.promise()}),t.when.apply(t,dt.get()).done(function(){P(),t.each(arguments,function(){var Et=this.el;t.each(this.diff,function(V){Et.css(V,"")})}),D.complete.call(L[0])})})},t.fn.extend({addClass:function(h){return function(p,y,C,D){return y?t.effects.animateClass.call(this,{add:p},y,C,D):h.apply(this,arguments)}}(t.fn.addClass),removeClass:function(h){return function(p,y,C,D){return arguments.length>1?t.effects.animateClass.call(this,{remove:p},y,C,D):h.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(h){return function(p,y,C,D,P){return typeof y=="boolean"||y===void 0?C?t.effects.animateClass.call(this,y?{add:p}:{remove:p},C,D,P):h.apply(this,arguments):t.effects.animateClass.call(this,{toggle:p},y,C,D)}}(t.fn.toggleClass),switchClass:function(h,p,y,C,D){return t.effects.animateClass.call(this,{add:p,remove:h},y,C,D)}})}(),function(){function e(a,o,h,p){return t.isPlainObject(a)&&(o=a,a=a.effect),a={effect:a},o==null&&(o={}),t.isFunction(o)&&(p=o,h=null,o={}),(typeof o=="number"||t.fx.speeds[o])&&(p=h,h=o,o={}),t.isFunction(h)&&(p=h,h=null),o&&t.extend(a,o),h=h||o.duration,a.duration=t.fx.off?0:typeof h=="number"?h:h in t.fx.speeds?t.fx.speeds[h]:t.fx.speeds._default,a.complete=p||o.complete,a}function n(a){return!a||typeof a=="number"||t.fx.speeds[a]?!0:typeof a!="string"||t.effects.effect[a]?t.isFunction(a)?!0:!(typeof a!="object"||a.effect):!0}t.extend(t.effects,{version:"1.11.1",save:function(a,o){for(var h=0;o.length>h;h++)o[h]!==null&&a.data(G+o[h],a[0].style[o[h]])},restore:function(a,o){var h,p;for(p=0;o.length>p;p++)o[p]!==null&&(h=a.data(G+o[p]),h===void 0&&(h=""),a.css(o[p],h))},setMode:function(a,o){return o==="toggle"&&(o=a.is(":hidden")?"show":"hide"),o},getBaseline:function(a,o){var h,p;switch(a[0]){case"top":h=0;break;case"middle":h=.5;break;case"bottom":h=1;break;default:h=a[0]/o.height}switch(a[1]){case"left":p=0;break;case"center":p=.5;break;case"right":p=1;break;default:p=a[1]/o.width}return{x:p,y:h}},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var o={width:a.outerWidth(!0),height:a.outerHeight(!0),float:a.css("float")},h=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),p={width:a.width(),height:a.height()},y=document.activeElement;try{y.id}catch(C){y=document.body}return a.wrap(h),(a[0]===y||t.contains(a[0],y))&&t(y).focus(),h=a.parent(),a.css("position")==="static"?(h.css({position:"relative"}),a.css({position:"relative"})):(t.extend(o,{position:a.css("position"),zIndex:a.css("z-index")}),t.each(["top","left","bottom","right"],function(C,D){o[D]=a.css(D),isNaN(parseInt(o[D],10))&&(o[D]="auto")}),a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),a.css(p),h.css(o).show()},removeWrapper:function(a){var o=document.activeElement;return a.parent().is(".ui-effects-wrapper")&&(a.parent().replaceWith(a),(a[0]===o||t.contains(a[0],o))&&t(o).focus()),a},setTransition:function(a,o,h,p){return p=p||{},t.each(o,function(y,C){var D=a.cssUnit(C);D[0]>0&&(p[C]=D[0]*h+D[1])}),p}}),t.fn.extend({effect:function(){function a(C){function D(){t.isFunction(L)&&L.call(P[0]),t.isFunction(C)&&C()}var P=t(this),L=o.complete,J=o.mode;(P.is(":hidden")?J==="hide":J==="show")?(P[J](),D()):y.call(P[0],o,D)}var o=e.apply(this,arguments),h=o.mode,p=o.queue,y=t.effects.effect[o.effect];return t.fx.off||!y?h?this[h](o.duration,o.complete):this.each(function(){o.complete&&o.complete.call(this)}):p===!1?this.each(a):this.queue(p||"fx",a)},show:function(a){return function(o){if(n(o))return a.apply(this,arguments);var h=e.apply(this,arguments);return h.mode="show",this.effect.call(this,h)}}(t.fn.show),hide:function(a){return function(o){if(n(o))return a.apply(this,arguments);var h=e.apply(this,arguments);return h.mode="hide",this.effect.call(this,h)}}(t.fn.hide),toggle:function(a){return function(o){if(n(o)||typeof o=="boolean")return a.apply(this,arguments);var h=e.apply(this,arguments);return h.mode="toggle",this.effect.call(this,h)}}(t.fn.toggle),cssUnit:function(a){var o=this.css(a),h=[];return t.each(["em","px","%","pt"],function(p,y){o.indexOf(y)>0&&(h=[parseFloat(o),y])}),h}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,a){e[a]=function(o){return Math.pow(o,n+2)}}),t.extend(e,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var a,o=4;((a=Math.pow(2,--o))-1)/11>n;);return 1/Math.pow(4,3-o)-7.5625*Math.pow((3*a-2)/22-n,2)}}),t.each(e,function(n,a){t.easing["easeIn"+n]=a,t.easing["easeOut"+n]=function(o){return 1-a(1-o)},t.easing["easeInOut"+n]=function(o){return .5>o?a(2*o)/2:1-a(-2*o+2)/2}})}(),t.effects,t.effects.effect.blind=function(e,n){var a,o,h,p=t(this),y=/up|down|vertical/,C=/up|left|vertical|horizontal/,D=["position","top","bottom","left","right","height","width"],P=t.effects.setMode(p,e.mode||"hide"),L=e.direction||"up",J=y.test(L),dt=J?"height":"width",Et=J?"top":"left",V=C.test(L),N={},tt=P==="show";p.parent().is(".ui-effects-wrapper")?t.effects.save(p.parent(),D):t.effects.save(p,D),p.show(),a=t.effects.createWrapper(p).css({overflow:"hidden"}),o=a[dt](),h=parseFloat(a.css(Et))||0,N[dt]=tt?o:0,V||(p.css(J?"bottom":"right",0).css(J?"top":"left","auto").css({position:"absolute"}),N[Et]=tt?h:o+h),tt&&(a.css(dt,0),V||a.css(Et,h+o)),a.animate(N,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){P==="hide"&&p.hide(),t.effects.restore(p,D),t.effects.removeWrapper(p),n()}})},t.effects.effect.bounce=function(e,n){var a,o,h,p=t(this),y=["position","top","bottom","left","right","height","width"],C=t.effects.setMode(p,e.mode||"effect"),D=C==="hide",P=C==="show",L=e.direction||"up",J=e.distance,dt=e.times||5,Et=2*dt+(P||D?1:0),V=e.duration/Et,N=e.easing,tt=L==="up"||L==="down"?"top":"left",ot=L==="up"||L==="left",X=p.queue(),K=X.length;for((P||D)&&y.push("opacity"),t.effects.save(p,y),p.show(),t.effects.createWrapper(p),J||(J=p[tt==="top"?"outerHeight":"outerWidth"]()/3),P&&(h={opacity:1},h[tt]=0,p.css("opacity",0).css(tt,ot?2*-J:2*J).animate(h,V,N)),D&&(J/=Math.pow(2,dt-1)),h={},h[tt]=0,a=0;dt>a;a++)o={},o[tt]=(ot?"-=":"+=")+J,p.animate(o,V,N).animate(h,V,N),J=D?2*J:J/2;D&&(o={opacity:0},o[tt]=(ot?"-=":"+=")+J,p.animate(o,V,N)),p.queue(function(){D&&p.hide(),t.effects.restore(p,y),t.effects.removeWrapper(p),n()}),K>1&&X.splice.apply(X,[1,0].concat(X.splice(K,Et+1))),p.dequeue()},t.effects.effect.clip=function(e,n){var a,o,h,p=t(this),y=["position","top","bottom","left","right","height","width"],C=t.effects.setMode(p,e.mode||"hide"),D=C==="show",P=e.direction||"vertical",L=P==="vertical",J=L?"height":"width",dt=L?"top":"left",Et={};t.effects.save(p,y),p.show(),a=t.effects.createWrapper(p).css({overflow:"hidden"}),o=p[0].tagName==="IMG"?a:p,h=o[J](),D&&(o.css(J,0),o.css(dt,h/2)),Et[J]=D?h:0,Et[dt]=D?0:h/2,o.animate(Et,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){D||p.hide(),t.effects.restore(p,y),t.effects.removeWrapper(p),n()}})},t.effects.effect.drop=function(e,n){var a,o=t(this),h=["position","top","bottom","left","right","opacity","height","width"],p=t.effects.setMode(o,e.mode||"hide"),y=p==="show",C=e.direction||"left",D=C==="up"||C==="down"?"top":"left",P=C==="up"||C==="left"?"pos":"neg",L={opacity:y?1:0};t.effects.save(o,h),o.show(),t.effects.createWrapper(o),a=e.distance||o[D==="top"?"outerHeight":"outerWidth"](!0)/2,y&&o.css("opacity",0).css(D,P==="pos"?-a:a),L[D]=(y?P==="pos"?"+=":"-=":P==="pos"?"-=":"+=")+a,o.animate(L,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){p==="hide"&&o.hide(),t.effects.restore(o,h),t.effects.removeWrapper(o),n()}})},t.effects.effect.explode=function(e,n){function a(){X.push(this),X.length===L*J&&o()}function o(){dt.css({visibility:"visible"}),t(X).remove(),V||dt.hide(),n()}var h,p,y,C,D,P,L=e.pieces?Math.round(Math.sqrt(e.pieces)):3,J=L,dt=t(this),Et=t.effects.setMode(dt,e.mode||"hide"),V=Et==="show",N=dt.show().css("visibility","hidden").offset(),tt=Math.ceil(dt.outerWidth()/J),ot=Math.ceil(dt.outerHeight()/L),X=[];for(h=0;L>h;h++)for(C=N.top+h*ot,P=h-(L-1)/2,p=0;J>p;p++)y=N.left+p*tt,D=p-(J-1)/2,dt.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-p*tt,top:-h*ot}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:tt,height:ot,left:y+(V?D*tt:0),top:C+(V?P*ot:0),opacity:V?0:1}).animate({left:y+(V?0:D*tt),top:C+(V?0:P*ot),opacity:V?1:0},e.duration||500,e.easing,a)},t.effects.effect.fade=function(e,n){var a=t(this),o=t.effects.setMode(a,e.mode||"toggle");a.animate({opacity:o},{queue:!1,duration:e.duration,easing:e.easing,complete:n})},t.effects.effect.fold=function(e,n){var a,o,h=t(this),p=["position","top","bottom","left","right","height","width"],y=t.effects.setMode(h,e.mode||"hide"),C=y==="show",D=y==="hide",P=e.size||15,L=/([0-9]+)%/.exec(P),J=!!e.horizFirst,dt=C!==J,Et=dt?["width","height"]:["height","width"],V=e.duration/2,N={},tt={};t.effects.save(h,p),h.show(),a=t.effects.createWrapper(h).css({overflow:"hidden"}),o=dt?[a.width(),a.height()]:[a.height(),a.width()],L&&(P=parseInt(L[1],10)/100*o[D?0:1]),C&&a.css(J?{height:0,width:P}:{height:P,width:0}),N[Et[0]]=C?o[0]:P,tt[Et[1]]=C?o[1]:0,a.animate(N,V,e.easing).animate(tt,V,e.easing,function(){D&&h.hide(),t.effects.restore(h,p),t.effects.removeWrapper(h),n()})},t.effects.effect.highlight=function(e,n){var a=t(this),o=["backgroundImage","backgroundColor","opacity"],h=t.effects.setMode(a,e.mode||"show"),p={backgroundColor:a.css("backgroundColor")};h==="hide"&&(p.opacity=0),t.effects.save(a,o),a.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(p,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){h==="hide"&&a.hide(),t.effects.restore(a,o),n()}})},t.effects.effect.size=function(e,n){var a,o,h,p=t(this),y=["position","top","bottom","left","right","width","height","overflow","opacity"],C=["position","top","bottom","left","right","overflow","opacity"],D=["width","height","overflow"],P=["fontSize"],L=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],J=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],dt=t.effects.setMode(p,e.mode||"effect"),Et=e.restore||dt!=="effect",V=e.scale||"both",N=e.origin||["middle","center"],tt=p.css("position"),ot=Et?y:C,X={height:0,width:0,outerHeight:0,outerWidth:0};dt==="show"&&p.show(),a={height:p.height(),width:p.width(),outerHeight:p.outerHeight(),outerWidth:p.outerWidth()},e.mode==="toggle"&&dt==="show"?(p.from=e.to||X,p.to=e.from||a):(p.from=e.from||(dt==="show"?X:a),p.to=e.to||(dt==="hide"?X:a)),h={from:{y:p.from.height/a.height,x:p.from.width/a.width},to:{y:p.to.height/a.height,x:p.to.width/a.width}},(V==="box"||V==="both")&&(h.from.y!==h.to.y&&(ot=ot.concat(L),p.from=t.effects.setTransition(p,L,h.from.y,p.from),p.to=t.effects.setTransition(p,L,h.to.y,p.to)),h.from.x!==h.to.x&&(ot=ot.concat(J),p.from=t.effects.setTransition(p,J,h.from.x,p.from),p.to=t.effects.setTransition(p,J,h.to.x,p.to))),(V==="content"||V==="both")&&h.from.y!==h.to.y&&(ot=ot.concat(P).concat(D),p.from=t.effects.setTransition(p,P,h.from.y,p.from),p.to=t.effects.setTransition(p,P,h.to.y,p.to)),t.effects.save(p,ot),p.show(),t.effects.createWrapper(p),p.css("overflow","hidden").css(p.from),N&&(o=t.effects.getBaseline(N,a),p.from.top=(a.outerHeight-p.outerHeight())*o.y,p.from.left=(a.outerWidth-p.outerWidth())*o.x,p.to.top=(a.outerHeight-p.to.outerHeight)*o.y,p.to.left=(a.outerWidth-p.to.outerWidth)*o.x),p.css(p.from),(V==="content"||V==="both")&&(L=L.concat(["marginTop","marginBottom"]).concat(P),J=J.concat(["marginLeft","marginRight"]),D=y.concat(L).concat(J),p.find("*[width]").each(function(){var K=t(this),at={height:K.height(),width:K.width(),outerHeight:K.outerHeight(),outerWidth:K.outerWidth()};Et&&t.effects.save(K,D),K.from={height:at.height*h.from.y,width:at.width*h.from.x,outerHeight:at.outerHeight*h.from.y,outerWidth:at.outerWidth*h.from.x},K.to={height:at.height*h.to.y,width:at.width*h.to.x,outerHeight:at.height*h.to.y,outerWidth:at.width*h.to.x},h.from.y!==h.to.y&&(K.from=t.effects.setTransition(K,L,h.from.y,K.from),K.to=t.effects.setTransition(K,L,h.to.y,K.to)),h.from.x!==h.to.x&&(K.from=t.effects.setTransition(K,J,h.from.x,K.from),K.to=t.effects.setTransition(K,J,h.to.x,K.to)),K.css(K.from),K.animate(K.to,e.duration,e.easing,function(){Et&&t.effects.restore(K,D)})})),p.animate(p.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){p.to.opacity===0&&p.css("opacity",p.from.opacity),dt==="hide"&&p.hide(),t.effects.restore(p,ot),Et||(tt==="static"?p.css({position:"relative",top:p.to.top,left:p.to.left}):t.each(["top","left"],function(K,at){p.css(at,function(st,bt){var $t=parseInt(bt,10),Ht=K?p.to.left:p.to.top;return bt==="auto"?Ht+"px":$t+Ht+"px"})})),t.effects.removeWrapper(p),n()}})},t.effects.effect.scale=function(e,n){var a=t(this),o=t.extend(!0,{},e),h=t.effects.setMode(a,e.mode||"effect"),p=parseInt(e.percent,10)||(parseInt(e.percent,10)===0||h==="hide"?0:100),y=e.direction||"both",C=e.origin,D={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},P={y:y!=="horizontal"?p/100:1,x:y!=="vertical"?p/100:1};o.effect="size",o.queue=!1,o.complete=n,h!=="effect"&&(o.origin=C||["middle","center"],o.restore=!0),o.from=e.from||(h==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:D),o.to={height:D.height*P.y,width:D.width*P.x,outerHeight:D.outerHeight*P.y,outerWidth:D.outerWidth*P.x},o.fade&&(h==="show"&&(o.from.opacity=0,o.to.opacity=1),h==="hide"&&(o.from.opacity=1,o.to.opacity=0)),a.effect(o)},t.effects.effect.puff=function(e,n){var a=t(this),o=t.effects.setMode(a,e.mode||"hide"),h=o==="hide",p=parseInt(e.percent,10)||150,y=p/100,C={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:o,complete:n,percent:h?p:100,from:h?C:{height:C.height*y,width:C.width*y,outerHeight:C.outerHeight*y,outerWidth:C.outerWidth*y}}),a.effect(e)},t.effects.effect.pulsate=function(e,n){var a,o=t(this),h=t.effects.setMode(o,e.mode||"show"),p=h==="show",y=h==="hide",C=p||h==="hide",D=2*(e.times||5)+(C?1:0),P=e.duration/D,L=0,J=o.queue(),dt=J.length;for((p||!o.is(":visible"))&&(o.css("opacity",0).show(),L=1),a=1;D>a;a++)o.animate({opacity:L},P,e.easing),L=1-L;o.animate({opacity:L},P,e.easing),o.queue(function(){y&&o.hide(),n()}),dt>1&&J.splice.apply(J,[1,0].concat(J.splice(dt,D+1))),o.dequeue()},t.effects.effect.shake=function(e,n){var a,o=t(this),h=["position","top","bottom","left","right","height","width"],p=t.effects.setMode(o,e.mode||"effect"),y=e.direction||"left",C=e.distance||20,D=e.times||3,P=2*D+1,L=Math.round(e.duration/P),J=y==="up"||y==="down"?"top":"left",dt=y==="up"||y==="left",Et={},V={},N={},tt=o.queue(),ot=tt.length;for(t.effects.save(o,h),o.show(),t.effects.createWrapper(o),Et[J]=(dt?"-=":"+=")+C,V[J]=(dt?"+=":"-=")+2*C,N[J]=(dt?"-=":"+=")+2*C,o.animate(Et,L,e.easing),a=1;D>a;a++)o.animate(V,L,e.easing).animate(N,L,e.easing);o.animate(V,L,e.easing).animate(Et,L/2,e.easing).queue(function(){p==="hide"&&o.hide(),t.effects.restore(o,h),t.effects.removeWrapper(o),n()}),ot>1&&tt.splice.apply(tt,[1,0].concat(tt.splice(ot,P+1))),o.dequeue()},t.effects.effect.slide=function(e,n){var a,o=t(this),h=["position","top","bottom","left","right","width","height"],p=t.effects.setMode(o,e.mode||"show"),y=p==="show",C=e.direction||"left",D=C==="up"||C==="down"?"top":"left",P=C==="up"||C==="left",L={};t.effects.save(o,h),o.show(),a=e.distance||o[D==="top"?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(o).css({overflow:"hidden"}),y&&o.css(D,P?isNaN(a)?"-"+a:-a:a),L[D]=(y?P?"+=":"-=":P?"-=":"+=")+a,o.animate(L,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){p==="hide"&&o.hide(),t.effects.restore(o,h),t.effects.removeWrapper(o),n()}})},t.effects.effect.transfer=function(e,n){var a=t(this),o=t(e.to),h=o.css("position")==="fixed",p=t("body"),y=h?p.scrollTop():0,C=h?p.scrollLeft():0,D=o.offset(),P={top:D.top-y,left:D.left-C,height:o.innerHeight(),width:o.innerWidth()},L=a.offset(),J=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:L.top-y,left:L.left-C,height:a.innerHeight(),width:a.innerWidth(),position:h?"fixed":"absolute"}).animate(P,e.duration,e.easing,function(){J.remove(),n()})},t.widget("ui.progressbar",{version:"1.11.1",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return e===void 0?this.options.value:(this.options.value=this._constrainedValue(e),this._refreshValue(),void 0)},_constrainedValue:function(e){return e===void 0&&(e=this.options.value),this.indeterminate=e===!1,typeof e!="number"&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var n=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(n),this._refreshValue()},_setOption:function(e,n){e==="max"&&(n=Math.max(this.min,n)),e==="disabled"&&this.element.toggleClass("ui-state-disabled",!!n).attr("aria-disabled",n),this._super(e,n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(n.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.11.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,n=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(n.options.filter,n.element[0]),e.addClass("ui-selectee"),e.each(function(){var a=t(this),o=a.offset();t.data(this,"selectable-item",{element:this,$element:a,left:o.left,top:o.top,right:o.left+a.outerWidth(),bottom:o.top+a.outerHeight(),startselected:!1,selected:a.hasClass("ui-selected"),selecting:a.hasClass("ui-selecting"),unselecting:a.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var n=this,a=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(a.filter,this.element[0]),this._trigger("start",e),t(a.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),a.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var o=t.data(this,"selectable-item");o.startselected=!0,e.metaKey||e.ctrlKey||(o.$element.removeClass("ui-selected"),o.selected=!1,o.$element.addClass("ui-unselecting"),o.unselecting=!0,n._trigger("unselecting",e,{unselecting:o.element}))}),t(e.target).parents().addBack().each(function(){var o,h=t.data(this,"selectable-item");return h?(o=!e.metaKey&&!e.ctrlKey||!h.$element.hasClass("ui-selected"),h.$element.removeClass(o?"ui-unselecting":"ui-selected").addClass(o?"ui-selecting":"ui-unselecting"),h.unselecting=!o,h.selecting=o,h.selected=o,o?n._trigger("selecting",e,{selecting:h.element}):n._trigger("unselecting",e,{unselecting:h.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var n,a=this,o=this.options,h=this.opos[0],p=this.opos[1],y=e.pageX,C=e.pageY;return h>y&&(n=y,y=h,h=n),p>C&&(n=C,C=p,p=n),this.helper.css({left:h,top:p,width:y-h,height:C-p}),this.selectees.each(function(){var D=t.data(this,"selectable-item"),P=!1;D&&D.element!==a.element[0]&&(o.tolerance==="touch"?P=!(D.left>y||h>D.right||D.top>C||p>D.bottom):o.tolerance==="fit"&&(P=D.left>h&&y>D.right&&D.top>p&&C>D.bottom),P?(D.selected&&(D.$element.removeClass("ui-selected"),D.selected=!1),D.unselecting&&(D.$element.removeClass("ui-unselecting"),D.unselecting=!1),D.selecting||(D.$element.addClass("ui-selecting"),D.selecting=!0,a._trigger("selecting",e,{selecting:D.element}))):(D.selecting&&((e.metaKey||e.ctrlKey)&&D.startselected?(D.$element.removeClass("ui-selecting"),D.selecting=!1,D.$element.addClass("ui-selected"),D.selected=!0):(D.$element.removeClass("ui-selecting"),D.selecting=!1,D.startselected&&(D.$element.addClass("ui-unselecting"),D.unselecting=!0),a._trigger("unselecting",e,{unselecting:D.element}))),D.selected&&(e.metaKey||e.ctrlKey||D.startselected||(D.$element.removeClass("ui-selected"),D.selected=!1,D.$element.addClass("ui-unselecting"),D.unselecting=!0,a._trigger("unselecting",e,{unselecting:D.element})))))}),!1}},_mouseStop:function(e){var n=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var a=t.data(this,"selectable-item");a.$element.removeClass("ui-unselecting"),a.unselecting=!1,a.startselected=!1,n._trigger("unselected",e,{unselected:a.element})}),t(".ui-selecting",this.element[0]).each(function(){var a=t.data(this,"selectable-item");a.$element.removeClass("ui-selecting").addClass("ui-selected"),a.selecting=!1,a.selected=!0,a.startselected=!0,n._trigger("selected",e,{selected:a.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",{version:"1.11.1",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var e=this,n=this.element.attr("tabindex");this.label=t("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(a){this.button.focus(),a.preventDefault()}}),this.element.hide(),this.button=t("<span>",{class:"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:n||this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),t("<span>",{class:"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=t("<span>",{class:"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e.menuItems||e._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>",{class:"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(n,a){n.preventDefault(),e._select(a.item.data("ui-selectmenu-item"),n)},focus:function(n,a){var o=a.item.data("ui-selectmenu-item");e.focusIndex!=null&&o.index!==e.focusIndex&&(e._trigger("focus",n,{item:o}),e.isOpen||e._select(o,n)),e.focusIndex=o.index,e.button.attr("aria-activedescendant",e.menuItems.eq(o.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var e,n=this.element.find("option");n.length&&(this._parseOptions(n),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(e,n){var a=this,o="";t.each(n,function(h,p){p.optgroup!==o&&(t("<li>",{class:"ui-selectmenu-optgroup ui-menu-divider"+(p.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:p.optgroup}).appendTo(e),o=p.optgroup),a._renderItemData(e,p)})},_renderItemData:function(e,n){return this._renderItem(e,n).data("ui-selectmenu-item",n)},_renderItem:function(e,n){var a=t("<li>");return n.disabled&&a.addClass("ui-state-disabled"),this._setText(a,n.label),a.appendTo(e)},_setText:function(e,n){n?e.text(n):e.html("&#160;")},_move:function(e,n){var a,o,h=".ui-menu-item";this.isOpen?a=this.menuItems.eq(this.focusIndex):(a=this.menuItems.eq(this.element[0].selectedIndex),h+=":not(.ui-state-disabled)"),o=e==="first"||e==="last"?a[e==="first"?"prevAll":"nextAll"](h).eq(-1):a[e+"All"](h).eq(0),o.length&&this.menuInstance.focus(n,o)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(e))}},_buttonEvents:{mousedown:function(e){e.preventDefault()},click:"_toggle",keydown:function(e){var n=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),n=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),n=!1}n&&e.preventDefault()}},_selectFocusedItem:function(e){var n=this.menuItems.eq(this.focusIndex);n.hasClass("ui-state-disabled")||this._select(n.data("ui-selectmenu-item"),e)},_select:function(e,n){var a=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this._setText(this.buttonText,e.label),this._setAria(e),this._trigger("select",n,{item:e}),e.index!==a&&this._trigger("change",n,{item:e}),this.close(n)},_setAria:function(e){var n=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":n,"aria-activedescendant":n}),this.menu.attr("aria-activedescendant",n)},_setOption:function(e,n){e==="icons"&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(n.button),this._super(e,n),e==="appendTo"&&this.menuWrap.appendTo(this._appendTo()),e==="disabled"&&(this.menuInstance.option("disabled",n),this.button.toggleClass("ui-state-disabled",n).attr("aria-disabled",n),this.element.prop("disabled",n),n?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),e==="width"&&this._resizeButton()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;e||(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(e){var n=[];e.each(function(a,o){var h=t(o),p=h.parent("optgroup");n.push({element:h,index:a,value:h.attr("value"),label:h.text(),optgroup:p.attr("label")||"",disabled:p.prop("disabled")||h.prop("disabled")})}),this.items=n},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),t.widget("ui.slider",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,a=this.options,o=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),h="<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",p=[];for(n=a.values&&a.values.length||1,o.length>n&&(o.slice(n).remove(),o=o.slice(0,n)),e=o.length;n>e;e++)p.push(h);this.handles=o.add(t(p.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(y){t(this).data("ui-slider-handle-index",y)})},_createRange:function(){var e=this.options,n="";e.range?(e.range===!0&&(e.values?e.values.length&&e.values.length!==2?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),n="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(n+(e.range==="min"||e.range==="max"?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var n,a,o,h,p,y,C,D,P=this,L=this.options;return L.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},a=this._normValueFromMouse(n),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(J){var dt=Math.abs(a-P.values(J));(o>dt||o===dt&&(J===P._lastChangedValue||P.values(J)===L.min))&&(o=dt,h=t(this),p=J)}),y=this._start(e,p),y===!1?!1:(this._mouseSliding=!0,this._handleIndex=p,h.addClass("ui-state-active").focus(),C=h.offset(),D=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=D?{left:0,top:0}:{left:e.pageX-C.left-h.width()/2,top:e.pageY-C.top-h.height()/2-(parseInt(h.css("borderTopWidth"),10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,p,a),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var n={x:e.pageX,y:e.pageY},a=this._normValueFromMouse(n);return this._slide(e,this._handleIndex,a),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var n,a,o,h,p;return this.orientation==="horizontal"?(n=this.elementSize.width,a=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(n=this.elementSize.height,a=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),o=a/n,o>1&&(o=1),0>o&&(o=0),this.orientation==="vertical"&&(o=1-o),h=this._valueMax()-this._valueMin(),p=this._valueMin()+o*h,this._trimAlignValue(p)},_start:function(e,n){var a={handle:this.handles[n],value:this.value()};return this.options.values&&this.options.values.length&&(a.value=this.values(n),a.values=this.values()),this._trigger("start",e,a)},_slide:function(e,n,a){var o,h,p;this.options.values&&this.options.values.length?(o=this.values(n?0:1),this.options.values.length===2&&this.options.range===!0&&(n===0&&a>o||n===1&&o>a)&&(a=o),a!==this.values(n)&&(h=this.values(),h[n]=a,p=this._trigger("slide",e,{handle:this.handles[n],value:a,values:h}),o=this.values(n?0:1),p!==!1&&this.values(n,a))):a!==this.value()&&(p=this._trigger("slide",e,{handle:this.handles[n],value:a}),p!==!1&&this.value(a))},_stop:function(e,n){var a={handle:this.handles[n],value:this.value()};this.options.values&&this.options.values.length&&(a.value=this.values(n),a.values=this.values()),this._trigger("stop",e,a)},_change:function(e,n){if(!this._keySliding&&!this._mouseSliding){var a={handle:this.handles[n],value:this.value()};this.options.values&&this.options.values.length&&(a.value=this.values(n),a.values=this.values()),this._lastChangedValue=n,this._trigger("change",e,a)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,n){var a,o,h;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(a=this.options.values,o=arguments[0],h=0;a.length>h;h+=1)a[h]=this._trimAlignValue(o[h]),this._change(null,h);this._refreshValue()},_setOption:function(e,n){var a,o=0;switch(e==="range"&&this.options.range===!0&&(n==="min"?(this.options.value=this._values(0),this.options.values=null):n==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(o=this.options.values.length),e==="disabled"&&this.element.toggleClass("ui-state-disabled",!!n),this._super(e,n),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css(n==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),a=0;o>a;a+=1)this._change(null,a);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var n,a,o;if(arguments.length)return n=this.options.values[e],n=this._trimAlignValue(n);if(this.options.values&&this.options.values.length){for(a=this.options.values.slice(),o=0;a.length>o;o+=1)a[o]=this._trimAlignValue(a[o]);return a}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var n=this.options.step>0?this.options.step:1,a=(e-this._valueMin())%n,o=e-a;return 2*Math.abs(a)>=n&&(o+=a>0?n:-n),parseFloat(o.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,n,a,o,h,p=this.options.range,y=this.options,C=this,D=this._animateOff?!1:y.animate,P={};this.options.values&&this.options.values.length?this.handles.each(function(L){n=100*((C.values(L)-C._valueMin())/(C._valueMax()-C._valueMin())),P[C.orientation==="horizontal"?"left":"bottom"]=n+"%",t(this).stop(1,1)[D?"animate":"css"](P,y.animate),C.options.range===!0&&(C.orientation==="horizontal"?(L===0&&C.range.stop(1,1)[D?"animate":"css"]({left:n+"%"},y.animate),L===1&&C.range[D?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:y.animate})):(L===0&&C.range.stop(1,1)[D?"animate":"css"]({bottom:n+"%"},y.animate),L===1&&C.range[D?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:y.animate}))),e=n}):(a=this.value(),o=this._valueMin(),h=this._valueMax(),n=h!==o?100*((a-o)/(h-o)):0,P[this.orientation==="horizontal"?"left":"bottom"]=n+"%",this.handle.stop(1,1)[D?"animate":"css"](P,y.animate),p==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[D?"animate":"css"]({width:n+"%"},y.animate),p==="max"&&this.orientation==="horizontal"&&this.range[D?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:y.animate}),p==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[D?"animate":"css"]({height:n+"%"},y.animate),p==="max"&&this.orientation==="vertical"&&this.range[D?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:y.animate}))},_handleEvents:{keydown:function(e){var n,a,o,h,p=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),n=this._start(e,p),n===!1))return}switch(h=this.options.step,a=o=this.options.values&&this.options.values.length?this.values(p):this.value(),e.keyCode){case t.ui.keyCode.HOME:o=this._valueMin();break;case t.ui.keyCode.END:o=this._valueMax();break;case t.ui.keyCode.PAGE_UP:o=this._trimAlignValue(a+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:o=this._trimAlignValue(a-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(a===this._valueMax())return;o=this._trimAlignValue(a+h);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(a===this._valueMin())return;o=this._trimAlignValue(a-h)}this._slide(e,p,o)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),t(e.target).removeClass("ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,n,a){return e>=n&&n+a>e},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?e.axis==="x"||this._isFloating(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,n){this._super(e,n),e==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var a=null,o=!1,h=this;return this.reverting||this.options.disabled||this.options.type==="static"?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,h.widgetName+"-item")===h?(a=t(this),!1):void 0}),t.data(e.target,h.widgetName+"-item")===h&&(a=t(e.target)),a&&(!this.options.handle||n||(t(this.options.handle,a).find("*").addBack().each(function(){this===e.target&&(o=!0)}),o))?(this.currentItem=a,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,n,a){var o,h,p=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,p.cursorAt&&this._adjustOffsetFromHelper(p.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),p.containment&&this._setContainment(),p.cursor&&p.cursor!=="auto"&&(h=this.document.find("body"),this.storedCursor=h.css("cursor"),h.css("cursor",p.cursor),this.storedStylesheet=t("<style>*{ cursor: "+p.cursor+" !important; }</style>").appendTo(h)),p.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",p.opacity)),p.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",p.zIndex)),this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!a)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!p.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var n,a,o,h,p=this.options,y=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<p.scrollSensitivity?this.scrollParent[0].scrollTop=y=this.scrollParent[0].scrollTop+p.scrollSpeed:e.pageY-this.overflowOffset.top<p.scrollSensitivity&&(this.scrollParent[0].scrollTop=y=this.scrollParent[0].scrollTop-p.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<p.scrollSensitivity?this.scrollParent[0].scrollLeft=y=this.scrollParent[0].scrollLeft+p.scrollSpeed:e.pageX-this.overflowOffset.left<p.scrollSensitivity&&(this.scrollParent[0].scrollLeft=y=this.scrollParent[0].scrollLeft-p.scrollSpeed)):(e.pageY-t(document).scrollTop()<p.scrollSensitivity?y=t(document).scrollTop(t(document).scrollTop()-p.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<p.scrollSensitivity&&(y=t(document).scrollTop(t(document).scrollTop()+p.scrollSpeed)),e.pageX-t(document).scrollLeft()<p.scrollSensitivity?y=t(document).scrollLeft(t(document).scrollLeft()-p.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<p.scrollSensitivity&&(y=t(document).scrollLeft(t(document).scrollLeft()+p.scrollSpeed))),y!==!1&&t.ui.ddmanager&&!p.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(a=this.items[n],o=a.item[0],h=this._intersectsWithPointer(a),h&&a.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[h===1?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&(this.options.type==="semi-dynamic"?!t.contains(this.element[0],o):!0)){if(this.direction=h===1?"down":"up",this.options.tolerance!=="pointer"&&!this._intersectsWithSides(a))break;this._rearrange(e,a),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var a=this,o=this.placeholder.offset(),h=this.options.axis,p={};h&&h!=="x"||(p.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),h&&h!=="y"||(p.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(p,parseInt(this.options.revert,10)||500,function(){a._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),this.options.helper==="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),a=[];return e=e||{},t(n).each(function(){var o=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);o&&a.push((e.key||o[1]+"[]")+"="+(e.key&&e.expression?o[1]:o[2]))}),!a.length&&e.key&&a.push(e.key+"="),a.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),a=[];return e=e||{},n.each(function(){a.push(t(e.item||this).attr(e.attribute||"id")||"")}),a},_intersectsWith:function(e){var n=this.positionAbs.left,a=n+this.helperProportions.width,o=this.positionAbs.top,h=o+this.helperProportions.height,p=e.left,y=p+e.width,C=e.top,D=C+e.height,P=this.offset.click.top,L=this.offset.click.left,J=this.options.axis==="x"||o+P>C&&D>o+P,dt=this.options.axis==="y"||n+L>p&&y>n+L,Et=J&&dt;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?Et:n+this.helperProportions.width/2>p&&y>a-this.helperProportions.width/2&&o+this.helperProportions.height/2>C&&D>h-this.helperProportions.height/2},_intersectsWithPointer:function(e){var n=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),a=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),o=n&&a,h=this._getDragVerticalDirection(),p=this._getDragHorizontalDirection();return o?this.floating?p&&p==="right"||h==="down"?2:1:h&&(h==="down"?2:1):!1},_intersectsWithSides:function(e){var n=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),a=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),o=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?h==="right"&&a||h==="left"&&!a:o&&(o==="down"&&n||o==="up"&&!n)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!==0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){function n(){y.push(this)}var a,o,h,p,y=[],C=[],D=this._connectWith();if(D&&e)for(a=D.length-1;a>=0;a--)for(h=t(D[a]),o=h.length-1;o>=0;o--)p=t.data(h[o],this.widgetFullName),p&&p!==this&&!p.options.disabled&&C.push([t.isFunction(p.options.items)?p.options.items.call(p.element):t(p.options.items,p.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),p]);for(C.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),a=C.length-1;a>=0;a--)C[a][0].each(n);return t(y)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(n){for(var a=0;e.length>a;a++)if(e[a]===n.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,a,o,h,p,y,C,D,P=this.items,L=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],J=this._connectWith();if(J&&this.ready)for(n=J.length-1;n>=0;n--)for(o=t(J[n]),a=o.length-1;a>=0;a--)h=t.data(o[a],this.widgetFullName),h&&h!==this&&!h.options.disabled&&(L.push([t.isFunction(h.options.items)?h.options.items.call(h.element[0],e,{item:this.currentItem}):t(h.options.items,h.element),h]),this.containers.push(h));for(n=L.length-1;n>=0;n--)for(p=L[n][1],y=L[n][0],a=0,D=y.length;D>a;a++)C=t(y[a]),C.data(this.widgetName+"-item",p),P.push({item:C,instance:p,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var n,a,o,h;for(n=this.items.length-1;n>=0;n--)a=this.items[n],a.instance!==this.currentContainer&&this.currentContainer&&a.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,a.item):a.item,e||(a.width=o.outerWidth(),a.height=o.outerHeight()),h=o.offset(),a.left=h.left,a.top=h.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)h=this.containers[n].element.offset(),this.containers[n].containerCache.left=h.left,this.containers[n].containerCache.top=h.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var n,a=e.options;a.placeholder&&a.placeholder.constructor!==String||(n=a.placeholder,a.placeholder={element:function(){var o=e.currentItem[0].nodeName.toLowerCase(),h=t("<"+o+">",e.document[0]).addClass(n||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return o==="tr"?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(h)}):o==="img"&&h.attr("src",e.currentItem.attr("src")),n||h.css("visibility","hidden"),h},update:function(o,h){(!n||a.forcePlaceholderSize)&&(h.height()||h.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),h.width()||h.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(a.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),a.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var n,a,o,h,p,y,C,D,P,L,J=null,dt=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(J&&t.contains(this.containers[n].element[0],J.element[0]))continue;J=this.containers[n],dt=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(J)if(this.containers.length===1)this.containers[dt].containerCache.over||(this.containers[dt]._trigger("over",e,this._uiHash(this)),this.containers[dt].containerCache.over=1);else{for(o=1e4,h=null,P=J.floating||this._isFloating(this.currentItem),p=P?"left":"top",y=P?"width":"height",L=P?"clientX":"clientY",a=this.items.length-1;a>=0;a--)t.contains(this.containers[dt].element[0],this.items[a].item[0])&&this.items[a].item[0]!==this.currentItem[0]&&(C=this.items[a].item.offset()[p],D=!1,e[L]-C>this.items[a][y]/2&&(D=!0),o>Math.abs(e[L]-C)&&(o=Math.abs(e[L]-C),h=this.items[a],this.direction=D?"up":"down"));if(!h&&!this.options.dropOnEmpty||this.currentContainer===this.containers[dt])return;h?this._rearrange(e,h,null,!0):this._rearrange(e,null,this.containers[dt].element,!0),this._trigger("change",e,this._uiHash()),this.containers[dt]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[dt],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[dt]._trigger("over",e,this._uiHash(this)),this.containers[dt].containerCache.over=1}},_createHelper:function(e){var n=this.options,a=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):n.helper==="clone"?this.currentItem.clone():this.currentItem;return a.parents("body").length||t(n.appendTo!=="parent"?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]),a[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!a[0].style.width||n.forceHelperSize)&&a.width(this.currentItem.width()),(!a[0].style.height||n.forceHelperSize)&&a.height(this.currentItem.height()),a},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,a,o=this.options;o.containment==="parent"&&(o.containment=this.helper[0].parentNode),(o.containment==="document"||o.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t(o.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(t(o.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],n=t(o.containment).offset(),a=t(e).css("overflow")!=="hidden",this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(a?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(a?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var a=e==="absolute"?1:-1,o=this.cssPosition!=="absolute"||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(o[0].tagName);return{top:n.top+this.offset.relative.top*a+this.offset.parent.top*a-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():h?0:o.scrollTop())*a,left:n.left+this.offset.relative.left*a+this.offset.parent.left*a-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():h?0:o.scrollLeft())*a}},_generatePosition:function(e){var n,a,o=this.options,h=e.pageX,p=e.pageY,y=this.cssPosition!=="absolute"||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,C=/(html|body)/i.test(y[0].tagName);return this.cssPosition!=="relative"||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(h=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(p=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(h=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(p=this.containment[3]+this.offset.click.top)),o.grid&&(n=this.originalPageY+Math.round((p-this.originalPageY)/o.grid[1])*o.grid[1],p=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-o.grid[1]:n+o.grid[1]:n,a=this.originalPageX+Math.round((h-this.originalPageX)/o.grid[0])*o.grid[0],h=this.containment?a-this.offset.click.left>=this.containment[0]&&a-this.offset.click.left<=this.containment[2]?a:a-this.offset.click.left>=this.containment[0]?a-o.grid[0]:a+o.grid[0]:a)),{top:p-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():C?0:y.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():C?0:y.scrollLeft())}},_rearrange:function(e,n,a,o){a?a[0].appendChild(this.placeholder[0]):n.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?n.item[0]:n.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var h=this.counter;this._delay(function(){h===this.counter&&this.refreshPositions(!o)})},_clear:function(e,n){function a(p,y,C){return function(D){C._trigger(p,D,y._uiHash(y))}}this.reverting=!1;var o,h=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(o in this._storedCSS)(this._storedCSS[o]==="auto"||this._storedCSS[o]==="static")&&(this._storedCSS[o]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!n&&h.push(function(p){this._trigger("receive",p,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||n||h.push(function(p){this._trigger("update",p,this._uiHash())}),this!==this.currentContainer&&(n||(h.push(function(p){this._trigger("remove",p,this._uiHash())}),h.push(function(p){return function(y){p._trigger("receive",y,this._uiHash(this))}}.call(this,this.currentContainer)),h.push(function(p){return function(y){p._trigger("update",y,this._uiHash(this))}}.call(this,this.currentContainer)))),o=this.containers.length-1;o>=0;o--)n||h.push(a("deactivate",this,this.containers[o])),this.containers[o].containerCache.over&&(h.push(a("out",this,this.containers[o])),this.containers[o].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!n){for(this._trigger("beforeStop",e,this._uiHash()),o=0;h.length>o;o++)h[o].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!1}if(n||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!n){for(o=0;h.length>o;o++)h[o].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.11.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this.value()!==""&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},n=this.element;return t.each(["min","max","step"],function(a,o){var h=n.attr(o);h!==void 0&&h.length&&(e[o]=h)}),e},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel:function(e,n){if(n){if(!this.spinning&&!this._start(e))return!1;this._spin((n>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){function n(){var o=this.element[0]===this.document[0].activeElement;o||(this.element.focus(),this.previous=a,this._delay(function(){this.previous=a}))}var a;a=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(e){var n=this.options,a=t.ui.keyCode;switch(e.keyCode){case a.UP:return this._repeat(null,1,e),!0;case a.DOWN:return this._repeat(null,-1,e),!0;case a.PAGE_UP:return this._repeat(null,n.page,e),!0;case a.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,n,a){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,n,a)},e),this._spin(n*this.options.step,a)},_spin:function(e,n){var a=this.value()||0;this.counter||(this.counter=1),a=this._adjustValue(a+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",n,{value:a})===!1||(this._value(a),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var n=""+e,a=n.indexOf(".");return a===-1?0:n.length-a-1},_adjustValue:function(e){var n,a,o=this.options;return n=o.min!==null?o.min:0,a=e-n,a=Math.round(a/o.step)*o.step,e=n+a,e=parseFloat(e.toFixed(this._precision())),o.max!==null&&e>o.max?o.max:o.min!==null&&o.min>e?o.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,n){if(e==="culture"||e==="numberFormat"){var a=this._parse(this.element.val());return this.options[e]=n,this.element.val(this._format(a)),void 0}(e==="max"||e==="min"||e==="step")&&typeof n=="string"&&(n=this._parse(n)),e==="icons"&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(n.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(n.down)),this._super(e,n),e==="disabled"&&(this.widget().toggleClass("ui-state-disabled",!!n),this.element.prop("disabled",!!n),this.buttons.button(n?"disable":"enable"))},_setOptions:b(function(e){this._super(e)}),_parse:function(e){return typeof e=="string"&&e!==""&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),e===""||isNaN(e)?null:e},_format:function(e){return e===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return e===null?!1:e===this._adjustValue(e)},_value:function(e,n){var a;e!==""&&(a=this._parse(e),a!==null&&(n||(a=this._adjustValue(a)),e=this._format(a))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:b(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:b(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:b(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?(b(this._value).call(this,e),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.widget("ui.tabs",{version:"1.11.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(n){var a,o;n=n.cloneNode(!1),a=n.href.replace(e,""),o=location.href.replace(e,"");try{a=decodeURIComponent(a)}catch(h){}try{o=decodeURIComponent(o)}catch(h){}return n.hash.length>1&&a===o}}(),_create:function(){var e=this,n=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible),this._processTabs(),n.active=this._initialActive(),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(a){return e.tabs.index(a)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(n.active):t(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var e=this.options.active,n=this.options.collapsible,a=location.hash.substring(1);return e===null&&(a&&this.tabs.each(function(o,h){return t(h).attr("aria-controls")===a?(e=o,!1):void 0}),e===null&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(e===null||e===-1)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),e===-1&&(e=n?!1:0)),!n&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(this.document[0].activeElement).closest("li"),a=this.tabs.index(n),o=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:a++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,a--;break;case t.ui.keyCode.END:a=this.anchors.length-1;break;case t.ui.keyCode.HOME:a=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),this._activate(a),void 0;case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),this._activate(a===this.options.active?!1:a),void 0;default:return}e.preventDefault(),clearTimeout(this.activating),a=this._focusNextTab(a,o),e.ctrlKey||(n.attr("aria-selected","false"),this.tabs.eq(a).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",a)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){function a(){return e>o&&(e=0),0>e&&(e=o),e}for(var o=this.tabs.length-1;t.inArray(a(),this.options.disabled)!==-1;)e=n?e+1:e-1;return e},_focusNextTab:function(e,n){return e=this._findNextTab(e,n),this.tabs.eq(e).focus(),e},_setOption:function(e,n){return e==="active"?(this._activate(n),void 0):e==="disabled"?(this._setupDisabled(n),void 0):(this._super(e,n),e==="collapsible"&&(this.element.toggleClass("ui-tabs-collapsible",n),n||this.options.active!==!1||this._activate(0)),e==="event"&&this._setupEvents(n),e==="heightStyle"&&this._setupHeightStyle(n),void 0)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),function(a){return n.index(a)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),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","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(n){t(this).is(".ui-state-disabled")&&n.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),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 t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(n,a){var o,h,p,y=t(a).uniqueId().attr("id"),C=t(a).closest("li"),D=C.attr("aria-controls");e._isLocal(a)?(o=a.hash,p=o.substring(1),h=e.element.find(e._sanitizeSelector(o))):(p=C.attr("aria-controls")||t({}).uniqueId()[0].id,o="#"+p,h=e.element.find(o),h.length||(h=e._createPanel(p),h.insertAfter(e.panels[n-1]||e.tablist)),h.attr("aria-live","polite")),h.length&&(e.panels=e.panels.add(h)),D&&C.data("ui-tabs-aria-controls",D),C.attr({"aria-controls":p,"aria-labelledby":y}),h.attr("aria-labelledby",y)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var n,a=0;n=this.tabs[a];a++)e===!0||t.inArray(a,e)!==-1?t(n).addClass("ui-state-disabled").attr("aria-disabled","true"):t(n).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var n={};e&&t.each(e.split(" "),function(a,o){n[o]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(a){a.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,a=this.element.parent();e==="fill"?(n=a.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var o=t(this),h=o.css("position");h!=="absolute"&&h!=="fixed"&&(n-=o.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):e==="auto"&&(n=0,this.panels.each(function(){n=Math.max(n,t(this).height("").height())}).height(n))},_eventHandler:function(e){var n=this.options,a=this.active,o=t(e.currentTarget),h=o.closest("li"),p=h[0]===a[0],y=p&&n.collapsible,C=y?t():this._getPanelForTab(h),D=a.length?this._getPanelForTab(a):t(),P={oldTab:a,oldPanel:D,newTab:y?t():h,newPanel:C};e.preventDefault(),h.hasClass("ui-state-disabled")||h.hasClass("ui-tabs-loading")||this.running||p&&!n.collapsible||this._trigger("beforeActivate",e,P)===!1||(n.active=y?!1:this.tabs.index(h),this.active=p?t():h,this.xhr&&this.xhr.abort(),D.length||C.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),C.length&&this.load(this.tabs.index(h),e),this._toggle(e,P))},_toggle:function(e,n){function a(){h.running=!1,h._trigger("activate",e,n)}function o(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),p.length&&h.options.show?h._show(p,h.options.show,a):(p.show(),a())}var h=this,p=n.newPanel,y=n.oldPanel;this.running=!0,y.length&&this.options.hide?this._hide(y,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),y.hide(),o()),y.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),p.length&&y.length?n.oldTab.attr("tabIndex",-1):p.length&&this.tabs.filter(function(){return t(this).attr("tabIndex")===0}).attr("tabIndex",-1),p.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var n,a=this._findActive(e);a[0]!==this.active[0]&&(a.length||(a=this.active),n=a.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_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.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(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 e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(e){var n=this.options.disabled;n!==!1&&(e===void 0?n=!1:(e=this._getIndex(e),n=t.isArray(n)?t.map(n,function(a){return a!==e?a:null}):t.map(this.tabs,function(a,o){return o!==e?o:null})),this._setupDisabled(n))},disable:function(e){var n=this.options.disabled;if(n!==!0){if(e===void 0)n=!0;else{if(e=this._getIndex(e),t.inArray(e,n)!==-1)return;n=t.isArray(n)?t.merge([e],n).sort():[e]}this._setupDisabled(n)}},load:function(e,n){e=this._getIndex(e);var a=this,o=this.tabs.eq(e),h=o.find(".ui-tabs-anchor"),p=this._getPanelForTab(o),y={tab:o,panel:p};this._isLocal(h[0])||(this.xhr=t.ajax(this._ajaxSettings(h,n,y)),this.xhr&&this.xhr.statusText!=="canceled"&&(o.addClass("ui-tabs-loading"),p.attr("aria-busy","true"),this.xhr.success(function(C){setTimeout(function(){p.html(C),a._trigger("load",n,y)},1)}).complete(function(C,D){setTimeout(function(){D==="abort"&&a.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),p.removeAttr("aria-busy"),C===a.xhr&&delete a.xhr},1)})))},_ajaxSettings:function(e,n,a){var o=this;return{url:e.attr("href"),beforeSend:function(h,p){return o._trigger("beforeLoad",n,t.extend({jqXHR:h,ajaxSettings:p},a))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),t.widget("ui.tooltip",{version:"1.11.1",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(e,n){var a=(e.attr("aria-describedby")||"").split(/\s+/);a.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(a.join(" ")))},_removeDescribedBy:function(e){var n=e.data("ui-tooltip-id"),a=(e.attr("aria-describedby")||"").split(/\s+/),o=t.inArray(n,a);o!==-1&&a.splice(o,1),e.removeData("ui-tooltip-id"),a=t.trim(a.join(" ")),a?e.attr("aria-describedby",a):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,n){var a=this;return e==="disabled"?(this[n?"_disable":"_enable"](),this.options[e]=n,void 0):(this._super(e,n),e==="content"&&t.each(this.tooltips,function(o,h){a._updateContent(h)}),void 0)},_disable:function(){var e=this;t.each(this.tooltips,function(n,a){var o=t.Event("blur");o.target=o.currentTarget=a[0],e.close(o,!0)}),this.element.find(this.options.items).addBack().each(function(){var n=t(this);n.is("[title]")&&n.data("ui-tooltip-title",n.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var n=this,a=t(e?e.target:this.element).closest(this.options.items);a.length&&!a.data("ui-tooltip-id")&&(a.attr("title")&&a.data("ui-tooltip-title",a.attr("title")),a.data("ui-tooltip-open",!0),e&&e.type==="mouseover"&&a.parents().each(function(){var o,h=t(this);h.data("ui-tooltip-open")&&(o=t.Event("blur"),o.target=o.currentTarget=this,n.close(o,!0)),h.attr("title")&&(h.uniqueId(),n.parents[this.id]={element:this,title:h.attr("title")},h.attr("title",""))}),this._updateContent(a,e))},_updateContent:function(e,n){var a,o=this.options.content,h=this,p=n?n.type:null;return typeof o=="string"?this._open(n,e,o):(a=o.call(e[0],function(y){e.data("ui-tooltip-open")&&h._delay(function(){n&&(n.type=p),this._open(n,e,y)})}),a&&this._open(n,e,a),void 0)},_open:function(e,n,a){function o(P){D.of=P,h.is(":hidden")||h.position(D)}var h,p,y,C,D=t.extend({},this.options.position);if(a){if(h=this._find(n),h.length)return h.find(".ui-tooltip-content").html(a),void 0;n.is("[title]")&&(e&&e.type==="mouseover"?n.attr("title",""):n.removeAttr("title")),h=this._tooltip(n),this._addDescribedBy(n,h.attr("id")),h.find(".ui-tooltip-content").html(a),this.liveRegion.children().hide(),a.clone?(C=a.clone(),C.removeAttr("id").find("[id]").removeAttr("id")):C=a,t("<div>").html(C).appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:o}),o(e)):h.position(t.extend({of:n},this.options.position)),this.hiding=!1,this.closing=!1,h.hide(),this._show(h,this.options.show),this.options.show&&this.options.show.delay&&(y=this.delayedShow=setInterval(function(){h.is(":visible")&&(o(D.of),clearInterval(y))},t.fx.interval)),this._trigger("open",e,{tooltip:h}),p={keyup:function(P){if(P.keyCode===t.ui.keyCode.ESCAPE){var L=t.Event(P);L.currentTarget=n[0],this.close(L,!0)}}},n[0]!==this.element[0]&&(p.remove=function(){this._removeTooltip(h)}),e&&e.type!=="mouseover"||(p.mouseleave="close"),e&&e.type!=="focusin"||(p.focusout="close"),this._on(!0,n,p)}},close:function(e){var n=this,a=t(e?e.currentTarget:this.element),o=this._find(a);this.closing||(clearInterval(this.delayedShow),a.data("ui-tooltip-title")&&!a.attr("title")&&a.attr("title",a.data("ui-tooltip-title")),this._removeDescribedBy(a),this.hiding=!0,o.stop(!0),this._hide(o,this.options.hide,function(){n._removeTooltip(t(this)),this.hiding=!1,this.closing=!1}),a.removeData("ui-tooltip-open"),this._off(a,"mouseleave focusout keyup"),a[0]!==this.element[0]&&this._off(a,"remove"),this._off(this.document,"mousemove"),e&&e.type==="mouseleave"&&t.each(this.parents,function(h,p){t(p.element).attr("title",p.title),delete n.parents[h]}),this.closing=!0,this._trigger("close",e,{tooltip:o}),this.hiding||(this.closing=!1))},_tooltip:function(e){var n=t("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),a=n.uniqueId().attr("id");return t("<div>").addClass("ui-tooltip-content").appendTo(n),n.appendTo(this.document[0].body),this.tooltips[a]=e,n},_find:function(e){var n=e.data("ui-tooltip-id");return n?t("#"+n):t()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(n,a){var o=t.Event("blur");o.target=o.currentTarget=a[0],e.close(o,!0),t("#"+n).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})})}),Uu={};wv(Uu,{default:()=>el});xv=Fu(Wu());_v(Uu,Fu(Wu()));Bu=xv,{default:ju}=Bu,kv=Ri(Bu,["default"]),el=ju!==void 0?ju:kv;});var qu={};oo(qu,{default:()=>el});var Vu=zi(()=>{il();il()});function ur(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var l in r)l!=="__proto__"&&(t[l]=r[l])}return t}var Id={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function pa(t,i){function r(c,d,f){if(!(typeof document>"u")){f=ur({},i,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var g="";for(var b in f)f[b]&&(g+="; "+b,f[b]!==!0&&(g+="="+f[b].split(";")[0]));return document.cookie=c+"="+t.write(d,c)+g}}function l(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var d=document.cookie?document.cookie.split("; "):[],f={},g=0;g<d.length;g++){var b=d[g].split("="),x=b.slice(1).join("=");try{var w=decodeURIComponent(b[0]);if(w in f||(f[w]=t.read(x,w)),c===w)break}catch(A){}}return c?f[c]:f}}return Object.create({set:r,get:l,remove:function(c,d){r(c,"",ur({},d,{expires:-1}))},withAttributes:function(c){return pa(this.converter,ur({},this.attributes,c))},withConverter:function(c){return pa(ur({},this.converter,c),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}var cn=pa(Id,{path:"/"});var Pd=Object.create,Dl=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,Nd=Object.getOwnPropertyNames,Rd=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty,Ld=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Hd=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Nd(i))!zd.call(t,c)&&c!==r&&Dl(t,c,{get:()=>i[c],enumerable:!(l=Od(i,c))||l.enumerable});return t},Bd=(t,i,r)=>(r=t!=null?Pd(Rd(t)):{},Hd(i||!t||!t.__esModule?Dl(r,"default",{value:t,enumerable:!0}):r,t)),jd=Ld((t,i)=>{(function(){function r(x,w){if(!(this instanceof r))return new r(x,w);if(!x||x.tagName!=="TABLE")throw new Error("Element must be a table");this.init(x,w||{})}var l=[],c=function(x){var w;return!window.CustomEvent||typeof window.CustomEvent!="function"?(w=document.createEvent("CustomEvent"),w.initCustomEvent(x,!1,!1,void 0)):w=new CustomEvent(x),w},d=function(x,w){var A=w.sortAttribute||"data-sort";return x.hasAttribute(A)?x.getAttribute(A):x.textContent||x.innerText||""},f=function(x,w){return x=x.trim().toLowerCase(),w=w.trim().toLowerCase(),x===w?0:x<w?1:-1},g=function(x,w){return[].slice.call(x).find(function(A){return A.getAttribute("data-sort-column-key")===w})},b=function(x,w){return function(A,M){var O=x(A.td,M.td);return O===0?w?M.index-A.index:A.index-M.index:O}};r.extend=function(x,w,A){if(typeof w!="function"||typeof A!="function")throw new Error("Pattern and sort must be a function");l.push({name:x,pattern:w,sort:A})},r.prototype={init:function(x,w){var A=this,M,O,E,U;if(A.table=x,A.thead=!1,A.options=w,x.rows&&x.rows.length>0)if(x.tHead&&x.tHead.rows.length>0){for(E=0;E<x.tHead.rows.length;E++)if(x.tHead.rows[E].getAttribute("data-sort-method")==="thead"){M=x.tHead.rows[E];break}M||(M=x.tHead.rows[x.tHead.rows.length-1]),A.thead=!0}else M=x.rows[0];if(M){var Y=function(){A.current&&A.current!==this&&A.current.removeAttribute("aria-sort"),A.current=this,A.sortTable(this)};for(E=0;E<M.cells.length;E++)U=M.cells[E],U.setAttribute("role","columnheader"),U.getAttribute("data-sort-method")!=="none"&&(U.tabIndex=0,U.addEventListener("click",Y,!1),U.addEventListener("keydown",function(ct){ct.key==="Enter"&&(ct.preventDefault(),Y.call(this))}),U.getAttribute("data-sort-default")!==null&&(O=U));O&&(A.current=O,A.sortTable(O))}},sortTable:function(x,w){var A=this,M=x.getAttribute("data-sort-column-key"),O=x.cellIndex,E=f,U="",Y=[],ct=A.thead?0:1,G=x.getAttribute("data-sort-method"),wt=x.hasAttribute("data-sort-reverse"),e=x.getAttribute("aria-sort");if(A.table.dispatchEvent(c("beforeSort")),w||(e==="ascending"?e="descending":e==="descending"?e="ascending":e=!!A.options.descending!=wt?"descending":"ascending",x.setAttribute("aria-sort",e)),!(A.table.rows.length<2)){if(!G){for(var n;Y.length<3&&ct<A.table.tBodies[0].rows.length;)M?n=g(A.table.tBodies[0].rows[ct].cells,M):n=A.table.tBodies[0].rows[ct].cells[O],U=n?d(n,A.options):"",U=U.trim(),U.length>0&&Y.push(U),ct++;if(!Y)return}for(ct=0;ct<l.length;ct++)if(U=l[ct],G){if(U.name===G){E=U.sort;break}}else if(Y.every(U.pattern)){E=U.sort;break}for(A.col=O,ct=0;ct<A.table.tBodies.length;ct++){var a=[],o={},h,p=0,y=0;if(!(A.table.tBodies[ct].rows.length<2)){for(h=0;h<A.table.tBodies[ct].rows.length;h++){var n;U=A.table.tBodies[ct].rows[h],U.getAttribute("data-sort-method")==="none"?o[p]=U:(M?n=g(U.cells,M):n=U.cells[A.col],a.push({tr:U,td:n?d(n,A.options):"",index:p})),p++}for(e==="descending"?a.sort(b(E,!0)):(a.sort(b(E,!1)),a.reverse()),h=0;h<p;h++)o[h]?(U=o[h],y++):U=a[h-y].tr,A.table.tBodies[ct].appendChild(U)}}A.table.dispatchEvent(c("afterSort"))}},refresh:function(){this.current!==void 0&&this.sortTable(this.current,!0)}},typeof i<"u"&&i.exports?i.exports=r:window.Tablesort=r})()}),fa=Bd(jd()),{extend:$v,prototype:Dv}=fa,$l,dr=($l=fa.default)!=null?$l:fa;var Fd=Object.create,Pl=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,Ud=Object.getOwnPropertyNames,qd=Object.getPrototypeOf,Vd=Object.prototype.hasOwnProperty,Yd=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Gd=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Ud(i))!Vd.call(t,c)&&c!==r&&Pl(t,c,{get:()=>i[c],enumerable:!(l=Wd(i,c))||l.enumerable});return t},Kd=(t,i,r)=>(r=t!=null?Fd(qd(t)):{},Gd(i||!t||!t.__esModule?Pl(r,"default",{value:t,enumerable:!0}):r,t)),Xd=Yd((t,i)=>{(function(r,l){"use strict";typeof i=="object"&&typeof i.exports=="object"?i.exports=r.document?l(r,!0):function(c){if(!c.document)throw new Error("jQuery requires a window with a document");return l(c)}:l(r)})(typeof window<"u"?window:t,function(r,l){"use strict";var c=[],d=Object.getPrototypeOf,f=c.slice,g=c.flat?function(s){return c.flat.call(s)}:function(s){return c.concat.apply([],s)},b=c.push,x=c.indexOf,w={},A=w.toString,M=w.hasOwnProperty,O=M.toString,E=O.call(Object),U={},Y=function(s){return typeof s=="function"&&typeof s.nodeType!="number"&&typeof s.item!="function"},ct=function(s){return s!=null&&s===s.window},G=r.document,wt={type:!0,src:!0,nonce:!0,noModule:!0};function e(s,u,m){m=m||G;var v,_,k=m.createElement("script");if(k.text=s,u)for(v in wt)_=u[v]||u.getAttribute&&u.getAttribute(v),_&&k.setAttribute(v,_);m.head.appendChild(k).parentNode.removeChild(k)}function n(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?w[A.call(s)]||"object":typeof s}var a="3.6.1",o=function(s,u){return new o.fn.init(s,u)};o.fn=o.prototype={jquery:a,constructor:o,length:0,toArray:function(){return f.call(this)},get:function(s){return s==null?f.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var u=o.merge(this.constructor(),s);return u.prevObject=this,u},each:function(s){return o.each(this,s)},map:function(s){return this.pushStack(o.map(this,function(u,m){return s.call(u,m,u)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(o.grep(this,function(s,u){return(u+1)%2}))},odd:function(){return this.pushStack(o.grep(this,function(s,u){return u%2}))},eq:function(s){var u=this.length,m=+s+(s<0?u:0);return this.pushStack(m>=0&&m<u?[this[m]]:[])},end:function(){return this.prevObject||this.constructor()},push:b,sort:c.sort,splice:c.splice},o.extend=o.fn.extend=function(){var s,u,m,v,_,k,T=arguments[0]||{},W=1,B=arguments.length,nt=!1;for(typeof T=="boolean"&&(nt=T,T=arguments[W]||{},W++),typeof T!="object"&&!Y(T)&&(T={}),W===B&&(T=this,W--);W<B;W++)if((s=arguments[W])!=null)for(u in s)v=s[u],!(u==="__proto__"||T===v)&&(nt&&v&&(o.isPlainObject(v)||(_=Array.isArray(v)))?(m=T[u],_&&!Array.isArray(m)?k=[]:!_&&!o.isPlainObject(m)?k={}:k=m,_=!1,T[u]=o.extend(nt,k,v)):v!==void 0&&(T[u]=v));return T},o.extend({expando:"jQuery"+(a+Math.random()).replace(/\D/g,""),isReady:!0,error:function(s){throw new Error(s)},noop:function(){},isPlainObject:function(s){var u,m;return!s||A.call(s)!=="[object Object]"?!1:(u=d(s),u?(m=M.call(u,"constructor")&&u.constructor,typeof m=="function"&&O.call(m)===E):!0)},isEmptyObject:function(s){var u;for(u in s)return!1;return!0},globalEval:function(s,u,m){e(s,{nonce:u&&u.nonce},m)},each:function(s,u){var m,v=0;if(h(s))for(m=s.length;v<m&&u.call(s[v],v,s[v])!==!1;v++);else for(v in s)if(u.call(s[v],v,s[v])===!1)break;return s},makeArray:function(s,u){var m=u||[];return s!=null&&(h(Object(s))?o.merge(m,typeof s=="string"?[s]:s):b.call(m,s)),m},inArray:function(s,u,m){return u==null?-1:x.call(u,s,m)},merge:function(s,u){for(var m=+u.length,v=0,_=s.length;v<m;v++)s[_++]=u[v];return s.length=_,s},grep:function(s,u,m){for(var v,_=[],k=0,T=s.length,W=!m;k<T;k++)v=!u(s[k],k),v!==W&&_.push(s[k]);return _},map:function(s,u,m){var v,_,k=0,T=[];if(h(s))for(v=s.length;k<v;k++)_=u(s[k],k,m),_!=null&&T.push(_);else for(k in s)_=u(s[k],k,m),_!=null&&T.push(_);return g(T)},guid:1,support:U}),typeof Symbol=="function"&&(o.fn[Symbol.iterator]=c[Symbol.iterator]),o.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(s,u){w["[object "+u+"]"]=u.toLowerCase()});function h(s){var u=!!s&&"length"in s&&s.length,m=n(s);return Y(s)||ct(s)?!1:m==="array"||u===0||typeof u=="number"&&u>0&&u-1 in s}var p=function(s){var u,m,v,_,k,T,W,B,nt,pt,xt,ht,mt,Xt,se,Jt,Je,Ye,Si,Se="sizzle"+1*new Date,ae=s.document,bi=0,ve=0,Re=ar(),ko=ar(),nr=ar(),Ti=ar(),En=function(I,j){return I===j&&(xt=!0),0},An={}.hasOwnProperty,wi=[],fn=wi.pop,Oi=wi.push,mn=wi.push,ml=wi.slice,$n=function(I,j){for(var Z=0,gt=I.length;Z<gt;Z++)if(I[Z]===j)return Z;return-1},ra="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",xe="[\\x20\\t\\r\\n\\f]",Dn="(?:\\\\[\\da-fA-F]{1,6}"+xe+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",gl="\\["+xe+"*("+Dn+")(?:"+xe+"*([*^$|!~]?=)"+xe+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Dn+"))|)"+xe+"*\\]",aa=":("+Dn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+gl+")*)|.*)\\)|)",gd=new RegExp(xe+"+","g"),or=new RegExp("^"+xe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+xe+"+$","g"),vd=new RegExp("^"+xe+"*,"+xe+"*"),vl=new RegExp("^"+xe+"*([>+~]|"+xe+")"+xe+"*"),yd=new RegExp(xe+"|>"),bd=new RegExp(aa),wd=new RegExp("^"+Dn+"$"),rr={ID:new RegExp("^#("+Dn+")"),CLASS:new RegExp("^\\.("+Dn+")"),TAG:new RegExp("^("+Dn+"|[*])"),ATTR:new RegExp("^"+gl),PSEUDO:new RegExp("^"+aa),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+xe+"*(even|odd|(([+-]|)(\\d*)n|)"+xe+"*(?:([+-]|)"+xe+"*(\\d+)|))"+xe+"*\\)|)","i"),bool:new RegExp("^(?:"+ra+")$","i"),needsContext:new RegExp("^"+xe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+xe+"*((?:-\\d)?\\d*)"+xe+"*\\)|)(?=[^-]|$)","i")},_d=/HTML$/i,xd=/^(?:input|select|textarea|button)$/i,kd=/^h\d$/i,Co=/^[^{]+\{\s*\[native \w/,Cd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sa=/[+~]/,sn=new RegExp("\\\\[\\da-fA-F]{1,6}"+xe+"?|\\\\([^\\r\\n\\f])","g"),ln=function(I,j){var Z="0x"+I.slice(1)-65536;return j||(Z<0?String.fromCharCode(Z+65536):String.fromCharCode(Z>>10|55296,Z&1023|56320))},yl=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bl=function(I,j){return j?I==="\0"?"\uFFFD":I.slice(0,-1)+"\\"+I.charCodeAt(I.length-1).toString(16)+" ":"\\"+I},wl=function(){ht()},Sd=lr(function(I){return I.disabled===!0&&I.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{mn.apply(wi=ml.call(ae.childNodes),ae.childNodes),wi[ae.childNodes.length].nodeType}catch(I){mn={apply:wi.length?function(j,Z){Oi.apply(j,ml.call(Z))}:function(j,Z){for(var gt=j.length,it=0;j[gt++]=Z[it++];);j.length=gt-1}}}function Ee(I,j,Z,gt){var it,yt,Tt,zt,jt,ee,te,ne=j&&j.ownerDocument,de=j?j.nodeType:9;if(Z=Z||[],typeof I!="string"||!I||de!==1&&de!==9&&de!==11)return Z;if(!gt&&(ht(j),j=j||mt,se)){if(de!==11&&(jt=Cd.exec(I)))if(it=jt[1]){if(de===9)if(Tt=j.getElementById(it)){if(Tt.id===it)return Z.push(Tt),Z}else return Z;else if(ne&&(Tt=ne.getElementById(it))&&Si(j,Tt)&&Tt.id===it)return Z.push(Tt),Z}else{if(jt[2])return mn.apply(Z,j.getElementsByTagName(I)),Z;if((it=jt[3])&&m.getElementsByClassName&&j.getElementsByClassName)return mn.apply(Z,j.getElementsByClassName(it)),Z}if(m.qsa&&!Ti[I+" "]&&(!Jt||!Jt.test(I))&&(de!==1||j.nodeName.toLowerCase()!=="object")){if(te=I,ne=j,de===1&&(yd.test(I)||vl.test(I))){for(ne=sa.test(I)&&ca(j.parentNode)||j,(ne!==j||!m.scope)&&((zt=j.getAttribute("id"))?zt=zt.replace(yl,bl):j.setAttribute("id",zt=Se)),ee=T(I),yt=ee.length;yt--;)ee[yt]=(zt?"#"+zt:":scope")+" "+sr(ee[yt]);te=ee.join(",")}try{return mn.apply(Z,ne.querySelectorAll(te)),Z}catch(Ae){Ti(I,!0)}finally{zt===Se&&j.removeAttribute("id")}}}return B(I.replace(or,"$1"),j,Z,gt)}function ar(){var I=[];function j(Z,gt){return I.push(Z+" ")>v.cacheLength&&delete j[I.shift()],j[Z+" "]=gt}return j}function Ui(I){return I[Se]=!0,I}function qi(I){var j=mt.createElement("fieldset");try{return!!I(j)}catch(Z){return!1}finally{j.parentNode&&j.parentNode.removeChild(j),j=null}}function la(I,j){for(var Z=I.split("|"),gt=Z.length;gt--;)v.attrHandle[Z[gt]]=j}function _l(I,j){var Z=j&&I,gt=Z&&I.nodeType===1&&j.nodeType===1&&I.sourceIndex-j.sourceIndex;if(gt)return gt;if(Z){for(;Z=Z.nextSibling;)if(Z===j)return-1}return I?1:-1}function Td(I){return function(j){var Z=j.nodeName.toLowerCase();return Z==="input"&&j.type===I}}function Ed(I){return function(j){var Z=j.nodeName.toLowerCase();return(Z==="input"||Z==="button")&&j.type===I}}function xl(I){return function(j){return"form"in j?j.parentNode&&j.disabled===!1?"label"in j?"label"in j.parentNode?j.parentNode.disabled===I:j.disabled===I:j.isDisabled===I||j.isDisabled!==!I&&Sd(j)===I:j.disabled===I:"label"in j?j.disabled===I:!1}}function Mn(I){return Ui(function(j){return j=+j,Ui(function(Z,gt){for(var it,yt=I([],Z.length,j),Tt=yt.length;Tt--;)Z[it=yt[Tt]]&&(Z[it]=!(gt[it]=Z[it]))})})}function ca(I){return I&&typeof I.getElementsByTagName<"u"&&I}m=Ee.support={},k=Ee.isXML=function(I){var j=I&&I.namespaceURI,Z=I&&(I.ownerDocument||I).documentElement;return!_d.test(j||Z&&Z.nodeName||"HTML")},ht=Ee.setDocument=function(I){var j,Z,gt=I?I.ownerDocument||I:ae;return gt==mt||gt.nodeType!==9||!gt.documentElement||(mt=gt,Xt=mt.documentElement,se=!k(mt),ae!=mt&&(Z=mt.defaultView)&&Z.top!==Z&&(Z.addEventListener?Z.addEventListener("unload",wl,!1):Z.attachEvent&&Z.attachEvent("onunload",wl)),m.scope=qi(function(it){return Xt.appendChild(it).appendChild(mt.createElement("div")),typeof it.querySelectorAll<"u"&&!it.querySelectorAll(":scope fieldset div").length}),m.attributes=qi(function(it){return it.className="i",!it.getAttribute("className")}),m.getElementsByTagName=qi(function(it){return it.appendChild(mt.createComment("")),!it.getElementsByTagName("*").length}),m.getElementsByClassName=Co.test(mt.getElementsByClassName),m.getById=qi(function(it){return Xt.appendChild(it).id=Se,!mt.getElementsByName||!mt.getElementsByName(Se).length}),m.getById?(v.filter.ID=function(it){var yt=it.replace(sn,ln);return function(Tt){return Tt.getAttribute("id")===yt}},v.find.ID=function(it,yt){if(typeof yt.getElementById<"u"&&se){var Tt=yt.getElementById(it);return Tt?[Tt]:[]}}):(v.filter.ID=function(it){var yt=it.replace(sn,ln);return function(Tt){var zt=typeof Tt.getAttributeNode<"u"&&Tt.getAttributeNode("id");return zt&&zt.value===yt}},v.find.ID=function(it,yt){if(typeof yt.getElementById<"u"&&se){var Tt,zt,jt,ee=yt.getElementById(it);if(ee){if(Tt=ee.getAttributeNode("id"),Tt&&Tt.value===it)return[ee];for(jt=yt.getElementsByName(it),zt=0;ee=jt[zt++];)if(Tt=ee.getAttributeNode("id"),Tt&&Tt.value===it)return[ee]}return[]}}),v.find.TAG=m.getElementsByTagName?function(it,yt){if(typeof yt.getElementsByTagName<"u")return yt.getElementsByTagName(it);if(m.qsa)return yt.querySelectorAll(it)}:function(it,yt){var Tt,zt=[],jt=0,ee=yt.getElementsByTagName(it);if(it==="*"){for(;Tt=ee[jt++];)Tt.nodeType===1&&zt.push(Tt);return zt}return ee},v.find.CLASS=m.getElementsByClassName&&function(it,yt){if(typeof yt.getElementsByClassName<"u"&&se)return yt.getElementsByClassName(it)},Je=[],Jt=[],(m.qsa=Co.test(mt.querySelectorAll))&&(qi(function(it){var yt;Xt.appendChild(it).innerHTML="<a id='"+Se+"'></a><select id='"+Se+"-\r\\' msallowcapture=''><option selected=''></option></select>",it.querySelectorAll("[msallowcapture^='']").length&&Jt.push("[*^$]="+xe+`*(?:''|"")`),it.querySelectorAll("[selected]").length||Jt.push("\\["+xe+"*(?:value|"+ra+")"),it.querySelectorAll("[id~="+Se+"-]").length||Jt.push("~="),yt=mt.createElement("input"),yt.setAttribute("name",""),it.appendChild(yt),it.querySelectorAll("[name='']").length||Jt.push("\\["+xe+"*name"+xe+"*="+xe+`*(?:''|"")`),it.querySelectorAll(":checked").length||Jt.push(":checked"),it.querySelectorAll("a#"+Se+"+*").length||Jt.push(".#.+[+~]"),it.querySelectorAll("\\\f"),Jt.push("[\\r\\n\\f]")}),qi(function(it){it.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var yt=mt.createElement("input");yt.setAttribute("type","hidden"),it.appendChild(yt).setAttribute("name","D"),it.querySelectorAll("[name=d]").length&&Jt.push("name"+xe+"*[*^$|!~]?="),it.querySelectorAll(":enabled").length!==2&&Jt.push(":enabled",":disabled"),Xt.appendChild(it).disabled=!0,it.querySelectorAll(":disabled").length!==2&&Jt.push(":enabled",":disabled"),it.querySelectorAll("*,:x"),Jt.push(",.*:")})),(m.matchesSelector=Co.test(Ye=Xt.matches||Xt.webkitMatchesSelector||Xt.mozMatchesSelector||Xt.oMatchesSelector||Xt.msMatchesSelector))&&qi(function(it){m.disconnectedMatch=Ye.call(it,"*"),Ye.call(it,"[s!='']:x"),Je.push("!=",aa)}),Jt=Jt.length&&new RegExp(Jt.join("|")),Je=Je.length&&new RegExp(Je.join("|")),j=Co.test(Xt.compareDocumentPosition),Si=j||Co.test(Xt.contains)?function(it,yt){var Tt=it.nodeType===9?it.documentElement:it,zt=yt&&yt.parentNode;return it===zt||!!(zt&&zt.nodeType===1&&(Tt.contains?Tt.contains(zt):it.compareDocumentPosition&&it.compareDocumentPosition(zt)&16))}:function(it,yt){if(yt){for(;yt=yt.parentNode;)if(yt===it)return!0}return!1},En=j?function(it,yt){if(it===yt)return xt=!0,0;var Tt=!it.compareDocumentPosition-!yt.compareDocumentPosition;return Tt||(Tt=(it.ownerDocument||it)==(yt.ownerDocument||yt)?it.compareDocumentPosition(yt):1,Tt&1||!m.sortDetached&&yt.compareDocumentPosition(it)===Tt?it==mt||it.ownerDocument==ae&&Si(ae,it)?-1:yt==mt||yt.ownerDocument==ae&&Si(ae,yt)?1:pt?$n(pt,it)-$n(pt,yt):0:Tt&4?-1:1)}:function(it,yt){if(it===yt)return xt=!0,0;var Tt,zt=0,jt=it.parentNode,ee=yt.parentNode,te=[it],ne=[yt];if(!jt||!ee)return it==mt?-1:yt==mt?1:jt?-1:ee?1:pt?$n(pt,it)-$n(pt,yt):0;if(jt===ee)return _l(it,yt);for(Tt=it;Tt=Tt.parentNode;)te.unshift(Tt);for(Tt=yt;Tt=Tt.parentNode;)ne.unshift(Tt);for(;te[zt]===ne[zt];)zt++;return zt?_l(te[zt],ne[zt]):te[zt]==ae?-1:ne[zt]==ae?1:0}),mt},Ee.matches=function(I,j){return Ee(I,null,null,j)},Ee.matchesSelector=function(I,j){if(ht(I),m.matchesSelector&&se&&!Ti[j+" "]&&(!Je||!Je.test(j))&&(!Jt||!Jt.test(j)))try{var Z=Ye.call(I,j);if(Z||m.disconnectedMatch||I.document&&I.document.nodeType!==11)return Z}catch(gt){Ti(j,!0)}return Ee(j,mt,null,[I]).length>0},Ee.contains=function(I,j){return(I.ownerDocument||I)!=mt&&ht(I),Si(I,j)},Ee.attr=function(I,j){(I.ownerDocument||I)!=mt&&ht(I);var Z=v.attrHandle[j.toLowerCase()],gt=Z&&An.call(v.attrHandle,j.toLowerCase())?Z(I,j,!se):void 0;return gt!==void 0?gt:m.attributes||!se?I.getAttribute(j):(gt=I.getAttributeNode(j))&&gt.specified?gt.value:null},Ee.escape=function(I){return(I+"").replace(yl,bl)},Ee.error=function(I){throw new Error("Syntax error, unrecognized expression: "+I)},Ee.uniqueSort=function(I){var j,Z=[],gt=0,it=0;if(xt=!m.detectDuplicates,pt=!m.sortStable&&I.slice(0),I.sort(En),xt){for(;j=I[it++];)j===I[it]&&(gt=Z.push(it));for(;gt--;)I.splice(Z[gt],1)}return pt=null,I},_=Ee.getText=function(I){var j,Z="",gt=0,it=I.nodeType;if(it){if(it===1||it===9||it===11){if(typeof I.textContent=="string")return I.textContent;for(I=I.firstChild;I;I=I.nextSibling)Z+=_(I)}else if(it===3||it===4)return I.nodeValue}else for(;j=I[gt++];)Z+=_(j);return Z},v=Ee.selectors={cacheLength:50,createPseudo:Ui,match:rr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(I){return I[1]=I[1].replace(sn,ln),I[3]=(I[3]||I[4]||I[5]||"").replace(sn,ln),I[2]==="~="&&(I[3]=" "+I[3]+" "),I.slice(0,4)},CHILD:function(I){return I[1]=I[1].toLowerCase(),I[1].slice(0,3)==="nth"?(I[3]||Ee.error(I[0]),I[4]=+(I[4]?I[5]+(I[6]||1):2*(I[3]==="even"||I[3]==="odd")),I[5]=+(I[7]+I[8]||I[3]==="odd")):I[3]&&Ee.error(I[0]),I},PSEUDO:function(I){var j,Z=!I[6]&&I[2];return rr.CHILD.test(I[0])?null:(I[3]?I[2]=I[4]||I[5]||"":Z&&bd.test(Z)&&(j=T(Z,!0))&&(j=Z.indexOf(")",Z.length-j)-Z.length)&&(I[0]=I[0].slice(0,j),I[2]=Z.slice(0,j)),I.slice(0,3))}},filter:{TAG:function(I){var j=I.replace(sn,ln).toLowerCase();return I==="*"?function(){return!0}:function(Z){return Z.nodeName&&Z.nodeName.toLowerCase()===j}},CLASS:function(I){var j=Re[I+" "];return j||(j=new RegExp("(^|"+xe+")"+I+"("+xe+"|$)"))&&Re(I,function(Z){return j.test(typeof Z.className=="string"&&Z.className||typeof Z.getAttribute<"u"&&Z.getAttribute("class")||"")})},ATTR:function(I,j,Z){return function(gt){var it=Ee.attr(gt,I);return it==null?j==="!=":j?(it+="",j==="="?it===Z:j==="!="?it!==Z:j==="^="?Z&&it.indexOf(Z)===0:j==="*="?Z&&it.indexOf(Z)>-1:j==="$="?Z&&it.slice(-Z.length)===Z:j==="~="?(" "+it.replace(gd," ")+" ").indexOf(Z)>-1:j==="|="?it===Z||it.slice(0,Z.length+1)===Z+"-":!1):!0}},CHILD:function(I,j,Z,gt,it){var yt=I.slice(0,3)!=="nth",Tt=I.slice(-4)!=="last",zt=j==="of-type";return gt===1&&it===0?function(jt){return!!jt.parentNode}:function(jt,ee,te){var ne,de,Ae,ie,Qe,ai,Ei=yt!==Tt?"nextSibling":"previousSibling",Oe=jt.parentNode,So=zt&&jt.nodeName.toLowerCase(),To=!te&&!zt,Ai=!1;if(Oe){if(yt){for(;Ei;){for(ie=jt;ie=ie[Ei];)if(zt?ie.nodeName.toLowerCase()===So:ie.nodeType===1)return!1;ai=Ei=I==="only"&&!ai&&"nextSibling"}return!0}if(ai=[Tt?Oe.firstChild:Oe.lastChild],Tt&&To){for(ie=Oe,Ae=ie[Se]||(ie[Se]={}),de=Ae[ie.uniqueID]||(Ae[ie.uniqueID]={}),ne=de[I]||[],Qe=ne[0]===bi&&ne[1],Ai=Qe&&ne[2],ie=Qe&&Oe.childNodes[Qe];ie=++Qe&&ie&&ie[Ei]||(Ai=Qe=0)||ai.pop();)if(ie.nodeType===1&&++Ai&&ie===jt){de[I]=[bi,Qe,Ai];break}}else if(To&&(ie=jt,Ae=ie[Se]||(ie[Se]={}),de=Ae[ie.uniqueID]||(Ae[ie.uniqueID]={}),ne=de[I]||[],Qe=ne[0]===bi&&ne[1],Ai=Qe),Ai===!1)for(;(ie=++Qe&&ie&&ie[Ei]||(Ai=Qe=0)||ai.pop())&&!((zt?ie.nodeName.toLowerCase()===So:ie.nodeType===1)&&++Ai&&(To&&(Ae=ie[Se]||(ie[Se]={}),de=Ae[ie.uniqueID]||(Ae[ie.uniqueID]={}),de[I]=[bi,Ai]),ie===jt)););return Ai-=it,Ai===gt||Ai%gt===0&&Ai/gt>=0}}},PSEUDO:function(I,j){var Z,gt=v.pseudos[I]||v.setFilters[I.toLowerCase()]||Ee.error("unsupported pseudo: "+I);return gt[Se]?gt(j):gt.length>1?(Z=[I,I,"",j],v.setFilters.hasOwnProperty(I.toLowerCase())?Ui(function(it,yt){for(var Tt,zt=gt(it,j),jt=zt.length;jt--;)Tt=$n(it,zt[jt]),it[Tt]=!(yt[Tt]=zt[jt])}):function(it){return gt(it,0,Z)}):gt}},pseudos:{not:Ui(function(I){var j=[],Z=[],gt=W(I.replace(or,"$1"));return gt[Se]?Ui(function(it,yt,Tt,zt){for(var jt,ee=gt(it,null,zt,[]),te=it.length;te--;)(jt=ee[te])&&(it[te]=!(yt[te]=jt))}):function(it,yt,Tt){return j[0]=it,gt(j,null,Tt,Z),j[0]=null,!Z.pop()}}),has:Ui(function(I){return function(j){return Ee(I,j).length>0}}),contains:Ui(function(I){return I=I.replace(sn,ln),function(j){return(j.textContent||_(j)).indexOf(I)>-1}}),lang:Ui(function(I){return wd.test(I||"")||Ee.error("unsupported lang: "+I),I=I.replace(sn,ln).toLowerCase(),function(j){var Z;do if(Z=se?j.lang:j.getAttribute("xml:lang")||j.getAttribute("lang"))return Z=Z.toLowerCase(),Z===I||Z.indexOf(I+"-")===0;while((j=j.parentNode)&&j.nodeType===1);return!1}}),target:function(I){var j=s.location&&s.location.hash;return j&&j.slice(1)===I.id},root:function(I){return I===Xt},focus:function(I){return I===mt.activeElement&&(!mt.hasFocus||mt.hasFocus())&&!!(I.type||I.href||~I.tabIndex)},enabled:xl(!1),disabled:xl(!0),checked:function(I){var j=I.nodeName.toLowerCase();return j==="input"&&!!I.checked||j==="option"&&!!I.selected},selected:function(I){return I.parentNode&&I.parentNode.selectedIndex,I.selected===!0},empty:function(I){for(I=I.firstChild;I;I=I.nextSibling)if(I.nodeType<6)return!1;return!0},parent:function(I){return!v.pseudos.empty(I)},header:function(I){return kd.test(I.nodeName)},input:function(I){return xd.test(I.nodeName)},button:function(I){var j=I.nodeName.toLowerCase();return j==="input"&&I.type==="button"||j==="button"},text:function(I){var j;return I.nodeName.toLowerCase()==="input"&&I.type==="text"&&((j=I.getAttribute("type"))==null||j.toLowerCase()==="text")},first:Mn(function(){return[0]}),last:Mn(function(I,j){return[j-1]}),eq:Mn(function(I,j,Z){return[Z<0?Z+j:Z]}),even:Mn(function(I,j){for(var Z=0;Z<j;Z+=2)I.push(Z);return I}),odd:Mn(function(I,j){for(var Z=1;Z<j;Z+=2)I.push(Z);return I}),lt:Mn(function(I,j,Z){for(var gt=Z<0?Z+j:Z>j?j:Z;--gt>=0;)I.push(gt);return I}),gt:Mn(function(I,j,Z){for(var gt=Z<0?Z+j:Z;++gt<j;)I.push(gt);return I})}},v.pseudos.nth=v.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[u]=Td(u);for(u in{submit:!0,reset:!0})v.pseudos[u]=Ed(u);function kl(){}kl.prototype=v.filters=v.pseudos,v.setFilters=new kl,T=Ee.tokenize=function(I,j){var Z,gt,it,yt,Tt,zt,jt,ee=ko[I+" "];if(ee)return j?0:ee.slice(0);for(Tt=I,zt=[],jt=v.preFilter;Tt;){(!Z||(gt=vd.exec(Tt)))&&(gt&&(Tt=Tt.slice(gt[0].length)||Tt),zt.push(it=[])),Z=!1,(gt=vl.exec(Tt))&&(Z=gt.shift(),it.push({value:Z,type:gt[0].replace(or," ")}),Tt=Tt.slice(Z.length));for(yt in v.filter)(gt=rr[yt].exec(Tt))&&(!jt[yt]||(gt=jt[yt](gt)))&&(Z=gt.shift(),it.push({value:Z,type:yt,matches:gt}),Tt=Tt.slice(Z.length));if(!Z)break}return j?Tt.length:Tt?Ee.error(I):ko(I,zt).slice(0)};function sr(I){for(var j=0,Z=I.length,gt="";j<Z;j++)gt+=I[j].value;return gt}function lr(I,j,Z){var gt=j.dir,it=j.next,yt=it||gt,Tt=Z&&yt==="parentNode",zt=ve++;return j.first?function(jt,ee,te){for(;jt=jt[gt];)if(jt.nodeType===1||Tt)return I(jt,ee,te);return!1}:function(jt,ee,te){var ne,de,Ae,ie=[bi,zt];if(te){for(;jt=jt[gt];)if((jt.nodeType===1||Tt)&&I(jt,ee,te))return!0}else for(;jt=jt[gt];)if(jt.nodeType===1||Tt)if(Ae=jt[Se]||(jt[Se]={}),de=Ae[jt.uniqueID]||(Ae[jt.uniqueID]={}),it&&it===jt.nodeName.toLowerCase())jt=jt[gt]||jt;else{if((ne=de[yt])&&ne[0]===bi&&ne[1]===zt)return ie[2]=ne[2];if(de[yt]=ie,ie[2]=I(jt,ee,te))return!0}return!1}}function ha(I){return I.length>1?function(j,Z,gt){for(var it=I.length;it--;)if(!I[it](j,Z,gt))return!1;return!0}:I[0]}function Ad(I,j,Z){for(var gt=0,it=j.length;gt<it;gt++)Ee(I,j[gt],Z);return Z}function cr(I,j,Z,gt,it){for(var yt,Tt=[],zt=0,jt=I.length,ee=j!=null;zt<jt;zt++)(yt=I[zt])&&(!Z||Z(yt,gt,it))&&(Tt.push(yt),ee&&j.push(zt));return Tt}function ua(I,j,Z,gt,it,yt){return gt&&!gt[Se]&&(gt=ua(gt)),it&&!it[Se]&&(it=ua(it,yt)),Ui(function(Tt,zt,jt,ee){var te,ne,de,Ae=[],ie=[],Qe=zt.length,ai=Tt||Ad(j||"*",jt.nodeType?[jt]:jt,[]),Ei=I&&(Tt||!j)?cr(ai,Ae,I,jt,ee):ai,Oe=Z?it||(Tt?I:Qe||gt)?[]:zt:Ei;if(Z&&Z(Ei,Oe,jt,ee),gt)for(te=cr(Oe,ie),gt(te,[],jt,ee),ne=te.length;ne--;)(de=te[ne])&&(Oe[ie[ne]]=!(Ei[ie[ne]]=de));if(Tt){if(it||I){if(it){for(te=[],ne=Oe.length;ne--;)(de=Oe[ne])&&te.push(Ei[ne]=de);it(null,Oe=[],te,ee)}for(ne=Oe.length;ne--;)(de=Oe[ne])&&(te=it?$n(Tt,de):Ae[ne])>-1&&(Tt[te]=!(zt[te]=de))}}else Oe=cr(Oe===zt?Oe.splice(Qe,Oe.length):Oe),it?it(null,zt,Oe,ee):mn.apply(zt,Oe)})}function da(I){for(var j,Z,gt,it=I.length,yt=v.relative[I[0].type],Tt=yt||v.relative[" "],zt=yt?1:0,jt=lr(function(ne){return ne===j},Tt,!0),ee=lr(function(ne){return $n(j,ne)>-1},Tt,!0),te=[function(ne,de,Ae){var ie=!yt&&(Ae||de!==nt)||((j=de).nodeType?jt(ne,de,Ae):ee(ne,de,Ae));return j=null,ie}];zt<it;zt++)if(Z=v.relative[I[zt].type])te=[lr(ha(te),Z)];else{if(Z=v.filter[I[zt].type].apply(null,I[zt].matches),Z[Se]){for(gt=++zt;gt<it&&!v.relative[I[gt].type];gt++);return ua(zt>1&&ha(te),zt>1&&sr(I.slice(0,zt-1).concat({value:I[zt-2].type===" "?"*":""})).replace(or,"$1"),Z,zt<gt&&da(I.slice(zt,gt)),gt<it&&da(I=I.slice(gt)),gt<it&&sr(I))}te.push(Z)}return ha(te)}function $d(I,j){var Z=j.length>0,gt=I.length>0,it=function(yt,Tt,zt,jt,ee){var te,ne,de,Ae=0,ie="0",Qe=yt&&[],ai=[],Ei=nt,Oe=yt||gt&&v.find.TAG("*",ee),So=bi+=Ei==null?1:Math.random()||.1,To=Oe.length;for(ee&&(nt=Tt==mt||Tt||ee);ie!==To&&(te=Oe[ie])!=null;ie++){if(gt&&te){for(ne=0,!Tt&&te.ownerDocument!=mt&&(ht(te),zt=!se);de=I[ne++];)if(de(te,Tt||mt,zt)){jt.push(te);break}ee&&(bi=So)}Z&&((te=!de&&te)&&Ae--,yt&&Qe.push(te))}if(Ae+=ie,Z&&ie!==Ae){for(ne=0;de=j[ne++];)de(Qe,ai,Tt,zt);if(yt){if(Ae>0)for(;ie--;)Qe[ie]||ai[ie]||(ai[ie]=fn.call(jt));ai=cr(ai)}mn.apply(jt,ai),ee&&!yt&&ai.length>0&&Ae+j.length>1&&Ee.uniqueSort(jt)}return ee&&(bi=So,nt=Ei),Qe};return Z?Ui(it):it}return W=Ee.compile=function(I,j){var Z,gt=[],it=[],yt=nr[I+" "];if(!yt){for(j||(j=T(I)),Z=j.length;Z--;)yt=da(j[Z]),yt[Se]?gt.push(yt):it.push(yt);yt=nr(I,$d(it,gt)),yt.selector=I}return yt},B=Ee.select=function(I,j,Z,gt){var it,yt,Tt,zt,jt,ee=typeof I=="function"&&I,te=!gt&&T(I=ee.selector||I);if(Z=Z||[],te.length===1){if(yt=te[0]=te[0].slice(0),yt.length>2&&(Tt=yt[0]).type==="ID"&&j.nodeType===9&&se&&v.relative[yt[1].type]){if(j=(v.find.ID(Tt.matches[0].replace(sn,ln),j)||[])[0],j)ee&&(j=j.parentNode);else return Z;I=I.slice(yt.shift().value.length)}for(it=rr.needsContext.test(I)?0:yt.length;it--&&(Tt=yt[it],!v.relative[zt=Tt.type]);)if((jt=v.find[zt])&&(gt=jt(Tt.matches[0].replace(sn,ln),sa.test(yt[0].type)&&ca(j.parentNode)||j))){if(yt.splice(it,1),I=gt.length&&sr(yt),!I)return mn.apply(Z,gt),Z;break}}return(ee||W(I,te))(gt,j,!se,Z,!j||sa.test(I)&&ca(j.parentNode)||j),Z},m.sortStable=Se.split("").sort(En).join("")===Se,m.detectDuplicates=!!xt,ht(),m.sortDetached=qi(function(I){return I.compareDocumentPosition(mt.createElement("fieldset"))&1}),qi(function(I){return I.innerHTML="<a href='#'></a>",I.firstChild.getAttribute("href")==="#"})||la("type|href|height|width",function(I,j,Z){if(!Z)return I.getAttribute(j,j.toLowerCase()==="type"?1:2)}),(!m.attributes||!qi(function(I){return I.innerHTML="<input/>",I.firstChild.setAttribute("value",""),I.firstChild.getAttribute("value")===""}))&&la("value",function(I,j,Z){if(!Z&&I.nodeName.toLowerCase()==="input")return I.defaultValue}),qi(function(I){return I.getAttribute("disabled")==null})||la(ra,function(I,j,Z){var gt;if(!Z)return I[j]===!0?j.toLowerCase():(gt=I.getAttributeNode(j))&&gt.specified?gt.value:null}),Ee}(r);o.find=p,o.expr=p.selectors,o.expr[":"]=o.expr.pseudos,o.uniqueSort=o.unique=p.uniqueSort,o.text=p.getText,o.isXMLDoc=p.isXML,o.contains=p.contains,o.escapeSelector=p.escape;var y=function(s,u,m){for(var v=[],_=m!==void 0;(s=s[u])&&s.nodeType!==9;)if(s.nodeType===1){if(_&&o(s).is(m))break;v.push(s)}return v},C=function(s,u){for(var m=[];s;s=s.nextSibling)s.nodeType===1&&s!==u&&m.push(s);return m},D=o.expr.match.needsContext;function P(s,u){return s.nodeName&&s.nodeName.toLowerCase()===u.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(s,u,m){return Y(u)?o.grep(s,function(v,_){return!!u.call(v,_,v)!==m}):u.nodeType?o.grep(s,function(v){return v===u!==m}):typeof u!="string"?o.grep(s,function(v){return x.call(u,v)>-1!==m}):o.filter(u,s,m)}o.filter=function(s,u,m){var v=u[0];return m&&(s=":not("+s+")"),u.length===1&&v.nodeType===1?o.find.matchesSelector(v,s)?[v]:[]:o.find.matches(s,o.grep(u,function(_){return _.nodeType===1}))},o.fn.extend({find:function(s){var u,m,v=this.length,_=this;if(typeof s!="string")return this.pushStack(o(s).filter(function(){for(u=0;u<v;u++)if(o.contains(_[u],this))return!0}));for(m=this.pushStack([]),u=0;u<v;u++)o.find(s,_[u],m);return v>1?o.uniqueSort(m):m},filter:function(s){return this.pushStack(J(this,s||[],!1))},not:function(s){return this.pushStack(J(this,s||[],!0))},is:function(s){return!!J(this,typeof s=="string"&&D.test(s)?o(s):s||[],!1).length}});var dt,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,V=o.fn.init=function(s,u,m){var v,_;if(!s)return this;if(m=m||dt,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?v=[null,s,null]:v=Et.exec(s),v&&(v[1]||!u))if(v[1]){if(u=u instanceof o?u[0]:u,o.merge(this,o.parseHTML(v[1],u&&u.nodeType?u.ownerDocument||u:G,!0)),L.test(v[1])&&o.isPlainObject(u))for(v in u)Y(this[v])?this[v](u[v]):this.attr(v,u[v]);return this}else return _=G.getElementById(v[2]),_&&(this[0]=_,this.length=1),this;else return!u||u.jquery?(u||m).find(s):this.constructor(u).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(Y(s))return m.ready!==void 0?m.ready(s):s(o)}return o.makeArray(s,this)};V.prototype=o.fn,dt=o(G);var N=/^(?:parents|prev(?:Until|All))/,tt={children:!0,contents:!0,next:!0,prev:!0};o.fn.extend({has:function(s){var u=o(s,this),m=u.length;return this.filter(function(){for(var v=0;v<m;v++)if(o.contains(this,u[v]))return!0})},closest:function(s,u){var m,v=0,_=this.length,k=[],T=typeof s!="string"&&o(s);if(!D.test(s)){for(;v<_;v++)for(m=this[v];m&&m!==u;m=m.parentNode)if(m.nodeType<11&&(T?T.index(m)>-1:m.nodeType===1&&o.find.matchesSelector(m,s))){k.push(m);break}}return this.pushStack(k.length>1?o.uniqueSort(k):k)},index:function(s){return s?typeof s=="string"?x.call(o(s),this[0]):x.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,u){return this.pushStack(o.uniqueSort(o.merge(this.get(),o(s,u))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function ot(s,u){for(;(s=s[u])&&s.nodeType!==1;);return s}o.each({parent:function(s){var u=s.parentNode;return u&&u.nodeType!==11?u:null},parents:function(s){return y(s,"parentNode")},parentsUntil:function(s,u,m){return y(s,"parentNode",m)},next:function(s){return ot(s,"nextSibling")},prev:function(s){return ot(s,"previousSibling")},nextAll:function(s){return y(s,"nextSibling")},prevAll:function(s){return y(s,"previousSibling")},nextUntil:function(s,u,m){return y(s,"nextSibling",m)},prevUntil:function(s,u,m){return y(s,"previousSibling",m)},siblings:function(s){return C((s.parentNode||{}).firstChild,s)},children:function(s){return C(s.firstChild)},contents:function(s){return s.contentDocument!=null&&d(s.contentDocument)?s.contentDocument:(P(s,"template")&&(s=s.content||s),o.merge([],s.childNodes))}},function(s,u){o.fn[s]=function(m,v){var _=o.map(this,u,m);return s.slice(-5)!=="Until"&&(v=m),v&&typeof v=="string"&&(_=o.filter(v,_)),this.length>1&&(tt[s]||o.uniqueSort(_),N.test(s)&&_.reverse()),this.pushStack(_)}});var X=/[^\x20\t\r\n\f]+/g;function K(s){var u={};return o.each(s.match(X)||[],function(m,v){u[v]=!0}),u}o.Callbacks=function(s){s=typeof s=="string"?K(s):o.extend({},s);var u,m,v,_,k=[],T=[],W=-1,B=function(){for(_=_||s.once,v=u=!0;T.length;W=-1)for(m=T.shift();++W<k.length;)k[W].apply(m[0],m[1])===!1&&s.stopOnFalse&&(W=k.length,m=!1);s.memory||(m=!1),u=!1,_&&(m?k=[]:k="")},nt={add:function(){return k&&(m&&!u&&(W=k.length-1,T.push(m)),function pt(xt){o.each(xt,function(ht,mt){Y(mt)?(!s.unique||!nt.has(mt))&&k.push(mt):mt&&mt.length&&n(mt)!=="string"&&pt(mt)})}(arguments),m&&!u&&B()),this},remove:function(){return o.each(arguments,function(pt,xt){for(var ht;(ht=o.inArray(xt,k,ht))>-1;)k.splice(ht,1),ht<=W&&W--}),this},has:function(pt){return pt?o.inArray(pt,k)>-1:k.length>0},empty:function(){return k&&(k=[]),this},disable:function(){return _=T=[],k=m="",this},disabled:function(){return!k},lock:function(){return _=T=[],!m&&!u&&(k=m=""),this},locked:function(){return!!_},fireWith:function(pt,xt){return _||(xt=xt||[],xt=[pt,xt.slice?xt.slice():xt],T.push(xt),u||B()),this},fire:function(){return nt.fireWith(this,arguments),this},fired:function(){return!!v}};return nt};function at(s){return s}function st(s){throw s}function bt(s,u,m,v){var _;try{s&&Y(_=s.promise)?_.call(s).done(u).fail(m):s&&Y(_=s.then)?_.call(s,u,m):u.apply(void 0,[s].slice(v))}catch(k){m.apply(void 0,[k])}}o.extend({Deferred:function(s){var u=[["notify","progress",o.Callbacks("memory"),o.Callbacks("memory"),2],["resolve","done",o.Callbacks("once memory"),o.Callbacks("once memory"),0,"resolved"],["reject","fail",o.Callbacks("once memory"),o.Callbacks("once memory"),1,"rejected"]],m="pending",v={state:function(){return m},always:function(){return _.done(arguments).fail(arguments),this},catch:function(k){return v.then(null,k)},pipe:function(){var k=arguments;return o.Deferred(function(T){o.each(u,function(W,B){var nt=Y(k[B[4]])&&k[B[4]];_[B[1]](function(){var pt=nt&&nt.apply(this,arguments);pt&&Y(pt.promise)?pt.promise().progress(T.notify).done(T.resolve).fail(T.reject):T[B[0]+"With"](this,nt?[pt]:arguments)})}),k=null}).promise()},then:function(k,T,W){var B=0;function nt(pt,xt,ht,mt){return function(){var Xt=this,se=arguments,Jt=function(){var Ye,Si;if(!(pt<B)){if(Ye=ht.apply(Xt,se),Ye===xt.promise())throw new TypeError("Thenable self-resolution");Si=Ye&&(typeof Ye=="object"||typeof Ye=="function")&&Ye.then,Y(Si)?mt?Si.call(Ye,nt(B,xt,at,mt),nt(B,xt,st,mt)):(B++,Si.call(Ye,nt(B,xt,at,mt),nt(B,xt,st,mt),nt(B,xt,at,xt.notifyWith))):(ht!==at&&(Xt=void 0,se=[Ye]),(mt||xt.resolveWith)(Xt,se))}},Je=mt?Jt:function(){try{Jt()}catch(Ye){o.Deferred.exceptionHook&&o.Deferred.exceptionHook(Ye,Je.stackTrace),pt+1>=B&&(ht!==st&&(Xt=void 0,se=[Ye]),xt.rejectWith(Xt,se))}};pt?Je():(o.Deferred.getStackHook&&(Je.stackTrace=o.Deferred.getStackHook()),r.setTimeout(Je))}}return o.Deferred(function(pt){u[0][3].add(nt(0,pt,Y(W)?W:at,pt.notifyWith)),u[1][3].add(nt(0,pt,Y(k)?k:at)),u[2][3].add(nt(0,pt,Y(T)?T:st))}).promise()},promise:function(k){return k!=null?o.extend(k,v):v}},_={};return o.each(u,function(k,T){var W=T[2],B=T[5];v[T[1]]=W.add,B&&W.add(function(){m=B},u[3-k][2].disable,u[3-k][3].disable,u[0][2].lock,u[0][3].lock),W.add(T[3].fire),_[T[0]]=function(){return _[T[0]+"With"](this===_?void 0:this,arguments),this},_[T[0]+"With"]=W.fireWith}),v.promise(_),s&&s.call(_,_),_},when:function(s){var u=arguments.length,m=u,v=Array(m),_=f.call(arguments),k=o.Deferred(),T=function(W){return function(B){v[W]=this,_[W]=arguments.length>1?f.call(arguments):B,--u||k.resolveWith(v,_)}};if(u<=1&&(bt(s,k.done(T(m)).resolve,k.reject,!u),k.state()==="pending"||Y(_[m]&&_[m].then)))return k.then();for(;m--;)bt(_[m],T(m),k.reject);return k.promise()}});var $t=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;o.Deferred.exceptionHook=function(s,u){r.console&&r.console.warn&&s&&$t.test(s.name)&&r.console.warn("jQuery.Deferred exception: "+s.message,s.stack,u)},o.readyException=function(s){r.setTimeout(function(){throw s})};var Ht=o.Deferred();o.fn.ready=function(s){return Ht.then(s).catch(function(u){o.readyException(u)}),this},o.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--o.readyWait:o.isReady)||(o.isReady=!0,!(s!==!0&&--o.readyWait>0)&&Ht.resolveWith(G,[o]))}}),o.ready.then=Ht.then;function Zt(){G.removeEventListener("DOMContentLoaded",Zt),r.removeEventListener("load",Zt),o.ready()}G.readyState==="complete"||G.readyState!=="loading"&&!G.documentElement.doScroll?r.setTimeout(o.ready):(G.addEventListener("DOMContentLoaded",Zt),r.addEventListener("load",Zt));var qt=function(s,u,m,v,_,k,T){var W=0,B=s.length,nt=m==null;if(n(m)==="object"){_=!0;for(W in m)qt(s,u,W,m[W],!0,k,T)}else if(v!==void 0&&(_=!0,Y(v)||(T=!0),nt&&(T?(u.call(s,v),u=null):(nt=u,u=function(pt,xt,ht){return nt.call(o(pt),ht)})),u))for(;W<B;W++)u(s[W],m,T?v:v.call(s[W],W,u(s[W],m)));return _?s:nt?u.call(s):B?u(s[0],m):k},Kt=/^-ms-/,Vt=/-([a-z])/g;function we(s,u){return u.toUpperCase()}function ge(s){return s.replace(Kt,"ms-").replace(Vt,we)}var Ne=function(s){return s.nodeType===1||s.nodeType===9||!+s.nodeType};function Ze(){this.expando=o.expando+Ze.uid++}Ze.uid=1,Ze.prototype={cache:function(s){var u=s[this.expando];return u||(u={},Ne(s)&&(s.nodeType?s[this.expando]=u:Object.defineProperty(s,this.expando,{value:u,configurable:!0}))),u},set:function(s,u,m){var v,_=this.cache(s);if(typeof u=="string")_[ge(u)]=m;else for(v in u)_[ge(v)]=u[v];return _},get:function(s,u){return u===void 0?this.cache(s):s[this.expando]&&s[this.expando][ge(u)]},access:function(s,u,m){return u===void 0||u&&typeof u=="string"&&m===void 0?this.get(s,u):(this.set(s,u,m),m!==void 0?m:u)},remove:function(s,u){var m,v=s[this.expando];if(v!==void 0){if(u!==void 0)for(Array.isArray(u)?u=u.map(ge):(u=ge(u),u=u in v?[u]:u.match(X)||[]),m=u.length;m--;)delete v[u[m]];(u===void 0||o.isEmptyObject(v))&&(s.nodeType?s[this.expando]=void 0:delete s[this.expando])}},hasData:function(s){var u=s[this.expando];return u!==void 0&&!o.isEmptyObject(u)}};var Gt=new Ze,re=new Ze,ke=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ti=/[A-Z]/g;function ii(s){return s==="true"?!0:s==="false"?!1:s==="null"?null:s===+s+""?+s:ke.test(s)?JSON.parse(s):s}function Pe(s,u,m){var v;if(m===void 0&&s.nodeType===1)if(v="data-"+u.replace(ti,"-$&").toLowerCase(),m=s.getAttribute(v),typeof m=="string"){try{m=ii(m)}catch(_){}re.set(s,u,m)}else m=void 0;return m}o.extend({hasData:function(s){return re.hasData(s)||Gt.hasData(s)},data:function(s,u,m){return re.access(s,u,m)},removeData:function(s,u){re.remove(s,u)},_data:function(s,u,m){return Gt.access(s,u,m)},_removeData:function(s,u){Gt.remove(s,u)}}),o.fn.extend({data:function(s,u){var m,v,_,k=this[0],T=k&&k.attributes;if(s===void 0){if(this.length&&(_=re.get(k),k.nodeType===1&&!Gt.get(k,"hasDataAttrs"))){for(m=T.length;m--;)T[m]&&(v=T[m].name,v.indexOf("data-")===0&&(v=ge(v.slice(5)),Pe(k,v,_[v])));Gt.set(k,"hasDataAttrs",!0)}return _}return typeof s=="object"?this.each(function(){re.set(this,s)}):qt(this,function(W){var B;if(k&&W===void 0)return B=re.get(k,s),B!==void 0||(B=Pe(k,s),B!==void 0)?B:void 0;this.each(function(){re.set(this,s,W)})},null,u,arguments.length>1,null,!0)},removeData:function(s){return this.each(function(){re.remove(this,s)})}}),o.extend({queue:function(s,u,m){var v;if(s)return u=(u||"fx")+"queue",v=Gt.get(s,u),m&&(!v||Array.isArray(m)?v=Gt.access(s,u,o.makeArray(m)):v.push(m)),v||[]},dequeue:function(s,u){u=u||"fx";var m=o.queue(s,u),v=m.length,_=m.shift(),k=o._queueHooks(s,u),T=function(){o.dequeue(s,u)};_==="inprogress"&&(_=m.shift(),v--),_&&(u==="fx"&&m.unshift("inprogress"),delete k.stop,_.call(s,T,k)),!v&&k&&k.empty.fire()},_queueHooks:function(s,u){var m=u+"queueHooks";return Gt.get(s,m)||Gt.access(s,m,{empty:o.Callbacks("once memory").add(function(){Gt.remove(s,[u+"queue",m])})})}}),o.fn.extend({queue:function(s,u){var m=2;return typeof s!="string"&&(u=s,s="fx",m--),arguments.length<m?o.queue(this[0],s):u===void 0?this:this.each(function(){var v=o.queue(this,s,u);o._queueHooks(this,s),s==="fx"&&v[0]!=="inprogress"&&o.dequeue(this,s)})},dequeue:function(s){return this.each(function(){o.dequeue(this,s)})},clearQueue:function(s){return this.queue(s||"fx",[])},promise:function(s,u){var m,v=1,_=o.Deferred(),k=this,T=this.length,W=function(){--v||_.resolveWith(k,[k])};for(typeof s!="string"&&(u=s,s=void 0),s=s||"fx";T--;)m=Gt.get(k[T],s+"queueHooks"),m&&m.empty&&(v++,m.empty.add(W));return W(),_.promise(u)}});var li=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_e=new RegExp("^(?:([+-])=|)("+li+")([a-z%]*)$","i"),Ce=["Top","Right","Bottom","Left"],be=G.documentElement,Le=function(s){return o.contains(s.ownerDocument,s)},Fi={composed:!0};be.getRootNode&&(Le=function(s){return o.contains(s.ownerDocument,s)||s.getRootNode(Fi)===s.ownerDocument});var gi=function(s,u){return s=u||s,s.style.display==="none"||s.style.display===""&&Le(s)&&o.css(s,"display")==="none"};function We(s,u,m,v){var _,k,T=20,W=v?function(){return v.cur()}:function(){return o.css(s,u,"")},B=W(),nt=m&&m[3]||(o.cssNumber[u]?"":"px"),pt=s.nodeType&&(o.cssNumber[u]||nt!=="px"&&+B)&&_e.exec(o.css(s,u));if(pt&&pt[3]!==nt){for(B=B/2,nt=nt||pt[3],pt=+B||1;T--;)o.style(s,u,pt+nt),(1-k)*(1-(k=W()/B||.5))<=0&&(T=0),pt=pt/k;pt=pt*2,o.style(s,u,pt+nt),m=m||[]}return m&&(pt=+pt||+B||0,_=m[1]?pt+(m[1]+1)*m[2]:+m[2],v&&(v.unit=nt,v.start=pt,v.end=_)),_}var vi={};function Qi(s){var u,m=s.ownerDocument,v=s.nodeName,_=vi[v];return _||(u=m.body.appendChild(m.createElement(v)),_=o.css(u,"display"),u.parentNode.removeChild(u),_==="none"&&(_="block"),vi[v]=_,_)}function ei(s,u){for(var m,v,_=[],k=0,T=s.length;k<T;k++)v=s[k],v.style&&(m=v.style.display,u?(m==="none"&&(_[k]=Gt.get(v,"display")||null,_[k]||(v.style.display="")),v.style.display===""&&gi(v)&&(_[k]=Qi(v))):m!=="none"&&(_[k]="none",Gt.set(v,"display",m)));for(k=0;k<T;k++)_[k]!=null&&(s[k].style.display=_[k]);return s}o.fn.extend({show:function(){return ei(this,!0)},hide:function(){return ei(this)},toggle:function(s){return typeof s=="boolean"?s?this.show():this.hide():this.each(function(){gi(this)?o(this).show():o(this).hide()})}});var ni=/^(?:checkbox|radio)$/i,He=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Xe=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=G.createDocumentFragment(),u=s.appendChild(G.createElement("div")),m=G.createElement("input");m.setAttribute("type","radio"),m.setAttribute("checked","checked"),m.setAttribute("name","t"),u.appendChild(m),U.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="<textarea>x</textarea>",U.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="<option></option>",U.option=!!u.lastChild})();var ce={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ce.tbody=ce.tfoot=ce.colgroup=ce.caption=ce.thead,ce.th=ce.td,U.option||(ce.optgroup=ce.option=[1,"<select multiple='multiple'>","</select>"]);function fe(s,u){var m;return typeof s.getElementsByTagName<"u"?m=s.getElementsByTagName(u||"*"):typeof s.querySelectorAll<"u"?m=s.querySelectorAll(u||"*"):m=[],u===void 0||u&&P(s,u)?o.merge([s],m):m}function S(s,u){for(var m=0,v=s.length;m<v;m++)Gt.set(s[m],"globalEval",!u||Gt.get(u[m],"globalEval"))}var z=/<|&#?\w+;/;function R(s,u,m,v,_){for(var k,T,W,B,nt,pt,xt=u.createDocumentFragment(),ht=[],mt=0,Xt=s.length;mt<Xt;mt++)if(k=s[mt],k||k===0)if(n(k)==="object")o.merge(ht,k.nodeType?[k]:k);else if(!z.test(k))ht.push(u.createTextNode(k));else{for(T=T||xt.appendChild(u.createElement("div")),W=(He.exec(k)||["",""])[1].toLowerCase(),B=ce[W]||ce._default,T.innerHTML=B[1]+o.htmlPrefilter(k)+B[2],pt=B[0];pt--;)T=T.lastChild;o.merge(ht,T.childNodes),T=xt.firstChild,T.textContent=""}for(xt.textContent="",mt=0;k=ht[mt++];){if(v&&o.inArray(k,v)>-1){_&&_.push(k);continue}if(nt=Le(k),T=fe(xt.appendChild(k),"script"),nt&&S(T),m)for(pt=0;k=T[pt++];)Xe.test(k.type||"")&&m.push(k)}return xt}var Q=/^([^.]*)(?:\.(.+)|)/;function ut(){return!0}function ft(){return!1}function lt(s,u){return s===rt()==(u==="focus")}function rt(){try{return G.activeElement}catch(s){}}function et(s,u,m,v,_,k){var T,W;if(typeof u=="object"){typeof m!="string"&&(v=v||m,m=void 0);for(W in u)et(s,W,m,v,u[W],k);return s}if(v==null&&_==null?(_=m,v=m=void 0):_==null&&(typeof m=="string"?(_=v,v=void 0):(_=v,v=m,m=void 0)),_===!1)_=ft;else if(!_)return s;return k===1&&(T=_,_=function(B){return o().off(B),T.apply(this,arguments)},_.guid=T.guid||(T.guid=o.guid++)),s.each(function(){o.event.add(this,u,_,v,m)})}o.event={global:{},add:function(s,u,m,v,_){var k,T,W,B,nt,pt,xt,ht,mt,Xt,se,Jt=Gt.get(s);if(Ne(s))for(m.handler&&(k=m,m=k.handler,_=k.selector),_&&o.find.matchesSelector(be,_),m.guid||(m.guid=o.guid++),(B=Jt.events)||(B=Jt.events=Object.create(null)),(T=Jt.handle)||(T=Jt.handle=function(Je){return typeof o<"u"&&o.event.triggered!==Je.type?o.event.dispatch.apply(s,arguments):void 0}),u=(u||"").match(X)||[""],nt=u.length;nt--;)W=Q.exec(u[nt])||[],mt=se=W[1],Xt=(W[2]||"").split(".").sort(),mt&&(xt=o.event.special[mt]||{},mt=(_?xt.delegateType:xt.bindType)||mt,xt=o.event.special[mt]||{},pt=o.extend({type:mt,origType:se,data:v,handler:m,guid:m.guid,selector:_,needsContext:_&&o.expr.match.needsContext.test(_),namespace:Xt.join(".")},k),(ht=B[mt])||(ht=B[mt]=[],ht.delegateCount=0,(!xt.setup||xt.setup.call(s,v,Xt,T)===!1)&&s.addEventListener&&s.addEventListener(mt,T)),xt.add&&(xt.add.call(s,pt),pt.handler.guid||(pt.handler.guid=m.guid)),_?ht.splice(ht.delegateCount++,0,pt):ht.push(pt),o.event.global[mt]=!0)},remove:function(s,u,m,v,_){var k,T,W,B,nt,pt,xt,ht,mt,Xt,se,Jt=Gt.hasData(s)&&Gt.get(s);if(!(!Jt||!(B=Jt.events))){for(u=(u||"").match(X)||[""],nt=u.length;nt--;){if(W=Q.exec(u[nt])||[],mt=se=W[1],Xt=(W[2]||"").split(".").sort(),!mt){for(mt in B)o.event.remove(s,mt+u[nt],m,v,!0);continue}for(xt=o.event.special[mt]||{},mt=(v?xt.delegateType:xt.bindType)||mt,ht=B[mt]||[],W=W[2]&&new RegExp("(^|\\.)"+Xt.join("\\.(?:.*\\.|)")+"(\\.|$)"),T=k=ht.length;k--;)pt=ht[k],(_||se===pt.origType)&&(!m||m.guid===pt.guid)&&(!W||W.test(pt.namespace))&&(!v||v===pt.selector||v==="**"&&pt.selector)&&(ht.splice(k,1),pt.selector&&ht.delegateCount--,xt.remove&&xt.remove.call(s,pt));T&&!ht.length&&((!xt.teardown||xt.teardown.call(s,Xt,Jt.handle)===!1)&&o.removeEvent(s,mt,Jt.handle),delete B[mt])}o.isEmptyObject(B)&&Gt.remove(s,"handle events")}},dispatch:function(s){var u,m,v,_,k,T,W=new Array(arguments.length),B=o.event.fix(s),nt=(Gt.get(this,"events")||Object.create(null))[B.type]||[],pt=o.event.special[B.type]||{};for(W[0]=B,u=1;u<arguments.length;u++)W[u]=arguments[u];if(B.delegateTarget=this,!(pt.preDispatch&&pt.preDispatch.call(this,B)===!1)){for(T=o.event.handlers.call(this,B,nt),u=0;(_=T[u++])&&!B.isPropagationStopped();)for(B.currentTarget=_.elem,m=0;(k=_.handlers[m++])&&!B.isImmediatePropagationStopped();)(!B.rnamespace||k.namespace===!1||B.rnamespace.test(k.namespace))&&(B.handleObj=k,B.data=k.data,v=((o.event.special[k.origType]||{}).handle||k.handler).apply(_.elem,W),v!==void 0&&(B.result=v)===!1&&(B.preventDefault(),B.stopPropagation()));return pt.postDispatch&&pt.postDispatch.call(this,B),B.result}},handlers:function(s,u){var m,v,_,k,T,W=[],B=u.delegateCount,nt=s.target;if(B&&nt.nodeType&&!(s.type==="click"&&s.button>=1)){for(;nt!==this;nt=nt.parentNode||this)if(nt.nodeType===1&&!(s.type==="click"&&nt.disabled===!0)){for(k=[],T={},m=0;m<B;m++)v=u[m],_=v.selector+" ",T[_]===void 0&&(T[_]=v.needsContext?o(_,this).index(nt)>-1:o.find(_,this,null,[nt]).length),T[_]&&k.push(v);k.length&&W.push({elem:nt,handlers:k})}}return nt=this,B<u.length&&W.push({elem:nt,handlers:u.slice(B)}),W},addProp:function(s,u){Object.defineProperty(o.Event.prototype,s,{enumerable:!0,configurable:!0,get:Y(u)?function(){if(this.originalEvent)return u(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[s]},set:function(m){Object.defineProperty(this,s,{enumerable:!0,configurable:!0,writable:!0,value:m})}})},fix:function(s){return s[o.expando]?s:new o.Event(s)},special:{load:{noBubble:!0},click:{setup:function(s){var u=this||s;return ni.test(u.type)&&u.click&&P(u,"input")&&vt(u,"click",ut),!1},trigger:function(s){var u=this||s;return ni.test(u.type)&&u.click&&P(u,"input")&&vt(u,"click"),!0},_default:function(s){var u=s.target;return ni.test(u.type)&&u.click&&P(u,"input")&&Gt.get(u,"click")||P(u,"a")}},beforeunload:{postDispatch:function(s){s.result!==void 0&&s.originalEvent&&(s.originalEvent.returnValue=s.result)}}}};function vt(s,u,m){if(!m){Gt.get(s,u)===void 0&&o.event.add(s,u,ut);return}Gt.set(s,u,!1),o.event.add(s,u,{namespace:!1,handler:function(v){var _,k,T=Gt.get(this,u);if(v.isTrigger&1&&this[u]){if(T.length)(o.event.special[u]||{}).delegateType&&v.stopPropagation();else if(T=f.call(arguments),Gt.set(this,u,T),_=m(this,u),this[u](),k=Gt.get(this,u),T!==k||_?Gt.set(this,u,!1):k={},T!==k)return v.stopImmediatePropagation(),v.preventDefault(),k&&k.value}else T.length&&(Gt.set(this,u,{value:o.event.trigger(o.extend(T[0],o.Event.prototype),T.slice(1),this)}),v.stopImmediatePropagation())}})}o.removeEvent=function(s,u,m){s.removeEventListener&&s.removeEventListener(u,m)},o.Event=function(s,u){if(!(this instanceof o.Event))return new o.Event(s,u);s&&s.type?(this.originalEvent=s,this.type=s.type,this.isDefaultPrevented=s.defaultPrevented||s.defaultPrevented===void 0&&s.returnValue===!1?ut:ft,this.target=s.target&&s.target.nodeType===3?s.target.parentNode:s.target,this.currentTarget=s.currentTarget,this.relatedTarget=s.relatedTarget):this.type=s,u&&o.extend(this,u),this.timeStamp=s&&s.timeStamp||Date.now(),this[o.expando]=!0},o.Event.prototype={constructor:o.Event,isDefaultPrevented:ft,isPropagationStopped:ft,isImmediatePropagationStopped:ft,isSimulated:!1,preventDefault:function(){var s=this.originalEvent;this.isDefaultPrevented=ut,s&&!this.isSimulated&&s.preventDefault()},stopPropagation:function(){var s=this.originalEvent;this.isPropagationStopped=ut,s&&!this.isSimulated&&s.stopPropagation()},stopImmediatePropagation:function(){var s=this.originalEvent;this.isImmediatePropagationStopped=ut,s&&!this.isSimulated&&s.stopImmediatePropagation(),this.stopPropagation()}},o.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},o.event.addProp),o.each({focus:"focusin",blur:"focusout"},function(s,u){o.event.special[s]={setup:function(){return vt(this,s,lt),!1},trigger:function(){return vt(this,s),!0},_default:function(m){return Gt.get(m.target,s)},delegateType:u}}),o.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(s,u){o.event.special[s]={delegateType:u,bindType:u,handle:function(m){var v,_=this,k=m.relatedTarget,T=m.handleObj;return(!k||k!==_&&!o.contains(_,k))&&(m.type=T.origType,v=T.handler.apply(this,arguments),m.type=u),v}}}),o.fn.extend({on:function(s,u,m,v){return et(this,s,u,m,v)},one:function(s,u,m,v){return et(this,s,u,m,v,1)},off:function(s,u,m){var v,_;if(s&&s.preventDefault&&s.handleObj)return v=s.handleObj,o(s.delegateTarget).off(v.namespace?v.origType+"."+v.namespace:v.origType,v.selector,v.handler),this;if(typeof s=="object"){for(_ in s)this.off(_,u,s[_]);return this}return(u===!1||typeof u=="function")&&(m=u,u=void 0),m===!1&&(m=ft),this.each(function(){o.event.remove(this,s,m,u)})}});var _t=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function kt(s,u){return P(s,"table")&&P(u.nodeType!==11?u:u.firstChild,"tr")&&o(s).children("tbody")[0]||s}function Dt(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function Ft(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function Ut(s,u){var m,v,_,k,T,W,B;if(u.nodeType===1){if(Gt.hasData(s)&&(k=Gt.get(s),B=k.events,B)){Gt.remove(u,"handle events");for(_ in B)for(m=0,v=B[_].length;m<v;m++)o.event.add(u,_,B[_][m])}re.hasData(s)&&(T=re.access(s),W=o.extend({},T),re.set(u,W))}}function Rt(s,u){var m=u.nodeName.toLowerCase();m==="input"&&ni.test(s.type)?u.checked=s.checked:(m==="input"||m==="textarea")&&(u.defaultValue=s.defaultValue)}function Ct(s,u,m,v){u=g(u);var _,k,T,W,B,nt,pt=0,xt=s.length,ht=xt-1,mt=u[0],Xt=Y(mt);if(Xt||xt>1&&typeof mt=="string"&&!U.checkClone&&Mt.test(mt))return s.each(function(se){var Jt=s.eq(se);Xt&&(u[0]=mt.call(this,se,Jt.html())),Ct(Jt,u,m,v)});if(xt&&(_=R(u,s[0].ownerDocument,!1,s,v),k=_.firstChild,_.childNodes.length===1&&(_=k),k||v)){for(T=o.map(fe(_,"script"),Dt),W=T.length;pt<xt;pt++)B=_,pt!==ht&&(B=o.clone(B,!0,!0),W&&o.merge(T,fe(B,"script"))),m.call(s[pt],B,pt);if(W)for(nt=T[T.length-1].ownerDocument,o.map(T,Ft),pt=0;pt<W;pt++)B=T[pt],Xe.test(B.type||"")&&!Gt.access(B,"globalEval")&&o.contains(nt,B)&&(B.src&&(B.type||"").toLowerCase()!=="module"?o._evalUrl&&!B.noModule&&o._evalUrl(B.src,{nonce:B.nonce||B.getAttribute("nonce")},nt):e(B.textContent.replace(Yt,""),B,nt))}return s}function St(s,u,m){for(var v,_=u?o.filter(u,s):s,k=0;(v=_[k])!=null;k++)!m&&v.nodeType===1&&o.cleanData(fe(v)),v.parentNode&&(m&&Le(v)&&S(fe(v,"script")),v.parentNode.removeChild(v));return s}o.extend({htmlPrefilter:function(s){return s},clone:function(s,u,m){var v,_,k,T,W=s.cloneNode(!0),B=Le(s);if(!U.noCloneChecked&&(s.nodeType===1||s.nodeType===11)&&!o.isXMLDoc(s))for(T=fe(W),k=fe(s),v=0,_=k.length;v<_;v++)Rt(k[v],T[v]);if(u)if(m)for(k=k||fe(s),T=T||fe(W),v=0,_=k.length;v<_;v++)Ut(k[v],T[v]);else Ut(s,W);return T=fe(W,"script"),T.length>0&&S(T,!B&&fe(s,"script")),W},cleanData:function(s){for(var u,m,v,_=o.event.special,k=0;(m=s[k])!==void 0;k++)if(Ne(m)){if(u=m[Gt.expando]){if(u.events)for(v in u.events)_[v]?o.event.remove(m,v):o.removeEvent(m,v,u.handle);m[Gt.expando]=void 0}m[re.expando]&&(m[re.expando]=void 0)}}}),o.fn.extend({detach:function(s){return St(this,s,!0)},remove:function(s){return St(this,s)},text:function(s){return qt(this,function(u){return u===void 0?o.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=u)})},null,s,arguments.length)},append:function(){return Ct(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=kt(this,s);u.appendChild(s)}})},prepend:function(){return Ct(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=kt(this,s);u.insertBefore(s,u.firstChild)}})},before:function(){return Ct(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return Ct(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,u=0;(s=this[u])!=null;u++)s.nodeType===1&&(o.cleanData(fe(s,!1)),s.textContent="");return this},clone:function(s,u){return s=s!=null?s:!1,u=u!=null?u:s,this.map(function(){return o.clone(this,s,u)})},html:function(s){return qt(this,function(u){var m=this[0]||{},v=0,_=this.length;if(u===void 0&&m.nodeType===1)return m.innerHTML;if(typeof u=="string"&&!_t.test(u)&&!ce[(He.exec(u)||["",""])[1].toLowerCase()]){u=o.htmlPrefilter(u);try{for(;v<_;v++)m=this[v]||{},m.nodeType===1&&(o.cleanData(fe(m,!1)),m.innerHTML=u);m=0}catch(k){}}m&&this.empty().append(u)},null,s,arguments.length)},replaceWith:function(){var s=[];return Ct(this,arguments,function(u){var m=this.parentNode;o.inArray(this,s)<0&&(o.cleanData(fe(this)),m&&m.replaceChild(u,this))},s)}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,u){o.fn[s]=function(m){for(var v,_=[],k=o(m),T=k.length-1,W=0;W<=T;W++)v=W===T?this:this.clone(!0),o(k[W])[u](v),b.apply(_,v.get());return this.pushStack(_)}});var Bt=new RegExp("^("+li+")(?!px)[a-z%]+$","i"),oe=/^--/,he=function(s){var u=s.ownerDocument.defaultView;return(!u||!u.opener)&&(u=r),u.getComputedStyle(s)},Ue=function(s,u,m){var v,_,k={};for(_ in u)k[_]=s.style[_],s.style[_]=u[_];v=m.call(s);for(_ in u)s.style[_]=k[_];return v},ri=new RegExp(Ce.join("|"),"i"),ci="[\\x20\\t\\r\\n\\f]",pn=new RegExp("^"+ci+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ci+"+$","g");(function(){function s(){if(nt){B.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",nt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",be.appendChild(B).appendChild(nt);var pt=r.getComputedStyle(nt);m=pt.top!=="1%",W=u(pt.marginLeft)===12,nt.style.right="60%",k=u(pt.right)===36,v=u(pt.width)===36,nt.style.position="absolute",_=u(nt.offsetWidth/3)===12,be.removeChild(B),nt=null}}function u(pt){return Math.round(parseFloat(pt))}var m,v,_,k,T,W,B=G.createElement("div"),nt=G.createElement("div");nt.style&&(nt.style.backgroundClip="content-box",nt.cloneNode(!0).style.backgroundClip="",U.clearCloneStyle=nt.style.backgroundClip==="content-box",o.extend(U,{boxSizingReliable:function(){return s(),v},pixelBoxStyles:function(){return s(),k},pixelPosition:function(){return s(),m},reliableMarginLeft:function(){return s(),W},scrollboxSize:function(){return s(),_},reliableTrDimensions:function(){var pt,xt,ht,mt;return T==null&&(pt=G.createElement("table"),xt=G.createElement("tr"),ht=G.createElement("div"),pt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",xt.style.cssText="border:1px solid",xt.style.height="1px",ht.style.height="9px",ht.style.display="block",be.appendChild(pt).appendChild(xt).appendChild(ht),mt=r.getComputedStyle(xt),T=parseInt(mt.height,10)+parseInt(mt.borderTopWidth,10)+parseInt(mt.borderBottomWidth,10)===xt.offsetHeight,be.removeChild(pt)),T}}))})();function H(s,u,m){var v,_,k,T,W=oe.test(u),B=s.style;return m=m||he(s),m&&(T=m.getPropertyValue(u)||m[u],W&&(T=T.replace(pn,"$1")),T===""&&!Le(s)&&(T=o.style(s,u)),!U.pixelBoxStyles()&&Bt.test(T)&&ri.test(u)&&(v=B.width,_=B.minWidth,k=B.maxWidth,B.minWidth=B.maxWidth=B.width=T,T=m.width,B.width=v,B.minWidth=_,B.maxWidth=k)),T!==void 0?T+"":T}function Lt(s,u){return{get:function(){if(s()){delete this.get;return}return(this.get=u).apply(this,arguments)}}}var At=["Webkit","Moz","ms"],me=G.createElement("div").style,qe={};function Te(s){for(var u=s[0].toUpperCase()+s.slice(1),m=At.length;m--;)if(s=At[m]+u,s in me)return s}function xi(s){var u=o.cssProps[s]||qe[s];return u||(s in me?s:qe[s]=Te(s)||s)}var ki=/^(none|table(?!-c[ea]).+)/,Ci={position:"absolute",visibility:"hidden",display:"block"},eo={letterSpacing:"0",fontWeight:"400"};function Ve(s,u,m){var v=_e.exec(u);return v?Math.max(0,v[2]-(m||0))+(v[3]||"px"):u}function io(s,u,m,v,_,k){var T=u==="width"?1:0,W=0,B=0;if(m===(v?"border":"content"))return 0;for(;T<4;T+=2)m==="margin"&&(B+=o.css(s,m+Ce[T],!0,_)),v?(m==="content"&&(B-=o.css(s,"padding"+Ce[T],!0,_)),m!=="margin"&&(B-=o.css(s,"border"+Ce[T]+"Width",!0,_))):(B+=o.css(s,"padding"+Ce[T],!0,_),m!=="padding"?B+=o.css(s,"border"+Ce[T]+"Width",!0,_):W+=o.css(s,"border"+Ce[T]+"Width",!0,_));return!v&&k>=0&&(B+=Math.max(0,Math.ceil(s["offset"+u[0].toUpperCase()+u.slice(1)]-k-B-W-.5))||0),B}function bo(s,u,m){var v=he(s),_=!U.boxSizingReliable()||m,k=_&&o.css(s,"boxSizing",!1,v)==="border-box",T=k,W=H(s,u,v),B="offset"+u[0].toUpperCase()+u.slice(1);if(Bt.test(W)){if(!m)return W;W="auto"}return(!U.boxSizingReliable()&&k||!U.reliableTrDimensions()&&P(s,"tr")||W==="auto"||!parseFloat(W)&&o.css(s,"display",!1,v)==="inline")&&s.getClientRects().length&&(k=o.css(s,"boxSizing",!1,v)==="border-box",T=B in s,T&&(W=s[B])),W=parseFloat(W)||0,W+io(s,u,m||(k?"border":"content"),T,v,W)+"px"}o.extend({cssHooks:{opacity:{get:function(s,u){if(u){var m=H(s,"opacity");return m===""?"1":m}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(s,u,m,v){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var _,k,T,W=ge(u),B=oe.test(u),nt=s.style;if(B||(u=xi(W)),T=o.cssHooks[u]||o.cssHooks[W],m!==void 0){if(k=typeof m,k==="string"&&(_=_e.exec(m))&&_[1]&&(m=We(s,u,_),k="number"),m==null||m!==m)return;k==="number"&&!B&&(m+=_&&_[3]||(o.cssNumber[W]?"":"px")),!U.clearCloneStyle&&m===""&&u.indexOf("background")===0&&(nt[u]="inherit"),(!T||!("set"in T)||(m=T.set(s,m,v))!==void 0)&&(B?nt.setProperty(u,m):nt[u]=m)}else return T&&"get"in T&&(_=T.get(s,!1,v))!==void 0?_:nt[u]}},css:function(s,u,m,v){var _,k,T,W=ge(u),B=oe.test(u);return B||(u=xi(W)),T=o.cssHooks[u]||o.cssHooks[W],T&&"get"in T&&(_=T.get(s,!0,m)),_===void 0&&(_=H(s,u,v)),_==="normal"&&u in eo&&(_=eo[u]),m===""||m?(k=parseFloat(_),m===!0||isFinite(k)?k||0:_):_}}),o.each(["height","width"],function(s,u){o.cssHooks[u]={get:function(m,v,_){if(v)return ki.test(o.css(m,"display"))&&(!m.getClientRects().length||!m.getBoundingClientRect().width)?Ue(m,Ci,function(){return bo(m,u,_)}):bo(m,u,_)},set:function(m,v,_){var k,T=he(m),W=!U.scrollboxSize()&&T.position==="absolute",B=W||_,nt=B&&o.css(m,"boxSizing",!1,T)==="border-box",pt=_?io(m,u,_,nt,T):0;return nt&&W&&(pt-=Math.ceil(m["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(T[u])-io(m,u,"border",!1,T)-.5)),pt&&(k=_e.exec(v))&&(k[3]||"px")!=="px"&&(m.style[u]=v,v=o.css(m,u)),Ve(m,v,pt)}}}),o.cssHooks.marginLeft=Lt(U.reliableMarginLeft,function(s,u){if(u)return(parseFloat(H(s,"marginLeft"))||s.getBoundingClientRect().left-Ue(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),o.each({margin:"",padding:"",border:"Width"},function(s,u){o.cssHooks[s+u]={expand:function(m){for(var v=0,_={},k=typeof m=="string"?m.split(" "):[m];v<4;v++)_[s+Ce[v]+u]=k[v]||k[v-2]||k[0];return _}},s!=="margin"&&(o.cssHooks[s+u].set=Ve)}),o.fn.extend({css:function(s,u){return qt(this,function(m,v,_){var k,T,W={},B=0;if(Array.isArray(v)){for(k=he(m),T=v.length;B<T;B++)W[v[B]]=o.css(m,v[B],!1,k);return W}return _!==void 0?o.style(m,v,_):o.css(m,v)},s,u,arguments.length>1)}});function yi(s,u,m,v,_){return new yi.prototype.init(s,u,m,v,_)}o.Tween=yi,yi.prototype={constructor:yi,init:function(s,u,m,v,_,k){this.elem=s,this.prop=m,this.easing=_||o.easing._default,this.options=u,this.start=this.now=this.cur(),this.end=v,this.unit=k||(o.cssNumber[m]?"":"px")},cur:function(){var s=yi.propHooks[this.prop];return s&&s.get?s.get(this):yi.propHooks._default.get(this)},run:function(s){var u,m=yi.propHooks[this.prop];return this.options.duration?this.pos=u=o.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=u=s,this.now=(this.end-this.start)*u+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),m&&m.set?m.set(this):yi.propHooks._default.set(this),this}},yi.prototype.init.prototype=yi.prototype,yi.propHooks={_default:{get:function(s){var u;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(u=o.css(s.elem,s.prop,""),!u||u==="auto"?0:u)},set:function(s){o.fx.step[s.prop]?o.fx.step[s.prop](s):s.elem.nodeType===1&&(o.cssHooks[s.prop]||s.elem.style[xi(s.prop)]!=null)?o.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},yi.propHooks.scrollTop=yi.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},o.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},o.fx=yi.prototype.init,o.fx.step={};var no,er,Yu=/^(?:toggle|show|hide)$/,Gu=/queueHooks$/;function Jr(){er&&(G.hidden===!1&&r.requestAnimationFrame?r.requestAnimationFrame(Jr):r.setTimeout(Jr,o.fx.interval),o.fx.tick())}function nl(){return r.setTimeout(function(){no=void 0}),no=Date.now()}function ir(s,u){var m,v=0,_={height:s};for(u=u?1:0;v<4;v+=2-u)m=Ce[v],_["margin"+m]=_["padding"+m]=s;return u&&(_.opacity=_.width=s),_}function ol(s,u,m){for(var v,_=(Wi.tweeners[u]||[]).concat(Wi.tweeners["*"]),k=0,T=_.length;k<T;k++)if(v=_[k].call(m,u,s))return v}function Ku(s,u,m){var v,_,k,T,W,B,nt,pt,xt="width"in u||"height"in u,ht=this,mt={},Xt=s.style,se=s.nodeType&&gi(s),Jt=Gt.get(s,"fxshow");m.queue||(T=o._queueHooks(s,"fx"),T.unqueued==null&&(T.unqueued=0,W=T.empty.fire,T.empty.fire=function(){T.unqueued||W()}),T.unqueued++,ht.always(function(){ht.always(function(){T.unqueued--,o.queue(s,"fx").length||T.empty.fire()})}));for(v in u)if(_=u[v],Yu.test(_)){if(delete u[v],k=k||_==="toggle",_===(se?"hide":"show"))if(_==="show"&&Jt&&Jt[v]!==void 0)se=!0;else continue;mt[v]=Jt&&Jt[v]||o.style(s,v)}if(B=!o.isEmptyObject(u),!(!B&&o.isEmptyObject(mt))){xt&&s.nodeType===1&&(m.overflow=[Xt.overflow,Xt.overflowX,Xt.overflowY],nt=Jt&&Jt.display,nt==null&&(nt=Gt.get(s,"display")),pt=o.css(s,"display"),pt==="none"&&(nt?pt=nt:(ei([s],!0),nt=s.style.display||nt,pt=o.css(s,"display"),ei([s]))),(pt==="inline"||pt==="inline-block"&&nt!=null)&&o.css(s,"float")==="none"&&(B||(ht.done(function(){Xt.display=nt}),nt==null&&(pt=Xt.display,nt=pt==="none"?"":pt)),Xt.display="inline-block")),m.overflow&&(Xt.overflow="hidden",ht.always(function(){Xt.overflow=m.overflow[0],Xt.overflowX=m.overflow[1],Xt.overflowY=m.overflow[2]})),B=!1;for(v in mt)B||(Jt?"hidden"in Jt&&(se=Jt.hidden):Jt=Gt.access(s,"fxshow",{display:nt}),k&&(Jt.hidden=!se),se&&ei([s],!0),ht.done(function(){se||ei([s]),Gt.remove(s,"fxshow");for(v in mt)o.style(s,v,mt[v])})),B=ol(se?Jt[v]:0,v,ht),v in Jt||(Jt[v]=B.start,se&&(B.end=B.start,B.start=0))}}function Xu(s,u){var m,v,_,k,T;for(m in s)if(v=ge(m),_=u[v],k=s[m],Array.isArray(k)&&(_=k[1],k=s[m]=k[0]),m!==v&&(s[v]=k,delete s[m]),T=o.cssHooks[v],T&&"expand"in T){k=T.expand(k),delete s[v];for(m in k)m in s||(s[m]=k[m],u[m]=_)}else u[v]=_}function Wi(s,u,m){var v,_,k=0,T=Wi.prefilters.length,W=o.Deferred().always(function(){delete B.elem}),B=function(){if(_)return!1;for(var xt=no||nl(),ht=Math.max(0,nt.startTime+nt.duration-xt),mt=ht/nt.duration||0,Xt=1-mt,se=0,Jt=nt.tweens.length;se<Jt;se++)nt.tweens[se].run(Xt);return W.notifyWith(s,[nt,Xt,ht]),Xt<1&&Jt?ht:(Jt||W.notifyWith(s,[nt,1,0]),W.resolveWith(s,[nt]),!1)},nt=W.promise({elem:s,props:o.extend({},u),opts:o.extend(!0,{specialEasing:{},easing:o.easing._default},m),originalProperties:u,originalOptions:m,startTime:no||nl(),duration:m.duration,tweens:[],createTween:function(xt,ht){var mt=o.Tween(s,nt.opts,xt,ht,nt.opts.specialEasing[xt]||nt.opts.easing);return nt.tweens.push(mt),mt},stop:function(xt){var ht=0,mt=xt?nt.tweens.length:0;if(_)return this;for(_=!0;ht<mt;ht++)nt.tweens[ht].run(1);return xt?(W.notifyWith(s,[nt,1,0]),W.resolveWith(s,[nt,xt])):W.rejectWith(s,[nt,xt]),this}}),pt=nt.props;for(Xu(pt,nt.opts.specialEasing);k<T;k++)if(v=Wi.prefilters[k].call(nt,s,pt,nt.opts),v)return Y(v.stop)&&(o._queueHooks(nt.elem,nt.opts.queue).stop=v.stop.bind(v)),v;return o.map(pt,ol,nt),Y(nt.opts.start)&&nt.opts.start.call(s,nt),nt.progress(nt.opts.progress).done(nt.opts.done,nt.opts.complete).fail(nt.opts.fail).always(nt.opts.always),o.fx.timer(o.extend(B,{elem:s,anim:nt,queue:nt.opts.queue})),nt}o.Animation=o.extend(Wi,{tweeners:{"*":[function(s,u){var m=this.createTween(s,u);return We(m.elem,s,_e.exec(u),m),m}]},tweener:function(s,u){Y(s)?(u=s,s=["*"]):s=s.match(X);for(var m,v=0,_=s.length;v<_;v++)m=s[v],Wi.tweeners[m]=Wi.tweeners[m]||[],Wi.tweeners[m].unshift(u)},prefilters:[Ku],prefilter:function(s,u){u?Wi.prefilters.unshift(s):Wi.prefilters.push(s)}}),o.speed=function(s,u,m){var v=s&&typeof s=="object"?o.extend({},s):{complete:m||!m&&u||Y(s)&&s,duration:s,easing:m&&u||u&&!Y(u)&&u};return o.fx.off?v.duration=0:typeof v.duration!="number"&&(v.duration in o.fx.speeds?v.duration=o.fx.speeds[v.duration]:v.duration=o.fx.speeds._default),(v.queue==null||v.queue===!0)&&(v.queue="fx"),v.old=v.complete,v.complete=function(){Y(v.old)&&v.old.call(this),v.queue&&o.dequeue(this,v.queue)},v},o.fn.extend({fadeTo:function(s,u,m,v){return this.filter(gi).css("opacity",0).show().end().animate({opacity:u},s,m,v)},animate:function(s,u,m,v){var _=o.isEmptyObject(s),k=o.speed(u,m,v),T=function(){var W=Wi(this,o.extend({},s),k);(_||Gt.get(this,"finish"))&&W.stop(!0)};return T.finish=T,_||k.queue===!1?this.each(T):this.queue(k.queue,T)},stop:function(s,u,m){var v=function(_){var k=_.stop;delete _.stop,k(m)};return typeof s!="string"&&(m=u,u=s,s=void 0),u&&this.queue(s||"fx",[]),this.each(function(){var _=!0,k=s!=null&&s+"queueHooks",T=o.timers,W=Gt.get(this);if(k)W[k]&&W[k].stop&&v(W[k]);else for(k in W)W[k]&&W[k].stop&&Gu.test(k)&&v(W[k]);for(k=T.length;k--;)T[k].elem===this&&(s==null||T[k].queue===s)&&(T[k].anim.stop(m),_=!1,T.splice(k,1));(_||!m)&&o.dequeue(this,s)})},finish:function(s){return s!==!1&&(s=s||"fx"),this.each(function(){var u,m=Gt.get(this),v=m[s+"queue"],_=m[s+"queueHooks"],k=o.timers,T=v?v.length:0;for(m.finish=!0,o.queue(this,s,[]),_&&_.stop&&_.stop.call(this,!0),u=k.length;u--;)k[u].elem===this&&k[u].queue===s&&(k[u].anim.stop(!0),k.splice(u,1));for(u=0;u<T;u++)v[u]&&v[u].finish&&v[u].finish.call(this);delete m.finish})}}),o.each(["toggle","show","hide"],function(s,u){var m=o.fn[u];o.fn[u]=function(v,_,k){return v==null||typeof v=="boolean"?m.apply(this,arguments):this.animate(ir(u,!0),v,_,k)}}),o.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(s,u){o.fn[s]=function(m,v,_){return this.animate(u,m,v,_)}}),o.timers=[],o.fx.tick=function(){var s,u=0,m=o.timers;for(no=Date.now();u<m.length;u++)s=m[u],!s()&&m[u]===s&&m.splice(u--,1);m.length||o.fx.stop(),no=void 0},o.fx.timer=function(s){o.timers.push(s),o.fx.start()},o.fx.interval=13,o.fx.start=function(){er||(er=!0,Jr())},o.fx.stop=function(){er=null},o.fx.speeds={slow:600,fast:200,_default:400},o.fn.delay=function(s,u){return s=o.fx&&o.fx.speeds[s]||s,u=u||"fx",this.queue(u,function(m,v){var _=r.setTimeout(m,s);v.stop=function(){r.clearTimeout(_)}})},function(){var s=G.createElement("input"),u=G.createElement("select"),m=u.appendChild(G.createElement("option"));s.type="checkbox",U.checkOn=s.value!=="",U.optSelected=m.selected,s=G.createElement("input"),s.value="t",s.type="radio",U.radioValue=s.value==="t"}();var rl,wo=o.expr.attrHandle;o.fn.extend({attr:function(s,u){return qt(this,o.attr,s,u,arguments.length>1)},removeAttr:function(s){return this.each(function(){o.removeAttr(this,s)})}}),o.extend({attr:function(s,u,m){var v,_,k=s.nodeType;if(!(k===3||k===8||k===2)){if(typeof s.getAttribute>"u")return o.prop(s,u,m);if((k!==1||!o.isXMLDoc(s))&&(_=o.attrHooks[u.toLowerCase()]||(o.expr.match.bool.test(u)?rl:void 0)),m!==void 0){if(m===null){o.removeAttr(s,u);return}return _&&"set"in _&&(v=_.set(s,m,u))!==void 0?v:(s.setAttribute(u,m+""),m)}return _&&"get"in _&&(v=_.get(s,u))!==null?v:(v=o.find.attr(s,u),v!=null?v:void 0)}},attrHooks:{type:{set:function(s,u){if(!U.radioValue&&u==="radio"&&P(s,"input")){var m=s.value;return s.setAttribute("type",u),m&&(s.value=m),u}}}},removeAttr:function(s,u){var m,v=0,_=u&&u.match(X);if(_&&s.nodeType===1)for(;m=_[v++];)s.removeAttribute(m)}}),rl={set:function(s,u,m){return u===!1?o.removeAttr(s,m):s.setAttribute(m,m),m}},o.each(o.expr.match.bool.source.match(/\w+/g),function(s,u){var m=wo[u]||o.find.attr;wo[u]=function(v,_,k){var T,W,B=_.toLowerCase();return k||(W=wo[B],wo[B]=T,T=m(v,_,k)!=null?B:null,wo[B]=W),T}});var Ju=/^(?:input|select|textarea|button)$/i,Qu=/^(?:a|area)$/i;o.fn.extend({prop:function(s,u){return qt(this,o.prop,s,u,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[o.propFix[s]||s]})}}),o.extend({prop:function(s,u,m){var v,_,k=s.nodeType;if(!(k===3||k===8||k===2))return(k!==1||!o.isXMLDoc(s))&&(u=o.propFix[u]||u,_=o.propHooks[u]),m!==void 0?_&&"set"in _&&(v=_.set(s,m,u))!==void 0?v:s[u]=m:_&&"get"in _&&(v=_.get(s,u))!==null?v:s[u]},propHooks:{tabIndex:{get:function(s){var u=o.find.attr(s,"tabindex");return u?parseInt(u,10):Ju.test(s.nodeName)||Qu.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),U.optSelected||(o.propHooks.selected={get:function(s){var u=s.parentNode;return u&&u.parentNode&&u.parentNode.selectedIndex,null},set:function(s){var u=s.parentNode;u&&(u.selectedIndex,u.parentNode&&u.parentNode.selectedIndex)}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this});function Sn(s){var u=s.match(X)||[];return u.join(" ")}function Tn(s){return s.getAttribute&&s.getAttribute("class")||""}function Qr(s){return Array.isArray(s)?s:typeof s=="string"?s.match(X)||[]:[]}o.fn.extend({addClass:function(s){var u,m,v,_,k,T;return Y(s)?this.each(function(W){o(this).addClass(s.call(this,W,Tn(this)))}):(u=Qr(s),u.length?this.each(function(){if(v=Tn(this),m=this.nodeType===1&&" "+Sn(v)+" ",m){for(k=0;k<u.length;k++)_=u[k],m.indexOf(" "+_+" ")<0&&(m+=_+" ");T=Sn(m),v!==T&&this.setAttribute("class",T)}}):this)},removeClass:function(s){var u,m,v,_,k,T;return Y(s)?this.each(function(W){o(this).removeClass(s.call(this,W,Tn(this)))}):arguments.length?(u=Qr(s),u.length?this.each(function(){if(v=Tn(this),m=this.nodeType===1&&" "+Sn(v)+" ",m){for(k=0;k<u.length;k++)for(_=u[k];m.indexOf(" "+_+" ")>-1;)m=m.replace(" "+_+" "," ");T=Sn(m),v!==T&&this.setAttribute("class",T)}}):this):this.attr("class","")},toggleClass:function(s,u){var m,v,_,k,T=typeof s,W=T==="string"||Array.isArray(s);return Y(s)?this.each(function(B){o(this).toggleClass(s.call(this,B,Tn(this),u),u)}):typeof u=="boolean"&&W?u?this.addClass(s):this.removeClass(s):(m=Qr(s),this.each(function(){if(W)for(k=o(this),_=0;_<m.length;_++)v=m[_],k.hasClass(v)?k.removeClass(v):k.addClass(v);else(s===void 0||T==="boolean")&&(v=Tn(this),v&&Gt.set(this,"__className__",v),this.setAttribute&&this.setAttribute("class",v||s===!1?"":Gt.get(this,"__className__")||""))}))},hasClass:function(s){var u,m,v=0;for(u=" "+s+" ";m=this[v++];)if(m.nodeType===1&&(" "+Sn(Tn(m))+" ").indexOf(u)>-1)return!0;return!1}});var Zu=/\r/g;o.fn.extend({val:function(s){var u,m,v,_=this[0];return arguments.length?(v=Y(s),this.each(function(k){var T;this.nodeType===1&&(v?T=s.call(this,k,o(this).val()):T=s,T==null?T="":typeof T=="number"?T+="":Array.isArray(T)&&(T=o.map(T,function(W){return W==null?"":W+""})),u=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()],(!u||!("set"in u)||u.set(this,T,"value")===void 0)&&(this.value=T))})):_?(u=o.valHooks[_.type]||o.valHooks[_.nodeName.toLowerCase()],u&&"get"in u&&(m=u.get(_,"value"))!==void 0?m:(m=_.value,typeof m=="string"?m.replace(Zu,""):m!=null?m:"")):void 0}}),o.extend({valHooks:{option:{get:function(s){var u=o.find.attr(s,"value");return u!=null?u:Sn(o.text(s))}},select:{get:function(s){var u,m,v,_=s.options,k=s.selectedIndex,T=s.type==="select-one",W=T?null:[],B=T?k+1:_.length;for(k<0?v=B:v=T?k:0;v<B;v++)if(m=_[v],(m.selected||v===k)&&!m.disabled&&(!m.parentNode.disabled||!P(m.parentNode,"optgroup"))){if(u=o(m).val(),T)return u;W.push(u)}return W},set:function(s,u){for(var m,v,_=s.options,k=o.makeArray(u),T=_.length;T--;)v=_[T],(v.selected=o.inArray(o.valHooks.option.get(v),k)>-1)&&(m=!0);return m||(s.selectedIndex=-1),k}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(s,u){if(Array.isArray(u))return s.checked=o.inArray(o(s).val(),u)>-1}},U.checkOn||(o.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})}),U.focusin="onfocusin"in r;var al=/^(?:focusinfocus|focusoutblur)$/,sl=function(s){s.stopPropagation()};o.extend(o.event,{trigger:function(s,u,m,v){var _,k,T,W,B,nt,pt,xt,ht=[m||G],mt=M.call(s,"type")?s.type:s,Xt=M.call(s,"namespace")?s.namespace.split("."):[];if(k=xt=T=m=m||G,!(m.nodeType===3||m.nodeType===8)&&!al.test(mt+o.event.triggered)&&(mt.indexOf(".")>-1&&(Xt=mt.split("."),mt=Xt.shift(),Xt.sort()),B=mt.indexOf(":")<0&&"on"+mt,s=s[o.expando]?s:new o.Event(mt,typeof s=="object"&&s),s.isTrigger=v?2:3,s.namespace=Xt.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+Xt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=m),u=u==null?[s]:o.makeArray(u,[s]),pt=o.event.special[mt]||{},!(!v&&pt.trigger&&pt.trigger.apply(m,u)===!1))){if(!v&&!pt.noBubble&&!ct(m)){for(W=pt.delegateType||mt,al.test(W+mt)||(k=k.parentNode);k;k=k.parentNode)ht.push(k),T=k;T===(m.ownerDocument||G)&&ht.push(T.defaultView||T.parentWindow||r)}for(_=0;(k=ht[_++])&&!s.isPropagationStopped();)xt=k,s.type=_>1?W:pt.bindType||mt,nt=(Gt.get(k,"events")||Object.create(null))[s.type]&&Gt.get(k,"handle"),nt&&nt.apply(k,u),nt=B&&k[B],nt&&nt.apply&&Ne(k)&&(s.result=nt.apply(k,u),s.result===!1&&s.preventDefault());return s.type=mt,!v&&!s.isDefaultPrevented()&&(!pt._default||pt._default.apply(ht.pop(),u)===!1)&&Ne(m)&&B&&Y(m[mt])&&!ct(m)&&(T=m[B],T&&(m[B]=null),o.event.triggered=mt,s.isPropagationStopped()&&xt.addEventListener(mt,sl),m[mt](),s.isPropagationStopped()&&xt.removeEventListener(mt,sl),o.event.triggered=void 0,T&&(m[B]=T)),s.result}},simulate:function(s,u,m){var v=o.extend(new o.Event,m,{type:s,isSimulated:!0});o.event.trigger(v,null,u)}}),o.fn.extend({trigger:function(s,u){return this.each(function(){o.event.trigger(s,u,this)})},triggerHandler:function(s,u){var m=this[0];if(m)return o.event.trigger(s,u,m,!0)}}),U.focusin||o.each({focus:"focusin",blur:"focusout"},function(s,u){var m=function(v){o.event.simulate(u,v.target,o.event.fix(v))};o.event.special[u]={setup:function(){var v=this.ownerDocument||this.document||this,_=Gt.access(v,u);_||v.addEventListener(s,m,!0),Gt.access(v,u,(_||0)+1)},teardown:function(){var v=this.ownerDocument||this.document||this,_=Gt.access(v,u)-1;_?Gt.access(v,u,_):(v.removeEventListener(s,m,!0),Gt.remove(v,u))}}});var _o=r.location,ll={guid:Date.now()},Zr=/\?/;o.parseXML=function(s){var u,m;if(!s||typeof s!="string")return null;try{u=new r.DOMParser().parseFromString(s,"text/xml")}catch(v){}return m=u&&u.getElementsByTagName("parsererror")[0],(!u||m)&&o.error("Invalid XML: "+(m?o.map(m.childNodes,function(v){return v.textContent}).join(`
`):s)),u};var td=/\[\]$/,cl=/\r?\n/g,ed=/^(?:submit|button|image|reset|file)$/i,id=/^(?:input|select|textarea|keygen)/i;function ta(s,u,m,v){var _;if(Array.isArray(u))o.each(u,function(k,T){m||td.test(s)?v(s,T):ta(s+"["+(typeof T=="object"&&T!=null?k:"")+"]",T,m,v)});else if(!m&&n(u)==="object")for(_ in u)ta(s+"["+_+"]",u[_],m,v);else v(s,u)}o.param=function(s,u){var m,v=[],_=function(k,T){var W=Y(T)?T():T;v[v.length]=encodeURIComponent(k)+"="+encodeURIComponent(W!=null?W:"")};if(s==null)return"";if(Array.isArray(s)||s.jquery&&!o.isPlainObject(s))o.each(s,function(){_(this.name,this.value)});else for(m in s)ta(m,s[m],u,_);return v.join("&")},o.fn.extend({serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=o.prop(this,"elements");return s?o.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!o(this).is(":disabled")&&id.test(this.nodeName)&&!ed.test(s)&&(this.checked||!ni.test(s))}).map(function(s,u){var m=o(this).val();return m==null?null:Array.isArray(m)?o.map(m,function(v){return{name:u.name,value:v.replace(cl,`\r
`)}}):{name:u.name,value:m.replace(cl,`\r
`)}}).get()}});var nd=/%20/g,od=/#.*$/,rd=/([?&])_=[^&]*/,ad=/^(.*?):[ \t]*([^\r\n]*)$/mg,sd=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ld=/^(?:GET|HEAD)$/,cd=/^\/\//,hl={},ea={},ul="*/".concat("*"),ia=G.createElement("a");ia.href=_o.href;function dl(s){return function(u,m){typeof u!="string"&&(m=u,u="*");var v,_=0,k=u.toLowerCase().match(X)||[];if(Y(m))for(;v=k[_++];)v[0]==="+"?(v=v.slice(1)||"*",(s[v]=s[v]||[]).unshift(m)):(s[v]=s[v]||[]).push(m)}}function pl(s,u,m,v){var _={},k=s===ea;function T(W){var B;return _[W]=!0,o.each(s[W]||[],function(nt,pt){var xt=pt(u,m,v);if(typeof xt=="string"&&!k&&!_[xt])return u.dataTypes.unshift(xt),T(xt),!1;if(k)return!(B=xt)}),B}return T(u.dataTypes[0])||!_["*"]&&T("*")}function na(s,u){var m,v,_=o.ajaxSettings.flatOptions||{};for(m in u)u[m]!==void 0&&((_[m]?s:v||(v={}))[m]=u[m]);return v&&o.extend(!0,s,v),s}function hd(s,u,m){for(var v,_,k,T,W=s.contents,B=s.dataTypes;B[0]==="*";)B.shift(),v===void 0&&(v=s.mimeType||u.getResponseHeader("Content-Type"));if(v){for(_ in W)if(W[_]&&W[_].test(v)){B.unshift(_);break}}if(B[0]in m)k=B[0];else{for(_ in m){if(!B[0]||s.converters[_+" "+B[0]]){k=_;break}T||(T=_)}k=k||T}if(k)return k!==B[0]&&B.unshift(k),m[k]}function ud(s,u,m,v){var _,k,T,W,B,nt={},pt=s.dataTypes.slice();if(pt[1])for(T in s.converters)nt[T.toLowerCase()]=s.converters[T];for(k=pt.shift();k;)if(s.responseFields[k]&&(m[s.responseFields[k]]=u),!B&&v&&s.dataFilter&&(u=s.dataFilter(u,s.dataType)),B=k,k=pt.shift(),k){if(k==="*")k=B;else if(B!=="*"&&B!==k){if(T=nt[B+" "+k]||nt["* "+k],!T){for(_ in nt)if(W=_.split(" "),W[1]===k&&(T=nt[B+" "+W[0]]||nt["* "+W[0]],T)){T===!0?T=nt[_]:nt[_]!==!0&&(k=W[0],pt.unshift(W[1]));break}}if(T!==!0)if(T&&s.throws)u=T(u);else try{u=T(u)}catch(xt){return{state:"parsererror",error:T?xt:"No conversion from "+B+" to "+k}}}}return{state:"success",data:u}}o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_o.href,type:"GET",isLocal:sd.test(_o.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ul,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,u){return u?na(na(s,o.ajaxSettings),u):na(o.ajaxSettings,s)},ajaxPrefilter:dl(hl),ajaxTransport:dl(ea),ajax:function(s,u){typeof s=="object"&&(u=s,s=void 0),u=u||{};var m,v,_,k,T,W,B,nt,pt,xt,ht=o.ajaxSetup({},u),mt=ht.context||ht,Xt=ht.context&&(mt.nodeType||mt.jquery)?o(mt):o.event,se=o.Deferred(),Jt=o.Callbacks("once memory"),Je=ht.statusCode||{},Ye={},Si={},Se="canceled",ae={readyState:0,getResponseHeader:function(ve){var Re;if(B){if(!k)for(k={};Re=ad.exec(_);)k[Re[1].toLowerCase()+" "]=(k[Re[1].toLowerCase()+" "]||[]).concat(Re[2]);Re=k[ve.toLowerCase()+" "]}return Re==null?null:Re.join(", ")},getAllResponseHeaders:function(){return B?_:null},setRequestHeader:function(ve,Re){return B==null&&(ve=Si[ve.toLowerCase()]=Si[ve.toLowerCase()]||ve,Ye[ve]=Re),this},overrideMimeType:function(ve){return B==null&&(ht.mimeType=ve),this},statusCode:function(ve){var Re;if(ve)if(B)ae.always(ve[ae.status]);else for(Re in ve)Je[Re]=[Je[Re],ve[Re]];return this},abort:function(ve){var Re=ve||Se;return m&&m.abort(Re),bi(0,Re),this}};if(se.promise(ae),ht.url=((s||ht.url||_o.href)+"").replace(cd,_o.protocol+"//"),ht.type=u.method||u.type||ht.method||ht.type,ht.dataTypes=(ht.dataType||"*").toLowerCase().match(X)||[""],ht.crossDomain==null){W=G.createElement("a");try{W.href=ht.url,W.href=W.href,ht.crossDomain=ia.protocol+"//"+ia.host!=W.protocol+"//"+W.host}catch(ve){ht.crossDomain=!0}}if(ht.data&&ht.processData&&typeof ht.data!="string"&&(ht.data=o.param(ht.data,ht.traditional)),pl(hl,ht,u,ae),B)return ae;nt=o.event&&ht.global,nt&&o.active++===0&&o.event.trigger("ajaxStart"),ht.type=ht.type.toUpperCase(),ht.hasContent=!ld.test(ht.type),v=ht.url.replace(od,""),ht.hasContent?ht.data&&ht.processData&&(ht.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ht.data=ht.data.replace(nd,"+")):(xt=ht.url.slice(v.length),ht.data&&(ht.processData||typeof ht.data=="string")&&(v+=(Zr.test(v)?"&":"?")+ht.data,delete ht.data),ht.cache===!1&&(v=v.replace(rd,"$1"),xt=(Zr.test(v)?"&":"?")+"_="+ll.guid+++xt),ht.url=v+xt),ht.ifModified&&(o.lastModified[v]&&ae.setRequestHeader("If-Modified-Since",o.lastModified[v]),o.etag[v]&&ae.setRequestHeader("If-None-Match",o.etag[v])),(ht.data&&ht.hasContent&&ht.contentType!==!1||u.contentType)&&ae.setRequestHeader("Content-Type",ht.contentType),ae.setRequestHeader("Accept",ht.dataTypes[0]&&ht.accepts[ht.dataTypes[0]]?ht.accepts[ht.dataTypes[0]]+(ht.dataTypes[0]!=="*"?", "+ul+"; q=0.01":""):ht.accepts["*"]);for(pt in ht.headers)ae.setRequestHeader(pt,ht.headers[pt]);if(ht.beforeSend&&(ht.beforeSend.call(mt,ae,ht)===!1||B))return ae.abort();if(Se="abort",Jt.add(ht.complete),ae.done(ht.success),ae.fail(ht.error),m=pl(ea,ht,u,ae),!m)bi(-1,"No Transport");else{if(ae.readyState=1,nt&&Xt.trigger("ajaxSend",[ae,ht]),B)return ae;ht.async&&ht.timeout>0&&(T=r.setTimeout(function(){ae.abort("timeout")},ht.timeout));try{B=!1,m.send(Ye,bi)}catch(ve){if(B)throw ve;bi(-1,ve)}}function bi(ve,Re,ko,nr){var Ti,En,An,wi,fn,Oi=Re;B||(B=!0,T&&r.clearTimeout(T),m=void 0,_=nr||"",ae.readyState=ve>0?4:0,Ti=ve>=200&&ve<300||ve===304,ko&&(wi=hd(ht,ae,ko)),!Ti&&o.inArray("script",ht.dataTypes)>-1&&o.inArray("json",ht.dataTypes)<0&&(ht.converters["text script"]=function(){}),wi=ud(ht,wi,ae,Ti),Ti?(ht.ifModified&&(fn=ae.getResponseHeader("Last-Modified"),fn&&(o.lastModified[v]=fn),fn=ae.getResponseHeader("etag"),fn&&(o.etag[v]=fn)),ve===204||ht.type==="HEAD"?Oi="nocontent":ve===304?Oi="notmodified":(Oi=wi.state,En=wi.data,An=wi.error,Ti=!An)):(An=Oi,(ve||!Oi)&&(Oi="error",ve<0&&(ve=0))),ae.status=ve,ae.statusText=(Re||Oi)+"",Ti?se.resolveWith(mt,[En,Oi,ae]):se.rejectWith(mt,[ae,Oi,An]),ae.statusCode(Je),Je=void 0,nt&&Xt.trigger(Ti?"ajaxSuccess":"ajaxError",[ae,ht,Ti?En:An]),Jt.fireWith(mt,[ae,Oi]),nt&&(Xt.trigger("ajaxComplete",[ae,ht]),--o.active||o.event.trigger("ajaxStop")))}return ae},getJSON:function(s,u,m){return o.get(s,u,m,"json")},getScript:function(s,u){return o.get(s,void 0,u,"script")}}),o.each(["get","post"],function(s,u){o[u]=function(m,v,_,k){return Y(v)&&(k=k||_,_=v,v=void 0),o.ajax(o.extend({url:m,type:u,dataType:k,data:v,success:_},o.isPlainObject(m)&&m))}}),o.ajaxPrefilter(function(s){var u;for(u in s.headers)u.toLowerCase()==="content-type"&&(s.contentType=s.headers[u]||"")}),o._evalUrl=function(s,u,m){return o.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(v){o.globalEval(v,u,m)}})},o.fn.extend({wrapAll:function(s){var u;return this[0]&&(Y(s)&&(s=s.call(this[0])),u=o(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&u.insertBefore(this[0]),u.map(function(){for(var m=this;m.firstElementChild;)m=m.firstElementChild;return m}).append(this)),this},wrapInner:function(s){return Y(s)?this.each(function(u){o(this).wrapInner(s.call(this,u))}):this.each(function(){var u=o(this),m=u.contents();m.length?m.wrapAll(s):u.append(s)})},wrap:function(s){var u=Y(s);return this.each(function(m){o(this).wrapAll(u?s.call(this,m):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){o(this).replaceWith(this.childNodes)}),this}}),o.expr.pseudos.hidden=function(s){return!o.expr.pseudos.visible(s)},o.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},o.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(s){}};var dd={0:200,1223:204},xo=o.ajaxSettings.xhr();U.cors=!!xo&&"withCredentials"in xo,U.ajax=xo=!!xo,o.ajaxTransport(function(s){var u,m;if(U.cors||xo&&!s.crossDomain)return{send:function(v,_){var k,T=s.xhr();if(T.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(k in s.xhrFields)T[k]=s.xhrFields[k];s.mimeType&&T.overrideMimeType&&T.overrideMimeType(s.mimeType),!s.crossDomain&&!v["X-Requested-With"]&&(v["X-Requested-With"]="XMLHttpRequest");for(k in v)T.setRequestHeader(k,v[k]);u=function(W){return function(){u&&(u=m=T.onload=T.onerror=T.onabort=T.ontimeout=T.onreadystatechange=null,W==="abort"?T.abort():W==="error"?typeof T.status!="number"?_(0,"error"):_(T.status,T.statusText):_(dd[T.status]||T.status,T.statusText,(T.responseType||"text")!=="text"||typeof T.responseText!="string"?{binary:T.response}:{text:T.responseText},T.getAllResponseHeaders()))}},T.onload=u(),m=T.onerror=T.ontimeout=u("error"),T.onabort!==void 0?T.onabort=m:T.onreadystatechange=function(){T.readyState===4&&r.setTimeout(function(){u&&m()})},u=u("abort");try{T.send(s.hasContent&&s.data||null)}catch(W){if(u)throw W}},abort:function(){u&&u()}}}),o.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return o.globalEval(s),s}}}),o.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),o.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var u,m;return{send:function(v,_){u=o("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",m=function(k){u.remove(),m=null,k&&_(k.type==="error"?404:200,k.type)}),G.head.appendChild(u[0])},abort:function(){m&&m()}}}});var fl=[],oa=/(=)\?(?=&|$)|\?\?/;o.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var s=fl.pop()||o.expando+"_"+ll.guid++;return this[s]=!0,s}}),o.ajaxPrefilter("json jsonp",function(s,u,m){var v,_,k,T=s.jsonp!==!1&&(oa.test(s.url)?"url":typeof s.data=="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&oa.test(s.data)&&"data");if(T||s.dataTypes[0]==="jsonp")return v=s.jsonpCallback=Y(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,T?s[T]=s[T].replace(oa,"$1"+v):s.jsonp!==!1&&(s.url+=(Zr.test(s.url)?"&":"?")+s.jsonp+"="+v),s.converters["script json"]=function(){return k||o.error(v+" was not called"),k[0]},s.dataTypes[0]="json",_=r[v],r[v]=function(){k=arguments},m.always(function(){_===void 0?o(r).removeProp(v):r[v]=_,s[v]&&(s.jsonpCallback=u.jsonpCallback,fl.push(v)),k&&Y(_)&&_(k[0]),k=_=void 0}),"script"}),U.createHTMLDocument=function(){var s=G.implementation.createHTMLDocument("").body;return s.innerHTML="<form></form><form></form>",s.childNodes.length===2}(),o.parseHTML=function(s,u,m){if(typeof s!="string")return[];typeof u=="boolean"&&(m=u,u=!1);var v,_,k;return u||(U.createHTMLDocument?(u=G.implementation.createHTMLDocument(""),v=u.createElement("base"),v.href=G.location.href,u.head.appendChild(v)):u=G),_=L.exec(s),k=!m&&[],_?[u.createElement(_[1])]:(_=R([s],u,k),k&&k.length&&o(k).remove(),o.merge([],_.childNodes))},o.fn.load=function(s,u,m){var v,_,k,T=this,W=s.indexOf(" ");return W>-1&&(v=Sn(s.slice(W)),s=s.slice(0,W)),Y(u)?(m=u,u=void 0):u&&typeof u=="object"&&(_="POST"),T.length>0&&o.ajax({url:s,type:_||"GET",dataType:"html",data:u}).done(function(B){k=arguments,T.html(v?o("<div>").append(o.parseHTML(B)).find(v):B)}).always(m&&function(B,nt){T.each(function(){m.apply(this,k||[B.responseText,nt,B])})}),this},o.expr.pseudos.animated=function(s){return o.grep(o.timers,function(u){return s===u.elem}).length},o.offset={setOffset:function(s,u,m){var v,_,k,T,W,B,nt,pt=o.css(s,"position"),xt=o(s),ht={};pt==="static"&&(s.style.position="relative"),W=xt.offset(),k=o.css(s,"top"),B=o.css(s,"left"),nt=(pt==="absolute"||pt==="fixed")&&(k+B).indexOf("auto")>-1,nt?(v=xt.position(),T=v.top,_=v.left):(T=parseFloat(k)||0,_=parseFloat(B)||0),Y(u)&&(u=u.call(s,m,o.extend({},W))),u.top!=null&&(ht.top=u.top-W.top+T),u.left!=null&&(ht.left=u.left-W.left+_),"using"in u?u.using.call(s,ht):xt.css(ht)}},o.fn.extend({offset:function(s){if(arguments.length)return s===void 0?this:this.each(function(_){o.offset.setOffset(this,s,_)});var u,m,v=this[0];if(v)return v.getClientRects().length?(u=v.getBoundingClientRect(),m=v.ownerDocument.defaultView,{top:u.top+m.pageYOffset,left:u.left+m.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var s,u,m,v=this[0],_={top:0,left:0};if(o.css(v,"position")==="fixed")u=v.getBoundingClientRect();else{for(u=this.offset(),m=v.ownerDocument,s=v.offsetParent||m.documentElement;s&&(s===m.body||s===m.documentElement)&&o.css(s,"position")==="static";)s=s.parentNode;s&&s!==v&&s.nodeType===1&&(_=o(s).offset(),_.top+=o.css(s,"borderTopWidth",!0),_.left+=o.css(s,"borderLeftWidth",!0))}return{top:u.top-_.top-o.css(v,"marginTop",!0),left:u.left-_.left-o.css(v,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var s=this.offsetParent;s&&o.css(s,"position")==="static";)s=s.offsetParent;return s||be})}}),o.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(s,u){var m=u==="pageYOffset";o.fn[s]=function(v){return qt(this,function(_,k,T){var W;if(ct(_)?W=_:_.nodeType===9&&(W=_.defaultView),T===void 0)return W?W[u]:_[k];W?W.scrollTo(m?W.pageXOffset:T,m?T:W.pageYOffset):_[k]=T},s,v,arguments.length)}}),o.each(["top","left"],function(s,u){o.cssHooks[u]=Lt(U.pixelPosition,function(m,v){if(v)return v=H(m,u),Bt.test(v)?o(m).position()[u]+"px":v})}),o.each({Height:"height",Width:"width"},function(s,u){o.each({padding:"inner"+s,content:u,"":"outer"+s},function(m,v){o.fn[v]=function(_,k){var T=arguments.length&&(m||typeof _!="boolean"),W=m||(_===!0||k===!0?"margin":"border");return qt(this,function(B,nt,pt){var xt;return ct(B)?v.indexOf("outer")===0?B["inner"+s]:B.document.documentElement["client"+s]:B.nodeType===9?(xt=B.documentElement,Math.max(B.body["scroll"+s],xt["scroll"+s],B.body["offset"+s],xt["offset"+s],xt["client"+s])):pt===void 0?o.css(B,nt,W):o.style(B,nt,pt,W)},u,T?_:void 0,T)}})}),o.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(s,u){o.fn[u]=function(m){return this.on(u,m)}}),o.fn.extend({bind:function(s,u,m){return this.on(s,null,u,m)},unbind:function(s,u){return this.off(s,null,u)},delegate:function(s,u,m,v){return this.on(u,s,m,v)},undelegate:function(s,u,m){return arguments.length===1?this.off(s,"**"):this.off(u,s||"**",m)},hover:function(s,u){return this.mouseenter(s).mouseleave(u||s)}}),o.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(s,u){o.fn[u]=function(m,v){return arguments.length>0?this.on(u,null,m,v):this.trigger(u)}});var pd=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;o.proxy=function(s,u){var m,v,_;if(typeof u=="string"&&(m=s[u],u=s,s=m),!!Y(s))return v=f.call(arguments,2),_=function(){return s.apply(u||this,v.concat(f.call(arguments)))},_.guid=s.guid=s.guid||o.guid++,_},o.holdReady=function(s){s?o.readyWait++:o.ready(!0)},o.isArray=Array.isArray,o.parseJSON=JSON.parse,o.nodeName=P,o.isFunction=Y,o.isWindow=ct,o.camelCase=ge,o.type=n,o.now=Date.now,o.isNumeric=function(s){var u=o.type(s);return(u==="number"||u==="string")&&!isNaN(s-parseFloat(s))},o.trim=function(s){return s==null?"":(s+"").replace(pd,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return o});var fd=r.jQuery,md=r.$;return o.noConflict=function(s){return r.$===o&&(r.$=md),s&&r.jQuery===o&&(r.jQuery=fd),o},typeof l>"u"&&(r.jQuery=r.$=o),o})}),Ml=Kd(Xd()),Il,ma=(Il=Ml.default)!=null?Il:Ml;var q="jQuery"in window&&"$"in window?window.$:ma;window.jQuery=q;window.$=q;var $e=location.hostname==="localhost"||location.host.match(/^(www|cat)-[a-z0-9]+\.archive\.org$/)||location.host.match(/\.code\.archive\.org$/)||location.host.match(/\.dev\.archive\.org$/)||location.host.match(/^ia-petabox-/)?console.log.bind(console):()=>{};var Eo=navigator.userAgent.indexOf("iPhone")>0||navigator.userAgent.indexOf("iPad")>0||navigator.userAgent.indexOf("iPod")>0;q.fn.center=function(){let i=q(this).innerHeight();$e("myheight",i),$e("mywidth",this.width()),$e("w.height",q(window).height(),"w.width",q(window).width(),"w.scrollTop",q(window).scrollTop(),"w.scrollLeft",q(window).scrollLeft());let r,l;if(Eo){let c=window.innerWidth,d=window.innerHeight;$e("vpH",d),$e("vpW",c),r=(d-i)/2+q(window).scrollTop(),l=(c-this.width())/2+q(window).scrollLeft()}else r=(q(window).height()-i)/2,l=(q(window).width()-this.width())/2;return r=Math.max(20,r),l=Math.max(20,l),this.css({position:Eo?"absolute":"fixed",display:"block",top:r,left:l}),this};var ga=class t{static params(i,r){let l={height:r,width:i,scrollbars:"yes",resizable:"yes",toolbar:"no",directories:"no",location:"yes",menubar:"no",status:"yes"};return Object.keys(l).filter(c=>l[c]).reduce((c,d)=>c.concat(`${d}=${l[d]}`),[]).join(",")}static setupPopupLink(){let i="popup-link",r="popup-link-width",l="popup-link-height";$e("popup setup"),q(document.body).off("click.PopupLink").on("click.PopupLink",`[data-${i}]`,c=>{c.preventDefault();let d=q(c.currentTarget),f=d.data(r)||500,g=d.data(l)||500;window.open(c.currentTarget.href,"popup",t.params(f,g))})}};q(ga.setupPopupLink);var Ao=class{static LoadingMessage({message:i="Loading"}){return`<small class="loading-message">${i}</small>`}static ErrorMessage({errorMessage:i}){return`<small>${i}</small>`}};var pr=class{constructor(i,r=250,l=void 0){this.callback=i,this.threshhold=r,this.context=l,this.last=void 0,this.deferTimeout=void 0}execute(){let i=+new Date;this.last&&i<this.last+this.threshhold?(clearTimeout(this.deferTimeout),this.deferTimeout=setTimeout(this.executeCallback.bind(this),this.threshhold)):this.executeCallback.call(this)}executeCallback(){this.last=+new Date,this.callback.apply(this.context)}};var fr=class{constructor(i,r,l){this.identifier=i,this.$targetElement=r,this.callback=l,this.$window=q(window),this.throttler=new pr(this.scrollListener,100,this)}startListener(){this.$window.on(`scroll.${this.identifier}`,this.throttledListener.bind(this)),this.scrollListener()}throttledListener(){return this.throttler.execute()}getTargetScrollOffset(){let i=this.$targetElement.offset().top,r=this.$window.height();return i-r/2}scrollListener(){let i=this.getTargetScrollOffset();this.$window.scrollTop()+this.$window.height()>=i&&(this.$window.off(`.${this.identifier}`),this.callback())}};var Ol=/bot|crawl|spider/i.test(navigator.userAgent);var va=class t{static setup(){let i=q("#js-related");if(!i.length||Ol)return;let r=q("#also-found");this.scrollProximityHandler=new fr("related_items",r,()=>{if(!i.text())return r.find(".tilebars").show(),i.html(Ao.LoadingMessage({message:"Fetching items"})),t.doWhenScrolledToRelatedSection()}),this.scrollProximityHandler.startListener()}static doWhenScrolledToRelatedSection(){let i=q("#also-found").data("identifier"),r=q("#js-related");return t.getRelatedItems(i).then(l=>{r.html(l)}).catch(l=>{q("#playplayset").hide(),r.html(Ao.ErrorMessage({errorMessage:l.message})).show()})}static getRelatedItems(i,r){return new Promise((l,c)=>{let d=`/details/${encodeURIComponent(i)}?RelatedItemsGet=${r?"json":1}`,f="Related items temporarily unavailable. Please try back later.";q.get(d,g=>{g===""&&c(new Error("No similar items found.")),g==="service_disabled"&&c(new Error(f)),l(g)}).fail(()=>{c(new Error(f))})})}};q(()=>va.setup());var Jd=Object.create,ba=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,Zd=Object.getOwnPropertyNames,tp=Object.getPrototypeOf,ep=Object.prototype.hasOwnProperty,ip=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),np=(t,i)=>{for(var r in i)ba(t,r,{get:i[r],enumerable:!0})},ya=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Zd(i))!ep.call(t,c)&&c!==r&&ba(t,c,{get:()=>i[c],enumerable:!(l=Qd(i,c))||l.enumerable});return t},op=(t,i,r)=>(ya(t,i,"default"),r&&ya(r,i,"default")),zl=(t,i,r)=>(r=t!=null?Jd(tp(t)):{},ya(i||!t||!t.__esModule?ba(r,"default",{value:t,enumerable:!0}):r,t)),Ll=ip((t,i)=>{(function(r,l){typeof t=="object"&&typeof i=="object"?i.exports=l():typeof define=="function"&&define.amd?define([],l):typeof t=="object"?t.ClipboardJS=l():r.ClipboardJS=l()})(t,function(){return function(){var r={686:function(d,f,g){"use strict";g.d(f,{default:function(){return ot}});var b=g(279),x=g.n(b),w=g(370),A=g.n(w),M=g(817),O=g.n(M);function E(X){try{return document.execCommand(X)}catch(K){return!1}}var U=function(X){var K=O()(X);return E("cut"),K},Y=U;function ct(X){var K=document.documentElement.getAttribute("dir")==="rtl",at=document.createElement("textarea");at.style.fontSize="12pt",at.style.border="0",at.style.padding="0",at.style.margin="0",at.style.position="absolute",at.style[K?"right":"left"]="-9999px";var st=window.pageYOffset||document.documentElement.scrollTop;return at.style.top="".concat(st,"px"),at.setAttribute("readonly",""),at.value=X,at}var G=function(X,K){var at=ct(X);K.container.appendChild(at);var st=O()(at);return E("copy"),at.remove(),st},wt=function(X){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},at="";return typeof X=="string"?at=G(X,K):X instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(X==null?void 0:X.type)?at=G(X.value,K):(at=O()(X),E("copy")),at},e=wt;function n(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(K){return typeof K}:n=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},n(X)}var a=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=X.action,at=K===void 0?"copy":K,st=X.container,bt=X.target,$t=X.text;if(at!=="copy"&&at!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(bt!==void 0)if(bt&&n(bt)==="object"&&bt.nodeType===1){if(at==="copy"&&bt.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(at==="cut"&&(bt.hasAttribute("readonly")||bt.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if($t)return e($t,{container:st});if(bt)return at==="cut"?Y(bt):e(bt,{container:st})},o=a;function h(X){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(K){return typeof K}:h=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},h(X)}function p(X,K){if(!(X instanceof K))throw new TypeError("Cannot call a class as a function")}function y(X,K){for(var at=0;at<K.length;at++){var st=K[at];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(X,st.key,st)}}function C(X,K,at){return K&&y(X.prototype,K),at&&y(X,at),X}function D(X,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(K&&K.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),K&&P(X,K)}function P(X,K){return P=Object.setPrototypeOf||function(at,st){return at.__proto__=st,at},P(X,K)}function L(X){var K=Et();return function(){var at=V(X),st;if(K){var bt=V(this).constructor;st=Reflect.construct(at,arguments,bt)}else st=at.apply(this,arguments);return J(this,st)}}function J(X,K){return K&&(h(K)==="object"||typeof K=="function")?K:dt(X)}function dt(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function Et(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(X){return!1}}function V(X){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)},V(X)}function N(X,K){var at="data-clipboard-".concat(X);if(K.hasAttribute(at))return K.getAttribute(at)}var tt=function(X){D(at,X);var K=L(at);function at(st,bt){var $t;return p(this,at),$t=K.call(this),$t.resolveOptions(bt),$t.listenClick(st),$t}return C(at,[{key:"resolveOptions",value:function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof st.action=="function"?st.action:this.defaultAction,this.target=typeof st.target=="function"?st.target:this.defaultTarget,this.text=typeof st.text=="function"?st.text:this.defaultText,this.container=h(st.container)==="object"?st.container:document.body}},{key:"listenClick",value:function(st){var bt=this;this.listener=A()(st,"click",function($t){return bt.onClick($t)})}},{key:"onClick",value:function(st){var bt=st.delegateTarget||st.currentTarget,$t=this.action(bt)||"copy",Ht=o({action:$t,container:this.container,target:this.target(bt),text:this.text(bt)});this.emit(Ht?"success":"error",{action:$t,text:Ht,trigger:bt,clearSelection:function(){bt&&bt.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(st){return N("action",st)}},{key:"defaultTarget",value:function(st){var bt=N("target",st);if(bt)return document.querySelector(bt)}},{key:"defaultText",value:function(st){return N("text",st)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(st){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return e(st,bt)}},{key:"cut",value:function(st){return Y(st)}},{key:"isSupported",value:function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],bt=typeof st=="string"?[st]:st,$t=!!document.queryCommandSupported;return bt.forEach(function(Ht){$t=$t&&!!document.queryCommandSupported(Ht)}),$t}}]),at}(x()),ot=tt},828:function(d){var f=9;if(typeof Element<"u"&&!Element.prototype.matches){var g=Element.prototype;g.matches=g.matchesSelector||g.mozMatchesSelector||g.msMatchesSelector||g.oMatchesSelector||g.webkitMatchesSelector}function b(x,w){for(;x&&x.nodeType!==f;){if(typeof x.matches=="function"&&x.matches(w))return x;x=x.parentNode}}d.exports=b},438:function(d,f,g){var b=g(828);function x(M,O,E,U,Y){var ct=A.apply(this,arguments);return M.addEventListener(E,ct,Y),{destroy:function(){M.removeEventListener(E,ct,Y)}}}function w(M,O,E,U,Y){return typeof M.addEventListener=="function"?x.apply(null,arguments):typeof E=="function"?x.bind(null,document).apply(null,arguments):(typeof M=="string"&&(M=document.querySelectorAll(M)),Array.prototype.map.call(M,function(ct){return x(ct,O,E,U,Y)}))}function A(M,O,E,U){return function(Y){Y.delegateTarget=b(Y.target,O),Y.delegateTarget&&U.call(M,Y)}}d.exports=w},879:function(d,f){f.node=function(g){return g!==void 0&&g instanceof HTMLElement&&g.nodeType===1},f.nodeList=function(g){var b=Object.prototype.toString.call(g);return g!==void 0&&(b==="[object NodeList]"||b==="[object HTMLCollection]")&&"length"in g&&(g.length===0||f.node(g[0]))},f.string=function(g){return typeof g=="string"||g instanceof String},f.fn=function(g){var b=Object.prototype.toString.call(g);return b==="[object Function]"}},370:function(d,f,g){var b=g(879),x=g(438);function w(E,U,Y){if(!E&&!U&&!Y)throw new Error("Missing required arguments");if(!b.string(U))throw new TypeError("Second argument must be a String");if(!b.fn(Y))throw new TypeError("Third argument must be a Function");if(b.node(E))return A(E,U,Y);if(b.nodeList(E))return M(E,U,Y);if(b.string(E))return O(E,U,Y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function A(E,U,Y){return E.addEventListener(U,Y),{destroy:function(){E.removeEventListener(U,Y)}}}function M(E,U,Y){return Array.prototype.forEach.call(E,function(ct){ct.addEventListener(U,Y)}),{destroy:function(){Array.prototype.forEach.call(E,function(ct){ct.removeEventListener(U,Y)})}}}function O(E,U,Y){return x(document.body,E,U,Y)}d.exports=w},817:function(d){function f(g){var b;if(g.nodeName==="SELECT")g.focus(),b=g.value;else if(g.nodeName==="INPUT"||g.nodeName==="TEXTAREA"){var x=g.hasAttribute("readonly");x||g.setAttribute("readonly",""),g.select(),g.setSelectionRange(0,g.value.length),x||g.removeAttribute("readonly"),b=g.value}else{g.hasAttribute("contenteditable")&&g.focus();var w=window.getSelection(),A=document.createRange();A.selectNodeContents(g),w.removeAllRanges(),w.addRange(A),b=w.toString()}return b}d.exports=f},279:function(d){function f(){}f.prototype={on:function(g,b,x){var w=this.e||(this.e={});return(w[g]||(w[g]=[])).push({fn:b,ctx:x}),this},once:function(g,b,x){var w=this;function A(){w.off(g,A),b.apply(x,arguments)}return A._=b,this.on(g,A,x)},emit:function(g){var b=[].slice.call(arguments,1),x=((this.e||(this.e={}))[g]||[]).slice(),w=0,A=x.length;for(w;w<A;w++)x[w].fn.apply(x[w].ctx,b);return this},off:function(g,b){var x=this.e||(this.e={}),w=x[g],A=[];if(w&&b)for(var M=0,O=w.length;M<O;M++)w[M].fn!==b&&w[M].fn._!==b&&A.push(w[M]);return A.length?x[g]=A:delete x[g],this}},d.exports=f,d.exports.TinyEmitter=f}},l={};function c(d){if(l[d])return l[d].exports;var f=l[d]={exports:{}};return r[d](f,f.exports,c),f.exports}return function(){c.n=function(d){var f=d&&d.__esModule?function(){return d.default}:function(){return d};return c.d(f,{a:f}),f}}(),function(){c.d=function(d,f){for(var g in f)c.o(f,g)&&!c.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:f[g]})}}(),function(){c.o=function(d,f){return Object.prototype.hasOwnProperty.call(d,f)}}(),c(686)}().default})}),Hl={};np(Hl,{default:()=>$o});var rp=zl(Ll());op(Hl,zl(Ll()));var Nl=rp,{default:Rl}=Nl,ap=Ri(Nl,["default"]),$o=Rl!==void 0?Rl:ap;function Bl(t,i){let r=t.querySelector("output");r||(r=document.createElement("output"),r.setAttribute("role","alert"),t.appendChild(r)),r.textContent="",r.textContent=i}function sp(t){let i=document.createElement("button");return i.type="button",i.textContent="Copy",i.title="Copy to clipboard",i.setAttribute("data-clipboard-target",`#${t.querySelector("input").id}`),i}function lp(t){t.querySelector("input")&&(t.appendChild(sp(t)),t.setAttribute("data-copyable-text-ready",""))}function cp(){let t=new $o("[data-copyable-text] [data-clipboard-target]");t.on("success",i=>{let r=i.trigger.parentElement,l=r.getAttribute("data-copyable-text-success-message")||"Text copied to clipboard.";Bl(r,l)}),t.on("error",i=>{let r=i.trigger.parentElement,l=r.getAttribute("data-copyable-text-error-message")||"Something went wrong.";Bl(r,l)})}function hp(){let t=document.querySelectorAll("[data-copyable-text]:not([data-copyable-text-ready])");t.length<=0||$o.isSupported()&&([...t].forEach(lp),cp())}q(hp);function jl(t,i){let r=t.querySelector(i);return r?r.value:""}function up(){$e("setUpDisabilityEligibility()"),Array.from(document.querySelectorAll(".js-disability-eligibility")).forEach(t=>{let i=t.dataset.disabilityEligibilityType;t.addEventListener("submit",r=>{let l=jl(t,".disability-eligibility-password"),c=jl(t,".disability-eligibility-token"),d={type:i,password:l,token:c},f=/\?.*login=([^&]+)/,g=location.href.match(f);g&&([,d.login]=g);let b=document.createElement("img");b.src="/images/loading.gif",t.querySelector('input[type="submit"]').parentNode.appendChild(b),q.ajax({type:"POST",url:"/services/disability_eligibility.php",dataType:"json",data:d,success:w=>{if(w.status==="success"){alert("Success! Your eligibility has been verified.");return}if(w.message==="not logged in"){alert("Please login first.");return}alert("Sorry. We could not verify your eligibility at this time."),console.log(`Verification error: ${w.status_code}, ${w.message}`)},error:(w,A,M)=>{alert("Sorry. We could not verify your eligibility at this time."),console.log(`Verification error: ${A}, ${M}`)},complete:()=>{b.remove()}}),r.preventDefault()})})}q(()=>up());var dp=()=>{let t=window.location.search.substring(1),i={};return t.length>0&&t.split("&").forEach(r=>{let[l,c]=r.split("=");i[l]=decodeURIComponent(c)}),i},Fl=dp;function oi(t,i,r="false",l=null){if(typeof t!="string")throw new Error("first arg should be a string");q(t).on("click",l,c=>{let d=i(c);return r==="callback"&&d?d:r==="default"?!0:(c&&c.preventDefault&&c.preventDefault(),c&&c.stopPropagation&&c.stopPropagation(),!1)})}var hn=class t{static remove_favorite_item(i){let r=q(i),l=r.data("id"),c=r.data("fav-collection");if(!l||!c)return;let d=location.protocol.concat("//",location.host,"/details/",c).concat(`?remove_item=${encodeURIComponent(l)}&kind=favorite`);t.toggle_favorite_icon(r,!1),t.update_favorite_count(!1),q.get(d)}static toggle_list_status(i){return q(i).hasClass("favorited")?t.remove_favorite_item(i,!0):De.modal_go(i,{favorite:1}),!1}static toggle_favorite_icon(i,r=!0){let l=q(i).find("span.icon-label");i.length&&(i.find("span:eq(0)").toggleClass("iconochive-No_Favorite iconochive-favorite"),r?(i.addClass("favorited"),i.attr({"data-original-title":"Unfavorite"}),l.text("Unfavorite")):(i.removeClass("favorited"),i.attr({"data-original-title":"Favorite"}),l.text("Favorite")))}static update_favorite_count(i=!0){let r=q(".favorite-count"),l=r.find(".item-stats-summary__label"),c=r.find(".item-stats-summary__count");c.length||(c=document.createElement("span"),c.className="item-stats-summary__count",r.append(c),l=document.createElement("span"),l.className="item-stats-summary__label",r.append(l));let d=Number(q(c).text().trim().replace(/,/g,""));i?d+=1:d-=1,q(l).text(d===1?" Favorite":" Favorites"),q(c).text(d.toLocaleString())}};q(()=>{let t=q(".js-manage-toggle_list_status");t.length&&t.bind("click",i=>{i.preventDefault(),hn.toggle_list_status(t[0])}),oi(".js-manage-share_button",i=>De.modal_go(i.currentTarget,{ignore_lnk:1,shown:De.embed_codes_adjust}))});window.Manage=hn;var Wl={namespace:"banners",action:"ia-banner-close",selector:".ia-banner",dismiss(t){t.preventDefault();let i=t.currentTarget.closest(this.selector);this.isLocalStorageAvailable()&&this.writeStorage(i.getAttribute("data-campaign")),i.remove()},readStorage(){return JSON.parse(localStorage.getItem(this.namespace))||[]},writeStorage(t){let i=this.readStorage();localStorage.setItem(this.namespace,JSON.stringify([...i,t]))},bindEvents(){document.querySelectorAll(`${this.selector} [data-action=${this.action}]`).forEach(t=>{t.addEventListener("submit",i=>(this.dismiss(i),!1))})},checkVisibility(){let t=this.isLocalStorageAvailable()?this.readStorage():[];document.querySelectorAll(this.selector).forEach(i=>{i.classList.toggle("visible",!t.includes(i.getAttribute("data-campaign")))})},isLocalStorageAvailable(){try{return Object.keys(localStorage).length>=0}catch(t){return!1}},init(){this.bindEvents(),this.checkVisibility()}};function un(t){let i=`${t}`.split("."),r=i[0],l=i.length>1?`.${i[1]}`:"",c=/(\d+)(\d{3})/;for(;c.test(r);)r=r.replace(c,"$1,$2");return r+l}var Ul=({$form:t,url:i,selector:r,element:l,conf:c})=>{let d={success(f){cn.get("logged-in-user")!==void 0?(q(r).on("hidden.bs.modal",()=>{q(r).remove(),De.modal_go(l,Ni(si({},c),{postLogin:!0}))}),q(document.body).removeClass("blurry"),q(r).modal("hide")):f.status!=="ok"&&(f.status==="bad_login"&&q(".reset-password").hide(),q(".password-error").html(f.message))},error(f){let g=f.responseJSON;q(".reset-password").hide(),g?q(".password-error").html(g.message):q(".password-error").text("Whoops! Something didn't work quite right. Please try again in a bit.")}};t.on("submit",()=>{let f={},{success:g,error:b}=d;return t.find("input").each((x,w)=>{q(w).attr("name").length&&(f[q(w).attr("name")]=q(w).val())}),f.submit_by_js="true",t.find(".alert").remove(),q.ajax(i,{type:"POST",data:f,success:g,error:b}),!1})};function ql(t,i,r="false"){if(typeof t!="string")throw new Error("first arg should be a string");q(t).on("change",l=>{let c=i(l);return r==="callback"&&c?c:r==="default"?!0:(l&&l.preventDefault&&l.preventDefault(),l&&l.stopPropagation&&l.stopPropagation(),!1)})}function wa(t,i=100,r=!1){let l;return function(){let d=this,f=arguments;function g(){r||t.apply(d,...f),l=null}l?clearTimeout(l):r&&t.apply(d,...f),l=setTimeout(g,i)}}var Vl=(t,i=document)=>{let r=i.querySelector(t);if(r)return r;for(let l of i.querySelectorAll("*"))if(l.shadowRoot){let c=Vl(t,l.shadowRoot);if(c)return c}},Yl=Vl;var _a="";typeof window<"u"&&(_a=Array.prototype.slice.call(window.getComputedStyle(document.documentElement,"")).join(",").search(/,animation/)>-1?"":"webkit");function In(t,i){Object.keys(i).forEach(r=>{let l=r;_a&&r.search("animation")>-1&&(l=_a+r[0].toUpperCase()+r.substr(1)),t.style[l]=i[r]})}function Xl(t){In(t,{display:"block"})}function Jl(t){In(t,{display:"none"})}function pp(){let t=document.body,i=document.documentElement,r;return window.innerHeight?r=window.innerHeight:i&&i.clientHeight?r=i.clientHeight:t&&(r=t.clientHeight),r||0}function fp(){let t=document.body,i=document.documentElement,r;return window.innerWidth?r=window.innerWidth:i&&i.clientWidth?r=i.clientWidth:t&&(r=t.clientWidth),r||0}function mp(t,i){return i||(i=document.createElement("style"),document.body.appendChild(i)),i.textContent=t,i}function mr(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function gp(t){return t===document.body}function $i(t,i){t.classList.add(i)}function Gl(t,i){t.classList.remove(i)}var vp=typeof document<"u"&&"onanimationend"in document;function Kl(t,i){return t+Math.floor(Math.random()*(i-t))}function xa(t,i,r,l,c){return l+(c-l)*(t-i)/(r-i)}var ka=20;function Ql(t,i,r){return Math.floor(xa(t,0,ka,i,r))}var yp=class{constructor(t){this.size=0,this.sizeInner=0;let i=this.elem=document.createElement("div"),r=this.elemInner=document.createElement("div");this.update(t),$i(i,"snowflake"),$i(r,"snowflake__inner"),$i(i,"snowflake_animation"),vp?($i(i,"snowflake_animation-end"),i.onanimationend=l=>{l.target===i&&(this.updateLeft(),this.reflow())}):$i(i,"snowflake_animation-infinity"),t.types&&$i(r,"snowflake__inner_type_"+Kl(0,t.types)),t.wind&&$i(r,"snowflake__inner_wind"),t.rotation&&$i(r,"snowflake__inner_rotation"+(Math.random()>.5?"":"_reverse")),i.appendChild(r)}getLeft(){return Math.random()*99+"%"}updateLeft(){this.elem&&In(this.elem,{left:this.getLeft()})}update(t){if(!this.elem||!this.elemInner)return;let i=t.minSize===t.maxSize;this.sizeInner=i?0:Kl(0,ka),this.size=Ql(this.sizeInner,t.minSize,t.maxSize);let r=this.getAnimationProps(t),l={animationName:`snowflake_gid_${t.gid}_y`,animationDelay:r.animationDelay,animationDuration:r.animationDuration,left:this.getLeft(),top:-Math.sqrt(2)*this.size+"px",width:this.size+"px",height:this.size+"px"};i||(l.opacity=String(xa(this.size,t.minSize,t.maxSize,t.minOpacity,t.maxOpacity))),In(this.elem,l);let c=`snowflake_gid_${t.gid}_x_${this.sizeInner}`;In(this.elemInner,{animationName:c,animationDelay:Math.random()*4+"s"})}reflow(){this.elem&&(Jl(this.elem),this.elem.offsetHeight,Xl(this.elem))}resize(t){if(!this.elem)return;let i=this.getAnimationProps(t);In(this.elem,{animationDuration:i.animationDuration})}appendTo(t){this.elem&&t.appendChild(this.elem)}destroy(){this.elem&&(this.elem.onanimationend=null,delete this.elem,delete this.elemInner)}getAnimationProps(t){let i=t.containerHeight/50/t.speed,r=i/3;return{animationDelay:Math.random()*i+"s",animationDuration:xa(this.size,t.minSize,t.maxSize,i,r)+"s"}}},bp='.snowflake{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;will-change:transform}.snowflake_animation{-webkit-animation:snowflake_unknown 10s linear;animation:snowflake_unknown 10s linear}.snowflake_animation-infinity{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.snowflake__inner,.snowflake__inner:before{bottom:0;left:0;position:absolute;right:0;top:0}.snowflake__inner:before{background-size:100% 100%;content:""}.snowflake__inner_wind{-webkit-animation:snowflake_unknown 2s ease-in-out infinite alternate;animation:snowflake_unknown 2s ease-in-out infinite alternate}.snowflake__inner_rotation:before{-webkit-animation:snowflake_rotation 10s linear infinite;animation:snowflake_rotation 10s linear infinite}.snowflake__inner_rotation_reverse:before{-webkit-animation:snowflake_rotation_reverse 10s linear infinite;animation:snowflake_rotation_reverse 10s linear infinite}@-webkit-keyframes snowflake_rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes snowflake_rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes snowflake_rotation_reverse{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}@keyframes snowflake_rotation_reverse{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}.snowflakes{pointer-events:none}.snowflakes_paused .snowflake,.snowflakes_paused .snowflake__inner,.snowflakes_paused .snowflake__inner:before{-webkit-animation-play-state:paused;animation-play-state:paused}.snowflakes_hidden{visibility:hidden}.snowflakes_body{height:1px;left:0;position:fixed;top:0;width:100%}',wp=`.snowflakes_gid_value .snowflake__inner_type_0:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36.283' height='36.283'%3E%3Cpath d='M35.531 17.391h-3.09l.845-1.464a.748.748 0 1 0-1.297-.75l-1.276 2.214H28.61l2.515-4.354a.751.751 0 0 0-.272-1.024.75.75 0 0 0-1.024.274l-2.948 5.104h-2.023a6.751 6.751 0 0 0-2.713-4.684l1.019-1.76 5.896-.002a.75.75 0 0 0 0-1.5l-5.029.002 1.051-1.82 2.557.002a.75.75 0 0 0 0-1.5l-1.689-.002 1.545-2.676a.75.75 0 1 0-1.302-.75l-1.547 2.676-.844-1.463a.749.749 0 1 0-1.297.75l1.278 2.213-1.051 1.818-2.514-4.354a.75.75 0 0 0-1.298.75l2.946 5.104-1.016 1.758a6.692 6.692 0 0 0-2.706-.57 6.74 6.74 0 0 0-2.707.568l-1.013-1.754 2.946-5.105a.75.75 0 0 0-1.298-.75L13.56 8.697l-1.05-1.818 1.278-2.217a.749.749 0 0 0-1.298-.75l-.845 1.465-1.551-2.678a.75.75 0 0 0-1.024-.273.748.748 0 0 0-.274 1.023l1.545 2.678H8.652a.75.75 0 0 0 0 1.5h2.556l1.05 1.818H7.231a.75.75 0 0 0 0 1.5h5.894l1.017 1.762a6.755 6.755 0 0 0-2.712 4.684H9.406l-2.95-5.104a.75.75 0 1 0-1.299.75l2.516 4.354H5.569l-1.277-2.213a.75.75 0 0 0-1.298.75l.845 1.463H.75a.75.75 0 0 0 0 1.5h3.09l-.845 1.465a.747.747 0 0 0 .275 1.022.75.75 0 0 0 .374.103.75.75 0 0 0 .65-.375l1.277-2.215h2.103l-2.516 4.354a.75.75 0 0 0 1.299.75l2.949-5.104h2.024a6.761 6.761 0 0 0 2.712 4.685l-1.017 1.762H7.232a.75.75 0 0 0 0 1.5h5.026l-1.05 1.818H8.651a.75.75 0 0 0 0 1.5h1.69l-1.545 2.676a.75.75 0 0 0 1.299.75l1.546-2.676.846 1.465a.755.755 0 0 0 .65.375.737.737 0 0 0 .375-.103.747.747 0 0 0 .274-1.022l-1.279-2.215 1.05-1.82 2.515 4.354a.75.75 0 0 0 1.299-.75l-2.947-5.104 1.013-1.756a6.72 6.72 0 0 0 5.415 0l1.014 1.756-2.947 5.104a.75.75 0 0 0 1.298.75l2.515-4.354 1.053 1.82-1.277 2.213a.75.75 0 0 0 1.298.75l.844-1.463 1.545 2.678c.141.24.393.375.65.375a.75.75 0 0 0 .649-1.125l-1.548-2.678h1.689a.75.75 0 0 0 0-1.5h-2.557l-1.051-1.82 5.029.002a.75.75 0 0 0 0-1.5l-5.896-.002-1.019-1.76a6.75 6.75 0 0 0 2.711-4.685h2.023l2.947 5.104a.753.753 0 0 0 1.025.273.749.749 0 0 0 .272-1.023l-2.515-4.354h2.104l1.279 2.215a.75.75 0 0 0 .649.375c.127 0 .256-.03.375-.103a.748.748 0 0 0 .273-1.022l-.848-1.465h3.092a.75.75 0 0 0 .003-1.5zm-12.136.75c0 .257-.041.502-.076.75a5.223 5.223 0 0 1-1.943 3.358 5.242 5.242 0 0 1-1.291.766 5.224 5.224 0 0 1-1.949.384 5.157 5.157 0 0 1-3.239-1.15 5.22 5.22 0 0 1-1.943-3.358c-.036-.247-.076-.493-.076-.75s.04-.503.076-.75a5.22 5.22 0 0 1 1.944-3.359c.393-.312.82-.576 1.291-.765a5.219 5.219 0 0 1 1.948-.384c.69 0 1.344.142 1.948.384.471.188.898.454 1.291.765a5.222 5.222 0 0 1 1.943 3.359c.035.247.076.493.076.75z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_1:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32.813' height='32.813'%3E%3Cpath d='M29.106 24.424a.781.781 0 0 1-.781.781h-3.119v3.119a.782.782 0 0 1-1.562 0v-4.682h4.682c.43.001.78.351.78.782zM4.673 9.352h4.682V4.671a.781.781 0 0 0-1.563 0V7.79H4.673a.781.781 0 0 0 0 1.562zM3.708 24.24c0 .431.35.781.781.781H7.61v3.12a.78.78 0 1 0 1.562 0v-4.683H4.489a.782.782 0 0 0-.781.782zM28.923 8.39a.78.78 0 0 0-.781-.781h-3.121V4.488a.781.781 0 0 0-1.562 0v4.684h4.684a.783.783 0 0 0 .78-.782zm3.889 8.017c0 .431-.35.781-.781.781h-3.426l1.876 1.873a.784.784 0 0 1 0 1.107.791.791 0 0 1-.554.228.773.773 0 0 1-.55-.228l-2.979-2.98h-2.995a6.995 6.995 0 0 1-1.728 3.875h5.609a.781.781 0 0 1 0 1.562h-4.666v4.667a.782.782 0 0 1-1.562 0v-5.61a7 7 0 0 1-3.866 1.719v2.995l2.978 2.98c.306.305.306.8 0 1.104a.78.78 0 0 1-1.104 0l-1.874-1.876v3.427a.781.781 0 0 1-1.562 0v-3.427l-1.875 1.876a.78.78 0 1 1-1.105-1.104l2.979-2.98v-2.995a7.016 7.016 0 0 1-3.865-1.717v5.608a.781.781 0 0 1-1.562 0v-4.667H5.535a.781.781 0 0 1 0-1.562h5.607a7.022 7.022 0 0 1-1.728-3.875H6.417l-2.979 2.979a.784.784 0 0 1-1.104 0 .781.781 0 0 1 0-1.106l1.874-1.873H.782a.78.78 0 1 1-.001-1.563h3.426L2.333 13.75a.783.783 0 0 1 1.105-1.106l2.979 2.979h2.995a6.996 6.996 0 0 1 1.72-3.866H5.533a.781.781 0 0 1 0-1.562h4.666V5.528a.781.781 0 0 1 1.562 0v5.599a6.995 6.995 0 0 1 3.865-1.717V6.415l-2.978-2.979a.782.782 0 0 1 1.105-1.105l1.874 1.875V.781a.78.78 0 1 1 1.562 0v3.426l1.875-1.875a.777.777 0 0 1 1.104 0 .78.78 0 0 1 0 1.105l-2.978 2.98v2.996a7.021 7.021 0 0 1 3.866 1.718V5.532a.78.78 0 1 1 1.562 0v4.666h4.666a.78.78 0 1 1 0 1.562h-5.599a7 7 0 0 1 1.718 3.866h2.995l2.979-2.979a.783.783 0 0 1 1.106 1.106l-1.876 1.874h3.427a.777.777 0 0 1 .778.78zm-11.006-.782a5.457 5.457 0 0 0-4.618-4.617c-.257-.037-.514-.079-.781-.079-.268 0-.524.042-.781.079a5.458 5.458 0 0 0-4.618 4.617c-.038.257-.079.514-.079.781s.041.522.079.781a5.455 5.455 0 0 0 4.618 4.616c.257.036.514.079.781.079s.524-.043.781-.079a5.457 5.457 0 0 0 4.618-4.616c.037-.259.079-.515.079-.781s-.043-.524-.079-.781z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_2:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35.79' height='35.79'%3E%3Cpath d='M7.161 22.223l.026-.047.865.5-.026.047a.503.503 0 0 1-.434.25c-.019 0-.034-.013-.053-.016l-.355-.205a.493.493 0 0 1-.023-.529zM9.969 8.988l2.785.001 1.393-2.414a.502.502 0 0 0-.869-.499l-1.103 1.913-2.208-.001a.5.5 0 1 0 .002 1zm15.854 17.813h-2.785l-1.393 2.411a.499.499 0 0 0 .436.75c.172 0 .34-.09.434-.25l1.104-1.911h2.207c.274 0 .5-.224.5-.5a.505.505 0 0 0-.503-.5zM23.038 8.99h2.785a.5.5 0 0 0 0-1h-2.207l-1.105-1.913a.5.5 0 0 0-.868.5l1.395 2.413zM12.754 26.801H9.967a.5.5 0 0 0 0 1h2.209l1.105 1.912a.496.496 0 0 0 .682.184.5.5 0 0 0 .184-.684l-1.393-2.412zm-7.218-6.309a.502.502 0 0 0 .685-.184l1.391-2.413-1.394-2.413a.5.5 0 0 0-.867.5l1.104 1.913-1.104 1.913a.5.5 0 0 0 .185.684zM30.254 15.3a.505.505 0 0 0-.685.183l-1.392 2.412 1.395 2.414a.501.501 0 0 0 .867-.5l-1.104-1.914 1.104-1.912a.5.5 0 0 0-.185-.683zm3.138 11.542a.501.501 0 0 1-.683.184l-.98-.565-2.137 1.231a.516.516 0 0 1-.5 0l-2.385-1.377a.502.502 0 0 1-.25-.433v-.854h-4.441l-2.225 3.852.736.428c.154.088.25.254.25.432l.001 2.755a.5.5 0 0 1-.25.433l-2.133 1.229v1.136c0 .274-.225.5-.5.5s-.5-.226-.5-.5v-1.136l-2.136-1.23a.5.5 0 0 1-.25-.433l.001-2.755c0-.178.096-.344.25-.432l.738-.427-2.224-3.849H9.332l.002.851a.505.505 0 0 1-.25.435l-2.387 1.377a.5.5 0 0 1-.5 0L4.06 26.46l-.982.567a.5.5 0 0 1-.5-.867l.982-.567.001-2.465c0-.179.097-.344.25-.434l2.388-1.377a.497.497 0 0 1 .5 0l.736.426 2.221-3.848-2.222-3.849-.737.426a.51.51 0 0 1-.5 0l-2.386-1.377a.5.5 0 0 1-.25-.434l.002-2.464-.983-.567a.501.501 0 0 1-.184-.683.502.502 0 0 1 .684-.183l.983.568 2.134-1.233a.5.5 0 0 1 .5 0l2.385 1.379c.156.089.25.255.25.433v.85h4.443l2.223-3.846-.74-.427a.501.501 0 0 1-.25-.434l.002-2.755c0-.178.096-.343.25-.433l2.135-1.233V.5a.5.5 0 0 1 1 0v1.135l2.134 1.231c.154.089.25.254.25.434l-.002 2.755a.503.503 0 0 1-.25.433l-.733.425 2.224 3.849h4.44l-.002-.851c0-.179.096-.344.25-.434l2.388-1.378a.502.502 0 0 1 .5 0l2.136 1.233.982-.568a.5.5 0 1 1 .5.866l-.983.568v2.464a.503.503 0 0 1-.25.433l-2.388 1.378a.5.5 0 0 1-.5 0l-.735-.426-2.222 3.849 2.223 3.849.734-.425a.506.506 0 0 1 .5 0l2.389 1.375c.154.09.25.255.25.435l-.002 2.462.982.568c.24.137.321.444.182.682zm-2.165-1.828l.001-1.597-1.888-1.087-.734.424-.348.201-.301.173-.5.289v2.179l1.885 1.088 1.386-.802.498-.286.001-.582zm-3.736-11.467l-.531-.307-2.283 1.318-2.443 3.337 2.442 3.337 2.283 1.316.531-.306-2.514-4.348 2.515-4.347zm-7.712 16.478l-.762-.438-.339-.194-.283-.166-.5-.289-.5.289-.279.162-.349.2-.757.437-.001 2.177 1.386.797.501.289.499-.287 1.386-.798-.002-2.179zM16.008 5.767l.736.425.371.214.279.16.5.288.5-.289.281-.163.367-.212.732-.424.002-2.178-1.381-.797-.502-.289-.498.287-1.385.8-.002 2.178zm6.52 14.227l-1.535-2.099 1.535-2.098.732-1-1.232.134-2.585.281-1.048-2.379-.5-1.133-.5 1.134-1.049 2.379-2.585-.281-1.232-.134.732 1 1.536 2.097-1.536 2.098-.732 1 1.232-.134 2.585-.281 1.049 2.379.5 1.134.5-1.134 1.048-2.379 2.585.281 1.232.134-.732-.999zm8.2-10.084l-1.386-.8-1.887 1.089v1.279l.002.32v.577l.5.289.28.163.367.213.732.424 1.888-1.089v-2.178l-.496-.287zM18.927 7.413l-.532.307v2.637l1.667 3.784 4.111-.447 2.283-1.317-.002-.613h-5.02l-2.507-4.351zm-9.594 4.348v.614l2.283 1.318 4.111.447 1.668-3.785V7.719l-.531-.306-2.509 4.347-5.022.001zm-2.15 1.279l.37-.213.279-.162.5-.289V10.2L6.446 9.11l-1.384.8-.499.289v.578l-.002 1.599 1.885 1.088.737-.424zm1.119 9.205l.53.306 2.281-1.316 2.443-3.339-2.442-3.337-2.281-1.317-.531.307 2.511 4.348-2.511 4.348zm-1.115-.069l-.026.047a.493.493 0 0 0 .023.529l-.734-.424-1.887 1.089-.001 1.599v.578l.5.288 1.386.8 1.887-1.088v-1.278l-.002-.321v-.577l-.5-.289-.293-.169c.02.002.035.017.055.017a.5.5 0 0 0 .433-.25l.026-.047-.867-.504zm9.679 6.202l.529-.306v-2.637l-1.668-3.785-4.111.447-2.283 1.316.002.611 5.021.002 2.51 4.352zm9.591-4.349v-.612L24.174 22.1l-4.111-.447-1.667 3.783v2.639l.531.307 2.512-4.352h5.018v-.001z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_3:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32.815' height='32.815'%3E%3Cpath d='M4.581 23.55h4.681v4.681a.78.78 0 1 1-1.562 0v-3.118H4.581a.781.781 0 0 1 0-1.563zM29.016 8.481a.781.781 0 0 0-.781-.781h-3.119V4.582a.781.781 0 0 0-1.562 0v4.681h4.682c.429 0 .78-.35.78-.782zm-24.252.598l4.683-.001V4.395a.781.781 0 0 0-1.562 0v3.121l-3.121.001a.781.781 0 0 0 0 1.562zm23.655 14.287h-4.685l.002 4.684a.78.78 0 1 0 1.562 0l-.002-3.121h3.122a.781.781 0 0 0 .001-1.563zm4.394-6.96a.78.78 0 0 1-.781.781h-3.426l1.876 1.875a.782.782 0 0 1-1.104 1.105l-2.979-2.979h-1.986L17.19 24.41v1.987l2.977 2.979a.781.781 0 0 1-1.103 1.106l-1.874-1.875v3.426a.78.78 0 1 1-1.562 0v-3.426l-1.875 1.875a.782.782 0 0 1-1.105-1.105l2.978-2.979V24.41l-7.219-7.22H6.418l-2.98 2.98a.777.777 0 0 1-1.103 0 .781.781 0 0 1 0-1.106L4.21 17.19H.783a.78.78 0 1 1 0-1.562h3.426l-1.876-1.875a.782.782 0 1 1 1.106-1.105l2.979 2.979h1.989l7.219-7.218v-1.99L12.648 3.44a.782.782 0 1 1 1.106-1.105l1.874 1.874V.781a.782.782 0 0 1 1.563 0v3.426l1.875-1.875a.783.783 0 0 1 1.106 1.105l-2.979 2.979v1.99l7.216 7.218h1.992l2.979-2.979a.782.782 0 0 1 1.105 1.105l-1.876 1.874h3.427a.781.781 0 0 1 .777.782zm-10.613.782l.778-.78-.781-.782-5.009-5.008-.781-.781-.781.781-5.01 5.008-.781.781.781.781 5.01 5.011.782.781.78-.779 5.012-5.013zm5.863 4.646a.782.782 0 0 0-.781-.781h-6.229v6.228a.78.78 0 1 0 1.562 0v-4.665h4.666a.782.782 0 0 0 .782-.782zm-.001-10.855a.782.782 0 0 0-.781-.781h-4.664V5.532a.782.782 0 0 0-1.562 0v6.228h6.227a.78.78 0 0 0 .78-.781zm-23.318 0c0 .432.35.781.781.781h6.228V5.532a.781.781 0 0 0-1.562 0v4.666H5.525a.781.781 0 0 0-.781.781zm.002 10.855c0 .432.35.781.781.781h4.664v4.665a.78.78 0 1 0 1.562 0v-6.228H5.527a.783.783 0 0 0-.781.782z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_4:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='37.794' height='37.794'%3E%3Cpath d='M30.638 17.313l-.914 1.584.915 1.585a.78.78 0 1 1-1.352.78l-1.366-2.366 1.366-2.365a.782.782 0 0 1 1.067-.286c.372.215.5.692.284 1.068zM11.65 11.08l2.733.002 1.367-2.367a.78.78 0 0 0-1.352-.781l-.915 1.585-1.831-.002h-.001a.78.78 0 0 0-.001 1.563zm14.491 15.633h-2.733l-1.365 2.365a.78.78 0 1 0 1.352.78l.914-1.584h1.831a.781.781 0 0 0 .001-1.561zm-4.1-17.998l1.367 2.367h2.733a.78.78 0 1 0 0-1.562h-1.833l-.915-1.585a.78.78 0 0 0-1.352.78zM15.75 29.08l-1.368-2.366h-2.733a.781.781 0 0 0 0 1.562h1.832l.917 1.585c.146.25.409.391.677.391a.779.779 0 0 0 .675-1.172zm-8.313-7.531a.78.78 0 0 0 1.067-.284L9.87 18.9l-1.367-2.368a.781.781 0 0 0-1.351.781l.916 1.587-.914 1.584a.776.776 0 0 0 .283 1.065zm27.827 6.798a.784.784 0 0 1-1.067.285l-.89-.515-2.096 1.209a.793.793 0 0 1-.391.105.762.762 0 0 1-.391-.105l-2.484-1.435a.78.78 0 0 1-.391-.676l-.002-2.417-2.408-1.392a7.714 7.714 0 0 1-5.467 3.168v2.773l2.093 1.208a.78.78 0 0 1 .391.676l.001 2.868c0 .28-.149.537-.392.676l-2.093 1.205v1.032a.781.781 0 0 1-1.562 0V35.98l-2.095-1.207a.78.78 0 0 1-.391-.676l.001-2.868c0-.28.15-.537.391-.676l2.094-1.206v-2.773a7.718 7.718 0 0 1-5.468-3.168l-2.408 1.392.002 2.415c0 .281-.15.539-.391.676l-2.487 1.437a.785.785 0 0 1-.782 0l-2.095-1.209-.893.518a.782.782 0 0 1-.782-1.354l.893-.517.001-2.414a.78.78 0 0 1 .391-.677l2.487-1.434a.774.774 0 0 1 .781 0l2.093 1.208 2.407-1.39a7.655 7.655 0 0 1 0-6.317l-2.406-1.39-2.096 1.209a.772.772 0 0 1-.782 0l-2.485-1.434a.786.786 0 0 1-.391-.676l.002-2.416-.894-.517a.78.78 0 0 1-.285-1.066.788.788 0 0 1 1.07-.283l.893.514 2.093-1.208a.774.774 0 0 1 .781 0L9.851 9.91c.24.14.391.398.391.675L10.24 13l2.408 1.392a7.712 7.712 0 0 1 5.468-3.167V8.45L16.02 7.242a.78.78 0 0 1-.391-.676l.002-2.87c0-.279.15-.538.391-.675l2.094-1.208V.781a.781.781 0 0 1 1.562 0v1.032l2.093 1.206a.785.785 0 0 1 .391.677l-.002 2.87c0 .28-.149.536-.391.674l-2.091 1.208v2.772a7.708 7.708 0 0 1 5.467 3.167l2.409-1.392-.002-2.416c0-.28.149-.539.391-.676l2.487-1.436c.24-.14.539-.14.781 0l2.095 1.208.894-.514a.78.78 0 1 1 .781 1.352l-.894.516v2.417c0 .279-.15.538-.391.675l-2.487 1.436a.785.785 0 0 1-.782 0l-2.092-1.209-2.408 1.39c.436.967.684 2.032.684 3.158a7.65 7.65 0 0 1-.684 3.158l2.408 1.391 2.091-1.206a.782.782 0 0 1 .78 0l2.488 1.432c.24.141.392.398.392.677l-.002 2.414.893.517a.783.783 0 0 1 .287 1.068zm-6.147-16.251l.001.9.78.453.921.531 1.706-.982v-1.965l-.78-.451-.923-.533-1.707.983.002 1.064zm-20.443-.002l.002-1.063-1.706-.985-.922.535-.778.451-.001.902-.001 1.063 1.703.982.924-.533.779-.451v-.901zm0 13.604l-.001-.899-.781-.451-.919-.533-1.706.982-.001 1.064v.901l.781.451.923.533 1.707-.982-.003-1.066zm15.109-3.076c.315-.413.586-.864.789-1.351a6.121 6.121 0 0 0 0-4.748 6.175 6.175 0 0 0-.789-1.35 6.158 6.158 0 0 0-4.106-2.375 6.48 6.48 0 0 0-.781-.056c-.266 0-.525.022-.781.056a6.149 6.149 0 0 0-4.106 2.375 6.128 6.128 0 0 0-.789 1.35 6.104 6.104 0 0 0-.479 2.374 6.1 6.1 0 0 0 1.268 3.725 6.15 6.15 0 0 0 4.106 2.374c.256.031.516.056.781.056s.525-.022.781-.056a6.142 6.142 0 0 0 4.106-2.374zM17.19 6.113l.924.531.781.452.781-.452.919-.531.002-1.968-.921-.531-.784-.452-.779.451-.922.532-.001 1.968zm3.408 25.57l-.921-.532-.781-.452-.781.452-.922.532-.001 1.966.923.531.782.451.78-.449.922-.533-.001-1.966zm11.925-5.819l.001-1.063-1.707-.981-.919.529-.782.451v.901l.001 1.065 1.702.981.924-.533.778-.449.002-.901z' fill=':color:'/%3E%3C/svg%3E")}.snowflakes_gid_value .snowflake__inner_type_5:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31.25' height='31.25'%3E%3Cpath d='M20.581 1.176l-3.914 3.915V0h1.041v2.576L19.845.439l.736.737zm-1.615 9.069l.351.217 6.623-6.625-.736-.737-6.048 6.051a7.141 7.141 0 0 0-1.449-.6v-.082l5.082-5.082-.737-.737-5.387 5.388v1.33l.402.093a6.213 6.213 0 0 1 1.899.784zm2.041 2.043c.368.585.63 1.224.786 1.893l.094.403h1.028l5.171-5.173-.736-.737-4.699 4.701a7.523 7.523 0 0 0-.549-1.28l6.048-6.05-.737-.735-6.622 6.625.216.353zm7.368 1.254l1.921-1.923-.736-.735-3.699 3.7h5.39v-1.042h-2.876zm1.185 6.826l.736-.736-1.923-1.923h2.877v-1.042h-5.389l3.699 3.701zm-6.915-2.498l4.705 4.707.736-.736-5.171-5.174h-1.03l-.096.4a6.24 6.24 0 0 1-.795 1.883l-.22.353 6.639 6.641.736-.736-6.061-6.062c.227-.414.414-.84.557-1.276zm-3.7 3.125a6.241 6.241 0 0 1-1.88.794l-.399.096v1.33l5.387 5.387.736-.736-5.082-5.082v-.089a7.322 7.322 0 0 0 1.434-.605l6.061 6.062.736-.736-6.641-6.641-.352.22zM16.667 31.25h1.041v-2.576l2.137 2.137.736-.737-3.914-3.914v5.09zm-5.26-.439l2.134-2.137v2.576h1.042v-5.093l-3.913 3.916.737.738zm.897-9.816l-.352-.222-6.642 6.641.736.736 6.062-6.062c.456.254.937.456 1.433.605v.089l-5.08 5.082.736.736 5.387-5.387v-1.33l-.4-.096a6.175 6.175 0 0 1-1.88-.792zm-2.046-2.047a6.315 6.315 0 0 1-.798-1.883l-.096-.4H8.335l-5.172 5.174.737.736 4.706-4.71c.145.441.329.865.556 1.276L3.1 25.202l.736.736 6.643-6.643-.221-.347zM0 16.667v1.042h2.876L.954 19.632l.736.736 3.698-3.701H0zm1.69-5.783l-.736.735 1.921 1.923H0v1.042h5.39l-3.7-3.7zm6.916 2.498L3.9 8.674l-.736.737 5.172 5.173h1.029l.096-.4a6.15 6.15 0 0 1 .798-1.881l.222-.352L3.837 5.31l-.736.736 6.062 6.06a7.268 7.268 0 0 0-.557 1.276zm-.145-9.996l5.08 5.082v.088c-.497.15-.977.352-1.433.606L6.047 3.101l-.736.737 6.643 6.643.352-.222a6.223 6.223 0 0 1 1.88-.797l.4-.095v-1.33L9.2 2.649l-.739.737zm5.081-.81L11.408.439l-.736.737 3.913 3.917V0h-1.042v2.576zm-1.757 14.831a4.2 4.2 0 0 0 2.06 2.058l.739.338v-3.136h-3.138l.339.74zm0-3.562l-.337.738h3.135v-3.136l-.739.338a4.223 4.223 0 0 0-2.059 2.06zm7.679 3.561l.338-.739h-3.135v3.136l.738-.338a4.204 4.204 0 0 0 2.059-2.059zm0-3.561a4.198 4.198 0 0 0-2.059-2.06l-.738-.34v3.138h3.135l-.338-.738z' fill=':color:'/%3E%3C/svg%3E")}`,Do=class gn{constructor(i){this.destroyed=!1,this.flakes=[],this.isBody=!1,this.handleResize=()=>{this.params.autoResize&&this.resize()},this.handleOrientationChange=()=>{this.resize()},this.params=this.setParams(i),this.isBody=gp(this.params.container),gn.gid++,this.gid=gn.gid,this.container=this.appendContainer(),this.params.stop&&this.stop(),this.appendStyles(),this.appendFlakes(),this.containerSize={width:this.width(),height:this.height()},window.addEventListener("resize",this.handleResize,!1),screen.orientation&&screen.orientation.addEventListener&&screen.orientation.addEventListener("change",this.handleOrientationChange)}start(){Gl(this.container,"snowflakes_paused")}stop(){$i(this.container,"snowflakes_paused")}show(){Gl(this.container,"snowflakes_hidden")}hide(){$i(this.container,"snowflakes_hidden")}resize(){let i=this.width(),r=this.height();if(r===this.containerSize.height)return;this.containerSize.width=i,this.containerSize.height=r;let l=this.getFlakeParams();this.flakes.forEach(c=>c.resize(l)),!this.isBody&&(Jl(this.container),this.updateAnimationStyle(),Xl(this.container))}destroy(){this.destroyed||(this.destroyed=!0,gn.instanceCounter&&gn.instanceCounter--,this.removeStyles(),mr(this.container),this.flakes.forEach(i=>i.destroy()),this.flakes=[],window.removeEventListener("resize",this.handleResize,!1),screen.orientation&&screen.orientation.removeEventListener&&screen.orientation.removeEventListener("change",this.handleOrientationChange,!1))}appendContainer(){let i=document.createElement("div");return $i(i,"snowflakes"),$i(i,`snowflakes_gid_${this.gid}`),this.isBody&&$i(i,"snowflakes_body"),In(i,{zIndex:String(this.params.zIndex)}),this.params.container.appendChild(i),i}appendStyles(){gn.instanceCounter||(this.mainStyleNode=this.injectStyle(bp)),gn.instanceCounter++,this.imagesStyleNode=this.injectStyle(wp.replace(/:color:/g,encodeURIComponent(this.params.color))),this.animationStyleNode=this.injectStyle(this.getAnimationStyle())}injectStyle(i,r){return mp(i.replace(/_gid_value/g,`_gid_${this.gid}`),r)}getFlakeParams(){let i=this.height(),r=this.params;return{containerHeight:i,gid:this.gid,count:r.count,speed:r.speed,rotation:r.rotation,minOpacity:r.minOpacity,maxOpacity:r.maxOpacity,minSize:r.minSize,maxSize:r.maxSize,types:r.types,wind:r.wind}}appendFlakes(){let i=this.getFlakeParams();this.flakes=[];for(let r=0;r<this.params.count;r++)this.flakes.push(new yp(i));this.flakes.sort((r,l)=>r.size-l.size).forEach(r=>{r.appendTo(this.container)})}setParams(i){let r=i||{},l={},c={color:"#5ECDEF",container:document.body,count:50,speed:1,stop:!1,rotation:!0,minOpacity:.6,maxOpacity:1,minSize:10,maxSize:25,types:6,width:void 0,height:void 0,wind:!0,zIndex:9999,autoResize:!0};return Object.keys(c).forEach(d=>{l[d]=typeof r[d]>"u"?c[d]:r[d]}),l}getAnimationStyle(){let i="0px",r=this.params.maxSize*Math.sqrt(2),l=this.isBody?`calc(100vh + ${r}px)`:`${this.height()+r}px`,c=this.gid,d=`@-webkit-keyframes snowflake_gid_${c}_y{from{-webkit-transform:translateY(${i})}to{-webkit-transform:translateY(${l});}}
@keyframes snowflake_gid_${c}_y{from{transform:translateY(${i})}to{transform:translateY(${l});}}`;for(let f=0;f<=ka;f++){let g=Ql(f,this.params.minSize,this.params.maxSize)+"px";d+=`@-webkit-keyframes snowflake_gid_${c}_x_${f}{from{-webkit-transform:translateX(0px)}to{-webkit-transform:translateX(${g});}}
@keyframes snowflake_gid_${c}_x_${f}{from{transform:translateX(0px)}to{transform:translateX(${g})}}`}return d}updateAnimationStyle(){this.injectStyle(this.getAnimationStyle(),this.animationStyleNode)}removeStyles(){gn.instanceCounter||(mr(this.mainStyleNode),delete this.mainStyleNode),mr(this.imagesStyleNode),delete this.imagesStyleNode,mr(this.animationStyleNode),delete this.animationStyleNode}width(){return this.params.width||(this.isBody?fp():this.params.container.offsetWidth)}height(){return this.params.height||(this.isBody?pp():this.params.container.offsetHeight+this.params.maxSize)}};Do.instanceCounter=0;Do.gid=0;function F(t,i,r,l){var c=arguments.length,d=c<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,r):l,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(t,i,r,l);else for(var g=t.length-1;g>=0;g--)(f=t[g])&&(d=(c<3?f(d):c>3?f(i,r,d):f(i,r))||d);return c>3&&d&&Object.defineProperty(i,r,d),d}function Mo(t,i,r,l){function c(d){return d instanceof r?d:new r(function(f){f(d)})}return new(r||(r=Promise))(function(d,f){function g(w){try{x(l.next(w))}catch(A){f(A)}}function b(w){try{x(l.throw(w))}catch(A){f(A)}}function x(w){w.done?d(w.value):c(w.value).then(g,b)}x((l=l.apply(t,i||[])).next())})}var gr=window,vr=gr.ShadowRoot&&(gr.ShadyCSS===void 0||gr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ca=Symbol(),Zl=new WeakMap,Sa=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==Ca)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(vr&&t===void 0){let r=i!==void 0&&i.length===1;r&&(t=Zl.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Zl.set(i,t))}return t}toString(){return this.cssText}},tc=t=>new Sa(typeof t=="string"?t:t+"",void 0,Ca),It=(t,...i)=>{let r=t.length===1?t[0]:i.reduce((l,c,d)=>l+(f=>{if(f._$cssResult$===!0)return f.cssText;if(typeof f=="number")return f;throw Error("Value passed to 'css' function must be a 'css' function result: "+f+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(c)+t[d+1],t[0]);return new Sa(r,t,Ca)},Ta=(t,i)=>{vr?t.adoptedStyleSheets=i.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):i.forEach(r=>{let l=document.createElement("style"),c=gr.litNonce;c!==void 0&&l.setAttribute("nonce",c),l.textContent=r.cssText,t.appendChild(l)})},yr=vr?t=>t:t=>t instanceof CSSStyleSheet?(i=>{let r="";for(let l of i.cssRules)r+=l.cssText;return tc(r)})(t):t;var Ea,br=window,ec=br.trustedTypes,_p=ec?ec.emptyScript:"",Aa=br.reactiveElementPolyfillSupport,Da={toAttribute(t,i){switch(i){case Boolean:t=t?_p:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let r=t;switch(i){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(l){r=null}}return r}},ic=(t,i)=>i!==t&&(i==i||t==t),$a={attribute:!0,type:String,converter:Da,reflect:!1,hasChanged:ic},Ma="finalized",Pn=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,r)=>{let l=this._$Ep(r,i);l!==void 0&&(this._$Ev.set(l,r),t.push(l))}),t}static createProperty(t,i=$a){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let r=typeof t=="symbol"?Symbol():"__"+t,l=this.getPropertyDescriptor(t,r,i);l!==void 0&&Object.defineProperty(this.prototype,t,l)}}static getPropertyDescriptor(t,i,r){return{get(){return this[i]},set(l){let c=this[t];this[i]=l,this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$a}static finalize(){if(this.hasOwnProperty(Ma))return!1;this[Ma]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,r=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let l of r)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let l of r)i.unshift(yr(l))}else t!==void 0&&i.push(yr(t));return i}static _$Ep(t,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,r;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)===null||r===void 0||r.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ta(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostConnected)===null||r===void 0?void 0:r.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostDisconnected)===null||r===void 0?void 0:r.call(i)})}attributeChangedCallback(t,i,r){this._$AK(t,r)}_$EO(t,i,r=$a){var l;let c=this.constructor._$Ep(t,r);if(c!==void 0&&r.reflect===!0){let d=(((l=r.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?r.converter:Da).toAttribute(i,r.type);this._$El=t,d==null?this.removeAttribute(c):this.setAttribute(c,d),this._$El=null}}_$AK(t,i){var r;let l=this.constructor,c=l._$Ev.get(t);if(c!==void 0&&this._$El!==c){let d=l.getPropertyOptions(c),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((r=d.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?d.converter:Da;this._$El=c,this[c]=f.fromAttribute(i,d.type),this._$El=null}}requestUpdate(t,i,r){let l=!0;t!==void 0&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||ic)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),r.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,r))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}_$Ej(){return ye(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,c)=>this[c]=l),this._$Ei=void 0);let i=!1,r=this._$AL;try{i=this.shouldUpdate(r),i?(this.willUpdate(r),(t=this._$ES)===null||t===void 0||t.forEach(l=>{var c;return(c=l.hostUpdate)===null||c===void 0?void 0:c.call(l)}),this.update(r)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(r)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(r=>{var l;return(l=r.hostUpdated)===null||l===void 0?void 0:l.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((i,r)=>this._$EO(r,this[r],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Pn[Ma]=!0,Pn.elementProperties=new Map,Pn.elementStyles=[],Pn.shadowRootOptions={mode:"open"},Aa==null||Aa({ReactiveElement:Pn}),((Ea=br.reactiveElementVersions)!==null&&Ea!==void 0?Ea:br.reactiveElementVersions=[]).push("1.6.3");var Ia,wr=window,ro=wr.trustedTypes,nc=ro?ro.createPolicy("lit-html",{createHTML:t=>t}):void 0,Na="$lit$",vn=`lit$${(Math.random()+"").slice(9)}$`,cc="?"+vn,xp=`<${cc}>`,Rn=document,Po=()=>Rn.createComment(""),Oo=t=>t===null||typeof t!="object"&&typeof t!="function",hc=Array.isArray,kp=t=>hc(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Pa=`[
\f\r]`,Io=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oc=/-->/g,rc=/>/g,On=RegExp(`>|${Pa}(?:([^\\s"'>=/]+)(${Pa}*=${Pa}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),ac=/'/g,sc=/"/g,uc=/^(?:script|style|textarea|title)$/i,dc=t=>(i,...r)=>({_$litType$:t,strings:i,values:r}),Ot=dc(1),Li=dc(2),zn=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),lc=new WeakMap,Nn=Rn.createTreeWalker(Rn,129,null,!1);function pc(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return nc!==void 0?nc.createHTML(i):i}var Cp=(t,i)=>{let r=t.length-1,l=[],c,d=i===2?"<svg>":"",f=Io;for(let g=0;g<r;g++){let b=t[g],x,w,A=-1,M=0;for(;M<b.length&&(f.lastIndex=M,w=f.exec(b),w!==null);)M=f.lastIndex,f===Io?w[1]==="!--"?f=oc:w[1]!==void 0?f=rc:w[2]!==void 0?(uc.test(w[2])&&(c=RegExp("</"+w[2],"g")),f=On):w[3]!==void 0&&(f=On):f===On?w[0]===">"?(f=c!=null?c:Io,A=-1):w[1]===void 0?A=-2:(A=f.lastIndex-w[2].length,x=w[1],f=w[3]===void 0?On:w[3]==='"'?sc:ac):f===sc||f===ac?f=On:f===oc||f===rc?f=Io:(f=On,c=void 0);let O=f===On&&t[g+1].startsWith("/>")?" ":"";d+=f===Io?b+xp:A>=0?(l.push(x),b.slice(0,A)+Na+b.slice(A)+vn+O):b+vn+(A===-2?(l.push(void 0),g):O)}return[pc(t,d+(t[r]||"<?>")+(i===2?"</svg>":"")),l]},Ra=class fc{constructor({strings:i,_$litType$:r},l){let c;this.parts=[];let d=0,f=0,g=i.length-1,b=this.parts,[x,w]=Cp(i,r);if(this.el=fc.createElement(x,l),Nn.currentNode=this.el.content,r===2){let A=this.el.content,M=A.firstChild;M.remove(),A.append(...M.childNodes)}for(;(c=Nn.nextNode())!==null&&b.length<g;){if(c.nodeType===1){if(c.hasAttributes()){let A=[];for(let M of c.getAttributeNames())if(M.endsWith(Na)||M.startsWith(vn)){let O=w[f++];if(A.push(M),O!==void 0){let E=c.getAttribute(O.toLowerCase()+Na).split(vn),U=/([.?@])?(.*)/.exec(O);b.push({type:1,index:d,name:U[2],strings:E,ctor:U[1]==="."?Tp:U[1]==="?"?Ap:U[1]==="@"?$p:_r})}else b.push({type:6,index:d})}for(let M of A)c.removeAttribute(M)}if(uc.test(c.tagName)){let A=c.textContent.split(vn),M=A.length-1;if(M>0){c.textContent=ro?ro.emptyScript:"";for(let O=0;O<M;O++)c.append(A[O],Po()),Nn.nextNode(),b.push({type:2,index:++d});c.append(A[M],Po())}}}else if(c.nodeType===8)if(c.data===cc)b.push({type:2,index:d});else{let A=-1;for(;(A=c.data.indexOf(vn,A+1))!==-1;)b.push({type:7,index:d}),A+=vn.length-1}d++}}static createElement(i,r){let l=Rn.createElement("template");return l.innerHTML=i,l}};function ao(t,i,r=t,l){var c,d,f,g;if(i===zn)return i;let b=l!==void 0?(c=r._$Co)===null||c===void 0?void 0:c[l]:r._$Cl,x=Oo(i)?void 0:i._$litDirective$;return(b==null?void 0:b.constructor)!==x&&((d=b==null?void 0:b._$AO)===null||d===void 0||d.call(b,!1),x===void 0?b=void 0:(b=new x(t),b._$AT(t,r,l)),l!==void 0?((f=(g=r)._$Co)!==null&&f!==void 0?f:g._$Co=[])[l]=b:r._$Cl=b),b!==void 0&&(i=ao(t,b._$AS(t,i.values),b,l)),i}var Sp=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:r},parts:l}=this._$AD,c=((i=t==null?void 0:t.creationScope)!==null&&i!==void 0?i:Rn).importNode(r,!0);Nn.currentNode=c;let d=Nn.nextNode(),f=0,g=0,b=l[0];for(;b!==void 0;){if(f===b.index){let x;b.type===2?x=new za(d,d.nextSibling,this,t):b.type===1?x=new b.ctor(d,b.name,b.strings,this,t):b.type===6&&(x=new Dp(d,this,t)),this._$AV.push(x),b=l[++g]}f!==(b==null?void 0:b.index)&&(d=Nn.nextNode(),f++)}return Nn.currentNode=Rn,c}v(t){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,i),i+=r.strings.length-2):r._$AI(t[i])),i++}},za=class mc{constructor(i,r,l,c){var d;this.type=2,this._$AH=Qt,this._$AN=void 0,this._$AA=i,this._$AB=r,this._$AM=l,this.options=c,this._$Cp=(d=c==null?void 0:c.isConnected)===null||d===void 0||d}get _$AU(){var i,r;return(r=(i=this._$AM)===null||i===void 0?void 0:i._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let i=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=r.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,r=this){i=ao(this,i,r),Oo(i)?i===Qt||i==null||i===""?(this._$AH!==Qt&&this._$AR(),this._$AH=Qt):i!==this._$AH&&i!==zn&&this._(i):i._$litType$!==void 0?this.g(i):i.nodeType!==void 0?this.$(i):kp(i)?this.T(i):this._(i)}k(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}$(i){this._$AH!==i&&(this._$AR(),this._$AH=this.k(i))}_(i){this._$AH!==Qt&&Oo(this._$AH)?this._$AA.nextSibling.data=i:this.$(Rn.createTextNode(i)),this._$AH=i}g(i){var r;let{values:l,_$litType$:c}=i,d=typeof c=="number"?this._$AC(i):(c.el===void 0&&(c.el=Ra.createElement(pc(c.h,c.h[0]),this.options)),c);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===d)this._$AH.v(l);else{let f=new Sp(d,this),g=f.u(this.options);f.v(l),this.$(g),this._$AH=f}}_$AC(i){let r=lc.get(i.strings);return r===void 0&&lc.set(i.strings,r=new Ra(i)),r}T(i){hc(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,l,c=0;for(let d of i)c===r.length?r.push(l=new mc(this.k(Po()),this.k(Po()),this,this.options)):l=r[c],l._$AI(d),c++;c<r.length&&(this._$AR(l&&l._$AB.nextSibling,c),r.length=c)}_$AR(i=this._$AA.nextSibling,r){var l;for((l=this._$AP)===null||l===void 0||l.call(this,!1,!0,r);i&&i!==this._$AB;){let c=i.nextSibling;i.remove(),i=c}}setConnected(i){var r;this._$AM===void 0&&(this._$Cp=i,(r=this._$AP)===null||r===void 0||r.call(this,i))}},_r=class{constructor(t,i,r,l,c){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=i,this._$AM=l,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Qt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,r,l){let c=this.strings,d=!1;if(c===void 0)t=ao(this,t,i,0),d=!Oo(t)||t!==this._$AH&&t!==zn,d&&(this._$AH=t);else{let f=t,g,b;for(t=c[0],g=0;g<c.length-1;g++)b=ao(this,f[r+g],i,g),b===zn&&(b=this._$AH[g]),d||(d=!Oo(b)||b!==this._$AH[g]),b===Qt?t=Qt:t!==Qt&&(t+=(b!=null?b:"")+c[g+1]),this._$AH[g]=b}d&&!l&&this.j(t)}j(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Tp=class extends _r{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Qt?void 0:t}},Ep=ro?ro.emptyScript:"",Ap=class extends _r{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Qt?this.element.setAttribute(this.name,Ep):this.element.removeAttribute(this.name)}},$p=class extends _r{constructor(t,i,r,l,c){super(t,i,r,l,c),this.type=5}_$AI(t,i=this){var r;if((t=(r=ao(this,t,i,0))!==null&&r!==void 0?r:Qt)===zn)return;let l=this._$AH,c=t===Qt&&l!==Qt||t.capture!==l.capture||t.once!==l.once||t.passive!==l.passive,d=t!==Qt&&(l===Qt||c);c&&this.element.removeEventListener(this.name,this,l),d&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,r;typeof this._$AH=="function"?this._$AH.call((r=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&r!==void 0?r:this.element,t):this._$AH.handleEvent(t)}},Dp=class{constructor(t,i,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){ao(this,t)}};var Oa=wr.litHtmlPolyfillSupport;Oa==null||Oa(Ra,za),((Ia=wr.litHtmlVersions)!==null&&Ia!==void 0?Ia:wr.litHtmlVersions=[]).push("2.8.0");var gc=(t,i,r)=>{var l,c;let d=(l=r==null?void 0:r.renderBefore)!==null&&l!==void 0?l:i,f=d._$litPart$;if(f===void 0){let g=(c=r==null?void 0:r.renderBefore)!==null&&c!==void 0?c:null;d._$litPart$=f=new za(i.insertBefore(Po(),g),g,void 0,r!=null?r:{})}return f._$AI(t),f};var La,Ha;var Ie=class extends Pn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let r=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=r.firstChild),r}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=gc(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return zn}};Ie.finalized=!0,Ie._$litElement$=!0,(La=globalThis.litElementHydrateSupport)===null||La===void 0||La.call(globalThis,{LitElement:Ie});var Ba=globalThis.litElementPolyfillSupport;Ba==null||Ba({LitElement:Ie});((Ha=globalThis.litElementVersions)!==null&&Ha!==void 0?Ha:globalThis.litElementVersions=[]).push("3.3.3");var Ge=t=>i=>typeof i=="function"?((r,l)=>(customElements.define(r,l),l))(t,i):((r,l)=>{let{kind:c,elements:d}=l;return{kind:c,elements:d,finisher(f){customElements.define(r,f)}}})(t,i);var Mp=(t,i)=>i.kind==="method"&&i.descriptor&&!("value"in i.descriptor)?Ni(si({},i),{finisher(r){r.createProperty(i.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){typeof i.initializer=="function"&&(this[i.key]=i.initializer.call(this))},finisher(r){r.createProperty(i.key,t)}},Ip=(t,i,r)=>{i.constructor.createProperty(r,t)};function Pt(t){return(i,r)=>r!==void 0?Ip(t,i,r):Mp(t,i)}function ze(t){return Pt(Ni(si({},t),{state:!0}))}var yn=({finisher:t,descriptor:i})=>(r,l)=>{var c;if(l===void 0){let d=(c=r.originalKey)!==null&&c!==void 0?c:r.key,f=i!=null?{kind:"method",placement:"prototype",key:d,descriptor:i(r.key)}:Ni(si({},r),{key:d});return t!=null&&(f.finisher=function(g){t(g,d)}),f}{let d=r.constructor;i!==void 0&&Object.defineProperty(r,l,i(l)),t==null||t(d,l)}};function _i(t,i){return yn({descriptor:r=>{let l={get(){var c,d;return(d=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(t))!==null&&d!==void 0?d:null},enumerable:!0,configurable:!0};if(i){let c=typeof r=="symbol"?Symbol():"__"+r;l.get=function(){var d,f;return this[c]===void 0&&(this[c]=(f=(d=this.renderRoot)===null||d===void 0?void 0:d.querySelector(t))!==null&&f!==void 0?f:null),this[c]}}return l}})}var ja,Pp=((ja=window.HTMLSlotElement)===null||ja===void 0?void 0:ja.prototype.assignedElements)!=null?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Fa(t){let{slot:i,selector:r}=t!=null?t:{};return yn({descriptor:l=>({get(){var c;let d="slot"+(i?`[name=${i}]`:":not([name])"),f=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(d),g=f!=null?Pp(f,t):[];return r?g.filter(b=>b.matches(r)):g},enumerable:!0,configurable:!0})})}var Op={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:Lp,fromCents:!1},vc=function(t){return Math.round(t)},Wa=function(t){return Math.pow(10,t)},Np=function(t,i){return vc(t/i)*i},Rp=/(\d)(?=(\d{3})+\b)/g,zp=/(\d)(?=(\d\d)+\d\b)/g;function Zi(t,i){var r=this;if(!(r instanceof Zi))return new Zi(t,i);var l=Object.assign({},Op,i),c=Wa(l.precision),d=xr(t,l);r.intValue=d,r.value=d/c,l.increment=l.increment||1/c,l.useVedic?l.groups=zp:l.groups=Rp,this.s=l,this.p=c}function xr(t,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=0,c=i.decimal,d=i.errorOnInvalid,f=i.precision,g=i.fromCents,b=Wa(f),x=typeof t=="number",w=t instanceof Zi;if(w&&g)return t.intValue;if(x||w)l=w?t.value:t;else if(typeof t=="string"){var A=new RegExp("[^-\\d"+c+"]","g"),M=new RegExp("\\"+c,"g");l=t.replace(/\((.*)\)/,"-$1").replace(A,"").replace(M,"."),l=l||0}else{if(d)throw Error("Invalid Input");l=0}return g||(l*=b,l=l.toFixed(4)),r?vc(l):l}function Lp(t,i){var r=i.pattern,l=i.negativePattern,c=i.symbol,d=i.separator,f=i.decimal,g=i.groups,b=(""+t).replace(/^-/,"").split("."),x=b[0],w=b[1];return(t.value>=0?r:l).replace("!",c).replace("#",x.replace(g,"$1"+d)+(w?f+w:""))}Zi.prototype={add:function(t){var i=this.intValue,r=this.s,l=this.p;return Zi((i+=xr(t,r))/(r.fromCents?1:l),r)},subtract:function(t){var i=this.intValue,r=this.s,l=this.p;return Zi((i-=xr(t,r))/(r.fromCents?1:l),r)},multiply:function(t){var i=this.intValue,r=this.s;return Zi((i*=t)/(r.fromCents?1:Wa(r.precision)),r)},divide:function(t){var i=this.intValue,r=this.s;return Zi(i/=xr(t,r,!1),r)},distribute:function(t){for(var i=this.intValue,r=this.p,l=this.s,c=[],d=Math[i>=0?"floor":"ceil"](i/t),f=Math.abs(i-d*t),g=l.fromCents?1:r;t!==0;t--){var b=Zi(d/g,l);f-- >0&&(b=b[i>=0?"add":"subtract"](1/g)),c.push(b)}return c},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,i=this.p;return~~(t%i)},format:function(t){var i=this.s;return typeof t=="function"?t(this,i):i.format(this,Object.assign({},i,t))},toString:function(){var t=this.intValue,i=this.p,r=this.s;return Np(t/i,r.increment).toFixed(r.precision)},toJSON:function(){return this.value}};var kr=Zi;var yc;(function(t){t.CreditCard="Credit Card",t.PayPal="PayPal",t.GooglePay="Google Pay",t.Venmo="Venmo",t.ApplePay="Apple Pay"})(yc||(yc={}));var so=class Ua{get feeAmountCovered(){return this.coverFees?this.fee:0}get fee(){return Ua.calculateFeeAmount(this.amount)}get total(){return Ua.calculateTotal(this.amount,this.coverFees)}static calculateTotal(i,r){let l=r?this.calculateFeeAmount(i):0,c=i+l;return isNaN(c)?0:this.roundAmount(c)}static calculateFeeAmount(i){let r=i*.0219+.29;return isNaN(r)?0:this.roundAmount(r)}static roundAmount(i){return Math.round(i*100)/100}constructor(i){this.donationType=i.donationType,this.amount=i.amount,this.coverFees=i.coverFees}},Vi;(function(t){t.OneTime="one-time",t.Monthly="monthly",t.Upsell="up_sell"})(Vi||(Vi={}));var bc=[5,10,25,50,100,500,1e3],wc=new so({donationType:Vi.OneTime,amount:10,coverFees:!1});var _c=class{keydown(t){var i,r;let l=t.key;if(t.metaKey)return;switch(l){case"Tab":case"Delete":case"Backspace":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":return}let c=t.target,d=c.value,f=d.slice(0,(i=c.selectionStart)!==null&&i!==void 0?i:0),g=d.slice((r=c.selectionEnd)!==null&&r!==void 0?r:0),b=`${f}${l}${g}`,x=/^[0-9]+(\.[0-9]{0,2})?$/g;b.match(x)||t.preventDefault()}};var lo;(function(t){t.HideBadge="hidebadge",t.ShowBadge="showbadge",t.HideBadgeLeaveSpacing="hidebadgeleavespacing"})(lo||(lo={}));var No=class extends Ie{constructor(){super(...arguments),this.sectionBadge="0",this.badgeMode=lo.ShowBadge}render(){return Ot`
<div class="container ${this.badgeMode}">
<div class="badge-container">
<div class="badge">${this.sectionBadge}</div>
</div>
<div class="content-container">
${this.headline?Ot` <div class="title">${this.headline}</div> `:""}
<div class="content">
<slot></slot>
</div>
</div>
</div>
`}static get styles(){let t=It`var(--formSectionBadgeTransition, 0.25s ease-out)`,i=It`var(--formSectionBadgeMargin, 1rem)`,r=It`var(--formSectionBadgeBackgroundColor, #333)`,l=It`var(--formSectionBadgeRadius, 1.2rem)`,c=It`calc(${l} * 2)`,d=It`var(--formSectionBadgeFontSize, 1.8rem)`,f=It`var(--formSectionBadgeFontWeight, bold)`,g=It`var(--formSectionBadgeFontColor, #fff)`,b=It`var(--formSectionTitleFontSize, 1.8rem)`,x=It`var(--formSectionTitleFontWeight, bold)`,w=It`var(--formSectionContentBackgroundColor, transparent)`,A=It`var(--formSectionTextColor, #333)`,M=It`calc(${l} * 2)`;return It`
:host {
display: block;
background-color: ${w};
color: ${A};
}
.container {
position: relative;
padding: 0.5rem;
}
.content-container {
position: relative;
left: calc(${c} + ${i});
width: calc(100% - (${c} + ${i}));
transition: ${t};
z-index: 1;
}
.hidebadge .content-container {
left: 0;
width: 100%;
}
.hidebadge .badge-container {
display: none;
}
.hidebadgeleavespacing .badge {
display: none;
}
.badge-container {
position: absolute;
width: ${c};
}
.badge {
background-color: ${r};
color: ${g};
width: ${c};
height: ${c};
border-radius: ${l};
display: flex;
justify-content: center;
align-items: center;
font-weight: ${f};
font-size: ${d};
}
.title {
line-height: ${M};
margin-bottom: 0.5rem;
font-size: ${b};
font-weight: ${x};
}
`}};F([Pt({type:String})],No.prototype,"sectionBadge",void 0);F([Pt({type:String})],No.prototype,"headline",void 0);F([Pt({type:String})],No.prototype,"badgeMode",void 0);No=F([Ge("donation-form-section")],No);var Ro;(function(t){t.HideNumbers="hidenumbers",t.ShowNumbers="shownumbers"})(Ro||(Ro={}));var tn;(function(t){t.DonationType="donationType",t.Amount="amount"})(tn||(tn={}));var Hi;(function(t){t.ValidDonationAmount="valid_donation_amount",t.InvalidDonationAmount="invalid_donation_amount",t.DonationTooHigh="donation_too_high",t.DonationTooLow="donation_too_low"})(Hi||(Hi={}));var Ln;(function(t){t.Button="button",t.Checkbox="checkbox",t.Hide="hide"})(Ln||(Ln={}));var Cr;(function(t){t.SingleLine="single-line",t.MultiLine="multi-line"})(Cr||(Cr={}));var hi=class extends Ie{constructor(){super(...arguments),this.donationInfo=wc,this.stepNumberMode=Ro.ShowNumbers,this.amountOptions=bc,this.amountSelectionLayout=Cr.MultiLine,this.frequencySelectionMode=Ln.Button,this.customAmountMode="display",this.coverFeesCheckboxMode="display",this.amountTitleDisplayMode="default",this.customAmountSelected=!1,this.currencyValidator=new _c}render(){let t=this.amountTitleDisplayMode==="default"?"Choose an amount (USD)":"";return Ot`
${this.frequencySelectionMode===Ln.Button?this.frequencyButtonsTemplate:Qt}
<donation-form-section
sectionBadge="${this.amountSelectionSectionNumber}"
headline=${t}
badgeMode=${this.formSectionNumberMode}
>
${this.amountTitleDisplayMode==="slot"?Ot`<slot name="edit-donation-amount-title"></slot>`:Qt}
<ul class="amount-selector">
${this.presetAmountsTemplate}
${this.customAmountMode==="display"?Ot`<li class="custom-amount">${this.customAmountTemplate}</li>`:Qt}
</ul>
<div class="errors">${this.error}</div>
${this.coverFeesCheckboxMode==="display"?Ot` <div class="checkbox-options">
${this.coverFeesCheckboxTemplate}
${this.frequencySelectionMode===Ln.Checkbox?this.frequencyCheckboxTemplate:Qt}
</div>`:Qt}
</donation-form-section>
`}updated(t){t.has("customAmountSelected")&&this.customAmountButton&&(this.customAmountButton.checked=this.customAmountSelected),t.has("amountOptions")&&(this.customAmountSelected=!1,this.updateSelectedDonationInfo(),this.setupAmountColumnsLayoutConfig()),t.has("amountSelectionLayout")&&this.setupAmountColumnsLayoutConfig(),t.has("donationInfo")&&this.updateSelectedDonationInfo(),t.has("defaultSelectedAmount")&&this.defaultSelectedAmount!==void 0&&(this.customAmountSelected=!1,this.donationInfo=new so({donationType:this.donationInfo.donationType,amount:this.defaultSelectedAmount,coverFees:this.donationInfo.coverFees}))}get frequencyButtonsTemplate(){return Ot`
<donation-form-section
sectionBadge="1"
headline="Choose a frequency"
badgeMode=${this.formSectionNumberMode}
>
<ul class="frequency-selector">
${this.frequencyTemplate}
</ul>
</donation-form-section>
`}get frequencyCheckboxTemplate(){return Ot`
<div class="checkbox-option-container">
<input
type="checkbox"
id="make-this-monthly"
@input=${this.monthlyCheckboxChecked}
.checked=${this.donationInfo.donationType===Vi.Monthly}
tabindex="0"
/>
<label for="make-this-monthly"> Make this monthly </label>
</div>
`}get coverFeesCheckboxTemplate(){return Ot`
<div class="checkbox-option-container">
<input
type="checkbox"
id="cover-fees"
@input=${this.coverFeesChecked}
.checked=${this.donationInfo.coverFees}
tabindex="0"
/>
<label for="cover-fees"> ${this.coverFeesTextTemplate} </label>
</div>
`}get amountSelectionSectionNumber(){return this.frequencySelectionMode===Ln.Button?2:1}get formSectionNumberMode(){switch(this.stepNumberMode){case Ro.ShowNumbers:return lo.ShowBadge;case Ro.HideNumbers:return lo.HideBadge}}setupAmountColumnsLayoutConfig(){let t=this.customAmountMode==="hide"&&this.coverFeesCheckboxMode==="hide"&&this.frequencySelectionMode===Ln.Hide,i=this.amountOptions.length,r=5,l=3;switch(i){case 7:r=5,l=3;break;case 6:r=4,l=2;break;case 5:r=4,l=3;break;case 4:if(t){r=4,l=0;break}r=3,l=2;break;case 3:r=2,l=1;break}this.amountSelectionLayout===Cr.SingleLine&&(r=i+3,l=3),this.style.setProperty("--paymentSelectorAmountColumnCount",`${r}`),this.style.setProperty("--paymentSelectorCustomAmountColSpan",`${l}`)}updateSelectedDonationInfo(){var t,i;if(!this.customAmountSelected&&!this.isCustomAmount){let r=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(`input[type="radio"][name="${tn.Amount}"][value="${this.donationInfo.amount}"]`);r.checked=!0,this.customAmountSelected=!1,this.customAmountInput&&(this.customAmountInput.value="")}else if(this.customAmountSelected=!0,((i=this.shadowRoot)===null||i===void 0?void 0:i.activeElement)!==this.customAmountInput){this.customAmountInput.value=this.customAmountDisplayValue;let r=this.getDonationInfoStatus(this.donationInfo.amount);this.handleDonationInfoStatus(r)}}get coverFeesTextTemplate(){let t=kr(this.donationInfo.fee,{symbol:"$"}).format();return Ot` I'll generously add ${t} to cover fees. `}formatShortenedAmount(t){let i=t%1===0?0:2;return kr(t,{symbol:"$",precision:i}).format()}get frequencyTemplate(){return Ot`
<li>
${this.getRadioButton({group:tn.DonationType,value:Vi.OneTime,displayText:"One time",checked:this.donationInfo.donationType===Vi.OneTime})}
</li>
<li>
${this.getRadioButton({group:tn.DonationType,value:Vi.Monthly,displayText:"Monthly",checked:this.donationInfo.donationType===Vi.Monthly})}
</li>
`}get presetAmountsTemplate(){return Ot`
${this.amountOptions.map(t=>{let i=!this.customAmountSelected&&t===this.donationInfo.amount,r=this.formatShortenedAmount(t);return Ot`
<li>
${this.getRadioButton({group:tn.Amount,value:`${t}`,displayText:`${r}`,checked:i})}
</li>
`})}
`}getRadioButton(t){let i=`${t.group}-${t.value}-option`;return Ot`
<div class="selection-button">
<input
type="radio"
name=${t.group}
value=${t.value}
id=${i}
tabindex="0"
.checked=${t.checked}
@change=${this.radioSelected}
@click=${r=>{t.group===tn.Amount&&parseFloat(t.value)===this.donationInfo.amount&&this.radioSelected(r)}}
/>
<label for=${i}> ${t.displayText} </label>
</div>
`}get isCustomAmount(){return!this.amountOptions.includes(this.donationInfo.amount)}get customAmountDisplayValue(){return this.isCustomAmount?kr(this.donationInfo.amount,{symbol:""}).format():""}get customAmountTemplate(){return Ot`
<div class="selection-button">
<input
type="radio"
name=${tn.Amount}
value="custom"
id="custom-amount-button"
tabindex="0"
@change=${this.customRadioSelected}
/>
<label for="custom-amount-button">
<span class="custom-amount-text">Custom: $</span
><input
type="text"
id="custom-amount-input"
tabindex="-1"
value=${this.customAmountDisplayValue}
@input=${this.customAmountChanged}
@keydown=${this.currencyValidator.keydown}
@focus=${this.customAmountFocused}
@blur=${t=>{let i=t.target;i.value=this.customAmountDisplayValue}}
/>
</label>
</div>
`}customRadioSelected(){this.customAmountInput.focus()}customAmountFocused(t){let i=t.target;this.customAmountSelected=!0,this.handleCustomAmountInput(i.value)}coverFeesChecked(t){let i=t.target.checked;this.updateDonationInfo({coverFees:i})}customAmountChanged(t){let i=t.target.value;this.customAmountSelected=!0,this.handleCustomAmountInput(i)}handleCustomAmountInput(t){let i=parseFloat(t);isNaN(i)?this.dispatchEditDonationError(Hi.InvalidDonationAmount):this.amountChanged(i)}handleDonationInfoStatus(t){switch(t){case Hi.ValidDonationAmount:this.error=void 0;break;case Hi.DonationTooHigh:this.error=Ot`
To make a donation of $10,000 or more, please contact our philanthropy
department at
<a href="mailto:donations@archive.org">donations@archive.org</a>
`,this.dispatchEditDonationError(t);break;case Hi.DonationTooLow:this.customAmountInput.value.length>0&&(this.error=Ot` Please select an amount (minimum $1) `),this.dispatchEditDonationError(t);break;case Hi.InvalidDonationAmount:this.error=Ot` Please enter a valid donation amount `,this.dispatchEditDonationError(t);break}}amountChanged(t){let i=this.getDonationInfoStatus(t);this.handleDonationInfoStatus(i),i===Hi.ValidDonationAmount&&this.updateDonationInfo({amount:t})}getDonationInfoStatus(t){return isNaN(t)?Hi.InvalidDonationAmount:t>=1e4?Hi.DonationTooHigh:t<1?Hi.DonationTooLow:Hi.ValidDonationAmount}radioSelected(t){let i=t.target,r=i.name,{value:l}=i;switch(r){case tn.Amount:this.presetAmountChanged(parseFloat(l));break;case tn.DonationType:this.updateDonationInfo({donationType:l});break;default:break}}monthlyCheckboxChecked(t){let i=t.target.checked?Vi.Monthly:Vi.OneTime;this.updateDonationInfo({donationType:i})}dispatchEditDonationError(t){let i=new CustomEvent("editDonationError",{detail:{error:t}});this.dispatchEvent(i)}presetAmountChanged(t){this.error=void 0,this.customAmountSelected=!1,this.customAmountInput&&(this.customAmountInput.value=""),this.updateDonationInfo({amount:t})}updateDonationInfo(t){var i,r,l;let c=new so({donationType:(i=t.donationType)!==null&&i!==void 0?i:this.donationInfo.donationType,amount:(r=t.amount)!==null&&r!==void 0?r:this.donationInfo.amount,coverFees:(l=t.coverFees)!==null&&l!==void 0?l:this.donationInfo.coverFees});this.donationInfo=c;let d=new CustomEvent("donationInfoChanged",{detail:{donationInfo:c}});this.dispatchEvent(d)}static get styles(){let t=It`var(--paymentButtonBorderColor, #333)`,i=It`var(--paymentButtonGridGap, 1rem)`,r=It`var(--paymentButtonFontSize, 1.6rem)`,l=It`var(--paymentButtonFontColor, #000)`,c=It`var(--paymentButtonSelectedFontColor, #000)`,d=It`var(--paymentButtonSelectedColor, #f9bf3b)`,f=It`var(--paymentButtonFocusedOutlineColor, #7fb3f9)`,g=It`var(--paymentButtonColor, #fff)`,b=It`var(--coverFeesFontSize, 1.2rem)`,x=It`var(--coverFeesFontWeight, bold)`,w=It`var(--customAmountWidth, 4rem)`,A=It`var(--inputFieldFontColor, #333)`,M=It`var(--inputBorder, 1px solid #d9d9d9)`,O=It`var(--paymentSelectorAmountColumnCount, 5)`,E=It`var(--paymentSelectorCustomAmountColSpan, 3)`;return It`
:host {
--formSectionContentBackgroundColor: var(
--editFormBgColor,
transparent
);
--formSectionBadgeBackgroundColor: var(--editFormBadgeBgColor, #333);
--formSectionBadgeFontColor: var(--editFormBadgeFontColor, #fff);
--formSectionTextColor: var(--editFormTextColor, #333);
}
.errors {
color: red;
font-size: 1.4rem;
margin-top: 0.5rem;
}
ul {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-gap: ${i};
}
li {
margin: 0;
padding: 0;
display: inline-block;
}
.frequency-selector {
grid-template-columns: repeat(2, 1fr);
}
.amount-selector {
grid-template-columns: repeat(${O}, 1fr);
}
.custom-amount {
grid-column: span ${E};
}
.selection-button {
height: 3rem;
}
.selection-button label {
padding: 0 0.3rem;
display: flex;
cursor: pointer;
text-align: center;
font-size: ${r};
font-weight: bold;
border: 1px solid ${t};
border-radius: 5px;
background-color: #ccc;
height: 100%;
justify-content: center;
align-items: center;
}
label[for='custom-amount-button'] {
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
.custom-amount-text {
white-space: nowrap;
margin-right: 0.5rem;
}
input[type='radio'] {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
input[type='radio'] + label {
color: ${l};
background-color: ${g};
}
input[type='radio']:checked + label {
color: ${c};
background-color: ${d};
}
input[type='radio']:focus + label {
outline: 2px solid ${f};
}
.checkbox-options {
margin-top: 1rem;
}
.checkbox-option-container {
display: flex;
align-items: center;
justify-content: center;
}
.checkbox-option-container input {
width: 2rem;
}
.checkbox-option-container label {
font-size: ${b};
font-weight: ${x};
flex: 1;
}
#custom-amount-input {
width: ${w};
font-size: 1.6rem;
font-weight: bold;
color: ${A};
padding: 0.1rem;
border: ${M};
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
}
`}};F([Pt({type:Object})],hi.prototype,"donationInfo",void 0);F([Pt({type:String})],hi.prototype,"stepNumberMode",void 0);F([Pt({type:Number})],hi.prototype,"defaultSelectedAmount",void 0);F([Pt({type:Array})],hi.prototype,"amountOptions",void 0);F([Pt({type:String})],hi.prototype,"amountSelectionLayout",void 0);F([Pt({type:String,reflect:!0})],hi.prototype,"frequencySelectionMode",void 0);F([Pt({type:String,reflect:!0})],hi.prototype,"customAmountMode",void 0);F([Pt({type:String,reflect:!0})],hi.prototype,"coverFeesCheckboxMode",void 0);F([Pt({type:String,reflect:!0})],hi.prototype,"amountTitleDisplayMode",void 0);F([ze()],hi.prototype,"error",void 0);F([ze()],hi.prototype,"customAmountSelected",void 0);F([_i("#custom-amount-button")],hi.prototype,"customAmountButton",void 0);F([_i("#custom-amount-input")],hi.prototype,"customAmountInput",void 0);hi=F([Ge("donation-form-edit-donation")],hi);var Di=class extends Ie{constructor(){super(...arguments),this.goalMessageMode="amount",this.goalNearMessage="We\u2019ve almost reached our goal!",this.goalReachedMessage="We've reached our goal!",this.goalAmount=75e5,this.currentAmountMode="on",this.currentAmount=0,this.thermometerValueWidth=0,this.thermometerFillWidth=0}render(){return Ot`
<div
class="container"
role="progressbar"
aria-valuemin="0"
aria-valuemax="${this.goalAmount}"
aria-valuenow="${this.currentAmount}"
aria-valuetext="${this.currentAmountDisplayValue}"
>
<div class="thermometer-message-container">
<div class="thermometer-container">
<div
class="thermometer-background ${this.thermometerValuePosition}"
>
<div
class="thermometer-fill"
style="width: ${this.percentComplete}%"
>
${this.thermometerValuePosition==="value-left"?this.thermometerValueTemplate:Qt}
</div>
${this.thermometerValuePosition==="value-right"?this.thermometerValueTemplate:Qt}
</div>
</div>
${this.goalMessageMode!=="off"?Ot` <div class="donate-goal">${this.currentGoalMessage}</div> `:Qt}
</div>
</div>
`}get thermometerValueTemplate(){return this.currentAmountMode==="off"?Ot`${Qt}`:Ot`
<div class="thermometer-value">${this.currentAmountDisplayValue}</div>
`}get thermometerValuePosition(){return this.thermometerValueWidth+10<this.thermometerFillWidth?"value-left":"value-right"}updated(t){if(t.has("resizeObserver")){let i=t.get("resizeObserver");this.disconnectResizeObserver(i),this.setupResizeObserver(this.resizeObserver)}t.has("currentAmountMode")&&(this.unobserveCurrentAmountResize(this.resizeObserver),this.observeCurrentAmountResize(this.resizeObserver))}disconnectedCallback(){this.disconnectResizeObserver(this.resizeObserver)}handleResize(t){var i;switch(t.target){case((i=this.shadowRoot)===null||i===void 0?void 0:i.host):this.style.setProperty("--bannerThermometerHeight",t.contentRect.height+"px");break;case this.thermometerValue:this.thermometerValueWidth=t.contentRect.width;break;case this.thermometerFill:this.thermometerFillWidth=t.contentRect.width;break}}setupResizeObserver(t){var i;!(!((i=this.shadowRoot)===null||i===void 0)&&i.host)||!t||(t.addObserver({handler:this,target:this.shadowRoot.host}),t.addObserver({handler:this,target:this.thermometerFill}),this.observeCurrentAmountResize(t))}disconnectResizeObserver(t){var i;!(!((i=this.shadowRoot)===null||i===void 0)&&i.host)||!t||(t.removeObserver({handler:this,target:this.shadowRoot.host}),t.removeObserver({handler:this,target:this.thermometerFill}),this.unobserveCurrentAmountResize(t))}observeCurrentAmountResize(t){!this.thermometerValue||!t||(t==null||t.addObserver({handler:this,target:this.thermometerValue}))}unobserveCurrentAmountResize(t){!this.thermometerValue||!t||(t==null||t.removeObserver({handler:this,target:this.thermometerValue}))}get goalMessage(){return this.currentAmount>=this.goalAmount?this.goalReachedMessage:this.goalNearMessage}get currentAmountDisplayValue(){return this.formatNumber(this.currentAmount)}get goalAmountDisplayValue(){return this.formatNumber(this.goalAmount)}formatNumber(t){if(t===0)return"$0";let i="MM",r=t/1e6,l=r<10,c=0;return l?c=Math.round((r+Number.EPSILON)*10)/10:c=Math.round(r),`$${c}${i}`}get currentGoalMessage(){switch(this.goalMessageMode){case"amount":return`${this.goalAmountDisplayValue} goal`;case"message":return this.goalMessage;case"off":return""}}get percentComplete(){return Math.min(this.currentAmount/this.goalAmount*100,100)}static get styles(){let t=It`var(--bannerThermometerHeight, 20px)`,i=It`var(--bannerThermometerCurrentValueLeftColor, #fff)`,r=It`var(--bannerThermometerProgressColor, #23765D)`,l=It`var(--bannerThermometerCurrentValueRightColor, ${r})`,c=It`var(--bannerThermometerBackgroundColor, #B8F5E2)`,d=It`var(--bannerThermometerBorder, 1px solid ${r})`,f=It`var(--bannerThermometerBorderRadius, calc(${t} / 2))`,g=It`var(--bannerThermometerGoalMessagePadding, 0 10px)`,b=It`var(--bannerThermometerGoalValueColor, #2c2c2c)`;return It`
:host {
display: block;
}
.container {
height: 100%;
}
.thermometer-message-container {
height: 100%;
display: flex;
align-items: center;
}
.thermometer-container {
height: 100%;
flex: 1;
}
.thermometer-background {
background-color: ${c};
padding: 0;
height: 100%;
border-radius: ${f};
border: ${d};
overflow: hidden;
display: flex;
align-items: center;
}
.thermometer-fill {
background-color: ${r};
text-align: right;
height: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
}
.thermometer-value {
font-weight: bold;
}
.value-left .thermometer-value {
color: ${i};
padding: 0 0.5rem 0 1rem;
}
.value-right .thermometer-value {
color: ${l};
padding: 0 1rem 0 0.5rem;
}
.donate-goal {
text-align: left;
padding: ${g};
text-transform: uppercase;
font-weight: bold;
color: ${b};
}
`}};F([Pt({type:String})],Di.prototype,"goalMessageMode",void 0);F([Pt({type:String})],Di.prototype,"goalNearMessage",void 0);F([Pt({type:String})],Di.prototype,"goalReachedMessage",void 0);F([Pt({type:Number})],Di.prototype,"goalAmount",void 0);F([Pt({type:String})],Di.prototype,"currentAmountMode",void 0);F([Pt({type:Number})],Di.prototype,"currentAmount",void 0);F([Pt({type:Object})],Di.prototype,"resizeObserver",void 0);F([_i(".thermometer-value")],Di.prototype,"thermometerValue",void 0);F([_i(".thermometer-fill")],Di.prototype,"thermometerFill",void 0);F([ze()],Di.prototype,"thermometerValueWidth",void 0);F([ze()],Di.prototype,"thermometerFillWidth",void 0);Di=F([Ge("donation-banner-thermometer")],Di);var Hn=[],Hp=function(){return Hn.some(function(t){return t.activeTargets.length>0})},Bp=function(){return Hn.some(function(t){return t.skippedTargets.length>0})},xc="ResizeObserver loop completed with undelivered notifications.",jp=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:xc}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=xc),window.dispatchEvent(t)},Lo;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Lo||(Lo={}));var Bn=function(t){return Object.freeze(t)},Fp=function(){function t(i,r){this.inlineSize=i,this.blockSize=r,Bn(this)}return t}(),Mc=function(){function t(i,r,l,c){return this.x=i,this.y=r,this.width=l,this.height=c,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Bn(this)}return t.prototype.toJSON=function(){var i=this,r=i.x,l=i.y,c=i.top,d=i.right,f=i.bottom,g=i.left,b=i.width,x=i.height;return{x:r,y:l,top:c,right:d,bottom:f,left:g,width:b,height:x}},t.fromRect=function(i){return new t(i.x,i.y,i.width,i.height)},t}(),Ga=function(t){return t instanceof SVGElement&&"getBBox"in t},Ic=function(t){if(Ga(t)){var i=t.getBBox(),r=i.width,l=i.height;return!r&&!l}var c=t,d=c.offsetWidth,f=c.offsetHeight;return!(d||f||t.getClientRects().length)},kc=function(t){var i;if(t instanceof Element)return!0;var r=(i=t==null?void 0:t.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(r&&t instanceof r.Element)},Wp=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},zo=typeof window<"u"?window:{},Sr=new WeakMap,Cc=/auto|scroll/,Up=/^tb|vertical/,qp=/msie|trident/i.test(zo.navigator&&zo.navigator.userAgent),en=function(t){return parseFloat(t||"0")},co=function(t,i,r){return t===void 0&&(t=0),i===void 0&&(i=0),r===void 0&&(r=!1),new Fp((r?i:t)||0,(r?t:i)||0)},Sc=Bn({devicePixelContentBoxSize:co(),borderBoxSize:co(),contentBoxSize:co(),contentRect:new Mc(0,0,0,0)}),Pc=function(t,i){if(i===void 0&&(i=!1),Sr.has(t)&&!i)return Sr.get(t);if(Ic(t))return Sr.set(t,Sc),Sc;var r=getComputedStyle(t),l=Ga(t)&&t.ownerSVGElement&&t.getBBox(),c=!qp&&r.boxSizing==="border-box",d=Up.test(r.writingMode||""),f=!l&&Cc.test(r.overflowY||""),g=!l&&Cc.test(r.overflowX||""),b=l?0:en(r.paddingTop),x=l?0:en(r.paddingRight),w=l?0:en(r.paddingBottom),A=l?0:en(r.paddingLeft),M=l?0:en(r.borderTopWidth),O=l?0:en(r.borderRightWidth),E=l?0:en(r.borderBottomWidth),U=l?0:en(r.borderLeftWidth),Y=A+x,ct=b+w,G=U+O,wt=M+E,e=g?t.offsetHeight-wt-t.clientHeight:0,n=f?t.offsetWidth-G-t.clientWidth:0,a=c?Y+G:0,o=c?ct+wt:0,h=l?l.width:en(r.width)-a-n,p=l?l.height:en(r.height)-o-e,y=h+Y+n+G,C=p+ct+e+wt,D=Bn({devicePixelContentBoxSize:co(Math.round(h*devicePixelRatio),Math.round(p*devicePixelRatio),d),borderBoxSize:co(y,C,d),contentBoxSize:co(h,p,d),contentRect:new Mc(A,b,h,p)});return Sr.set(t,D),D},Oc=function(t,i,r){var l=Pc(t,r),c=l.borderBoxSize,d=l.contentBoxSize,f=l.devicePixelContentBoxSize;switch(i){case Lo.DEVICE_PIXEL_CONTENT_BOX:return f;case Lo.BORDER_BOX:return c;default:return d}},Vp=function(){function t(i){var r=Pc(i);this.target=i,this.contentRect=r.contentRect,this.borderBoxSize=Bn([r.borderBoxSize]),this.contentBoxSize=Bn([r.contentBoxSize]),this.devicePixelContentBoxSize=Bn([r.devicePixelContentBoxSize])}return t}(),Nc=function(t){if(Ic(t))return 1/0;for(var i=0,r=t.parentNode;r;)i+=1,r=r.parentNode;return i},Yp=function(){var t=1/0,i=[];Hn.forEach(function(d){if(d.activeTargets.length!==0){var f=[];d.activeTargets.forEach(function(g){var b=new Vp(g.target),x=Nc(g.target);f.push(b),g.lastReportedSize=Oc(g.target,g.observedBox),x<t&&(t=x)}),i.push(function(){d.callback.call(d.observer,f,d.observer)}),d.activeTargets.splice(0,d.activeTargets.length)}});for(var r=0,l=i;r<l.length;r++){var c=l[r];c()}return t},Tc=function(t){Hn.forEach(function(i){i.activeTargets.splice(0,i.activeTargets.length),i.skippedTargets.splice(0,i.skippedTargets.length),i.observationTargets.forEach(function(r){r.isActive()&&(Nc(r.target)>t?i.activeTargets.push(r):i.skippedTargets.push(r))})})},Gp=function(){var t=0;for(Tc(t);Hp();)t=Yp(),Tc(t);return Bp()&&jp(),t>0},qa,Rc=[],Kp=function(){return Rc.splice(0).forEach(function(t){return t()})},Xp=function(t){if(!qa){var i=0,r=document.createTextNode(""),l={characterData:!0};new MutationObserver(function(){return Kp()}).observe(r,l),qa=function(){r.textContent="".concat(i?i--:i++)}}Rc.push(t),qa()},Jp=function(t){Xp(function(){requestAnimationFrame(t)})},Ar=0,Qp=function(){return!!Ar},Zp=250,tf={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ec=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ac=function(t){return t===void 0&&(t=0),Date.now()+t},Va=!1,ef=function(){function t(){var i=this;this.stopped=!0,this.listener=function(){return i.schedule()}}return t.prototype.run=function(i){var r=this;if(i===void 0&&(i=Zp),!Va){Va=!0;var l=Ac(i);Jp(function(){var c=!1;try{c=Gp()}finally{if(Va=!1,i=l-Ac(),!Qp())return;c?r.run(1e3):i>0?r.run(i):r.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var i=this,r=function(){return i.observer&&i.observer.observe(document.body,tf)};document.body?r():zo.addEventListener("DOMContentLoaded",r)},t.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ec.forEach(function(r){return zo.addEventListener(r,i.listener,!0)}))},t.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Ec.forEach(function(r){return zo.removeEventListener(r,i.listener,!0)}),this.stopped=!0)},t}(),Ya=new ef,$c=function(t){!Ar&&t>0&&Ya.start(),Ar+=t,!Ar&&Ya.stop()},nf=function(t){return!Ga(t)&&!Wp(t)&&getComputedStyle(t).display==="inline"},of=function(){function t(i,r){this.target=i,this.observedBox=r||Lo.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var i=Oc(this.target,this.observedBox,!0);return nf(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},t}(),rf=function(){function t(i,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=r}return t}(),Tr=new WeakMap,Dc=function(t,i){for(var r=0;r<t.length;r+=1)if(t[r].target===i)return r;return-1},Er=function(){function t(){}return t.connect=function(i,r){var l=new rf(i,r);Tr.set(i,l)},t.observe=function(i,r,l){var c=Tr.get(i),d=c.observationTargets.length===0;Dc(c.observationTargets,r)<0&&(d&&Hn.push(c),c.observationTargets.push(new of(r,l&&l.box)),$c(1),Ya.schedule())},t.unobserve=function(i,r){var l=Tr.get(i),c=Dc(l.observationTargets,r),d=l.observationTargets.length===1;c>=0&&(d&&Hn.splice(Hn.indexOf(l),1),l.observationTargets.splice(c,1),$c(-1))},t.disconnect=function(i){var r=this,l=Tr.get(i);l.observationTargets.slice().forEach(function(c){return r.unobserve(i,c.target)}),l.activeTargets.splice(0,l.activeTargets.length)},t}(),zc=function(){function t(i){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof i!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Er.connect(this,i)}return t.prototype.observe=function(i,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kc(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Er.observe(this,i,r)},t.prototype.unobserve=function(i){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kc(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Er.unobserve(this,i)},t.prototype.disconnect=function(){Er.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();var af=window.ResizeObserver||zc;window.ResizeObserver=af;var $r=class{constructor(){this.resizeObserver=new ResizeObserver(t=>{window.requestAnimationFrame(()=>{for(let i of t){let r=this.resizeHandlers.get(i.target);r==null||r.forEach(l=>{l.handleResize(i)})}})}),this.resizeHandlers=new Map}shutdown(){this.resizeHandlers.forEach((t,i)=>{this.resizeObserver.unobserve(i)}),this.resizeHandlers.clear()}addObserver(t){var i;let r=(i=this.resizeHandlers.get(t.target))!==null&&i!==void 0?i:new Set;r.add(t.handler),this.resizeHandlers.set(t.target,r),this.resizeObserver.observe(t.target,t.options)}removeObserver(t){let i=this.resizeHandlers.get(t.target);i&&(i.delete(t.handler),i.size===0&&(this.resizeObserver.unobserve(t.target),this.resizeHandlers.delete(t.target)))}};window.SharedResizeObserver=$r;var Dr=class t{static get_banner_height(){return q("#donate_banner").outerHeight()}static postMessage(i,r=0){$e("postin",{event:i,incomingValue:r});let l=t.get_banner_height(),c=t.preventResizeEventResponse?t.calculateBannerWithReminderForm():0,d=Math.max(c,r);window.parent.postMessage(JSON.stringify({event:i,value:d,bannerHeight:l}),"*"),i==="close modal"&&t.adjust_height()}static openReminderForm(){t.preventResizeEventResponse=!0,t.postMessage("set height"),window.scrollTo(0,0)}static closeReminderForm(){t.preventResizeEventResponse=!1,t.postMessage("close modal"),window.scrollTo(0,0)}static onSubmitReminderForm(i=0){t.preventResizeEventResponse=!1,t.postMessage("set cookie",i)}static calculateBannerWithReminderForm(){let i=document.querySelector(".js-donate-banner"),r=document.querySelector(".js-donate-form"),l=document.querySelector(".js-donate-later-dropdown"),c=15,d=i.offsetHeight,f=l.offsetHeight,g=r.offsetHeight+r.offsetTop,b=d-g;return d-b+f+c}static adjust_height(i){let r=i!=null?i:t.get_banner_height();t.postMessage("set height",r),$e({banner_height:r}),this.currentBannerHeight=r}static init(){$e("donato tornado"),q(window).on("resize orientationchange",()=>{t.fixBannerHeightIfNeeded(),clearTimeout(t.adjust_height_throttler),t.adjust_height_throttler=setTimeout(t.adjust_height,100)}),this.currentWindowWidth=window.innerWidth,this.currentBannerHeight=t.get_banner_height(),t.adjust_height()}static fixBannerHeightIfNeeded(){if(window.innerWidth===this.currentWindowWidth){let i=t.get_banner_height();i!==this.currentBannerHeight&&($e("Performing banner height correction: current, new",this.currentBannerHeight,i),t.adjust_height(i))}else this.currentWindowWidth=window.innerWidth}};Dr.preventResizeEventResponse=!1;var Yi=Dr;var Ho=class{constructor(i){this.analyticsBackend=i||window.archive_analytics}send_event(i,r,l,c){this.analyticsBackend&&this.analyticsBackend.send_event(i,r,l,c)}send_event_no_sampling(i,r,l,c){this.analyticsBackend&&this.analyticsBackend.send_event_no_sampling(i,r,l,c)}};var sf=27,Mr="RemindForm",Ir=class t{constructor(i,r,l){this.$form=i,this.$trigger=r,this.setDonationCookie=l||$.noop}static validateDonorEmail(i){return/.+@.+\..+/.test(i)}static validateNameField(i){return!/[<>&:?'"]/.test(i)}setup(){let i=$("#donate_dropdown"),r=$("#close_donate_dropdown"),l=this.$form.attr("data-base-url")||"https://archive.org";this.$trigger.on(`click.${Mr}`,c=>{i.hasClass("is-open")||i.addClass("is-open"),this.$form.find("input").filter((d,f)=>!f.value).eq(0).focus(),Yi.openReminderForm(),c.preventDefault()}),r.on(`click.${Mr}`,()=>{i.removeClass("is-open"),Yi.closeReminderForm(),this.$trigger.focus()}),$(window).on(`keydown.${Mr}`,c=>{i.hasClass("is-open")&&c.keyCode===sf&&r.click()}),this.$form.on(`submit.${Mr}`,c=>{if(c.preventDefault(),!t.validateDonorEmail(this.$form.find("[name=email]").val())){this.$form.find(".error-email").show();return}["first_name","last_name"].forEach(f=>{t.validateNameField(this.$form.find(`[name='${f}']`).val())||this.$form.find(`[name='${f}']`).val("")});let d=this.$trigger.attr("data-source-context")||"";typeof archive_analytics!="undefined"&&archive_analytics.send_event_no_sampling(`DonateBanner${d}`,"MaybeLaterFormSubmit",window.location.pathname),this.sendForm(l)})}sendForm(i){let r=$("#donate_reminder_success").addClass("hidden"),l=(c,d)=>`<h2>${c}</h2><p>${d}</p>`;$.ajax({type:"post",url:`${i}/donate/remindDonate.php`,data:this.$form.serialize(),success:()=>{this.$form.addClass("hidden"),r.html(l("Thank You!","We'll be in touch in the next few days with a reminder to donate to the Internet Archive.")).removeClass("hidden");let c=90;this.setDonationCookie(c),Yi.onSubmitReminderForm(c)},error:()=>{r.html(l("Hmmm...","Something is amiss. Can you try again in a little while?")).removeClass("hidden")}})}};console==null||console.log("donation-banner loaded",{version:"1.1.1"});var Ka=class t{addCloseSupport(){let i=function(c){c.stopPropagation();let d=42;Yi.postMessage("hide banner",d),this.bannerElement.style.display="none",this.logEvent("CloseClicked",!0),this.setDonationCookie(d)},r=document.getElementById("donate-close-button");r&&r.addEventListener("click",i.bind(this))}initialize(){if(!this.bannerElement)return;this.donationInfoError=!1,this.addCloseSupport(),this.setupDonationForm(),this.setupThermometer(),this.setupMinimalDonateButton(),this.setupSnow(),Yi.init(),new Ir(q("#donate_reminder_form"),q("#donate_later"),this.setDonationCookie).setup(),this.logEvent("Viewed")}setDonationCookie(i){t.setDonationCookie(i),Yi.postMessage("set cookie",i)}get bannerElement(){return document.querySelector("#donate_banner")}get donationFormElement(){return document.querySelector("donation-form-edit-donation")}get bannerThermometerElement(){return document.querySelector("donation-banner-thermometer")}get minimalDonateButtonElement(){return document.querySelector("#minimal-donate-button")}get donationOrigin(){let i=this.bannerElement,r=i.dataset.exp,l=i.dataset.variant,c;try{c=window.parent.innerWidth}catch(g){c=Yi.currentWindowWidth}let d=c<768?"Mobile":"Desktop",f=`DonateBanner-${r}-${l}-${d}`;return console.log("PSA Donation Banner donationOrigin: ",{responsiveMode:d,currentWindowWidth:c,origin:f}),f}static setDonationCookie(i){let r=parseInt(i,10);if(!r)return;let l={path:"/",expires:r,domain:".archive.org"};cn.set("donation","x",l),cn.set("donation","x",q.extend(l,{domain:".openlibrary.org"}))}setupSnow(){if(this.bannerElement.dataset.snowfall!=="on")return;new Do({container:document.querySelector("#donate-body-background-layer2"),count:100,minOpacity:.08,maxOpacity:.15,minSize:4,maxSize:8,rotation:!0,speed:.15}).start()}setupMinimalDonateButton(){let i=this.minimalDonateButtonElement;i&&i.addEventListener("click",()=>{var b,x,w;this.logEvent("MinimalDonateButtonClicked"),Yi.postMessage("set cookie",30);let r=(b=this.donationFormElement)==null?void 0:b.donationInfo,l=(x=r==null?void 0:r.amount)!=null?x:this.bannerElement.dataset.defaultselectedamount,c=(w=r==null?void 0:r.donationType)!=null?w:this.bannerElement.dataset.defaultselectedfrequency,d=new URLSearchParams;l&&d.set("amt",l),c&&d.set("contrib_type",c);let f=d.toString(),g=f?`${this.baseDonatePageUrl}&${f}`:this.baseDonatePageUrl;window.top.location=g})}get baseDonatePageUrl(){let i=this.bannerElement,r=i.dataset.baseurl,l=i.dataset.donationsourcedata,c=i.dataset.variantdollaramounts,d=i.dataset.variantamountlayout,f=i.dataset.variantfrequencymode,g=i.dataset.bannertemplate,{platform:b}=i.dataset,x=new URLSearchParams;return this.donationOrigin&&x.set("origin",this.donationOrigin),l&&x.set("referer",l),c&&x.set("dollarAmounts",c),d&&x.set("amountLayout",d),f&&x.set("frequencyMode",f),b&&x.set("platform",b),g&&x.set("bannerTemplate",g),`${r}/donate?${x.toString()}`}openPsaUrl(){let r=this.bannerElement.dataset.psabannerdestinationurl||"https://donate.archive.org/campaign/1-trillion-webpages-p2p/c731122";this.goToDonatePage(r,"ContinueClicked")}setupDonationForm(){var f;let i=this.donationFormElement,r=this.bannerElement.dataset.defaultselectedfrequency;if(r&&i){let g=i.donationInfo;i.donationInfo=new so({donationType:r,amount:g.amount,coverFees:g.coverFees})}let l=(f=i==null?void 0:i.donationInfo)!=null?f:{amount:5,donationType:"one-time",coverFees:!1};if(this.bannerElement.classList.contains("formdesign-psa")){this.bannerElement.addEventListener("click",b=>{b.stopPropagation(),b.preventDefault(),this.openPsaUrl()});let g=document.querySelectorAll(".psa-cta");if(console.log("PSA Donation Banner CTA: ",g),g.length===0)return;g.forEach(b=>{b.addEventListener("click",x=>{x.stopPropagation(),x.preventDefault(),this.openPsaUrl()})});return}i==null||i.addEventListener("donationInfoChanged",g=>{this.donationInfoError=!1,l=g.detail.donationInfo;let b=this.bannerElement.classList.contains("formdesign-minimal");if(console==null||console.log("donationInfoChanged",si({isMinimalBanner:b},l)),b){let x=`${this.baseDonatePageUrl}&amt=${l.amount}&contrib_type=${l.donationType}`;console==null||console.log("donationInfoChanged - IN minimal banner check - post cookie",{url:x}),this.goToDonatePage(x,"ContinueClicked")}}),i==null||i.addEventListener("editDonationError",g=>{this.donationInfoError=!0});let d=document.querySelector("#continue-button");d&&d.addEventListener("click",()=>{if(this.donationInfoError)return;this.logEvent("ContinueClicked");let g=this.bannerElement.dataset,b=encodeURIComponent(g.selectedtextcolor),x=encodeURIComponent(g.selectedfillcolor),w=encodeURIComponent(g.donatepageselectedfillcolor),A=encodeURIComponent(g.donatepageselectedtextcolor),M=encodeURIComponent(g.formtextcolor),O=g.selectedtextcolor?`&selectedTextColor=${b}`:"",E=g.selectedfillcolor?`&selectedFillColor=${x}`:"";g.donatepageselectedfillcolor&&(E=`&selectedFillColor=${w}`),g.donatepageselectedtextcolor&&(O=`&selectedTextColor=${A}`);let U=g.formtextcolor?`&formTextColor=${M}`:"",Y=`${this.baseDonatePageUrl}&amt=${l.amount}&contrib_type=${l.donationType}&coverFees=${l.coverFees}${O}${E}${U}`;Yi.postMessage("set cookie",30),window.top.location=Y})}goToDonatePage(i,r){this.logEvent(r),this.setDonationCookie(3),window.top.location=i}setupThermometer(){let i=this.bannerThermometerElement;if(!i)return;let r=new $r;i.resizeObserver=r}logEvent(i,r=!1){let l=new Ho,c=this.bannerElement,d=c.dataset.debugmode==="true",{platform:f}=c.dataset,g=d?"DonateBannerDebug":"DonateBanner";r||i==="Viewed"&&(f==="ia"||f==="wb")?l.send_event(g,i,this.donationOrigin):l.send_event_no_sampling(g,i,this.donationOrigin)}};document.addEventListener("DOMContentLoaded",()=>{new Ka().initialize()});var lf=t=>typeof t!="string"&&"strTag"in t,cf=(t,i,r)=>{let l=t[0];for(let c=1;c<t.length;c++)l+=i[r?r[c-1]:c-1],l+=t[c];return l},hf=t=>lf(t)?cf(t.strings,t.values):t,le=hf;var uf=class{constructor(){this.settled=!1,this.promise=new Promise((t,i)=>{this._resolve=t,this._reject=i})}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}},df=[];for(let t=0;t<256;t++)df[t]=(t>>4&15).toString(16)+(t&15).toString(16);var pf=new uf;pf.resolve();var Lc=class{constructor(t){var i,r,l,c;this.ARCHIVE_ANALYTICS_VERSION=2,this.DEFAULT_SERVICE="ao_2",this.NO_SAMPLING_SERVICE="ao_no_sampling",this.DEFAULT_IMAGE_URL="https://athena.archive.org/0.gif",this.defaultService=(i=t==null?void 0:t.defaultService)!==null&&i!==void 0?i:this.DEFAULT_SERVICE,this.imageUrl=(r=t==null?void 0:t.imageUrl)!==null&&r!==void 0?r:this.DEFAULT_IMAGE_URL,this.imageContainer=(l=t==null?void 0:t.imageContainer)!==null&&l!==void 0?l:document.body,this.requireImagePing=(c=t==null?void 0:t.requireImagePing)!==null&&c!==void 0?c:!1}sendPing(t){let i=this.generateTrackingUrl(t).toString();if(this.requireImagePing){this.sendPingViaImage(i);return}let r=navigator.sendBeacon&&navigator.sendBeacon.bind(navigator);try{r(i)}catch(l){this.sendPingViaImage(i)}}sendEvent(t){let i=t.label&&t.label.trim().length>0?t.label:window.location.pathname,r=si({kind:"event",ec:t.category,ea:t.action,el:i,cache_bust:Math.random()},t.eventConfiguration);this.sendPing(r)}sendEventNoSampling(t){let i=t.eventConfiguration||{};i.service=this.NO_SAMPLING_SERVICE;let r=t;r.eventConfiguration=i,this.sendEvent(r)}sendPingViaImage(t){let i=new Image(1,1);i.src=t,i.alt="",this.imageContainer.appendChild(i)}generateTrackingUrl(t){var i;let r=t!=null?t:{};r.service=(i=r.service)!==null&&i!==void 0?i:this.defaultService;let l=new URL(this.imageUrl),c=Object.keys(r);return c.forEach(d=>{let f=r[d];l.searchParams.append(d,f)}),l.searchParams.append("version",`${this.ARCHIVE_ANALYTICS_VERSION}`),l.searchParams.append("count",`${c.length+2}`),l}},Hc=class{constructor(t){this.analyticsManager=t}trackIaxParameter(t){let i=new URL(t).searchParams.get("iax");if(!i)return;let r=i.split("|"),l=r.length>=1?r[1]:"",c=r.length>=2?r[2]:"";this.analyticsManager.sendEventNoSampling({category:r[0],action:l,label:c})}trackPageView(t){let i={};i.kind="pageview",i.timediff=new Date().getTimezoneOffset()/60*-1,i.locale=navigator.language,i.referrer=document.referrer===""?"-":document.referrer;let{domInteractive:r,defaultFontSize:l}=this;r&&(i.loadtime=r),l&&(i.iaprop_fontSize=l),"devicePixelRatio"in window&&(i.iaprop_devicePixelRatio=window.devicePixelRatio),t!=null&&t.mediaType&&(i.iaprop_mediaType=t.mediaType),t!=null&&t.mediaLanguage&&(i.iaprop_mediaLanguage=t.mediaLanguage),t!=null&&t.primaryCollection&&(i.iaprop_primaryCollection=t.primaryCollection),t!=null&&t.page&&(i.page=t.page),this.analyticsManager.sendPing(i)}get defaultFontSize(){let t=window.getComputedStyle(document.documentElement);if(!t)return null;let i=t.fontSize,r=parseFloat(i)*1.6,l=i.replace(/(\d*\.\d+)|\d+/,"");return`${r}${l}`}get domInteractive(){if(!window.performance||!window.performance.getEntriesByType)return;let t=window.performance.getEntriesByType("navigation");return t.length===0?void 0:t[0].domInteractive}};var ff=class{constructor(t){t.enableAnalytics&&(this.analyticsBackend=new Lc,this.analyticsHelpers=new Hc(this.analyticsBackend))}sendPing(t){var i;(i=this.analyticsBackend)===null||i===void 0||i.sendPing(t)}sendEvent(t){var i;(i=this.analyticsBackend)===null||i===void 0||i.sendEvent(t)}send_event(t,i,r,l){this.sendEvent({category:t,action:i,label:r,eventConfiguration:l})}sendEventNoSampling(t){var i;(i=this.analyticsBackend)===null||i===void 0||i.sendEventNoSampling(t)}trackIaxParameter(t){var i;(i=this.analyticsHelpers)===null||i===void 0||i.trackIaxParameter(t)}trackPageView(t){var i;(i=this.analyticsHelpers)===null||i===void 0||i.trackPageView(t)}};function mf(t){return new Promise(i=>setTimeout(i,t))}var gf=class{constructor(t){this.analyticsHandler=new ff({enableAnalytics:!0}),this.sleep=mf,this.retryCount=2,this.retryDelay=1e3,this.eventCategory="offshootFetchRetry",t!=null&&t.analyticsHandler&&(this.analyticsHandler=t.analyticsHandler),t!=null&&t.retryCount&&(this.retryCount=t.retryCount),t!=null&&t.retryDelay&&(this.retryDelay=t.retryDelay),t!=null&&t.sleepFn&&(this.sleep=t.sleepFn)}fetchRetry(l,c){return ye(this,arguments,function*(t,i,r=this.retryCount){let d=typeof t=="string"?t:t.url,f=this.retryCount-r+1;try{let g=yield fetch(t,i);return g.ok?g:g.status===404?(this.log404Event(d),g):r>0?(yield this.sleep(this.retryDelay),this.logRetryEvent(d,f,g.statusText,g.status),this.fetchRetry(t,i,r-1)):(this.logFailureEvent(d,g.status),g)}catch(g){if(this.isContentBlockerError(g))throw this.logContentBlockingEvent(d,g),g;if(r>0)return yield this.sleep(this.retryDelay),this.logRetryEvent(d,f,g,g),this.fetchRetry(t,i,r-1);throw this.logFailureEvent(d,g),g}})}isContentBlockerError(t){return t instanceof TypeError?t.message.toLowerCase().includes("content blocker"):!1}logRetryEvent(t,i,r,l){this.analyticsHandler.sendEvent({category:this.eventCategory,action:"retryingFetch",label:`retryNumber: ${i} / ${this.retryCount}, code: ${l}, status: ${r}, url: ${t}`})}logFailureEvent(t,i){this.analyticsHandler.sendEvent({category:this.eventCategory,action:"fetchFailed",label:`error: ${i}, url: ${t}`})}log404Event(t){this.analyticsHandler.sendEvent({category:this.eventCategory,action:"status404NotRetrying",label:`url: ${t}`})}logContentBlockingEvent(t,i){this.analyticsHandler.sendEvent({category:this.eventCategory,action:"contentBlockerDetectedNotRetrying",label:`error: ${i}, url: ${t}`})}},Bc=class{constructor(t){this.fetchRetrier=new gf,t!=null&&t.iaApiBaseUrl&&(this.iaApiBaseUrl=t.iaApiBaseUrl),t!=null&&t.fetchRetrier&&(this.fetchRetrier=t.fetchRetrier),t!=null&&t.searchParams?this.searchParams=t.searchParams:this.searchParams=window.location.search}fetchIAApiResponse(t,i){return ye(this,null,function*(){let r=`${this.iaApiBaseUrl}${t}`;return this.fetchApiResponse(r,i)})}fetchApiResponse(t,i){return ye(this,null,function*(){let r={};return i!=null&&i.includeCredentials&&(r.credentials="include"),i!=null&&i.method&&(r.method=i.method),i!=null&&i.body&&(r.body=i.body),i!=null&&i.headers&&(r.headers=i.headers),yield(yield this.fetch(t,r)).json()})}fetch(t,i){return ye(this,null,function*(){let r=t;return new URLSearchParams(this.searchParams).get("reCache")==="1"&&(r=this.addSearchParams(t,{reCache:"1"})),this.fetchRetrier.fetchRetry(r,i)})}addSearchParams(t,i){let r=typeof t=="string"?t:t.url,l=new URL(r,window.location.href);for(let[c,d]of Object.entries(i))l.searchParams.set(c,d);return typeof t=="string"?l.href:new Request(l.href,t)}};var jc=It`var(--white, #fff)`,vf=It`var(--ia-theme-link-color, #4b64ff)`,yf=It`var(--primaryDisableCTAFill, #767676)`,bf=It`var(--secondaryCTABorder, #999)`,wf=It`var(--primaryCTAFill, #194880)`,Xa=It`var(--primaryCTAFillRGB, 25, 72, 128)`,_f=It`var(--primaryCTABorder, #c5d1df)`,xf=It`var(--primaryErrorCTAFill, #d9534f)`,Ja=It`var(--primaryErrorCTAFillRGB, 229, 28, 38)`,kf=It`var(--primaryErrorCTABorder, #d43f3a)`,Cf=It`var(--secondaryCTAFill, #333)`,Qa=It`var(--secondaryCTAFillRGB, 51, 51, 51)`,Sf=It`var(--primaryCTABorder, #979797)`,Tf=It`var(---primaryWarningFill, #ee8950)`,Za=It`var(--primaryWarningFillRGB, 238, 137, 80)`,Ef=It`var(--primaryWarningBorder, #ec7939)`,Pr=It`
.ia-button {
min-height: 3rem;
cursor: pointer;
color: ${jc};
line-height: normal;
border-radius: 0.4rem;
font-size: 1.4rem;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
border: 1px solid transparent;
white-space: nowrap;
appearance: auto;
box-sizing: border-box;
display: flex;
align-items: center;
transition: all 0.1s ease 0s;
vertical-align: middle;
padding: 0 3rem;
outline-color: ${jc};
outline-offset: -4px;
user-select: none;
text-decoration: none;
width: fit-content;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
}
.ia-button:focus-visible {
outline-style: double;
}
.ia-button:disabled {
cursor: not-allowed;
background-color: ${yf};
border: 1px solid ${bf};
}
.ia-button.transparent {
background-color: transparent;
}
.ia-button.primary:disabled,
.ia-button.danger:disabled,
.ia-button.warning:disabled,
.ia-button.dark:disabled {
opacity: 0.5;
}
.ia-button.primary {
background-color: ${wf};
border-color: ${_f};
}
.ia-button.primary:hover {
background-color: rgba(${Xa}, 0.9);
}
.ia-button.primary:focus-visible {
background-color: rgba(${Xa}, 0.8);
}
.ia-button.primary:active {
background-color: rgba(${Xa}, 0.7);
}
.ia-button.danger {
background-color: ${xf};
border-color: ${kf};
}
.ia-button.danger:hover {
background-color: rgba(${Ja}, 0.9);
}
.ia-button.danger:focus-visible {
background-color: rgba(${Ja}, 0.8);
}
.ia-button.danger:active {
background-color: rgba(${Ja}, 0.7);
}
.ia-button.warning {
background-color: ${Tf};
border-color: ${Ef};
}
.ia-button.warning:hover {
background-color: rgba(${Za}, 0.9);
}
.ia-button.warning:focus-visible {
background-color: rgba(${Za}, 0.8);
}
.ia-button.warning:active {
background-color: rgba(${Za}, 0.7);
}
.ia-button.dark {
background-color: ${Cf};
border-color: ${Sf};
}
.ia-button.dark:hover {
background-color: rgba(${Qa}, 0.9);
}
.ia-button.dark:focus-visible {
background-color: rgba(${Qa}, 0.8);
}
.ia-button.dark:active {
background-color: rgba(${Qa}, 0.7);
}
.ia-button.link {
margin: 0;
padding: 6px;
border: 0;
appearance: none;
background: none;
color: ${vf};
text-decoration: none;
cursor: pointer;
}
.ia-button.link:hover {
text-decoration: underline;
}
`,b1=It`
.sr-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
border: 0 !important;
overflow: hidden !important;
white-space: nowrap !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
user-select: none !important;
}
`;var Fc={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wc=t=>(...i)=>({_$litDirective$:t,values:i}),Uc=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,r){this._$Ct=t,this._$AM=i,this._$Ci=r}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};var ts,Or=window,ho=Or.trustedTypes,qc=ho?ho.createPolicy("lit-html",{createHTML:t=>t}):void 0,ns="$lit$",bn=`lit$${(Math.random()+"").slice(9)}$`,Jc="?"+bn,Af=`<${Jc}>`,Wn=document,Nr=()=>Wn.createComment(""),jo=t=>t===null||typeof t!="object"&&typeof t!="function",Qc=Array.isArray,$f=t=>Qc(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",es=`[
\f\r]`,Bo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vc=/-->/g,Yc=/>/g,jn=RegExp(`>|${es}(?:([^\\s"'>=/]+)(${es}*=${es}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gc=/'/g,Kc=/"/g,Zc=/^(?:script|style|textarea|title)$/i,th=t=>(i,...r)=>({_$litType$:t,strings:i,values:r}),k1=th(1),C1=th(2),uo=Symbol.for("lit-noChange"),Ke=Symbol.for("lit-nothing"),Xc=new WeakMap,Fn=Wn.createTreeWalker(Wn,129,null,!1);function eh(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return qc!==void 0?qc.createHTML(i):i}var Df=(t,i)=>{let r=t.length-1,l=[],c,d=i===2?"<svg>":"",f=Bo;for(let g=0;g<r;g++){let b=t[g],x,w,A=-1,M=0;for(;M<b.length&&(f.lastIndex=M,w=f.exec(b),w!==null);)M=f.lastIndex,f===Bo?w[1]==="!--"?f=Vc:w[1]!==void 0?f=Yc:w[2]!==void 0?(Zc.test(w[2])&&(c=RegExp("</"+w[2],"g")),f=jn):w[3]!==void 0&&(f=jn):f===jn?w[0]===">"?(f=c!=null?c:Bo,A=-1):w[1]===void 0?A=-2:(A=f.lastIndex-w[2].length,x=w[1],f=w[3]===void 0?jn:w[3]==='"'?Kc:Gc):f===Kc||f===Gc?f=jn:f===Vc||f===Yc?f=Bo:(f=jn,c=void 0);let O=f===jn&&t[g+1].startsWith("/>")?" ":"";d+=f===Bo?b+Af:A>=0?(l.push(x),b.slice(0,A)+ns+b.slice(A)+bn+O):b+bn+(A===-2?(l.push(void 0),g):O)}return[eh(t,d+(t[r]||"<?>")+(i===2?"</svg>":"")),l]},os=class ih{constructor({strings:i,_$litType$:r},l){let c;this.parts=[];let d=0,f=0,g=i.length-1,b=this.parts,[x,w]=Df(i,r);if(this.el=ih.createElement(x,l),Fn.currentNode=this.el.content,r===2){let A=this.el.content,M=A.firstChild;M.remove(),A.append(...M.childNodes)}for(;(c=Fn.nextNode())!==null&&b.length<g;){if(c.nodeType===1){if(c.hasAttributes()){let A=[];for(let M of c.getAttributeNames())if(M.endsWith(ns)||M.startsWith(bn)){let O=w[f++];if(A.push(M),O!==void 0){let E=c.getAttribute(O.toLowerCase()+ns).split(bn),U=/([.?@])?(.*)/.exec(O);b.push({type:1,index:d,name:U[2],strings:E,ctor:U[1]==="."?If:U[1]==="?"?Of:U[1]==="@"?Nf:Rr})}else b.push({type:6,index:d})}for(let M of A)c.removeAttribute(M)}if(Zc.test(c.tagName)){let A=c.textContent.split(bn),M=A.length-1;if(M>0){c.textContent=ho?ho.emptyScript:"";for(let O=0;O<M;O++)c.append(A[O],Nr()),Fn.nextNode(),b.push({type:2,index:++d});c.append(A[M],Nr())}}}else if(c.nodeType===8)if(c.data===Jc)b.push({type:2,index:d});else{let A=-1;for(;(A=c.data.indexOf(bn,A+1))!==-1;)b.push({type:7,index:d}),A+=bn.length-1}d++}}static createElement(i,r){let l=Wn.createElement("template");return l.innerHTML=i,l}};function po(t,i,r=t,l){var c,d,f,g;if(i===uo)return i;let b=l!==void 0?(c=r._$Co)===null||c===void 0?void 0:c[l]:r._$Cl,x=jo(i)?void 0:i._$litDirective$;return(b==null?void 0:b.constructor)!==x&&((d=b==null?void 0:b._$AO)===null||d===void 0||d.call(b,!1),x===void 0?b=void 0:(b=new x(t),b._$AT(t,r,l)),l!==void 0?((f=(g=r)._$Co)!==null&&f!==void 0?f:g._$Co=[])[l]=b:r._$Cl=b),b!==void 0&&(i=po(t,b._$AS(t,i.values),b,l)),i}var Mf=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:r},parts:l}=this._$AD,c=((i=t==null?void 0:t.creationScope)!==null&&i!==void 0?i:Wn).importNode(r,!0);Fn.currentNode=c;let d=Fn.nextNode(),f=0,g=0,b=l[0];for(;b!==void 0;){if(f===b.index){let x;b.type===2?x=new nh(d,d.nextSibling,this,t):b.type===1?x=new b.ctor(d,b.name,b.strings,this,t):b.type===6&&(x=new Rf(d,this,t)),this._$AV.push(x),b=l[++g]}f!==(b==null?void 0:b.index)&&(d=Fn.nextNode(),f++)}return Fn.currentNode=Wn,c}v(t){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,i),i+=r.strings.length-2):r._$AI(t[i])),i++}},nh=class oh{constructor(i,r,l,c){var d;this.type=2,this._$AH=Ke,this._$AN=void 0,this._$AA=i,this._$AB=r,this._$AM=l,this.options=c,this._$Cp=(d=c==null?void 0:c.isConnected)===null||d===void 0||d}get _$AU(){var i,r;return(r=(i=this._$AM)===null||i===void 0?void 0:i._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let i=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=r.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,r=this){i=po(this,i,r),jo(i)?i===Ke||i==null||i===""?(this._$AH!==Ke&&this._$AR(),this._$AH=Ke):i!==this._$AH&&i!==uo&&this._(i):i._$litType$!==void 0?this.g(i):i.nodeType!==void 0?this.$(i):$f(i)?this.T(i):this._(i)}k(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}$(i){this._$AH!==i&&(this._$AR(),this._$AH=this.k(i))}_(i){this._$AH!==Ke&&jo(this._$AH)?this._$AA.nextSibling.data=i:this.$(Wn.createTextNode(i)),this._$AH=i}g(i){var r;let{values:l,_$litType$:c}=i,d=typeof c=="number"?this._$AC(i):(c.el===void 0&&(c.el=os.createElement(eh(c.h,c.h[0]),this.options)),c);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===d)this._$AH.v(l);else{let f=new Mf(d,this),g=f.u(this.options);f.v(l),this.$(g),this._$AH=f}}_$AC(i){let r=Xc.get(i.strings);return r===void 0&&Xc.set(i.strings,r=new os(i)),r}T(i){Qc(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,l,c=0;for(let d of i)c===r.length?r.push(l=new oh(this.k(Nr()),this.k(Nr()),this,this.options)):l=r[c],l._$AI(d),c++;c<r.length&&(this._$AR(l&&l._$AB.nextSibling,c),r.length=c)}_$AR(i=this._$AA.nextSibling,r){var l;for((l=this._$AP)===null||l===void 0||l.call(this,!1,!0,r);i&&i!==this._$AB;){let c=i.nextSibling;i.remove(),i=c}}setConnected(i){var r;this._$AM===void 0&&(this._$Cp=i,(r=this._$AP)===null||r===void 0||r.call(this,i))}},Rr=class{constructor(t,i,r,l,c){this.type=1,this._$AH=Ke,this._$AN=void 0,this.element=t,this.name=i,this._$AM=l,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ke}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,r,l){let c=this.strings,d=!1;if(c===void 0)t=po(this,t,i,0),d=!jo(t)||t!==this._$AH&&t!==uo,d&&(this._$AH=t);else{let f=t,g,b;for(t=c[0],g=0;g<c.length-1;g++)b=po(this,f[r+g],i,g),b===uo&&(b=this._$AH[g]),d||(d=!jo(b)||b!==this._$AH[g]),b===Ke?t=Ke:t!==Ke&&(t+=(b!=null?b:"")+c[g+1]),this._$AH[g]=b}d&&!l&&this.j(t)}j(t){t===Ke?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},If=class extends Rr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ke?void 0:t}},Pf=ho?ho.emptyScript:"",Of=class extends Rr{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Ke?this.element.setAttribute(this.name,Pf):this.element.removeAttribute(this.name)}},Nf=class extends Rr{constructor(t,i,r,l,c){super(t,i,r,l,c),this.type=5}_$AI(t,i=this){var r;if((t=(r=po(this,t,i,0))!==null&&r!==void 0?r:Ke)===uo)return;let l=this._$AH,c=t===Ke&&l!==Ke||t.capture!==l.capture||t.once!==l.once||t.passive!==l.passive,d=t!==Ke&&(l===Ke||c);c&&this.element.removeEventListener(this.name,this,l),d&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,r;typeof this._$AH=="function"?this._$AH.call((r=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&r!==void 0?r:this.element,t):this._$AH.handleEvent(t)}},Rf=class{constructor(t,i,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){po(this,t)}},is=Or.litHtmlPolyfillSupport;is==null||is(os,nh),((ts=Or.litHtmlVersions)!==null&&ts!==void 0?ts:Or.litHtmlVersions=[]).push("2.8.0");var rs=class extends Uc{constructor(t){if(super(t),this.et=Ke,t.type!==Fc.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ke||t==null)return this.ft=void 0,this.et=t;if(t===uo)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;let i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}};rs.directiveName="unsafeHTML",rs.resultType=1;var zr=Wc(rs);var{entries:ph,setPrototypeOf:rh,isFrozen:zf,getPrototypeOf:Lf,getOwnPropertyDescriptor:Hf}=Object,{freeze:di,seal:Bi,create:ds}=Object,{apply:ps,construct:fs}=typeof Reflect<"u"&&Reflect;di||(di=function(t){return t});Bi||(Bi=function(t){return t});ps||(ps=function(t,i){for(var r=arguments.length,l=new Array(r>2?r-2:0),c=2;c<r;c++)l[c-2]=arguments[c];return t.apply(i,l)});fs||(fs=function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),l=1;l<i;l++)r[l-1]=arguments[l];return new t(...r)});var Lr=pi(Array.prototype.forEach),Bf=pi(Array.prototype.lastIndexOf),ah=pi(Array.prototype.pop),Fo=pi(Array.prototype.push),jf=pi(Array.prototype.splice),Br=pi(String.prototype.toLowerCase),as=pi(String.prototype.toString),ss=pi(String.prototype.match),Wo=pi(String.prototype.replace),Ff=pi(String.prototype.indexOf),Wf=pi(String.prototype.trim),Gi=pi(Object.prototype.hasOwnProperty),ui=pi(RegExp.prototype.test),Uo=Uf(TypeError);function pi(t){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),c=1;c<r;c++)l[c-1]=arguments[c];return ps(t,i,l)}}function Uf(t){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return fs(t,r)}}function pe(t,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Br;rh&&rh(t,null);let l=i.length;for(;l--;){let c=i[l];if(typeof c=="string"){let d=r(c);d!==c&&(zf(i)||(i[l]=d),c=d)}t[c]=!0}return t}function qf(t){for(let i=0;i<t.length;i++)Gi(t,i)||(t[i]=null);return t}function nn(t){let i=ds(null);for(let[r,l]of ph(t))Gi(t,r)&&(Array.isArray(l)?i[r]=qf(l):l&&typeof l=="object"&&l.constructor===Object?i[r]=nn(l):i[r]=l);return i}function qo(t,i){for(;t!==null;){let l=Hf(t,i);if(l){if(l.get)return pi(l.get);if(typeof l.value=="function")return pi(l.value)}t=Lf(t)}function r(){return null}return r}var sh=di(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ls=di(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cs=di(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Vf=di(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hs=di(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Yf=di(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),lh=di(["#text"]),ch=di(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),us=di(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hh=di(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Hr=di(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Gf=Bi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kf=Bi(/<%[\w\W]*|[\w\W]*%>/gm),Xf=Bi(/\$\{[\w\W]*/gm),Jf=Bi(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qf=Bi(/^aria-[\-\w]+$/),fh=Bi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zf=Bi(/^(?:\w+script|data):/i),tm=Bi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mh=Bi(/^html$/i),em=Bi(/^[a-z][.\w]*(-[.\w]+)+$/i),uh=Object.freeze({__proto__:null,ARIA_ATTR:Qf,ATTR_WHITESPACE:tm,CUSTOM_ELEMENT:em,DATA_ATTR:Jf,DOCTYPE_NAME:mh,ERB_EXPR:Kf,IS_ALLOWED_URI:fh,IS_SCRIPT_OR_DATA:Zf,MUSTACHE_EXPR:Gf,TMPLIT_EXPR:Xf}),Vo={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},im=function(){return typeof window>"u"?null:window},nm=function(t,i){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null,l="data-tt-policy-suffix";i&&i.hasAttribute(l)&&(r=i.getAttribute(l));let c="dompurify"+(r?"#"+r:"");try{return t.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch(d){return console.warn("TrustedTypes policy "+c+" could not be created."),null}},dh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function gh(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:im(),i=H=>gh(H);if(i.version="3.3.1",i.removed=[],!t||!t.document||t.document.nodeType!==Vo.document||!t.Element)return i.isSupported=!1,i;let{document:r}=t,l=r,c=l.currentScript,{DocumentFragment:d,HTMLTemplateElement:f,Node:g,Element:b,NodeFilter:x,NamedNodeMap:w=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:A,DOMParser:M,trustedTypes:O}=t,E=b.prototype,U=qo(E,"cloneNode"),Y=qo(E,"remove"),ct=qo(E,"nextSibling"),G=qo(E,"childNodes"),wt=qo(E,"parentNode");if(typeof f=="function"){let H=r.createElement("template");H.content&&H.content.ownerDocument&&(r=H.content.ownerDocument)}let e,n="",{implementation:a,createNodeIterator:o,createDocumentFragment:h,getElementsByTagName:p}=r,{importNode:y}=l,C=dh();i.isSupported=typeof ph=="function"&&typeof wt=="function"&&a&&a.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:D,ERB_EXPR:P,TMPLIT_EXPR:L,DATA_ATTR:J,ARIA_ATTR:dt,IS_SCRIPT_OR_DATA:Et,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:N}=uh,{IS_ALLOWED_URI:tt}=uh,ot=null,X=pe({},[...sh,...ls,...cs,...hs,...lh]),K=null,at=pe({},[...ch,...us,...hh,...Hr]),st=Object.seal(ds(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),bt=null,$t=null,Ht=Object.seal(ds(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Zt=!0,qt=!0,Kt=!1,Vt=!0,we=!1,ge=!0,Ne=!1,Ze=!1,Gt=!1,re=!1,ke=!1,ti=!1,ii=!0,Pe=!1,li="user-content-",_e=!0,Ce=!1,be={},Le=null,Fi=pe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),gi=null,We=pe({},["audio","video","img","source","image","track"]),vi=null,Qi=pe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ei="http://www.w3.org/1998/Math/MathML",ni="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml",Xe=He,ce=!1,fe=null,S=pe({},[ei,ni,He],as),z=pe({},["mi","mo","mn","ms","mtext"]),R=pe({},["annotation-xml"]),Q=pe({},["title","style","font","a","script"]),ut=null,ft=["application/xhtml+xml","text/html"],lt="text/html",rt=null,et=null,vt=r.createElement("form"),_t=function(H){return H instanceof RegExp||H instanceof Function},Mt=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(et&&et===H)){if((!H||typeof H!="object")&&(H={}),H=nn(H),ut=ft.indexOf(H.PARSER_MEDIA_TYPE)===-1?lt:H.PARSER_MEDIA_TYPE,rt=ut==="application/xhtml+xml"?as:Br,ot=Gi(H,"ALLOWED_TAGS")?pe({},H.ALLOWED_TAGS,rt):X,K=Gi(H,"ALLOWED_ATTR")?pe({},H.ALLOWED_ATTR,rt):at,fe=Gi(H,"ALLOWED_NAMESPACES")?pe({},H.ALLOWED_NAMESPACES,as):S,vi=Gi(H,"ADD_URI_SAFE_ATTR")?pe(nn(Qi),H.ADD_URI_SAFE_ATTR,rt):Qi,gi=Gi(H,"ADD_DATA_URI_TAGS")?pe(nn(We),H.ADD_DATA_URI_TAGS,rt):We,Le=Gi(H,"FORBID_CONTENTS")?pe({},H.FORBID_CONTENTS,rt):Fi,bt=Gi(H,"FORBID_TAGS")?pe({},H.FORBID_TAGS,rt):nn({}),$t=Gi(H,"FORBID_ATTR")?pe({},H.FORBID_ATTR,rt):nn({}),be=Gi(H,"USE_PROFILES")?H.USE_PROFILES:!1,Zt=H.ALLOW_ARIA_ATTR!==!1,qt=H.ALLOW_DATA_ATTR!==!1,Kt=H.ALLOW_UNKNOWN_PROTOCOLS||!1,Vt=H.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=H.SAFE_FOR_TEMPLATES||!1,ge=H.SAFE_FOR_XML!==!1,Ne=H.WHOLE_DOCUMENT||!1,re=H.RETURN_DOM||!1,ke=H.RETURN_DOM_FRAGMENT||!1,ti=H.RETURN_TRUSTED_TYPE||!1,Gt=H.FORCE_BODY||!1,ii=H.SANITIZE_DOM!==!1,Pe=H.SANITIZE_NAMED_PROPS||!1,_e=H.KEEP_CONTENT!==!1,Ce=H.IN_PLACE||!1,tt=H.ALLOWED_URI_REGEXP||fh,Xe=H.NAMESPACE||He,z=H.MATHML_TEXT_INTEGRATION_POINTS||z,R=H.HTML_INTEGRATION_POINTS||R,st=H.CUSTOM_ELEMENT_HANDLING||{},H.CUSTOM_ELEMENT_HANDLING&&_t(H.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(st.tagNameCheck=H.CUSTOM_ELEMENT_HANDLING.tagNameCheck),H.CUSTOM_ELEMENT_HANDLING&&_t(H.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(st.attributeNameCheck=H.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),H.CUSTOM_ELEMENT_HANDLING&&typeof H.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(st.allowCustomizedBuiltInElements=H.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(qt=!1),ke&&(re=!0),be&&(ot=pe({},lh),K=[],be.html===!0&&(pe(ot,sh),pe(K,ch)),be.svg===!0&&(pe(ot,ls),pe(K,us),pe(K,Hr)),be.svgFilters===!0&&(pe(ot,cs),pe(K,us),pe(K,Hr)),be.mathMl===!0&&(pe(ot,hs),pe(K,hh),pe(K,Hr))),H.ADD_TAGS&&(typeof H.ADD_TAGS=="function"?Ht.tagCheck=H.ADD_TAGS:(ot===X&&(ot=nn(ot)),pe(ot,H.ADD_TAGS,rt))),H.ADD_ATTR&&(typeof H.ADD_ATTR=="function"?Ht.attributeCheck=H.ADD_ATTR:(K===at&&(K=nn(K)),pe(K,H.ADD_ATTR,rt))),H.ADD_URI_SAFE_ATTR&&pe(vi,H.ADD_URI_SAFE_ATTR,rt),H.FORBID_CONTENTS&&(Le===Fi&&(Le=nn(Le)),pe(Le,H.FORBID_CONTENTS,rt)),H.ADD_FORBID_CONTENTS&&(Le===Fi&&(Le=nn(Le)),pe(Le,H.ADD_FORBID_CONTENTS,rt)),_e&&(ot["#text"]=!0),Ne&&pe(ot,["html","head","body"]),ot.table&&(pe(ot,["tbody"]),delete bt.tbody),H.TRUSTED_TYPES_POLICY){if(typeof H.TRUSTED_TYPES_POLICY.createHTML!="function")throw Uo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof H.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Uo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');e=H.TRUSTED_TYPES_POLICY,n=e.createHTML("")}else e===void 0&&(e=nm(O,c)),e!==null&&typeof n=="string"&&(n=e.createHTML(""));di&&di(H),et=H}},Yt=pe({},[...ls,...cs,...Vf]),kt=pe({},[...hs,...Yf]),Dt=function(H){let Lt=wt(H);(!Lt||!Lt.tagName)&&(Lt={namespaceURI:Xe,tagName:"template"});let At=Br(H.tagName),me=Br(Lt.tagName);return fe[H.namespaceURI]?H.namespaceURI===ni?Lt.namespaceURI===He?At==="svg":Lt.namespaceURI===ei?At==="svg"&&(me==="annotation-xml"||z[me]):!!Yt[At]:H.namespaceURI===ei?Lt.namespaceURI===He?At==="math":Lt.namespaceURI===ni?At==="math"&&R[me]:!!kt[At]:H.namespaceURI===He?Lt.namespaceURI===ni&&!R[me]||Lt.namespaceURI===ei&&!z[me]?!1:!kt[At]&&(Q[At]||!Yt[At]):!!(ut==="application/xhtml+xml"&&fe[H.namespaceURI]):!1},Ft=function(H){Fo(i.removed,{element:H});try{wt(H).removeChild(H)}catch(Lt){Y(H)}},Ut=function(H,Lt){try{Fo(i.removed,{attribute:Lt.getAttributeNode(H),from:Lt})}catch(At){Fo(i.removed,{attribute:null,from:Lt})}if(Lt.removeAttribute(H),H==="is")if(re||ke)try{Ft(Lt)}catch(At){}else try{Lt.setAttribute(H,"")}catch(At){}},Rt=function(H){let Lt=null,At=null;if(Gt)H="<remove></remove>"+H;else{let Te=ss(H,/^[\r\n\t ]+/);At=Te&&Te[0]}ut==="application/xhtml+xml"&&Xe===He&&(H='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+H+"</body></html>");let me=e?e.createHTML(H):H;if(Xe===He)try{Lt=new M().parseFromString(me,ut)}catch(Te){}if(!Lt||!Lt.documentElement){Lt=a.createDocument(Xe,"template",null);try{Lt.documentElement.innerHTML=ce?n:me}catch(Te){}}let qe=Lt.body||Lt.documentElement;return H&&At&&qe.insertBefore(r.createTextNode(At),qe.childNodes[0]||null),Xe===He?p.call(Lt,Ne?"html":"body")[0]:Ne?Lt.documentElement:qe},Ct=function(H){return o.call(H.ownerDocument||H,H,x.SHOW_ELEMENT|x.SHOW_COMMENT|x.SHOW_TEXT|x.SHOW_PROCESSING_INSTRUCTION|x.SHOW_CDATA_SECTION,null)},St=function(H){return H instanceof A&&(typeof H.nodeName!="string"||typeof H.textContent!="string"||typeof H.removeChild!="function"||!(H.attributes instanceof w)||typeof H.removeAttribute!="function"||typeof H.setAttribute!="function"||typeof H.namespaceURI!="string"||typeof H.insertBefore!="function"||typeof H.hasChildNodes!="function")},Bt=function(H){return typeof g=="function"&&H instanceof g};function oe(H,Lt,At){Lr(H,me=>{me.call(i,Lt,At,et)})}let he=function(H){let Lt=null;if(oe(C.beforeSanitizeElements,H,null),St(H))return Ft(H),!0;let At=rt(H.nodeName);if(oe(C.uponSanitizeElement,H,{tagName:At,allowedTags:ot}),ge&&H.hasChildNodes()&&!Bt(H.firstElementChild)&&ui(/<[/\w!]/g,H.innerHTML)&&ui(/<[/\w!]/g,H.textContent)||H.nodeType===Vo.progressingInstruction||ge&&H.nodeType===Vo.comment&&ui(/<[/\w]/g,H.data))return Ft(H),!0;if(!(Ht.tagCheck instanceof Function&&Ht.tagCheck(At))&&(!ot[At]||bt[At])){if(!bt[At]&&ri(At)&&(st.tagNameCheck instanceof RegExp&&ui(st.tagNameCheck,At)||st.tagNameCheck instanceof Function&&st.tagNameCheck(At)))return!1;if(_e&&!Le[At]){let me=wt(H)||H.parentNode,qe=G(H)||H.childNodes;if(qe&&me){let Te=qe.length;for(let xi=Te-1;xi>=0;--xi){let ki=U(qe[xi],!0);ki.__removalCount=(H.__removalCount||0)+1,me.insertBefore(ki,ct(H))}}}return Ft(H),!0}return H instanceof b&&!Dt(H)||(At==="noscript"||At==="noembed"||At==="noframes")&&ui(/<\/no(script|embed|frames)/i,H.innerHTML)?(Ft(H),!0):(we&&H.nodeType===Vo.text&&(Lt=H.textContent,Lr([D,P,L],me=>{Lt=Wo(Lt,me," ")}),H.textContent!==Lt&&(Fo(i.removed,{element:H.cloneNode()}),H.textContent=Lt)),oe(C.afterSanitizeElements,H,null),!1)},Ue=function(H,Lt,At){if(ii&&(Lt==="id"||Lt==="name")&&(At in r||At in vt))return!1;if(!(qt&&!$t[Lt]&&ui(J,Lt))&&!(Zt&&ui(dt,Lt))&&!(Ht.attributeCheck instanceof Function&&Ht.attributeCheck(Lt,H))){if(!K[Lt]||$t[Lt]){if(!(ri(H)&&(st.tagNameCheck instanceof RegExp&&ui(st.tagNameCheck,H)||st.tagNameCheck instanceof Function&&st.tagNameCheck(H))&&(st.attributeNameCheck instanceof RegExp&&ui(st.attributeNameCheck,Lt)||st.attributeNameCheck instanceof Function&&st.attributeNameCheck(Lt,H))||Lt==="is"&&st.allowCustomizedBuiltInElements&&(st.tagNameCheck instanceof RegExp&&ui(st.tagNameCheck,At)||st.tagNameCheck instanceof Function&&st.tagNameCheck(At))))return!1}else if(!vi[Lt]&&!ui(tt,Wo(At,V,""))&&!((Lt==="src"||Lt==="xlink:href"||Lt==="href")&&H!=="script"&&Ff(At,"data:")===0&&gi[H])&&!(Kt&&!ui(Et,Wo(At,V,"")))&&At)return!1}return!0},ri=function(H){return H!=="annotation-xml"&&ss(H,N)},ci=function(H){oe(C.beforeSanitizeAttributes,H,null);let{attributes:Lt}=H;if(!Lt||St(H))return;let At={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0},me=Lt.length;for(;me--;){let qe=Lt[me],{name:Te,namespaceURI:xi,value:ki}=qe,Ci=rt(Te),eo=ki,Ve=Te==="value"?eo:Wf(eo);if(At.attrName=Ci,At.attrValue=Ve,At.keepAttr=!0,At.forceKeepAttr=void 0,oe(C.uponSanitizeAttribute,H,At),Ve=At.attrValue,Pe&&(Ci==="id"||Ci==="name")&&(Ut(Te,H),Ve=li+Ve),ge&&ui(/((--!?|])>)|<\/(style|title|textarea)/i,Ve)){Ut(Te,H);continue}if(Ci==="attributename"&&ss(Ve,"href")){Ut(Te,H);continue}if(At.forceKeepAttr)continue;if(!At.keepAttr){Ut(Te,H);continue}if(!Vt&&ui(/\/>/i,Ve)){Ut(Te,H);continue}we&&Lr([D,P,L],bo=>{Ve=Wo(Ve,bo," ")});let io=rt(H.nodeName);if(!Ue(io,Ci,Ve)){Ut(Te,H);continue}if(e&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!xi)switch(O.getAttributeType(io,Ci)){case"TrustedHTML":{Ve=e.createHTML(Ve);break}case"TrustedScriptURL":{Ve=e.createScriptURL(Ve);break}}if(Ve!==eo)try{xi?H.setAttributeNS(xi,Te,Ve):H.setAttribute(Te,Ve),St(H)?Ft(H):ah(i.removed)}catch(bo){Ut(Te,H)}}oe(C.afterSanitizeAttributes,H,null)},pn=function H(Lt){let At=null,me=Ct(Lt);for(oe(C.beforeSanitizeShadowDOM,Lt,null);At=me.nextNode();)oe(C.uponSanitizeShadowNode,At,null),he(At),ci(At),At.content instanceof d&&H(At.content);oe(C.afterSanitizeShadowDOM,Lt,null)};return i.sanitize=function(H){let Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},At=null,me=null,qe=null,Te=null;if(ce=!H,ce&&(H="<!-->"),typeof H!="string"&&!Bt(H))if(typeof H.toString=="function"){if(H=H.toString(),typeof H!="string")throw Uo("dirty is not a string, aborting")}else throw Uo("toString is not a function");if(!i.isSupported)return H;if(Ze||Mt(Lt),i.removed=[],typeof H=="string"&&(Ce=!1),Ce){if(H.nodeName){let Ci=rt(H.nodeName);if(!ot[Ci]||bt[Ci])throw Uo("root node is forbidden and cannot be sanitized in-place")}}else if(H instanceof g)At=Rt("<!---->"),me=At.ownerDocument.importNode(H,!0),me.nodeType===Vo.element&&me.nodeName==="BODY"||me.nodeName==="HTML"?At=me:At.appendChild(me);else{if(!re&&!we&&!Ne&&H.indexOf("<")===-1)return e&&ti?e.createHTML(H):H;if(At=Rt(H),!At)return re?null:ti?n:""}At&&Gt&&Ft(At.firstChild);let xi=Ct(Ce?H:At);for(;qe=xi.nextNode();)he(qe),ci(qe),qe.content instanceof d&&pn(qe.content);if(Ce)return H;if(re){if(ke)for(Te=h.call(At.ownerDocument);At.firstChild;)Te.appendChild(At.firstChild);else Te=At;return(K.shadowroot||K.shadowrootmode)&&(Te=y.call(l,Te,!0)),Te}let ki=Ne?At.outerHTML:At.innerHTML;return Ne&&ot["!doctype"]&&At.ownerDocument&&At.ownerDocument.doctype&&At.ownerDocument.doctype.name&&ui(mh,At.ownerDocument.doctype.name)&&(ki="<!DOCTYPE "+At.ownerDocument.doctype.name+`>
`+ki),we&&Lr([D,P,L],Ci=>{ki=Wo(ki,Ci," ")}),e&&ti?e.createHTML(ki):ki},i.setConfig=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mt(H),Ze=!0},i.clearConfig=function(){et=null,Ze=!1},i.isValidAttribute=function(H,Lt,At){et||Mt({});let me=rt(H),qe=rt(Lt);return Ue(me,qe,At)},i.addHook=function(H,Lt){typeof Lt=="function"&&Fo(C[H],Lt)},i.removeHook=function(H,Lt){if(Lt!==void 0){let At=Bf(C[H],Lt);return At===-1?void 0:jf(C[H],At,1)[0]}return ah(C[H])},i.removeHooks=function(H){C[H]=[]},i.removeAllHooks=function(){C=dh()},i}var Yo=gh();var vh;(function(t){t.processing="processing",t.complete="complete"})(vh||(vh={}));var ms=class extends Ie{constructor(){super(...arguments),this.mode="processing"}render(){return Ot`
<div class="${this.mode}">
<svg
viewBox="0 0 120 120"
preserveAspectRatio="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-labelledby="indicatorTitle indicatorDescription"
>
<title id="indicatorTitle">Activity Indicator</title>
<desc id="indicatorDescription">
A rotating activity indicator with three dots in the middle.
</desc>
<g
id="icons/check-ring---squared"
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd"
>
<path
id="completed-ring"
class="loaded-indicator"
d="M60,10 C70.5816709,10 80.3955961,13.2871104 88.4763646,18.8959201 L78.3502633,29.0214223 C72.9767592,25.8315427 66.7022695,24 60,24 C40.117749,24 24,40.117749 24,60 C24,79.882251 40.117749,96 60,96 C79.882251,96 96,79.882251 96,60 L95.995,59.46 L108.327675,47.128668 C109.350926,50.9806166 109.925886,55.015198 109.993301,59.1731586 L110,60 C110,87.6142375 87.6142375,110 60,110 C32.3857625,110 10,87.6142375 10,60 C10,32.3857625 32.3857625,10 60,10 Z"
></path>
<polygon
id="check"
class="loaded-indicator"
transform="translate(75.000000, 41.500000) rotate(44.000000) translate(-75.000000, -41.500000) "
points="96 85 54 85 54 65 76 64.999 76 -2 96 -2"
></polygon>
<path
id="activity-ring"
class="activity-indicator"
d="M60,10 C69.8019971,10 78.9452178,12.8205573 86.6623125,17.6943223 L76.4086287,27.9484118 C71.4880919,25.4243078 65.9103784,24 60,24 C40.117749,24 24,40.117749 24,60 C24,79.882251 40.117749,96 60,96 C79.882251,96 96,79.882251 96,60 C96,53.3014663 94.1704984,47.0302355 90.9839104,41.6587228 L101.110332,31.5326452 C106.715332,39.6116982 110,49.4222615 110,60 C110,87.6142375 87.6142375,110 60,110 C32.3857625,110 10,87.6142375 10,60 C10,32.3857625 32.3857625,10 60,10 Z"
></path>
<g
id="activity-dots"
class="activity-indicator"
transform="translate(40.000000, 55.000000)"
>
<circle id="left-dot" cx="5" cy="5" r="5"></circle>
<circle id="middle-dot" cx="20" cy="5" r="5"></circle>
<circle id="right-dot" cx="35" cy="5" r="5"></circle>
</g>
</g>
</svg>
</div>
`}static get styles(){let t=It`var(--activityIndicatorCheckmarkColor, #31A481)`,i=It`var(--activityIndicatorCompletedRingColor, #31A481)`,r=It`var(--activityIndicatorLoadingRingColor, #333333)`,l=It`var(--activityIndicatorLoadingDotColor, #333333)`;return It`
#completed-ring {
fill: ${i};
}
#check {
fill: ${t};
}
#activity-ring {
fill: ${r};
}
#activity-dots {
fill: ${l};
}
.activity-indicator {
opacity: 0;
transition: opacity 0.25s ease-out;
}
.processing .activity-indicator {
opacity: 1;
}
.loaded-indicator {
opacity: 1;
transition: opacity 0.25s ease-out;
}
.processing .loaded-indicator {
opacity: 0;
}
.image {
border: 1px solid red;
display: inline-block;
}
.processing #activity-ring {
animation: rotate 1.3s infinite linear;
transform-origin: 50px 50px;
transform-box: fill-box;
}
.processing #left-dot {
opacity: 0;
animation: dot 1.3s infinite;
animation-delay: 0.2s;
}
.processing #middle-dot {
opacity: 0;
animation: dot 1.3s infinite;
animation-delay: 0.4s;
}
.processing #right-dot {
opacity: 0;
animation: dot 1.3s infinite;
animation-delay: 0.6s;
}
@keyframes rotate {
0% {
transform: rotate(-360deg);
}
100% {
/* This frame is supposed to be inferred, but Safari doesn't rotate it unless we're explicit */
transform: rotate(0deg);
}
}
@keyframes dot {
0% {
opacity: 0;
}
25% {
opacity: 1;
}
100% {
opacity: 0;
}
}
`}};F([Pt({type:String})],ms.prototype,"mode",void 0);ms=F([Ge("ia-activity-indicator")],ms);function Nt(t){let i,r,l;return typeof t=="object"?(i=t.hashFunction,r=t.expiring,l=t.tags):i=t,(c,d,f)=>{if(f.value!=null)f.value=yh(f.value,i,r,l);else if(f.get!=null)f.get=yh(f.get,i,r,l);else throw"Only put a Memoize() decorator on a method or get accessor."}}var gs=new Map;function yh(t,i,r=0,l){let c=Symbol("__memoized_map__");return function(...d){let f;this.hasOwnProperty(c)||Object.defineProperty(this,c,{configurable:!1,enumerable:!1,writable:!1,value:new Map});let g=this[c];if(Array.isArray(l))for(let b of l)gs.has(b)?gs.get(b).push(g):gs.set(b,[g]);if(i||d.length>0||r>0){let b;i===!0?b=d.map(A=>A.toString()).join("!"):i?b=i.apply(this,d):b=d[0];let x=`${b}__timestamp`,w=!1;if(r>0)if(!g.has(x))w=!0;else{let A=g.get(x);w=Date.now()-A>r}g.has(b)&&!w?f=g.get(b):(f=t.apply(this,d),g.set(b,f),r>0&&g.set(x,Date.now()))}else{let b=this;g.has(b)?f=g.get(b):(f=t.apply(this,d),g.set(b,f))}return f}}var jr=class{parseValue(t){return typeof t=="string"&&(t==="false"||t==="0")?!1:!!t}};jr.shared=new jr;var Mi=class{parseValue(t){if(typeof t=="number")return t;if(typeof t=="boolean")return;let i=parseFloat(t);if(!Number.isNaN(i))return i}};Mi.shared=new Mi;var fo=class{parseValue(t){return Mi.shared.parseValue(t)}};fo.shared=new fo;var Un=class{parseValue(t){return this.parseJSDate(t)||this.parseBracketDate(t)}parseBracketDate(t){if(typeof t!="string")return;let i=t.match(/\[([0-9]{4})\]/);if(!(!i||i.length<2))return this.parseJSDate(i[1])}parseJSDate(t){if(typeof t!="string")return;let i=t;i.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}\s{1}[0-9]{2}:[0-9]{2}:[0-9]{2}$/)&&(i=i.replace(" ","T"));let r=Date.parse(i);if(Number.isNaN(r))return;let l=new Date(i);return(i.match(/^[0-9]{4}$/)||i.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/))&&(l=new Date(l.getTime()+l.getTimezoneOffset()*1e3*60)),l}};Un.shared=new Un;var mo=class{parseValue(t){if(typeof t=="number")return t;if(typeof t=="boolean")return;let i=t.split(":"),r;return i.length===1?r=this.parseNumberFormat(i[0]):r=this.parseColonSeparatedFormat(i),r}parseNumberFormat(t){let i=parseFloat(t);return Number.isNaN(i)&&(i=void 0),i}parseColonSeparatedFormat(t){let i=!1,r=t.map((l,c)=>{let d=parseFloat(l);if(Number.isNaN(d))return i=!0,0;let f=Al(60,t.length-1-c);return d*Math.floor(f)}).reduce((l,c)=>l+c,0);return i?void 0:r}};mo.shared=new mo;var Fr=class{parseValue(t){if(typeof t=="string")return t}};Fr.shared=new Fr;var bh=class{constructor(t,i){this.separators=[";",","],this.parser=t,i&&i.separators&&(this.separators=i.separators)}parseValue(t){let i=String(t),r=[];for(let l of this.separators)if(r=i.split(l),r.length>1)break;return this.parseListValues(r)}parseListValues(t){let i=t.map(l=>l.trim()).map(l=>this.parser.parseValue(l)),r=[];return i.forEach(l=>{l!==void 0&&r.push(l)}),r}},Wr=class{parseValue(t){if(typeof t=="string")return t}};Wr.shared=new Wr;var go=class{parseValue(t){return String(t)}};go.shared=new go;var dn=class{get name(){return this.rawValue.name}get source(){return this.rawValue.source}get btih(){return this.rawValue.btih}get md5(){return this.rawValue.md5}get format(){return this.rawValue.format}get mtime(){if(this.rawValue.mtime==null)return;let t=Mi.shared.parseValue(this.rawValue.mtime);if(t)return new Date(t*1e3)}get crc32(){return this.rawValue.crc32}get sha1(){return this.rawValue.sha1}get original(){return this.rawValue.original}get size(){return this.rawValue.size!=null?fo.shared.parseValue(this.rawValue.size):void 0}get title(){return this.rawValue.title}get length(){return this.rawValue.length!=null?mo.shared.parseValue(this.rawValue.length):void 0}get height(){return this.rawValue.height!=null?Mi.shared.parseValue(this.rawValue.height):void 0}get width(){return this.rawValue.width!=null?Mi.shared.parseValue(this.rawValue.width):void 0}get track(){return this.rawValue.track!=null?Mi.shared.parseValue(this.rawValue.track):void 0}get external_identifier(){return this.rawValue.external_identifier}get creator(){return this.rawValue.creator}get album(){return this.rawValue.album}constructor(t={}){this.rawValue=t}};F([Nt()],dn.prototype,"mtime",null);F([Nt()],dn.prototype,"size",null);F([Nt()],dn.prototype,"length",null);F([Nt()],dn.prototype,"height",null);F([Nt()],dn.prototype,"width",null);F([Nt()],dn.prototype,"track",null);var Ki=class{get values(){return this.parseRawValue()}get value(){return this.values[0]}constructor(t,i){this.parser=t,this.rawValue=i}parseRawValue(){let t=Array.isArray(this.rawValue)?this.rawValue:[this.rawValue],i=[];return t.forEach(r=>{let l=this.parser.parseValue(r);Array.isArray(l)?i.push(...l):l!==void 0&&i.push(l)}),i}};F([Nt()],Ki.prototype,"values",null);F([Nt()],Ki.prototype,"value",null);var wh=class extends Ki{constructor(t){super(jr.shared,t)}},wn=class extends Ki{constructor(t){super(Un.shared,t)}},vs=class extends Ki{constructor(t){super(mo.shared,t)}},Ii=class extends Ki{constructor(t){super(Mi.shared,t)}},ue=class extends Ki{constructor(t){super(go.shared,t)}},om=class extends Ki{constructor(t){super(Wr.shared,t)}},_h=class extends Ki{constructor(t){super(fo.shared,t)}},rm=class extends Ki{constructor(t){super(Fr.shared,t)}},am=class extends Ki{constructor(t,i){super(i,t)}},sm=class extends am{constructor(t){let i=new bh(go.shared);super(t,i)}};var Wt=class{get identifier(){return this.rawMetadata.identifier}get addeddate(){return this.rawMetadata.addeddate!=null?new wn(this.rawMetadata.addeddate):void 0}get audio_codec(){return this.rawMetadata.audio_codec!=null?new ue(this.rawMetadata.audio_codec):void 0}get audio_sample_rate(){return this.rawMetadata.audio_sample_rate!=null?new Ii(this.rawMetadata.audio_sample_rate):void 0}get avg_rating(){return this.rawMetadata.avg_rating!=null?new Ii(this.rawMetadata.avg_rating):void 0}get collection(){return this.rawMetadata.collection!=null?new ue(this.rawMetadata.collection):void 0}get collections_raw(){return this.rawMetadata.collections_raw!=null?new ue(this.rawMetadata.collections_raw):void 0}get collection_size(){return this.rawMetadata.collection_size!=null?new _h(this.rawMetadata.collection_size):void 0}get contact(){return this.rawMetadata.contact!=null?new ue(this.rawMetadata.contact):void 0}get contributor(){return this.rawMetadata.contributor!=null?new ue(this.rawMetadata.contributor):void 0}get coverage(){return this.rawMetadata.coverage!=null?new ue(this.rawMetadata.coverage):void 0}get creator(){return this.rawMetadata.creator!=null?new ue(this.rawMetadata.creator):void 0}get creator_alt_script(){return this.rawMetadata["creator-alt-script"]!=null?new ue(this.rawMetadata["creator-alt-script"]):void 0}get credits(){return this.rawMetadata.credits!=null?new ue(this.rawMetadata.credits):void 0}get collection_layout(){return this.rawMetadata.collection_layout!=null?new ue(this.rawMetadata.collection_layout):void 0}get date(){return this.rawMetadata.date!=null?new wn(this.rawMetadata.date):void 0}get description(){return this.rawMetadata.description!=null?new ue(this.rawMetadata.description):void 0}get downloads(){return this.rawMetadata.downloads!=null?new Ii(this.rawMetadata.downloads):void 0}get duration(){return this.rawMetadata.duration!=null?new vs(this.rawMetadata.duration):void 0}get external_identifier(){return this.rawMetadata["external-identifier"]!=null?new ue(this.rawMetadata["external-identifier"]):void 0}get external_link(){return this.rawMetadata["external-link"]!=null?new ue(this.rawMetadata["external-link"]):void 0}get files_count(){return this.rawMetadata.files_count!=null?new Ii(this.rawMetadata.files_count):void 0}get indexdate(){return this.rawMetadata.indexdate!=null?new wn(this.rawMetadata.indexdate):void 0}get isbn(){return this.rawMetadata.isbn!=null?new ue(this.rawMetadata.isbn):void 0}get issue(){return this.rawMetadata.issue!=null?new ue(this.rawMetadata.issue):void 0}get item_count(){return this.rawMetadata.item_count!=null?new Ii(this.rawMetadata.item_count):void 0}get item_size(){return this.rawMetadata.item_size!=null?new _h(this.rawMetadata.item_size):void 0}get language(){return this.rawMetadata.language!=null?new ue(this.rawMetadata.language):void 0}get length(){return this.rawMetadata.length!=null?new vs(this.rawMetadata.length):void 0}get licenseurl(){return this.rawMetadata.licenseurl!=null?new ue(this.rawMetadata.licenseurl):void 0}get lineage(){return this.rawMetadata.lineage!=null?new ue(this.rawMetadata.lineage):void 0}get month(){return this.rawMetadata.month!=null?new Ii(this.rawMetadata.month):void 0}get mediatype(){return this.rawMetadata.mediatype!=null?new rm(this.rawMetadata.mediatype):void 0}get noindex(){return this.rawMetadata.noindex!=null?new wh(this.rawMetadata.noindex):void 0}get notes(){return this.rawMetadata.notes!=null?new ue(this.rawMetadata.notes):void 0}get num_favorites(){return this.rawMetadata.num_favorites!=null?new Ii(this.rawMetadata.num_favorites):void 0}get num_reviews(){return this.rawMetadata.num_reviews!=null?new Ii(this.rawMetadata.num_reviews):void 0}get openlibrary_edition(){return this.rawMetadata.openlibrary_edition!=null?new ue(this.rawMetadata.openlibrary_edition):void 0}get openlibrary_work(){return this.rawMetadata.openlibrary_work!=null?new ue(this.rawMetadata.openlibrary_work):void 0}get page_progression(){return this.rawMetadata.page_progression!=null?new om(this.rawMetadata.page_progression):void 0}get paginated(){return this.rawMetadata.paginated!=null?new wh(this.rawMetadata.paginated):void 0}get partner(){return this.rawMetadata.partner!=null?new ue(this.rawMetadata.partner):void 0}get post_text(){return this.rawMetadata.post_text!=null?new ue(this.rawMetadata.post_text):void 0}get ppi(){return this.rawMetadata.ppi!=null?new Ii(this.rawMetadata.ppi):void 0}get publicdate(){return this.rawMetadata.publicdate!=null?new wn(this.rawMetadata.publicdate):void 0}get publisher(){return this.rawMetadata.publisher!=null?new ue(this.rawMetadata.publisher):void 0}get reviewdate(){return this.rawMetadata.reviewdate!=null?new wn(this.rawMetadata.reviewdate):void 0}get rights(){return this.rawMetadata.rights!=null?new ue(this.rawMetadata.rights):void 0}get rights_holder(){var t;let i=(t=this.rawMetadata["rights-holder"])!==null&&t!==void 0?t:this.rawMetadata.rights_holder;return i!=null?new ue(i):void 0}get runtime(){return this.rawMetadata.runtime!=null?new vs(this.rawMetadata.runtime):void 0}get scanner(){return this.rawMetadata.scanner!=null?new ue(this.rawMetadata.scanner):void 0}get segments(){return this.rawMetadata.segments!=null?new ue(this.rawMetadata.segments):void 0}get shotlist(){return this.rawMetadata.shotlist!=null?new ue(this.rawMetadata.shotlist):void 0}get source(){return this.rawMetadata.source!=null?new ue(this.rawMetadata.source):void 0}get sponsor(){return this.rawMetadata.sponsor!=null?new ue(this.rawMetadata.sponsor):void 0}get start_localtime(){return this.rawMetadata.start_localtime!=null?new wn(this.rawMetadata.start_localtime):void 0}get start_time(){return this.rawMetadata.start_time!=null?new wn(this.rawMetadata.start_time):void 0}get stop_time(){return this.rawMetadata.stop_time!=null?new wn(this.rawMetadata.stop_time):void 0}get subject(){return this.rawMetadata.subject!=null?new sm(this.rawMetadata.subject):void 0}get taper(){return this.rawMetadata.taper!=null?new ue(this.rawMetadata.taper):void 0}get title(){return this.rawMetadata.title!=null?new ue(this.rawMetadata.title):void 0}get title_alt_script(){return this.rawMetadata["title-alt-script"]!=null?new ue(this.rawMetadata["title-alt-script"]):void 0}get transferer(){return this.rawMetadata.transferer!=null?new ue(this.rawMetadata.transferer):void 0}get track(){return this.rawMetadata.track!=null?new Ii(this.rawMetadata.track):void 0}get type(){return this.rawMetadata.type!=null?new ue(this.rawMetadata.type):void 0}get uploader(){return this.rawMetadata.uploader!=null?new ue(this.rawMetadata.uploader):void 0}get utc_offset(){return this.rawMetadata.utc_offset!=null?new Ii(this.rawMetadata.utc_offset):void 0}get venue(){return this.rawMetadata.venue!=null?new ue(this.rawMetadata.venue):void 0}get volume(){return this.rawMetadata.volume!=null?new ue(this.rawMetadata.volume):void 0}get week(){return this.rawMetadata.week!=null?new Ii(this.rawMetadata.week):void 0}get year(){return this.rawMetadata.year!=null?new Ii(this.rawMetadata.year):void 0}constructor(t={}){this.rawMetadata=t}};F([Nt()],Wt.prototype,"addeddate",null);F([Nt()],Wt.prototype,"audio_codec",null);F([Nt()],Wt.prototype,"audio_sample_rate",null);F([Nt()],Wt.prototype,"avg_rating",null);F([Nt()],Wt.prototype,"collection",null);F([Nt()],Wt.prototype,"collections_raw",null);F([Nt()],Wt.prototype,"collection_size",null);F([Nt()],Wt.prototype,"contact",null);F([Nt()],Wt.prototype,"contributor",null);F([Nt()],Wt.prototype,"coverage",null);F([Nt()],Wt.prototype,"creator",null);F([Nt()],Wt.prototype,"creator_alt_script",null);F([Nt()],Wt.prototype,"credits",null);F([Nt()],Wt.prototype,"collection_layout",null);F([Nt()],Wt.prototype,"date",null);F([Nt()],Wt.prototype,"description",null);F([Nt()],Wt.prototype,"downloads",null);F([Nt()],Wt.prototype,"duration",null);F([Nt()],Wt.prototype,"external_identifier",null);F([Nt()],Wt.prototype,"external_link",null);F([Nt()],Wt.prototype,"files_count",null);F([Nt()],Wt.prototype,"indexdate",null);F([Nt()],Wt.prototype,"isbn",null);F([Nt()],Wt.prototype,"issue",null);F([Nt()],Wt.prototype,"item_count",null);F([Nt()],Wt.prototype,"item_size",null);F([Nt()],Wt.prototype,"language",null);F([Nt()],Wt.prototype,"length",null);F([Nt()],Wt.prototype,"licenseurl",null);F([Nt()],Wt.prototype,"lineage",null);F([Nt()],Wt.prototype,"month",null);F([Nt()],Wt.prototype,"mediatype",null);F([Nt()],Wt.prototype,"noindex",null);F([Nt()],Wt.prototype,"notes",null);F([Nt()],Wt.prototype,"num_favorites",null);F([Nt()],Wt.prototype,"num_reviews",null);F([Nt()],Wt.prototype,"openlibrary_edition",null);F([Nt()],Wt.prototype,"openlibrary_work",null);F([Nt()],Wt.prototype,"page_progression",null);F([Nt()],Wt.prototype,"paginated",null);F([Nt()],Wt.prototype,"partner",null);F([Nt()],Wt.prototype,"post_text",null);F([Nt()],Wt.prototype,"ppi",null);F([Nt()],Wt.prototype,"publicdate",null);F([Nt()],Wt.prototype,"publisher",null);F([Nt()],Wt.prototype,"reviewdate",null);F([Nt()],Wt.prototype,"rights",null);F([Nt()],Wt.prototype,"rights_holder",null);F([Nt()],Wt.prototype,"runtime",null);F([Nt()],Wt.prototype,"scanner",null);F([Nt()],Wt.prototype,"segments",null);F([Nt()],Wt.prototype,"shotlist",null);F([Nt()],Wt.prototype,"source",null);F([Nt()],Wt.prototype,"sponsor",null);F([Nt()],Wt.prototype,"start_localtime",null);F([Nt()],Wt.prototype,"start_time",null);F([Nt()],Wt.prototype,"stop_time",null);F([Nt()],Wt.prototype,"subject",null);F([Nt()],Wt.prototype,"taper",null);F([Nt()],Wt.prototype,"title",null);F([Nt()],Wt.prototype,"title_alt_script",null);F([Nt()],Wt.prototype,"transferer",null);F([Nt()],Wt.prototype,"track",null);F([Nt()],Wt.prototype,"type",null);F([Nt()],Wt.prototype,"uploader",null);F([Nt()],Wt.prototype,"utc_offset",null);F([Nt()],Wt.prototype,"venue",null);F([Nt()],Wt.prototype,"volume",null);F([Nt()],Wt.prototype,"week",null);F([Nt()],Wt.prototype,"year",null);var _n=class{get reviewbody(){return this.rawValue.reviewbody}get reviewtitle(){return this.rawValue.reviewtitle}get reviewer(){return this.rawValue.reviewer}get reviewer_itemname(){return this.rawValue.reviewer_itemname}get reviewdate(){return this.rawValue.reviewdate!=null?Un.shared.parseValue(this.rawValue.reviewdate):void 0}get createdate(){return this.rawValue.createdate!=null?Un.shared.parseValue(this.rawValue.createdate):void 0}get stars(){return this.rawValue.stars!=null?Mi.shared.parseValue(this.rawValue.stars):void 0}constructor(t={}){this.rawValue=t}};F([Nt()],_n.prototype,"reviewdate",null);F([Nt()],_n.prototype,"createdate",null);F([Nt()],_n.prototype,"stars",null);var lm=class{constructor(t){var i,r;this.rawResponse=t,this.created=t.created,this.d1=t.d1,this.d2=t.d2,this.dir=t.dir,this.files=(i=t.files)===null||i===void 0?void 0:i.map(l=>new dn(l)),this.files_count=t.files_count,this.item_last_updated=t.item_last_updated,this.item_size=t.item_size,this.metadata=new Wt(t.metadata),this.server=t.server,this.uniq=t.uniq,this.workable_servers=t.workable_servers,this.speech_vs_music_asr=t.speech_vs_music_asr,this.reviews=(r=t.reviews)===null||r===void 0?void 0:r.map(l=>new _n(l))}},qn;(function(t){t.networkError="MetadataService.NetworkError",t.itemNotFound="MetadataService.ItemNotFound",t.decodingError="MetadataService.DecodingError",t.searchEngineError="MetadataService.SearchEngineError"})(qn||(qn={}));var ys=class extends Error{constructor(t,i,r){super(i),this.name=t,this.type=t,this.details=r}},cm=class{constructor(t){var i;if(this.baseUrl=(i=t==null?void 0:t.baseUrl)!==null&&i!==void 0?i:"archive.org",(t==null?void 0:t.includeCredentials)!==void 0?this.includeCredentials=t.includeCredentials:this.includeCredentials=window.location.href.match(/^https?:\/\/.*archive\.org(:[0-9]+)?/)!==null,(t==null?void 0:t.scope)!==void 0)this.requestScope=t.scope;else{let r=new URL(window.location.href).searchParams.get("scope");r&&(this.requestScope=r)}}fetchMetadata(t,i){return ye(this,null,function*(){let r=i?`/${i}`:"",l=`https://${this.baseUrl}/metadata/${t}${r}`;return this.fetchUrl(l,{requestOptions:{credentials:"omit"}})})}fetchUrl(t,i){return ye(this,null,function*(){var r;let l=new URL(t);this.requestScope&&l.searchParams.set("scope",this.requestScope);let c;try{let d=(r=i==null?void 0:i.requestOptions)!==null&&r!==void 0?r:{credentials:this.includeCredentials?"include":"same-origin"};c=yield fetch(l.href,d)}catch(d){let f=d instanceof Error?d.message:typeof d=="string"?d:"Unknown error";return this.getErrorResult(qn.networkError,f)}try{let d=yield c.json(),f=d.error;if(f){let g=d.forensics;return this.getErrorResult(qn.searchEngineError,f,g)}else return{success:d}}catch(d){let f=d instanceof Error?d.message:typeof d=="string"?d:"Unknown error";return this.getErrorResult(qn.decodingError,f)}})}getErrorResult(t,i,r){return{error:new ys(t,i,r)}}},xh=class{constructor(t){this.backend=t}fetchMetadata(t){return ye(this,null,function*(){var i;let r=yield this.backend.fetchMetadata(t);return r.error?r:((i=r.success)===null||i===void 0?void 0:i.metadata)===void 0?{error:new ys(qn.itemNotFound)}:{success:new lm(r.success)}})}fetchMetadataValue(t,i){return ye(this,null,function*(){var r;let l=yield this.backend.fetchMetadata(t,i);return l.error?l:((r=l.success)===null||r===void 0?void 0:r.result)===void 0?{error:new ys(qn.itemNotFound)}:{success:l.success.result}})}};xh.default=new xh(new cm);var hm=Li`
<svg class="star-selected" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path
d="m81.0388846 100-30.9636029-22.5595033-30.7410319 22.5595033 10.6670595-37.3922042-30.0013093-25.2155916h37.5556428l12.5196389-37.3922042 12.3690754 37.3922042h37.5556429l-29.7034563 25.2155916z"
fill="#c2820a"
stroke="#c2820a"
stroke-width="3px"
/>
</svg>`,um=Li`
<svg class="star-unselected" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path
d="m81.0388846 100-30.9636029-22.5595033-30.7410319 22.5595033 10.6670595-37.3922042-30.0013093-25.2155916h37.5556428l12.5196389-37.3922042 12.3690754 37.3922042h37.5556429l-29.7034563 25.2155916z"
fill="#ffffff"
stroke="#c2820a"
stroke-width="3px"
/>
</svg>`,dm=Li`
<svg class="star-basic" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path
d="m81.0388846 100-30.9636029-22.5595033-30.7410319 22.5595033 10.6670595-37.3922042-30.0013093-25.2155916h37.5556428l12.5196389-37.3922042 12.3690754 37.3922042h37.5556429l-29.7034563 25.2155916z"
fill="2C2C2C"
/>
</svg>`;function kh(t=""){if(t.length<=40)return t;let i=t.substring(0,40)+"...";return Ot`<span title="${t}">${i}</span>`}var pm=["a"];function fm(t){return Yo.addHook("afterSanitizeAttributes",i=>{i.nodeName.toLowerCase()==="a"&&(i.setAttribute("rel","ugc nofollow"),i.setAttribute("target","_blank"))}),Yo.sanitize(t,{ALLOWED_TAGS:pm})}function mm(t,i=100,r=!0){if(t.length<i)return t;let l=i;if(r){let c=t.indexOf(" ",i),d=c-i<=20;if(d&&c===t.length-1)return t;c!==-1&&d&&(l=c)}return gm(t,l,i)}function gm(t,i,r){let l=t.slice(0,i),c=l.match(/<a/gi);if(c){let d=l.match(/<\/a/gi);if(!d||d.length<c.length){let f=t.indexOf("</a>",i),g=f-r<=20;if(g&&t.length===f+4)return t;if(f!==-1&&g)l=t.slice(0,f+4);else{let b=l.lastIndexOf("<a");l=t.slice(0,b)}}}return l.concat("...")}var vm=/(http(s)?)?(:\/\/)?([a-zA-Z][-a-z0-9]*(\.[-a-z0-9]+)+(\/[^\s\?#<]*)*(\?[^\s#]*)?(#[^\s]*)?)/;function ym(t){return t.replace(new RegExp('(?<=href=")[^"]+(?=")'),i=>i.replace(".","__DOT__")).replace(vm,i=>i=`<a href="${i.match(/^(https|http)/)?i:"https://"+i}" rel="ugc nofollow" target="_blank">${i}</a>`).replace("__DOT__",".")}function bm(t){return t.trim().replace(/[ |\t]+/g," ").replace(/[\n|\r\n]+/g,"<br />").replace(/(<br[^>]*>(<\/br>)?)+/g,"<br />")}var wm=Li`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" class="delete-icon">
<rect width="24" height="24" fill="white"/>
<path d="M5 7.5H19L18 21H6L5 7.5Z" stroke="#000000" stroke-linejoin="round"/>
<path d="M15.5 9.5L15 19" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12 9.5V19" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8.5 9.5L9 19" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16 5H19C20.1046 5 21 5.89543 21 7V7.5H3V7C3 5.89543 3.89543 5 5 5H8M16 5L15 3H9L8 5M16 5H8" stroke="#000000" stroke-linejoin="round"/>
</svg>
`,Xi=class extends Ie{constructor(){super(...arguments),this.maxSubjectLength=100,this.maxBodyLength=150,this.baseHost="https://archive.org",this.canDelete=!1,this.bypassTruncation=!1,this.showTruncatedContent=!1,this.deleteMsg=""}render(){return this.review?Ot`
<article class="review" id=${this.generateDomId()}>
${this.canDelete?Ot`
<button
class="delete-btn"
title="Delete this review"
@click=${this.deleteReview}
>
${wm}
</button>
`:Qt}
<div class="top-line">
<b>${le("Reviewer:")}</b> ${this.reviewerTemplate} -
${this.starsTemplate}${this.createDateTemplate}
</div>
<div class="subject">
<b>${le("Subject: ")}</b>${this.subjectTemplate}
</div>
<div class="body">
${this.deleteMsg?Ot`<i>${le(this.deleteMsg)}</i>`:this.bodyTemplate}
</div>
${this.truncationButtonsTemplate}
</article>
`:Ot`
<div class="error">
${le("This review cannot be displayed at this time.")}
</div>
`}get subjectTemplate(){var t;let i=(t=this.review)===null||t===void 0?void 0:t.reviewtitle;return this.truncateContent(i!=null?i:"",this.maxSubjectLength)}get bodyTemplate(){var t;let i=(t=this.review)===null||t===void 0?void 0:t.reviewbody;if(!i)return Qt;let r=fm(i),l=this.truncateContent(r,this.maxBodyLength);return Ot`${zr(this.prepReview(l))}`}get truncationButtonsTemplate(){var t,i,r,l,c,d;return this.bypassTruncation?Qt:((r=(i=(t=this.review)===null||t===void 0?void 0:t.reviewtitle)===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0)<=this.maxSubjectLength&&((d=(c=(l=this.review)===null||l===void 0?void 0:l.reviewbody)===null||c===void 0?void 0:c.length)!==null&&d!==void 0?d:0)<=this.maxBodyLength?Qt:this.showTruncatedContent?this.lessButtonTemplate:this.moreButtonTemplate}get moreButtonTemplate(){return Ot`
<button
class="simple-link more-btn"
@click=${()=>this.showTruncatedContent=!0}
>
${le("More...")}
</button>
`}get lessButtonTemplate(){return Ot`<button
class="simple-link less-btn"
@click=${()=>this.showTruncatedContent=!1}
>
${le("...Less")}
</button>`}get reviewerTemplate(){return this.review?this.review.reviewer_itemname?Ot`
<a
href="${this.baseHost}/details/${this.review.reviewer_itemname}"
class="reviewer-link simple-link"
data-event-click-tracking="ItemReviews|ReviewerLink"
>
${kh(this.review.reviewer)}
</a>
`:Ot`${kh(this.review.reviewer)}`:Qt}get starsTemplate(){return!this.review||!this.review.stars?Qt:Ot`
<div
class="review-stars"
title="${le(`${this.review.stars} out of 5 stars`)}"
>
${new Array(Number(this.review.stars)).fill(null).map(()=>Ot`<div class="review-star">${dm}</div>`)}
</div>
-
`}get createDateTemplate(){var t,i;if(!(!((t=this.review)===null||t===void 0)&&t.createdate)||!(!((i=this.review)===null||i===void 0)&&i.reviewdate))return Qt;let r=new Date(this.review.reviewdate),l=new Date(this.review.createdate),c=l.toLocaleString("en-us",{month:"long",day:"numeric",year:"numeric"}),d=r.getTime()!==l.getTime()?"(edited)":"";return le(`${c} ${d}`)}generateDomId(){var t;return!((t=this.review)===null||t===void 0)&&t.createdate?`review-${Date.parse(this.review.createdate.toString())}`:""}truncateContent(t,i){return this.showTruncatedContent||this.bypassTruncation?t:mm(t,i)}prepReview(t){return bm(ym(t))}deleteReview(){return ye(this,null,function*(){if(!this.review||!this.identifier||!confirm(le("Are you sure you want to delete this review?")))return;let t=`${this.baseHost}/edit-reviews.php?identifier=${this.identifier}&deleteReviewer=${this.review.reviewer}&deleteReviewerItemname=${this.review.reviewer_itemname}`;try{yield fetch(t,{method:"POST"}),this.deleteMsg="This review has been queued for deletion."}catch(i){this.deleteMsg="Sorry, we were unable to delete this review."}})}static get styles(){return It`
:host {
font-family: var(
--ia-font-stack,
'Helvetica Neue',
Helvetica,
Arial,
sans-serif
);
font-size: inherit;
--container-bg-color: #fbfbfd;
--container-border-color: #999999;
}
.review {
position: relative;
padding-right: 30px;
}
.error {
color: var(--error-color, #cc0000);
}
.top-line {
margin-bottom: 0.5rem;
}
.top-line > * {
display: inline-block;
}
.review-star {
width: 1rem;
display: inline-block;
}
.simple-link,
.body a {
color: var(--link-color, #4b64ff);
text-decoration: none;
background: transparent;
border: none;
padding: 0px;
}
.simple-link:hover,
.body a:hover {
cursor: pointer;
text-decoration: underline;
}
.subject {
margin-bottom: 0.5rem;
}
.delete-btn {
position: absolute;
top: 0;
right: 0;
padding: 0;
background: none;
border: 0;
}
.delete-btn:hover {
cursor: pointer;
}
.delete-icon {
width: 20px;
mix-blend-mode: multiply;
}
`}};F([Pt({type:Object})],Xi.prototype,"review",void 0);F([Pt({type:String})],Xi.prototype,"identifier",void 0);F([Pt({type:Number})],Xi.prototype,"maxSubjectLength",void 0);F([Pt({type:Number})],Xi.prototype,"maxBodyLength",void 0);F([Pt({type:String})],Xi.prototype,"baseHost",void 0);F([Pt({type:Boolean})],Xi.prototype,"canDelete",void 0);F([Pt({type:Boolean})],Xi.prototype,"bypassTruncation",void 0);F([ze()],Xi.prototype,"showTruncatedContent",void 0);F([ze()],Xi.prototype,"deleteMsg",void 0);Xi=F([Ge("ia-review")],Xi);var Be=class extends Ie{constructor(){super(...arguments),this.token="",this.baseHost="https://archive.org",this.endpointPath="/write-review.php",this.submitterScreenname="Anonymous",this.bypassRecaptcha=!1,this.currentStars=0,this.currentSubjectLength=0,this.currentBodyLength=0,this.formCanSubmit=!1,this.submissionInProgress=!1,this.RECAPTCHA_ERROR_MESSAGE="Could not validate review. Please try again later.",this.GENERIC_ERROR_MESSAGE="There's been a temporary error. Please wait a moment and try again."}render(){return Ot`<form id="review-form" @submit=${this.handleSubmit}>
${this.unrecoverableError?this.unrecoverableErrorTemplate:Ot`
<span class="inputs">
${this.starsInputTemplate} ${this.subjectInputTemplate}
${this.bodyInputTemplate} ${this.hiddenInputsTemplate}
</span>
`}
${this.recaptchaMessageTemplate} ${this.recoverableErrorTemplate}
${this.actionButtonsTemplate}
</form>`}willUpdate(t){var i,r,l,c,d,f,g,b;t.has("oldReview")&&(this.currentStars=(r=(i=this.oldReview)===null||i===void 0?void 0:i.stars)!==null&&r!==void 0?r:0,this.currentSubjectLength=(d=(c=(l=this.oldReview)===null||l===void 0?void 0:l.reviewtitle)===null||c===void 0?void 0:c.length)!==null&&d!==void 0?d:0,this.currentBodyLength=(b=(g=(f=this.oldReview)===null||f===void 0?void 0:f.reviewbody)===null||g===void 0?void 0:g.length)!==null&&b!==void 0?b:0),t.has("recaptchaManager")&&!this.bypassRecaptcha&&this.recaptchaManager&&this.setupRecaptcha(),t.has("unrecoverableError")&&(this.formCanSubmit=this.checkSubmissionAllowed()),(t.has("currentSubjectLength")||t.has("currentBodyLength")||t.has("maxSubjectLength")||t.has("maxBodyLength"))&&(this.formCanSubmit=this.checkSubmissionAllowed())}get unrecoverableErrorTemplate(){return this.unrecoverableError?Ot`
<div class="unrecoverable-error">
<span class="error-msg">${le(this.unrecoverableError)}</span>
</div>
`:Qt}get recoverableErrorTemplate(){return this.recoverableError?Ot`
<div class="recoverable-error">
${zr(this.sanitizeErrorMsg(le(this.recoverableError)))}
</div>
`:Qt}get recaptchaMessageTemplate(){return this.bypassRecaptcha?Qt:Ot`
<span class="recaptcha-disclaimer"
>${le(Ot`This site is protected by reCAPTCHA and the Google
<a
target="_blank"
class="inline-link"
href="https://policies.google.com/privacy"
>Privacy Policy</a
>
and
<a
target="_blank"
class="inline-link"
href="https://policies.google.com/terms"
>Terms of Service</a
>
apply.`)}</span
>
`}get starsInputTemplate(){return Ot`
<div class="form-heading rating">
<label for="stars-field">${le("Rating (optional)")}</label>
</div>
<input
type="hidden"
name="field_stars"
id="stars-input"
.value=${this.currentStars.toString()}
required
/>
<div class="stars">
${[1,2,3,4,5].map(t=>this.renderStar(t))}
<button
type="button"
class="clear-stars-btn"
@click=${this.handleClearBtnClicked}
>
${le("Clear")}
</button>
</div>
`}get subjectInputTemplate(){var t,i;return Ot`
<span id="subject-input" class="input-box ${this.maxSubjectLength&&this.currentSubjectLength>this.maxSubjectLength?"error":""}"
><div class="form-heading">
<label for="field_reviewtitle">${le("Subject")}</label>
${this.maxSubjectLength?Ot`<div class="char-count subject">
${this.currentSubjectLength}/${this.maxSubjectLength}
</div>`:Qt}
</div>
<input
type="text"
name="field_reviewtitle"
id="field_reviewtitle"
.value=${(i=(t=this.oldReview)===null||t===void 0?void 0:t.reviewtitle)!==null&&i!==void 0?i:""}
@input=${this.handleSubjectChanged}
required
/>${this.maxSubjectLength?Ot`
<div class="input-error">
${le(`Subject may only have ${this.maxSubjectLength} characters`)}
</div>
`:Qt}</div></span>
`}get bodyInputTemplate(){var t,i;return Ot`
<span
id="body-input"
class="input-box ${this.maxBodyLength&&this.currentBodyLength>this.maxBodyLength?"error":""}"
><div class="form-heading">
<label for="field_reviewbody">${le("Review")}</label>
${this.maxBodyLength?Ot`<div class="char-count body">
${this.currentBodyLength}/${this.maxBodyLength}
</div>`:Qt}
</div>
<textarea
name="field_reviewbody"
id="field_reviewbody"
.value=${(i=(t=this.oldReview)===null||t===void 0?void 0:t.reviewbody)!==null&&i!==void 0?i:""}
rows="10"
cols="50"
required
@input=${this.handleBodyChanged}
></textarea>
${this.maxBodyLength?Ot`
<div class="input-error">
${le(`Review may only have ${this.maxBodyLength} characters`)}
</div>
`:Qt}
</span>
`}get hiddenInputsTemplate(){return Ot`
<input type="hidden" name="field_reviewtoken" .value=${this.token} />
${this.identifier?Ot`<input
type="hidden"
name="identifier"
.value=${this.identifier}
/>`:Qt}
`}get actionButtonsTemplate(){return Ot`<div class="action-btns">
<button
type="button"
class="ia-button dark"
data-testid="cancel-btn"
@click=${this.cancelReviewEdit}
>
${le("Cancel")}
</button>
<button
type="submit"
class="ia-button primary"
name="submit"
?disabled=${!this.formCanSubmit||this.submissionInProgress}
>
${this.submissionInProgress?Ot`
<span class="loading-indicator" alt="Loading indicator">
<ia-activity-indicator></ia-activity-indicator>
</span>
`:le("Submit review")}
</button>
</div>`}renderStar(t){let i=t===this.currentStars,r=le(`Rate ${t>1?`${t} stars`:"1 star"}`);return Ot`
<button
class="star star-${t}"
title=${i?le("Clear rating"):r}
@click=${l=>this.handleStarClicked(l,t)}
>
${t<=this.currentStars?hm:um}
</button>
`}setupRecaptcha(){return ye(this,null,function*(){var t;try{this.recaptchaWidget=yield(t=this.recaptchaManager)===null||t===void 0?void 0:t.getRecaptchaWidget()}catch(i){this.unrecoverableError=this.RECAPTCHA_ERROR_MESSAGE}})}sanitizeErrorMsg(t){return Yo.sanitize(t,{ALLOWED_TAGS:["a","b","br"]})}handleSubmit(t){return ye(this,null,function*(){var i;if(t.preventDefault(),!(!this.formCanSubmit||this.submissionInProgress)){if(this.submissionInProgress=!0,this.recoverableError="",!this.reviewForm.reportValidity())return this.stopSubmission();if(!this.fetchHandler)return this.recoverableError=this.GENERIC_ERROR_MESSAGE,this.stopSubmission();try{let r=new URLSearchParams;if(!this.bypassRecaptcha){let c=yield this.getRecaptchaToken();if(!c)return this.handleRecaptchaError();r.append("g-recaptcha-response",c!=null?c:"")}for(let c of new FormData(this.reviewForm))r.append(c[0],c[1]);r.append("submitter","review-form");let l=yield this.fetchHandler.fetchApiResponse(`${this.baseHost}${this.endpointPath}`,{method:"POST",includeCredentials:!0,body:r});if((l==null?void 0:l.success)===!0){this.submissionInProgress=!1;let c=this.generateSubmittedReview(),d=new CustomEvent("reviewUpdated",{detail:c});this.dispatchEvent(d)}else this.recoverableError=(i=l.error)!==null&&i!==void 0?i:this.GENERIC_ERROR_MESSAGE,this.stopSubmission()}catch(r){console.error(r),this.recoverableError=this.GENERIC_ERROR_MESSAGE,this.stopSubmission()}}})}generateSubmittedReview(){var t,i,r,l,c,d;let f=new Date().toDateString();return new _n({reviewtitle:this.reviewForm.field_reviewtitle.value,reviewbody:this.reviewForm.field_reviewbody.value,stars:this.reviewForm.field_stars.value,reviewdate:f,reviewer:(i=(t=this.oldReview)===null||t===void 0?void 0:t.reviewer)!==null&&i!==void 0?i:this.submitterScreenname,reviewer_itemname:(l=(r=this.oldReview)===null||r===void 0?void 0:r.reviewer_itemname)!==null&&l!==void 0?l:this.submitterItemname,createdate:(d=this.dateToString((c=this.oldReview)===null||c===void 0?void 0:c.createdate))!==null&&d!==void 0?d:f})}dateToString(t){return t instanceof Date?t.toDateString():t}getRecaptchaToken(){return ye(this,null,function*(){if(!this.recaptchaWidget){this.handleRecaptchaError();return}try{return yield this.recaptchaWidget.execute()}catch(t){this.handleRecaptchaError();return}})}handleRecaptchaError(){this.recoverableError=this.RECAPTCHA_ERROR_MESSAGE,this.stopSubmission()}stopSubmission(){this.submissionInProgress&&(this.submissionInProgress=!1)}cancelReviewEdit(){let t=new CustomEvent("reviewEditCanceled");this.dispatchEvent(t)}handleStarClicked(t,i){t.preventDefault(),this.setStars(i)}handleClearBtnClicked(t){t.preventDefault(),this.currentStars=0}setStars(t){this.currentStars=t===this.currentStars?0:t}handleSubjectChanged(t){let i=t.target;this.currentSubjectLength=i.value.length}handleBodyChanged(t){let i=t.target;this.currentBodyLength=i.value.length}checkSubmissionAllowed(){return!(this.unrecoverableError||!this.currentBodyLength||!this.currentSubjectLength||this.maxSubjectLength&&this.currentSubjectLength>this.maxSubjectLength||this.maxBodyLength&&this.currentBodyLength>this.maxBodyLength)}static get styles(){return[Pr,It`
.form-heading {
display: flex;
flex-direction: row;
justify-content: space-between;
padding-top: 15px;
}
.form-heading.rating {
padding-top: 0;
}
.form-heading label {
font-size: 1.6rem;
font-weight: bold;
}
label {
display: inline-block;
margin-bottom: 5px;
}
textarea,
input[type='text'],
.unrecoverable-error {
padding: 5px;
width: calc(100% - 10px);
font-family: inherit;
border-radius: 5px;
border: 1px solid var(--container-border-color, #999999);
}
.input-box.error input,
.input-box.error textarea {
border: 2px solid var(--container-error-color, #ea0202);
}
.input-box.error .char-count,
.input-error,
.unrecoverable-error,
.recoverable-error {
color: var(--container-error-color, #ea0202);
}
.input-error {
display: none;
}
.input-box.error .input-error {
display: block;
text-align: right;
padding-top: 5px;
}
.inline-link {
color: var(--container-link-color, #4f65f5);
text-decoration: none;
}
.inline-link:hover {
text-decoration: underline;
}
.stars {
display: flex;
flex-direction: row;
gap: 2px;
align-items: center;
}
.star {
all: unset;
height: 30px;
width: 30px;
}
.star:hover {
cursor: pointer;
}
.clear-stars-btn,
.recoverable-error a {
padding: 0 5px;
color: var(--container-link-color, #4f65f5);
font-family: inherit;
border: none;
background: transparent;
display: inline-block;
padding-top: 5px;
}
.clear-stars-btn:hover,
.recoverable-error a:hover {
cursor: pointer;
text-decoration: underline;
}
.action-btns {
width: 100%;
display: flex;
justify-content: flex-end;
gap: 10px;
padding-top: 15px;
}
.ia-button:disabled {
opacity: 0.75;
}
.ia-button:disabled:hover {
cursor: not-allowed;
}
.unrecoverable-error {
min-height: 50px;
padding: 5px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
background-color: var(--container-bg-color, #fbfbfd);
}
.loading-indicator {
display: block;
width: 20px;
height: 20px;
margin-top: 2px;
--activityIndicatorLoadingRingColor: #fff;
--activityIndicatorLoadingDotColor: #fff;
}
.recaptcha-disclaimer {
font-size: 1.2rem;
}
@media only screen and (max-width: 350px) {
.action-btns {
flex-direction: column-reverse;
align-items: center;
}
}
`]}};F([Pt({type:String})],Be.prototype,"identifier",void 0);F([Pt({type:String})],Be.prototype,"token",void 0);F([Pt({type:String})],Be.prototype,"baseHost",void 0);F([Pt({type:String})],Be.prototype,"endpointPath",void 0);F([Pt({type:String})],Be.prototype,"submitterScreenname",void 0);F([Pt({type:String})],Be.prototype,"submitterItemname",void 0);F([Pt({type:Object})],Be.prototype,"oldReview",void 0);F([Pt({type:String})],Be.prototype,"unrecoverableError",void 0);F([Pt({type:Number})],Be.prototype,"maxSubjectLength",void 0);F([Pt({type:Number})],Be.prototype,"maxBodyLength",void 0);F([Pt({type:Object})],Be.prototype,"fetchHandler",void 0);F([Pt({type:Object})],Be.prototype,"recaptchaManager",void 0);F([Pt({type:Boolean})],Be.prototype,"bypassRecaptcha",void 0);F([ze()],Be.prototype,"currentStars",void 0);F([ze()],Be.prototype,"currentSubjectLength",void 0);F([ze()],Be.prototype,"currentBodyLength",void 0);F([ze()],Be.prototype,"recoverableError",void 0);F([ze()],Be.prototype,"formCanSubmit",void 0);F([ze()],Be.prototype,"submissionInProgress",void 0);F([_i("#review-form")],Be.prototype,"reviewForm",void 0);Be=F([Ge("ia-review-form")],Be);var Me=class extends Ie{constructor(){super(...arguments),this.reviews=[],this.reviewsDisabled=!1,this.reviewsFrozen=!1,this.canDelete=!1,this.displayReviewsByDefault=!1,this.baseHost="https://archive.org",this.token="",this.endpointPath="/write-review.php",this.submitterScreenname="Anonymous",this.bypassRecaptcha=!1,this.reviewAddEditRequested=!1,this.fetchHandler=new Bc,this.displayReviewForm=!1,this.displayReviews=!1,this.filteredReviews=[],this.reviewsCount=0,this.recaptchaActivated=!1}render(){return this.reviewsDisabled?this.reviewsDisabledTemplate:this.reviewsCount===0&&!this.displayReviewForm?this.noReviewsMsgTemplate:this.displayReviews?Ot`
<div class="reviews-list">
${this.reviewsFrozen?Ot`<div class="message">
${le("Reviews can no longer be added to this item.")}
</div>`:Qt}
${this.editableCurrentReviewTemplate}
${this.filteredReviews.map(t=>t.reviewer_itemname!==this.submitterItemname?this.renderReview(t):Qt)}
</div>
`:this.displayReviewsMsgTemplate}willUpdate(t){(t.has("reviews")||t.has("submitterItemname"))&&(this.reviewsCount=this.reviews.length,this.sortFilterReviews()),t.has("displayReviewForm")&&this.displayReviewForm===!0&&(!this.bypassRecaptcha&&!this.recaptchaActivated&&(this.recaptchaActivated=!0),this.displayReviews=!0),t.has("displayReviewsByDefault")&&this.displayReviewsByDefault&&(this.displayReviews=!0)}get reviewsDisabledTemplate(){return Ot`<div class="message">
${le("Reviews have been disabled for this item.")}
</div>`}get noReviewsMsgTemplate(){return this.reviewsFrozen?Ot`
<div class="message">
${le("Reviews cannot be added to this item.")}
</div>
`:Ot`
<div class="message">
${le("There are no reviews yet.")}
${le(Ot`
Be the first one to
<button
class="ia-button link no-reviews-btn"
@click=${this.addEditReview}
>
write a review</button
>.
`)}
</div>
`}get displayReviewsMsgTemplate(){return Ot`
<div class="message">
${this.reviewsCount===1?le("There is 1 review for this item."):le(`There are ${this.reviewsCount} reviews for this item.`)}
<button
class="ia-button link display-reviews-btn"
@click=${()=>this.displayReviews=!0}
>
${le(`Display ${this.reviewsCount===1?"review":"reviews"}`)}</button
>.
</div>
`}get editableCurrentReviewTemplate(){return!this.displayReviewForm&&!this.currentReview?Qt:Ot`<div class="own-review-container">
${this.displayReviewForm?Ot`<ia-review-form
.identifier=${this.identifier}
.oldReview=${this.currentReview}
.baseHost=${this.baseHost}
.endpointPath=${this.endpointPath}
.submitterItemname=${this.submitterItemname}
.submitterScreenname=${this.submitterScreenname}
.maxSubjectLength=${this.maxSubjectLength}
.maxBodyLength=${this.maxBodyLength}
.token=${this.token}
.unrecoverableError=${this.reviewSubmissionError}
.fetchHandler=${this.fetchHandler}
.recaptchaManager=${this.recaptchaActivated?this.recaptchaManager:void 0}
?bypassRecaptcha=${this.bypassRecaptcha}
@reviewUpdated=${this.handleReviewUpdate}
@reviewEditCanceled=${this.handleEditCanceled}
></ia-review-form>`:this.renderReview(this.currentReview)}
</div>`}sortFilterReviews(){let t,i=[];this.reviews.forEach(r=>{!t&&r.reviewer_itemname===this.submitterItemname?t=r:i.push(r)}),this.currentReview=t,this.filteredReviews=this.sortReviews(i)}sortReviews(t){return[...t].sort((i,r)=>i.createdate&&r.createdate?new Date(r.createdate).getTime()-new Date(i.createdate).getTime():0)}renderReview(t){return t?Ot`<ia-review
.review=${t}
.identifier=${this.identifier}
?canDelete=${this.canDelete}
?bypassTruncation=${this.displayReviewsByDefault}
.baseHost=${this.baseHost}
></ia-review>`:Qt}addEditReview(){this.bypassRecaptcha||(this.recaptchaActivated=!0),this.displayReviewForm=!0}handleReviewUpdate(t){!this.currentReview&&t.detail&&(this.dispatchEvent(new CustomEvent("newReviewAdded")),this.reviewsCount+=1),this.currentReview=t.detail,this.displayReviewForm=!1}handleEditCanceled(){this.displayReviewForm=!1,this.reviewsCount===0&&(this.displayReviews=!1)}static get styles(){return[Pr,It`
:host {
font-family: var(
--ia-font-stack,
'Helvetica Neue',
Helvetica,
Arial,
sans-serif
);
color: var(--ia-text-color, #2c2c2c);
}
.reviews-list {
display: flex;
flex-direction: column;
gap: 2rem;
width: 100%;
}
.own-review-container {
--error-color: var(--container-error-color, #ea0202);
--link-color: var(--container-link-color, #4f65f5);
--container-error-color: #ea0202;
--container-link-color: #4f65f5;
--container-bg-color: #fbfbfd;
--container-border-color: #999999;
border: 2px solid var(--container-border-color, #999999);
border-radius: 5px;
background-color: var(--container-bg-color, #fbfbfd);
padding: 10px;
}
.message {
font-weight: 200;
}
.message .ia-button {
display: inline;
vertical-align: baseline;
padding: 0;
font-weight: 600;
}
`]}};F([Pt({type:String})],Me.prototype,"identifier",void 0);F([Pt({type:Array})],Me.prototype,"reviews",void 0);F([Pt({type:Boolean})],Me.prototype,"reviewsDisabled",void 0);F([Pt({type:Boolean})],Me.prototype,"reviewsFrozen",void 0);F([Pt({type:Boolean})],Me.prototype,"canDelete",void 0);F([Pt({type:Boolean})],Me.prototype,"displayReviewsByDefault",void 0);F([Pt({type:Number})],Me.prototype,"maxSubjectLength",void 0);F([Pt({type:Number})],Me.prototype,"maxBodyLength",void 0);F([Pt({type:String})],Me.prototype,"baseHost",void 0);F([Pt({type:String})],Me.prototype,"token",void 0);F([Pt({type:String})],Me.prototype,"endpointPath",void 0);F([Pt({type:String})],Me.prototype,"submitterScreenname",void 0);F([Pt({type:String})],Me.prototype,"submitterItemname",void 0);F([Pt({type:Object})],Me.prototype,"recaptchaManager",void 0);F([Pt({type:Boolean})],Me.prototype,"bypassRecaptcha",void 0);F([Pt({type:String})],Me.prototype,"reviewSubmissionError",void 0);F([Pt({type:Boolean})],Me.prototype,"reviewAddEditRequested",void 0);F([Pt({type:Object})],Me.prototype,"fetchHandler",void 0);F([ze()],Me.prototype,"displayReviewForm",void 0);F([ze()],Me.prototype,"displayReviews",void 0);F([ze()],Me.prototype,"filteredReviews",void 0);F([ze()],Me.prototype,"currentReview",void 0);F([ze()],Me.prototype,"reviewsCount",void 0);F([ze()],Me.prototype,"recaptchaActivated",void 0);Me=F([Ge("ia-reviews")],Me);var Ch=()=>({events:{},emit(t,...i){(this.events[t]||[]).forEach(r=>r(...i))},on(t,i){return(this.events[t]=this.events[t]||[]).push(i),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==i)}});function _m(t){return new Promise(i=>setTimeout(i,t))}var on;(function(t){t.retryNumber="retryNumber",t.owner="owner",t.dynamicImportLoaded="dynamicImportLoaded",t.hasBeenRetried="hasBeenRetried"})(on||(on={}));var Sh="lazyLoaderService",Th=class{constructor(t){var i,r,l;this.emitter=Ch(),this.container=(i=t==null?void 0:t.container)!==null&&i!==void 0?i:document.head,this.retryCount=(r=t==null?void 0:t.retryCount)!==null&&r!==void 0?r:2,this.retryInterval=(l=t==null?void 0:t.retryInterval)!==null&&l!==void 0?l:1}on(t,i){return this.emitter.on(t,i)}loadBundle(t){return Mo(this,void 0,void 0,function*(){let i,r;return t.module&&(i=this.loadScript({src:t.module,bundleType:"module"})),t.nomodule&&(r=this.loadScript({src:t.nomodule,bundleType:"nomodule"})),Promise.race([i,r])})}loadScript(t){return Mo(this,void 0,void 0,function*(){return this.doLoad(t)})}doLoad(t){var i;return Mo(this,void 0,void 0,function*(){let r=(i=t.retryNumber)!==null&&i!==void 0?i:0,l=`script[src='${t.src}'][async][${on.owner}='${Sh}'][${on.retryNumber}='${r}']`,c=this.container.querySelector(l);return c||(c=this.getScriptTag(Object.assign(Object.assign({},t),{retryNumber:r})),this.container.appendChild(c)),new Promise((d,f)=>{if(c.getAttribute(on.dynamicImportLoaded)){d();return}let g=t.scriptBeingRetried,b=c.onload||(g==null?void 0:g.onload);c.onload=w=>{b==null||b(w),c.setAttribute(on.dynamicImportLoaded,"true"),d()};let x=c.onerror||(g==null?void 0:g.onerror);c.onerror=w=>Mo(this,void 0,void 0,function*(){let A=c.getAttribute(on.hasBeenRetried);if(r<this.retryCount&&!A){c.setAttribute(on.hasBeenRetried,"true"),yield _m(this.retryInterval*1e3);let M=r+1;this.emitter.emit("scriptLoadRetried",t.src,M),this.doLoad(Object.assign(Object.assign({},t),{retryNumber:M,scriptBeingRetried:c}))}else A||this.emitter.emit("scriptLoadFailed",t.src,w),x==null||x(w),f(w)})})})}getScriptTag(t){var i;let r=t.src.replace("'",'"'),l=document.createElement("script"),c=t.retryNumber;l.setAttribute(on.owner,Sh),l.setAttribute("src",r),l.setAttribute(on.retryNumber,c.toString()),l.async=!0;let d=(i=t.attributes)!==null&&i!==void 0?i:{};switch(Object.keys(d).forEach(f=>{l.setAttribute(f,d[f])}),t.bundleType){case"module":l.setAttribute("type",t.bundleType);break;case"nomodule":l.setAttribute(t.bundleType,"");break;default:break}return l}};var xm=class{constructor(t,i){this.widgetId=null,this.isExecuting=!1,this.siteKey=t.siteKey,this.grecaptchaLibrary=t.grecaptchaLibrary;let r=this.createContainer();this.setup(r,i)}execute(){return ye(this,null,function*(){let{widgetId:t}=this;if(t===null)throw new Error("Recaptcha is not setup");return this.isExecuting&&this.finishExecution(),this.isExecuting=!0,new Promise((i,r)=>{this.executionSuccessBlock=l=>{this.finishExecution(),i(l)},this.executionExpiredBlock=()=>{this.finishExecution(),r(new Error("expired"))},this.executionErrorBlock=()=>{this.finishExecution(),r(new Error("error"))},this.grecaptchaLibrary.execute(t)})})}finishExecution(){this.isExecuting=!1;let{widgetId:t}=this;t!==null&&this.grecaptchaLibrary.reset(t)}setup(t,i){var r;this.widgetId=this.grecaptchaLibrary.render(t,{callback:this.responseHandler.bind(this),"expired-callback":this.expiredHandler.bind(this),"error-callback":this.errorHandler.bind(this),sitekey:this.siteKey,tabindex:i==null?void 0:i.tabindex,theme:i==null?void 0:i.theme,type:i==null?void 0:i.type,size:(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"invisible",badge:i==null?void 0:i.badge})}createContainer(t){let i=`recaptchaManager-${this.siteKey}`,r=document.getElementById(i);return r||(r=document.createElement("div"),r.id=i,r.style.position="fixed",r.style.top="50%",r.style.left="50%",r.style.zIndex=t?`${t}`:"10",document.body.appendChild(r)),r}responseHandler(t){this.executionSuccessBlock&&(this.executionSuccessBlock(t),this.executionSuccessBlock=void 0)}expiredHandler(){this.executionExpiredBlock&&(this.executionExpiredBlock(),this.executionExpiredBlock=void 0)}errorHandler(){this.executionErrorBlock&&(this.executionErrorBlock(),this.executionErrorBlock=void 0)}},Eh=class{constructor(t){var i;this.recaptchaCache={},this.defaultSiteKey=t==null?void 0:t.defaultSiteKey,this.lazyLoader=(i=t==null?void 0:t.lazyLoader)!==null&&i!==void 0?i:new Th,this.grecaptchaLibraryCache=t==null?void 0:t.grecaptchaLibrary}getRecaptchaWidget(t){return ye(this,null,function*(){var i;let r=(i=t==null?void 0:t.siteKey)!==null&&i!==void 0?i:this.defaultSiteKey;if(!r)throw new Error("The reCaptcha widget requires a site key");let l=this.recaptchaCache[r];if(l)return l;let c=yield this.getRecaptchaLibrary(),d=new xm({siteKey:r,grecaptchaLibrary:c},t==null?void 0:t.recaptchaParams);return this.recaptchaCache[r]=d,d})}getRecaptchaLibrary(){return ye(this,null,function*(){return this.grecaptchaLibraryCache?this.grecaptchaLibraryCache:new Promise(t=>{window.grecaptchaLoadedCallback=()=>{setTimeout(()=>{delete window.grecaptchaLoadedCallback},10),this.grecaptchaLibraryCache=window.grecaptcha,t(window.grecaptcha)},this.lazyLoader.loadScript({src:"https://www.google.com/recaptcha/api.js?onload=grecaptchaLoadedCallback&render=explicit"})})})}};function km(t){var c;let i=new Eh({defaultSiteKey:"6Ld64a8UAAAAAGbDwi1927ztGNw7YABQ-dqzvTN2"});t.recaptchaManager=i;let r=document.getElementById("reviews-list");if(!r)return;let l=JSON.parse((c=r.value)!=null?c:"[]");t.reviews=l}function Cm(t){let i=document.querySelector(".reviews-placeholder");i&&(i.style.display="none");let r=document.querySelector(".js-reviews-addEditReview");r&&(r.style.display="block",r.addEventListener("click",()=>{t.displayReviewForm=!0})),t.style.display="block"}function Sm(){let t=document.querySelector(".add-review-msg");t&&(t.innerText="Edit My Review");let i=document.querySelector(".review-count .item-stats-summary__count"),r=document.querySelector(".header-review-count");if(!i){r&&(r.innerText="(1)");return}let l=parseInt(i.innerText,10)+1;i.innerText=l,r&&(r.innerText=`(${l})`)}document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector("ia-reviews");t&&(km(t),Cm(t),t.addEventListener("newReviewAdded",i=>{Sm()}))});var Ur=globalThis,qr=Ur.ShadowRoot&&(Ur.ShadyCSS===void 0||Ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bs=Symbol(),Ah=new WeakMap,ws=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==bs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(qr&&t===void 0){let r=i!==void 0&&i.length===1;r&&(t=Ah.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Ah.set(i,t))}return t}toString(){return this.cssText}},$h=t=>new ws(typeof t=="string"?t:t+"",void 0,bs),Ji=(t,...i)=>{let r=t.length===1?t[0]:i.reduce((l,c,d)=>l+(f=>{if(f._$cssResult$===!0)return f.cssText;if(typeof f=="number")return f;throw Error("Value passed to 'css' function must be a 'css' function result: "+f+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(c)+t[d+1],t[0]);return new ws(r,t,bs)},Vr=(t,i)=>{if(qr)t.adoptedStyleSheets=i.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of i){let l=document.createElement("style"),c=Ur.litNonce;c!==void 0&&l.setAttribute("nonce",c),l.textContent=r.cssText,t.appendChild(l)}},vo=qr?t=>t:t=>t instanceof CSSStyleSheet?(i=>{let r="";for(let l of i.cssRules)r+=l.cssText;return $h(r)})(t):t;var{is:Tm,defineProperty:Em,getOwnPropertyDescriptor:Am,getOwnPropertyNames:$m,getOwnPropertySymbols:Dm,getPrototypeOf:Mm}=Object,xn=globalThis,Dh=xn.trustedTypes,Im=Dh?Dh.emptyScript:"",_s=xn.reactiveElementPolyfillSupport,Go=(t,i)=>t,xs={toAttribute(t,i){switch(i){case Boolean:t=t?Im:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let r=t;switch(i){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(l){r=null}}return r}},Nh=(t,i)=>!Tm(t,i),Mh={attribute:!0,type:String,converter:xs,reflect:!1,useDefault:!1,hasChanged:Nh},Ih,Ph;(Ih=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ph=xn.litPropertyMetadata)!=null||(xn.litPropertyMetadata=new WeakMap);var Vn=class extends HTMLElement{static addInitializer(t){var i;this._$Ei(),((i=this.l)!=null?i:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=Mh){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){let r=Symbol(),l=this.getPropertyDescriptor(t,r,i);l!==void 0&&Em(this.prototype,t,l)}}static getPropertyDescriptor(t,i,r){var d;let{get:l,set:c}=(d=Am(this.prototype,t))!=null?d:{get(){return this[i]},set(f){this[i]=f}};return{get:l,set(f){let g=l==null?void 0:l.call(this);c==null||c.call(this,f),this.requestUpdate(t,g,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var i;return(i=this.elementProperties.get(t))!=null?i:Mh}static _$Ei(){if(this.hasOwnProperty(Go("elementProperties")))return;let t=Mm(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Go("properties"))){let i=this.properties,r=[...$m(i),...Dm(i)];for(let l of r)this.createProperty(l,i[l])}let t=this[Symbol.metadata];if(t!==null){let i=litPropertyMetadata.get(t);if(i!==void 0)for(let[r,l]of i)this.elementProperties.set(r,l)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let l=this._$Eu(i,r);l!==void 0&&this._$Eh.set(l,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let l of r)i.unshift(vo(l))}else t!==void 0&&i.push(vo(t));return i}static _$Eu(t,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(i=>i(this))}addController(t){var i,r;((i=this._$EO)!=null?i:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var i;(i=this._$EO)==null||i.delete(t)}_$E_(){let t=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var i;let t=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return Vr(t,this.constructor.elementStyles),t}connectedCallback(){var t,i;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(r=>{var l;return(l=r.hostConnected)==null?void 0:l.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostDisconnected)==null?void 0:r.call(i)})}attributeChangedCallback(t,i,r){this._$AK(t,r)}_$ET(t,i){var c;let r=this.constructor.elementProperties.get(t),l=this.constructor._$Eu(t,r);if(l!==void 0&&r.reflect===!0){let d=(((c=r.converter)==null?void 0:c.toAttribute)!==void 0?r.converter:xs).toAttribute(i,r.type);this._$Em=t,d==null?this.removeAttribute(l):this.setAttribute(l,d),this._$Em=null}}_$AK(t,i){var c,d,f;let r=this.constructor,l=r._$Eh.get(t);if(l!==void 0&&this._$Em!==l){let g=r.getPropertyOptions(l),b=typeof g.converter=="function"?{fromAttribute:g.converter}:((c=g.converter)==null?void 0:c.fromAttribute)!==void 0?g.converter:xs;this._$Em=l;let x=b.fromAttribute(i,g.type);this[l]=(f=x!=null?x:(d=this._$Ej)==null?void 0:d.get(l))!=null?f:x,this._$Em=null}}requestUpdate(t,i,r,l=!1,c){var d,f;if(t!==void 0){let g=this.constructor;if(l===!1&&(c=this[t]),r!=null||(r=g.getPropertyOptions(t)),!(((d=r.hasChanged)!=null?d:Nh)(c,i)||r.useDefault&&r.reflect&&c===((f=this._$Ej)==null?void 0:f.get(t))&&!this.hasAttribute(g._$Eu(t,r))))return;this.C(t,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:r,reflect:l,wrapped:c},d){var f,g,b;r&&!((f=this._$Ej)!=null?f:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(g=d!=null?d:i)!=null?g:this[t]),c!==!0||d!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(i=void 0),this._$AL.set(t,i)),l===!0&&this._$Em!==t&&((b=this._$Eq)!=null?b:this._$Eq=new Set).add(t))}_$EP(){return ye(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,l;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let c=this.constructor.elementProperties;if(c.size>0)for(let[d,f]of c){let{wrapped:g}=f,b=this[d];g!==!0||this._$AL.has(d)||b===void 0||this.C(d,void 0,f,b)}}let t=!1,i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(l=this._$EO)==null||l.forEach(c=>{var d;return(d=c.hostUpdate)==null?void 0:d.call(c)}),this.update(i)):this._$EM()}catch(c){throw t=!1,this._$EM(),c}t&&this._$AE(i)}willUpdate(t){}_$AE(t){var i;(i=this._$EO)==null||i.forEach(r=>{var l;return(l=r.hostUpdated)==null?void 0:l.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}},Oh;Vn.elementStyles=[],Vn.shadowRootOptions={mode:"open"},Vn[Go("elementProperties")]=new Map,Vn[Go("finalized")]=new Map,_s==null||_s({ReactiveElement:Vn}),((Oh=xn.reactiveElementVersions)!=null?Oh:xn.reactiveElementVersions=[]).push("2.1.2");var Xo=globalThis,Rh=t=>t,Yr=Xo.trustedTypes,zh=Yr?Yr.createPolicy("lit-html",{createHTML:t=>t}):void 0,Uh="$lit$",kn=`lit$${Math.random().toFixed(9).slice(2)}$`,qh="?"+kn,Pm=`<${qh}>`,Kn=document,Jo=()=>Kn.createComment(""),Qo=t=>t===null||typeof t!="object"&&typeof t!="function",Ts=Array.isArray,Om=t=>Ts(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",ks=`[
\f\r]`,Ko=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lh=/-->/g,Hh=/>/g,Yn=RegExp(`>|${ks}(?:([^\\s"'>=/]+)(${ks}*=${ks}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bh=/'/g,jh=/"/g,Vh=/^(?:script|style|textarea|title)$/i,Es=t=>(i,...r)=>({_$litType$:t,strings:i,values:r}),fi=Es(1),Z_=Es(2),tx=Es(3),Xn=Symbol.for("lit-noChange"),je=Symbol.for("lit-nothing"),Fh=new WeakMap,Gn=Kn.createTreeWalker(Kn,129);function Yh(t,i){if(!Ts(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return zh!==void 0?zh.createHTML(i):i}var Nm=(t,i)=>{let r=t.length-1,l=[],c,d=i===2?"<svg>":i===3?"<math>":"",f=Ko;for(let g=0;g<r;g++){let b=t[g],x,w,A=-1,M=0;for(;M<b.length&&(f.lastIndex=M,w=f.exec(b),w!==null);)M=f.lastIndex,f===Ko?w[1]==="!--"?f=Lh:w[1]!==void 0?f=Hh:w[2]!==void 0?(Vh.test(w[2])&&(c=RegExp("</"+w[2],"g")),f=Yn):w[3]!==void 0&&(f=Yn):f===Yn?w[0]===">"?(f=c!=null?c:Ko,A=-1):w[1]===void 0?A=-2:(A=f.lastIndex-w[2].length,x=w[1],f=w[3]===void 0?Yn:w[3]==='"'?jh:Bh):f===jh||f===Bh?f=Yn:f===Lh||f===Hh?f=Ko:(f=Yn,c=void 0);let O=f===Yn&&t[g+1].startsWith("/>")?" ":"";d+=f===Ko?b+Pm:A>=0?(l.push(x),b.slice(0,A)+Uh+b.slice(A)+kn+O):b+kn+(A===-2?g:O)}return[Yh(t,d+(t[r]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),l]},Ss=class Gh{constructor({strings:i,_$litType$:r},l){let c;this.parts=[];let d=0,f=0,g=i.length-1,b=this.parts,[x,w]=Nm(i,r);if(this.el=Gh.createElement(x,l),Gn.currentNode=this.el.content,r===2||r===3){let A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(c=Gn.nextNode())!==null&&b.length<g;){if(c.nodeType===1){if(c.hasAttributes())for(let A of c.getAttributeNames())if(A.endsWith(Uh)){let M=w[f++],O=c.getAttribute(A).split(kn),E=/([.?@])?(.*)/.exec(M);b.push({type:1,index:d,name:E[2],strings:O,ctor:E[1]==="."?zm:E[1]==="?"?Lm:E[1]==="@"?Hm:Gr}),c.removeAttribute(A)}else A.startsWith(kn)&&(b.push({type:6,index:d}),c.removeAttribute(A));if(Vh.test(c.tagName)){let A=c.textContent.split(kn),M=A.length-1;if(M>0){c.textContent=Yr?Yr.emptyScript:"";for(let O=0;O<M;O++)c.append(A[O],Jo()),Gn.nextNode(),b.push({type:2,index:++d});c.append(A[M],Jo())}}}else if(c.nodeType===8)if(c.data===qh)b.push({type:2,index:d});else{let A=-1;for(;(A=c.data.indexOf(kn,A+1))!==-1;)b.push({type:7,index:d}),A+=kn.length-1}d++}}static createElement(i,r){let l=Kn.createElement("template");return l.innerHTML=i,l}};function yo(t,i,r=t,l){var f,g,b;if(i===Xn)return i;let c=l!==void 0?(f=r._$Co)==null?void 0:f[l]:r._$Cl,d=Qo(i)?void 0:i._$litDirective$;return(c==null?void 0:c.constructor)!==d&&((g=c==null?void 0:c._$AO)==null||g.call(c,!1),d===void 0?c=void 0:(c=new d(t),c._$AT(t,r,l)),l!==void 0?((b=r._$Co)!=null?b:r._$Co=[])[l]=c:r._$Cl=c),c!==void 0&&(i=yo(t,c._$AS(t,i.values),c,l)),i}var Rm=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var b;let{el:{content:i},parts:r}=this._$AD,l=((b=t==null?void 0:t.creationScope)!=null?b:Kn).importNode(i,!0);Gn.currentNode=l;let c=Gn.nextNode(),d=0,f=0,g=r[0];for(;g!==void 0;){if(d===g.index){let x;g.type===2?x=new As(c,c.nextSibling,this,t):g.type===1?x=new g.ctor(c,g.name,g.strings,this,t):g.type===6&&(x=new Bm(c,this,t)),this._$AV.push(x),g=r[++f]}d!==(g==null?void 0:g.index)&&(c=Gn.nextNode(),d++)}return Gn.currentNode=Kn,l}p(t){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,i),i+=r.strings.length-2):r._$AI(t[i])),i++}},As=class Kh{get _$AU(){var i,r;return(r=(i=this._$AM)==null?void 0:i._$AU)!=null?r:this._$Cv}constructor(i,r,l,c){var d;this.type=2,this._$AH=je,this._$AN=void 0,this._$AA=i,this._$AB=r,this._$AM=l,this.options=c,this._$Cv=(d=c==null?void 0:c.isConnected)!=null?d:!0}get parentNode(){let i=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=r.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,r=this){i=yo(this,i,r),Qo(i)?i===je||i==null||i===""?(this._$AH!==je&&this._$AR(),this._$AH=je):i!==this._$AH&&i!==Xn&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Om(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==je&&Qo(this._$AH)?this._$AA.nextSibling.data=i:this.T(Kn.createTextNode(i)),this._$AH=i}$(i){var d;let{values:r,_$litType$:l}=i,c=typeof l=="number"?this._$AC(i):(l.el===void 0&&(l.el=Ss.createElement(Yh(l.h,l.h[0]),this.options)),l);if(((d=this._$AH)==null?void 0:d._$AD)===c)this._$AH.p(r);else{let f=new Rm(c,this),g=f.u(this.options);f.p(r),this.T(g),this._$AH=f}}_$AC(i){let r=Fh.get(i.strings);return r===void 0&&Fh.set(i.strings,r=new Ss(i)),r}k(i){Ts(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,l,c=0;for(let d of i)c===r.length?r.push(l=new Kh(this.O(Jo()),this.O(Jo()),this,this.options)):l=r[c],l._$AI(d),c++;c<r.length&&(this._$AR(l&&l._$AB.nextSibling,c),r.length=c)}_$AR(i=this._$AA.nextSibling,r){var l;for((l=this._$AP)==null?void 0:l.call(this,!1,!0,r);i!==this._$AB;){let c=Rh(i).nextSibling;Rh(i).remove(),i=c}}setConnected(i){var r;this._$AM===void 0&&(this._$Cv=i,(r=this._$AP)==null||r.call(this,i))}},Gr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,r,l,c){this.type=1,this._$AH=je,this._$AN=void 0,this.element=t,this.name=i,this._$AM=l,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=je}_$AI(t,i=this,r,l){let c=this.strings,d=!1;if(c===void 0)t=yo(this,t,i,0),d=!Qo(t)||t!==this._$AH&&t!==Xn,d&&(this._$AH=t);else{let f=t,g,b;for(t=c[0],g=0;g<c.length-1;g++)b=yo(this,f[r+g],i,g),b===Xn&&(b=this._$AH[g]),d||(d=!Qo(b)||b!==this._$AH[g]),b===je?t=je:t!==je&&(t+=(b!=null?b:"")+c[g+1]),this._$AH[g]=b}d&&!l&&this.j(t)}j(t){t===je?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},zm=class extends Gr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===je?void 0:t}},Lm=class extends Gr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==je)}},Hm=class extends Gr{constructor(t,i,r,l,c){super(t,i,r,l,c),this.type=5}_$AI(t,i=this){var d;if((t=(d=yo(this,t,i,0))!=null?d:je)===Xn)return;let r=this._$AH,l=t===je&&r!==je||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,c=t!==je&&(r===je||l);l&&this.element.removeEventListener(this.name,this,r),c&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,r;typeof this._$AH=="function"?this._$AH.call((r=(i=this.options)==null?void 0:i.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},Bm=class{constructor(t,i,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){yo(this,t)}};var Cs=Xo.litHtmlPolyfillSupport,Wh;Cs==null||Cs(Ss,As),((Wh=Xo.litHtmlVersions)!=null?Wh:Xo.litHtmlVersions=[]).push("3.3.2");var Xh=(t,i,r)=>{var d,f;let l=(d=r==null?void 0:r.renderBefore)!=null?d:i,c=l._$litPart$;if(c===void 0){let g=(f=r==null?void 0:r.renderBefore)!=null?f:null;l._$litPart$=c=new As(i.insertBefore(Jo(),g),g,void 0,r!=null?r:{})}return c._$AI(t),c};var Jn=globalThis,rn=class extends Vn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i,r;let t=super.createRenderRoot();return(r=(i=this.renderOptions).renderBefore)!=null||(i.renderBefore=t.firstChild),t}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Xh(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Xn}},Jh;rn._$litElement$=!0,rn.finalized=!0,(Jh=Jn.litElementHydrateSupport)==null||Jh.call(Jn,{LitElement:rn});var $s=Jn.litElementPolyfillSupport;$s==null||$s({LitElement:rn});var Qh;((Qh=Jn.litElementVersions)!=null?Qh:Jn.litElementVersions=[]).push("4.2.2");var Kr=t=>(i,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,i)}):customElements.define(t,i)};var{is:jm,defineProperty:Fm,getOwnPropertyDescriptor:Wm,getOwnPropertyNames:Um,getOwnPropertySymbols:qm,getPrototypeOf:Vm}=Object,Cn=globalThis,Zh=Cn.trustedTypes,Ym=Zh?Zh.emptyScript:"",Ds=Cn.reactiveElementPolyfillSupport,tr=(t,i)=>t,Xr={toAttribute(t,i){switch(i){case Boolean:t=t?Ym:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let r=t;switch(i){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(l){r=null}}return r}},Ms=(t,i)=>!jm(t,i),tu={attribute:!0,type:String,converter:Xr,reflect:!1,useDefault:!1,hasChanged:Ms},eu,iu;(eu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(iu=Cn.litPropertyMetadata)!=null||(Cn.litPropertyMetadata=new WeakMap);var Zo=class extends HTMLElement{static addInitializer(t){var i;this._$Ei(),((i=this.l)!=null?i:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=tu){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){let r=Symbol(),l=this.getPropertyDescriptor(t,r,i);l!==void 0&&Fm(this.prototype,t,l)}}static getPropertyDescriptor(t,i,r){var d;let{get:l,set:c}=(d=Wm(this.prototype,t))!=null?d:{get(){return this[i]},set(f){this[i]=f}};return{get:l,set(f){let g=l==null?void 0:l.call(this);c==null||c.call(this,f),this.requestUpdate(t,g,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var i;return(i=this.elementProperties.get(t))!=null?i:tu}static _$Ei(){if(this.hasOwnProperty(tr("elementProperties")))return;let t=Vm(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tr("properties"))){let i=this.properties,r=[...Um(i),...qm(i)];for(let l of r)this.createProperty(l,i[l])}let t=this[Symbol.metadata];if(t!==null){let i=litPropertyMetadata.get(t);if(i!==void 0)for(let[r,l]of i)this.elementProperties.set(r,l)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let l=this._$Eu(i,r);l!==void 0&&this._$Eh.set(l,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let l of r)i.unshift(vo(l))}else t!==void 0&&i.push(vo(t));return i}static _$Eu(t,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(i=>i(this))}addController(t){var i,r;((i=this._$EO)!=null?i:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var i;(i=this._$EO)==null||i.delete(t)}_$E_(){let t=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var i;let t=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return Vr(t,this.constructor.elementStyles),t}connectedCallback(){var t,i;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(r=>{var l;return(l=r.hostConnected)==null?void 0:l.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostDisconnected)==null?void 0:r.call(i)})}attributeChangedCallback(t,i,r){this._$AK(t,r)}_$ET(t,i){var c;let r=this.constructor.elementProperties.get(t),l=this.constructor._$Eu(t,r);if(l!==void 0&&r.reflect===!0){let d=(((c=r.converter)==null?void 0:c.toAttribute)!==void 0?r.converter:Xr).toAttribute(i,r.type);this._$Em=t,d==null?this.removeAttribute(l):this.setAttribute(l,d),this._$Em=null}}_$AK(t,i){var c,d,f;let r=this.constructor,l=r._$Eh.get(t);if(l!==void 0&&this._$Em!==l){let g=r.getPropertyOptions(l),b=typeof g.converter=="function"?{fromAttribute:g.converter}:((c=g.converter)==null?void 0:c.fromAttribute)!==void 0?g.converter:Xr;this._$Em=l;let x=b.fromAttribute(i,g.type);this[l]=(f=x!=null?x:(d=this._$Ej)==null?void 0:d.get(l))!=null?f:x,this._$Em=null}}requestUpdate(t,i,r,l=!1,c){var d,f;if(t!==void 0){let g=this.constructor;if(l===!1&&(c=this[t]),r!=null||(r=g.getPropertyOptions(t)),!(((d=r.hasChanged)!=null?d:Ms)(c,i)||r.useDefault&&r.reflect&&c===((f=this._$Ej)==null?void 0:f.get(t))&&!this.hasAttribute(g._$Eu(t,r))))return;this.C(t,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:r,reflect:l,wrapped:c},d){var f,g,b;r&&!((f=this._$Ej)!=null?f:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(g=d!=null?d:i)!=null?g:this[t]),c!==!0||d!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(i=void 0),this._$AL.set(t,i)),l===!0&&this._$Em!==t&&((b=this._$Eq)!=null?b:this._$Eq=new Set).add(t))}_$EP(){return ye(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,l;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let c=this.constructor.elementProperties;if(c.size>0)for(let[d,f]of c){let{wrapped:g}=f,b=this[d];g!==!0||this._$AL.has(d)||b===void 0||this.C(d,void 0,f,b)}}let t=!1,i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(l=this._$EO)==null||l.forEach(c=>{var d;return(d=c.hostUpdate)==null?void 0:d.call(c)}),this.update(i)):this._$EM()}catch(c){throw t=!1,this._$EM(),c}t&&this._$AE(i)}willUpdate(t){}_$AE(t){var i;(i=this._$EO)==null||i.forEach(r=>{var l;return(l=r.hostUpdated)==null?void 0:l.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}},nu;Zo.elementStyles=[],Zo.shadowRootOptions={mode:"open"},Zo[tr("elementProperties")]=new Map,Zo[tr("finalized")]=new Map,Ds==null||Ds({ReactiveElement:Zo}),((nu=Cn.reactiveElementVersions)!=null?nu:Cn.reactiveElementVersions=[]).push("2.1.2");var Gm={attribute:!0,type:String,converter:Xr,reflect:!1,hasChanged:Ms},Km=(t=Gm,i,r)=>{let{kind:l,metadata:c}=r,d=globalThis.litPropertyMetadata.get(c);if(d===void 0&&globalThis.litPropertyMetadata.set(c,d=new Map),l==="setter"&&((t=Object.create(t)).wrapped=!0),d.set(r.name,t),l==="accessor"){let{name:f}=r;return{set(g){let b=i.get.call(this);i.set.call(this,g),this.requestUpdate(f,b,t,!0,g)},init(g){return g!==void 0&&this.C(f,void 0,t,g),g}}}if(l==="setter"){let{name:f}=r;return function(g){let b=this[f];i.call(this,g),this.requestUpdate(f,b,t,!0,g)}}throw Error("Unsupported decorator location: "+l)};function mi(t){return(i,r)=>typeof r=="object"?Km(t,i,r):((l,c,d)=>{let f=c.hasOwnProperty(d);return c.constructor.createProperty(d,l),f?Object.getOwnPropertyDescriptor(c,d):void 0})(t,i,r)}var Qn=(t,i,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(t,i,r),r);function ou(t,i){return(r,l,c)=>{let d=f=>{var g,b;return(b=(g=f.renderRoot)==null?void 0:g.querySelector(t))!=null?b:null};if(i){let{get:f,set:g}=typeof l=="object"?r:c!=null?c:(()=>{let b=Symbol();return{get(){return this[b]},set(x){this[b]=x}}})();return Qn(r,l,{get(){let b=f.call(this);return b===void 0&&(b=d(this),(b!==null||this.hasUpdated)&&g.call(this,b)),b}})}return Qn(r,l,{get(){return d(this)}})}}var Xm=fi`
<svg
viewBox="0 0 40 40"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
>
<path d="m29.1923882 10.8076118c.5857864.5857865.5857864 1.535534 0 2.1213204l-7.0711162 7.0703398 7.0711162 7.0717958c.5857864.5857864.5857864 1.5355339 0 2.1213204-.5857865.5857864-1.535534.5857864-2.1213204 0l-7.0717958-7.0711162-7.0703398 7.0711162c-.5857864.5857864-1.5355339.5857864-2.1213204 0-.5857864-.5857865-.5857864-1.535534 0-2.1213204l7.0706602-7.0717958-7.0706602-7.0703398c-.5857864-.5857864-.5857864-1.5355339 0-2.1213204.5857865-.5857864 1.535534-.5857864 2.1213204 0l7.0703398 7.0706602 7.0717958-7.0706602c.5857864-.5857864 1.5355339-.5857864 2.1213204 0z" class="fill-color" fill-rule="evenodd"/>
</svg>
`,Jm=class extends rn{static get styles(){return Ji`
:host {
width: var(--iconWidth, 'auto');
height: var(--iconHeight, 'auto');
}
.fill-color {
fill: var(--iconFillColor);
}
.stroke-color {
stroke: var(--iconStrokeColor);
}
`}render(){return Xm}};customElements.define("ia-icon-close",Jm);var ji=class extends Ie{constructor(){super(...arguments),this.value="",this.clearButtonScreenReaderLabel="Clear",this.focusOnClear=!0,this.forceClearButton=!1}render(){var t,i,r,l;let c=!this.value&&!this.forceClearButton;return Ot`
<div id="container">
<slot name="icon"></slot>
<label for="text-input" class="sr-only"
>${(t=this.screenReaderLabel)!==null&&t!==void 0?t:Qt}</label
>
<input
id="text-input"
type="text"
inputmode="search"
enterkeyhint="search"
autocapitalize="off"
placeholder=${(i=this.placeholder)!==null&&i!==void 0?i:Qt}
.value=${(r=this.value)!==null&&r!==void 0?r:Qt}
aria-controls=${(l=this.ariaControls)!==null&&l!==void 0?l:Qt}
@input=${this.onTextInput}
@keypress=${this.onKeyPress}
/>
<button
id="clear-button"
type="button"
?hidden=${c}
@click=${this.clearButtonClicked}
>
<ia-icon-close aria-hidden="true"></ia-icon-close>
<span class="sr-only">${this.clearButtonScreenReaderLabel}</span>
</button>
</div>
`}onTextInput(){this.value=this.textInput.value}onKeyPress(t){if(t.key==="Enter"){this.textInput.blur();let i=new CustomEvent("submit",{detail:this.value});this.dispatchEvent(i)}}clearButtonClicked(){let t=this.textInput.value;this.value="",this.focusOnClear&&this.textInput.focus();let i=new CustomEvent("clear",{detail:t});this.dispatchEvent(i);let r=new InputEvent("input",{inputType:"deleteContentBackward"});this.dispatchEvent(r)}};ji.shadowRootOptions=Ni(si({},Ie.shadowRootOptions),{delegatesFocus:!0});ji.styles=It`
:host {
--input-height: 3rem;
--clear-button-top: 0;
--clear-button-right: 2px;
}
#container {
position: relative;
display: flex;
align-items: center;
width: 100%;
height: var(--input-height);
}
#text-input {
width: 100%;
height: 100%;
padding: var(--input-padding, 0 1rem);
padding-inline-end: var(--input-height);
border: var(--input-border-width, 1px) var(--input-border-style, solid)
var(--input-border-color, #ccc);
border-radius: var(--input-border-radius, 2rem);
background-image: var(--input-background-image, none);
background-color: var(--input-background-color, transparent);
color: var(--input-color, #555);
font-size: var(--input-font-size, 1.7rem);
line-height: var(--input-line-height, 1.5);
box-shadow: var(--input-box-shadow, inset 0 1px 1px rgba(0, 0, 0, 0.075));
-webkit-box-shadow: var(
--input-box-shadow,
inset 0 1px 1px rgba(0, 0, 0, 0.075)
);
}
#text-input:focus {
border-color: var(--input-focused-border-color, #66afe9);
outline: 0;
box-shadow: var(
--input-focused-box-shadow,
inset 0 1px 1px rgb(0 0 0 / 8%),
0 0 8px rgb(102 175 233 / 60%)
);
-webkit-box-shadow: var(
--input-focused-box-shadow,
inset 0 1px 1px rgb(0 0 0 / 8%),
0 0 8px rgb(102 175 233 / 60%)
);
}
#clear-button {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
inset-block-start: var(--clear-button-top);
inset-inline-end: var(--clear-button-right);
height: var(--clear-button-height, var(--input-height));
width: var(--clear-button-width, var(--input-height));
padding: var(--clear-button-padding, 4px);
border: var(--clear-button-border, 0);
background: none;
appearance: none;
cursor: pointer;
}
#clear-button[hidden] {
display: none;
}
ia-icon-close {
--iconWidth: 100%;
--iconHeight: 100%;
--iconFillColor: white;
background: #2c2c2c;
border-radius: 50%;
pointer-events: none;
}
/* Fallback support for older browsers without newer bidirectional rules */
@supports not ((inset-block-start: 0) and (padding-inline-end: 0)) {
#text-input {
padding-right: var(--input-height);
}
#clear-button {
top: var(--clear-button-top);
right: var(--clear-button-right);
}
}
.sr-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
border: 0 !important;
overflow: hidden !important;
white-space: nowrap !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
}
`;F([Pt({type:String})],ji.prototype,"value",void 0);F([Pt({type:String})],ji.prototype,"placeholder",void 0);F([Pt({type:String})],ji.prototype,"screenReaderLabel",void 0);F([Pt({type:String})],ji.prototype,"clearButtonScreenReaderLabel",void 0);F([Pt({type:String})],ji.prototype,"ariaControls",void 0);F([Pt({type:Boolean})],ji.prototype,"focusOnClear",void 0);F([Pt({type:Boolean,reflect:!0})],ji.prototype,"forceClearButton",void 0);F([_i("#text-input")],ji.prototype,"textInput",void 0);ji=F([Ge("ia-clearable-text-input")],ji);function Zn(t,i,r){return t?i():r==null?void 0:r()}var Qm=Li`<svg class="caret-up-svg" viewBox="0 0 8 4" xmlns="http://www.w3.org/2000/svg">
<path d="m6.7226499 3.51689722c.22976435.15317623.54019902.0910893.69337525-.13867505.13615665-.20423497.10222882-.47220946-.06836249-.63681849l-.07031256-.05655675-3.2773501-2.18490007-3.2773501 2.18490007c-.22976434.15317623-.29185128.4636109-.13867505.69337524.13615665.20423498.39656688.27598409.61412572.18182636l.07924953-.04315131 2.7226499-1.81402514z"
fill=""></path>
</svg>`,Zm=Li`<svg class="caret-down-svg" viewBox="0 0 8 4" xmlns="http://www.w3.org/2000/svg">
<path d="m6.7226499.58397485c.22976435-.15317623.54019902-.09108929.69337525.13867505.13615665.20423498.10222882.47220947-.06836249.63681849l-.07031256.05655676-3.2773501 2.18490006-3.2773501-2.18490006c-.22976434-.15317623-.29185128-.4636109-.13867505-.69337525.13615665-.20423497.39656688-.27598409.61412572-.18182636l.07924953.04315131 2.7226499 1.81402515z"
fill=""></path>
</svg>`,Fe=class extends Ie{constructor(){super(...arguments),this.open=!1,this.isDisabled=!1,this.displayCaret=!1,this.closeOnSelect=!1,this.openViaButton=!0,this.usePopover=!1,this.includeSelectedOption=!1,this.selectedOption="",this.options=[],this.optionGroup="options",this.optionSelected=()=>{},this.isCustomList=!1,this.hasCustomClickHandler=!1,this.closeOnEscape=!1,this.closeOnBackdropClick=!1,this.boundKeyboardListener=t=>{switch(t.key){case"Escape":case"Esc":this.closeOptions();break;default:break}},this.closeOptions=t=>{t&&t.type==="click"&&t.stopPropagation(),this.open=!1,this.updatePopoverState()}}firstUpdated(){return ye(this,null,function*(){yield new Promise(t=>{setTimeout(t,0)}),this.addEventListener("closeDropdown",this.closeOptions)})}willUpdate(t){t.has("open")&&this.updatePopoverState()}disconnectedCallback(){var t;(t=super.disconnectedCallback)===null||t===void 0||t.call(this),this.removeKeyboardListener()}setupKeyboardListener(){this.closeOnEscape&&document.addEventListener("keydown",this.boundKeyboardListener)}removeKeyboardListener(){this.closeOnEscape&&document.removeEventListener("keydown",this.boundKeyboardListener)}get dropdownState(){return this.open?(this.setupKeyboardListener(),"open"):(this.removeKeyboardListener(),"closed")}toggleOptions(){this.open=!this.open,this.updatePopoverState()}updatePopoverState(){var t,i;this.usePopover&&((i=(t=this.dropdownMenu)===null||t===void 0?void 0:t.togglePopover)===null||i===void 0||i.call(t,this.open),this.open&&this.positionDropdownMenu())}positionDropdownMenu(){if(!this.dropdownMenu)return;let t=this.container.getBoundingClientRect();this.dropdownMenu.style.left=`${t.left}px`,this.dropdownMenu.style.top=`${t.bottom}px`,this.dropdownMenu.style.minWidth=`${t.width}px`}mainButtonClicked(){var t;this.openViaButton?this.toggleOptions():(t=this.mainButtonLabelSlotted[0])===null||t===void 0||t.click()}mainButtonKeyDown(t){(t.key==="Enter"||t.key===" ")&&(this.mainButtonClicked(),t.preventDefault())}caretKeyDown(t){(t.key==="Enter"||t.key===" ")&&(this.toggleOptions(),t.preventDefault())}renderOption(t){let{label:i,url:r=void 0,id:l}=t,c,d=this.selectedOption===l?"selected":"";return r?c=Ot`<a
href=${r}
@click=${f=>this.optionClicked(f,t)}
>${i}</a
>`:c=Ot`<button
@click=${f=>this.optionClicked(f,t)}
>
${i}
</button>`,Ot`<li role="menuitem" class=${d}>${c}</li>`}optionClicked(t,i){var r;t.stopPropagation(),this.selectedOption!==i.id&&(this.selectedOption=i.id,this.dispatchEvent(new CustomEvent("optionSelected",{detail:{option:i}})),(r=i.selectedHandler)===null||r===void 0||r.call(i,i)),this.closeOnSelect&&(this.closeOptions(),this.mainButton.focus())}get availableOptions(){return this.includeSelectedOption?this.options:this.options.filter(t=>this.selectedOption!==t.id)}get caretUpTemplate(){return Ot`
<span ?hidden=${!this.open} class="caret-up">
<slot name="caret-up">${Qm}</slot>
</span>
`}get caretDownTemplate(){return Ot`
<span ?hidden=${this.open} class="caret-down">
<slot name="caret-down">${Zm}</slot>
</span>
`}get caretTemplate(){return this.displayCaret?this.openViaButton?Ot`
<span class="caret" aria-hidden="true">
${this.caretUpTemplate} ${this.caretDownTemplate}
</span>
`:Ot`
<button
class="caret"
aria-labelledby="caret-label"
aria-haspopup="true"
aria-expanded=${this.open}
@click=${Zn(this.shouldAttachEventHandlers,()=>this.toggleOptions)}
@keydown=${Zn(this.shouldAttachEventHandlers,()=>this.caretKeyDown)}
?disabled=${this.isDisabled}
>
${this.caretUpTemplate} ${this.caretDownTemplate}
</button>
`:Ot``}get dropdownTemplate(){return this.isCustomList?Ot`<slot name="list"></slot>`:Ot`${this.availableOptions.map(t=>this.renderOption(t))}`}get backdropTemplate(){return this.closeOnBackdropClick?this.open?Ot`
<div
id="dropdown-backdrop"
@keyup=${this.closeOptions}
@click=${this.closeOptions}
></div>
`:Ot``:Ot``}get shouldNestCaretInButton(){return this.openViaButton}get shouldAttachEventHandlers(){return!this.isDisabled&&!this.hasCustomClickHandler}render(){return Ot`
<div class="ia-dropdown-group ${this.open?"open":""}">
<div class="button-row">
<button
class="click-main"
aria-haspopup=${this.openViaButton}
aria-expanded=${this.open}
@click=${Zn(this.shouldAttachEventHandlers,()=>this.mainButtonClicked)}
@keydown=${Zn(this.shouldAttachEventHandlers,()=>this.mainButtonKeyDown)}
?disabled=${this.isDisabled}
>
<span class="sr-only" id="caret-label"
>Toggle ${this.optionGroup}</span
>
<slot name="dropdown-label"></slot>
${Zn(this.shouldNestCaretInButton,()=>this.caretTemplate)}
</button>
${Zn(!this.shouldNestCaretInButton,()=>this.caretTemplate)}
</div>
<ul
id="dropdown-main"
class=${this.dropdownState}
role="menu"
?popover=${this.usePopover}
>
${this.dropdownTemplate}
</ul>
${this.backdropTemplate}
</div>
`}static get styles(){let t=It`var(--dropdownBorderWidth, 1px)`,i=It`var(--dropdownBorderRadius, 4px)`,r=It`var(--dropdownBorderColor, #fff)`,l=It`var(--dropdownBgColor, #333)`,c=It`var(--dropdownTextColor, #fff)`,d=It`var(--dropdownHoverBgColor, rgba(255, 255, 255, 0.3))`,f=It`var(--dropdownSelectedBgColor, #fff)`,g=It`var(--dropdownMainButtonBgColor, transparent)`,b=It`var(--dropdownTextAlign, inherit)`,x=It`var(--dropdownBackdropZIndex, 1)`,w=It`var(--dropdownListZIndex, 2)`;return It`
:host {
display: inline;
color: ${c};
}
svg.caret-up-svg,
svg.caret-down-svg,
::slotted(svg.caret-up-svg),
::slotted(svg.caret-down-svg) {
fill: var(--dropdownCaretColor, #fff);
vertical-align: middle;
}
.button-row {
display: flex;
height: 100%;
}
button.click-main {
background: ${g};
color: inherit;
padding: var(--dropdownMainButtonPadding, 0px);
border: var(--dropdownMainButtonBorder, none);
border-radius: var(--dropdownMainButtonBorderRadius, none);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
align-content: center;
flex-wrap: nowrap;
flex-direction: var(--dropdownMainButtonFlexDirection, row);
}
.open button.click-main {
/* When the dropdown is open, give the buttom the same z-index
as the dropdown menu, so that it remains clickable despite
the backdrop. */
z-index: ${w};
}
button.click-main:disabled {
pointer-events: none;
cursor: not-allowed;
opacity: 0.5;
/* Disable text selection on disabled button */
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
}
button.click-main:hover {
background-color: var(
--dropdownMainButtonHoverBgColor,
${g}
);
}
button.click-main:focus,
button.click-main:focus-visible {
background-color: var(
--dropdownMainButtonFocusBgColor,
${g}
);
}
button.click-main:active {
background-color: var(
--dropdownMainButtonActiveBgColor,
${g}
);
}
button slot[name='dropdown-label'] {
/* Set var to 0px for column layout */
padding-right: var(--buttonSlotPaddingRight, 5px);
display: inline-block;
}
.ia-dropdown-group {
width: inherit;
height: inherit;
position: relative;
}
.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
-webkit-user-select: none !important;
user-select: none !important;
}
.caret {
/* Maintain centered caret position but with a full-height clickable region */
display: flex;
align-self: stretch;
align-items: center;
padding: var(--caretPadding, 0px);
}
button.caret {
appearance: none;
background: none;
border: none;
cursor: pointer;
}
.caret svg {
height: var(--caretHeight, 10px);
width: var(--caretWidth, 20px);
}
#dropdown-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: transparent;
z-index: ${x};
}
ul {
z-index: ${w};
}
#dropdown-main.closed {
visibility: hidden;
height: 1px;
width: 1px;
}
#dropdown-main {
position: var(--dropdownListPosition, absolute);
list-style: none;
margin: var(--dropdownOffsetTop, 5px) 0 0 0;
padding: var(--dropdownPadding, 0);
color: ${c};
background: ${l};
font-size: var(--dropdownFontSize, inherit);
border-top: var(--dropdownBorderTopWidth, ${t});
border-right: var(--dropdownBorderRightWidth, ${t});
border-bottom: var(--dropdownBorderBottomWidth, ${t});
border-left: var(--dropdownBorderLeftWidth, ${t});
/* Must be after border-width settings for specificity */
border-style: solid;
border-color: ${r};
border-radius: var(
--dropdownBorderTopLeftRadius,
${i}
)
var(--dropdownBorderTopRightRadius, ${i})
var(--dropdownBorderBottomRightRadius, ${i})
var(--dropdownBorderBottomLeftRadius, ${i});
white-space: var(--dropdownWhiteSpace, normal);
/* Prevent top/bottom inner li from overlapping inner border */
overflow: hidden;
}
#dropdown-main li:hover {
background-color: ${d};
color: var(--dropdownHoverTextColor, #fff);
list-style: none;
cursor: pointer;
}
#dropdown-main li:hover:first-child {
border-top-color: ${d};
}
ul#dropdown-main li:hover:last-child {
border-bottom-color: ${d};
}
#dropdown-main li:hover:not(:first-child) {
border-top: 0.5px solid var(--dropdownHoverTopBottomBorderColor, #333);
}
#dropdown-main li:hover:not(:last-child) {
border-bottom: 0.5px solid
var(--dropdownHoverTopBottomBorderColor, #333);
}
#dropdown-main li.selected:last-child {
border-bottom-color: ${f};
}
#dropdown-main li.selected:first-child {
border-top-color: ${f};
}
#dropdown-main li:hover > *,
#dropdown-main li:focus-within > * {
background-color: ${d};
color: var(--dropdownHoverTextColor, #fff);
}
#dropdown-main li.selected > * {
background-color: ${f};
color: var(--dropdownSelectedTextColor, #2c2c2c);
}
#dropdown-main li {
background: ${l};
list-style: none;
height: 30px;
cursor: pointer;
border-bottom: 0.5px solid ${l};
border-top: 0.5px solid ${l};
}
#dropdown-main li button {
background: none;
color: inherit;
border: none;
font: inherit;
cursor: pointer;
outline: inherit;
}
#dropdown-main li a {
text-decoration: none;
display: block;
box-sizing: border-box;
}
#dropdown-main li:first-child {
border-top-left-radius: var(--dropdownBorderTopLeftRadius, 4px);
border-top-right-radius: var(--dropdownBorderTopRightRadius, 4px);
}
#dropdown-main li:last-child {
border-bottom-right-radius: var(--dropdownBorderBottomRightRadius, 4px);
border-bottom-left-radius: var(--dropdownBorderBottomLeftRadius, 4px);
}
/* cover the list with the label */
#dropdown-main li > * > :first-child {
margin: 0;
display: flex;
align-items: center;
justify-content: flex-start;
align-content: center;
flex-wrap: nowrap;
height: 100%;
padding: var(--dropdownItemPaddingTop, 5px)
var(--dropdownItemPaddingRight, 10px)
var(--dropdownItemPaddingBottom, 5px)
var(--dropdownItemPaddingLeft, 10px);
box-sizing: border-box;
}
#dropdown-main li > * {
width: 100%;
height: inherit;
color: ${c};
background: var(--dropdownItemButtonBgColor, transparent);
padding: var(--dropdownItemButtonPadding, 0);
text-align: ${b};
}
`}};F([Pt({type:Boolean,reflect:!0})],Fe.prototype,"open",void 0);F([Pt({type:Boolean,reflect:!0})],Fe.prototype,"isDisabled",void 0);F([Pt({type:Boolean})],Fe.prototype,"displayCaret",void 0);F([Pt({type:Boolean})],Fe.prototype,"closeOnSelect",void 0);F([Pt({type:Boolean})],Fe.prototype,"openViaButton",void 0);F([Pt({type:Boolean})],Fe.prototype,"usePopover",void 0);F([Pt({type:Boolean})],Fe.prototype,"includeSelectedOption",void 0);F([Pt({type:String})],Fe.prototype,"selectedOption",void 0);F([Pt({attribute:!1})],Fe.prototype,"options",void 0);F([Pt({type:String})],Fe.prototype,"optionGroup",void 0);F([Pt({attribute:!1})],Fe.prototype,"optionSelected",void 0);F([Pt({type:Boolean,reflect:!0})],Fe.prototype,"isCustomList",void 0);F([Pt({type:Boolean,reflect:!0})],Fe.prototype,"hasCustomClickHandler",void 0);F([Pt({type:Boolean,reflect:!0})],Fe.prototype,"closeOnEscape",void 0);F([Pt({type:Boolean,reflect:!0})],Fe.prototype,"closeOnBackdropClick",void 0);F([_i(".ia-dropdown-group")],Fe.prototype,"container",void 0);F([_i("#dropdown-main")],Fe.prototype,"dropdownMenu",void 0);F([_i(".click-main")],Fe.prototype,"mainButton",void 0);F([Fa({slot:"dropdown-label"})],Fe.prototype,"mainButtonLabelSlotted",void 0);Fe=F([Ge("ia-dropdown")],Fe);var Is=class extends Ie{render(){return Ot`
<div class="icon-label-container">
<slot name="icon"></slot>
<slot></slot>
</div>
`}};Is.styles=It`
:host {
display: block;
width: 100%;
height: 100%;
position: relative;
}
:host(.invert-icon-at-hover:hover) slot[name='icon'] {
filter: invert(1);
}
:host(.selected) {
background-color: var(--selectedBgColor, #fff);
color: var(--selectedTextColor, #2c2c2c);
}
:host(.invert-icon-at-selected.selected) slot[name='icon'] {
filter: invert(1);
}
div.icon-label-container {
display: flex;
width: 100%;
align-items: center;
justify-content: flex-start;
align-content: center;
flex-wrap: nowrap;
flex-direction: var(--iconLabelFlexDirection, row);
height: 100%;
}
slot[name='icon'] {
width: var(--iconWidth, 20px);
margin-right: var(--iconLabelGutterWidth, 10px);
display: flex;
align-items: center;
justify-content: flex-start;
align-content: center;
flex-wrap: nowrap;
white-space: nowrap;
height: 100%;
}
/* https://css-tricks.com/flexbox-truncated-text/ */
::slotted(div.truncate) {
display: flex;
width: var(--labelWidth, 100%);
text-align: left;
word-wrap: break-word; /* Important for long words! */
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
@supports not (-webkit-line-clamp: 2) {
::slotted(div.truncate) {
min-width: 0;
}
}
@supports (-webkit-line-clamp: 2) {
::slotted(div.truncate) {
min-width: 0;
display: -webkit-box;
overflow-wrap: break-word;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
/* Fixed line-height needed to fit unicode and emojis
https://stackoverflow.com/a/67807146
*/
line-height: 1.2em;
/* max-height needed for Safari browser */
max-height: var(--labelTruncateHeight, 30px);
max-width: var(--labelWidth, 100%);
}
}
`;Is=F([Ge("ia-icon-label")],Is);var ru=(t,i,r)=>{for(let l of i)if(l[0]===t)return(0,l[1])();return r==null?void 0:r()};var tg=Ji`
:host {
/*
BASE STYLES
Default fallback values for theme styles. Assumes 16px root font size.
To adjust values, use theme styles below.
*/
/* Typography */
--default-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
/* Sizing */
--default-icon-width: 1.25rem;
--default-padding-sm: 5px;
--default-combo-box-width: auto;
--default-search-bar-width: auto;
--default-search-bar-height: 30px;
--default-font-size-standard: 0.875rem; /* 14px with 16px root font size */
--default-font-size-lg: 2.25rem; /* 36px with 16px root font size */
/* Colors */
--true-white: #fff;
--off-white: #fbfbfd;
--dark-gray: #2c2c2c;
--light-gray: #666;
--classic-red: #e51c23;
--mint-green: #31a481;
--navy-blue: #194880;
--bright-blue: #4b64ff;
/*
ADJUSTABLE STYLES
To be adjusted by setting i.e. --ia-theme-link-color at the :root or component level.
*/
/* Text */
--base-font-family: var(
--ia-theme-base-font-family,
var(--default-font-family)
);
--primary-text-color: var(--ia-theme-primary-text-color, var(--dark-gray));
--secondary-text-color: var(
--ia-theme-secondary-text-color,
var(--light-gray)
);
--link-color: var(--ia-theme-link-color, var(--bright-blue));
/* Sizing */
--icon-width: var(--ia-theme-icon-width, var(--default-icon-width));
--padding-sm: var(--ia-theme-padding-sm, var(--default-padding-sm));
--search-bar-height: var(
--ia-theme-search-bar-height,
var(--default-search-bar-height)
);
--search-bar-width: var(
--ia-theme-search-bar-width,
var(--default-search-bar-width)
);
--combo-box-width: var(
--ia-theme-combo-box-width,
var(--default-combo-box-width)
);
--font-size-standard: var(
--ia-theme-font-size-standard,
var(--default-font-size-standard)
);
--font-size-lg: var(--ia-theme-font-size-lg, var(--default-font-size-lg));
/* Backgrounds and fills */
--primary-background-color: var(
--ia-theme-primary-background-color,
var(--off-white)
);
--secondary-background-color: var(
--ia-theme-secondary-background-color,
var(--true-white)
);
/* State colors */
--primary-cta-fill: var(--ia-theme-primary-cta-fill, var(--navy-blue));
--primary-cta-text-color: var(
--ia-theme-primary-cta-text-color,
var(--true-white)
);
--color-success: var(--ia-theme-color-success, var(--mint-green));
--color-danger: var(--ia-theme-color-danger, var(--classic-red));
}
`,eg=tg,to=class extends rn{constructor(){super(...arguments),this.loadingTitle=le("Loading..."),this.successTitle=le("Success"),this.errorTitle=le("Error"),this.loadingStyle="ring-dots",this.mode="loading"}render(){return fi`${ru(this.mode,[["ready",()=>this.placeholderTemplate],["loading",()=>this.loadingIndicatorTemplate],["success",()=>this.successIndicatorTemplate],["error",()=>this.errorIndicatorTemplate]])}`}get placeholderTemplate(){return fi`<div class="placeholder"></div>`}get loadingIndicatorTemplate(){return fi`
<svg
class="loading-indicator"
viewBox="0 0 120 120"
preserveAspectRatio="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
role="status"
>
<title>${this.loadingTitle}</title>
<g stroke="none" stroke-width="1" fill-rule="evenodd">
<path
class="loading-ring"
d="M60,10 C69.8019971,10 78.9452178,12.8205573 86.6623125,17.6943223 L76.4086287,27.9484118 C71.4880919,25.4243078 65.9103784,24 60,24 C40.117749,24 24,40.117749 24,60 C24,79.882251 40.117749,96 60,96 C79.882251,96 96,79.882251 96,60 C96,53.3014663 94.1704984,47.0302355 90.9839104,41.6587228 L101.110332,31.5326452 C106.715332,39.6116982 110,49.4222615 110,60 C110,87.6142375 87.6142375,110 60,110 C32.3857625,110 10,87.6142375 10,60 C10,32.3857625 32.3857625,10 60,10 Z"
></path>
<g
class="loading-dots ${this.shouldShowLoadingDots?"":"hidden"}"
transform="translate(40.000000, 55.000000)"
>
<circle id="left-dot" cx="5" cy="5" r="5"></circle>
<circle id="middle-dot" cx="20" cy="5" r="5"></circle>
<circle id="right-dot" cx="35" cy="5" r="5"></circle>
</g>
</g>
</svg>
`}get successIndicatorTemplate(){return fi`
<svg
class="success-indicator"
viewBox="0 0 120 120"
preserveAspectRatio="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
role="status"
>
<title>${this.successTitle}</title>
<g stroke="none" stroke-width="1" fill-rule="evenodd">
<path
class="success-icon"
d="M60,10 C70.5816709,10 80.3955961,13.2871104 88.4763646,18.8959201 L78.3502633,29.0214223 C72.9767592,25.8315427 66.7022695,24 60,24 C40.117749,24 24,40.117749 24,60 C24,79.882251 40.117749,96 60,96 C79.882251,96 96,79.882251 96,60 L95.995,59.46 L108.327675,47.128668 C109.350926,50.9806166 109.925886,55.015198 109.993301,59.1731586 L110,60 C110,87.6142375 87.6142375,110 60,110 C32.3857625,110 10,87.6142375 10,60 C10,32.3857625 32.3857625,10 60,10 Z"
></path>
<polygon
class="success-icon"
transform="translate(75.000000, 41.500000) rotate(44.000000) translate(-75.000000, -41.500000) "
points="96 85 54 85 54 65 76 64.999 76 -2 96 -2"
></polygon>
</g>
</svg>
`}get errorIndicatorTemplate(){return fi`
<svg
class="error-indicator"
viewBox="0 0 120 120"
preserveAspectRatio="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
role="status"
>
<title>${this.errorTitle}</title>
<path
class="error-icon"
d="m56.4612493 8.80450354 41.8901185 75.94632926c1.7706782 2.8433173 2.1150372 5.2623412 1.0330766 7.2570716-1.0819604 1.9947304-3.26978 2.9920956-6.5634587 2.9920956h-85.69973905c-3.29367873 0-5.46954894-.9973652-6.52761065-2.9920956-1.0580617-1.9947304-.70175345-4.4137543 1.06892476-7.2570716l41.89011844-75.12308969c1.8184757-2.84331737 3.9693609-4.37738627 6.4526556-4.60220671s4.6341799 1.03483527 6.4526556 3.77896714zm28.5387507 75.19549646-35.037482-62-34.962518 62zm-31-34.7484359v-10.2515641h-8v10.2515641l2.089172 14.7484359h3.8184713zm-8 19.7484359v8h8v-8z"
/>
</svg>
`}get shouldShowLoadingDots(){return this.loadingStyle!=="ring"}static get styles(){return[eg,Ji`
:host {
--indicator-width--: var(--icon-width);
/* Loading */
--loading-ring-color--: var(--primary-text-color);
--loading-dot-color--: var(--primary-text-color);
/* Success */
--success-icon-color--: var(--color-success);
/* Error */
--error-icon-color--: var(--color-danger);
display: inline-block;
width: var(--indicator-width--);
}
.placeholder {
height: var(--indicator-width--);
}
.success-icon {
fill: var(--success-icon-color--);
}
.error-icon {
fill: var(--error-icon-color--);
}
.loading-ring {
fill: var(--loading-ring-color--);
animation: rotate 1.3s infinite linear;
transform-origin: 50px 50px;
transform-box: fill-box;
}
.loading-dots {
fill: var(--loading-dot-color--);
transition: opacity 0.25s ease-out;
}
.loading-dots.hidden {
display: none;
}
.loading-dots > * {
opacity: 0;
animation: dot 1.3s infinite;
}
.loading-dots #left-dot {
animation-delay: 0.2s;
}
.loading-dots #middle-dot {
animation-delay: 0.4s;
}
.loading-dots #right-dot {
animation-delay: 0.6s;
}
@keyframes rotate {
0% {
transform: rotate(-360deg);
}
100% {
/* This frame is supposed to be inferred, but Safari doesn't rotate it unless we're explicit */
transform: rotate(0deg);
}
}
@keyframes dot {
0% {
opacity: 0;
}
25% {
opacity: 1;
}
100% {
opacity: 0;
}
}
`]}};F([mi({type:String})],to.prototype,"loadingTitle",void 0);F([mi({type:String})],to.prototype,"successTitle",void 0);F([mi({type:String})],to.prototype,"errorTitle",void 0);F([mi({type:String})],to.prototype,"loadingStyle",void 0);F([mi({type:String})],to.prototype,"mode",void 0);to=F([Kr("ia-status-indicator")],to);var ig=Ji`
:host {
/*
BASE STYLES
Default fallback values for theme styles. Assumes 16px root font size.
To adjust values, use theme styles below.
*/
/* Typography */
--default-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
/* Sizing */
--default-icon-width: 1.25rem;
--default-padding-sm: 5px;
--default-combo-box-width: auto;
--default-search-bar-width: auto;
--default-search-bar-height: 30px;
--default-font-size-standard: 0.875rem; /* 14px with 16px root font size */
--default-font-size-lg: 2.25rem; /* 36px with 16px root font size */
/* Colors */
--true-white: #fff;
--off-white: #fbfbfd;
--dark-gray: #2c2c2c;
--light-gray: #666;
--classic-red: #e51c23;
--mint-green: #31a481;
--navy-blue: #194880;
--bright-blue: #4b64ff;
/*
ADJUSTABLE STYLES
To be adjusted by setting i.e. --ia-theme-link-color at the :root or component level.
*/
/* Text */
--base-font-family: var(
--ia-theme-base-font-family,
var(--default-font-family)
);
--primary-text-color: var(--ia-theme-primary-text-color, var(--dark-gray));
--secondary-text-color: var(
--ia-theme-secondary-text-color,
var(--light-gray)
);
--link-color: var(--ia-theme-link-color, var(--bright-blue));
/* Sizing */
--icon-width: var(--ia-theme-icon-width, var(--default-icon-width));
--padding-sm: var(--ia-theme-padding-sm, var(--default-padding-sm));
--search-bar-height: var(
--ia-theme-search-bar-height,
var(--default-search-bar-height)
);
--search-bar-width: var(
--ia-theme-search-bar-width,
var(--default-search-bar-width)
);
--combo-box-width: var(
--ia-theme-combo-box-width,
var(--default-combo-box-width)
);
--font-size-standard: var(
--ia-theme-font-size-standard,
var(--default-font-size-standard)
);
--font-size-lg: var(--ia-theme-font-size-lg, var(--default-font-size-lg));
/* Backgrounds and fills */
--primary-background-color: var(
--ia-theme-primary-background-color,
var(--off-white)
);
--secondary-background-color: var(
--ia-theme-secondary-background-color,
var(--true-white)
);
/* State colors */
--primary-cta-fill: var(--ia-theme-primary-cta-fill, var(--navy-blue));
--primary-cta-text-color: var(
--ia-theme-primary-cta-text-color,
var(--true-white)
);
--color-success: var(--ia-theme-color-success, var(--mint-green));
--color-danger: var(--ia-theme-color-danger, var(--classic-red));
}
`,ng=ig,og='data:image/svg+xml,<svg%0A viewBox="0 0 100 100"%0A xmlns="http://www.w3.org/2000/svg">%0A <path%0A class="fill-color"%0A d="m17.0555551 41.3194459c0-12.7430552 10.3541664-23.1027772 23.0847216-23.1027772 12.7166664 0 23.0777773 10.359722 23.0777773 23.1027772 0 12.7361108-10.3611109 23.0986106-23.0777773 23.0986106-12.7305552 0-23.0847216-10.3624998-23.0847216-23.0986106zm-17.24305512 0c0 22.2916661 18.04583292 40.3472213 40.32777672 40.3472213 8.9208332 0 17.145833-2.9319449 23.8194439-7.8527776l24.1513883 24.0777771c1.2125 1.1402778 2.8430555 1.8430556 4.6374999 1.8430556 3.7444443 0 6.7805554-3.0361111 6.7805554-6.7791665 0-2.0652778-.9222222-3.9069444-2.3736111-5.1499999l-23.718055-23.7458328c4.4152777-6.4791665 7.0152776-14.3055552 7.0152776-22.7402772 0-22.2791661-18.0458328-40.34861006-40.312499-40.34861006-22.2819438 0-40.32777672 18.06944396-40.32777672 40.34861006z"%0A fill="%232c2c2c"%0A fill-rule="evenodd"%0A />%0A</svg>%0A',au={CategoryChanged:"categoryChanged",SearchRequested:"searchRequested"},an=class extends rn{constructor(){super(...arguments),this.categories=[],this.placeholder=le("Search"),this.useMobileView=!1,this.hideDropdown=!1,this.loading=!1}get resolvedCategory(){var t,i,r,l;return(l=(r=this.selectedCategory)!=null?r:(i=(t=this.categories)==null?void 0:t[0])==null?void 0:i.id)!=null?l:""}render(){return fi`
<div id="container" part="container" role="search">
<div
id="main-bar"
part="main-bar"
class=${this.hideDropdown?"no-dropdown":je}
>
${this.hideDropdown?je:this.dropdownTemplate}
${this.textBoxTemplate} ${this.searchButtonTemplate}
</div>
</div>
`}get dropdownTemplate(){return fi`
<ia-dropdown
id="category-dropdown"
part="category-dropdown"
displayCaret
includeSelectedOption
closeOnSelect
closeOnEscape
closeOnBackdropClick
openViaButton
.selectedOption=${this.resolvedCategory}
.options=${this.categories}
@optionSelected=${this.handleCategorySelected}
>
<span slot="dropdown-label" part="category-dropdown-label"
>${this.selectedCategoryLabel}</span
>
</ia-dropdown>
`}get textBoxTemplate(){return fi`
<ia-clearable-text-input
id="search-input"
part="search-input"
.value=${this.spacedQuery}
placeholder=${this.placeholder}
clearButtonScreenReaderLabel=${le("Clear search query")}
screenReaderLabel=${le("Search the Archive. Filters and Advanced Search available below.")}
@clear=${this.searchFieldCleared}
@submit=${this.handleSubmit}
></ia-clearable-text-input>
`}get searchButtonTemplate(){return fi`
<button
id="search-button"
part="search-button"
class=${this.loading?"loading":je}
type="button"
aria-label=${le("Search")}
@click=${this.handleSubmit}
>
${this.loading?fi`<ia-status-indicator
mode="loading"
class="search-button-loading-icon"
></ia-status-indicator>`:fi`<img src=${og} alt="" />`}
</button>
`}get selectedCategoryLabel(){var t,i;return(i=(t=this.categories.find(r=>r.id===this.resolvedCategory))==null?void 0:t.label)!=null?i:this.resolvedCategory}get spacedQuery(){var t,i;return(i=(t=this.query)==null?void 0:t.replace(/\+/g," "))!=null?i:""}searchFieldCleared(){this.query&&this.emitSearchRequested()}handleSubmit(){this.emitSearchRequested()}handleCategorySelected(t){let i=t.detail.option.id;i!==this.resolvedCategory&&(this.selectedCategory=i,setTimeout(()=>this.searchInput.focus()),this.dispatchEvent(new CustomEvent(au.CategoryChanged,{detail:i})))}emitSearchRequested(){this.dispatchEvent(new CustomEvent(au.SearchRequested,{detail:{query:this.searchInput.value,category:this.resolvedCategory}}))}static get styles(){let t=Ji`
:host {
--search-bar-height--: var(--search-bar-height, 30px);
--search-bar-width--: var(--search-bar-width, 300px);
--search-bar-internal-padding--: var(--padding-sm, 5px);
--clear-button-offset--: var(--clear-button-offset, 0);
}
#container {
display: inline-block;
width: var(--search-bar-width--);
}
#main-bar {
display: flex;
height: var(--search-bar-height--, 30px);
flex: 1;
}
#category-dropdown {
display: flex;
flex-shrink: 0;
height: 100%;
box-sizing: border-box;
background-color: #f5f5f7;
border: 1px solid #999;
border-radius: 5px 0 0 5px;
--dropdownMainButtonPadding: 0 var(--search-bar-internal-padding--, 5px);
--dropdownBgColor: #2c2c2c;
--dropdownTextColor: #fff;
--dropdownBorderColor: #ddd;
--dropdownCaretColor: var(--ia-theme-primary-text-color, #2c2c2c);
--dropdownHoverBgColor: rgba(255, 255, 255, 0.3);
--dropdownHoverTextColor: #fff;
--dropdownSelectedBgColor: rgba(255, 255, 255, 0.3);
--dropdownSelectedTextColor: #fff;
--dropdownWhiteSpace: nowrap;
--dropdownOffsetTop: 2px;
--caretHeight: 8px;
--caretWidth: 12px;
--caretPadding: 0 0 0 5px;
--dropdownFontSize: inherit;
--dropdownBorderRadius: 4px;
--buttonSlotPaddingRight: 0;
--dropdownTextAlign: left;
}
#category-dropdown [slot='dropdown-label'] {
color: var(--ia-theme-primary-text-color, #2c2c2c);
font-size: 1.4rem;
font-family: inherit;
white-space: nowrap;
}
.no-dropdown #search-input {
border-left: 1px solid #999;
border-radius: 5px 0 0 5px;
overflow: hidden;
}
#search-input {
width: 100%;
height: 100%;
box-sizing: border-box;
border-top: 1px solid #999;
border-bottom: 1px solid #999;
font-size: inherit;
--input-height: calc(var(--search-bar-height--) - 2px);
--input-padding: 0 var(--search-bar-internal-padding--, 5px);
--input-background-color: var(
--ia-theme-secondary-background-color,
#fff
);
--input-border-radius: 0;
--input-border-width: 0;
--input-box-shadow: none;
--input-focused-box-shadow: none;
--input-font-size: auto;
--clear-button-top: var(--clear-button-offset--, 0);
--clear-button-right: 2px;
}
#search-button {
appearance: none;
box-sizing: border-box;
border-radius: 0 5px 5px 0;
background-color: var(--ia-theme-secondary-background-color, #fff);
border: 1px solid #999;
border-left: 0;
padding: 0 var(--search-bar-internal-padding--, 5px) 0 5px;
min-width: 30px;
height: 100%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
#search-button img {
width: 18px;
height: 18px;
}
.search-button-loading-icon {
--icon-width: 20px;
margin-top: 2px;
}
`;return[ng,t]}};F([mi({type:String})],an.prototype,"query",void 0);F([mi({type:Array})],an.prototype,"categories",void 0);F([mi({type:String})],an.prototype,"selectedCategory",void 0);F([mi({type:String})],an.prototype,"placeholder",void 0);F([mi({type:Boolean})],an.prototype,"useMobileView",void 0);F([mi({type:Boolean})],an.prototype,"hideDropdown",void 0);F([mi({type:Boolean})],an.prototype,"loading",void 0);F([ou("#search-input")],an.prototype,"searchInput",void 0);an=F([Kr("ia-dropdown-search-bar")],an);var su="__advancedsearch__";function Ps({event:t}){if(!window.archive_analytics)return;let[i,r]=t.split("|");window.archive_analytics.send_event_no_sampling(i,r,window.location.pathname)}function rg({detail:t}){Ps({event:"TopNav|NavSearchSubmit"});let i=new URLSearchParams;t.query&&i.set("query",t.query),t.category&&i.set("tab",t.category),window.location.href=`/search?${i.toString()}`}function ag(){let t=document.querySelector("ia-topnav ia-dropdown-search-bar");t==null||t.addEventListener("searchRequested",rg),t==null||t.addEventListener("categoryChanged",i=>{if(i.detail===su){t.selectedCategory="all",Ps({event:"TopNav|AdvancedSearchClicked"}),window.location.href="/advancedsearch.php";return}Ps({event:"TopNav|SearchCategoryChanged"})})}function sg(){let t=document.querySelector("ia-topnav ia-dropdown-search-bar"),i=document.createElement("span");i.textContent="Go to Advanced Search...",i.style.borderTop="1px solid #999",i.style.marginLeft="-10px",i.style.marginRight="-10px";let r={id:su,label:i};t.categories=t.categories.concat(r),t.selectedCategory="all"}document.addEventListener("DOMContentLoaded",()=>{ag(),sg()});globalThis.Tablesort=dr;Promise.resolve().then(()=>(pu(),du)).catch(()=>{});var De=class t{static paramsToJSON(){return Fl()}static isTouchDevice(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch}static theatre_controls_position(i,r,l,c){let d=i,f=c&&!i;if(!f&&(i||(d=q("#canvas")),!d.length))return;let g=f?c:d.height()||0,b=f?l:d.width()||0;!f&&typeof r!="undefined"&&q("#theatre-controls").offset({top:r});let x=Math.round((q("#theatre-ia-wrap").width()-q("#theatre-controls").width()-b)/2);$e("width",b),$e("right_gutter_width",x),q("#theatre-controls").css({height:g,visibility:"visible",right:Math.max(20,x/2)})}static theatresize(i){t.theatresize_maxheight||(t.theatresize_maxheight=null);let r=()=>{let d=Math.min(q(window).width(),400),f=q(window).height()-(q("#navwrap1").height()||0)-100;t.theatresize_maxheight&&(f=Math.min(f,t.theatresize_maxheight)),f=Math.max(f,d);let g=Math.min(f,1e3);q("#theatre-ia-wrap").addClass("resized").css("height",g),i&&i(q("#theatre-ia-wrap").height()||0)};r(),q(window).on("resize orientationchange",()=>{clearTimeout(t.theatresize_throttler),t.theatresize_throttler=setTimeout(r,250)})}static carouselsize(i,r){let l=q(i),c=l.find("img.carousel-image").map((d,f)=>{let g=q.Deferred(),b;return f.complete?b=g.resolve(f.naturalHeight).promise():(f.addEventListener("load",()=>{g.resolve(f.naturalHeight)}),b=g),b}).get();q.when(...c).then((...d)=>{let f=l.height(),g=Math.max(...d);f>g&&(l.css("maxHeight",g),r&&(t.theatresize_maxheight=g,q(window).trigger("resize")))})}static popover_menu(i,r){let l={trigger:"hover focus click",container:i,content:r.content,html:!0};r.title&&(l.title=r.title),r.placement&&(l.placement=r.placement),r.trigger&&(l.trigger=r.trigger),q(i).popover(l)}static drawPDF(i,r){let l="/download/".concat(i,"/",i,"_pdf.zip/",i,"_pdf/",i,"_"),c=!1,d=!1;for(let x of Object.keys(r)){let w=x.slice(0,4);if(d===!1&&(d=w),d!==w){c=!0;break}}let g="",b=666;for(let x of Object.keys(r)){if(x==="yyyymmdd")continue;let w=r[x].split(","),A=x.slice(0,4),M=parseInt(x.slice(4,6),10),O=parseInt(x.slice(6,8),10),E=A.concat("-",M),U=!1,Y="";E!==b&&(M===1?Y="January":M===2?Y="February":M===3?Y="March":M===4?Y="April":M===5?Y="May":M===6?Y="June":M===7?Y="July":M===8?Y="August":M===9?Y="September":M===10?Y="October":M===11?Y="November":M===12?Y="December":M===void 0?Y="Single Page PDFs":Y="Unknown_".concat(M),c&&(Y=A.concat(" ",Y)),g+=g?"</div><!--mo--><br/>":"",g+=`
<a href="#${Y},${A}" class="year-month" data-toggle="#m${E}">
<span class="iconochive-folder"></span> ${Y}
</a>
<div class="mo" id="m${E}">`),(O===void 0||O==="")&&(U=!0),U?g+='<div class="day">':g+=`
<div class="day">
<a href="#${E}-${O}" class="year-month-day" data-toggle="#m${E}d${O}">
<span class="iconochive-folder" /> ${O}
</a>
<div class="pages" id="m${E}d${O}">`;let ct=1,G,wt;for(let e=0;e<w.length;e++){if(G=w[e],!G)continue;ct>0&&(ct=1-G),wt=parseInt(G,10)+ct,G="0000".concat(G),G=G.substr(G.length-4,4);let n=l.concat(G,".pdf");g+=`<a href="${n}">[${wt}]</a> `}U?g+="</div>":g+="</div><!--pages--></div><!--day-->",b=E}g+="</div><!--mo-->",q("#pdfs .replaced").html(g),oi("#pdfs .year-month",x=>q(q(x.currentTarget).data().toggle).toggle()),oi("#pdfs .year-month-day",x=>q(q(x.currentTarget).data().toggle).toggle())}static quick_down(i,r){let l=`#${i}`;if(q(".format-group.in").length)q(".format-group").slideDown(400),setTimeout(()=>{q(".format-group.in").removeClass("in"),q(".download-button").html("DOWNLOAD OPTIONS")},400),q(l).slideUp();else{let c=q(r).text(),d=q(l).parents(".format-group");q(".download-button").html(c.concat(" FILES")),d.addClass("in"),q(".format-group:not(.in)").slideUp(),q(l).slideDown()}return!1}static arg(i,r){let l=r&&location.search===""?location.href.slice(1).split("&"):location.search.slice(1).split("&");for(let c=0;c<l.length;c++)if(l[c].slice(0,l[c].indexOf("="))===i){let d=l[c].slice(l[c].indexOf("=")+1);return d.length>0?unescape(d):""}return""}static embed_codes_adjust(){$e("showing embeds!");for(let i of["embedcodehere","embedcodehereWP"]){let r=q(`#${i}`);r.removeAttr("rows").css("height","");let l=r.text();q("body").prepend(q("<div/>").attr({id:`${i}Shadow`,class:"textarea-invert-readonly roundbox5"}).css({position:"absolute",visibility:"hidden",top:60,left:10,padding:"5px 15px 5px 15px",width:r.width(),"font-size":r.css("font-size")}).text(l));let c=q(`#${i}Shadow`).outerHeight()+15;$e(i,"bestie height",c,"for current width",r.width()),q(`#${i}Shadow`).remove(),r.height(c)}}static focus_last_descendent(i,r){let l=q(i).get(0).getRootNode(),c=q(i).find("*");for(let d of c.get().reverse())if(d.focus(),(l==null?void 0:l.activeElement)===d)return;r==null||r.focus()}static modal_add(i,r){q(i).length&&q(i).remove();let l=i.replace(/#/,""),{prepended_el:c=document.body}=r;return q(c).prepend(`
<div id="${l}" class="modal fade" role="dialog" aria-modal="true" aria-labelledby="modal-main-heading">
<div class="modal-dialog modal-lg">
<div class="focus-trap-start" tabindex="0"></div>
<div class="modal-content">
<div class="modal-header ${r.headerClass!==void 0?r.headerClass:"modal-header-std"}">
<button type="button" class="close" data-dismiss="modal">
<span class="iconochive-remove-circle"></span>
</button>
<h1 id="modal-main-heading" class="modal-title">
${typeof r.title=="undefined"?"Confirmed":r.title}
</h1>
</div>
<div id="${l}-body">
${typeof r.body=="undefined"?"":r.body}
</div>
</div>
<div class="focus-trap-end" tabindex="0"></div>
</div>
</div>`),q(i)}static isFavoriteSuccessful(i){return i.indexOf('<meta name="ia-favorite-success" content="1">')!==-1}static modal_go(i,r){let l=r,c=q(i);if(typeof q.fn.modal=="undefined"){if(r.recalling)throw Error("still cant modal -- are there two jquery on the page?");return r.recalling=1,Promise.resolve().then(()=>(Bs(),Hs)).then(()=>t.modal_go(i,r)),!1}l.favorite&&(l.login=!0,l.title="Log In",cn.get("logged-in-user")!==void 0&&(hn.toggle_favorite_icon(c,!0),hn.update_favorite_count(!0)));let d=c.attr("data-target"),f=l.favorite?c.attr("data-href"):c.attr("href");(!l.ignore_lnk||l.add_modal)&&t.modal_add(d,l);let g=q(d).find(".close"),b=q(d).find(".focus-trap-start"),x=q(d).find(".focus-trap-end");if(b.on("focus",()=>{let w=q(d).find(".modal-content");t.focus_last_descendent(w,g)}),x.on("focus",()=>{g.focus()}),l.shown&&q(d).on("shown.bs.modal",()=>{l.shown()}),l.follow_link_on_dismiss&&q(d).on("hidden.bs.modal",()=>{$e("modal hidden, going to ",f,".."),q("body").removeClass("blurry"),location.href=f}),l.login&&cn.get("logged-in-user")===void 0){if(location.protocol!=="https:")return location.href="https://archive.org/login",!1;let w="/account/login.embed.php";return q.get(w,A=>{let M=q(A).find(".container-ia > div").length?q(A).find(".container-ia > div").get(0):A;q(d).addClass("login-modal"),q(d.concat("-body")).html(M),q(d).modal("show"),q(d).on("shown.bs.modal",()=>{q(d).find(".input-email").focus()}),q(d).on("hide.bs.modal",()=>{i.focus()});let O=q(d.concat("-body form:has(input[type=submit])"));if(!O.length)return;let E=q(".password_icon")[0];navigator.cookieEnabled===!0?(q(".cookie-warning").addClass("hidden"),q(".login-form :input").prop("disabled",!1),E.src="/images/eye-crossed.svg",E.alt="Show text",q(".js-togglePasswordVisibility").on("click",()=>{let U=q(".input-password")[0];U.type==="password"?(U.type="text",E.src="/images/eye.svg",E.alt="Hide text"):(U.type="password",E.src="/images/eye-crossed.svg",E.alt="Show text")}),q(".input-email, .input-password").on("focus",()=>{q(".password-error").html(""),q(".reset-password").show()})):(q(".cookie-warning").removeClass("hidden"),q(".login-form :input").prop("disabled",!0)),Ul({$form:O,url:w,selector:d,element:i,conf:l})}),!1}return l.auto_remove&&(l.auto_close=!0,q(d).on("hidden.bs.modal",()=>{q(d).remove(),q("body").removeClass("blurry")})),l.ignore_lnk?q(d).modal("show"):(q.get(f,w=>{if(l.favorite)if(typeof archive_analytics!="undefined"&&archive_analytics.send_ping({kind:"event",ec:"page_action",ea:"favorite",el:location.pathname,cache_bust:Math.random()}),t.isFavoriteSuccessful(w))setTimeout(()=>{l.postLogin&&location.reload(!0)},t.modalInterval);else{hn.toggle_favorite_icon(c,!1),hn.update_favorite_count(!1);let A=q(d),M=`
<center>
<p class="favorite-failure-message">
There was an error adding the favorite. If the problem persists, please contact support.
</p>
</center>
`;A.find(".modal-title").html("Failed"),A.find(`${d}-body`).html(M),q(d).modal("show")}else q(d).modal("show"),l.auto_close&&setTimeout(()=>q(d).modal("hide"),t.modalInterval);q(d).find(".close").focus()}),q(d).on("hidden.bs.modal",()=>{q(d).remove()})),l.center&&q(d.concat(" .modal-dialog")).center(),l.auto_close&&l.ignore_lnk&&setTimeout(()=>q(d).modal("hide"),t.modalInterval),!1}static suffixFmt(i,r){return r.min>=0&&r.max<=5?Math.round(i*10,1)/10:i>=1e6?(i/1e6).toFixed(0).concat(" M"):i>=1e3?(i/1e3).toFixed(0).concat(" K"):i.toFixed(0)}static suffixFmtPercent(i,r){return t.suffixFmt(i,r).concat("%")}static pluralize(i,r,l){return i===1?r:l}static viewMessage(i,r,l){let c=r.length,d="<table><tr>";d+=`<th class="tt-date" rowspan="${c}">${i[2]} ${i[3]}</th>`,d+=`<td class="tt-number">${un(r[0])}</td>`,d+=`<td>${t.pluralize(r[0],"View","Views")} ${l[0]}</td></tr>`;for(let f=1;f<c;f++)d+=`<tr><td class="tt-number">${un(r[f])}</td>`,d+=`<td>${t.pluralize(r[f],"View","Views")} ${l[f]}</td></tr>`;return d+="<table>",d}static plot_graphs(){q(".js-ajs-plotter").each((i,r)=>{let l=JSON.parse(q(r).val());t.plotter(()=>{var d,f,g;$e("js-ajs-plotter",l);let c=JSON.parse(l.cfg);l.dayBarsNoPoints&&(c.dayBarsNoPoints=!0),l.dark&&(c.dark=!0),((d=c.yaxis)==null?void 0:d.tickFormatter)==="AJS.suffixFmt"&&(c.yaxis.tickFormatter=t.suffixFmt),l.fmt==="AJS.broadcastsTooltip"?l.fmt=t.broadcastsTooltip:l.fmt==="AJS.airedTooltip"?l.fmt=t.airedTooltip:((f=l.fmt)==null?void 0:f.length)===3&&l.fmt[0]==="AJS.graphsTooltip"?l.fmt=t.graphsTooltip(l.fmt[1],l.fmt[2]):((g=l.fmt)==null?void 0:g.length)===3&&l.fmt[0]==="AJS.statsTooltip"&&(l.fmt=t.statsTooltip(l.fmt[1],l.fmt[2])),t.plot(l.id,c,l.fmt,JSON.parse(l.pts),l.many)})})}static broadcastsTooltip(i,r){let l=new Date(i).toUTCString().split(" ");return`<nobr>${un(r)} broadcasts on ${l[2]} ${l[3]}</nobr>`}static airedTooltip(i,r){let l=new Date(i).toDateString().split(" ");return`<nobr>Aired ${un(r)} times on ${l[1]} ${l[2]}</nobr>`}static graphsTooltip(i,r){return(l,c)=>{let d=new Date(l).toDateString().split(" ");return`<nobr>${un(c)} ${i} in ${d[1]} ${r==="day"?d[2]:""} ${d[3]}</nobr>`}}static statsTooltip(i,r=0){let l;switch(i){case"main":{l=({y:d,t:f})=>`${un(d)} total items in <strong>${f[2]} ${f[3]}</strong>`;break}case"item":{l=({t:d,item:f})=>`<strong>${d[2]} ${d[3]}</strong>: ${un(f.datapoint[1])} ${t.pluralize(f.datapoint[1],"Item","Items")}`;break}case"download":{l=({t:d,item:f})=>`<strong>${d[2]} ${d[3]}</strong>: ${un(f.datapoint[1])} ${t.pluralize(f.datapoint[1],"Download","Downloads")}`;break}case"view":{l=({t:d,values:f,labels:g})=>t.viewMessage(d,f,g);break}default:break}return(d,f,g,b,x)=>{let w=new Date(d-r).toUTCString().split(" ");return`<span style="white-space: nowrap;">${l({x:d,y:f,item:g,t:w,values:b,labels:x})}</span>`}}static plotter(i){if(typeof t.plotters=="undefined"&&(t.plotters=[]),i)t.plotters.push(i),i();else{$e("plotter() resize/orient change",t.plotters.length,"graphs to resize");for(let r=0;r<t.plotters.length;r++)t.plotters[r]()}}static plot(i,r,l,c,d){let f=r;f.xaxis||(f.xaxis={mode:"time",color:f.dark?"#ccc":"#545454"}),f.yaxis||(f.yaxis={color:f.dark?"#ccc":"#545454"});let g;d&&f.barWidth?g=f.barWidth*1:f.barWidth?g=f.barWidth*86400*1e3:g=(f.dayBarsNoPoints?1:7)*86400*1e3,f.color||(f.color="#385C74"),f.stack?f.series={stack:!0,bars:{show:!0,barWidth:g,fill:!0},legend:{show:!0}}:f.series={bars:{show:!0,barWidth:g,fill:.6,color:f.color},color:f.color,points:{show:!f.dayBarsNoPoints}},typeof f.grid=="undefined"&&(f.grid={borderColor:f.dark?"#333":"#aaa",hoverable:!0}),f.dark&&(f.grid.backgroundColor="#002b36"),f.tip||(f.tip={}),f.tip.id||(f.tip.id=i),typeof window.GraphPriorIndex=="undefined"&&(window.GraphPriorIndex={});let b=[];f.series.stack?b=c:(b=d?c:typeof c.data=="undefined"?[{data:c}]:[c],f.dayBarsNoPoints&&!f.noLabel&&(b[0].label=i));let x=`#${i}`;Promise.resolve().then(()=>(Su(),Cu)).then(()=>{Promise.all([Promise.resolve().then(()=>(Iu(),Mu)),Promise.resolve().then(()=>(Hu(),Lu))]).then(()=>{let w=q.plot(q(x),b,f);l&&q(x).bind("plothover",(A,M,O)=>{if(!O){window.GraphPriorDatapoint=[0,0,0],q("#gtip").remove();return}if(window.GraphPriorDatapoint!==O.datapoint){window.GraphPriorDatapoint=O.datapoint,q("#gtip").remove();let E=[],U=[];if(f.stack){let n=w.getData();for(let a=0;a<n.length;a++){let o=n[a];U[a]=o.label;for(let h=0;h<o.data.length;h++)if(o.data[h][0]===O.datapoint[0]){E[a]=o.data[h][1];break}}}let Y=l(O.datapoint[0],O.datapoint[1],O,E,U),ct=q(x),G=ct.offset(),{pegTo:wt}=f.tip;wt||(wt=M.pageX-G.left>ct.width()/2?"right":"left");let e=wt==="right"?ct.width()-(M.pageX-G.left-20):M.pageX-G.left+20;$e(wt,e),q(`#${f.tip.id}`).append(`<div id="gtip" class="roundbox5 grafs-tooltip" style="top:${M.pageY-G.top}px; ${wt}:${e}px">${Y}</div>`).fadeIn(200)}})})})}static makeMouseElementAccessible(i){q(i).attr("tabindex","0").on("keypress keydown",function(l){if(l.type!=="click"){let c=l.keyCode||l.which;[32,13].indexOf(c)!==-1&&q(this).click()}})}static autocomplete(i,r,l){return ye(this,null,function*(){yield Promise.resolve().then(()=>(Vu(),qu)).then(()=>{q(i).autocomplete({appendTo:"#autocompletee",minLength:0,source:(c,d)=>{d(q.ui.autocomplete.filter(r,c.term.split(/,\s*/).pop()))},focus:()=>!1,select:function(d,f){if(l){let g=this.value.split(/,\s*/);g.pop(),g.push(f.item.value),g.push(""),this.value=g.join(", ")}else this.value=f.item.value;return!1}})})})}static thumbzilla(i=""){var d,f;let r=q("body").hasClass("tv");r&&(window!=null&&window.TV2)&&TV2.unplay("thumbzilla"),i||(i=(d=location.pathname.match(/\/details\/([^/&?]+)/))==null?void 0:d[1]);let l="",c=()=>{q("#opscreen1M").remove(),q("body").prepend(q("<div />").attr({id:"opscreen1M"})),q("<div/>").attr({id:"thumbzilla"}).html(`<div>${l}</div>`).appendTo("#opscreen1M"),q("#opscreen1M").css("visibility","hidden").show();let b=q(window).height()+(Eo?60:0);for(let x=720;x>=10;x-=10){let w=Math.round(x*.6875);if($e("TRYING",x,"x",w),q("#thumbzilla img").css({width:x,height:w}),q("#thumbzilla img:last").offset().top+w<=b)break}q("#thumbzilla div").center(),q("#opscreen1M").hide().css("visibility","visible").fadeIn("slow").one("click.opscreen1M.nixer",()=>q("#opscreen1M").fadeOut("slow")),window!=null&&window.TV2&&oi(".js-tvthumb",x=>{q("#opscreen1M").fadeOut("slow"),TV2.seekURL(q(x.currentTarget).href.replace(/^\/details\/[^/+]/,""))})};if(r&&q(".js-tv3-init").length){let g=JSON.parse((f=q(".js-tv3-init").val())!=null?f:"{}");q(g["TV3.thumbzillas"]).each((b,x)=>{let w=parseInt(x,10),A=`/details/${i}/start/${w}/end/${w+g["TV3.CLIP_SEC_MAX2"]}`;l+=`<a class="js-tvthumb" href="${A}">`,l+=`<img src="/download/${i}/${i}.thumbs/${i}_${x}.jpg"/></a>`}),c()}else q.getJSON(`/metadata/${i}/files`,g=>{for(let b of g.result){let x="original"in b&&b.name.match(/\.thumbs\/.*_([0-9]+)\.jpg$/);x&&(l+=`
<a href="/details/${i}/${b.original}?start=${Number(x[1])}"><img src="/download/${i}/${b.name}"></a>
`)}l&&c()});return!1}static setUpAccordions(){function i(l,c){Array.from(l).forEach(d=>{d!==c&&(d.open=!1)})}function r(l){function c(d){d.target.open&&(i(l.querySelectorAll("details"),d.target),q("html, body").animate({scrollTop:q(d.target).offset().top},400))}Array.from(l.querySelectorAll("details")).forEach(d=>{d.addEventListener("toggle",c)}),l.setAttribute("data-accordion-ready","")}Array.from(document.querySelectorAll("[data-accordion]")).forEach(r)}static isTextClamped(i){return i.clientHeight<i.scrollHeight}static bindClampCheckbox(i){let r=i.nextElementSibling;if(r&&r.type==="checkbox"){let l,c;q(r).on("click",()=>{if(q(r).is(":checked")){let d=window.visualViewport.pageTop;l=i.getBoundingClientRect().top+d,c=l<d?l-10:d}else l<window.visualViewport.pageTop&&window.scrollTo({top:c,behavior:"instant"})})}}static unbindClampCheckbox(i){let r=i.nextElementSibling;r&&r.type==="checkbox"&&r.checked&&q(r).off("click")}};q(()=>{if(globalThis.AJS_loaded)return;globalThis.AJS_loaded=!0,De.makeMouseElementAccessible(".accessible-link"),typeof archive_analytics!="undefined"&&archive_analytics.set_up_event_tracking(),De.setUpAccordions(),typeof archive_analytics!="undefined"&&archive_analytics.create_tracking_image("external_executes"),De.modalInterval=2e3,Wl.init(),De.plot_graphs(),q(".js-pages").each((w,A)=>{let M=JSON.parse(q(A).val());De.drawPDF(M.identifier,JSON.parse(M.pages))}),q(".js-carousel2").each(()=>{De.theatresize(),De.carouselsize("#ia-carousel",!0)}),document.querySelectorAll("table.Tablesort").forEach(w=>new dr(w)),oi(".js-ebook-maker",w=>ye(void 0,null,function*(){let A=w.currentTarget;A.parentElement.textContent="Generating...";let{maker:M}=q(A).data();$e({maker:M});let O=new URLSearchParams;for(let[U,Y]of Object.entries(M))O.append(U,encodeURIComponent(Y));let E=yield fetch("/services/make-ebook.php",{method:"POST",body:O});$e({res:E})}));let t=!De.isTouchDevice()&&typeof q.fn.tooltip=="undefined"?q('.container-ia [data-toggle="tooltip"], #cols [data-toggle="tooltip"], #tvbanner [data-toggle="tooltip"], #cher-modal [data-toggle="tooltip"]'):[];t.length&&Promise.resolve().then(()=>(Bs(),Hs)).then(()=>{t.length&&t.tooltip({})}),oi(".js-createclick",w=>{location.href="/create/"}),oi(".js-inliner",w=>{if(window.inlined)return;window.inlined=!0;let A=`${w.currentTarget.href}&nochrome=1`,M=q(w.currentTarget).parent().parent().parent();M.append('<div id="loadin" style="padding:50px"><hr/><h4><img src="/images/loading.gif"/> loading...</h4><hr/></div>'),q.get(A,O=>{q("#loadin").remove(),M.append(`<hr/>${O}`)})}),oi(".js-auto-submit-perpetual",()=>{document.getElementById("timeout_row").style.display="table-row",document.getElementById("loopsleep_row").style.display="table-row",document.getElementById("discard_itemlists_row").style.display="table-row",document.getElementById("timeout_row").classList.toggle("hidden"),document.getElementById("loopsleep_row").classList.toggle("hidden"),document.getElementById("discard_itemlists_row").classList.toggle("hidden")},"default"),ql(".js-auto-submit-cmd",w=>{w.currentTarget.value==="delete.php"&&alert(`
WARNING: The "lost_item" arg is automatically
added to delete.php tasks submitted through this form.
That means the command can be used only to
tidy our records for items that have already
gotten lost, not to delete existing items.
If run on an item that actually exists still,
the task will redrow.`)}),oi(".js-ajs-deadlists",w=>{let{href:A}=w.currentTarget;window.open(A,"popup","width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no")}),oi(".show-more-button",w=>{q(".metadata-hidden").slideToggle("fast"),q(w.currentTarget).find(".show-more-button__text").toggle()}),oi(".js-archive-expand_files",w=>{let A=q(w.currentTarget),M=A.data("id");M&&De.quick_down(M,A)}),oi(".js-archive-collapse_files",w=>{let M=q(w.currentTarget).data("id");M&&De.quick_down(M)}),oi(".js-catalog-delete",w=>{confirm("Are you sure you want to *delete* these tasks?")||w.preventDefault()},"default"),oi(".js-bookmark-removeBookmark",w=>{if(confirm("Are you sure you want to delete this favorite?")){let A=q(w.currentTarget).attr("href");A&&(window.location=A)}}),oi(".js-bookmarks-addCommentForm",w=>{let A=q(w.currentTarget).attr("identifier"),M=q(w.currentTarget).attr("action"),O=()=>{let n=document.getElementById(`${A}_form`);n.parentNode.removeChild(n);let a=document.getElementById(`${A}_commentLink`);a.style.display="";let o=document.getElementById(`${A}_existingComment`);o&&(o.style.display="")},E=document.createElement("form");E.action=M,E.method="post",E.id=`${A}_form`,E.style.margin="0",E.style.fontSize="12px",E.appendChild(document.createTextNode("Comment: "));let U=document.createElement("input");U.name="add_comment",U.type="text",document.getElementById(`${A}_existingCommentText`)&&(U.value=document.getElementById(`${A}_existingCommentText`).innerHTML),E.appendChild(U);let Y=document.createElement("input");Y.name="identifier",Y.type="hidden",Y.value=A,E.appendChild(Y);let ct=document.createElement("input");ct.name="submit",ct.type="submit",ct.value="Save",E.appendChild(ct);let G=document.createElement("input");G.type="button",G.id=`${A}_cancelButton`,G.rel=A,G.onclick=O,G.value="Cancel",E.appendChild(G),document.getElementById(`${A}_formSpan`).appendChild(E);let wt=document.getElementById(`${A}_commentLink`);wt.style.display="none";let e=document.getElementById(`${A}_existingComment`);e&&(e.style.display="none")});let i=document.querySelector("#js-useradmin-clipboard");i&&i.addEventListener("click",w=>{let A=Array.from(document.querySelectorAll(".js-useradmin-username")).map(M=>M.textContent).join(" ");navigator.clipboard.writeText(A)});let r=document.querySelector("#copy-link");r&&r.addEventListener("click",w=>{w.preventDefault();let{copylink:A}=r.dataset;navigator.clipboard.writeText(A);let M=r.querySelector(".sharee");M&&q(M).attr("data-original-title","Copied!").tooltip("show")});let l=document.querySelector(".js-useradmin-search");l&&(l.addEventListener("submit",w=>{w.preventDefault(),Array.from(l.querySelectorAll("input")).filter(A=>!A.value).forEach(A=>{let M=A;M.disabled=!0}),l.submit()}),Array.from(l.querySelectorAll("input")).forEach(w=>{let A=w;A.disabled=!1}));let c="#autocompletee input",d=q(c),f=q("#loader");d.on("input",wa(()=>{let w=d.val();w.length>=3&&(f.show(),q.getJSON(`?search=${encodeURIComponent(w)}`).done(A=>ye(void 0,null,function*(){f.hide(),yield De.autocomplete(c,A),q(c).autocomplete("search",w)})).fail(()=>{f.hide()}))},500));let g=q(".js-clamp"),b="clamped";g.length&&(g.each((w,A)=>{De.isTextClamped(A)&&(A.classList.add(b),De.bindClampCheckbox(A))}),window.addEventListener("resize",wa(()=>{g.each((w,A)=>{De.isTextClamped(A)?(A.classList.add(b),De.bindClampCheckbox(A)):(De.unbindClampCheckbox(A),A.classList.remove(b))})}),50));let x=document.getElementById("begin-play-section");if(x){let w=x.querySelector("#begin-play-at"),A=x.querySelector("#check-begin-play-at");if(w&&A){let M=a=>{if(!a.includes(":"))return Number(a);let o=a.split(":");if(o.length===2){let[C,D]=o.map(Number);return C*60+D}let[h,p,y]=o.map(Number);return h*3600+p*60+y},O=a=>{if(a>=3600){let p=Math.floor(a/3600),y=Math.floor(a%3600/60),C=a%60;return`${p}:${String(y).padStart(2,"0")}:${String(C).padStart(2,"0")}`}let o=Math.floor(a/60),h=a%60;return`${o}:${String(h).padStart(2,"0")}`},E=a=>{if(!a.includes(":"))return!isNaN(Number(a))&&Number(a)>=0;let o=a.split(":").map(Number);return o.length===2?o[0]>=0&&o[1]>=0&&o[1]<60:o.length===3?o[0]>=0&&o[1]>=0&&o[1]<60&&o[2]>=0&&o[2]<60:!1},U=a=>{let o=M(a);return O(o)},Y=()=>{let a=Yl("video");if(!a)return;let o=O(Math.floor(a.currentTime));w.value=o},ct=(a,o)=>{A.checked&&o?a.searchParams.set("start",o):a.searchParams.delete("start")},G=()=>{let{value:a}=w;A.checked&&!E(a)||document.getElementById("sharer").querySelectorAll("a").forEach(o=>{let h=new URL(window.location.href),p=new URL(o.href),y=M(a);if(p.href.startsWith("mailto:")){let D=new URLSearchParams(p.href.split("?")[1]||"").get("subject")||"";ct(h,y),o.setAttribute("href",`mailto:?body=${encodeURIComponent(h.href)}&subject=${encodeURIComponent(D)}`);return}if(Object.prototype.hasOwnProperty.call(o.dataset,"copylink")){ct(h,y),Object.defineProperty(o.dataset,"copylink",{value:h.href});return}for(let[C]of p.searchParams)["url","u","initialMedia","content","canonicalUrl"].includes(C)&&h.hostname.includes("archive.org")&&(ct(h,y),p.searchParams.set(C,h.href));o.setAttribute("href",p.href)})},wt=a=>{let o=document.getElementById("embedcodehere");if(!o)return;let p=new DOMParser().parseFromString(o.value,"text/html").querySelector("iframe");if(!p)return;let y=new URL(window.location.href);y.hostname="archive.org",y.pathname=y.pathname.replace("/details/","/embed/"),ct(y,M(a)),p.src=y.href,o.value=p.outerHTML},e=a=>{let o=document.getElementById("embedcodehereWP"),h=o.value.replace(/(\?start=[^&\s]+)/g,""),y=new URL(window.location.href).pathname.split("/details/")[1];A.checked&&M(a)>0?h=h.replace(/(\[archiveorg\s+)([^\s]+)/,`$1${y}?start=${M(a)}`):h=h.replace(/(\[archiveorg\s+)([^\s]+)/,`$1${y}`),o.value=h},n=()=>{let{value:a}=w;A.checked&&!E(a)||(wt(a),e(a))};A.addEventListener("change",a=>{G(),n()}),w.addEventListener("input",a=>{let{value:o}=a.target,h=o.replace(/[^0-9:]/g,"");h!==o&&(a.target.value=h),h&&(A.checked=!0),G(),n()}),w.addEventListener("blur",()=>{w.value=U(w.value),G(),n()}),q("#cher-modal").on("shown.bs.modal",()=>{Y()}),q("#cher-modal").on("hidden.bs.modal",()=>{A.checked=!1,A.dispatchEvent(new Event("change"))})}}q("#cher-modal").on("shown.bs.modal",()=>{let w=q("#cher-modal"),A=w.find(".close"),M=w.find(".focus-trap-start"),O=w.find(".focus-trap-end");A.focus(),M.on("focus",()=>{let E=q("#cher-modal .modal-content");De.focus_last_descendent(E,A)}),O.on("focus",()=>{A.focus()})}),q("#cher-modal").on("hidden.bs.modal",()=>{q('[data-target="#cher-modal"]').focus()})});window.AJS=De;})();
/*! Bundled license information:
jqueryui/jquery-ui.min.js:
(*! jQuery UI - v1.11.1 - 2014-08-13
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js, menu.js, progressbar.js, resizable.js, selectable.js, selectmenu.js, slider.js, sortable.js, spinner.js, tabs.js, tooltip.js
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT *)
*/
/*! Bundled license information:
js-cookie/dist/js.cookie.mjs:
(*! js-cookie v3.0.7 | MIT *)
*/
/*! Bundled license information:
jquery/dist/jquery.js:
(*!
* jQuery JavaScript Library v3.6.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2022-08-26T17:52Z
*)
*/
/*! Bundled license information:
clipboard/dist/clipboard.js:
(*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*)
*/
/*! Bundled license information:
magic-snowflakes/dist/snowflakes.esm.js:
(*! Snowflakes | © 2023 Denis Seleznev | MIT License | https://github.com/hcodes/snowflakes/ *)
*/
/*! Bundled license information:
@lit/reactive-element/css-tag.js:
(**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/reactive-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
lit-html/lit-html.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
lit-element/lit-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
lit-html/is-server.js:
(**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/custom-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/property.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/state.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/base.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/event-options.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/query.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/query-all.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/query-async.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/query-assigned-elements.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
@lit/reactive-element/decorators/query-assigned-nodes.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
currency.js/dist/currency.es.js:
(*!
* currency.js - v2.0.4
* http://scurker.github.io/currency.js
*
* Copyright (c) 2021 Jason Wilson
* Released under MIT license
*)
*/
/*! Bundled license information:
@lit/localize/internal/locale-status-event.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/str-tag.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/types.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/default-msg.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/localized-controller.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/localized-decorator.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/deferred.js:
(**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/fnv1a64.js:
(**
* @license
* Copyright 2014 Travis Webb
* SPDX-License-Identifier: MIT
*)
@lit/localize/internal/id-generation.js:
(**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/internal/runtime-msg.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/init/runtime.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/init/transform.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/localize/lit-localize.js:
(**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
lit-html/directive.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
lit-html/lit-html.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/directives/unsafe-html.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
dompurify/dist/purify.es.mjs:
(*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
*/
/*! Bundled license information:
@lit/reactive-element/reactive-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/property.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
lit-html/directives/when.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
/*! Bundled license information:
lit-html/directives/choose.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
// @license-end
//# sourceMappingURL=archive.min.js.map