vendor: 14,072 bytes, lines 1-2
1/*! For license information please see public-core-scripts.js.LICENSE.txt */ 2(()=>{var e={2625:function(e,t,n){!function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e=e&&e.hasOwnProperty("default")?e.default:e;var n={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">‹</li><li data-view="years current"></li><li data-view="years next">›</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">‹</li><li data-view="year current"></li><li data-view="year next">›</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">‹</li><li data-view="month current"></li><li data-view="month next">›</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},i="undefined"!=typeof window,o=i?window:{},a=!!i&&"ontouchstart"in o.document.documentElement,r="datepicker",s="click.".concat(r),l="focus.".concat(r),c="hide.".concat(r),u="keyup.".concat(r),d="pick.".concat(r),h="resize.".concat(r),f="scroll.".concat(r),p="show.".concat(r),m="touchstart.".concat(r),v="".concat(r,"-hide"),g={},y=0,b=1,x=2,w=Object.prototype.toString;function k(e){return"string"==typeof e}var C=Number.isNaN||o.isNaN;function T(e){return"number"==typeof e&&!C(e)}function $(e){return void 0===e}function _(e){return"date"===(t=e,w.call(t).slice(8,-1).toLowerCase())&&!C(e.getTime());var t}function E(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return e.apply(t,i.concat(o))}}function A(e){return'[data-view="'.concat(e,'"]')}function S(e){return e%4==0&&e%100!=0||e%400==0}function O(e,t){return[31,S(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]}function D(e,t,n){return Math.min(n,O(e,t))}var L=/(y|m|d)+/g;function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=String(Math.abs(e)),i=n.length,o="";for(e<0&&(o+="-");i<t;)i+=1,o+="0";return o+n}var j=/\d+/g,M={show:function(){this.built||this.build(),this.shown||this.trigger(p).isDefaultPrevented()||(this.shown=!0,this.$picker.removeClass(v).on(s,e.proxy(this.click,this)),this.showView(this.options.startView),this.inline||(this.$scrollParent.on(f,e.proxy(this.place,this)),e(window).on(h,this.onResize=E(this.place,this)),e(document).on(s,this.onGlobalClick=E(this.globalClick,this)),e(document).on(u,this.onGlobalKeyup=E(this.globalKeyup,this)),a&&e(document).on(m,this.onTouchStart=E(this.touchstart,this)),this.place()))},hide:function(){this.shown&&(this.trigger(c).isDefaultPrevented()||(this.shown=!1,this.$picker.addClass(v).off(s,this.click),this.inline||(this.$scrollParent.off(f,this.place),e(window).off(h,this.onResize),e(document).off(s,this.onGlobalClick),e(document).off(u,this.onGlobalKeyup),a&&e(document).off(m,this.onTouchStart))))},toggle:function(){this.shown?this.hide():this.show()},update:function(){var e=this.getValue();e!==this.oldValue&&(this.setDate(e,!0),this.oldValue=e)},pick:function(e){var t=this.$element,n=this.date;this.trigger(d,{view:e||"",date:n}).isDefaultPrevented()||(n=this.formatDate(this.date),this.setValue(n),this.isInput&&(t.trigger("input"),t.trigger("change")))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.shown&&this.showView(this.options.startView)},getMonthName:function(t,n){var i=this.options,o=i.monthsShort,a=i.months;return e.isNumeric(t)?t=Number(t):$(n)&&(n=t),!0===n&&(a=o),a[T(t)?t:this.date.getMonth()]},getDayName:function(t,n,i){var o=this.options,a=o.days;return e.isNumeric(t)?t=Number(t):($(i)&&(i=n),$(n)&&(n=t)),i?a=o.daysMin:n&&(a=o.daysShort),a[T(t)?t:this.date.getDay()]},getDate:function(e){var t=this.date;return e?this.formatDate(t):new Date(t)},setDate:function(t,n){var i=this.options.filter;if(_(t)||k(t)){if(t=this.parseDate(t),e.isFunction(i)&&!1===i.call(this.$element,t,"day"))return;this.date=t,this.viewDate=new Date(t),n||this.pick(),this.built&&this.render()}},setStartDate:function(e){_(e)||k(e)?this.startDate=this.parseDate(e):this.startDate=null,this.built&&this.render()},setEndDate:function(e){_(e)||k(e)?this.endDate=this.parseDate(e):this.endDate=null,this.built&&this.render()},parseDate:function(t){var n=this.format,i=[];return _(t)||(k(t)&&(i=t.match(j)||[]),_(t=t?new Date(t):new Date)||(t=new Date),i.length===n.parts.length&&(e.each(i,(function(e,i){var o=parseInt(i,10);switch(n.parts[e]){case"yy":t.setFullYear(2e3+o);break;case"yyyy":t.setFullYear(2===i.length?2e3+o:o);break;case"mm":case"m":t.setMonth(o-1)}})),e.each(i,(function(e,i){var o=parseInt(i,10);switch(n.parts[e]){case"dd":case"d":t.setDate(o)}})))),new Date(t.getFullYear(),t.getMonth(),t.getDate())},formatDate:function(t){var n=this.format,i="";if(_(t)){var o=t.getFullYear(),a=t.getMonth(),r=t.getDate(),s={d:r,dd:P(r,2),m:a+1,mm:P(a+1,2),yy:String(o).substring(2),yyyy:P(o,4)};i=n.source,e.each(n.parts,(function(e,t){i=i.replace(t,s[t])}))}return i},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(r)}},N={click:function(t){var n=e(t.target),i=this.options,o=this.date,a=this.viewDate,r=this.format;if(t.stopPropagation(),t.preventDefault(),!n.hasClass("disabled")){var s=n.data("view"),l=a.getFullYear(),c=a.getMonth(),u=a.getDate();switch(s){case"years prev":case"years next":l="years prev"===s?l-10:l+10,a.setFullYear(l),a.setDate(D(l,c,u)),this.renderYears();break;case"year prev":case"year next":l="year prev"===s?l-1:l+1,a.setFullYear(l),a.setDate(D(l,c,u)),this.renderMonths();break;case"year current":r.hasYear&&this.showView(x);break;case"year picked":r.hasMonth?this.showView(b):(n.siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","year"),this.hideView()),this.pick("year");break;case"year":l=parseInt(n.text(),10),o.setDate(D(l,c,u)),o.setFullYear(l),a.setDate(D(l,c,u)),a.setFullYear(l),r.hasMonth?this.showView(b):(n.addClass(i.pickedClass).data("view","year picked").siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","year"),this.hideView()),this.pick("year");break;case"month prev":case"month next":(c="month prev"===s?c-1:c+1)<0?(l-=1,c+=12):c>11&&(l+=1,c-=12),a.setFullYear(l),a.setDate(D(l,c,u)),a.setMonth(c),this.renderDays();break;case"month current":r.hasMonth&&this.showView(b);break;case"month picked":r.hasDay?this.showView(y):(n.siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","month"),this.hideView()),this.pick("month");break;case"month":c=e.inArray(n.text(),i.monthsShort),o.setFullYear(l),o.setDate(D(l,c,u)),o.setMonth(c),a.setFullYear(l),a.setDate(D(l,c,u)),a.setMonth(c),r.hasDay?this.showView(y):(n.addClass(i.pickedClass).data("view","month picked").siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","month"),this.hideView()),this.pick("month");break;case"day prev":case"day next":case"day":"day prev"===s?c-=1:"day next"===s&&(c+=1),u=parseInt(n.text(),10),o.setDate(1),o.setFullYear(l),o.setMonth(c),o.setDate(u),a.setDate(1),a.setFullYear(l),a.setMonth(c),a.setDate(u),this.renderDays(),"day"===s&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}}},globalClick:function(e){for(var t=e.target,n=this.element,i=this.$trigger[0],o=!0;t!==document;){if(t===i||t===n){o=!1;break}t=t.parentNode}o&&this.hide()},keyup:function(){this.update()},globalKeyup:function(e){var t=e.target,n=e.key,i=e.keyCode;this.isInput&&t!==this.element&&this.shown&&("Tab"===n||9===i)&&this.hide()},touchstart:function(t){var n=t.target;this.isInput&&n!==this.element&&!e.contains(this.$picker[0],n)&&(this.hide(),this.element.blur())}},I={render:function(){this.renderYears(),this.renderMonths(),this.renderDays()},renderWeek:function(){var t=this,n=[],i=this.options,o=i.weekStart,a=i.daysMin;o=parseInt(o,10)%7,a=a.slice(o).concat(a.slice(0,o)),e.each(a,(function(e,i){n.push(t.createItem({text:i}))})),this.$week.html(n.join(""))},renderYears:function(){var e,t=this.options,n=this.startDate,i=this.endDate,o=t.disabledClass,a=t.filter,r=t.yearSuffix,s=this.viewDate.getFullYear(),l=(new Date).getFullYear(),c=this.date.getFullYear(),u=[],d=!1,h=!1;for(e=-5;e<=6;e+=1){var f=new Date(s+e,1,1),p=!1;n&&(p=f.getFullYear()<n.getFullYear(),-5===e&&(d=p)),!p&&i&&(p=f.getFullYear()>i.getFullYear(),6===e&&(h=p)),!p&&a&&(p=!1===a.call(this.$element,f,"year"));var m=s+e===c,v=m?"year picked":"year";u.push(this.createItem({picked:m,disabled:p,text:s+e,view:p?"year disabled":v,highlighted:f.getFullYear()===l}))}this.$yearsPrev.toggleClass(o,d),this.$yearsNext.toggleClass(o,h),this.$yearsCurrent.toggleClass(o,!0).html("".concat(s+-5+r," - ").concat(s+6).concat(r)),this.$years.html(u.join(""))},renderMonths:function(){var t,n=this.options,i=this.startDate,o=this.endDate,a=this.viewDate,r=n.disabledClass||"",s=n.monthsShort,l=e.isFunction(n.filter)&&n.filter,c=a.getFullYear(),u=new Date,d=u.getFullYear(),h=u.getMonth(),f=this.date.getFullYear(),p=this.date.getMonth(),m=[],v=!1,g=!1;for(t=0;t<=11;t+=1){var y=new Date(c,t,1),b=!1;i&&(b=(v=y.getFullYear()===i.getFullYear())&&y.getMonth()<i.getMonth()),!b&&o&&(b=(g=y.getFullYear()===o.getFullYear())&&y.getMonth()>o.getMonth()),!b&&l&&(b=!1===l.call(this.$element,y,"month"));var x=c===f&&t===p,w=x?"month picked":"month";m.push(this.createItem({disabled:b,picked:x,highlighted:c===d&&y.getMonth()===h,index:t,text:s[t],view:b?"month disabled":w}))}this.$yearPrev.toggleClass(r,v),this.$yearNext.toggleClass(r,g),this.$yearCurrent.toggleClass(r,v&&g).html(c+n.yearSuffix||""),this.$months.html(m.join(""))},renderDays:function(){var e,t,n,i=this.$element,o=this.options,a=this.startDate,r=this.endDate,s=this.viewDate,l=this.date,c=o.disabledClass,u=o.filter,d=o.months,h=o.weekStart,f=o.yearSuffix,p=s.getFullYear(),m=s.getMonth(),v=new Date,g=v.getFullYear(),y=v.getMonth(),b=v.getDate(),x=l.getFullYear(),w=l.getMonth(),k=l.getDate(),C=[],T=p,$=m,_=!1;0===m?(T-=1,$=11):$-=1,e=O(T,$);var E=new Date(p,m,1);for((n=E.getDay()-parseInt(h,10)%7)<=0&&(n+=7),a&&(_=E.getTime()<=a.getTime()),t=e-(n-1);t<=e;t+=1){var A=new Date(T,$,t),S=!1;a&&(S=A.getTime()<a.getTime()),!S&&u&&(S=!1===u.call(i,A,"day")),C.push(this.createItem({disabled:S,highlighted:T===g&&$===y&&A.getDate()===b,muted:!0,picked:T===x&&$===w&&t===k,text:t,view:"day prev"}))}var D=[],L=p,P=m,j=!1;11===m?(L+=1,P=0):P+=1,e=O(p,m),n=42-(C.length+e);var M=new Date(p,m,e);for(r&&(j=M.getTime()>=r.getTime()),t=1;t<=n;t+=1){var N=new Date(L,P,t),I=L===x&&P===w&&t===k,H=!1;r&&(H=N.getTime()>r.getTime()),!H&&u&&(H=!1===u.call(i,N,"day")),D.push(this.createItem({disabled:H,picked:I,highlighted:L===g&&P===y&&N.getDate()===b,muted:!0,text:t,view:"day next"}))}var z=[];for(t=1;t<=e;t+=1){var F=new Date(p,m,t),R=!1;a&&(R=F.getTime()<a.getTime()),!R&&r&&(R=F.getTime()>r.getTime()),!R&&u&&(R=!1===u.call(i,F,"day"));var q=p===x&&m===w&&t===k,W=q?"day picked":"day";z.push(this.createItem({disabled:R,picked:q,highlighted:p===g&&m===y&&F.getDate()===b,text:t,view:R?"day disabled":W}))}this.$monthPrev.toggleClass(c,_),this.$monthNext.toggleClass(c,j),this.$monthCurrent.toggleClass(c,_&&j).html(o.yearFirst?"".concat(p+f," ").concat(d[m]):"".concat(d[m]," ").concat(p).concat(f)),this.$days.html(C.join("")+z.join("")+D.join(""))}},H="".concat(r,"-top-left"),z="".concat(r,"-top-right"),F="".concat(r,"-bottom-left"),R="".concat(r,"-bottom-right"),q=[H,z,F,R].join(" "),W=function(){function i(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,i),this.$element=e(t),this.element=t,this.options=e.extend({},n,g[o.language],e.isPlainObject(o)&&o),this.$scrollParent=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e(t),o=i.css("position"),a="absolute"===o,r=n?/auto|scroll|hidden/:/auto|scroll/,s=i.parents().filter((function(t,n){var i=e(n);return(!a||"static"!==i.css("position"))&&r.test(i.css("overflow")+i.css("overflow-y")+i.css("overflow-x"))})).eq(0);return"fixed"!==o&&s.length?s:e(t.ownerDocument||document)}(t,!0),this.built=!1,this.shown=!1,this.isInput=!1,this.inline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}return o=i,a=[{key:"init",value:function(){var t=this.$element,n=this.options,i=n.startDate,o=n.endDate,a=n.date;this.$trigger=e(n.trigger),this.isInput=t.is("input")||t.is("textarea"),this.inline=n.inline&&(n.container||!this.isInput),this.format=function(t){var n=String(t).toLowerCase(),i=n.match(L);if(!i||0===i.length)throw new Error("Invalid date format.");return t={source:n,parts:i},e.each(i,(function(e,n){switch(n){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}})),t}(n.format);var r=this.getValue();this.initialValue=r,this.oldValue=r,a=this.parseDate(a||r),i&&(i=this.parseDate(i),a.getTime()<i.getTime()&&(a=new Date(i)),this.startDate=i),o&&(o=this.parseDate(o),i&&o.getTime()<i.getTime()&&(o=new Date(i)),a.getTime()>
2o.getTime()&&(a=new Date(o)),this.endDate=o),this.date=a,this.viewDate=new Date(a),this.initialDate=new Date(this.date),this.bind(),(n.autoShow||this.inline)&&this.show(),n.autoPick&&this.pick()}},{key:"build",value:function(){if(!this.built){this.built=!0;var t=this.$element,n=this.options,i=e(n.template);this.$picker=i,this.$week=i.find(A("week")),this.$yearsPicker=i.find(A("years picker")),this.$yearsPrev=i.find(A("years prev")),this.$yearsNext=i.find(A("years next")),this.$yearsCurrent=i.find(A("years current")),this.$years=i.find(A("years")),this.$monthsPicker=i.find(A("months picker")),this.$yearPrev=i.find(A("year prev")),this.$yearNext=i.find(A("year next")),this.$yearCurrent=i.find(A("year current")),this.$months=i.find(A("months")),this.$daysPicker=i.find(A("days picker")),this.$monthPrev=i.find(A("month prev")),this.$monthNext=i.find(A("month next")),this.$monthCurrent=i.find(A("month current")),this.$days=i.find(A("days")),this.inline?e(n.container||t).append(i.addClass("".concat(r,"-inline"))):(e(document.body).append(i.addClass("".concat(r,"-dropdown"))),i.addClass(v).css({zIndex:parseInt(n.zIndex,10)})),this.renderWeek()}}},{key:"unbuild",value:function(){this.built&&(this.built=!1,this.$picker.remove())}},{key:"bind",value:function(){var t=this.options,n=this.$element;e.isFunction(t.show)&&n.on(p,t.show),e.isFunction(t.hide)&&n.on(c,t.hide),e.isFunction(t.pick)&&n.on(d,t.pick),this.isInput&&n.on(u,e.proxy(this.keyup,this)),this.inline||(t.trigger?this.$trigger.on(s,e.proxy(this.toggle,this)):this.isInput?n.on(l,e.proxy(this.show,this)):n.on(s,e.proxy(this.show,this)))}},{key:"unbind",value:function(){var t=this.$element,n=this.options;e.isFunction(n.show)&&t.off(p,n.show),e.isFunction(n.hide)&&t.off(c,n.hide),e.isFunction(n.pick)&&t.off(d,n.pick),this.isInput&&t.off(u,this.keyup),this.inline||(n.trigger?this.$trigger.off(s,this.toggle):this.isInput?t.off(l,this.show):t.off(s,this.show))}},{key:"showView",value:function(e){var t=this.$yearsPicker,n=this.$monthsPicker,i=this.$daysPicker,o=this.format;if(o.hasYear||o.hasMonth||o.hasDay)switch(Number(e)){case x:n.addClass(v),i.addClass(v),o.hasYear?(this.renderYears(),t.removeClass(v),this.place()):this.showView(y);break;case b:t.addClass(v),i.addClass(v),o.hasMonth?(this.renderMonths(),n.removeClass(v),this.place()):this.showView(x);break;default:t.addClass(v),n.addClass(v),o.hasDay?(this.renderDays(),i.removeClass(v),this.place()):this.showView(b)}}},{key:"hideView",value:function(){!this.inline&&this.options.autoHide&&this.hide()}},{key:"place",value:function(){if(!this.inline){var t=this.$element,n=this.options,i=this.$picker,o=e(document).outerWidth(),a=e(document).outerHeight(),r=t.outerWidth(),s=t.outerHeight(),l=i.width(),c=i.height(),u=t.offset(),d=u.left,h=u.top,f=parseFloat(n.offset),p=H;C(f)&&(f=10),h>c&&h+s+c>a?(h-=c+f,p=F):h+=s+f,d+l>o&&(d+=r-l,p=p.replace("left","right")),i.removeClass(q).addClass(p).css({top:h,left:d})}}},{key:"trigger",value:function(t,n){var i=e.Event(t,n);return this.$element.trigger(i),i}},{key:"createItem",value:function(t){var n=this.options,i=n.itemTag,o={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},a=[];return e.extend(o,t),o.muted&&a.push(n.mutedClass),o.highlighted&&a.push(n.highlightedClass),o.picked&&a.push(n.pickedClass),o.disabled&&a.push(n.disabledClass),"<".concat(i,' class="').concat(a.join(" "),'" data-view="').concat(o.view,'">').concat(o.text,"</").concat(i,">")}},{key:"getValue",value:function(){var e=this.$element;return this.isInput?e.val():e.text()}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.$element;
2this.isInput?t.val(e):this.inline&&!this.options.container||t.text(e)}}],h=[{key:"setDefaults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.extend(n,g[t.language],e.isPlainObject(t)&&t)}}],a&&t(o.prototype,a),h&&t(o,h),i;var o,a,h}();if(e.extend&&e.extend(W.prototype,I,N,M),e.fn){var B=e.fn.datepicker;e.fn.datepicker=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var a;return this.each((function(n,o){var s=e(o),l="destroy"===t,c=s.data(r);if(!c){if(l)return;var u=e.extend({},s.data(),e.isPlainObject(t)&&t);c=new W(o,u),s.data(r,c)}if(k(t)){var d=c[t];e.isFunction(d)&&(a=d.apply(c,i),l&&s.removeData(r))}})),$(a)?this:a},e.fn.datepicker.Constructor=W,e.fn.datepicker.languages=g,e.fn.datepicker.setDefaults=W.setDefaults,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=B,this}}}(n(9513))},8487:function(e,t){!function(e){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,n)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);r=!0);}catch(e){s=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}var b=function(e){return"object"===i(e)&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e)},x=function e(){for(var t=!1,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];"boolean"==typeof o[0]&&(t=o.shift());var r=o[0];if(!r||"object"!==i(r))throw new Error("extendee must be an object");for(var s=o.slice(1),l=s.length,c=0;c<l;c++){var u=s[c];for(var d in u)if(u.hasOwnProperty(d)){var h=u[d];if(t&&(Array.isArray(h)||b(h))){var f=Array.isArray(h)?[]:{};r[d]=e(!0,r.hasOwnProperty(d)?r[d]:f,h)}else r[d]=h}}return r},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return e=parseFloat(e)||0,Math.round((e+Number.EPSILON)*t)/t},k=function e(t){return!!(t&&"object"===i(t)&&t instanceof Element&&t!==document.body)&&!t.__Panzoom&&(function(e){var t=getComputedStyle(e)["overflow-y"],n=getComputedStyle(e)["overflow-x"],i=("scroll"===t||"auto"===t)&&Math.abs(e.scrollHeight-e.clientHeight)>1,o=("scroll"===n||"auto"===n)&&Math.abs(e.scrollWidth-e.clientWidth)>1;return i||o}(t)?t:e(t.parentNode))},C="undefined"!=typeof window&&window.ResizeObserver||function(){function e(t){o(this,e),this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=t}return r(e,[{key:"observe",value:function(e){if(!this.observables.some((function(t){return t.el===e}))){var t={el:e,size:{height:e.clientHeight,width:e.clientWidth}};this.observables.push(t)}}},{key:"unobserve",value:function(e){this.observables=this.observables.filter((function(t){return t.el!==e}))}},{key:"disconnect",value:function(){this.observables=[]}},{key:"check",value:function(){var e=this.observables.filter((function(e){var t=e.el.clientHeight,n=e.el.clientWidth;if(e.size.height!==t||e.size.width!==n)return e.size.height=t,e.size.width=n,!0})).map((function(e){return e.el}));e.length>0&&this.callback(e),window.requestAnimationFrame(this.boundCheck)}}]),e}(),T=r((function e(t){o(this,e),this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY})),$=function(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0},_=function(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e},E=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.start,r=void 0===a?function(){return!0}:a,s=i.move,l=void 0===s?function(){}:s,c=i.end,u=void 0===c?function(){}:c;o(this,e),this._element=t,this.startPointers=[],this.currentPointers=[],this._pointerStart=function(e){if(!(e.buttons>0&&0!==e.button)){var t=new T(e);n.currentPointers.some((function(e){return e.id===t.id}))||n._triggerPointerStart(t,e)&&(window.addEventListener("mousemove",n._move),window.addEventListener("mouseup",n._pointerEnd))}},this._touchStart=function(e){for(var t=0,i=Array.from(e.changedTouches||[]);t<i.length;t++){var o=i[t];n._triggerPointerStart(new T(o),e)}},this._move=function(e){var t,i=n.currentPointers.slice(),o=function(e){return"changedTouches"in e}(e)?Array.from(e.changedTouches).map((function(e){return new T(e)})):[new T(e)],a=[],r=y(o);try{var s=function(){var e=t.value,i=n.currentPointers.findIndex((function(t){return t.id===e.id}));if(i<0)return"continue";a.push(e),n.currentPointers[i]=e};for(r.s();!(t=r.n()).done;)s()}catch(e){r.e(e)}finally{r.f()}n._moveCallback(i,n.currentPointers.slice(),e)},this._triggerPointerEnd=function(e,t){var i=n.currentPointers.findIndex((function(t){return t.id===e.id}));return!(i<0||(n.currentPointers.splice(i,1),n.startPointers.splice(i,1),n._endCallback(e,t),0))},this._pointerEnd=function(e){e.buttons>0&&0!==e.button||n._triggerPointerEnd(new T(e),e)&&(window.removeEventListener("mousemove",n._move,{passive:!1}),window.removeEventListener("mouseup",n._pointerEnd,{passive:!1}))},this._touchEnd=function(e){for(var t=0,i=Array.from(e.changedTouches||[]);t<i.length;t++){var o=i[t];n._triggerPointerEnd(new T(o),e)}},this._startCallback=r,this._moveCallback=l,this._endCallback=u,this._element.addEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.addEventListener("touchstart",this._touchStart,{passive:!1}),this._element.addEventListener("touchmove",this._move,{passive:!1}),this._element.addEventListener("touchend",this._touchEnd),this._element.addEventListener("touchcancel",this._touchEnd)}return r(e,[{key:"stop",value:function(){this._element.removeEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.removeEventListener("touchstart",this._touchStart,{passive:!1}),this._element.removeEventListener("touchmove",this._move,{passive:!1}),this._element.removeEventListener("touchend",this._touchEnd),this._element.removeEventListener("touchcancel",this._touchEnd),window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)}},{key:"_triggerPointerStart",value:function(e,t){return!!this._startCallback(e,t)&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}}]),e}(),A=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.options=x(!0,{},t),this.plugins=[],this.events={};for(var n=0,i=["on","once"];n<i.length;n++)for(var a=i[n],r=0,s=Object.entries(this.options[a]||{});r<s.length;r++){var l=s[r];this[a].apply(this,m(l))}}return r(e,[{key:"option",value:function(e,t){var n=function(e,t){return e.split(".").reduce((function(e,t){return e&&e[t]}),t)}(e=String(e),this.options);if("function"==typeof n){for(var i,o=arguments.length,a=new Array(o>2?o-2:0),r=2;r<o;r++)a[r-2]=arguments[r];n=(i=n).call.apply(i,[this,this].concat(a))}return void 0===n?t:n}},{key:"localize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(function(e,i,o){var a="";o?a=t.option("".concat(i[0]+i.toLowerCase().substring(1),".l10n.").concat(o)):i&&(a=t.option("l10n.".concat(i))),a||(a=e);for(var r=0;r<n.length;r++)a=a.split(n[r][0]).join(n[r][1]);return a}))).replace(/\{\{(.*)\}\}/,(function(e,t){return t}))}},{key:"on",value:function(e,t){var n=this;if(b(e)){for(var i=0,o=Object.entries(e);i<o.length;i++){var a=o[i];this.on.apply(this,m(a))}return this}return String(e).split(" ").forEach((function(e){var i=n.events[e]=n.events[e]||[];-1==i.indexOf(t)&&i.push(t)})),this}},{key:"once",value:function(e,t){var n=this;if(b(e)){for(var i=0,o=Object.entries(e);i<o.length;i++){var a=o[i];this.once.apply(this,m(a))}return this}return String(e).split(" ").forEach((function(e){var i=function i(){n.off(e,i);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];t.call.apply(t,[n,n].concat(a))};i._=t,n.on(e,i)})),this}},{key:"off",value:function(e,t){var n=this;if(!b(e))return e.split(" ").forEach((function(e){var i=n.events[e];if(!i||!i.length)return n;for(var o=-1,a=0,r=i.length;a<r;a++){var s=i[a];if(s&&(s===t||s._===t)){o=a;break}}-1!=o&&i.splice(o,1)})),this;for(var i=0,o=Object.entries(e);i<o.length;i++){var a=o[i];this.off.apply(this,m(a))}}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o,a=y(m(this.events[e]||[]).slice());try{for(a.s();!(o=a.n()).done;){var r=o.value;if(r&&!1===r.call.apply(r,[this,this].concat(n)))return!1}}catch(e){a.e(e)}finally{a.f()}var s,l=y(m(this.events["*"]||[]).slice());try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c&&!1===c.call.apply(c,[this,e,this].concat(n)))return!1}}catch(e){l.e(e)}finally{l.f()}return!0}},{key:"attachPlugins",value:function(e){for(var t={},n=0,i=Object.entries(e||{});n<i.length;n++){var o=p(i[n],2),a=o[0],r=o[1];!1===this.options[a]||this.plugins[a]||(this.options[a]=x({},r.defaults||{},this.options[a]),t[a]=new r(this))}for(var s=0,l=Object.entries(t);s<l.length;s++){var c=p(l[s],2);c[0],c[1].attach(this)}return this.plugins=Object.assign({},this.plugins,t),this}},{key:"detachPlugins",value:function(){for(var e in this.plugins){var t=void 0;(t=this.plugins[e])&&"function"==typeof t.detach&&t.detach(this)}return this.plugins={},this}}]),e}(),S={touch:!0,zoom:!0,pinchToZoom:!0,panOnlyZoomed:!1,lockAxis:!1,friction:.64,decelFriction:.88,zoomFriction:.74,bounceForce:.2,baseScale:1,minScale:1,maxScale:2,step:.5,textSelection:!1,click:"toggleZoom",wheel:"zoom",wheelFactor:42,wheelLimit:5,draggableClass:"is-draggable",draggingClass:"is-dragging",ratio:1},O=function(e){l(i,e);var t=h(i);function i(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,i),(n=t.call(this,x(!0,{},S,a))).state="init",n.$container=e;for(var r=0,s=["onLoad","onWheel","onClick"];r<s.length;r++){var l=s[r];n[l]=n[l].bind(d(n))}return n.initLayout(),n.resetValues(),n.attachPlugins(i.Plugins),n.trigger("init"),n.updateMetrics(),n.attachEvents(),n.trigger("ready"),!1===n.option("centerOnStart")?n.state="ready":n.panTo({friction:0}),e.__Panzoom=d(n),n}return r(i,[{key:"initLayout",value:function(){var e=this.$container;if(!(e instanceof HTMLElement))throw new Error("Panzoom: Container not found");var t=this.option("content")||e.querySelector(".panzoom__content");
2if(!t)throw new Error("Panzoom: Content not found");this.$content=t;var n,i=this.option("viewport")||e.querySelector(".panzoom__viewport");i||!1===this.option("wrapInner")||((i=document.createElement("div")).classList.add("panzoom__viewport"),(n=i).append.apply(n,m(e.childNodes)),e.appendChild(i)),this.$viewport=i||t.parentNode}},{key:"resetValues",value:function(){this.updateRate=this.option("updateRate",/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?250:24),this.container={width:0,height:0},this.viewport={width:0,height:0},this.content={origWidth:0,origHeight:0,width:0,height:0,x:this.option("x",0),y:this.option("y",0),scale:this.option("baseScale")},this.transform={x:0,y:0,scale:1},this.resetDragPosition()}},{key:"onLoad",value:function(e){this.updateMetrics(),this.panTo({scale:this.option("baseScale"),friction:0}),this.trigger("load",e)}},{key:"onClick",value:function(e){if(!(e.defaultPrevented||document.activeElement&&document.activeElement.closest("[contenteditable]")))if(!this.option("textSelection")||!window.getSelection().toString().length||e.target&&e.target.hasAttribute("data-fancybox-close")){var t=this.$content.getClientRects()[0];if("ready"!==this.state&&(this.dragPosition.midPoint||Math.abs(t.top-this.dragStart.rect.top)>1||Math.abs(t.left-this.dragStart.rect.left)>1))return e.preventDefault(),void e.stopPropagation();!1!==this.trigger("click",e)&&this.option("zoom")&&"toggleZoom"===this.option("click")&&(e.preventDefault(),e.stopPropagation(),this.zoomWithClick(e))}else e.stopPropagation()}},{key:"onWheel",value:function(e){!1!==this.trigger("wheel",e)&&this.option("zoom")&&this.option("wheel")&&this.zoomWithWheel(e)}},{key:"zoomWithWheel",value:function(e){void 0===this.changedDelta&&(this.changedDelta=0);var t=Math.max(-1,Math.min(1,-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)),n=this.content.scale,i=n*(100+t*this.option("wheelFactor"))/100;if(t<0&&Math.abs(n-this.option("minScale"))<.01||t>0&&Math.abs(n-this.option("maxScale"))<.01?(this.changedDelta+=Math.abs(t),i=n):(this.changedDelta=0,i=Math.max(Math.min(i,this.option("maxScale")),this.option("minScale"))),!(this.changedDelta>this.option("wheelLimit"))&&(e.preventDefault(),i!==n)){var o=this.$content.getBoundingClientRect(),a=e.clientX-o.left,r=e.clientY-o.top;this.zoomTo(i,{x:a,y:r})}}},{key:"zoomWithClick",value:function(e){var t=this.$content.getClientRects()[0],n=e.clientX-t.left,i=e.clientY-t.top;this.toggleZoom({x:n,y:i})}},{key:"attachEvents",value:function(){var e=this;this.$content.addEventListener("load",this.onLoad),this.$container.addEventListener("wheel",this.onWheel,{passive:!1}),this.$container.addEventListener("click",this.onClick,{passive:!1}),this.initObserver();var t=new E(this.$container,{start:function(n,i){if(!e.option("touch"))return!1;if(e.velocity.scale<0)return!1;var o=i.composedPath()[0];if(!t.currentPointers.length){if(-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(o.nodeName))return!1;if(e.option("textSelection")&&function(e,t,n){for(var i=e.childNodes,o=document.createRange(),a=0;a<i.length;a++){var r=i[a];if(r.nodeType===Node.TEXT_NODE){o.selectNodeContents(r);var s=o.getBoundingClientRect();if(t>=s.left&&n>=s.top&&t<=s.right&&n<=s.bottom)return r}}return!1}(o,n.clientX,n.clientY))return!1}return!k(o)&&!1!==e.trigger("touchStart",i)&&("mousedown"===i.type&&i.preventDefault(),e.state="pointerdown",e.resetDragPosition(),e.dragPosition.midPoint=null,e.dragPosition.time=Date.now(),!0)},move:function(n,i,o){if("pointerdown"===e.state)if(!1!==e.trigger("touchMove",o)){if(!(i.length<2&&!0===e.option("panOnlyZoomed")&&e.content.width<=e.viewport.width&&e.content.height<=e.viewport.height&&e.transform.scale<=e.option("baseScale"))&&(!(i.length>1)||e.option("zoom")&&!1!==e.option("pinchToZoom"))){var a=_(n[0],n[1]),r=_(i[0],i[1]),s=r.clientX-a.clientX,l=r.clientY-a.clientY,c=$(n[0],n[1]),u=$(i[0],i[1]),d=c&&u?u/c:1;e.dragOffset.x+=s,e.dragOffset.y+=l,e.dragOffset.scale*=d,e.dragOffset.time=Date.now()-e.dragPosition.time;var h=1===e.dragStart.scale&&e.option("lockAxis");if(h&&!e.lockAxis){if(Math.abs(e.dragOffset.x)<6&&Math.abs(e.dragOffset.y)<6)return void o.preventDefault();var f=Math.abs(180*Math.atan2(e.dragOffset.y,e.dragOffset.x)/Math.PI);e.lockAxis=f>45&&f<135?"y":"x"}if("xy"===h||"y"!==e.lockAxis){if(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation(),e.lockAxis&&(e.dragOffset["x"===e.lockAxis?"y":"x"]=0),e.$container.classList.add(e.option("draggingClass")),e.transform.scale===e.option("baseScale")&&"y"===e.lockAxis||(e.dragPosition.x=e.dragStart.x+e.dragOffset.x),e.transform.scale===e.option("baseScale")&&"x"===e.lockAxis||(e.dragPosition.y=e.dragStart.y+e.dragOffset.y),e.dragPosition.scale=e.dragStart.scale*e.dragOffset.scale,i.length>1){var p=_(t.startPointers[0],t.startPointers[1]),m=p.clientX-e.dragStart.rect.x,v=p.clientY-e.dragStart.rect.y,g=e.getZoomDelta(e.content.scale*e.dragOffset.scale,m,v),y=g.deltaX,b=g.deltaY;e.dragPosition.x-=y,e.dragPosition.y-=b,e.dragPosition.midPoint=r}else e.setDragResistance();e.transform={x:e.dragPosition.x,y:e.dragPosition.y,scale:e.dragPosition.scale},e.startAnimation()}}}else o.preventDefault()},end:function(i,o){if("pointerdown"===e.state)if(e._dragOffset=n({},e.dragOffset),t.currentPointers.length)e.resetDragPosition();else if(e.state="decel",e.friction=e.option("decelFriction"),e.recalculateTransform(),e.$container.classList.remove(e.option("draggingClass")),!1!==e.trigger("touchEnd",o)&&"decel"===e.state){var a=e.option("minScale");if(e.transform.scale<a)e.zoomTo(a,{friction:.64});else{var r=e.option("maxScale");if(e.transform.scale-r>.01){var s=e.dragPosition.midPoint||i,l=e.$content.getClientRects()[0];e.zoomTo(r,{friction:.64,x:s.clientX-l.left,y:s.clientY-l.top})}}}}});this.pointerTracker=t}}
2,{key:"initObserver",value:function(){var e=this;this.resizeObserver||(this.resizeObserver=new C((function(){e.updateTimer||(e.updateTimer=setTimeout((function(){var t=e.$container.getBoundingClientRect();t.width&&t.height?((Math.abs(t.width-e.container.width)>1||Math.abs(t.height-e.container.height)>1)&&(e.isAnimating()&&e.endAnimation(!0),e.updateMetrics(),e.panTo({x:e.content.x,y:e.content.y,scale:e.option("baseScale"),friction:0})),e.updateTimer=null):e.updateTimer=null}),e.updateRate))})),this.resizeObserver.observe(this.$container))}},{key:"resetDragPosition",value:function(){this.lockAxis=null,this.friction=this.option("friction"),this.velocity={x:0,y:0,scale:0};var e=this.content,t=e.x,i=e.y,o=e.scale;this.dragStart={rect:this.$content.getBoundingClientRect(),x:t,y:i,scale:o},this.dragPosition=n(n({},this.dragPosition),{},{x:t,y:i,scale:o}),this.dragOffset={x:0,y:0,scale:1,time:0}}},{key:"updateMetrics",value:function(e){!0!==e&&this.trigger("beforeUpdate");var t,i=this.$container,o=this.$content,a=this.$viewport,r=o instanceof HTMLImageElement,s=this.option("zoom"),l=this.option("resizeParent",s),c=this.option("width"),u=this.option("height"),d=c||(t=o,Math.max(parseFloat(t.naturalWidth||0),parseFloat(t.width&&t.width.baseVal&&t.width.baseVal.value||0),parseFloat(t.offsetWidth||0),parseFloat(t.scrollWidth||0))),h=u||function(e){return Math.max(parseFloat(e.naturalHeight||0),parseFloat(e.height&&e.height.baseVal&&e.height.baseVal.value||0),parseFloat(e.offsetHeight||0),parseFloat(e.scrollHeight||0))}(o);Object.assign(o.style,{width:c?"".concat(c,"px"):"",height:u?"".concat(u,"px"):"",maxWidth:"",maxHeight:""}),l&&Object.assign(a.style,{width:"",height:""});var f=this.option("ratio");c=d=w(d*f),u=h=w(h*f);var p=o.getBoundingClientRect(),m=a.getBoundingClientRect(),v=a==i?m:i.getBoundingClientRect(),g=Math.max(a.offsetWidth,w(m.width)),y=Math.max(a.offsetHeight,w(m.he
2ight)),b=window.getComputedStyle(a);if(g-=parseFloat(b.paddingLeft)+parseFloat(b.paddingRight),y-=parseFloat(b.paddingTop)+parseFloat(b.paddingBottom),this.viewport.width=g,this.viewport.height=y,s){if(Math.abs(d-p.width)>.1||Math.abs(h-p.height)>.1){var x=function(e,t,n,i){var o=Math.min(n/e||0,i/t);return{width:e*o||0,height:t*o||0}}(d,h,Math.min(d,p.width),Math.min(h,p.height));c=w(x.width),u=w(x.height)}Object.assign(o.style,{width:"".concat(c,"px"),height:"".concat(u,"px"),transform:""})}if(l&&(Object.assign(a.style,{width:"".concat(c,"px"),height:"".concat(u,"px")}),this.viewport=n(n({},this.viewport),{},{width:c,height:u})),r&&s&&"function"!=typeof this.options.maxScale){var k=this.option("maxScale");this.options.maxScale=function(){return this.content.origWidth>0&&this.content.fitWidth>0?this.content.origWidth/this.content.fitWidth:k}}this.content=n(n({},this.content),{},{origWidth:d,origHeight:h,fitWidth:c,fitHeight:u,width:c,height:u,scale:1,isZoomable:s}),this.container={width:v.width,height:v.height},!0!==e&&this.trigger("afterUpdate")}},{key:"zoomIn",value:function(e){this.zoomTo(this.content.scale+(e||this.option("step")))}},{key:"zoomOut",value:function(e){this.zoomTo(this.content.scale-(e||this.option("step")))}},{key:"toggleZoom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.option("maxScale"),n=this.option("baseScale"),i=this.content.scale>n+.5*(t-n)?n:t;this.zoomTo(i,e)}},{key:"zoomTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("baseScale"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.x,i=void 0===n?null:n,o=t.y,a=void 0===o?null:o;e=Math.max(Math.min(e,this.option("maxScale")),this.option("minScale"));var r=w(this.content.scale/(this.content.width/this.content.fitWidth),1e7);null===i&&(i=this.content.width*r*.5),null===a&&(a=this.content.height*r*.5);var s=this.getZoomDelta(e,i,a),l=s.deltaX,c=s.deltaY;i=this.content.x-l,a=this.content.y-c,this.panTo({x:i,y:a,scale:e,friction:this.option("zoomFriction")})}},{key:"getZoomDelta",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.content.fitWidth*this.content.scale,o=this.content.fitHeight*this.content.scale,a=t>0&&i?t/i:0,r=n>0&&o?n/o:0;return{deltaX:(this.content.fitWidth*e-i)*a,deltaY:(this.content.fitHeight*e-o)*r}}},{key:"panTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.x,i=void 0===t?this.content.x:t,o=e.y,a=void 0===o?this.content.y:o,r=e.scale,s=e.friction,l=void 0===s?this.option("friction"):s,c=e.ignoreBounds,u=void 0!==c&&c;if(r=r||this.content.scale||1,!u){var d=this.getBounds(r),h=d.boundX,f=d.boundY;h&&(i=Math.max(Math.min(i,h.to),h.from)),f&&(a=Math.max(Math.min(a,f.to),f.from))}this.friction=l,this.transform=n(n({},this.transform),{},{x:i,y:a,scale:r}),l?(this.state="panning",this.velocity={x:(1/this.friction-1)*(i-this.content.x),y:(1/this.friction-1)*(a-this.content.y),scale:(1/this.friction-1)*(r-this.content.scale)},this.startAnimation()):this.endAnimation()}},{key:"startAnimation",value:function(){var e=this;this.rAF?cancelAnimationFrame(this.rAF):this.trigger("startAnimation"),this.rAF=requestAnimationFrame((function(){return e.animate()}))}},{key:"animate",value:function(){var e=this;if(this.setEdgeForce(),this.setDragForce(),this.velocity.x*=this.friction,this.velocity.y*=this.friction,this.velocity.scale*=this.friction,this.content.x+=this.velocity.x,this.content.y+=this.velocity.y,this.content.scale+=this.velocity.scale,this.isAnimating())this.setTransform();else if("pointerdown"!==this.state)return void this.endAnimation();this.rAF=requestAnimationFrame((function(){return e.animate()}))}},{key:"getBounds",value:function(e){var t=this.boundX,n=this.boundY;if(void 0!==t&&void 0!==n)return{boundX:t,boundY:n};t={from:0,to:0},n={from:0,to:0},e=e||this.transform.scale;var i=this.content.fitWidth*e,o=this.content.fitHeight*e,a=this.viewport.width,r=this.viewport.height;if(i<a){var s=w(.5*(a-i));t.from=s,t.to=s}else t.from=w(a-i);if(o<r){var l=.5*(r-o);n.from=l,n.to=l}else n.from=w(r-o);return{boundX:t,boundY:n}}},{key:"setEdgeForce",value:function(){if("decel"===this.state){var e,t,n,i,o=this.option("bounceForce"),a=this.getBounds(Math.max(this.transform.scale,this.content.scale)),r=a.boundX,s=a.boundY;if(r&&(e=this.content.x<r.from,t=this.content.x>r.to),s&&(n=this.content.y<s.from,i=this.content.y>s.to),e||t){var l=((e?r.from:r.to)-this.content.x)*o,c=this.content.x+(this.velocity.x+l)/this.friction;c>=r.from&&c<=r.to&&(l+=this.velocity.x),this.velocity.x=l,this.recalculateTransform()}if(n||i){var u=((n?s.from:s.to)-this.content.y)*o,d=this.content.y+(u+this.velocity.y)/this.friction;d>=s.from&&d<=s.to&&(u+=this.velocity.y),this.velocity.y=u,this.recalculateTransform()}}}},{key:"setDragResistance",value:function(){if("pointerdown"===this.state){var e,t,n,i,o=this.getBounds(this.dragPosition.scale),a=o.boundX,r=o.boundY;if(a&&(e=this.dragPosition.x<a.from,t=this.dragPosition.x>a.to),r&&(n=this.dragPosition.y<r.from,i=this.dragPosition.y>r.to),(e||t)&&(!e||!t)){var s=e?a.from:a.to,l=s-this.dragPosition.x;this.dragPosition.x=s-.3*l}if((n||i)&&(!n||!i)){var c=n?r.from:r.to,u=c-this.dragPosition.y;this.dragPosition.y=c-.3*u}}}},{key:"setDragForce",value:function(){"pointerdown"===this.state&&(this.velocity.x=this.dragPosition.x-this.content.x,this.velocity.y=this.dragPosition.y-this.content.y,this.velocity.scale=this.dragPosition.scale-this.content.scale)}},{key:"recalculateTransform",value:function(){this.transform.x=this.content.x+this.velocity.x/(1/this.friction-1),this.transform.y=this.content.y+this.velocity.y/(1/this.friction-1),this.transform.scale=this.content.scale+this.velocity.scale/(1/this.friction-1)}},{key:"isAnimating",value:function(){return!(!this.friction||!(Math.abs(this.velocity.x)>.05||Math.abs(this.velocity.y)>.05||Math.abs(this.velocity.scale)>.05))}},{key:"setTransform",value:function(e){var t,i,o,a,r;e?(t=w(this.transform.x),i=w(this.transform.y),o=this.transform.scale,this.content=n(n({},this.content),{},{x:t,y:i,scale:o})):(t=w(this.content.x),i=w(this.content.y),o=this.content.scale/(this.content.width/this.content.fitWidth),this.content=n(n({},this.content),{},{x:t,y:i})),this.trigger("beforeTransform"),t=w(this.content.x),i=w(this.content.y),e&&this.option("zoom")?(a=w(this.content.fitWidth*o),r=w(this.content.fitHeight*o),this.content.width=a,this.content.height=r,this.transform=n(n({},this.transform),{},{width:a,height:r,scale:o}),Object.assign(this.$content.style,{width:"".concat(a,"px"),height:"".concat(r,"px"),maxWidth:"none",maxHeight:"none",transform:"translate3d(".concat(t,"px, ").concat(i,"px, 0) scale(1)")})):this.$content.style.transform="translate3d(".concat(t,"px, ").concat(i,"px, 0) scale(").concat(o,")"),this.trigger("afterTransform")}},{key:"endAnimation",value:function(e){cancelAnimationFrame(this.rAF),this.rAF=null,this.velocity={x:0,y:0,scale:0}
2,this.setTransform(!0),this.state="ready",this.handleCursor(),!0!==e&&this.trigger("endAnimation")}},{key:"handleCursor",value:function(){var e=this.option("draggableClass");e&&this.option("touch")&&(1==this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale")?this.$container.classList.remove(e):this.$container.classList.add(e))}},{key:"detachEvents",value:function(){this.$content.removeEventListener("load",this.onLoad),this.$container.removeEventListener("wheel",this.onWheel,{passive:!1}),this.$container.removeEventListener("click",this.onClick,{passive:!1}),this.pointerTracker&&(this.pointerTracker.stop(),this.pointerTracker=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"destroy",value:function(){"destroy"!==this.state&&(this.state="destroy",clearTimeout(this.updateTimer),this.updateTimer=null,cancelAnimationFrame(this.rAF),this.rAF=null,this.detachEvents(),this.detachPlugins(),this.resetDragPosition())}}]),i}(A);O.version="4.0.31",O.Plugins={};var D=function(e,t){var n=0;return function(){var i=(new Date).getTime();if(!(i-n<t))return n=i,e.apply(void 0,arguments)}},L=function(){function e(t){o(this,e),this.$container=null,this.$prev=null,this.$next=null,this.carousel=t,this.onRefresh=this.onRefresh.bind(this)}return r(e,[{key:"option",value:function(e){return this.carousel.option("Navigation.".concat(e))}},{key:"createButton",value:function(e){var t,n=this,i=document.createElement("button");i.setAttribute("title",this.carousel.localize("{{".concat(e.toUpperCase(),"}}")));var o=this.option("classNames.button")+" "+this.option("classNames.".concat(e));return(t=i.classList).add.apply(t,m(o.split(" "))),i.setAttribute("tabindex","0"),i.innerHTML=this.carousel.localize(this.option("".concat(e,"Tpl"))),i.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),n.carousel["slide".concat("next"===e?"Next":"Prev")]()})),i}},{key:"build",value:function(){var e;this.$container||(this.$container=document.createElement("div"),(e=this.$container.classList).add.apply(e,m(this.option("classNames.main").split(" "))),this.carousel.$container.appendChild(this.$container)),this.$next||(this.$next=this.createButton("next"),this.$container.appendChild(this.$next)),this.$prev||(this.$prev=this.createButton("prev"),this.$container.appendChild(this.$prev))}},{key:"onRefresh",value:function(){var e=this.carousel.pages.length;e<=1||e>1&&this.carousel.elemDimWidth<this.carousel.wrapDimWidth&&!Number.isInteger(this.carousel.option("slidesPerPage"))?this.cleanup():(this.build(),this.$prev.removeAttribute("disabled"),this.$next.removeAttribute("disabled"),this.carousel.option("infiniteX",this.carousel.option("infinite"))||(this.carousel.page<=0&&this.$prev.setAttribute("disabled",""),this.carousel.page>=e-1&&this.$next.setAttribute("disabled","")))}},{key:"cleanup",value:function(){this.$prev&&this.$prev.remove(),this.$prev=null,this.$next&&this.$next.remove(),this.$next=null,this.$container&&this.$container.remove(),this.$container=null}},{key:"attach",value:function(){this.carousel.on("refresh change",this.onRefresh)}},{key:"detach",value:function(){this.carousel.off("refresh change",this.onRefresh),this.cleanup()}}]),e}();L.defaults={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',classNames:{main:"carousel__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}};var P=function(){function e(t){o(this,e),this.carousel=t,this.$list=null,this.events={change:this.onChange.bind(this),refresh:this.onRefresh.bind(this)}}return r(e,[{key:"buildList",value:function(){var e=this;if(!(this.carousel.pages.length<this.carousel.option("Dots.minSlideCount"))){var t=document.createElement("ol");return t.classList.add("carousel__dots"),t.addEventListener("click",(function(t){if("page"in t.target.dataset){t.preventDefault(),t.stopPropagation();var n=parseInt(t.target.dataset.page,10),i=e.carousel;n!==i.page&&(i.pages.length<3&&i.option("infinite")?i[0==n?"slidePrev":"slideNext"]():i.slideTo(n))}})),this.$list=t,this.carousel.$container.appendChild(t),this.carousel.$container.classList.add("has-dots"),t}}},{key:"removeList",value:function(){this.$list&&(this.$list.parentNode.removeChild(this.$list),this.$list=null),this.carousel.$container.classList.remove("has-dots")}},{key:"rebuildDots",value:function(){var e=this,t=this.$list,n=!!t,i=this.carousel.pages.length;if(i<2)n&&this.removeList();else{n||(t=this.buildList());var o=this.$list.children.length;if(o>i)for(var a=i;a<o;a++)this.$list.removeChild(this.$list.lastChild);else{for(var r=function(t){var n=document.createElement("li");n.classList.add("carousel__dot"),n.dataset.page=t,n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.setAttribute("title",e.carousel.localize("{{GOTO}}",[["%d",t+1]])),n.addEventListener("keydown",(function(e){var t,i=e.code;"Enter"===i||"NumpadEnter"===i?t=n:"ArrowRight"===i?t=n.nextSibling:"ArrowLeft"===i&&(t=n.previousSibling),t&&t.click()})),e.$list.appendChild(n)},s=o;s<i;s++)r(s);this.setActiveDot()}}}},{key:"setActiveDot",value:function(){if(this.$list){this.$list.childNodes.forEac
2h((function(e){e.classList.remove("is-selected")}));var e=this.$list.childNodes[this.carousel.page];e&&e.classList.add("is-selected")}}},{key:"onChange",value:function(){this.setActiveDot()}},{key:"onRefresh",value:function(){this.rebuildDots()}},{key:"attach",value:function(){this.carousel.on(this.events)}},{key:"detach",value:function(){this.removeList(),this.carousel.off(this.events),this.carousel=null}}]),e}(),j=function(){function e(t){o(this,e),this.carousel=t,this.selectedIndex=null,this.friction=0,this.onNavReady=this.onNavReady.bind(this),this.onNavClick=this.onNavClick.bind(this),this.onNavCreateSlide=this.onNavCreateSlide.bind(this),this.onTargetChange=this.onTargetChange.bind(this)}return r(e,[{key:"addAsTargetFor",value:function(e){this.target=this.carousel,this.nav=e,this.attachEvents()}},{key:"addAsNavFor",value:function(e){this.target=e,this.nav=this.carousel,this.attachEvents()}},{key:"attachEvents",value:function(){this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.on("createSlide",this.onNavCreateSlide),this.nav.on("Panzoom.click",this.onNavClick),this.target.on("change",this.onTargetChange),this.target.on("Panzoom.afterUpdate",this.onTargetChange)}},{key:"onNavReady",value:function(){this.onTargetChange(!0)}},{key:"onNavClick",value:function(e,t,n){var i=n.target.closest(".carousel__slide");if(i){n.stopPropagation();var o=parseInt(i.dataset.index,10),a=this.target.findPageForSlide(o);this.target.page!==a&&this.target.slideTo(a,{friction:this.friction}),this.markSelectedSlide(o)}}},{key:"onNavCreateSlide",value:function(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}},{key:"onTargetChange",value:function(){var e=this.target.pages[this.target.page].indexes[0],t=this.nav.findPageForSlide(e);this.nav.slideTo(t),this.markSelectedSlide(e)}},{key:"markSelectedSlide",value:function(e){this.selectedIndex=e,m(this.nav.slides).filter((function(e){return e.$el&&e.$el.classList.remove("is-nav-selected")}));var t=this.nav.slides[e];t&&t.$el&&t.$el.classList.add("is-nav-selected")}},{key:"attach",value:function(e){var t=e.options.Sync;(t.target||t.nav)&&(t.target?this.addAsNavFor(t.target):t.nav&&this.addAsTargetFor(t.nav),this.friction=t.friction)}},{key:"detach",value:function(){this.nav&&(this.nav.off("ready",this.onNavReady),this.nav.off("Panzoom.click",this.onNavClick),this.nav.off("createSlide",this.onNavCreateSlide)),this.target&&(this.target.off("Panzoom.afterUpdate",this.onTargetChange),this.target.off("change",this.onTargetChange))}}]),e}();j.defaults={friction:.92};var M={Navigation:L,Dots:P,Sync:j},N={slides:[],preload:0,slidesPerPage:"auto",initialPage:null,initialSlide:null,friction:.92,center:!0,infinite:!0,fill:!0,dragFree:!1,prefix:"",classNames:{viewport:"carousel__viewport",track:"carousel__track",slide:"carousel__slide",slideSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}},I=function(e){l(i,e);var t=h(i);function i(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,i),a=x(!0,{},N,a),(n=t.call(this,a)).state="init",n.$container=e,!(n.$container instanceof HTMLElement))throw new Error("No root element provided");return n.slideNext=D(n.slideNext.bind(d(n)),250),n.slidePrev=D(n.slidePrev.bind(d(n)),250),n.init(),e.__Carousel=d(n),n}return r(i,[{key:"init",value:function(){this.pages=[],this.page=this.pageIndex=null,this.prevPage=this.prevPageIndex=null,this.attachPlugins(i.Plugins),this.trigger("init"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.$track&&this.pages.length&&(this.$track.style.transform="translate3d(".concat(-1*this.pages[this.page].left,"px, 0px, 0) scale(1)")),this.manageSlideVisiblity(),this.initPanzoom(),this.state="ready",this.trigger("ready")}},{key:"initLayout",value:function(){var e,t,n,i,o=this.option("prefix"),a=this.option("classNames");this.$viewport=this.option("viewport")||this.$container.querySelector(".".concat(o).concat(a.viewport)),this.$viewport||(this.$viewport=document.createElement("div"),(e=this.$viewport.classList).add.apply(e,m((o+a.viewport).split(" "))),(t=this.$viewport).append.apply(t,m(this.$container.childNodes)),this.$container.appendChild(this.$viewport)),this.$track=this.option("track")||this.$container.querySelector(".".concat(o).concat(a.track)),this.$track||(this.$track=document.createElement("div"),(n=this.$track.classList).add.apply(n,m((o+a.track).split(" "))),(i=this.$track).append.apply(i,m(this.$viewport.childNodes)),this.$viewport.appendChild(this.$track))}},{key:"initSlides",value:function(){var e=this;this.slides=[],this.$viewport.querySelectorAll(".".concat(this.option("prefix")).c
2oncat(this.option("classNames.slide"))).forEach((function(t){var n={$el:t,isDom:!0};e.slides.push(n),e.trigger("createSlide",n,e.slides.length)})),Array.isArray(this.options.slides)&&(this.slides=x(!0,m(this.slides),this.options.slides))}},{key:"updateMetrics",value:function(){var e,t=this,i=0,o=[];this.slides.forEach((function(n,a){var r=n.$el,s=n.isDom||!e?t.getSlideMetrics(r):e;n.index=a,n.width=s,n.left=i,e=s,i+=s,o.push(a)}));var a=Math.max(this.$track.offsetWidth,w(this.$track.getBoundingClientRect().width)),r=getComputedStyle(this.$track);a-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),this.contentWidth=i,this.viewportWidth=a;var s=[],l=this.option("slidesPerPage");if(Number.isInteger(l)&&i>a)for(var c=0;c<this.slides.length;c+=l)s.push({indexes:o.slice(c,c+l),slides:this.slides.slice(c,c+l)});else for(var u=0,d=0,h=0;h<this.slides.length;h+=1){var f=this.slides[h];(!s.length||d+f.width>a)&&(s.push({indexes:[],slides:[]}),u=s.length-1,d=0),d+=f.width,s[u].indexes.push(h),s[u].slides.push(f)}var p=this.option("center"),v=this.option("fill");s.forEach((function(e,n){e.index=n,e.width=e.slides.reduce((function(e,t){return e+t.width}),0),e.left=e.slides[0].left,p&&(e.left+=.5*(a-e.width)*-1),v&&!t.option("infiniteX",t.option("infinite"))&&i>a&&(e.left=Math.max(e.left,0),e.left=Math.min(e.left,i-a))}));var g,y=[];s.forEach((function(e){var t=n({},e);g&&t.left===g.left?(g.width+=t.width,g.slides=[].concat(m(g.slides),m(t.slides)),g.indexes=[].concat(m(g.indexes),m(t.indexes))):(t.index=y.length,g=t,y.push(t))})),this.pages=y;var b=this.page;if(null===b){var x=this.option("initialSlide");b=null!==x?this.findPageForSlide(x):parseInt(this.option("initialPage",0),10)||0,y[b]||(b=y.length&&b>y.length?y[y.length-1].index:0),this.page=b,this.pageIndex=b}this.updatePanzoom(),this.trigger("refresh")}},{key:"getSlideMetrics",value:function(e){if(!e){var t,n,i=this.slides[0];(e=document.createElement("div")).dataset.isTestEl=1,e.style.visibility="hidden",(t=e.classList).add.apply(t,m((this.option("prefix")+this.option("classNames.slide")).split(" "))),i.customClass&&(n=e.classList).add.apply(n,m(i.customClass.split(" "))),this.$track.prepend(e)}var o=Math.max(e.offsetWidth,w(e.getBoundingClientRect().width)),a=e.currentStyle||window.getComputedStyle(e);return o=o+(parseFloat(a.marginLeft)||0)+(parseFloat(a.marginRight)||0),e.dataset.isTestEl&&e.remove(),o}},{key:"findPageForSlide",value:function(e){e=parseInt(e,10)||0;var t=this.pages.find((function(t){return t.indexes.indexOf(e)>-1}));return t?t.index:null}},{key:"slideNext",value:function(){this.slideTo(this.pageIndex+1)}},{key:"slidePrev",value:function(){this.slideTo(this.pageIndex-1)}},{key:"slideTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.x,i=void 0===n?-1*this.setPage(e,!0):n,o=t.y,a=void 0===o?0:o,r=t.friction,s=void 0===r?this.option("friction"):r;this.Panzoom.content.x===i&&!this.Panzoom.velocity.x&&s||(this.Panzoom.panTo({x:i,y:a,friction:s,ignoreBounds:!0}),"ready"===this.state&&"ready"===this.Panzoom.state&&this.trigger("settle"))}},{key:"initPanzoom",value:function(){var e=this;this.Panzoom&&this.Panzoom.destroy();var t=x(!0,{},{content:this.$track,wrapInner:!1,resizeParent:!1,zoom:!1,click:!1,lockAxis:"x",x:this.pages.length?-1*this.pages[this.page].left:0,centerOnStart:!1,textSelection:function(){return e.option("textSelection",!1)},panOnlyZoomed:function(){return this.content.width<=this.viewport.width}},this.option("Panzoom"));this.Panzoom=new O(this.$container,t),this.Panzoom.on({"*":function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return e.trigger.apply(e,["Panzoom.".concat(t)].concat(i))},afterUpdate:function(){e.updatePage()},beforeTransform:this.onBeforeTransform.bind(this),touchEnd:this.onTouchEnd.bind(this),endAnimation:function(){e.trigger("settle")}}),this.updateMetrics(),this.manageSlideVisiblity()}},{key:"updatePanzoom",value:function(){this.Panzoom&&(this.Panzoom.content=n(n({},this.Panzoom.content),{},{fitWidth:this.contentWidth,origWidth:this.contentWidth,width:this.contentWidth}
2),this.pages.length>1&&this.option("infiniteX",this.option("infinite"))?this.Panzoom.boundX=null:this.pages.length&&(this.Panzoom.boundX={from:-1*this.pages[this.pages.length-1].left,to:-1*this.pages[0].left}),this.option("infiniteY",this.option("infinite"))?this.Panzoom.boundY=null:this.Panzoom.boundY={from:0,to:0},this.Panzoom.handleCursor())}},{key:"manageSlideVisiblity",value:function(){var e=this,t=this.contentWidth,n=this.viewportWidth,i=this.Panzoom?-1*this.Panzoom.content.x:this.pages.length?this.pages[this.page].left:0,o=this.option("preload"),a=this.option("infiniteX",this.option("infinite")),r=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-left")),s=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-right"));this.slides.forEach((function(l){var c,u,d=0;c=i-r,u=i+n+s,c-=o*(n+r+s),u+=o*(n+r+s);var h=l.left+l.width>c&&l.left<u;c=i+t-r,u=i+t+n+s,c-=o*(n+r+s);var f=a&&l.left+l.width>c&&l.left<u;c=i-t-r,u=i-t+n+s,c-=o*(n+r+s);var p=a&&l.left+l.width>c&&l.left<u;f||h||p?(e.createSlideEl(l),h&&(d=0),f&&(d=-1),p&&(d=1),l.left+l.width>i&&l.left<=i+n+s&&(d=0)):e.removeSlideEl(l),l.hasDiff=d}));var l=0,c=0;this.slides.forEach((function(e,n){var i=0;e.$el?(n!==l||e.hasDiff?i=c+e.hasDiff*t:c=0,e.$el.style.left=Math.abs(i)>.1?"".concat(c+e.hasDiff*t,"px"):"",l++):c+=e.width})),this.markSelectedSlides()}},{key:"createSlideEl",value:function(e){var t;if(e){if(!e.$el){var n,i=document.createElement("div");i.dataset.index=e.index,(t=i.classList).add.apply(t,m((this.option("prefix")+this.option("classNames.slide")).split(" "))),e.customClass&&(n=i.classList).add.apply(n,m(e.customClass.split(" "))),e.html&&(i.innerHTML=e.html);var o=[];this.slides.forEach((function(e,t){e.$el&&o.push(t)}));var a=e.index,r=null;if(o.length){var s=o.reduce((function(e,t){return Math.abs(t-a)<Math.abs(e-a)?t:e}));r=this.slides[s]}return this.$track.insertBefore(i,r&&r.$el?r.index<e.index?r.$el.nextSibling:r.$el:null),e.$el=i,this.trigger("createSlide",e,a),e}var l,c=e.$el.dataset.index;c&&parseInt(c,10)===e.index||(e.$el.dataset.index=e.index,e.$el.querySelectorAll("[data-lazy-srcset]").forEach((function(e){e.srcset=e.dataset.lazySrcset})),e.$el.querySelectorAll("[data-lazy-src]").forEach((function(e){var t=e.dataset.lazySrc;e instanceof HTMLImageElement?e.src=t:e.style.backgroundImage="url('".concat(t,"')")})),(l=e.$el.dataset.lazySrc)&&(e.$el.style.backgroundImage="url('".concat(l,"')")),e.state="ready")}}},{key:"removeSlideEl",value:function(e){e.$el&&!e.isDom&&(this.trigger("removeSlide",e),e.$el.remove(),e.$el=null)}},{key:"markSelectedSlides",value:function(){var e=this,t=this.option("classNames.slideSelected"),n="aria-hidden";this.slides.forEach((function(i,o){var a=i.$el;if(a){var r=e.pages[e.page];r&&r.indexes&&r.indexes.indexOf(o)>-1?(t&&!a.classList.contains(t)&&(a.classList.add(t),e.trigger("selectSlide",i)),a.removeAttribute(n)):(t&&a.classList.contains(t)&&(a.classList.remove(t),e.trigger("unselectSlide",i)),a.setAttribute(n,!0))}}))}},{key:"updatePage",value:function(){this.updateMetrics(),this.slideTo(this.page,{friction:0})}},{key:"onBeforeTransform",value:function(){this.option("infiniteX",this.option("infinite"))&&this.manageInfiniteTrack(),this.manageSlideVisiblity()}},{key:"manageInfiniteTrack",value:function(){var e=this.contentWidth,t=this.viewportWidth;if(!(!this.option("infiniteX",this.option("infinite"))||this.pages.length<2||e<t)){var n=this.Panzoom,i=!1;return n.content.x<-1*(e-t)&&(n.content.x+=e,this.pageIndex=this.pageIndex-this.pages.length,i=!0),n.content.x>t&&(n.content.x-=e,this.pageIndex=this.pageIndex+this.pages.length,i=!0),i&&"pointerdown"===n.state&&n.resetDragPosition(),i}}},{key:"onTouchEnd",value:function(e,t){var n=this.option("dragFree");if(!n&&this.pages.length>1&&e.dragOffset.time<350&&Math.abs(e.dragOffset.y)<1&&Math.abs(e.dragOffset.x)>5)this[e.dragOffset.x<0?"slideNext":"slidePrev"]();else if(n){var i=p(this.getPageFromPosition(-1*e.transform.x),2)[1];this.setPage(i)}else this.slideToClosest()}},{key:"slideToClosest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=p(this.getPageFromPosition(-1*this.Panzoom.content.x),2)[1];this.slideTo(t,e)}},{key:"getPageFromPosition",value:function(e){var t=this.pages.length;this.option("center")&&(e+=.5*this.viewportWidth);var n=Math.floor(e/this.contentWidth);e-=n*this.contentWidth;var i=this.slides.find((function(t){return t.left<=e&&t.left+t.width>e}));if(i){var o=this.findPageForSlide(i.index);return[o,o+n*t]}return[0,0]}},{key:"setPage",value:function(e,t){var n=0,i=parseInt(e,10)||0,o=this.page,a=this.pageIndex,r=this.pages.length,s=this.contentWidth,l=this.viewportWidth;if(e=(i%r+r)%r,this.option("infiniteX",this.option("infinite"))&&s>l){var c=Math.floor(i/r)||0,u=s;if(n=this.pages[e].left+c*u,!0===t&&r>2){var d=-1*this.Panzoom.content.x,h=n-u,f=n+u,p=Math.abs(d-n),m=Math.abs(d-h),v=Math.abs(d-f);
2v<p&&v<=m?(n=f,i+=r):m<p&&m<v&&(n=h,i-=r)}}else e=i=Math.max(0,Math.min(i,r-1)),n=this.pages.length?this.pages[e].left:0;return this.page=e,this.pageIndex=i,null!==o&&e!==o&&(this.prevPage=o,this.prevPageIndex=a,this.trigger("change",e,o)),n}},{key:"destroy",value:function(){var e=this;this.state="destroy",this.slides.forEach((function(t){e.removeSlideEl(t)})),this.slides=[],this.Panzoom.destroy(),this.detachPlugins()}}]),i}(A);I.version="4.0.31",I.Plugins=M;var H=!("undefined"==typeof window||!window.document||!window.document.createElement),z=null,F=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'],R=function(e){if(e&&H){null===z&&document.createElement("div").focus({get preventScroll(){return z=!0,!1}});try{if(e.setActive)e.setActive();else if(z)e.focus({preventScroll:!0});else{var t=window.pageXOffset||document.body.scrollTop,n=window.pageYOffset||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:n,behavior:"auto"})}}catch(e){}}},q=function(){function e(t){o(this,e),this.fancybox=t,this.viewport=null,this.pendingUpdate=null;for(var n=0,i=["onReady","onResize","onTouchstart","onTouchmove"];n<i.length;n++){var a=i[n];this[a]=this[a].bind(this)}}return r(e,[{key:"onReady",value:function(){var e=window.visualViewport;e&&(this.viewport=e,this.startY=0,e.addEventListener("resize",this.onResize),this.updateViewport()),window.addEventListener("touchstart",this.onTouchstart,{passive:!1}),window.addEventListener("touchmove",this.onTouchmove,{passive:!1}),window.addEventListener("wheel",this.onWheel,{passive:!1})}},{key:"onResize",value:function(){this.updateViewport()}},{key:"updateViewport",value:function(){var e=this.fancybox,t=this.viewport,n=t.scale||1,i=e.$container;if(i){var o="",a="",r="";n-1>.1&&(o="".concat(t.width*n,"px"),a="".concat(t.height*n,"px"),r="translate3d(".concat(t.offsetLeft,"px, ").concat(t.offsetTop,"px, 0) scale(").concat(1/n,")")),i.style.width=o,i.style.height=a,i.style.transform=r}}},{key:"onTouchstart",value:function(e){this.startY=e.touches?e.touches[0].screenY:e.screenY}},{key:"onTouchmove",value:function(e){var t=this.startY,n=window.innerWidth/window.document.documentElement.clientWidth;if(e.cancelable&&!(e.touches.length>1||1!==n)){var i=k(e.composedPath()[0]);if(i){var o=window.getComputedStyle(i),a=parseInt(o.getPropertyValue("height"),10),r=e.touches?e.touches[0].screenY:e.screenY,s=t<=r&&0===i.scrollTop,l=t>=r&&i.scrollHeight-i.scrollTop===a;(s||l)&&e.preventDefault()}else e.preventDefault()}}},{key:"onWheel",value:function(e){k(e.composedPath()[0])||e.preventDefault()}},{key:"cleanup",value:function(){this.pendingUpdate&&(cancelAnimationFrame(this.pendingUpdate),this.pendingUpdate=null);var e=this.viewport;e&&(e.removeEventListener("resize",this.onResize),this.viewport=null),window.removeEventListener("touchstart",this.onTouchstart,!1),window.removeEventListener("touchmove",this.onTouchmove,!1),window.removeEventListener("wheel",this.onWheel,{passive:!1})}},{key:"attach",value:function(){this.fancybox.on("initLayout",this.onReady)}},{key:"detach",value:function(){this.fancybox.off("initLayout",this.onReady),this.cleanup()}}]),e}(),W=function(){function e(t){o(this,e),this.fancybox=t,this.$container=null,this.state="init";for(var n=0,i=["onPrepare","onClosing","onKeydown"];n<i.length;n++){var a=i[n];this[a]=this[a].bind(this)}this.events={prepare:this.onPrepare,closing:this.onClosing,keydown:this.onKeydown}}return r(e,[{key:"onPrepare",value:function(){this.getSlides().length<this.fancybox.option("Thumbs.minSlideCount")?this.state="disabled":!0===this.fancybox.option("Thumbs.autoStart")&&this.fancybox.Carousel.Panzoom.content.height>=this.fancybox.option("Thumbs.minScreenHeight")&&this.build()}},{key:"onClosing",value:function(){this.Carousel&&this.Carousel.Panzoom.detachEvents()}},{key:"onKeydown",value:function(e,t){t===e.option("Thumbs.key")&&this.toggle()}},{key:"build",value:function(){var e=this;if(!this.$container){var t=document.createElement("div");t.classList.add("fancybox__thumbs"),this.fancybox.$carousel.parentNode.insertBefore(t,this.fancybox.$carousel.nextSibling),this.Carousel=new I(t,x(!0,{Dots:!1,Navigation:!1,Sync:{friction:0},infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,preload:1},this.fancybox.option("Thumbs.Carousel"),{Sync:{target:this.fancybox.Carousel},slides:this.getSlides()})),this.Carousel.Panzoom.on("wheel",(function(t,n){n.preventDefault(),e.fancybox[n.deltaY<0?"prev":"next"]()})),this.$container=t,this.state="visible"}}},{key:"getSlides",value:function(){var e,t=[],n=y(this.fancybox.items);try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.thumb;o&&t.push({html:this.fancybox.option("Thumbs.tpl").replace(/\{\{src\}\}/gi,o),customClass:"has-thumb has-".concat(i.type||"image")})}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"toggle",value:function(){"visible"===this.state?this.hide():"hidden"===this.state?this.show():this.build()}},{key:"show",value:function(){"hidden"===this.state&&(this.$container.style.display="",this.Carousel.Panzoom.attachEvents(),this.state="visible")}},{key:"hide",value:function(){"visible"===this.state&&(this.Carousel.Panzoom.detachEvents(),this.$container.style.display="none",this.state="hidden")}},{key:"cleanup",value:function(){this.Carousel&&(this.Carousel.destroy(),this.Carousel=null),this.$container&&(this.$container.remove(),this.$container=null),this.state="init"}},{key:"attach",value:function(){this.fancybox.on(this.events)}},{key:"detach",value:function(){this.fancybox.off(this.events),this.cleanup()}}]),e}();W.defaults={minSlideCount:2,minScreenHeight:500,autoStart:!0,key:"t",Carousel:{},tpl:'<div class="fancybox__thumb" style="background-image:url(\'{{src}}\')"></div>'};var B=function(e,t){for(var n=new URL(e),i=new URLSearchParams(n.search),o=new URLSearchParams,a=0,r=[].concat(m(i),m(Object.entries(t)));a<r.length;a++){var s=p(r[a],2),l=s[0],c=s[1];"t"===l?o.set("start",parseInt(c)):o.set(l,c)}o=o.toString();var u=e.match(/#t=((.*)?\d+s)/);return u&&(o+="#t=".concat(u[1])),o},V={video:{autoplay:!0,ratio:16/9},youtube:{autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},vimeo:{hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},html5video:{tpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',format:""}}
2,U=function(){function e(t){o(this,e),this.fancybox=t;for(var n=0,i=["onInit","onReady","onCreateSlide","onRemoveSlide","onSelectSlide","onUnselectSlide","onRefresh","onMessage"];n<i.length;n++){var a=i[n];this[a]=this[a].bind(this)}this.events={init:this.onInit,ready:this.onReady,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide,"Carousel.selectSlide":this.onSelectSlide,"Carousel.unselectSlide":this.onUnselectSlide,"Carousel.refresh":this.onRefresh}}return r(e,[{key:"onInit",value:function(){var e,t=y(this.fancybox.items);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.processType(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"processType",value:function(e){if(e.html)return e.src=e.html,e.type="html",void delete e.html;var t=e.src||"",n=e.type||this.fancybox.options.type,i=null;if(!t||"string"==typeof t){if(i=t.match(/(?:youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){var o=B(t,this.fancybox.option("Html.youtube")),a=encodeURIComponent(i[1]);e.videoId=a,e.src="https://www.youtube-nocookie.com/embed/".concat(a,"?").concat(o),e.thumb=e.thumb||"https://i.ytimg.com/vi/".concat(a,"/mqdefault.jpg"),e.vendor="youtube",n="video"}else if(i=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)){var r=B(t,this.fancybox.option("Html.vimeo")),s=encodeURIComponent(i[1]);e.videoId=s,e.src="https://player.vimeo.com/video/".concat(s,"?").concat(r),e.vendor="vimeo",n="video"}else(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src="//maps.google.".concat(i[1],"/?ll=").concat((i[2]?i[2]+"&z="+Math.floor(i[3])+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&"),"&output=").concat(i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"),n="map"):(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src="//maps.google.".concat(i[1],"/maps?q=").concat(i[2].replace("query=","q=").replace("api=1",""),"&output=embed"),n="map");n||("#"===t.charAt(0)?n="inline":(i=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="html5video",e.format=e.format||"video/"+("ogv"===i[1]?"ogg":i[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n="image":t.match(/\.(pdf)((\?|#).*)?$/i)&&(n="pdf")),e.type=n||this.fancybox.option("defaultType","image"),"html5video"!==n&&"video"!==n||(e.video=x({},this.fancybox.option("Html.video"),e.video),e._width&&e._height?e.ratio=parseFloat(e._width)/parseFloat(e._height):e.ratio=e.ratio||e.video.ratio||V.video.ratio)}}},{key:"onReady",value:function(){var e=this;this.fancybox.Carousel.slides.forEach((function(t){t.$el&&(e.setContent(t),t.index===e.fancybox.getSlide().index&&e.playVideo(t))}))}},{key:"onCreateSlide",value:function(e,t,n){"ready"===this.fancybox.state&&this.setContent(n)}},{key:"loadInlineContent",value:function(e){var t;if(e.src instanceof HTMLElement)t=e.src;else if("string"==typeof e.src){var n=e.src.split("#",2),i=2===n.length&&""===n[0]?n[1]:n[0];t=document.getElementById(i)}if(t){if("clone"===e.type||t.$placeHolder){var o=(t=t.cloneNode(!0)).getAttribute("id");o=o?"".concat(o,"--clone"):"clone-".concat(this.fancybox.id,"-").concat(e.index),t.setAttribute("id",o)}else{var a=document.createElement("div");a.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(a,t),t.$placeHolder=a}this.fancybox.setContent(e,t)}else this.fancybox.setError(e,"{{ELEMENT_NOT_FOUND}}")}},{key:"loadAjaxContent",value:function(e){var t=this.fancybox,n=new XMLHttpRequest;t.showLoading(e),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&"ready"===t.state&&(t.hideLoading(e),200===n.status?t.setContent(e,n.responseText):t.setError(e,404===n.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};var i=e.ajax||null;n.open(i?"POST":"GET",e.src),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(i),e.xhr=n}},{key:"loadIframeContent",value:function(e){var t=this,n=this.fancybox,i=document.createElement("iframe");
2if(i.className="fancybox__iframe",i.setAttribute("id","fancybox__iframe_".concat(n.id,"_").concat(e.index)),i.setAttribute("allow","autoplay; fullscreen"),i.setAttribute("scrolling","auto"),e.$iframe=i,"iframe"!==e.type||!1===e.preload)return i.setAttribute("src",e.src),this.fancybox.setContent(e,i),void this.resizeIframe(e);n.showLoading(e);var o=document.createElement("div");o.style.visibility="hidden",this.fancybox.setContent(e,o),o.appendChild(i),i.onerror=function(){n.setError(e,"{{IFRAME_ERROR}}")},i.onload=function(){n.hideLoading(e);var o=!1;i.isReady||(i.isReady=!0,o=!0),i.src.length&&(i.parentNode.style.visibility="",t.resizeIframe(e),o&&n.revealContent(e))},i.setAttribute("src",e.src)}},{key:"setAspectRatio",value:function(e){var t=e.$content,n=e.ratio;if(t){var i=e._width,o=e._height;if(n||i&&o){Object.assign(t.style,{width:i&&o?"100%":"",height:i&&o?"100%":"",maxWidth:"",maxHeight:""});var a=t.offsetWidth,r=t.offsetHeight;if(o=o||r,(i=i||a)>a||o>r){var s=Math.min(a/i,r/o);i*=s,o*=s}Math.abs(i/o-n)>.01&&(n<i/o?i=o*n:o=i/n),Object.assign(t.style,{width:"".concat(i,"px"),height:"".concat(o,"px")})}}}},{key:"resizeIframe",value:function(e){var t=e.$iframe;if(t){var n=e._width||0,i=e._height||0;n&&i&&(e.autoSize=!1);var o=t.parentNode,a=o&&o.style;if(!1!==e.preload&&!1!==e.autoSize&&a)try{var r=window.getComputedStyle(o),s=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),l=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),c=t.contentWindow.document,u=c.getElementsByTagName("html")[0],d=c.body;a.width="",d.style.overflow="hidden",n=n||u.scrollWidth+s,a.width="".concat(n,"px"),d.style.overflow="",a.flex="0 0 auto",a.height="".concat(d.scrollHeight,"px"),i=u.scrollHeight+l}catch(e){}if(n||i){var h={flex:"0 1 auto"};n&&(h.width="".concat(n,"px")),i&&(h.height="".concat(i,"px")),Object.assign(a,h)}}}},{key:"onRefresh",value:function(e,t){var n=this;t.slides.forEach((function(e){e.$el&&(e.$iframe&&n.resizeIframe(e),e.ratio&&n.setAspectRatio(e))}))}},{key:"setContent",value:function(e){if(e&&!e.isDom){switch(e.type){case"html":this.fancybox.setContent(e,e.src);break;case"html5video":this.fancybox.setContent(e,this.fancybox.option("Html.html5video.tpl").replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.format||e.html5video&&e.html5video.format||"").replace("{{poster}}",e.poster||e.thumb||""));break;case"inline":case"clone":this.loadInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case"video":case"map":e.preload=!1;case"iframe":this.loadIframeContent(e)}e.ratio&&this.setAspectRatio(e)}}},{key:"onSelectSlide",value:function(e,t,n){"ready"===e.state&&this.playVideo(n)}},{key:"playVideo",value:function(e){if("html5video"===e.type&&e.video.autoplay)try{var t=e.$el.querySelector("video");if(t){var n=t.play();void 0!==n&&n.then((function(){})).catch((function(e){t.muted=!0,t.play()}))}}catch(e){}"video"===e.type&&e.$iframe&&e.$iframe.contentWindow&&function t(){if("done"===e.state&&e.$iframe&&e.$iframe.contentWindow){var n;if(e.$iframe.isReady)return e.video&&e.video.autoplay&&(n="youtube"==e.vendor?{event:"command",func:"playVideo"}:{method:"play",value:"true"}),void(n&&e.$iframe.contentWindow.postMessage(JSON.stringify(n),"*"));"youtube"===e.vendor&&(n={event:"listening",id:e.$iframe.getAttribute("id")},e.$iframe.contentWindow.postMessage(JSON.stringify(n),"*"))}e.poller=setTimeout(t,250)}()}},{key:"onUnselectSlide",value:function(e,t,n){if("html5video"!==n.type){var i=!1;"vimeo"==n.vendor?i={method:"pause",value:"true"}:"youtube"===n.vendor&&(i={event:"command",func:"pauseVideo"}),i&&n.$iframe&&n.$iframe.contentWindow&&n.$iframe.contentWindow.postMessage(JSON.stringify(i),"*"),clearTimeout(n.poller)}else try{n.$el.querySelector("video").pause()}catch(e){}}},{key:"onRemoveSlide",value:function(e,t,n){n.xhr&&(n.xhr.abort(),n.xhr=null),n.$iframe&&(n.$iframe.onload=n.$iframe.onerror=null,n.$iframe.src="//about:blank",n.$iframe=null);var i=n.$content;"inline"===n.type&&i&&(i.classList.remove("fancybox__content"),"none"!==i.style.display&&(i.style.display="none")),n.$closeButton&&(n.$closeButton.remove(),n.$closeButton=null);var o=i&&i.$placeHolder;o&&(o.parentNode.insertBefore(i,o),o.remove(),i.$placeHolder=null)}},{key:"onMessage",value:function(e){try{var t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event){var n,i=y(document.getElementsByClassName("fancybox__iframe"));try{for(i.s();!(n=i.n()).done;){var o=n.value;o.contentWindow===e.source&&(o.isReady=1)}}catch(e){i.e(e)}finally{i.f()}}}else"https://www.youtube-nocookie.com"===e.origin&&"onReady"===t.event&&(document.getElementById(t.id).isReady=1)}catch(e){}}},{key:"attach",value:function(){this.fancybox.on(this.events),window.addEventListener("message",this.onMessage,!1)}},{key:"detach",value:function(){this.fancybox.off(this.events),window.removeEventListener("message",this.onMessage,!1)}}]),e}();U.defaults=V;var Y=function(){function e(t){o(this,e),this.fancybox=t;for(var n=0,i=["onReady","onClosing","onDone","onPageChange","onCreateSlide","onRemoveSlide","onImageStatusChange"];n<i.length;n++){var a=i[n];this[a]=this[a].bind(this)}this.events={ready:this.onReady,closing:this.onClosing,done:this.onDone,"Carousel.change":this.onPageChange,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide}}return r(e,[{key:"onReady",value:function(){var e=this;
2this.fancybox.Carousel.slides.forEach((function(t){t.$el&&e.setContent(t)}))}},{key:"onDone",value:function(e,t){this.handleCursor(t)}},{key:"onClosing",value:function(e){clearTimeout(this.clickTimer),this.clickTimer=null,e.Carousel.slides.forEach((function(e){e.$image&&(e.state="destroy"),e.Panzoom&&e.Panzoom.detachEvents()})),"closing"===this.fancybox.state&&this.canZoom(e.getSlide())&&this.zoomOut()}},{key:"onCreateSlide",value:function(e,t,n){"ready"===this.fancybox.state&&this.setContent(n)}},{key:"onRemoveSlide",value:function(e,t,n){n.$image&&(n.$el.classList.remove(e.option("Image.canZoomInClass")),n.$image.remove(),n.$image=null),n.Panzoom&&(n.Panzoom.destroy(),n.Panzoom=null),n.$el&&n.$el.dataset&&delete n.$el.dataset.imageFit}},{key:"setContent",value:function(e){var t=this;if(!(e.isDom||e.html||e.type&&"image"!==e.type||e.$image)){e.type="image",e.state="loading";var n=document.createElement("div");n.style.visibility="hidden";var i=document.createElement("img");i.addEventListener("load",(function(n){n.stopImmediatePropagation(),t.onImageStatusChange(e)})),i.addEventListener("error",(function(){t.onImageStatusChange(e)})),i.src=e.src,i.alt="",i.draggable=!1,i.classList.add("fancybox__image"),e.srcset&&i.setAttribute("srcset",e.srcset),e.sizes&&i.setAttribute("sizes",e.sizes),e.$image=i;var o=this.fancybox.option("Image.wrap");if(o){var a=document.createElement("div");a.classList.add("string"==typeof o?o:"fancybox__image-wrap"),a.appendChild(i),n.appendChild(a),e.$wrap=a}else n.appendChild(i);e.$el.dataset.imageFit=this.fancybox.option("Image.fit"),this.fancybox.setContent(e,n),i.complete||i.error?this.onImageStatusChange(e):this.fancybox.showLoading(e)}}},{key:"onImageStatusChange",value:function(e){var t=this,n=e.$image;n&&"loading"===e.state&&(n.complete&&n.naturalWidth&&n.naturalHeight?(this.fancybox.hideLoading(e),"contain"===this.fancybox.option("Image.fit")&&this.initSlidePanzoom(e),e.$el.addEventListener("wheel",(function(n){return t.onWheel(e,n)}),{passive:!1}),e.$content.addEventListener("click",(function(n){return t.onClick(e,n)}),{passive:!1}),this.revealContent(e)):this.fancybox.setError(e,"{{IMAGE_ERROR}}"))}},{key:"initSlidePanzoom",value:function(e){var t=this;e.Panzoom||(e.Panzoom=new O(e.$el,x(!0,this.fancybox.option("Image.Panzoom",{}),{viewport:e.$wrap,content:e.$image,width:e._width,height:e._height,wrapInner:!1,textSelection:!0,touch:this.fancybox.option("Image.touch"),panOnlyZoomed:!0,click:!1,wheel:!1})),e.Panzoom.on("startAnimation",(function(){t.fancybox.trigger("Image.startAnimation",e)})),e.Panzoom.on("endAnimation",(function(){"zoomIn"===e.state&&t.fancybox.done(e),t.handleCursor(e),t.fancybox.trigger("Image.endAnimation",e)})),e.Panzoom.on("afterUpdate",(function(){t.handleCursor(e),t.fancybox.trigger("Image.afterUpdate",e)})))}},{key:"revealContent",value:function(e){null===this.fancybox.Carousel.prevPage&&e.index===this.fancybox.options.startIndex&&this.canZoom(e)?this.zoomIn():this.fancybox.revealContent(e)}},{key:"getZoomInfo",value:function(e){var t=e.$thumb.getBoundingClientRect(),n=t.width,i=t.height,o=e.$content.getBoundingClientRect(),a=o.width,r=o.height,s=o.top-t.top,l=o.left-t.left,c=this.fancybox.option("Image.zoomOpacity");return"auto"===c&&(c=Math.abs(n/i-a/r)>.1),{top:s,left:l,scale:a&&n?n/a:1,opacity:c}}},{key:"canZoom",value:function(e){var t=this.fancybox,n=t.$container;if(window.visualViewport&&1!==window.visualViewport.scale)return!1;if(e.Panzoom&&!e.Panzoom.content.width)return!1;if(!t.option("Image.zoom")||"contain"!==t.option("Image.fit"))return!1;var i=e.$thumb;if(!i||"loading"===e.state)return!1;n.classList.add("fancybox__no-click");var o,a=i.getBoundingClientRect();if(this.fancybox.option("Image.ignoreCoveredThumbnail")){var r=document.elementFromPoint(a.left+1,a.top+1)===i,s=document.elementFromPoint(a.right-1,a.bottom-1)===i;o=r&&s}else o=document.elementFromPoint(a.left+.5*a.width,a.top+.5*a.height)===i;return n.classList.remove("fancybox__no-click"),o}},{key:"zoomIn",value:function(){var e=this.fancybox,t=e.getSlide(),n=t.Panzoom,i=this.getZoomInfo(t),o=i.top,a=i.left,r=i.scale,s=i.opacity;e.trigger("reveal",t),n.panTo({x:-1*a,y:-1*o,scale:r,friction:0,ignoreBounds:!0}),t.$content.style.visibility="",t.state="zoomIn",!0===s&&n.on("afterTransform",(function(e){"zoomIn"!==t.state&&"zoomOut"!==t.state||(e.$content.style.opacity=Math.min(1,1-(1-e.content.scale)/(1-r)))})),n.panTo({x:0,y:0,scale:1,friction:this.fancybox.option("Image.zoomFriction")})}},{key:"zoomOut",value:function(){var e=this,t=this.fancybox,n=t.getSlide(),i=n.Panzoom;if(i){n.state="zoomOut",t.state="customClosing",n.$caption&&(n.$caption.style.visibility="hidden");var o=this.fancybox.option("Image.zoomFriction"),a=function(t){var a=e.getZoomInfo(n),r=a.top,s=a.left,l=a.scale,c=a.opacity;t||c||(o*=.82),i.panTo({x:-1*s,y:-1*r,scale:l,friction:o,ignoreBounds:!0}),o*=.98};window.addEventListener("scroll",a),i.once("endAnimation",(function(){window.removeEventListener("scroll",a),t.destroy()})),a()}}},{key:"handleCursor",value:function(e){if("image"===e.type&&e.$el){var t=e.Panzoom,n=this.fancybox.option("Image.click",!1,e),i=this.fancybox.option("Image.touch"),o=e.$el.classList,a=this.fancybox.option("Image.canZoomInClass"),r=this.fancybox.option("Image.canZoomOutClass");o.remove(r),o.remove(a),t&&"toggleZoom"===n?t&&1===t.content.scale&&t.option("maxScale")-t.content.scale>.01?o.add(a):t.content.scale>1&&!i&&o.add(r):"close"===n&&o.add(r)}}},{key:"onWheel",value:function(e,t){if("ready"===this.fancybox.state&&!1!==this.fancybox.trigger("Image.
2wheel",t))switch(this.fancybox.option("Image.wheel")){case"zoom":"done"===e.state&&e.Panzoom&&e.Panzoom.zoomWithWheel(t);break;case"close":this.fancybox.close();break;case"slide":this.fancybox[t.deltaY<0?"prev":"next"]()}}},{key:"onClick",value:function(e,t){var n=this;if("ready"===this.fancybox.state){var i=e.Panzoom;if(!i||!i.dragPosition.midPoint&&0===i.dragOffset.x&&0===i.dragOffset.y&&1===i.dragOffset.scale){if(this.fancybox.Carousel.Panzoom.lockAxis)return!1;var o=function(i){switch(i){case"toggleZoom":t.stopPropagation(),e.Panzoom&&e.Panzoom.zoomWithClick(t);break;case"close":n.fancybox.close();break;case"next":t.stopPropagation(),n.fancybox.next()}},a=this.fancybox.option("Image.click"),r=this.fancybox.option("Image.doubleClick");r?this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null,o(r)):this.clickTimer=setTimeout((function(){n.clickTimer=null,o(a)}),300):o(a)}}}},{key:"onPageChange",value:function(e,t){var n=e.getSlide();t.slides.forEach((function(e){e.Panzoom&&"done"===e.state&&e.index!==n.index&&e.Panzoom.panTo({x:0,y:0,scale:1,friction:.8})}))}},{key:"attach",value:function(){this.fancybox.on(this.events)}},{key:"detach",value:function(){this.fancybox.off(this.events)}}]),e}();Y.defaults={canZoomInClass:"can-zoom_in",canZoomOutClass:"can-zoom_out",zoom:!0,zoomOpacity:"auto",zoomFriction:.82,ignoreCoveredThumbnail:!1,touch:!0,click:"toggleZoom",doubleClick:null,wheel:"zoom",fit:"contain",wrap:!1,Panzoom:{ratio:1}};var X=function(){function e(t){o(this,e),this.fancybox=t;for(var n=0,i=["onChange","onClosing"];n<i.length;n++){var a=i[n];this[a]=this[a].bind(this)}this.events={initCarousel:this.onChange,"Carousel.change":this.onChange,closing:this.onClosing},this.hasCreatedHistory=!1,this.origHash="",this.timer=null}return r(e,[{key:"onChange",value:function(e){var t=this,n=e.Carousel;this.timer&&clearTimeout(this.timer);var i=null===n.prevPage,o=e.getSlide(),a=new URL(document.URL).hash,r=!1;if(o.slug)r="#"+o.slug;else{var s=o.$trigger&&o.$trigger.dataset,l=e.option("slug")||s&&s.fancybox;l&&l.length&&"true"!==l&&(r="#"+l+(n.slides.length>1?"-"+(o.index+1):""))}i&&(this.origHash=a!==r?a:""),r&&a!==r&&(this.timer=setTimeout((function(){try{window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+r),i&&(t.hasCreatedHistory=!0)}catch(e){}}),300))}},{key:"onClosing",value:function(){if(this.timer&&clearTimeout(this.timer),!0!==this.hasSilentClose)try{return void window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}},{key:"attach",value:function(e){e.on(this.events)}},{key:"detach",value:function(e){e.off(this.events)}}],[{key:"startFromUrl",value:function(){var t=e.Fancybox;if(t&&!t.getInstance()&&!1!==t.defaults.Hash){var n=e.getParsedURL(),i=n.hash,o=n.slug,a=n.index;if(o){var r=document.querySelector('[data-slug="'.concat(i,'"]'));if(r&&r.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!t.getInstance()){var s=document.querySelectorAll('[data-fancybox="'.concat(o,'"]'));s.length&&(null===a&&1===s.length?r=s[0]:a&&(r=s[a-1]),r&&r.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}}}}},{key:"onHashChange",value:function(){var t=e.getParsedURL(),n=t.slug,i=t.index,o=e.Fancybox,a=o&&o.getInstance();if(a&&a.plugins.Hash){if(n){var r=a.Carousel;if(n===a.option("slug"))return r.slideTo(i-1);var s,l=y(r.slides);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c.slug&&c.slug===n)return r.slideTo(c.index)}}catch(e){l.e(e)}finally{l.f()}var u=a.getSlide(),d=u.$trigger&&u.$trigger.dataset;if(d&&d.fancybox===n)return r.slideTo(i-1)}a.plugins.Hash.hasSilentClose=!0,a.close()}e.startFromUrl()}},{key:"create",value:function(t){function n(){window.addEventListener("hashchange",e.onHashChange,!1),e.startFromUrl()}e.Fancybox=t,H&&window.requestAnimationFrame((function(){/complete|interactive|loaded/.test(document.readyState)?n():document.addEventListener("DOMContentLoaded",n)}))}},{key:"destroy",value:function(){window.removeEventListener("hashchange",e.onHashChange,!1)}},{key:"getParsedURL",value:function(){var e=window.location.hash.substr(1),t=e.split("-"),n=t.length>1&&/^\+?\d+$/.test(t[t.length-1])&&parseInt(t.pop(-1),10)||null;return{hash:e,slug:t.join("-"),index:n}}}]),e}(),Q={pageXOffset:0,pageYOffset:0,element:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement},activate:function(e){Q.pageXOffset=window.pageXOffset,Q.pageYOffset=window.pageYOffset,e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},deactivate:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},G=function(){function e(t){o(this,e),this.fancybox=t,this.active=!1,this.handleVisibilityChange=this.handleVisibilityChange.bind(this)}return r(e,[{key:"isActive",value:function(){return this.active}},{key:"setTimer",value:function(){var e=this;if(this.active&&!this.timer){var t=this.fancybox.option("slideshow.delay",3e3);this.timer=setTimeout((function(){e.timer=null,e.fancybox.option("infinite")||e.fancybox.getSlide().index!==e.fancybox.Carousel.slides.length-1?e.fancybox.next():e.fancybox.jumpTo(0,{friction:0})}),t);var n=this.$progress;n||((n=document.createElement("div")).classList.add("fancybox__progress"),this.fancybox.$carousel.parentNode.insertBefore(n,this.fancybox.$carousel),this.$progress=n,n.offsetHeight),n.style.transitionDuration="".concat(t,"ms"),n.style.transform="scaleX(1)"}}},{key:"clearTimer",value:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&(this.$progress.style.transitionDuration="",this.$progress.style.transform="",this.$progress.offsetHeight)}},{key:"activate",value:function(){this.active||(this.active=!0,this.fancybox.$container.classList.add("has-slideshow"),"done"===this.fancybox.getSlide().state&&this.setTimer(),document.addEventListener("visibilitychange",this.handleVisibilityChange,!1))}},{key:"handleVisibilityChange",value:function(){this.deactivate()}},{key:"deactivate",value:function(){this.active=!1,this.clearTimer(),this.fancybox.$container.classList.remove("has-slideshow"),document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1)}},{key:"toggle",value:function(){this.active?this.deactivate():this.fancybox.Carousel.slides.length>1&&this.activate()}}]),e}(),Z={display:["counter","zoom","slideshow","fullscreen","thumbs","close"],autoEnable:!0,items:{counter:{position:"left",type:"div",class:"fancybox__counter",html:'<span data-fancybox-index=""></span> / <span data-fancybox-count=""></span>',attr:{tabindex:-1}},prev:{type:"button",class:"fancybox__button--prev",label:"PREV",html:'<svg viewBox="0 0 24 24">
2<path d="M15 4l-8 8 8 8"/></svg>',attr:{"data-fancybox-prev":""}},next:{type:"button",class:"fancybox__button--next",label:"NEXT",html:'<svg viewBox="0 0 24 24"><path d="M8 4l8 8-8 8"/></svg>',attr:{"data-fancybox-next":""}},fullscreen:{type:"button",class:"fancybox__button--fullscreen",label:"TOGGLE_FULLSCREEN",html:'<svg viewBox="0 0 24 24">\n <g><path d="M3 8 V3h5"></path><path d="M21 8V3h-5"></path><path d="M8 21H3v-5"></path><path d="M16 21h5v-5"></path></g>\n <g><path d="M7 2v5H2M17 2v5h5M2 17h5v5M22 17h-5v5"/></g>\n </svg>',click:function(e){e.preventDefault(),Q.element()?Q.deactivate():Q.activate(this.fancybox.$container)}},slideshow:{type:"button",class:"fancybox__button--slideshow",label:"TOGGLE_SLIDESHOW",html:'<svg viewBox="0 0 24 24">\n <g><path d="M6 4v16"/><path d="M20 12L6 20"/><path d="M20 12L6 4"/></g>\n <g><path d="M7 4v15M17 4v15"/></g>\n </svg>',click:function(e){e.preventDefault(),this.Slideshow.toggle()}},zoom:{type:"button",class:"fancybox__button--zoom",label:"TOGGLE_ZOOM",html:'<svg viewBox="0 0 24 24"><circle cx="10" cy="10" r="7"></circle><path d="M16 16 L21 21"></svg>',click:function(e){e.preventDefault();var t=this.fancybox.getSlide().Panzoom;t&&t.toggleZoom()}},download:{type:"link",label:"DOWNLOAD",class:"fancybox__button--download",html:'<svg viewBox="0 0 24 24"><path d="M12 15V3m0 12l-4-4m4 4l4-4M2 17l.62 2.48A2 2 0 004.56 21h14.88a2 2 0 001.94-1.51L22 17"/></svg>',click:function(e){e.stopPropagation()}},thumbs:{type:"button",label:"TOGGLE_THUMBS",class:"fancybox__button--thumbs",html:'<svg viewBox="0 0 24 24"><circle cx="4" cy="4" r="1" /><circle cx="12" cy="4" r="1" transform="rotate(90 12 4)"/><circle cx="20" cy="4" r="1" transform="rotate(90 20 4)"/><circle cx="4" cy="12" r="1" transform="rotate(90 4 12)"/><circle cx="12" cy="12" r="1" transform="rotate(90 12 12)"/><circle cx="20" cy="12" r="1" transform="rotate(90 20 12)"/><circle cx="4" cy="20" r="1" transform="rotate(90 4 20)"/><circle cx="12" cy="20" r="1" transform="rotate(90 12 20)"/><circle cx="20" cy="20" r="1" transform="rotate(90 20 20)"/></svg>',click:function(e){e.stopPropagation();var t=this.fancybox.plugins.Thumbs;t&&t.toggle()}},close:{type:"button",label:"CLOSE",class:"fancybox__button--close",html:'<svg viewBox="0 0 24 24"><path d="M20 20L4 4m16 0L4 20"></path></svg>',attr:{"data-fancybox-close":"",tabindex:0}}}},K=function(){function e(t){var n=this;o(this,e),this.fancybox=t,this.$container=null,this.state="init";for(var i=0,a=["onInit","onPrepare","onDone","onKeydown","onClosing","onChange","onSettle","onRefresh"];i<a.length;i++){var r=a[i];this[r]=this[r].bind(this)}this.events={init:this.onInit,prepare:this.onPrepare,done:this.onDone,keydown:this.onKeydown,closing:this.onClosing,"Carousel.change":this.onChange,"Carousel.settle":this.onSettle,"Carousel.Panzoom.touchStart":function(){return n.onRefresh()},"Image.startAnimation":function(e,t){return n.onRefresh(t)},"Image.afterUpdate":function(e,t){return n.onRefresh(t)}}}return r(e,[{key:"onInit",value:function(){if(this.fancybox.option("Toolbar.autoEnable")){var e,t=!1,n=y(this.fancybox.items);try{for(n.s();!(e=n.n()).done;)if("image"===e.value.type){t=!0;break}}catch(e){n.e(e)}finally{n.f()}if(!t)return void(this.state="disabled")}var i,o=y(this.fancybox.option("Toolbar.display"));try{for(o.s();!(i=o.n()).done;){var a=i.value;if("close"===(b(a)?a.id:a)){this.fancybox.options.closeButton=!1;break}}}catch(e){o.e(e)}finally{o.f()}}},{key:"onPrepare",value:function(){var e=this.fancybox;if("init"===this.state&&(this.build(),this.update(),this.Slideshow=new G(e),!e.Carousel.prevPage&&(e.option("slideshow.autoStart")&&this.Slideshow.activate(),e.option("fullscreen.autoStart")&&!Q.element())))try{Q.activate(e.$container)}catch(e){}}},{key:"onFsChange",value:function(){window.scrollTo(Q.pageXOffset,Q.pageYOffset)}},{key:"onSettle",value:function(){var e=this.fancybox,t=this.Slideshow;t&&t.isActive()&&(e.getSlide().index!==e.Carousel.slides.length-1||e.option("infinite")?"done"===e.getSlide().state&&t.setTimer():t.deactivate())}},{key:"onChange",value:function(){this.update(),this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer()}},{key:"onDone",value:function(e,t){var n=this.Slideshow;t.index===e.getSlide().index&&(this.update(),n&&n.isActive()&&(e.option("infinite")||t.index!==e.Carousel.slides.length-1?n.setTimer():n.deactivate()))}},{key:"onRefresh",value:function(e){e&&e.index!==this.fancybox.getSlide().index||(this.update(),!this.Slideshow||!this.Slideshow.isActive()||e&&"done"!==e.state||this.Slideshow.deactivate())}},{key:"onKeydown",value:function(e,t,n){" "===t&&this.Slideshow&&(this.Slideshow.toggle(),n.preventDefault())}},{key:"onClosing",value:function(){this.Slideshow&&this.Slideshow.deactivate(),document.removeEventListener("fullscreenchange",this.onFsChange)}},{key:"createElement",value:function(e){var t,n;for(var i in"div"===e.type?t=document.createElement("div"):(t=document.createElement("link"===e.type?"a":"button")).classList.add("carousel__button"),t.innerHTML=e.html,t.setAttribute("tabindex",e.tabindex||0),e.class&&(n=t.classList).add.apply(n,m(e.class.split(" "))),e.attr)t.setAttribute(i,e.attr[i]);e.label&&t.setAttribute("title",this.fancybox.localize("{{".concat(e.label,"}}"))),e.click&&t.addEventListener("click",e.click.bind(this)),"prev"===e.id&&t.setAttribute("data-fancybox-prev",""),"next"===e.id&&t.setAttribute("data-fancybox-next","");var o=t.querySelector("svg");return o&&(o.setAttribute("role","img"),o.setAttribute("tabindex","-1"),o.setAttribute("xmlns","http://www.w3.org/2000/svg")),t}},{key:"build",value:function(){var e=this;this.cleanup();var t,n=this.fancybox.option("Toolbar.items"),i=[{position:"left",items:[]},{position:"center",items:[]},{position:"right",items:[]}],o=this.fancybox.plugins.Thumbs,a=y(this.fancybox.option("Toolbar.display"));try{var r=function(){var a=t.value,r=void 0,s=void 0;if(b(a)?(r=a.id,s=x({},n[r],a)):s=n[r=a],["counter","next","prev","slideshow"].includes(r)&&e.fancybox.items.length<2)return"continue";if("fullscreen"===r){if(!document.fullscreenEnabled||window.fullScreen)return"continue";document.addEventListener("fullscreenchange",e.onFsChange)}if("thumbs"===r&&(!o||"disabled"===o.state))return"continue";if(!s)return"continue";var l=s.position||"right",c=i.find((function(e){return e.position===l}));c&&c.items.push(s)};for(a.s();!(t=a.n()).done;)r()}catch(e){a.e(e)}finally{a.f()}var s=document.createElement("div");s.classList.add("fancybox__toolbar");for(var l=0,c=i;l<c.length;l++){var u=c[l];if(u.items.length){var d=document.createElement("div");d.classList.add("fancybox__toolbar__items"),d.classList.add("fancybox__toolbar__items--".concat(u.position));var h,f=y(u.items);try{for(f.s();!(h=f.n()).done;){var p=h.value;d.appendChild(this.createElement(p))}}catch(e){f.e(e)}finally{f.f()}s.appendChild(d)}}this.fancybox.$carousel.parentNode.insertBefore(s,this.fancybox.$carousel),this.$container=s}},{key:"update",value:function(){var e,t=this.fancybox.getSlide(),n=t.index,i=this.fancybox.items.length,o=t.downloadSrc||("image"!==t.type||t.error?null:t.src),a=y(this.fancybox.$container.querySelectorAll("a.fancybox__button--download"));try{for(a.s();!(e=a.n()).done;){var r=e.value;o?(r.removeAttribute("disabled"),r.removeAttribute("tabindex"),r.setAttribute("href",o),r.setAttribute("download",o),r.setAttribute("target","_blank")):(r.setAttribute("disabled",""),r.setAttribute("tabindex",-1),r.removeAttribute("href"),r.removeAttribute("download"))}}catch(e){a.e(e)}finally{a.f()}var s,l=t.Panzoom,c=l&&l.option("maxScale")>l.option("baseScale"),u=y(this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"));try{for(u.s();!(s=u.n()).done;){var d=s.value;c?d.removeAttribute("disabled"):d.setAttribute("disabled","")}}catch(e){u.e(e)}finally{u.f()}var h,f=y(this.fancybox.$container.querySelectorAll("[data-fancybox-index]"));try{for(f.s();!(h=f.n()).done;)h.value.innerHTML=t.index+1}catch(e){f.e(e)}finally{f.f()}var p,m=y(this.fancybox.$container.querySelectorAll("[data-fancybox-count]"));try{for(m.s();!(p=m.n()).done;)p.value.innerHTML=i}catch(e){m.e(e)}finally{m.f()}if(!this.fancybox.option("infinite")){var v,g=y(this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"));try{for(g.s();!(v=g.n()).done;){var b=v.value;0===n?b.setAttribute("disabled",""):b.removeAttribute("disabled")}}catch(e){g.e(e)}finally{g.f()}var x,w=y(this.fancybox.$container.querySelectorAll("[data-fancybox-next]"));try{for(w.s();!(x=w.n()).done;){var k=x.value;n===i-1?k.setAttribute("disabled",""):k.removeAttribute("disabled")}}catch(e){w.e(e)}finally{w.f()}}}},{key:"cleanup",value:function(){this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer(),this.$container&&this.$container.remove(),this.$container=null}},{key:"attach",value:function(){this.fancybox.on(this.events)}},{key:"detach",value:function(){this.fancybox.off(this.events),this.cleanup()}}]),e}();K.defaults=Z;var J={ScrollLock:q,Thumbs:W,Html:U,Toolbar:K,Image:Y,Hash:X},ee={startIndex:0,preload:1,infinite:!0,showClass:"fancybox-zoomInUp",hideClass:"fancybox-fadeOut",animated:!0,hideScrollbar:!0,parentEl:null,mainClass:null,autoFocus:!0,trapFocus:!0,placeFocusBack:!0,click:"close",closeButton:"inside",dragToClose:!0,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"next",ArrowDown:"prev",ArrowRight:"next",ArrowLeft:"prev"},template:{closeButton:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1">
2<path d="M20 20L4 4m16 0L4 20"/></svg>',spinner:'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="25 25 50 50" tabindex="-1"><circle cx="50" cy="50" r="20"/></svg>',main:null},l10n:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}},te=new Map,ne=0,ie=function(e){l(n,e);var t=h(n);function n(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,n),e=e.map((function(e){return e.width&&(e._width=e.width),e.height&&(e._height=e.height),e})),(i=t.call(this,x(!0,{},ee,a))).bindHandlers(),i.state="init",i.setItems(e),i.attachPlugins(n.Plugins),i.trigger("init"),!0===i.option("hideScrollbar")&&i.hideScrollbar(),i.initLayout(),i.initCarousel(),i.attachEvents(),te.set(i.id,d(i)),i.trigger("prepare"),i.state="ready",i.trigger("ready"),i.$container.setAttribute("aria-hidden","false"),i.option("trapFocus")&&i.focus(),i}return r(n,[{key:"option",value:function(e){for(var t,i=this.getSlide(),o=i?i[e]:void 0,a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];var l;return void 0!==o?("function"==typeof o&&(o=(l=o).call.apply(l,[this,this].concat(r))),o):(t=f(c(n.prototype),"option",this)).call.apply(t,[this,e].concat(r))}},{key:"bindHandlers",value:function(){for(var e=0,t=["onMousedown","onKeydown","onClick","onFocus","onCreateSlide","onSettle","onTouchMove","onTouchEnd","onTransform"];e<t.length;e++){var n=t[e];this[n]=this[n].bind(this)}}},{key:"attachEvents",value:function(){document.addEventListener("mousedown",this.onMousedown),document.addEventListener("keydown",this.onKeydown,!0),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),this.$container.addEventListener("click",this.onClick)}},{key:"detachEvents",value:function(){document.removeEventListener("mousedown",this.onMousedown),document.removeEventListener("keydown",this.onKeydown,!0),document.removeEventListener("focus",this.onFocus,!0),this.$container.removeEventListener("click",this.onClick)}},{key:"initLayout",value:function(){var e=this;this.$root=this.option("parentEl")||document.body;var t=this.option("template.main");t&&(this.$root.insertAdjacentHTML("beforeend",this.localize(t)),this.$container=this.$root.querySelector(".fancybox__container")),this.$container||(this.$container=document.createElement("div"),this.$root.appendChild(this.$container)),this.$container.onscroll=function(){return e.$container.scrollLeft=0,!1},Object.entries({class:"fancybox__container",role:"dialog",tabIndex:"-1","aria-modal":"true","aria-hidden":"true","aria-label":this.localize("{{MODAL}}")}).forEach((function(t){var n;return(n=e.$container).setAttribute.apply(n,m(t))})),this.option("animated")&&this.$container.classList.add("is-animated"),this.$backdrop=this.$container.querySelector(".fancybox__backdrop"),this.$backdrop||(this.$backdrop=document.createElement("div"),this.$backdrop.classList.add("fancybox__backdrop"),this.$container.appendChild(this.$backdrop)),this.$carousel=this.$container.querySelector(".fancybox__carousel"),this.$carousel||(this.$carousel=document.createElement("div"),this.$carousel.classList.add("fancybox__carousel"),this.$container.appendChild(this.$carousel)),this.$container.Fancybox=this,this.id=this.$container.getAttribute("id"),this.id||(this.id=this.options.id||++ne,this.$container.setAttribute("id","fancybox-"+this.id));var n,i=this.option("mainClass");return i&&(n=this.$container.classList).add.apply(n,m(i.split(" "))),document.documentElement.classList.add("with-fancybox"),this.trigger("initLayout"),this}},{key:"setItems",value:function(e){var t,n=[],i=y(e);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.$trigger;if(a){var r=a.dataset||{};o.src=r.src||a.getAttribute("href")||o.src,o.type=r.type||o.type,!o.src&&a instanceof HTMLImageElement&&(o.src=a.currentSrc||o.$trigger.src)}var s=o.$thumb;if(!s){var l=o.$trigger&&o.$trigger.origTarget;l&&(s=l instanceof HTMLImageElement?l:l.querySelector("img:not([aria-hidden])")),!s&&o.$trigger&&(s=o.$trigger instanceof HTMLImageElement?o.$trigger:o.$trigger.querySelector("img:not([aria-hidden])"))}o.$thumb=s||null;var c=o.thumb;
2!c&&s&&!(c=s.currentSrc||s.src)&&s.dataset&&(c=s.dataset.lazySrc||s.dataset.src),c||"image"!==o.type||(c=o.src),o.thumb=c||null,o.caption=o.caption||"",n.push(o)}}catch(e){i.e(e)}finally{i.f()}this.items=n}},{key:"initCarousel",value:function(){var e=this;return this.Carousel=new I(this.$carousel,x(!0,{},{prefix:"",classNames:{viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"},textSelection:!0,preload:this.option("preload"),friction:.88,slides:this.items,initialPage:this.options.startIndex,slidesPerPage:1,infiniteX:this.option("infinite"),infiniteY:!0,l10n:this.option("l10n"),Dots:!1,Navigation:{classNames:{main:"fancybox__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}},Panzoom:{textSelection:!0,panOnlyZoomed:function(){return e.Carousel&&e.Carousel.pages&&e.Carousel.pages.length<2&&!e.option("dragToClose")},lockAxis:function(){if(e.Carousel){var t="x";return e.option("dragToClose")&&(t+="y"),t}}},on:{"*":function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return e.trigger.apply(e,["Carousel.".concat(t)].concat(i))},init:function(t){return e.Carousel=t},createSlide:this.onCreateSlide,settle:this.onSettle}},this.option("Carousel"))),this.option("dragToClose")&&this.Carousel.Panzoom.on({touchMove:this.onTouchMove,afterTransform:this.onTransform,touchEnd:this.onTouchEnd}),this.trigger("initCarousel"),this}},{key:"onCreateSlide",value:function(e,t){var n=t.caption||"";if("function"==typeof this.options.caption&&(n=this.options.caption.call(this,this,this.Carousel,t)),"string"==typeof n&&n.length){var i=document.createElement("div"),o="fancybox__caption_".concat(this.id,"_").concat(t.index);i.className="fancybox__caption",i.innerHTML=n,i.setAttribute("id",o),t.$caption=t.$el.appendChild(i),t.$el.classList.add("has-caption"),t.$el.setAttribute("aria-labelledby",o)}}},{key:"onSettle",value:function(){this.option("autoFocus")&&this.focus()}},{key:"onFocus",value:function(e){this.isTopmost()&&this.focus(e)}},{key:"onClick",value:function(e){if(!e.defaultPrevented){var t=e.composedPath()[0];if(t.matches("[data-fancybox-close]"))return e.preventDefault(),void n.close(!1,e);if(t.matches("[data-fancybox-next]"))return e.preventDefault(),void n.next();if(t.matches("[data-fancybox-prev]"))return e.preventDefault(),void n.prev();var i=document.activeElement;if(i){if(i.closest("[contenteditable]"))return;t.matches(F)||i.blur()}if(!t.closest(".fancybox__content")&&!getSelection().toString().length&&!1!==this.trigger("click",e))switch(this.option("click")){case"close":this.close();break;case"next":this.next()}}}},{key:"onTouchMove",value:function(){var e=this.getSlide().Panzoom;return!e||1===e.content.scale}},{key:"onTouchEnd",value:function(e){var t=e.dragOffset.y;Math.abs(t)>=150||Math.abs(t)>=35&&e.dragOffset.time<350?(this.option("hideClass")&&(this.getSlide().hideClass="fancybox-throwOut".concat(e.content.y<0?"Up":"Down")),this.close()):"y"===e.lockAxis&&e.panTo({y:0})}},{key:"onTransform",value:function(e){if(this.$backdrop){var t=Math.abs(e.content.y),n=t<1?"":Math.max(.33,Math.min(1,1-t/e.content.fitHeight*1.5));this.$container.style.setProperty("--fancybox-ts",n?"0s":""),this.$container.style.setProperty("--fancybox-opacity",n)}}},{key:"onMousedown",value:function(){"ready"===this.state&&document.body.classList.add("is-using-mouse")}},{key:"onKeydown",value:function(e){if(this.isTopmost()){document.body.classList.remove("is-using-mouse");var t=e.key,n=this.option("keyboard");if(n&&!e.ctrlKey&&!e.altKey&&!e.shiftKey){var i=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,a=o&&o.contains("carousel__button");if("Escape"!==t&&!a&&(e.target.isContentEditable||-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)))return;if(!1!==this.trigger("keydown",t,e)){var r=n[t];"function"==typeof this[r]&&this[r]()}}}}},{key:"getSlide",value:function(){var e=this.Carousel;if(!e)return null;var t=null===e.page?e.option("initialPage"):e.page,n=e.pages||[];return n.length&&n[t]?n[t].slides[0]:null}},{key:"focus",value:function(e){if(!(n.ignoreFocusChange||["init","closing","customClosing","destroy"].indexOf(this.state)>-1)){var t=this.$container,i=this.getSlide(),o="done"===i.state?i.$el:null;if(!o||!o.contains(document.activeElement)){e&&e.preventDefault(),n.ignoreFocusChange=!0;for(var a,r=[],s=0,l=Array.from(t.querySelectorAll(F));s<l.length;s++){var c=l[s],u=c.offsetParent,d=o&&o.contains(c),h=!this.Carousel.$viewport.contains(c);u&&(d||h)?(r.push(c),void 0!==c.dataset.origTabindex&&(c.tabIndex=c.dataset.origTabindex,c.removeAttribute("data-orig-tabindex")),(c.hasAttribute("autoFocus")||!a&&d&&!c.classList.contains("carousel__button"))&&(a=c)):(c.dataset.origTabindex=void 0===c.dataset.origTabindex?c.getAttribute("tabindex"):c.dataset.origTabindex,c.tabIndex=-1)}e?r.indexOf(e.target)>-1?this.lastFocus=e.target:this.lastFocus===t?R(r[r.length-1]):R(t):this.option("autoFocus")&&a?R(a):r.indexOf(document.activeElement)<0&&R(t),this.lastFocus=document.activeElement,n.ignoreFocusChange=!1}}}},{key:"hideScrollbar",value:function(){if(H){var e=window.innerWidth-document.documentElement.getBoundingClientRect().width,t="fancybox-style-noscroll",n=document.getElementById(t);n||e>0&&((n=document.createElement("style")).id=t,n.type="text/css",n.innerHTML=".compensate-for-scrollbar {padding-right: ".concat(e,"px;}"),document.getElementsByTagName("head")[0].appendChild(n),document.body.classList.add("compensate-for-scrollbar"))}}},{key:"revealScrollbar",value:function(){document.body.classList.remove("compensate-for-scrollbar");var e=document.getElementById("fancybox-style-noscroll");e&&e.remove()}},{key:"clearContent",value:function(e){this.Carousel.trigger("removeSlide",e),e.$content&&(e.$content.remove(),e.$content=null),e.$closeButton&&(e.$closeButton.remove(),e.$closeButton=null),e._className&&e.$el.classList.remove(e._className)}},{key:"setContent",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.$el;if(t instanceof HTMLElement)["img","iframe","video","audio"].indexOf(t.nodeName.toLowerCase())>-1?(n=document.createElement("div")).appendChild(t):n=t;else{var a=document.createRange().createContextualFragment(t);(n=document.createElement("div")).appendChild(a)}if(e.filter&&!e.error&&(n=n.querySelector(e.filter)),n instanceof Element)return e._className="has-".concat(i.suffix||e.type||"unknown"),o.classList.add(e._className),n.classList.add("fancybox__content"),"none"!==n.style.display&&"none"!==getComputedStyle(n).getPropertyValue("display")||(n.style.display=e.display||this.option("defaultDisplay")||"flex"),e.id&&n.setAttribute("id",e.id),e.$content=n,o.prepend(n),this.manageCloseButton(e),"loading"!==e.state&&this.revealContent(e),n;this.setError(e,"{{ELEMENT_NOT_FOUND}}")}},{key:"manageCloseButton",value:function(e){var t=this,n=void 0===e.closeButton?this.option("closeButton"):e.closeButton;if(n&&("top"!==n||!this.$closeButton)){var i=document.createElement("button");i.classList.add("carousel__button","is-close"),i.setAttribute("title",this.options.l10n.CLOSE),i.innerHTML=this.option("template.closeButton"),i.addEventListener("click",(function(e){return t.close(e)})),"inside"===n?(e.$closeButton&&e.$closeButton.remove(),e.$closeButton=e.$content.appendChild(i)):this.$closeButton=this.$container.insertBefore(i,this.$container.firstChild)}}},{key:"revealContent",value:function(e){var t=this;this.trigger("reveal",e),e.$content.style.visibility="";var n=!1;e.error||"loading"===e.state||null!==this.Carousel.prevPage||e.index!==this.options.startIndex||(n=void 0===e.showClass?this.option("showClass"):e.showClass),n?(e.state="animating",this.animateCSS(e.$content,n,(function(){t.done(e)}))):this.done(e)}},{key:"animateCSS",value:function(e,t,n){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!0,cancelable:!0})),e&&t?(e.addEventListener("animationend",(function i(o){o.currentTarget===this&&(e.removeEventListener("animationend",i),n&&n(),e.classList.remove(t))})),e.classList.add(t)):"function"==typeof n&&n()}},{key:"done",value:function(e){e.state="done",this.trigger("done",e);var t=this.getSlide();t&&e.index===t.index&&this.option("autoFocus")&&this.focus()}},{key:"setError",value:function(e,t){e.error=t,this.hideLoading(e),this.clearContent(e);var n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,n,{suffix:"error"})}},{key:"showLoading",value:function(e){var t=this;e.state="loading",e.$el.classList.add("is-loading");var n=e.$el.querySelector(".fancybox__spinner");n||((n=document.createElement("div")).classList.add("fancybox__spinner"),n.innerHTML=this.option("template.spinner"),n.addEventListener("click",(function(){t.Carousel.Panzoom.velocity||t.close()})),e.$el.prepend(n))}},{key:"hideLoading",value:function(e){var t=e.$el&&e.$el.querySelector(".fancybox__spinner");t&&(t.remove(),e.$el.classList.remove("is-loading")),"loading"===e.state&&(this.trigger("load",e),e.state="ready")}},{key:"next",value:function(){var e=this.Carousel;e&&e.pages.length>1&&e.slideNext()}},{key:"prev",value:function(){var e=this.Carousel;e&&e.pages.length>1&&e.slidePrev()}},{key:"jumpTo",value:function(){var e;this.Carousel&&(e=this.Carousel).slideTo.apply(e,arguments)}},{key:"isClosing",value:function(){return["closing","customClosing","destroy"].includes(this.state)}},{key:"isTopmost",value:function(){return n.getInstance().id==this.id}},{key:"close",value:function(e){var t=this;if(e&&e.preventDefault(),!this.isClosing()&&!1!==this.trigger("shouldClose",e)&&(this.state="closing",this.Carousel.Panzoom.destroy(),this.detachEvents(),this.trigger("closing",e),"destroy"!==this.state)){this.$container.setAttribute("aria-hidden","true"),this.$container.classList.add("is-closing");var n=this.getSlide();
2if(this.Carousel.slides.forEach((function(e){e.$content&&e.index!==n.index&&t.Carousel.trigger("removeSlide",e)})),"closing"===this.state){var i=void 0===n.hideClass?this.option("hideClass"):n.hideClass;this.animateCSS(n.$content,i,(function(){t.destroy()}),!0)}}}},{key:"destroy",value:function(){if("destroy"!==this.state){this.state="destroy",this.trigger("destroy");var e=this.option("placeFocusBack")?this.option("triggerTarget",this.getSlide().$trigger):null;this.Carousel.destroy(),this.detachPlugins(),this.Carousel=null,this.options={},this.events={},this.$container.remove(),this.$container=this.$backdrop=this.$carousel=null,e&&R(e),te.delete(this.id);var t=n.getInstance();t?t.focus():(document.documentElement.classList.remove("with-fancybox"),document.body.classList.remove("is-using-mouse"),this.revealScrollbar())}}}],[{key:"show",value:function(e){return new n(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"fromEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.defaultPrevented&&!(e.button&&0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey)){var i,o,a,r=e.composedPath()[0],s=r;if((s.matches("[data-fancybox-trigger]")||(s=s.closest("[data-fancybox-trigger]")))&&(t.triggerTarget=s,i=s&&s.dataset&&s.dataset.fancyboxTrigger),i){var l=document.querySelectorAll('[data-fancybox="'.concat(i,'"]')),c=parseInt(s.dataset.fancyboxIndex,10)||0;s=l.length?l[c]:s}Array.from(n.openers.keys()).reverse().some((function(t){a=s||r;var n=!1;try{a instanceof Element&&("string"==typeof t||t instanceof String)&&(n=a.matches(t)||(a=a.closest(t)))}catch(e){}return!!n&&(e.preventDefault(),o=t,!0)}));var u=!1;if(o){t.event=e,t.target=a,a.origTarget=r,u=n.fromOpener(o,t);var d=n.getInstance();d&&"ready"===d.state&&e.detail&&document.body.classList.add("is-using-mouse")}return u}}},{key:"fromOpener",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2,i=[],o=t.startIndex||0,a=t.target||null,r=void 0!==(t=x({},t,n.openers.get(e))).groupAll&&t.groupAll,s=void 0===t.groupAttr?"data-fancybox":t.groupAttr,l=s&&a?a.getAttribute("".concat(s)):"";if(!a||l||r){var c=t.root||(a?a.getRootNode():document.body);i=[].slice.call(c.querySelectorAll(e))}if(a&&!r&&(i=l?i.filter((function(e){return e.getAttribute("".concat(s))===l})):[a]),!i.length)return!1;var u=n.getInstance();return!(u&&i.indexOf(u.options.$trigger)>-1)&&(o=a?i.indexOf(a):o,new n(i=i.map((function(e){for(var t=["false","0","no","null","undefined"],n=["true","1","yes"],i=Object.assign({},e.dataset),o={},a=0,r=Object.entries(i);a<r.length;a++){var s=p(r[a],2),l=s[0],c=s[1];if("fancybox"!==l)if("width"===l||"height"===l)o["_".concat(l)]=c;else if("string"==typeof c||c instanceof String)if(t.indexOf(c)>-1)o[l]=!1;else if(n.indexOf(o[l])>-1)o[l]=!0;else try{o[l]=JSON.parse(c)}catch(e){o[l]=c}else o[l]=c}return e instanceof Element&&(o.$trigger=e),o})),x({},t,{startIndex:o,$trigger:a})))}},{key:"bind",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function i(){document.body.addEventListener("click",n.fromEvent,!1)}H&&(n.openers.size||(/complete|interactive|loaded/.test(document.readyState)?i():document.addEventListener("DOMContentLoaded",i)),n.openers.set(e,t))}},{key:"unbind",value:function(e){n.openers.delete(e),n.openers.size||n.destroy()}},{key:"destroy",value:function(){for(var e;e=n.getInstance();)e.destroy();n.openers=new Map,document.body.removeEventListener("click",n.fromEvent,!1)}},{key:"getInstance",value:function(e){return e?te.get(e):Array.from(te.values()).reverse().find((function(e){return!e.isClosing()&&e}))||null}},{key:"close",value:function(){var e,t=arguments.length>1?arguments[1]:void 0;if(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]){var i=n.getInstance();i&&i.close(t)}else{var o,a=y(te.values());try{for(a.s();!(o=a.n()).done;)o.value.close(t)}catch(e){a.e(e)}finally{a.f()}}}},{key:"next",value:function(){var e=n.getInstance();e&&e.next()}},{key:"prev",value:function(){var e=n.getInstance();e&&e.prev()}}]),n}(A);ie.version="4.0.31",ie.defaults=ee,ie.openers=new Map,ie.Plugins=J,ie.bind("[data-fancybox]");for(var oe=0,ae=Object.entries(ie.Plugins||{});oe<ae.length;oe++){var re=p(ae[oe],2);re[0];var se=re[1];"function"==typeof se.create&&se.create(ie)}e.Carousel=I,e.Fancybox=ie,e.Panzoom=O}(t)},5813:(e,t,n)=>{"use strict";n.d(t,{UD:()=>x});var i=n(1963),o=n(7211),a=n(1398),r=n(8018),s=n(6161),l=n(5168),c=n(3627),u=n(3913),d=n(3765);function h(e,t,n){void 0===n&&(n=!1);var h,f,p=(0,r.sb)(t),m=(0,r.sb)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.LI)(t.width)/e.offsetWidth||1,i=(0,d.LI)(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),v=(0,c.A)(t),g=(0,i.A)(e,m,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(p||!p&&!n)&&(("body"!==(0,s.A)(t)||(0,u.A)(v))&&(y=(h=t)!==(0,a.A)(h)&&(0,r.sb)(h)?{scrollLeft:(f=h).scrollLeft,scrollTop:f.scrollTop}:(0,o.A)(h)),(0,r.sb)(t)?((b=(0,i.A)(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):v&&(b.x=(0,l.A)(v))),{x:g.left+y.scrollLeft-b.x,y:g.top+y.scrollTop-b.y,width:g.width,height:g.height}}var f=n(5914),p=n(9454),m=n(8099),v=n(2443);function g(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),i}var y={placement:"bottom",modifiers:[],strategy:"absolute"};function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function x(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?y:o;return function(e,t,n){void 0===n&&(n=a);var o,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},y,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;x(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:(0,r.vq)(e)?(0,p.A)(e):e.contextElement?(0,p.A)(e.contextElement):[],popper:(0,p.A)(t)};var s,u,h=function(e){var t=g(e);return v.GM.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(i,l.options.modifiers),u=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=h.filter((function(e){return e.enabled}
2)),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:d,options:i});c.push(a||function(){})}})),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(b(t,n)){l.rects={reference:h(t,(0,m.A)(n),"fixed"===l.options.strategy),popper:(0,f.A)(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var o=l.orderedModifiers[i],a=o.fn,r=o.options,s=void 0===r?{}:r,c=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){x(),u=!0}};if(!b(e,t))return d;function x(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}},5973:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(8018);function o(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}},1963:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(8018),o=n(3765),a=n(1398),r=n(8176);function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),l=1,c=1;t&&(0,i.sb)(e)&&(l=e.offsetWidth>0&&(0,o.LI)(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,o.LI)(s.height)/e.offsetHeight||1);var u=((0,i.vq)(e)?(0,a.A)(e):window).visualViewport,d=!(0,r.A)()&&n,h=(s.left+(d&&u?u.offsetLeft:0))/l,f=(s.top+(d&&u?u.offsetTop:0))/c,p=s.width/l,m=s.height/c;return{width:p,height:m,top:f,right:h+p,bottom:f+m,left:h,x:h,y:f}}},5772:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(1398);function o(e){return(0,i.A)(e).getComputedStyle(e)}},3627:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(8018);function o(e){return(((0,i.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},5914:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(1963);function o(e){var t=(0,i.A)(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}},6161:(e,t,n)=>{"use strict";function i(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:()=>i})},8099:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(1398),o=n(6161),a=n(5772),r=n(8018);function s(e){return["table","td","th"].indexOf((0,o.A)(e))>=0}var l=n(6334),c=n(9275);function u(e){return(0,r.sb)(e)&&"fixed"!==(0,a.A)(e).position?e.offsetParent:null}function d(e){for(var t=(0,i.A)(e),n=u(e);n&&s(n)&&"static"===(0,a.A)(n).position;)n=u(n);return n&&("html"===(0,o.A)(n)||"body"===(0,o.A)(n)&&"static"===(0,a.A)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.A)());if(/Trident/i.test((0,c.A)())&&(0,r.sb)(e)&&"fixed"===(0,a.A)(e).position)return null;var n=(0,l.A)(e);for((0,r.Ng)(n)&&(n=n.host);(0,r.sb)(n)&&["html","body"].indexOf((0,o.A)(n))<0;){var i=(0,a.A)(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}},6334:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(6161),o=n(3627),a=n(8018);function r(e){return"html"===(0,i.A)(e)?e:e.assignedSlot||e.parentNode||((0,a.Ng)(e)?e.host:null)||(0,o.A)(e)}},1398:(e,t,n)=>{"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:()=>i})},7211:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(1398);function o(e){var t=(0,i.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},5168:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(1963),o=n(3627),a=n(7211);function r(e){return(0,i.A)((0,o.A)(e)).left+(0,a.A)(e).scrollLeft}},8018:(e,t,n)=>{"use strict";n.d(t,{Ng:()=>r,sb:()=>a,vq:()=>o});var i=n(1398);function o(e){return e instanceof(0,i.A)(e).Element||e instanceof Element}function a(e){return e instanceof(0,i.A)(e).HTMLElement||e instanceof HTMLElement}function r(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,i.A)(e).ShadowRoot||e instanceof ShadowRoot)}},8176:(e,t,n)=>{"use strict";n.d(t,{A:()=>
2o});var i=n(9275);function o(){return!/^((?!chrome|android).)*safari/i.test((0,i.A)())}},3913:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(5772);function o(e){var t=(0,i.A)(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}},9454:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(6334),o=n(3913),a=n(6161),r=n(8018);function s(e){return["html","body","#document"].indexOf((0,a.A)(e))>=0?e.ownerDocument.body:(0,r.sb)(e)&&(0,o.A)(e)?e:s((0,i.A)(e))}var l=n(1398);function c(e,t){var n;void 0===t&&(t=[]);var a=s(e),r=a===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,l.A)(a),d=r?[u].concat(u.visualViewport||[],(0,o.A)(a)?a:[]):a,h=t.concat(d);return r?h:h.concat(c((0,i.A)(d)))}},2443:(e,t,n)=>{"use strict";n.d(t,{DD:()=>v,GM:()=>g,Mn:()=>i,OM:()=>l,Ol:()=>m,R9:()=>h,WY:()=>d,_N:()=>u,ir:()=>p,kb:()=>r,ni:()=>c,pG:()=>a,qZ:()=>s,sQ:()=>o,xf:()=>f});var i="top",o="bottom",a="right",r="left",s="auto",l=[i,o,a,r],c="start",u="end",d="clippingParents",h="viewport",f="popper",p="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+u])}),[]),v=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])}),[]),g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(6161),o=n(8018);const a={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},a=t.attributes[e]||{},r=t.elements[e];(0,o.sb)(r)&&(0,i.A)(r)&&(Object.assign(r.style,n),Object.keys(a).forEach((function(e){var t=a[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,o.sb)(a)&&(0,i.A)(a)&&(Object.assign(a.style,s),Object.keys(r).forEach((function(e){a.removeAttribute(e)})))}))}},requires:["computeStyles"]}},5657:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(975),o=n(5914),a=n(5973),r=n(8099),s=n(8920),l=n(1184),c=n(8845),u=n(4974),d=n(2443);const h={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,a=e.name,h=e.options,f=n.elements.arrow,p=n.modifiersData.popperOffsets,m=(0,i.A)(n.placement),v=(0,s.A)(m),g=[d.kb,d.pG].indexOf(m)>=0?"height":"width";if(f&&p){var y=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.A)("number"!=typeof e?e:(0,u.A)(e,d.OM))}(h.padding,n),b=(0,o.A)(f),x="y"===v?d.Mn:d.kb,w="y"===v?d.sQ:d.pG,k=n.rects.reference[g]+n.rects.reference[v]-p[v]-n.rects.popper[g],C=p[v]-n.rects.reference[v],T=(0,r.A)(f),$=T?"y"===v?T.clientHeight||0:T.clientWidth||0:0,_=k/2-C/2,E=y[x],A=$-b[g]-y[w],S=$/2-b[g]/2+_,O=(0,l.u)(E,S,A),D=v;n.modifiersData[a]=((t={})[D]=O,t.centerOffset=O-S,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&(0,a.A)(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},5283:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var i=n(2443),o=n(8099),a=n(1398),r=n(3627),s=n(5772),l=n(975),c=n(2254),u=n(3765),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(e){var t,n=e.popper,l=e.popperRect,c=e.placement,h=e.variation,f=e.offsets,p=e.position,m=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,y=e.isFixed,b=f.x,x=void 0===b?0:b,w=f.y,k=void 0===w?0:w,C="function"==typeof g?g({x,y:k}):{x,y:k};x=C.x,k=C.y;var T=f.hasOwnProperty("x"),$=f.hasOwnProperty("y"),_=i.kb,E=i.Mn,A=window;if(v){var S=(0,o.A)(n),O="clientHeight",D="clientWidth";S===(0,a.A)(n)&&(S=(0,r.A)(n),"static"!==(0,s.A)(S).position&&"absolute"===p&&(O="scrollHeight",D="scrollWidth")),(c===i.Mn||(c===i.kb||c===i.pG)&&h===i._N)&&(E=i.sQ,k-=(y&&S===A&&A.visualVie
2wport?A.visualViewport.height:S[O])-l.height,k*=m?1:-1),c!==i.kb&&(c!==i.Mn&&c!==i.sQ||h!==i._N)||(_=i.pG,x-=(y&&S===A&&A.visualViewport?A.visualViewport.width:S[D])-l.width,x*=m?1:-1)}var L,P=Object.assign({position:p},v&&d),j=!0===g?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:(0,u.LI)(n*o)/o||0,y:(0,u.LI)(i*o)/o||0}}({x,y:k},(0,a.A)(n)):{x,y:k};return x=j.x,k=j.y,m?Object.assign({},P,((L={})[E]=$?"0":"",L[_]=T?"0":"",L.transform=(A.devicePixelRatio||1)<=1?"translate("+x+"px, "+k+"px)":"translate3d("+x+"px, "+k+"px, 0)",L)):Object.assign({},P,((t={})[E]=$?k+"px":"",t[_]=T?x+"px":"",t.transform="",t))}const f={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,a=n.adaptive,r=void 0===a||a,s=n.roundOffsets,u=void 0===s||s,d={placement:(0,l.A)(t.placement),variation:(0,c.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,h(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,h(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},1243:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(1398),o={passive:!0};const a={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,s=void 0===r||r,l=a.resize,c=void 0===l||l,u=(0,i.A)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach((function(e){e.addEventListener("scroll",n.update,o)})),c&&u.addEventListener("resize",n.update,o),function(){s&&d.forEach((function(e){e.removeEventListener("scroll",n.update,o)})),c&&u.removeEventListener("resize",n.update,o)}},data:{}}},3376:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i={left:"right",right:"left",bottom:"top",top:"bottom"};function o(e){return e.replace(/left|right|bottom|top/g,(function(e){return i[e]}))}var a=n(975),r={start:"end",end:"start"};function s(e){return e.replace(/start|end/g,(function(e){return r[e]}))}var l=n(2874),c=n(2254),u=n(2443);const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,d=void 0===r||r,h=n.altAxis,f=void 0===h||h,p=n.fallbackPlacements,m=n.padding,v=n.boundary,g=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,x=void 0===b||b,w=n.allowedAutoPlacements,k=t.options.placement,C=(0,a.A)(k),T=p||(C!==k&&x?function(e){if((0,a.A)(e)===u.qZ)return[];var t=o(e);return[s(e),t,s(t)]}(k):[o(k)]),$=[k].concat(T).reduce((function(e,n){return e.concat((0,a.A)(n)===u.qZ?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,f=void 0===h?u.DD:h,p=(0,c.A)(i),m=p?d?u.Ol:u.Ol.filter((function(e){return(0,c.A)(e)===p})):u.OM,v=m.filter((function(e){return f.indexOf(e)>=0}));0===v.length&&(v=m);var g=v.reduce((function(t,n){return t[n]=(0,l.A)(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[(0,a.A)(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:x,allowedAutoPlacements:w}):n)}),[]),_=t.rects.reference,E=t.rects.popper,A=new Map,S=!0,O=$[0],D=0;D<$.length;D++){var L=$[D],P=(0,a.A)(L),j=(0,c.A)(L)===u.ni,M=[u.Mn,u.sQ].indexOf(P)>=0,N=M?"width":"height",I=(0,l.A)(t,{placement:L,boundary:v,rootBoundary:g,altBoundary:y,padding:m}),H=M?j?u.pG:u.kb:j?u.sQ:u.Mn;_[N]>E[N]&&(H=o(H));var z=o(H),F=[];if(d&&F.push(I[P]<=0),f&&F.push(I[H]<=0,I[z]<=0),F.every((function(e){return e}))){O=L,S=!1;break}A.set(L,F)}if(S)for(var R=function(e){var t=$.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},q=x?3:1;q>0&&"break"!==R(q);q--);t.placement!==O&&(t.modifiersData[i]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},7278:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(2443),o=n(2874);function a(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function r(e){return[i.Mn,i.pG,i.sQ,i.kb].some((function(t){return e[t]>=0}))}const s={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,o.A)(t,{elementContext:"reference"}),u=(0,o.A)(t,{altBoundary:!0}),d=a(c,i),h=a(u,s,l),f=r(d),p=r(h);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({}
2,t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}}},7365:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(975),o=n(2443);const a={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,a=e.name,r=n.offset,s=void 0===r?[0,0]:r,l=o.DD.reduce((function(e,n){return e[n]=function(e,t,n){var a=(0,i.A)(e),r=[o.kb,o.Mn].indexOf(a)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=s[0],c=s[1];return l=l||0,c=(c||0)*r,[o.kb,o.pG].indexOf(a)>=0?{x:c,y:l}:{x:l,y:c}}(n,t.rects,s),e}),{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[a]=l}}},9006:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(7032);const o={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,i.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},2775:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var i=n(2443),o=n(975),a=n(8920),r=n(1184),s=n(5914),l=n(8099),c=n(2874),u=n(2254),d=n(8819),h=n(3765);const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,f=e.name,p=n.mainAxis,m=void 0===p||p,v=n.altAxis,g=void 0!==v&&v,y=n.boundary,b=n.rootBoundary,x=n.altBoundary,w=n.padding,k=n.tether,C=void 0===k||k,T=n.tetherOffset,$=void 0===T?0:T,_=(0,c.A)(t,{boundary:y,rootBoundary:b,padding:w,altBoundary:x}),E=(0,o.A)(t.placement),A=(0,u.A)(t.placement),S=!A,O=(0,a.A)(E),D="x"===O?"y":"x",L=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,M="function"==typeof $?$(Object.assign({},t.rects,{placement:t.placement})):$,N="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(L){if(m){var z,F="y"===O?i.Mn:i.kb,R="y"===O?i.sQ:i.pG,q="y"===O?"height":"width",W=L[O],B=W+_[F],V=W-_[R],U=C?-j[q]/2:0,Y=A===i.ni?P[q]:j[q],X=A===i.ni?-j[q]:-P[q],Q=t.elements.arrow,G=C&&Q?(0,s.A)(Q):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.A)(),K=Z[F],J=Z[R],ee=(0,r.u)(0,P[q],G[q]),te=S?P[q]/2-U-ee-K-N.mainAxis:Y-ee-K-N.mainAxis,ne=S?-P[q]/2+U+ee+J+N.mainAxis:X+ee+J+N.mainAxis,ie=t.elements.arrow&&(0,l.A)(t.elements.arrow),oe=ie?"y"===O?ie.clientTop||0:ie.clientLeft||0:0,ae=null!=(z=null==I?void 0:I[O])?z:0,re=W+te-ae-oe,se=W+ne-ae,le=(0,r.u)(C?(0,h.jk)(B,re):B,W,C?(0,h.T9)(V,se):V);L[O]=le,H[O]=le-W}if(g){var ce,ue="x"===O?i.Mn:i.kb,de="x"===O?i.sQ:i.pG,he=L[D],fe="y"===D?"height":"width",pe=he+_[ue],me=he-_[de],ve=-1!==[i.Mn,i.kb].indexOf(E),ge=null!=(ce=null==I?void 0:I[D])?ce:0,ye=ve?pe:he-P[fe]-j[fe]-ge+N.altAxis,be=ve?he+P[fe]+j[fe]-ge-N.altAxis:me,xe=C&&ve?(0,r.P)(ye,he,be):(0,r.u)(C?ye:pe,he,C?be:me);L[D]=xe,H[D]=xe-he}t.modifiersData[f]=H}},requiresIfExists:["offset"]}},2747:(e,t,n)=>{"use strict";n.d(t,{n4:()=>p});var i=n(5813),o=n(1243),a=n(9006),r=n(5283),s=n(822),l=n(7365),c=n(3376),u=n(2775),d=n(5657),h=n(7278),f=[o.A,a.A,r.A,s.A,l.A,c.A,u.A,d.A,h.A],p=(0,i.UD)({defaultModifiers:f})},7032:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(975),o=n(2254),a=n(8920),r=n(2443);function s(e){var t,n=e.reference,s=e.element,l=e.placement,c=l?(0,i.A)(l):null,u=l?(0,o.A)(l):null,d=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2;switch(c){case r.Mn:t={x:d,y:n.y-s.height};break;case r.sQ:t={x:d,y:n.y+n.height};break;case r.pG:t={x:n.x+n.width,y:h};break;case r.kb:t={x:n.x-s.width,y:h};break;default:t={x:n.x,y:n.y}}var f=c?(0,a.A)(c):null;if(null!=f){var p="y"===f?"height":"width";switch(u){case r.ni:t[f]=t[f]-(n[p]/2-s[p]/2);break;case r._N:t[f]=t[f]+(n[p]/2-s[p]/2)}}return t}},2874:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var i=n(2443),o=n(1398),a=n(3627),r=n(5168),s=n(8176),l=n(5772),c=n(7211),u=n(3765),d=n(9454),h=n(8099),f=n(8018),p=n(1963),m=n(6334),v=n(5973),g=n(6161);function y(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function b(e,t,n){return t===i.R9?y(function(e,t){var n=(0,o.A)(e),i=(0,a.A)(e),l=n.visualVie
2wport,c=i.clientWidth,u=i.clientHeight,d=0,h=0;if(l){c=l.width,u=l.height;var f=(0,s.A)();(f||!f&&"fixed"===t)&&(d=l.offsetLeft,h=l.offsetTop)}return{width:c,height:u,x:d+(0,r.A)(e),y:h}}(e,n)):(0,f.vq)(t)?function(e,t){var n=(0,p.A)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):y(function(e){var t,n=(0,a.A)(e),i=(0,c.A)(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=(0,u.T9)(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),d=(0,u.T9)(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),h=-i.scrollLeft+(0,r.A)(e),f=-i.scrollTop;return"rtl"===(0,l.A)(o||n).direction&&(h+=(0,u.T9)(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:d,x:h,y:f}}((0,a.A)(e)))}var x=n(7032),w=n(8845),k=n(4974);function C(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,s=n.strategy,c=void 0===s?e.strategy:s,C=n.boundary,T=void 0===C?i.WY:C,$=n.rootBoundary,_=void 0===$?i.R9:$,E=n.elementContext,A=void 0===E?i.xf:E,S=n.altBoundary,O=void 0!==S&&S,D=n.padding,L=void 0===D?0:D,P=(0,w.A)("number"!=typeof L?L:(0,k.A)(L,i.OM)),j=A===i.xf?i.ir:i.xf,M=e.rects.popper,N=e.elements[O?j:A],I=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=(0,d.A)((0,m.A)(e)),n=["absolute","fixed"].indexOf((0,l.A)(e).position)>=0&&(0,f.sb)(e)?(0,h.A)(e):e;return(0,f.vq)(n)?t.filter((function(e){return(0,f.vq)(e)&&(0,v.A)(e,n)&&"body"!==(0,g.A)(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),r=a[0],s=a.reduce((function(t,n){var o=b(e,n,i);return t.top=(0,u.T9)(o.top,t.top),t.right=(0,u.jk)(o.right,t.right),t.bottom=(0,u.jk)(o.bottom,t.bottom),t.left=(0,u.T9)(o.left,t.left),t}),b(e,r,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}((0,f.vq)(N)?N:N.contextElement||(0,a.A)(e.elements.popper),T,_,c),H=(0,p.A)(e.elements.reference),z=(0,x.A)({reference:H,element:M,strategy:"absolute",placement:r}),F=y(Object.assign({},M,z)),R=A===i.xf?F:H,q={top:I.top-R.top+P.top,bottom:R.bottom-I.bottom+P.bottom,left:I.left-R.left+P.left,right:R.right-I.right+P.right},W=e.modifiersData.offset;if(A===i.xf&&W){var B=W[r];Object.keys(q).forEach((function(e){var t=[i.pG,i.sQ].indexOf(e)>=0?1:-1,n=[i.Mn,i.sQ].indexOf(e)>=0?"y":"x";q[e]+=B[n]*t}))}return q}},4974:(e,t,n)=>{"use strict";function i(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{A:()=>i})},975:(e,t,n)=>{"use strict";function i(e){return e.split("-")[0]}n.d(t,{A:()=>i})},8819:(e,t,n)=>{"use strict";function i(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:()=>i})},8920:(e,t,n)=>{"use strict";function i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:()=>i})},2254:(e,t,n)=>{"use strict";function i(e){return e.split("-")[1]}n.d(t,{A:()=>i})},3765:(e,t,n)=>{"use strict";n.d(t,{LI:()=>a,T9:()=>i,jk:()=>o});var i=Math.max,o=Math.min,a=Math.round},8845:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(8819);function o(e){return Object.assign({},(0,i.A)(),e)}},9275:(e,t,n)=>{"use strict";function i(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{A:()=>i})},1184:(e,t,n)=>{"use strict";n.d(t,{P:()=>a,u:()=>o});var i=n(3765);function o(e,t,n){return(0,i.T9)(e,(0,i.jk)(t,n))}function a(e,t,n){var i=o(e,t,n);return i>n?n:i}},9592:function(e,t){var n;!function(i){"use strict";function o(e,t){e.className+=" "+t}function a(e,t){for(var n=e.className.split(" "),i=t.split(" "),o=0;o<i.length;o+=1){var a=n.indexOf(i[o]);a>-1&&n.splice(a,1)}e.className=n.join(" ")}function r(){return"rtl"===i.getComputedStyle(document.body).direction}function s(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}function l(){return document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft}function c(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function u(e){if(null===e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n+=1)t.push(u(e[n]));return t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return(t=new RegExp(e.source)).global=e.global,t.ignoreCase=e.ignoreCase,t.multiline=e.multiline,t.lastIndex=e.lastIndex,t;if("object"==typeof e){for(var i in t={},e)e.hasOwnProperty(i)&&(t[i]=u(e[i]));return t}return e}function d(e,t){if(e.elements){var n=e.elements.root;n.parentNode.removeChild(n),delete e.elements,e.settings=u(e.__settings),e.__init=t,delete e.__internal}}function h(e,t){return function(){if(arguments.length>0){for(var n=[],i=0;i<arguments.length;i+=1)n.push(arguments[i]);return n.push(e),t.apply(e,n)}return t.apply(e,[null,e])}}function f(e,t){return{index:e,button:t,cancel:!1}}function p(e,t){if("function"==typeof t.get(e))return t.get(e).call(t)}var m=":not(:disabled):not(.ajs-reset)",v={autoReset:!0,basic:!1,closable:!0,closableByDimmer:!0,invokeOnCloseOff:!1,frameless:!1,defaultFocusOff:!1,maintainFocus:!0,maximizable:!0,modal:!0,movable:!0,moveBounded:!1,overflow:!0,padding:!0,pinnable:!0,pinned:!0,preventBodyShift:!1,resizable:!0,startMaximized:!1,transition:"pulse",transitionOff:!1,tabbable:["button","[href]","input","select","textarea",'[tabindex]:not
2([tabindex^="-"])'+m].join(m+","),notifier:{delay:5,position:"bottom-right",closeButton:!1,classes:{base:"alertify-notifier",prefix:"ajs-",message:"ajs-message",top:"ajs-top",right:"ajs-right",bottom:"ajs-bottom",left:"ajs-left",center:"ajs-center",visible:"ajs-visible",hidden:"ajs-hidden",close:"ajs-close"}},glossary:{title:"AlertifyJS",ok:"OK",cancel:"Cancel",acccpt:"Accept",deny:"Deny",confirm:"Confirm",decline:"Decline",close:"Close",maximize:"Maximize",restore:"Restore"},theme:{input:"ajs-input",ok:"ajs-ok",cancel:"ajs-cancel"},hooks:{preinit:function(){},postinit:function(){}}},g=[],y=!1;try{var b=Object.defineProperty({},"passive",{get:function(){y=!0}});i.addEventListener("test",b,b),i.removeEventListener("test",b,b)}catch(e){}var x=function(e,t,n,i,o){e.addEventListener(t,n,y?{capture:i,passive:o}:!0===i)},w=function(e,t,n,i,o){e.removeEventListener(t,n,y?{capture:i,passive:o}:!0===i)},k=function(){var e,t,n=!1,i={animation:"animationend",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in i)if(void 0!==document.documentElement.style[e]){t=i[e],n=!0;break}return{type:t,supported:n}}(),C=function(){function e(e){if(!e.__internal){var t;$.defaults.hooks.preinit(e),delete e.__init,e.__settings||(e.__settings=u(e.settings)),"function"==typeof e.setup?((t=e.setup()).options=t.options||{},t.focus=t.focus||{}):t={buttons:[],focus:{element:null,select:!1},options:{}},"object"!=typeof e.hooks&&(e.hooks={});var n=[];if(Array.isArray(t.buttons))for(var i=0;i<t.buttons.length;i+=1){var a=t.buttons[i],r={};for(var s in a)a.hasOwnProperty(s)&&(r[s]=a[s]);n.push(r)}var l=e.__internal={isOpen:!1,activeElement:document.body,timerIn:void 0,timerOut:void 0,buttons:n,focus:t.focus,options:{title:void 0,modal:void 0,basic:void 0,frameless:void 0,defaultFocusOff:void 0,pinned:void 0,movable:void 0,moveBounded:void 0,resizable:void 0,autoReset:void 0,closable:void 0,closableByDimmer:void 0,invokeOnCloseOff:void 0,maximizable:void 0,startMaximized:void 0,pinnable:void 0,transition:void 0,transitionOff:void 0,padding:void 0,overflow:void 0,onshow:void 0,onclosing:void 0,onclose:void 0,onfocus:void 0,onmove:void 0,onmoved:void 0,onresize:void 0,onresized:void 0,onmaximize:void 0,onmaximized:void 0,onrestore:void 0,onrestored:void 0},resetHandler:void 0,beginMoveHandler:void 0,beginResizeHandler:void 0,bringToFrontHandler:void 0,modalClickHandler:void 0,buttonsClickHandler:void 0,commandsClickHandler:void 0,transitionInHandler:void 0,transitionOutHandler:void 0,destroy:void 0},c={};c.root=document.createElement("div"),c.root.style.display="none",c.root.className=ve.base+" "+ve.hidden+" ",c.root.innerHTML=me.dimmer+me.modal,c.dimmer=c.root.firstChild,c.modal=c.root.lastChild,c.modal.innerHTML=me.dialog,c.dialog=c.modal.firstChild,c.dialog.innerHTML=me.reset+me.commands+me.header+me.body+me.footer+me.resizeHandle+me.reset,c.reset=[],c.reset.push(c.dialog.firstChild),c.reset.push(c.dialog.lastChild),c.commands={},c.commands.container=c.reset[0].nextSibling,c.commands.pin=c.commands.container.firstChild,c.commands.maximize=c.commands.pin.nextSibling,c.commands.close=c.commands.maximize.nextSibling,c.header=c.commands.container.nextSibling,c.body=c.header.nextSibling,c.body.innerHTML=me.content,c.content=c.body.firstChild,c.footer=c.body.nextSibling,c.footer.innerHTML=me.buttons.auxiliary+me.buttons.primary,c.resizeHandle=c.footer.nextSibling,c.buttons={},c.buttons.auxiliary=c.footer.firstChild,c.buttons.primary=c.buttons.auxiliary.nextSibling,c.buttons.primary.innerHTML=me.button,c.buttonTemplate=c.buttons.primary.firstChild,c.buttons.primary.removeChild(c.buttonTemplate);for(var d=0;d<e.__internal.buttons.length;d+=1){var f=e.__internal.buttons[d];for(var p in he.indexOf(f.key)<0&&he.push(f.key),f.element=c.buttonTemplate.cloneNode(),f.element.innerHTML=f.text,"string"==typeof f.className&&""!==f.className&&o(f.element,f.className),f.attrs)"className"!==p&&f.attrs.hasOwnProperty(p)&&f.element.setAttribute(p,f.attrs[p]);"auxiliary"===f.scope?c.buttons.auxiliary.appendChild(f.element):c.buttons.primary.appendChild(f.element)}for(var m in e.elements=c,l.resetHandler=h(e,R),l.beginMoveHandler=h(e,X),l.beginResizeHandler=h(e,K),l.bringToFrontHandler=h(e,b),l.modalClickHandler=h(e,M),l.buttonsClickHandler=h(e,I),l.commandsClickHandler=h(e,E),l.transitionInHandler=h(e,B),l.transitionOutHandler=h(e,V),l.options)void 0!==t.options[m]?e.set(m,t.options[m]):$.defaults.hasOwnProperty(m)?e.set(m,$.defaults[m]):"title"===m&&e.set(m,$.defaults.glossary[m]);"function"==typeof e.build&&e.build(),$.defaults.hooks.postinit(e)}document.body.appendChild(e.elements.root)}function t(){ue=l(),de=s()}function n(){i.scrollTo(ue,de)}function m(){for(var e=0,t=0;t<g.length;t+=1){var n=g[t];(n.isModal()||n.isMaximized())&&(e+=1)}0===e&&document.body.className.indexOf(ve.noOverflow)>=0?(a(document.body,ve.noOverflow),y(!1)):e>0&&document.body.className.indexOf(ve.noOverflow)<0&&(y(!0),o(document.body,ve.noOverflow))}function y(e){$.defaults.preventBodyShift&&(e&&document.documentElement.scrollHeight>document.documentElement.clientHeight?(ye=de,ge=i.getComputedStyle(document.body).top,o(document.body,ve.fixed),document.body.style.top=-de+"px"):e||(de=ye,document.body.style.top=ge,a(document.body,ve.fixed),n()))}function b(e,t){for(var n=g.indexOf(t)+1;n<g.length;n+=1)if(g[n].isModal())return;return document.body.lastChild!==t.elements.root&&(document.body.appendChild(t.elements.root),g.splice(g.indexOf(t),1),g.push(t),F(t)),!1}function C(e,t,n,i){switch(t){case"title":e.setHeader(i);break;case"modal":!function(e){e.get("modal")?(a(e.elements.root,ve.modeless),e.isOpen()&&(ae(e),j(e),m())):(o(e.elements.root,ve.modeless),e.isOpen()&&(oe(e),j(e),m()))}(e);break;case"basic":!function(e){e.get("basic")?o(e.elements.root,ve.basic):a(e.elements.root,ve.basic)}(e);break;case"frameless":!function(e){e.get("frameless")?o(e.elements.root,ve.frameless):a(e.elements.root,ve.frameless)}(e);break;case"pinned":!function(e){e.get("pinned")?(a(e.elements.root,ve.unpinned),e.isOpen()&&P(e)):(o(e.elements.root,ve.unpinned),e.isOpen()&&!e.isModal()&&L(e))}(e);break;case"closable":!function(e){e.get("closable")?(o(e.elements.root,ve.closable),function(e){x(e.elements.modal,"click",e.__internal.modalClickHandler)}(e)):(a(e.elements.root,ve.closable),function(e){w(e.elements.modal,"click",e.__internal.modalClickHandler)}(e))}(e);break;case"maximizable":!function(e){e.get("maximizable")?o(e.elements.root,ve.maximizable):a(e.elements.root,ve.maximizable)}(e);break;case"pinnable":!function(e){e.get("pinnable")?o(e.elements.root,ve.pinnable):a(e.elements.root,ve.pinnable)}(e);break;case"movable":!function(e){e.get("movable")?(o(e.elements.root,ve.movable),e.isOpen()&&re(e)):(Z(e),a(e.elements.root,ve.movable),e.isOpen()&&se(e))}(e);break;case"resizable":!function(e){e.get("resizable")?(o(e.elements.root,ve.resizable),e.isOpen()&&le(e)):(te(e),a(e.elements.root,ve.resizable),e.isOpen()&&ce(e))}(e);break;case"padding":i?a(e.elements.root,ve.noPadding):e.elements.root.className.indexOf(ve.noPadding)<0&&o(e.elements.root,ve.noPadding);break;case"overflow":i?a(e.elements.root,ve.noOverflow):e.elements.root.className.indexOf(ve.noOverflow)<0&&o(e.elements.root,ve.noOverflow);break;case"transition":!function(e,t,n){"string"==typeof n&&a(e.elements.root,ve.prefix+n),o(e.elements.root,ve.prefix+t),e.elements.root.offsetWidth}(e,i,n);break;case"transitionOff":!function(e){e.get("transitionOff")?o(e.elements.root,ve.noTransition):a(e.elements.root,ve.noTransition)}(e)}"function"==typeof e.hooks.onupdate&&e.hooks.onupdate.call(e,t,n,i)}function T(e,t,n,i,o){var a,r={op:void 0,items:[]};if(void 0===o&&"string"==typeof i)r.op="get",t.hasOwnProperty(i)?(r.found=!0,r.value=t[i]):(r.foun
2d=!1,r.value=void 0);else if(r.op="set","object"==typeof i){var s=i;for(var l in s)t.hasOwnProperty(l)?(t[l]!==s[l]&&(a=t[l],t[l]=s[l],n.call(e,l,a,s[l])),r.items.push({key:l,value:s[l],found:!0})):r.items.push({key:l,value:s[l],found:!1})}else{if("string"!=typeof i)throw new Error("args must be a string or object");t.hasOwnProperty(i)?(t[i]!==o&&(a=t[i],t[i]=o,n.call(e,i,a,o)),r.items.push({key:i,value:o,found:!0})):r.items.push({key:i,value:o,found:!1})}return r}function _(e){var t;N(e,(function(n){return t=!0!==e.get("invokeOnCloseOff")&&!0===n.invokeOnClose})),!t&&e.isOpen()&&e.close()}function E(e,t){switch(e.srcElement||e.target){case t.elements.commands.pin:t.isPinned()?S(t):A(t);break;case t.elements.commands.maximize:t.isMaximized()?D(t):O(t);break;case t.elements.commands.close:_(t)}return!1}function A(e){e.set("pinned",!0)}function S(e){e.set("pinned",!1)}function O(e){p("onmaximize",e),o(e.elements.root,ve.maximized),e.isOpen()&&m(),p("onmaximized",e)}function D(e){p("onrestore",e),a(e.elements.root,ve.maximized),e.isOpen()&&m(),p("onrestored",e)}function L(e){var t=l();e.elements.modal.style.marginTop=s()+"px",e.elements.modal.style.marginLeft=t+"px",e.elements.modal.style.marginRight=-t+"px"}function P(e){var t=parseInt(e.elements.modal.style.marginTop,10),n=parseInt(e.elements.modal.style.marginLeft,10);if(e.elements.modal.style.marginTop="",e.elements.modal.style.marginLeft="",e.elements.modal.style.marginRight="",e.isOpen()){var i=0,o=0;""!==e.elements.dialog.style.top&&(i=parseInt(e.elements.dialog.style.top,10)),e.elements.dialog.style.top=i+(t-s())+"px",""!==e.elements.dialog.style.left&&(o=parseInt(e.elements.dialog.style.left,10)),e.elements.dialog.style.left=o+(n-l())+"px"}}function j(e){e.get("modal")||e.get("pinned")?P(e):L(e)}function M(e,t){if(e.timeStamp-xe>200&&(xe=e.timeStamp)&&!be){var n=e.srcElement||e.target;!0===t.get("closableByDimmer")&&n===t.elements.modal&&_(t)}be=!1}function N(e,t){if(Date.now()-we>200&&(we=Date.now()))for(var n=0;n<e.__internal.buttons.length;n+=1){var i=e.__internal.buttons[n];if(!i.element.disabled&&t(i)){var o=f(n,i);"function"==typeof e.callback&&e.callback.apply(e,[o]),!1===o.cancel&&e.close();break}}}function I(e,t){var n=e.srcElement||e.target;N(t,(function(e){return e.element===n&&(ke=!0)}))}function H(e){if(!ke){var t=g[g.length-1],n=e.keyCode;return 0===t.__internal.buttons.length&&27===n&&!0===t.get("closable")?(_(t),!1):he.indexOf(n)>-1?(N(t,(function(e){return e.key===n})),!1):void 0}ke=!1}function z(e){var t=g[g.length-1],n=e.keyCode;if(37===n||39===n){for(var i=t.__internal.buttons,o=0;o<i.length;o+=1)if(document.activeElement===i[o].element)switch(n){case 37:return void i[(o||i.length)-1].element.focus();case 39:return void i[(o+1)%i.length].element.focus()}}else if(n<124&&n>111&&he.indexOf(n)>-1)return e.preventDefault(),e.stopPropagation(),N(t,(function(e){return e.key===n})),!1}function F(e,t){if(t)t.focus();else{var n=e.__internal.focus,i=n.element;switch(typeof n.element){case"number":e.__internal.buttons.length>n.element&&(i=!0===e.get("basic")?e.elements.reset[0]:e.__internal.buttons[n.element].element);break;case"string":i=e.elements.body.querySelector(n.element);break;case"function":i=n.element.call(e)}!0!==e.get("defaultFocusOff")&&(null!=i||0!==e.__internal.buttons.length)||(i=e.elements.reset[0]),i&&i.focus&&(i.focus(),n.select&&i.select&&i.select())}}function R(e,t){if(!t)for(var n=g.length-1;n>-1;n-=1)if(g[n].isModal()){t=g[n];break}if(t&&t.isModal()){var i,o=t.elements.reset[0],a=t.elements.reset[1],r=e.relatedTarget,s=t.elements.root.contains(r),l=e.srcElement||e.target;if(l===o&&!s||l===a&&r===o)return;l===a||l===document.body?i=o:l===o&&r===a?i=q(t):l===o&&s&&(i=q(t,!0)),F(t,i)}}function q(e,t){var n=[].slice.call(e.elements.dialog.querySelectorAll(v.tabbable));t&&n.reverse();for(var i=0;i<n.length;i+=1){var o=n[i];if(o.offsetParent||o.offsetWidth||o.offsetHeight||o.getClientRects().length)return o}}function W(e){var t=g[g.length-1];t&&e.shiftKey&&9===e.keyCode&&t.elements.reset[1].focus()}function B(e,t){clearTimeout(t.__internal.timerIn),F(t),ke=!1,p("onfocus",t),w(t.elements.dialog,k.type,t.__internal.transitionInHandler),a(t.elements.root,ve.animationIn)}function V(e,t){clearTimeout(t.__internal.timerOut),w(t.elements.dialog,k.type,t.__internal.transitionOutHandler),Z(t),te(t),t.isMaximized()&&!t.get("startMaximized")&&D(t),"function"==typeof t.__internal.destroy&&t.__internal.destroy.apply(t)}function U(e,t){var n=e[_e]-Te,i=e[Ee]-$e;Se&&(i-=document.body.scrollTop),t.style.left=n+"px",t.style.top=i+"px"}function Y(e,t){var n=e[_e]-Te,i=e[Ee]-$e;Se&&(i-=document.body.scrollTop),t.style.left=Math.min(Ae.maxLeft,Math.max(Ae.minLeft,n))+"px",t.style.top=Se?Math.min(Ae.maxTop,Math.max(Ae.minTop,i))+"px":Math.max(Ae.minTop,i)+"px"}function X(e,t){if(null===De&&!t.isMaximized()&&t.get("movable")){var n,i=0,a=0;if("touchstart"===e.type?(e.preventDefault(),n=e.targetTouches[0],_e="clientX",Ee="clientY"):0===e.button&&(n=e),n){var r=t.elements.dialog;if(o(r,ve.capture),r.style.left&&(i=parseInt(r.style.left,10)),r.style.top&&(a=parseInt(r.style.top,10)),Te=n[_e]-i,$e=n[Ee]-a,t.isModal()?$e+=t.elements.modal.scrollTop:t.isPinned()&&($e-=document.body.scrollTop),t.get("moveBounded")){var s=r,l=-i,c=-a;do{l+=s.offsetLeft,c+=s.offsetTop}while(s=s.offsetParent);Ae={maxLeft:l,minLeft:-l,maxTop:document.documentElement.clientHeight-r.clientHeight-c,minTop:-c},Oe=Y}else Ae=null,Oe=U;return p("onmove",t),Se=!t.isModal()&&t.isPinned(),Ce=t,Oe(n,r),o(document.body,ve.noSelection),!1}}}function Q(e){var t;Ce&&("touchmove"===e.type?(e.preventDefault(),t=e.targetTouches[0]):0===e.button&&(t=e),t&&Oe(t,Ce.elements.dialog))}function G(){if(Ce){var e=Ce;Ce=Ae=null,a(document.body,ve.noSelection),a(e.elements.dialog,ve.capture),p("onmoved",e)}}function Z(e){Ce=null;var t=e.elements.dialog;t.style.left=t.style.top=""}function K(e,t){var n;if(!t.isMaximized()&&("touchstart"===e.type?(e.preventDefault(),n=e.targetTouches[0]):0===e.button&&(n=e),n)){p("onresize",t),De=t,Me=t.elements.resizeHandle.offsetHeight/2;var i=t.elements.dialog;return o(i,ve.capture),Le=parseInt(i.style.left,10),i.style.height=i.offsetHeight+"px",i.style.minHeight=t.elements.header.offsetHeight+t.elements.footer.offsetHeight+"px",i.style.width=(Pe=i.offsetWidth)+"px","none"!==i.style.maxWidth&&(i.style.minWidth=(je=i.offsetWidth)+"px"),i.style.maxWidth="none",o(document.body,ve.noSelection),!1}}function J(e){var t;De&&("touchmove"===e.type?(e.preventDefault(),t=e.targetTouches[0]):0===e.button&&(t=e),t&&function(e,t,n){var i,o,a=t,s=0,l=0;do{s+=a.offsetLeft,l+=a.offsetTop}while(a=a.offsetParent);!0===n?(i=e.pageX,o=e.pageY):(i=e.clientX,o=e.clientY);var c=r();if(c&&(i=document.body.offsetWidth-i,isNaN(Le)||(s=document.body.offsetWidth-s-t.offsetWidth)),t.style.height=o-l+Me+"px",t.style.width=i-s+Me+"px",!isNaN(Le)){var u=.5*Math.abs(t.offsetWidth-Pe);c&&(u*=-1),t.offsetWidth>Pe?t.style.left=Le+u+"px":t.offsetWidth>=je&&(t.style.left=Le-u+"px")}}(t,De.elements.dialog,!De.get("modal")&&!De.get("pinned")))}function ee(){if(De){var e=De;De=null,a(document.body,ve.noSelection),a(e.elements.dialog,ve.capture),be=!0,p("onresized",e)}}function te(e){De=null;var t=e.elements.dialog;
vendor: 12,922 bytes, line 2
2"none"===t.style.maxWidth&&(t.style.maxWidth=t.style.minWidth=t.style.width=t.style.height=t.style.minHeight=t.style.left="",Le=Number.Nan,Pe=je=Me=0)}function ne(){for(var e=0;e<g.length;e+=1){var t=g[e];t.get("autoReset")&&(Z(t),te(t))}}function ie(e){1===g.length&&(x(i,"resize",ne),x(document.body,"keyup",H),x(document.body,"keydown",z),x(document.body,"focus",R),x(document.documentElement,"mousemove",Q),x(document.documentElement,"touchmove",Q,!1,!1),x(document.documentElement,"mouseup",G),x(document.documentElement,"touchend",G),x(document.documentElement,"mousemove",J),x(document.documentElement,"touchmove",J,!1,!1),x(document.documentElement,"mouseup",ee),x(document.documentElement,"touchend",ee)),x(e.elements.commands.container,"click",e.__internal.commandsClickHandler),x(e.elements.footer,"click",e.__internal.buttonsClickHandler),x(e.elements.reset[0],"focusin",e.__internal.resetHandler),x(e.elements.reset[0],"keydown",W),x(e.elements.reset[1],"focusin",e.__internal.resetHandler),ke=!0,x(e.elements.dialog,k.type,e.__internal.transitionInHandler),e.get("modal")||oe(e),e.get("resizable")&&le(e),e.get("movable")&&re(e)}function oe(e){x(e.elements.dialog,"focus",e.__internal.bringToFrontHandler,!0)}function ae(e){w(e.elements.dialog,"focus",e.__internal.bringToFrontHandler,!0)}function re(e){x(e.elements.header,"mousedown",e.__internal.beginMoveHandler),x(e.elements.header,"touchstart",e.__internal.beginMoveHandler,!1,!1)}function se(e){w(e.elements.header,"mousedown",e.__internal.beginMoveHandler),w(e.elements.header,"touchstart",e.__internal.beginMoveHandler,!1,!1)}function le(e){x(e.elements.resizeHandle,"mousedown",e.__internal.beginResizeHandler),x(e.elements.resizeHandle,"touchstart",e.__internal.beginResizeHandler,!1,!1)}function ce(e){w(e.elements.resizeHandle,"mousedown",e.__internal.beginResizeHandler),w(e.elements.resizeHandle,"touchstart",e.__internal.beginResizeHandler,!1,!1)}var ue,de,he=[],fe=!1,pe=i.navigator.userAgent.indexOf("Safari")>-1&&i.navigator.userAgent.indexOf("Chrome")<0,me={dimmer:'<div class="ajs-dimmer"></div>',modal:'<div class="ajs-modal" tabindex="0"></div>',dialog:'<div class="ajs-dialog" tabindex="0"></div>',reset:'<button class="ajs-reset"></button>',commands:'<div class="ajs-commands"><button class="ajs-pin"></button><button class="ajs-maximize"></button><button class="ajs-close"></button></div>',header:'<div class="ajs-header"></div>',body:'<div class="ajs-body"></div>',content:'<div class="ajs-content"></div>',footer:'<div class="ajs-footer"></div>',buttons:{primary:'<div class="ajs-primary ajs-buttons"></div>',auxiliary:'<div class="ajs-auxiliary ajs-buttons"></div>'},button:'<button class="ajs-button"></button>',resizeHandle:'<div class="ajs-handle"></div>'},ve={animationIn:"ajs-in",animationOut:"ajs-out",base:"alertify",basic:"ajs-basic",capture:"ajs-capture",closable:"ajs-closable",fixed:"ajs-fixed",frameless:"ajs-frameless",hidden:"ajs-hidden",maximize:"ajs-maximize",maximized:"ajs-maximized",maximizable:"ajs-maximizable",modeless:"ajs-modeless",movable:"ajs-movable",noSelection:"ajs-no-selection",noOverflow:"ajs-no-overflow",noPadding:"ajs-no-padding",pin:"ajs-pin",pinnable:"ajs-pinnable",prefix:"ajs-",resizable:"ajs-resizable",restore:"ajs-restore",shake:"ajs-shake",unpinned:"ajs-unpinned",noTransition:"ajs-no-transition"},ge="",ye=0,be=!1,xe=0,we=0,ke=!1,Ce=null,Te=0,$e=0,_e="pageX",Ee="pageY",Ae=null,Se=!1,Oe=null,De=null,Le=Number.Nan,Pe=0,je=0,Me=0;return{__init:e,isOpen:function(){return this.__internal.isOpen},isModal:function(){return this.elements.root.className.indexOf(ve.modeless)<0},isMaximized:function(){return this.elements.root.className.indexOf(ve.maximized)>-1},isPinned:function(){return this.elements.root.className.indexOf(ve.unpinned)<0},maximize:function(){return this.isMaximized()||O(this),this},restore:function(){return this.isMaximized()&&D(this),this},pin:function(){return this.isPinned()||A(this),this},unpin:function(){return this.isPinned()&&S(this),this},bringToFront:function(){return b(0,this),this},moveTo:function(e,t){if(!isNaN(e)&&!isNaN(t)){p("onmove",this);var n=this.elements.dialog,i=n,o=0,a=0;n.style.left&&(o-=parseInt(n.style.left,10)),n.style.top&&(a-=parseInt(n.style.top,10));do{o+=i.offsetLeft,a+=i.offsetTop}while(i=i.offsetParent);var s=e-o,l=t-a;r()&&(s*=-1),n.style.left=s+"px",n.style.top=l+"px",p("onmoved",this)}return this},resizeTo:function(e,t){var n=parseFloat(e),i=parseFloat(t),o=/(\d*\.\d+|\d+)%/;if(!isNaN(n)&&!isNaN(i)&&!0===this.get("resizable")){p("onresize",this),(""+e).match(o)&&(n=n/100*document.documentElement.clientWidth),(""+t).match(o)&&(i=i/100*document.documentElement.clientHeight);var a=this.elements.dialog;"none"!==a.style.maxWidth&&(a.style.minWidth=(je=a.offsetWidth)+"px"),a.style.maxWidth="none",a.style.minHeight=this.elements.header.offsetHeight+this.elements.footer.offsetHeight+"px",a.style.width=n+"px",a.style.height=i+"px",p("onresized",this)}return this},setting:function(e,t){var n=this,i=T(this,this.__internal.options,(function(e,t,i){C(n,e,t,i)}),e,t);if("get"===i.op)return i.found?i.value:void 0!==this.settings?T(this,this.settings,this.settingUpdated||function(){},e,t).value:void 0;if("set"===i.op){if(i.items.length>0)for(var o=this.settingUpdated||function(){},a=0;a<i.items.length;a+=1){var r=i.items[a];r.found||void 0===this.settings||T(this,this.settings,o,r.key,r.value)}return this}},set:function(e,t){return this.setting(e,t),this},get:function(e){return this.setting(e)},setHeader:function(e){return"string"==typeof e?(c(this.elements.header),this.elements.header.innerHTML=e):e instanceof i.HTMLElement&&this.elements.header.firstChild!==e&&(c(this.elements.header),this.elements.header.appendChild(e)),this},setContent:function(e){return"string"==typeof e?(c(this.elements.content),this.elements.content.innerHTML=e):e instanceof i.HTMLElement&&this.elements.content.firstChild!==e&&(c(this.elements.content),this.elements.content.appendChild(e)),this},showModal:function(e){return this.show(!0,e)},show:function(i,r){if(e(this),this.__internal.isOpen){Z(this),te(this),o(this.elements.dialog,ve.shake);var s=this;setTimeout((function(){a(s.elements.dialog,ve.shake)}),200)}else{if(this.__internal.isOpen=!0,g.push(this),$.defaults.maintainFocus&&(this.__internal.activeElement=document.activeElement),document.body.hasAttribute("tabindex")||document.body.setAttribute("tabindex",fe="0"),"function"==typeof this.prepare&&this.prepare(),ie(this),void 0!==i&&this.set("modal",i),t(),m(),"string"==typeof r&&""!==r&&(this.__internal.className=r,o(this.elements.root,r)),this.get("startMaximized")?this.maximize():this.isMaximized()&&D(this),j(this),this.elements.root.removeAttribute("style"),a(this.elements.root,ve.animationOut),o(this.elements.root,ve.animationIn),clearTimeout(this.__internal.timerIn),this.__internal.timerIn=setTimeout(this.__internal.transitionInHandler,k.supported?1e3:100),pe){var l=this.elements.root;l.style.display="none",setTimeout((function(){l.style.display="block"}),0)}this.elements.root.offsetWidth,a(this.elements.root,ve.hidden),n(),"function"==typeof this.hooks.onshow&&this.hooks.onshow.call(this),p("onshow",this)}return this},close:function(){return this.__internal.isOpen&&!1!==p("onclosing",this)&&(function(e){1===g.length&&(w(i,"resize",ne),w(document.body,"keyup",H),w(document.body,"keydown",z),w(document.body,"focus",R),w(document.documentElement,"mousemove",Q),w(document.documentElement,"mouseup",G),w(document.documentElement,"mousemove",J),w(document.documentElement,"mouseup",ee)),w(e.elements.commands.container,"click",e.__internal.commandsClickHandler),w(e.elements.footer,"click",e.__internal.buttonsClickHandler),w(e.elements.reset[0],"focusin",e.__internal.resetHandler),w(e.elements.reset[0],"keydown",W),w(e.elements.reset[1],"focusin",e.__internal.resetHandler),x(e.elements.dialog,k.type,e.__internal.transitionOutHandler),e.get("modal")||ae(e),e.get("movable")&&se(e),e.get("resizable")&&ce(e)}(this),a(this.elements.root,ve.animationIn),o(this.elements.root,ve.animationOut),clearTimeout(this.__internal.timerOut),this.__internal.timerOut=setTimeout(this.__internal.transitionOutHandler,k.supported?1e3:100),o(this.elements.root,ve.hidden),this.elements.modal.offsetWidth,$.defaults.maintainFocus&&this.__internal.activeElement&&(this.__internal.activeElement.focus(),this.__internal.activeElement=null),void 0!==this.__internal.className&&""!==this.__internal.className&&a(this.elements.root,this.__internal.className),"function"==typeof this.hooks.onclose&&this.hooks.onclose.call(this),p("onclose",this),g.splice(g.indexOf(this),1),this.__internal.isOpen=!1,m()),g.length||"0"!==fe||document.body.removeAttribute("tabindex"),this},closeOthers:function(){return $.closeAll(this),this},destroy:function(){return this.__internal&&(this.__internal.isOpen?(this.__internal.destroy=function(){d(this,e)},this.close()):this.__internal.destroy||d(this,e)),this}}}(),T=function(){function e(e){e.__internal||(e.__internal={position:$.defaults.notifier.position,delay:$.defaults.notifier.delay},l=document.createElement("DIV"),("transitionOff"in v.notifier?v.notifier.transitionOff:v.transitionOff)&&(f=d.base+" ajs-no-transition"),r(e)),l.parentNode!==document.body&&document.body.appendChild(l)}function t(e){e.__internal.pushed=!0,u.push(e)}function n(e){u.splice(u.indexOf(e),1),e.__internal.pushed=!1}function r(e){switch(l.className=f,e.__internal.position){case"top-right":o(l,d.top+" "+d.right);break;case"top-left":o(l,d.top+" "+d.left);break;case"top-center":o(l,d.top+" "+d.center);break;case"bottom-left":o(l,d.bottom+" "+d.left);break;case"bottom-center":o(l,d.bottom+" "+d.center);break;default:o(l,d.bottom+" "+d.right)}}function s(e,r){function s(e,t){t.__internal.closeButton&&"true"!==e.target.getAttribute("data-close")||t.dismiss(!0)}function u(e,t){w(t.element,k.type,u),l.removeChild(t.element)}function f(e){clearTimeout(e.__internal.timer),clearTimeout(e.__internal.transitionTimeout)}return function(e){return e.__internal||(e.__internal={pushed:!1,delay:void 0,timer:void 0,clickHandler:void 0,transitionEndHandler:void 0,transitionTimeout:void 0},e.__internal.clickHandler=h(e,s),e.__internal.transitionEndHandler=h(e,u)),e}({element:e,push:function(e,n){if(!this.__internal.pushed){var i,a;switch(t(this),f(this),arguments.length){case 0:a=this.__internal.delay;break;case 1:"number"==typeof e?a=e:(i=e,a=this.__internal.delay);break;case 2:i=e,a=n}return this.__internal.closeButton=$.defaults.notifier.closeButton,void 0!==i&&this.setContent(i),T.__internal.position.indexOf("top")<0?l.appendChild(this.element):l.insertBefore(this.element,l.firstChild),this.element.offsetWidth,o(this.element,d.visible),x(this.element,"click",this.__internal.clickHandler),this.delay(a)}return this},ondismiss:function(){},callback:r,dismiss:function(e){return this.__internal.pushed&&(f(this),"function"==typeof this.ondismiss&&!1===this.ondismiss.call(this)||(w(this.element,"click",this.__internal.clickHandler),void 0!==this.element&&this.element.parentNode===l&&(this.__internal.transitionTimeout=setTimeout(this.__internal.transitionEndHandler,k.supported?1e3:100),a(this.element,d.visible),"function"==typeof this.callback&&this.callback.call(this,e)),n(this))),this},delay:function(e){if(f(this),this.__internal.delay=void 0===e||isNaN(+e)?T.__internal.delay:+e,this.__internal.delay>0){var t=this;this.__internal.timer=setTimeout((function(){t.dismiss()}),1e3*this.__internal.delay)}return this},setContent:function(e){if("string"==typeof e?(c(this.element),this.element.innerHTML=e):e instanceof i.HTMLElement&&this.element.firstChild!==e&&(c(this.element),this.element.appendChild(e)),this.__internal.closeButton){var t=document.createElement("span");o(t,d.close),t.setAttribute("data-close",!0),this.element.appendChild(t)}return this},dismissOthers:function(){return T.dismissAll(this),this}})}var l,u=[],d=v.notifier.classes,f=d.base;return{setting:function(t,n){if(e(this),void 0===n)return this.__internal[t];switch(t){case"position":this.__internal.position=n,r(this);break;case"delay":this.__internal.delay=n}return this},set:function(e,t){return this.setting(e,t),this},get:function(e){return this.setting(e)},create:function(t,n){e(this);var i=document.createElement("div");return i.className=d.message+("string"==typeof t&&""!==t?" "+d.prefix+t:""),s(i,n)},dismissAll:function(e){for(var t=u.slice(0),n=0;n<t.length;n+=1){var i=t[n];void 0!==e&&e===i||i.dismiss()}}}}(),$=new function(){function e(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function t(e){var t=i[e].dialog;return t&&"function"==typeof t.__init&&t.__init(t),t}function n(t,n,o,a){var r={dialog:null,factory:n};return void 0!==a&&(r.factory=function(){return e(new i[a].factory,new n)}),o||(r.dialog=e(new r.factory,C)),i[t]=r}var i={};return{defaults:v,dialog:function(i,o,a,r){if("function"!=typeof o)return t(i);
2if(this.hasOwnProperty(i))throw new Error("alertify.dialog: name already exists");var s=n(i,o,a,r);this[i]=a?function(){if(0===arguments.length)return s.dialog;var t=e(new s.factory,C);return t&&"function"==typeof t.__init&&t.__init(t),t.main.apply(t,arguments),t.show.apply(t)}:function(){if(s.dialog&&"function"==typeof s.dialog.__init&&s.dialog.__init(s.dialog),0===arguments.length)return s.dialog;var e=s.dialog;return e.main.apply(s.dialog,arguments),e.show.apply(s.dialog)}},closeAll:function(e){for(var t=g.slice(0),n=0;n<t.length;n+=1){var i=t[n];void 0!==e&&e===i||i.close()}},setting:function(e,n,i){if("notifier"===e)return T.setting(n,i);var o=t(e);return o?o.setting(n,i):void 0},set:function(e,t,n){return this.setting(e,t,n)},get:function(e,t){return this.setting(e,t)},notify:function(e,t,n,i){return T.create(t,i).push(e,n)},message:function(e,t,n){return T.create(null,n).push(e,t)},success:function(e,t,n){return T.create("success",n).push(e,t)},error:function(e,t,n){return T.create("error",n).push(e,t)},warning:function(e,t,n){return T.create("warning",n).push(e,t)},dismissAll:function(){T.dismissAll()}}};$.dialog("alert",(function(){return{main:function(e,t,n){var i,o,a;switch(arguments.length){case 1:o=e;break;case 2:"function"==typeof t?(o=e,a=t):(i=e,o=t);break;case 3:i=e,o=t,a=n}return this.set("title",i),this.set("message",o),this.set("onok",a),this},setup:function(){return{buttons:[{text:$.defaults.glossary.ok,key:27,invokeOnClose:!0,className:$.defaults.theme.ok}],focus:{element:0,select:!1},options:{maximizable:!1,resizable:!1}}},build:function(){},prepare:function(){},setMessage:function(e){this.setContent(e)},settings:{message:void 0,onok:void 0,label:void 0},settingUpdated:function(e,t,n){switch(e){case"message":this.setMessage(n);break;case"label":this.__internal.buttons[0].element&&(this.__internal.buttons[0].element.innerHTML=n)}},callback:function(e){if("function"==typeof this.get("onok")){var t=this.get("onok").call(this,e);void 0!==t&&(e.cancel=!t)}}}})),$.dialog("confirm",(function(){function e(e){null!==n.timer&&(clearInterval(n.timer),n.timer=null,e.__internal.buttons[n.index].element.innerHTML=n.text)}function t(t,i,o){e(t),n.duration=o,n.index=i,n.text=t.__internal.buttons[i].element.innerHTML,n.timer=setInterval(h(t,n.task),1e3),n.task(null,t)}var n={timer:null,index:null,text:null,duration:null,task:function(t,i){if(i.isOpen()){if(i.__internal.buttons[n.index].element.innerHTML=n.text+" (‏"+n.duration+"‏) ",n.duration-=1,-1===n.duration){e(i);var o=i.__internal.buttons[n.index],a=f(n.index,o);"function"==typeof i.callback&&i.callback.apply(i,[a]),!1!==a.close&&i.close()}}else e(i)}};return{main:function(e,t,n,i){var o,a,r,s;switch(arguments.length){case 1:a=e;break;case 2:a=e,r=t;break;case 3:a=e,r=t,s=n;break;case 4:o=e,a=t,r=n,s=i}return this.set("title",o),this.set("message",a),this.set("onok",r),this.set("oncancel",s),this},setup:function(){return{buttons:[{text:$.defaults.glossary.ok,key:13,className:$.defaults.theme.ok},{text:$.defaults.glossary.cancel,key:27,invokeOnClose:!0,className:$.defaults.theme.cancel}],focus:{element:0,select:!1},options:{maximizable:!1,resizable:!1}}},build:function(){},prepare:function(){},setMessage:function(e){this.setContent(e)},settings:{message:null,labels:null,onok:null,oncancel:null,defaultFocus:null,reverseButtons:null},settingUpdated:function(e,t,n){switch(e){case"message":this.setMessage(n);break;case"labels":"ok"in n&&this.__internal.buttons[0].element&&(this.__internal.buttons[0].text=n.ok,this.__internal.buttons[0].element.innerHTML=n.ok),"cancel"in n&&this.__internal.buttons[1].element&&(this.__internal.buttons[1].text=n.cancel,this.__internal.buttons[1].element.innerHTML=n.cancel);break;case"reverseButtons":!0===n?this.elements.buttons.primary.appendChild(this.__internal.buttons[0].element):this.elements.buttons.primary.appendChild(this.__internal.buttons[1].element);break;case"defaultFocus":this.__internal.focus.element="ok"===n?0:1}},callback:function(t){var n;switch(e(this),t.index){case 0:"function"==typeof this.get("onok")&&void 0!==(n=this.get("onok").call(this,t))&&(t.cancel=!n);break;case 1:"function"==typeof this.get("oncancel")&&void 0!==(n=this.get("oncancel").call(this,t))&&(t.cancel=!n)}},autoOk:function(e){return t(this,0,e),this},autoCancel:function(e){return t(this,1,e),this}}})),$.dialog("prompt",(function(){var e=document.createElement("INPUT"),t=document.createElement("P");return{main:function(e,t,n,i,o){var a,r,s,l,c;switch(arguments.length){case 1:r=e;break;case 2:r=e,s=t;break;case 3:r=e,s=t,l=n;break;case 4:r=e,s=t,l=n,c=i;break;case 5:a=e,r=t,s=n,l=i,c=o}return this.set("title",a),this.set("message",r),this.set("value",s),this.set("onok",l),this.set("oncancel",c),this},setup:function(){return{buttons:[{text:$.defaults.glossary.ok,key:13,className:$.defaults.theme.ok}
2,{text:$.defaults.glossary.cancel,key:27,invokeOnClose:!0,className:$.defaults.theme.cancel}],focus:{element:e,select:!0},options:{maximizable:!1,resizable:!1}}},build:function(){e.className=$.defaults.theme.input,e.setAttribute("type","text"),e.value=this.get("value"),this.elements.content.appendChild(t),this.elements.content.appendChild(e)},prepare:function(){},setMessage:function(e){"string"==typeof e?(c(t),t.innerHTML=e):e instanceof i.HTMLElement&&t.firstChild!==e&&(c(t),t.appendChild(e))},settings:{message:void 0,labels:void 0,onok:void 0,oncancel:void 0,value:"",type:"text",reverseButtons:void 0},settingUpdated:function(t,n,i){switch(t){case"message":this.setMessage(i);break;case"value":e.value=i;break;case"type":switch(i){case"text":case"color":case"date":case"datetime-local":case"email":case"month":case"number":case"password":case"search":case"tel":case"time":case"week":e.type=i;break;default:e.type="text"}break;case"labels":i.ok&&this.__internal.buttons[0].element&&(this.__internal.buttons[0].element.innerHTML=i.ok),i.cancel&&this.__internal.buttons[1].element&&(this.__internal.buttons[1].element.innerHTML=i.cancel);break;case"reverseButtons":!0===i?this.elements.buttons.primary.appendChild(this.__internal.buttons[0].element):this.elements.buttons.primary.appendChild(this.__internal.buttons[1].element)}},callback:function(t){var n;switch(t.index){case 0:this.settings.value=e.value,"function"==typeof this.get("onok")&&void 0!==(n=this.get("onok").call(this,t,this.settings.value))&&(t.cancel=!n);break;case 1:"function"==typeof this.get("oncancel")&&void 0!==(n=this.get("oncancel").call(this,t))&&(t.cancel=!n),t.cancel||(e.value=this.settings.value)}}}})),"object"==typeof e.exports?e.exports=$:void 0===(n=function(){return $}.apply(t,[]))||(e.exports=n)}("undefined"!=typeof window?window:this)},7649:(e,t,n)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},9513:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,o){"use strict";var a=[],r=Object.getPrototypeOf,s=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,u=a.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,o,a=(n=n||b).createElement("script");if(a.text=e,t)for(i in x)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C="3.7.0",T=/HTML$/i,$=function(e,t){return new $.fn.init(e,t)};function _(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!g(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}$.fn=$.prototype={jquery:C,constructor:$,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=$.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return $.each(this,e)},map:function(e){return this.pushStack($.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack($.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack($.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()}
vendor: 13,081 bytes, line 2
2,push:c,sort:a.sort,splice:a.splice},$.extend=$.fn.extend=function(){var e,t,n,i,o,a,r=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[s]||{},s++),"object"==typeof r||g(r)||(r={}),s===l&&(r=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&r!==i&&(c&&i&&($.isPlainObject(i)||(o=Array.isArray(i)))?(n=r[t],a=o&&!Array.isArray(n)?[]:o||$.isPlainObject(n)?n:{},o=!1,r[t]=$.extend(c,a,i)):void 0!==i&&(r[t]=i));return r},$.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=r(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(_(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o)return e.textContent;if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=$.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(_(Object(e))?$.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!T.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,a=e.length,r=!n;o<a;o++)!t(e[o],o)!==r&&i.push(e[o]);return i},map:function(e,t,n){var i,o,a=0,r=[];if(_(e))for(i=e.length;a<i;a++)null!=(o=t(e[a],a,n))&&r.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&r.push(o);return l(r)},guid:1,support:v}),"function"==typeof Symbol&&($.fn[Symbol.iterator]=a[Symbol.iterator]),$.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var A=a.pop,S=a.sort,O=a.splice,D="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");$.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var P=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}$.escapeSelector=function(e){return(e+"").replace(P,j)};var M=b,N=c;!function(){var e,t,n,o,r,l,c,d,h,p,m=N,g=$.expando,y=0,b=0,x=ee(),w=ee(),k=ee(),C=ee(),T=function(e,t){return e===t&&(r=!0),0},_="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+D+"*("+P+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+D+"*\\]",I=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",H=new RegExp(D+"+","g"),z=new RegExp("^"+D+"*,"+D+"*"),F=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),R=new RegExp(D+"|>"),q=new RegExp(I),W=new RegExp("^"+P+"$"),B={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+_+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),G=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){le()},K=he((function(e){return!0===e.disabled&&E(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(a=s.call(M.childNodes),M.childNodes),a[M.childNodes.length].nodeType}catch(e){m={apply:function(e,t){N.apply(e,s.call(t))},call:function(e){N.apply(e,s.call(arguments,1))}}}function J(e,t,n,i){var o,a,r,s,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=Y.exec(e)))if(o=c[1]){if(9===y){if(!(r=t.getElementById(o)))return n;if(r.id===o)return m.call(n,r),n}else if(p&&(r=p.getElementById(o))&&J.contains(t,r)&&r.id===o)return m.call(n,r),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(o)),n}if(!(C[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(R.test(e)||F.test(e))){for((p=X.test(e)&&se(t.parentNode)||t)==t&&v.scope||((s=t.getAttribute("id"))?s=$.escapeSelector(s):t.setAttribute("id",s=g)),a=(u=ue(e)).length;a--;)u[a]=(s?"#"+s:":scope")+" "+de(u[a]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(t){C(e,!0)}finally{s===g&&t.removeAttribute("id")}}}return ye(e.replace(L,"$1"),t,n,i)}function ee(){var e=[];return function n(i,o){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=o}}function te(e){return e[g]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return E(t,"input")&&t.type===e}}function oe(e){return function(t){return(E(t,"input")||E(t,"button"))&&t.type===e}}function ae(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function re(e){return te((function(t){return t=+t,te((function(n,i){for(var o,a=e([],n.length,t),r=a.length;r--;)n[o=a[r]]&&(n[o]=!(i[o]=n[o]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:M;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!$.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),v.getById=ne((function(e){return c.appendChild(e).id=$.expando,!l.getElementsByName||!l.getElementsByName($.expando).length})),v.disconnectedMatch=ne((function(e){return p.call(e,"*")})),v.scope=ne((function(){return l.querySelectorAll(":scope")})),v.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),v.getById?(t.filter.ID=function(e){var t=e.replace(Q,G);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Q,G);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,o,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(o=t.getElementsByName(e),i=0;a=o[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+_+")"),e.querySelectorAll("[id~="+g+"-]").length||h.push("~="),e.querySelectorAll("a#"+g+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),v.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),T=function(e,t){if(e===t)return r=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==M&&J.contains(M,e)?-1:t===l||t.ownerDocument==M&&J.contains(M,t)?1:o?u.call(o,e)-u.call(o,t):0:4&n?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!C[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),$.contains(e,t)},J.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],o=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==o?o:e.getAttribute(n)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},$.uniqueSort=function(e){var t,n=[],i=0,a=0;if(r=!v.sortStable,o=!v.sortStable&&s.call(e,0),S.call(e,T),r){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)O.call(e,n[i],1)}return o=null,e},$.fn.uniqueSort=function(){return this.pushStack($.uniqueSort(s.apply(this)))},t=$.expr={cacheLength:50,createPseudo:te,match:B,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,G),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,G),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return B.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,G).toLowerCase();return"*"===e?function(){return!0}:function(e){return E(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var o=J.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=a!==r?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(m){if(a){for(;p;){for(d=t;d=d[p];)if(s?E(d,v):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&b){for(x=(h=(c=(u=m[g]||(m[g]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(x=h=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){u[e]=[y,h,x];break}}else if(b&&(x=h=(c=(u=t[g]||(t[g]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[p]||(x=h=0)||f.pop())&&(!(s?E(d,v):1===d.nodeType)||!++x||(b&&((u=d[g]||(d[g]={}))[e]=[y,x]),d!==t)););return(x-=o)===i||x%i==0&&x/i>=0}}},PSEUDO:function(e,n){var i,o=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return o[g]?o(n):o.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,a=o(e,n),r=a.length;r--;)e[i=u.call(e,a[r])]=!(t[i]=a[r])})):function(e){return o(e,0,i)}):o}},pseudos:{not:te((function(e){var t=[],n=[],i=ge(e.replace(L,"$1"));return i[g]?te((function(e,t,n,o){for(var a,r=i(e,null,o,[]),s=e.length;s--;)(a=r[s])&&(e[s]=!(t[s]=a))})):function(e,o,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return J(e,t).length>0}})),contains:te((function(e){return e=e.replace(Q,G),function(t){return(t.textContent||$.text(t)).indexOf(e)>-1}})),lang:te((function(e){return W.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(Q,G).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}
vendor: 65,669 bytes, line 2
2)),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ae(!1),disabled:ae(!0),checked:function(e){return E(e,"input")&&!!e.checked||E(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return U.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return E(e,"input")&&"button"===e.type||E(e,"button")},text:function(e){var t;return E(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:re((function(){return[0]})),last:re((function(e,t){return[t-1]})),eq:re((function(e,t,n){return[n<0?n+t:n]})),even:re((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:re((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:re((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:re((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=oe(e);function ce(){}function ue(e,n){var i,o,a,r,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(r in i&&!(o=z.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(a=[])),i=!1,(o=F.exec(s))&&(i=o.shift(),a.push({value:i,type:o[0].replace(L," ")}),s=s.slice(i.length)),t.filter)!(o=B[r].exec(s))||c[r]&&!(o=c[r](o))||(i=o.shift(),a.push({value:i,type:r,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?J.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,o=t.next,a=o||i,r=n&&"parentNode"===a,s=b++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||r)if(u=t[g]||(t[g]={}),o&&E(t,o))t=t[i]||t;else{if((c=u[a])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[a]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,o){for(var a,r=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,i,o)||(r.push(a),c&&t.push(s)));return r}function me(e,t,n,i,o,a){return i&&!i[g]&&(i=me(i)),o&&!o[g]&&(o=me(o,a)),te((function(a,r,s,l){var c,d,h,f,p=[],v=[],g=r.length,y=a||function(e,t,n){for(var i=0,o=t.length;i<o;i++)J(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!a&&t?y:pe(y,p,e,s,l);if(n?n(b,f=o||(a?e:g||i)?[]:r,s,l):f=b,i)for(c=pe(f,v),i(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[v[d]]=!(b[v[d]]=h));if(a){if(o||e){if(o){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);o(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=o?u.call(a,h):p[d])>-1&&(a[c]=!(r[c]=h))}}else f=pe(f===r?f.splice(g,f.length):f),o?o(null,r,f,l):m.apply(r,f)}))}function ve(e){for(var i,o,a,r=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=he((function(e){return e===i}),l,!0),h=he((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,o){var a=!s&&(o||t!=n)||((i=t).nodeType?d(e,t,o):h(e,t,o));return i=null,a}];c<r;c++)if(o=t.relative[e[c].type])f=[he(fe(f),o)];else{if((o=t.filter[e[c].type].apply(null,e[c].matches))[g]){for(a=++c;a<r&&!t.relative[e[a].type];a++);return me(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(L,"$1"),o,c<a&&ve(e.slice(c,a)),a<r&&ve(e=e.slice(a)),a<r&&de(e))}f.push(o)}return fe(f)}function ge(e,i){var o,a=[],r=[],s=k[e+" "];if(!s){for(i||(i=ue(e)),o=i.length;o--;)(s=ve(i[o]))[g]?a.push(s):r.push(s);s=k(e,function(e,i){var o=i.length>0,a=e.length>0,r=function(r,s,c,u,h){var f,p,v,g=0,b="0",x=r&&[],w=[],k=n,C=r||a&&t.find.TAG("*",h),T=y+=null==k?1:Math.random()||.1,_=C.length;for(h&&(n=s==l||s||h);b!==_&&null!=(f=C[b]);b++){if(a&&f){for(p=0,s||f.ownerDocument==l||(le(f),c=!d);v=e[p++];)if(v(f,s||l,c)){m.call(u,f);break}h&&(y=T)}o&&((f=!v&&f)&&g--,r&&x.push(f))}if(g+=b,o&&b!==g){for(p=0;v=i[p++];)v(x,w,s,c);if(r){if(g>0)for(;b--;)x[b]||w[b]||(w[b]=A.call(u));w=pe(w)}m.apply(u,w),h&&!r&&w.length>0&&g+i.length>1&&$.uniqueSort(u)}return h&&(y=T,n=k),x};return o?te(r):r}(r,a)),s.selector=e}return s}function ye(e,n,i,o){var a,r,s,l,c,u="function"==typeof e&&e,h=!o&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((r=h[0]=h[0].slice(0)).length>2&&"ID"===(s=r[0]).type&&9===n.nodeType&&d&&t.relative[r[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Q,G),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(r.shift().value.length)}for(a=B.needsContext.test(e)?0:r.length;a--&&(s=r[a],!t.relative[l=s.type]);)if((c=t.find[l])&&(o=c(s.matches[0].replace(Q,G),X.test(r[0].type)&&se(n.parentNode)||n))){if(r.splice(a,1),!(e=o.length&&de(r)))return m.apply(i,o),i;break}}return(u||ge(e,h))(o,n,!d,i,!n||X.test(e)&&se(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,v.sortStable=g.split("").sort(T).join("")===g,le(),v.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),$.find=J,$.expr[":"]=$.expr.pseudos,$.unique=$.uniqueSort,J.compile=ge,J.select=ye,J.setDocument=le,J.escape=$.escapeSelector,J.getText=$.text,J.isXML=$.isXMLDoc,J.selectors=$.expr,J.support=$.support,J.uniqueSort=$.uniqueSort}();var I=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&$(e).is(n))break;i.push(e)}return i},H=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},z=$.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,n){return g(t)?$.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?$.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?$.grep(e,(function(e){return u.call(t,e)>-1!==n})):$.filter(t,e,n)}$.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?$.find.matchesSelector(i,e)?[i]:[]:$.find.matches(e,$.grep(t,(function(e){return 1===e.nodeType})))},$.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack($(e).filter((function(){for(t=0;t<i;t++)if($.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)$.find(e,o[t],n);return i>1?$.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&z.test(e)?$(e):e||[],!1).length}});var q,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;($.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:W.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof $?t[0]:t,$.merge(this,$.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),F.test(i[1])&&$.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=b.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e($):$.makeArray(e,this)}).prototype=$.fn,q=$(b);var B=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}$.fn.extend({has:function(e){var t=$(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if($.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,o=this.length,a=[],r="string"!=typeof e&&$(e);if(!z.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&$.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?$.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call($(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack($.uniqueSort($.merge(this.get(),$(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),$.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return H((e.parentNode||{}).firstChild,e)},children:function(e){return H(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(E(e,"template")&&(e=e.content||e),$.merge([],e.childNodes))}},(function(e,t){$.fn[e]=function(n,i){var o=$.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=$.filter(i,o)),this.length>1&&(V[e]||$.uniqueSort(o),B.test(e)&&o.reverse()),this.pushStack(o)}}));var Y=/[^\x20\t\r\n\f]+/g;function X(e){return e}function Q(e){throw e}function G(e,t,n,i){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(n):e&&g(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}$.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return $.each(e.match(Y)||[],(function(e,n){t[n]=!0})),t}(e):$.extend({},e);var t,n,i,o,a=[],r=[],s=-1,l=function(){for(o=o||e.once,i=t=!0;r.length;s=-1)for(n=r.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,r.push(n)),function t(n){$.each(n,(function(n,i){g(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==k(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return $.each(arguments,(function(e,t){for(var n;(n=$.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?$.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=r=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=r=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],r.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},$.extend({Deferred:function(e){var t=[["notify","progress",$.Callbacks("memory"),$.Callbacks("memory"),2],["resolve","done",$.Callbacks("once memory"),$.Callbacks("once memory"),0,"resolved"],["reject","fail",$.Callbacks("once memory"),$.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return $.Deferred((function(n){$.each(t,(function(t,i){var o=g(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var a=0;function r(e,t,n,o){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(e<a)){if((i=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,g(c)?o?c.call(i,r(a,t,X,o),r(a,t,Q,o)):(a++,c.call(i,r(a,t,X,o),r(a,t,Q,o),r(a,t,X,t.notifyWith))):(n!==X&&(s=void 0,l=[i]),(o||t.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(i){$.Deferred.exceptionHook&&$.Deferred.exceptionHook(i,u.error),e+1>=a&&(n!==Q&&(s=void 0,l=[i]),t.rejectWith(s,l))}};e?u():($.Deferred.getErrorHook?u.error=$.Deferred.getErrorHook():$.Deferred.getStackHook&&(u.error=$.Deferred.getStackHook()),i.setTimeout(u))}}return $.Deferred((function(i){t[0][3].add(r(0,i,g(o)?o:X,i.notifyWith)),t[1][3].add(r(0,i,g(e)?e:X)),t[2][3].add(r(0,i,g(n)?n:Q))})).promise()},promise:function(e){return null!=e?$.extend(e,o):o}},a={};return $.each(t,(function(e,i){var r=i[2],s=i[5];o[i[1]]=r.add,s&&r.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(i[3].fire),a[i[0]]=function(){return a[i[0]+"With"](this===a?void 0:this,arguments),this},a[i[0]+"With"]=r.fireWith})),o.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,i=Array(n),o=s.call(arguments),a=$.Deferred(),r=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(i,o)}};if(t<=1&&(G(e,a.done(r(n)).resolve,a.reject,!t),"pending"===a.state()||g(o[n]&&o[n].then)))return a.then();for(;n--;)G(o[n],r(n),a.reject);return a.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;$.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&Z.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},$.readyException=function(e){i.setTimeout((function(){throw e}))};var K=$.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),i.removeEventListener("load",J),$.ready()}$.fn.ready=function(e){return K.then(e).catch((function(e){$.readyException(e)})),this},$.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--$.readyWait:$.isReady)||($.isReady=!0,!0!==e&&--$.readyWait>0||K.resolveWith(b,[$]))}}),$.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout($.ready):(b.addEventListener("DOMContentLoaded",J),i.addEventListener("load",J));var ee=function(e,t,n,i,o,a,r){var s=0,l=e.length,c=null==n;if("object"===k(n))for(s in o=!0,n)ee(e,t,s,n[s],!0,a,r);else if(void 0!==i&&(o=!0,g(i)||(r=!0),c&&(r?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call($(e),n)})),t))for(;s<l;s++)t(e[s],n,r?i:i.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):a},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function oe(e){return e.replace(te,"ms-").replace(ne,ie)}var ae=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=$.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ae(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[oe(t)]=n;else for(i in t)o[oe(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][oe(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(oe):(t=oe(t))in i?[t]:t.match(Y)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||$.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!$.isEmptyObject(t)}};var se=new re,le=new re,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}$.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),$.fn.extend({data:function(e,t){var n,i,o,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(o=le.get(a),1===a.nodeType&&!se.get(a,"hasDataAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&(i=oe(i.slice(5)),de(a,i,o[i]));se.set(a,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=le.get(a,e))||void 0!==(n=de(a,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),$.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=se.get(e,t),n&&(!i||Array.isArray(n)?i=se.access(e,t,$.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=$.queue(e,t),i=n.length,o=n.shift(),a=$._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete a.stop,o.call(e,(function(){$.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:$.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),$.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?$.queue(this[0],e):void 0===t?this:this.each((function(){var n=$.queue(this,e,t);$._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&$.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){$.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=$.Deferred(),a=this,r=this.length,s=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(n=se.get(a[r],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],me=b.documentElement,ve=function(e){return $.contains(e.ownerDocument,e)},ge={composed:!0};me.getRootNode&&(ve=function(e){return $.contains(e.ownerDocument,e)||e.getRootNode(ge)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ve(e)&&"none"===$.css(e,"display")};function be(e,t,n,i){var o,a,r=20,s=i?function(){return i.cur()}:function(){return $.css(e,t,"")},l=s(),c=n&&n[3]||($.cssNumber[t]?"":"px"),u=e.nodeType&&($.cssNumber[t]||"px"!==c&&+l)&&fe.exec($.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;r--;)$.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(r=0),u/=a;u*=2,$.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var xe={};function we(e){var t,n=e.ownerDocument,i=e.nodeName,o=xe[i];return o||(t=n.body.appendChild(n.createElement(i)),o=$.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),xe[i]=o,o)}function ke(e,t){for(var n,i,o=[],a=0,r=e.length;a<r;a++)(i=e[a]).style&&(n=i.style.display,t?("none"===n&&(o[a]=se.get(i,"display")||null,o[a]||(i.style.display="")),""===i.style.display&&ye(i)&&(o[a]=we(i))):"none"!==n&&(o[a]="none",se.set(i,"display",n)));for(a=0;a<r;a++)null!=o[a]&&(e[a].style.display=o[a]);return e}$.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?$(this).show():$(this).hide()}))}});var Ce,Te,$e=/^(?:checkbox|radio)$/i,_e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ee=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(Te=b.createElement("input")).setAttribute("type","radio"),Te.setAttribute("checked","checked"),Te.setAttribute("name","t"),Ce.appendChild(Te),v.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",v.option=!!Ce.lastChild;var Ae={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,"",""]};function Se(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?$.merge([e],n):n}function Oe(e,t){for(var n=0,i=e.length;n<i;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,v.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Le(e,t,n,i,o){for(var a,r,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((a=e[f])||0===a)if("object"===k(a))$.merge(h,a.nodeType?[a]:a);else if(De.test(a)){for(r=r||d.appendChild(t.createElement("div")),s=(_e.exec(a)||["",""])[1].toLowerCase(),l=Ae[s]||Ae._default,r.innerHTML=l[1]+$.htmlPrefilter(a)+l[2],u=l[0];u--;)r=r.lastChild;$.merge(h,r.childNodes),(r=d.firstChild).textContent=""}else h.push(t.createTextNode(a));for(d.textContent="",f=0;a=h[f++];)if(i&&$.inArray(a,i)>-1)o&&o.push(a);else if(c=ve(a),r=Se(d.appendChild(a),"script"),c&&Oe(r),n)for(u=0;a=r[u++];)Ee.test(a.type||"")&&n.push(a);return d}var Pe=/^([^.]*)(?:\.(.+)|)/;function je(){return!0}function Me(){return!1}function Ne(e,t,n,i,o,a){var r,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Ne(e,s,n,i,t[s],a);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Me;else if(!o)return e;return 1===a&&(r=o,o=function(e){return $().off(e),r.apply(this,arguments)},o.guid=r.guid||(r.guid=$.guid++)),e.each((function(){$.event.add(this,t,o,i,n)}))}function Ie(e,t,n){n?(se.set(e,t,!1),$.event.add(e,t,{namespace:!1,handler:function(e){var n,i=se.get(this,t);if(1&e.isTrigger&&this[t]){if(i)($.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),se.set(this,t,i),this[t](),n=se.get(this,t),se.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(se.set(this,t,$.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=je)}})):void 0===se.get(e,t)&&$.event.add(e,t,je)}$.event={global:{},add:function(e,t,n,i,o){var a,r,s,l,c,u,d,h,f,p,m,v=se.get(e);if(ae(e))for(n.handler&&(n=(a=n).handler,o=a.selector),o&&$.find.matchesSelector(me,o),n.guid||(n.guid=$.guid++),(l=v.events)||(l=v.events=Object.create(null)),(r=v.handle)||(r=v.handle=function(t){return void 0!==$&&$.event.triggered!==t.type?$.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Y)||[""]).length;c--;)f=m=(s=Pe.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=$.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=$.event.special[f]||{},u=$.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&$.expr.match.needsContext.test(o),namespace:p.join(".")},a),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,r)||e.addEventListener&&e.addEventListener(f,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),$.event.global[f]=!0)},remove:function(e,t,n,i,o){var a,r,s,l,c,u,d,h,f,p,m,v=se.hasData(e)&&se.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(Y)||[""]).length;c--;)if(f=m=(s=Pe.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=$.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=h.length;a--;)u=h[a],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,v.handle)||$.removeEvent(e,f,v.handle),delete l[f])}else for(f in l)$.event.remove(e,f+t[c],n,i,!0);$.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,a,r,s=new Array(arguments.length),l=$.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=$.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(r=$.event.handlers.call(this,l,c),t=0;(o=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(i=(($.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,o,a,r,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],r={},n=0;n<l;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?$(o,this).index(c)>-1:$.find(o,this,null,[c]).length),r[o]&&a.push(i);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty($.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[$.expando]?e:new $.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return $e.test(t.type)&&t.click&&E(t,"input")&&Ie(t,"click",!0),!1},trigger:function(e){var t=this||e;return $e.test(t.type)&&t.click&&E(t,"input")&&Ie(t,"click"),!0},_default:function(e){var t=e.target;return $e.test(t.type)&&t.click&&E(t,"input")&&se.get(t,"click")||E(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},$.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},$.Event=function(e,t){if(!(this instanceof $.Event))return new $.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?je:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&$.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[$.expando]=!0},$.Event.prototype={constructor:$.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=je,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=je,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=je,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},$.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},$.event.addProp),$.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),i=$.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else $.event.simulate(t,e.target,$.event.fix(e))}$.event.special[e]={setup:function(){var i;if(Ie(this,e,!0),!b.documentMode)return!1;(i=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(i||0)+1)},trigger:function(){return Ie(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},$.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=b.documentMode?this:i,a=se.get(o,t);a||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),se.set(o,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=b.documentMode?this:i,a=se.get(o,t)-1;a?se.set(o,t,a):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),se.remove(o,t))}}})),$.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){$.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||$.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),$.fn.extend({on:function(e,t,n,i){return Ne(this,e,t,n,i)},one:function(e,t,n,i){return Ne(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,$(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){$.event.remove(this,e,n,t)}))}});var He=/<script|<style|<link/i,ze=/checked\s*(?:[^=]|=\s*.checked.)/i,Fe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&$(e).children("tbody")[0]||e}function qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,i,o,a,r,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(o in se.remove(t,"handle events"),s)for(n=0,i=s[o].length;n<i;n++)$.event.add(t,o,s[o][n]);le.hasData(e)&&(a=le.access(e),r=$.extend({},a),le.set(t,r))}}function Ve(e,t){var n=t.nodeName.toLowerCase();"input"===n&&$e.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ue(e,t,n,i){t=l(t);var o,a,r,s,c,u,d=0,h=e.length,f=h-1,p=t[0],m=g(p);if(m||h>1&&"string"==typeof p&&!v.checkClone&&ze.test(p))return e.each((function(o){var a=e.eq(o);m&&(t[0]=p.call(this,o,a.html())),Ue(a,t,n,i)}));if(h&&(a=(o=Le(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=(r=$.map(Se(o,"script"),qe)).length;d<h;d++)c=o,d!==f&&(c=$.clone(c,!0,!0),s&&$.merge(r,Se(c,"script"))),n.call(e[d],c,d);if(s)for(u=r[r.length-1].ownerDocument,$.map(r,We),d=0;d<s;d++)c=r[d],Ee.test(c.type||"")&&!se.access(c,"globalEval")&&$.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?$._evalUrl&&!c.noModule&&$._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Fe,""),c,u))}return e}function Ye(e,t,n){for(var i,o=t?$.filter(t,e):e,a=0;null!=(i=o[a]);a++)n||1!==i.nodeType||$.cleanData(Se(i)),i.parentNode&&(n&&ve(i)&&Oe(Se(i,"script")),i.parentNode.removeChild(i));return e}$.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,a,r,s=e.cloneNode(!0),l=ve(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||$.isXMLDoc(e)))for(r=Se(s),i=0,o=(a=Se(e)).length;i<o;i++)Ve(a[i],r[i]);if(t)if(n)for(a=a||Se(e),r=r||Se(s),i=0,o=a.length;i<o;i++)Be(a[i],r[i]);else Be(e,s);return(r=Se(s,"script")).length>0&&Oe(r,!l&&Se(e,"script")),s},cleanData:function(e){for(var t,n,i,o=$.event.special,a=0;void 0!==(n=e[a]);a++)if(ae(n)){if(t=n[se.expando]){if(t.events)for(i in t.events)o[i]?$.event.remove(n,i):$.removeEvent(n,i,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),$.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?$.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ue(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)}))},prepend:function(){return Ue(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&($.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return $.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!He.test(e)&&!Ae[(_e.exec(e)||["",""])[1].toLowerCase()]){e=$.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&($.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ue(this,arguments,(function(t){var n=this.parentNode;$.inArray(this,e)<0&&($.cleanData(Se(this)),n&&n.replaceChild(t,this))}),e)}}),$.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){$.fn[e]=function(e){for(var n,i=[],o=$(e),a=o.length-1,r=0;r<=a;r++)n=r===a?this:this.clone(!0),$(o[r])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Xe=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Qe=/^--/,Ge=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Ze=function(e,t,n){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.call(e),t)e.style[o]=a[o];return i},Ke=new RegExp(pe.join("|"),"i");function Je(e,t,n){var i,o,a,r,s=Qe.test(t),l=e.style;return(n=n||Ge(e))&&(r=n.getPropertyValue(t)||n[t],s&&r&&(r=r.replace(L,"$1")||void 0),""!==r||ve(e)||(r=$.style(e,t)),!v.pixelBoxStyles()&&Xe.test(r)&&Ke.test(t)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=n.width,l.width=i,l.minWidth=o,l.maxWidth=a)),void 0!==r?r+"":r}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",r=36===t(e.right),o=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,a,r,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,$.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,n,o;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),o=i.getComputedStyle(t),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function ot(e){return $.cssProps[e]||it[e]||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var at=/^(none|table(?!-c[ea]).+)/,rt={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,o,a){var r="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(c+=$.css(e,n+pe[r],!0,o)),i?("content"===n&&(l-=$.css(e,"padding"+pe[r],!0,o)),"margin"!==n&&(l-=$.css(e,"border"+pe[r]+"Width",!0,o))):(l+=$.css(e,"padding"+pe[r],!0,o),"padding"!==n?l+=$.css(e,"border"+pe[r]+"Width",!0,o):s+=$.css(e,"border"+pe[r]+"Width",!0,o));return!i&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l+c}function ut(e,t,n){var i=Ge(e),o=(!v.boxSizingReliable()||n)&&"border-box"===$.css(e,"boxSizing",!1,i),a=o,r=Je(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Xe.test(r)){if(!n)return r;r="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&E(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===$.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===$.css(e,"boxSizing",!1,i),(a=s in e)&&(r=e[s])),(r=parseFloat(r)||0)+ct(e,t,n||(o?"border":"content"),a,i,r)+"px"}function dt(e,t,n,i,o){return new dt.prototype.init(e,t,n,i,o)}$.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,r,s=oe(t),l=Qe.test(t),c=e.style;if(l||(t=ot(s)),r=$.cssHooks[t]||$.cssHooks[s],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:c[t];"string"==(a=typeof n)&&(o=fe.exec(n))&&o[1]&&(n=be(e,t,o),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=o&&o[3]||($.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(n=r.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,a,r,s=oe(t);return Qe.test(t)||(t=ot(s)),(r=$.cssHooks[t]||$.cssHooks[s])&&"get"in r&&(o=r.get(e,!0,n)),void 0===o&&(o=Je(e,t,i)),"normal"===o&&t in st&&(o=st[t]),""===n||n?(a=parseFloat(o),!0===n||isFinite(a)?a||0:o):o}}),$.each(["height","width"],(function(e,t){$.cssHooks[t]={get:function(e,n,i){if(n)return!at.test($.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Ze(e,rt,(function(){return ut(e,t,i)}))},set:function(e,n,i){var o,a=Ge(e),r=!v.scrollboxSize()&&"absolute"===a.position,s=(r||i)&&"border-box"===$.css(e,"boxSizing",!1,a),l=i?ct(e,t,i,s,a):0;return s&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-ct(e,t,"border",!1,a)-.5)),l&&(o=fe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=$.css(e,t)),lt(0,n,l)}}})),$.cssHooks.marginLeft=et(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),$.each({margin:"",padding:"",border:"Width"},(function(e,t){$.cssHooks[e+t]={expand:function(n){for(var i=0,o={},a="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+pe[i]+t]=a[i]||a[i-2]||a[0];return o}},"margin"!==e&&($.cssHooks[e+t].set=lt)})),$.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,o,a={},r=0;if(Array.isArray(t)){for(i=Ge(e),o=t.length;r<o;r++)a[t[r]]=$.css(e,t[r],!1,i);return a}return void 0!==n?$.style(e,t,n):$.css(e,t)}),e,t,arguments.length>1)}}),$.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,o,a){this.elem=e,this.prop=n,this.easing=o||$.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||($.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=$.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=$.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){$.fx.step[e.prop]?$.fx.step[e.prop](e):1!==e.elem.nodeType||!$.cssHooks[e.prop]&&null==e.elem.style[ot(e.prop)]?e.elem[e.prop]=e.now:$.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},$.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},$.fx=dt.prototype.init,$.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function vt(){ft&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(vt):i.setTimeout(vt,$.fx.interval),$.fx.tick())}function gt(){return i.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=pe[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function bt(e,t,n){for(var i,o=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),a=0,r=o.length;a<r;a++)if(i=o[a].call(n,t,e))return i}function xt(e,t,n){var i,o,a=0,r=xt.prefilters.length,s=$.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=ht||gt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),a=0,r=c.tweens.length;a<r;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),i<1&&r?n:(r||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:$.extend({},t),opts:$.extend(!0,{specialEasing:{},easing:$.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=$.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,o,a,r;for(n in e)if(o=t[i=oe(n)],a=e[n],Array.isArray(a)&&(o=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(r=$.cssHooks[i])&&"expand"in r)for(n in a=r.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=o);else t[i]=o}(u,c.opts.specialEasing);a<r;a++)if(i=xt.prefilters[a].call(c,e,u,c.opts))return g(i.stop)&&($._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return $.map(u,bt,c),g(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),$.fx.timer($.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}$.Animation=$.extend(xt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(Y);for(var n,i=0,o=e.length;i<o;i++)n=e[i],xt.tweeners[n]=xt.tweeners[n]||[],xt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,a,r,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&ye(e),v=se.get(e,"fxshow");for(i in n.queue||(null==(r=$._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,s=r.empty.fire,r.empty.fire=function(){r.unqueued||s()}),r.unqueued++,h.always((function(){h.always((function(){r.unqueued--,$.queue(e,"fx").length||r.empty.fire()}))}))),t)if(o=t[i],pt.test(o)){if(delete t[i],a=a||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!v||void 0===v[i])continue;m=!0}f[i]=v&&v[i]||$.style(e,i)}if((l=!$.isEmptyObject(t))||!$.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=v&&v.display)&&(c=se.get(e,"display")),"none"===(u=$.css(e,"display"))&&(c?u=c:(ke([e],!0),c=e.style.display||c,u=$.css(e,"display"),ke([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===$.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(v?"hidden"in v&&(m=v.hidden):v=se.access(e,"fxshow",{display:c}),a&&(v.hidden=!m),m&&ke([e],!0),h.done((function(){for(i in m||ke([e]),se.remove(e,"fxshow"),f)$.style(e,i,f[i])}))),l=bt(m?v[i]:0,i,h),i in v||(v[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),$.speed=function(e,t,n){var i=e&&"object"==typeof e?$.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return $.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in $.fx.speeds?i.duration=$.fx.speeds[i.duration]:i.duration=$.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g(i.old)&&i.old.call(this),i.queue&&$.dequeue(this,i.queue)},i},$.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=$.isEmptyObject(e),a=$.speed(t,n,i),r=function(){var t=xt(this,$.extend({},e),a);(o||se.get(this,"finish"))&&t.stop(!0)};return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",a=$.timers,r=se.get(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&&mt.test(o)&&i(r[o]);for(o=a.length;o--;)a[o].elem!==this||null!=e&&a[o].queue!==e||(a[o].anim.stop(n),t=!1,a.splice(o,1));!t&&n||$.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],a=$.timers,r=i?i.length:0;for(n.finish=!0,$.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<r;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),$.each(["toggle","show","hide"],(function(e,t){var n=$.fn[t];$.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,o)}})),$.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){$.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),$.timers=[],$.fx.tick=function(){var e,t=0,n=$.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||$.fx.stop(),ht=void 0},$.fx.timer=function(e){$.timers.push(e),$.fx.start()},$.fx.interval=13,$.fx.start=function(){ft||(ft=!0,vt())},$.fx.stop=function(){ft=null},$.fx.speeds={slow:600,fast:200,_default:400},$.fn.delay=function(e,t){return e=$.fx&&$.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var wt,kt=$.expr.attrHandle;$.fn.extend({attr:function(e,t){return ee(this,$.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){$.removeAttr(this,e)}))}}),$.extend({attr:function(e,t,n){var i,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?$.prop(e,t,n):(1===a&&$.isXMLDoc(e)||(o=$.attrHooks[t.toLowerCase()]||($.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void $.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=$.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&E(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(Y);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?$.removeAttr(e,n):e.setAttribute(n,n),n}},$.each($.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=kt[t]||$.find.attr;kt[t]=function(e,t,i){var o,a,r=t.toLowerCase();return i||(a=kt[r],kt[r]=o,o=null!=n(e,t,i)?r:null,kt[r]=a),o}}));var Ct=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function $t(e){return(e.match(Y)||[]).join(" ")}function _t(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}$.fn.extend({prop:function(e,t){return ee(this,$.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[$.propFix[e]||e]}))}}),$.extend({prop:function(e,t,n){var i,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&$.isXMLDoc(e)||(t=$.propFix[t]||t,o=$.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=$.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||($.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),$.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){$.propFix[this.toLowerCase()]=this})),$.fn.extend({addClass:function(e){var t,n,i,o,a,r;return g(e)?this.each((function(t){$(this).addClass(e.call(this,t,_t(this)))})):(t=Et(e)).length?this.each((function(){if(i=_t(this),n=1===this.nodeType&&" "+$t(i)+" "){for(a=0;a<t.length;a++)o=t[a],n.indexOf(" "+o+" ")<0&&(n+=o+" ");r=$t(n),i!==r&&this.setAttribute("class",r)}})):this},removeClass:function(e){var t,n,i,o,a,r;return g(e)?this.each((function(t){$(this).removeClass(e.call(this,t,_t(this)))})):arguments.length?(t=Et(e)).length?this.each((function(){if(i=_t(this),n=1===this.nodeType&&" "+$t(i)+" "){for(a=0;a<t.length;a++)for(o=t[a];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r=$t(n),i!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,o,a,r=typeof e,s="string"===r||Array.isArray(e);return g(e)?this.each((function(n){$(this).toggleClass(e.call(this,n,_t(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Et(e),this.each((function(){if(s)for(a=$(this),o=0;o<n.length;o++)i=n[o],a.hasClass(i)?a.removeClass(i):a.addClass(i);else void 0!==e&&"boolean"!==r||((i=_t(this))&&se.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+$t(_t(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;$.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=g(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,$(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=$.map(o,(function(e){return null==e?"":e+""}))),(t=$.valHooks[this.type]||$.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=$.valHooks[o.type]||$.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(At,""):null==n?"":n:void 0}}),$.extend({valHooks:{option:{get:function(e){var t=$.find.attr(e,"value");return null!=t?t:$t($.text(e))}},select:{get:function(e){var t,n,i,o=e.options,a=e.selectedIndex,r="select-one"===e.type,s=r?null:[],l=r?a+1:o.length;for(i=a<0?l:r?a:0;i<l;i++)if(((n=o[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(t=$(n).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var n,i,o=e.options,a=$.makeArray(t),r=o.length;r--;)((i=o[r]).selected=$.inArray($.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),$.each(["radio","checkbox"],(function(){$.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=$.inArray($(e).val(),t)>-1}},v.checkOn||($.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var St=i.location,Ot={guid:Date.now()},Dt=/\?/;$.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||$.error("Invalid XML: "+(n?$.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Lt=/^(?:focusinfocus|focusoutblur)$/,Pt=function(e){e.stopPropagation()};$.extend($.event,{trigger:function(e,t,n,o){var a,r,s,l,c,u,d,h,p=[n||b],m=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(r=h=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Lt.test(m+$.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[$.expando]?e:new $.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:$.makeArray(t,[e]),d=$.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!y(n)){for(l=d.delegateType||m,Lt.test(l+m)||(r=r.parentNode);r;r=r.parentNode)p.push(r),s=r;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||i)}for(a=0;(r=p[a++])&&!e.isPropagationStopped();)h=r,e.type=a>1?l:d.bindType||m,(u=(se.get(r,"events")||Object.create(null))[e.type]&&se.get(r,"handle"))&&u.apply(r,t),(u=c&&r[c])&&u.apply&&ae(r)&&(e.result=u.apply(r,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!ae(n)||c&&g(n[m])&&!y(n)&&((s=n[c])&&(n[c]=null),$.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Pt),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,Pt),$.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var i=$.extend(new $.Event,n,{type:e,isSimulated:!0});$.event.trigger(i,null,t)}}),$.fn.extend({trigger:function(e,t){return this.each((function(){$.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return $.event.trigger(e,t,n,!0)}});var jt=/\[\]$/,Mt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function Ht(e,t,n,i){var o;if(Array.isArray(t))$.each(t,(function(t,o){n||jt.test(e)?i(e,o):Ht(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)}));else if(n||"object"!==k(t))i(e,t);else for(o in t)Ht(e+"["+o+"]",t[o],n,i)}$.param=function(e,t){var n,i=[],o=function(e,t){var n=g(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!$.isPlainObject(e))$.each(e,(function(){o(this.name,this.value)}));else for(n in e)Ht(n,e[n],t,o);return i.join("&")},$.fn.extend({serialize:function(){return $.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=$.prop(this,"elements");return e?$.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!$(this).is(":disabled")&&It.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!$e.test(e))})).map((function(e,t){var n=$(this).val();return null==n?null:Array.isArray(n)?$.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var zt=/%20/g,Ft=/#.*$/,Rt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Vt={},Ut={},Yt="*/".concat("*"),Xt=b.createElement("a");function Qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,a=t.toLowerCase().match(Y)||[];if(g(n))for(;i=a[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Gt(e,t,n,i){var o={},a=e===Ut;function r(s){var l;return o[s]=!0,$.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||a||o[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)})),l}return r(t.dataTypes[0])||!o["*"]&&r("*")}function Zt(e,t){var n,i,o=$.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&$.extend(!0,e,i),e}Xt.href=St.href,$.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,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":$.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Zt(Zt(e,$.ajaxSettings),t):Zt($.ajaxSettings,e)},ajaxPrefilter:Qt(Vt),ajaxTransport:Qt(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o,a,r,s,l,c,u,d,h,f=$.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?$(p):$.event,v=$.Deferred(),g=$.Callbacks("once memory"),y=f.statusCode||{},x={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=qt.exec(a);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),T(0,t),this}};if(v.promise(C),f.url=((e||f.url||St.href)+"").replace(Bt,St.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Y)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Xt.protocol+"//"+Xt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=$.param(f.data,f.traditional)),Gt(Vt,f,t,C),c)return C;for(d in(u=$.event&&f.global)&&0==$.active++&&$.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),o=f.url.replace(Ft,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(zt,"+")):(h=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Dt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Rt,"$1"),h=(Dt.test(o)?"&":"?")+"_="+Ot.guid+++h),f.url=o+h),f.ifModified&&($.lastModified[o]&&C.setRequestHeader("If-Modified-Since",$.lastModified[o]),$.etag[o]&&C.setRequestHeader("If-None-Match",$.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Yt+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||c))return C.abort();if(k="abort",g.add(f.complete),C.done(f.success),C.fail(f.error),n=Gt(Ut,f,t,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(s=i.setTimeout((function(){C.abort("timeout")}),f.timeout));try{c=!1,n.send(x,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,r,l){var d,h,b,x,w,k=t;c||(c=!0,s&&i.clearTimeout(s),n=void 0,a=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,r&&(x=function(e,t,n){for(var i,o,a,r,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}r||(r=o)}a=a||r}if(a)return a!==l[0]&&l.unshift(a),n[a]}(f,C,r)),!d&&$.inArray("script",f.dataTypes)>-1&&$.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,i){var o,a,r,s,l,c={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=c[l+" "+a]||c["* "+a]))for(o in c)if((s=o.split(" "))[1]===a&&(r=c[l+" "+s[0]]||c["* "+s[0]])){!0===r?r=c[o]:!0!==c[o]&&(a=s[0],u.unshift(s[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(f,x,C,d),d?(f.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&($.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&($.etag[o]=w)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=x.state,h=x.data,d=!(b=x.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),C.status=e,C.statusText=(t||k)+"",d?v.resolveWith(p,[h,k,C]):v.rejectWith(p,[C,k,b]),C.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?h:b]),g.fireWith(p,[C,k]),u&&(m.trigger("ajaxComplete",[C,f]),--$.active||$.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return $.get(e,t,n,"json")},getScript:function(e,t){return $.get(e,void 0,t,"script")}}),$.each(["get","post"],(function(e,t){$[t]=function(e,n,i,o){return g(n)&&(o=o||i,i=n,n=void 0),$.ajax($.extend({url:e,type:t,dataType:o,data:n,success:i},$.isPlainObject(e)&&e))}})),$.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),$._evalUrl=function(e,t,n){return $.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){$.globalEval(e,t,n)}})},$.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=$(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){$(this).wrapInner(e.call(this,t))})):this.each((function(){var t=$(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){$(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){$(this).replaceWith(this.childNodes)})),this}}),$.expr.pseudos.hidden=function(e){return!$.expr.pseudos.visible(e)},$.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},$.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Jt=$.ajaxSettings.xhr();v.cors=!!Jt&&"withCredentials"in Jt,v.ajax=Jt=!!Jt,$.ajaxTransport((function(e){var t,n;if(v.cors||Jt&&!e.crossDomain)return{send:function(o,a){var r,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)s[r]=e.xhrFields[r];for(r in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(r,o[r]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),$.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),$.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return $.globalEval(e),e}}}),$.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),$.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=$("<script>").attr(e.scriptAttrs||{}
vendor: 5,919 bytes, line 2
2).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;$.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||$.expando+"_"+Ot.guid++;return this[e]=!0,e}}),$.ajaxPrefilter("json jsonp",(function(e,t,n){var o,a,r,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+o):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||$.error(o+" was not called"),r[0]},e.dataTypes[0]="json",a=i[o],i[o]=function(){r=arguments},n.always((function(){void 0===a?$(i).removeProp(o):i[o]=a,e[o]&&(e.jsonpCallback=t.jsonpCallback,tn.push(o)),r&&g(a)&&a(r[0]),r=a=void 0})),"script"})),v.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),$.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),a=!n&&[],(o=F.exec(e))?[t.createElement(o[1])]:(o=Le([e],t,a),a&&a.length&&$(a).remove(),$.merge([],o.childNodes)));var i,o,a},$.fn.load=function(e,t,n){var i,o,a,r=this,s=e.indexOf(" ");return s>-1&&(i=$t(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),r.length>0&&$.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){a=arguments,r.html(i?$("<div>").append($.parseHTML(e)).find(i):e)})).always(n&&function(e,t){r.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},$.expr.pseudos.animated=function(e){return $.grep($.timers,(function(t){return e===t.elem})).length},$.offset={setOffset:function(e,t,n){var i,o,a,r,s,l,c=$.css(e,"position"),u=$(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=$.css(e,"top"),l=$.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(r=(i=u.position()).top,o=i.left):(r=parseFloat(a)||0,o=parseFloat(l)||0),g(t)&&(t=t.call(e,n,$.extend({},s))),null!=t.top&&(d.top=t.top-s.top+r),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},$.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){$.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===$.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===$.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=$(e).offset()).top+=$.css(e,"borderTopWidth",!0),o.left+=$.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-$.css(i,"marginTop",!0),left:t.left-o.left-$.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===$.css(e,"position");)e=e.offsetParent;return e||me}))}}),$.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;$.fn[e]=function(i){return ee(this,(function(e,i,o){var a;if(y(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===o)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:o,n?o:a.pageYOffset):e[i]=o}),e,i,arguments.length)}})),$.each(["top","left"],(function(e,t){$.cssHooks[t]=et(v.pixelPosition,(function(e,n){if(n)return n=Je(e,t),Xe.test(n)?$(e).position()[t]+"px":n}))})),$.each({Height:"height",Width:"width"},(function(e,t){$.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){$.fn[i]=function(o,a){var r=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===a?"margin":"border");return ee(this,(function(t,n,o){var a;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===o?$.css(t,n,s):$.style(t,n,o,s)}),t,r?o:void 0,r)}}))})),$.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){$.fn[t]=function(e){return this.on(t,e)}})),$.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),$.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){$.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var on=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;$.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return i=s.call(arguments,2),o=function(){return e.apply(t||this,i.concat(s.call(arguments)))},o.guid=e.guid=e.guid||$.guid++,o},$.holdReady=function(e){e?$.readyWait++:$.ready(!0)},$.isArray=Array.isArray,$.parseJSON=JSON.parse,$.nodeName=E,$.isFunction=g,$.isWindow=y,$.camelCase=oe,$.type=k,$.now=Date.now,$.isNumeric=function(e){var t=$.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},$.trim=function(e){return null==e?"":(e+"").replace(on,"$1")},void 0===(n=function(){return $}
2.apply(t,[]))||(e.exports=n);var an=i.jQuery,rn=i.$;return $.noConflict=function(e){return i.$===$&&(i.$=rn),e&&i.jQuery===$&&(i.jQuery=an),$},void 0===o&&(i.jQuery=i.$=$),$}))},7930:(e,t,n)=>{window.alertify=n(9592),alertify.customconfirm||alertify.dialog("customconfirm",(function(){return{main:function(e,t,n){return this.setHeader(""),this.set("message",e),this.set("onok",t),this.set("oncancel",n||null),this},setup:function(){return{buttons:[{text:"OK",className:""},{text:"Cancel",className:"mnw-btn-secondary",invokeOnClose:!0}],focus:{element:1,select:!1},options:{maximizable:!1,resizable:!1,closable:!0,closableByDimmer:!0}}},build:function(){this.elements.dialog.classList.add("customconfirm")}}}),!1,"confirm"),alertify.dialog("customalert",(function(){return{main:function(e){return this.setHeader(""),this.set("message",e),this},setup:function(){return{buttons:[{text:"OK",className:""}],focus:{element:0,select:!1},options:{maximizable:!1,resizable:!1,closable:!1}}},build:function(){this.elements.dialog.classList.add("customalert")}}}),!1,"alert"),alertify.modalcontent||alertify.dialog("modalcontent",(function(){return{main:function(e,t,n,i){if(this.setHeader(e),this.autoheight=0,t.style.display="block",n){if(!n.width||!n.height)throw"Invalid size";this.set("resizable",!0),this.resizeTo(n.width,n.height)}else t.offsetHeight&&(this.autoheight=t.offsetHeight+200);this.setContent(t),i&&this.set({onshow:i})},prepare:function(){this.autoheight&&(this.elements.body.style.height=this.autoheight+"px")},setup:function(){return{options:{maximizable:!1,resizable:!1,padding:!0,modal:!0}}},build:function(){this.elements.dialog.classList.add("modalcontent")}}}),!1),alertify.modalblock||alertify.dialog("modalblock",(function(){return{main:function(e){return e||(e="Working..."),e='<div id="progressUpdate">'+e+'<img src="/admin2/adminfiles/grfx/icon_ajax.gif" alt="Working" /></div>',this.setContent(e),this},setup:function(){return{options:{maximizable:!1,resizable:!0,padding:!1,modal:!0,basic:!0,closableByDimmer:!1,closable:!1}}},build:function(){this.elements.dialog.classList.add("modalblock")}}}),!1)},7424:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HelpTips:()=>U,tippy:()=>V});var i=n(2747),o=n(822),a="tippy-content",r="tippy-arrow",s="tippy-svg-arrow",l={passive:!0,capture:!0},c=function(){return document.body};function u(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function d(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function h(e,t){return"function"==typeof e?e.apply(void 0,t):e}function f(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function p(e){return[].concat(e)}function m(e,t){-1===e.indexOf(t)&&e.push(t)}function v(e){return[].slice.call(e)}function g(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function y(){return document.createElement("div")}function b(e){return["Element","Fragment"].some((function(t){return d(e,t)}))}function x(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function w(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function k(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function C(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var T={isTouch:!1},_=0;function E(){T.isTouch||(T.isTouch=!0,window.performance&&document.addEventListener("mousemove",A))}function A(){var e=performance.now();e-_<20&&(T.isTouch=!1,document.removeEventListener("mousemove",A)),_=e}function S(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var O=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),D=Object.assign({appendTo:c,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),L=Object.keys(D);function P(e){var t=(e.plugins||[]).reduce((function(t,n){var i,o=n.name,a=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(i=D[o])?i:a),t}),{});return Object.assign({},e,t)}function j(e,t){var n=Object.assign({},t,{content:h(t.content,[e])},t.ignoreAttributes?{}
vendor: 8,944 bytes, line 2
2:function(e,t){return(t?Object.keys(P(Object.assign({},D,{plugins:t}))):L).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},D.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function M(e,t){e.innerHTML=t}function N(e){var t=y();return!0===e?t.className=r:(t.className=s,b(e)?t.appendChild(e):M(t,e)),t}function I(e,t){b(t.content)?(M(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?M(e,t.content):e.textContent=t.content)}function H(e){var t=e.firstElementChild,n=v(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(a)})),arrow:n.find((function(e){return e.classList.contains(r)||e.classList.contains(s)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function z(e){var t=y(),n=y();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=y();function o(n,i){var o=H(t),a=o.box,r=o.content,s=o.arrow;i.theme?a.setAttribute("data-theme",i.theme):a.removeAttribute("data-theme"),"string"==typeof i.animation?a.setAttribute("data-animation",i.animation):a.removeAttribute("data-animation"),i.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?a.setAttribute("role",i.role):a.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||I(r,e.props),i.arrow?s?n.arrow!==i.arrow&&(a.removeChild(s),a.appendChild(N(i.arrow))):a.appendChild(N(i.arrow)):s&&a.removeChild(s)}return i.className=a,i.setAttribute("data-state","hidden"),I(i,e.props),t.appendChild(n),n.appendChild(i),o(e.props,e.props),{popper:t,onUpdate:o}}z.$$tippy=!0;var F=1,R=[],q=[];function W(e,t){var n,o,a,r,s,b,$,_,E=j(e,Object.assign({},D,P(g(t)))),A=!1,S=!1,L=!1,M=!1,N=[],I=f(ye,E.interactiveDebounce),z=F++,W=(_=E.plugins).filter((function(e,t){return _.indexOf(e)===t})),B={id:z,reference:e,popper:y(),popperInstance:null,props:E,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:W,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(a)},setProps:function(t){if(!B.state.isDestroyed){oe("onBeforeUpdate",[B,t]),ve();var n=B.props,i=j(e,Object.assign({},n,g(t),{ignoreAttributes:!0}));B.props=i,me(),n.interactiveDebounce!==i.interactiveDebounce&&(se(),I=f(ye,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?p(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded"),re(),ie(),Y&&Y(n,i),B.popperInstance&&(ke(),Te().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),oe("onAfterUpdate",[B,t])}},setContent:function(e){B.setProps({content:e})},show:function(){var e=B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,i=T.isTouch&&!B.props.touch,o=u(B.props.duration,0,D.duration);if(!(e||t||n||i||J().hasAttribute("disabled")||(oe("onShow",[B],!1),!1===B.props.onShow(B)))){if(B.state.isVisible=!0,K()&&(U.style.visibility="visible"),ie(),de(),B.state.isMounted||(U.style.transition="none"),K()){var a=te();x([a.box,a.content],0)}var r,s,l;b=function(){var e;if(B.state.isVisible&&!M){if(M=!0,U.offsetHeight,U.style.transition=B.props.moveTransition,K()&&B.props.animation){var t=te(),n=t.box,i=t.content;x([n,i],o),w([n,i],"visible")}ae(),re(),m(q,B),null==(e=B.popperInstance)||e.forceUpdate(),oe("onMount",[B]),B.props.animation&&K()&&function(e){fe(e,(function(){B.state.isShown=!0,oe("onShown",[B])}))}(o)}},s=B.props.appendTo,l=J(),(r=B.props.interactive&&s===c||"parent"===s?l.parentNode:h(s,[l])).contains(U)||r.appendChild(U),B.state.isMounted=!0,ke()}},hide:function(){var e=!B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,i=u(B.props.duration,1,D.duration);if(!(e||t||n)&&(oe("onHide",[B],!1),!1!==B.props.onHide(B))){if(B.state.isVisible=!1,B.state.isShown=!1,M=!1,A=!1,K()&&(U.style.visibility="hidden"),se(),he(),ie(!0),K()){var o=te(),a=o.box,r=o.content;B.props.animation&&(x([a,r],i),w([a,r],"hidden"))}ae(),re(),B.props.animation?K()&&function(e,t){fe(e,(function(){!B.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&t()}))}(i,B.unmount):B.unmount()}},hideWithInteractivity:function(e){ee().addEventListener("mousemove",I),m(R,I),I(e)},enable:function(){B.state.isEnabled=!0},disable:function(){B.hide(),B.state.isEnabled=!1},unmount:function(){B.state.isVisible&&B.hide(),B.state.isMounted&&(Ce(),Te().forEach((function(e){e._tippy.unmount()})),U.parentNode&&U.parentNode.removeChild(U),q=q.filter((function(e){return e!==B})),B.state.isMounted=!1,oe("onHidden",[B]))},destroy:function(){B.state.isDestroyed||(B.clearDelayTimeouts(),B.unmount(),ve(),delete e._tippy,B.state.isDestroyed=!0,oe("onDestroy",[B]))}};if(!E.render)return B;var V=E.render(B),U=V.popper,Y=V.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+B.id,B.popper=U,e._tippy=B,U._tippy=B;var X=W.map((function(e){return e.fn(B)})),Q=e.hasAttribute("aria-expanded");return me(),re(),ie(),oe("onCreate",[B]),E.showOnCreate&&$e(),U.addEventListener("mouseenter",(function(){B.props.interactive&&B.state.isVisible&&B.clearDelayTimeouts()})),U.addEventListener("mouseleave",(function(){B.props.interactive&&B.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",I)})),B;function G(){var e=B.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===G()[0]}function K(){var e;return!(null==(e=B.props.render)||!e.$$tippy)}function J(){return $||e}function ee(){var e,t,n=J().parentNode;return n?null!=(t=p(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function te(){return H(U)}function ne(e){return B.state.isMounted&&!B.state.isVisible||T.isTouch||r&&"focus"===r.type?0:u(B.props.delay,e?0:1,D.delay)}function ie(e){void 0===e&&(e=!1),U.style.pointerEvents=B.props.interactive&&!e?"":"none",U.style.zIndex=""+B.props.zIndex}function oe(e,t,n){var i;void 0===n&&(n=!0),X.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(i=B.props)[e].apply(i,t)}function ae(){var t=B.props.aria;if(t.content){var n="aria-"+t.content,i=U.id;p(B.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(B.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var o=t&&t.replace(i,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function re(){!Q&&B.props.aria.expanded&&p(B.props.triggerTarget||e).forEach((function(e){B.props.interactive?e.setAttribute("aria-expanded",B.state.isVisible&&e===J()?"true":"false"):e.removeAttribute("aria-expanded")}))}function se(){ee().removeEventListener("mousemove",I),R=R.filter((function(e){return e!==I}))}function le(t){if(!T.isTouch||!L&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!B.props.interactive||!C(U,n)){if(p(B.props.triggerTarget||e).some((function(e){return C(e,n)}))){if(T.isTouch)return;if(B.state.isVisible&&B.props.trigger.indexOf("click")>=0)return}else oe("onClickOutside",[B,t]);!0===B.props.hideOnClick&&(B.clearDelayTimeouts(),B.hide(),S=!0,setTimeout((function(){S=!1})),B.state.isMounted||he())}}}function ce(){L=!0}function ue(){L=!1}function de(){var e=ee();e.addEventListener("mousedown",le,!0),e.addEventListener("touchend",le,l),e.addEventListener("touchstart",ue,l),e.addEventListener("touchmove",ce,l)}function he(){var e=ee();e.removeEventListener("mousedown",le,!0),e.removeEventListener("touchend",le,l),e.removeEventListener("touchstart",ue,l),e.removeEventListener("touchmove",ce,l)}function fe(e,t){var n=te().box;function i(e){e.target===n&&(k(n,"remove",i),t())}if(0===e)return t();k(n,"remove",s),k(n,"add",i),s=i}function pe(t,n,i){void 0===i&&(i=!1),p(B.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),N.push({node:e,eventType:t,handler:n,options:i})}))}function me(){var e;Z()&&(pe("touchstart",ge,{passive:!0}),pe("touchend",be,{passive:!0})),(e=B.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(pe(e,ge),e){case"mouseenter":pe("mouseleave",be);break;case"focus":pe(O?"focusout":"blur",xe);break;case"focusin":pe("focusout",xe)}}))}function ve(){N.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,o=e.options;t.removeEventListener(n,i,o)})),N=[]}function ge(e){var t,n=!1;if(B.state.isEnabled&&!we(e)&&!S){var i="focus"===(null==(t=r)?void 0:t.type);r=e,$=e.currentTarget,re(),!B.state.isVisible&&d(e,"MouseEvent")&&R.forEach((function(t){return t(e)})),"click"===e.type&&(B.props.trigger.indexOf("mouseenter")<0||A)&&!1!==B.props.hideOnClick&&B.state.isVisible?n=!0:$e(e),"click"===e.type&&(A=!n),n&&!i&&_e(e)}}function ye(e){var t=e.target,n=J().contains(t)||U.contains(t);
2if("mousemove"!==e.type||!n){var i=Te().concat(U).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:E}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,a=e.props.interactiveBorder,r=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===r?s.top.y:0,c="top"===r?s.bottom.y:0,u="right"===r?s.left.x:0,d="left"===r?s.right.x:0,h=t.top-i+l>a,f=i-t.bottom-c>a,p=t.left-n+u>a,m=n-t.right-d>a;return h||f||p||m}))})(i,e)&&(se(),_e(e))}}function be(e){we(e)||B.props.trigger.indexOf("click")>=0&&A||(B.props.interactive?B.hideWithInteractivity(e):_e(e))}function xe(e){B.props.trigger.indexOf("focusin")<0&&e.target!==J()||B.props.interactive&&e.relatedTarget&&U.contains(e.relatedTarget)||_e(e)}function we(e){return!!T.isTouch&&Z()!==e.type.indexOf("touch")>=0}function ke(){Ce();var t=B.props,n=t.popperOptions,o=t.placement,a=t.offset,r=t.getReferenceClientRect,s=t.moveTransition,l=K()?H(U).arrow:null,c=r?{getBoundingClientRect:r,contextElement:r.contextElement||J()}:e,u=[{name:"offset",options:{offset:a}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(K()){var n=te().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];K()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),B.popperInstance=(0,i.n4)(c,U,Object.assign({},n,{placement:o,onFirstUpdate:b,modifiers:u}))}function Ce(){B.popperInstance&&(B.popperInstance.destroy(),B.popperInstance=null)}function Te(){return v(U.querySelectorAll("[data-tippy-root]"))}function $e(e){B.clearDelayTimeouts(),e&&oe("onTrigger",[B,e]),de();var t=ne(!0),i=G(),o=i[0],a=i[1];T.isTouch&&"hold"===o&&a&&(t=a),t?n=setTimeout((function(){B.show()}),t):B.show()}function _e(e){if(B.clearDelayTimeouts(),oe("onUntrigger",[B,e]),B.state.isVisible){if(!(B.props.trigger.indexOf("mouseenter")>=0&&B.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&A)){var t=ne(!1);t?o=setTimeout((function(){B.state.isVisible&&B.hide()}),t):a=requestAnimationFrame((function(){B.hide()}))}}else he()}}function B(e,t){void 0===t&&(t={});var n=D.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",E,l),window.addEventListener("blur",S);var i,o=Object.assign({},t,{plugins:n}),a=(i=e,b(i)?[i]:function(e){return d(e,"NodeList")}(i)?v(i):Array.isArray(i)?i:v(document.querySelectorAll(i))).reduce((function(e,t){var n=t&&W(t,o);return n&&e.push(n),e}),[]);return b(e)?a[0]:a}B.defaultProps=D,B.setDefaultProps=function(e){Object.keys(e).forEach((function(t){D[t]=e[t]}))},B.currentInput=T,Object.assign({},o.A,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),B.setDefaultProps({render:z});const V=B;var U={ClassSelector:".mnw-helptip, .tippy, .tippy2",TextClassSelector:".mnw-helptip-text",init:function(){U.movetitletodataattr(U.ClassSelector),U.wiretips(U.ClassSelector),$(U.ClassSelector).length>0&&$("#pnlHelpInstruction").show()},wiretips:function(e){U.movetitletodataattr(e),V(e,{trigger:"mouseenter click",role:"tooltip",placement:"auto-start",delay:[250,350],allowHTML:!0,hideOnClick:!0,interactive:!0,arrow:!1,theme:"mnw-tippy-theme",content(e){let t="";return t=e.hasAttribute("data-tooltip")?e.getAttribute("data-tooltip"):document.getElementById(e.getAttribute("data-template")).innerHTML,t}})},movetitletodataattr:function(e){$(e).each((function(){$(this).attr("tabindex","0"),$(this).attr("title")&&($(this).attr("data-tooltip",$(this).attr("title")),$(this).attr("title",""))}))}}},8096:()=>{!function(e){var t=0,n="iframe",i="popup",o="loose",a="html5",r={mode:n,standard:a,popHt:500,popWd:400,popX:200,popY:200,popTitle:"",popClose
2:!1,extraCss:"",extraHead:"",retainAttr:["id","class","style"]},s={};e.fn.printArea=function(n){e.extend(s,r,n),(/Edge\/12./i.test(navigator.userAgent)||navigator.userAgent.match(/Trident\/7\./))&&(s.mode="popup",s.popClose=!0),t++;var i="printArea_";e("[id^="+i+"]").remove(),s.id=i+t;var o=e(this),a=l.getPrintWindow();l.write(a.doc,o),setTimeout((function(){l.print(a)}),1e3)};var l={print:function(t){var n=t.win;e(t.doc).ready((function(){n.focus(),n.print(),s.mode==i&&s.popClose&&setTimeout((function(){n.close()}),2e3)}))},write:function(e,t){e.open(),e.write(l.docType()+"<html>"+l.getHead()+l.getBody(t)+"</html>"),e.close()},docType:function(){return s.standard==a?"<!DOCTYPE html>":'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01'+(s.standard==o?" Transitional":"")+'//EN" "http://www.w3.org/TR/html4/'+(s.standard==o?"loose":"strict")+'.dtd">'},getHead:function(){var t="",n="";return s.extraHead&&s.extraHead.replace(/([^,]+)/g,(function(e){t+=e})),e(document).find("link").filter((function(){var t=e(this).attr("rel");return void 0===t==0&&"stylesheet"==t.toLowerCase()})).filter((function(){var t=e(this).attr("media");return void 0===t||""==t||"print"==t.toLowerCase()||"all"==t.toLowerCase()})).each((function(){n+='<link type="text/css" rel="stylesheet" href="'+e(this).attr("href")+'" >'})),s.extraCss&&s.extraCss.replace(/([^,\s]+)/g,(function(e){n+='<link type="text/css" rel="stylesheet" href="'+e+'">'})),"<head><title>"+s.popTitle+"</title>"+t+n+"</head>"},getBody:function(t){var n="",i=s.retainAttr;return t.each((function(){for(var t=l.getFormData(e(this)),o="",a=0;a<i.length;a++){var r=e(t).attr(i[a]);r&&(o+=(o.length>0?" ":"")+i[a]+"='"+r+"'")}n+="<div "+o+">"+e(t).html()+"</div>"})),"<body style='background-color: #fff;'>"+n+"</body>"},getFormData:function(t){var n=t.clone(),i=e("input,select,textarea",n);return e("input,select,textarea",t).each((function(t){var n=e(this).attr("type");void 0===n&&(n=e(this).is("select")?"select":e(this).is("textarea")?"textarea":"");var o=i.eq(t);"radio"==n||"checkbox"==n?o.attr("checked",e(this).is(":checked")):"text"==n?o.attr("value",e(this).val()):"select"==n?e(this).find("option").each((function(t){e(this).is(":selected")&&e("option",o).eq(t).attr("selected",!0)})):"textarea"==n&&o.text(e(this).val())})),n},getPrintWindow:function(){switch(s.mode){case n:var e=new l.Iframe;return{win:e.contentWindow||e,doc:e.doc};case i:var t=new l.Popup;return{win:t,doc:t.doc}}},Iframe:function(){var t,n=s.id;try{t=document.createElement("iframe"),document.body.appendChild(t),e(t).attr({style:"border:0;position:absolute;width:0px;height:0px;right:0px;top:0px;",id:n,src:"#"+(new Date).getTime()}),t.doc=null,t.doc=t.contentDocument?t.contentDocument:t.contentWindow?t.contentWindow.document:t.document}catch(e){throw e+". iframes may not be supported in this browser."}if(null==t.doc)throw"Cannot find document.";return t},Popup:function(){var e="location=yes,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no";e+=",width="+s.popWd+",height="+s.popHt,e+=",resizable=yes,screenX="+s.popX+",screenY="+s.popY+",personalbar=no,scrollbars=yes";var t=window.open("","_blank",e);return t.doc=t.document,t}}}(jQuery)},1300:()=>{$.extend($.fn,{validate:function(e){if(this.length){var t=$.data(this[0],"validator");return t||(this.attr("novalidate","novalidate"),t=new $.validator(e,this[0]),$.data(this[0],"validator",t),t.settings.onsubmit&&(this.on("click.validate",":submit",(function(e){t.submitButton=e.currentTarget,$(this).hasClass("cancel")&&(t.cancelSubmit=!0),void 0!==$(this).attr("formnovalidate")&&(t.cancelSubmit=!0)})),this.on("submit.validate",(function(e){function n(){var n,i;return t.submitButton&&(t.settings.submitHandler||t.formSubmitted)&&(n=$("<input type='hidden'/>").attr("name",t.submitButton.name).val($(t.submitButton).val()).appendTo(t.currentForm)),!(t.settings.submitHandler&&!t.settings.debug)||(i=t.settings.submitHandler.call(t,t.currentForm,e),n&&n.remove(),void 0!==i&&i)}return t.settings.debug&&e.preventDefault(),t.cancelSubmit?(t.cancelSubmit=!1,n()):t.form()?t.pendingRequest?(t.formSubmitted=!0,!1):n():(t.focusInvalid(),!1)}))),t)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,t,n;return $(this[0]).is("form")?e=this.validate().form():(n=[],e=!0,t=$(this[0].form).validate(),this.each((function(){(e=t.element(this)&&e)||(n=n.concat(t.errorList))})),t.errorList=n),e},rules:function(e,t){var n,i,o,a,r,s,l=this[0],c=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=l&&(!l.form&&c&&(l.form=this.closest("form")[0],l.name=this.attr("name")),null!=l.form)){if(e)switch(i=(n=$.data(l.form,"validator").settings).rules,o=$.validator.staticRules(l),e){case"add":$.extend(o,$.validator.normalizeRule(t)),delete o.messages,i[l.name]=o,t.messages&&(n.messages[l.name]=$.extend(n.messages[l.name],t.messages));break;case"remove":return t?(s={},$.each(t.split(/\s/),(function(e,t){s[t]=o[t],delete o[t]})),s):(delete i[l.name],o)}return(a=$.validator.normalizeRules($.extend({},$.validator.classRules(l),$.validator.attributeRules(l),$.validator.dataRules(l),$.validator.staticRules(l)),l)).required&&(r=a.required,delete a.required,a=$.extend({required:r},a)),a.remote&&(r=a.remote,delete a.remote,a=$.extend(a,{remote:r})),a}}});var e,t=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};$.extend($.expr.pseudos||$.expr[":"],{blank:function(e){return!t(""+$(e).val())},filled:function(e){var n=$(e).val();return null!==n&&!!t(""+n)},unchecked:function(e){return!$(e).prop("checked")}}),$.validator=function(e,t){this.settings=$.extend(!0,{},$.validator.defaults,e),this.currentForm=t,this.init()},$.validator.format=function(e,t){return 1===arguments.length?function(){var t=$.makeArray(arguments);return t.unshift(e),$.validator.format.apply(this,t)}:(void 0===t||(arguments.length>2&&t.constructor!==Array&&(t=$.makeArray(arguments).slice(1)),t.constructor!==Array&&(t=[t]),$.each(t,(function(t,n){e=e.replace(new RegExp("\\{"+t+"\\}","g"),(function(){return n}))}))),e)},$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.val
2idClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||-1!==$.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).addClass(t).removeClass(n):$(e).addClass(t).removeClass(n)},unhighlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).removeClass(t).addClass(n):$(e).removeClass(t).addClass(n)}},setDefaults:function(e){$.extend($.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}."),step:$.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm),this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e,t=this.currentForm,n=this.groups={};function i(e){var n=void 0!==$(this).attr("contenteditable")&&"false"!==$(this).attr("contenteditable");if(!this.form&&n&&(this.form=$(this).closest("form")[0],this.name=$(this).attr("name")),t===this.form){var i=$.data(this.form,"validator"),o="on"+e.type.replace(/^validate/,""),a=i.settings;a[o]&&!$(this).is(a.ignore)&&a[o].call(i,this,e)}}$.each(this.settings.groups,(function(e,t){"string"==typeof t&&(t=t.split(/\s/)),$.each(t,(function(t,i){n[i]=e}))})),e=this.settings.rules,$.each(e,(function(t,n){e[t]=$.validator.normalizeRule(n)})),$(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i),this.settings.invalidHandler&&$(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),$.extend(this.submitted,this.errorMap),this.invalid=$.extend({},this.errorMap),this.valid()||$(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(e){var t,n,i=this.clean(e),o=this.validationTargetFor(i),a=this,r=!0;return void 0===o?delete this.invalid[i.name]:(this.prepareElement(o),this.currentElements=$(o),(n=this.groups[o.name])&&$.each(this.groups,(function(e,t){t===n&&e!==o.name&&(i=a.validationTargetFor(a.clean(a.findByName(e))))&&i.name in a.invalid&&(a.currentElements.push(i),r=a.check(i)&&r)})),t=!1!==this.check(o),r=r&&t,this.invalid[o.name]=!t,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers
2)),this.showErrors(),$(e).attr("aria-invalid",!t)),r},showErrors:function(e){if(e){var t=this;$.extend(this.errorMap,e),this.errorList=$.map(this.errorMap,(function(e,n){return{message:e,element:t.findByName(n)[0]}})),this.successList=$.grep(this.successList,(function(t){return!(t.name in e)}))}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){$.fn.resetForm&&$(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)void 0!==e[t]&&null!==e[t]&&!1!==e[t]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===$.grep(this.errorList,(function(t){return t.element.name===e.name})).length&&e},elements:function(){var e=this,t={};return $(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter((function(){var n=this.name||$(this).attr("name"),i=void 0!==$(this).attr("contenteditable")&&"false"!==$(this).attr("contenteditable");return!n&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),i&&(this.form=$(this).closest("form")[0],this.name=n),!(this.form!==e.currentForm||n in t||!e.objectLength($(this).rules())||(t[n]=!0,0))}))},clean:function(e){return $(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return $(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=$([]),this.toHide=$([])},reset:function(){this.resetInternals(),this.currentElements=$([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t,n,i=$(e),o=e.type,a=void 0!==i.attr("contenteditable")&&"false"!==i.attr("contenteditable");return"radio"===o||"checkbox"===o?this.findByName(e.name).filter(":checked").val():"number"===o&&void 0!==e.validity?e.validity.badInput?"NaN":i.val():(t=a?i.text():i.val(),"file"===o?"C:\\fakepath\\"===t.substr(0,12)?t.substr(12):(n=t.lastIndexOf("/"))>=0||(n=t.lastIndexOf("\\"))>=0?t.substr(n+1):t:"string"==typeof t?t.replace(/\r/g,""):t)},check:function(e){e=this.validationTargetFor(this.clean(e));var t,n,i,o,a=$(e).rules(),r=$.map(a,(function(e,t){return t})).length,s=!1,l=this.elementValue(e);for(n in"function"==typeof a.normalizer?o=a.normalizer:"function"==typeof this.settings.normalizer&&(o=this.settings.normalizer),o&&(l=o.call(e,l),delete a.normalizer),a){i={method:n,parameters:a[n]};try{if("dependency-mismatch"===(t=$.validator.methods[n].call(this,l,e,i.parameters))&&1===r){s=!0;continue}if(s=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,i),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+i.method+"' method.",t),t instanceof TypeError&&(t.message+=". Exception occurred when checking element "+e.id+", check the '"+i.method+"' method."),t}}if(!s)return this.objectLength(a)&&this.successList.push(e),!0},customDataMessage:function(e,t){return $(e).data("msg"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())||$(e).data("msg")},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){"string"==typeof t&&(t={method:t});var n=this.findDefined(this.customMessage(e.name,t.method),this.customDataMessage(e,t.method),!this.settings.ignoreTitle&&e.title||void 0,$.validator.messages[t.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),i=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=$.validator.format(n.replace(i,"{$1}"),t.parameters)),n},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t);this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.val
2idClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return $(this.errorList).map((function(){return this.element}))},showLabel:function(e,t){var n,i,o,a,r=this.errorsFor(e),s=this.idOrName(e),l=$(e).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(t)):(n=r=$("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement.call(this,n,$(e)):n.insertAfter(e),r.is("label")?r.attr("for",s):0===r.parents("label[for='"+this.escapeCssMeta(s)+"']").length&&(o=r.attr("id"),l?l.match(new RegExp("\\b"+this.escapeCssMeta(o)+"\\b"))||(l+=" "+o):l=o,$(e).attr("aria-describedby",l),(i=this.groups[e.name])&&(a=this,$.each(a.groups,(function(e,t){t===i&&$("[name='"+a.escapeCssMeta(e)+"']",a.currentForm).attr("aria-describedby",r.attr("id"))}))))),!t&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,e)),this.toShow=this.toShow.add(r)},errorsFor:function(e){var t=this.escapeCssMeta(this.idOrName(e)),n=$(e).attr("aria-describedby"),i="label[for='"+t+"'], label[for='"+t+"'] *";return n&&(i=i+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(e){return e.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),$(e).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return $(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return $("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(e,t){return!!$(e,t.form).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!$.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,$(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],$(e).removeClass(this.settings.pendingClass),t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?($(this.currentForm).trigger("submit"),this.submitButton&&$("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&($(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,t){return t="string"==typeof t&&t||"remote",$.data(e,"previousValue")||$.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:t})})},destroy:function(){this.resetForm(),$(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("val
2idate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,t){e.constructor===String?this.classRuleSettings[e]=t:$.extend(this.classRuleSettings,e)},classRules:function(e){var t={},n=$(e).attr("class");return n&&$.each(n.split(" "),(function(){this in $.validator.classRuleSettings&&$.extend(t,$.validator.classRuleSettings[this])})),t},normalizeAttributeRule:function(e,t,n,i){/min|max|step/.test(n)&&(null===t||/number|range|text/.test(t))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?e[n]=i:t===n&&"range"!==t&&(e[n]=!0)},attributeRules:function(e){var t,n,i={},o=$(e),a=e.getAttribute("type");for(t in $.validator.methods)"required"===t?(""===(n=e.getAttribute(t))&&(n=!0),n=!!n):n=o.attr(t),this.normalizeAttributeRule(i,a,t,n);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var t,n,i={},o=$(e),a=e.getAttribute("type");for(t in $.validator.methods)""===(n=o.data("rule"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()))&&(n=!0),this.normalizeAttributeRule(i,a,t,n);return i},staticRules:function(e){var t={},n=$.data(e.form,"validator");return n.settings.rules&&(t=$.validator.normalizeRule(n.settings.rules[e.name])||{}),t},normalizeRules:function(e,t){return $.each(e,(function(n,i){if(!1!==i){if(i.param||i.depends){var o=!0;switch(typeof i.depends){case"string":o=!!$(i.depends,t.form).length;break;case"function":o=i.depends.call(t,t)}o?e[n]=void 0===i.param||i.param:($.data(t.form,"validator").resetElements($(t)),delete e[n])}}else delete e[n]})),$.each(e,(function(n,i){e[n]="function"==typeof i&&"normalizer"!==n?i(t):i})),$.each(["minlength","maxlength"],(function(){e[this]&&(e[this]=Number(e[this]))})),$.each(["rangelength","range"],(function(){var t;e[this]&&(Array.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(t=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(t[0]),Number(t[1])]))})),$.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var t={};$.each(e.split(/\s/),(function(){t[this]=!0})),e=t}return e},addMethod:function(e,t,n){$.validator.methods[e]=t,$.validator.messages[e]=void 0!==n?n:$.validator.messages[e],t.length<3&&$.validator.addClassRules(e,$.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"===t.nodeName.toLowerCase()){var i=$(t).val();return i&&i.length>0}return this.checkable(t)?this.getLength(e,t)>0:null!=e&&e.length>0},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},date:(e=!1,function(t,n){return e||(e=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(n)||!/Invalid|NaN/.test(new Date(t).toString())}),dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(e,t,n){var i=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i>=n},maxlength:function(e,t,n){var i=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i<=n},rangelength:function(e,t,n){var i=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i>=n[0]&&i<=n[1]},min:function(e,t,n){return this.optional(t)||e>=n},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},step:function(e,t,n){var i,o=$(t).attr("type"),a="Step attribute on input type "+o+" is not supported.",r=new RegExp("\\b"+o+"\\b"),s=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},l=function(e){return Math.round(e*Math.pow(10,i))},c=!0;if(o&&!r.test(["text","number","range"].join()))throw new Error(a);return i=s(n),(s(e)>i||l(e)%l(n)!=0)&&(c=!1),this.optional(t)||c},equalTo:function(e,t,n){var i=$(n);return this.settings.onfocusout&&i.not(".validate-equalTo-blur").length&&i.addClass("val
2idate-equalTo-blur").on("blur.validate-equalTo",(function(){$(t).valid()})),e===i.val()},remote:function(e,t,n,i){if(this.optional(t))return"dependency-mismatch";i="string"==typeof i&&i||"remote";var o,a,r,s=this.previousValue(t,i);return this.settings.messages[t.name]||(this.settings.messages[t.name]={}),s.originalMessage=s.originalMessage||this.settings.messages[t.name][i],this.settings.messages[t.name][i]=s.message,n="string"==typeof n&&{url:n}||n,r=$.param($.extend({data:e},n.data)),s.old===r?s.valid:(s.old=r,o=this,this.startRequest(t),(a={})[t.name]=e,$.ajax($.extend(!0,{mode:"abort",port:"validate"+t.name,dataType:"json",data:a,context:o.currentForm,success:function(n){var a,r,l,c=!0===n||"true"===n;o.settings.messages[t.name][i]=s.originalMessage,c?(l=o.formSubmitted,o.resetInternals(),o.toHide=o.errorsFor(t),o.formSubmitted=l,o.successList.push(t),o.invalid[t.name]=!1,o.showErrors()):(a={},r=n||o.defaultMessage(t,{method:i,parameters:e}),a[t.name]=s.message=r,o.invalid[t.name]=!0,o.showErrors(a)),s.valid=c,o.stopRequest(t,c)}},n)),"pending")}}})},1826:()=>{!function(e){var t=e.validator,n="unobtrusiveValidation";function i(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function o(t,n){var o=e(this).find("[data-valmsg-for='"+i(n[0].name)+"']"),a=o.attr("data-valmsg-replace"),r=a?!1!==JSON.parse(a):null;o.removeClass("field-validation-valid").addClass("field-validation-error"),t.data("unobtrusiveContainer",o),r?(o.empty(),t.removeClass("input-validation-error").appendTo(o)):t.hide()}function a(t,n){var i=e(this).find("[data-valmsg-summary=true]"),o=i.find("ul");o&&o.length&&n.errorList.length&&(o.empty(),i.addClass("validation-summary-errors").removeClass("validation-summary-valid"),e.each(n.errorList,(function(){e("<li />").html(this.message).appendTo(o)}))),e(this).triggerHandler("onerrors.validate",[this])}function r(e){var t=e.data("unobtrusiveContainer"),n=t.attr("data-valmsg-replace"),i=n?JSON.parse(n):null;t&&(t.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),i&&t.empty())}function s(t){var n=e(this);n.data("validator").resetForm(),n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function l(t){var i=e(t),l=i.data(n),c=e.proxy(s,t);return l||(l={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:e.proxy(o,t),invalidHandler:e.proxy(a,t),messages:{},rules:{},success:e.proxy(r,t)},attachValidation:function(){i.off("reset."+n,c).on("reset."+n,c).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(n,l)),l}t.unobtrusive={parse:function(n){var i=e(n).parents("form").addBack().add(e(n).find("form")).filter("form");e(n).find(":input[data-rule-remote]").each((function(){t.unobtrusive.extendRemote(this)})),i.each((function(){var e=l(this);e&&e.attachValidation()}))},extendRemote:function(t){var n,o,a,r=e(t),s=r.parents("form")[0];if(s){(n=l(s)).options.rules[t.name]=o={},n.options.messages[t.name]=a={};var c=r.attr("data-msg-remote")||"",u={};u.url=r.attr("data-rule-remote"),u.type=r.attr("data-type-remote"),u.additionalfields=r.attr("data-additionalfields-remote");var d={element:t,form:s,message:c,params:u,rules:o,messages:a},h={url:d.params.url,type:d.params.type||"GET",data:{}};e.each(function(e){return e.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}(d.params.additionalfields||d.element.name),(function(t,n){h.data[n]=function(){var t=e(d.form).find(":input[name='"+i(n)+"']").attr("type");return null!=t&&"radio"==t.toLowerCase()?e(d.form).find(":input[name='"+i(n)+"']:checked").val():e(d.form).find(":input[name='"+i(n)+"']").val()}})),function(e,t,n){e.rules[t]=n,e.message&&(e.messages[t]=e.message)}(d,"remote",h),e.extend(o,{__dummy__:!0})}}},t.addMethod("__dummy__",(function(e,t,n){return!0})),e((function(){t.unobtrusive.parse(document)}))}(jQuery),jQuery.validator.addMethod("custom",(function(e,t){for(var n=$(t).data("rule-custom").split(","),i=!0,o=0;o<n.length;o++){let r=n[o],s=r.split("."),l=null;if(s.length>1){l=window[s[0]];for(let e=1;e<s.length;e++){let t=s[e];if(!l[t]){l=null;break}l=l[t]}}else l=window[r];var a=!0;l&&(a=l(e,t)),a||(i=!1)}return i}),"validation failed."),jQuery.validator.addMethod("dateUSA",(function(e,t){var n=!1;if(/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(e)){var i=e.split("/"),o=parseInt(i[0],10),a=parseInt(i[1],10),r=parseInt(i[2],10),s=new Date(r,o-1,a);n=s.getFullYear()===r&&s.getMonth()===o-1&&s.getDate()===a}else n=!1;return this.optional(t)||n}),"Please enter a correct date"),jQuery.validator.addMethod("pattern",(function(e,t,n){if(this.optional(t))return!0;
2if("string"==typeof n)if(/^\/{1}.+\/{1}[a-zA-Z]?$/.test(n)){var i=(n=n.replace(/^\//,"")).match(/\/{1}[a-zA-Z]?$/);i.length>0?(i=i[0].replace("/",""),n=n.replace(/\/{1}[a-zA-Z]?$/,"")):i="",n=new RegExp(n,i)}else n=new RegExp("^(?:"+n+")$");return n.test(e)}),"Invalid format."),jQuery.validator.addMethod("maxfilesize",(function(e,t,n){if(this.optional(t))return!0;if(t.files){var i=parseInt(1e3*n);return!!isNaN(i)||t.files[0].size<=i}return"string"==typeof n&&(n=new RegExp("^(?:"+n+")$")),n.test(e)}),"File is too large."),jQuery.validator.addMethod("maxlength",(function(e,t,n){return""==e||e.replace(/(\n)/g,"##").length<=n})),jQuery.validator.addMethod("intval",(function(e,t){return this.optional(t)||/^(0|[1-9]\d*)$/.test(e)})),function(e){e.fn.addEventsToJqueryValidate=function(){return e(this).each((function(){var t=e(this),n=t.data("validator");n&&(t.data("addEventsToJqueryValidate")||(t.data("addEventsToJqueryValidate",!0),n.settings.onfocusout=function(i){n.checkable(i)||!(i.name in n.submitted)&&n.optional(i)||(t.trigger("beforeonfocusoutvalidate",i),n.element(e(i)))}))}))}}(jQuery)},692:()=>{window.ajaxWaitTimer=null,jQuery,jQuery.ajaxWait=function(e){if(null!=ajaxWaitTimer)return;let t=jQuery.extend({},jQuery.ajaxWait.defaults,e);ajaxWaitTimer=setTimeout((function(){alertify.modalblock("")}),t.waitInterval)},jQuery.ajaxWait.defaults={container:null,waitInterval:2e3},jQuery.ajaxWaitOver=function(){ajaxWaitTimer&&(clearTimeout(ajaxWaitTimer),alertify.modalblock().close(),ajaxWaitTimer=null)},jQuery,jQuery.trim2=function(e){return null==e?"":(e+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},function(e){jQuery.fn.numericOnly=function(t){let n=e.extend({},{allowDecimal:!1,allowNegative:!1,allowPaste:!0},t),i=/^[0-9]+$/;return n.allowPaste&&(n.allowDecimal&&n.allowNegative?i=/^-?[0-9]+(\.[0-9]+)?$/:!n.allowDecimal&&n.allowNegative?i=/^-?[0-9]+$/:n.allowDecimal&&!n.allowNegative&&(i=/^[0-9]+(\.[0-9]+)?$/)),this.each((function(){e(this).on("keydown",(function(e){if(n.allowPaste&&e.ctrlKey)return!0;46==e.keyCode||8==e.keyCode||9==e.keyCode||27==e.keyCode||13==e.keyCode||n.allowDecimal&&(110==e.keyCode||190==e.keyCode)||n.allowNegative&&(109==e.keyCode||189==e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39||(e.shiftKey||(e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105))&&e.preventDefault()})).on("paste",(function(e){let t=e.originalEvent.clipboardData.getData("text");i.test(t)||e.preventDefault()}))}))}}(jQuery),function(e){jQuery.fn.restrictMaxLength=function(t){return this.each((function(){let n=e(this),i=jQuery.extend({},jQuery.fn.restrictMaxLength.defaults,t);if("1"===n.data("wired"))return;n.data("wired","1");let o=e(this).data("chars-remaining-label"),a=e(this).data("rule-maxlength"),r=n.data("serversidelinebreaks");if(void 0===r&&(r=i.serverSideLineFeed),void 0===a&&(a=i.maxlength),null==a&&(a=n.attr("maxlength")),null==a&&(a=1),null==o&&(o=i.label),null==o&&null!=this.id&&(o=this.id+"-remaining"),null==o)return;let s=e("#"+o);function l(e,t,n){let o=n-c(e.val(),r);t.html(o+" characters remaining"),i.onSetRemaining&&i.onSetRemaining(e,t,o)}function c(e,t){return t?e.replace(/(\n)/g,"##").length:e.length}0!=s.length&&(l(n,s,a),n.on("keyup",(function(){l(n,s,a)})),n.on("input propertychange",(function(){let e=n.val();c(e,r)>a&&n.val(e.substring(0,a))})))}))},jQuery.fn.restrictMaxLength.defaults={maxlength:null,label:null,onSetRemaining:null,serverSideLineFeed:!0}}(jQuery),function(e){e.fn.initialFocus=function(){e(this).each((function(){e("input[type!=hidden]:first",e(this)).trigger("focus")}))}}(jQuery),function(e,t,n){"use strict";e.fn.formprompt=function(i){return this.each((function(){let o=jQuery.extend({},jQuery.fn.formprompt.defaults,i),a="",r=e(this),s=e(t),l=e(n),c=!1;function u(){let t=r.serialize();return r.find("input[type=file]").each((function(){t+=e(this).val()})),t}l.on("click","body",(function(t){let n=e(t.target);c=!0,(n.is(o.excludeselector)||"1"==n.data("noprompt"))&&(c=!1)})),r.on("submit",(function(){c=!1})),l.ready((function(){a=u()})),s.on("beforeunload",(function(e){if(u()!==a&&c)return e.preventDefault(),c=!0,o.msg}))}))},jQuery.fn.formprompt.defaults={msg:"There are unsaved changes on this form",excludeselector:".noprompt"}}(jQuery,window,document),$((function(){$("table.mnw-resp-card-table-sm, table.mnw-resp-card-table-md, table.mnw-resp-card-table-lg, table.mnw-resp-card-table-xl").each((function(){$(this).cardtable()}))})),function(e){e.fn.cardtable=function(){let t=e(this);if(t.length>0&&!t.is("table"))throw"Not a table";t.find("thead > tr > th").each((function(n){let i=e(this),o=i.html();i.attr("data-title")&&(o=i.attr("data-title")),o=o.replace(" ",""),e("tbody > tr > td:nth-child("+(n+1)+")",t).each((function(t){let n=e(this);void 0!==n.attr("data-title")||n.attr("data-title",o)}))})),t.find("td").each((function(t){let n=e(this);""==n.html().trim()&&n.html(" ")}))}}(jQuery),function(e){e.fn.disableIframeContent=function(){let t=e(this);return t.each((function(){let t=e(this).contents();t.find('body a, body button, body input[type="button"], body input[type="submit"]').on("click",(function(e){e.preventDefault()})),t.find('body input[type="text"]').each((function(t){e(this).prop("autocomplete","off")})),t.find('body button, body input[type="button"], body input[type="submit"]').each((function(t){e(this).prop("disabled","disabled")})),t.find("body .g-recaptcha").css("display","none")})),t}}(jQuery),function(e){e.fn.writeIframeContent=function(t,n){let i=e(this);return i.each((function(){let e=this,i=e.contentWindow.document;i.open();try{i.write(t),!0===n&&(e.height=e.contentWindow.document.body.scrollHeight)}catch(e){i.write("<html><head><title></title></head><body>Error</body></html>")}i.close()})),i}}(jQuery),jQuery,jQuery.togglePasswordFields=function(e){let t=e.data("toggleclass"),n=$("."+t),i="Password";n.length>1&&(i="Passwords"),n.each((function(){let t=this;"password"===t.type?(t.type="text",e.text("Hide "+i)):(t.type="password",e.text("Show "+i))}))},function(e){e.fn.collapsible=function(t){return void 0===t&&(t={}),e(this).each((function(){var n=e(this);t.stopselector&&e(t.stopselector,n).on("click",(e=>{e.stopPropagation()}
2)),n.on("click",(function(i){var o=n.data("collapse"),a=e("#"+o),r=!0;a.is(":visible")?a.slideUp("fast",(function(){e("i",n).html("keyboard_arrow_down")})):(a.slideDown("fast",(function(){e("i",n).html("keyboard_arrow_up")})),r=!1),i.preventDefault(),t&&t.callback&&t.callback(n,r)}))}))}}(jQuery),function(e){e.fn.disableOnSubmit=function(){e(this).each((function(){var t=e(this);if(void 0!==t.data("disable-set"))return;t.data("disable-set","1");let n="legacy"===t.data("mnw-disable");jQuery().validate&&!n?t.validate().settings.submitHandler=function(n){if(1==t.data("submitted"))return!1;t.data("submitted",!0),n.submit(),window.setTimeout((function(){e('input[type="submit"], button[type="submit"]',t).attr("disabled","disabled")}),200)}:t.on("submit",(function(){return 1!=t.data("submitted")&&!(jQuery().validate&&!t.valid())&&(window.setTimeout((function(){e('input[type="submit"], button[type="submit"]',t).attr("disabled","disabled")}),200),void t.data("submitted",!0))}))}))}}(jQuery),function(e){e.fn.disableSubmit=function(){e(this).each((function(){e('input[type="submit"], button[type="submit"]',e(this)).attr("disabled","disabled")}))}}(jQuery)},2557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlbumDeletePage:()=>y,CustomFormFieldLoader:()=>s,OrganizerContactForm:()=>k,OrganizerContactList:()=>C,OrganizerNotesList:()=>T,OrganizerValidators:()=>o,PhotoDeletePage:()=>b,ProfileForm:()=>x,ProfilePhotoForm:()=>w,QuestionnaireSummary:()=>E,Validators:()=>i});var i={};n.r(i),n.d(i,{cf_validate_cbox_required:()=>d,cf_validate_cboxlist_minmax:()=>h,cf_validate_cboxlist_required:()=>u,cf_validate_chooseMinMax:()=>l,cf_validate_fieldLevel:()=>c,cf_validate_namefields:()=>v,cf_validate_proplist_required:()=>m,cf_validate_smsagree:()=>g,memdir_vld_id_custom:()=>f,vld_relatedchild:()=>p});var o={};function a(e,t){$("."+e).on("change",(function(){let e=$(this),n=e.data("childfield");n=n.replace(/\[/g,"\\["),n=n.replace(/\]/g,"\\]");let i=$("#"+n),o=i.parent(),a=e.data("childval"),r=e.data("mode"),s=e.data("ucount");isNaN(r)&&(r="0"),isNaN(s)&&(s="0"),$.post(t,{id:e.val(),cid:a,mode:r,ucount:s},null,"json").done((function(e){if(0==e.length)i.html('<option value=""></option>'),o.hide();else{let t="";for(let n=0;n<e.length;n++)t+='<option value="'+e[n].value+'">'+e[n].text+"</option>";i.html(t),o.show()}})).fail(WebUI.handleAjaxError)}))}n.r(o),n.d(o,{vld_firstname_or_company:()=>_});const r={MainPanel:null,SelectorPanel:null,AddPanel:null,PropertyDropDown:null,PropertyGroupDropDown:null,Button_OK:null,Button_Cancel:null,Button_Add:null,CustomValidatorId:null,CustomValidator_Msg:null,RequiredValidatorId:null,PropertyList:null,DataName:null,Form:null,ValidateUrl:"/admin2/manageusers/ajax/ajax-validators.php?func=validateprop",AjaxPropertyDropDownUrl:"/admin2/manageusers/ajax/ajax-operations.php?func=getprops",init:function(){r.Main=$("#mu-propselector"),0!=r.Main.length&&(a("ajaxpropertygroup",r.AjaxPropertyDropDownUrl),r.Form=$("form"),r.SelectorPanel=$("div.mu-propselector-panel",r.Main),r.AddPanel=$("div.mu-addprop-panel",r.Main),r.PropertyDropDown=$("div.relatedchild select",r.SelectorPanel),r.PropertyGroupDropDown=$("div.cf-parent select",r.SelectorPanel),r.Button_OK=$("button.ok",r.SelectorPanel),r.Button_Cancel=$("button.cancel",r.SelectorPanel),r.Button_Add=$(".mu-addprop-panel a.addprop"),r.PropertyList=$("ul.mu-proplist"),r.RequiredValidatorId=r.Main.data("requiredval"),r.CustomValidatorId=r.Main.data("customval"),r.CustomValidator_Msg=$('[data-valmsg-for="'+WebUI.escapeAttributeValue(r.CustomValidatorId)+'"]',r.Main),r.DataName=r.Main.data("datavaluename"),r.wirePropertySelector())},wirePropertySelector:function(){r.PropertyList.on("click",".del-prop",(function(e){e.preventDefault();var t=$(this);alertify.customconfirm("Are you sure you want to remove this Property?",(function(){t.closest("li").remove()}))})),r.PropertyGroupDropDown.on("change",(function(){r.toggleValidator(!0,"")})),r.Button_Add.on("click",(function(e){r.toggleSelector(!1),e.preventDefault()})),r.Button_OK.on("click",(function(){var e="";r.PropertyDropDown.is(":visible")&&(e=r.PropertyDropDown.val());var t=e.length>0;if(r.toggleValidator(t,"Select a Property"),t){let t=$('input[type="hidden"].pid').length;t++;let n=$("#ctxp").val();void 0===n&&(n=99),r.Button_OK.prop("disabled",!0),r.Button_Cancel.prop("disabled",!0),$.post(r.ValidateUrl,{pid:e,selected:t,ctx:n},null,"json").fail((function(){WebUI.modalError()})).done((function(t){if(1==t.result){r.toggleValidator(!0,"");var n=$("option:selected",r.PropertyDropDown).html(),i=$("option:selected",r.PropertyGroupDropDown).html();r.toggleSelector(!0),r.addToPropertyList(e,i,n)}else r.toggleValidator(!1,t.message)})).always((function(){r.Button_OK.prop("disabled",!1),r.Button_Cancel.prop("disabled",!1)}))}})),r.Button_Cancel.on("click",(function(){r.toggleSelector(!0)}))},toggleSelector:function(e){e?(r.SelectorPanel.hide("medium"),r.AddPanel.show("medium"),r.PropertyDropDown.val(""),r.PropertyGroupDropDown.val("").trigger("change"),r.toggleValidator(!0,"")):(r.SelectorPanel.show("medium"),r.AddPanel.hide("medium"))}
2,toggleValidator:function(e,t){e?r.CustomValidator_Msg.html(t).removeClass("field-validation-error").addClass("field-validation-valid"):r.CustomValidator_Msg.html(t).removeClass("field-validation-valid").addClass("field-validation-error")},addToPropertyList:function(e,t,n){var i=!0;if($("input.pid").each((function(){$(this).val()==e&&(i=!1)})),i){var o='<input class="pid" type="hidden" class="pid" name="'+r.DataName+'[]" value="'+e+'" />(<a class="del-prop" href="#">remove</a>)',a=$("<li>"+t+"/"+n+o+"</li>");r.PropertyList.append(a)}null!=r.RequiredValidatorId&&r.Form.validate().element("#"+WebUI.escapeAttributeValue(r.RequiredValidatorId))}},s={init:function(){r.init(),a("ajaxchaptergroup","/admin2/manageusers/ajax/ajax-operations.php?func=getchaps")}};function l(e,t){var n=$("#choosemax").val();return 0==n.length||0==e.length||!((n=parseInt(n))<(e=parseInt(e))||e>n)||($(t).data("msg-custom","Invalid range"),!1)}function c(e,t){return 0!=$("#fieldlevel1:checked, #fieldlevel2:checked, #fieldlevel3:checked").length}function u(e,t){var n=$(t).attr("id");if(!n)return!0;if("[0]"!=n.match(/\[0\]$/))return!1;if(n=(n=(n=n.replace(/\[0\]$/,"")).replace(/\[/g,"\\[")).replace(/\]/g,"\\]"),$('input[id^="'+n+'"]:checked').length>0)return $(t).data("msg-custom",""),!0;var i=$(t);return""!=i.data("msg-custom")&&null!=i.data("msg-custom")||$(t).data("msg-custom","Required"),!1}function d(e,t){var n=$(t).attr("id");return!n||"[0]"==n.match(/\[0\]$/)&&(n=(n=(n=n.replace(/\[0\]$/,"")).replace(/\[/g,"\\[")).replace(/\]/g,"\\]"),$('input[id^="'+n+'"]:checked').length>0?($(t).data("msg-custom",""),!0):($(t).data("msg-custom","Required"),!1))}function h(e,t){let n=$(t);var i=n.attr("id");if(!i)return!0;if("[0]"!=i.match(/\[0\]$/))return!1;var o=n.data("minmax");if(!o||-1==o.indexOf("^"))return!0;var a=o.split("^");if(2!=a.length)return!0;var r=a[0],s=a[1];i=(i=(i=i.replace(/\[0\]$/,"")).replace(/\[/g,"\\[")).replace(/\]/g,"\\]");var l=$('input[id^="'+i+'"]:checked').length;if(0==l)return!0;var c="";return r>-1&&s>-1&&s!=r&&(c="Select "+r+" - "+s+" checkboxes"),r>-1&&s>-1&&s==r?c="Select "+r+" checkbox":-1==r?c="Select no more than "+s+" checkboxes":-1==s&&(c="Select at least "+s+" checkboxes"),!(l<r||s>-1&&l>s)||(n.data("msg-custom",c),!1)}function f(e,t){if(e.length>0)return!0;var n=$("#id_custom\\[1\\]").val();return(n=n?n.trim():"").length>0}function p(e,t){var n=$(t),i=n.data("parentfield");return null==e?(n.data("msg-custom","Required"),!1):e.length>0||0==i.length||0==$("#"+WebUI.escapeAttributeValue(i)).val().length||(0==e.length?(n.data("msg-custom","Required"),!1):void 0)}function m(e,t){var n=$(t).data("id");return $('input[name="'+n+'[]"]').length>0}function v(e,t){var n=!1,i=!1,o=0;return $('input[data-namefield="1"]').each((function(e,t){var a=$(t),r=a.data("rule-required"),s=a.val();s=s?s.trim():"",o++,1==r&&(n=!0),s.length>0&&(i=!0)})),!!n||!!i||(o>1?$(t).data("msg-custom","One of these name fields is required"):$(t).data("msg-custom","Required"),!1)}function g(e,t){return 0===e.length||document.querySelector("input[name='agree-"+t.id+"']").checked}const y={DeleteUrl:"/admin2/manageusers/ajax/ajax-photos.php?func=deletealbum",initDeletePage:function(){$("a.delete").on("click",(function(){var e=$
2(this).data("val");return alertify.customconfirm("Are you sure you wish to delete this album?",(function(){y.doDelete(e)})),!1}))},doDelete:function(e){var t=$('a[data-val="'+e+'"]'),n=t.closest("td"),i=t.closest("tr");n.html(""),n.append(WebUI.smallAjaxImageTag),$.post(y.DeleteUrl,{id:e},null,"json").done((function(e){"false"==e?WebUI.modalError():(i.remove(),0==$("#tblAlbum > tbody > tr").length&&window.location.reload())})).fail(WebUI.handleAjaxError)}},b={DeleteUrl:"/admin2/manageusers/ajax/ajax-photos.php?func=deletealbumphoto",initDeletePage:function(){$("a.delete").on("click",(function(){var e=$(this).data("val");return alertify.customconfirm("Are you sure you wish to delete this photo?",(function(){b.doDelete(e)})),!1}))},doDelete:function(e){var t=$('a[data-val="'+e+'"]'),n=t.closest("td"),i=t.closest("tr");n.html(""),n.append(WebUI.smallAjaxImageTag),$.post(b.DeleteUrl,{id:e},null,"json").done((function(e){"false"==e?WebUI.modalError():(i.remove(),0==$("#tblPhoto > tbody > tr").length&&window.location.reload())})).fail(WebUI.handleAjaxError)}},x={init:function(){document.querySelectorAll("input[data-smsagree]").forEach((e=>{e.addEventListener("change",(function(t){if(!e.checked){let e=t.target.parentNode;e&&(e.querySelector("input[type=text]").value="")}}))}))}},w={DeleteUrl:"/admin2/manageusers/ajax/ajax-photos.php?func=deleteprofilephoto",Location:"",init:function(e){w.Location=e,$(".photocontrols a.delete").on("click",(function(e){e.preventDefault();var t=$(this),n=t.data("fileid"),i=t.data("panel");return alertify.customconfirm("Are you sure you wish to delete this image file?",(function(){w.deleteProfilePhoto(i,n)})),!1})),$("#rotate").on("change",(function(){$("a.delete").hide(),$("form").trigger("submit")})),document.querySelectorAll("input[data-smsagree]").forEach((e=>{e.addEventListener("change",(function(t){e.checked||(t.target.closest("input").value="")}))}))},deleteProfilePhoto:function(e,t){var n=$("#id").val();n?(""===w.Location&&$(".photocontrols",$("#photopanel-1")).html(WebUI.smallAjaxImageTag),$.ajaxWait(),$.post(w.DeleteUrl,{id:n,field:t},null,"json").done((function(t){$.ajaxWaitOver(),"false"==t?(alert("false"),WebUI.modalError()):""!==w.Location?window.location=w.Location:w.toggleDeleteUI(e)})).fail((function(e,t,n){WebUI.modalError()}))):WebUI.modalError("Error")},toggleDeleteUI:function(e){var t=$("#photopanel-"+e);if(0!=t.length){$(".photocontrols",t).html(""),$(".fileupload",t).show();var n=$("#btnSave");n.length>0&&n.show()}else WebUI.modalError()}},k={init:function(){k.toggleCategory(),$("#categoryname").on("change",(function(){k.toggleCategory()}))},toggleCategory:function(){const e=$("#newcategoryname");""===$("#categoryname").val()?e.prop("disabled",!1):(e.prop("disabled",!0),e.val(""))}},C={Form:null,DeleteContactUrl:"/admin2/organizer/ajax/ajax-operations.php?func=deletecontact",init:function(){C.Form=$("form"),$(".delete").on("click",(function(e){var t=$(this).data("id");alertify.customconfirm("Are you sure you want to delete this contact?",(function(){C.doUpdate(t)})),e.preventDefault()}))},doUpdate:function(e){var t=C.DeleteContactUrl,n=$('a[data-id="'+e+'"]'),i=n.closest("td"),o=n.closest("tr");i.html(""),i.append(WebUI.smallAjaxImageTag),$.post(t,{id:e},null,"json").done((function(e){0==e?WebUI.modalError():o.remove()})).fail(WebUI.handleAjaxError)}},T={Form:null,DeleteNotesUrl:"/admin2/organizer/ajax/ajax-operations.php?func=deletenote",init:function(){T.Form=$("form"),$(".delete").on("click",(function(e){var t=$(this).data("id");alertify.customconfirm("Are you sure you want to delete this note?",(function(){T.doUpdate(t)})),e.preventDefault()}))},doUpdate:function(e){var t=T.DeleteNotesUrl,n=$('a[data-id="'+e+'"]'),i=n.closest("td"),o=n.closest("tr");i.html(""),i.append(WebUI.smallAjaxImageTag),$.post(t,{id:e},null,"json").done((function(e){0==e?WebUI.modalError():o.remove()})).fail(WebUI.handleAjaxError)}};function _(e,t){const n=$(t),i=$("#firstname"),o=$("#company");return!(!i.val()&&!o.val()&&(n.data("msg-custom","Either First name or Company must be entered."),1))}const E={init:function(){var e=document.getElementById("toggleText"),t=document.getElementById("displayText");let n=document.getElementById("displayText");null!==n&&n.addEventListener("click",(n=>{n.preventDefault(),"block"==e.style.display?(e.style.display="none",t.innerHTML="Show Comments"):(e.style.display="block",t.innerHTML="Hide Comments")}))}}},3144:(e,t,n)=>{var i=n(9513),o=n(7649);void 0===o.$&&(o.$=i),void 0===o.jQuery&&(o.jQuery=i),e.exports=i}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}
2}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";n(3144);var e=n(8487);const t={smallAjaxImageTag:'<img src="/admin2/adminfiles/grfx/icon_ajax_16x16.gif" alt="Working" />',modalError:function(e,t){jQuery.ajaxWaitOver(),void 0===t&&(t=!0),null==e&&(e="Unfortunately, you have encountered an error."),t&&alertify.closeAll(),alertify.alert("<strong>Error!</strong>",'<div class="mnw-danger-box">'+e+"</div>")},showModal:function(e,t,n,i){let o=document.createElement("div");o.style.display="none",o.innerHTML=t,document.body.appendChild(o),alertify.modalcontent(e,o,n,i)},loadModal:function(e,n,i,o,a,r){null==o&&(o="GET"),$.ajaxWait(),$.ajax({url:e,data:n,type:o}).done((function(e){t.showModal(i,e,a,r),$.ajaxWaitOver()})).fail(t.handleAjaxError)},escapeAttributeValue:function(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")},formatInputValueAsCurrency:function(e){let t=e.val();if(t.length>0){let n=parseInt(e.attr("maxlength"));if(isNaN(n)&&(n=99999),t=parseFloat(t),!isNaN(t)){let i=t.toFixed(2);i.length<=n&&e.val(i)}}},closeAllModals:function(){alertify.closeAll()},is_touch_device:function(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0},is_bs3_responsive_mode:function(){return $(window).width()<=991},is_bs5_responsive_mode:function(){return $(window).width()<=1199},handleAjaxError:function(e,n){let i=e.getResponseHeader("LOGONREQUIRED"),o=e.getResponseHeader("AJAX_REDIRECT");return o&&o.length>0?(jQuery.ajaxWaitOver(),window.location=o,!1):401==e.status||i?(window.location="/error/sessionexpired.php",!1):void t.modalError()}},i={plugins:"link image code searchreplace table anchor fullscreen lists advlist autoresize quickbars media autolink accordion",skin:"mnw-tinyskin",min_height:350,max_height:1e3,hidden_input:!1,statusbar:!1,contextmenu:"image table",file_picker_callback:null,menubar:!1,toolbar_sticky:!1,toolbar_mode:"wrap",mobile:{toolbar_mode:"wrap",max_height:500},toolbar:["code | cut copy paste undo redo searchreplace | link unlink media image anchor | hr table fullscreen","bold italic underline strikethrough | subscript superscript | numlist bullist | outdent indent | align","styles | removeformat","fontfamily fontsize forecolor"],content_css:["/admin2/dynamic_css/tinymce_styles.php?"+(new Date).getTime()],body_class:"mnw-editor-body",font_size_formats:"10px 11px 12px 13px 14px 15px 16px 17px 18px 19px 20px 21px 22px 23px 24px 25px 26px 27px 28px 29px 30px",font_family_formats:"Arial=Arial; Georgia=Georgia; Times New Roman=Times New Roman; Trebuchet MS=Trebuchet MS; Verdana=Verdana",valid_children:"+body[style]",allow_html_in_named_anchor:!0,forced_root_block:"div",sandbox_iframes:!1,convert_unsafe_embeds:!1,formats:{aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{"text-align":"center"}},{selector:"table",styles:{"margin-left":"auto","margin-right":"auto"}}]},file_picker_types:"",paste_as_text:!0,paste_block_drop:!0,smart_paste:!1,paste_data_images:!1,browser_spellcheck:!0,table_use_colgroups:!0,table_default_attributes:{},relative_urls:!1,document_base_url:"/",convert_urls:!1,text_patterns:!1,link_default_protocol:"http",image_advtab:!0,image_class_list:[{title:"Responsive",value:"mnw-img-responsive"},{title:"Not Responsive",value:"mnw-img-notresponsive"}],object_resizing:!1,quickbars_selection_toolbar:!1,quickbars_insert_toolbar:!1,quickbars_image_toolbar:!1,quickbars_table_toolbar:!1,table_advtab:!0,table_row_advtab:!0,table_cell_advtab:!0,table_toolbar:"",init_instance_callback:e=>{e.serializer.addNodeFilter("img",((e,t)=>{e.forEach((function(e){if(void 0!==e.attr("class")){let t=e.attr("class").split(" "),n=[];t.forEach((function(e){"img-responsive"===e?n.push("mnw-img-responsive"):"center-block"!==e&&n.push(e)})),n=n.join(" "),n!==e.attr("class")&&e.attr("class",n)}}))}))},details_serialized_state:"collapsed"},o={styles:void 0,fetchStyles:null,googleFontsHref:void 0,fetchGoogleFontsHref:null,loadGoogleFontsIntoDocument:function(){return document.querySelector("link[data-mnw-google-fonts]")?Promise.resolve():(null==o.fetchGoogleFontsHref&&(o.fetchGoogleFontsHref=fetch("/admin2/dynamic_css/tinymce_googlefonts_js.php").then((e=>e.json())).then((e=>{o.googleFontsHref=e.href})).catch((()=>{}))),o.fetchGoogleFontsHref.then((function(){if(o.googleFontsHref&&!document.querySelector("link[data-mnw-google-fonts]")){let e=document.createElement("link");e.rel="stylesheet",e.href=o.googleFontsHref,e.setAttribute("data-mnw-google-fonts",""),document.head.appendChild(e)}})))},initTinyMceUnobtrusive:function(e){let t=document.querySelectorAll(e);Array.from(t).forEach((e=>{let t="basic",n="",i=!1,r={},s="",l=!1;return e.dataset.mnwTmce&&(t=e.dataset.mnwTmce),e.dataset.mnwTmcerole&&(n=e.dataset.mnwTmcerole),e.dataset.mnwTmceabs&&(i=e.dataset.mnwTmceabs),e.dataset.mnwTmceextended&&(r=JSON.parse(e.dataset.mnwTmceextended)),e.dataset.mnwTmceescape&&(l=e.dataset.mnwTmceescape),e.id?s="#"+e.id:e.name&&(s='[name="'+e.name+'"]'),o.initTinyMce(o.getEscapedSelector(s,l),t,r,new a(n,i)).then((e=>tinymce.init(e)))}))},initTinyMce:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,r=document.querySelectorAll(e);return Array.from(r).forEach((e=>{e.style.visibility="hidden"})),null!==i&&(i instanceof a||(i=new a)),o.fetchConfig(e,t,n,i).then((e=>tinymce.init(e)))},fetchConfig:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=null,r=!1,s=!1;"basic"!==t&&"full"!==t&&"knowledgebase"!==t||o.loadGoogleFontsIntoDocument(),null!==i&&(i.abs&&(r=!1,s=!0),a=function(e,t,n){o.showCkFinderModal(i,e,t,n)}),"supportdesk"===t?n={...n,content_css:["/admin2/common/scripts/vendor/tinymce/styles/support-content.css"],body_class:"",link_default_target:"_blank"}
2:"email"===t?n={...n,file_picker_types:"file image",file_picker_callback:a,remove_script_host:r,convert_urls:s,content_css:["/admin2/dynamic_css/tinymce_styles.php?"+(new Date).getTime()+"&fbg=1&nowebfonts=1"]}:"messageboard"===t?n={...n,content_css:["/admin2/dynamic_css/tinymce_styles.php?"+(new Date).getTime()+"&fbg=1&ff=1"]}:"none"===t?n={...n,min_height:200,content_css:["/admin2/dynamic_css/tinymce_styles.php?"+(new Date).getTime()+"&fbg=1"]}:"basic"===t||"full"===t||"knowledgebase"===t?n={...n,file_picker_types:"file image media",file_picker_callback:a,convert_urls:s,remove_script_host:r}:"public"===t&&(n={...n,content_css:["/admin2/dynamic_css/tinymce_styles.php?"+(new Date).getTime()+"&fbg=1&ff=1"]});let l=this.getTinyToolbarCfg(e,t,n);if("basic"===t||"full"===t){if(void 0===o.styles){null==o.fetchStyles&&(o.fetchStyles=fetch("/admin2/contenteditor/dbstyles_js.php").then((e=>e.json())).then((e=>{o.styles=e})).catch((e=>{throw new Error(e)})));try{await o.fetchStyles}catch(e){WebUI.modalError("An error occurred. Unable to load editor",!0)}return{...l,...o.styles}}return{...l,...o.styles}}return l},getTinyToolbarCfg:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={};return o["tinytoolbar_"+t]&&(a=o["tinytoolbar_"+t]),{...i,selector:e,...a,...n}},showCkFinderModal:function(e,t,n,i){let o="Documents:/",a=e.getCkFinderQueryString();"image"===i.filetype&&(o="Images:/"),CKFinder.modal({chooseFilesClosePo
2pup:!0,chooseFiles:!0,connectorInfo:a,startupPath:o,onInit:function(e){e.on("files:choose",(function(e){let n=e.data.files.first();"image"!=i.filetype||n.attributes.url.split(".").pop().toLowerCase().match(/(bmp|gif|jpeg|jpg|png|webp|svg)/)?t(n.attributes.url,{}):tinymce.activeEditor.windowManager.alert("You must choose an image file.")})),e.on("file:choose:resizedImage",(function(e){let n=e.data.resizedUrl;t(n,{})}))}})},getEscapedSelector(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";return e.startsWith("#")?(e=e.substring(1),n="#"+CSS.escape(e)):n=e.includes("[")||e.includes("]")?t?CSS.escape(e):e:CSS.escape(e),n},tinytoolbar_full:{toolbar:["code | cut copy paste undo redo searchreplace | link unlink image media anchor | hr table fullscreen","bold italic underline strikethrough | subscript superscript | numlist bullist | outdent indent | align","styles | removeformat"]},tinytoolbar_basic:{toolbar:["code | cut copy paste undo redo | link unlink image media table","bold italic underline strikethrough | subscript superscript | numlist bullist | outdent indent | align","styles | removeformat"]},tinytoolbar_public:{toolbar:[]},tinytoolbar_knowledgebase:{toolbar:["code | bold italic | cut copy paste | undo redo | align numlist bullist outdent indent | link unlink image media | table fullscreen","styles | removeformat"]},tinytoolbar_supportdesk:{toolbar:["bold italic cut copy paste | undo redo | align numlist bullist outdent indent | link unlink"]},tinytoolbar_supportdesk2:{toolbar:["cut copy paste | undo redo | align numlist bullist"]},tinytoolbar_email:{toolbar:["code | bold italic underline strikethrough | cut copy paste | undo redo | align | numlist bullist outdent indent | link unlink image | table fullscreen hr","fontfamily fontsize forecolor removeformat"]},tinytoolbar_limited:{toolbar:["code | bold italic | cut copy paste | undo redo | align | numlist bullist outdent indent | link unlink | table"]},tinytoolbar_messageboard:{toolbar:["bold cut copy paste | link numlist bullist outdent indent"]},tinytoolbar_none:{toolbar:[""]}};function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.role=e,this.abs=t,this.getCkFinderQueryString=function(){return"id="+this.role+"&abs="+(this.abs?"1":"0")}}function r(e){return new Promise(((t,n)=>{if(window.isSecureContext&&navigator.clipboard)navigator.clipboard.writeText(e).then(t).catch(n);else{const i=document.createElement("textarea");i.value=e,i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.width="2em",i.style.height="2em",i.style.padding="0px",i.style.border="none",i.style.outline="none",i.style.boxShadow="none",i.style.background="transparent",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy"),t()}catch(e){n(e)}document.body.removeChild(i)}}))}function s(e,t,n){if(e.nextElementSibling&&e.nextElementSibling.dataset.copyFeedback)return;const i=document.createElement("span");i.dataset.copyFeedback=!0,i.textContent=t,i.style.color=n,e.parentNode.insertBefore(i,e.nextSibling),setTimeout((()=>{i.parentNode&&i.parentNode.removeChild(i)}),2e3)}const l={init:function(){$(".jdpicker").prop("autocomplete","off").datepicker({autoHide:!0,zIndex:1070}),Fancybox.bind("[data-fancybox]",{Toolbar:{display:["close"]}}),$("body").on("click",".printbutton",(function(){$(".printarea").printArea()})),tinycfgfactory.initTinyMceUnobtrusive("[data-mnw-tmce]"),$("[data-mnw-numeric],[data-mnw-currency]").each((function(){let e=$(this),t=void 0!==e.data("mnw-numeric-allownegative"),n=void 0!==e.data("mnw-currency");$(this).numericOnly({allowDecimal:n,allowNegative:t})})),$("form[data-mnw-disable]").each((function(){$(this).disableOnSubmit()})),$("a[data-mnw-href-delete]").each((function(){let e=$(this);e.on("click",(function(t){t.preventDefault();let n=e.prop("href"),i=e.data("mnw-href-delete");void 0!==i&&""!==i||(i="Delete this Item?"),alertify.customconfirm(i,(function(){window.location=n}))}))})),$("textarea[maxlength],textarea[data-rule-maxlength]").restrictMaxLength(),document.querySelectorAll("[data-mnw-toggle-display-block]").forEach((e=>{let t=e.dataset.mnwToggleDisplayBlock,n=document.getElementById(t);n&&e.addEventListener("click",(function(e){"none"==n.style.display?n.style.display="block":n.style.display="none"}))})),document.querySelectorAll("select[data-mnw-jumpmenu]").forEach((e=>{e.addEventListener("change",(function(t){""!==e.value&&(window.location=e.value)}))})),$("a.viewprofilelink").on("click",(function(e){let t=$(this).data("public");
2t=void 0!==t?"1":"0",WebUI.loadModal("/admin2/common/viewprofile/show_modal.php?",{id:$(this).data("id"),public:t},"View Profile"),e.preventDefault()})),SharedScripts.CustomFormFieldLoader.init(),document.querySelectorAll("[data-mnw-copy-value]").forEach((e=>{e.addEventListener("click",(function(t){t.preventDefault(),r(e.dataset.mnwCopyValue).then((()=>s(e," Copied","green"))).catch((t=>{s(e," Copy Failed","red")}))}))})),document.querySelectorAll("[data-mnw-copy-link-modal]").forEach((e=>{let t=e.dataset.mnwCopyLinkModal;t&&e.addEventListener("click",(function(e){e.preventDefault(),alertify.customalert("<input type='text' id='copyinput' class='naked-input' value='"+t+"' /><div class='ca mnw-mt-10'><a href='#' class='mnw-btn-secondary' id='copyToClipBoardButton'>Copy to Clipboard</a></div>");const n=document.querySelector("#copyToClipBoardButton");n.addEventListener("click",(e=>{e.preventDefault(),r(document.querySelector("#copyinput").value).then((()=>s(n," Copied","green"))).catch((e=>{s(n," Copy Failed","red")}))}))}))}))},doSafariThemeHack:function(){if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){const e=$("select");if(e.length){const t=parseInt(e.css("font-size"),10)+31+"px";e.each((function(){$(this).height(t)}))}}}};window.Fancybox=e.Fancybox,n(7930),n(2625),n(8096),n(1300),n(1826),n(692),window.WebUI=t;let c=n(7424);window.tippy=c.tippy,window.HelpTips=c.HelpTips,window.tinycfgfactory=o,window.CkConfig=a;let u=n(2557);window.SharedScripts=u,window.vld_googlerecaptcha=function(e,t){var n=$("#gvalidate").val();return 0===$("div.g-recaptcha").length||"1"==n||($(t).data("msg-custom","Please verify you are not a robot."),!1)},window.ongvsuccess=function(){$("#gvalidate").val(1)},window.PublicPageLoader=l})()})(); 3//# sourceMappingURL=public-core-scripts.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.